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
|
@@ -62,7 +62,7 @@ class Scripts {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.scripts.list("
|
|
65
|
+
* await client.scripts.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -74,17 +74,19 @@ class Scripts {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "2.
|
|
77
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
78
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
78
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
81
|
},
|
|
81
82
|
contentType: "application/json",
|
|
83
|
+
requestType: "json",
|
|
82
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
85
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
86
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
87
|
});
|
|
86
88
|
if (_response.ok) {
|
|
87
|
-
return
|
|
89
|
+
return serializers.RegisteredScriptList.parseOrThrow(_response.body, {
|
|
88
90
|
unrecognizedObjectKeys: "passthrough",
|
|
89
91
|
allowUnrecognizedUnionMembers: true,
|
|
90
92
|
allowUnrecognizedEnumValues: true,
|
|
@@ -101,7 +103,13 @@ class Scripts {
|
|
|
101
103
|
case 404:
|
|
102
104
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
103
105
|
case 429:
|
|
104
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
106
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
107
|
+
unrecognizedObjectKeys: "passthrough",
|
|
108
|
+
allowUnrecognizedUnionMembers: true,
|
|
109
|
+
allowUnrecognizedEnumValues: true,
|
|
110
|
+
skipValidation: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}));
|
|
105
113
|
case 500:
|
|
106
114
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
107
115
|
default:
|
|
@@ -140,7 +148,7 @@ class Scripts {
|
|
|
140
148
|
* @throws {@link Webflow.InternalServerError}
|
|
141
149
|
*
|
|
142
150
|
* @example
|
|
143
|
-
* await client.scripts.registerHosted("
|
|
151
|
+
* await client.scripts.registerHosted("580e63e98c9a982ac9b8b741", {
|
|
144
152
|
* hostedLocation: "hostedLocation",
|
|
145
153
|
* integrityHash: "integrityHash",
|
|
146
154
|
* version: "version",
|
|
@@ -157,18 +165,20 @@ class Scripts {
|
|
|
157
165
|
Authorization: yield this._getAuthorizationHeader(),
|
|
158
166
|
"X-Fern-Language": "JavaScript",
|
|
159
167
|
"X-Fern-SDK-Name": "webflow-api",
|
|
160
|
-
"X-Fern-SDK-Version": "2.
|
|
168
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
169
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
161
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
162
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
163
172
|
},
|
|
164
173
|
contentType: "application/json",
|
|
165
|
-
|
|
174
|
+
requestType: "json",
|
|
175
|
+
body: serializers.CustomCodeHostedRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
166
176
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
167
177
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
168
178
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
169
179
|
});
|
|
170
180
|
if (_response.ok) {
|
|
171
|
-
return
|
|
181
|
+
return serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, {
|
|
172
182
|
unrecognizedObjectKeys: "passthrough",
|
|
173
183
|
allowUnrecognizedUnionMembers: true,
|
|
174
184
|
allowUnrecognizedEnumValues: true,
|
|
@@ -185,7 +195,13 @@ class Scripts {
|
|
|
185
195
|
case 404:
|
|
186
196
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
187
197
|
case 429:
|
|
188
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
198
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
199
|
+
unrecognizedObjectKeys: "passthrough",
|
|
200
|
+
allowUnrecognizedUnionMembers: true,
|
|
201
|
+
allowUnrecognizedEnumValues: true,
|
|
202
|
+
skipValidation: true,
|
|
203
|
+
breadcrumbsPrefix: ["response"],
|
|
204
|
+
}));
|
|
189
205
|
case 500:
|
|
190
206
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
191
207
|
default:
|
|
@@ -224,7 +240,7 @@ class Scripts {
|
|
|
224
240
|
* @throws {@link Webflow.InternalServerError}
|
|
225
241
|
*
|
|
226
242
|
* @example
|
|
227
|
-
* await client.scripts.registerInline("
|
|
243
|
+
* await client.scripts.registerInline("580e63e98c9a982ac9b8b741", {
|
|
228
244
|
* sourceCode: "alert('hello world');",
|
|
229
245
|
* version: "0.0.1",
|
|
230
246
|
* displayName: "Alert"
|
|
@@ -240,18 +256,20 @@ class Scripts {
|
|
|
240
256
|
Authorization: yield this._getAuthorizationHeader(),
|
|
241
257
|
"X-Fern-Language": "JavaScript",
|
|
242
258
|
"X-Fern-SDK-Name": "webflow-api",
|
|
243
|
-
"X-Fern-SDK-Version": "2.
|
|
259
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
260
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
244
261
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
245
262
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
246
263
|
},
|
|
247
264
|
contentType: "application/json",
|
|
248
|
-
|
|
265
|
+
requestType: "json",
|
|
266
|
+
body: serializers.CustomCodeInlineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
249
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
250
268
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
251
269
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
252
270
|
});
|
|
253
271
|
if (_response.ok) {
|
|
254
|
-
return
|
|
272
|
+
return serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, {
|
|
255
273
|
unrecognizedObjectKeys: "passthrough",
|
|
256
274
|
allowUnrecognizedUnionMembers: true,
|
|
257
275
|
allowUnrecognizedEnumValues: true,
|
|
@@ -268,7 +286,13 @@ class Scripts {
|
|
|
268
286
|
case 404:
|
|
269
287
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
270
288
|
case 429:
|
|
271
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
289
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
290
|
+
unrecognizedObjectKeys: "passthrough",
|
|
291
|
+
allowUnrecognizedUnionMembers: true,
|
|
292
|
+
allowUnrecognizedEnumValues: true,
|
|
293
|
+
skipValidation: true,
|
|
294
|
+
breadcrumbsPrefix: ["response"],
|
|
295
|
+
}));
|
|
272
296
|
case 500:
|
|
273
297
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
274
298
|
default:
|
|
@@ -28,11 +28,9 @@ export declare class Sites {
|
|
|
28
28
|
*
|
|
29
29
|
* @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
|
|
30
30
|
*
|
|
31
|
-
* @throws {@link Webflow.BadRequestError}
|
|
32
31
|
* @throws {@link Webflow.UnauthorizedError}
|
|
33
32
|
* @throws {@link Webflow.NotFoundError}
|
|
34
33
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
35
|
-
* @throws {@link Webflow.InternalServerError}
|
|
36
34
|
*
|
|
37
35
|
* @example
|
|
38
36
|
* await client.sites.list()
|
|
@@ -51,7 +49,7 @@ export declare class Sites {
|
|
|
51
49
|
* @throws {@link Webflow.InternalServerError}
|
|
52
50
|
*
|
|
53
51
|
* @example
|
|
54
|
-
* await client.sites.get("
|
|
52
|
+
* await client.sites.get("580e63e98c9a982ac9b8b741")
|
|
55
53
|
*/
|
|
56
54
|
get(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Site>;
|
|
57
55
|
/**
|
|
@@ -67,11 +65,11 @@ export declare class Sites {
|
|
|
67
65
|
* @throws {@link Webflow.InternalServerError}
|
|
68
66
|
*
|
|
69
67
|
* @example
|
|
70
|
-
* await client.sites.getCustomDomain("
|
|
68
|
+
* await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741")
|
|
71
69
|
*/
|
|
72
70
|
getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Domains>;
|
|
73
71
|
/**
|
|
74
|
-
* Publish a site to one more more domains. </br></br> Required scope | `sites:write`
|
|
72
|
+
* Publish a site to one more more domains. </br></br> Required scope | `sites:write` <blockquote class="callout callout_info" theme="📘"><h2 class="callout-heading"><span class="callout-icon">📘</span><p>Endpoint-specific rate limit</p></h2><p>This endpoint has a limit of one successful publish queue per minute.</p></blockquote>
|
|
75
73
|
*
|
|
76
74
|
* @param {string} siteId - Unique identifier for a Site
|
|
77
75
|
* @param {Webflow.SitesPublishRequest} request
|
|
@@ -84,9 +82,9 @@ export declare class Sites {
|
|
|
84
82
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
85
83
|
*
|
|
86
84
|
* @example
|
|
87
|
-
* await client.sites.publish("
|
|
85
|
+
* await client.sites.publish("580e63e98c9a982ac9b8b741")
|
|
88
86
|
*/
|
|
89
|
-
publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): Promise<
|
|
87
|
+
publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): Promise<Webflow.SitesPublishResponse>;
|
|
90
88
|
protected _activityLogs: ActivityLogs | undefined;
|
|
91
89
|
get activityLogs(): ActivityLogs;
|
|
92
90
|
protected _scripts: Scripts | undefined;
|
|
@@ -56,11 +56,9 @@ class Sites {
|
|
|
56
56
|
*
|
|
57
57
|
* @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
|
|
58
58
|
*
|
|
59
|
-
* @throws {@link Webflow.BadRequestError}
|
|
60
59
|
* @throws {@link Webflow.UnauthorizedError}
|
|
61
60
|
* @throws {@link Webflow.NotFoundError}
|
|
62
61
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
63
|
-
* @throws {@link Webflow.InternalServerError}
|
|
64
62
|
*
|
|
65
63
|
* @example
|
|
66
64
|
* await client.sites.list()
|
|
@@ -75,17 +73,19 @@ class Sites {
|
|
|
75
73
|
Authorization: yield this._getAuthorizationHeader(),
|
|
76
74
|
"X-Fern-Language": "JavaScript",
|
|
77
75
|
"X-Fern-SDK-Name": "webflow-api",
|
|
78
|
-
"X-Fern-SDK-Version": "2.
|
|
76
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
77
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
79
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
80
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
81
80
|
},
|
|
82
81
|
contentType: "application/json",
|
|
82
|
+
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
84
84
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
85
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
86
86
|
});
|
|
87
87
|
if (_response.ok) {
|
|
88
|
-
return
|
|
88
|
+
return serializers.Sites.parseOrThrow(_response.body, {
|
|
89
89
|
unrecognizedObjectKeys: "passthrough",
|
|
90
90
|
allowUnrecognizedUnionMembers: true,
|
|
91
91
|
allowUnrecognizedEnumValues: true,
|
|
@@ -95,16 +95,18 @@ class Sites {
|
|
|
95
95
|
}
|
|
96
96
|
if (_response.error.reason === "status-code") {
|
|
97
97
|
switch (_response.error.statusCode) {
|
|
98
|
-
case 400:
|
|
99
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
100
98
|
case 401:
|
|
101
99
|
throw new Webflow.UnauthorizedError(_response.error.body);
|
|
102
100
|
case 404:
|
|
103
101
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
104
102
|
case 429:
|
|
105
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
104
|
+
unrecognizedObjectKeys: "passthrough",
|
|
105
|
+
allowUnrecognizedUnionMembers: true,
|
|
106
|
+
allowUnrecognizedEnumValues: true,
|
|
107
|
+
skipValidation: true,
|
|
108
|
+
breadcrumbsPrefix: ["response"],
|
|
109
|
+
}));
|
|
108
110
|
default:
|
|
109
111
|
throw new errors.WebflowError({
|
|
110
112
|
statusCode: _response.error.statusCode,
|
|
@@ -140,7 +142,7 @@ class Sites {
|
|
|
140
142
|
* @throws {@link Webflow.InternalServerError}
|
|
141
143
|
*
|
|
142
144
|
* @example
|
|
143
|
-
* await client.sites.get("
|
|
145
|
+
* await client.sites.get("580e63e98c9a982ac9b8b741")
|
|
144
146
|
*/
|
|
145
147
|
get(siteId, requestOptions) {
|
|
146
148
|
var _a;
|
|
@@ -152,17 +154,19 @@ class Sites {
|
|
|
152
154
|
Authorization: yield this._getAuthorizationHeader(),
|
|
153
155
|
"X-Fern-Language": "JavaScript",
|
|
154
156
|
"X-Fern-SDK-Name": "webflow-api",
|
|
155
|
-
"X-Fern-SDK-Version": "2.
|
|
157
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
158
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
156
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
161
|
},
|
|
159
162
|
contentType: "application/json",
|
|
163
|
+
requestType: "json",
|
|
160
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
161
165
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
162
166
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
163
167
|
});
|
|
164
168
|
if (_response.ok) {
|
|
165
|
-
return
|
|
169
|
+
return serializers.Site.parseOrThrow(_response.body, {
|
|
166
170
|
unrecognizedObjectKeys: "passthrough",
|
|
167
171
|
allowUnrecognizedUnionMembers: true,
|
|
168
172
|
allowUnrecognizedEnumValues: true,
|
|
@@ -179,7 +183,13 @@ class Sites {
|
|
|
179
183
|
case 404:
|
|
180
184
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
181
185
|
case 429:
|
|
182
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
186
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
187
|
+
unrecognizedObjectKeys: "passthrough",
|
|
188
|
+
allowUnrecognizedUnionMembers: true,
|
|
189
|
+
allowUnrecognizedEnumValues: true,
|
|
190
|
+
skipValidation: true,
|
|
191
|
+
breadcrumbsPrefix: ["response"],
|
|
192
|
+
}));
|
|
183
193
|
case 500:
|
|
184
194
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
185
195
|
default:
|
|
@@ -217,7 +227,7 @@ class Sites {
|
|
|
217
227
|
* @throws {@link Webflow.InternalServerError}
|
|
218
228
|
*
|
|
219
229
|
* @example
|
|
220
|
-
* await client.sites.getCustomDomain("
|
|
230
|
+
* await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741")
|
|
221
231
|
*/
|
|
222
232
|
getCustomDomain(siteId, requestOptions) {
|
|
223
233
|
var _a;
|
|
@@ -229,17 +239,19 @@ class Sites {
|
|
|
229
239
|
Authorization: yield this._getAuthorizationHeader(),
|
|
230
240
|
"X-Fern-Language": "JavaScript",
|
|
231
241
|
"X-Fern-SDK-Name": "webflow-api",
|
|
232
|
-
"X-Fern-SDK-Version": "2.
|
|
242
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
243
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
233
244
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
234
245
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
235
246
|
},
|
|
236
247
|
contentType: "application/json",
|
|
248
|
+
requestType: "json",
|
|
237
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
238
250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
239
251
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
240
252
|
});
|
|
241
253
|
if (_response.ok) {
|
|
242
|
-
return
|
|
254
|
+
return serializers.Domains.parseOrThrow(_response.body, {
|
|
243
255
|
unrecognizedObjectKeys: "passthrough",
|
|
244
256
|
allowUnrecognizedUnionMembers: true,
|
|
245
257
|
allowUnrecognizedEnumValues: true,
|
|
@@ -256,7 +268,13 @@ class Sites {
|
|
|
256
268
|
case 404:
|
|
257
269
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
258
270
|
case 429:
|
|
259
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
271
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
272
|
+
unrecognizedObjectKeys: "passthrough",
|
|
273
|
+
allowUnrecognizedUnionMembers: true,
|
|
274
|
+
allowUnrecognizedEnumValues: true,
|
|
275
|
+
skipValidation: true,
|
|
276
|
+
breadcrumbsPrefix: ["response"],
|
|
277
|
+
}));
|
|
260
278
|
case 500:
|
|
261
279
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
262
280
|
default:
|
|
@@ -282,7 +300,7 @@ class Sites {
|
|
|
282
300
|
});
|
|
283
301
|
}
|
|
284
302
|
/**
|
|
285
|
-
* Publish a site to one more more domains. </br></br> Required scope | `sites:write`
|
|
303
|
+
* Publish a site to one more more domains. </br></br> Required scope | `sites:write` <blockquote class="callout callout_info" theme="📘"><h2 class="callout-heading"><span class="callout-icon">📘</span><p>Endpoint-specific rate limit</p></h2><p>This endpoint has a limit of one successful publish queue per minute.</p></blockquote>
|
|
286
304
|
*
|
|
287
305
|
* @param {string} siteId - Unique identifier for a Site
|
|
288
306
|
* @param {Webflow.SitesPublishRequest} request
|
|
@@ -295,7 +313,7 @@ class Sites {
|
|
|
295
313
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
296
314
|
*
|
|
297
315
|
* @example
|
|
298
|
-
* await client.sites.publish("
|
|
316
|
+
* await client.sites.publish("580e63e98c9a982ac9b8b741")
|
|
299
317
|
*/
|
|
300
318
|
publish(siteId, request = {}, requestOptions) {
|
|
301
319
|
var _a;
|
|
@@ -307,18 +325,26 @@ class Sites {
|
|
|
307
325
|
Authorization: yield this._getAuthorizationHeader(),
|
|
308
326
|
"X-Fern-Language": "JavaScript",
|
|
309
327
|
"X-Fern-SDK-Name": "webflow-api",
|
|
310
|
-
"X-Fern-SDK-Version": "2.
|
|
328
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
329
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
311
330
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
312
331
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
313
332
|
},
|
|
314
333
|
contentType: "application/json",
|
|
315
|
-
|
|
334
|
+
requestType: "json",
|
|
335
|
+
body: serializers.SitesPublishRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
316
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
317
337
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
318
338
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
319
339
|
});
|
|
320
340
|
if (_response.ok) {
|
|
321
|
-
return
|
|
341
|
+
return serializers.SitesPublishResponse.parseOrThrow(_response.body, {
|
|
342
|
+
unrecognizedObjectKeys: "passthrough",
|
|
343
|
+
allowUnrecognizedUnionMembers: true,
|
|
344
|
+
allowUnrecognizedEnumValues: true,
|
|
345
|
+
skipValidation: true,
|
|
346
|
+
breadcrumbsPrefix: ["response"],
|
|
347
|
+
});
|
|
322
348
|
}
|
|
323
349
|
if (_response.error.reason === "status-code") {
|
|
324
350
|
switch (_response.error.statusCode) {
|
|
@@ -331,7 +357,13 @@ class Sites {
|
|
|
331
357
|
case 404:
|
|
332
358
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
333
359
|
case 429:
|
|
334
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
360
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
361
|
+
unrecognizedObjectKeys: "passthrough",
|
|
362
|
+
allowUnrecognizedUnionMembers: true,
|
|
363
|
+
allowUnrecognizedEnumValues: true,
|
|
364
|
+
skipValidation: true,
|
|
365
|
+
breadcrumbsPrefix: ["response"],
|
|
366
|
+
}));
|
|
335
367
|
default:
|
|
336
368
|
throw new errors.WebflowError({
|
|
337
369
|
statusCode: _response.error.statusCode,
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -34,7 +34,7 @@ export declare class ActivityLogs {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.sites.activityLogs.list("
|
|
37
|
+
* await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
list(siteId: string, request?: Webflow.sites.ActivityLogsListRequest, requestOptions?: ActivityLogs.RequestOptions): Promise<Webflow.SiteActivityLogResponse>;
|
|
40
40
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class ActivityLogs {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.sites.activityLogs.list("
|
|
65
|
+
* await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, request = {}, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -82,18 +82,20 @@ class ActivityLogs {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "2.
|
|
85
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
86
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
86
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
89
|
},
|
|
89
90
|
contentType: "application/json",
|
|
90
91
|
queryParameters: _queryParams,
|
|
92
|
+
requestType: "json",
|
|
91
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
93
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
96
|
});
|
|
95
97
|
if (_response.ok) {
|
|
96
|
-
return
|
|
98
|
+
return serializers.SiteActivityLogResponse.parseOrThrow(_response.body, {
|
|
97
99
|
unrecognizedObjectKeys: "passthrough",
|
|
98
100
|
allowUnrecognizedUnionMembers: true,
|
|
99
101
|
allowUnrecognizedEnumValues: true,
|
|
@@ -108,7 +110,13 @@ class ActivityLogs {
|
|
|
108
110
|
case 404:
|
|
109
111
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
110
112
|
case 429:
|
|
111
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
113
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
114
|
+
unrecognizedObjectKeys: "passthrough",
|
|
115
|
+
allowUnrecognizedUnionMembers: true,
|
|
116
|
+
allowUnrecognizedEnumValues: true,
|
|
117
|
+
skipValidation: true,
|
|
118
|
+
breadcrumbsPrefix: ["response"],
|
|
119
|
+
}));
|
|
112
120
|
case 500:
|
|
113
121
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
114
122
|
default:
|
|
@@ -34,7 +34,7 @@ export declare class Scripts {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.sites.scripts.getCustomCode("
|
|
37
|
+
* await client.sites.scripts.getCustomCode("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
getCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
40
40
|
/**
|
|
@@ -51,17 +51,17 @@ export declare class Scripts {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.sites.scripts.upsertCustomCode("
|
|
54
|
+
* await client.sites.scripts.upsertCustomCode("580e63e98c9a982ac9b8b741", {
|
|
55
55
|
* scripts: [{
|
|
56
56
|
* id: "cms_slider",
|
|
57
|
-
* location:
|
|
57
|
+
* location: "header",
|
|
58
58
|
* version: "1.0.0",
|
|
59
59
|
* attributes: {
|
|
60
60
|
* "my-attribute": "some-value"
|
|
61
61
|
* }
|
|
62
62
|
* }, {
|
|
63
63
|
* id: "alert",
|
|
64
|
-
* location:
|
|
64
|
+
* location: "header",
|
|
65
65
|
* version: "0.0.1"
|
|
66
66
|
* }]
|
|
67
67
|
* })
|
|
@@ -80,7 +80,7 @@ export declare class Scripts {
|
|
|
80
80
|
* @throws {@link Webflow.InternalServerError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.sites.scripts.deleteCustomCode("
|
|
83
|
+
* await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741")
|
|
84
84
|
*/
|
|
85
85
|
deleteCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
|
|
86
86
|
/**
|
|
@@ -97,7 +97,7 @@ export declare class Scripts {
|
|
|
97
97
|
* @throws {@link Webflow.InternalServerError}
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
|
-
* await client.sites.scripts.listCustomCodeBlocks("
|
|
100
|
+
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
|
|
101
101
|
*/
|
|
102
102
|
listCustomCodeBlocks(siteId: string, request?: Webflow.sites.ScriptsListCustomCodeBlocksRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ListCustomCodeBlocks>;
|
|
103
103
|
protected _getAuthorizationHeader(): Promise<string>;
|