webflow-api 3.1.4 → 3.2.1
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/.mock/definition/__package__.yml +811 -148
- package/.mock/definition/accessGroups.yml +7 -1
- package/.mock/definition/api.yml +0 -2
- package/.mock/definition/assets.yml +38 -8
- package/.mock/definition/collections/fields.yml +15 -9
- package/.mock/definition/collections/items.yml +740 -266
- package/.mock/definition/collections.yml +140 -14
- package/.mock/definition/comments.yml +40 -0
- package/.mock/definition/components.yml +87 -26
- package/.mock/definition/ecommerce.yml +3 -1
- package/.mock/definition/forms.yml +65 -7
- package/.mock/definition/inventory.yml +44 -16
- package/.mock/definition/items.yml +111 -0
- package/.mock/definition/orders.yml +470 -86
- package/.mock/definition/pages/scripts.yml +27 -8
- package/.mock/definition/pages.yml +172 -63
- package/.mock/definition/products.yml +52 -33
- package/.mock/definition/scripts.yml +13 -3
- package/.mock/definition/sites/activityLogs.yml +6 -1
- package/.mock/definition/sites/comments.yml +39 -14
- package/.mock/definition/sites/plans.yml +3 -1
- package/.mock/definition/sites/redirects.yml +12 -4
- package/.mock/definition/sites/robotsTxt.yml +12 -4
- package/.mock/definition/sites/scripts.yml +35 -8
- package/.mock/definition/sites/wellKnown.yml +20 -4
- package/.mock/definition/sites.yml +56 -14
- package/.mock/definition/token.yml +3 -2
- package/.mock/definition/users.yml +231 -33
- package/.mock/definition/webhooks.yml +0 -4
- package/.mock/definition/workspaces/auditLogs.yml +9 -3
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +22 -18
- package/Client.js +44 -2
- package/api/errors/BadRequestError.d.ts +2 -1
- package/api/errors/BadRequestError.js +19 -8
- package/api/errors/ConflictError.d.ts +2 -1
- package/api/errors/ConflictError.js +19 -8
- package/api/errors/ForbiddenError.d.ts +2 -1
- package/api/errors/ForbiddenError.js +19 -8
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/InternalServerError.js +19 -8
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/NotFoundError.js +19 -8
- package/api/errors/TooManyRequestsError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.js +19 -8
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/errors/UnauthorizedError.js +19 -8
- package/api/resources/accessGroups/client/Client.d.ts +15 -6
- package/api/resources/accessGroups/client/Client.js +62 -31
- package/api/resources/accessGroups/client/index.d.ts +1 -0
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +29 -13
- package/api/resources/assets/client/Client.js +232 -137
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +23 -13
- package/api/resources/collections/client/Client.js +127 -79
- package/api/resources/collections/client/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +20 -11
- package/api/resources/collections/resources/fields/client/Client.js +98 -56
- package/api/resources/collections/resources/fields/client/index.d.ts +1 -0
- package/api/resources/collections/resources/index.js +17 -7
- package/api/resources/collections/resources/items/client/Client.d.ts +174 -86
- package/api/resources/collections/resources/items/client/Client.js +631 -330
- package/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +8 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +47 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +47 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +13 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +13 -1
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +25 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +25 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +8 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +6 -66
- package/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
- package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts → api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemRequestBody.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
- package/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsUpdateItemsResponse.d.ts} +1 -1
- package/api/resources/collections/resources/items/types/index.d.ts +7 -2
- package/api/resources/collections/resources/items/types/index.js +7 -2
- package/api/resources/components/client/Client.d.ts +39 -15
- package/api/resources/components/client/Client.js +194 -105
- package/api/resources/components/client/index.d.ts +1 -0
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +8 -1
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +8 -1
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +11 -2
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +11 -2
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +9 -1
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +10 -5
- package/api/resources/ecommerce/client/Client.js +51 -28
- package/api/resources/forms/client/Client.d.ts +33 -14
- package/api/resources/forms/client/Client.js +215 -137
- package/api/resources/forms/client/index.d.ts +1 -0
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/api/resources/index.js +17 -7
- package/api/resources/inventory/client/Client.d.ts +18 -12
- package/api/resources/inventory/client/Client.js +88 -55
- package/api/resources/inventory/client/index.d.ts +1 -0
- package/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
- package/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
- package/api/resources/inventory/types/index.d.ts +1 -0
- package/api/resources/inventory/types/index.js +1 -0
- package/api/resources/orders/client/Client.d.ts +25 -11
- package/api/resources/orders/client/Client.js +201 -124
- package/api/resources/orders/client/index.d.ts +1 -0
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
- package/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
- package/api/resources/pages/client/Client.d.ts +43 -47
- package/api/resources/pages/client/Client.js +185 -139
- package/api/resources/pages/client/index.d.ts +1 -0
- package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +43 -0
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- package/api/resources/pages/client/requests/index.d.ts +1 -1
- package/api/resources/pages/resources/index.js +17 -7
- package/api/resources/pages/resources/scripts/client/Client.d.ts +19 -10
- package/api/resources/pages/resources/scripts/client/Client.js +96 -56
- package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
- package/api/resources/pages/types/PageMetadataWriteOpenGraph.js +5 -0
- package/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
- package/api/resources/pages/types/PageMetadataWriteSeo.js +5 -0
- package/api/resources/pages/types/index.d.ts +2 -0
- package/api/resources/pages/types/index.js +2 -0
- package/api/resources/products/client/Client.d.ts +36 -13
- package/api/resources/products/client/Client.js +204 -120
- package/api/resources/products/client/index.d.ts +1 -0
- package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
- package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +14 -7
- package/api/resources/scripts/client/Client.js +99 -56
- package/api/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/client/Client.d.ts +43 -27
- package/api/resources/sites/client/Client.js +228 -149
- package/api/resources/sites/client/index.d.ts +1 -0
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +14 -6
- package/api/resources/sites/resources/activityLogs/client/Client.js +53 -27
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/api/resources/sites/resources/comments/client/Client.d.ts +29 -10
- package/api/resources/sites/resources/comments/client/Client.js +148 -73
- package/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
- package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
- package/api/resources/sites/resources/index.js +17 -7
- package/api/resources/sites/resources/plans/client/Client.d.ts +10 -5
- package/api/resources/sites/resources/plans/client/Client.js +49 -26
- package/api/resources/sites/resources/redirects/client/Client.d.ts +16 -8
- package/api/resources/sites/resources/redirects/client/Client.js +124 -73
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +16 -8
- package/api/resources/sites/resources/robotsTxt/client/Client.js +124 -71
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -11
- package/api/resources/sites/resources/scripts/client/Client.js +126 -73
- package/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +15 -8
- package/api/resources/sites/resources/wellKnown/client/Client.js +60 -30
- package/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +12 -6
- package/api/resources/token/client/Client.js +67 -36
- package/api/resources/users/client/Client.d.ts +36 -18
- package/api/resources/users/client/Client.js +173 -104
- package/api/resources/users/client/index.d.ts +1 -0
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
- package/api/resources/users/client/requests/index.d.ts +0 -1
- package/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountAddedPayload.js +5 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountDeletedPayload.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +5 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +5 -0
- package/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
- package/api/resources/users/types/index.d.ts +9 -1
- package/api/resources/users/types/index.js +9 -1
- package/api/resources/webhooks/client/Client.d.ts +18 -10
- package/api/resources/webhooks/client/Client.js +117 -71
- package/api/resources/workspaces/client/Client.d.ts +6 -12
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +16 -7
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +69 -32
- package/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
- package/api/resources/workspaces/resources/index.js +17 -7
- package/api/types/Application.d.ts +10 -1
- package/api/types/Asset.d.ts +2 -2
- package/api/types/AssetVariant.d.ts +6 -6
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/BadRequestErrorBody.d.ts +1 -1
- package/api/types/BulkCollectionItem.d.ts +1 -1
- package/api/types/Collection.d.ts +2 -2
- package/api/types/CollectionItemChanged.d.ts +12 -0
- package/api/types/CollectionItemChanged.js +5 -0
- package/api/types/CollectionItemCreated.d.ts +12 -0
- package/api/types/CollectionItemCreated.js +5 -0
- package/api/types/CollectionItemPublished.d.ts +9 -0
- package/api/types/CollectionItemPublished.js +5 -0
- package/api/types/CollectionItemRemoved.d.ts +10 -0
- package/api/types/CollectionItemRemoved.js +5 -0
- package/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/api/types/CollectionItemRemovedPayload.js +5 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.js +5 -0
- package/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/api/types/CollectionItemUnpublished.js +5 -0
- package/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/api/types/CollectionItemUnpublishedPayload.js +5 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.js +5 -0
- package/api/types/Comment.d.ts +12 -0
- package/api/types/Comment.js +5 -0
- package/api/types/CommentPayload.d.ts +38 -0
- package/api/types/CommentPayload.js +5 -0
- package/api/types/CommentPayloadAuthor.d.ts +11 -0
- package/api/types/CommentPayloadAuthor.js +5 -0
- package/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
- package/api/types/CommentPayloadMentionedUsersItem.js +5 -0
- package/api/types/CommentReply.d.ts +2 -2
- package/api/types/ComponentNode.d.ts +3 -3
- package/api/types/ComponentPropertyType.d.ts +1 -1
- package/api/types/Conflict.d.ts +1 -1
- package/api/types/ConflictErrorBody.d.ts +1 -1
- package/api/types/CustomCodeBlockType.d.ts +1 -1
- package/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/Dom.d.ts +2 -0
- package/api/types/DuplicateUserEmail.d.ts +1 -1
- package/api/types/ErrorCode.d.ts +1 -1
- package/api/types/Field.d.ts +2 -0
- package/api/types/FieldCreate.d.ts +1 -1
- package/api/types/FieldType.d.ts +1 -1
- package/api/types/FieldValidations.d.ts +10 -0
- package/api/types/FieldValidations.js +5 -0
- package/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
- package/api/types/FieldValidationsAdditionalProperties.js +5 -0
- package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
- package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
- package/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/api/types/FormField.d.ts +1 -1
- package/api/types/FormFieldValueType.d.ts +1 -1
- package/api/types/FormSubmissionTrigger.d.ts +13 -0
- package/api/types/FormSubmissionTrigger.js +5 -0
- package/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
- package/api/types/FormSubmissionTriggerPayload.js +5 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
- package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
- package/api/types/ImageNode.d.ts +2 -2
- package/api/types/InvalidDomain.d.ts +1 -1
- package/api/types/InvalidScopes.d.ts +1 -1
- package/api/types/InventoryItemInventoryType.d.ts +1 -1
- package/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
- package/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
- package/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
- package/api/types/ItemsListItemsRequestLastPublished.js +5 -0
- package/api/types/NewOrder.d.ts +12 -0
- package/api/types/NewOrder.js +5 -0
- package/api/types/NoDomains.d.ts +1 -1
- package/api/types/Node.d.ts +1 -1
- package/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/api/types/OAuthScope.d.ts +1 -1
- package/api/types/Order.d.ts +2 -2
- package/api/types/OrderAddressJapanType.d.ts +1 -1
- package/api/types/OrderAddressType.d.ts +1 -1
- package/api/types/OrderBillingAddress.d.ts +27 -0
- package/api/types/OrderBillingAddress.js +5 -0
- package/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/api/types/OrderBillingAddressJapanType.js +10 -0
- package/api/types/OrderBillingAddressType.d.ts +11 -0
- package/api/types/OrderBillingAddressType.js +10 -0
- package/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/api/types/OrderShippingAddress.d.ts +27 -0
- package/api/types/OrderShippingAddress.js +5 -0
- package/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/api/types/OrderShippingAddressJapanType.js +10 -0
- package/api/types/OrderShippingAddressType.d.ts +11 -0
- package/api/types/OrderShippingAddressType.js +10 -0
- package/api/types/OrderStatus.d.ts +1 -1
- package/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/api/types/Page.d.ts +3 -1
- package/api/types/PageCreatedWebhook.d.ts +13 -0
- package/api/types/PageCreatedWebhook.js +5 -0
- package/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/api/types/PageCreatedWebhookPayload.js +5 -0
- package/api/types/PageDeletedWebhook.d.ts +13 -0
- package/api/types/PageDeletedWebhook.js +5 -0
- package/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/api/types/PageDeletedWebhookPayload.js +5 -0
- package/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/api/types/Payload.d.ts +25 -0
- package/api/types/Payload.js +5 -0
- package/api/types/PayloadFieldData.d.ts +9 -0
- package/api/types/PayloadFieldData.js +5 -0
- package/api/types/ProductFieldData.d.ts +2 -2
- package/api/types/ProductFieldDataEcProductType.d.ts +1 -1
- package/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
- package/api/types/PublishStatus.d.ts +1 -1
- package/api/types/ReferenceFieldType.d.ts +1 -1
- package/api/types/RegisteredScriptList.d.ts +1 -0
- package/api/types/ScriptApplyLocation.d.ts +1 -1
- package/api/types/Scripts.d.ts +1 -1
- package/{dist/api/types/SelectNodeWrite.d.ts → api/types/Select.d.ts} +1 -1
- package/api/types/Select.js +5 -0
- package/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
- package/api/types/SingleLocaleCreatedPayload.js +5 -0
- package/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
- package/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
- package/api/types/SiteActivityLogItemEvent.d.ts +1 -1
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/api/types/SiteDataCollectionType.d.ts +1 -1
- package/api/types/SiteMembership.d.ts +1 -0
- package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- package/api/types/SitePlanId.d.ts +1 -1
- package/api/types/SitePlanName.d.ts +1 -1
- package/api/types/SitePublish.d.ts +13 -0
- package/api/types/SitePublish.js +5 -0
- package/api/types/SitePublishPayload.d.ts +16 -0
- package/api/types/SitePublishPayload.js +5 -0
- package/api/types/SkuFieldData.d.ts +0 -4
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
- package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
- package/api/types/SkuValueList.d.ts +1 -1
- package/api/types/StaticFieldType.d.ts +1 -1
- package/api/types/StripeCardBrand.d.ts +1 -1
- package/api/types/TextNode.d.ts +2 -2
- package/api/types/TriggerType.d.ts +2 -1
- package/api/types/TriggerType.js +1 -0
- package/api/types/UpdatedOrder.d.ts +12 -0
- package/api/types/UpdatedOrder.js +5 -0
- package/api/types/User.d.ts +0 -1
- package/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/UserAccessGroupsItemType.d.ts +1 -1
- package/api/types/UserLimitReached.d.ts +1 -1
- package/api/types/UserStatus.d.ts +1 -1
- package/api/types/UsersNotEnabled.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItem.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +5 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +5 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceInvitation.d.ts +1 -0
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/index.d.ts +47 -3
- package/api/types/index.js +47 -3
- package/core/auth/BearerToken.d.ts +1 -1
- package/core/fetcher/APIResponse.d.ts +11 -1
- package/core/fetcher/Fetcher.d.ts +4 -3
- package/core/fetcher/Fetcher.js +35 -14
- package/core/fetcher/Headers.d.ts +2 -0
- package/core/fetcher/Headers.js +84 -0
- package/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/core/fetcher/HttpResponsePromise.js +103 -0
- package/core/fetcher/RawResponse.d.ts +29 -0
- package/core/fetcher/RawResponse.js +44 -0
- package/core/fetcher/Supplier.d.ts +1 -1
- package/core/fetcher/createRequestUrl.d.ts +1 -1
- package/core/fetcher/createRequestUrl.js +1 -2
- package/core/fetcher/getFetchFn.js +18 -9
- package/core/fetcher/getHeader.js +1 -2
- package/core/fetcher/getRequestBody.js +5 -5
- package/core/fetcher/getResponseBody.js +1 -2
- package/core/fetcher/index.d.ts +3 -0
- package/core/fetcher/index.js +7 -1
- package/core/fetcher/makeRequest.d.ts +1 -1
- package/core/fetcher/requestWithRetries.js +4 -5
- package/core/fetcher/signals.d.ts +0 -1
- package/core/fetcher/signals.js +2 -3
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/core/headers.d.ts +3 -0
- package/core/headers.js +29 -0
- package/core/index.d.ts +1 -1
- package/core/index.js +18 -8
- package/core/json.d.ts +15 -0
- package/core/json.js +24 -0
- package/core/runtime/runtime.d.ts +1 -1
- package/core/runtime/runtime.js +50 -41
- package/core/schemas/Schema.d.ts +7 -5
- package/core/schemas/Schema.js +2 -0
- package/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/core/schemas/builders/bigint/bigint.js +22 -19
- package/core/schemas/builders/date/date.js +1 -2
- package/core/schemas/builders/enum/enum.js +1 -2
- package/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/core/schemas/builders/lazy/lazy.js +3 -4
- package/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/core/schemas/builders/list/list.js +1 -2
- package/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/core/schemas/builders/object/object.d.ts +1 -1
- package/core/schemas/builders/object/object.js +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/core/schemas/builders/object/property.js +2 -3
- package/core/schemas/builders/object/types.d.ts +11 -11
- package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/core/schemas/builders/object-like/types.d.ts +1 -1
- package/core/schemas/builders/record/record.js +2 -4
- package/core/schemas/builders/record/types.d.ts +2 -2
- package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/core/schemas/builders/set/set.js +1 -2
- package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/core/schemas/builders/union/discriminant.js +1 -2
- package/core/schemas/builders/union/types.d.ts +6 -6
- package/core/schemas/builders/union/union.d.ts +1 -1
- package/core/schemas/builders/union/union.js +1 -2
- package/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/core/schemas/utils/entries.d.ts +1 -1
- package/core/schemas/utils/entries.js +1 -2
- package/core/schemas/utils/filterObject.d.ts +1 -1
- package/core/schemas/utils/filterObject.js +1 -2
- package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/core/schemas/utils/isPlainObject.js +1 -2
- package/core/schemas/utils/keys.d.ts +1 -1
- package/core/schemas/utils/keys.js +1 -2
- package/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/core/schemas/utils/partition.js +1 -2
- package/dist/Client.d.ts +22 -18
- package/dist/Client.js +44 -2
- package/dist/api/errors/BadRequestError.d.ts +2 -1
- package/dist/api/errors/BadRequestError.js +19 -8
- package/dist/api/errors/ConflictError.d.ts +2 -1
- package/dist/api/errors/ConflictError.js +19 -8
- package/dist/api/errors/ForbiddenError.d.ts +2 -1
- package/dist/api/errors/ForbiddenError.js +19 -8
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/InternalServerError.js +19 -8
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.js +19 -8
- package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.js +19 -8
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/errors/UnauthorizedError.js +19 -8
- package/dist/api/resources/accessGroups/client/Client.d.ts +15 -6
- package/dist/api/resources/accessGroups/client/Client.js +62 -31
- package/dist/api/resources/accessGroups/client/index.d.ts +1 -0
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +29 -13
- package/dist/api/resources/assets/client/Client.js +232 -137
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/dist/api/resources/assets/client/requests/AssetsListRequest.js +5 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +23 -13
- package/dist/api/resources/collections/client/Client.js +127 -79
- package/dist/api/resources/collections/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +20 -11
- package/dist/api/resources/collections/resources/fields/client/Client.js +98 -56
- package/dist/api/resources/collections/resources/fields/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/index.js +17 -7
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +174 -86
- package/dist/api/resources/collections/resources/items/client/Client.js +631 -330
- package/dist/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +47 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +47 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +13 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +13 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +25 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +25 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +6 -66
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDs.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
- package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.js +5 -0
- package/dist/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +7 -2
- package/dist/api/resources/collections/resources/items/types/index.js +7 -2
- package/dist/api/resources/components/client/Client.d.ts +39 -15
- package/dist/api/resources/components/client/Client.js +194 -105
- package/dist/api/resources/components/client/index.d.ts +1 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +8 -1
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +8 -1
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +11 -2
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +11 -2
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +9 -1
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +10 -5
- package/dist/api/resources/ecommerce/client/Client.js +51 -28
- package/dist/api/resources/forms/client/Client.d.ts +33 -14
- package/dist/api/resources/forms/client/Client.js +215 -137
- package/dist/api/resources/forms/client/index.d.ts +1 -0
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/inventory/client/Client.d.ts +18 -12
- package/dist/api/resources/inventory/client/Client.js +88 -55
- package/dist/api/resources/inventory/client/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
- package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.js +5 -0
- package/dist/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
- package/dist/api/resources/inventory/types/index.d.ts +1 -0
- package/dist/api/resources/inventory/types/index.js +1 -0
- package/dist/api/resources/orders/client/Client.d.ts +25 -11
- package/dist/api/resources/orders/client/Client.js +201 -124
- package/dist/api/resources/orders/client/index.d.ts +1 -0
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
- package/dist/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
- package/dist/api/resources/pages/client/Client.d.ts +43 -47
- package/dist/api/resources/pages/client/Client.js +185 -139
- package/dist/api/resources/pages/client/index.d.ts +1 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +43 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.js +5 -0
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
- package/dist/api/resources/pages/resources/index.js +17 -7
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +19 -10
- package/dist/api/resources/pages/resources/scripts/client/Client.js +96 -56
- package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
- package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.js +5 -0
- package/dist/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
- package/dist/api/resources/pages/types/PageMetadataWriteSeo.js +5 -0
- package/dist/api/resources/pages/types/index.d.ts +2 -0
- package/dist/api/resources/pages/types/index.js +2 -0
- package/dist/api/resources/products/client/Client.d.ts +36 -13
- package/dist/api/resources/products/client/Client.js +204 -120
- package/dist/api/resources/products/client/index.d.ts +1 -0
- package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
- package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
- package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
- package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
- package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/api/resources/scripts/client/Client.d.ts +14 -7
- package/dist/api/resources/scripts/client/Client.js +99 -56
- package/dist/api/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/Client.d.ts +43 -27
- package/dist/api/resources/sites/client/Client.js +228 -149
- package/dist/api/resources/sites/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +14 -6
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +53 -27
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +29 -10
- package/dist/api/resources/sites/resources/comments/client/Client.js +148 -73
- package/dist/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
- package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/sites/resources/index.js +17 -7
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +10 -5
- package/dist/api/resources/sites/resources/plans/client/Client.js +49 -26
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +16 -8
- package/dist/api/resources/sites/resources/redirects/client/Client.js +124 -73
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +16 -8
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +124 -71
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -11
- package/dist/api/resources/sites/resources/scripts/client/Client.js +126 -73
- package/dist/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +15 -8
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +60 -30
- package/dist/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/dist/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +12 -6
- package/dist/api/resources/token/client/Client.js +67 -36
- package/dist/api/resources/users/client/Client.d.ts +36 -18
- package/dist/api/resources/users/client/Client.js +173 -104
- package/dist/api/resources/users/client/index.d.ts +1 -0
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
- package/dist/api/resources/users/client/requests/index.d.ts +0 -1
- package/dist/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountAddedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +5 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
- package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +5 -0
- package/dist/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
- package/dist/api/resources/users/types/index.d.ts +9 -1
- package/dist/api/resources/users/types/index.js +9 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +18 -10
- package/dist/api/resources/webhooks/client/Client.js +117 -71
- package/dist/api/resources/workspaces/client/Client.d.ts +6 -12
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +16 -7
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +69 -32
- package/dist/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
- package/dist/api/resources/workspaces/resources/index.js +17 -7
- package/dist/api/types/Application.d.ts +10 -1
- package/dist/api/types/Asset.d.ts +2 -2
- package/dist/api/types/AssetVariant.d.ts +6 -6
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/BadRequestErrorBody.d.ts +1 -1
- package/dist/api/types/BulkCollectionItem.d.ts +1 -1
- package/dist/api/types/Collection.d.ts +2 -2
- package/dist/api/types/CollectionItemChanged.d.ts +12 -0
- package/dist/api/types/CollectionItemChanged.js +5 -0
- package/dist/api/types/CollectionItemCreated.d.ts +12 -0
- package/dist/api/types/CollectionItemCreated.js +5 -0
- package/dist/api/types/CollectionItemPublished.d.ts +9 -0
- package/dist/api/types/CollectionItemPublished.js +5 -0
- package/dist/api/types/CollectionItemRemoved.d.ts +10 -0
- package/dist/api/types/CollectionItemRemoved.js +5 -0
- package/dist/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/dist/api/types/CollectionItemRemovedPayload.js +5 -0
- package/dist/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/CollectionItemRemovedPayloadFieldData.js +5 -0
- package/dist/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/dist/api/types/CollectionItemUnpublished.js +5 -0
- package/dist/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/dist/api/types/CollectionItemUnpublishedPayload.js +5 -0
- package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.js +5 -0
- package/dist/api/types/Comment.d.ts +12 -0
- package/dist/api/types/Comment.js +5 -0
- package/dist/api/types/CommentPayload.d.ts +38 -0
- package/dist/api/types/CommentPayload.js +5 -0
- package/dist/api/types/CommentPayloadAuthor.d.ts +11 -0
- package/dist/api/types/CommentPayloadAuthor.js +5 -0
- package/dist/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
- package/dist/api/types/CommentPayloadMentionedUsersItem.js +5 -0
- package/dist/api/types/CommentReply.d.ts +2 -2
- package/dist/api/types/ComponentNode.d.ts +3 -3
- package/dist/api/types/ComponentPropertyType.d.ts +1 -1
- package/dist/api/types/Conflict.d.ts +1 -1
- package/dist/api/types/ConflictErrorBody.d.ts +1 -1
- package/dist/api/types/CustomCodeBlockType.d.ts +1 -1
- package/dist/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/Dom.d.ts +2 -0
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -1
- package/dist/api/types/ErrorCode.d.ts +1 -1
- package/dist/api/types/Field.d.ts +2 -0
- package/dist/api/types/FieldCreate.d.ts +1 -1
- package/dist/api/types/FieldType.d.ts +1 -1
- package/dist/api/types/FieldValidations.d.ts +10 -0
- package/dist/api/types/FieldValidations.js +5 -0
- package/dist/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
- package/dist/api/types/FieldValidationsAdditionalProperties.js +5 -0
- package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
- package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
- package/dist/api/types/ForbiddenErrorBody.d.ts +1 -1
- package/dist/api/types/FormField.d.ts +1 -1
- package/dist/api/types/FormFieldValueType.d.ts +1 -1
- package/dist/api/types/FormSubmissionTrigger.d.ts +13 -0
- package/dist/api/types/FormSubmissionTrigger.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
- package/dist/api/types/FormSubmissionTriggerPayload.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
- package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
- package/dist/api/types/ImageNode.d.ts +2 -2
- package/dist/api/types/InvalidDomain.d.ts +1 -1
- package/dist/api/types/InvalidScopes.d.ts +1 -1
- package/dist/api/types/InventoryItemInventoryType.d.ts +1 -1
- package/dist/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
- package/dist/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
- package/dist/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
- package/dist/api/types/ItemsListItemsRequestLastPublished.js +5 -0
- package/dist/api/types/NewOrder.d.ts +12 -0
- package/dist/api/types/NewOrder.js +5 -0
- package/dist/api/types/NoDomains.d.ts +1 -1
- package/dist/api/types/Node.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -1
- package/dist/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
- package/dist/api/types/OAuthScope.d.ts +1 -1
- package/dist/api/types/Order.d.ts +2 -2
- package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
- package/dist/api/types/OrderAddressType.d.ts +1 -1
- package/dist/api/types/OrderBillingAddress.d.ts +27 -0
- package/dist/api/types/OrderBillingAddress.js +5 -0
- package/dist/api/types/OrderBillingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressJapanType.js +10 -0
- package/dist/api/types/OrderBillingAddressType.d.ts +11 -0
- package/dist/api/types/OrderBillingAddressType.js +10 -0
- package/dist/api/types/OrderDisputeLastStatus.d.ts +1 -1
- package/dist/api/types/OrderShippingAddress.d.ts +27 -0
- package/dist/api/types/OrderShippingAddress.js +5 -0
- package/dist/api/types/OrderShippingAddressJapanType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressJapanType.js +10 -0
- package/dist/api/types/OrderShippingAddressType.d.ts +11 -0
- package/dist/api/types/OrderShippingAddressType.js +10 -0
- package/dist/api/types/OrderStatus.d.ts +1 -1
- package/dist/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
- package/dist/api/types/Page.d.ts +3 -1
- package/dist/api/types/PageCreatedWebhook.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhook.js +5 -0
- package/dist/api/types/PageCreatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageCreatedWebhookPayload.js +5 -0
- package/dist/api/types/PageDeletedWebhook.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhook.js +5 -0
- package/dist/api/types/PageDeletedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageDeletedWebhookPayload.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhook.js +5 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
- package/dist/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
- package/dist/api/types/Payload.d.ts +25 -0
- package/dist/api/types/Payload.js +5 -0
- package/dist/api/types/PayloadFieldData.d.ts +9 -0
- package/dist/api/types/PayloadFieldData.js +5 -0
- package/dist/api/types/ProductFieldData.d.ts +2 -2
- package/dist/api/types/ProductFieldDataEcProductType.d.ts +1 -1
- package/dist/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
- package/dist/api/types/PublishStatus.d.ts +1 -1
- package/dist/api/types/ReferenceFieldType.d.ts +1 -1
- package/dist/api/types/RegisteredScriptList.d.ts +1 -0
- package/dist/api/types/ScriptApplyLocation.d.ts +1 -1
- package/dist/api/types/Scripts.d.ts +1 -1
- package/{api/types/SelectNodeWrite.d.ts → dist/api/types/Select.d.ts} +1 -1
- package/dist/api/types/Select.js +5 -0
- package/dist/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
- package/dist/api/types/SingleLocaleCreatedPayload.js +5 -0
- package/dist/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/api/types/SiteDataCollectionType.d.ts +1 -1
- package/dist/api/types/SiteMembership.d.ts +1 -0
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- package/dist/api/types/SitePlanId.d.ts +1 -1
- package/dist/api/types/SitePlanName.d.ts +1 -1
- package/dist/api/types/SitePublish.d.ts +13 -0
- package/dist/api/types/SitePublish.js +5 -0
- package/dist/api/types/SitePublishPayload.d.ts +16 -0
- package/dist/api/types/SitePublishPayload.js +5 -0
- package/dist/api/types/SkuFieldData.d.ts +0 -4
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
- package/dist/api/types/SkuValueList.d.ts +1 -1
- package/dist/api/types/StaticFieldType.d.ts +1 -1
- package/dist/api/types/StripeCardBrand.d.ts +1 -1
- package/dist/api/types/TextNode.d.ts +2 -2
- package/dist/api/types/TriggerType.d.ts +2 -1
- package/dist/api/types/TriggerType.js +1 -0
- package/dist/api/types/UpdatedOrder.d.ts +12 -0
- package/dist/api/types/UpdatedOrder.js +5 -0
- package/dist/api/types/User.d.ts +0 -1
- package/dist/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/UserAccessGroupsItemType.d.ts +1 -1
- package/dist/api/types/UserLimitReached.d.ts +1 -1
- package/dist/api/types/UserStatus.d.ts +1 -1
- package/dist/api/types/UsersNotEnabled.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItem.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +5 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +5 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceInvitation.d.ts +1 -0
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/dist/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/index.d.ts +47 -3
- package/dist/api/types/index.js +47 -3
- package/dist/core/auth/BearerToken.d.ts +1 -1
- package/dist/core/fetcher/APIResponse.d.ts +11 -1
- package/dist/core/fetcher/Fetcher.d.ts +4 -3
- package/dist/core/fetcher/Fetcher.js +35 -14
- package/dist/core/fetcher/Headers.d.ts +2 -0
- package/dist/core/fetcher/Headers.js +84 -0
- package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
- package/dist/core/fetcher/HttpResponsePromise.js +103 -0
- package/dist/core/fetcher/RawResponse.d.ts +29 -0
- package/dist/core/fetcher/RawResponse.js +44 -0
- package/dist/core/fetcher/Supplier.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
- package/dist/core/fetcher/createRequestUrl.js +1 -2
- package/dist/core/fetcher/getFetchFn.js +18 -9
- package/dist/core/fetcher/getHeader.js +1 -2
- package/dist/core/fetcher/getRequestBody.js +5 -5
- package/dist/core/fetcher/getResponseBody.js +1 -2
- package/dist/core/fetcher/index.d.ts +3 -0
- package/dist/core/fetcher/index.js +7 -1
- package/dist/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/core/fetcher/requestWithRetries.js +4 -5
- package/dist/core/fetcher/signals.d.ts +0 -1
- package/dist/core/fetcher/signals.js +2 -3
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
- package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
- package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
- package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
- package/dist/core/headers.d.ts +3 -0
- package/dist/core/headers.js +29 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/core/index.js +18 -8
- package/dist/core/json.d.ts +15 -0
- package/dist/core/json.js +24 -0
- package/dist/core/runtime/runtime.d.ts +1 -1
- package/dist/core/runtime/runtime.js +50 -41
- package/dist/core/schemas/Schema.d.ts +7 -5
- package/dist/core/schemas/Schema.js +2 -0
- package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
- package/dist/core/schemas/builders/bigint/bigint.js +22 -19
- package/dist/core/schemas/builders/date/date.js +1 -2
- package/dist/core/schemas/builders/enum/enum.js +1 -2
- package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
- package/dist/core/schemas/builders/lazy/lazy.js +3 -4
- package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
- package/dist/core/schemas/builders/list/list.js +1 -2
- package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
- package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
- package/dist/core/schemas/builders/object/object.d.ts +1 -1
- package/dist/core/schemas/builders/object/object.js +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
- package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
- package/dist/core/schemas/builders/object/property.js +2 -3
- package/dist/core/schemas/builders/object/types.d.ts +11 -11
- package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
- package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
- package/dist/core/schemas/builders/record/record.js +2 -4
- package/dist/core/schemas/builders/record/types.d.ts +2 -2
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
- package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
- package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
- package/dist/core/schemas/builders/set/set.js +1 -2
- package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
- package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
- package/dist/core/schemas/builders/union/discriminant.js +1 -2
- package/dist/core/schemas/builders/union/types.d.ts +6 -6
- package/dist/core/schemas/builders/union/union.d.ts +1 -1
- package/dist/core/schemas/builders/union/union.js +1 -2
- package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
- package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
- package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
- package/dist/core/schemas/utils/entries.d.ts +1 -1
- package/dist/core/schemas/utils/entries.js +1 -2
- package/dist/core/schemas/utils/filterObject.d.ts +1 -1
- package/dist/core/schemas/utils/filterObject.js +1 -2
- package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
- package/dist/core/schemas/utils/isPlainObject.js +1 -2
- package/dist/core/schemas/utils/keys.d.ts +1 -1
- package/dist/core/schemas/utils/keys.js +1 -2
- package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
- package/dist/core/schemas/utils/partition.js +1 -2
- package/dist/environments.d.ts +1 -5
- package/dist/environments.js +0 -2
- package/dist/errors/WebflowError.d.ts +4 -1
- package/dist/errors/WebflowError.js +6 -8
- package/dist/index.js +17 -7
- package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
- package/dist/serialization/resources/collections/resources/index.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
- 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/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
- package/{serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → dist/serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
- package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
- package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsCreateItemRequestBody.d.ts} +2 -2
- package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
- package/dist/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
- package/dist/serialization/resources/collections/resources/items/types/index.js +7 -2
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
- package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
- package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +2 -2
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +19 -9
- package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
- package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
- package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
- package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
- package/dist/serialization/resources/index.js +17 -7
- package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
- package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
- package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
- package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
- package/dist/serialization/resources/inventory/types/index.d.ts +1 -0
- package/dist/serialization/resources/inventory/types/index.js +1 -0
- package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
- package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
- package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
- package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
- package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
- package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
- package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/pages/client/requests/index.js +3 -1
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +2 -2
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +19 -9
- package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
- package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
- package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
- package/dist/serialization/resources/pages/types/index.d.ts +2 -0
- package/dist/serialization/resources/pages/types/index.js +2 -0
- package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
- package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
- package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
- package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
- package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
- package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
- package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
- package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/sites/resources/index.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
- package/dist/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
- package/dist/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
- package/dist/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
- package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/users/client/requests/index.js +1 -3
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
- package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
- package/dist/serialization/resources/users/types/UsersListRequestSort.js +17 -7
- package/dist/serialization/resources/users/types/index.d.ts +9 -1
- package/dist/serialization/resources/users/types/index.js +9 -1
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
- package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
- package/dist/serialization/resources/workspaces/resources/index.js +17 -7
- package/dist/serialization/types/AccessGroup.js +17 -7
- package/dist/serialization/types/AccessGroupList.js +17 -7
- package/dist/serialization/types/Application.d.ts +7 -2
- package/dist/serialization/types/Application.js +23 -8
- package/dist/serialization/types/Asset.d.ts +2 -2
- package/dist/serialization/types/Asset.js +19 -9
- package/dist/serialization/types/AssetFolder.js +17 -7
- package/dist/serialization/types/AssetFolderList.js +17 -7
- package/dist/serialization/types/AssetUpload.js +17 -7
- package/dist/serialization/types/AssetUploadUploadDetails.js +17 -7
- package/dist/serialization/types/AssetVariant.d.ts +6 -6
- package/dist/serialization/types/AssetVariant.js +23 -13
- package/dist/serialization/types/Assets.js +17 -7
- package/dist/serialization/types/Authorization.d.ts +1 -1
- package/dist/serialization/types/Authorization.js +17 -7
- package/dist/serialization/types/AuthorizationAuthorization.js +17 -7
- package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
- package/dist/serialization/types/AuthorizedUser.js +17 -7
- package/dist/serialization/types/BadRequestErrorBody.js +17 -7
- package/dist/serialization/types/BulkCollectionItem.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItem.js +18 -8
- package/dist/serialization/types/BulkCollectionItemFieldData.js +17 -7
- package/dist/serialization/types/Collection.d.ts +2 -2
- package/dist/serialization/types/Collection.js +19 -9
- package/dist/serialization/types/CollectionItem.js +17 -7
- package/dist/serialization/types/CollectionItemChanged.d.ts +14 -0
- package/dist/serialization/types/CollectionItemChanged.js +45 -0
- package/dist/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/dist/serialization/types/CollectionItemCreated.js +45 -0
- package/dist/serialization/types/CollectionItemFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemList.js +17 -7
- package/dist/serialization/types/CollectionItemListNoPagination.js +17 -7
- package/dist/serialization/types/CollectionItemListPagination.js +17 -7
- package/dist/serialization/types/CollectionItemPatchSingle.js +17 -7
- package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemPostSingle.js +17 -7
- package/dist/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
- package/dist/serialization/types/CollectionItemPublished.d.ts +14 -0
- package/dist/serialization/types/CollectionItemPublished.js +45 -0
- package/dist/serialization/types/CollectionItemRemoved.d.ts +14 -0
- package/dist/serialization/types/CollectionItemRemoved.js +45 -0
- package/dist/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
- package/dist/serialization/types/CollectionItemRemovedPayload.js +54 -0
- package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
- package/dist/serialization/types/CollectionItemUnpublished.d.ts +14 -0
- package/dist/serialization/types/CollectionItemUnpublished.js +45 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +17 -7
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
- package/dist/serialization/types/CollectionList.js +17 -7
- package/dist/serialization/types/CollectionListArrayItem.js +17 -7
- package/dist/serialization/types/Comment.d.ts +14 -0
- package/dist/serialization/types/Comment.js +45 -0
- package/dist/serialization/types/CommentPayload.d.ts +28 -0
- package/dist/serialization/types/CommentPayload.js +59 -0
- package/dist/serialization/types/CommentPayloadAuthor.d.ts +14 -0
- package/dist/serialization/types/CommentPayloadAuthor.js +45 -0
- package/dist/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
- package/dist/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
- package/dist/serialization/types/CommentReply.d.ts +2 -2
- package/dist/serialization/types/CommentReply.js +19 -9
- package/dist/serialization/types/CommentReplyAuthor.js +17 -7
- package/dist/serialization/types/CommentReplyList.js +17 -7
- package/dist/serialization/types/CommentReplyListPagination.js +17 -7
- package/dist/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
- package/dist/serialization/types/CommentThread.js +17 -7
- package/dist/serialization/types/CommentThreadAuthor.js +17 -7
- package/dist/serialization/types/CommentThreadList.js +17 -7
- package/dist/serialization/types/CommentThreadListPagination.js +17 -7
- package/dist/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
- package/dist/serialization/types/Component.js +17 -7
- package/dist/serialization/types/ComponentDom.js +17 -7
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +17 -7
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/dist/serialization/types/ComponentList.js +17 -7
- package/dist/serialization/types/ComponentNode.d.ts +3 -3
- package/dist/serialization/types/ComponentNode.js +20 -10
- package/dist/serialization/types/ComponentProperties.js +17 -7
- package/dist/serialization/types/ComponentProperty.js +17 -7
- package/dist/serialization/types/ComponentPropertyType.js +17 -7
- package/dist/serialization/types/Conflict.js +17 -7
- package/dist/serialization/types/ConflictErrorBody.js +17 -7
- package/dist/serialization/types/CustomCodeBlock.js +17 -7
- package/dist/serialization/types/CustomCodeBlockType.js +17 -7
- package/dist/serialization/types/CustomCodeHostedResponse.js +17 -7
- package/dist/serialization/types/CustomCodeInlineResponse.js +17 -7
- package/dist/serialization/types/CustomRole.js +17 -7
- package/dist/serialization/types/CustomRoleAuditLogItem.js +17 -7
- package/dist/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +18 -7
- package/dist/serialization/types/Domain.js +17 -7
- package/dist/serialization/types/Domains.js +17 -7
- package/dist/serialization/types/DuplicateUserEmail.js +17 -7
- package/dist/serialization/types/EcommerceSettings.js +17 -7
- package/dist/serialization/types/ErrorCode.js +17 -7
- package/dist/serialization/types/Error_.js +17 -7
- package/dist/serialization/types/Field.d.ts +2 -0
- package/dist/serialization/types/Field.js +19 -7
- package/dist/serialization/types/FieldCreate.js +17 -7
- package/dist/serialization/types/FieldType.js +17 -7
- package/dist/serialization/types/FieldValidations.d.ts +13 -0
- package/dist/serialization/types/FieldValidations.js +44 -0
- package/dist/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
- package/dist/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
- package/dist/serialization/types/ForbiddenErrorBody.js +17 -7
- package/dist/serialization/types/Form.js +17 -7
- package/dist/serialization/types/FormField.js +17 -7
- package/dist/serialization/types/FormFieldValue.js +17 -7
- package/dist/serialization/types/FormFieldValueType.js +17 -7
- package/dist/serialization/types/FormList.js +17 -7
- package/dist/serialization/types/FormResponseSettings.js +17 -7
- package/dist/serialization/types/FormSubmission.js +17 -7
- package/dist/serialization/types/FormSubmissionList.js +17 -7
- package/dist/serialization/types/FormSubmissionTrigger.d.ts +14 -0
- package/dist/serialization/types/FormSubmissionTrigger.js +45 -0
- package/dist/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
- package/dist/serialization/types/FormSubmissionTriggerPayload.js +51 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
- package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
- package/dist/serialization/types/ImageNode.d.ts +2 -2
- package/dist/serialization/types/ImageNode.js +19 -9
- package/dist/serialization/types/ImageNodeImage.js +17 -7
- package/dist/serialization/types/InvalidDomain.js +17 -7
- package/dist/serialization/types/InvalidScopes.js +17 -7
- package/dist/serialization/types/InventoryItem.js +17 -7
- package/dist/serialization/types/InventoryItemInventoryType.js +17 -7
- package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
- package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
- package/dist/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
- package/dist/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
- package/dist/serialization/types/ListCustomCodeBlocks.js +17 -7
- package/dist/serialization/types/Locale.js +17 -7
- package/dist/serialization/types/Locales.js +17 -7
- package/dist/serialization/types/Metadata.js +17 -7
- package/dist/serialization/types/MetadataOptionsItem.js +17 -7
- package/dist/serialization/types/NewOrder.d.ts +14 -0
- package/dist/serialization/types/NewOrder.js +45 -0
- package/dist/serialization/types/NoDomains.js +17 -7
- package/dist/serialization/types/Node.js +17 -7
- package/dist/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/dist/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/dist/serialization/types/OptionField.js +17 -7
- package/dist/serialization/types/Order.d.ts +4 -2
- package/dist/serialization/types/Order.js +21 -9
- package/dist/serialization/types/OrderAddress.js +17 -7
- package/dist/serialization/types/OrderAddressJapanType.js +17 -7
- package/dist/serialization/types/OrderAddressType.js +17 -7
- package/dist/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderBillingAddress.js +53 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderBillingAddressType.js +41 -0
- package/dist/serialization/types/OrderCustomerInfo.js +17 -7
- package/dist/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/dist/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/dist/serialization/types/OrderList.js +17 -7
- package/dist/serialization/types/OrderMetadata.js +17 -7
- package/dist/serialization/types/OrderPrice.js +17 -7
- package/dist/serialization/types/OrderPurchasedItem.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/dist/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/dist/serialization/types/OrderShippingAddress.js +53 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/dist/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/dist/serialization/types/OrderShippingAddressType.js +41 -0
- package/dist/serialization/types/OrderStatus.js +17 -7
- package/dist/serialization/types/OrderTotals.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/dist/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +18 -7
- package/dist/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageCreatedWebhook.js +45 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageDeletedWebhook.js +45 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageList.js +17 -7
- package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/dist/serialization/types/PageOpenGraph.js +17 -7
- package/dist/serialization/types/PageSeo.js +17 -7
- package/dist/serialization/types/Pagination.js +17 -7
- package/dist/serialization/types/Payload.d.ts +23 -0
- package/dist/serialization/types/Payload.js +54 -0
- package/dist/serialization/types/PayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/PayloadFieldData.js +46 -0
- package/dist/serialization/types/PaypalDetails.js +17 -7
- package/dist/serialization/types/Product.js +17 -7
- package/dist/serialization/types/ProductAndSkUs.js +17 -7
- package/dist/serialization/types/ProductAndSkUsList.js +17 -7
- package/dist/serialization/types/ProductFieldData.d.ts +1 -1
- package/dist/serialization/types/ProductFieldData.js +18 -8
- package/dist/serialization/types/ProductFieldDataEcProductType.js +17 -7
- package/dist/serialization/types/ProductFieldDataTaxCategory.js +17 -7
- package/dist/serialization/types/PublishStatus.js +17 -7
- package/dist/serialization/types/Redirect.js +17 -7
- package/dist/serialization/types/Redirects.js +17 -7
- package/dist/serialization/types/ReferenceField.js +17 -7
- package/dist/serialization/types/ReferenceFieldMetadata.js +17 -7
- package/dist/serialization/types/ReferenceFieldType.js +17 -7
- package/dist/serialization/types/RegisteredScriptList.d.ts +2 -0
- package/dist/serialization/types/RegisteredScriptList.js +19 -7
- package/dist/serialization/types/Robots.js +17 -7
- package/dist/serialization/types/RobotsRulesItem.js +17 -7
- package/dist/serialization/types/ScriptApply.js +17 -7
- package/dist/serialization/types/ScriptApplyList.js +17 -7
- package/dist/serialization/types/ScriptApplyLocation.js +17 -7
- package/dist/serialization/types/Scripts.js +17 -7
- package/dist/serialization/types/SearchButtonNode.js +17 -7
- package/dist/serialization/types/SearchButtonNodeWrite.js +17 -7
- package/{serialization/types/SelectNodeWrite.d.ts → dist/serialization/types/Select.d.ts} +2 -2
- package/{serialization/types/SelectNodeWrite.js → dist/serialization/types/Select.js} +19 -9
- package/dist/serialization/types/SelectNode.js +17 -7
- package/dist/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/dist/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/dist/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
- package/dist/serialization/types/SingleLocaleCreatedPayload.js +54 -0
- package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
- package/dist/serialization/types/Site.js +17 -7
- package/dist/serialization/types/SiteActivityLogItem.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemEvent.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
- package/dist/serialization/types/SiteActivityLogItemUser.js +17 -7
- package/dist/serialization/types/SiteActivityLogResponse.js +17 -7
- package/dist/serialization/types/SiteDataCollectionType.js +17 -7
- package/dist/serialization/types/SiteMembership.d.ts +2 -0
- package/dist/serialization/types/SiteMembership.js +19 -7
- package/dist/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +18 -8
- package/dist/serialization/types/SitePlan.js +17 -7
- package/dist/serialization/types/SitePlanId.js +17 -7
- package/dist/serialization/types/SitePlanName.js +17 -7
- package/dist/serialization/types/SitePublish.d.ts +14 -0
- package/dist/serialization/types/SitePublish.js +45 -0
- package/dist/serialization/types/SitePublishPayload.d.ts +15 -0
- package/dist/serialization/types/SitePublishPayload.js +46 -0
- package/dist/serialization/types/Sites.js +17 -7
- package/dist/serialization/types/Sku.js +17 -7
- package/dist/serialization/types/SkuFieldData.d.ts +0 -2
- package/dist/serialization/types/SkuFieldData.js +17 -9
- package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
- package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
- package/dist/serialization/types/SkuFieldDataPrice.js +17 -7
- package/dist/serialization/types/SkuPropertyList.js +17 -7
- package/dist/serialization/types/SkuPropertyListEnumItem.js +17 -7
- package/dist/serialization/types/SkuValueList.js +17 -7
- package/dist/serialization/types/StaticField.js +17 -7
- package/dist/serialization/types/StaticFieldType.js +17 -7
- package/dist/serialization/types/StripeCard.js +17 -7
- package/dist/serialization/types/StripeCardBrand.js +17 -7
- package/dist/serialization/types/StripeCardExpires.js +17 -7
- package/dist/serialization/types/StripeDetails.js +17 -7
- package/dist/serialization/types/SubmitButtonNode.js +17 -7
- package/dist/serialization/types/SubmitButtonNodeWrite.js +17 -7
- package/dist/serialization/types/Text.js +17 -7
- package/dist/serialization/types/TextInputNode.js +17 -7
- package/dist/serialization/types/TextInputNodeWrite.js +17 -7
- package/dist/serialization/types/TextNode.d.ts +2 -2
- package/dist/serialization/types/TextNode.js +19 -9
- package/dist/serialization/types/TextNodeText.js +17 -7
- package/dist/serialization/types/TextNodeWrite.js +17 -7
- package/dist/serialization/types/TriggerType.d.ts +1 -1
- package/dist/serialization/types/TriggerType.js +18 -7
- package/dist/serialization/types/UpdatedOrder.d.ts +14 -0
- package/dist/serialization/types/UpdatedOrder.js +45 -0
- package/dist/serialization/types/User.js +17 -7
- package/dist/serialization/types/UserAccess.js +17 -7
- package/dist/serialization/types/UserAccessAuditLogItem.js +17 -7
- package/dist/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/UserAccessGroupsItem.js +17 -7
- package/dist/serialization/types/UserAccessGroupsItemType.js +17 -7
- package/dist/serialization/types/UserData.js +17 -7
- package/dist/serialization/types/UserDataData.js +17 -7
- package/dist/serialization/types/UserLimitReached.js +17 -7
- package/dist/serialization/types/UserList.js +17 -7
- package/dist/serialization/types/UserStatus.js +17 -7
- package/dist/serialization/types/UsersNotEnabled.js +17 -7
- package/dist/serialization/types/Webhook.js +17 -7
- package/dist/serialization/types/WebhookFilter.js +17 -7
- package/dist/serialization/types/WebhookList.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +18 -8
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +18 -8
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogResponse.js +17 -7
- package/dist/serialization/types/WorkspaceInvitation.d.ts +2 -0
- package/dist/serialization/types/WorkspaceInvitation.js +19 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +18 -7
- package/dist/serialization/types/WorkspaceMembership.js +17 -7
- package/dist/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
- package/dist/serialization/types/index.d.ts +47 -3
- package/dist/serialization/types/index.js +47 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsClient.d.ts +24 -0
- package/dist/wrapper/AssetsClient.js +42 -0
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/dist/wrapper/CollectionsClient.d.ts +11 -0
- package/dist/wrapper/CollectionsClient.js +18 -0
- package/dist/wrapper/ItemsClient.d.ts +167 -0
- package/dist/wrapper/ItemsClient.js +630 -0
- package/dist/wrapper/PagesClient.d.ts +49 -0
- package/dist/wrapper/PagesClient.js +214 -0
- package/dist/wrapper/WebflowClient.d.ts +6 -0
- package/dist/wrapper/WebflowClient.js +29 -9
- package/dist/wrapper/WebhooksClient.d.ts +0 -1
- package/dist/wrapper/WebhooksClient.js +2 -5
- package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
- package/dist/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
- package/dist/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
- package/{api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → dist/wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
- package/dist/wrapper/schemas/PageMetadataWrite.js +2 -0
- package/dist/wrapper/schemas/index.d.ts +5 -0
- package/dist/wrapper/schemas/index.js +21 -0
- package/environments.d.ts +1 -5
- package/environments.js +0 -2
- package/errors/WebflowError.d.ts +4 -1
- package/errors/WebflowError.js +6 -8
- package/index.js +17 -7
- package/jest.config.mjs +9 -0
- package/package.json +25 -20
- package/reference.md +259 -131
- package/scripts/rename-to-esm-files.js +123 -0
- package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
- package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
- package/serialization/resources/collections/resources/index.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
- 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/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
- package/{dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
- package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
- package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsCreateItemRequestBody.d.ts} +2 -2
- package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
- package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
- package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
- package/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
- package/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
- package/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
- package/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
- package/serialization/resources/collections/resources/items/types/index.js +7 -2
- package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
- package/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
- package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +2 -2
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +19 -9
- package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
- package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
- package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
- package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
- package/serialization/resources/index.js +17 -7
- package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
- package/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
- package/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
- package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
- package/serialization/resources/inventory/types/index.d.ts +1 -0
- package/serialization/resources/inventory/types/index.js +1 -0
- package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
- package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
- package/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
- package/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
- package/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
- package/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
- package/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
- package/serialization/resources/pages/client/requests/index.d.ts +1 -0
- package/serialization/resources/pages/client/requests/index.js +3 -1
- package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +2 -2
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +19 -9
- package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
- package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
- package/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
- package/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
- package/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
- package/serialization/resources/pages/types/index.d.ts +2 -0
- package/serialization/resources/pages/types/index.js +2 -0
- package/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
- package/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
- package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
- package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
- package/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
- package/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
- package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
- package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
- package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
- package/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
- package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
- package/serialization/resources/sites/resources/index.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
- package/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
- package/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
- package/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
- package/serialization/resources/users/client/requests/index.d.ts +0 -1
- package/serialization/resources/users/client/requests/index.js +1 -3
- package/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
- package/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
- package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
- package/serialization/resources/users/types/UsersListRequestSort.js +17 -7
- package/serialization/resources/users/types/index.d.ts +9 -1
- package/serialization/resources/users/types/index.js +9 -1
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
- package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
- package/serialization/resources/workspaces/resources/index.js +17 -7
- package/serialization/types/AccessGroup.js +17 -7
- package/serialization/types/AccessGroupList.js +17 -7
- package/serialization/types/Application.d.ts +7 -2
- package/serialization/types/Application.js +23 -8
- package/serialization/types/Asset.d.ts +2 -2
- package/serialization/types/Asset.js +19 -9
- package/serialization/types/AssetFolder.js +17 -7
- package/serialization/types/AssetFolderList.js +17 -7
- package/serialization/types/AssetUpload.js +17 -7
- package/serialization/types/AssetUploadUploadDetails.js +17 -7
- package/serialization/types/AssetVariant.d.ts +6 -6
- package/serialization/types/AssetVariant.js +23 -13
- package/serialization/types/Assets.js +17 -7
- package/serialization/types/Authorization.d.ts +1 -1
- package/serialization/types/Authorization.js +17 -7
- package/serialization/types/AuthorizationAuthorization.js +17 -7
- package/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
- package/serialization/types/AuthorizedUser.js +17 -7
- package/serialization/types/BadRequestErrorBody.js +17 -7
- package/serialization/types/BulkCollectionItem.d.ts +1 -1
- package/serialization/types/BulkCollectionItem.js +18 -8
- package/serialization/types/BulkCollectionItemFieldData.js +17 -7
- package/serialization/types/Collection.d.ts +2 -2
- package/serialization/types/Collection.js +19 -9
- package/serialization/types/CollectionItem.js +17 -7
- package/serialization/types/CollectionItemChanged.d.ts +14 -0
- package/serialization/types/CollectionItemChanged.js +45 -0
- package/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/serialization/types/CollectionItemCreated.js +45 -0
- package/serialization/types/CollectionItemFieldData.js +17 -7
- package/serialization/types/CollectionItemList.js +17 -7
- package/serialization/types/CollectionItemListNoPagination.js +17 -7
- package/serialization/types/CollectionItemListPagination.js +17 -7
- package/serialization/types/CollectionItemPatchSingle.js +17 -7
- package/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
- package/serialization/types/CollectionItemPostSingle.js +17 -7
- package/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
- package/serialization/types/CollectionItemPublished.d.ts +14 -0
- package/serialization/types/CollectionItemPublished.js +45 -0
- package/serialization/types/CollectionItemRemoved.d.ts +14 -0
- package/serialization/types/CollectionItemRemoved.js +45 -0
- package/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
- package/serialization/types/CollectionItemRemovedPayload.js +54 -0
- package/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
- package/serialization/types/CollectionItemUnpublished.d.ts +14 -0
- package/serialization/types/CollectionItemUnpublished.js +45 -0
- package/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
- package/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
- package/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
- package/serialization/types/CollectionItemWithIdInput.js +17 -7
- package/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
- package/serialization/types/CollectionList.js +17 -7
- package/serialization/types/CollectionListArrayItem.js +17 -7
- package/serialization/types/Comment.d.ts +14 -0
- package/serialization/types/Comment.js +45 -0
- package/serialization/types/CommentPayload.d.ts +28 -0
- package/serialization/types/CommentPayload.js +59 -0
- package/serialization/types/CommentPayloadAuthor.d.ts +14 -0
- package/serialization/types/CommentPayloadAuthor.js +45 -0
- package/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
- package/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
- package/serialization/types/CommentReply.d.ts +2 -2
- package/serialization/types/CommentReply.js +19 -9
- package/serialization/types/CommentReplyAuthor.js +17 -7
- package/serialization/types/CommentReplyList.js +17 -7
- package/serialization/types/CommentReplyListPagination.js +17 -7
- package/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
- package/serialization/types/CommentThread.js +17 -7
- package/serialization/types/CommentThreadAuthor.js +17 -7
- package/serialization/types/CommentThreadList.js +17 -7
- package/serialization/types/CommentThreadListPagination.js +17 -7
- package/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
- package/serialization/types/Component.js +17 -7
- package/serialization/types/ComponentDom.js +17 -7
- package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +17 -7
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/serialization/types/ComponentList.js +17 -7
- package/serialization/types/ComponentNode.d.ts +3 -3
- package/serialization/types/ComponentNode.js +20 -10
- package/serialization/types/ComponentProperties.js +17 -7
- package/serialization/types/ComponentProperty.js +17 -7
- package/serialization/types/ComponentPropertyType.js +17 -7
- package/serialization/types/Conflict.js +17 -7
- package/serialization/types/ConflictErrorBody.js +17 -7
- package/serialization/types/CustomCodeBlock.js +17 -7
- package/serialization/types/CustomCodeBlockType.js +17 -7
- package/serialization/types/CustomCodeHostedResponse.js +17 -7
- package/serialization/types/CustomCodeInlineResponse.js +17 -7
- package/serialization/types/CustomRole.js +17 -7
- package/serialization/types/CustomRoleAuditLogItem.js +17 -7
- package/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +18 -7
- package/serialization/types/Domain.js +17 -7
- package/serialization/types/Domains.js +17 -7
- package/serialization/types/DuplicateUserEmail.js +17 -7
- package/serialization/types/EcommerceSettings.js +17 -7
- package/serialization/types/ErrorCode.js +17 -7
- package/serialization/types/Error_.js +17 -7
- package/serialization/types/Field.d.ts +2 -0
- package/serialization/types/Field.js +19 -7
- package/serialization/types/FieldCreate.js +17 -7
- package/serialization/types/FieldType.js +17 -7
- package/serialization/types/FieldValidations.d.ts +13 -0
- package/serialization/types/FieldValidations.js +44 -0
- package/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
- package/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
- package/serialization/types/ForbiddenErrorBody.js +17 -7
- package/serialization/types/Form.js +17 -7
- package/serialization/types/FormField.js +17 -7
- package/serialization/types/FormFieldValue.js +17 -7
- package/serialization/types/FormFieldValueType.js +17 -7
- package/serialization/types/FormList.js +17 -7
- package/serialization/types/FormResponseSettings.js +17 -7
- package/serialization/types/FormSubmission.js +17 -7
- package/serialization/types/FormSubmissionList.js +17 -7
- package/serialization/types/FormSubmissionTrigger.d.ts +14 -0
- package/serialization/types/FormSubmissionTrigger.js +45 -0
- package/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
- package/serialization/types/FormSubmissionTriggerPayload.js +51 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
- package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
- package/serialization/types/ImageNode.d.ts +2 -2
- package/serialization/types/ImageNode.js +19 -9
- package/serialization/types/ImageNodeImage.js +17 -7
- package/serialization/types/InvalidDomain.js +17 -7
- package/serialization/types/InvalidScopes.js +17 -7
- package/serialization/types/InventoryItem.js +17 -7
- package/serialization/types/InventoryItemInventoryType.js +17 -7
- package/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
- package/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
- package/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
- package/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
- package/serialization/types/ListCustomCodeBlocks.js +17 -7
- package/serialization/types/Locale.js +17 -7
- package/serialization/types/Locales.js +17 -7
- package/serialization/types/Metadata.js +17 -7
- package/serialization/types/MetadataOptionsItem.js +17 -7
- package/serialization/types/NewOrder.d.ts +14 -0
- package/serialization/types/NewOrder.js +45 -0
- package/serialization/types/NoDomains.js +17 -7
- package/serialization/types/Node.js +17 -7
- package/serialization/types/NotEnterprisePlanSite.js +17 -7
- package/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
- package/serialization/types/OptionField.js +17 -7
- package/serialization/types/Order.d.ts +4 -2
- package/serialization/types/Order.js +21 -9
- package/serialization/types/OrderAddress.js +17 -7
- package/serialization/types/OrderAddressJapanType.js +17 -7
- package/serialization/types/OrderAddressType.js +17 -7
- package/serialization/types/OrderBillingAddress.d.ts +22 -0
- package/serialization/types/OrderBillingAddress.js +53 -0
- package/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressJapanType.js +41 -0
- package/serialization/types/OrderBillingAddressType.d.ts +10 -0
- package/serialization/types/OrderBillingAddressType.js +41 -0
- package/serialization/types/OrderCustomerInfo.js +17 -7
- package/serialization/types/OrderDisputeLastStatus.js +17 -7
- package/serialization/types/OrderDownloadFilesItem.js +17 -7
- package/serialization/types/OrderList.js +17 -7
- package/serialization/types/OrderMetadata.js +17 -7
- package/serialization/types/OrderPrice.js +17 -7
- package/serialization/types/OrderPurchasedItem.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
- package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
- package/serialization/types/OrderShippingAddress.d.ts +22 -0
- package/serialization/types/OrderShippingAddress.js +53 -0
- package/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressJapanType.js +41 -0
- package/serialization/types/OrderShippingAddressType.d.ts +10 -0
- package/serialization/types/OrderShippingAddressType.js +41 -0
- package/serialization/types/OrderStatus.js +17 -7
- package/serialization/types/OrderTotals.js +17 -7
- package/serialization/types/OrderTotalsExtrasItem.js +17 -7
- package/serialization/types/OrderTotalsExtrasItemType.js +17 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +18 -7
- package/serialization/types/PageCreatedWebhook.d.ts +14 -0
- package/serialization/types/PageCreatedWebhook.js +45 -0
- package/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageCreatedWebhookPayload.js +47 -0
- package/serialization/types/PageDeletedWebhook.d.ts +14 -0
- package/serialization/types/PageDeletedWebhook.js +45 -0
- package/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageDeletedWebhookPayload.js +47 -0
- package/serialization/types/PageList.js +17 -7
- package/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
- package/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
- package/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
- package/serialization/types/PageOpenGraph.js +17 -7
- package/serialization/types/PageSeo.js +17 -7
- package/serialization/types/Pagination.js +17 -7
- package/serialization/types/Payload.d.ts +23 -0
- package/serialization/types/Payload.js +54 -0
- package/serialization/types/PayloadFieldData.d.ts +14 -0
- package/serialization/types/PayloadFieldData.js +46 -0
- package/serialization/types/PaypalDetails.js +17 -7
- package/serialization/types/Product.js +17 -7
- package/serialization/types/ProductAndSkUs.js +17 -7
- package/serialization/types/ProductAndSkUsList.js +17 -7
- package/serialization/types/ProductFieldData.d.ts +1 -1
- package/serialization/types/ProductFieldData.js +18 -8
- package/serialization/types/ProductFieldDataEcProductType.js +17 -7
- package/serialization/types/ProductFieldDataTaxCategory.js +17 -7
- package/serialization/types/PublishStatus.js +17 -7
- package/serialization/types/Redirect.js +17 -7
- package/serialization/types/Redirects.js +17 -7
- package/serialization/types/ReferenceField.js +17 -7
- package/serialization/types/ReferenceFieldMetadata.js +17 -7
- package/serialization/types/ReferenceFieldType.js +17 -7
- package/serialization/types/RegisteredScriptList.d.ts +2 -0
- package/serialization/types/RegisteredScriptList.js +19 -7
- package/serialization/types/Robots.js +17 -7
- package/serialization/types/RobotsRulesItem.js +17 -7
- package/serialization/types/ScriptApply.js +17 -7
- package/serialization/types/ScriptApplyList.js +17 -7
- package/serialization/types/ScriptApplyLocation.js +17 -7
- package/serialization/types/Scripts.js +17 -7
- package/serialization/types/SearchButtonNode.js +17 -7
- package/serialization/types/SearchButtonNodeWrite.js +17 -7
- package/{dist/serialization/types/SelectNodeWrite.d.ts → serialization/types/Select.d.ts} +2 -2
- package/{dist/serialization/types/SelectNodeWrite.js → serialization/types/Select.js} +19 -9
- package/serialization/types/SelectNode.js +17 -7
- package/serialization/types/SelectNodeChoicesItem.js +17 -7
- package/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
- package/serialization/types/SingleLocaleCreatedPayload.js +54 -0
- package/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
- package/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
- package/serialization/types/Site.js +17 -7
- package/serialization/types/SiteActivityLogItem.js +17 -7
- package/serialization/types/SiteActivityLogItemEvent.js +17 -7
- package/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
- package/serialization/types/SiteActivityLogItemUser.js +17 -7
- package/serialization/types/SiteActivityLogResponse.js +17 -7
- package/serialization/types/SiteDataCollectionType.js +17 -7
- package/serialization/types/SiteMembership.d.ts +2 -0
- package/serialization/types/SiteMembership.js +19 -7
- package/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +18 -8
- package/serialization/types/SitePlan.js +17 -7
- package/serialization/types/SitePlanId.js +17 -7
- package/serialization/types/SitePlanName.js +17 -7
- package/serialization/types/SitePublish.d.ts +14 -0
- package/serialization/types/SitePublish.js +45 -0
- package/serialization/types/SitePublishPayload.d.ts +15 -0
- package/serialization/types/SitePublishPayload.js +46 -0
- package/serialization/types/Sites.js +17 -7
- package/serialization/types/Sku.js +17 -7
- package/serialization/types/SkuFieldData.d.ts +0 -2
- package/serialization/types/SkuFieldData.js +17 -9
- package/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
- package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
- package/serialization/types/SkuFieldDataPrice.js +17 -7
- package/serialization/types/SkuPropertyList.js +17 -7
- package/serialization/types/SkuPropertyListEnumItem.js +17 -7
- package/serialization/types/SkuValueList.js +17 -7
- package/serialization/types/StaticField.js +17 -7
- package/serialization/types/StaticFieldType.js +17 -7
- package/serialization/types/StripeCard.js +17 -7
- package/serialization/types/StripeCardBrand.js +17 -7
- package/serialization/types/StripeCardExpires.js +17 -7
- package/serialization/types/StripeDetails.js +17 -7
- package/serialization/types/SubmitButtonNode.js +17 -7
- package/serialization/types/SubmitButtonNodeWrite.js +17 -7
- package/serialization/types/Text.js +17 -7
- package/serialization/types/TextInputNode.js +17 -7
- package/serialization/types/TextInputNodeWrite.js +17 -7
- package/serialization/types/TextNode.d.ts +2 -2
- package/serialization/types/TextNode.js +19 -9
- package/serialization/types/TextNodeText.js +17 -7
- package/serialization/types/TextNodeWrite.js +17 -7
- package/serialization/types/TriggerType.d.ts +1 -1
- package/serialization/types/TriggerType.js +18 -7
- package/serialization/types/UpdatedOrder.d.ts +14 -0
- package/serialization/types/UpdatedOrder.js +45 -0
- package/serialization/types/User.js +17 -7
- package/serialization/types/UserAccess.js +17 -7
- package/serialization/types/UserAccessAuditLogItem.js +17 -7
- package/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
- package/serialization/types/UserAccessGroupsItem.js +17 -7
- package/serialization/types/UserAccessGroupsItemType.js +17 -7
- package/serialization/types/UserData.js +17 -7
- package/serialization/types/UserDataData.js +17 -7
- package/serialization/types/UserLimitReached.js +17 -7
- package/serialization/types/UserList.js +17 -7
- package/serialization/types/UserStatus.js +17 -7
- package/serialization/types/UsersNotEnabled.js +17 -7
- package/serialization/types/Webhook.js +17 -7
- package/serialization/types/WebhookFilter.js +17 -7
- package/serialization/types/WebhookList.js +17 -7
- package/serialization/types/WorkspaceAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +18 -8
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +18 -8
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
- package/serialization/types/WorkspaceAuditLogResponse.js +17 -7
- package/serialization/types/WorkspaceInvitation.d.ts +2 -0
- package/serialization/types/WorkspaceInvitation.js +19 -7
- package/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +18 -7
- package/serialization/types/WorkspaceMembership.js +17 -7
- package/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
- package/serialization/types/index.d.ts +47 -3
- package/serialization/types/index.js +47 -3
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsClient.d.ts +24 -0
- package/wrapper/AssetsClient.js +42 -0
- package/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/wrapper/CollectionsClient.d.ts +11 -0
- package/wrapper/CollectionsClient.js +18 -0
- package/wrapper/ItemsClient.d.ts +167 -0
- package/wrapper/ItemsClient.js +630 -0
- package/wrapper/PagesClient.d.ts +49 -0
- package/wrapper/PagesClient.js +214 -0
- package/wrapper/WebflowClient.d.ts +6 -0
- package/wrapper/WebflowClient.js +29 -9
- package/wrapper/WebhooksClient.d.ts +0 -1
- package/wrapper/WebhooksClient.js +2 -5
- package/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
- package/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
- package/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
- package/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
- package/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
- package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
- package/wrapper/schemas/PageMetadataWrite.js +2 -0
- package/wrapper/schemas/index.d.ts +5 -0
- package/wrapper/schemas/index.js +21 -0
- package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
- package/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
- package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
- package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
- package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
- package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
- package/jest.config.js +0 -5
- package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
- package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
- package/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
- package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
- /package/api/resources/{collections/resources/items/client/requests/ItemsPublishItemRequest.js → assets/client/requests/AssetsListRequest.js} +0 -0
- /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemLiveRequest.js +0 -0
- /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemRequest.js +0 -0
- /package/api/resources/{pages/client/requests/UpdatePageSettingsRequest.js → collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.js} +0 -0
- /package/api/resources/{users/client/requests/UsersUpdateRequest.js → collections/resources/items/client/requests/ItemsUpdateItemRequest.js} +0 -0
- /package/api/resources/{users/types/UsersUpdateRequestData.js → collections/resources/items/types/ItemIDs.js} +0 -0
- /package/api/{types/SelectNodeWrite.js → resources/collections/resources/items/types/ItemIDsWithLocales.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js → api/resources/collections/resources/items/types/ItemsPublishItemRequest.js} +0 -0
- /package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js → api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js} +0 -0
- /package/{dist/api/resources/users/client/requests/UsersUpdateRequest.js → api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js} +0 -0
- /package/{dist/api/resources/users/types/UsersUpdateRequestData.js → api/resources/inventory/types/EcommInventoryChangedPayload.js} +0 -0
- /package/{dist/api/types/SelectNodeWrite.js → api/resources/pages/client/requests/PageMetadataWrite.js} +0 -0
|
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
}) : function(o, v) {
|
|
19
19
|
o["default"] = v;
|
|
20
20
|
});
|
|
21
|
-
var __importStar = (this && this.__importStar) || function (
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
};
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
28
38
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
29
39
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
30
40
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -42,11 +52,12 @@ exports.Scripts = void 0;
|
|
|
42
52
|
const environments = __importStar(require("../../../../../../environments"));
|
|
43
53
|
const core = __importStar(require("../../../../../../core"));
|
|
44
54
|
const Webflow = __importStar(require("../../../../../index"));
|
|
55
|
+
const headers_js_1 = require("../../../../../../core/headers.js");
|
|
45
56
|
const url_join_1 = __importDefault(require("url-join"));
|
|
46
57
|
const serializers = __importStar(require("../../../../../../serialization/index"));
|
|
47
58
|
const errors = __importStar(require("../../../../../../errors/index"));
|
|
48
59
|
class Scripts {
|
|
49
|
-
constructor(_options) {
|
|
60
|
+
constructor(_options = {}) {
|
|
50
61
|
this._options = _options;
|
|
51
62
|
}
|
|
52
63
|
/**
|
|
@@ -71,31 +82,36 @@ class Scripts {
|
|
|
71
82
|
* await client.sites.scripts.getCustomCode("580e63e98c9a982ac9b8b741")
|
|
72
83
|
*/
|
|
73
84
|
getCustomCode(siteId, requestOptions) {
|
|
74
|
-
|
|
85
|
+
return core.HttpResponsePromise.fromPromise(this.__getCustomCode(siteId, requestOptions));
|
|
86
|
+
}
|
|
87
|
+
__getCustomCode(siteId, requestOptions) {
|
|
75
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
var _a, _b, _c;
|
|
76
90
|
const _response = yield core.fetcher({
|
|
77
|
-
url: (0, url_join_1.default)((
|
|
91
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
92
|
+
.base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
78
93
|
method: "GET",
|
|
79
|
-
headers:
|
|
80
|
-
contentType: "application/json",
|
|
81
|
-
requestType: "json",
|
|
94
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
82
95
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
83
96
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
84
97
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
85
98
|
});
|
|
86
99
|
if (_response.ok) {
|
|
87
|
-
return
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
100
|
+
return {
|
|
101
|
+
data: serializers.ScriptApplyList.parseOrThrow(_response.body, {
|
|
102
|
+
unrecognizedObjectKeys: "passthrough",
|
|
103
|
+
allowUnrecognizedUnionMembers: true,
|
|
104
|
+
allowUnrecognizedEnumValues: true,
|
|
105
|
+
skipValidation: true,
|
|
106
|
+
breadcrumbsPrefix: ["response"],
|
|
107
|
+
}),
|
|
108
|
+
rawResponse: _response.rawResponse,
|
|
109
|
+
};
|
|
94
110
|
}
|
|
95
111
|
if (_response.error.reason === "status-code") {
|
|
96
112
|
switch (_response.error.statusCode) {
|
|
97
113
|
case 400:
|
|
98
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
114
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
99
115
|
case 401:
|
|
100
116
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
101
117
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -103,7 +119,7 @@ class Scripts {
|
|
|
103
119
|
allowUnrecognizedEnumValues: true,
|
|
104
120
|
skipValidation: true,
|
|
105
121
|
breadcrumbsPrefix: ["response"],
|
|
106
|
-
}));
|
|
122
|
+
}), _response.rawResponse);
|
|
107
123
|
case 404:
|
|
108
124
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
109
125
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -111,7 +127,7 @@ class Scripts {
|
|
|
111
127
|
allowUnrecognizedEnumValues: true,
|
|
112
128
|
skipValidation: true,
|
|
113
129
|
breadcrumbsPrefix: ["response"],
|
|
114
|
-
}));
|
|
130
|
+
}), _response.rawResponse);
|
|
115
131
|
case 429:
|
|
116
132
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
117
133
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -119,7 +135,7 @@ class Scripts {
|
|
|
119
135
|
allowUnrecognizedEnumValues: true,
|
|
120
136
|
skipValidation: true,
|
|
121
137
|
breadcrumbsPrefix: ["response"],
|
|
122
|
-
}));
|
|
138
|
+
}), _response.rawResponse);
|
|
123
139
|
case 500:
|
|
124
140
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
125
141
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -127,11 +143,12 @@ class Scripts {
|
|
|
127
143
|
allowUnrecognizedEnumValues: true,
|
|
128
144
|
skipValidation: true,
|
|
129
145
|
breadcrumbsPrefix: ["response"],
|
|
130
|
-
}));
|
|
146
|
+
}), _response.rawResponse);
|
|
131
147
|
default:
|
|
132
148
|
throw new errors.WebflowError({
|
|
133
149
|
statusCode: _response.error.statusCode,
|
|
134
150
|
body: _response.error.body,
|
|
151
|
+
rawResponse: _response.rawResponse,
|
|
135
152
|
});
|
|
136
153
|
}
|
|
137
154
|
}
|
|
@@ -140,18 +157,20 @@ class Scripts {
|
|
|
140
157
|
throw new errors.WebflowError({
|
|
141
158
|
statusCode: _response.error.statusCode,
|
|
142
159
|
body: _response.error.rawBody,
|
|
160
|
+
rawResponse: _response.rawResponse,
|
|
143
161
|
});
|
|
144
162
|
case "timeout":
|
|
145
163
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/custom_code.");
|
|
146
164
|
case "unknown":
|
|
147
165
|
throw new errors.WebflowError({
|
|
148
166
|
message: _response.error.errorMessage,
|
|
167
|
+
rawResponse: _response.rawResponse,
|
|
149
168
|
});
|
|
150
169
|
}
|
|
151
170
|
});
|
|
152
171
|
}
|
|
153
172
|
/**
|
|
154
|
-
* Apply registered scripts to a site.
|
|
173
|
+
* Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body.
|
|
155
174
|
*
|
|
156
175
|
* <Note title="Script Registration">
|
|
157
176
|
* To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
@@ -186,12 +205,16 @@ class Scripts {
|
|
|
186
205
|
* })
|
|
187
206
|
*/
|
|
188
207
|
upsertCustomCode(siteId, request, requestOptions) {
|
|
189
|
-
|
|
208
|
+
return core.HttpResponsePromise.fromPromise(this.__upsertCustomCode(siteId, request, requestOptions));
|
|
209
|
+
}
|
|
210
|
+
__upsertCustomCode(siteId, request, requestOptions) {
|
|
190
211
|
return __awaiter(this, void 0, void 0, function* () {
|
|
212
|
+
var _a, _b, _c;
|
|
191
213
|
const _response = yield core.fetcher({
|
|
192
|
-
url: (0, url_join_1.default)((
|
|
214
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
215
|
+
.base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
193
216
|
method: "PUT",
|
|
194
|
-
headers:
|
|
217
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
195
218
|
contentType: "application/json",
|
|
196
219
|
requestType: "json",
|
|
197
220
|
body: serializers.ScriptApplyList.jsonOrThrow(request, {
|
|
@@ -204,18 +227,21 @@ class Scripts {
|
|
|
204
227
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
205
228
|
});
|
|
206
229
|
if (_response.ok) {
|
|
207
|
-
return
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
230
|
+
return {
|
|
231
|
+
data: serializers.ScriptApplyList.parseOrThrow(_response.body, {
|
|
232
|
+
unrecognizedObjectKeys: "passthrough",
|
|
233
|
+
allowUnrecognizedUnionMembers: true,
|
|
234
|
+
allowUnrecognizedEnumValues: true,
|
|
235
|
+
skipValidation: true,
|
|
236
|
+
breadcrumbsPrefix: ["response"],
|
|
237
|
+
}),
|
|
238
|
+
rawResponse: _response.rawResponse,
|
|
239
|
+
};
|
|
214
240
|
}
|
|
215
241
|
if (_response.error.reason === "status-code") {
|
|
216
242
|
switch (_response.error.statusCode) {
|
|
217
243
|
case 400:
|
|
218
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
244
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
219
245
|
case 401:
|
|
220
246
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
221
247
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -223,7 +249,7 @@ class Scripts {
|
|
|
223
249
|
allowUnrecognizedEnumValues: true,
|
|
224
250
|
skipValidation: true,
|
|
225
251
|
breadcrumbsPrefix: ["response"],
|
|
226
|
-
}));
|
|
252
|
+
}), _response.rawResponse);
|
|
227
253
|
case 404:
|
|
228
254
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
229
255
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -231,7 +257,7 @@ class Scripts {
|
|
|
231
257
|
allowUnrecognizedEnumValues: true,
|
|
232
258
|
skipValidation: true,
|
|
233
259
|
breadcrumbsPrefix: ["response"],
|
|
234
|
-
}));
|
|
260
|
+
}), _response.rawResponse);
|
|
235
261
|
case 429:
|
|
236
262
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
237
263
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -239,7 +265,7 @@ class Scripts {
|
|
|
239
265
|
allowUnrecognizedEnumValues: true,
|
|
240
266
|
skipValidation: true,
|
|
241
267
|
breadcrumbsPrefix: ["response"],
|
|
242
|
-
}));
|
|
268
|
+
}), _response.rawResponse);
|
|
243
269
|
case 500:
|
|
244
270
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
245
271
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -247,11 +273,12 @@ class Scripts {
|
|
|
247
273
|
allowUnrecognizedEnumValues: true,
|
|
248
274
|
skipValidation: true,
|
|
249
275
|
breadcrumbsPrefix: ["response"],
|
|
250
|
-
}));
|
|
276
|
+
}), _response.rawResponse);
|
|
251
277
|
default:
|
|
252
278
|
throw new errors.WebflowError({
|
|
253
279
|
statusCode: _response.error.statusCode,
|
|
254
280
|
body: _response.error.body,
|
|
281
|
+
rawResponse: _response.rawResponse,
|
|
255
282
|
});
|
|
256
283
|
}
|
|
257
284
|
}
|
|
@@ -260,18 +287,24 @@ class Scripts {
|
|
|
260
287
|
throw new errors.WebflowError({
|
|
261
288
|
statusCode: _response.error.statusCode,
|
|
262
289
|
body: _response.error.rawBody,
|
|
290
|
+
rawResponse: _response.rawResponse,
|
|
263
291
|
});
|
|
264
292
|
case "timeout":
|
|
265
293
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling PUT /sites/{site_id}/custom_code.");
|
|
266
294
|
case "unknown":
|
|
267
295
|
throw new errors.WebflowError({
|
|
268
296
|
message: _response.error.errorMessage,
|
|
297
|
+
rawResponse: _response.rawResponse,
|
|
269
298
|
});
|
|
270
299
|
}
|
|
271
300
|
});
|
|
272
301
|
}
|
|
273
302
|
/**
|
|
274
|
-
* Remove scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
|
|
303
|
+
* Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
|
|
304
|
+
*
|
|
305
|
+
* To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) endpoint.
|
|
306
|
+
*
|
|
307
|
+
* <Note>Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app).</Note>
|
|
275
308
|
*
|
|
276
309
|
* Required scope | `custom_code:write`
|
|
277
310
|
*
|
|
@@ -288,25 +321,27 @@ class Scripts {
|
|
|
288
321
|
* await client.sites.scripts.deleteCustomCode("580e63e98c9a982ac9b8b741")
|
|
289
322
|
*/
|
|
290
323
|
deleteCustomCode(siteId, requestOptions) {
|
|
291
|
-
|
|
324
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteCustomCode(siteId, requestOptions));
|
|
325
|
+
}
|
|
326
|
+
__deleteCustomCode(siteId, requestOptions) {
|
|
292
327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
328
|
+
var _a, _b, _c;
|
|
293
329
|
const _response = yield core.fetcher({
|
|
294
|
-
url: (0, url_join_1.default)((
|
|
330
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
331
|
+
.base, `sites/${encodeURIComponent(siteId)}/custom_code`),
|
|
295
332
|
method: "DELETE",
|
|
296
|
-
headers:
|
|
297
|
-
contentType: "application/json",
|
|
298
|
-
requestType: "json",
|
|
333
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
299
334
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
300
335
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
301
336
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
302
337
|
});
|
|
303
338
|
if (_response.ok) {
|
|
304
|
-
return;
|
|
339
|
+
return { data: undefined, rawResponse: _response.rawResponse };
|
|
305
340
|
}
|
|
306
341
|
if (_response.error.reason === "status-code") {
|
|
307
342
|
switch (_response.error.statusCode) {
|
|
308
343
|
case 400:
|
|
309
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
344
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
310
345
|
case 401:
|
|
311
346
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
312
347
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -314,7 +349,7 @@ class Scripts {
|
|
|
314
349
|
allowUnrecognizedEnumValues: true,
|
|
315
350
|
skipValidation: true,
|
|
316
351
|
breadcrumbsPrefix: ["response"],
|
|
317
|
-
}));
|
|
352
|
+
}), _response.rawResponse);
|
|
318
353
|
case 404:
|
|
319
354
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
320
355
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -322,7 +357,7 @@ class Scripts {
|
|
|
322
357
|
allowUnrecognizedEnumValues: true,
|
|
323
358
|
skipValidation: true,
|
|
324
359
|
breadcrumbsPrefix: ["response"],
|
|
325
|
-
}));
|
|
360
|
+
}), _response.rawResponse);
|
|
326
361
|
case 429:
|
|
327
362
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
328
363
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -330,7 +365,7 @@ class Scripts {
|
|
|
330
365
|
allowUnrecognizedEnumValues: true,
|
|
331
366
|
skipValidation: true,
|
|
332
367
|
breadcrumbsPrefix: ["response"],
|
|
333
|
-
}));
|
|
368
|
+
}), _response.rawResponse);
|
|
334
369
|
case 500:
|
|
335
370
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
336
371
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -338,11 +373,12 @@ class Scripts {
|
|
|
338
373
|
allowUnrecognizedEnumValues: true,
|
|
339
374
|
skipValidation: true,
|
|
340
375
|
breadcrumbsPrefix: ["response"],
|
|
341
|
-
}));
|
|
376
|
+
}), _response.rawResponse);
|
|
342
377
|
default:
|
|
343
378
|
throw new errors.WebflowError({
|
|
344
379
|
statusCode: _response.error.statusCode,
|
|
345
380
|
body: _response.error.body,
|
|
381
|
+
rawResponse: _response.rawResponse,
|
|
346
382
|
});
|
|
347
383
|
}
|
|
348
384
|
}
|
|
@@ -351,12 +387,14 @@ class Scripts {
|
|
|
351
387
|
throw new errors.WebflowError({
|
|
352
388
|
statusCode: _response.error.statusCode,
|
|
353
389
|
body: _response.error.rawBody,
|
|
390
|
+
rawResponse: _response.rawResponse,
|
|
354
391
|
});
|
|
355
392
|
case "timeout":
|
|
356
393
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /sites/{site_id}/custom_code.");
|
|
357
394
|
case "unknown":
|
|
358
395
|
throw new errors.WebflowError({
|
|
359
396
|
message: _response.error.errorMessage,
|
|
397
|
+
rawResponse: _response.rawResponse,
|
|
360
398
|
});
|
|
361
399
|
}
|
|
362
400
|
});
|
|
@@ -383,11 +421,17 @@ class Scripts {
|
|
|
383
421
|
* @throws {@link Webflow.InternalServerError}
|
|
384
422
|
*
|
|
385
423
|
* @example
|
|
386
|
-
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741"
|
|
424
|
+
* await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", {
|
|
425
|
+
* offset: 1.1,
|
|
426
|
+
* limit: 1.1
|
|
427
|
+
* })
|
|
387
428
|
*/
|
|
388
429
|
listCustomCodeBlocks(siteId, request = {}, requestOptions) {
|
|
389
|
-
|
|
390
|
-
|
|
430
|
+
return core.HttpResponsePromise.fromPromise(this.__listCustomCodeBlocks(siteId, request, requestOptions));
|
|
431
|
+
}
|
|
432
|
+
__listCustomCodeBlocks(siteId_1) {
|
|
433
|
+
return __awaiter(this, arguments, void 0, function* (siteId, request = {}, requestOptions) {
|
|
434
|
+
var _a, _b, _c;
|
|
391
435
|
const { offset, limit } = request;
|
|
392
436
|
const _queryParams = {};
|
|
393
437
|
if (offset != null) {
|
|
@@ -397,29 +441,31 @@ class Scripts {
|
|
|
397
441
|
_queryParams["limit"] = limit.toString();
|
|
398
442
|
}
|
|
399
443
|
const _response = yield core.fetcher({
|
|
400
|
-
url: (0, url_join_1.default)((
|
|
444
|
+
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
445
|
+
.base, `sites/${encodeURIComponent(siteId)}/custom_code/blocks`),
|
|
401
446
|
method: "GET",
|
|
402
|
-
headers:
|
|
403
|
-
contentType: "application/json",
|
|
447
|
+
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
404
448
|
queryParameters: _queryParams,
|
|
405
|
-
requestType: "json",
|
|
406
449
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
407
450
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
408
451
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
409
452
|
});
|
|
410
453
|
if (_response.ok) {
|
|
411
|
-
return
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
454
|
+
return {
|
|
455
|
+
data: serializers.ListCustomCodeBlocks.parseOrThrow(_response.body, {
|
|
456
|
+
unrecognizedObjectKeys: "passthrough",
|
|
457
|
+
allowUnrecognizedUnionMembers: true,
|
|
458
|
+
allowUnrecognizedEnumValues: true,
|
|
459
|
+
skipValidation: true,
|
|
460
|
+
breadcrumbsPrefix: ["response"],
|
|
461
|
+
}),
|
|
462
|
+
rawResponse: _response.rawResponse,
|
|
463
|
+
};
|
|
418
464
|
}
|
|
419
465
|
if (_response.error.reason === "status-code") {
|
|
420
466
|
switch (_response.error.statusCode) {
|
|
421
467
|
case 400:
|
|
422
|
-
throw new Webflow.BadRequestError(_response.error.body);
|
|
468
|
+
throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
|
|
423
469
|
case 401:
|
|
424
470
|
throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
425
471
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -427,7 +473,7 @@ class Scripts {
|
|
|
427
473
|
allowUnrecognizedEnumValues: true,
|
|
428
474
|
skipValidation: true,
|
|
429
475
|
breadcrumbsPrefix: ["response"],
|
|
430
|
-
}));
|
|
476
|
+
}), _response.rawResponse);
|
|
431
477
|
case 404:
|
|
432
478
|
throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
433
479
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -435,7 +481,7 @@ class Scripts {
|
|
|
435
481
|
allowUnrecognizedEnumValues: true,
|
|
436
482
|
skipValidation: true,
|
|
437
483
|
breadcrumbsPrefix: ["response"],
|
|
438
|
-
}));
|
|
484
|
+
}), _response.rawResponse);
|
|
439
485
|
case 429:
|
|
440
486
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
441
487
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -443,7 +489,7 @@ class Scripts {
|
|
|
443
489
|
allowUnrecognizedEnumValues: true,
|
|
444
490
|
skipValidation: true,
|
|
445
491
|
breadcrumbsPrefix: ["response"],
|
|
446
|
-
}));
|
|
492
|
+
}), _response.rawResponse);
|
|
447
493
|
case 500:
|
|
448
494
|
throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
449
495
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -451,11 +497,12 @@ class Scripts {
|
|
|
451
497
|
allowUnrecognizedEnumValues: true,
|
|
452
498
|
skipValidation: true,
|
|
453
499
|
breadcrumbsPrefix: ["response"],
|
|
454
|
-
}));
|
|
500
|
+
}), _response.rawResponse);
|
|
455
501
|
default:
|
|
456
502
|
throw new errors.WebflowError({
|
|
457
503
|
statusCode: _response.error.statusCode,
|
|
458
504
|
body: _response.error.body,
|
|
505
|
+
rawResponse: _response.rawResponse,
|
|
459
506
|
});
|
|
460
507
|
}
|
|
461
508
|
}
|
|
@@ -464,19 +511,25 @@ class Scripts {
|
|
|
464
511
|
throw new errors.WebflowError({
|
|
465
512
|
statusCode: _response.error.statusCode,
|
|
466
513
|
body: _response.error.rawBody,
|
|
514
|
+
rawResponse: _response.rawResponse,
|
|
467
515
|
});
|
|
468
516
|
case "timeout":
|
|
469
517
|
throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/custom_code/blocks.");
|
|
470
518
|
case "unknown":
|
|
471
519
|
throw new errors.WebflowError({
|
|
472
520
|
message: _response.error.errorMessage,
|
|
521
|
+
rawResponse: _response.rawResponse,
|
|
473
522
|
});
|
|
474
523
|
}
|
|
475
524
|
});
|
|
476
525
|
}
|
|
477
526
|
_getAuthorizationHeader() {
|
|
478
527
|
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
-
|
|
528
|
+
const bearer = yield core.Supplier.get(this._options.accessToken);
|
|
529
|
+
if (bearer != null) {
|
|
530
|
+
return `Bearer ${bearer}`;
|
|
531
|
+
}
|
|
532
|
+
return undefined;
|
|
480
533
|
});
|
|
481
534
|
}
|
|
482
535
|
}
|
|
@@ -7,7 +7,11 @@ import * as Webflow from "../../../../../index";
|
|
|
7
7
|
export declare namespace WellKnown {
|
|
8
8
|
interface Options {
|
|
9
9
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
10
|
-
|
|
10
|
+
/** Specify a custom URL to connect the client to. */
|
|
11
|
+
baseUrl?: core.Supplier<string>;
|
|
12
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
13
|
+
/** Additional headers to include in requests. */
|
|
14
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
11
15
|
}
|
|
12
16
|
interface RequestOptions {
|
|
13
17
|
/** The maximum time to wait for a response in seconds. */
|
|
@@ -17,12 +21,12 @@ export declare namespace WellKnown {
|
|
|
17
21
|
/** A hook to abort the request. */
|
|
18
22
|
abortSignal?: AbortSignal;
|
|
19
23
|
/** Additional headers to include in the request. */
|
|
20
|
-
headers?: Record<string, string>;
|
|
24
|
+
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
21
25
|
}
|
|
22
26
|
}
|
|
23
27
|
export declare class WellKnown {
|
|
24
28
|
protected readonly _options: WellKnown.Options;
|
|
25
|
-
constructor(_options
|
|
29
|
+
constructor(_options?: WellKnown.Options);
|
|
26
30
|
/**
|
|
27
31
|
* Upload a supported well-known file to a site.
|
|
28
32
|
*
|
|
@@ -51,11 +55,13 @@ export declare class WellKnown {
|
|
|
51
55
|
*
|
|
52
56
|
* @example
|
|
53
57
|
* await client.sites.wellKnown.put("580e63e98c9a982ac9b8b741", {
|
|
54
|
-
* fileName: "
|
|
55
|
-
* fileData: "
|
|
58
|
+
* fileName: "apple-app-site-association.txt",
|
|
59
|
+
* fileData: "{\n \"applinks\": {\n \"apps\": [],\n \"details\": [\n {\n \"appID\": \"ABCDE12345.com.example.app\",\n \"paths\": [ \"/*\", \"/some/path/*\" ]\n }\n ]\n }\n}\n",
|
|
60
|
+
* contentType: "application/json"
|
|
56
61
|
* })
|
|
57
62
|
*/
|
|
58
|
-
put(siteId: string, request: Webflow.sites.WellKnownFile, requestOptions?: WellKnown.RequestOptions):
|
|
63
|
+
put(siteId: string, request: Webflow.sites.WellKnownFile, requestOptions?: WellKnown.RequestOptions): core.HttpResponsePromise<void>;
|
|
64
|
+
private __put;
|
|
59
65
|
/**
|
|
60
66
|
* Delete existing well-known files from a site.
|
|
61
67
|
*
|
|
@@ -76,6 +82,7 @@ export declare class WellKnown {
|
|
|
76
82
|
* @example
|
|
77
83
|
* await client.sites.wellKnown.delete("580e63e98c9a982ac9b8b741")
|
|
78
84
|
*/
|
|
79
|
-
delete(siteId: string, request?: Webflow.sites.WellKnownDeleteRequest, requestOptions?: WellKnown.RequestOptions):
|
|
80
|
-
|
|
85
|
+
delete(siteId: string, request?: Webflow.sites.WellKnownDeleteRequest, requestOptions?: WellKnown.RequestOptions): core.HttpResponsePromise<void>;
|
|
86
|
+
private __delete;
|
|
87
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
81
88
|
}
|