webflow-api 2.3.5 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/index.d.ts +1 -1
- package/api/errors/index.js +1 -1
- package/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/api/resources/accessGroups/client/Client.js +12 -4
- package/api/resources/assets/client/Client.d.ts +8 -8
- package/api/resources/assets/client/Client.js +98 -34
- package/api/resources/collections/client/Client.d.ts +5 -5
- package/api/resources/collections/client/Client.js +59 -19
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +27 -11
- package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/api/resources/collections/resources/items/client/Client.d.ts +19 -19
- package/api/resources/collections/resources/items/client/Client.js +175 -57
- package/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/api/resources/collections/resources/items/types/index.js +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.js +12 -4
- package/api/resources/forms/client/Client.d.ts +7 -6
- package/api/resources/forms/client/Client.js +72 -24
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/index.d.ts +3 -3
- package/api/resources/index.js +4 -4
- package/api/resources/inventory/client/Client.d.ts +3 -3
- package/api/resources/inventory/client/Client.js +26 -10
- package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/api/resources/orders/client/Client.d.ts +6 -6
- package/api/resources/orders/client/Client.js +75 -29
- package/api/resources/pages/client/Client.d.ts +24 -11
- package/api/resources/pages/client/Client.js +79 -26
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/api/resources/pages/resources/scripts/client/Client.js +38 -14
- package/api/resources/products/client/Client.d.ts +6 -6
- package/api/resources/products/client/Client.js +76 -28
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +38 -14
- package/api/resources/sites/client/Client.d.ts +5 -7
- package/api/resources/sites/client/Client.js +55 -23
- package/api/resources/sites/index.d.ts +1 -0
- package/api/resources/sites/index.js +1 -0
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +12 -4
- package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks/client → api/resources/sites/types}/index.js +1 -1
- package/api/resources/token/client/Client.js +8 -4
- package/api/resources/users/client/Client.d.ts +5 -5
- package/api/resources/users/client/Client.js +61 -21
- package/api/resources/webhooks/client/Client.d.ts +13 -8
- package/api/resources/webhooks/client/Client.js +56 -19
- package/api/resources/webhooks/client/index.d.ts +1 -1
- package/api/resources/webhooks/client/index.js +0 -15
- package/api/types/Asset.d.ts +10 -8
- package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.d.ts +2 -0
- package/api/types/CollectionItemFieldData.d.ts +2 -0
- package/api/types/ConflictErrorBody.d.ts +10 -1
- package/api/types/DuplicateUserEmail.d.ts +10 -1
- package/api/types/Form.d.ts +2 -0
- package/api/types/FormSubmissionList.d.ts +1 -1
- package/api/types/MissingScopes.d.ts +10 -1
- package/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{dist/api/types/OauthScope.js → api/types/OAuthScope.js} +2 -0
- package/api/types/Page.d.ts +5 -1
- package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/api/types/UserLimitReached.d.ts +10 -1
- package/api/types/UsersNotEnabled.d.ts +10 -1
- package/api/types/Webhook.d.ts +5 -5
- package/api/types/WebhookFilter.d.ts +10 -0
- package/api/types/index.d.ts +6 -5
- package/api/types/index.js +6 -5
- package/core/fetcher/Fetcher.d.ts +4 -1
- package/core/fetcher/Fetcher.js +19 -185
- package/core/fetcher/createRequestUrl.d.ts +1 -0
- package/core/fetcher/createRequestUrl.js +13 -0
- package/core/fetcher/getFetchFn.d.ts +4 -0
- package/core/fetcher/getFetchFn.js +59 -0
- package/core/fetcher/getRequestBody.d.ts +7 -0
- package/core/fetcher/getRequestBody.js +23 -0
- package/core/fetcher/getResponseBody.d.ts +1 -0
- package/core/fetcher/getResponseBody.js +52 -0
- package/core/fetcher/makeRequest.d.ts +1 -0
- package/core/fetcher/makeRequest.js +42 -0
- package/core/fetcher/requestWithRetries.d.ts +1 -0
- package/core/fetcher/requestWithRetries.js +32 -0
- package/core/fetcher/signals.d.ts +12 -0
- package/core/fetcher/signals.js +37 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/core/runtime/runtime.d.ts +1 -0
- package/core/runtime/runtime.js +1 -0
- package/core/schemas/Schema.d.ts +8 -4
- package/core/schemas/Schema.js +1 -0
- package/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/core/schemas/builders/bigint/bigint.js +50 -0
- package/core/schemas/builders/bigint/index.d.ts +1 -0
- package/core/schemas/builders/bigint/index.js +5 -0
- package/core/schemas/builders/index.d.ts +1 -0
- package/core/schemas/builders/index.js +1 -0
- package/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/core/schemas/builders/lazy/lazy.js +8 -19
- package/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/core/schemas/builders/list/list.js +31 -44
- package/core/schemas/builders/object/object.js +90 -111
- package/core/schemas/builders/object/types.d.ts +2 -2
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/core/schemas/builders/record/record.js +49 -60
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/core/schemas/builders/set/set.js +6 -15
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/core/schemas/builders/union/union.js +51 -62
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/index.d.ts +1 -1
- package/dist/api/errors/index.js +1 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
- package/dist/api/resources/accessGroups/client/Client.js +12 -4
- package/dist/api/resources/assets/client/Client.d.ts +8 -8
- package/dist/api/resources/assets/client/Client.js +98 -34
- package/dist/api/resources/collections/client/Client.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.js +59 -19
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +27 -11
- package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -19
- package/dist/api/resources/collections/resources/items/client/Client.js +175 -57
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/index.js +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.js +12 -4
- package/dist/api/resources/forms/client/Client.d.ts +7 -6
- package/dist/api/resources/forms/client/Client.js +72 -24
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/index.d.ts +3 -3
- package/dist/api/resources/index.js +4 -4
- package/dist/api/resources/inventory/client/Client.d.ts +3 -3
- package/dist/api/resources/inventory/client/Client.js +26 -10
- package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
- package/dist/api/resources/orders/client/Client.d.ts +6 -6
- package/dist/api/resources/orders/client/Client.js +75 -29
- package/dist/api/resources/pages/client/Client.d.ts +24 -11
- package/dist/api/resources/pages/client/Client.js +79 -26
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.js +38 -14
- package/dist/api/resources/products/client/Client.d.ts +6 -6
- package/dist/api/resources/products/client/Client.js +76 -28
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +38 -14
- package/dist/api/resources/sites/client/Client.d.ts +5 -7
- package/dist/api/resources/sites/client/Client.js +55 -23
- package/dist/api/resources/sites/index.d.ts +1 -0
- package/dist/api/resources/sites/index.js +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +12 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +50 -18
- package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
- package/dist/api/resources/sites/types/index.d.ts +1 -0
- package/{serialization/resources/webhooks → dist/api/resources/sites/types}/index.js +1 -1
- package/dist/api/resources/token/client/Client.js +8 -4
- package/dist/api/resources/users/client/Client.d.ts +5 -5
- package/dist/api/resources/users/client/Client.js +61 -21
- package/dist/api/resources/webhooks/client/Client.d.ts +13 -8
- package/dist/api/resources/webhooks/client/Client.js +56 -19
- package/dist/api/resources/webhooks/client/index.d.ts +1 -1
- package/dist/api/resources/webhooks/client/index.js +0 -15
- package/dist/api/types/Asset.d.ts +10 -8
- package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
- package/{api/resources/collections/resources/items → dist/api}/types/BulkCollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/CollectionItemFieldData.d.ts +2 -0
- package/dist/api/types/ConflictErrorBody.d.ts +10 -1
- package/dist/api/types/DuplicateUserEmail.d.ts +10 -1
- package/dist/api/types/Form.d.ts +2 -0
- package/dist/api/types/FormSubmissionList.d.ts +1 -1
- package/dist/api/types/MissingScopes.d.ts +10 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
- package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +9 -1
- package/{api/types/OauthScope.js → dist/api/types/OAuthScope.js} +2 -0
- package/dist/api/types/Page.d.ts +5 -1
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
- package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
- package/dist/api/types/UserLimitReached.d.ts +10 -1
- package/dist/api/types/UsersNotEnabled.d.ts +10 -1
- package/dist/api/types/Webhook.d.ts +5 -5
- package/dist/api/types/WebhookFilter.d.ts +10 -0
- package/dist/api/types/WebhookFilter.js +5 -0
- package/dist/api/types/index.d.ts +6 -5
- package/dist/api/types/index.js +6 -5
- package/dist/core/fetcher/Fetcher.d.ts +4 -1
- package/dist/core/fetcher/Fetcher.js +19 -185
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
- package/dist/core/fetcher/createRequestUrl.js +13 -0
- package/dist/core/fetcher/getFetchFn.d.ts +4 -0
- package/dist/core/fetcher/getFetchFn.js +59 -0
- package/dist/core/fetcher/getRequestBody.d.ts +7 -0
- package/dist/core/fetcher/getRequestBody.js +23 -0
- package/dist/core/fetcher/getResponseBody.d.ts +1 -0
- package/dist/core/fetcher/getResponseBody.js +52 -0
- package/dist/core/fetcher/makeRequest.d.ts +1 -0
- package/dist/core/fetcher/makeRequest.js +42 -0
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
- package/dist/core/fetcher/requestWithRetries.js +32 -0
- package/dist/core/fetcher/signals.d.ts +12 -0
- package/dist/core/fetcher/signals.js +37 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
- package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
- package/dist/core/runtime/runtime.d.ts +1 -0
- package/dist/core/runtime/runtime.js +1 -0
- package/dist/core/schemas/Schema.d.ts +8 -4
- package/dist/core/schemas/Schema.js +1 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
- package/dist/core/schemas/builders/bigint/bigint.js +50 -0
- package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
- package/dist/core/schemas/builders/bigint/index.js +5 -0
- package/dist/core/schemas/builders/index.d.ts +1 -0
- package/dist/core/schemas/builders/index.js +1 -0
- package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
- package/dist/core/schemas/builders/lazy/lazy.js +8 -19
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
- package/dist/core/schemas/builders/list/list.js +31 -44
- package/dist/core/schemas/builders/object/object.js +90 -111
- package/dist/core/schemas/builders/object/types.d.ts +2 -2
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
- package/dist/core/schemas/builders/record/record.js +49 -60
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
- package/dist/core/schemas/builders/set/set.js +6 -15
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
- package/dist/core/schemas/builders/union/union.js +51 -62
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
- package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/dist/serialization/resources/index.d.ts +3 -4
- package/dist/serialization/resources/index.js +4 -5
- package/dist/serialization/resources/sites/index.d.ts +1 -0
- package/dist/serialization/resources/sites/index.js +1 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/dist/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/dist/serialization/resources/sites/types/index.d.ts +1 -0
- package/dist/serialization/resources/{webhooks/client → sites/types}/index.js +1 -1
- package/dist/serialization/types/Asset.d.ts +5 -4
- package/dist/serialization/types/Asset.js +5 -4
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.js +2 -2
- package/dist/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/dist/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/dist/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/dist/serialization/types/ConflictErrorBody.js +7 -3
- package/dist/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/dist/serialization/types/DuplicateUserEmail.js +31 -2
- package/dist/serialization/types/Form.d.ts +1 -0
- package/dist/serialization/types/Form.js +1 -0
- package/dist/serialization/types/FormSubmissionList.d.ts +1 -1
- package/dist/serialization/types/FormSubmissionList.js +1 -1
- package/dist/serialization/types/MissingScopes.d.ts +7 -2
- package/dist/serialization/types/MissingScopes.js +31 -2
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/dist/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/dist/serialization/types/Page.d.ts +3 -1
- package/dist/serialization/types/Page.js +3 -1
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{serialization/types/PageDetailsOpenGraph.js → dist/serialization/types/TooManyRequestsErrorBody.js} +6 -6
- package/dist/serialization/types/UserLimitReached.d.ts +7 -2
- package/dist/serialization/types/UserLimitReached.js +31 -2
- package/dist/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/dist/serialization/types/UsersNotEnabled.js +31 -2
- package/dist/serialization/types/Webhook.d.ts +4 -3
- package/dist/serialization/types/Webhook.js +4 -3
- package/dist/serialization/types/WebhookFilter.d.ts +12 -0
- package/{serialization/types/PageDetailsSeo.js → dist/serialization/types/WebhookFilter.js} +3 -4
- package/dist/serialization/types/index.d.ts +5 -5
- package/dist/serialization/types/index.js +5 -5
- package/dist/version.d.ts +1 -0
- package/dist/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/dist/wrapper/ItemsClient.d.ts +49 -1
- package/dist/wrapper/ItemsClient.js +219 -6
- package/package.json +7 -2
- package/reference.md +5790 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/index.js +1 -1
- package/serialization/resources/index.d.ts +3 -4
- package/serialization/resources/index.js +4 -5
- package/serialization/resources/sites/index.d.ts +1 -0
- package/serialization/resources/sites/index.js +1 -0
- package/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
- package/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
- package/serialization/resources/sites/types/index.d.ts +1 -0
- package/{dist/serialization/resources/webhooks → serialization/resources/sites/types}/index.js +1 -1
- package/serialization/types/Asset.d.ts +5 -4
- package/serialization/types/Asset.js +5 -4
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
- package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.js +2 -2
- package/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
- package/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
- package/serialization/types/CollectionItemFieldData.d.ts +1 -0
- package/serialization/types/ConflictErrorBody.d.ts +8 -4
- package/serialization/types/ConflictErrorBody.js +7 -3
- package/serialization/types/DuplicateUserEmail.d.ts +7 -2
- package/serialization/types/DuplicateUserEmail.js +31 -2
- package/serialization/types/Form.d.ts +1 -0
- package/serialization/types/Form.js +1 -0
- package/serialization/types/FormSubmissionList.d.ts +1 -1
- package/serialization/types/FormSubmissionList.js +1 -1
- package/serialization/types/MissingScopes.d.ts +7 -2
- package/serialization/types/MissingScopes.js +31 -2
- package/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
- package/serialization/types/NotEnterprisePlanSite.js +31 -2
- package/serialization/types/Page.d.ts +3 -1
- package/serialization/types/Page.js +3 -1
- package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
- package/{dist/serialization/types/PageDetailsOpenGraph.js → serialization/types/TooManyRequestsErrorBody.js} +6 -6
- package/serialization/types/UserLimitReached.d.ts +7 -2
- package/serialization/types/UserLimitReached.js +31 -2
- package/serialization/types/UsersNotEnabled.d.ts +7 -2
- package/serialization/types/UsersNotEnabled.js +31 -2
- package/serialization/types/Webhook.d.ts +4 -3
- package/serialization/types/Webhook.js +4 -3
- package/serialization/types/WebhookFilter.d.ts +12 -0
- package/{dist/serialization/types/PageDetailsSeo.js → serialization/types/WebhookFilter.js} +3 -4
- package/serialization/types/index.d.ts +5 -5
- package/serialization/types/index.js +5 -5
- package/version.d.ts +1 -0
- package/{api/resources/webhooks/client/requests/index.js → version.js} +2 -0
- package/wrapper/ItemsClient.d.ts +49 -1
- package/wrapper/ItemsClient.js +219 -6
- package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/api/types/PageDetails.d.ts +0 -41
- package/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
- package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/api/types/PageDetails.d.ts +0 -41
- package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
- package/dist/api/types/PageDetailsSeo.d.ts +0 -12
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/dist/serialization/resources/webhooks/index.d.ts +0 -1
- package/dist/serialization/types/OauthScope.d.ts +0 -10
- package/dist/serialization/types/OauthScope.js +0 -52
- package/dist/serialization/types/PageDetails.d.ts +0 -29
- package/dist/serialization/types/PageDetails.js +0 -50
- package/dist/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -15
- package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -36
- package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/requests/index.js +0 -5
- package/serialization/resources/webhooks/index.d.ts +0 -1
- package/serialization/types/OauthScope.d.ts +0 -10
- package/serialization/types/OauthScope.js +0 -52
- package/serialization/types/PageDetails.d.ts +0 -29
- package/serialization/types/PageDetails.js +0 -50
- package/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
- package/serialization/types/PageDetailsSeo.d.ts +0 -13
- /package/api/resources/collections/resources/items/{client/requests/BulkCollectionItem.js → types/ItemsPublishItemResponse.js} +0 -0
- /package/api/resources/{collections/resources/items/types/BulkCollectionItemFieldData.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → sites/types/SitesPublishResponse.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests → api/types}/BulkCollectionItem.js +0 -0
- /package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.js +0 -0
- /package/api/types/{PageDetails.js → TooManyRequestsErrorBody.js} +0 -0
- /package/api/types/{PageDetailsOpenGraph.js → WebhookFilter.js} +0 -0
- /package/{api/types/PageDetailsSeo.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
- /package/dist/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → forms/client/requests/FormsListSubmissionsRequest.js} +0 -0
- /package/dist/api/{types/PageDetails.js → resources/sites/types/SitesPublishResponse.js} +0 -0
- /package/dist/api/types/{PageDetailsOpenGraph.js → BulkCollectionItem.js} +0 -0
- /package/dist/api/types/{PageDetailsSeo.js → BulkCollectionItemFieldData.js} +0 -0
|
@@ -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,13 @@ class Scripts {
|
|
|
101
103
|
case 404:
|
|
102
104
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
103
105
|
case 429:
|
|
104
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
106
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
107
|
+
unrecognizedObjectKeys: "passthrough",
|
|
108
|
+
allowUnrecognizedUnionMembers: true,
|
|
109
|
+
allowUnrecognizedEnumValues: true,
|
|
110
|
+
skipValidation: true,
|
|
111
|
+
breadcrumbsPrefix: ["response"],
|
|
112
|
+
}));
|
|
105
113
|
case 500:
|
|
106
114
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
107
115
|
default:
|
|
@@ -140,17 +148,17 @@ class Scripts {
|
|
|
140
148
|
* @throws {@link Webflow.InternalServerError}
|
|
141
149
|
*
|
|
142
150
|
* @example
|
|
143
|
-
* await client.sites.scripts.upsertCustomCode("
|
|
151
|
+
* await client.sites.scripts.upsertCustomCode("580e63e98c9a982ac9b8b741", {
|
|
144
152
|
* scripts: [{
|
|
145
153
|
* id: "cms_slider",
|
|
146
|
-
* location:
|
|
154
|
+
* location: "header",
|
|
147
155
|
* version: "1.0.0",
|
|
148
156
|
* attributes: {
|
|
149
157
|
* "my-attribute": "some-value"
|
|
150
158
|
* }
|
|
151
159
|
* }, {
|
|
152
160
|
* id: "alert",
|
|
153
|
-
* location:
|
|
161
|
+
* location: "header",
|
|
154
162
|
* version: "0.0.1"
|
|
155
163
|
* }]
|
|
156
164
|
* })
|
|
@@ -165,18 +173,20 @@ class Scripts {
|
|
|
165
173
|
Authorization: yield this._getAuthorizationHeader(),
|
|
166
174
|
"X-Fern-Language": "JavaScript",
|
|
167
175
|
"X-Fern-SDK-Name": "webflow-api",
|
|
168
|
-
"X-Fern-SDK-Version": "2.
|
|
176
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
177
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
169
178
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
170
179
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
171
180
|
},
|
|
172
181
|
contentType: "application/json",
|
|
173
|
-
|
|
182
|
+
requestType: "json",
|
|
183
|
+
body: serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
174
184
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
175
185
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
176
186
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
177
187
|
});
|
|
178
188
|
if (_response.ok) {
|
|
179
|
-
return
|
|
189
|
+
return serializers.ScriptApplyList.parseOrThrow(_response.body, {
|
|
180
190
|
unrecognizedObjectKeys: "passthrough",
|
|
181
191
|
allowUnrecognizedUnionMembers: true,
|
|
182
192
|
allowUnrecognizedEnumValues: true,
|
|
@@ -193,7 +203,13 @@ class Scripts {
|
|
|
193
203
|
case 404:
|
|
194
204
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
195
205
|
case 429:
|
|
196
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
206
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
207
|
+
unrecognizedObjectKeys: "passthrough",
|
|
208
|
+
allowUnrecognizedUnionMembers: true,
|
|
209
|
+
allowUnrecognizedEnumValues: true,
|
|
210
|
+
skipValidation: true,
|
|
211
|
+
breadcrumbsPrefix: ["response"],
|
|
212
|
+
}));
|
|
197
213
|
case 500:
|
|
198
214
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
199
215
|
default:
|
|
@@ -231,7 +247,7 @@ class Scripts {
|
|
|
231
247
|
* @throws {@link Webflow.InternalServerError}
|
|
232
248
|
*
|
|
233
249
|
* @example
|
|
234
|
-
* await client.sites.scripts.deleteCustomCode("
|
|
250
|
+
* await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741")
|
|
235
251
|
*/
|
|
236
252
|
deleteCustomCode(siteId, requestOptions) {
|
|
237
253
|
var _a;
|
|
@@ -243,11 +259,13 @@ class Scripts {
|
|
|
243
259
|
Authorization: yield this._getAuthorizationHeader(),
|
|
244
260
|
"X-Fern-Language": "JavaScript",
|
|
245
261
|
"X-Fern-SDK-Name": "webflow-api",
|
|
246
|
-
"X-Fern-SDK-Version": "2.
|
|
262
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
263
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
247
264
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
248
265
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
249
266
|
},
|
|
250
267
|
contentType: "application/json",
|
|
268
|
+
requestType: "json",
|
|
251
269
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
252
270
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
253
271
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -264,7 +282,13 @@ class Scripts {
|
|
|
264
282
|
case 404:
|
|
265
283
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
266
284
|
case 429:
|
|
267
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
285
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
286
|
+
unrecognizedObjectKeys: "passthrough",
|
|
287
|
+
allowUnrecognizedUnionMembers: true,
|
|
288
|
+
allowUnrecognizedEnumValues: true,
|
|
289
|
+
skipValidation: true,
|
|
290
|
+
breadcrumbsPrefix: ["response"],
|
|
291
|
+
}));
|
|
268
292
|
case 500:
|
|
269
293
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
270
294
|
default:
|
|
@@ -303,7 +327,7 @@ class Scripts {
|
|
|
303
327
|
* @throws {@link Webflow.InternalServerError}
|
|
304
328
|
*
|
|
305
329
|
* @example
|
|
306
|
-
* await client.sites.scripts.listCustomCodeBlocks("
|
|
330
|
+
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
|
|
307
331
|
*/
|
|
308
332
|
listCustomCodeBlocks(siteId, request = {}, requestOptions) {
|
|
309
333
|
var _a;
|
|
@@ -323,18 +347,20 @@ class Scripts {
|
|
|
323
347
|
Authorization: yield this._getAuthorizationHeader(),
|
|
324
348
|
"X-Fern-Language": "JavaScript",
|
|
325
349
|
"X-Fern-SDK-Name": "webflow-api",
|
|
326
|
-
"X-Fern-SDK-Version": "2.
|
|
350
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
351
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
327
352
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
328
353
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
329
354
|
},
|
|
330
355
|
contentType: "application/json",
|
|
331
356
|
queryParameters: _queryParams,
|
|
357
|
+
requestType: "json",
|
|
332
358
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
333
359
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
334
360
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
335
361
|
});
|
|
336
362
|
if (_response.ok) {
|
|
337
|
-
return
|
|
363
|
+
return serializers.ListCustomCodeBlocks.parseOrThrow(_response.body, {
|
|
338
364
|
unrecognizedObjectKeys: "passthrough",
|
|
339
365
|
allowUnrecognizedUnionMembers: true,
|
|
340
366
|
allowUnrecognizedEnumValues: true,
|
|
@@ -351,7 +377,13 @@ class Scripts {
|
|
|
351
377
|
case 404:
|
|
352
378
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
353
379
|
case 429:
|
|
354
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
380
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
381
|
+
unrecognizedObjectKeys: "passthrough",
|
|
382
|
+
allowUnrecognizedUnionMembers: true,
|
|
383
|
+
allowUnrecognizedEnumValues: true,
|
|
384
|
+
skipValidation: true,
|
|
385
|
+
breadcrumbsPrefix: ["response"],
|
|
386
|
+
}));
|
|
355
387
|
case 500:
|
|
356
388
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
357
389
|
default:
|
|
@@ -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";
|
|
@@ -14,4 +14,4 @@ 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("./
|
|
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
|
* })
|
|
@@ -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,13 @@ class Users {
|
|
|
117
119
|
case 404:
|
|
118
120
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
119
121
|
case 429:
|
|
120
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
122
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
123
|
+
unrecognizedObjectKeys: "passthrough",
|
|
124
|
+
allowUnrecognizedUnionMembers: true,
|
|
125
|
+
allowUnrecognizedEnumValues: true,
|
|
126
|
+
skipValidation: true,
|
|
127
|
+
breadcrumbsPrefix: ["response"],
|
|
128
|
+
}));
|
|
121
129
|
case 500:
|
|
122
130
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
123
131
|
default:
|
|
@@ -157,7 +165,7 @@ class Users {
|
|
|
157
165
|
* @throws {@link Webflow.InternalServerError}
|
|
158
166
|
*
|
|
159
167
|
* @example
|
|
160
|
-
* await client.users.get("
|
|
168
|
+
* await client.users.get("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
161
169
|
*/
|
|
162
170
|
get(siteId, userId, requestOptions) {
|
|
163
171
|
var _a;
|
|
@@ -169,17 +177,19 @@ class Users {
|
|
|
169
177
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
178
|
"X-Fern-Language": "JavaScript",
|
|
171
179
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "2.
|
|
180
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
181
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
173
182
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
183
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
184
|
},
|
|
176
185
|
contentType: "application/json",
|
|
186
|
+
requestType: "json",
|
|
177
187
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
178
188
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
179
189
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
180
190
|
});
|
|
181
191
|
if (_response.ok) {
|
|
182
|
-
return
|
|
192
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
183
193
|
unrecognizedObjectKeys: "passthrough",
|
|
184
194
|
allowUnrecognizedUnionMembers: true,
|
|
185
195
|
allowUnrecognizedEnumValues: true,
|
|
@@ -198,7 +208,13 @@ class Users {
|
|
|
198
208
|
case 404:
|
|
199
209
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
200
210
|
case 429:
|
|
201
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
211
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
212
|
+
unrecognizedObjectKeys: "passthrough",
|
|
213
|
+
allowUnrecognizedUnionMembers: true,
|
|
214
|
+
allowUnrecognizedEnumValues: true,
|
|
215
|
+
skipValidation: true,
|
|
216
|
+
breadcrumbsPrefix: ["response"],
|
|
217
|
+
}));
|
|
202
218
|
case 500:
|
|
203
219
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
204
220
|
default:
|
|
@@ -238,7 +254,7 @@ class Users {
|
|
|
238
254
|
* @throws {@link Webflow.InternalServerError}
|
|
239
255
|
*
|
|
240
256
|
* @example
|
|
241
|
-
* await client.users.delete("
|
|
257
|
+
* await client.users.delete("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741")
|
|
242
258
|
*/
|
|
243
259
|
delete(siteId, userId, requestOptions) {
|
|
244
260
|
var _a;
|
|
@@ -250,11 +266,13 @@ class Users {
|
|
|
250
266
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
267
|
"X-Fern-Language": "JavaScript",
|
|
252
268
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "2.
|
|
269
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
270
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
254
271
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
272
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
273
|
},
|
|
257
274
|
contentType: "application/json",
|
|
275
|
+
requestType: "json",
|
|
258
276
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
259
277
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
260
278
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -273,7 +291,13 @@ class Users {
|
|
|
273
291
|
case 404:
|
|
274
292
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
275
293
|
case 429:
|
|
276
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
294
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
295
|
+
unrecognizedObjectKeys: "passthrough",
|
|
296
|
+
allowUnrecognizedUnionMembers: true,
|
|
297
|
+
allowUnrecognizedEnumValues: true,
|
|
298
|
+
skipValidation: true,
|
|
299
|
+
breadcrumbsPrefix: ["response"],
|
|
300
|
+
}));
|
|
277
301
|
case 500:
|
|
278
302
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
279
303
|
default:
|
|
@@ -316,7 +340,7 @@ class Users {
|
|
|
316
340
|
* @throws {@link Webflow.InternalServerError}
|
|
317
341
|
*
|
|
318
342
|
* @example
|
|
319
|
-
* await client.users.update("
|
|
343
|
+
* await client.users.update("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
|
|
320
344
|
* data: {
|
|
321
345
|
* name: "Some One",
|
|
322
346
|
* acceptPrivacy: false,
|
|
@@ -335,18 +359,20 @@ class Users {
|
|
|
335
359
|
Authorization: yield this._getAuthorizationHeader(),
|
|
336
360
|
"X-Fern-Language": "JavaScript",
|
|
337
361
|
"X-Fern-SDK-Name": "webflow-api",
|
|
338
|
-
"X-Fern-SDK-Version": "2.
|
|
362
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
363
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
339
364
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
340
365
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
341
366
|
},
|
|
342
367
|
contentType: "application/json",
|
|
343
|
-
|
|
368
|
+
requestType: "json",
|
|
369
|
+
body: serializers.UsersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
344
370
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
345
371
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
346
372
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
347
373
|
});
|
|
348
374
|
if (_response.ok) {
|
|
349
|
-
return
|
|
375
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
350
376
|
unrecognizedObjectKeys: "passthrough",
|
|
351
377
|
allowUnrecognizedUnionMembers: true,
|
|
352
378
|
allowUnrecognizedEnumValues: true,
|
|
@@ -365,7 +391,13 @@ class Users {
|
|
|
365
391
|
case 404:
|
|
366
392
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
367
393
|
case 429:
|
|
368
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
394
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
395
|
+
unrecognizedObjectKeys: "passthrough",
|
|
396
|
+
allowUnrecognizedUnionMembers: true,
|
|
397
|
+
allowUnrecognizedEnumValues: true,
|
|
398
|
+
skipValidation: true,
|
|
399
|
+
breadcrumbsPrefix: ["response"],
|
|
400
|
+
}));
|
|
369
401
|
case 500:
|
|
370
402
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
371
403
|
default:
|
|
@@ -406,7 +438,7 @@ class Users {
|
|
|
406
438
|
* @throws {@link Webflow.InternalServerError}
|
|
407
439
|
*
|
|
408
440
|
* @example
|
|
409
|
-
* await client.users.invite("
|
|
441
|
+
* await client.users.invite("580e63e98c9a982ac9b8b741", {
|
|
410
442
|
* email: "some.one@home.com",
|
|
411
443
|
* accessGroups: ["webflowers"]
|
|
412
444
|
* })
|
|
@@ -421,18 +453,20 @@ class Users {
|
|
|
421
453
|
Authorization: yield this._getAuthorizationHeader(),
|
|
422
454
|
"X-Fern-Language": "JavaScript",
|
|
423
455
|
"X-Fern-SDK-Name": "webflow-api",
|
|
424
|
-
"X-Fern-SDK-Version": "2.
|
|
456
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
457
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
425
458
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
426
459
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
427
460
|
},
|
|
428
461
|
contentType: "application/json",
|
|
429
|
-
|
|
462
|
+
requestType: "json",
|
|
463
|
+
body: serializers.UsersInviteRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
430
464
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
431
465
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
432
466
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
433
467
|
});
|
|
434
468
|
if (_response.ok) {
|
|
435
|
-
return
|
|
469
|
+
return serializers.User.parseOrThrow(_response.body, {
|
|
436
470
|
unrecognizedObjectKeys: "passthrough",
|
|
437
471
|
allowUnrecognizedUnionMembers: true,
|
|
438
472
|
allowUnrecognizedEnumValues: true,
|
|
@@ -453,7 +487,13 @@ class Users {
|
|
|
453
487
|
case 409:
|
|
454
488
|
throw new Webflow.ConflictError(_response.error.body);
|
|
455
489
|
case 429:
|
|
456
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
490
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
491
|
+
unrecognizedObjectKeys: "passthrough",
|
|
492
|
+
allowUnrecognizedUnionMembers: true,
|
|
493
|
+
allowUnrecognizedEnumValues: true,
|
|
494
|
+
skipValidation: true,
|
|
495
|
+
breadcrumbsPrefix: ["response"],
|
|
496
|
+
}));
|
|
457
497
|
case 500:
|
|
458
498
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
459
499
|
default:
|
|
@@ -34,14 +34,14 @@ 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
|
/**
|
|
41
41
|
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `sites:write`
|
|
42
42
|
*
|
|
43
43
|
* @param {string} siteId - Unique identifier for a Site
|
|
44
|
-
* @param {Webflow.
|
|
44
|
+
* @param {Webflow.Webhook} request
|
|
45
45
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
46
46
|
*
|
|
47
47
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -51,12 +51,17 @@ export declare class Webhooks {
|
|
|
51
51
|
* @throws {@link Webflow.InternalServerError}
|
|
52
52
|
*
|
|
53
53
|
* @example
|
|
54
|
-
* await client.webhooks.create("
|
|
55
|
-
*
|
|
56
|
-
*
|
|
54
|
+
* await client.webhooks.create("580e63e98c9a982ac9b8b741", {
|
|
55
|
+
* id: "582266e0cd48de0f0e3c6d8b",
|
|
56
|
+
* triggerType: "form_submission",
|
|
57
|
+
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
58
|
+
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
59
|
+
* siteId: "562ac0395358780a1f5e6fbd",
|
|
60
|
+
* lastTriggered: "2023-02-08T23:59:28Z",
|
|
61
|
+
* createdOn: "2022-11-08T23:59:28Z"
|
|
57
62
|
* })
|
|
58
63
|
*/
|
|
59
|
-
create(siteId: string, request: Webflow.
|
|
64
|
+
create(siteId: string, request: Webflow.Webhook, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
60
65
|
/**
|
|
61
66
|
* Get a specific Webhook instance
|
|
62
67
|
*
|
|
@@ -70,7 +75,7 @@ export declare class Webhooks {
|
|
|
70
75
|
* @throws {@link Webflow.InternalServerError}
|
|
71
76
|
*
|
|
72
77
|
* @example
|
|
73
|
-
* await client.webhooks.get("
|
|
78
|
+
* await client.webhooks.get("580e64008c9a982ac9b8b754")
|
|
74
79
|
*/
|
|
75
80
|
get(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.Webhook>;
|
|
76
81
|
/**
|
|
@@ -86,7 +91,7 @@ export declare class Webhooks {
|
|
|
86
91
|
* @throws {@link Webflow.InternalServerError}
|
|
87
92
|
*
|
|
88
93
|
* @example
|
|
89
|
-
* await client.webhooks.delete("
|
|
94
|
+
* await client.webhooks.delete("580e64008c9a982ac9b8b754")
|
|
90
95
|
*/
|
|
91
96
|
delete(webhookId: string, requestOptions?: Webhooks.RequestOptions): Promise<void>;
|
|
92
97
|
protected _getAuthorizationHeader(): Promise<string>;
|