webflow-api 2.3.6 → 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/resources/accessGroups/client/Client.d.ts +1 -1
- package/api/resources/accessGroups/client/Client.js +6 -4
- package/api/resources/assets/client/Client.d.ts +8 -8
- package/api/resources/assets/client/Client.js +50 -34
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +29 -19
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +15 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +17 -17
- package/api/resources/collections/resources/items/client/Client.js +101 -55
- 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 +6 -4
- package/api/resources/forms/client/Client.d.ts +5 -5
- package/api/resources/forms/client/Client.js +31 -23
- package/api/resources/index.d.ts +3 -2
- package/api/resources/index.js +4 -3
- package/api/resources/inventory/client/Client.d.ts +3 -3
- package/api/resources/inventory/client/Client.js +14 -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 +39 -29
- package/api/resources/pages/client/Client.d.ts +19 -10
- package/api/resources/pages/client/Client.js +44 -25
- 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 +20 -14
- package/api/resources/products/client/Client.d.ts +6 -6
- package/api/resources/products/client/Client.js +40 -28
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +20 -14
- package/api/resources/sites/client/Client.d.ts +4 -4
- package/api/resources/sites/client/Client.js +30 -16
- 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 +6 -4
- package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/scripts/client/Client.js +26 -18
- package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/api/resources/sites/types/index.d.ts +1 -0
- package/api/resources/sites/types/index.js +17 -0
- 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 +31 -21
- package/api/resources/webhooks/client/Client.d.ts +7 -7
- package/api/resources/webhooks/client/Client.js +27 -19
- package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/api/{resources/collections/resources/items/types → 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/MissingScopes.d.ts +10 -1
- package/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/api/types/Page.d.ts +5 -1
- package/api/types/UserLimitReached.d.ts +10 -1
- package/api/types/UsersNotEnabled.d.ts +10 -1
- package/api/types/index.d.ts +4 -5
- package/api/types/index.js +4 -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/resources/accessGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +6 -4
- package/dist/api/resources/assets/client/Client.d.ts +8 -8
- package/dist/api/resources/assets/client/Client.js +50 -34
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +29 -19
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +15 -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 +17 -17
- package/dist/api/resources/collections/resources/items/client/Client.js +101 -55
- 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 +6 -4
- package/dist/api/resources/forms/client/Client.d.ts +5 -5
- package/dist/api/resources/forms/client/Client.js +31 -23
- package/dist/api/resources/index.d.ts +3 -2
- package/dist/api/resources/index.js +4 -3
- package/dist/api/resources/inventory/client/Client.d.ts +3 -3
- package/dist/api/resources/inventory/client/Client.js +14 -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 +39 -29
- package/dist/api/resources/pages/client/Client.d.ts +19 -10
- package/dist/api/resources/pages/client/Client.js +44 -25
- 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 +20 -14
- package/dist/api/resources/products/client/Client.d.ts +6 -6
- package/dist/api/resources/products/client/Client.js +40 -28
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +20 -14
- package/dist/api/resources/sites/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/client/Client.js +30 -16
- 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 +6 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +26 -18
- package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/dist/api/resources/sites/types/index.d.ts +1 -0
- package/dist/api/resources/sites/types/index.js +17 -0
- 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 +31 -21
- package/dist/api/resources/webhooks/client/Client.d.ts +7 -7
- package/dist/api/resources/webhooks/client/Client.js +27 -19
- package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/dist/api/{resources/collections/resources/items/types → 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/MissingScopes.d.ts +10 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/dist/api/types/Page.d.ts +5 -1
- package/dist/api/types/UserLimitReached.d.ts +10 -1
- package/dist/api/types/UsersNotEnabled.d.ts +10 -1
- package/dist/api/types/index.d.ts +4 -5
- package/dist/api/types/index.js +4 -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/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
- 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 -2
- package/dist/serialization/resources/index.js +4 -3
- 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/sites/types/index.js +17 -0
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/{serialization/resources/collections/resources/items/client/requests → dist/serialization/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/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/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/index.d.ts +3 -5
- package/dist/serialization/types/index.js +3 -5
- package/dist/version.d.ts +1 -0
- package/dist/version.js +4 -0
- package/dist/wrapper/ItemsClient.d.ts +49 -1
- package/dist/wrapper/ItemsClient.js +213 -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/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
- 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 -2
- package/serialization/resources/index.js +4 -3
- 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/serialization/resources/sites/types/index.js +17 -0
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/{dist/serialization/resources/collections/resources/items/client/requests → serialization/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/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/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/index.d.ts +3 -5
- package/serialization/types/index.js +3 -5
- package/version.d.ts +1 -0
- package/version.js +4 -0
- package/wrapper/ItemsClient.d.ts +49 -1
- package/wrapper/ItemsClient.js +213 -6
- 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/types/PageDetails.d.ts +0 -41
- package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/dist/api/types/PageDetailsOpenGraph.js +0 -5
- package/dist/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/api/types/PageDetailsSeo.js +0 -5
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/dist/serialization/types/OauthScope.d.ts +0 -10
- package/dist/serialization/types/OauthScope.js +0 -54
- 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/PageDetailsOpenGraph.js +0 -36
- package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/serialization/types/OauthScope.d.ts +0 -10
- package/serialization/types/OauthScope.js +0 -54
- 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/PageDetailsOpenGraph.js +0 -36
- 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 → 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/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
- /package/api/types/{OauthScope.js → OAuthScope.js} +0 -0
- /package/{api/types/PageDetails.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
- /package/{api/types/PageDetailsOpenGraph.js → dist/api/resources/sites/types/SitesPublishResponse.js} +0 -0
- /package/{api/types/PageDetailsSeo.js → dist/api/types/BulkCollectionItem.js} +0 -0
- /package/dist/api/types/{PageDetails.js → BulkCollectionItemFieldData.js} +0 -0
- /package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
- /package/dist/api/types/{OauthScope.js → OAuthScope.js} +0 -0
|
@@ -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,7 @@ class AccessGroups {
|
|
|
117
119
|
case 404:
|
|
118
120
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
121
123
|
unrecognizedObjectKeys: "passthrough",
|
|
122
124
|
allowUnrecognizedUnionMembers: true,
|
|
123
125
|
allowUnrecognizedEnumValues: true,
|
|
@@ -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,7 @@ class Assets {
|
|
|
101
103
|
case 404:
|
|
102
104
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
103
105
|
case 429:
|
|
104
|
-
throw new Webflow.TooManyRequestsError(
|
|
106
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
105
107
|
unrecognizedObjectKeys: "passthrough",
|
|
106
108
|
allowUnrecognizedUnionMembers: true,
|
|
107
109
|
allowUnrecognizedEnumValues: true,
|
|
@@ -146,7 +148,7 @@ class Assets {
|
|
|
146
148
|
* @throws {@link Webflow.InternalServerError}
|
|
147
149
|
*
|
|
148
150
|
* @example
|
|
149
|
-
* await client.assets.create("
|
|
151
|
+
* await client.assets.create("580e63e98c9a982ac9b8b741", {
|
|
150
152
|
* fileName: "file.png",
|
|
151
153
|
* fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
|
|
152
154
|
* })
|
|
@@ -161,18 +163,20 @@ class Assets {
|
|
|
161
163
|
Authorization: yield this._getAuthorizationHeader(),
|
|
162
164
|
"X-Fern-Language": "JavaScript",
|
|
163
165
|
"X-Fern-SDK-Name": "webflow-api",
|
|
164
|
-
"X-Fern-SDK-Version": "2.
|
|
166
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
167
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
165
168
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
166
169
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
167
170
|
},
|
|
168
171
|
contentType: "application/json",
|
|
169
|
-
|
|
172
|
+
requestType: "json",
|
|
173
|
+
body: serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
170
174
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
171
175
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
172
176
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
173
177
|
});
|
|
174
178
|
if (_response.ok) {
|
|
175
|
-
return
|
|
179
|
+
return serializers.AssetUpload.parseOrThrow(_response.body, {
|
|
176
180
|
unrecognizedObjectKeys: "passthrough",
|
|
177
181
|
allowUnrecognizedUnionMembers: true,
|
|
178
182
|
allowUnrecognizedEnumValues: true,
|
|
@@ -189,7 +193,7 @@ class Assets {
|
|
|
189
193
|
case 404:
|
|
190
194
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
191
195
|
case 429:
|
|
192
|
-
throw new Webflow.TooManyRequestsError(
|
|
196
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
193
197
|
unrecognizedObjectKeys: "passthrough",
|
|
194
198
|
allowUnrecognizedUnionMembers: true,
|
|
195
199
|
allowUnrecognizedEnumValues: true,
|
|
@@ -233,7 +237,7 @@ class Assets {
|
|
|
233
237
|
* @throws {@link Webflow.InternalServerError}
|
|
234
238
|
*
|
|
235
239
|
* @example
|
|
236
|
-
* await client.assets.get("
|
|
240
|
+
* await client.assets.get("580e63fc8c9a982ac9b8b745")
|
|
237
241
|
*/
|
|
238
242
|
get(assetId, requestOptions) {
|
|
239
243
|
var _a;
|
|
@@ -245,17 +249,19 @@ class Assets {
|
|
|
245
249
|
Authorization: yield this._getAuthorizationHeader(),
|
|
246
250
|
"X-Fern-Language": "JavaScript",
|
|
247
251
|
"X-Fern-SDK-Name": "webflow-api",
|
|
248
|
-
"X-Fern-SDK-Version": "2.
|
|
252
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
253
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
249
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
250
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
251
256
|
},
|
|
252
257
|
contentType: "application/json",
|
|
258
|
+
requestType: "json",
|
|
253
259
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
254
260
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
255
261
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
256
262
|
});
|
|
257
263
|
if (_response.ok) {
|
|
258
|
-
return
|
|
264
|
+
return serializers.Asset.parseOrThrow(_response.body, {
|
|
259
265
|
unrecognizedObjectKeys: "passthrough",
|
|
260
266
|
allowUnrecognizedUnionMembers: true,
|
|
261
267
|
allowUnrecognizedEnumValues: true,
|
|
@@ -272,7 +278,7 @@ class Assets {
|
|
|
272
278
|
case 404:
|
|
273
279
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
274
280
|
case 429:
|
|
275
|
-
throw new Webflow.TooManyRequestsError(
|
|
281
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
276
282
|
unrecognizedObjectKeys: "passthrough",
|
|
277
283
|
allowUnrecognizedUnionMembers: true,
|
|
278
284
|
allowUnrecognizedEnumValues: true,
|
|
@@ -316,7 +322,7 @@ class Assets {
|
|
|
316
322
|
* @throws {@link Webflow.InternalServerError}
|
|
317
323
|
*
|
|
318
324
|
* @example
|
|
319
|
-
* await client.assets.delete("
|
|
325
|
+
* await client.assets.delete("580e63fc8c9a982ac9b8b745")
|
|
320
326
|
*/
|
|
321
327
|
delete(assetId, requestOptions) {
|
|
322
328
|
var _a;
|
|
@@ -328,11 +334,13 @@ class Assets {
|
|
|
328
334
|
Authorization: yield this._getAuthorizationHeader(),
|
|
329
335
|
"X-Fern-Language": "JavaScript",
|
|
330
336
|
"X-Fern-SDK-Name": "webflow-api",
|
|
331
|
-
"X-Fern-SDK-Version": "2.
|
|
337
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
338
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
332
339
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
333
340
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
334
341
|
},
|
|
335
342
|
contentType: "application/json",
|
|
343
|
+
requestType: "json",
|
|
336
344
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
337
345
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
338
346
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -349,7 +357,7 @@ class Assets {
|
|
|
349
357
|
case 404:
|
|
350
358
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
351
359
|
case 429:
|
|
352
|
-
throw new Webflow.TooManyRequestsError(
|
|
360
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
353
361
|
unrecognizedObjectKeys: "passthrough",
|
|
354
362
|
allowUnrecognizedUnionMembers: true,
|
|
355
363
|
allowUnrecognizedEnumValues: true,
|
|
@@ -394,7 +402,7 @@ class Assets {
|
|
|
394
402
|
* @throws {@link Webflow.InternalServerError}
|
|
395
403
|
*
|
|
396
404
|
* @example
|
|
397
|
-
* await client.assets.update("
|
|
405
|
+
* await client.assets.update("580e63fc8c9a982ac9b8b745", {
|
|
398
406
|
* displayName: "bulldoze.png"
|
|
399
407
|
* })
|
|
400
408
|
*/
|
|
@@ -408,18 +416,20 @@ class Assets {
|
|
|
408
416
|
Authorization: yield this._getAuthorizationHeader(),
|
|
409
417
|
"X-Fern-Language": "JavaScript",
|
|
410
418
|
"X-Fern-SDK-Name": "webflow-api",
|
|
411
|
-
"X-Fern-SDK-Version": "2.
|
|
419
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
420
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
412
421
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
413
422
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
414
423
|
},
|
|
415
424
|
contentType: "application/json",
|
|
416
|
-
|
|
425
|
+
requestType: "json",
|
|
426
|
+
body: serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
417
427
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
418
428
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
419
429
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
420
430
|
});
|
|
421
431
|
if (_response.ok) {
|
|
422
|
-
return
|
|
432
|
+
return serializers.Asset.parseOrThrow(_response.body, {
|
|
423
433
|
unrecognizedObjectKeys: "passthrough",
|
|
424
434
|
allowUnrecognizedUnionMembers: true,
|
|
425
435
|
allowUnrecognizedEnumValues: true,
|
|
@@ -436,7 +446,7 @@ class Assets {
|
|
|
436
446
|
case 404:
|
|
437
447
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
438
448
|
case 429:
|
|
439
|
-
throw new Webflow.TooManyRequestsError(
|
|
449
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
440
450
|
unrecognizedObjectKeys: "passthrough",
|
|
441
451
|
allowUnrecognizedUnionMembers: true,
|
|
442
452
|
allowUnrecognizedEnumValues: true,
|
|
@@ -480,7 +490,7 @@ class Assets {
|
|
|
480
490
|
* @throws {@link Webflow.InternalServerError}
|
|
481
491
|
*
|
|
482
492
|
* @example
|
|
483
|
-
* await client.assets.listFolders("
|
|
493
|
+
* await client.assets.listFolders("580e63e98c9a982ac9b8b741")
|
|
484
494
|
*/
|
|
485
495
|
listFolders(siteId, requestOptions) {
|
|
486
496
|
var _a;
|
|
@@ -492,17 +502,19 @@ class Assets {
|
|
|
492
502
|
Authorization: yield this._getAuthorizationHeader(),
|
|
493
503
|
"X-Fern-Language": "JavaScript",
|
|
494
504
|
"X-Fern-SDK-Name": "webflow-api",
|
|
495
|
-
"X-Fern-SDK-Version": "2.
|
|
505
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
506
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
496
507
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
497
508
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
498
509
|
},
|
|
499
510
|
contentType: "application/json",
|
|
511
|
+
requestType: "json",
|
|
500
512
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
501
513
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
502
514
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
503
515
|
});
|
|
504
516
|
if (_response.ok) {
|
|
505
|
-
return
|
|
517
|
+
return serializers.AssetFolderList.parseOrThrow(_response.body, {
|
|
506
518
|
unrecognizedObjectKeys: "passthrough",
|
|
507
519
|
allowUnrecognizedUnionMembers: true,
|
|
508
520
|
allowUnrecognizedEnumValues: true,
|
|
@@ -519,7 +531,7 @@ class Assets {
|
|
|
519
531
|
case 404:
|
|
520
532
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
521
533
|
case 429:
|
|
522
|
-
throw new Webflow.TooManyRequestsError(
|
|
534
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
523
535
|
unrecognizedObjectKeys: "passthrough",
|
|
524
536
|
allowUnrecognizedUnionMembers: true,
|
|
525
537
|
allowUnrecognizedEnumValues: true,
|
|
@@ -564,7 +576,7 @@ class Assets {
|
|
|
564
576
|
* @throws {@link Webflow.InternalServerError}
|
|
565
577
|
*
|
|
566
578
|
* @example
|
|
567
|
-
* await client.assets.createFolder("
|
|
579
|
+
* await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
|
|
568
580
|
* displayName: "my asset folder"
|
|
569
581
|
* })
|
|
570
582
|
*/
|
|
@@ -578,18 +590,20 @@ class Assets {
|
|
|
578
590
|
Authorization: yield this._getAuthorizationHeader(),
|
|
579
591
|
"X-Fern-Language": "JavaScript",
|
|
580
592
|
"X-Fern-SDK-Name": "webflow-api",
|
|
581
|
-
"X-Fern-SDK-Version": "2.
|
|
593
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
594
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
582
595
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
583
596
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
584
597
|
},
|
|
585
598
|
contentType: "application/json",
|
|
586
|
-
|
|
599
|
+
requestType: "json",
|
|
600
|
+
body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
587
601
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
588
602
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
589
603
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
590
604
|
});
|
|
591
605
|
if (_response.ok) {
|
|
592
|
-
return
|
|
606
|
+
return serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
593
607
|
unrecognizedObjectKeys: "passthrough",
|
|
594
608
|
allowUnrecognizedUnionMembers: true,
|
|
595
609
|
allowUnrecognizedEnumValues: true,
|
|
@@ -606,7 +620,7 @@ class Assets {
|
|
|
606
620
|
case 404:
|
|
607
621
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
608
622
|
case 429:
|
|
609
|
-
throw new Webflow.TooManyRequestsError(
|
|
623
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
610
624
|
unrecognizedObjectKeys: "passthrough",
|
|
611
625
|
allowUnrecognizedUnionMembers: true,
|
|
612
626
|
allowUnrecognizedEnumValues: true,
|
|
@@ -650,7 +664,7 @@ class Assets {
|
|
|
650
664
|
* @throws {@link Webflow.InternalServerError}
|
|
651
665
|
*
|
|
652
666
|
* @example
|
|
653
|
-
* await client.assets.getFolder("
|
|
667
|
+
* await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
|
|
654
668
|
*/
|
|
655
669
|
getFolder(assetFolderId, requestOptions) {
|
|
656
670
|
var _a;
|
|
@@ -662,17 +676,19 @@ class Assets {
|
|
|
662
676
|
Authorization: yield this._getAuthorizationHeader(),
|
|
663
677
|
"X-Fern-Language": "JavaScript",
|
|
664
678
|
"X-Fern-SDK-Name": "webflow-api",
|
|
665
|
-
"X-Fern-SDK-Version": "2.
|
|
679
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
680
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
666
681
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
667
682
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
668
683
|
},
|
|
669
684
|
contentType: "application/json",
|
|
685
|
+
requestType: "json",
|
|
670
686
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
671
687
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
672
688
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
673
689
|
});
|
|
674
690
|
if (_response.ok) {
|
|
675
|
-
return
|
|
691
|
+
return serializers.AssetFolder.parseOrThrow(_response.body, {
|
|
676
692
|
unrecognizedObjectKeys: "passthrough",
|
|
677
693
|
allowUnrecognizedUnionMembers: true,
|
|
678
694
|
allowUnrecognizedEnumValues: true,
|
|
@@ -689,7 +705,7 @@ class Assets {
|
|
|
689
705
|
case 404:
|
|
690
706
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
691
707
|
case 429:
|
|
692
|
-
throw new Webflow.TooManyRequestsError(
|
|
708
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
693
709
|
unrecognizedObjectKeys: "passthrough",
|
|
694
710
|
allowUnrecognizedUnionMembers: true,
|
|
695
711
|
allowUnrecognizedEnumValues: true,
|
|
@@ -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;
|