diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index eaeceb5f..35f2261e 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -85,8 +85,6 @@ errors: - value: code: forms_require_republish message: To access this feature, the site needs to be republished. - - value: - key: value - value: code: ecommerce_not_enabled message: Ecommerce is not yet initialized @@ -95,7 +93,7 @@ types: discriminated: false union: - InvalidScopes - - UsersNotEnabled + - NotEnterprisePlanSite source: openapi: ../../../openapi/referenced-specs/v2.yml BadRequestErrorBody: @@ -125,13 +123,6 @@ types: docs: Filter items last published after this date source: openapi: ../../../openapi/referenced-specs/v2.yml - ConflictErrorBody: - discriminated: false - union: - - DuplicateUserEmail - - UserLimitReached - source: - openapi: ../../../openapi/referenced-specs/v2.yml AuthorizedUser: properties: id: @@ -2587,9 +2578,6 @@ types: - ecomm_new_order - ecomm_order_changed - ecomm_inventory_changed - - user_account_added - - user_account_updated - - user_account_deleted - collection_item_created - collection_item_changed - collection_item_deleted @@ -2776,177 +2764,6 @@ types: pagination: optional source: openapi: ../../../openapi/referenced-specs/v2.yml - UserStatus: - enum: - - invited - - verified - - unverified - docs: The status of the user - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserAccessGroupsItemType: - enum: - - admin - - ecommerce - docs: | - The type of access group based on how it was assigned to the user. - * `admin` - Assigned to the user via API or in the designer - * `ecommerce` - Assigned to the user via an ecommerce purchase - inline: true - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserAccessGroupsItem: - docs: Access group slugs and types - properties: - slug: - type: optional - docs: Access group identifier for APIs - type: - type: optional - docs: | - The type of access group based on how it was assigned to the user. - * `admin` - Assigned to the user via API or in the designer - * `ecommerce` - Assigned to the user via an ecommerce purchase - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserDataData: - properties: - name: - type: optional - docs: | - The name of the user - email: - type: optional - docs: | - The email address of the user - accept-privacy: - type: optional - docs: | - Boolean indicating if the user has accepted the privacy policy - accept-communications: - type: optional - docs: | - Boolean indicating if the user has accepted to receive communications - additionalProperties: - type: optional - docs: Custom user attributes - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserData: - docs: An object containing the User's basic info and custom fields - properties: - data: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - User: - docs: > - The fields that define the schema for a given Item are based on the - Collection that Item belongs to. Beyond the user defined fields, there are - a handful of additional fields that are automatically created for all - items - properties: - id: - type: optional - docs: Unique identifier for the User - access: read-only - isEmailVerified: - type: optional - docs: Shows whether the user has verified their email address - access: read-only - lastUpdated: - type: optional - docs: The timestamp the user was updated - access: read-only - invitedOn: - type: optional - docs: The timestamp the user was invited - access: read-only - createdOn: - type: optional - docs: The timestamp the user was created - access: read-only - lastLogin: - type: optional - docs: The timestamp the user was logged in - access: read-only - status: optional - accessGroups: - type: optional> - docs: Access groups the user belongs to - data: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserList: - docs: The list users results - properties: - count: - type: optional - docs: Number of users returned - limit: - type: optional - docs: The limit specified in the request - default: 10 - offset: - type: optional - docs: The offset specified for pagination - default: 0 - total: - type: optional - docs: Total number of users in the collection - users: - type: optional> - docs: List of Users for a Site - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UsersNotEnabled: unknown - DuplicateUserEmail: unknown - UserLimitReached: unknown - AccessGroup: - properties: - id: - type: optional - docs: Unique identifier for the Access Group - name: - type: optional - docs: Name of the the Access Group - shortId: - type: optional - docs: >- - Shortened unique identifier based on name, optimized for its use in - the user’s JWT - slug: - type: optional - docs: >- - Shortened unique identifier based on name, optimized for human - readability and public API use - createdOn: - type: optional - docs: The date the Access Group was created - source: - openapi: ../../../openapi/referenced-specs/v2.yml - AccessGroupList: - docs: The list access groups results - properties: - count: - type: optional - docs: Number of access groups returned - limit: - type: optional - docs: The limit specified in the request - default: 10 - offset: - type: optional - docs: The offset specified for pagination - default: 0 - total: - type: optional - docs: Total number of access groups in the collection - accessGroups: - type: optional> - docs: List of Site Access Groups - source: - openapi: ../../../openapi/referenced-specs/v2.yml SkuPropertyListEnumItem: docs: Enumerated Product variants/Options for the SKU properties: diff --git a/.mock/definition/accessGroups.yml b/.mock/definition/accessGroups.yml deleted file mode 100644 index b5c99f81..00000000 --- a/.mock/definition/accessGroups.yml +++ /dev/null @@ -1,94 +0,0 @@ -types: - AccessGroupsListRequestSort: - enum: - - value: CreatedOn - name: CreatedOnAscending - docs: Sorts users in ascending order based on their created date - - value: '-CreatedOn' - name: CreatedOnDescending - docs: Sorts users in descending order based on their created date - source: - openapi: ../../../openapi/referenced-specs/v2.yml -imports: - root: __package__.yml -service: - auth: false - base-path: '' - endpoints: - list: - path: /sites/{site_id}/accessgroups - method: GET - auth: - - OAuth2: - - users:read - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Get a list of access groups for a site - - - Required scope | `users:read` - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - display-name: List Access Groups - request: - name: AccessGroupsListRequest - query-parameters: - offset: - type: optional - docs: >- - Offset used for pagination if the results have more than limit - records - limit: - type: optional - docs: 'Maximum number of records to be returned (max limit: 100)' - sort: - type: optional - docs: | - Sort string to use when ordering access groups - Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`) - response: - docs: Request was successful - type: root.AccessGroupList - status-code: 200 - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - query-parameters: - offset: 1 - limit: 1 - sort: CreatedOn - response: - body: - count: 1 - limit: 10 - offset: 0 - total: 1 - accessGroups: - - id: 62be58d404be8a6cc900c081 - name: Research Team - shortId: rt - slug: hitchhikers-guide-research-team - createdOn: '2022-08-01T19:41:48Z' - - id: 65a96161991e77bbb4a6c573 - name: Admin - shortId: ad - slug: admin - createdOn: '2022-08-01T19:41:48Z' - source: - openapi: ../../../openapi/referenced-specs/v2.yml diff --git a/.mock/definition/users.yml b/.mock/definition/users.yml deleted file mode 100644 index 8c5f5b69..00000000 --- a/.mock/definition/users.yml +++ /dev/null @@ -1,646 +0,0 @@ -types: - UsersListRequestSort: - enum: - - value: CreatedOn - name: CreatedOnAscending - docs: Sorts users in ascending order based on their created date - - value: '-CreatedOn' - name: CreatedOnDescending - docs: Sorts users in descending order based on their created date - - value: Email - name: EmailAscending - docs: Sorts users in ascending order based on their email - - value: '-Email' - name: EmailDescending - docs: Sorts users in descending order based on their email - - value: Status - name: StatusAscending - docs: Sorts users in ascending order based on their status - - value: '-Status' - name: StatusDescending - docs: Sorts users in descending order based on their status - - value: LastLogin - name: LastLoginAscending - docs: Sorts users in ascending order based on their last login date - - value: '-LastLogin' - name: LastLoginDescending - docs: Sorts users in descending order based on their last login date - - value: UpdatedOn - name: UpdatedOnAscending - docs: Sorts users in ascending order based on their update date - - value: '-UpdatedOn' - name: UpdatedOnDescending - docs: Sorts users in descending order based on their update date - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserAccountAddedPayloadPayloadData: - docs: The data about the user account that was added - properties: - accept-privacy-policy: optional - accept-communications: optional - email: optional - name: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountAddedPayloadPayload: - properties: - data: - type: optional - docs: The data about the user account that was added - id: - type: optional - docs: Unique identifier for the User - isEmailVerified: - type: optional - docs: Shows whether the user has verified their email address - lastUpdated: - type: optional - docs: The timestamp the user was updated - invitedOn: - type: optional - docs: The timestamp the user was invited - createdOn: - type: optional - docs: The timestamp the user was created - lastLogin: - type: optional - docs: The timestamp the user was logged in - status: optional - accessGroups: - type: optional> - docs: Access groups the user belongs to - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountAddedPayload: - properties: - triggerType: optional> - payload: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserAccountUpdatedPayloadPayloadData: - docs: The data about the user account that was added - properties: - accept-privacy-policy: optional - accept-communications: optional - email: optional - name: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountUpdatedPayloadPayload: - properties: - data: - type: optional - docs: The data about the user account that was added - id: - type: optional - docs: Unique identifier for the User - isEmailVerified: - type: optional - docs: Shows whether the user has verified their email address - lastUpdated: - type: optional - docs: The timestamp the user was updated - invitedOn: - type: optional - docs: The timestamp the user was invited - createdOn: - type: optional - docs: The timestamp the user was created - lastLogin: - type: optional - docs: The timestamp the user was logged in - status: optional - accessGroups: - type: optional> - docs: Access groups the user belongs to - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountUpdatedPayload: - properties: - triggerType: optional> - payload: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - UserAccountDeletedPayloadPayloadData: - docs: The data about the user account that was added - properties: - accept-privacy-policy: optional - accept-communications: optional - email: optional - name: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountDeletedPayloadPayload: - properties: - data: - type: optional - docs: The data about the user account that was added - id: - type: optional - docs: Unique identifier for the User - isEmailVerified: - type: optional - docs: Shows whether the user has verified their email address - lastUpdated: - type: optional - docs: The timestamp the user was updated - invitedOn: - type: optional - docs: The timestamp the user was invited - createdOn: - type: optional - docs: The timestamp the user was created - lastLogin: - type: optional - docs: The timestamp the user was logged in - status: optional - accessGroups: - type: optional> - docs: Access groups the user belongs to - source: - openapi: ../../../openapi/referenced-specs/v2.yml - inline: true - UserAccountDeletedPayload: - properties: - triggerType: optional> - payload: optional - source: - openapi: ../../../openapi/referenced-specs/v2.yml -imports: - root: __package__.yml -service: - auth: false - base-path: '' - endpoints: - list: - path: /sites/{site_id}/users - method: GET - auth: - - OAuth2: - - users:read - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Get a list of users for a site - - - Required scope | `users:read` - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - display-name: List Users - request: - name: UsersListRequest - query-parameters: - offset: - type: optional - docs: >- - Offset used for pagination if the results have more than limit - records - limit: - type: optional - docs: 'Maximum number of records to be returned (max limit: 100)' - sort: - type: optional - docs: | - Sort string to use when ordering users - - Example(`CreatedOn`, `Email`, `Status`, `LastLogin`, `UpdatedOn`). - - Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`) - response: - docs: Request was successful - type: root.UserList - status-code: 200 - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - query-parameters: - offset: 1 - limit: 1 - sort: CreatedOn - response: - body: - count: 5 - limit: 5 - offset: 0 - total: 201 - users: - - id: 6287ec36a841b25637c663df - isEmailVerified: false - lastUpdated: '2022-05-20T13:46:12Z' - invitedOn: '2016-10-24T19:41:29Z' - createdOn: '2022-05-20T13:46:12Z' - lastLogin: '2016-10-24T19:41:29Z' - status: unverified - accessGroups: - - slug: vogon-construction-crew - type: admin - - id: 6287ec36a841b25637c663f0 - isEmailVerified: false - lastUpdated: '2022-05-19T05:32:04Z' - invitedOn: '2016-10-24T19:41:29Z' - createdOn: '2022-05-19T05:32:04Z' - lastLogin: '2016-10-24T19:41:29Z' - status: unverified - accessGroups: - - slug: improbability-drive-test-subjects - type: admin - - id: 6287ec36a841b25637c663d9 - isEmailVerified: true - lastUpdated: '2022-05-17T03:34:06Z' - invitedOn: '2016-10-24T19:41:29Z' - createdOn: '2022-05-17T03:34:06Z' - lastLogin: '2016-10-24T19:41:29Z' - status: verified - accessGroups: - - slug: heart-of-gold-crew - type: admin - - id: 6287ec37a841b25637c6641b - isEmailVerified: false - lastUpdated: '2022-05-15T03:46:09Z' - invitedOn: '2016-10-24T19:41:29Z' - createdOn: '2022-05-15T03:46:09Z' - lastLogin: '2016-10-24T19:41:29Z' - status: unverified - accessGroups: - - slug: hitchhikers-guide-research-team - type: admin - - id: 6287ec37a841b25637c66449 - isEmailVerified: true - lastUpdated: '2022-05-15T02:55:38Z' - invitedOn: '2016-10-24T19:41:29Z' - createdOn: '2022-05-15T02:55:38Z' - lastLogin: '2016-10-24T19:41:29Z' - status: verified - accessGroups: - - slug: milliways-reservationists - type: admin - get: - path: /sites/{site_id}/users/{user_id} - method: GET - auth: - - OAuth2: - - users:read - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Get a User by ID - - - Required scope | `users:read` - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - user_id: - type: string - docs: Unique identifier for a User - display-name: Get User - response: - docs: Request was successful - type: root.User - status-code: 200 - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - user_id: 580e63e98c9a982ac9b8b741 - response: - body: - id: 6287ec36a841b25637c663df - isEmailVerified: true - lastUpdated: '2022-05-20T13:46:12Z' - invitedOn: '2022-05-20T13:46:12Z' - createdOn: '2022-05-20T13:46:12Z' - lastLogin: '2022-05-20T13:46:12Z' - status: verified - accessGroups: - - slug: webflowers - type: admin - data: - data: - name: name - email: email - accept-privacy: true - accept-communications: true - additionalProperties: additionalProperties - delete: - path: /sites/{site_id}/users/{user_id} - method: DELETE - auth: - - OAuth2: - - users:write - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Delete a User by ID - - - Required scope | `users:write` - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - user_id: - type: string - docs: Unique identifier for a User - display-name: Delete User - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - user_id: 580e63e98c9a982ac9b8b741 - update: - path: /sites/{site_id}/users/{user_id} - method: PATCH - auth: - - OAuth2: - - users:write - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Update a User by ID - - Required scope | `users:write` - - The email and password - - fields cannot be updated using this endpoint - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - user_id: - type: string - docs: Unique identifier for a User - display-name: Update User - request: - body: root.User - content-type: application/json - response: - docs: Request was successful - type: root.User - status-code: 200 - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - user_id: 580e63e98c9a982ac9b8b741 - request: - id: 6287ec36a841b25637c663df - isEmailVerified: true - lastUpdated: '2022-05-20T13:46:12Z' - invitedOn: '2022-05-20T13:46:12Z' - createdOn: '2022-05-20T13:46:12Z' - lastLogin: '2022-05-20T13:46:12Z' - status: verified - accessGroups: - - slug: webflowers - type: admin - response: - body: - id: 6287ec36a841b25637c663df - isEmailVerified: true - lastUpdated: '2022-05-20T13:46:12Z' - invitedOn: '2022-05-20T13:46:12Z' - createdOn: '2022-05-20T13:46:12Z' - lastLogin: '2022-05-20T13:46:12Z' - status: verified - accessGroups: - - slug: webflowers - type: admin - data: - data: - name: name - email: email - accept-privacy: true - accept-communications: true - additionalProperties: additionalProperties - invite: - path: /sites/{site_id}/users/invite - method: POST - auth: - - OAuth2: - - users:write - docs: > - As of **January 29, 2026**, User Accounts functionality has - been disabled on all Webflow sites. This endpoint is no longer - available. - - - Create and invite a user with an email address. - - - The user will be sent and invite via email, which they will need to - accept in order to join paid any paid access group. - - - Required scope | `users:write` - source: - openapi: ../../../openapi/referenced-specs/v2.yml - path-parameters: - site_id: - type: string - docs: Unique identifier for a Site - display-name: Create and Invite a User - request: - name: UsersInviteRequest - body: - properties: - email: - type: string - docs: Email address of user to send invite to - validation: - format: email - accessGroups: - type: optional> - docs: > - An array of access group slugs. Access groups are assigned to - the user as type `admin` and the user remains in the group until - removed. - content-type: application/json - response: - docs: Request was successful - type: root.User - status-code: 200 - availability: deprecated - errors: - - root.BadRequestError - - root.UnauthorizedError - - root.ForbiddenError - - root.NotFoundError - - root.ConflictError - - root.TooManyRequestsError - - root.InternalServerError - examples: - - path-parameters: - site_id: 580e63e98c9a982ac9b8b741 - request: - email: some.one@home.com - accessGroups: - - accessGroups - response: - body: - id: 6287ec36a841b25637c663df - isEmailVerified: true - lastUpdated: '2022-05-20T13:46:12Z' - invitedOn: '2022-05-20T13:46:12Z' - createdOn: '2022-05-20T13:46:12Z' - lastLogin: '2022-05-20T13:46:12Z' - status: verified - accessGroups: - - slug: webflowers - type: admin - data: - data: - name: name - email: email - accept-privacy: true - accept-communications: true - additionalProperties: additionalProperties - source: - openapi: ../../../openapi/referenced-specs/v2.yml -webhooks: - user_account_added: - audiences: [] - method: POST - display-name: New User Added - headers: {} - payload: UserAccountAddedPayload - examples: - - payload: - triggerType: user_account_added - payload: - id: 6287ec36a841b25637c663df - lastUpdated: '2022-05-20T13:46:12.093Z' - createdOn: '2022-05-20T13:46:12.093Z' - isEmailVerified: false - data: - accept-privacy: false - accept-communications: false - email: arthur.dent@heartofgold.ship - name: Arthur Dent - accessGroups: - - slug: webflowers - type: admin - docs: > - As of **January 29, 2026**, User Accounts functionality has been - disabled on all Webflow sites. This webhook is no longer - available. - - - Information about a new user account - user_account_updated: - audiences: [] - method: POST - display-name: Account Updated - headers: {} - payload: UserAccountUpdatedPayload - examples: - - payload: - triggerType: user_account_updated - payload: - id: 6287ec36a841b25637c663df - lastUpdated: '2022-05-20T13:46:12.093Z' - createdOn: '2022-05-20T13:46:12.093Z' - isEmailVerified: false - data: - accept-privacy: false - accept-communications: false - email: arthur.dent@heartofgold.ship - name: Arthur Dent - accessGroups: - - slug: webflowers - type: admin - docs: > - As of **January 29, 2026**, User Accounts functionality has been - disabled on all Webflow sites. This webhook is no longer - available. - - - Information about an updated user account - user_account_deleted: - audiences: [] - method: POST - display-name: Account Deleted - headers: {} - payload: UserAccountDeletedPayload - examples: - - payload: - triggerType: user_account_deleted - payload: - id: 6287ec36a841b25637c663df - lastUpdated: '2022-05-20T13:46:12.093Z' - createdOn: '2022-05-20T13:46:12.093Z' - isEmailVerified: false - data: - accept-privacy: false - accept-communications: false - email: arthur.dent@heartofgold.ship - name: Arthur Dent - accessGroups: - - slug: webflowers - type: admin - docs: > - As of **January 29, 2026**, User Accounts functionality has been - disabled on all Webflow sites. This webhook is no longer - available. - - - Information about a deleted user account diff --git a/package.json b/package.json index e80f2203..6e9e4232 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webflow-api", - "version": "3.2.2", + "version": "0.0.2", "private": false, "repository": "https://github.com/webflow/js-webflow-api", "license": "MIT", diff --git a/reference.md b/reference.md index aafb58ea..3146721c 100644 --- a/reference.md +++ b/reference.md @@ -3361,498 +3361,6 @@ await client.forms.updateSubmission("580e63e98c9a982ac9b8b741"); -## Users - -
client.users.list(siteId, { ...params }) -> Webflow.UserList -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Get a list of users for a site - -Required scope | `users:read` - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.users.list("580e63e98c9a982ac9b8b741", { - offset: 1, - limit: 1, - sort: "CreatedOn", -}); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**request:** `Webflow.UsersListRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` - -
-
-
-
- -
-
-
- -
client.users.get(siteId, userId) -> Webflow.User -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Get a User by ID - -Required scope | `users:read` - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741"); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**userId:** `string` β€” Unique identifier for a User - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` - -
-
-
-
- -
-
-
- -
client.users.delete(siteId, userId) -> void -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Delete a User by ID - -Required scope | `users:write` - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741"); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**userId:** `string` β€” Unique identifier for a User - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` - -
-
-
-
- -
-
-
- -
client.users.update(siteId, userId, { ...params }) -> Webflow.User -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Update a User by ID - -Required scope | `users:write` - -The email and password -fields cannot be updated using this endpoint - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2022-05-20T13:46:12.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2022-05-20T13:46:12.000Z"), - status: "verified", - accessGroups: [ - { - slug: "webflowers", - type: "admin", - }, - ], -}); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**userId:** `string` β€” Unique identifier for a User - -
-
- -
-
- -**request:** `Webflow.User` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` - -
-
-
-
- -
-
-
- -
client.users.invite(siteId, { ...params }) -> Webflow.User -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Create and invite a user with an email address. - -The user will be sent and invite via email, which they will need to accept in order to join paid any paid access group. - -Required scope | `users:write` - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.users.invite("580e63e98c9a982ac9b8b741", { - email: "some.one@home.com", - accessGroups: ["accessGroups"], -}); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**request:** `Webflow.UsersInviteRequest` - -
-
- -
-
- -**requestOptions:** `Users.RequestOptions` - -
-
-
-
- -
-
-
- -## AccessGroups - -
client.accessGroups.list(siteId, { ...params }) -> Webflow.AccessGroupList -
-
- -#### πŸ“ Description - -
-
- -
-
- -As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - -Get a list of access groups for a site - -Required scope | `users:read` - -
-
-
-
- -#### πŸ”Œ Usage - -
-
- -
-
- -```typescript -await client.accessGroups.list("580e63e98c9a982ac9b8b741", { - offset: 1, - limit: 1, - sort: "CreatedOn", -}); -``` - -
-
-
-
- -#### βš™οΈ Parameters - -
-
- -
-
- -**siteId:** `string` β€” Unique identifier for a Site - -
-
- -
-
- -**request:** `Webflow.AccessGroupsListRequest` - -
-
- -
-
- -**requestOptions:** `AccessGroups.RequestOptions` - -
-
-
-
- -
-
-
- ## Products
client.products.list(siteId, { ...params }) -> Webflow.ProductAndSkUsList diff --git a/src/Client.ts b/src/Client.ts index a06fbc3e..68c80568 100644 --- a/src/Client.ts +++ b/src/Client.ts @@ -14,8 +14,6 @@ import { Scripts } from "./api/resources/scripts/client/Client"; import { Assets } from "./api/resources/assets/client/Client"; import { Webhooks } from "./api/resources/webhooks/client/Client"; import { Forms } from "./api/resources/forms/client/Client"; -import { Users } from "./api/resources/users/client/Client"; -import { AccessGroups } from "./api/resources/accessGroups/client/Client"; import { Products } from "./api/resources/products/client/Client"; import { Orders } from "./api/resources/orders/client/Client"; import { Inventory } from "./api/resources/inventory/client/Client"; @@ -55,8 +53,6 @@ export class WebflowClient { protected _assets: Assets | undefined; protected _webhooks: Webhooks | undefined; protected _forms: Forms | undefined; - protected _users: Users | undefined; - protected _accessGroups: AccessGroups | undefined; protected _products: Products | undefined; protected _orders: Orders | undefined; protected _inventory: Inventory | undefined; @@ -70,8 +66,7 @@ export class WebflowClient { { "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "3.2.2", - "User-Agent": "webflow-api/3.2.2", + "X-Fern-SDK-Version": "0.0.2", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -116,14 +111,6 @@ export class WebflowClient { return (this._forms ??= new Forms(this._options)); } - public get users(): Users { - return (this._users ??= new Users(this._options)); - } - - public get accessGroups(): AccessGroups { - return (this._accessGroups ??= new AccessGroups(this._options)); - } - public get products(): Products { return (this._products ??= new Products(this._options)); } diff --git a/src/api/resources/accessGroups/client/Client.ts b/src/api/resources/accessGroups/client/Client.ts deleted file mode 100644 index 76b8fe41..00000000 --- a/src/api/resources/accessGroups/client/Client.ts +++ /dev/null @@ -1,215 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Webflow from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace AccessGroups { - export interface Options { - environment?: core.Supplier; - /** Specify a custom URL to connect the client to. */ - baseUrl?: core.Supplier; - accessToken?: core.Supplier; - /** Additional headers to include in requests. */ - headers?: Record | undefined>; - } - - export interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - /** Additional headers to include in the request. */ - headers?: Record | undefined>; - } -} - -export class AccessGroups { - protected readonly _options: AccessGroups.Options; - - constructor(_options: AccessGroups.Options = {}) { - this._options = _options; - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Get a list of access groups for a site - * - * Required scope | `users:read` - * - * @param {string} siteId - Unique identifier for a Site - * @param {Webflow.AccessGroupsListRequest} request - * @param {AccessGroups.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.accessGroups.list("580e63e98c9a982ac9b8b741", { - * offset: 1, - * limit: 1, - * sort: "CreatedOn" - * }) - */ - public list( - siteId: string, - request: Webflow.AccessGroupsListRequest = {}, - requestOptions?: AccessGroups.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions)); - } - - private async __list( - siteId: string, - request: Webflow.AccessGroupsListRequest = {}, - requestOptions?: AccessGroups.RequestOptions, - ): Promise> { - const { offset, limit, sort } = request; - const _queryParams: Record = {}; - if (offset != null) { - _queryParams["offset"] = offset.toString(); - } - - if (limit != null) { - _queryParams["limit"] = limit.toString(); - } - - if (sort != null) { - _queryParams["sort"] = serializers.AccessGroupsListRequestSort.jsonOrThrow(sort, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - }); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/accessgroups`, - ), - method: "GET", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { - data: serializers.AccessGroupList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling GET /sites/{site_id}/accessgroups.", - ); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = await core.Supplier.get(this._options.accessToken); - if (bearer != null) { - return `Bearer ${bearer}`; - } - - return undefined; - } -} diff --git a/src/api/resources/accessGroups/client/index.ts b/src/api/resources/accessGroups/client/index.ts deleted file mode 100644 index f33205a0..00000000 --- a/src/api/resources/accessGroups/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -export * from "./requests"; diff --git a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts b/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts deleted file mode 100644 index 23cdab3c..00000000 --- a/src/api/resources/accessGroups/client/requests/AccessGroupsListRequest.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../../index"; - -/** - * @example - * { - * offset: 1, - * limit: 1, - * sort: "CreatedOn" - * } - */ -export interface AccessGroupsListRequest { - /** - * Offset used for pagination if the results have more than limit records - */ - offset?: number; - /** - * Maximum number of records to be returned (max limit: 100) - */ - limit?: number; - /** - * Sort string to use when ordering access groups - * Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`) - */ - sort?: Webflow.AccessGroupsListRequestSort; -} diff --git a/src/api/resources/accessGroups/client/requests/index.ts b/src/api/resources/accessGroups/client/requests/index.ts deleted file mode 100644 index 709463a1..00000000 --- a/src/api/resources/accessGroups/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type AccessGroupsListRequest } from "./AccessGroupsListRequest"; diff --git a/src/api/resources/accessGroups/index.ts b/src/api/resources/accessGroups/index.ts deleted file mode 100644 index c9240f83..00000000 --- a/src/api/resources/accessGroups/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/api/resources/accessGroups/types/AccessGroupsListRequestSort.ts b/src/api/resources/accessGroups/types/AccessGroupsListRequestSort.ts deleted file mode 100644 index 6daa7813..00000000 --- a/src/api/resources/accessGroups/types/AccessGroupsListRequestSort.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type AccessGroupsListRequestSort = - /** - * Sorts users in ascending order based on their created date */ - | "CreatedOn" - /** - * Sorts users in descending order based on their created date */ - | "-CreatedOn"; -export const AccessGroupsListRequestSort = { - CreatedOnAscending: "CreatedOn", - CreatedOnDescending: "-CreatedOn", -} as const; diff --git a/src/api/resources/accessGroups/types/index.ts b/src/api/resources/accessGroups/types/index.ts deleted file mode 100644 index 5b80efb0..00000000 --- a/src/api/resources/accessGroups/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AccessGroupsListRequestSort"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 8ce422fe..8798e23e 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -4,10 +4,6 @@ export * as pages from "./pages"; export * from "./pages/types"; export * as components from "./components"; export * from "./components/types"; -export * as users from "./users"; -export * from "./users/types"; -export * as accessGroups from "./accessGroups"; -export * from "./accessGroups/types"; export * as products from "./products"; export * from "./products/types"; export * as orders from "./orders"; @@ -29,8 +25,6 @@ export * from "./components/client/requests"; export * from "./scripts/client/requests"; export * from "./assets/client/requests"; export * from "./forms/client/requests"; -export * from "./users/client/requests"; -export * from "./accessGroups/client/requests"; export * from "./products/client/requests"; export * from "./orders/client/requests"; export * from "./inventory/client/requests"; diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts deleted file mode 100644 index 266c353c..00000000 --- a/src/api/resources/users/client/Client.ts +++ /dev/null @@ -1,812 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as environments from "../../../../environments"; -import * as core from "../../../../core"; -import * as Webflow from "../../../index"; -import * as serializers from "../../../../serialization/index"; -import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../core/headers.js"; -import urlJoin from "url-join"; -import * as errors from "../../../../errors/index"; - -export declare namespace Users { - export interface Options { - environment?: core.Supplier; - /** Specify a custom URL to connect the client to. */ - baseUrl?: core.Supplier; - accessToken?: core.Supplier; - /** Additional headers to include in requests. */ - headers?: Record | undefined>; - } - - export interface RequestOptions { - /** The maximum time to wait for a response in seconds. */ - timeoutInSeconds?: number; - /** The number of times to retry the request. Defaults to 2. */ - maxRetries?: number; - /** A hook to abort the request. */ - abortSignal?: AbortSignal; - /** Additional headers to include in the request. */ - headers?: Record | undefined>; - } -} - -export class Users { - protected readonly _options: Users.Options; - - constructor(_options: Users.Options = {}) { - this._options = _options; - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Get a list of users for a site - * - * Required scope | `users:read` - * - * @param {string} siteId - Unique identifier for a Site - * @param {Webflow.UsersListRequest} request - * @param {Users.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.users.list("580e63e98c9a982ac9b8b741", { - * offset: 1, - * limit: 1, - * sort: "CreatedOn" - * }) - */ - public list( - siteId: string, - request: Webflow.UsersListRequest = {}, - requestOptions?: Users.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions)); - } - - private async __list( - siteId: string, - request: Webflow.UsersListRequest = {}, - requestOptions?: Users.RequestOptions, - ): Promise> { - const { offset, limit, sort } = request; - const _queryParams: Record = {}; - if (offset != null) { - _queryParams["offset"] = offset.toString(); - } - - if (limit != null) { - _queryParams["limit"] = limit.toString(); - } - - if (sort != null) { - _queryParams["sort"] = serializers.UsersListRequestSort.jsonOrThrow(sort, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - }); - } - - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/users`, - ), - method: "GET", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - queryParameters: _queryParams, - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { - data: serializers.UserList.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/users."); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Get a User by ID - * - * Required scope | `users:read` - * - * @param {string} siteId - Unique identifier for a Site - * @param {string} userId - Unique identifier for a User - * @param {Users.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741") - */ - public get( - siteId: string, - userId: string, - requestOptions?: Users.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__get(siteId, userId, requestOptions)); - } - - private async __get( - siteId: string, - userId: string, - requestOptions?: Users.RequestOptions, - ): Promise> { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`, - ), - method: "GET", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { - data: serializers.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling GET /sites/{site_id}/users/{user_id}.", - ); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Delete a User by ID - * - * Required scope | `users:write` - * - * @param {string} siteId - Unique identifier for a Site - * @param {string} userId - Unique identifier for a User - * @param {Users.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741") - */ - public delete( - siteId: string, - userId: string, - requestOptions?: Users.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__delete(siteId, userId, requestOptions)); - } - - private async __delete( - siteId: string, - userId: string, - requestOptions?: Users.RequestOptions, - ): Promise> { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`, - ), - method: "DELETE", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { data: undefined, rawResponse: _response.rawResponse }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling DELETE /sites/{site_id}/users/{user_id}.", - ); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Update a User by ID - * - * Required scope | `users:write` - * - * The email and password - * fields cannot be updated using this endpoint - * - * @param {string} siteId - Unique identifier for a Site - * @param {string} userId - Unique identifier for a User - * @param {Webflow.User} request - * @param {Users.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { - * id: "6287ec36a841b25637c663df", - * isEmailVerified: true, - * lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - * invitedOn: new Date("2022-05-20T13:46:12.000Z"), - * createdOn: new Date("2022-05-20T13:46:12.000Z"), - * lastLogin: new Date("2022-05-20T13:46:12.000Z"), - * status: "verified", - * accessGroups: [{ - * slug: "webflowers", - * type: "admin" - * }] - * }) - */ - public update( - siteId: string, - userId: string, - request: Webflow.User, - requestOptions?: Users.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__update(siteId, userId, request, requestOptions)); - } - - private async __update( - siteId: string, - userId: string, - request: Webflow.User, - requestOptions?: Users.RequestOptions, - ): Promise> { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/users/${encodeURIComponent(userId)}`, - ), - method: "PATCH", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - contentType: "application/json", - requestType: "json", - body: serializers.User.jsonOrThrow(request, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { - data: serializers.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling PATCH /sites/{site_id}/users/{user_id}.", - ); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - /** - * As of **January 29, 2026**, User Accounts functionality has been disabled on all Webflow sites. This endpoint is no longer available. - * - * Create and invite a user with an email address. - * - * The user will be sent and invite via email, which they will need to accept in order to join paid any paid access group. - * - * Required scope | `users:write` - * - * @param {string} siteId - Unique identifier for a Site - * @param {Webflow.UsersInviteRequest} request - * @param {Users.RequestOptions} requestOptions - Request-specific configuration. - * - * @throws {@link Webflow.BadRequestError} - * @throws {@link Webflow.UnauthorizedError} - * @throws {@link Webflow.ForbiddenError} - * @throws {@link Webflow.NotFoundError} - * @throws {@link Webflow.ConflictError} - * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} - * - * @example - * await client.users.invite("580e63e98c9a982ac9b8b741", { - * email: "some.one@home.com", - * accessGroups: ["accessGroups"] - * }) - */ - public invite( - siteId: string, - request: Webflow.UsersInviteRequest, - requestOptions?: Users.RequestOptions, - ): core.HttpResponsePromise { - return core.HttpResponsePromise.fromPromise(this.__invite(siteId, request, requestOptions)); - } - - private async __invite( - siteId: string, - request: Webflow.UsersInviteRequest, - requestOptions?: Users.RequestOptions, - ): Promise> { - const _response = await core.fetcher({ - url: urlJoin( - (await core.Supplier.get(this._options.baseUrl)) ?? - ((await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.DataApi) - .base, - `sites/${encodeURIComponent(siteId)}/users/invite`, - ), - method: "POST", - headers: mergeHeaders( - this._options?.headers, - mergeOnlyDefinedHeaders({ Authorization: await this._getAuthorizationHeader() }), - requestOptions?.headers, - ), - contentType: "application/json", - requestType: "json", - body: serializers.UsersInviteRequest.jsonOrThrow(request, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - }), - timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, - maxRetries: requestOptions?.maxRetries, - abortSignal: requestOptions?.abortSignal, - }); - if (_response.ok) { - return { - data: serializers.User.parseOrThrow(_response.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - rawResponse: _response.rawResponse, - }; - } - - if (_response.error.reason === "status-code") { - switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse); - case 401: - throw new Webflow.UnauthorizedError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 403: - throw new Webflow.ForbiddenError(_response.error.body, _response.rawResponse); - case 404: - throw new Webflow.NotFoundError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 409: - throw new Webflow.ConflictError(_response.error.body, _response.rawResponse); - case 429: - throw new Webflow.TooManyRequestsError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - case 500: - throw new Webflow.InternalServerError( - serializers.Error_.parseOrThrow(_response.error.body, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - breadcrumbsPrefix: ["response"], - }), - _response.rawResponse, - ); - default: - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.body, - rawResponse: _response.rawResponse, - }); - } - } - - switch (_response.error.reason) { - case "non-json": - throw new errors.WebflowError({ - statusCode: _response.error.statusCode, - body: _response.error.rawBody, - rawResponse: _response.rawResponse, - }); - case "timeout": - throw new errors.WebflowTimeoutError( - "Timeout exceeded when calling POST /sites/{site_id}/users/invite.", - ); - case "unknown": - throw new errors.WebflowError({ - message: _response.error.errorMessage, - rawResponse: _response.rawResponse, - }); - } - } - - protected async _getAuthorizationHeader(): Promise { - const bearer = await core.Supplier.get(this._options.accessToken); - if (bearer != null) { - return `Bearer ${bearer}`; - } - - return undefined; - } -} diff --git a/src/api/resources/users/client/index.ts b/src/api/resources/users/client/index.ts deleted file mode 100644 index f33205a0..00000000 --- a/src/api/resources/users/client/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -export * from "./requests"; diff --git a/src/api/resources/users/client/requests/UsersInviteRequest.ts b/src/api/resources/users/client/requests/UsersInviteRequest.ts deleted file mode 100644 index 6af54ae3..00000000 --- a/src/api/resources/users/client/requests/UsersInviteRequest.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * @example - * { - * email: "some.one@home.com", - * accessGroups: ["accessGroups"] - * } - */ -export interface UsersInviteRequest { - /** Email address of user to send invite to */ - email: string; - /** An array of access group slugs. Access groups are assigned to the user as type `admin` and the user remains in the group until removed. */ - accessGroups?: string[]; -} diff --git a/src/api/resources/users/client/requests/UsersListRequest.ts b/src/api/resources/users/client/requests/UsersListRequest.ts deleted file mode 100644 index ce6a4ba1..00000000 --- a/src/api/resources/users/client/requests/UsersListRequest.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../../index"; - -/** - * @example - * { - * offset: 1, - * limit: 1, - * sort: "CreatedOn" - * } - */ -export interface UsersListRequest { - /** - * Offset used for pagination if the results have more than limit records - */ - offset?: number; - /** - * Maximum number of records to be returned (max limit: 100) - */ - limit?: number; - /** - * Sort string to use when ordering users - * - * Example(`CreatedOn`, `Email`, `Status`, `LastLogin`, `UpdatedOn`). - * - * Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`) - */ - sort?: Webflow.UsersListRequestSort; -} diff --git a/src/api/resources/users/client/requests/index.ts b/src/api/resources/users/client/requests/index.ts deleted file mode 100644 index 3912aa4b..00000000 --- a/src/api/resources/users/client/requests/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { type UsersListRequest } from "./UsersListRequest"; -export { type UsersInviteRequest } from "./UsersInviteRequest"; diff --git a/src/api/resources/users/index.ts b/src/api/resources/users/index.ts deleted file mode 100644 index c9240f83..00000000 --- a/src/api/resources/users/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/api/resources/users/types/UserAccountAddedPayload.ts b/src/api/resources/users/types/UserAccountAddedPayload.ts deleted file mode 100644 index fc58a9ba..00000000 --- a/src/api/resources/users/types/UserAccountAddedPayload.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountAddedPayload { - triggerType?: "user_account_added"; - payload?: Webflow.UserAccountAddedPayloadPayload; -} diff --git a/src/api/resources/users/types/UserAccountAddedPayloadPayload.ts b/src/api/resources/users/types/UserAccountAddedPayloadPayload.ts deleted file mode 100644 index bb646a03..00000000 --- a/src/api/resources/users/types/UserAccountAddedPayloadPayload.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountAddedPayloadPayload { - /** The data about the user account that was added */ - data?: Webflow.UserAccountAddedPayloadPayloadData; - /** Unique identifier for the User */ - id?: string; - /** Shows whether the user has verified their email address */ - isEmailVerified?: boolean; - /** The timestamp the user was updated */ - lastUpdated?: Date; - /** The timestamp the user was invited */ - invitedOn?: Date; - /** The timestamp the user was created */ - createdOn?: Date; - /** The timestamp the user was logged in */ - lastLogin?: Date; - status?: Webflow.UserStatus; - /** Access groups the user belongs to */ - accessGroups?: Webflow.UserAccessGroupsItem[]; -} diff --git a/src/api/resources/users/types/UserAccountAddedPayloadPayloadData.ts b/src/api/resources/users/types/UserAccountAddedPayloadPayloadData.ts deleted file mode 100644 index a9c9b712..00000000 --- a/src/api/resources/users/types/UserAccountAddedPayloadPayloadData.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The data about the user account that was added - */ -export interface UserAccountAddedPayloadPayloadData { - acceptPrivacyPolicy?: boolean; - acceptCommunications?: boolean; - email?: string; - name?: string; -} diff --git a/src/api/resources/users/types/UserAccountDeletedPayload.ts b/src/api/resources/users/types/UserAccountDeletedPayload.ts deleted file mode 100644 index 419718d0..00000000 --- a/src/api/resources/users/types/UserAccountDeletedPayload.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountDeletedPayload { - triggerType?: "user_account_deleted"; - payload?: Webflow.UserAccountDeletedPayloadPayload; -} diff --git a/src/api/resources/users/types/UserAccountDeletedPayloadPayload.ts b/src/api/resources/users/types/UserAccountDeletedPayloadPayload.ts deleted file mode 100644 index 40e3a24d..00000000 --- a/src/api/resources/users/types/UserAccountDeletedPayloadPayload.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountDeletedPayloadPayload { - /** The data about the user account that was added */ - data?: Webflow.UserAccountDeletedPayloadPayloadData; - /** Unique identifier for the User */ - id?: string; - /** Shows whether the user has verified their email address */ - isEmailVerified?: boolean; - /** The timestamp the user was updated */ - lastUpdated?: Date; - /** The timestamp the user was invited */ - invitedOn?: Date; - /** The timestamp the user was created */ - createdOn?: Date; - /** The timestamp the user was logged in */ - lastLogin?: Date; - status?: Webflow.UserStatus; - /** Access groups the user belongs to */ - accessGroups?: Webflow.UserAccessGroupsItem[]; -} diff --git a/src/api/resources/users/types/UserAccountDeletedPayloadPayloadData.ts b/src/api/resources/users/types/UserAccountDeletedPayloadPayloadData.ts deleted file mode 100644 index 21e16380..00000000 --- a/src/api/resources/users/types/UserAccountDeletedPayloadPayloadData.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The data about the user account that was added - */ -export interface UserAccountDeletedPayloadPayloadData { - acceptPrivacyPolicy?: boolean; - acceptCommunications?: boolean; - email?: string; - name?: string; -} diff --git a/src/api/resources/users/types/UserAccountUpdatedPayload.ts b/src/api/resources/users/types/UserAccountUpdatedPayload.ts deleted file mode 100644 index 9718b762..00000000 --- a/src/api/resources/users/types/UserAccountUpdatedPayload.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountUpdatedPayload { - triggerType?: "user_account_updated"; - payload?: Webflow.UserAccountUpdatedPayloadPayload; -} diff --git a/src/api/resources/users/types/UserAccountUpdatedPayloadPayload.ts b/src/api/resources/users/types/UserAccountUpdatedPayloadPayload.ts deleted file mode 100644 index 1de45d36..00000000 --- a/src/api/resources/users/types/UserAccountUpdatedPayloadPayload.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../index"; - -export interface UserAccountUpdatedPayloadPayload { - /** The data about the user account that was added */ - data?: Webflow.UserAccountUpdatedPayloadPayloadData; - /** Unique identifier for the User */ - id?: string; - /** Shows whether the user has verified their email address */ - isEmailVerified?: boolean; - /** The timestamp the user was updated */ - lastUpdated?: Date; - /** The timestamp the user was invited */ - invitedOn?: Date; - /** The timestamp the user was created */ - createdOn?: Date; - /** The timestamp the user was logged in */ - lastLogin?: Date; - status?: Webflow.UserStatus; - /** Access groups the user belongs to */ - accessGroups?: Webflow.UserAccessGroupsItem[]; -} diff --git a/src/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts b/src/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts deleted file mode 100644 index a97a6132..00000000 --- a/src/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The data about the user account that was added - */ -export interface UserAccountUpdatedPayloadPayloadData { - acceptPrivacyPolicy?: boolean; - acceptCommunications?: boolean; - email?: string; - name?: string; -} diff --git a/src/api/resources/users/types/UsersListRequestSort.ts b/src/api/resources/users/types/UsersListRequestSort.ts deleted file mode 100644 index e2c62d3f..00000000 --- a/src/api/resources/users/types/UsersListRequestSort.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type UsersListRequestSort = - /** - * Sorts users in ascending order based on their created date */ - | "CreatedOn" - /** - * Sorts users in descending order based on their created date */ - | "-CreatedOn" - /** - * Sorts users in ascending order based on their email */ - | "Email" - /** - * Sorts users in descending order based on their email */ - | "-Email" - /** - * Sorts users in ascending order based on their status */ - | "Status" - /** - * Sorts users in descending order based on their status */ - | "-Status" - /** - * Sorts users in ascending order based on their last login date */ - | "LastLogin" - /** - * Sorts users in descending order based on their last login date */ - | "-LastLogin" - /** - * Sorts users in ascending order based on their update date */ - | "UpdatedOn" - /** - * Sorts users in descending order based on their update date */ - | "-UpdatedOn"; -export const UsersListRequestSort = { - CreatedOnAscending: "CreatedOn", - CreatedOnDescending: "-CreatedOn", - EmailAscending: "Email", - EmailDescending: "-Email", - StatusAscending: "Status", - StatusDescending: "-Status", - LastLoginAscending: "LastLogin", - LastLoginDescending: "-LastLogin", - UpdatedOnAscending: "UpdatedOn", - UpdatedOnDescending: "-UpdatedOn", -} as const; diff --git a/src/api/resources/users/types/index.ts b/src/api/resources/users/types/index.ts deleted file mode 100644 index 258617f4..00000000 --- a/src/api/resources/users/types/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./UsersListRequestSort"; -export * from "./UserAccountAddedPayloadPayloadData"; -export * from "./UserAccountAddedPayloadPayload"; -export * from "./UserAccountAddedPayload"; -export * from "./UserAccountUpdatedPayloadPayloadData"; -export * from "./UserAccountUpdatedPayloadPayload"; -export * from "./UserAccountUpdatedPayload"; -export * from "./UserAccountDeletedPayloadPayloadData"; -export * from "./UserAccountDeletedPayloadPayload"; -export * from "./UserAccountDeletedPayload"; diff --git a/src/api/types/AccessGroup.ts b/src/api/types/AccessGroup.ts deleted file mode 100644 index d94688bc..00000000 --- a/src/api/types/AccessGroup.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface AccessGroup { - /** Unique identifier for the Access Group */ - id?: string; - /** Name of the the Access Group */ - name?: string; - /** Shortened unique identifier based on name, optimized for its use in the user’s JWT */ - shortId?: string; - /** Shortened unique identifier based on name, optimized for human readability and public API use */ - slug?: string; - /** The date the Access Group was created */ - createdOn?: Date; -} diff --git a/src/api/types/AccessGroupList.ts b/src/api/types/AccessGroupList.ts deleted file mode 100644 index f76f25f1..00000000 --- a/src/api/types/AccessGroupList.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * The list access groups results - */ -export interface AccessGroupList { - /** Number of access groups returned */ - count?: number; - /** The limit specified in the request */ - limit?: number; - /** The offset specified for pagination */ - offset?: number; - /** Total number of access groups in the collection */ - total?: number; - /** List of Site Access Groups */ - accessGroups?: Webflow.AccessGroup[]; -} diff --git a/src/api/types/ConflictErrorBody.ts b/src/api/types/ConflictErrorBody.ts deleted file mode 100644 index 81bcd8d1..00000000 --- a/src/api/types/ConflictErrorBody.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -export type ConflictErrorBody = Webflow.DuplicateUserEmail | undefined | Webflow.UserLimitReached | undefined; diff --git a/src/api/types/DuplicateUserEmail.ts b/src/api/types/DuplicateUserEmail.ts deleted file mode 100644 index 79b2a95b..00000000 --- a/src/api/types/DuplicateUserEmail.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type DuplicateUserEmail = unknown; diff --git a/src/api/types/ForbiddenErrorBody.ts b/src/api/types/ForbiddenErrorBody.ts index 73b8f3f9..36d495e0 100644 --- a/src/api/types/ForbiddenErrorBody.ts +++ b/src/api/types/ForbiddenErrorBody.ts @@ -4,4 +4,4 @@ import * as Webflow from "../index"; -export type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.UsersNotEnabled | undefined; +export type ForbiddenErrorBody = Webflow.InvalidScopes | undefined | Webflow.NotEnterprisePlanSite | undefined; diff --git a/src/api/types/TriggerType.ts b/src/api/types/TriggerType.ts index a059fadb..3d75868f 100644 --- a/src/api/types/TriggerType.ts +++ b/src/api/types/TriggerType.ts @@ -14,9 +14,6 @@ export type TriggerType = | "ecomm_new_order" | "ecomm_order_changed" | "ecomm_inventory_changed" - | "user_account_added" - | "user_account_updated" - | "user_account_deleted" | "collection_item_created" | "collection_item_changed" | "collection_item_deleted" @@ -32,9 +29,6 @@ export const TriggerType = { EcommNewOrder: "ecomm_new_order", EcommOrderChanged: "ecomm_order_changed", EcommInventoryChanged: "ecomm_inventory_changed", - UserAccountAdded: "user_account_added", - UserAccountUpdated: "user_account_updated", - UserAccountDeleted: "user_account_deleted", CollectionItemCreated: "collection_item_created", CollectionItemChanged: "collection_item_changed", CollectionItemDeleted: "collection_item_deleted", diff --git a/src/api/types/User.ts b/src/api/types/User.ts deleted file mode 100644 index 4709c50b..00000000 --- a/src/api/types/User.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items - */ -export interface User { - /** Unique identifier for the User */ - id?: string; - /** Shows whether the user has verified their email address */ - isEmailVerified?: boolean; - /** The timestamp the user was updated */ - lastUpdated?: Date; - /** The timestamp the user was invited */ - invitedOn?: Date; - /** The timestamp the user was created */ - createdOn?: Date; - /** The timestamp the user was logged in */ - lastLogin?: Date; - status?: Webflow.UserStatus; - /** Access groups the user belongs to */ - accessGroups?: Webflow.UserAccessGroupsItem[]; - data?: Webflow.UserData; -} diff --git a/src/api/types/UserAccessGroupsItem.ts b/src/api/types/UserAccessGroupsItem.ts deleted file mode 100644 index 637d39f3..00000000 --- a/src/api/types/UserAccessGroupsItem.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * Access group slugs and types - */ -export interface UserAccessGroupsItem { - /** Access group identifier for APIs */ - slug?: string; - /** - * The type of access group based on how it was assigned to the user. - * * `admin` - Assigned to the user via API or in the designer - * * `ecommerce` - Assigned to the user via an ecommerce purchase - */ - type?: Webflow.UserAccessGroupsItemType; -} diff --git a/src/api/types/UserAccessGroupsItemType.ts b/src/api/types/UserAccessGroupsItemType.ts deleted file mode 100644 index ab143a12..00000000 --- a/src/api/types/UserAccessGroupsItemType.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The type of access group based on how it was assigned to the user. - * * `admin` - Assigned to the user via API or in the designer - * * `ecommerce` - Assigned to the user via an ecommerce purchase - */ -export type UserAccessGroupsItemType = "admin" | "ecommerce"; -export const UserAccessGroupsItemType = { - Admin: "admin", - Ecommerce: "ecommerce", -} as const; diff --git a/src/api/types/UserData.ts b/src/api/types/UserData.ts deleted file mode 100644 index 1dacfea8..00000000 --- a/src/api/types/UserData.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * An object containing the User's basic info and custom fields - */ -export interface UserData { - data?: Webflow.UserDataData; -} diff --git a/src/api/types/UserDataData.ts b/src/api/types/UserDataData.ts deleted file mode 100644 index ad23a6ca..00000000 --- a/src/api/types/UserDataData.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export interface UserDataData { - /** The name of the user */ - name?: string; - /** The email address of the user */ - email?: string; - /** Boolean indicating if the user has accepted the privacy policy */ - acceptPrivacy?: boolean; - /** Boolean indicating if the user has accepted to receive communications */ - acceptCommunications?: boolean; - /** Custom user attributes */ - additionalProperties?: string; -} diff --git a/src/api/types/UserLimitReached.ts b/src/api/types/UserLimitReached.ts deleted file mode 100644 index ca77b2b9..00000000 --- a/src/api/types/UserLimitReached.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type UserLimitReached = unknown; diff --git a/src/api/types/UserList.ts b/src/api/types/UserList.ts deleted file mode 100644 index f7b1869d..00000000 --- a/src/api/types/UserList.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../index"; - -/** - * The list users results - */ -export interface UserList { - /** Number of users returned */ - count?: number; - /** The limit specified in the request */ - limit?: number; - /** The offset specified for pagination */ - offset?: number; - /** Total number of users in the collection */ - total?: number; - /** List of Users for a Site */ - users?: Webflow.User[]; -} diff --git a/src/api/types/UserStatus.ts b/src/api/types/UserStatus.ts deleted file mode 100644 index 66168ff3..00000000 --- a/src/api/types/UserStatus.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -/** - * The status of the user - */ -export type UserStatus = "invited" | "verified" | "unverified"; -export const UserStatus = { - Invited: "invited", - Verified: "verified", - Unverified: "unverified", -} as const; diff --git a/src/api/types/UsersNotEnabled.ts b/src/api/types/UsersNotEnabled.ts deleted file mode 100644 index fe129bc3..00000000 --- a/src/api/types/UsersNotEnabled.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -export type UsersNotEnabled = unknown; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 226d0e81..76eecba5 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -2,7 +2,6 @@ export * from "./ForbiddenErrorBody"; export * from "./BadRequestErrorBody"; export * from "./ItemsListItemsRequestLastPublished"; export * from "./ItemsListItemsLiveRequestLastPublished"; -export * from "./ConflictErrorBody"; export * from "./AuthorizedUser"; export * from "./ErrorCode"; export * from "./Error_"; @@ -168,18 +167,6 @@ export * from "./Form"; export * from "./FormList"; export * from "./FormSubmission"; export * from "./FormSubmissionList"; -export * from "./UserStatus"; -export * from "./UserAccessGroupsItemType"; -export * from "./UserAccessGroupsItem"; -export * from "./UserDataData"; -export * from "./UserData"; -export * from "./User"; -export * from "./UserList"; -export * from "./UsersNotEnabled"; -export * from "./DuplicateUserEmail"; -export * from "./UserLimitReached"; -export * from "./AccessGroup"; -export * from "./AccessGroupList"; export * from "./SkuPropertyListEnumItem"; export * from "./SkuPropertyList"; export * from "./ProductFieldDataTaxCategory"; diff --git a/src/serialization/resources/accessGroups/index.ts b/src/serialization/resources/accessGroups/index.ts deleted file mode 100644 index eea524d6..00000000 --- a/src/serialization/resources/accessGroups/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./types"; diff --git a/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts b/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts deleted file mode 100644 index 273e80c3..00000000 --- a/src/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; - -export const AccessGroupsListRequestSort: core.serialization.Schema< - serializers.AccessGroupsListRequestSort.Raw, - Webflow.AccessGroupsListRequestSort -> = core.serialization.enum_(["CreatedOn", "-CreatedOn"]); - -export declare namespace AccessGroupsListRequestSort { - export type Raw = "CreatedOn" | "-CreatedOn"; -} diff --git a/src/serialization/resources/accessGroups/types/index.ts b/src/serialization/resources/accessGroups/types/index.ts deleted file mode 100644 index 5b80efb0..00000000 --- a/src/serialization/resources/accessGroups/types/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./AccessGroupsListRequestSort"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index dbcf7a65..e5f946ca 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -4,10 +4,6 @@ export * as pages from "./pages"; export * from "./pages/types"; export * as components from "./components"; export * from "./components/types"; -export * as users from "./users"; -export * from "./users/types"; -export * as accessGroups from "./accessGroups"; -export * from "./accessGroups/types"; export * as products from "./products"; export * from "./products/types"; export * as orders from "./orders"; @@ -26,7 +22,6 @@ export * as assets from "./assets"; export * from "./assets/client/requests"; export * as forms from "./forms"; export * from "./forms/client/requests"; -export * from "./users/client/requests"; export * from "./products/client/requests"; export * from "./orders/client/requests"; export * from "./inventory/client/requests"; diff --git a/src/serialization/resources/users/client/index.ts b/src/serialization/resources/users/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/serialization/resources/users/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/users/client/requests/UsersInviteRequest.ts b/src/serialization/resources/users/client/requests/UsersInviteRequest.ts deleted file mode 100644 index cd4ea653..00000000 --- a/src/serialization/resources/users/client/requests/UsersInviteRequest.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../../index"; -import * as Webflow from "../../../../../api/index"; -import * as core from "../../../../../core"; - -export const UsersInviteRequest: core.serialization.Schema< - serializers.UsersInviteRequest.Raw, - Webflow.UsersInviteRequest -> = core.serialization.object({ - email: core.serialization.string(), - accessGroups: core.serialization.list(core.serialization.string()).optional(), -}); - -export declare namespace UsersInviteRequest { - export interface Raw { - email: string; - accessGroups?: string[] | null; - } -} diff --git a/src/serialization/resources/users/client/requests/index.ts b/src/serialization/resources/users/client/requests/index.ts deleted file mode 100644 index ecf14c3f..00000000 --- a/src/serialization/resources/users/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { UsersInviteRequest } from "./UsersInviteRequest"; diff --git a/src/serialization/resources/users/index.ts b/src/serialization/resources/users/index.ts deleted file mode 100644 index c9240f83..00000000 --- a/src/serialization/resources/users/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./types"; -export * from "./client"; diff --git a/src/serialization/resources/users/types/UserAccountAddedPayload.ts b/src/serialization/resources/users/types/UserAccountAddedPayload.ts deleted file mode 100644 index 1d82484b..00000000 --- a/src/serialization/resources/users/types/UserAccountAddedPayload.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountAddedPayloadPayload } from "./UserAccountAddedPayloadPayload"; - -export const UserAccountAddedPayload: core.serialization.ObjectSchema< - serializers.UserAccountAddedPayload.Raw, - Webflow.UserAccountAddedPayload -> = core.serialization.object({ - triggerType: core.serialization.stringLiteral("user_account_added").optional(), - payload: UserAccountAddedPayloadPayload.optional(), -}); - -export declare namespace UserAccountAddedPayload { - export interface Raw { - triggerType?: "user_account_added" | null; - payload?: UserAccountAddedPayloadPayload.Raw | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountAddedPayloadPayload.ts b/src/serialization/resources/users/types/UserAccountAddedPayloadPayload.ts deleted file mode 100644 index aea444b8..00000000 --- a/src/serialization/resources/users/types/UserAccountAddedPayloadPayload.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountAddedPayloadPayloadData } from "./UserAccountAddedPayloadPayloadData"; -import { UserStatus } from "../../../types/UserStatus"; -import { UserAccessGroupsItem } from "../../../types/UserAccessGroupsItem"; - -export const UserAccountAddedPayloadPayload: core.serialization.ObjectSchema< - serializers.UserAccountAddedPayloadPayload.Raw, - Webflow.UserAccountAddedPayloadPayload -> = core.serialization.object({ - data: UserAccountAddedPayloadPayloadData.optional(), - id: core.serialization.string().optional(), - isEmailVerified: core.serialization.boolean().optional(), - lastUpdated: core.serialization.date().optional(), - invitedOn: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - lastLogin: core.serialization.date().optional(), - status: UserStatus.optional(), - accessGroups: core.serialization.list(UserAccessGroupsItem).optional(), -}); - -export declare namespace UserAccountAddedPayloadPayload { - export interface Raw { - data?: UserAccountAddedPayloadPayloadData.Raw | null; - id?: string | null; - isEmailVerified?: boolean | null; - lastUpdated?: string | null; - invitedOn?: string | null; - createdOn?: string | null; - lastLogin?: string | null; - status?: UserStatus.Raw | null; - accessGroups?: UserAccessGroupsItem.Raw[] | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.ts b/src/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.ts deleted file mode 100644 index 0590ec01..00000000 --- a/src/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; - -export const UserAccountAddedPayloadPayloadData: core.serialization.ObjectSchema< - serializers.UserAccountAddedPayloadPayloadData.Raw, - Webflow.UserAccountAddedPayloadPayloadData -> = core.serialization.object({ - acceptPrivacyPolicy: core.serialization.property("accept-privacy-policy", core.serialization.boolean().optional()), - acceptCommunications: core.serialization.property("accept-communications", core.serialization.boolean().optional()), - email: core.serialization.string().optional(), - name: core.serialization.string().optional(), -}); - -export declare namespace UserAccountAddedPayloadPayloadData { - export interface Raw { - "accept-privacy-policy"?: boolean | null; - "accept-communications"?: boolean | null; - email?: string | null; - name?: string | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountDeletedPayload.ts b/src/serialization/resources/users/types/UserAccountDeletedPayload.ts deleted file mode 100644 index 5f5c7a6a..00000000 --- a/src/serialization/resources/users/types/UserAccountDeletedPayload.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountDeletedPayloadPayload } from "./UserAccountDeletedPayloadPayload"; - -export const UserAccountDeletedPayload: core.serialization.ObjectSchema< - serializers.UserAccountDeletedPayload.Raw, - Webflow.UserAccountDeletedPayload -> = core.serialization.object({ - triggerType: core.serialization.stringLiteral("user_account_deleted").optional(), - payload: UserAccountDeletedPayloadPayload.optional(), -}); - -export declare namespace UserAccountDeletedPayload { - export interface Raw { - triggerType?: "user_account_deleted" | null; - payload?: UserAccountDeletedPayloadPayload.Raw | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountDeletedPayloadPayload.ts b/src/serialization/resources/users/types/UserAccountDeletedPayloadPayload.ts deleted file mode 100644 index 722f726e..00000000 --- a/src/serialization/resources/users/types/UserAccountDeletedPayloadPayload.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountDeletedPayloadPayloadData } from "./UserAccountDeletedPayloadPayloadData"; -import { UserStatus } from "../../../types/UserStatus"; -import { UserAccessGroupsItem } from "../../../types/UserAccessGroupsItem"; - -export const UserAccountDeletedPayloadPayload: core.serialization.ObjectSchema< - serializers.UserAccountDeletedPayloadPayload.Raw, - Webflow.UserAccountDeletedPayloadPayload -> = core.serialization.object({ - data: UserAccountDeletedPayloadPayloadData.optional(), - id: core.serialization.string().optional(), - isEmailVerified: core.serialization.boolean().optional(), - lastUpdated: core.serialization.date().optional(), - invitedOn: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - lastLogin: core.serialization.date().optional(), - status: UserStatus.optional(), - accessGroups: core.serialization.list(UserAccessGroupsItem).optional(), -}); - -export declare namespace UserAccountDeletedPayloadPayload { - export interface Raw { - data?: UserAccountDeletedPayloadPayloadData.Raw | null; - id?: string | null; - isEmailVerified?: boolean | null; - lastUpdated?: string | null; - invitedOn?: string | null; - createdOn?: string | null; - lastLogin?: string | null; - status?: UserStatus.Raw | null; - accessGroups?: UserAccessGroupsItem.Raw[] | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.ts b/src/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.ts deleted file mode 100644 index 21a4156e..00000000 --- a/src/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; - -export const UserAccountDeletedPayloadPayloadData: core.serialization.ObjectSchema< - serializers.UserAccountDeletedPayloadPayloadData.Raw, - Webflow.UserAccountDeletedPayloadPayloadData -> = core.serialization.object({ - acceptPrivacyPolicy: core.serialization.property("accept-privacy-policy", core.serialization.boolean().optional()), - acceptCommunications: core.serialization.property("accept-communications", core.serialization.boolean().optional()), - email: core.serialization.string().optional(), - name: core.serialization.string().optional(), -}); - -export declare namespace UserAccountDeletedPayloadPayloadData { - export interface Raw { - "accept-privacy-policy"?: boolean | null; - "accept-communications"?: boolean | null; - email?: string | null; - name?: string | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountUpdatedPayload.ts b/src/serialization/resources/users/types/UserAccountUpdatedPayload.ts deleted file mode 100644 index 3a1a87d2..00000000 --- a/src/serialization/resources/users/types/UserAccountUpdatedPayload.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountUpdatedPayloadPayload } from "./UserAccountUpdatedPayloadPayload"; - -export const UserAccountUpdatedPayload: core.serialization.ObjectSchema< - serializers.UserAccountUpdatedPayload.Raw, - Webflow.UserAccountUpdatedPayload -> = core.serialization.object({ - triggerType: core.serialization.stringLiteral("user_account_updated").optional(), - payload: UserAccountUpdatedPayloadPayload.optional(), -}); - -export declare namespace UserAccountUpdatedPayload { - export interface Raw { - triggerType?: "user_account_updated" | null; - payload?: UserAccountUpdatedPayloadPayload.Raw | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.ts b/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.ts deleted file mode 100644 index d07675a2..00000000 --- a/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; -import { UserAccountUpdatedPayloadPayloadData } from "./UserAccountUpdatedPayloadPayloadData"; -import { UserStatus } from "../../../types/UserStatus"; -import { UserAccessGroupsItem } from "../../../types/UserAccessGroupsItem"; - -export const UserAccountUpdatedPayloadPayload: core.serialization.ObjectSchema< - serializers.UserAccountUpdatedPayloadPayload.Raw, - Webflow.UserAccountUpdatedPayloadPayload -> = core.serialization.object({ - data: UserAccountUpdatedPayloadPayloadData.optional(), - id: core.serialization.string().optional(), - isEmailVerified: core.serialization.boolean().optional(), - lastUpdated: core.serialization.date().optional(), - invitedOn: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - lastLogin: core.serialization.date().optional(), - status: UserStatus.optional(), - accessGroups: core.serialization.list(UserAccessGroupsItem).optional(), -}); - -export declare namespace UserAccountUpdatedPayloadPayload { - export interface Raw { - data?: UserAccountUpdatedPayloadPayloadData.Raw | null; - id?: string | null; - isEmailVerified?: boolean | null; - lastUpdated?: string | null; - invitedOn?: string | null; - createdOn?: string | null; - lastLogin?: string | null; - status?: UserStatus.Raw | null; - accessGroups?: UserAccessGroupsItem.Raw[] | null; - } -} diff --git a/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts b/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts deleted file mode 100644 index ecb5998c..00000000 --- a/src/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; - -export const UserAccountUpdatedPayloadPayloadData: core.serialization.ObjectSchema< - serializers.UserAccountUpdatedPayloadPayloadData.Raw, - Webflow.UserAccountUpdatedPayloadPayloadData -> = core.serialization.object({ - acceptPrivacyPolicy: core.serialization.property("accept-privacy-policy", core.serialization.boolean().optional()), - acceptCommunications: core.serialization.property("accept-communications", core.serialization.boolean().optional()), - email: core.serialization.string().optional(), - name: core.serialization.string().optional(), -}); - -export declare namespace UserAccountUpdatedPayloadPayloadData { - export interface Raw { - "accept-privacy-policy"?: boolean | null; - "accept-communications"?: boolean | null; - email?: string | null; - name?: string | null; - } -} diff --git a/src/serialization/resources/users/types/UsersListRequestSort.ts b/src/serialization/resources/users/types/UsersListRequestSort.ts deleted file mode 100644 index 54e734ff..00000000 --- a/src/serialization/resources/users/types/UsersListRequestSort.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../../../index"; -import * as Webflow from "../../../../api/index"; -import * as core from "../../../../core"; - -export const UsersListRequestSort: core.serialization.Schema< - serializers.UsersListRequestSort.Raw, - Webflow.UsersListRequestSort -> = core.serialization.enum_([ - "CreatedOn", - "-CreatedOn", - "Email", - "-Email", - "Status", - "-Status", - "LastLogin", - "-LastLogin", - "UpdatedOn", - "-UpdatedOn", -]); - -export declare namespace UsersListRequestSort { - export type Raw = - | "CreatedOn" - | "-CreatedOn" - | "Email" - | "-Email" - | "Status" - | "-Status" - | "LastLogin" - | "-LastLogin" - | "UpdatedOn" - | "-UpdatedOn"; -} diff --git a/src/serialization/resources/users/types/index.ts b/src/serialization/resources/users/types/index.ts deleted file mode 100644 index 258617f4..00000000 --- a/src/serialization/resources/users/types/index.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./UsersListRequestSort"; -export * from "./UserAccountAddedPayloadPayloadData"; -export * from "./UserAccountAddedPayloadPayload"; -export * from "./UserAccountAddedPayload"; -export * from "./UserAccountUpdatedPayloadPayloadData"; -export * from "./UserAccountUpdatedPayloadPayload"; -export * from "./UserAccountUpdatedPayload"; -export * from "./UserAccountDeletedPayloadPayloadData"; -export * from "./UserAccountDeletedPayloadPayload"; -export * from "./UserAccountDeletedPayload"; diff --git a/src/serialization/types/AccessGroup.ts b/src/serialization/types/AccessGroup.ts deleted file mode 100644 index a468c49d..00000000 --- a/src/serialization/types/AccessGroup.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const AccessGroup: core.serialization.ObjectSchema = - core.serialization.object({ - id: core.serialization.string().optional(), - name: core.serialization.string().optional(), - shortId: core.serialization.string().optional(), - slug: core.serialization.string().optional(), - createdOn: core.serialization.date().optional(), - }); - -export declare namespace AccessGroup { - export interface Raw { - id?: string | null; - name?: string | null; - shortId?: string | null; - slug?: string | null; - createdOn?: string | null; - } -} diff --git a/src/serialization/types/AccessGroupList.ts b/src/serialization/types/AccessGroupList.ts deleted file mode 100644 index c2f27df0..00000000 --- a/src/serialization/types/AccessGroupList.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { AccessGroup } from "./AccessGroup"; - -export const AccessGroupList: core.serialization.ObjectSchema< - serializers.AccessGroupList.Raw, - Webflow.AccessGroupList -> = core.serialization.object({ - count: core.serialization.number().optional(), - limit: core.serialization.number().optional(), - offset: core.serialization.number().optional(), - total: core.serialization.number().optional(), - accessGroups: core.serialization.list(AccessGroup).optional(), -}); - -export declare namespace AccessGroupList { - export interface Raw { - count?: number | null; - limit?: number | null; - offset?: number | null; - total?: number | null; - accessGroups?: AccessGroup.Raw[] | null; - } -} diff --git a/src/serialization/types/ConflictErrorBody.ts b/src/serialization/types/ConflictErrorBody.ts deleted file mode 100644 index 11c1161e..00000000 --- a/src/serialization/types/ConflictErrorBody.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { DuplicateUserEmail } from "./DuplicateUserEmail"; -import { UserLimitReached } from "./UserLimitReached"; - -export const ConflictErrorBody: core.serialization.Schema< - serializers.ConflictErrorBody.Raw, - Webflow.ConflictErrorBody -> = core.serialization.undiscriminatedUnion([DuplicateUserEmail, UserLimitReached]); - -export declare namespace ConflictErrorBody { - export type Raw = (DuplicateUserEmail.Raw | undefined) | (UserLimitReached.Raw | undefined); -} diff --git a/src/serialization/types/DuplicateUserEmail.ts b/src/serialization/types/DuplicateUserEmail.ts deleted file mode 100644 index 2444c7b0..00000000 --- a/src/serialization/types/DuplicateUserEmail.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const DuplicateUserEmail: core.serialization.Schema< - serializers.DuplicateUserEmail.Raw, - Webflow.DuplicateUserEmail -> = core.serialization.unknown(); - -export declare namespace DuplicateUserEmail { - export type Raw = unknown; -} diff --git a/src/serialization/types/ForbiddenErrorBody.ts b/src/serialization/types/ForbiddenErrorBody.ts index 32edae7e..18bd75a1 100644 --- a/src/serialization/types/ForbiddenErrorBody.ts +++ b/src/serialization/types/ForbiddenErrorBody.ts @@ -6,13 +6,13 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; import { InvalidScopes } from "./InvalidScopes"; -import { UsersNotEnabled } from "./UsersNotEnabled"; +import { NotEnterprisePlanSite } from "./NotEnterprisePlanSite"; export const ForbiddenErrorBody: core.serialization.Schema< serializers.ForbiddenErrorBody.Raw, Webflow.ForbiddenErrorBody -> = core.serialization.undiscriminatedUnion([InvalidScopes, UsersNotEnabled]); +> = core.serialization.undiscriminatedUnion([InvalidScopes, NotEnterprisePlanSite]); export declare namespace ForbiddenErrorBody { - export type Raw = (InvalidScopes.Raw | undefined) | (UsersNotEnabled.Raw | undefined); + export type Raw = (InvalidScopes.Raw | undefined) | (NotEnterprisePlanSite.Raw | undefined); } diff --git a/src/serialization/types/TriggerType.ts b/src/serialization/types/TriggerType.ts index b3c9eb26..9bfe6a31 100644 --- a/src/serialization/types/TriggerType.ts +++ b/src/serialization/types/TriggerType.ts @@ -16,9 +16,6 @@ export const TriggerType: core.serialization.Schema = core.serialization.object({ - id: core.serialization.string().optional(), - isEmailVerified: core.serialization.boolean().optional(), - lastUpdated: core.serialization.date().optional(), - invitedOn: core.serialization.date().optional(), - createdOn: core.serialization.date().optional(), - lastLogin: core.serialization.date().optional(), - status: UserStatus.optional(), - accessGroups: core.serialization.list(UserAccessGroupsItem).optional(), - data: UserData.optional(), -}); - -export declare namespace User { - export interface Raw { - id?: string | null; - isEmailVerified?: boolean | null; - lastUpdated?: string | null; - invitedOn?: string | null; - createdOn?: string | null; - lastLogin?: string | null; - status?: UserStatus.Raw | null; - accessGroups?: UserAccessGroupsItem.Raw[] | null; - data?: UserData.Raw | null; - } -} diff --git a/src/serialization/types/UserAccessGroupsItem.ts b/src/serialization/types/UserAccessGroupsItem.ts deleted file mode 100644 index 92c0b5c2..00000000 --- a/src/serialization/types/UserAccessGroupsItem.ts +++ /dev/null @@ -1,23 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { UserAccessGroupsItemType } from "./UserAccessGroupsItemType"; - -export const UserAccessGroupsItem: core.serialization.ObjectSchema< - serializers.UserAccessGroupsItem.Raw, - Webflow.UserAccessGroupsItem -> = core.serialization.object({ - slug: core.serialization.string().optional(), - type: UserAccessGroupsItemType.optional(), -}); - -export declare namespace UserAccessGroupsItem { - export interface Raw { - slug?: string | null; - type?: UserAccessGroupsItemType.Raw | null; - } -} diff --git a/src/serialization/types/UserAccessGroupsItemType.ts b/src/serialization/types/UserAccessGroupsItemType.ts deleted file mode 100644 index 72c0d996..00000000 --- a/src/serialization/types/UserAccessGroupsItemType.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const UserAccessGroupsItemType: core.serialization.Schema< - serializers.UserAccessGroupsItemType.Raw, - Webflow.UserAccessGroupsItemType -> = core.serialization.enum_(["admin", "ecommerce"]); - -export declare namespace UserAccessGroupsItemType { - export type Raw = "admin" | "ecommerce"; -} diff --git a/src/serialization/types/UserData.ts b/src/serialization/types/UserData.ts deleted file mode 100644 index 9fe16c9b..00000000 --- a/src/serialization/types/UserData.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { UserDataData } from "./UserDataData"; - -export const UserData: core.serialization.ObjectSchema = - core.serialization.object({ - data: UserDataData.optional(), - }); - -export declare namespace UserData { - export interface Raw { - data?: UserDataData.Raw | null; - } -} diff --git a/src/serialization/types/UserDataData.ts b/src/serialization/types/UserDataData.ts deleted file mode 100644 index 9c8fe706..00000000 --- a/src/serialization/types/UserDataData.ts +++ /dev/null @@ -1,29 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const UserDataData: core.serialization.ObjectSchema = - core.serialization.object({ - name: core.serialization.string().optional(), - email: core.serialization.string().optional(), - acceptPrivacy: core.serialization.property("accept-privacy", core.serialization.boolean().optional()), - acceptCommunications: core.serialization.property( - "accept-communications", - core.serialization.boolean().optional(), - ), - additionalProperties: core.serialization.string().optional(), - }); - -export declare namespace UserDataData { - export interface Raw { - name?: string | null; - email?: string | null; - "accept-privacy"?: boolean | null; - "accept-communications"?: boolean | null; - additionalProperties?: string | null; - } -} diff --git a/src/serialization/types/UserLimitReached.ts b/src/serialization/types/UserLimitReached.ts deleted file mode 100644 index dd99b693..00000000 --- a/src/serialization/types/UserLimitReached.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const UserLimitReached: core.serialization.Schema = - core.serialization.unknown(); - -export declare namespace UserLimitReached { - export type Raw = unknown; -} diff --git a/src/serialization/types/UserList.ts b/src/serialization/types/UserList.ts deleted file mode 100644 index 5b51c82b..00000000 --- a/src/serialization/types/UserList.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; -import { User } from "./User"; - -export const UserList: core.serialization.ObjectSchema = - core.serialization.object({ - count: core.serialization.number().optional(), - limit: core.serialization.number().optional(), - offset: core.serialization.number().optional(), - total: core.serialization.number().optional(), - users: core.serialization.list(User).optional(), - }); - -export declare namespace UserList { - export interface Raw { - count?: number | null; - limit?: number | null; - offset?: number | null; - total?: number | null; - users?: User.Raw[] | null; - } -} diff --git a/src/serialization/types/UserStatus.ts b/src/serialization/types/UserStatus.ts deleted file mode 100644 index 24109027..00000000 --- a/src/serialization/types/UserStatus.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const UserStatus: core.serialization.Schema = - core.serialization.enum_(["invited", "verified", "unverified"]); - -export declare namespace UserStatus { - export type Raw = "invited" | "verified" | "unverified"; -} diff --git a/src/serialization/types/UsersNotEnabled.ts b/src/serialization/types/UsersNotEnabled.ts deleted file mode 100644 index fc9a6e7b..00000000 --- a/src/serialization/types/UsersNotEnabled.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as serializers from "../index"; -import * as Webflow from "../../api/index"; -import * as core from "../../core"; - -export const UsersNotEnabled: core.serialization.Schema = - core.serialization.unknown(); - -export declare namespace UsersNotEnabled { - export type Raw = unknown; -} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 226d0e81..76eecba5 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -2,7 +2,6 @@ export * from "./ForbiddenErrorBody"; export * from "./BadRequestErrorBody"; export * from "./ItemsListItemsRequestLastPublished"; export * from "./ItemsListItemsLiveRequestLastPublished"; -export * from "./ConflictErrorBody"; export * from "./AuthorizedUser"; export * from "./ErrorCode"; export * from "./Error_"; @@ -168,18 +167,6 @@ export * from "./Form"; export * from "./FormList"; export * from "./FormSubmission"; export * from "./FormSubmissionList"; -export * from "./UserStatus"; -export * from "./UserAccessGroupsItemType"; -export * from "./UserAccessGroupsItem"; -export * from "./UserDataData"; -export * from "./UserData"; -export * from "./User"; -export * from "./UserList"; -export * from "./UsersNotEnabled"; -export * from "./DuplicateUserEmail"; -export * from "./UserLimitReached"; -export * from "./AccessGroup"; -export * from "./AccessGroupList"; export * from "./SkuPropertyListEnumItem"; export * from "./SkuPropertyList"; export * from "./ProductFieldDataTaxCategory"; diff --git a/src/version.ts b/src/version.ts index 7d5c832f..e6b47763 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const SDK_VERSION = "3.2.2"; +export const SDK_VERSION = "0.0.2"; diff --git a/tests/wire/accessGroups.test.ts b/tests/wire/accessGroups.test.ts deleted file mode 100644 index 52857a46..00000000 --- a/tests/wire/accessGroups.test.ts +++ /dev/null @@ -1,74 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import { mockServerPool } from "../mock-server/MockServerPool.js"; -import { WebflowClient } from "../../src/Client"; - -describe("AccessGroups", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - - const rawResponseBody = { - count: 1, - limit: 10, - offset: 0, - total: 1, - accessGroups: [ - { - id: "62be58d404be8a6cc900c081", - name: "Research Team", - shortId: "rt", - slug: "hitchhikers-guide-research-team", - createdOn: "2022-08-01T19:41:48Z", - }, - { - id: "65a96161991e77bbb4a6c573", - name: "Admin", - shortId: "ad", - slug: "admin", - createdOn: "2022-08-01T19:41:48Z", - }, - ], - }; - server - .mockEndpoint() - .get("/sites/580e63e98c9a982ac9b8b741/accessgroups") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.accessGroups.list("580e63e98c9a982ac9b8b741", { - offset: 1, - limit: 1, - sort: "CreatedOn", - }); - expect(response).toEqual({ - count: 1, - limit: 10, - offset: 0, - total: 1, - accessGroups: [ - { - id: "62be58d404be8a6cc900c081", - name: "Research Team", - shortId: "rt", - slug: "hitchhikers-guide-research-team", - createdOn: new Date("2022-08-01T19:41:48.000Z"), - }, - { - id: "65a96161991e77bbb4a6c573", - name: "Admin", - shortId: "ad", - slug: "admin", - createdOn: new Date("2022-08-01T19:41:48.000Z"), - }, - ], - }); - }); -}); diff --git a/tests/wire/users.test.ts b/tests/wire/users.test.ts deleted file mode 100644 index 1d114052..00000000 --- a/tests/wire/users.test.ts +++ /dev/null @@ -1,400 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import { mockServerPool } from "../mock-server/MockServerPool.js"; -import { WebflowClient } from "../../src/Client"; - -describe("Users", () => { - test("list", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - - const rawResponseBody = { - count: 5, - limit: 5, - offset: 0, - total: 201, - users: [ - { - id: "6287ec36a841b25637c663df", - isEmailVerified: false, - lastUpdated: "2022-05-20T13:46:12Z", - invitedOn: "2016-10-24T19:41:29Z", - createdOn: "2022-05-20T13:46:12Z", - lastLogin: "2016-10-24T19:41:29Z", - status: "unverified", - accessGroups: [{ slug: "vogon-construction-crew", type: "admin" }], - }, - { - id: "6287ec36a841b25637c663f0", - isEmailVerified: false, - lastUpdated: "2022-05-19T05:32:04Z", - invitedOn: "2016-10-24T19:41:29Z", - createdOn: "2022-05-19T05:32:04Z", - lastLogin: "2016-10-24T19:41:29Z", - status: "unverified", - accessGroups: [{ slug: "improbability-drive-test-subjects", type: "admin" }], - }, - { - id: "6287ec36a841b25637c663d9", - isEmailVerified: true, - lastUpdated: "2022-05-17T03:34:06Z", - invitedOn: "2016-10-24T19:41:29Z", - createdOn: "2022-05-17T03:34:06Z", - lastLogin: "2016-10-24T19:41:29Z", - status: "verified", - accessGroups: [{ slug: "heart-of-gold-crew", type: "admin" }], - }, - { - id: "6287ec37a841b25637c6641b", - isEmailVerified: false, - lastUpdated: "2022-05-15T03:46:09Z", - invitedOn: "2016-10-24T19:41:29Z", - createdOn: "2022-05-15T03:46:09Z", - lastLogin: "2016-10-24T19:41:29Z", - status: "unverified", - accessGroups: [{ slug: "hitchhikers-guide-research-team", type: "admin" }], - }, - { - id: "6287ec37a841b25637c66449", - isEmailVerified: true, - lastUpdated: "2022-05-15T02:55:38Z", - invitedOn: "2016-10-24T19:41:29Z", - createdOn: "2022-05-15T02:55:38Z", - lastLogin: "2016-10-24T19:41:29Z", - status: "verified", - accessGroups: [{ slug: "milliways-reservationists", type: "admin" }], - }, - ], - }; - server - .mockEndpoint() - .get("/sites/580e63e98c9a982ac9b8b741/users") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.users.list("580e63e98c9a982ac9b8b741", { - offset: 1, - limit: 1, - sort: "CreatedOn", - }); - expect(response).toEqual({ - count: 5, - limit: 5, - offset: 0, - total: 201, - users: [ - { - id: "6287ec36a841b25637c663df", - isEmailVerified: false, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2016-10-24T19:41:29.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2016-10-24T19:41:29.000Z"), - status: "unverified", - accessGroups: [ - { - slug: "vogon-construction-crew", - type: "admin", - }, - ], - }, - { - id: "6287ec36a841b25637c663f0", - isEmailVerified: false, - lastUpdated: new Date("2022-05-19T05:32:04.000Z"), - invitedOn: new Date("2016-10-24T19:41:29.000Z"), - createdOn: new Date("2022-05-19T05:32:04.000Z"), - lastLogin: new Date("2016-10-24T19:41:29.000Z"), - status: "unverified", - accessGroups: [ - { - slug: "improbability-drive-test-subjects", - type: "admin", - }, - ], - }, - { - id: "6287ec36a841b25637c663d9", - isEmailVerified: true, - lastUpdated: new Date("2022-05-17T03:34:06.000Z"), - invitedOn: new Date("2016-10-24T19:41:29.000Z"), - createdOn: new Date("2022-05-17T03:34:06.000Z"), - lastLogin: new Date("2016-10-24T19:41:29.000Z"), - status: "verified", - accessGroups: [ - { - slug: "heart-of-gold-crew", - type: "admin", - }, - ], - }, - { - id: "6287ec37a841b25637c6641b", - isEmailVerified: false, - lastUpdated: new Date("2022-05-15T03:46:09.000Z"), - invitedOn: new Date("2016-10-24T19:41:29.000Z"), - createdOn: new Date("2022-05-15T03:46:09.000Z"), - lastLogin: new Date("2016-10-24T19:41:29.000Z"), - status: "unverified", - accessGroups: [ - { - slug: "hitchhikers-guide-research-team", - type: "admin", - }, - ], - }, - { - id: "6287ec37a841b25637c66449", - isEmailVerified: true, - lastUpdated: new Date("2022-05-15T02:55:38.000Z"), - invitedOn: new Date("2016-10-24T19:41:29.000Z"), - createdOn: new Date("2022-05-15T02:55:38.000Z"), - lastLogin: new Date("2016-10-24T19:41:29.000Z"), - status: "verified", - accessGroups: [ - { - slug: "milliways-reservationists", - type: "admin", - }, - ], - }, - ], - }); - }); - - test("get", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - - const rawResponseBody = { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: "2022-05-20T13:46:12Z", - invitedOn: "2022-05-20T13:46:12Z", - createdOn: "2022-05-20T13:46:12Z", - lastLogin: "2022-05-20T13:46:12Z", - status: "verified", - accessGroups: [{ slug: "webflowers", type: "admin" }], - data: { - data: { - name: "name", - email: "email", - "accept-privacy": true, - "accept-communications": true, - additionalProperties: "additionalProperties", - }, - }, - }; - server - .mockEndpoint() - .get("/sites/580e63e98c9a982ac9b8b741/users/580e63e98c9a982ac9b8b741") - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741"); - expect(response).toEqual({ - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2022-05-20T13:46:12.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2022-05-20T13:46:12.000Z"), - status: "verified", - accessGroups: [ - { - slug: "webflowers", - type: "admin", - }, - ], - data: { - data: { - name: "name", - email: "email", - acceptPrivacy: true, - acceptCommunications: true, - additionalProperties: "additionalProperties", - }, - }, - }); - }); - - test("delete", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - - server - .mockEndpoint() - .delete("/sites/580e63e98c9a982ac9b8b741/users/580e63e98c9a982ac9b8b741") - .respondWith() - .statusCode(200) - .build(); - - const response = await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741"); - expect(response).toEqual(undefined); - }); - - test("update", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - const rawRequestBody = { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: "2022-05-20T13:46:12Z", - invitedOn: "2022-05-20T13:46:12Z", - createdOn: "2022-05-20T13:46:12Z", - lastLogin: "2022-05-20T13:46:12Z", - status: "verified", - accessGroups: [{ slug: "webflowers", type: "admin" }], - }; - const rawResponseBody = { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: "2022-05-20T13:46:12Z", - invitedOn: "2022-05-20T13:46:12Z", - createdOn: "2022-05-20T13:46:12Z", - lastLogin: "2022-05-20T13:46:12Z", - status: "verified", - accessGroups: [{ slug: "webflowers", type: "admin" }], - data: { - data: { - name: "name", - email: "email", - "accept-privacy": true, - "accept-communications": true, - additionalProperties: "additionalProperties", - }, - }, - }; - server - .mockEndpoint() - .patch("/sites/580e63e98c9a982ac9b8b741/users/580e63e98c9a982ac9b8b741") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2022-05-20T13:46:12.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2022-05-20T13:46:12.000Z"), - status: "verified", - accessGroups: [ - { - slug: "webflowers", - type: "admin", - }, - ], - }); - expect(response).toEqual({ - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2022-05-20T13:46:12.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2022-05-20T13:46:12.000Z"), - status: "verified", - accessGroups: [ - { - slug: "webflowers", - type: "admin", - }, - ], - data: { - data: { - name: "name", - email: "email", - acceptPrivacy: true, - acceptCommunications: true, - additionalProperties: "additionalProperties", - }, - }, - }); - }); - - test("invite", async () => { - const server = mockServerPool.createServer(); - const client = new WebflowClient({ - accessToken: "test", - environment: { base: server.baseUrl, dataApi: server.baseUrl, contentDeliveryApi: server.baseUrl }, - }); - const rawRequestBody = { email: "some.one@home.com", accessGroups: ["accessGroups"] }; - const rawResponseBody = { - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: "2022-05-20T13:46:12Z", - invitedOn: "2022-05-20T13:46:12Z", - createdOn: "2022-05-20T13:46:12Z", - lastLogin: "2022-05-20T13:46:12Z", - status: "verified", - accessGroups: [{ slug: "webflowers", type: "admin" }], - data: { - data: { - name: "name", - email: "email", - "accept-privacy": true, - "accept-communications": true, - additionalProperties: "additionalProperties", - }, - }, - }; - server - .mockEndpoint() - .post("/sites/580e63e98c9a982ac9b8b741/users/invite") - .jsonBody(rawRequestBody) - .respondWith() - .statusCode(200) - .jsonBody(rawResponseBody) - .build(); - - const response = await client.users.invite("580e63e98c9a982ac9b8b741", { - email: "some.one@home.com", - accessGroups: ["accessGroups"], - }); - expect(response).toEqual({ - id: "6287ec36a841b25637c663df", - isEmailVerified: true, - lastUpdated: new Date("2022-05-20T13:46:12.000Z"), - invitedOn: new Date("2022-05-20T13:46:12.000Z"), - createdOn: new Date("2022-05-20T13:46:12.000Z"), - lastLogin: new Date("2022-05-20T13:46:12.000Z"), - status: "verified", - accessGroups: [ - { - slug: "webflowers", - type: "admin", - }, - ], - data: { - data: { - name: "name", - email: "email", - acceptPrivacy: true, - acceptCommunications: true, - additionalProperties: "additionalProperties", - }, - }, - }); - }); -}); diff --git a/yarn.lock b/yarn.lock index 9bf61188..d63d8d67 100644 --- a/yarn.lock +++ b/yarn.lock @@ -722,11 +722,11 @@ form-data "^4.0.4" "@types/node@*": - version "25.2.3" - resolved "https://registry.yarnpkg.com/@types/node/-/node-25.2.3.tgz#9c18245be768bdb4ce631566c7da303a5c99a7f8" - integrity sha512-m0jEgYlYz+mDJZ2+F4v8D1AyQb+QzsNqRuI7xg1VQX/KlKS0qT9r1Mo16yo5F/MtifXFgaofIFsdFMox2SxIbQ== + version "25.3.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-25.3.1.tgz#82f3f6e30ac3b48560a092d9224a975b5c24e38d" + integrity sha512-hj9YIJimBCipHVfHKRMnvmHg+wfhKc0o4mTtXh9pKBjC8TLJzz0nzGmLi5UJsYAUgSvXFHgb0V2oY10DUFtImw== dependencies: - undici-types "~7.16.0" + undici-types "~7.18.0" "@types/node@^18.19.70": version "18.19.130" @@ -936,16 +936,16 @@ acorn-import-phases@^1.0.3: integrity sha512-wKmbr/DDiIXzEOiWrTTUcDm24kQ2vGfZQvM2fwg2vXqR5uW6aapr7ObPtj1th32b9u90/Pf4AItvdTh42fBmVQ== acorn-walk@^8.0.2: - version "8.3.4" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.4.tgz#794dd169c3977edf4ba4ea47583587c5866236b7" - integrity sha512-ueEepnujpqee2o5aIYnvHU6C0A42MNdsIDeqy5BydrkuC5R1ZuUFnm27EeFJGoEHJQgn3uleRvmTXaJgfXbt4g== + version "8.3.5" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.5.tgz#8a6b8ca8fc5b34685af15dabb44118663c296496" + integrity sha512-HEHNfbars9v4pgpW6SO1KSPkfoS0xVOM/9UzkJltjlsHZmJasxg8aXkuZa7SMf8vKGIBhpUsPluQSqhJFCqebw== dependencies: acorn "^8.11.0" -acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.8.1: - version "8.15.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.15.0.tgz#a360898bc415edaac46c8241f6383975b930b816" - integrity sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg== +acorn@^8.1.0, acorn@^8.11.0, acorn@^8.15.0, acorn@^8.16.0, acorn@^8.8.1: + version "8.16.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.16.0.tgz#4ce79c89be40afe7afe8f3adb902a1f1ce9ac08a" + integrity sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw== agent-base@6: version "6.0.2" @@ -1112,19 +1112,19 @@ base64-js@^1.3.1: integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== baseline-browser-mapping@^2.9.0: - version "2.9.19" - resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz#3e508c43c46d961eb4d7d2e5b8d1dd0f9ee4f488" - integrity sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg== + version "2.10.0" + resolved "https://registry.yarnpkg.com/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz#5b09935025bf8a80e29130251e337c6a7fc8cbb9" + integrity sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA== bn.js@^4.0.0, bn.js@^4.1.0, bn.js@^4.11.9: - version "4.12.2" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.2.tgz#3d8fed6796c24e177737f7cc5172ee04ef39ec99" - integrity sha512-n4DSx829VRTRByMRGdjQ9iqsN0Bh4OolPsFnaZBLcbi8iXcB+kJ9s7EnRt4wILZNV3kPLHkRVfOc/HvhC3ovDw== + version "4.12.3" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-4.12.3.tgz#2cc2c679188eb35b006f2d0d4710bed8437a769e" + integrity sha512-fGTi3gxV/23FTYdAoUtLYp6qySe2KE3teyZitipKNRuVYcBkoP/bB3guXN/XVKUe9mxCHXnc9C4ocyz8OmgN0g== bn.js@^5.2.1, bn.js@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.2.tgz#82c09f9ebbb17107cd72cb7fd39bd1f9d0aaa566" - integrity sha512-v2YAxEmKaBLahNwE1mjp4WON6huMNeuDvagFZW+ASCuA/ku0bXR9hSMw0XpiqMoA3+rmnyck/tPRSFQkoC9Cuw== + version "5.2.3" + resolved "https://registry.yarnpkg.com/bn.js/-/bn.js-5.2.3.tgz#16a9e409616b23fef3ccbedb8d42f13bff80295e" + integrity sha512-EAcmnPkxpntVL+DS7bO1zhcZNvCkxqtkd0ZY53h06GNQ3DEkkGZ/gKgmDv6DdZQGj9BgfSPKtJJ7Dp1GPP8f7w== brace-expansion@^1.1.7: version "1.1.12" @@ -1286,9 +1286,9 @@ camelcase@^6.2.0: integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== caniuse-lite@^1.0.30001759: - version "1.0.30001770" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz#4dc47d3b263a50fbb243448034921e0a88591a84" - integrity sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw== + version "1.0.30001774" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001774.tgz#0e576b6f374063abcd499d202b9ba1301be29b70" + integrity sha512-DDdwPGz99nmIEv216hKSgLD+D4ikHQHjBC/seF98N9CPqRX4M5mSxT9eTV6oyisnJcuzxtZy4n17yKKQYmYQOA== chalk@^4.0.0, chalk@^4.1.0: version "4.1.2" @@ -1579,9 +1579,9 @@ dunder-proto@^1.0.1: gopd "^1.2.0" electron-to-chromium@^1.5.263: - version "1.5.286" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz#142be1ab5e1cd5044954db0e5898f60a4960384e" - integrity sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A== + version "1.5.302" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz#032a5802b31f7119269959c69fe2015d8dad5edb" + integrity sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg== elliptic@^6.5.3, elliptic@^6.6.1: version "6.6.1" @@ -1910,9 +1910,9 @@ graceful-fs@^4.1.2, graceful-fs@^4.2.11, graceful-fs@^4.2.4, graceful-fs@^4.2.9: integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== graphql@^16.12.0: - version "16.12.0" - resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.12.0.tgz#28cc2462435b1ac3fdc6976d030cef83a0c13ac7" - integrity sha512-DKKrynuQRne0PNpEbzuEdHlYOMksHSUI8Zc9Unei5gTsMNA2/vMpoMz/yKba50pejK56qj98qM0SjYxAKi13gQ== + version "16.13.0" + resolved "https://registry.yarnpkg.com/graphql/-/graphql-16.13.0.tgz#726857e897e87d54412d62356ec0b6b76bfab409" + integrity sha512-uSisMYERbaB9bkA9M4/4dnqyktaEkf1kMHNKq/7DHyxVeWqHQ2mBmVqm5u6/FVHwF3iCNalKcg82Zfl+tffWoA== handlebars@^4.7.8: version "4.7.8" @@ -2771,9 +2771,9 @@ minimalistic-crypto-utils@^1.0.1: integrity sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg== minimatch@^3.0.4, minimatch@^3.1.1: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + version "3.1.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.5.tgz#580c88f8d5445f2bd6aa8f3cadefa0de79fbd69e" + integrity sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w== dependencies: brace-expansion "^1.1.7" @@ -3619,10 +3619,10 @@ undici-types@~5.26.4: resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== -undici-types@~7.16.0: - version "7.16.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46" - integrity sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw== +undici-types@~7.18.0: + version "7.18.2" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.18.2.tgz#29357a89e7b7ca4aef3bf0fd3fd0cd73884229e9" + integrity sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w== universalify@^0.2.0: version "0.2.0" @@ -3701,15 +3701,15 @@ webidl-conversions@^7.0.0: resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-7.0.0.tgz#256b4e1882be7debbf01d05f0aa2039778ea080a" integrity sha512-VwddBukDzu71offAQR975unBIGqfKZpM+8ZX6ySk8nYhVoo5CYaZyzt3YBvYtRtO+aoGlqxPg/B87NGVZ/fu6g== -webpack-sources@^3.3.3: +webpack-sources@^3.3.4: version "3.3.4" resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.3.4.tgz#a338b95eb484ecc75fbb196cbe8a2890618b4891" integrity sha512-7tP1PdV4vF+lYPnkMR0jMY5/la2ub5Fc/8VQrrU+lXkiM6C4TjVfGw7iKfyhnTQOsD+6Q/iKw0eFciziRgD58Q== webpack@^5.97.1: - version "5.105.2" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.105.2.tgz#f3b76f9fc36f1152e156e63ffda3bbb82e6739ea" - integrity sha512-dRXm0a2qcHPUBEzVk8uph0xWSjV/xZxenQQbLwnwP7caQCYpqG1qddwlyEkIDkYn0K8tvmcrZ+bOrzoQ3HxCDw== + version "5.105.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.105.3.tgz#307ad95bafffd08bc81049d6519477b16e42e7ba" + integrity sha512-LLBBA4oLmT7sZdHiYE/PeVuifOxYyE2uL/V+9VQP7YSYdJU7bSf7H8bZRRxW8kEPMkmVjnrXmoR3oejIdX0xbg== dependencies: "@types/eslint-scope" "^3.7.7" "@types/estree" "^1.0.8" @@ -3717,7 +3717,7 @@ webpack@^5.97.1: "@webassemblyjs/ast" "^1.14.1" "@webassemblyjs/wasm-edit" "^1.14.1" "@webassemblyjs/wasm-parser" "^1.14.1" - acorn "^8.15.0" + acorn "^8.16.0" acorn-import-phases "^1.0.3" browserslist "^4.28.1" chrome-trace-event "^1.0.2" @@ -3735,7 +3735,7 @@ webpack@^5.97.1: tapable "^2.3.0" terser-webpack-plugin "^5.3.16" watchpack "^2.5.1" - webpack-sources "^3.3.3" + webpack-sources "^3.3.4" whatwg-encoding@^2.0.0: version "2.0.0"