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
|
@@ -73,17 +73,19 @@ class Sites {
|
|
|
73
73
|
Authorization: yield this._getAuthorizationHeader(),
|
|
74
74
|
"X-Fern-Language": "JavaScript",
|
|
75
75
|
"X-Fern-SDK-Name": "webflow-api",
|
|
76
|
-
"X-Fern-SDK-Version": "2.
|
|
76
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
77
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
77
78
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
78
79
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
79
80
|
},
|
|
80
81
|
contentType: "application/json",
|
|
82
|
+
requestType: "json",
|
|
81
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
82
84
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
83
85
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
84
86
|
});
|
|
85
87
|
if (_response.ok) {
|
|
86
|
-
return
|
|
88
|
+
return serializers.Sites.parseOrThrow(_response.body, {
|
|
87
89
|
unrecognizedObjectKeys: "passthrough",
|
|
88
90
|
allowUnrecognizedUnionMembers: true,
|
|
89
91
|
allowUnrecognizedEnumValues: true,
|
|
@@ -98,7 +100,7 @@ class Sites {
|
|
|
98
100
|
case 404:
|
|
99
101
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
100
102
|
case 429:
|
|
101
|
-
throw new Webflow.TooManyRequestsError(
|
|
103
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
102
104
|
unrecognizedObjectKeys: "passthrough",
|
|
103
105
|
allowUnrecognizedUnionMembers: true,
|
|
104
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -140,7 +142,7 @@ class Sites {
|
|
|
140
142
|
* @throws {@link Webflow.InternalServerError}
|
|
141
143
|
*
|
|
142
144
|
* @example
|
|
143
|
-
* await client.sites.get("
|
|
145
|
+
* await client.sites.get("580e63e98c9a982ac9b8b741")
|
|
144
146
|
*/
|
|
145
147
|
get(siteId, requestOptions) {
|
|
146
148
|
var _a;
|
|
@@ -152,17 +154,19 @@ class Sites {
|
|
|
152
154
|
Authorization: yield this._getAuthorizationHeader(),
|
|
153
155
|
"X-Fern-Language": "JavaScript",
|
|
154
156
|
"X-Fern-SDK-Name": "webflow-api",
|
|
155
|
-
"X-Fern-SDK-Version": "2.
|
|
157
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
158
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
156
159
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
157
160
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
158
161
|
},
|
|
159
162
|
contentType: "application/json",
|
|
163
|
+
requestType: "json",
|
|
160
164
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
161
165
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
162
166
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
163
167
|
});
|
|
164
168
|
if (_response.ok) {
|
|
165
|
-
return
|
|
169
|
+
return serializers.Site.parseOrThrow(_response.body, {
|
|
166
170
|
unrecognizedObjectKeys: "passthrough",
|
|
167
171
|
allowUnrecognizedUnionMembers: true,
|
|
168
172
|
allowUnrecognizedEnumValues: true,
|
|
@@ -179,7 +183,7 @@ class Sites {
|
|
|
179
183
|
case 404:
|
|
180
184
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
181
185
|
case 429:
|
|
182
|
-
throw new Webflow.TooManyRequestsError(
|
|
186
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
183
187
|
unrecognizedObjectKeys: "passthrough",
|
|
184
188
|
allowUnrecognizedUnionMembers: true,
|
|
185
189
|
allowUnrecognizedEnumValues: true,
|
|
@@ -223,7 +227,7 @@ class Sites {
|
|
|
223
227
|
* @throws {@link Webflow.InternalServerError}
|
|
224
228
|
*
|
|
225
229
|
* @example
|
|
226
|
-
* await client.sites.getCustomDomain("
|
|
230
|
+
* await client.sites.getCustomDomain("580e63e98c9a982ac9b8b741")
|
|
227
231
|
*/
|
|
228
232
|
getCustomDomain(siteId, requestOptions) {
|
|
229
233
|
var _a;
|
|
@@ -235,17 +239,19 @@ class Sites {
|
|
|
235
239
|
Authorization: yield this._getAuthorizationHeader(),
|
|
236
240
|
"X-Fern-Language": "JavaScript",
|
|
237
241
|
"X-Fern-SDK-Name": "webflow-api",
|
|
238
|
-
"X-Fern-SDK-Version": "2.
|
|
242
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
243
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
239
244
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
240
245
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
241
246
|
},
|
|
242
247
|
contentType: "application/json",
|
|
248
|
+
requestType: "json",
|
|
243
249
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
244
250
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
245
251
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
246
252
|
});
|
|
247
253
|
if (_response.ok) {
|
|
248
|
-
return
|
|
254
|
+
return serializers.Domains.parseOrThrow(_response.body, {
|
|
249
255
|
unrecognizedObjectKeys: "passthrough",
|
|
250
256
|
allowUnrecognizedUnionMembers: true,
|
|
251
257
|
allowUnrecognizedEnumValues: true,
|
|
@@ -262,7 +268,7 @@ class Sites {
|
|
|
262
268
|
case 404:
|
|
263
269
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
264
270
|
case 429:
|
|
265
|
-
throw new Webflow.TooManyRequestsError(
|
|
271
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
266
272
|
unrecognizedObjectKeys: "passthrough",
|
|
267
273
|
allowUnrecognizedUnionMembers: true,
|
|
268
274
|
allowUnrecognizedEnumValues: true,
|
|
@@ -307,7 +313,7 @@ class Sites {
|
|
|
307
313
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
308
314
|
*
|
|
309
315
|
* @example
|
|
310
|
-
* await client.sites.publish("
|
|
316
|
+
* await client.sites.publish("580e63e98c9a982ac9b8b741")
|
|
311
317
|
*/
|
|
312
318
|
publish(siteId, request = {}, requestOptions) {
|
|
313
319
|
var _a;
|
|
@@ -319,18 +325,26 @@ class Sites {
|
|
|
319
325
|
Authorization: yield this._getAuthorizationHeader(),
|
|
320
326
|
"X-Fern-Language": "JavaScript",
|
|
321
327
|
"X-Fern-SDK-Name": "webflow-api",
|
|
322
|
-
"X-Fern-SDK-Version": "2.
|
|
328
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
329
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
323
330
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
324
331
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
325
332
|
},
|
|
326
333
|
contentType: "application/json",
|
|
327
|
-
|
|
334
|
+
requestType: "json",
|
|
335
|
+
body: serializers.SitesPublishRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
328
336
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
329
337
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
330
338
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
331
339
|
});
|
|
332
340
|
if (_response.ok) {
|
|
333
|
-
return
|
|
341
|
+
return serializers.SitesPublishResponse.parseOrThrow(_response.body, {
|
|
342
|
+
unrecognizedObjectKeys: "passthrough",
|
|
343
|
+
allowUnrecognizedUnionMembers: true,
|
|
344
|
+
allowUnrecognizedEnumValues: true,
|
|
345
|
+
skipValidation: true,
|
|
346
|
+
breadcrumbsPrefix: ["response"],
|
|
347
|
+
});
|
|
334
348
|
}
|
|
335
349
|
if (_response.error.reason === "status-code") {
|
|
336
350
|
switch (_response.error.statusCode) {
|
|
@@ -343,7 +357,7 @@ class Sites {
|
|
|
343
357
|
case 404:
|
|
344
358
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
345
359
|
case 429:
|
|
346
|
-
throw new Webflow.TooManyRequestsError(
|
|
360
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
347
361
|
unrecognizedObjectKeys: "passthrough",
|
|
348
362
|
allowUnrecognizedUnionMembers: true,
|
|
349
363
|
allowUnrecognizedEnumValues: true,
|
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./types"), exports);
|
|
17
18
|
__exportStar(require("./client"), exports);
|
|
18
19
|
__exportStar(require("./resources"), exports);
|
|
@@ -34,7 +34,7 @@ export declare class ActivityLogs {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.sites.activityLogs.list("
|
|
37
|
+
* await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
list(siteId: string, request?: Webflow.sites.ActivityLogsListRequest, requestOptions?: ActivityLogs.RequestOptions): Promise<Webflow.SiteActivityLogResponse>;
|
|
40
40
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class ActivityLogs {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.sites.activityLogs.list("
|
|
65
|
+
* await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, request = {}, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -82,18 +82,20 @@ class ActivityLogs {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "2.
|
|
85
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
86
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
86
87
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
88
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
89
|
},
|
|
89
90
|
contentType: "application/json",
|
|
90
91
|
queryParameters: _queryParams,
|
|
92
|
+
requestType: "json",
|
|
91
93
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
92
94
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
93
95
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
94
96
|
});
|
|
95
97
|
if (_response.ok) {
|
|
96
|
-
return
|
|
98
|
+
return serializers.SiteActivityLogResponse.parseOrThrow(_response.body, {
|
|
97
99
|
unrecognizedObjectKeys: "passthrough",
|
|
98
100
|
allowUnrecognizedUnionMembers: true,
|
|
99
101
|
allowUnrecognizedEnumValues: true,
|
|
@@ -108,7 +110,7 @@ class ActivityLogs {
|
|
|
108
110
|
case 404:
|
|
109
111
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
110
112
|
case 429:
|
|
111
|
-
throw new Webflow.TooManyRequestsError(
|
|
113
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
112
114
|
unrecognizedObjectKeys: "passthrough",
|
|
113
115
|
allowUnrecognizedUnionMembers: true,
|
|
114
116
|
allowUnrecognizedEnumValues: true,
|
|
@@ -34,7 +34,7 @@ export declare class Scripts {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.sites.scripts.getCustomCode("
|
|
37
|
+
* await client.sites.scripts.getCustomCode("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
getCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
40
40
|
/**
|
|
@@ -51,17 +51,17 @@ export declare class Scripts {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.sites.scripts.upsertCustomCode("
|
|
54
|
+
* await client.sites.scripts.upsertCustomCode("580e63e98c9a982ac9b8b741", {
|
|
55
55
|
* scripts: [{
|
|
56
56
|
* id: "cms_slider",
|
|
57
|
-
* location:
|
|
57
|
+
* location: "header",
|
|
58
58
|
* version: "1.0.0",
|
|
59
59
|
* attributes: {
|
|
60
60
|
* "my-attribute": "some-value"
|
|
61
61
|
* }
|
|
62
62
|
* }, {
|
|
63
63
|
* id: "alert",
|
|
64
|
-
* location:
|
|
64
|
+
* location: "header",
|
|
65
65
|
* version: "0.0.1"
|
|
66
66
|
* }]
|
|
67
67
|
* })
|
|
@@ -80,7 +80,7 @@ export declare class Scripts {
|
|
|
80
80
|
* @throws {@link Webflow.InternalServerError}
|
|
81
81
|
*
|
|
82
82
|
* @example
|
|
83
|
-
* await client.sites.scripts.deleteCustomCode("
|
|
83
|
+
* await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741")
|
|
84
84
|
*/
|
|
85
85
|
deleteCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
|
|
86
86
|
/**
|
|
@@ -97,7 +97,7 @@ export declare class Scripts {
|
|
|
97
97
|
* @throws {@link Webflow.InternalServerError}
|
|
98
98
|
*
|
|
99
99
|
* @example
|
|
100
|
-
* await client.sites.scripts.listCustomCodeBlocks("
|
|
100
|
+
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
|
|
101
101
|
*/
|
|
102
102
|
listCustomCodeBlocks(siteId: string, request?: Webflow.sites.ScriptsListCustomCodeBlocksRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ListCustomCodeBlocks>;
|
|
103
103
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class Scripts {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.sites.scripts.getCustomCode("
|
|
65
|
+
* await client.sites.scripts.getCustomCode("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
getCustomCode(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.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.sites.scripts.upsertCustomCode("
|
|
151
|
+
* await client.sites.scripts.upsertCustomCode("580e63e98c9a982ac9b8b741", {
|
|
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.sites.scripts.deleteCustomCode("
|
|
250
|
+
* await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741")
|
|
247
251
|
*/
|
|
248
252
|
deleteCustomCode(siteId, 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,
|
|
@@ -321,7 +327,7 @@ class Scripts {
|
|
|
321
327
|
* @throws {@link Webflow.InternalServerError}
|
|
322
328
|
*
|
|
323
329
|
* @example
|
|
324
|
-
* await client.sites.scripts.listCustomCodeBlocks("
|
|
330
|
+
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
|
|
325
331
|
*/
|
|
326
332
|
listCustomCodeBlocks(siteId, request = {}, requestOptions) {
|
|
327
333
|
var _a;
|
|
@@ -341,18 +347,20 @@ class Scripts {
|
|
|
341
347
|
Authorization: yield this._getAuthorizationHeader(),
|
|
342
348
|
"X-Fern-Language": "JavaScript",
|
|
343
349
|
"X-Fern-SDK-Name": "webflow-api",
|
|
344
|
-
"X-Fern-SDK-Version": "2.
|
|
350
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
351
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
345
352
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
346
353
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
347
354
|
},
|
|
348
355
|
contentType: "application/json",
|
|
349
356
|
queryParameters: _queryParams,
|
|
357
|
+
requestType: "json",
|
|
350
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
351
359
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
352
360
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
353
361
|
});
|
|
354
362
|
if (_response.ok) {
|
|
355
|
-
return
|
|
363
|
+
return serializers.ListCustomCodeBlocks.parseOrThrow(_response.body, {
|
|
356
364
|
unrecognizedObjectKeys: "passthrough",
|
|
357
365
|
allowUnrecognizedUnionMembers: true,
|
|
358
366
|
allowUnrecognizedEnumValues: true,
|
|
@@ -369,7 +377,7 @@ class Scripts {
|
|
|
369
377
|
case 404:
|
|
370
378
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
371
379
|
case 429:
|
|
372
|
-
throw new Webflow.TooManyRequestsError(
|
|
380
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
373
381
|
unrecognizedObjectKeys: "passthrough",
|
|
374
382
|
allowUnrecognizedUnionMembers: true,
|
|
375
383
|
allowUnrecognizedEnumValues: true,
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
import * as Webflow from "../../../index";
|
|
5
|
+
export interface SitesPublishResponse {
|
|
6
|
+
/** Array of domains objects */
|
|
7
|
+
customDomains?: Webflow.Domain[];
|
|
8
|
+
/** Flag for publishing to webflow.io subdomain */
|
|
9
|
+
publishToWebflowSubdomain?: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SitesPublishResponse";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./SitesPublishResponse"), exports);
|
|
@@ -70,17 +70,19 @@ class Token {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "2.
|
|
73
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
74
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
74
75
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
76
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
77
|
},
|
|
77
78
|
contentType: "application/json",
|
|
79
|
+
requestType: "json",
|
|
78
80
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
79
81
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
82
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
81
83
|
});
|
|
82
84
|
if (_response.ok) {
|
|
83
|
-
return
|
|
85
|
+
return serializers.AuthorizedUser.parseOrThrow(_response.body, {
|
|
84
86
|
unrecognizedObjectKeys: "passthrough",
|
|
85
87
|
allowUnrecognizedUnionMembers: true,
|
|
86
88
|
allowUnrecognizedEnumValues: true,
|
|
@@ -136,17 +138,19 @@ class Token {
|
|
|
136
138
|
Authorization: yield this._getAuthorizationHeader(),
|
|
137
139
|
"X-Fern-Language": "JavaScript",
|
|
138
140
|
"X-Fern-SDK-Name": "webflow-api",
|
|
139
|
-
"X-Fern-SDK-Version": "2.
|
|
141
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
142
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
140
143
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
141
144
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
142
145
|
},
|
|
143
146
|
contentType: "application/json",
|
|
147
|
+
requestType: "json",
|
|
144
148
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
145
149
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
146
150
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
147
151
|
});
|
|
148
152
|
if (_response.ok) {
|
|
149
|
-
return
|
|
153
|
+
return serializers.Authorization.parseOrThrow(_response.body, {
|
|
150
154
|
unrecognizedObjectKeys: "passthrough",
|
|
151
155
|
allowUnrecognizedUnionMembers: true,
|
|
152
156
|
allowUnrecognizedEnumValues: true,
|
|
@@ -36,7 +36,7 @@ export declare class Users {
|
|
|
36
36
|
* @throws {@link Webflow.InternalServerError}
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
|
-
* await client.users.list("
|
|
39
|
+
* await client.users.list("580e63e98c9a982ac9b8b741")
|
|
40
40
|
*/
|
|
41
41
|
list(siteId: string, request?: Webflow.UsersListRequest, requestOptions?: Users.RequestOptions): Promise<Webflow.UserList>;
|
|
42
42
|
/**
|
|
@@ -54,7 +54,7 @@ export declare class Users {
|
|
|
54
54
|
* @throws {@link Webflow.InternalServerError}
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
|
-
* await client.users.get("
|
|
57
|
+
* await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
58
58
|
*/
|
|
59
59
|
get(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise<Webflow.User>;
|
|
60
60
|
/**
|
|
@@ -72,7 +72,7 @@ export declare class Users {
|
|
|
72
72
|
* @throws {@link Webflow.InternalServerError}
|
|
73
73
|
*
|
|
74
74
|
* @example
|
|
75
|
-
* await client.users.delete("
|
|
75
|
+
* await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
76
76
|
*/
|
|
77
77
|
delete(siteId: string, userId: string, requestOptions?: Users.RequestOptions): Promise<void>;
|
|
78
78
|
/**
|
|
@@ -93,7 +93,7 @@ export declare class Users {
|
|
|
93
93
|
* @throws {@link Webflow.InternalServerError}
|
|
94
94
|
*
|
|
95
95
|
* @example
|
|
96
|
-
* await client.users.update("
|
|
96
|
+
* await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
97
97
|
* data: {
|
|
98
98
|
* name: "Some One",
|
|
99
99
|
* acceptPrivacy: false,
|
|
@@ -119,7 +119,7 @@ export declare class Users {
|
|
|
119
119
|
* @throws {@link Webflow.InternalServerError}
|
|
120
120
|
*
|
|
121
121
|
* @example
|
|
122
|
-
* await client.users.invite("
|
|
122
|
+
* await client.users.invite("580e63e98c9a982ac9b8b741", {
|
|
123
123
|
* email: "some.one@home.com",
|
|
124
124
|
* accessGroups: ["webflowers"]
|
|
125
125
|
* })
|