From 95994112e7f4f43cc8071595da4defa8319b620d Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Fri, 6 Mar 2026 16:17:38 +0000 Subject: [PATCH] SDK regeneration --- .mock/definition/__package__.yml | 37 +++++++++--- .mock/definition/assets.yml | 4 +- .mock/definition/collections/items.yml | 10 ++-- .mock/definition/components.yml | 2 +- .mock/definition/forms.yml | 2 +- .mock/definition/inventory.yml | 7 +-- .mock/definition/pages.yml | 4 +- .mock/definition/pages/scripts.yml | 2 +- .mock/definition/products.yml | 2 +- .mock/definition/sites.yml | 8 +-- .mock/definition/sites/activityLogs.yml | 2 +- .mock/definition/sites/forms.yml | 4 +- .mock/definition/sites/redirects.yml | 4 +- .mock/definition/sites/scripts.yml | 10 ++-- .mock/definition/sites/wellKnown.yml | 4 +- .mock/definition/workspaces/auditLogs.yml | 1 + reference.md | 56 +++++++++---------- .../resources/redirects/client/Client.ts | 4 +- ...gsGetWorkspaceAuditLogsRequestEventType.ts | 1 + src/api/types/ComponentDom.ts | 2 +- src/api/types/ProductFieldData.ts | 2 +- src/api/types/SettingChange.ts | 10 ++++ src/api/types/SettingChangeAuditLogItem.ts | 8 +++ src/api/types/WorkspaceAuditLogItem.ts | 7 ++- ...eAuditLogItemPayloadSettingChangeMethod.ts | 8 +++ src/api/types/index.ts | 3 + ...gsGetWorkspaceAuditLogsRequestEventType.ts | 4 +- src/serialization/types/SettingChange.ts | 23 ++++++++ .../types/SettingChangeAuditLogItem.ts | 21 +++++++ .../types/WorkspaceAuditLogItem.ts | 9 ++- ...eAuditLogItemPayloadSettingChangeMethod.ts | 14 +++++ src/serialization/types/index.ts | 3 + 32 files changed, 203 insertions(+), 75 deletions(-) create mode 100644 src/api/types/SettingChange.ts create mode 100644 src/api/types/SettingChangeAuditLogItem.ts create mode 100644 src/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts create mode 100644 src/serialization/types/SettingChange.ts create mode 100644 src/serialization/types/SettingChangeAuditLogItem.ts create mode 100644 src/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts diff --git a/.mock/definition/__package__.yml b/.mock/definition/__package__.yml index 35f2261e..23d9612d 100644 --- a/.mock/definition/__package__.yml +++ b/.mock/definition/__package__.yml @@ -611,6 +611,27 @@ types: payload: optional source: openapi: ../../../openapi/referenced-specs/v2.yml + WorkspaceAuditLogItemPayloadSettingChangeMethod: + enum: + - dashboard + - admin + inline: true + source: + openapi: ../../../openapi/referenced-specs/v2.yml + Setting change: + properties: + setting: optional> + previousValue: optional + value: optional + method: optional + source: + openapi: ../../../openapi/referenced-specs/v2.yml + SettingChangeAuditLogItem: + properties: + eventSubType: optional> + payload: optional + source: + openapi: ../../../openapi/referenced-specs/v2.yml WorkspaceAuditLogItemActor: properties: id: optional @@ -642,6 +663,8 @@ types: type: SiteMembershipAuditLogItem workspace_invitation: type: WorkspaceInvitationAuditLogItem + workspace_setting: + type: SettingChangeAuditLogItem source: openapi: ../../../openapi/referenced-specs/v2.yml Pagination: @@ -1195,7 +1218,7 @@ types: timestamp
- **Status flags** - Controls for managing content state: `isDraft`, - `isArchived `
+ `isArchived `
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and `slug`, and may include additional fields matching your collection's @@ -1280,7 +1303,7 @@ types: timestamp
- **Status flags** - Controls for managing content state: `isDraft`, - `isArchived `
+ `isArchived `
- **Content fields** - Stored in `fieldData`. Each item needs a `name` and `slug`, and may include additional fields matching your collection's @@ -2067,13 +2090,13 @@ types: type: string docs: > The new string or HTML value used to override the component instance - property value. + property value. The provided value must be compatible with the type of the component - instance property. + instance property. For example, attempting to override a single-line plain-text property - with a multi-line + with a multi-line value will result in an error. source: @@ -2189,7 +2212,7 @@ types: The Component DOM schema represents the content structure of a component. Similar to Page DOM, it captures various content nodes and their associated attributes, but specifically for a component's structure. Each - node has a unique identifier and can contain text, images, select or text + node has a unique identifier and can contain text, images, select or text inputs, submit buttons, or nested component instances. properties: componentId: @@ -2875,7 +2898,7 @@ types: ProductFieldData: docs: >- Contains content-specific details for a product, covering both standard - (e.g., title, description) and custom fields tailored to the product + (e.g., title, description) and custom fields tailored to the product setup. properties: name: diff --git a/.mock/definition/assets.yml b/.mock/definition/assets.yml index dcdff949..f77fc52f 100644 --- a/.mock/definition/assets.yml +++ b/.mock/definition/assets.yml @@ -106,7 +106,7 @@ service: - OAuth2: - assets:write docs: > - The first step in uploading an asset to a site. + The first step in uploading an asset to a site. @@ -123,7 +123,7 @@ service: To learn more about how to upload assets to Webflow, see our [assets guide](/data/docs/working-with-assets). - + Required scope | `assets:write` source: openapi: ../../../openapi/referenced-specs/v2.yml diff --git a/.mock/definition/collections/items.yml b/.mock/definition/collections/items.yml index 57e6402d..4070517f 100644 --- a/.mock/definition/collections/items.yml +++ b/.mock/definition/collections/items.yml @@ -94,7 +94,7 @@ types: slug: type: string docs: >- - URL slug for the item in your site. + URL slug for the item in your site. Note: Updating the item slug will break all links referencing the old slug. @@ -111,7 +111,7 @@ types: slug: type: string docs: >- - URL slug for the item in your site. + URL slug for the item in your site. Note: Updating the item slug will break all links referencing the old slug. @@ -972,7 +972,7 @@ service: - cms:write docs: > Unpublish up to 100 items from the live site and set the `isDraft` - property to `true`. + property to `true`. Items will only be unpublished in the @@ -1627,7 +1627,7 @@ service: - OAuth2: - cms:write docs: | - Delete an item from a collection. + Delete an item from a collection. Required scope | `CMS:write` source: @@ -1888,7 +1888,7 @@ service: - cms:write docs: > Unpublish a live item from the site and set the `isDraft` property to - `true`. + `true`. For bulk unpublishing, please use [this diff --git a/.mock/definition/components.yml b/.mock/definition/components.yml index 3370a4f6..b6b52a93 100644 --- a/.mock/definition/components.yml +++ b/.mock/definition/components.yml @@ -533,7 +533,7 @@ types: For example, attempting to update a single-line plain-text property - with a multi-line + with a multi-line value will result in an error. source: diff --git a/.mock/definition/forms.yml b/.mock/definition/forms.yml index 08f2926b..3e90e55e 100644 --- a/.mock/definition/forms.yml +++ b/.mock/definition/forms.yml @@ -171,7 +171,7 @@ service: When a form is used in a component definition, each instance of the form is considered a unique form. - + To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint. diff --git a/.mock/definition/inventory.yml b/.mock/definition/inventory.yml index 139fa045..d95fcb80 100644 --- a/.mock/definition/inventory.yml +++ b/.mock/definition/inventory.yml @@ -54,13 +54,12 @@ service: - OAuth2: - ecommerce:write docs: > - Updates the current inventory levels for a particular SKU item. + Updates the current inventory levels for a particular SKU item. - Updates may be given in one or two methods, absolutely or - incrementally. + Updates may be given in one or two methods, absolutely or incrementally. - - Absolute updates are done by setting `quantity` directly. + - Absolute updates are done by setting `quantity` directly. - Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the diff --git a/.mock/definition/pages.yml b/.mock/definition/pages.yml index 12d954e1..e3329161 100644 --- a/.mock/definition/pages.yml +++ b/.mock/definition/pages.yml @@ -228,7 +228,7 @@ service: slug: type: optional docs: > - Slug for the page. + Slug for the page. @@ -310,7 +310,7 @@ service: docs: | Get text and component instance content from a static page. - Localization + Localization Required scope | `pages:read` source: diff --git a/.mock/definition/pages/scripts.yml b/.mock/definition/pages/scripts.yml index 59bc96a2..caeec8ab 100644 --- a/.mock/definition/pages/scripts.yml +++ b/.mock/definition/pages/scripts.yml @@ -11,7 +11,7 @@ service: - OAuth2: - custom_code:read docs: | - Get all scripts applied to a page. + Get all scripts applied to a page. Required scope | `custom_code:read` source: diff --git a/.mock/definition/products.yml b/.mock/definition/products.yml index 94749786..56ac3f4c 100644 --- a/.mock/definition/products.yml +++ b/.mock/definition/products.yml @@ -11,7 +11,7 @@ service: - OAuth2: - ecommerce:read docs: > - Retrieve all products for a site. + Retrieve all products for a site. Use `limit` and `offset` to page through all products with subsequent diff --git a/.mock/definition/sites.yml b/.mock/definition/sites.yml index ebc7cd09..ffd89d5a 100644 --- a/.mock/definition/sites.yml +++ b/.mock/definition/sites.yml @@ -11,7 +11,7 @@ service: - OAuth2: - sites:write docs: > - Create a site. + Create a site. This endpoint requires an Enterprise @@ -306,7 +306,7 @@ service: - OAuth2: - sites:write docs: > - Delete a site. + Delete a site. This endpoint requires an Enterprise @@ -338,7 +338,7 @@ service: - OAuth2: - sites:write docs: > - Update a site. + Update a site. This endpoint requires an Enterprise @@ -465,7 +465,7 @@ service: - OAuth2: - sites:write docs: > - Publishes a site to one or more more domains. + Publishes a site to one or more more domains. To publish to a specific custom domain, use the domain IDs from the [Get diff --git a/.mock/definition/sites/activityLogs.yml b/.mock/definition/sites/activityLogs.yml index 01f30f97..28aa5373 100644 --- a/.mock/definition/sites/activityLogs.yml +++ b/.mock/definition/sites/activityLogs.yml @@ -11,7 +11,7 @@ service: - OAuth2: - site_activity:read docs: > - Retrieve Activity Logs for a specific Site. + Retrieve Activity Logs for a specific Site. This endpoint requires an Enterprise diff --git a/.mock/definition/sites/forms.yml b/.mock/definition/sites/forms.yml index 27e1e1d8..9b2d8fb5 100644 --- a/.mock/definition/sites/forms.yml +++ b/.mock/definition/sites/forms.yml @@ -18,7 +18,7 @@ service: Add `elementId` when you want to filter form submissions to a specific form in a site. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list) (displayed as - `formElementId` in the response). + `formElementId` in the response). @@ -106,7 +106,7 @@ service: - OAuth2: - forms:read docs: > - List form submissions for a given form ID within a specific site. + List form submissions for a given form ID within a specific site. Use the [List Form Submissions by Site diff --git a/.mock/definition/sites/redirects.yml b/.mock/definition/sites/redirects.yml index 806117ce..350c20c7 100644 --- a/.mock/definition/sites/redirects.yml +++ b/.mock/definition/sites/redirects.yml @@ -137,7 +137,7 @@ service: docs: Unique identifier for a Site redirect_id: type: string - docs: Unique identifier site rediect + docs: Unique identifier site redirect display-name: Delete 301 redirects response: docs: Request was successful @@ -189,7 +189,7 @@ service: docs: Unique identifier for a Site redirect_id: type: string - docs: Unique identifier site rediect + docs: Unique identifier site redirect display-name: Update 301 redirect request: body: root.Redirect diff --git a/.mock/definition/sites/scripts.yml b/.mock/definition/sites/scripts.yml index 6762c85e..001f1996 100644 --- a/.mock/definition/sites/scripts.yml +++ b/.mock/definition/sites/scripts.yml @@ -11,11 +11,11 @@ service: - OAuth2: - custom_code:read docs: | - Get all scripts applied to a site by the App. + Get all scripts applied to a site by the App. To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. - + Required scope | `custom_code:read` source: @@ -167,12 +167,12 @@ service: - custom_code:read docs: > Get a list of scripts that have been applied to a site and/or individual - pages. + pages. - To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. - + To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. + See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. diff --git a/.mock/definition/sites/wellKnown.yml b/.mock/definition/sites/wellKnown.yml index 10ef3e05..90bcb3dd 100644 --- a/.mock/definition/sites/wellKnown.yml +++ b/.mock/definition/sites/wellKnown.yml @@ -29,8 +29,8 @@ service: The current restrictions on well-known files are as follows: - Each file must be smaller than 100kb - Less than 30 total files - - Have one of the following file extensions (or no extension): `.txt`, `.json`, `.noext` - + - Have one of the following file extensions (or no extension): `.txt`, `.json`, `.noext` + `.noext` is a special file extension that removes other extensions. For example, `apple-app-site-association.noext.txt` will be uploaded as `apple-app-site-association`. Use this extension for tools that have trouble uploading extensionless files. diff --git a/.mock/definition/workspaces/auditLogs.yml b/.mock/definition/workspaces/auditLogs.yml index b519105d..57b604a3 100644 --- a/.mock/definition/workspaces/auditLogs.yml +++ b/.mock/definition/workspaces/auditLogs.yml @@ -12,6 +12,7 @@ types: - workspace_membership - site_membership - workspace_invitation + - workspace_setting source: openapi: ../../../openapi/referenced-specs/v2.yml imports: diff --git a/reference.md b/reference.md index c0e0adc9..4a593acb 100644 --- a/reference.md +++ b/reference.md @@ -127,7 +127,7 @@ await client.token.introspect();
-Create a site. +Create a site. This endpoint requires an Enterprise workspace. @@ -326,7 +326,7 @@ await client.sites.get("580e63e98c9a982ac9b8b741");
-Delete a site. +Delete a site. This endpoint requires an Enterprise workspace. @@ -393,7 +393,7 @@ await client.sites.delete("580e63e98c9a982ac9b8b741");
-Update a site. +Update a site. This endpoint requires an Enterprise workspace. @@ -533,7 +533,7 @@ await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741");
-Publishes a site to one or more more domains. +Publishes a site to one or more more domains. To publish to a specific custom domain, use the domain IDs from the [Get Custom Domains](/data/reference/sites/get-custom-domain) endpoint. @@ -1149,7 +1149,7 @@ await client.pages.updatePageSettings("63c720f9347c2139b248e552", { Get text and component instance content from a static page. -Localization +Localization Required scope | `pages:read`
@@ -2129,7 +2129,7 @@ await client.assets.list("580e63e98c9a982ac9b8b741", {
-The first step in uploading an asset to a site. +The first step in uploading an asset to a site. This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`. @@ -2139,7 +2139,7 @@ Use these properties in the header of a [POST request to Amazson s3](https://doc To learn more about how to upload assets to Webflow, see our [assets guide](/data/docs/working-with-assets). - + Required scope | `assets:write`
@@ -3048,7 +3048,7 @@ List form submissions for a given form When a form is used in a component definition, each instance of the form is considered a unique form. - + To get a combined list of submissions for a form that appears across multiple component instances, use the [List Form Submissions by Site](/data/reference/forms/form-submissions/list-submissions-by-site) endpoint. @@ -3331,7 +3331,7 @@ await client.forms.updateSubmission("580e63e98c9a982ac9b8b741");
-Retrieve all products for a site. +Retrieve all products for a site. Use `limit` and `offset` to page through all products with subsequent requests. All SKUs for each product will also be fetched and returned. The `limit`, `offset` and `total` values represent Products only and do not include any SKUs. @@ -4454,10 +4454,10 @@ await client.inventory.list("6377a7c4b7a79608c34a46f7", "5e8518516e147040726cc41
-Updates the current inventory levels for a particular SKU item. +Updates the current inventory levels for a particular SKU item. -Updates may be given in one or two methods, absolutely or incrementally. -- Absolute updates are done by setting `quantity` directly. +Updates may be given in one or two methods, absolutely or incrementally. +- Absolute updates are done by setting `quantity` directly. - Incremental updates are by specifying the inventory delta in `updateQuantity` which is then added to the `quantity` stored on the server. Required scope | `ecommerce:write` @@ -5449,7 +5449,7 @@ await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
-Unpublish up to 100 items from the live site and set the `isDraft` property to `true`. +Unpublish up to 100 items from the live site and set the `isDraft` property to `true`. Items will only be unpublished in the primary locale unless a `cmsLocaleId` is included in the request. @@ -5808,7 +5808,7 @@ await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a
-Delete an item from a collection. +Delete an item from a collection. Required scope | `CMS:write`
@@ -6103,7 +6103,7 @@ await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e6400
-Unpublish a live item from the site and set the `isDraft` property to `true`. +Unpublish a live item from the site and set the `isDraft` property to `true`. For bulk unpublishing, please use [this endpoint.](/data/v2.0.0/reference/cms/collection-items/live-items/delete-items-live) @@ -6389,7 +6389,7 @@ await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
-Get all scripts applied to a page. +Get all scripts applied to a page. Required scope | `custom_code:read`
@@ -6809,7 +6809,7 @@ await client.sites.redirects.delete("580e63e98c9a982ac9b8b741", "66c4cb9a20cac35
-**redirectId:** `string` — Unique identifier site rediect +**redirectId:** `string` — Unique identifier site redirect
@@ -6888,7 +6888,7 @@ await client.sites.redirects.update("580e63e98c9a982ac9b8b741", "66c4cb9a20cac35
-**redirectId:** `string` — Unique identifier site rediect +**redirectId:** `string` — Unique identifier site redirect
@@ -7317,8 +7317,8 @@ Upload a supported well-known file to a site. The current restrictions on well-known files are as follows: - Each file must be smaller than 100kb - Less than 30 total files - - Have one of the following file extensions (or no extension): `.txt`, `.json`, `.noext` - + - Have one of the following file extensions (or no extension): `.txt`, `.json`, `.noext` + `.noext` is a special file extension that removes other extensions. For example, `apple-app-site-association.noext.txt` will be uploaded as `apple-app-site-association`. Use this extension for tools that have trouble uploading extensionless files. @@ -7476,7 +7476,7 @@ await client.sites.wellKnown.delete("580e63e98c9a982ac9b8b741");
-Retrieve Activity Logs for a specific Site. +Retrieve Activity Logs for a specific Site. This endpoint requires an Enterprise workspace. @@ -7821,11 +7821,11 @@ await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e
-Get all scripts applied to a site by the App. +Get all scripts applied to a site by the App. To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. - + Required scope | `custom_code:read`
@@ -8049,11 +8049,11 @@ await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741");
-Get a list of scripts that have been applied to a site and/or individual pages. +Get a list of scripts that have been applied to a site and/or individual pages. - To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. - + To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. + See the documentation on [working with Custom Code](/data/docs/custom-code) for more information. @@ -8134,7 +8134,7 @@ await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", { List all form submissions for a given site with the ability to filter submissions by a centralized `elementId`. -Add `elementId` when you want to filter form submissions to a specific form in a site. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list) (displayed as `formElementId` in the response). +Add `elementId` when you want to filter form submissions to a specific form in a site. You can get the `elementId` from the [List forms endpoint](/data/reference/forms/forms/list) (displayed as `formElementId` in the response). When a form is used in a Webflow component definition, each instance of the component will yield a unique form. Adding the `elementId` in this request ensures this API response includes all submissions from that core form, wherever that form is used in instantiated components. @@ -8217,7 +8217,7 @@ await client.sites.forms.listSubmissionsBySite("580e63e98c9a982ac9b8b741", {
-List form submissions for a given form ID within a specific site. +List form submissions for a given form ID within a specific site. Use the [List Form Submissions by Site endpoint](/data/reference/forms/form-submissions/list-submissions-by-site) to list form submissions for a given site with the ability to filter by a `formElementId`. diff --git a/src/api/resources/sites/resources/redirects/client/Client.ts b/src/api/resources/sites/resources/redirects/client/Client.ts index f4c843dc..50c1832d 100644 --- a/src/api/resources/sites/resources/redirects/client/Client.ts +++ b/src/api/resources/sites/resources/redirects/client/Client.ts @@ -321,7 +321,7 @@ export class Redirects { * Required scope: `sites:write` * * @param {string} siteId - Unique identifier for a Site - * @param {string} redirectId - Unique identifier site rediect + * @param {string} redirectId - Unique identifier site redirect * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -462,7 +462,7 @@ export class Redirects { * Required scope: `sites:write` * * @param {string} siteId - Unique identifier for a Site - * @param {string} redirectId - Unique identifier site rediect + * @param {string} redirectId - Unique identifier site redirect * @param {Webflow.Redirect} request * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration. * diff --git a/src/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts b/src/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts index bc462606..5e5c2879 100644 --- a/src/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts +++ b/src/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts @@ -6,6 +6,7 @@ export const AuditLogsGetWorkspaceAuditLogsRequestEventType = { WorkspaceMembership: "workspace_membership", SiteMembership: "site_membership", WorkspaceInvitation: "workspace_invitation", + WorkspaceSetting: "workspace_setting", } as const; export type AuditLogsGetWorkspaceAuditLogsRequestEventType = (typeof AuditLogsGetWorkspaceAuditLogsRequestEventType)[keyof typeof AuditLogsGetWorkspaceAuditLogsRequestEventType]; diff --git a/src/api/types/ComponentDom.ts b/src/api/types/ComponentDom.ts index 4d5d4e87..52eb12c0 100644 --- a/src/api/types/ComponentDom.ts +++ b/src/api/types/ComponentDom.ts @@ -3,7 +3,7 @@ import type * as Webflow from "../index"; /** - * The Component DOM schema represents the content structure of a component. Similar to Page DOM, it captures various content nodes and their associated attributes, but specifically for a component's structure. Each node has a unique identifier and can contain text, images, select or text inputs, submit buttons, or nested component instances. + * The Component DOM schema represents the content structure of a component. Similar to Page DOM, it captures various content nodes and their associated attributes, but specifically for a component's structure. Each node has a unique identifier and can contain text, images, select or text inputs, submit buttons, or nested component instances. */ export interface ComponentDom { /** Component ID */ diff --git a/src/api/types/ProductFieldData.ts b/src/api/types/ProductFieldData.ts index a9989fb0..314da01a 100644 --- a/src/api/types/ProductFieldData.ts +++ b/src/api/types/ProductFieldData.ts @@ -3,7 +3,7 @@ import type * as Webflow from "../index"; /** - * Contains content-specific details for a product, covering both standard (e.g., title, description) and custom fields tailored to the product setup. + * Contains content-specific details for a product, covering both standard (e.g., title, description) and custom fields tailored to the product setup. */ export interface ProductFieldData { /** Name of the Product */ diff --git a/src/api/types/SettingChange.ts b/src/api/types/SettingChange.ts new file mode 100644 index 00000000..c426238b --- /dev/null +++ b/src/api/types/SettingChange.ts @@ -0,0 +1,10 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../index"; + +export interface SettingChange { + setting?: "ai_toggle"; + previousValue?: string; + value?: string; + method?: Webflow.WorkspaceAuditLogItemPayloadSettingChangeMethod; +} diff --git a/src/api/types/SettingChangeAuditLogItem.ts b/src/api/types/SettingChangeAuditLogItem.ts new file mode 100644 index 00000000..2f8a8ed2 --- /dev/null +++ b/src/api/types/SettingChangeAuditLogItem.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../index"; + +export interface SettingChangeAuditLogItem { + eventSubType?: "setting_updated"; + payload?: Webflow.SettingChange; +} diff --git a/src/api/types/WorkspaceAuditLogItem.ts b/src/api/types/WorkspaceAuditLogItem.ts index f4fa42e5..21e2dcbb 100644 --- a/src/api/types/WorkspaceAuditLogItem.ts +++ b/src/api/types/WorkspaceAuditLogItem.ts @@ -7,7 +7,8 @@ export type WorkspaceAuditLogItem = | Webflow.WorkspaceAuditLogItem.CustomRole | Webflow.WorkspaceAuditLogItem.WorkspaceMembership | Webflow.WorkspaceAuditLogItem.SiteMembership - | Webflow.WorkspaceAuditLogItem.WorkspaceInvitation; + | Webflow.WorkspaceAuditLogItem.WorkspaceInvitation + | Webflow.WorkspaceAuditLogItem.WorkspaceSetting; export namespace WorkspaceAuditLogItem { export interface UserAccess extends Webflow.UserAccessAuditLogItem, _Base { @@ -30,6 +31,10 @@ export namespace WorkspaceAuditLogItem { eventType: "workspace_invitation"; } + export interface WorkspaceSetting extends Webflow.SettingChangeAuditLogItem, _Base { + eventType: "workspace_setting"; + } + export interface _Base { timestamp?: Date; actor?: Webflow.WorkspaceAuditLogItemActor; diff --git a/src/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts b/src/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts new file mode 100644 index 00000000..7d7067a2 --- /dev/null +++ b/src/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts @@ -0,0 +1,8 @@ +// This file was auto-generated by Fern from our API Definition. + +export const WorkspaceAuditLogItemPayloadSettingChangeMethod = { + Dashboard: "dashboard", + Admin: "admin", +} as const; +export type WorkspaceAuditLogItemPayloadSettingChangeMethod = + (typeof WorkspaceAuditLogItemPayloadSettingChangeMethod)[keyof typeof WorkspaceAuditLogItemPayloadSettingChangeMethod]; diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 767a4ff4..3f2c22d3 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -174,6 +174,8 @@ export * from "./Select"; export * from "./SelectNode"; export * from "./SelectNodeChoicesItem"; export * from "./SelectNodeWriteChoicesItem"; +export * from "./SettingChange"; +export * from "./SettingChangeAuditLogItem"; export * from "./SingleLocaleCreatedPayload"; export * from "./SingleLocaleCreatedPayloadFieldData"; export * from "./Site"; @@ -228,6 +230,7 @@ export * from "./WebhookFilter"; export * from "./WebhookList"; export * from "./WorkspaceAuditLogItem"; export * from "./WorkspaceAuditLogItemActor"; +export * from "./WorkspaceAuditLogItemPayloadSettingChangeMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipSite"; diff --git a/src/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts b/src/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts index c6826f67..44faa7cb 100644 --- a/src/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts +++ b/src/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.ts @@ -13,6 +13,7 @@ export const AuditLogsGetWorkspaceAuditLogsRequestEventType: core.serialization. "workspace_membership", "site_membership", "workspace_invitation", + "workspace_setting", ]); export declare namespace AuditLogsGetWorkspaceAuditLogsRequestEventType { @@ -21,5 +22,6 @@ export declare namespace AuditLogsGetWorkspaceAuditLogsRequestEventType { | "custom_role" | "workspace_membership" | "site_membership" - | "workspace_invitation"; + | "workspace_invitation" + | "workspace_setting"; } diff --git a/src/serialization/types/SettingChange.ts b/src/serialization/types/SettingChange.ts new file mode 100644 index 00000000..347974af --- /dev/null +++ b/src/serialization/types/SettingChange.ts @@ -0,0 +1,23 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; +import { WorkspaceAuditLogItemPayloadSettingChangeMethod } from "./WorkspaceAuditLogItemPayloadSettingChangeMethod"; + +export const SettingChange: core.serialization.ObjectSchema = + core.serialization.object({ + setting: core.serialization.stringLiteral("ai_toggle").optional(), + previousValue: core.serialization.string().optional(), + value: core.serialization.string().optional(), + method: WorkspaceAuditLogItemPayloadSettingChangeMethod.optional(), + }); + +export declare namespace SettingChange { + export interface Raw { + setting?: "ai_toggle" | null; + previousValue?: string | null; + value?: string | null; + method?: WorkspaceAuditLogItemPayloadSettingChangeMethod.Raw | null; + } +} diff --git a/src/serialization/types/SettingChangeAuditLogItem.ts b/src/serialization/types/SettingChangeAuditLogItem.ts new file mode 100644 index 00000000..e015653f --- /dev/null +++ b/src/serialization/types/SettingChangeAuditLogItem.ts @@ -0,0 +1,21 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; +import { SettingChange } from "./SettingChange"; + +export const SettingChangeAuditLogItem: core.serialization.ObjectSchema< + serializers.SettingChangeAuditLogItem.Raw, + Webflow.SettingChangeAuditLogItem +> = core.serialization.object({ + eventSubType: core.serialization.stringLiteral("setting_updated").optional(), + payload: SettingChange.optional(), +}); + +export declare namespace SettingChangeAuditLogItem { + export interface Raw { + eventSubType?: "setting_updated" | null; + payload?: SettingChange.Raw | null; + } +} diff --git a/src/serialization/types/WorkspaceAuditLogItem.ts b/src/serialization/types/WorkspaceAuditLogItem.ts index c321a594..a14d730a 100644 --- a/src/serialization/types/WorkspaceAuditLogItem.ts +++ b/src/serialization/types/WorkspaceAuditLogItem.ts @@ -4,6 +4,7 @@ import type * as Webflow from "../../api/index"; import * as core from "../../core"; import type * as serializers from "../index"; import { CustomRoleAuditLogItem } from "./CustomRoleAuditLogItem"; +import { SettingChangeAuditLogItem } from "./SettingChangeAuditLogItem"; import { SiteMembershipAuditLogItem } from "./SiteMembershipAuditLogItem"; import { UserAccessAuditLogItem } from "./UserAccessAuditLogItem"; import { WorkspaceAuditLogItemActor } from "./WorkspaceAuditLogItemActor"; @@ -26,6 +27,7 @@ export const WorkspaceAuditLogItem: core.serialization.Schema< workspace_membership: WorkspaceMembershipAuditLogItem.extend(_Base), site_membership: SiteMembershipAuditLogItem.extend(_Base), workspace_invitation: WorkspaceInvitationAuditLogItem.extend(_Base), + workspace_setting: SettingChangeAuditLogItem.extend(_Base), }) .transform({ transform: (value) => value, @@ -38,7 +40,8 @@ export declare namespace WorkspaceAuditLogItem { | WorkspaceAuditLogItem.CustomRole | WorkspaceAuditLogItem.WorkspaceMembership | WorkspaceAuditLogItem.SiteMembership - | WorkspaceAuditLogItem.WorkspaceInvitation; + | WorkspaceAuditLogItem.WorkspaceInvitation + | WorkspaceAuditLogItem.WorkspaceSetting; export interface UserAccess extends _Base, UserAccessAuditLogItem.Raw { eventType: "user_access"; @@ -60,6 +63,10 @@ export declare namespace WorkspaceAuditLogItem { eventType: "workspace_invitation"; } + export interface WorkspaceSetting extends _Base, SettingChangeAuditLogItem.Raw { + eventType: "workspace_setting"; + } + export interface _Base { timestamp?: string | null; actor?: WorkspaceAuditLogItemActor.Raw | null; diff --git a/src/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts b/src/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts new file mode 100644 index 00000000..f4985db2 --- /dev/null +++ b/src/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.ts @@ -0,0 +1,14 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Webflow from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; + +export const WorkspaceAuditLogItemPayloadSettingChangeMethod: core.serialization.Schema< + serializers.WorkspaceAuditLogItemPayloadSettingChangeMethod.Raw, + Webflow.WorkspaceAuditLogItemPayloadSettingChangeMethod +> = core.serialization.enum_(["dashboard", "admin"]); + +export declare namespace WorkspaceAuditLogItemPayloadSettingChangeMethod { + export type Raw = "dashboard" | "admin"; +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 767a4ff4..3f2c22d3 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -174,6 +174,8 @@ export * from "./Select"; export * from "./SelectNode"; export * from "./SelectNodeChoicesItem"; export * from "./SelectNodeWriteChoicesItem"; +export * from "./SettingChange"; +export * from "./SettingChangeAuditLogItem"; export * from "./SingleLocaleCreatedPayload"; export * from "./SingleLocaleCreatedPayloadFieldData"; export * from "./Site"; @@ -228,6 +230,7 @@ export * from "./WebhookFilter"; export * from "./WebhookList"; export * from "./WorkspaceAuditLogItem"; export * from "./WorkspaceAuditLogItemActor"; +export * from "./WorkspaceAuditLogItemPayloadSettingChangeMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipMethod"; export * from "./WorkspaceAuditLogItemPayloadSiteMembershipSite";