webflow-api 2.3.5 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/api/resources/accessGroups/client/Client.js +12 -4
- package/api/resources/assets/client/Client.d.ts +8 -8
- package/api/resources/assets/client/Client.js +98 -34
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +59 -19
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +27 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +19 -19
- package/api/resources/collections/resources/items/client/Client.js +175 -57
- package/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/api/resources/collections/resources/items/types/index.js +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +12 -4
- package/api/resources/forms/client/Client.d.ts +7 -6
- package/api/resources/forms/client/Client.js +72 -24
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -3
- package/api/resources/index.js +4 -4
- package/api/resources/inventory/client/Client.d.ts +3 -3
- package/api/resources/inventory/client/Client.js +26 -10
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +6 -6
- package/api/resources/orders/client/Client.js +75 -29
- package/api/resources/pages/client/Client.d.ts +24 -11
- package/api/resources/pages/client/Client.js +79 -26
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +38 -14
- package/api/resources/products/client/Client.d.ts +6 -6
- package/api/resources/products/client/Client.js +76 -28
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +38 -14
- package/api/resources/sites/client/Client.d.ts +5 -7
- package/api/resources/sites/client/Client.js +55 -23
- package/api/resources/sites/index.d.ts +1 -0
- package/api/resources/sites/index.js +1 -0
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +12 -4
- package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks/client → api/resources/sites/types}/index.js +1 -1
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +5 -5
- package/api/resources/users/client/Client.js +61 -21
- package/api/resources/webhooks/client/Client.d.ts +13 -8
- package/api/resources/webhooks/client/Client.js +56 -19
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/Asset.d.ts +10 -8
- package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.d.ts +2 -0
- package/api/types/CollectionItemFieldData.d.ts +2 -0
- package/api/types/ConflictErrorBody.d.ts +10 -1
- package/api/types/DuplicateUserEmail.d.ts +10 -1
- package/api/types/Form.d.ts +2 -0
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +10 -1
- package/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{dist/api/types/OauthScope.js → api/types/OAuthScope.js} +2 -0
- package/api/types/Page.d.ts +5 -1
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/UserLimitReached.d.ts +10 -1
- package/api/types/UsersNotEnabled.d.ts +10 -1
- package/api/types/Webhook.d.ts +5 -5
- package/api/types/WebhookFilter.d.ts +10 -0
- package/api/types/index.d.ts +6 -5
- package/api/types/index.js +6 -5
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +19 -185
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/runtime/runtime.d.ts +1 -0
- package/core/runtime/runtime.js +1 -0
- package/core/schemas/Schema.d.ts +8 -4
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +12 -4
- package/dist/api/resources/assets/client/Client.d.ts +8 -8
- package/dist/api/resources/assets/client/Client.js +98 -34
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +59 -19
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +27 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -19
- package/dist/api/resources/collections/resources/items/client/Client.js +175 -57
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/index.js +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +12 -4
- package/dist/api/resources/forms/client/Client.d.ts +7 -6
- package/dist/api/resources/forms/client/Client.js +72 -24
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -3
- package/dist/api/resources/index.js +4 -4
- package/dist/api/resources/inventory/client/Client.d.ts +3 -3
- package/dist/api/resources/inventory/client/Client.js +26 -10
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +6 -6
- package/dist/api/resources/orders/client/Client.js +75 -29
- package/dist/api/resources/pages/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/client/Client.js +79 -26
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +38 -14
- package/dist/api/resources/products/client/Client.d.ts +6 -6
- package/dist/api/resources/products/client/Client.js +76 -28
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +38 -14
- package/dist/api/resources/sites/client/Client.d.ts +5 -7
- package/dist/api/resources/sites/client/Client.js +55 -23
- package/dist/api/resources/sites/index.d.ts +1 -0
- package/dist/api/resources/sites/index.js +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/dist/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks → dist/api/resources/sites/types}/index.js +1 -1
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +5 -5
- package/dist/api/resources/users/client/Client.js +61 -21
- package/dist/api/resources/webhooks/client/Client.d.ts +13 -8
- package/dist/api/resources/webhooks/client/Client.js +56 -19
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/Asset.d.ts +10 -8
- package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{api/resources/collections/resources/items → dist/api}/types/BulkCollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/CollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/ConflictErrorBody.d.ts +10 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +10 -1
- package/dist/api/types/Form.d.ts +2 -0
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +10 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{api/types/OauthScope.js → dist/api/types/OAuthScope.js} +2 -0
- package/dist/api/types/Page.d.ts +5 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/UserLimitReached.d.ts +10 -1
- package/dist/api/types/UsersNotEnabled.d.ts +10 -1
- package/dist/api/types/Webhook.d.ts +5 -5
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/index.d.ts +6 -5
- package/dist/api/types/index.js +6 -5
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +19 -185
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/runtime/runtime.d.ts +1 -0
- package/dist/core/runtime/runtime.js +1 -0
- package/dist/core/schemas/Schema.d.ts +8 -4
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -4
- package/dist/serialization/resources/index.js +4 -5
- package/dist/serialization/resources/sites/index.d.ts +1 -0
- package/dist/serialization/resources/sites/index.js +1 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/dist/serialization/resources/sites/types/index.d.ts +1 -0
- package/dist/serialization/resources/{webhooks/client → sites/types}/index.js +1 -1
- package/dist/serialization/types/Asset.d.ts +5 -4
- package/dist/serialization/types/Asset.js +5 -4
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.js +2 -2
- package/dist/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/dist/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/dist/serialization/types/ConflictErrorBody.js +7 -3
- package/dist/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/dist/serialization/types/DuplicateUserEmail.js +31 -2
- package/dist/serialization/types/Form.d.ts +1 -0
- package/dist/serialization/types/Form.js +1 -0
- package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
- package/dist/serialization/types/FormSubmissionList.js +1 -1
- package/dist/serialization/types/MissingScopes.d.ts +7 -2
- package/dist/serialization/types/MissingScopes.js +31 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/dist/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/dist/serialization/types/Page.d.ts +3 -1
- package/dist/serialization/types/Page.js +3 -1
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{serialization/types/PageDetailsOpenGraph.js → dist/serialization/types/TooManyRequestsErrorBody.js} +6 -6
- package/dist/serialization/types/UserLimitReached.d.ts +7 -2
- package/dist/serialization/types/UserLimitReached.js +31 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/dist/serialization/types/UsersNotEnabled.js +31 -2
- package/dist/serialization/types/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +4 -3
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/{serialization/types/PageDetailsSeo.js → dist/serialization/types/WebhookFilter.js} +3 -4
- package/dist/serialization/types/index.d.ts +5 -5
- package/dist/serialization/types/index.js +5 -5
- package/dist/version.d.ts +1 -0
- package/dist/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/dist/wrapper/ItemsClient.d.ts +49 -1
- package/dist/wrapper/ItemsClient.js +219 -6
- package/package.json +7 -2
- package/reference.md +5790 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/serialization/resources/index.d.ts +3 -4
- package/serialization/resources/index.js +4 -5
- package/serialization/resources/sites/index.d.ts +1 -0
- package/serialization/resources/sites/index.js +1 -0
- package/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/serialization/resources/sites/types/index.d.ts +1 -0
- package/{dist/serialization/resources/webhooks → serialization/resources/sites/types}/index.js +1 -1
- package/serialization/types/Asset.d.ts +5 -4
- package/serialization/types/Asset.js +5 -4
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.js +2 -2
- package/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/serialization/types/ConflictErrorBody.js +7 -3
- package/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/serialization/types/DuplicateUserEmail.js +31 -2
- package/serialization/types/Form.d.ts +1 -0
- package/serialization/types/Form.js +1 -0
- package/serialization/types/FormSubmissionList.d.ts +1 -1
- package/serialization/types/FormSubmissionList.js +1 -1
- package/serialization/types/MissingScopes.d.ts +7 -2
- package/serialization/types/MissingScopes.js +31 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/serialization/types/Page.d.ts +3 -1
- package/serialization/types/Page.js +3 -1
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{dist/serialization/types/PageDetailsOpenGraph.js → serialization/types/TooManyRequestsErrorBody.js} +6 -6
- package/serialization/types/UserLimitReached.d.ts +7 -2
- package/serialization/types/UserLimitReached.js +31 -2
- package/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/serialization/types/UsersNotEnabled.js +31 -2
- package/serialization/types/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +4 -3
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/{dist/serialization/types/PageDetailsSeo.js → serialization/types/WebhookFilter.js} +3 -4
- package/serialization/types/index.d.ts +5 -5
- package/serialization/types/index.js +5 -5
- package/version.d.ts +1 -0
- package/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/wrapper/ItemsClient.d.ts +49 -1
- package/wrapper/ItemsClient.js +219 -6
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/api/types/PageDetails.d.ts +0 -41
- package/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/types/PageDetails.d.ts +0 -41
- package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/dist/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/types/OauthScope.d.ts +0 -10
- package/dist/serialization/types/OauthScope.js +0 -52
- package/dist/serialization/types/PageDetails.d.ts +0 -29
- package/dist/serialization/types/PageDetails.js +0 -50
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/types/OauthScope.d.ts +0 -10
- package/serialization/types/OauthScope.js +0 -52
- package/serialization/types/PageDetails.d.ts +0 -29
- package/serialization/types/PageDetails.js +0 -50
- package/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/serialization/types/PageDetailsSeo.d.ts +0 -13
- /package/api/resources/collections/resources/items/{client/requests/BulkCollectionItem.js → types/ItemsPublishItemResponse.js} +0 -0
- /package/api/resources/{collections/resources/items/types/BulkCollectionItemFieldData.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → sites/types/SitesPublishResponse.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests → api/types}/BulkCollectionItem.js +0 -0
- /package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.js +0 -0
- /package/api/types/{PageDetails.js → TooManyRequestsErrorBody.js} +0 -0
- /package/api/types/{PageDetailsOpenGraph.js → WebhookFilter.js} +0 -0
- /package/{api/types/PageDetailsSeo.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
- /package/dist/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/dist/api/{types/PageDetails.js → resources/sites/types/SitesPublishResponse.js} +0 -0
- /package/dist/api/types/{PageDetailsOpenGraph.js → BulkCollectionItem.js} +0 -0
- /package/dist/api/types/{PageDetailsSeo.js → BulkCollectionItemFieldData.js} +0 -0
|
@@ -67,7 +67,7 @@ class Orders {
|
|
|
67
67
|
* @throws {@link Webflow.InternalServerError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.orders.list("
|
|
70
|
+
* await client.orders.list("580e63e98c9a982ac9b8b741")
|
|
71
71
|
*/
|
|
72
72
|
list(siteId, request = {}, requestOptions) {
|
|
73
73
|
var _a;
|
|
@@ -90,18 +90,20 @@ class Orders {
|
|
|
90
90
|
Authorization: yield this._getAuthorizationHeader(),
|
|
91
91
|
"X-Fern-Language": "JavaScript",
|
|
92
92
|
"X-Fern-SDK-Name": "webflow-api",
|
|
93
|
-
"X-Fern-SDK-Version": "2.
|
|
93
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
94
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
94
95
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
95
96
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
96
97
|
},
|
|
97
98
|
contentType: "application/json",
|
|
98
99
|
queryParameters: _queryParams,
|
|
100
|
+
requestType: "json",
|
|
99
101
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
100
102
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
101
103
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
102
104
|
});
|
|
103
105
|
if (_response.ok) {
|
|
104
|
-
return
|
|
106
|
+
return serializers.OrderList.parseOrThrow(_response.body, {
|
|
105
107
|
unrecognizedObjectKeys: "passthrough",
|
|
106
108
|
allowUnrecognizedUnionMembers: true,
|
|
107
109
|
allowUnrecognizedEnumValues: true,
|
|
@@ -122,7 +124,13 @@ class Orders {
|
|
|
122
124
|
case 409:
|
|
123
125
|
throw new Webflow.ConflictError(_response.error.body);
|
|
124
126
|
case 429:
|
|
125
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
127
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
128
|
+
unrecognizedObjectKeys: "passthrough",
|
|
129
|
+
allowUnrecognizedUnionMembers: true,
|
|
130
|
+
allowUnrecognizedEnumValues: true,
|
|
131
|
+
skipValidation: true,
|
|
132
|
+
breadcrumbsPrefix: ["response"],
|
|
133
|
+
}));
|
|
126
134
|
case 500:
|
|
127
135
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
128
136
|
default:
|
|
@@ -165,7 +173,7 @@ class Orders {
|
|
|
165
173
|
* @throws {@link Webflow.InternalServerError}
|
|
166
174
|
*
|
|
167
175
|
* @example
|
|
168
|
-
* await client.orders.get("
|
|
176
|
+
* await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
169
177
|
*/
|
|
170
178
|
get(siteId, orderId, requestOptions) {
|
|
171
179
|
var _a;
|
|
@@ -177,17 +185,19 @@ class Orders {
|
|
|
177
185
|
Authorization: yield this._getAuthorizationHeader(),
|
|
178
186
|
"X-Fern-Language": "JavaScript",
|
|
179
187
|
"X-Fern-SDK-Name": "webflow-api",
|
|
180
|
-
"X-Fern-SDK-Version": "2.
|
|
188
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
189
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
181
190
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
182
191
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
183
192
|
},
|
|
184
193
|
contentType: "application/json",
|
|
194
|
+
requestType: "json",
|
|
185
195
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
186
196
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
187
197
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
188
198
|
});
|
|
189
199
|
if (_response.ok) {
|
|
190
|
-
return
|
|
200
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
191
201
|
unrecognizedObjectKeys: "passthrough",
|
|
192
202
|
allowUnrecognizedUnionMembers: true,
|
|
193
203
|
allowUnrecognizedEnumValues: true,
|
|
@@ -208,7 +218,13 @@ class Orders {
|
|
|
208
218
|
case 409:
|
|
209
219
|
throw new Webflow.ConflictError(_response.error.body);
|
|
210
220
|
case 429:
|
|
211
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
221
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
222
|
+
unrecognizedObjectKeys: "passthrough",
|
|
223
|
+
allowUnrecognizedUnionMembers: true,
|
|
224
|
+
allowUnrecognizedEnumValues: true,
|
|
225
|
+
skipValidation: true,
|
|
226
|
+
breadcrumbsPrefix: ["response"],
|
|
227
|
+
}));
|
|
212
228
|
case 500:
|
|
213
229
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
214
230
|
default:
|
|
@@ -252,7 +268,7 @@ class Orders {
|
|
|
252
268
|
* @throws {@link Webflow.InternalServerError}
|
|
253
269
|
*
|
|
254
270
|
* @example
|
|
255
|
-
* await client.orders.update("
|
|
271
|
+
* await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
256
272
|
*/
|
|
257
273
|
update(siteId, orderId, request = {}, requestOptions) {
|
|
258
274
|
var _a;
|
|
@@ -264,18 +280,20 @@ class Orders {
|
|
|
264
280
|
Authorization: yield this._getAuthorizationHeader(),
|
|
265
281
|
"X-Fern-Language": "JavaScript",
|
|
266
282
|
"X-Fern-SDK-Name": "webflow-api",
|
|
267
|
-
"X-Fern-SDK-Version": "2.
|
|
283
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
284
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
268
285
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
269
286
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
270
287
|
},
|
|
271
288
|
contentType: "application/json",
|
|
272
|
-
|
|
289
|
+
requestType: "json",
|
|
290
|
+
body: serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
273
291
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
274
292
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
275
293
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
276
294
|
});
|
|
277
295
|
if (_response.ok) {
|
|
278
|
-
return
|
|
296
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
279
297
|
unrecognizedObjectKeys: "passthrough",
|
|
280
298
|
allowUnrecognizedUnionMembers: true,
|
|
281
299
|
allowUnrecognizedEnumValues: true,
|
|
@@ -296,7 +314,13 @@ class Orders {
|
|
|
296
314
|
case 409:
|
|
297
315
|
throw new Webflow.ConflictError(_response.error.body);
|
|
298
316
|
case 429:
|
|
299
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
317
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
318
|
+
unrecognizedObjectKeys: "passthrough",
|
|
319
|
+
allowUnrecognizedUnionMembers: true,
|
|
320
|
+
allowUnrecognizedEnumValues: true,
|
|
321
|
+
skipValidation: true,
|
|
322
|
+
breadcrumbsPrefix: ["response"],
|
|
323
|
+
}));
|
|
300
324
|
case 500:
|
|
301
325
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
302
326
|
default:
|
|
@@ -340,7 +364,7 @@ class Orders {
|
|
|
340
364
|
* @throws {@link Webflow.InternalServerError}
|
|
341
365
|
*
|
|
342
366
|
* @example
|
|
343
|
-
* await client.orders.updateFulfill("
|
|
367
|
+
* await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
344
368
|
*/
|
|
345
369
|
updateFulfill(siteId, orderId, request = {}, requestOptions) {
|
|
346
370
|
var _a;
|
|
@@ -352,20 +376,20 @@ class Orders {
|
|
|
352
376
|
Authorization: yield this._getAuthorizationHeader(),
|
|
353
377
|
"X-Fern-Language": "JavaScript",
|
|
354
378
|
"X-Fern-SDK-Name": "webflow-api",
|
|
355
|
-
"X-Fern-SDK-Version": "2.
|
|
379
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
380
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
356
381
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
357
382
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
358
383
|
},
|
|
359
384
|
contentType: "application/json",
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
}),
|
|
385
|
+
requestType: "json",
|
|
386
|
+
body: serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
363
387
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
364
388
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
365
389
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
366
390
|
});
|
|
367
391
|
if (_response.ok) {
|
|
368
|
-
return
|
|
392
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
369
393
|
unrecognizedObjectKeys: "passthrough",
|
|
370
394
|
allowUnrecognizedUnionMembers: true,
|
|
371
395
|
allowUnrecognizedEnumValues: true,
|
|
@@ -386,7 +410,13 @@ class Orders {
|
|
|
386
410
|
case 409:
|
|
387
411
|
throw new Webflow.ConflictError(_response.error.body);
|
|
388
412
|
case 429:
|
|
389
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
413
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
414
|
+
unrecognizedObjectKeys: "passthrough",
|
|
415
|
+
allowUnrecognizedUnionMembers: true,
|
|
416
|
+
allowUnrecognizedEnumValues: true,
|
|
417
|
+
skipValidation: true,
|
|
418
|
+
breadcrumbsPrefix: ["response"],
|
|
419
|
+
}));
|
|
390
420
|
case 500:
|
|
391
421
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
392
422
|
default:
|
|
@@ -429,7 +459,7 @@ class Orders {
|
|
|
429
459
|
* @throws {@link Webflow.InternalServerError}
|
|
430
460
|
*
|
|
431
461
|
* @example
|
|
432
|
-
* await client.orders.updateUnfulfill("
|
|
462
|
+
* await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
433
463
|
*/
|
|
434
464
|
updateUnfulfill(siteId, orderId, requestOptions) {
|
|
435
465
|
var _a;
|
|
@@ -441,17 +471,19 @@ class Orders {
|
|
|
441
471
|
Authorization: yield this._getAuthorizationHeader(),
|
|
442
472
|
"X-Fern-Language": "JavaScript",
|
|
443
473
|
"X-Fern-SDK-Name": "webflow-api",
|
|
444
|
-
"X-Fern-SDK-Version": "2.
|
|
474
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
475
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
445
476
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
446
477
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
447
478
|
},
|
|
448
479
|
contentType: "application/json",
|
|
480
|
+
requestType: "json",
|
|
449
481
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
450
482
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
451
483
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
452
484
|
});
|
|
453
485
|
if (_response.ok) {
|
|
454
|
-
return
|
|
486
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
455
487
|
unrecognizedObjectKeys: "passthrough",
|
|
456
488
|
allowUnrecognizedUnionMembers: true,
|
|
457
489
|
allowUnrecognizedEnumValues: true,
|
|
@@ -472,7 +504,13 @@ class Orders {
|
|
|
472
504
|
case 409:
|
|
473
505
|
throw new Webflow.ConflictError(_response.error.body);
|
|
474
506
|
case 429:
|
|
475
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
507
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
508
|
+
unrecognizedObjectKeys: "passthrough",
|
|
509
|
+
allowUnrecognizedUnionMembers: true,
|
|
510
|
+
allowUnrecognizedEnumValues: true,
|
|
511
|
+
skipValidation: true,
|
|
512
|
+
breadcrumbsPrefix: ["response"],
|
|
513
|
+
}));
|
|
476
514
|
case 500:
|
|
477
515
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
478
516
|
default:
|
|
@@ -517,7 +555,7 @@ class Orders {
|
|
|
517
555
|
* @throws {@link Webflow.InternalServerError}
|
|
518
556
|
*
|
|
519
557
|
* @example
|
|
520
|
-
* await client.orders.refund("
|
|
558
|
+
* await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
|
|
521
559
|
*/
|
|
522
560
|
refund(siteId, orderId, request = {}, requestOptions) {
|
|
523
561
|
var _a;
|
|
@@ -529,18 +567,20 @@ class Orders {
|
|
|
529
567
|
Authorization: yield this._getAuthorizationHeader(),
|
|
530
568
|
"X-Fern-Language": "JavaScript",
|
|
531
569
|
"X-Fern-SDK-Name": "webflow-api",
|
|
532
|
-
"X-Fern-SDK-Version": "2.
|
|
570
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
571
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
533
572
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
534
573
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
535
574
|
},
|
|
536
575
|
contentType: "application/json",
|
|
537
|
-
|
|
576
|
+
requestType: "json",
|
|
577
|
+
body: serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
538
578
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
539
579
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
540
580
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
541
581
|
});
|
|
542
582
|
if (_response.ok) {
|
|
543
|
-
return
|
|
583
|
+
return serializers.Order.parseOrThrow(_response.body, {
|
|
544
584
|
unrecognizedObjectKeys: "passthrough",
|
|
545
585
|
allowUnrecognizedUnionMembers: true,
|
|
546
586
|
allowUnrecognizedEnumValues: true,
|
|
@@ -561,7 +601,13 @@ class Orders {
|
|
|
561
601
|
case 409:
|
|
562
602
|
throw new Webflow.ConflictError(_response.error.body);
|
|
563
603
|
case 429:
|
|
564
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
604
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
605
|
+
unrecognizedObjectKeys: "passthrough",
|
|
606
|
+
allowUnrecognizedUnionMembers: true,
|
|
607
|
+
allowUnrecognizedEnumValues: true,
|
|
608
|
+
skipValidation: true,
|
|
609
|
+
breadcrumbsPrefix: ["response"],
|
|
610
|
+
}));
|
|
565
611
|
case 500:
|
|
566
612
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
567
613
|
default:
|
|
@@ -36,7 +36,9 @@ export declare class Pages {
|
|
|
36
36
|
* @throws {@link Webflow.InternalServerError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.pages.list("
|
|
39
|
+
* await client.pages.list("580e63e98c9a982ac9b8b741", {
|
|
40
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
41
|
+
* })
|
|
40
42
|
*/
|
|
41
43
|
list(siteId: string, request?: Webflow.PagesListRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageList>;
|
|
42
44
|
/**
|
|
@@ -53,9 +55,11 @@ export declare class Pages {
|
|
|
53
55
|
* @throws {@link Webflow.InternalServerError}
|
|
54
56
|
*
|
|
55
57
|
* @example
|
|
56
|
-
* await client.pages.getMetadata("
|
|
58
|
+
* await client.pages.getMetadata("63c720f9347c2139b248e552", {
|
|
59
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
60
|
+
* })
|
|
57
61
|
*/
|
|
58
|
-
getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.
|
|
62
|
+
getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
59
63
|
/**
|
|
60
64
|
* Update Page-level metadata, including SEO and Open Graph fields. </br></br> Required scope | `pages:write`
|
|
61
65
|
*
|
|
@@ -70,7 +74,8 @@ export declare class Pages {
|
|
|
70
74
|
* @throws {@link Webflow.InternalServerError}
|
|
71
75
|
*
|
|
72
76
|
* @example
|
|
73
|
-
* await client.pages.updatePageSettings("
|
|
77
|
+
* await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
|
|
78
|
+
* locale: "65427cf400e02b306eaa04a0",
|
|
74
79
|
* body: {
|
|
75
80
|
* id: "6596da6045e56dee495bcbba",
|
|
76
81
|
* siteId: "6258612d1ee792848f805dcf",
|
|
@@ -78,8 +83,8 @@ export declare class Pages {
|
|
|
78
83
|
* slug: "guide-to-the-galaxy",
|
|
79
84
|
* parentId: "6419db964a9c435aa3af6251",
|
|
80
85
|
* collectionId: "6390c49774a71f12831a08e3",
|
|
81
|
-
* createdOn:
|
|
82
|
-
* lastUpdated:
|
|
86
|
+
* createdOn: "2024-03-11T10:42:00Z",
|
|
87
|
+
* lastUpdated: "2024-03-11T10:42:42Z",
|
|
83
88
|
* archived: false,
|
|
84
89
|
* draft: false,
|
|
85
90
|
* canBranch: true,
|
|
@@ -92,11 +97,13 @@ export declare class Pages {
|
|
|
92
97
|
* titleCopied: false,
|
|
93
98
|
* description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
|
|
94
99
|
* descriptionCopied: false
|
|
95
|
-
* }
|
|
100
|
+
* },
|
|
101
|
+
* localeId: "653fd9af6a07fc9cfd7a5e57",
|
|
102
|
+
* publishedPath: "/en-us/guide-to-the-galaxy"
|
|
96
103
|
* }
|
|
97
104
|
* })
|
|
98
105
|
*/
|
|
99
|
-
updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.
|
|
106
|
+
updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
|
|
100
107
|
/**
|
|
101
108
|
* Get static content from a static page. </br> If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale</br></br> Required scope | `pages:read`
|
|
102
109
|
*
|
|
@@ -112,11 +119,17 @@ export declare class Pages {
|
|
|
112
119
|
* @throws {@link Webflow.InternalServerError}
|
|
113
120
|
*
|
|
114
121
|
* @example
|
|
115
|
-
* await client.pages.getContent("
|
|
122
|
+
* await client.pages.getContent("63c720f9347c2139b248e552", {
|
|
123
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
124
|
+
* })
|
|
116
125
|
*/
|
|
117
126
|
getContent(pageId: string, request?: Webflow.PagesGetContentRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
|
|
118
127
|
/**
|
|
119
|
-
*
|
|
128
|
+
* 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.
|
|
129
|
+
*
|
|
130
|
+
* <blockquote class="callout callout_info"><p><strong>Note:</strong>This endpoint is specifically for localized pages. Ensure that the locale specified is a valid secondary locale for the site.</p></blockquote>
|
|
131
|
+
*
|
|
132
|
+
* Required scope | `pages:write`
|
|
120
133
|
*
|
|
121
134
|
* @param {string} pageId - Unique identifier for a Page
|
|
122
135
|
* @param {Webflow.DomWrite} request
|
|
@@ -130,7 +143,7 @@ export declare class Pages {
|
|
|
130
143
|
* @throws {@link Webflow.InternalServerError}
|
|
131
144
|
*
|
|
132
145
|
* @example
|
|
133
|
-
* await client.pages.updateStaticContent("
|
|
146
|
+
* await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
|
|
134
147
|
* locale: "locale",
|
|
135
148
|
* nodes: [{
|
|
136
149
|
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
@@ -75,7 +75,9 @@ class Pages {
|
|
|
75
75
|
* @throws {@link Webflow.InternalServerError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.pages.list("
|
|
78
|
+
* await client.pages.list("580e63e98c9a982ac9b8b741", {
|
|
79
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
80
|
+
* })
|
|
79
81
|
*/
|
|
80
82
|
list(siteId, request = {}, requestOptions) {
|
|
81
83
|
var _a;
|
|
@@ -98,18 +100,20 @@ class Pages {
|
|
|
98
100
|
Authorization: yield this._getAuthorizationHeader(),
|
|
99
101
|
"X-Fern-Language": "JavaScript",
|
|
100
102
|
"X-Fern-SDK-Name": "webflow-api",
|
|
101
|
-
"X-Fern-SDK-Version": "2.
|
|
103
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
104
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
102
105
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
103
106
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
104
107
|
},
|
|
105
108
|
contentType: "application/json",
|
|
106
109
|
queryParameters: _queryParams,
|
|
110
|
+
requestType: "json",
|
|
107
111
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
108
112
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
109
113
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
110
114
|
});
|
|
111
115
|
if (_response.ok) {
|
|
112
|
-
return
|
|
116
|
+
return serializers.PageList.parseOrThrow(_response.body, {
|
|
113
117
|
unrecognizedObjectKeys: "passthrough",
|
|
114
118
|
allowUnrecognizedUnionMembers: true,
|
|
115
119
|
allowUnrecognizedEnumValues: true,
|
|
@@ -126,7 +130,13 @@ class Pages {
|
|
|
126
130
|
case 404:
|
|
127
131
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
128
132
|
case 429:
|
|
129
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
133
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
134
|
+
unrecognizedObjectKeys: "passthrough",
|
|
135
|
+
allowUnrecognizedUnionMembers: true,
|
|
136
|
+
allowUnrecognizedEnumValues: true,
|
|
137
|
+
skipValidation: true,
|
|
138
|
+
breadcrumbsPrefix: ["response"],
|
|
139
|
+
}));
|
|
130
140
|
case 500:
|
|
131
141
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
132
142
|
default:
|
|
@@ -165,7 +175,9 @@ class Pages {
|
|
|
165
175
|
* @throws {@link Webflow.InternalServerError}
|
|
166
176
|
*
|
|
167
177
|
* @example
|
|
168
|
-
* await client.pages.getMetadata("
|
|
178
|
+
* await client.pages.getMetadata("63c720f9347c2139b248e552", {
|
|
179
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
180
|
+
* })
|
|
169
181
|
*/
|
|
170
182
|
getMetadata(pageId, request = {}, requestOptions) {
|
|
171
183
|
var _a;
|
|
@@ -182,18 +194,20 @@ class Pages {
|
|
|
182
194
|
Authorization: yield this._getAuthorizationHeader(),
|
|
183
195
|
"X-Fern-Language": "JavaScript",
|
|
184
196
|
"X-Fern-SDK-Name": "webflow-api",
|
|
185
|
-
"X-Fern-SDK-Version": "2.
|
|
197
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
198
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
186
199
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
187
200
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
188
201
|
},
|
|
189
202
|
contentType: "application/json",
|
|
190
203
|
queryParameters: _queryParams,
|
|
204
|
+
requestType: "json",
|
|
191
205
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
192
206
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
193
207
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
194
208
|
});
|
|
195
209
|
if (_response.ok) {
|
|
196
|
-
return
|
|
210
|
+
return serializers.Page.parseOrThrow(_response.body, {
|
|
197
211
|
unrecognizedObjectKeys: "passthrough",
|
|
198
212
|
allowUnrecognizedUnionMembers: true,
|
|
199
213
|
allowUnrecognizedEnumValues: true,
|
|
@@ -210,7 +224,13 @@ class Pages {
|
|
|
210
224
|
case 404:
|
|
211
225
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
212
226
|
case 429:
|
|
213
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
227
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
228
|
+
unrecognizedObjectKeys: "passthrough",
|
|
229
|
+
allowUnrecognizedUnionMembers: true,
|
|
230
|
+
allowUnrecognizedEnumValues: true,
|
|
231
|
+
skipValidation: true,
|
|
232
|
+
breadcrumbsPrefix: ["response"],
|
|
233
|
+
}));
|
|
214
234
|
case 500:
|
|
215
235
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
216
236
|
default:
|
|
@@ -249,7 +269,8 @@ class Pages {
|
|
|
249
269
|
* @throws {@link Webflow.InternalServerError}
|
|
250
270
|
*
|
|
251
271
|
* @example
|
|
252
|
-
* await client.pages.updatePageSettings("
|
|
272
|
+
* await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
|
|
273
|
+
* locale: "65427cf400e02b306eaa04a0",
|
|
253
274
|
* body: {
|
|
254
275
|
* id: "6596da6045e56dee495bcbba",
|
|
255
276
|
* siteId: "6258612d1ee792848f805dcf",
|
|
@@ -257,8 +278,8 @@ class Pages {
|
|
|
257
278
|
* slug: "guide-to-the-galaxy",
|
|
258
279
|
* parentId: "6419db964a9c435aa3af6251",
|
|
259
280
|
* collectionId: "6390c49774a71f12831a08e3",
|
|
260
|
-
* createdOn:
|
|
261
|
-
* lastUpdated:
|
|
281
|
+
* createdOn: "2024-03-11T10:42:00Z",
|
|
282
|
+
* lastUpdated: "2024-03-11T10:42:42Z",
|
|
262
283
|
* archived: false,
|
|
263
284
|
* draft: false,
|
|
264
285
|
* canBranch: true,
|
|
@@ -271,7 +292,9 @@ class Pages {
|
|
|
271
292
|
* titleCopied: false,
|
|
272
293
|
* description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
|
|
273
294
|
* descriptionCopied: false
|
|
274
|
-
* }
|
|
295
|
+
* },
|
|
296
|
+
* localeId: "653fd9af6a07fc9cfd7a5e57",
|
|
297
|
+
* publishedPath: "/en-us/guide-to-the-galaxy"
|
|
275
298
|
* }
|
|
276
299
|
* })
|
|
277
300
|
*/
|
|
@@ -290,19 +313,21 @@ class Pages {
|
|
|
290
313
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
314
|
"X-Fern-Language": "JavaScript",
|
|
292
315
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "2.
|
|
316
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
317
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
294
318
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
319
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
320
|
},
|
|
297
321
|
contentType: "application/json",
|
|
298
322
|
queryParameters: _queryParams,
|
|
299
|
-
|
|
323
|
+
requestType: "json",
|
|
324
|
+
body: serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
300
325
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
301
326
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
302
327
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
303
328
|
});
|
|
304
329
|
if (_response.ok) {
|
|
305
|
-
return
|
|
330
|
+
return serializers.Page.parseOrThrow(_response.body, {
|
|
306
331
|
unrecognizedObjectKeys: "passthrough",
|
|
307
332
|
allowUnrecognizedUnionMembers: true,
|
|
308
333
|
allowUnrecognizedEnumValues: true,
|
|
@@ -319,7 +344,13 @@ class Pages {
|
|
|
319
344
|
case 404:
|
|
320
345
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
321
346
|
case 429:
|
|
322
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
347
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
348
|
+
unrecognizedObjectKeys: "passthrough",
|
|
349
|
+
allowUnrecognizedUnionMembers: true,
|
|
350
|
+
allowUnrecognizedEnumValues: true,
|
|
351
|
+
skipValidation: true,
|
|
352
|
+
breadcrumbsPrefix: ["response"],
|
|
353
|
+
}));
|
|
323
354
|
case 500:
|
|
324
355
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
325
356
|
default:
|
|
@@ -359,7 +390,9 @@ class Pages {
|
|
|
359
390
|
* @throws {@link Webflow.InternalServerError}
|
|
360
391
|
*
|
|
361
392
|
* @example
|
|
362
|
-
* await client.pages.getContent("
|
|
393
|
+
* await client.pages.getContent("63c720f9347c2139b248e552", {
|
|
394
|
+
* locale: "65427cf400e02b306eaa04a0"
|
|
395
|
+
* })
|
|
363
396
|
*/
|
|
364
397
|
getContent(pageId, request = {}, requestOptions) {
|
|
365
398
|
var _a;
|
|
@@ -382,18 +415,20 @@ class Pages {
|
|
|
382
415
|
Authorization: yield this._getAuthorizationHeader(),
|
|
383
416
|
"X-Fern-Language": "JavaScript",
|
|
384
417
|
"X-Fern-SDK-Name": "webflow-api",
|
|
385
|
-
"X-Fern-SDK-Version": "2.
|
|
418
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
419
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
386
420
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
387
421
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
388
422
|
},
|
|
389
423
|
contentType: "application/json",
|
|
390
424
|
queryParameters: _queryParams,
|
|
425
|
+
requestType: "json",
|
|
391
426
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
392
427
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
393
428
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
394
429
|
});
|
|
395
430
|
if (_response.ok) {
|
|
396
|
-
return
|
|
431
|
+
return serializers.Dom.parseOrThrow(_response.body, {
|
|
397
432
|
unrecognizedObjectKeys: "passthrough",
|
|
398
433
|
allowUnrecognizedUnionMembers: true,
|
|
399
434
|
allowUnrecognizedEnumValues: true,
|
|
@@ -412,7 +447,13 @@ class Pages {
|
|
|
412
447
|
case 404:
|
|
413
448
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
414
449
|
case 429:
|
|
415
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
450
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
451
|
+
unrecognizedObjectKeys: "passthrough",
|
|
452
|
+
allowUnrecognizedUnionMembers: true,
|
|
453
|
+
allowUnrecognizedEnumValues: true,
|
|
454
|
+
skipValidation: true,
|
|
455
|
+
breadcrumbsPrefix: ["response"],
|
|
456
|
+
}));
|
|
416
457
|
case 500:
|
|
417
458
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
418
459
|
default:
|
|
@@ -438,7 +479,11 @@ class Pages {
|
|
|
438
479
|
});
|
|
439
480
|
}
|
|
440
481
|
/**
|
|
441
|
-
*
|
|
482
|
+
* 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.
|
|
483
|
+
*
|
|
484
|
+
* <blockquote class="callout callout_info"><p><strong>Note:</strong>This endpoint is specifically for localized pages. Ensure that the locale specified is a valid secondary locale for the site.</p></blockquote>
|
|
485
|
+
*
|
|
486
|
+
* Required scope | `pages:write`
|
|
442
487
|
*
|
|
443
488
|
* @param {string} pageId - Unique identifier for a Page
|
|
444
489
|
* @param {Webflow.DomWrite} request
|
|
@@ -452,7 +497,7 @@ class Pages {
|
|
|
452
497
|
* @throws {@link Webflow.InternalServerError}
|
|
453
498
|
*
|
|
454
499
|
* @example
|
|
455
|
-
* await client.pages.updateStaticContent("
|
|
500
|
+
* await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
|
|
456
501
|
* locale: "locale",
|
|
457
502
|
* nodes: [{
|
|
458
503
|
* nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
|
|
@@ -479,19 +524,21 @@ class Pages {
|
|
|
479
524
|
Authorization: yield this._getAuthorizationHeader(),
|
|
480
525
|
"X-Fern-Language": "JavaScript",
|
|
481
526
|
"X-Fern-SDK-Name": "webflow-api",
|
|
482
|
-
"X-Fern-SDK-Version": "2.
|
|
527
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
528
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
483
529
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
484
530
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
485
531
|
},
|
|
486
532
|
contentType: "application/json",
|
|
487
533
|
queryParameters: _queryParams,
|
|
488
|
-
|
|
534
|
+
requestType: "json",
|
|
535
|
+
body: serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
|
|
489
536
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
490
537
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
491
538
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
492
539
|
});
|
|
493
540
|
if (_response.ok) {
|
|
494
|
-
return
|
|
541
|
+
return serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, {
|
|
495
542
|
unrecognizedObjectKeys: "passthrough",
|
|
496
543
|
allowUnrecognizedUnionMembers: true,
|
|
497
544
|
allowUnrecognizedEnumValues: true,
|
|
@@ -510,7 +557,13 @@ class Pages {
|
|
|
510
557
|
case 404:
|
|
511
558
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
512
559
|
case 429:
|
|
513
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
560
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
561
|
+
unrecognizedObjectKeys: "passthrough",
|
|
562
|
+
allowUnrecognizedUnionMembers: true,
|
|
563
|
+
allowUnrecognizedEnumValues: true,
|
|
564
|
+
skipValidation: true,
|
|
565
|
+
breadcrumbsPrefix: ["response"],
|
|
566
|
+
}));
|
|
514
567
|
case 500:
|
|
515
568
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
516
569
|
default:
|