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 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,13 @@ class Webhooks {
|
|
|
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:
|
|
@@ -130,7 +138,7 @@ class Webhooks {
|
|
|
130
138
|
* 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`
|
|
131
139
|
*
|
|
132
140
|
* @param {string} siteId - Unique identifier for a Site
|
|
133
|
-
* @param {Webflow.
|
|
141
|
+
* @param {Webflow.Webhook} request
|
|
134
142
|
* @param {Webhooks.RequestOptions} requestOptions - Request-specific configuration.
|
|
135
143
|
*
|
|
136
144
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -140,9 +148,14 @@ class Webhooks {
|
|
|
140
148
|
* @throws {@link Webflow.InternalServerError}
|
|
141
149
|
*
|
|
142
150
|
* @example
|
|
143
|
-
* await client.webhooks.create("
|
|
144
|
-
*
|
|
145
|
-
*
|
|
151
|
+
* await client.webhooks.create("580e63e98c9a982ac9b8b741", {
|
|
152
|
+
* id: "582266e0cd48de0f0e3c6d8b",
|
|
153
|
+
* triggerType: "form_submission",
|
|
154
|
+
* url: "https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f",
|
|
155
|
+
* workspaceId: "4f4e46fd476ea8c507000001",
|
|
156
|
+
* siteId: "562ac0395358780a1f5e6fbd",
|
|
157
|
+
* lastTriggered: "2023-02-08T23:59:28Z",
|
|
158
|
+
* createdOn: "2022-11-08T23:59:28Z"
|
|
146
159
|
* })
|
|
147
160
|
*/
|
|
148
161
|
create(siteId, request, requestOptions) {
|
|
@@ -155,18 +168,20 @@ class Webhooks {
|
|
|
155
168
|
Authorization: yield this._getAuthorizationHeader(),
|
|
156
169
|
"X-Fern-Language": "JavaScript",
|
|
157
170
|
"X-Fern-SDK-Name": "webflow-api",
|
|
158
|
-
"X-Fern-SDK-Version": "2.
|
|
171
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
172
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
159
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
160
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
161
175
|
},
|
|
162
176
|
contentType: "application/json",
|
|
163
|
-
|
|
177
|
+
requestType: "json",
|
|
178
|
+
body: serializers.Webhook.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
|
|
164
179
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
165
180
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
166
181
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
167
182
|
});
|
|
168
183
|
if (_response.ok) {
|
|
169
|
-
return
|
|
184
|
+
return serializers.Webhook.parseOrThrow(_response.body, {
|
|
170
185
|
unrecognizedObjectKeys: "passthrough",
|
|
171
186
|
allowUnrecognizedUnionMembers: true,
|
|
172
187
|
allowUnrecognizedEnumValues: true,
|
|
@@ -183,7 +198,13 @@ class Webhooks {
|
|
|
183
198
|
case 404:
|
|
184
199
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
185
200
|
case 429:
|
|
186
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
201
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
202
|
+
unrecognizedObjectKeys: "passthrough",
|
|
203
|
+
allowUnrecognizedUnionMembers: true,
|
|
204
|
+
allowUnrecognizedEnumValues: true,
|
|
205
|
+
skipValidation: true,
|
|
206
|
+
breadcrumbsPrefix: ["response"],
|
|
207
|
+
}));
|
|
187
208
|
case 500:
|
|
188
209
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
189
210
|
default:
|
|
@@ -221,7 +242,7 @@ class Webhooks {
|
|
|
221
242
|
* @throws {@link Webflow.InternalServerError}
|
|
222
243
|
*
|
|
223
244
|
* @example
|
|
224
|
-
* await client.webhooks.get("
|
|
245
|
+
* await client.webhooks.get("580e64008c9a982ac9b8b754")
|
|
225
246
|
*/
|
|
226
247
|
get(webhookId, requestOptions) {
|
|
227
248
|
var _a;
|
|
@@ -233,17 +254,19 @@ class Webhooks {
|
|
|
233
254
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
255
|
"X-Fern-Language": "JavaScript",
|
|
235
256
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "2.
|
|
257
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
258
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
237
259
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
260
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
261
|
},
|
|
240
262
|
contentType: "application/json",
|
|
263
|
+
requestType: "json",
|
|
241
264
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
242
265
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
243
266
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
244
267
|
});
|
|
245
268
|
if (_response.ok) {
|
|
246
|
-
return
|
|
269
|
+
return serializers.Webhook.parseOrThrow(_response.body, {
|
|
247
270
|
unrecognizedObjectKeys: "passthrough",
|
|
248
271
|
allowUnrecognizedUnionMembers: true,
|
|
249
272
|
allowUnrecognizedEnumValues: true,
|
|
@@ -260,7 +283,13 @@ class Webhooks {
|
|
|
260
283
|
case 404:
|
|
261
284
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
262
285
|
case 429:
|
|
263
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
286
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
287
|
+
unrecognizedObjectKeys: "passthrough",
|
|
288
|
+
allowUnrecognizedUnionMembers: true,
|
|
289
|
+
allowUnrecognizedEnumValues: true,
|
|
290
|
+
skipValidation: true,
|
|
291
|
+
breadcrumbsPrefix: ["response"],
|
|
292
|
+
}));
|
|
264
293
|
case 500:
|
|
265
294
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
266
295
|
default:
|
|
@@ -298,7 +327,7 @@ class Webhooks {
|
|
|
298
327
|
* @throws {@link Webflow.InternalServerError}
|
|
299
328
|
*
|
|
300
329
|
* @example
|
|
301
|
-
* await client.webhooks.delete("
|
|
330
|
+
* await client.webhooks.delete("580e64008c9a982ac9b8b754")
|
|
302
331
|
*/
|
|
303
332
|
delete(webhookId, requestOptions) {
|
|
304
333
|
var _a;
|
|
@@ -310,11 +339,13 @@ class Webhooks {
|
|
|
310
339
|
Authorization: yield this._getAuthorizationHeader(),
|
|
311
340
|
"X-Fern-Language": "JavaScript",
|
|
312
341
|
"X-Fern-SDK-Name": "webflow-api",
|
|
313
|
-
"X-Fern-SDK-Version": "2.
|
|
342
|
+
"X-Fern-SDK-Version": "2.4.0",
|
|
343
|
+
"User-Agent": "webflow-api/2.4.0",
|
|
314
344
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
315
345
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
316
346
|
},
|
|
317
347
|
contentType: "application/json",
|
|
348
|
+
requestType: "json",
|
|
318
349
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
319
350
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
320
351
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -331,7 +362,13 @@ class Webhooks {
|
|
|
331
362
|
case 404:
|
|
332
363
|
throw new Webflow.NotFoundError(_response.error.body);
|
|
333
364
|
case 429:
|
|
334
|
-
throw new Webflow.TooManyRequestsError(_response.error.body
|
|
365
|
+
throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
|
|
366
|
+
unrecognizedObjectKeys: "passthrough",
|
|
367
|
+
allowUnrecognizedUnionMembers: true,
|
|
368
|
+
allowUnrecognizedEnumValues: true,
|
|
369
|
+
skipValidation: true,
|
|
370
|
+
breadcrumbsPrefix: ["response"],
|
|
371
|
+
}));
|
|
335
372
|
case 500:
|
|
336
373
|
throw new Webflow.InternalServerError(_response.error.body);
|
|
337
374
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
|
@@ -1,17 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./requests"), exports);
|
|
@@ -5,21 +5,23 @@ import * as Webflow from "../index";
|
|
|
5
5
|
export interface Asset {
|
|
6
6
|
/** Unique identifier for this asset */
|
|
7
7
|
id?: string;
|
|
8
|
-
/** Original file name at the time of upload */
|
|
9
|
-
originalFileName?: string;
|
|
10
|
-
/** Display name of the asset */
|
|
11
|
-
displayName?: string;
|
|
12
8
|
/** File format type */
|
|
13
9
|
contentType?: string;
|
|
14
10
|
/** size in bytes */
|
|
15
11
|
size?: number;
|
|
16
12
|
/** Unique identifier for the site that hosts this asset */
|
|
17
13
|
siteId?: string;
|
|
18
|
-
/** Date the asset metadata was created */
|
|
19
|
-
createdOn?: Date;
|
|
20
|
-
/** Date the asset metadata was last updated */
|
|
21
|
-
lastUpdated?: Date;
|
|
22
14
|
/** Link to the asset */
|
|
23
15
|
hostedUrl?: string;
|
|
16
|
+
/** Original file name at the time of upload */
|
|
17
|
+
originalFileName?: string;
|
|
18
|
+
/** Display name of the asset */
|
|
19
|
+
displayName?: string;
|
|
20
|
+
/** Date the asset metadata was last updated */
|
|
21
|
+
lastUpdated?: Date;
|
|
22
|
+
/** Date the asset metadata was created */
|
|
23
|
+
createdOn?: Date;
|
|
24
24
|
variants?: Webflow.AssetVariant[];
|
|
25
|
+
/** The visual description of the asset */
|
|
26
|
+
altText?: string;
|
|
25
27
|
}
|
|
@@ -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
|
}
|
|
@@ -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
|
+
}
|
package/dist/api/types/Form.d.ts
CHANGED
|
@@ -26,6 +26,8 @@ export interface Form {
|
|
|
26
26
|
pageId?: string;
|
|
27
27
|
/** The user-visible name of the Page where the Form is placed */
|
|
28
28
|
pageName?: string;
|
|
29
|
+
/** The unique id of the Form element */
|
|
30
|
+
formElementId?: string;
|
|
29
31
|
/** The unique id of the Workspace the Site belongs to */
|
|
30
32
|
workspaceId?: string;
|
|
31
33
|
}
|
|
@@ -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
|
+
}
|
|
@@ -61,7 +61,13 @@ export declare type OauthScope =
|
|
|
61
61
|
| "workspace:read"
|
|
62
62
|
/**
|
|
63
63
|
* write workspace resource data */
|
|
64
|
-
| "workspace:write"
|
|
64
|
+
| "workspace:write"
|
|
65
|
+
/**
|
|
66
|
+
* read site configuration data */
|
|
67
|
+
| "site_config:read"
|
|
68
|
+
/**
|
|
69
|
+
* write site configuration data */
|
|
70
|
+
| "site_config:write";
|
|
65
71
|
export declare const OauthScope: {
|
|
66
72
|
readonly AuthorizedUserRead: "authorized_user:read";
|
|
67
73
|
readonly AssetsRead: "assets:read";
|
|
@@ -83,4 +89,6 @@ export declare const OauthScope: {
|
|
|
83
89
|
readonly UsersWrite: "users:write";
|
|
84
90
|
readonly WorkspaceRead: "workspace:read";
|
|
85
91
|
readonly WorkspaceWrite: "workspace:write";
|
|
92
|
+
readonly SiteConfigRead: "site_config:read";
|
|
93
|
+
readonly SiteConfigWrite: "site_config:write";
|
|
86
94
|
};
|
package/dist/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
|
+
}
|
|
@@ -5,17 +5,17 @@ import * as Webflow from "../index";
|
|
|
5
5
|
export interface Webhook {
|
|
6
6
|
/** Unique identifier for the Webhook registration */
|
|
7
7
|
id?: string;
|
|
8
|
+
triggerType?: Webflow.TriggerType;
|
|
9
|
+
/** URL to send the Webhook payload to */
|
|
10
|
+
url?: string;
|
|
8
11
|
/** Unique identifier for the Workspace the Webhook is registered in */
|
|
9
12
|
workspaceId?: string;
|
|
10
13
|
/** Unique identifier for the Site the Webhook is registered in */
|
|
11
14
|
siteId?: string;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
filter?: Record<string, unknown>;
|
|
15
|
+
/** Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for. */
|
|
16
|
+
filter?: Webflow.WebhookFilter;
|
|
15
17
|
/** Date the Webhook instance was last triggered */
|
|
16
18
|
lastTriggered?: Date;
|
|
17
19
|
/** Date the Webhook registration was created */
|
|
18
20
|
createdOn?: Date;
|
|
19
|
-
/** URL to send the Webhook payload to */
|
|
20
|
-
url?: string;
|
|
21
21
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Only supported for the `form_submission` trigger type. Filter for the form you want Webhooks to be sent for.
|
|
6
|
+
*/
|
|
7
|
+
export interface WebhookFilter {
|
|
8
|
+
/** The name of the form you'd like to recieve notifications for. */
|
|
9
|
+
name?: string;
|
|
10
|
+
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export * from "./OauthScope";
|
|
2
1
|
export * from "./ForbiddenErrorBody";
|
|
2
|
+
export * from "./TooManyRequestsErrorBody";
|
|
3
3
|
export * from "./BadRequestErrorBody";
|
|
4
4
|
export * from "./ConflictErrorBody";
|
|
5
|
+
export * from "./ErrorDetailsItem";
|
|
5
6
|
export * from "./AuthorizedUser";
|
|
6
7
|
export * from "./Application";
|
|
7
8
|
export * from "./AuthorizationAuthorizationAuthorizedTo";
|
|
@@ -20,7 +21,6 @@ export * from "./SiteActivityLogItemUser";
|
|
|
20
21
|
export * from "./SiteActivityLogItem";
|
|
21
22
|
export * from "./Pagination";
|
|
22
23
|
export * from "./SiteActivityLogResponse";
|
|
23
|
-
export * from "./ErrorDetailsItem";
|
|
24
24
|
export * from "./Error_";
|
|
25
25
|
export * from "./MissingScopes";
|
|
26
26
|
export * from "./NotEnterprisePlanSite";
|
|
@@ -33,13 +33,12 @@ export * from "./CollectionItemFieldData";
|
|
|
33
33
|
export * from "./CollectionItem";
|
|
34
34
|
export * from "./CollectionItemListPagination";
|
|
35
35
|
export * from "./CollectionItemList";
|
|
36
|
+
export * from "./BulkCollectionItemFieldData";
|
|
37
|
+
export * from "./BulkCollectionItem";
|
|
36
38
|
export * from "./PageSeo";
|
|
37
39
|
export * from "./PageOpenGraph";
|
|
38
40
|
export * from "./Page";
|
|
39
41
|
export * from "./PageList";
|
|
40
|
-
export * from "./PageDetailsSeo";
|
|
41
|
-
export * from "./PageDetailsOpenGraph";
|
|
42
|
-
export * from "./PageDetails";
|
|
43
42
|
export * from "./TextNode";
|
|
44
43
|
export * from "./ImageNode";
|
|
45
44
|
export * from "./NodeType";
|
|
@@ -63,6 +62,7 @@ export * from "./AssetUpload";
|
|
|
63
62
|
export * from "./AssetFolder";
|
|
64
63
|
export * from "./AssetFolderList";
|
|
65
64
|
export * from "./TriggerType";
|
|
65
|
+
export * from "./WebhookFilter";
|
|
66
66
|
export * from "./Webhook";
|
|
67
67
|
export * from "./WebhookList";
|
|
68
68
|
export * from "./FormFieldValueType";
|
|
@@ -130,3 +130,4 @@ export * from "./OrderList";
|
|
|
130
130
|
export * from "./InventoryItemInventoryType";
|
|
131
131
|
export * from "./InventoryItem";
|
|
132
132
|
export * from "./EcommerceSettings";
|
|
133
|
+
export * from "./OAuthScope";
|
package/dist/api/types/index.js
CHANGED
|
@@ -14,10 +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);
|
|
18
|
+
__exportStar(require("./TooManyRequestsErrorBody"), exports);
|
|
19
19
|
__exportStar(require("./BadRequestErrorBody"), exports);
|
|
20
20
|
__exportStar(require("./ConflictErrorBody"), exports);
|
|
21
|
+
__exportStar(require("./ErrorDetailsItem"), exports);
|
|
21
22
|
__exportStar(require("./AuthorizedUser"), exports);
|
|
22
23
|
__exportStar(require("./Application"), exports);
|
|
23
24
|
__exportStar(require("./AuthorizationAuthorizationAuthorizedTo"), exports);
|
|
@@ -36,7 +37,6 @@ __exportStar(require("./SiteActivityLogItemUser"), exports);
|
|
|
36
37
|
__exportStar(require("./SiteActivityLogItem"), exports);
|
|
37
38
|
__exportStar(require("./Pagination"), exports);
|
|
38
39
|
__exportStar(require("./SiteActivityLogResponse"), exports);
|
|
39
|
-
__exportStar(require("./ErrorDetailsItem"), exports);
|
|
40
40
|
__exportStar(require("./Error_"), exports);
|
|
41
41
|
__exportStar(require("./MissingScopes"), exports);
|
|
42
42
|
__exportStar(require("./NotEnterprisePlanSite"), exports);
|
|
@@ -49,13 +49,12 @@ __exportStar(require("./CollectionItemFieldData"), exports);
|
|
|
49
49
|
__exportStar(require("./CollectionItem"), exports);
|
|
50
50
|
__exportStar(require("./CollectionItemListPagination"), exports);
|
|
51
51
|
__exportStar(require("./CollectionItemList"), exports);
|
|
52
|
+
__exportStar(require("./BulkCollectionItemFieldData"), exports);
|
|
53
|
+
__exportStar(require("./BulkCollectionItem"), exports);
|
|
52
54
|
__exportStar(require("./PageSeo"), exports);
|
|
53
55
|
__exportStar(require("./PageOpenGraph"), exports);
|
|
54
56
|
__exportStar(require("./Page"), exports);
|
|
55
57
|
__exportStar(require("./PageList"), exports);
|
|
56
|
-
__exportStar(require("./PageDetailsSeo"), exports);
|
|
57
|
-
__exportStar(require("./PageDetailsOpenGraph"), exports);
|
|
58
|
-
__exportStar(require("./PageDetails"), exports);
|
|
59
58
|
__exportStar(require("./TextNode"), exports);
|
|
60
59
|
__exportStar(require("./ImageNode"), exports);
|
|
61
60
|
__exportStar(require("./NodeType"), exports);
|
|
@@ -79,6 +78,7 @@ __exportStar(require("./AssetUpload"), exports);
|
|
|
79
78
|
__exportStar(require("./AssetFolder"), exports);
|
|
80
79
|
__exportStar(require("./AssetFolderList"), exports);
|
|
81
80
|
__exportStar(require("./TriggerType"), exports);
|
|
81
|
+
__exportStar(require("./WebhookFilter"), exports);
|
|
82
82
|
__exportStar(require("./Webhook"), exports);
|
|
83
83
|
__exportStar(require("./WebhookList"), exports);
|
|
84
84
|
__exportStar(require("./FormFieldValueType"), exports);
|
|
@@ -146,3 +146,4 @@ __exportStar(require("./OrderList"), exports);
|
|
|
146
146
|
__exportStar(require("./InventoryItemInventoryType"), exports);
|
|
147
147
|
__exportStar(require("./InventoryItem"), exports);
|
|
148
148
|
__exportStar(require("./EcommerceSettings"), exports);
|
|
149
|
+
__exportStar(require("./OAuthScope"), exports);
|
|
@@ -12,7 +12,9 @@ export declare namespace Fetcher {
|
|
|
12
12
|
maxRetries?: number;
|
|
13
13
|
withCredentials?: boolean;
|
|
14
14
|
abortSignal?: AbortSignal;
|
|
15
|
-
|
|
15
|
+
requestType?: "json" | "file" | "bytes";
|
|
16
|
+
responseType?: "json" | "blob" | "sse" | "streaming" | "text";
|
|
17
|
+
duplex?: "half";
|
|
16
18
|
}
|
|
17
19
|
type Error = FailedStatusCodeError | NonJsonError | TimeoutError | UnknownError;
|
|
18
20
|
interface FailedStatusCodeError {
|
|
@@ -33,4 +35,5 @@ export declare namespace Fetcher {
|
|
|
33
35
|
errorMessage: string;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
38
|
+
export declare function fetcherImpl<R = unknown>(args: Fetcher.Args): Promise<APIResponse<R, Fetcher.Error>>;
|
|
36
39
|
export declare const fetcher: FetchFunction;
|