From f115eec6d5e64a88b04aab24ccf89f327f38ffcd Mon Sep 17 00:00:00 2001 From: fern-api <115122769+fern-api[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:01:53 +0000 Subject: [PATCH 1/2] SDK regeneration --- package.json | 2 +- src/api/errors/TooManyRequestsError.ts | 3 +- src/api/errors/index.ts | 2 +- .../resources/accessGroups/client/Client.ts | 12 +- src/api/resources/assets/client/Client.ts | 96 ++++- .../resources/collections/client/Client.ts | 60 ++- .../resources/fields/client/Client.ts | 24 +- .../resources/items/client/Client.ts | 148 ++++++-- src/api/resources/ecommerce/client/Client.ts | 12 +- src/api/resources/forms/client/Client.ts | 73 +++- .../requests/FormsListSubmissionsRequest.ts | 18 + .../resources/forms/client/requests/index.ts | 1 + src/api/resources/index.ts | 1 - src/api/resources/inventory/client/Client.ts | 24 +- src/api/resources/orders/client/Client.ts | 72 +++- src/api/resources/pages/client/Client.ts | 66 +++- .../pages/resources/scripts/client/Client.ts | 36 +- src/api/resources/products/client/Client.ts | 72 +++- src/api/resources/scripts/client/Client.ts | 36 +- src/api/resources/sites/client/Client.ts | 56 ++- .../resources/activityLogs/client/Client.ts | 12 +- .../sites/resources/scripts/client/Client.ts | 48 ++- src/api/resources/token/client/Client.ts | 4 +- src/api/resources/users/client/Client.ts | 60 ++- src/api/resources/webhooks/client/Client.ts | 61 ++- src/api/resources/webhooks/client/index.ts | 2 +- .../client/requests/WebhooksCreateRequest.ts | 27 -- .../webhooks/client/requests/index.ts | 1 - src/api/types/Asset.ts | 18 +- src/api/types/Form.ts | 2 + src/api/types/FormSubmissionList.ts | 2 +- src/api/types/OauthScope.ts | 10 +- src/api/types/TooManyRequestsErrorBody.ts | 10 + src/api/types/Webhook.ts | 10 +- src/api/types/WebhookFilter.ts | 11 + src/api/types/index.ts | 2 + src/serialization/resources/index.ts | 2 - .../resources/webhooks/client/index.ts | 1 - .../client/requests/WebhooksCreateRequest.ts | 25 -- .../webhooks/client/requests/index.ts | 1 - src/serialization/resources/webhooks/index.ts | 1 - src/serialization/types/Asset.ts | 18 +- src/serialization/types/Form.ts | 2 + src/serialization/types/FormSubmissionList.ts | 4 +- src/serialization/types/OauthScope.ts | 6 +- .../types/TooManyRequestsErrorBody.ts | 26 ++ src/serialization/types/Webhook.ts | 13 +- src/serialization/types/WebhookFilter.ts | 18 + src/serialization/types/index.ts | 2 + yarn.lock | 353 +++++++++--------- 50 files changed, 1121 insertions(+), 445 deletions(-) create mode 100644 src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts delete mode 100644 src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts delete mode 100644 src/api/resources/webhooks/client/requests/index.ts create mode 100644 src/api/types/TooManyRequestsErrorBody.ts create mode 100644 src/api/types/WebhookFilter.ts delete mode 100644 src/serialization/resources/webhooks/client/index.ts delete mode 100644 src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts delete mode 100644 src/serialization/resources/webhooks/client/requests/index.ts delete mode 100644 src/serialization/resources/webhooks/index.ts create mode 100644 src/serialization/types/TooManyRequestsErrorBody.ts create mode 100644 src/serialization/types/WebhookFilter.ts diff --git a/package.json b/package.json index ef55d371..a6b1ef49 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webflow-api", - "version": "2.3.5", + "version": "2.3.6", "private": false, "repository": "https://github.com/webflow/js-webflow-api", "main": "./index.js", diff --git a/src/api/errors/TooManyRequestsError.ts b/src/api/errors/TooManyRequestsError.ts index baa54df8..8b4b9421 100644 --- a/src/api/errors/TooManyRequestsError.ts +++ b/src/api/errors/TooManyRequestsError.ts @@ -3,9 +3,10 @@ */ import * as errors from "../../errors/index"; +import * as Webflow from "../index"; export class TooManyRequestsError extends errors.WebflowError { - constructor(body?: unknown) { + constructor(body: Webflow.TooManyRequestsErrorBody) { super({ message: "TooManyRequestsError", statusCode: 429, diff --git a/src/api/errors/index.ts b/src/api/errors/index.ts index 764085c5..12de3c09 100644 --- a/src/api/errors/index.ts +++ b/src/api/errors/index.ts @@ -1,7 +1,7 @@ export * from "./UnauthorizedError"; export * from "./ForbiddenError"; -export * from "./BadRequestError"; export * from "./NotFoundError"; export * from "./TooManyRequestsError"; +export * from "./BadRequestError"; export * from "./InternalServerError"; export * from "./ConflictError"; diff --git a/src/api/resources/accessGroups/client/Client.ts b/src/api/resources/accessGroups/client/Client.ts index 82bbb94c..9f302c27 100644 --- a/src/api/resources/accessGroups/client/Client.ts +++ b/src/api/resources/accessGroups/client/Client.ts @@ -74,7 +74,7 @@ export class AccessGroups { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -105,7 +105,15 @@ export class AccessGroups { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/assets/client/Client.ts b/src/api/resources/assets/client/Client.ts index 44917023..c7262cbb 100644 --- a/src/api/resources/assets/client/Client.ts +++ b/src/api/resources/assets/client/Client.ts @@ -54,7 +54,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -82,7 +82,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -142,7 +150,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -171,7 +179,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -223,7 +239,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -251,7 +267,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -303,7 +327,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -325,7 +349,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -384,7 +416,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -413,7 +445,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -465,7 +505,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -493,7 +533,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -552,7 +600,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -581,7 +629,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -636,7 +692,7 @@ export class Assets { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -664,7 +720,15 @@ export class Assets { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/collections/client/Client.ts b/src/api/resources/collections/client/Client.ts index 14fc0ca7..61ff9ba3 100644 --- a/src/api/resources/collections/client/Client.ts +++ b/src/api/resources/collections/client/Client.ts @@ -56,7 +56,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -84,7 +84,15 @@ export class Collections { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -145,7 +153,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -174,7 +182,15 @@ export class Collections { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -226,7 +242,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -254,7 +270,15 @@ export class Collections { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -306,7 +330,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -328,7 +352,15 @@ export class Collections { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -385,7 +417,7 @@ export class Collections { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -407,7 +439,15 @@ export class Collections { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/collections/resources/fields/client/Client.ts b/src/api/resources/collections/resources/fields/client/Client.ts index 4a0d8e98..4aa9228f 100644 --- a/src/api/resources/collections/resources/fields/client/Client.ts +++ b/src/api/resources/collections/resources/fields/client/Client.ts @@ -64,7 +64,7 @@ export class Fields { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -93,7 +93,15 @@ export class Fields { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -156,7 +164,7 @@ export class Fields { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -185,7 +193,15 @@ export class Fields { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/collections/resources/items/client/Client.ts b/src/api/resources/collections/resources/items/client/Client.ts index 9ce04802..5e42538e 100644 --- a/src/api/resources/collections/resources/items/client/Client.ts +++ b/src/api/resources/collections/resources/items/client/Client.ts @@ -89,7 +89,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -118,7 +118,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -145,7 +153,7 @@ export class Items { } /** - * Create Item in a Collection.

To create items across multiple locales, please use this endpoint.

Required scope | `CMS:write` + * Create Item in a Collection.

To create items across multiple locales, please use the bulk item endpoint.

Required scope | CMS:write * * @param {string} collectionId - Unique identifier for a Collection * @param {Webflow.CollectionItem} request @@ -187,7 +195,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -210,7 +218,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -297,7 +313,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -326,7 +342,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -395,7 +419,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -418,7 +442,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -477,7 +509,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -502,7 +534,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -567,7 +607,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -596,7 +636,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -661,7 +709,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -684,7 +732,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -755,7 +811,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -784,7 +840,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -849,7 +913,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -878,7 +942,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -905,7 +977,7 @@ export class Items { } /** - * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.

Required scope | `CMS:write` + * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.

Required scope | `CMS:write` * * @param {string} collectionId - Unique identifier for a Collection * @param {string} itemId - Unique identifier for an Item @@ -943,7 +1015,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -966,7 +1038,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -1037,7 +1117,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1066,7 +1146,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -1125,7 +1213,7 @@ export class Items { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -1150,7 +1238,15 @@ export class Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/ecommerce/client/Client.ts b/src/api/resources/ecommerce/client/Client.ts index 4ce73086..b0ada75d 100644 --- a/src/api/resources/ecommerce/client/Client.ts +++ b/src/api/resources/ecommerce/client/Client.ts @@ -61,7 +61,7 @@ export class Ecommerce { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -93,7 +93,15 @@ export class Ecommerce { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/forms/client/Client.ts b/src/api/resources/forms/client/Client.ts index 90cf065e..71c06aba 100644 --- a/src/api/resources/forms/client/Client.ts +++ b/src/api/resources/forms/client/Client.ts @@ -71,7 +71,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -104,7 +104,15 @@ export class Forms { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -157,7 +165,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -187,7 +195,15 @@ export class Forms { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -217,6 +233,7 @@ export class Forms { * List form submissions for a given form

Required scope | `forms:read` * * @param {string} formId - Unique identifier for a Form + * @param {Webflow.FormsListSubmissionsRequest} request * @param {Forms.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -231,8 +248,19 @@ export class Forms { */ public async listSubmissions( formId: string, + request: Webflow.FormsListSubmissionsRequest = {}, requestOptions?: Forms.RequestOptions ): Promise { + const { offset, limit } = request; + const _queryParams: Record = {}; + if (offset != null) { + _queryParams["offset"] = offset.toString(); + } + + if (limit != null) { + _queryParams["limit"] = limit.toString(); + } + const _response = await core.fetcher({ url: urlJoin( (await core.Supplier.get(this._options.environment)) ?? environments.WebflowEnvironment.Default, @@ -243,11 +271,12 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", + queryParameters: _queryParams, timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -273,7 +302,15 @@ export class Forms { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -329,7 +366,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -359,7 +396,15 @@ export class Forms { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -418,7 +463,7 @@ export class Forms { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -453,7 +498,15 @@ export class Forms { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts b/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts new file mode 100644 index 00000000..68766ac2 --- /dev/null +++ b/src/api/resources/forms/client/requests/FormsListSubmissionsRequest.ts @@ -0,0 +1,18 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * @example + * {} + */ +export interface FormsListSubmissionsRequest { + /** + * 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; +} diff --git a/src/api/resources/forms/client/requests/index.ts b/src/api/resources/forms/client/requests/index.ts index fb48db20..b3189128 100644 --- a/src/api/resources/forms/client/requests/index.ts +++ b/src/api/resources/forms/client/requests/index.ts @@ -1,2 +1,3 @@ export { type FormsListRequest } from "./FormsListRequest"; +export { type FormsListSubmissionsRequest } from "./FormsListSubmissionsRequest"; export { type FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest"; diff --git a/src/api/resources/index.ts b/src/api/resources/index.ts index 6b1e862e..d1e4bb57 100644 --- a/src/api/resources/index.ts +++ b/src/api/resources/index.ts @@ -23,7 +23,6 @@ export * from "./collections/client/requests"; export * from "./pages/client/requests"; export * from "./scripts/client/requests"; export * from "./assets/client/requests"; -export * from "./webhooks/client/requests"; export * from "./forms/client/requests"; export * from "./users/client/requests"; export * from "./accessGroups/client/requests"; diff --git a/src/api/resources/inventory/client/Client.ts b/src/api/resources/inventory/client/Client.ts index 8cf247db..7c782d3b 100644 --- a/src/api/resources/inventory/client/Client.ts +++ b/src/api/resources/inventory/client/Client.ts @@ -63,7 +63,7 @@ export class Inventory { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -95,7 +95,15 @@ export class Inventory { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -160,7 +168,7 @@ export class Inventory { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -193,7 +201,15 @@ export class Inventory { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/orders/client/Client.ts b/src/api/resources/orders/client/Client.ts index 2e83074d..454c9b02 100644 --- a/src/api/resources/orders/client/Client.ts +++ b/src/api/resources/orders/client/Client.ts @@ -77,7 +77,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -110,7 +110,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -167,7 +175,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -199,7 +207,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -262,7 +278,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -295,7 +311,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -358,7 +382,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -393,7 +417,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -454,7 +486,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -486,7 +518,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -550,7 +590,7 @@ export class Orders { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -583,7 +623,15 @@ export class Orders { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/pages/client/Client.ts b/src/api/resources/pages/client/Client.ts index 5e2be08b..8a232573 100644 --- a/src/api/resources/pages/client/Client.ts +++ b/src/api/resources/pages/client/Client.ts @@ -74,7 +74,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -103,7 +103,15 @@ export class Pages { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -166,7 +174,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -195,7 +203,15 @@ export class Pages { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -282,7 +298,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -312,7 +328,15 @@ export class Pages { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -384,7 +408,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -415,7 +439,15 @@ export class Pages { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -442,7 +474,11 @@ export class Pages { } /** - * Update static content on a static page. This endpoint supports sending 1000 nodes per request.

Required scope | `pages:write` + * This endpoint allows for updating static content on a static page within a secondary locale. It is designed specifically for localized pages and can handle up to 1000 nodes per request. + * + *

Note:This endpoint is specifically for localized pages. Ensure that the locale specified is a valid secondary locale for the site.

+ * + * Required scope | `pages:write` * * @param {string} pageId - Unique identifier for a Page * @param {Webflow.DomWrite} request @@ -488,7 +524,7 @@ export class Pages { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -520,7 +556,15 @@ export class Pages { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/pages/resources/scripts/client/Client.ts b/src/api/resources/pages/resources/scripts/client/Client.ts index 382afc12..20a0781c 100644 --- a/src/api/resources/pages/resources/scripts/client/Client.ts +++ b/src/api/resources/pages/resources/scripts/client/Client.ts @@ -57,7 +57,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -85,7 +85,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -155,7 +163,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -184,7 +192,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -236,7 +252,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -258,7 +274,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/products/client/Client.ts b/src/api/resources/products/client/Client.ts index c2e0b7b5..d784f418 100644 --- a/src/api/resources/products/client/Client.ts +++ b/src/api/resources/products/client/Client.ts @@ -73,7 +73,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -106,7 +106,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -173,7 +181,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -206,7 +214,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -267,7 +283,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -299,7 +315,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -362,7 +386,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -395,7 +419,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -462,7 +494,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -495,7 +527,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -564,7 +604,7 @@ export class Products { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -597,7 +637,15 @@ export class Products { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/scripts/client/Client.ts b/src/api/resources/scripts/client/Client.ts index 85449735..ab04dafe 100644 --- a/src/api/resources/scripts/client/Client.ts +++ b/src/api/resources/scripts/client/Client.ts @@ -54,7 +54,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -82,7 +82,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -144,7 +152,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -173,7 +181,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -234,7 +250,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -263,7 +279,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/sites/client/Client.ts b/src/api/resources/sites/client/Client.ts index 069cdc43..8ae993d0 100644 --- a/src/api/resources/sites/client/Client.ts +++ b/src/api/resources/sites/client/Client.ts @@ -35,11 +35,9 @@ export class Sites { * * @param {Sites.RequestOptions} requestOptions - Request-specific configuration. * - * @throws {@link Webflow.BadRequestError} * @throws {@link Webflow.UnauthorizedError} * @throws {@link Webflow.NotFoundError} * @throws {@link Webflow.TooManyRequestsError} - * @throws {@link Webflow.InternalServerError} * * @example * await client.sites.list() @@ -55,7 +53,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -76,16 +74,20 @@ export class Sites { if (_response.error.reason === "status-code") { switch (_response.error.statusCode) { - case 400: - throw new Webflow.BadRequestError(_response.error.body); case 401: throw new Webflow.UnauthorizedError(_response.error.body); case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); - case 500: - throw new Webflow.InternalServerError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.WebflowError({ statusCode: _response.error.statusCode, @@ -135,7 +137,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -163,7 +165,15 @@ export class Sites { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -215,7 +225,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -243,7 +253,15 @@ export class Sites { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -270,7 +288,7 @@ export class Sites { } /** - * Publish a site to one more more domains.

Required scope | `sites:write` + * Publish a site to one more more domains.

Required scope | `sites:write`

📘

Endpoint-specific rate limit

This endpoint has a limit of one successful publish queue per minute.

* * @param {string} siteId - Unique identifier for a Site * @param {Webflow.SitesPublishRequest} request @@ -300,7 +318,7 @@ export class Sites { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -325,7 +343,15 @@ export class Sites { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); default: throw new errors.WebflowError({ statusCode: _response.error.statusCode, diff --git a/src/api/resources/sites/resources/activityLogs/client/Client.ts b/src/api/resources/sites/resources/activityLogs/client/Client.ts index e7b88510..90d79bd9 100644 --- a/src/api/resources/sites/resources/activityLogs/client/Client.ts +++ b/src/api/resources/sites/resources/activityLogs/client/Client.ts @@ -68,7 +68,7 @@ export class ActivityLogs { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -95,7 +95,15 @@ export class ActivityLogs { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/sites/resources/scripts/client/Client.ts b/src/api/resources/sites/resources/scripts/client/Client.ts index 56a4dc77..3150517d 100644 --- a/src/api/resources/sites/resources/scripts/client/Client.ts +++ b/src/api/resources/sites/resources/scripts/client/Client.ts @@ -57,7 +57,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -85,7 +85,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -155,7 +163,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -184,7 +192,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -236,7 +252,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -258,7 +274,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -325,7 +349,7 @@ export class Scripts { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -354,7 +378,15 @@ export class Scripts { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/token/client/Client.ts b/src/api/resources/token/client/Client.ts index f9e14dae..6343d00c 100644 --- a/src/api/resources/token/client/Client.ts +++ b/src/api/resources/token/client/Client.ts @@ -50,7 +50,7 @@ export class Token { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -119,7 +119,7 @@ export class Token { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, diff --git a/src/api/resources/users/client/Client.ts b/src/api/resources/users/client/Client.ts index 7e6a3e2e..6b8f1991 100644 --- a/src/api/resources/users/client/Client.ts +++ b/src/api/resources/users/client/Client.ts @@ -74,7 +74,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -105,7 +105,15 @@ export class Users { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -159,7 +167,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -189,7 +197,15 @@ export class Users { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -243,7 +259,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -267,7 +283,15 @@ export class Users { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -336,7 +360,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -367,7 +391,15 @@ export class Users { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -429,7 +461,7 @@ export class Users { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -462,7 +494,15 @@ export class Users { case 409: throw new Webflow.ConflictError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/webhooks/client/Client.ts b/src/api/resources/webhooks/client/Client.ts index ec07c60d..7b0124b7 100644 --- a/src/api/resources/webhooks/client/Client.ts +++ b/src/api/resources/webhooks/client/Client.ts @@ -54,7 +54,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -82,7 +82,15 @@ export class Webhooks { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -112,7 +120,7 @@ export class Webhooks { * Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site.
Access to this endpoint requires a bearer token from a Data Client App.
Required scope | `sites:write` * * @param {string} siteId - Unique identifier for a Site - * @param {Webflow.WebhooksCreateRequest} request + * @param {Webflow.Webhook} request * @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Webflow.BadRequestError} @@ -123,13 +131,18 @@ export class Webhooks { * * @example * await client.webhooks.create("site_id", { + * id: "582266e0cd48de0f0e3c6d8b", * triggerType: Webflow.TriggerType.FormSubmission, - * url: "https://api.mydomain.com/webhook" + * url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f", + * workspaceId: "4f4e46fd476ea8c507000001", + * siteId: "562ac0395358780a1f5e6fbd", + * lastTriggered: new Date("2023-02-08T23:59:28.000Z"), + * createdOn: new Date("2022-11-08T23:59:28.000Z") * }) */ public async create( siteId: string, - request: Webflow.WebhooksCreateRequest, + request: Webflow.Webhook, requestOptions?: Webhooks.RequestOptions ): Promise { const _response = await core.fetcher({ @@ -142,12 +155,12 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", - body: await serializers.WebhooksCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), + body: await serializers.Webhook.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, abortSignal: requestOptions?.abortSignal, @@ -171,7 +184,15 @@ export class Webhooks { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -223,7 +244,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -251,7 +272,15 @@ export class Webhooks { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: @@ -303,7 +332,7 @@ export class Webhooks { Authorization: await this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", - "X-Fern-SDK-Version": "2.3.5", + "X-Fern-SDK-Version": "2.3.6", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version, }, @@ -325,7 +354,15 @@ export class Webhooks { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: diff --git a/src/api/resources/webhooks/client/index.ts b/src/api/resources/webhooks/client/index.ts index 415726b7..cb0ff5c3 100644 --- a/src/api/resources/webhooks/client/index.ts +++ b/src/api/resources/webhooks/client/index.ts @@ -1 +1 @@ -export * from "./requests"; +export {}; diff --git a/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts b/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts deleted file mode 100644 index da942167..00000000 --- a/src/api/resources/webhooks/client/requests/WebhooksCreateRequest.ts +++ /dev/null @@ -1,27 +0,0 @@ -/** - * This file was auto-generated by Fern from our API Definition. - */ - -import * as Webflow from "../../../../index"; - -/** - * @example - * { - * triggerType: Webflow.TriggerType.FormSubmission, - * url: "https://api.mydomain.com/webhook" - * } - */ -export interface WebhooksCreateRequest { - triggerType: Webflow.TriggerType; - /** - * The server URI that Webflow will call when your Webhook is triggered - * - */ - url: string; - /** - * Filter for selecting which events you want Webhooks to be triggered for. - * ** Only available for `form_submission` trigger types. ** - * - */ - filter?: Record; -} diff --git a/src/api/resources/webhooks/client/requests/index.ts b/src/api/resources/webhooks/client/requests/index.ts deleted file mode 100644 index 321638de..00000000 --- a/src/api/resources/webhooks/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { type WebhooksCreateRequest } from "./WebhooksCreateRequest"; diff --git a/src/api/types/Asset.ts b/src/api/types/Asset.ts index 6ecaf64c..73d237e5 100644 --- a/src/api/types/Asset.ts +++ b/src/api/types/Asset.ts @@ -7,21 +7,23 @@ import * as Webflow from "../index"; export interface Asset { /** Unique identifier for this asset */ id?: string; - /** Original file name at the time of upload */ - originalFileName?: string; - /** Display name of the asset */ - displayName?: string; /** File format type */ contentType?: string; /** size in bytes */ size?: number; /** Unique identifier for the site that hosts this asset */ siteId?: string; - /** Date the asset metadata was created */ - createdOn?: Date; - /** Date the asset metadata was last updated */ - lastUpdated?: Date; /** Link to the asset */ hostedUrl?: string; + /** Original file name at the time of upload */ + originalFileName?: string; + /** Display name of the asset */ + displayName?: string; + /** Date the asset metadata was last updated */ + lastUpdated?: Date; + /** Date the asset metadata was created */ + createdOn?: Date; variants?: Webflow.AssetVariant[]; + /** The visual description of the asset */ + altText?: string; } diff --git a/src/api/types/Form.ts b/src/api/types/Form.ts index 472ffd76..52ea2338 100644 --- a/src/api/types/Form.ts +++ b/src/api/types/Form.ts @@ -28,6 +28,8 @@ export interface Form { pageId?: string; /** The user-visible name of the Page where the Form is placed */ pageName?: string; + /** The unique id of the Form element */ + formElementId?: string; /** The unique id of the Workspace the Site belongs to */ workspaceId?: string; } diff --git a/src/api/types/FormSubmissionList.ts b/src/api/types/FormSubmissionList.ts index b683f59d..0b55b4fb 100644 --- a/src/api/types/FormSubmissionList.ts +++ b/src/api/types/FormSubmissionList.ts @@ -5,6 +5,6 @@ import * as Webflow from "../index"; export interface FormSubmissionList { - submissions?: Webflow.FormSubmission[]; + formSubmissions?: Webflow.FormSubmission[]; pagination?: Webflow.Pagination; } diff --git a/src/api/types/OauthScope.ts b/src/api/types/OauthScope.ts index 0fc2b273..479d394a 100644 --- a/src/api/types/OauthScope.ts +++ b/src/api/types/OauthScope.ts @@ -62,7 +62,13 @@ export type OauthScope = | "workspace:read" /** * write workspace resource data */ - | "workspace:write"; + | "workspace:write" + /** + * read site configuration data */ + | "site_config:read" + /** + * write site configuration data */ + | "site_config:write"; export const OauthScope = { AuthorizedUserRead: "authorized_user:read", @@ -85,4 +91,6 @@ export const OauthScope = { UsersWrite: "users:write", WorkspaceRead: "workspace:read", WorkspaceWrite: "workspace:write", + SiteConfigRead: "site_config:read", + SiteConfigWrite: "site_config:write", } as const; diff --git a/src/api/types/TooManyRequestsErrorBody.ts b/src/api/types/TooManyRequestsErrorBody.ts new file mode 100644 index 00000000..bda6fafb --- /dev/null +++ b/src/api/types/TooManyRequestsErrorBody.ts @@ -0,0 +1,10 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +export interface TooManyRequestsErrorBody { + message?: string; + code?: string; + externalReference?: string; + details?: unknown[]; +} diff --git a/src/api/types/Webhook.ts b/src/api/types/Webhook.ts index 09b7556d..e68efb78 100644 --- a/src/api/types/Webhook.ts +++ b/src/api/types/Webhook.ts @@ -7,17 +7,17 @@ import * as Webflow from "../index"; export interface Webhook { /** Unique identifier for the Webhook registration */ id?: string; + triggerType?: Webflow.TriggerType; + /** URL to send the Webhook payload to */ + url?: string; /** Unique identifier for the Workspace the Webhook is registered in */ workspaceId?: string; /** Unique identifier for the Site the Webhook is registered in */ siteId?: string; - triggerType?: Webflow.TriggerType; - /** Filter for selecting which events you want Webhooks to be sent for. Only supported for form_submission trigger types. */ - filter?: Record; + /** Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. */ + filter?: Webflow.WebhookFilter; /** Date the Webhook instance was last triggered */ lastTriggered?: Date; /** Date the Webhook registration was created */ createdOn?: Date; - /** URL to send the Webhook payload to */ - url?: string; } diff --git a/src/api/types/WebhookFilter.ts b/src/api/types/WebhookFilter.ts new file mode 100644 index 00000000..36b41efb --- /dev/null +++ b/src/api/types/WebhookFilter.ts @@ -0,0 +1,11 @@ +/** + * This file was auto-generated by Fern from our API Definition. + */ + +/** + * Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. + */ +export interface WebhookFilter { + /** The name of the form you'd like to recieve notifications for. */ + name?: string; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 43dad6d5..ad6ecd4f 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -1,5 +1,6 @@ export * from "./OauthScope"; export * from "./ForbiddenErrorBody"; +export * from "./TooManyRequestsErrorBody"; export * from "./BadRequestErrorBody"; export * from "./ConflictErrorBody"; export * from "./AuthorizedUser"; @@ -63,6 +64,7 @@ export * from "./AssetUpload"; export * from "./AssetFolder"; export * from "./AssetFolderList"; export * from "./TriggerType"; +export * from "./WebhookFilter"; export * from "./Webhook"; export * from "./WebhookList"; export * from "./FormFieldValueType"; diff --git a/src/serialization/resources/index.ts b/src/serialization/resources/index.ts index a0e9fbd9..a0e25145 100644 --- a/src/serialization/resources/index.ts +++ b/src/serialization/resources/index.ts @@ -19,8 +19,6 @@ export * as scripts from "./scripts"; export * from "./scripts/client/requests"; export * as assets from "./assets"; export * from "./assets/client/requests"; -export * as webhooks from "./webhooks"; -export * from "./webhooks/client/requests"; export * as forms from "./forms"; export * from "./forms/client/requests"; export * from "./users/client/requests"; diff --git a/src/serialization/resources/webhooks/client/index.ts b/src/serialization/resources/webhooks/client/index.ts deleted file mode 100644 index 415726b7..00000000 --- a/src/serialization/resources/webhooks/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./requests"; diff --git a/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts b/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts deleted file mode 100644 index 7912cca0..00000000 --- a/src/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.ts +++ /dev/null @@ -1,25 +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 { TriggerType } from "../../../../types/TriggerType"; - -export const WebhooksCreateRequest: core.serialization.Schema< - serializers.WebhooksCreateRequest.Raw, - Webflow.WebhooksCreateRequest -> = core.serialization.object({ - triggerType: TriggerType, - url: core.serialization.string(), - filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), -}); - -export declare namespace WebhooksCreateRequest { - interface Raw { - triggerType: TriggerType.Raw; - url: string; - filter?: Record | null; - } -} diff --git a/src/serialization/resources/webhooks/client/requests/index.ts b/src/serialization/resources/webhooks/client/requests/index.ts deleted file mode 100644 index f7f7b70d..00000000 --- a/src/serialization/resources/webhooks/client/requests/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { WebhooksCreateRequest } from "./WebhooksCreateRequest"; diff --git a/src/serialization/resources/webhooks/index.ts b/src/serialization/resources/webhooks/index.ts deleted file mode 100644 index 5ec76921..00000000 --- a/src/serialization/resources/webhooks/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./client"; diff --git a/src/serialization/types/Asset.ts b/src/serialization/types/Asset.ts index 656b4db3..12f39e6a 100644 --- a/src/serialization/types/Asset.ts +++ b/src/serialization/types/Asset.ts @@ -9,28 +9,30 @@ import { AssetVariant } from "./AssetVariant"; export const Asset: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string().optional(), - originalFileName: core.serialization.string().optional(), - displayName: core.serialization.string().optional(), contentType: core.serialization.string().optional(), size: core.serialization.number().optional(), siteId: core.serialization.string().optional(), - createdOn: core.serialization.date().optional(), - lastUpdated: core.serialization.date().optional(), hostedUrl: core.serialization.string().optional(), + originalFileName: core.serialization.string().optional(), + displayName: core.serialization.string().optional(), + lastUpdated: core.serialization.date().optional(), + createdOn: core.serialization.date().optional(), variants: core.serialization.list(AssetVariant).optional(), + altText: core.serialization.string().optional(), }); export declare namespace Asset { interface Raw { id?: string | null; - originalFileName?: string | null; - displayName?: string | null; contentType?: string | null; size?: number | null; siteId?: string | null; - createdOn?: string | null; - lastUpdated?: string | null; hostedUrl?: string | null; + originalFileName?: string | null; + displayName?: string | null; + lastUpdated?: string | null; + createdOn?: string | null; variants?: AssetVariant.Raw[] | null; + altText?: string | null; } } diff --git a/src/serialization/types/Form.ts b/src/serialization/types/Form.ts index 4acc6171..084d23c2 100644 --- a/src/serialization/types/Form.ts +++ b/src/serialization/types/Form.ts @@ -20,6 +20,7 @@ export const Form: core.serialization.ObjectSchema = core.serialization.object({ - submissions: core.serialization.list(FormSubmission).optional(), + formSubmissions: core.serialization.list(FormSubmission).optional(), pagination: Pagination.optional(), }); export declare namespace FormSubmissionList { interface Raw { - submissions?: FormSubmission.Raw[] | null; + formSubmissions?: FormSubmission.Raw[] | null; pagination?: Pagination.Raw | null; } } diff --git a/src/serialization/types/OauthScope.ts b/src/serialization/types/OauthScope.ts index f35db81b..3d89a465 100644 --- a/src/serialization/types/OauthScope.ts +++ b/src/serialization/types/OauthScope.ts @@ -28,6 +28,8 @@ export const OauthScope: core.serialization.Schema = core.serialization.object({ + message: core.serialization.string().optional(), + code: core.serialization.string().optional(), + externalReference: core.serialization.string().optional(), + details: core.serialization.list(core.serialization.unknown()).optional(), +}); + +export declare namespace TooManyRequestsErrorBody { + interface Raw { + message?: string | null; + code?: string | null; + externalReference?: string | null; + details?: unknown[] | null; + } +} diff --git a/src/serialization/types/Webhook.ts b/src/serialization/types/Webhook.ts index 25873743..e2a2b227 100644 --- a/src/serialization/types/Webhook.ts +++ b/src/serialization/types/Webhook.ts @@ -6,28 +6,29 @@ import * as serializers from "../index"; import * as Webflow from "../../api/index"; import * as core from "../../core"; import { TriggerType } from "./TriggerType"; +import { WebhookFilter } from "./WebhookFilter"; export const Webhook: core.serialization.ObjectSchema = core.serialization.object({ id: core.serialization.string().optional(), + triggerType: TriggerType.optional(), + url: core.serialization.string().optional(), workspaceId: core.serialization.string().optional(), siteId: core.serialization.string().optional(), - triggerType: TriggerType.optional(), - filter: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + filter: WebhookFilter.optional(), lastTriggered: core.serialization.date().optional(), createdOn: core.serialization.date().optional(), - url: core.serialization.string().optional(), }); export declare namespace Webhook { interface Raw { id?: string | null; + triggerType?: TriggerType.Raw | null; + url?: string | null; workspaceId?: string | null; siteId?: string | null; - triggerType?: TriggerType.Raw | null; - filter?: Record | null; + filter?: WebhookFilter.Raw | null; lastTriggered?: string | null; createdOn?: string | null; - url?: string | null; } } diff --git a/src/serialization/types/WebhookFilter.ts b/src/serialization/types/WebhookFilter.ts new file mode 100644 index 00000000..6e0a51ad --- /dev/null +++ b/src/serialization/types/WebhookFilter.ts @@ -0,0 +1,18 @@ +/** + * 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 WebhookFilter: core.serialization.ObjectSchema = + core.serialization.object({ + name: core.serialization.string().optional(), + }); + +export declare namespace WebhookFilter { + interface Raw { + name?: string | null; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 43dad6d5..ad6ecd4f 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -1,5 +1,6 @@ export * from "./OauthScope"; export * from "./ForbiddenErrorBody"; +export * from "./TooManyRequestsErrorBody"; export * from "./BadRequestErrorBody"; export * from "./ConflictErrorBody"; export * from "./AuthorizedUser"; @@ -63,6 +64,7 @@ export * from "./AssetUpload"; export * from "./AssetFolder"; export * from "./AssetFolderList"; export * from "./TriggerType"; +export * from "./WebhookFilter"; export * from "./Webhook"; export * from "./WebhookList"; export * from "./FormFieldValueType"; diff --git a/yarn.lock b/yarn.lock index 3c6e4286..2354fe4f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -18,75 +18,53 @@ "@babel/highlight" "^7.24.7" picocolors "^1.0.0" -"@babel/compat-data@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed" - integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw== +"@babel/compat-data@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.25.2.tgz#e41928bd33475305c586f6acbbb7e3ade7a6f7f5" + integrity sha512-bYcppcpKBvX4znYaPEeFau03bp89ShqNMLs+rmdptMw+heSZh9+z84d2YG+K7cYLbWwzdjtDoW/uqZmPjulClQ== "@babel/core@^7.11.6", "@babel/core@^7.12.3", "@babel/core@^7.23.9": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4" - integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g== + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.25.2.tgz#ed8eec275118d7613e77a352894cd12ded8eba77" + integrity sha512-BBt3opiCOxUr9euZ5/ro/Xv8/V7yJ5bjYMqG/C1YAo8MIKAnumZalCN+msbci3Pigy4lIQfPUpfMM27HMGaYEA== dependencies: "@ampproject/remapping" "^2.2.0" "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.7" - "@babel/helper-compilation-targets" "^7.24.7" - "@babel/helper-module-transforms" "^7.24.7" - "@babel/helpers" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/template" "^7.24.7" - "@babel/traverse" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/generator" "^7.25.0" + "@babel/helper-compilation-targets" "^7.25.2" + "@babel/helper-module-transforms" "^7.25.2" + "@babel/helpers" "^7.25.0" + "@babel/parser" "^7.25.0" + "@babel/template" "^7.25.0" + "@babel/traverse" "^7.25.2" + "@babel/types" "^7.25.2" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.7", "@babel/generator@^7.7.2": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d" - integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA== +"@babel/generator@^7.25.0", "@babel/generator@^7.7.2": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.25.0.tgz#f858ddfa984350bc3d3b7f125073c9af6988f18e" + integrity sha512-3LEEcj3PVW8pW2R1SR1M89g/qrYk/m/mB/tLqn7dn4sbBUQyTqnlod+II2U4dqiGtUmkcnAmkMDralTFZttRiw== dependencies: - "@babel/types" "^7.24.7" + "@babel/types" "^7.25.0" "@jridgewell/gen-mapping" "^0.3.5" "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9" - integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg== +"@babel/helper-compilation-targets@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.25.2.tgz#e1d9410a90974a3a5a66e84ff55ef62e3c02d06c" + integrity sha512-U2U5LsSaZ7TAt3cfaymQ8WHh0pxvdHoEk6HVpaexxixjyEquMh0L0YNJNM6CTGKMXV1iksi0iZkGw4AcFkPaaw== dependencies: - "@babel/compat-data" "^7.24.7" - "@babel/helper-validator-option" "^7.24.7" - browserslist "^4.22.2" + "@babel/compat-data" "^7.25.2" + "@babel/helper-validator-option" "^7.24.8" + browserslist "^4.23.1" lru-cache "^5.1.1" semver "^6.3.1" -"@babel/helper-environment-visitor@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" - integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-function-name@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" - integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== - dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" - -"@babel/helper-hoist-variables@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" - integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== - dependencies: - "@babel/types" "^7.24.7" - "@babel/helper-module-imports@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" @@ -95,21 +73,20 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8" - integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ== +"@babel/helper-module-transforms@^7.25.2": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.25.2.tgz#ee713c29768100f2776edf04d4eb23b8d27a66e6" + integrity sha512-BjyRAbix6j/wv83ftcVJmBt72QtHI56C7JXZoG2xATiLpmoC7dpd8WnkikExHDVPpi/3qCmO6WY1EaXOluiecQ== dependencies: - "@babel/helper-environment-visitor" "^7.24.7" "@babel/helper-module-imports" "^7.24.7" "@babel/helper-simple-access" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" "@babel/helper-validator-identifier" "^7.24.7" + "@babel/traverse" "^7.25.2" "@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.8.0": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.7.tgz#98c84fe6fe3d0d3ae7bfc3a5e166a46844feb2a0" - integrity sha512-Rq76wjt7yz9AAc1KnlRKNAi/dMSVWgDRx43FHoJEbcYU6xOWaE2dVPwcdTukJrjxS65GITyfbvEYHvkirZ6uEg== + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" + integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== "@babel/helper-simple-access@^7.24.7": version "7.24.7" @@ -119,35 +96,28 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-split-export-declaration@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" - integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== - dependencies: - "@babel/types" "^7.24.7" - -"@babel/helper-string-parser@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.7.tgz#4d2d0f14820ede3b9807ea5fc36dfc8cd7da07f2" - integrity sha512-7MbVt6xrwFQbunH2DNQsAP5sTGxfqQtErvBIvIMi6EQnbgUOuVYanvREcmFrOPhoXBrTtjhhP+lW+o5UfK+tDg== +"@babel/helper-string-parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== "@babel/helper-validator-identifier@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== -"@babel/helper-validator-option@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6" - integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw== +"@babel/helper-validator-option@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" + integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== -"@babel/helpers@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416" - integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg== +"@babel/helpers@^7.25.0": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.25.0.tgz#e69beb7841cb93a6505531ede34f34e6a073650a" + integrity sha512-MjgLZ42aCm0oGjJj8CtSM3DB8NOOf8h2l7DCTePJs29u+v7yO/RBX9nShlKMgFnRks/Q4tBAe7Hxnov9VkGwLw== dependencies: - "@babel/template" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.0" "@babel/highlight@^7.24.7": version "7.24.7" @@ -159,10 +129,12 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85" - integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw== +"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.23.9", "@babel/parser@^7.25.0", "@babel/parser@^7.25.3": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.25.3.tgz#91fb126768d944966263f0657ab222a642b82065" + integrity sha512-iLTJKDbJ4hMvFPgQwwsVoxtHyWpKKPBrxkANrSYewDPaPpT5py5yeVkgPIJ7XYXhndxJpaA3PyALSXQ7u8e/Dw== + dependencies: + "@babel/types" "^7.25.2" "@babel/plugin-syntax-async-generators@^7.8.4": version "7.8.4" @@ -178,14 +150,28 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-class-properties@^7.8.3": +"@babel/plugin-syntax-class-properties@^7.12.13": version "7.12.13" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== dependencies: "@babel/helper-plugin-utils" "^7.12.13" -"@babel/plugin-syntax-import-meta@^7.8.3": +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-import-attributes@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" + integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-syntax-import-meta@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== @@ -206,7 +192,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/plugin-syntax-logical-assignment-operators@^7.8.3": +"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== @@ -220,7 +206,7 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-numeric-separator@^7.8.3": +"@babel/plugin-syntax-numeric-separator@^7.10.4": version "7.10.4" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== @@ -248,7 +234,14 @@ dependencies: "@babel/helper-plugin-utils" "^7.8.0" -"@babel/plugin-syntax-top-level-await@^7.8.3": +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": version "7.14.5" resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== @@ -262,37 +255,34 @@ dependencies: "@babel/helper-plugin-utils" "^7.24.7" -"@babel/template@^7.24.7", "@babel/template@^7.3.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" - integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== +"@babel/template@^7.25.0", "@babel/template@^7.3.3": + version "7.25.0" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.25.0.tgz#e733dc3134b4fede528c15bc95e89cb98c52592a" + integrity sha512-aOOgh1/5XzKvg1jvVz7AVrx2piJ2XBi227DHmbY6y+bM9H2FlN+IfecYu4Xl0cNiiVejlsCri89LUsbj8vJD9Q== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/parser" "^7.25.0" + "@babel/types" "^7.25.0" -"@babel/traverse@^7.24.7": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5" - integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA== +"@babel/traverse@^7.24.7", "@babel/traverse@^7.25.2": + version "7.25.3" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.25.3.tgz#f1b901951c83eda2f3e29450ce92743783373490" + integrity sha512-HefgyP1x754oGCsKmV5reSmtV7IXj/kpaE1XYY+D9G5PvKKoFfSbiS4M77MdjuwlZKDIKFCffq9rPU+H/s3ZdQ== dependencies: "@babel/code-frame" "^7.24.7" - "@babel/generator" "^7.24.7" - "@babel/helper-environment-visitor" "^7.24.7" - "@babel/helper-function-name" "^7.24.7" - "@babel/helper-hoist-variables" "^7.24.7" - "@babel/helper-split-export-declaration" "^7.24.7" - "@babel/parser" "^7.24.7" - "@babel/types" "^7.24.7" + "@babel/generator" "^7.25.0" + "@babel/parser" "^7.25.3" + "@babel/template" "^7.25.0" + "@babel/types" "^7.25.2" debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.3.3": - version "7.24.7" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2" - integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q== +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7", "@babel/types@^7.25.0", "@babel/types@^7.25.2", "@babel/types@^7.3.3": + version "7.25.2" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.25.2.tgz#55fb231f7dc958cd69ea141a4c2997e819646125" + integrity sha512-YTnYtra7W9e6/oAZEHj0bJehPRUlLH9/fbpT5LfB0NhQXyALCRkRs3zH9v07IYhkgpqX6Z78FnuccZr/l4Fs4Q== dependencies: - "@babel/helper-string-parser" "^7.24.7" + "@babel/helper-string-parser" "^7.24.8" "@babel/helper-validator-identifier" "^7.24.7" to-fast-properties "^2.0.0" @@ -529,9 +519,9 @@ integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== "@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.18", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": version "0.3.25" @@ -650,11 +640,11 @@ form-data "^4.0.0" "@types/node@*": - version "20.14.9" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.9.tgz#12e8e765ab27f8c421a1820c99f5f313a933b420" - integrity sha512-06OCtnTXtWOZBJlRApleWndH4JsRVs1pDCc8dLSQp+7PpUpX3ePdHyeNSFTeSe7FtKyQkrlPvHwJOW3SLd8Oyg== + version "22.4.1" + resolved "https://registry.yarnpkg.com/@types/node/-/node-22.4.1.tgz#9b595d292c65b94c20923159e2ce947731b6fdce" + integrity sha512-1tbpb9325+gPnKK0dMm+/LMriX0vKxf6RnB0SZUqfyVkQ4fMgUSySqhxE/y8Jvs4NyF1yHzTfG9KlnkIODxPKg== dependencies: - undici-types "~5.26.4" + undici-types "~6.19.2" "@types/node@17.0.33": version "17.0.33" @@ -687,9 +677,9 @@ integrity sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ== "@types/yargs@^17.0.8": - version "17.0.32" - resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.32.tgz#030774723a2f7faafebf645f4e5a48371dca6229" - integrity sha512-xQ67Yc/laOG5uMfX/093MRlGGCIBzZMarVa+gfNKJxWAIgykYpVGkBdbqEzGDDfCrVUj6Hiff4mTZ5BA6TmAog== + version "17.0.33" + resolved "https://registry.yarnpkg.com/@types/yargs/-/yargs-17.0.33.tgz#8c32303da83eec050a84b3c7ae7b9f922d13e32d" + integrity sha512-WpxBCKWPLr4xSsHgz511rFJAM+wS28w2zEO1QDNY5zM/S8ok70NNfztH0xwhqKyaK0OHCbN98LDAZuy1ctxDkA== dependencies: "@types/yargs-parser" "*" @@ -714,9 +704,9 @@ acorn-walk@^8.0.2: acorn "^8.11.0" acorn@^8.1.0, acorn@^8.11.0, acorn@^8.8.1: - version "8.12.0" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.0.tgz#1627bfa2e058148036133b8d9b51a700663c294c" - integrity sha512-RTvkC4w+KNXrM39/lWCUaG0IbRkWdCv7W/IOW9oU6SawyxulvkQy5HQPVTKxEjczcUvapcrw3cFx/60VN/NRNw== + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== agent-base@6: version "6.0.2" @@ -811,22 +801,25 @@ babel-plugin-jest-hoist@^29.6.3: "@types/babel__traverse" "^7.0.6" babel-preset-current-node-syntax@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz#b4399239b89b2a011f9ddbe3e4f401fc40cff73b" - integrity sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ== + version "1.1.0" + resolved "https://registry.yarnpkg.com/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.1.0.tgz#9a929eafece419612ef4ae4f60b1862ebad8ef30" + integrity sha512-ldYss8SbBlWva1bs28q78Ju5Zq1F+8BrqBZZ0VFhLBvhh6lCpC2o3gDJi/5DRLs9FgYZCnmPYIVFU4lRXCkyUw== dependencies: "@babel/plugin-syntax-async-generators" "^7.8.4" "@babel/plugin-syntax-bigint" "^7.8.3" - "@babel/plugin-syntax-class-properties" "^7.8.3" - "@babel/plugin-syntax-import-meta" "^7.8.3" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-import-attributes" "^7.24.7" + "@babel/plugin-syntax-import-meta" "^7.10.4" "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" "@babel/plugin-syntax-object-rest-spread" "^7.8.3" "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-top-level-await" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" babel-preset-jest@^29.6.3: version "29.6.3" @@ -856,15 +849,15 @@ braces@^3.0.3: dependencies: fill-range "^7.1.1" -browserslist@^4.22.2: - version "4.23.1" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.1.tgz#ce4af0534b3d37db5c1a4ca98b9080f985041e96" - integrity sha512-TUfofFo/KsK/bWZ9TWQ5O26tsWW4Uhmt8IYklbnUa70udB6P2wA7w7o4PY4muaEPBQaAX+CEnmmIA41NVHtPVw== +browserslist@^4.23.1: + version "4.23.3" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.3.tgz#debb029d3c93ebc97ffbc8d9cbb03403e227c800" + integrity sha512-btwCFJVjI4YWDNfau8RhZ+B1Q/VLoUITrm3RlP6y1tYGWIOa+InuYiRGXUBXo8nA1qKmHMyLB/iVQg5TT4eFoA== dependencies: - caniuse-lite "^1.0.30001629" - electron-to-chromium "^1.4.796" - node-releases "^2.0.14" - update-browserslist-db "^1.0.16" + caniuse-lite "^1.0.30001646" + electron-to-chromium "^1.5.4" + node-releases "^2.0.18" + update-browserslist-db "^1.1.0" bs-logger@0.x: version "0.2.6" @@ -911,10 +904,10 @@ camelcase@^6.2.0: resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001629: - version "1.0.30001638" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001638.tgz#598e1f0c2ac36f37ebc3f5b8887a32ca558e5d56" - integrity sha512-5SuJUJ7cZnhPpeLHaH0c/HPAnAHZvS6ElWyHK9GSIbVOQABLzowiI2pjmpvZ1WEbkyz46iFd4UXlOHR5SqgfMQ== +caniuse-lite@^1.0.30001646: + version "1.0.30001651" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001651.tgz#52de59529e8b02b1aedcaaf5c05d9e23c0c28138" + integrity sha512-9Cf+Xv1jJNe1xPZLGuUXLNkE1BoDkqRqYyFJ9TDYSqhduqA4hu4oR9HluGoWYQC/aj8WHjsGVV+bwkh0+tegRg== chalk@^2.4.2: version "2.4.2" @@ -1057,9 +1050,9 @@ data-urls@^3.0.2: whatwg-url "^11.0.0" debug@4, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1: - version "4.3.5" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" - integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + version "4.3.6" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.6.tgz#2ab2c38fbaffebf8aa95fdfe6d88438c7a13c52b" + integrity sha512-O/09Bd4Z1fBrU4VzkhFqVgpPzaGbw6Sm9FEkBT1A/YBXQFGuuSxa1dN2nxgxS34JmKXqYx8CZAwEVoJFImUXIg== dependencies: ms "2.1.2" @@ -1109,10 +1102,10 @@ domexception@^4.0.0: dependencies: webidl-conversions "^7.0.0" -electron-to-chromium@^1.4.796: - version "1.4.812" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.812.tgz#21b78709c5a13af5d5c688d135a22dcea7617acf" - integrity sha512-7L8fC2Ey/b6SePDFKR2zHAy4mbdp1/38Yk5TsARO66W3hC5KEaeKMMHoxwtuH+jcu2AYLSn9QX04i95t6Fl1Hg== +electron-to-chromium@^1.5.4: + version "1.5.11" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.5.11.tgz#258077f1077a1c72f2925cd5b326c470a7f5adef" + integrity sha512-R1CccCDYqndR25CaXFd6hp/u9RaaMcftMkphmvuepXr5b1vfLkRml6aWVeBhXJ7rbevHkKEMJtz8XqPf7ffmew== emittery@^0.13.1: version "0.13.1" @@ -1412,9 +1405,9 @@ iconv-lite@0.6.3: safer-buffer ">= 2.1.2 < 3.0.0" import-local@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.1.0.tgz#b4479df8a5fd44f6cdce24070675676063c95cb4" - integrity sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg== + version "3.2.0" + resolved "https://registry.yarnpkg.com/import-local/-/import-local-3.2.0.tgz#c3d5c745798c02a6f8b897726aba5100186ee260" + integrity sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA== dependencies: pkg-dir "^4.2.0" resolve-cwd "^3.0.0" @@ -1443,9 +1436,9 @@ is-arrayish@^0.2.1: integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== is-core-module@^2.13.0: - version "2.14.0" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.14.0.tgz#43b8ef9f46a6a08888db67b1ffd4ec9e3dfd59d1" - integrity sha512-a5dFJih5ZLYlRtDc0dZWP7RiKr6xIKzmn/oAYCDvdLThadVgyJwlaoQPmRtMSpz+rk0OGAgIu+TcM9HUF0fk1A== + version "2.15.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" + integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== dependencies: hasown "^2.0.2" @@ -1496,9 +1489,9 @@ istanbul-lib-instrument@^5.0.4: semver "^6.3.0" istanbul-lib-instrument@^6.0.0: - version "6.0.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.2.tgz#91655936cf7380e4e473383081e38478b69993b1" - integrity sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw== + version "6.0.3" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz#fa15401df6c15874bcb2105f773325d78c666765" + integrity sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q== dependencies: "@babel/core" "^7.23.9" "@babel/parser" "^7.23.9" @@ -2081,10 +2074,10 @@ node-int64@^0.4.0: resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-releases@^2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" - integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== +node-releases@^2.0.18: + version "2.0.18" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.18.tgz#f010e8d35e2fe8d6b2944f03f70213ecedc4ca3f" + integrity sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g== normalize-path@^3.0.0: version "3.0.0" @@ -2099,9 +2092,9 @@ npm-run-path@^4.0.1: path-key "^3.0.0" nwsapi@^2.2.2: - version "2.2.10" - resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.10.tgz#0b77a68e21a0b483db70b11fad055906e867cda8" - integrity sha512-QK0sRs7MKv0tKe1+5uZIQk/C8XGza4DAnztJG8iD+TpJIORARrCxczA738awHrZoHeTjSSoHqao2teO0dC/gFQ== + version "2.2.12" + resolved "https://registry.yarnpkg.com/nwsapi/-/nwsapi-2.2.12.tgz#fb6af5c0ec35b27b4581eb3bbad34ec9e5c696f8" + integrity sha512-qXDmcVlZV4XRtKFzddidpfVP4oMSGhga+xdMc25mv8kaLUHtgzCDhUxkrN8exkGdTlLNaXj7CV3GtON7zuGZ+w== object-inspect@^1.13.1: version "1.13.2" @@ -2315,9 +2308,9 @@ semver@^6.3.0, semver@^6.3.1: integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== semver@^7.5.3, semver@^7.5.4: - version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== set-function-length@^1.2.1: version "1.2.2" @@ -2540,20 +2533,20 @@ typescript@4.6.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9" integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg== -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== +undici-types@~6.19.2: + version "6.19.8" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.19.8.tgz#35111c9d1437ab83a7cdc0abae2f26d88eda0a02" + integrity sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw== universalify@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.2.0.tgz#6451760566fa857534745ab1dde952d1b1761be0" integrity sha512-CJ1QgKmNg3CwvAv/kOFmtnEN05f0D/cn9QntgNOQlQF9dgvVTHj3t+8JPdjqawCHk7V/KA+fbUqzZ9XWhcqPUg== -update-browserslist-db@^1.0.16: - version "1.0.16" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.16.tgz#f6d489ed90fb2f07d67784eb3f53d7891f736356" - integrity sha512-KVbTxlBYlckhF5wgfyZXTWnMn7MMZjMu9XG8bPlliUOP9ThaF4QnhP8qrjrH7DRzHfSk0oQv1wToW+iA5GajEQ== +update-browserslist-db@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== dependencies: escalade "^3.1.2" picocolors "^1.0.1" @@ -2662,9 +2655,9 @@ write-file-atomic@^4.0.2: signal-exit "^3.0.7" ws@^8.11.0: - version "8.17.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" - integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== xml-name-validator@^4.0.0: version "4.0.0" From 19dcc110c253245374b895df08a33beeae0128b3 Mon Sep 17 00:00:00 2001 From: Zach Plata Date: Tue, 20 Aug 2024 15:56:36 -0500 Subject: [PATCH 2/2] fix: change TooManyRequestsError parameter to match new error type payload --- src/wrapper/ItemsClient.ts | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/src/wrapper/ItemsClient.ts b/src/wrapper/ItemsClient.ts index 38fa6ac1..dcbd9cf1 100644 --- a/src/wrapper/ItemsClient.ts +++ b/src/wrapper/ItemsClient.ts @@ -56,14 +56,12 @@ export class Client extends Items { "X-Fern-Runtime-Version": core.RUNTIME.version, }, contentType: "application/json", - body: await serializers.CollectionItem.jsonOrThrow( - request, { - unrecognizedObjectKeys: "passthrough", - allowUnrecognizedUnionMembers: true, - allowUnrecognizedEnumValues: true, - skipValidation: true, - }, - ), + body: await serializers.CollectionItem.jsonOrThrow(request, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + }), timeoutMs: requestOptions?.timeoutInSeconds != null ? requestOptions.timeoutInSeconds * 1000 : 60000, maxRetries: requestOptions?.maxRetries, }); @@ -80,7 +78,15 @@ export class Client extends Items { case 404: throw new Webflow.NotFoundError(_response.error.body); case 429: - throw new Webflow.TooManyRequestsError(_response.error.body); + throw new Webflow.TooManyRequestsError( + await serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, { + unrecognizedObjectKeys: "passthrough", + allowUnrecognizedUnionMembers: true, + allowUnrecognizedEnumValues: true, + skipValidation: true, + breadcrumbsPrefix: ["response"], + }) + ); case 500: throw new Webflow.InternalServerError(_response.error.body); default: