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
|
@@ -64,7 +64,7 @@ class Users {
|
|
|
64
64
|
* @throws {@link Webflow.InternalServerError}
|
|
65
65
|
*
|
|
66
66
|
* @example
|
|
67
|
-
* await client.users.list("
|
|
67
|
+
* await client.users.list("580e63e98c9a982ac9b8b741")
|
|
68
68
|
*/
|
|
69
69
|
list(siteId, request = {}, requestOptions) {
|
|
70
70
|
var _a;
|
|
@@ -87,18 +87,20 @@ class Users {
|
|
|
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.UserList.parseOrThrow(_response.body, {
|
|
102
104
|
unrecognizedObjectKeys: "passthrough",
|
|
103
105
|
allowUnrecognizedUnionMembers: true,
|
|
104
106
|
allowUnrecognizedEnumValues: true,
|
|
@@ -117,7 +119,7 @@ class Users {
|
|
|
117
119
|
case 404:
|
|
118
120
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
121
123
|
unrecognizedObjectKeys: "passthrough",
|
|
122
124
|
allowUnrecognizedUnionMembers: true,
|
|
123
125
|
allowUnrecognizedEnumValues: true,
|
|
@@ -163,7 +165,7 @@ class Users {
|
|
|
163
165
|
* @throws {@link Webflow.InternalServerError}
|
|
164
166
|
*
|
|
165
167
|
* @example
|
|
166
|
-
* await client.users.get("
|
|
168
|
+
* await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
167
169
|
*/
|
|
168
170
|
get(siteId, userId, requestOptions) {
|
|
169
171
|
var _a;
|
|
@@ -175,17 +177,19 @@ class Users {
|
|
|
175
177
|
Authorization: yield this._getAuthorizationHeader(),
|
|
176
178
|
"X-Fern-Language": "JavaScript",
|
|
177
179
|
"X-Fern-SDK-Name": "webflow-api",
|
|
178
|
-
"X-Fern-SDK-Version": "2.
|
|
180
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
181
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
179
182
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
180
183
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
181
184
|
},
|
|
182
185
|
contentType: "application/json",
|
|
186
|
+
requestType: "json",
|
|
183
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
184
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
185
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
186
190
|
});
|
|
187
191
|
if (_response.ok) {
|
|
188
|
-
return
|
|
192
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
189
193
|
unrecognizedObjectKeys: "passthrough",
|
|
190
194
|
allowUnrecognizedUnionMembers: true,
|
|
191
195
|
allowUnrecognizedEnumValues: true,
|
|
@@ -204,7 +208,7 @@ class Users {
|
|
|
204
208
|
case 404:
|
|
205
209
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
206
210
|
case 429:
|
|
207
|
-
throw new Webflow.TooManyRequestsError(
|
|
211
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
208
212
|
unrecognizedObjectKeys: "passthrough",
|
|
209
213
|
allowUnrecognizedUnionMembers: true,
|
|
210
214
|
allowUnrecognizedEnumValues: true,
|
|
@@ -250,7 +254,7 @@ class Users {
|
|
|
250
254
|
* @throws {@link Webflow.InternalServerError}
|
|
251
255
|
*
|
|
252
256
|
* @example
|
|
253
|
-
* await client.users.delete("
|
|
257
|
+
* await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
254
258
|
*/
|
|
255
259
|
delete(siteId, userId, requestOptions) {
|
|
256
260
|
var _a;
|
|
@@ -262,11 +266,13 @@ class Users {
|
|
|
262
266
|
Authorization: yield this._getAuthorizationHeader(),
|
|
263
267
|
"X-Fern-Language": "JavaScript",
|
|
264
268
|
"X-Fern-SDK-Name": "webflow-api",
|
|
265
|
-
"X-Fern-SDK-Version": "2.
|
|
269
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
270
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
266
271
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
267
272
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
268
273
|
},
|
|
269
274
|
contentType: "application/json",
|
|
275
|
+
requestType: "json",
|
|
270
276
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
271
277
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
272
278
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -285,7 +291,7 @@ class Users {
|
|
|
285
291
|
case 404:
|
|
286
292
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
287
293
|
case 429:
|
|
288
|
-
throw new Webflow.TooManyRequestsError(
|
|
294
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
289
295
|
unrecognizedObjectKeys: "passthrough",
|
|
290
296
|
allowUnrecognizedUnionMembers: true,
|
|
291
297
|
allowUnrecognizedEnumValues: true,
|
|
@@ -334,7 +340,7 @@ class Users {
|
|
|
334
340
|
* @throws {@link Webflow.InternalServerError}
|
|
335
341
|
*
|
|
336
342
|
* @example
|
|
337
|
-
* await client.users.update("
|
|
343
|
+
* await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
338
344
|
* data: {
|
|
339
345
|
* name: "Some One",
|
|
340
346
|
* acceptPrivacy: false,
|
|
@@ -353,18 +359,20 @@ class Users {
|
|
|
353
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
354
360
|
"X-Fern-Language": "JavaScript",
|
|
355
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
356
|
-
"X-Fern-SDK-Version": "2.
|
|
362
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
363
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
357
364
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
358
365
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
359
366
|
},
|
|
360
367
|
contentType: "application/json",
|
|
361
|
-
|
|
368
|
+
requestType: "json",
|
|
369
|
+
body: serializers.UsersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
362
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
363
371
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
364
372
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
365
373
|
});
|
|
366
374
|
if (_response.ok) {
|
|
367
|
-
return
|
|
375
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
368
376
|
unrecognizedObjectKeys: "passthrough",
|
|
369
377
|
allowUnrecognizedUnionMembers: true,
|
|
370
378
|
allowUnrecognizedEnumValues: true,
|
|
@@ -383,7 +391,7 @@ class Users {
|
|
|
383
391
|
case 404:
|
|
384
392
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
385
393
|
case 429:
|
|
386
|
-
throw new Webflow.TooManyRequestsError(
|
|
394
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
387
395
|
unrecognizedObjectKeys: "passthrough",
|
|
388
396
|
allowUnrecognizedUnionMembers: true,
|
|
389
397
|
allowUnrecognizedEnumValues: true,
|
|
@@ -430,7 +438,7 @@ class Users {
|
|
|
430
438
|
* @throws {@link Webflow.InternalServerError}
|
|
431
439
|
*
|
|
432
440
|
* @example
|
|
433
|
-
* await client.users.invite("
|
|
441
|
+
* await client.users.invite("580e63e98c9a982ac9b8b741", {
|
|
434
442
|
* email: "some.one@home.com",
|
|
435
443
|
* accessGroups: ["webflowers"]
|
|
436
444
|
* })
|
|
@@ -445,18 +453,20 @@ class Users {
|
|
|
445
453
|
Authorization: yield this._getAuthorizationHeader(),
|
|
446
454
|
"X-Fern-Language": "JavaScript",
|
|
447
455
|
"X-Fern-SDK-Name": "webflow-api",
|
|
448
|
-
"X-Fern-SDK-Version": "2.
|
|
456
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
457
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
449
458
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
450
459
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
451
460
|
},
|
|
452
461
|
contentType: "application/json",
|
|
453
|
-
|
|
462
|
+
requestType: "json",
|
|
463
|
+
body: serializers.UsersInviteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
454
464
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
455
465
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
456
466
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
457
467
|
});
|
|
458
468
|
if (_response.ok) {
|
|
459
|
-
return
|
|
469
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
460
470
|
unrecognizedObjectKeys: "passthrough",
|
|
461
471
|
allowUnrecognizedUnionMembers: true,
|
|
462
472
|
allowUnrecognizedEnumValues: true,
|
|
@@ -477,7 +487,7 @@ class Users {
|
|
|
477
487
|
case 409:
|
|
478
488
|
throw new Webflow.ConflictError(_response.error.body);
|
|
479
489
|
case 429:
|
|
480
|
-
throw new Webflow.TooManyRequestsError(
|
|
490
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
481
491
|
unrecognizedObjectKeys: "passthrough",
|
|
482
492
|
allowUnrecognizedUnionMembers: true,
|
|
483
493
|
allowUnrecognizedEnumValues: true,
|
|
@@ -34,7 +34,7 @@ export declare class Webhooks {
|
|
|
34
34
|
* @throws {@link Webflow.InternalServerError}
|
|
35
35
|
*
|
|
36
36
|
* @example
|
|
37
|
-
* await client.webhooks.list("
|
|
37
|
+
* await client.webhooks.list("580e63e98c9a982ac9b8b741")
|
|
38
38
|
*/
|
|
39
39
|
list(siteId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.WebhookList>;
|
|
40
40
|
/**
|
|
@@ -51,14 +51,14 @@ export declare class Webhooks {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.webhooks.create("
|
|
54
|
+
* await client.webhooks.create("580e63e98c9a982ac9b8b741", {
|
|
55
55
|
* id: "582266e0cd48de0f0e3c6d8b",
|
|
56
|
-
* triggerType:
|
|
56
|
+
* triggerType: "form_submission",
|
|
57
57
|
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
58
58
|
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
59
59
|
* siteId: "562ac0395358780a1f5e6fbd",
|
|
60
|
-
* lastTriggered:
|
|
61
|
-
* createdOn:
|
|
60
|
+
* lastTriggered: "2023-02-08T23:59:28Z",
|
|
61
|
+
* createdOn: "2022-11-08T23:59:28Z"
|
|
62
62
|
* })
|
|
63
63
|
*/
|
|
64
64
|
create(siteId: string, request: Webflow.Webhook, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
@@ -75,7 +75,7 @@ export declare class Webhooks {
|
|
|
75
75
|
* @throws {@link Webflow.InternalServerError}
|
|
76
76
|
*
|
|
77
77
|
* @example
|
|
78
|
-
* await client.webhooks.get("
|
|
78
|
+
* await client.webhooks.get("580e64008c9a982ac9b8b754")
|
|
79
79
|
*/
|
|
80
80
|
get(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
81
81
|
/**
|
|
@@ -91,7 +91,7 @@ export declare class Webhooks {
|
|
|
91
91
|
* @throws {@link Webflow.InternalServerError}
|
|
92
92
|
*
|
|
93
93
|
* @example
|
|
94
|
-
* await client.webhooks.delete("
|
|
94
|
+
* await client.webhooks.delete("580e64008c9a982ac9b8b754")
|
|
95
95
|
*/
|
|
96
96
|
delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
|
|
97
97
|
protected _getAuthorizationHeader(): Promise<string>;
|
|
@@ -62,7 +62,7 @@ class Webhooks {
|
|
|
62
62
|
* @throws {@link Webflow.InternalServerError}
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
|
-
* await client.webhooks.list("
|
|
65
|
+
* await client.webhooks.list("580e63e98c9a982ac9b8b741")
|
|
66
66
|
*/
|
|
67
67
|
list(siteId, requestOptions) {
|
|
68
68
|
var _a;
|
|
@@ -74,17 +74,19 @@ class Webhooks {
|
|
|
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.WebhookList.parseOrThrow(_response.body, {
|
|
88
90
|
unrecognizedObjectKeys: "passthrough",
|
|
89
91
|
allowUnrecognizedUnionMembers: true,
|
|
90
92
|
allowUnrecognizedEnumValues: true,
|
|
@@ -101,7 +103,7 @@ class Webhooks {
|
|
|
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,14 +148,14 @@ class Webhooks {
|
|
|
146
148
|
* @throws {@link Webflow.InternalServerError}
|
|
147
149
|
*
|
|
148
150
|
* @example
|
|
149
|
-
* await client.webhooks.create("
|
|
151
|
+
* await client.webhooks.create("580e63e98c9a982ac9b8b741", {
|
|
150
152
|
* id: "582266e0cd48de0f0e3c6d8b",
|
|
151
|
-
* triggerType:
|
|
153
|
+
* triggerType: "form_submission",
|
|
152
154
|
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
153
155
|
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
154
156
|
* siteId: "562ac0395358780a1f5e6fbd",
|
|
155
|
-
* lastTriggered:
|
|
156
|
-
* createdOn:
|
|
157
|
+
* lastTriggered: "2023-02-08T23:59:28Z",
|
|
158
|
+
* createdOn: "2022-11-08T23:59:28Z"
|
|
157
159
|
* })
|
|
158
160
|
*/
|
|
159
161
|
create(siteId, request, requestOptions) {
|
|
@@ -166,18 +168,20 @@ class Webhooks {
|
|
|
166
168
|
Authorization: yield this._getAuthorizationHeader(),
|
|
167
169
|
"X-Fern-Language": "JavaScript",
|
|
168
170
|
"X-Fern-SDK-Name": "webflow-api",
|
|
169
|
-
"X-Fern-SDK-Version": "2.
|
|
171
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
172
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
170
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
171
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
172
175
|
},
|
|
173
176
|
contentType: "application/json",
|
|
174
|
-
|
|
177
|
+
requestType: "json",
|
|
178
|
+
body: serializers.Webhook.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
175
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
176
180
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
177
181
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
178
182
|
});
|
|
179
183
|
if (_response.ok) {
|
|
180
|
-
return
|
|
184
|
+
return serializers.Webhook.parseOrThrow(_response.body, {
|
|
181
185
|
unrecognizedObjectKeys: "passthrough",
|
|
182
186
|
allowUnrecognizedUnionMembers: true,
|
|
183
187
|
allowUnrecognizedEnumValues: true,
|
|
@@ -194,7 +198,7 @@ class Webhooks {
|
|
|
194
198
|
case 404:
|
|
195
199
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
196
200
|
case 429:
|
|
197
|
-
throw new Webflow.TooManyRequestsError(
|
|
201
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
198
202
|
unrecognizedObjectKeys: "passthrough",
|
|
199
203
|
allowUnrecognizedUnionMembers: true,
|
|
200
204
|
allowUnrecognizedEnumValues: true,
|
|
@@ -238,7 +242,7 @@ class Webhooks {
|
|
|
238
242
|
* @throws {@link Webflow.InternalServerError}
|
|
239
243
|
*
|
|
240
244
|
* @example
|
|
241
|
-
* await client.webhooks.get("
|
|
245
|
+
* await client.webhooks.get("580e64008c9a982ac9b8b754")
|
|
242
246
|
*/
|
|
243
247
|
get(webhookId, requestOptions) {
|
|
244
248
|
var _a;
|
|
@@ -250,17 +254,19 @@ class Webhooks {
|
|
|
250
254
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
255
|
"X-Fern-Language": "JavaScript",
|
|
252
256
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "2.
|
|
257
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
258
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
254
259
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
260
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
261
|
},
|
|
257
262
|
contentType: "application/json",
|
|
263
|
+
requestType: "json",
|
|
258
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
265
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
266
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
261
267
|
});
|
|
262
268
|
if (_response.ok) {
|
|
263
|
-
return
|
|
269
|
+
return serializers.Webhook.parseOrThrow(_response.body, {
|
|
264
270
|
unrecognizedObjectKeys: "passthrough",
|
|
265
271
|
allowUnrecognizedUnionMembers: true,
|
|
266
272
|
allowUnrecognizedEnumValues: true,
|
|
@@ -277,7 +283,7 @@ class Webhooks {
|
|
|
277
283
|
case 404:
|
|
278
284
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
279
285
|
case 429:
|
|
280
|
-
throw new Webflow.TooManyRequestsError(
|
|
286
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
281
287
|
unrecognizedObjectKeys: "passthrough",
|
|
282
288
|
allowUnrecognizedUnionMembers: true,
|
|
283
289
|
allowUnrecognizedEnumValues: true,
|
|
@@ -321,7 +327,7 @@ class Webhooks {
|
|
|
321
327
|
* @throws {@link Webflow.InternalServerError}
|
|
322
328
|
*
|
|
323
329
|
* @example
|
|
324
|
-
* await client.webhooks.delete("
|
|
330
|
+
* await client.webhooks.delete("580e64008c9a982ac9b8b754")
|
|
325
331
|
*/
|
|
326
332
|
delete(webhookId, requestOptions) {
|
|
327
333
|
var _a;
|
|
@@ -333,11 +339,13 @@ class Webhooks {
|
|
|
333
339
|
Authorization: yield this._getAuthorizationHeader(),
|
|
334
340
|
"X-Fern-Language": "JavaScript",
|
|
335
341
|
"X-Fern-SDK-Name": "webflow-api",
|
|
336
|
-
"X-Fern-SDK-Version": "2.
|
|
342
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
343
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
337
344
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
338
345
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
339
346
|
},
|
|
340
347
|
contentType: "application/json",
|
|
348
|
+
requestType: "json",
|
|
341
349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
342
350
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
343
351
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -354,7 +362,7 @@ class Webhooks {
|
|
|
354
362
|
case 404:
|
|
355
363
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
356
364
|
case 429:
|
|
357
|
-
throw new Webflow.TooManyRequestsError(
|
|
365
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
358
366
|
unrecognizedObjectKeys: "passthrough",
|
|
359
367
|
allowUnrecognizedUnionMembers: true,
|
|
360
368
|
allowUnrecognizedEnumValues: true,
|
package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts
RENAMED
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as Webflow from "
|
|
4
|
+
import * as Webflow from "../index";
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
7
|
-
* {
|
|
8
|
-
* id: "580e64008c9a982ac9b8b754"
|
|
9
|
-
* }
|
|
6
|
+
* The fields that define the schema for a given Item are based on the Collection that Item belongs to. Beyond the user defined fields, there are a handful of additional fields that are automatically created for all items
|
|
10
7
|
*/
|
|
11
8
|
export interface BulkCollectionItem {
|
|
12
9
|
/** Unique identifier for the Item */
|
|
@@ -23,5 +20,5 @@ export interface BulkCollectionItem {
|
|
|
23
20
|
isArchived?: boolean;
|
|
24
21
|
/** Boolean determining if the Item is set to draft */
|
|
25
22
|
isDraft?: boolean;
|
|
26
|
-
fieldData?: Webflow.
|
|
23
|
+
fieldData?: Webflow.BulkCollectionItemFieldData;
|
|
27
24
|
}
|
package/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts
RENAMED
|
@@ -6,4 +6,6 @@ export interface BulkCollectionItemFieldData {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
8
|
slug?: string;
|
|
9
|
+
/** Additional CMS Item field properties with any name and any type */
|
|
10
|
+
[key: string]: any;
|
|
9
11
|
}
|
|
@@ -6,4 +6,6 @@ export interface CollectionItemFieldData {
|
|
|
6
6
|
name?: string;
|
|
7
7
|
/** URL structure of the Item in your site. Note: Updates to an item slug will break all links referencing the old slug. */
|
|
8
8
|
slug?: string;
|
|
9
|
+
/** Additional CMS Item field properties with any name and any type */
|
|
10
|
+
[key: string]: any;
|
|
9
11
|
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface ConflictErrorBody {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: "ecommerce_not_enabled";
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface DuplicateUserEmail {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: string;
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface MissingScopes {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: "missing_scopes";
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface NotEnterprisePlanSite {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: "missing_scopes";
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
package/api/types/Page.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import * as Webflow from "../index";
|
|
|
7
7
|
*/
|
|
8
8
|
export interface Page {
|
|
9
9
|
/** Unique identifier for the Page */
|
|
10
|
-
id
|
|
10
|
+
id: string;
|
|
11
11
|
/** Unique identifier for the Site */
|
|
12
12
|
siteId?: string;
|
|
13
13
|
/** Title of the Page */
|
|
@@ -34,4 +34,8 @@ export interface Page {
|
|
|
34
34
|
seo?: Webflow.PageSeo;
|
|
35
35
|
/** Open Graph fields for the Page */
|
|
36
36
|
openGraph?: Webflow.PageOpenGraph;
|
|
37
|
+
/** Unique ID of the page locale */
|
|
38
|
+
localeId?: string;
|
|
39
|
+
/** Relative path of the published page URL */
|
|
40
|
+
publishedPath?: string;
|
|
37
41
|
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface UserLimitReached {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: string;
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
|
@@ -2,4 +2,13 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as Webflow from "../index";
|
|
5
|
-
export
|
|
5
|
+
export interface UsersNotEnabled {
|
|
6
|
+
/** Error code */
|
|
7
|
+
code?: string;
|
|
8
|
+
/** Error message */
|
|
9
|
+
message?: string;
|
|
10
|
+
/** Link to more information */
|
|
11
|
+
externalReference?: string;
|
|
12
|
+
/** Array of errors */
|
|
13
|
+
details?: Webflow.ErrorDetailsItem[];
|
|
14
|
+
}
|
package/api/types/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export * from "./OauthScope";
|
|
2
1
|
export * from "./ForbiddenErrorBody";
|
|
3
2
|
export * from "./TooManyRequestsErrorBody";
|
|
4
3
|
export * from "./BadRequestErrorBody";
|
|
5
4
|
export * from "./ConflictErrorBody";
|
|
5
|
+
export * from "./ErrorDetailsItem";
|
|
6
6
|
export * from "./AuthorizedUser";
|
|
7
7
|
export * from "./Application";
|
|
8
8
|
export * from "./AuthorizationAuthorizationAuthorizedTo";
|
|
@@ -21,7 +21,6 @@ export * from "./SiteActivityLogItemUser";
|
|
|
21
21
|
export * from "./SiteActivityLogItem";
|
|
22
22
|
export * from "./Pagination";
|
|
23
23
|
export * from "./SiteActivityLogResponse";
|
|
24
|
-
export * from "./ErrorDetailsItem";
|
|
25
24
|
export * from "./Error_";
|
|
26
25
|
export * from "./MissingScopes";
|
|
27
26
|
export * from "./NotEnterprisePlanSite";
|
|
@@ -34,13 +33,12 @@ export * from "./CollectionItemFieldData";
|
|
|
34
33
|
export * from "./CollectionItem";
|
|
35
34
|
export * from "./CollectionItemListPagination";
|
|
36
35
|
export * from "./CollectionItemList";
|
|
36
|
+
export * from "./BulkCollectionItemFieldData";
|
|
37
|
+
export * from "./BulkCollectionItem";
|
|
37
38
|
export * from "./PageSeo";
|
|
38
39
|
export * from "./PageOpenGraph";
|
|
39
40
|
export * from "./Page";
|
|
40
41
|
export * from "./PageList";
|
|
41
|
-
export * from "./PageDetailsSeo";
|
|
42
|
-
export * from "./PageDetailsOpenGraph";
|
|
43
|
-
export * from "./PageDetails";
|
|
44
42
|
export * from "./TextNode";
|
|
45
43
|
export * from "./ImageNode";
|
|
46
44
|
export * from "./NodeType";
|
|
@@ -132,3 +130,4 @@ export * from "./OrderList";
|
|
|
132
130
|
export * from "./InventoryItemInventoryType";
|
|
133
131
|
export * from "./InventoryItem";
|
|
134
132
|
export * from "./EcommerceSettings";
|
|
133
|
+
export * from "./OAuthScope";
|
package/api/types/index.js
CHANGED
|
@@ -14,11 +14,11 @@ 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("./OauthScope"), exports);
|
|
18
17
|
__exportStar(require("./ForbiddenErrorBody"), exports);
|
|
19
18
|
__exportStar(require("./TooManyRequestsErrorBody"), exports);
|
|
20
19
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
21
20
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
|
+
__exportStar(require("./ErrorDetailsItem"), exports);
|
|
22
22
|
__exportStar(require("./AuthorizedUser"), exports);
|
|
23
23
|
__exportStar(require("./Application"), exports);
|
|
24
24
|
__exportStar(require("./AuthorizationAuthorizationAuthorizedTo"), exports);
|
|
@@ -37,7 +37,6 @@ __exportStar(require("./SiteActivityLogItemUser"), exports);
|
|
|
37
37
|
__exportStar(require("./SiteActivityLogItem"), exports);
|
|
38
38
|
__exportStar(require("./Pagination"), exports);
|
|
39
39
|
__exportStar(require("./SiteActivityLogResponse"), exports);
|
|
40
|
-
__exportStar(require("./ErrorDetailsItem"), exports);
|
|
41
40
|
__exportStar(require("./Error_"), exports);
|
|
42
41
|
__exportStar(require("./MissingScopes"), exports);
|
|
43
42
|
__exportStar(require("./NotEnterprisePlanSite"), exports);
|
|
@@ -50,13 +49,12 @@ __exportStar(require("./CollectionItemFieldData"), exports);
|
|
|
50
49
|
__exportStar(require("./CollectionItem"), exports);
|
|
51
50
|
__exportStar(require("./CollectionItemListPagination"), exports);
|
|
52
51
|
__exportStar(require("./CollectionItemList"), exports);
|
|
52
|
+
__exportStar(require("./BulkCollectionItemFieldData"), exports);
|
|
53
|
+
__exportStar(require("./BulkCollectionItem"), exports);
|
|
53
54
|
__exportStar(require("./PageSeo"), exports);
|
|
54
55
|
__exportStar(require("./PageOpenGraph"), exports);
|
|
55
56
|
__exportStar(require("./Page"), exports);
|
|
56
57
|
__exportStar(require("./PageList"), exports);
|
|
57
|
-
__exportStar(require("./PageDetailsSeo"), exports);
|
|
58
|
-
__exportStar(require("./PageDetailsOpenGraph"), exports);
|
|
59
|
-
__exportStar(require("./PageDetails"), exports);
|
|
60
58
|
__exportStar(require("./TextNode"), exports);
|
|
61
59
|
__exportStar(require("./ImageNode"), exports);
|
|
62
60
|
__exportStar(require("./NodeType"), exports);
|
|
@@ -148,3 +146,4 @@ __exportStar(require("./OrderList"), exports);
|
|
|
148
146
|
__exportStar(require("./InventoryItemInventoryType"), exports);
|
|
149
147
|
__exportStar(require("./InventoryItem"), exports);
|
|
150
148
|
__exportStar(require("./EcommerceSettings"), exports);
|
|
149
|
+
__exportStar(require("./OAuthScope"), exports);
|