Class: WhopSDK::Models::App
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- WhopSDK::Models::App
- Defined in:
- lib/whop_sdk/models/app.rb
Defined Under Namespace
Classes: APIKey, Company, Creator, Icon, 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/’).
-
#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/’).
-
#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/’).
-
#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/’).
-
#origin ⇒ String?
The full origin URL for this app’s proxied domain (e.g., ‘myapp.apps.whop.com’).
-
#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.
-
#skills_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., ‘/experiences/’).
-
#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.
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 157
|
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/’). 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/’). 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 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/’). 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 |
#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.
88 |
# File 'lib/whop_sdk/models/app.rb', line 88 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.
95 |
# File 'lib/whop_sdk/models/app.rb', line 95 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/’). Null if the specified view type is not configured.
103 |
# File 'lib/whop_sdk/models/app.rb', line 103 required :openapi_path, String, nil?: true |
#origin ⇒ String?
The full origin URL for this app’s proxied domain (e.g., ‘myapp.apps.whop.com’). Null if no proxy domain is configured.
110 |
# File 'lib/whop_sdk/models/app.rb', line 110 required :origin, String, nil?: true |
#redirect_uris ⇒ Array<String>
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.
117 |
# File 'lib/whop_sdk/models/app.rb', line 117 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.
124 125 |
# File 'lib/whop_sdk/models/app.rb', line 124 required :requested_permissions, -> { WhopSDK::Internal::Type::ArrayOf[WhopSDK::App::RequestedPermission] } |
#skills_path ⇒ String?
The URL path template for a specific view of this app, appended to the base domain (e.g., ‘/experiences/’). Null if the specified view type is not configured.
133 |
# File 'lib/whop_sdk/models/app.rb', line 133 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.
140 |
# File 'lib/whop_sdk/models/app.rb', line 140 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.
148 |
# File 'lib/whop_sdk/models/app.rb', line 148 required :status, enum: -> { WhopSDK::AppStatuses } |