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
|
@@ -34,7 +34,7 @@ export declare class Scripts {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.pages.scripts.getCustomCode("
|
|
37
|
+
* await client.pages.scripts.getCustomCode("63c720f9347c2139b248e552")
|
|
38
38
|
*/
|
|
39
39
|
getCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
40
40
|
/**
|
|
@@ -51,17 +51,17 @@ export declare class Scripts {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.pages.scripts.upsertCustomCode("
|
|
54
|
+
* await client.pages.scripts.upsertCustomCode("63c720f9347c2139b248e552", {
|
|
55
55
|
* scripts: [{
|
|
56
56
|
* id: "cms_slider",
|
|
57
|
-
* location:
|
|
57
|
+
* location: "header",
|
|
58
58
|
* version: "1.0.0",
|
|
59
59
|
* attributes: {
|
|
60
60
|
* "my-attribute": "some-value"
|
|
61
61
|
* }
|
|
62
62
|
* }, {
|
|
63
63
|
* id: "alert",
|
|
64
|
-
* location:
|
|
64
|
+
* location: "header",
|
|
65
65
|
* version: "0.0.1"
|
|
66
66
|
* }]
|
|
67
67
|
* })
|
|
@@ -80,7 +80,7 @@ export declare class Scripts {
|
|
|
80
80
|
* @throws {@link Webflow.InternalServerError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.pages.scripts.deleteCustomCode("
|
|
83
|
+
* await client.pages.scripts.deleteCustomCode("63c720f9347c2139b248e552")
|
|
84
84
|
*/
|
|
85
85
|
deleteCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
|
|
86
86
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class Scripts {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.pages.scripts.getCustomCode("
|
|
65
|
+
* await client.pages.scripts.getCustomCode("63c720f9347c2139b248e552")
|
|
66
66
|
*/
|
|
67
67
|
getCustomCode(pageId, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -74,17 +74,19 @@ class Scripts {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "2.
|
|
77
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
78
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
78
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
81
|
},
|
|
81
82
|
contentType: "application/json",
|
|
83
|
+
requestType: "json",
|
|
82
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
85
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
86
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
87
|
});
|
|
86
88
|
if (_response.ok) {
|
|
87
|
-
return
|
|
89
|
+
return serializers.ScriptApplyList.parseOrThrow(_response.body, {
|
|
88
90
|
unrecognizedObjectKeys: "passthrough",
|
|
89
91
|
allowUnrecognizedUnionMembers: true,
|
|
90
92
|
allowUnrecognizedEnumValues: true,
|
|
@@ -101,7 +103,7 @@ class Scripts {
|
|
|
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,17 +148,17 @@ class Scripts {
|
|
|
146
148
|
* @throws {@link Webflow.InternalServerError}
|
|
147
149
|
*
|
|
148
150
|
* @example
|
|
149
|
-
* await client.pages.scripts.upsertCustomCode("
|
|
151
|
+
* await client.pages.scripts.upsertCustomCode("63c720f9347c2139b248e552", {
|
|
150
152
|
* scripts: [{
|
|
151
153
|
* id: "cms_slider",
|
|
152
|
-
* location:
|
|
154
|
+
* location: "header",
|
|
153
155
|
* version: "1.0.0",
|
|
154
156
|
* attributes: {
|
|
155
157
|
* "my-attribute": "some-value"
|
|
156
158
|
* }
|
|
157
159
|
* }, {
|
|
158
160
|
* id: "alert",
|
|
159
|
-
* location:
|
|
161
|
+
* location: "header",
|
|
160
162
|
* version: "0.0.1"
|
|
161
163
|
* }]
|
|
162
164
|
* })
|
|
@@ -171,18 +173,20 @@ class Scripts {
|
|
|
171
173
|
Authorization: yield this._getAuthorizationHeader(),
|
|
172
174
|
"X-Fern-Language": "JavaScript",
|
|
173
175
|
"X-Fern-SDK-Name": "webflow-api",
|
|
174
|
-
"X-Fern-SDK-Version": "2.
|
|
176
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
177
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
175
178
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
176
179
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
177
180
|
},
|
|
178
181
|
contentType: "application/json",
|
|
179
|
-
|
|
182
|
+
requestType: "json",
|
|
183
|
+
body: serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
180
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
181
185
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
182
186
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
183
187
|
});
|
|
184
188
|
if (_response.ok) {
|
|
185
|
-
return
|
|
189
|
+
return serializers.ScriptApplyList.parseOrThrow(_response.body, {
|
|
186
190
|
unrecognizedObjectKeys: "passthrough",
|
|
187
191
|
allowUnrecognizedUnionMembers: true,
|
|
188
192
|
allowUnrecognizedEnumValues: true,
|
|
@@ -199,7 +203,7 @@ class Scripts {
|
|
|
199
203
|
case 404:
|
|
200
204
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
201
205
|
case 429:
|
|
202
|
-
throw new Webflow.TooManyRequestsError(
|
|
206
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
203
207
|
unrecognizedObjectKeys: "passthrough",
|
|
204
208
|
allowUnrecognizedUnionMembers: true,
|
|
205
209
|
allowUnrecognizedEnumValues: true,
|
|
@@ -243,7 +247,7 @@ class Scripts {
|
|
|
243
247
|
* @throws {@link Webflow.InternalServerError}
|
|
244
248
|
*
|
|
245
249
|
* @example
|
|
246
|
-
* await client.pages.scripts.deleteCustomCode("
|
|
250
|
+
* await client.pages.scripts.deleteCustomCode("63c720f9347c2139b248e552")
|
|
247
251
|
*/
|
|
248
252
|
deleteCustomCode(pageId, requestOptions) {
|
|
249
253
|
var _a;
|
|
@@ -255,11 +259,13 @@ class Scripts {
|
|
|
255
259
|
Authorization: yield this._getAuthorizationHeader(),
|
|
256
260
|
"X-Fern-Language": "JavaScript",
|
|
257
261
|
"X-Fern-SDK-Name": "webflow-api",
|
|
258
|
-
"X-Fern-SDK-Version": "2.
|
|
262
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
263
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
259
264
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
260
265
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
261
266
|
},
|
|
262
267
|
contentType: "application/json",
|
|
268
|
+
requestType: "json",
|
|
263
269
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
264
270
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
265
271
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -276,7 +282,7 @@ class Scripts {
|
|
|
276
282
|
case 404:
|
|
277
283
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
278
284
|
case 429:
|
|
279
|
-
throw new Webflow.TooManyRequestsError(
|
|
285
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
280
286
|
unrecognizedObjectKeys: "passthrough",
|
|
281
287
|
allowUnrecognizedUnionMembers: true,
|
|
282
288
|
allowUnrecognizedEnumValues: true,
|
|
@@ -39,7 +39,7 @@ export declare class Products {
|
|
|
39
39
|
* @throws {@link Webflow.InternalServerError}
|
|
40
40
|
*
|
|
41
41
|
* @example
|
|
42
|
-
* await client.products.list("
|
|
42
|
+
* await client.products.list("580e63e98c9a982ac9b8b741")
|
|
43
43
|
*/
|
|
44
44
|
list(siteId: string, request?: Webflow.ProductsListRequest, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUsList>;
|
|
45
45
|
/**
|
|
@@ -66,7 +66,7 @@ export declare class Products {
|
|
|
66
66
|
* @throws {@link Webflow.InternalServerError}
|
|
67
67
|
*
|
|
68
68
|
* @example
|
|
69
|
-
* await client.products.create("
|
|
69
|
+
* await client.products.create("580e63e98c9a982ac9b8b741")
|
|
70
70
|
*/
|
|
71
71
|
create(siteId: string, request?: Webflow.ProductSkuCreate, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
|
|
72
72
|
/**
|
|
@@ -87,7 +87,7 @@ export declare class Products {
|
|
|
87
87
|
* @throws {@link Webflow.InternalServerError}
|
|
88
88
|
*
|
|
89
89
|
* @example
|
|
90
|
-
* await client.products.get("
|
|
90
|
+
* await client.products.get("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
|
|
91
91
|
*/
|
|
92
92
|
get(siteId: string, productId: string, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
|
|
93
93
|
/**
|
|
@@ -109,7 +109,7 @@ export declare class Products {
|
|
|
109
109
|
* @throws {@link Webflow.InternalServerError}
|
|
110
110
|
*
|
|
111
111
|
* @example
|
|
112
|
-
* await client.products.update("
|
|
112
|
+
* await client.products.update("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
|
|
113
113
|
*/
|
|
114
114
|
update(siteId: string, productId: string, request?: Webflow.ProductSkuUpdate, requestOptions?: Products.RequestOptions): Promise<Webflow.Product>;
|
|
115
115
|
/**
|
|
@@ -133,7 +133,7 @@ export declare class Products {
|
|
|
133
133
|
* @throws {@link Webflow.InternalServerError}
|
|
134
134
|
*
|
|
135
135
|
* @example
|
|
136
|
-
* await client.products.createSku("
|
|
136
|
+
* await client.products.createSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", {
|
|
137
137
|
* skus: [{}]
|
|
138
138
|
* })
|
|
139
139
|
*/
|
|
@@ -158,7 +158,7 @@ export declare class Products {
|
|
|
158
158
|
* @throws {@link Webflow.InternalServerError}
|
|
159
159
|
*
|
|
160
160
|
* @example
|
|
161
|
-
* await client.products.updateSku("
|
|
161
|
+
* await client.products.updateSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", "5e8518516e147040726cc415", {
|
|
162
162
|
* sku: {}
|
|
163
163
|
* })
|
|
164
164
|
*/
|
|
@@ -67,7 +67,7 @@ class Products {
|
|
|
67
67
|
* @throws {@link Webflow.InternalServerError}
|
|
68
68
|
*
|
|
69
69
|
* @example
|
|
70
|
-
* await client.products.list("
|
|
70
|
+
* await client.products.list("580e63e98c9a982ac9b8b741")
|
|
71
71
|
*/
|
|
72
72
|
list(siteId, request = {}, requestOptions) {
|
|
73
73
|
var _a;
|
|
@@ -87,18 +87,20 @@ class Products {
|
|
|
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.ProductAndSkUsList.parseOrThrow(_response.body, {
|
|
102
104
|
unrecognizedObjectKeys: "passthrough",
|
|
103
105
|
allowUnrecognizedUnionMembers: true,
|
|
104
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -119,7 +121,7 @@ class Products {
|
|
|
119
121
|
case 409:
|
|
120
122
|
throw new Webflow.ConflictError(_response.error.body);
|
|
121
123
|
case 429:
|
|
122
|
-
throw new Webflow.TooManyRequestsError(
|
|
124
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
123
125
|
unrecognizedObjectKeys: "passthrough",
|
|
124
126
|
allowUnrecognizedUnionMembers: true,
|
|
125
127
|
allowUnrecognizedEnumValues: true,
|
|
@@ -174,7 +176,7 @@ class Products {
|
|
|
174
176
|
* @throws {@link Webflow.InternalServerError}
|
|
175
177
|
*
|
|
176
178
|
* @example
|
|
177
|
-
* await client.products.create("
|
|
179
|
+
* await client.products.create("580e63e98c9a982ac9b8b741")
|
|
178
180
|
*/
|
|
179
181
|
create(siteId, request = {}, requestOptions) {
|
|
180
182
|
var _a;
|
|
@@ -186,18 +188,20 @@ class Products {
|
|
|
186
188
|
Authorization: yield this._getAuthorizationHeader(),
|
|
187
189
|
"X-Fern-Language": "JavaScript",
|
|
188
190
|
"X-Fern-SDK-Name": "webflow-api",
|
|
189
|
-
"X-Fern-SDK-Version": "2.
|
|
191
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
192
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
190
193
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
191
194
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
192
195
|
},
|
|
193
196
|
contentType: "application/json",
|
|
194
|
-
|
|
197
|
+
requestType: "json",
|
|
198
|
+
body: serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
195
199
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
196
200
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
197
201
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
198
202
|
});
|
|
199
203
|
if (_response.ok) {
|
|
200
|
-
return
|
|
204
|
+
return serializers.ProductAndSkUs.parseOrThrow(_response.body, {
|
|
201
205
|
unrecognizedObjectKeys: "passthrough",
|
|
202
206
|
allowUnrecognizedUnionMembers: true,
|
|
203
207
|
allowUnrecognizedEnumValues: true,
|
|
@@ -218,7 +222,7 @@ class Products {
|
|
|
218
222
|
case 409:
|
|
219
223
|
throw new Webflow.ConflictError(_response.error.body);
|
|
220
224
|
case 429:
|
|
221
|
-
throw new Webflow.TooManyRequestsError(
|
|
225
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
222
226
|
unrecognizedObjectKeys: "passthrough",
|
|
223
227
|
allowUnrecognizedUnionMembers: true,
|
|
224
228
|
allowUnrecognizedEnumValues: true,
|
|
@@ -267,7 +271,7 @@ class Products {
|
|
|
267
271
|
* @throws {@link Webflow.InternalServerError}
|
|
268
272
|
*
|
|
269
273
|
* @example
|
|
270
|
-
* await client.products.get("
|
|
274
|
+
* await client.products.get("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
|
|
271
275
|
*/
|
|
272
276
|
get(siteId, productId, requestOptions) {
|
|
273
277
|
var _a;
|
|
@@ -279,17 +283,19 @@ class Products {
|
|
|
279
283
|
Authorization: yield this._getAuthorizationHeader(),
|
|
280
284
|
"X-Fern-Language": "JavaScript",
|
|
281
285
|
"X-Fern-SDK-Name": "webflow-api",
|
|
282
|
-
"X-Fern-SDK-Version": "2.
|
|
286
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
287
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
283
288
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
284
289
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
285
290
|
},
|
|
286
291
|
contentType: "application/json",
|
|
292
|
+
requestType: "json",
|
|
287
293
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
288
294
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
289
295
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
290
296
|
});
|
|
291
297
|
if (_response.ok) {
|
|
292
|
-
return
|
|
298
|
+
return serializers.ProductAndSkUs.parseOrThrow(_response.body, {
|
|
293
299
|
unrecognizedObjectKeys: "passthrough",
|
|
294
300
|
allowUnrecognizedUnionMembers: true,
|
|
295
301
|
allowUnrecognizedEnumValues: true,
|
|
@@ -310,7 +316,7 @@ class Products {
|
|
|
310
316
|
case 409:
|
|
311
317
|
throw new Webflow.ConflictError(_response.error.body);
|
|
312
318
|
case 429:
|
|
313
|
-
throw new Webflow.TooManyRequestsError(
|
|
319
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
314
320
|
unrecognizedObjectKeys: "passthrough",
|
|
315
321
|
allowUnrecognizedUnionMembers: true,
|
|
316
322
|
allowUnrecognizedEnumValues: true,
|
|
@@ -360,7 +366,7 @@ class Products {
|
|
|
360
366
|
* @throws {@link Webflow.InternalServerError}
|
|
361
367
|
*
|
|
362
368
|
* @example
|
|
363
|
-
* await client.products.update("
|
|
369
|
+
* await client.products.update("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
|
|
364
370
|
*/
|
|
365
371
|
update(siteId, productId, request = {}, requestOptions) {
|
|
366
372
|
var _a;
|
|
@@ -372,18 +378,20 @@ class Products {
|
|
|
372
378
|
Authorization: yield this._getAuthorizationHeader(),
|
|
373
379
|
"X-Fern-Language": "JavaScript",
|
|
374
380
|
"X-Fern-SDK-Name": "webflow-api",
|
|
375
|
-
"X-Fern-SDK-Version": "2.
|
|
381
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
382
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
376
383
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
377
384
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
378
385
|
},
|
|
379
386
|
contentType: "application/json",
|
|
380
|
-
|
|
387
|
+
requestType: "json",
|
|
388
|
+
body: serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
381
389
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
382
390
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
383
391
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
384
392
|
});
|
|
385
393
|
if (_response.ok) {
|
|
386
|
-
return
|
|
394
|
+
return serializers.Product.parseOrThrow(_response.body, {
|
|
387
395
|
unrecognizedObjectKeys: "passthrough",
|
|
388
396
|
allowUnrecognizedUnionMembers: true,
|
|
389
397
|
allowUnrecognizedEnumValues: true,
|
|
@@ -404,7 +412,7 @@ class Products {
|
|
|
404
412
|
case 409:
|
|
405
413
|
throw new Webflow.ConflictError(_response.error.body);
|
|
406
414
|
case 429:
|
|
407
|
-
throw new Webflow.TooManyRequestsError(
|
|
415
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
408
416
|
unrecognizedObjectKeys: "passthrough",
|
|
409
417
|
allowUnrecognizedUnionMembers: true,
|
|
410
418
|
allowUnrecognizedEnumValues: true,
|
|
@@ -456,7 +464,7 @@ class Products {
|
|
|
456
464
|
* @throws {@link Webflow.InternalServerError}
|
|
457
465
|
*
|
|
458
466
|
* @example
|
|
459
|
-
* await client.products.createSku("
|
|
467
|
+
* await client.products.createSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", {
|
|
460
468
|
* skus: [{}]
|
|
461
469
|
* })
|
|
462
470
|
*/
|
|
@@ -470,18 +478,20 @@ class Products {
|
|
|
470
478
|
Authorization: yield this._getAuthorizationHeader(),
|
|
471
479
|
"X-Fern-Language": "JavaScript",
|
|
472
480
|
"X-Fern-SDK-Name": "webflow-api",
|
|
473
|
-
"X-Fern-SDK-Version": "2.
|
|
481
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
482
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
474
483
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
475
484
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
476
485
|
},
|
|
477
486
|
contentType: "application/json",
|
|
478
|
-
|
|
487
|
+
requestType: "json",
|
|
488
|
+
body: serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
479
489
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
480
490
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
481
491
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
482
492
|
});
|
|
483
493
|
if (_response.ok) {
|
|
484
|
-
return
|
|
494
|
+
return serializers.ProductsCreateSkuResponse.parseOrThrow(_response.body, {
|
|
485
495
|
unrecognizedObjectKeys: "passthrough",
|
|
486
496
|
allowUnrecognizedUnionMembers: true,
|
|
487
497
|
allowUnrecognizedEnumValues: true,
|
|
@@ -502,7 +512,7 @@ class Products {
|
|
|
502
512
|
case 409:
|
|
503
513
|
throw new Webflow.ConflictError(_response.error.body);
|
|
504
514
|
case 429:
|
|
505
|
-
throw new Webflow.TooManyRequestsError(
|
|
515
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
506
516
|
unrecognizedObjectKeys: "passthrough",
|
|
507
517
|
allowUnrecognizedUnionMembers: true,
|
|
508
518
|
allowUnrecognizedEnumValues: true,
|
|
@@ -553,7 +563,7 @@ class Products {
|
|
|
553
563
|
* @throws {@link Webflow.InternalServerError}
|
|
554
564
|
*
|
|
555
565
|
* @example
|
|
556
|
-
* await client.products.updateSku("
|
|
566
|
+
* await client.products.updateSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", "5e8518516e147040726cc415", {
|
|
557
567
|
* sku: {}
|
|
558
568
|
* })
|
|
559
569
|
*/
|
|
@@ -567,18 +577,20 @@ class Products {
|
|
|
567
577
|
Authorization: yield this._getAuthorizationHeader(),
|
|
568
578
|
"X-Fern-Language": "JavaScript",
|
|
569
579
|
"X-Fern-SDK-Name": "webflow-api",
|
|
570
|
-
"X-Fern-SDK-Version": "2.
|
|
580
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
581
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
571
582
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
572
583
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
573
584
|
},
|
|
574
585
|
contentType: "application/json",
|
|
575
|
-
|
|
586
|
+
requestType: "json",
|
|
587
|
+
body: serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
576
588
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
577
589
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
578
590
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
579
591
|
});
|
|
580
592
|
if (_response.ok) {
|
|
581
|
-
return
|
|
593
|
+
return serializers.Sku.parseOrThrow(_response.body, {
|
|
582
594
|
unrecognizedObjectKeys: "passthrough",
|
|
583
595
|
allowUnrecognizedUnionMembers: true,
|
|
584
596
|
allowUnrecognizedEnumValues: true,
|
|
@@ -599,7 +611,7 @@ class Products {
|
|
|
599
611
|
case 409:
|
|
600
612
|
throw new Webflow.ConflictError(_response.error.body);
|
|
601
613
|
case 429:
|
|
602
|
-
throw new Webflow.TooManyRequestsError(
|
|
614
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
603
615
|
unrecognizedObjectKeys: "passthrough",
|
|
604
616
|
allowUnrecognizedUnionMembers: true,
|
|
605
617
|
allowUnrecognizedEnumValues: true,
|
|
@@ -34,7 +34,7 @@ export declare class Scripts {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.scripts.list("
|
|
37
|
+
* await client.scripts.list("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.RegisteredScriptList>;
|
|
40
40
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class Scripts {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.scripts.registerHosted("
|
|
54
|
+
* await client.scripts.registerHosted("580e63e98c9a982ac9b8b741", {
|
|
55
55
|
* hostedLocation: "hostedLocation",
|
|
56
56
|
* integrityHash: "integrityHash",
|
|
57
57
|
* version: "version",
|
|
@@ -73,7 +73,7 @@ export declare class Scripts {
|
|
|
73
73
|
* @throws {@link Webflow.InternalServerError}
|
|
74
74
|
*
|
|
75
75
|
* @example
|
|
76
|
-
* await client.scripts.registerInline("
|
|
76
|
+
* await client.scripts.registerInline("580e63e98c9a982ac9b8b741", {
|
|
77
77
|
* sourceCode: "alert('hello world');",
|
|
78
78
|
* version: "0.0.1",
|
|
79
79
|
* displayName: "Alert"
|
|
@@ -62,7 +62,7 @@ class Scripts {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.scripts.list("
|
|
65
|
+
* await client.scripts.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -74,17 +74,19 @@ class Scripts {
|
|
|
74
74
|
Authorization: yield this._getAuthorizationHeader(),
|
|
75
75
|
"X-Fern-Language": "JavaScript",
|
|
76
76
|
"X-Fern-SDK-Name": "webflow-api",
|
|
77
|
-
"X-Fern-SDK-Version": "2.
|
|
77
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
78
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
78
79
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
79
80
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
80
81
|
},
|
|
81
82
|
contentType: "application/json",
|
|
83
|
+
requestType: "json",
|
|
82
84
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
85
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
86
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
87
|
});
|
|
86
88
|
if (_response.ok) {
|
|
87
|
-
return
|
|
89
|
+
return serializers.RegisteredScriptList.parseOrThrow(_response.body, {
|
|
88
90
|
unrecognizedObjectKeys: "passthrough",
|
|
89
91
|
allowUnrecognizedUnionMembers: true,
|
|
90
92
|
allowUnrecognizedEnumValues: true,
|
|
@@ -101,7 +103,7 @@ class Scripts {
|
|
|
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 Scripts {
|
|
|
146
148
|
* @throws {@link Webflow.InternalServerError}
|
|
147
149
|
*
|
|
148
150
|
* @example
|
|
149
|
-
* await client.scripts.registerHosted("
|
|
151
|
+
* await client.scripts.registerHosted("580e63e98c9a982ac9b8b741", {
|
|
150
152
|
* hostedLocation: "hostedLocation",
|
|
151
153
|
* integrityHash: "integrityHash",
|
|
152
154
|
* version: "version",
|
|
@@ -163,18 +165,20 @@ class Scripts {
|
|
|
163
165
|
Authorization: yield this._getAuthorizationHeader(),
|
|
164
166
|
"X-Fern-Language": "JavaScript",
|
|
165
167
|
"X-Fern-SDK-Name": "webflow-api",
|
|
166
|
-
"X-Fern-SDK-Version": "2.
|
|
168
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
169
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
167
170
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
168
171
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
169
172
|
},
|
|
170
173
|
contentType: "application/json",
|
|
171
|
-
|
|
174
|
+
requestType: "json",
|
|
175
|
+
body: serializers.CustomCodeHostedRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
172
176
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
173
177
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
174
178
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
175
179
|
});
|
|
176
180
|
if (_response.ok) {
|
|
177
|
-
return
|
|
181
|
+
return serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, {
|
|
178
182
|
unrecognizedObjectKeys: "passthrough",
|
|
179
183
|
allowUnrecognizedUnionMembers: true,
|
|
180
184
|
allowUnrecognizedEnumValues: true,
|
|
@@ -191,7 +195,7 @@ class Scripts {
|
|
|
191
195
|
case 404:
|
|
192
196
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
193
197
|
case 429:
|
|
194
|
-
throw new Webflow.TooManyRequestsError(
|
|
198
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
195
199
|
unrecognizedObjectKeys: "passthrough",
|
|
196
200
|
allowUnrecognizedUnionMembers: true,
|
|
197
201
|
allowUnrecognizedEnumValues: true,
|
|
@@ -236,7 +240,7 @@ class Scripts {
|
|
|
236
240
|
* @throws {@link Webflow.InternalServerError}
|
|
237
241
|
*
|
|
238
242
|
* @example
|
|
239
|
-
* await client.scripts.registerInline("
|
|
243
|
+
* await client.scripts.registerInline("580e63e98c9a982ac9b8b741", {
|
|
240
244
|
* sourceCode: "alert('hello world');",
|
|
241
245
|
* version: "0.0.1",
|
|
242
246
|
* displayName: "Alert"
|
|
@@ -252,18 +256,20 @@ class Scripts {
|
|
|
252
256
|
Authorization: yield this._getAuthorizationHeader(),
|
|
253
257
|
"X-Fern-Language": "JavaScript",
|
|
254
258
|
"X-Fern-SDK-Name": "webflow-api",
|
|
255
|
-
"X-Fern-SDK-Version": "2.
|
|
259
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
260
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
256
261
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
257
262
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
258
263
|
},
|
|
259
264
|
contentType: "application/json",
|
|
260
|
-
|
|
265
|
+
requestType: "json",
|
|
266
|
+
body: serializers.CustomCodeInlineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
261
267
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
262
268
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
263
269
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
264
270
|
});
|
|
265
271
|
if (_response.ok) {
|
|
266
|
-
return
|
|
272
|
+
return serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, {
|
|
267
273
|
unrecognizedObjectKeys: "passthrough",
|
|
268
274
|
allowUnrecognizedUnionMembers: true,
|
|
269
275
|
allowUnrecognizedEnumValues: true,
|
|
@@ -280,7 +286,7 @@ class Scripts {
|
|
|
280
286
|
case 404:
|
|
281
287
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
282
288
|
case 429:
|
|
283
|
-
throw new Webflow.TooManyRequestsError(
|
|
289
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
284
290
|
unrecognizedObjectKeys: "passthrough",
|
|
285
291
|
allowUnrecognizedUnionMembers: true,
|
|
286
292
|
allowUnrecognizedEnumValues: true,
|
|
@@ -49,7 +49,7 @@ export declare class Sites {
|
|
|
49
49
|
* @throws {@link Webflow.InternalServerError}
|
|
50
50
|
*
|
|
51
51
|
* @example
|
|
52
|
-
* await client.sites.get("
|
|
52
|
+
* await client.sites.get("580e63e98c9a982ac9b8b741")
|
|
53
53
|
*/
|
|
54
54
|
get(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Site>;
|
|
55
55
|
/**
|
|
@@ -65,7 +65,7 @@ export declare class Sites {
|
|
|
65
65
|
* @throws {@link Webflow.InternalServerError}
|
|
66
66
|
*
|
|
67
67
|
* @example
|
|
68
|
-
* await client.sites.getCustomDomain("
|
|
68
|
+
* await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741")
|
|
69
69
|
*/
|
|
70
70
|
getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Domains>;
|
|
71
71
|
/**
|
|
@@ -82,9 +82,9 @@ export declare class Sites {
|
|
|
82
82
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
83
83
|
*
|
|
84
84
|
* @example
|
|
85
|
-
* await client.sites.publish("
|
|
85
|
+
* await client.sites.publish("580e63e98c9a982ac9b8b741")
|
|
86
86
|
*/
|
|
87
|
-
publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): Promise<
|
|
87
|
+
publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): Promise<Webflow.SitesPublishResponse>;
|
|
88
88
|
protected _activityLogs: ActivityLogs | undefined;
|
|
89
89
|
get activityLogs(): ActivityLogs;
|
|
90
90
|
protected _scripts: Scripts | undefined;
|