Sitelet https://github.com/whopio/whopsdk-python/pull/357/files
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "2deffc785420e34391d4024ab646944d6a330406",
"originGitCommit": "71b6752138f9f4abe9e8f58724f614eb717ea242",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.2.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -8206,6 +8206,14 @@ client.apps.create(
<dl>
<dd>

**imported_from_url:** `typing.Optional[str]` — The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL.

</dd>
</dl>

<dl>
<dd>

**redirect_uris:** `typing.Optional[typing.List[str]]` — The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.

</dd>
Expand Down Expand Up @@ -8505,6 +8513,14 @@ client.apps.update(
<dl>
<dd>

**imported_from_url:** `typing.Optional[str]` — The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. Set to `null` to clear it.

</dd>
</dl>

<dl>
<dd>

**name:** `typing.Optional[str]` — The display name for the app, shown to users on the app store and product pages.

</dd>
Expand Down
20 changes: 20 additions & 0 deletions src/whop_sdk/apps/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ def create(
app_type: typing.Optional[CreateAppsRequestAppType] = OMIT,
base_url: typing.Optional[str] = OMIT,
icon: typing.Optional[CreateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
redirect_uris: typing.Optional[typing.Sequence[str]] = OMIT,
route: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -183,6 +184,9 @@ def create(
icon : typing.Optional[CreateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL.

redirect_uris : typing.Optional[typing.Sequence[str]]
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.

Expand Down Expand Up @@ -216,6 +220,7 @@ def create(
app_type=app_type,
base_url=base_url,
icon=icon,
imported_from_url=imported_from_url,
redirect_uris=redirect_uris,
route=route,
request_options=request_options,
Expand Down Expand Up @@ -300,6 +305,7 @@ def update(
discover_path: typing.Optional[str] = OMIT,
experience_path: typing.Optional[str] = OMIT,
icon: typing.Optional[UpdateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
oauth_client_type: typing.Optional[UpdateAppsRequestOauthClientType] = OMIT,
openapi_path: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -346,6 +352,9 @@ def update(
icon : typing.Optional[UpdateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. Set to `null` to clear it.

name : typing.Optional[str]
The display name for the app, shown to users on the app store and product pages.

Expand Down Expand Up @@ -413,6 +422,7 @@ def update(
discover_path=discover_path,
experience_path=experience_path,
icon=icon,
imported_from_url=imported_from_url,
name=name,
oauth_client_type=oauth_client_type,
openapi_path=openapi_path,
Expand Down Expand Up @@ -740,6 +750,7 @@ async def create(
app_type: typing.Optional[CreateAppsRequestAppType] = OMIT,
base_url: typing.Optional[str] = OMIT,
icon: typing.Optional[CreateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
redirect_uris: typing.Optional[typing.Sequence[str]] = OMIT,
route: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -764,6 +775,9 @@ async def create(
icon : typing.Optional[CreateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL.

redirect_uris : typing.Optional[typing.Sequence[str]]
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.

Expand Down Expand Up @@ -805,6 +819,7 @@ async def main() -> None:
app_type=app_type,
base_url=base_url,
icon=icon,
imported_from_url=imported_from_url,
redirect_uris=redirect_uris,
route=route,
request_options=request_options,
Expand Down Expand Up @@ -905,6 +920,7 @@ async def update(
discover_path: typing.Optional[str] = OMIT,
experience_path: typing.Optional[str] = OMIT,
icon: typing.Optional[UpdateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
oauth_client_type: typing.Optional[UpdateAppsRequestOauthClientType] = OMIT,
openapi_path: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -951,6 +967,9 @@ async def update(
icon : typing.Optional[UpdateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. Set to `null` to clear it.

name : typing.Optional[str]
The display name for the app, shown to users on the app store and product pages.

Expand Down Expand Up @@ -1026,6 +1045,7 @@ async def main() -> None:
discover_path=discover_path,
experience_path=experience_path,
icon=icon,
imported_from_url=imported_from_url,
name=name,
oauth_client_type=oauth_client_type,
openapi_path=openapi_path,
Expand Down
20 changes: 20 additions & 0 deletions src/whop_sdk/apps/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,7 @@ def create(
app_type: typing.Optional[CreateAppsRequestAppType] = OMIT,
base_url: typing.Optional[str] = OMIT,
icon: typing.Optional[CreateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
redirect_uris: typing.Optional[typing.Sequence[str]] = OMIT,
route: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -237,6 +238,9 @@ def create(
icon : typing.Optional[CreateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL.

redirect_uris : typing.Optional[typing.Sequence[str]]
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.

Expand All @@ -262,6 +266,7 @@ def create(
"icon": convert_and_respect_annotation_metadata(
object_=icon, annotation=CreateAppsRequestIcon, direction="write"
),
"imported_from_url": imported_from_url,
"name": name,
"redirect_uris": redirect_uris,
"route": route,
Expand Down Expand Up @@ -488,6 +493,7 @@ def update(
discover_path: typing.Optional[str] = OMIT,
experience_path: typing.Optional[str] = OMIT,
icon: typing.Optional[UpdateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
oauth_client_type: typing.Optional[UpdateAppsRequestOauthClientType] = OMIT,
openapi_path: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -534,6 +540,9 @@ def update(
icon : typing.Optional[UpdateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. Set to `null` to clear it.

name : typing.Optional[str]
The display name for the app, shown to users on the app store and product pages.

Expand Down Expand Up @@ -593,6 +602,7 @@ def update(
"icon": convert_and_respect_annotation_metadata(
object_=icon, annotation=UpdateAppsRequestIcon, direction="write"
),
"imported_from_url": imported_from_url,
"name": name,
"oauth_client_type": oauth_client_type,
"openapi_path": openapi_path,
Expand Down Expand Up @@ -1167,6 +1177,7 @@ async def create(
app_type: typing.Optional[CreateAppsRequestAppType] = OMIT,
base_url: typing.Optional[str] = OMIT,
icon: typing.Optional[CreateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
redirect_uris: typing.Optional[typing.Sequence[str]] = OMIT,
route: typing.Optional[str] = OMIT,
request_options: typing.Optional[RequestOptions] = None,
Expand All @@ -1191,6 +1202,9 @@ async def create(
icon : typing.Optional[CreateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL.

redirect_uris : typing.Optional[typing.Sequence[str]]
The whitelisted OAuth callback URLs that users are redirected to after authorizing the app.

Expand All @@ -1216,6 +1230,7 @@ async def create(
"icon": convert_and_respect_annotation_metadata(
object_=icon, annotation=CreateAppsRequestIcon, direction="write"
),
"imported_from_url": imported_from_url,
"name": name,
"redirect_uris": redirect_uris,
"route": route,
Expand Down Expand Up @@ -1444,6 +1459,7 @@ async def update(
discover_path: typing.Optional[str] = OMIT,
experience_path: typing.Optional[str] = OMIT,
icon: typing.Optional[UpdateAppsRequestIcon] = OMIT,
imported_from_url: typing.Optional[str] = OMIT,
name: typing.Optional[str] = OMIT,
oauth_client_type: typing.Optional[UpdateAppsRequestOauthClientType] = OMIT,
openapi_path: typing.Optional[str] = OMIT,
Expand Down Expand Up @@ -1490,6 +1506,9 @@ async def update(
icon : typing.Optional[UpdateAppsRequestIcon]
The icon image for the app in PNG, JPEG, or GIF format, referencing an uploaded file: `{ id }` for an existing attachment or `{ direct_upload_id }` for a new direct upload.

imported_from_url : typing.Optional[str]
The address of the existing website this app is imported from, such as `https://shop.example.com`. Must be an `http` or `https` URL. Set to `null` to clear it.

name : typing.Optional[str]
The display name for the app, shown to users on the app store and product pages.

Expand Down Expand Up @@ -1549,6 +1568,7 @@ async def update(
"icon": convert_and_respect_annotation_metadata(
object_=icon, annotation=UpdateAppsRequestIcon, direction="write"
),
"imported_from_url": imported_from_url,
"name": name,
"oauth_client_type": oauth_client_type,
"openapi_path": openapi_path,
Expand Down
5 changes: 5 additions & 0 deletions src/whop_sdk/types/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ class App(UniversalBaseModel):
App ID, prefixed `app_`.
"""

imported_from_url: typing.Optional[str] = pydantic.Field(default=None)
"""
The address of the existing website this app was imported from, such as `https://shop.example.com`. `null` if the app was not imported from another site, or if the caller lacks the `developer:basic:read` permission on the app's account.
"""

marketplace_status: typing.Optional[AppMarketplaceStatus] = pydantic.Field(default=None)
"""
Approval status of the app's product listing on the Whop app store, or `null` when the app has no associated product.
Expand Down
Loading