Class: WhopSDK::Models::App
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::App
- Defined in:
- lib/whop_sdk/models/app.rb,
sig/whop_sdk/models/app.rbs
Defined Under Namespace
Classes: APIKey, Company, Creator, Icon, ProductionWebBuild, RequestedPermission, Stats
Instance Attribute Summary collapse
-
#api_key ⇒ WhopSDK::Models::App::APIKey?
The API key used to authenticate requests on behalf of this app.
-
#app_type ⇒ Symbol, WhopSDK::Models::AppType
The target audience classification for this app (e.g., 'b2b_app', 'b2c_app', 'company_app', 'component').
-
#base_url ⇒ String?
The production base URL where the app is hosted.
-
#company ⇒ WhopSDK::Models::App::Company
The company that owns and publishes this app.
-
#creator ⇒ WhopSDK::Models::App::Creator
The user who created and owns the company that published this app.
-
#dashboard_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]').
-
#description ⇒ String?
A written description of what this app does, displayed on the app store listing page.
-
#discover_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]').
-
#domain_id ⇒ String
The unique subdomain identifier for this app's proxied URL on the Whop platform.
-
#experience_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]').
-
#hosted_url ⇒ String?
The full canonical URL where this app's hosted web build is served.
-
#icon ⇒ WhopSDK::Models::App::Icon?
The icon image for this app, displayed on the app store, product pages, checkout, and as the default icon for experiences using this app.
-
#id ⇒ String
The unique identifier for the app.
-
#name ⇒ String
The display name of this app shown on the app store and in experience navigation.
-
#openapi_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]').
-
#origin ⇒ String?
The full origin URL for this app's proxied domain (e.g., 'https://myapp.apps.whop.com').
-
#production_web_build ⇒ WhopSDK::Models::App::ProductionWebBuild?
The approved app build currently served to users on web.
-
#redirect_uris ⇒ Array<String>
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.
-
#requested_permissions ⇒ Array<WhopSDK::Models::App::RequestedPermission>
The list of permissions this app requests when installed, including both required and optional permissions with justifications.
-
#route ⇒ String?
The unique subdomain route where this app's hosted web builds are served, such as 'myapp' for myapp.whop.app.
-
#secrets ⇒ Hash{Symbol=>Object}?
The app's secrets as an object of string values.
-
#skills_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]').
-
#stats ⇒ WhopSDK::Models::App::Stats?
Aggregate usage statistics for this app, including daily, weekly, and monthly active user counts.
-
#status ⇒ Symbol, WhopSDK::Models::AppStatuses
The current visibility status of this app on the Whop app store.
-
#verified ⇒ Boolean
Whether this app has been verified by Whop.
Instance Method Summary collapse
-
#initialize(action:, name:) ⇒ Object
constructor
The action that the app will request off of users when a user installs the app.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(action:, name:) ⇒ Object
The action that the app will request off of users when a user installs the app.
|
|
# File 'lib/whop_sdk/models/app.rb', line 186
|
Instance Attribute Details
#api_key ⇒ WhopSDK::Models::App::APIKey?
The API key used to authenticate requests on behalf of this app. Null if no API key has been generated. Requires the 'developer:manage_api_key' permission.
17 |
# File 'lib/whop_sdk/models/app.rb', line 17 required :api_key, -> { WhopSDK::App::APIKey }, nil?: true |
#app_type ⇒ Symbol, WhopSDK::Models::AppType
The target audience classification for this app (e.g., 'b2b_app', 'b2c_app', 'company_app', 'component').
24 |
# File 'lib/whop_sdk/models/app.rb', line 24 required :app_type, enum: -> { WhopSDK::AppType } |
#base_url ⇒ String?
The production base URL where the app is hosted. Null if no base URL is configured.
31 |
# File 'lib/whop_sdk/models/app.rb', line 31 required :base_url, String, nil?: true |
#company ⇒ WhopSDK::Models::App::Company
The company that owns and publishes this app.
37 |
# File 'lib/whop_sdk/models/app.rb', line 37 required :company, -> { WhopSDK::App::Company } |
#creator ⇒ WhopSDK::Models::App::Creator
The user who created and owns the company that published this app.
43 |
# File 'lib/whop_sdk/models/app.rb', line 43 required :creator, -> { WhopSDK::App::Creator } |
#dashboard_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is not configured.
51 |
# File 'lib/whop_sdk/models/app.rb', line 51 required :dashboard_path, String, nil?: true |
#description ⇒ String?
A written description of what this app does, displayed on the app store listing page. Null if no description has been set.
58 |
# File 'lib/whop_sdk/models/app.rb', line 58 required :description, String, nil?: true |
#discover_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is not configured.
66 |
# File 'lib/whop_sdk/models/app.rb', line 66 required :discover_path, String, nil?: true |
#domain_id ⇒ String
The unique subdomain identifier for this app's proxied URL on the Whop platform. Forms the URL pattern #domain_id.apps.whop.com">https://#domain_id.apps.whop.com.
73 |
# File 'lib/whop_sdk/models/app.rb', line 73 required :domain_id, String |
#experience_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is not configured.
81 |
# File 'lib/whop_sdk/models/app.rb', line 81 required :experience_path, String, nil?: true |
#hosted_url ⇒ String?
The full canonical URL where this app's hosted web build is served. Null if the app has not claimed a route.
88 |
# File 'lib/whop_sdk/models/app.rb', line 88 required :hosted_url, String, nil?: true |
#icon ⇒ WhopSDK::Models::App::Icon?
The icon image for this app, displayed on the app store, product pages, checkout, and as the default icon for experiences using this app.
95 |
# File 'lib/whop_sdk/models/app.rb', line 95 required :icon, -> { WhopSDK::App::Icon }, nil?: true |
#id ⇒ String
The unique identifier for the app.
10 |
# File 'lib/whop_sdk/models/app.rb', line 10 required :id, String |
#name ⇒ String
The display name of this app shown on the app store and in experience navigation. Maximum 30 characters.
102 |
# File 'lib/whop_sdk/models/app.rb', line 102 required :name, String |
#openapi_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is not configured.
110 |
# File 'lib/whop_sdk/models/app.rb', line 110 required :openapi_path, String, nil?: true |
#origin ⇒ String?
The full origin URL for this app's proxied domain (e.g., 'https://myapp.apps.whop.com'). Null if no proxy domain is configured.
117 |
# File 'lib/whop_sdk/models/app.rb', line 117 required :origin, String, nil?: true |
#production_web_build ⇒ WhopSDK::Models::App::ProductionWebBuild?
The approved app build currently served to users on web. Null if no production build is deployed for web.
124 |
# File 'lib/whop_sdk/models/app.rb', line 124 required :production_web_build, -> { WhopSDK::App::ProductionWebBuild }, nil?: true |
#redirect_uris ⇒ Array<String>
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.
131 |
# File 'lib/whop_sdk/models/app.rb', line 131 required :redirect_uris, WhopSDK::Internal::Type::ArrayOf[String] |
#requested_permissions ⇒ Array<WhopSDK::Models::App::RequestedPermission>
The list of permissions this app requests when installed, including both required and optional permissions with justifications.
138 139 |
# File 'lib/whop_sdk/models/app.rb', line 138 required :requested_permissions, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::App::RequestedPermission] } |
#route ⇒ String?
The unique subdomain route where this app's hosted web builds are served, such as 'myapp' for myapp.whop.app. Null if the app has not claimed a route.
146 |
# File 'lib/whop_sdk/models/app.rb', line 146 required :route, String, nil?: true |
#secrets ⇒ Hash{Symbol=>Object}?
The app's secrets as an object of string values. Encrypted at rest and injected into the app's hosted server runtime as environment bindings. Requires the 'developer:update_app' permission.
154 |
# File 'lib/whop_sdk/models/app.rb', line 154 required :secrets, WhopSDK::Internal::Type::HashOf[WhopSDK::Internal::Type::Unknown], nil?: true |
#skills_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., '/experiences/[experienceId]'). Null if the specified view type is not configured.
162 |
# File 'lib/whop_sdk/models/app.rb', line 162 required :skills_path, String, nil?: true |
#stats ⇒ WhopSDK::Models::App::Stats?
Aggregate usage statistics for this app, including daily, weekly, and monthly active user counts.
169 |
# File 'lib/whop_sdk/models/app.rb', line 169 required :stats, -> { WhopSDK::App::Stats }, nil?: true |
#status ⇒ Symbol, WhopSDK::Models::AppStatuses
The current visibility status of this app on the Whop app store. 'live' means publicly discoverable, 'unlisted' means accessible only via direct link, and 'hidden' means not visible anywhere.
177 |
# File 'lib/whop_sdk/models/app.rb', line 177 required :status, enum: -> { WhopSDK::AppStatuses } |
#verified ⇒ Boolean
Whether this app has been verified by Whop. Verified apps are endorsed by Whop and displayed in the featured apps section of the app store.
184 |
# File 'lib/whop_sdk/models/app.rb', line 184 required :verified, WhopSDK::Internal::Type::Boolean |
Instance Method Details
#to_hash ⇒ {
111 |
# File 'sig/whop_sdk/models/app.rbs', line 111
def to_hash: -> {
|