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
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Webflow from "../index";
|
|
5
6
|
export declare class TooManyRequestsError extends errors.WebflowError {
|
|
6
|
-
constructor(body
|
|
7
|
+
constructor(body: Webflow.TooManyRequestsErrorBody);
|
|
7
8
|
}
|
package/api/errors/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./UnauthorizedError";
|
|
2
2
|
export * from "./ForbiddenError";
|
|
3
|
-
export * from "./BadRequestError";
|
|
4
3
|
export * from "./NotFoundError";
|
|
5
4
|
export * from "./TooManyRequestsError";
|
|
5
|
+
export * from "./BadRequestError";
|
|
6
6
|
export * from "./InternalServerError";
|
|
7
7
|
export * from "./ConflictError";
|
package/api/errors/index.js
CHANGED
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./UnauthorizedError"), exports);
|
|
18
18
|
__exportStar(require("./ForbiddenError"), exports);
|
|
19
|
-
__exportStar(require("./BadRequestError"), exports);
|
|
20
19
|
__exportStar(require("./NotFoundError"), exports);
|
|
21
20
|
__exportStar(require("./TooManyRequestsError"), exports);
|
|
21
|
+
__exportStar(require("./BadRequestError"), exports);
|
|
22
22
|
__exportStar(require("./InternalServerError"), exports);
|
|
23
23
|
__exportStar(require("./ConflictError"), exports);
|
|
@@ -36,7 +36,7 @@ export declare class AccessGroups {
|
|
|
36
36
|
* @throws {@link Webflow.InternalServerError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.accessGroups.list("
|
|
39
|
+
* await client.accessGroups.list("580e63e98c9a982ac9b8b741")
|
|
40
40
|
*/
|
|
41
41
|
list(siteId: string, request?: Webflow.AccessGroupsListRequest, requestOptions?: AccessGroups.RequestOptions): Promise<Webflow.AccessGroupList>;
|
|
42
42
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -64,7 +64,7 @@ class AccessGroups {
|
|
|
64
64
|
* @throws {@link Webflow.InternalServerError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.accessGroups.list("
|
|
67
|
+
* await client.accessGroups.list("580e63e98c9a982ac9b8b741")
|
|
68
68
|
*/
|
|
69
69
|
list(siteId, request = {}, requestOptions) {
|
|
70
70
|
var _a;
|
|
@@ -87,18 +87,20 @@ class AccessGroups {
|
|
|
87
87
|
Authorization: yield this._getAuthorizationHeader(),
|
|
88
88
|
"X-Fern-Language": "JavaScript",
|
|
89
89
|
"X-Fern-SDK-Name": "webflow-api",
|
|
90
|
-
"X-Fern-SDK-Version": "2.
|
|
90
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
91
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
91
92
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
92
93
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
93
94
|
},
|
|
94
95
|
contentType: "application/json",
|
|
95
96
|
queryParameters: _queryParams,
|
|
97
|
+
requestType: "json",
|
|
96
98
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
97
99
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
98
100
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
99
101
|
});
|
|
100
102
|
if (_response.ok) {
|
|
101
|
-
return
|
|
103
|
+
return serializers.AccessGroupList.parseOrThrow(_response.body, {
|
|
102
104
|
unrecognizedObjectKeys: "passthrough",
|
|
103
105
|
allowUnrecognizedUnionMembers: true,
|
|
104
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,7 +119,13 @@ class AccessGroups {
|
|
|
117
119
|
case 404:
|
|
118
120
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
123
|
+
unrecognizedObjectKeys: "passthrough",
|
|
124
|
+
allowUnrecognizedUnionMembers: true,
|
|
125
|
+
allowUnrecognizedEnumValues: true,
|
|
126
|
+
skipValidation: true,
|
|
127
|
+
breadcrumbsPrefix: ["response"],
|
|
128
|
+
}));
|
|
121
129
|
case 500:
|
|
122
130
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
123
131
|
default:
|
|
@@ -34,7 +34,7 @@ export declare class Assets {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.assets.list("
|
|
37
|
+
* await client.assets.list("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Assets>;
|
|
40
40
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class Assets {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.assets.create("
|
|
54
|
+
* await client.assets.create("580e63e98c9a982ac9b8b741", {
|
|
55
55
|
* fileName: "file.png",
|
|
56
56
|
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
57
57
|
* })
|
|
@@ -70,7 +70,7 @@ export declare class Assets {
|
|
|
70
70
|
* @throws {@link Webflow.InternalServerError}
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
|
-
* await client.assets.get("
|
|
73
|
+
* await client.assets.get("580e63fc8c9a982ac9b8b745")
|
|
74
74
|
*/
|
|
75
75
|
get(assetId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset>;
|
|
76
76
|
/**
|
|
@@ -86,7 +86,7 @@ export declare class Assets {
|
|
|
86
86
|
* @throws {@link Webflow.InternalServerError}
|
|
87
87
|
*
|
|
88
88
|
* @example
|
|
89
|
-
* await client.assets.delete("
|
|
89
|
+
* await client.assets.delete("580e63fc8c9a982ac9b8b745")
|
|
90
90
|
*/
|
|
91
91
|
delete(assetId: string, requestOptions?: Assets.RequestOptions): Promise<void>;
|
|
92
92
|
/**
|
|
@@ -103,7 +103,7 @@ export declare class Assets {
|
|
|
103
103
|
* @throws {@link Webflow.InternalServerError}
|
|
104
104
|
*
|
|
105
105
|
* @example
|
|
106
|
-
* await client.assets.update("
|
|
106
|
+
* await client.assets.update("580e63fc8c9a982ac9b8b745", {
|
|
107
107
|
* displayName: "bulldoze.png"
|
|
108
108
|
* })
|
|
109
109
|
*/
|
|
@@ -121,7 +121,7 @@ export declare class Assets {
|
|
|
121
121
|
* @throws {@link Webflow.InternalServerError}
|
|
122
122
|
*
|
|
123
123
|
* @example
|
|
124
|
-
* await client.assets.listFolders("
|
|
124
|
+
* await client.assets.listFolders("580e63e98c9a982ac9b8b741")
|
|
125
125
|
*/
|
|
126
126
|
listFolders(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolderList>;
|
|
127
127
|
/**
|
|
@@ -138,7 +138,7 @@ export declare class Assets {
|
|
|
138
138
|
* @throws {@link Webflow.InternalServerError}
|
|
139
139
|
*
|
|
140
140
|
* @example
|
|
141
|
-
* await client.assets.createFolder("
|
|
141
|
+
* await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
|
|
142
142
|
* displayName: "my asset folder"
|
|
143
143
|
* })
|
|
144
144
|
*/
|
|
@@ -156,7 +156,7 @@ export declare class Assets {
|
|
|
156
156
|
* @throws {@link Webflow.InternalServerError}
|
|
157
157
|
*
|
|
158
158
|
* @example
|
|
159
|
-
* await client.assets.getFolder("
|
|
159
|
+
* await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
|
|
160
160
|
*/
|
|
161
161
|
getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolder>;
|
|
162
162
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class Assets {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.assets.list("
|
|
65
|
+
* await client.assets.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -74,17 +74,19 @@ class Assets {
|
|
|
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.Assets.parseOrThrow(_response.body, {
|
|
88
90
|
unrecognizedObjectKeys: "passthrough",
|
|
89
91
|
allowUnrecognizedUnionMembers: true,
|
|
90
92
|
allowUnrecognizedEnumValues: true,
|
|
@@ -101,7 +103,13 @@ class Assets {
|
|
|
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 Assets {
|
|
|
140
148
|
* @throws {@link Webflow.InternalServerError}
|
|
141
149
|
*
|
|
142
150
|
* @example
|
|
143
|
-
* await client.assets.create("
|
|
151
|
+
* await client.assets.create("580e63e98c9a982ac9b8b741", {
|
|
144
152
|
* fileName: "file.png",
|
|
145
153
|
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
146
154
|
* })
|
|
@@ -155,18 +163,20 @@ class Assets {
|
|
|
155
163
|
Authorization: yield this._getAuthorizationHeader(),
|
|
156
164
|
"X-Fern-Language": "JavaScript",
|
|
157
165
|
"X-Fern-SDK-Name": "webflow-api",
|
|
158
|
-
"X-Fern-SDK-Version": "2.
|
|
166
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
167
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
159
168
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
169
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
170
|
},
|
|
162
171
|
contentType: "application/json",
|
|
163
|
-
|
|
172
|
+
requestType: "json",
|
|
173
|
+
body: serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
164
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
175
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
176
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
167
177
|
});
|
|
168
178
|
if (_response.ok) {
|
|
169
|
-
return
|
|
179
|
+
return serializers.AssetUpload.parseOrThrow(_response.body, {
|
|
170
180
|
unrecognizedObjectKeys: "passthrough",
|
|
171
181
|
allowUnrecognizedUnionMembers: true,
|
|
172
182
|
allowUnrecognizedEnumValues: true,
|
|
@@ -183,7 +193,13 @@ class Assets {
|
|
|
183
193
|
case 404:
|
|
184
194
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
185
195
|
case 429:
|
|
186
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
196
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
197
|
+
unrecognizedObjectKeys: "passthrough",
|
|
198
|
+
allowUnrecognizedUnionMembers: true,
|
|
199
|
+
allowUnrecognizedEnumValues: true,
|
|
200
|
+
skipValidation: true,
|
|
201
|
+
breadcrumbsPrefix: ["response"],
|
|
202
|
+
}));
|
|
187
203
|
case 500:
|
|
188
204
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
189
205
|
default:
|
|
@@ -221,7 +237,7 @@ class Assets {
|
|
|
221
237
|
* @throws {@link Webflow.InternalServerError}
|
|
222
238
|
*
|
|
223
239
|
* @example
|
|
224
|
-
* await client.assets.get("
|
|
240
|
+
* await client.assets.get("580e63fc8c9a982ac9b8b745")
|
|
225
241
|
*/
|
|
226
242
|
get(assetId, requestOptions) {
|
|
227
243
|
var _a;
|
|
@@ -233,17 +249,19 @@ class Assets {
|
|
|
233
249
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
250
|
"X-Fern-Language": "JavaScript",
|
|
235
251
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "2.
|
|
252
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
253
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
237
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
256
|
},
|
|
240
257
|
contentType: "application/json",
|
|
258
|
+
requestType: "json",
|
|
241
259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
242
260
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
243
261
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
244
262
|
});
|
|
245
263
|
if (_response.ok) {
|
|
246
|
-
return
|
|
264
|
+
return serializers.Asset.parseOrThrow(_response.body, {
|
|
247
265
|
unrecognizedObjectKeys: "passthrough",
|
|
248
266
|
allowUnrecognizedUnionMembers: true,
|
|
249
267
|
allowUnrecognizedEnumValues: true,
|
|
@@ -260,7 +278,13 @@ class Assets {
|
|
|
260
278
|
case 404:
|
|
261
279
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
262
280
|
case 429:
|
|
263
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
281
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
282
|
+
unrecognizedObjectKeys: "passthrough",
|
|
283
|
+
allowUnrecognizedUnionMembers: true,
|
|
284
|
+
allowUnrecognizedEnumValues: true,
|
|
285
|
+
skipValidation: true,
|
|
286
|
+
breadcrumbsPrefix: ["response"],
|
|
287
|
+
}));
|
|
264
288
|
case 500:
|
|
265
289
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
266
290
|
default:
|
|
@@ -298,7 +322,7 @@ class Assets {
|
|
|
298
322
|
* @throws {@link Webflow.InternalServerError}
|
|
299
323
|
*
|
|
300
324
|
* @example
|
|
301
|
-
* await client.assets.delete("
|
|
325
|
+
* await client.assets.delete("580e63fc8c9a982ac9b8b745")
|
|
302
326
|
*/
|
|
303
327
|
delete(assetId, requestOptions) {
|
|
304
328
|
var _a;
|
|
@@ -310,11 +334,13 @@ class Assets {
|
|
|
310
334
|
Authorization: yield this._getAuthorizationHeader(),
|
|
311
335
|
"X-Fern-Language": "JavaScript",
|
|
312
336
|
"X-Fern-SDK-Name": "webflow-api",
|
|
313
|
-
"X-Fern-SDK-Version": "2.
|
|
337
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
338
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
314
339
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
315
340
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
316
341
|
},
|
|
317
342
|
contentType: "application/json",
|
|
343
|
+
requestType: "json",
|
|
318
344
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
319
345
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
320
346
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -331,7 +357,13 @@ class Assets {
|
|
|
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
|
case 500:
|
|
336
368
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
337
369
|
default:
|
|
@@ -370,7 +402,7 @@ class Assets {
|
|
|
370
402
|
* @throws {@link Webflow.InternalServerError}
|
|
371
403
|
*
|
|
372
404
|
* @example
|
|
373
|
-
* await client.assets.update("
|
|
405
|
+
* await client.assets.update("580e63fc8c9a982ac9b8b745", {
|
|
374
406
|
* displayName: "bulldoze.png"
|
|
375
407
|
* })
|
|
376
408
|
*/
|
|
@@ -384,18 +416,20 @@ class Assets {
|
|
|
384
416
|
Authorization: yield this._getAuthorizationHeader(),
|
|
385
417
|
"X-Fern-Language": "JavaScript",
|
|
386
418
|
"X-Fern-SDK-Name": "webflow-api",
|
|
387
|
-
"X-Fern-SDK-Version": "2.
|
|
419
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
420
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
388
421
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
389
422
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
390
423
|
},
|
|
391
424
|
contentType: "application/json",
|
|
392
|
-
|
|
425
|
+
requestType: "json",
|
|
426
|
+
body: serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
393
427
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
394
428
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
395
429
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
396
430
|
});
|
|
397
431
|
if (_response.ok) {
|
|
398
|
-
return
|
|
432
|
+
return serializers.Asset.parseOrThrow(_response.body, {
|
|
399
433
|
unrecognizedObjectKeys: "passthrough",
|
|
400
434
|
allowUnrecognizedUnionMembers: true,
|
|
401
435
|
allowUnrecognizedEnumValues: true,
|
|
@@ -412,7 +446,13 @@ class Assets {
|
|
|
412
446
|
case 404:
|
|
413
447
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
414
448
|
case 429:
|
|
415
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
449
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
450
|
+
unrecognizedObjectKeys: "passthrough",
|
|
451
|
+
allowUnrecognizedUnionMembers: true,
|
|
452
|
+
allowUnrecognizedEnumValues: true,
|
|
453
|
+
skipValidation: true,
|
|
454
|
+
breadcrumbsPrefix: ["response"],
|
|
455
|
+
}));
|
|
416
456
|
case 500:
|
|
417
457
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
418
458
|
default:
|
|
@@ -450,7 +490,7 @@ class Assets {
|
|
|
450
490
|
* @throws {@link Webflow.InternalServerError}
|
|
451
491
|
*
|
|
452
492
|
* @example
|
|
453
|
-
* await client.assets.listFolders("
|
|
493
|
+
* await client.assets.listFolders("580e63e98c9a982ac9b8b741")
|
|
454
494
|
*/
|
|
455
495
|
listFolders(siteId, requestOptions) {
|
|
456
496
|
var _a;
|
|
@@ -462,17 +502,19 @@ class Assets {
|
|
|
462
502
|
Authorization: yield this._getAuthorizationHeader(),
|
|
463
503
|
"X-Fern-Language": "JavaScript",
|
|
464
504
|
"X-Fern-SDK-Name": "webflow-api",
|
|
465
|
-
"X-Fern-SDK-Version": "2.
|
|
505
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
506
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
466
507
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
467
508
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
468
509
|
},
|
|
469
510
|
contentType: "application/json",
|
|
511
|
+
requestType: "json",
|
|
470
512
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
471
513
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
472
514
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
473
515
|
});
|
|
474
516
|
if (_response.ok) {
|
|
475
|
-
return
|
|
517
|
+
return serializers.AssetFolderList.parseOrThrow(_response.body, {
|
|
476
518
|
unrecognizedObjectKeys: "passthrough",
|
|
477
519
|
allowUnrecognizedUnionMembers: true,
|
|
478
520
|
allowUnrecognizedEnumValues: true,
|
|
@@ -489,7 +531,13 @@ class Assets {
|
|
|
489
531
|
case 404:
|
|
490
532
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
491
533
|
case 429:
|
|
492
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
534
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
535
|
+
unrecognizedObjectKeys: "passthrough",
|
|
536
|
+
allowUnrecognizedUnionMembers: true,
|
|
537
|
+
allowUnrecognizedEnumValues: true,
|
|
538
|
+
skipValidation: true,
|
|
539
|
+
breadcrumbsPrefix: ["response"],
|
|
540
|
+
}));
|
|
493
541
|
case 500:
|
|
494
542
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
495
543
|
default:
|
|
@@ -528,7 +576,7 @@ class Assets {
|
|
|
528
576
|
* @throws {@link Webflow.InternalServerError}
|
|
529
577
|
*
|
|
530
578
|
* @example
|
|
531
|
-
* await client.assets.createFolder("
|
|
579
|
+
* await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
|
|
532
580
|
* displayName: "my asset folder"
|
|
533
581
|
* })
|
|
534
582
|
*/
|
|
@@ -542,18 +590,20 @@ class Assets {
|
|
|
542
590
|
Authorization: yield this._getAuthorizationHeader(),
|
|
543
591
|
"X-Fern-Language": "JavaScript",
|
|
544
592
|
"X-Fern-SDK-Name": "webflow-api",
|
|
545
|
-
"X-Fern-SDK-Version": "2.
|
|
593
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
594
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
546
595
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
547
596
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
548
597
|
},
|
|
549
598
|
contentType: "application/json",
|
|
550
|
-
|
|
599
|
+
requestType: "json",
|
|
600
|
+
body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
551
601
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
552
602
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
553
603
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
554
604
|
});
|
|
555
605
|
if (_response.ok) {
|
|
556
|
-
return
|
|
606
|
+
return serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
557
607
|
unrecognizedObjectKeys: "passthrough",
|
|
558
608
|
allowUnrecognizedUnionMembers: true,
|
|
559
609
|
allowUnrecognizedEnumValues: true,
|
|
@@ -570,7 +620,13 @@ class Assets {
|
|
|
570
620
|
case 404:
|
|
571
621
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
572
622
|
case 429:
|
|
573
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
623
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
624
|
+
unrecognizedObjectKeys: "passthrough",
|
|
625
|
+
allowUnrecognizedUnionMembers: true,
|
|
626
|
+
allowUnrecognizedEnumValues: true,
|
|
627
|
+
skipValidation: true,
|
|
628
|
+
breadcrumbsPrefix: ["response"],
|
|
629
|
+
}));
|
|
574
630
|
case 500:
|
|
575
631
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
576
632
|
default:
|
|
@@ -608,7 +664,7 @@ class Assets {
|
|
|
608
664
|
* @throws {@link Webflow.InternalServerError}
|
|
609
665
|
*
|
|
610
666
|
* @example
|
|
611
|
-
* await client.assets.getFolder("
|
|
667
|
+
* await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
|
|
612
668
|
*/
|
|
613
669
|
getFolder(assetFolderId, requestOptions) {
|
|
614
670
|
var _a;
|
|
@@ -620,17 +676,19 @@ class Assets {
|
|
|
620
676
|
Authorization: yield this._getAuthorizationHeader(),
|
|
621
677
|
"X-Fern-Language": "JavaScript",
|
|
622
678
|
"X-Fern-SDK-Name": "webflow-api",
|
|
623
|
-
"X-Fern-SDK-Version": "2.
|
|
679
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
680
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
624
681
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
625
682
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
626
683
|
},
|
|
627
684
|
contentType: "application/json",
|
|
685
|
+
requestType: "json",
|
|
628
686
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
629
687
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
630
688
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
631
689
|
});
|
|
632
690
|
if (_response.ok) {
|
|
633
|
-
return
|
|
691
|
+
return serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
634
692
|
unrecognizedObjectKeys: "passthrough",
|
|
635
693
|
allowUnrecognizedUnionMembers: true,
|
|
636
694
|
allowUnrecognizedEnumValues: true,
|
|
@@ -647,7 +705,13 @@ class Assets {
|
|
|
647
705
|
case 404:
|
|
648
706
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
649
707
|
case 429:
|
|
650
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
708
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
709
|
+
unrecognizedObjectKeys: "passthrough",
|
|
710
|
+
allowUnrecognizedUnionMembers: true,
|
|
711
|
+
allowUnrecognizedEnumValues: true,
|
|
712
|
+
skipValidation: true,
|
|
713
|
+
breadcrumbsPrefix: ["response"],
|
|
714
|
+
}));
|
|
651
715
|
case 500:
|
|
652
716
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
653
717
|
default:
|
|
@@ -36,7 +36,7 @@ export declare class Collections {
|
|
|
36
36
|
* @throws {@link Webflow.InternalServerError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.collections.list("
|
|
39
|
+
* await client.collections.list("580e63e98c9a982ac9b8b741")
|
|
40
40
|
*/
|
|
41
41
|
list(siteId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.CollectionList>;
|
|
42
42
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class Collections {
|
|
|
53
53
|
* @throws {@link Webflow.InternalServerError}
|
|
54
54
|
*
|
|
55
55
|
* @example
|
|
56
|
-
* await client.collections.create("
|
|
56
|
+
* await client.collections.create("580e63e98c9a982ac9b8b741", {
|
|
57
57
|
* displayName: "Blog Posts",
|
|
58
58
|
* singularName: "Blog Post",
|
|
59
59
|
* slug: "posts"
|
|
@@ -73,7 +73,7 @@ export declare class Collections {
|
|
|
73
73
|
* @throws {@link Webflow.InternalServerError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.collections.get("
|
|
76
|
+
* await client.collections.get("580e63fc8c9a982ac9b8b745")
|
|
77
77
|
*/
|
|
78
78
|
get(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
79
79
|
/**
|
|
@@ -89,7 +89,7 @@ export declare class Collections {
|
|
|
89
89
|
* @throws {@link Webflow.InternalServerError}
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
|
-
* await client.collections.deleteCollection("
|
|
92
|
+
* await client.collections.deleteCollection("580e63fc8c9a982ac9b8b745")
|
|
93
93
|
*/
|
|
94
94
|
deleteCollection(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
95
95
|
/**
|
|
@@ -106,7 +106,7 @@ export declare class Collections {
|
|
|
106
106
|
* @throws {@link Webflow.InternalServerError}
|
|
107
107
|
*
|
|
108
108
|
* @example
|
|
109
|
-
* await client.collections.delete("
|
|
109
|
+
* await client.collections.delete("580e63fc8c9a982ac9b8b745", "580e63fc8c9a982ac9b8b745")
|
|
110
110
|
*/
|
|
111
111
|
delete(collectionId: string, fieldId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
|
|
112
112
|
protected _fields: Fields | undefined;
|