webflow-api 3.1.3 → 3.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +980 -167
- package/.mock/definition/assets.yml +1 -1
- package/.mock/definition/collections/fields.yml +6 -6
- package/.mock/definition/collections/items.yml +286 -194
- package/.mock/definition/collections.yml +128 -10
- package/.mock/definition/comments.yml +40 -0
- package/.mock/definition/components.yml +27 -6
- package/.mock/definition/forms.yml +36 -0
- package/.mock/definition/inventory.yml +20 -0
- package/.mock/definition/items.yml +99 -0
- package/.mock/definition/orders.yml +382 -14
- package/.mock/definition/pages.yml +112 -28
- package/.mock/definition/products.yml +31 -21
- package/.mock/definition/scripts.yml +4 -0
- package/.mock/definition/sites/comments.yml +0 -2
- package/.mock/definition/sites/redirects.yml +8 -8
- package/.mock/definition/sites.yml +36 -9
- package/.mock/definition/users.yml +212 -28
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +21 -17
- package/Client.js +43 -1
- 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 +7 -2
- package/api/resources/accessGroups/client/Client.js +51 -28
- package/api/resources/accessGroups/client/index.d.ts +1 -0
- package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/api/resources/assets/client/Client.d.ts +21 -9
- package/api/resources/assets/client/Client.js +210 -132
- package/api/resources/assets/client/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +20 -10
- package/api/resources/collections/client/Client.js +121 -77
- package/api/resources/collections/client/index.d.ts +1 -0
- package/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
- package/api/resources/collections/resources/fields/client/Client.js +92 -54
- 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 +129 -77
- package/api/resources/collections/resources/items/client/Client.js +582 -321
- package/api/resources/collections/resources/items/client/index.d.ts +1 -0
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +45 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +24 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -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 +24 -9
- package/api/resources/components/client/Client.js +176 -100
- package/api/resources/components/client/index.d.ts +1 -0
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +7 -2
- package/api/resources/ecommerce/client/Client.js +45 -26
- package/api/resources/forms/client/Client.d.ts +19 -8
- package/api/resources/forms/client/Client.js +198 -132
- package/api/resources/forms/client/index.d.ts +1 -0
- package/api/resources/index.js +17 -7
- package/api/resources/inventory/client/Client.d.ts +9 -3
- package/api/resources/inventory/client/Client.js +72 -43
- 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 +17 -7
- package/api/resources/orders/client/Client.js +190 -121
- package/api/resources/orders/client/index.d.ts +1 -0
- 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 +29 -32
- package/api/resources/pages/client/Client.js +168 -125
- package/api/resources/pages/client/index.d.ts +1 -0
- package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
- 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 +11 -4
- package/api/resources/pages/resources/scripts/client/Client.js +85 -51
- 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/PageMetadataWriteSeo.d.ts +12 -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 +29 -9
- package/api/resources/products/client/Client.js +194 -117
- 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/ProductsUpdateSkuRequest.d.ts +5 -0
- package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
- package/api/resources/scripts/client/Client.d.ts +11 -4
- package/api/resources/scripts/client/Client.js +93 -54
- package/api/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/client/Client.d.ts +40 -24
- package/api/resources/sites/client/Client.js +222 -147
- 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 +7 -2
- package/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
- package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
- package/api/resources/sites/resources/comments/client/Client.js +127 -68
- package/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- 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 +7 -2
- package/api/resources/sites/resources/plans/client/Client.js +43 -24
- package/api/resources/sites/resources/redirects/client/Client.d.ts +17 -9
- package/api/resources/sites/resources/redirects/client/Client.js +122 -75
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
- package/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
- package/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
- package/api/resources/sites/resources/scripts/client/Client.js +110 -68
- package/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
- package/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
- package/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/api/resources/token/client/Client.d.ts +9 -3
- package/api/resources/token/client/Client.js +61 -34
- package/api/resources/users/client/Client.d.ts +28 -14
- package/api/resources/users/client/Client.js +162 -101
- 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/index.d.ts +0 -1
- package/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
- package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
- package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -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 +15 -7
- package/api/resources/webhooks/client/Client.js +111 -69
- package/api/resources/workspaces/client/Client.d.ts +5 -11
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
- package/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -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/CollectionItemChangedPayload.d.ts +5 -0
- package/api/types/CollectionItemCreated.d.ts +12 -0
- package/api/types/CollectionItemCreatedPayload.d.ts +5 -0
- package/api/types/CollectionItemRemoved.d.ts +10 -0
- package/api/types/CollectionItemRemovedPayload.d.ts +25 -0
- package/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
- package/api/types/CollectionItemUnpublished.d.ts +10 -0
- package/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
- package/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
- package/api/types/Comment.d.ts +12 -0
- package/api/types/CommentPayload.d.ts +38 -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/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → api/types/ComponentInstance.d.ts} +1 -1
- package/api/types/ComponentInstance.js +5 -0
- package/{dist/api/types/ComponentNode.d.ts → api/types/ComponentNodeDom.d.ts} +4 -4
- package/api/types/ComponentNodeDom.js +5 -0
- 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/{dist/api/types/ImageNode.d.ts → api/types/ImageNodeDom.d.ts} +3 -3
- package/api/types/ImageNodeDom.js +5 -0
- 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/LocalizedItem.d.ts +31 -0
- package/api/types/LocalizedItem.js +5 -0
- package/api/types/MultiLocaleChangedPayload.d.ts +22 -0
- package/api/types/MultiLocaleChangedPayload.js +5 -0
- package/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
- package/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
- package/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
- package/api/types/MultiLocaleCreatedPayload.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 +8 -8
- 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 -3
- 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/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/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
- package/api/types/SearchButton.js +5 -0
- package/{dist/api/types/SearchButtonNode.d.ts → api/types/SearchButtonNodeDom.d.ts} +1 -1
- package/api/types/SearchButtonNodeDom.js +5 -0
- package/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
- package/api/types/Select.js +5 -0
- package/{dist/api/types/SelectNode.d.ts → api/types/SelectNodeDom.d.ts} +1 -1
- package/api/types/SelectNodeDom.js +5 -0
- package/api/types/SingleLocaleChangedPayload.d.ts +22 -0
- package/api/types/SingleLocaleChangedPayload.js +5 -0
- package/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
- package/api/types/SingleLocaleChangedPayloadFieldData.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/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- 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/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/{dist/api/types/SubmitButtonNodeWrite.d.ts → api/types/SubmitButton.d.ts} +1 -1
- package/api/types/SubmitButton.js +5 -0
- package/{dist/api/types/SubmitButtonNode.d.ts → api/types/SubmitButtonNodeDom.d.ts} +1 -1
- package/api/types/SubmitButtonNodeDom.js +5 -0
- package/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
- package/api/types/TextInput.js +5 -0
- package/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
- package/api/types/TextInputNodeDom.js +5 -0
- package/api/types/TextNode.d.ts +4 -7
- package/api/types/TextNodeDom.d.ts +15 -0
- package/api/types/TextNodeDom.js +5 -0
- package/api/types/TriggerType.d.ts +1 -1
- 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/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/api/types/index.d.ts +62 -15
- package/api/types/index.js +62 -15
- 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 +21 -17
- package/dist/Client.js +43 -1
- 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 +7 -2
- package/dist/api/resources/accessGroups/client/Client.js +51 -28
- package/dist/api/resources/accessGroups/client/index.d.ts +1 -0
- package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +21 -9
- package/dist/api/resources/assets/client/Client.js +210 -132
- package/dist/api/resources/assets/client/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +20 -10
- package/dist/api/resources/collections/client/Client.js +121 -77
- package/dist/api/resources/collections/client/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
- package/dist/api/resources/collections/resources/fields/client/Client.js +92 -54
- 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 +129 -77
- package/dist/api/resources/collections/resources/items/client/Client.js +582 -321
- 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 +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -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 +45 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -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 +24 -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 +4 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -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 +24 -9
- package/dist/api/resources/components/client/Client.js +176 -100
- package/dist/api/resources/components/client/index.d.ts +1 -0
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +7 -2
- package/dist/api/resources/ecommerce/client/Client.js +45 -26
- package/dist/api/resources/forms/client/Client.d.ts +19 -8
- package/dist/api/resources/forms/client/Client.js +198 -132
- package/dist/api/resources/forms/client/index.d.ts +1 -0
- package/dist/api/resources/index.js +17 -7
- package/dist/api/resources/inventory/client/Client.d.ts +9 -3
- package/dist/api/resources/inventory/client/Client.js +72 -43
- 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 +17 -7
- package/dist/api/resources/orders/client/Client.js +190 -121
- package/dist/api/resources/orders/client/index.d.ts +1 -0
- 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 +29 -32
- package/dist/api/resources/pages/client/Client.js +168 -125
- package/dist/api/resources/pages/client/index.d.ts +1 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.js +5 -0
- 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 +11 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.js +85 -51
- 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 +29 -9
- package/dist/api/resources/products/client/Client.js +194 -117
- 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/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 +11 -4
- package/dist/api/resources/scripts/client/Client.js +93 -54
- package/dist/api/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/client/Client.d.ts +40 -24
- package/dist/api/resources/sites/client/Client.js +222 -147
- 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 +7 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
- package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
- package/dist/api/resources/sites/resources/comments/client/Client.js +127 -68
- package/dist/api/resources/sites/resources/comments/client/index.d.ts +1 -0
- 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 +7 -2
- package/dist/api/resources/sites/resources/plans/client/Client.js +43 -24
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +17 -9
- package/dist/api/resources/sites/resources/redirects/client/Client.js +122 -75
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
- package/dist/api/resources/sites/resources/scripts/client/Client.js +110 -68
- package/dist/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
- package/dist/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
- package/dist/api/resources/token/client/Client.d.ts +9 -3
- package/dist/api/resources/token/client/Client.js +61 -34
- package/dist/api/resources/users/client/Client.d.ts +28 -14
- package/dist/api/resources/users/client/Client.js +162 -101
- 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/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 +15 -7
- package/dist/api/resources/webhooks/client/Client.js +111 -69
- package/dist/api/resources/workspaces/client/Client.d.ts +5 -11
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
- 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 +2 -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/CollectionItemChangedPayload.d.ts +5 -0
- package/dist/api/types/CollectionItemChangedPayload.js +5 -0
- package/dist/api/types/CollectionItemCreated.d.ts +12 -0
- package/dist/api/types/CollectionItemCreated.js +5 -0
- package/dist/api/types/CollectionItemCreatedPayload.d.ts +5 -0
- package/dist/api/types/CollectionItemCreatedPayload.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/{api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/api/types/ComponentInstance.d.ts} +1 -1
- package/dist/api/types/ComponentInstance.js +5 -0
- package/{api/types/ComponentNode.d.ts → dist/api/types/ComponentNodeDom.d.ts} +4 -4
- package/dist/api/types/ComponentNodeDom.js +5 -0
- 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/{api/types/ImageNode.d.ts → dist/api/types/ImageNodeDom.d.ts} +3 -3
- package/dist/api/types/ImageNodeDom.js +5 -0
- 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/LocalizedItem.d.ts +31 -0
- package/dist/api/types/LocalizedItem.js +5 -0
- package/dist/api/types/MultiLocaleChangedPayload.d.ts +22 -0
- package/dist/api/types/MultiLocaleChangedPayload.js +5 -0
- package/dist/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
- package/dist/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
- package/dist/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
- package/dist/api/types/MultiLocaleCreatedPayload.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 +8 -8
- 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 -3
- 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/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/dist/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
- package/dist/api/types/SearchButton.js +5 -0
- package/{api/types/SearchButtonNode.d.ts → dist/api/types/SearchButtonNodeDom.d.ts} +1 -1
- package/dist/api/types/SearchButtonNodeDom.js +5 -0
- package/dist/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
- package/dist/api/types/Select.js +5 -0
- package/{api/types/SelectNode.d.ts → dist/api/types/SelectNodeDom.d.ts} +1 -1
- package/dist/api/types/SelectNodeDom.js +5 -0
- package/dist/api/types/SingleLocaleChangedPayload.d.ts +22 -0
- package/dist/api/types/SingleLocaleChangedPayload.js +5 -0
- package/dist/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
- package/dist/api/types/SingleLocaleChangedPayloadFieldData.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/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- 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/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/{api/types/SubmitButtonNodeWrite.d.ts → dist/api/types/SubmitButton.d.ts} +1 -1
- package/dist/api/types/SubmitButton.js +5 -0
- package/{api/types/SubmitButtonNode.d.ts → dist/api/types/SubmitButtonNodeDom.d.ts} +1 -1
- package/dist/api/types/SubmitButtonNodeDom.js +5 -0
- package/dist/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
- package/dist/api/types/TextInput.js +5 -0
- package/dist/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
- package/dist/api/types/TextInputNodeDom.js +5 -0
- package/dist/api/types/TextNode.d.ts +4 -7
- package/dist/api/types/TextNodeDom.d.ts +15 -0
- package/dist/api/types/TextNodeDom.js +5 -0
- package/dist/api/types/TriggerType.d.ts +1 -1
- 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/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/api/types/index.d.ts +62 -15
- package/dist/api/types/index.js +62 -15
- 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 -1
- 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/{serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → dist/serialization/resources/collections/resources/items/types/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 +7 -7
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
- 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 +7 -7
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
- 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/CollectionItemChangedPayload.d.ts +12 -0
- package/dist/serialization/types/CollectionItemChangedPayload.js +43 -0
- package/dist/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/dist/serialization/types/CollectionItemCreated.js +45 -0
- package/dist/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
- package/dist/serialization/types/CollectionItemCreatedPayload.js +43 -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/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/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/serialization/types/ComponentInstance.d.ts} +2 -2
- package/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → dist/serialization/types/ComponentInstance.js} +19 -9
- package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/dist/serialization/types/ComponentList.js +17 -7
- package/dist/serialization/types/ComponentNodeDom.d.ts +15 -0
- package/dist/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
- 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/{serialization/types/ImageNode.d.ts → dist/serialization/types/ImageNodeDom.d.ts} +4 -4
- package/{serialization/types/ImageNode.js → dist/serialization/types/ImageNodeDom.js} +21 -11
- 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/LocalizedItem.d.ts +24 -0
- package/dist/serialization/types/LocalizedItem.js +55 -0
- package/dist/serialization/types/Metadata.js +17 -7
- package/dist/serialization/types/MetadataOptionsItem.js +17 -7
- package/dist/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
- package/dist/serialization/types/MultiLocaleChangedPayload.js +54 -0
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
- package/dist/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
- package/dist/serialization/types/MultiLocaleCreatedPayload.js +48 -0
- 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.d.ts +14 -14
- package/dist/serialization/types/Node.js +31 -21
- 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 -1
- package/dist/serialization/types/Page.js +18 -8
- 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/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/{serialization/types/SearchButtonNodeWrite.d.ts → dist/serialization/types/SearchButton.d.ts} +2 -2
- package/dist/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
- package/dist/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
- package/{serialization/types/SearchButtonNode.js → dist/serialization/types/SearchButtonNodeDom.js} +19 -9
- 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/SelectNodeChoicesItem.js +17 -7
- package/{serialization/types/SelectNode.d.ts → dist/serialization/types/SelectNodeDom.d.ts} +2 -2
- package/dist/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
- package/dist/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/dist/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
- package/dist/serialization/types/SingleLocaleChangedPayload.js +54 -0
- package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
- package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
- 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.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
- 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.js +17 -7
- 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/{serialization/types/SubmitButtonNodeWrite.d.ts → dist/serialization/types/SubmitButton.d.ts} +2 -2
- package/{serialization/types/SubmitButtonNodeWrite.js → dist/serialization/types/SubmitButton.js} +19 -9
- package/{serialization/types/SubmitButtonNode.d.ts → dist/serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
- package/dist/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
- package/dist/serialization/types/Text.js +17 -7
- package/{serialization/types/TextInputNodeWrite.d.ts → dist/serialization/types/TextInput.d.ts} +2 -2
- package/dist/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
- package/dist/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
- package/{serialization/types/TextInputNode.js → dist/serialization/types/TextInputNodeDom.js} +19 -9
- package/dist/serialization/types/TextNode.d.ts +2 -4
- package/dist/serialization/types/TextNode.js +19 -11
- package/dist/serialization/types/TextNodeDom.d.ts +15 -0
- package/dist/serialization/types/TextNodeDom.js +46 -0
- package/dist/serialization/types/TextNodeText.js +17 -7
- package/dist/serialization/types/TriggerType.js +17 -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/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
- 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.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -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 +62 -15
- package/dist/serialization/types/index.js +62 -15
- package/dist/version.d.ts +1 -1
- package/dist/version.js +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 -1
- package/errors/WebflowError.d.ts +4 -1
- package/errors/WebflowError.js +6 -8
- package/index.js +17 -7
- package/jest.config.mjs +13 -0
- package/package.json +24 -18
- package/reference.md +115 -91
- 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/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → serialization/resources/collections/resources/items/types/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 +7 -7
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
- 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 +7 -7
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
- 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/CollectionItemChangedPayload.d.ts +12 -0
- package/serialization/types/CollectionItemChangedPayload.js +43 -0
- package/serialization/types/CollectionItemCreated.d.ts +14 -0
- package/serialization/types/CollectionItemCreated.js +45 -0
- package/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
- package/serialization/types/CollectionItemCreatedPayload.js +43 -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/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/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → serialization/types/ComponentInstance.d.ts} +2 -2
- package/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → serialization/types/ComponentInstance.js} +19 -9
- package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
- package/serialization/types/ComponentList.js +17 -7
- package/serialization/types/ComponentNodeDom.d.ts +15 -0
- package/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
- 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/{dist/serialization/types/ImageNode.d.ts → serialization/types/ImageNodeDom.d.ts} +4 -4
- package/{dist/serialization/types/ImageNode.js → serialization/types/ImageNodeDom.js} +21 -11
- 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/LocalizedItem.d.ts +24 -0
- package/serialization/types/LocalizedItem.js +55 -0
- package/serialization/types/Metadata.js +17 -7
- package/serialization/types/MetadataOptionsItem.js +17 -7
- package/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
- package/serialization/types/MultiLocaleChangedPayload.js +54 -0
- package/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
- package/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
- package/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
- package/serialization/types/MultiLocaleCreatedPayload.js +48 -0
- 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.d.ts +14 -14
- package/serialization/types/Node.js +31 -21
- 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 -1
- package/serialization/types/Page.js +18 -8
- 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/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/{dist/serialization/types/SearchButtonNodeWrite.d.ts → serialization/types/SearchButton.d.ts} +2 -2
- package/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
- package/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
- package/{dist/serialization/types/SearchButtonNode.js → serialization/types/SearchButtonNodeDom.js} +19 -9
- 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/SelectNodeChoicesItem.js +17 -7
- package/{dist/serialization/types/SelectNode.d.ts → serialization/types/SelectNodeDom.d.ts} +2 -2
- package/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
- package/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
- package/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
- package/serialization/types/SingleLocaleChangedPayload.js +54 -0
- package/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
- package/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
- 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.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItem.js +17 -7
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
- 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.js +17 -7
- 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/{dist/serialization/types/SubmitButtonNodeWrite.d.ts → serialization/types/SubmitButton.d.ts} +2 -2
- package/{dist/serialization/types/SubmitButtonNodeWrite.js → serialization/types/SubmitButton.js} +19 -9
- package/{dist/serialization/types/SubmitButtonNode.d.ts → serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
- package/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
- package/serialization/types/Text.js +17 -7
- package/{dist/serialization/types/TextInputNodeWrite.d.ts → serialization/types/TextInput.d.ts} +2 -2
- package/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
- package/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
- package/{dist/serialization/types/TextInputNode.js → serialization/types/TextInputNodeDom.js} +19 -9
- package/serialization/types/TextNode.d.ts +2 -4
- package/serialization/types/TextNode.js +19 -11
- package/serialization/types/TextNodeDom.d.ts +15 -0
- package/serialization/types/TextNodeDom.js +46 -0
- package/serialization/types/TextNodeText.js +17 -7
- package/serialization/types/TriggerType.js +17 -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/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
- 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/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
- 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.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -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 +62 -15
- package/serialization/types/index.js +62 -15
- package/version.d.ts +1 -1
- package/version.js +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/api/types/TextNodeWrite.d.ts +0 -12
- 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/api/types/TextNodeWrite.d.ts +0 -12
- 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/dist/serialization/types/ComponentNode.d.ts +0 -15
- package/dist/serialization/types/TextNodeWrite.d.ts +0 -13
- package/dist/serialization/types/TextNodeWrite.js +0 -34
- 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/serialization/types/ComponentNode.d.ts +0 -15
- package/serialization/types/TextNodeWrite.d.ts +0 -13
- package/serialization/types/TextNodeWrite.js +0 -34
- /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/collections/resources/items/client/requests/{ItemsPublishItemRequest.js → ItemsUpdateItemLiveRequest.js} +0 -0
- /package/api/resources/{pages/client/requests/UpdatePageSettingsRequest.js → collections/resources/items/client/requests/ItemsUpdateItemRequest.js} +0 -0
- /package/api/resources/{users/client/requests/UsersUpdateRequest.js → collections/resources/items/types/ItemIDs.js} +0 -0
- /package/api/resources/{users/types/UsersUpdateRequestData.js → collections/resources/items/types/ItemIDsWithLocales.js} +0 -0
- /package/api/{types/ComponentInstanceNodePropertyOverridesWrite.js → resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +0 -0
- /package/api/{types/ComponentNode.js → resources/collections/resources/items/types/ItemsCreateItemRequestBody.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/client/requests → api/resources/collections/resources/items/types}/ItemsPublishItemRequest.js +0 -0
- /package/api/{types/ImageNode.js → resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js} +0 -0
- /package/api/{types/SearchButtonNode.js → resources/collections/resources/items/types/ItemsUpdateItemsResponse.js} +0 -0
- /package/api/{types/SearchButtonNodeWrite.js → resources/inventory/types/EcommInventoryChangedPayload.js} +0 -0
- /package/api/{types/SelectNode.js → resources/pages/client/requests/PageMetadataWrite.js} +0 -0
- /package/api/{types/SelectNodeWrite.js → resources/pages/types/PageMetadataWriteOpenGraph.js} +0 -0
- /package/api/{types/SubmitButtonNode.js → resources/pages/types/PageMetadataWriteSeo.js} +0 -0
- /package/api/{types/SubmitButtonNodeWrite.js → resources/users/types/UserAccountAddedPayload.js} +0 -0
- /package/api/{types/TextInputNode.js → resources/users/types/UserAccountAddedPayloadPayload.js} +0 -0
- /package/api/{types/TextInputNodeWrite.js → resources/users/types/UserAccountAddedPayloadPayloadData.js} +0 -0
- /package/api/{types/TextNodeWrite.js → resources/users/types/UserAccountDeletedPayload.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayload.js} +0 -0
- /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayloadData.js} +0 -0
- /package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js → api/resources/users/types/UserAccountUpdatedPayload.js} +0 -0
- /package/{dist/api/resources/users/client/requests/UsersUpdateRequest.js → api/resources/users/types/UserAccountUpdatedPayloadPayload.js} +0 -0
- /package/{dist/api/resources/users/types/UsersUpdateRequestData.js → api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js} +0 -0
- /package/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js → api/types/CollectionItemChanged.js} +0 -0
- /package/{dist/api/types/ComponentNode.js → api/types/CollectionItemChangedPayload.js} +0 -0
- /package/{dist/api/types/ImageNode.js → api/types/CollectionItemCreated.js} +0 -0
- /package/{dist/api/types/SearchButtonNode.js → api/types/CollectionItemCreatedPayload.js} +0 -0
- /package/{dist/api/types/SearchButtonNodeWrite.js → api/types/CollectionItemRemoved.js} +0 -0
- /package/{dist/api/types/SelectNode.js → api/types/CollectionItemRemovedPayload.js} +0 -0
- /package/{dist/api/types/SelectNodeWrite.js → api/types/CollectionItemRemovedPayloadFieldData.js} +0 -0
- /package/{dist/api/types/SubmitButtonNode.js → api/types/CollectionItemUnpublished.js} +0 -0
- /package/{dist/api/types/SubmitButtonNodeWrite.js → api/types/CollectionItemUnpublishedPayload.js} +0 -0
- /package/{dist/api/types/TextInputNode.js → api/types/CollectionItemUnpublishedPayloadFieldData.js} +0 -0
- /package/{dist/api/types/TextInputNodeWrite.js → api/types/Comment.js} +0 -0
- /package/{dist/api/types/TextNodeWrite.js → api/types/CommentPayload.js} +0 -0
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,7 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.getFetchFn =
|
|
45
|
+
exports.getFetchFn = getFetchFn;
|
|
36
46
|
const runtime_1 = require("../runtime");
|
|
37
47
|
/**
|
|
38
48
|
* Returns a fetch function based on the runtime
|
|
@@ -56,4 +66,3 @@ function getFetchFn() {
|
|
|
56
66
|
return (yield Promise.resolve().then(() => __importStar(require("node-fetch")))).default;
|
|
57
67
|
});
|
|
58
68
|
}
|
|
59
|
-
exports.getFetchFn = getFetchFn;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getHeader =
|
|
3
|
+
exports.getHeader = getHeader;
|
|
4
4
|
function getHeader(headers, header) {
|
|
5
5
|
for (const [headerKey, headerValue] of Object.entries(headers)) {
|
|
6
6
|
if (headerKey.toLowerCase() === header.toLowerCase()) {
|
|
@@ -9,4 +9,3 @@ function getHeader(headers, header) {
|
|
|
9
9
|
}
|
|
10
10
|
return undefined;
|
|
11
11
|
}
|
|
12
|
-
exports.getHeader = getHeader;
|
|
@@ -9,15 +9,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getRequestBody =
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
exports.getRequestBody = getRequestBody;
|
|
13
|
+
const json_1 = require("../json");
|
|
14
|
+
function getRequestBody(_a) {
|
|
15
|
+
return __awaiter(this, arguments, void 0, function* ({ body, type }) {
|
|
15
16
|
if (type.includes("json")) {
|
|
16
|
-
return
|
|
17
|
+
return (0, json_1.toJson)(body);
|
|
17
18
|
}
|
|
18
19
|
else {
|
|
19
20
|
return body;
|
|
20
21
|
}
|
|
21
22
|
});
|
|
22
23
|
}
|
|
23
|
-
exports.getRequestBody = getRequestBody;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.getResponseBody =
|
|
12
|
+
exports.getResponseBody = getResponseBody;
|
|
13
13
|
const chooseStreamWrapper_1 = require("./stream-wrappers/chooseStreamWrapper");
|
|
14
14
|
function getResponseBody(response, responseType) {
|
|
15
15
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -52,4 +52,3 @@ function getResponseBody(response, responseType) {
|
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
exports.getResponseBody = getResponseBody;
|
|
@@ -3,3 +3,6 @@ export { fetcher } from "./Fetcher";
|
|
|
3
3
|
export type { Fetcher, FetchFunction } from "./Fetcher";
|
|
4
4
|
export { getHeader } from "./getHeader";
|
|
5
5
|
export { Supplier } from "./Supplier";
|
|
6
|
+
export { abortRawResponse, toRawResponse, unknownRawResponse } from "./RawResponse";
|
|
7
|
+
export type { RawResponse, WithRawResponse } from "./RawResponse";
|
|
8
|
+
export { HttpResponsePromise } from "./HttpResponsePromise";
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Supplier = exports.getHeader = exports.fetcher = void 0;
|
|
3
|
+
exports.HttpResponsePromise = exports.unknownRawResponse = exports.toRawResponse = exports.abortRawResponse = exports.Supplier = exports.getHeader = exports.fetcher = void 0;
|
|
4
4
|
var Fetcher_1 = require("./Fetcher");
|
|
5
5
|
Object.defineProperty(exports, "fetcher", { enumerable: true, get: function () { return Fetcher_1.fetcher; } });
|
|
6
6
|
var getHeader_1 = require("./getHeader");
|
|
7
7
|
Object.defineProperty(exports, "getHeader", { enumerable: true, get: function () { return getHeader_1.getHeader; } });
|
|
8
8
|
var Supplier_1 = require("./Supplier");
|
|
9
9
|
Object.defineProperty(exports, "Supplier", { enumerable: true, get: function () { return Supplier_1.Supplier; } });
|
|
10
|
+
var RawResponse_1 = require("./RawResponse");
|
|
11
|
+
Object.defineProperty(exports, "abortRawResponse", { enumerable: true, get: function () { return RawResponse_1.abortRawResponse; } });
|
|
12
|
+
Object.defineProperty(exports, "toRawResponse", { enumerable: true, get: function () { return RawResponse_1.toRawResponse; } });
|
|
13
|
+
Object.defineProperty(exports, "unknownRawResponse", { enumerable: true, get: function () { return RawResponse_1.unknownRawResponse; } });
|
|
14
|
+
var HttpResponsePromise_1 = require("./HttpResponsePromise");
|
|
15
|
+
Object.defineProperty(exports, "HttpResponsePromise", { enumerable: true, get: function () { return HttpResponsePromise_1.HttpResponsePromise; } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number
|
|
1
|
+
export declare const makeRequest: (fetchFn: (url: string, init: RequestInit) => Promise<Response>, url: string, method: string, headers: Record<string, string>, requestBody: BodyInit | undefined, timeoutMs?: number, abortSignal?: AbortSignal, withCredentials?: boolean, duplex?: "half") => Promise<Response>;
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.requestWithRetries =
|
|
12
|
+
exports.requestWithRetries = requestWithRetries;
|
|
13
13
|
const INITIAL_RETRY_DELAY = 1000; // in milliseconds
|
|
14
14
|
const MAX_RETRY_DELAY = 60000; // in milliseconds
|
|
15
15
|
const DEFAULT_MAX_RETRIES = 2;
|
|
@@ -19,11 +19,11 @@ function addJitter(delay) {
|
|
|
19
19
|
const jitterMultiplier = 1 + (Math.random() * 2 - 1) * JITTER_FACTOR;
|
|
20
20
|
return delay * jitterMultiplier;
|
|
21
21
|
}
|
|
22
|
-
function requestWithRetries(
|
|
23
|
-
return __awaiter(this,
|
|
22
|
+
function requestWithRetries(requestFn_1) {
|
|
23
|
+
return __awaiter(this, arguments, void 0, function* (requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
24
24
|
let response = yield requestFn();
|
|
25
25
|
for (let i = 0; i < maxRetries; ++i) {
|
|
26
|
-
if ([408,
|
|
26
|
+
if ([408, 429].includes(response.status) || response.status >= 500) {
|
|
27
27
|
// Calculate base delay using exponential backoff (in milliseconds)
|
|
28
28
|
const baseDelay = Math.min(INITIAL_RETRY_DELAY * Math.pow(2, i), MAX_RETRY_DELAY);
|
|
29
29
|
// Add jitter to the delay
|
|
@@ -38,4 +38,3 @@ function requestWithRetries(requestFn, maxRetries = DEFAULT_MAX_RETRIES) {
|
|
|
38
38
|
return response;
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
exports.requestWithRetries = requestWithRetries;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getTimeoutSignal = getTimeoutSignal;
|
|
4
|
+
exports.anySignal = anySignal;
|
|
4
5
|
const TIMEOUT = "timeout";
|
|
5
6
|
function getTimeoutSignal(timeoutMs) {
|
|
6
7
|
const controller = new AbortController();
|
|
7
8
|
const abortId = setTimeout(() => controller.abort(TIMEOUT), timeoutMs);
|
|
8
9
|
return { signal: controller.signal, abortId };
|
|
9
10
|
}
|
|
10
|
-
exports.getTimeoutSignal = getTimeoutSignal;
|
|
11
11
|
/**
|
|
12
12
|
* Returns an abort signal that is getting aborted when
|
|
13
13
|
* at least one of the specified abort signals is aborted.
|
|
@@ -34,4 +34,3 @@ function anySignal(...args) {
|
|
|
34
34
|
}
|
|
35
35
|
return controller.signal;
|
|
36
36
|
}
|
|
37
|
-
exports.anySignal = anySignal;
|
|
@@ -76,21 +76,23 @@ class NodePre18StreamWrapper {
|
|
|
76
76
|
this.encoding = encoding;
|
|
77
77
|
}
|
|
78
78
|
text() {
|
|
79
|
-
var e_1, _a;
|
|
80
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
var _a, e_1, _b, _c;
|
|
81
81
|
const chunks = [];
|
|
82
82
|
const encoder = new TextEncoder();
|
|
83
83
|
this.readableStream.setEncoding((this.encoding || "utf-8"));
|
|
84
84
|
try {
|
|
85
|
-
for (var
|
|
86
|
-
|
|
85
|
+
for (var _d = true, _e = __asyncValues(this.readableStream), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
86
|
+
_c = _f.value;
|
|
87
|
+
_d = false;
|
|
88
|
+
const chunk = _c;
|
|
87
89
|
chunks.push(encoder.encode(chunk));
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
91
93
|
finally {
|
|
92
94
|
try {
|
|
93
|
-
if (
|
|
95
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
94
96
|
}
|
|
95
97
|
finally { if (e_1) throw e_1.error; }
|
|
96
98
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { StreamWrapper } from "./chooseStreamWrapper";
|
|
2
|
-
|
|
2
|
+
type EventCallback = (data?: any) => void;
|
|
3
3
|
export declare class UndiciStreamWrapper<ReadFormat extends Uint8Array | Uint16Array | Uint32Array> implements StreamWrapper<UndiciStreamWrapper<ReadFormat> | WritableStream<ReadFormat>, ReadFormat> {
|
|
4
4
|
private readableStream;
|
|
5
5
|
private reader;
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
36
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
37
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
@@ -32,7 +42,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
32
42
|
});
|
|
33
43
|
};
|
|
34
44
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.chooseStreamWrapper =
|
|
45
|
+
exports.chooseStreamWrapper = chooseStreamWrapper;
|
|
36
46
|
const runtime_1 = require("../../runtime");
|
|
37
47
|
function chooseStreamWrapper(responseBody) {
|
|
38
48
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,4 +57,3 @@ function chooseStreamWrapper(responseBody) {
|
|
|
47
57
|
}
|
|
48
58
|
});
|
|
49
59
|
}
|
|
50
|
-
exports.chooseStreamWrapper = chooseStreamWrapper;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as core from "./index.js";
|
|
2
|
+
export declare function mergeHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
3
|
+
export declare function mergeOnlyDefinedHeaders(...headersArray: (Record<string, string | core.Supplier<string | undefined> | undefined> | undefined)[]): Record<string, string | core.Supplier<string | undefined>>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergeHeaders = mergeHeaders;
|
|
4
|
+
exports.mergeOnlyDefinedHeaders = mergeOnlyDefinedHeaders;
|
|
5
|
+
function mergeHeaders(...headersArray) {
|
|
6
|
+
const result = {};
|
|
7
|
+
for (const [key, value] of headersArray
|
|
8
|
+
.filter((headers) => headers != null)
|
|
9
|
+
.flatMap((headers) => Object.entries(headers))) {
|
|
10
|
+
if (value != null) {
|
|
11
|
+
result[key] = value;
|
|
12
|
+
}
|
|
13
|
+
else if (key in result) {
|
|
14
|
+
delete result[key];
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
return result;
|
|
18
|
+
}
|
|
19
|
+
function mergeOnlyDefinedHeaders(...headersArray) {
|
|
20
|
+
const result = {};
|
|
21
|
+
for (const [key, value] of headersArray
|
|
22
|
+
.filter((headers) => headers != null)
|
|
23
|
+
.flatMap((headers) => Object.entries(headers))) {
|
|
24
|
+
if (value != null) {
|
|
25
|
+
result[key] = value;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return result;
|
|
29
|
+
}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.js
CHANGED
|
@@ -18,16 +18,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
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
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
39
|
exports.serialization = void 0;
|
|
30
40
|
__exportStar(require("./fetcher"), exports);
|
|
31
|
-
__exportStar(require("./auth"), exports);
|
|
32
41
|
__exportStar(require("./runtime"), exports);
|
|
42
|
+
__exportStar(require("./auth"), exports);
|
|
33
43
|
exports.serialization = __importStar(require("./schemas"));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize a value to JSON
|
|
3
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
4
|
+
* @param replacer A function that transforms the results.
|
|
5
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
6
|
+
* @returns JSON string
|
|
7
|
+
*/
|
|
8
|
+
export declare const toJson: (value: unknown, replacer?: (this: unknown, key: string, value: unknown) => unknown, space?: string | number) => string;
|
|
9
|
+
/**
|
|
10
|
+
* Parse JSON string to object, array, or other type
|
|
11
|
+
* @param text A valid JSON string.
|
|
12
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
13
|
+
* @returns Parsed object, array, or other type
|
|
14
|
+
*/
|
|
15
|
+
export declare function fromJson<T = unknown>(text: string, reviver?: (this: unknown, key: string, value: unknown) => unknown): T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toJson = void 0;
|
|
4
|
+
exports.fromJson = fromJson;
|
|
5
|
+
/**
|
|
6
|
+
* Serialize a value to JSON
|
|
7
|
+
* @param value A JavaScript value, usually an object or array, to be converted.
|
|
8
|
+
* @param replacer A function that transforms the results.
|
|
9
|
+
* @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
10
|
+
* @returns JSON string
|
|
11
|
+
*/
|
|
12
|
+
const toJson = (value, replacer, space) => {
|
|
13
|
+
return JSON.stringify(value, replacer, space);
|
|
14
|
+
};
|
|
15
|
+
exports.toJson = toJson;
|
|
16
|
+
/**
|
|
17
|
+
* Parse JSON string to object, array, or other type
|
|
18
|
+
* @param text A valid JSON string.
|
|
19
|
+
* @param reviver A function that transforms the results. This function is called for each member of the object. If a member contains nested objects, the nested objects are transformed before the parent object is.
|
|
20
|
+
* @returns Parsed object, array, or other type
|
|
21
|
+
*/
|
|
22
|
+
function fromJson(text, reviver) {
|
|
23
|
+
return JSON.parse(text, reviver);
|
|
24
|
+
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const RUNTIME: Runtime;
|
|
5
5
|
export interface Runtime {
|
|
6
|
-
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd";
|
|
6
|
+
type: "browser" | "web-worker" | "deno" | "bun" | "node" | "react-native" | "unknown" | "workerd" | "edge-runtime";
|
|
7
7
|
version?: string;
|
|
8
8
|
parsedVersion?: number;
|
|
9
9
|
}
|
|
@@ -1,80 +1,84 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var _a, _b, _c, _d, _e;
|
|
3
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
3
|
exports.RUNTIME = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
7
|
-
*/
|
|
8
|
-
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
9
|
-
/**
|
|
10
|
-
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
11
|
-
*/
|
|
12
|
-
const isWebWorker = typeof self === "object" &&
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
15
|
-
(((_a = self.constructor) === null || _a === void 0 ? void 0 : _a.name) === "DedicatedWorkerGlobalScope" ||
|
|
16
|
-
((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "ServiceWorkerGlobalScope" ||
|
|
17
|
-
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "SharedWorkerGlobalScope");
|
|
18
|
-
/**
|
|
19
|
-
* A constant that indicates whether the environment the code is running is Deno.
|
|
20
|
-
*/
|
|
21
|
-
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
22
|
-
/**
|
|
23
|
-
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
24
|
-
*/
|
|
25
|
-
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
26
|
-
/**
|
|
27
|
-
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
28
|
-
*/
|
|
29
|
-
const isNode = typeof process !== "undefined" &&
|
|
30
|
-
Boolean(process.version) &&
|
|
31
|
-
Boolean((_d = process.versions) === null || _d === void 0 ? void 0 : _d.node) &&
|
|
32
|
-
// Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
33
|
-
!isDeno &&
|
|
34
|
-
!isBun;
|
|
35
|
-
/**
|
|
36
|
-
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
37
|
-
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
38
|
-
*/
|
|
39
|
-
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
40
|
-
/**
|
|
41
|
-
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
42
|
-
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
43
|
-
*/
|
|
44
|
-
const isCloudflare = typeof globalThis !== "undefined" && ((_e = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _e === void 0 ? void 0 : _e.userAgent) === "Cloudflare-Workers";
|
|
45
4
|
/**
|
|
46
5
|
* A constant that indicates which environment and version the SDK is running in.
|
|
47
6
|
*/
|
|
48
7
|
exports.RUNTIME = evaluateRuntime();
|
|
49
8
|
function evaluateRuntime() {
|
|
9
|
+
var _a, _b, _c, _d, _e;
|
|
10
|
+
/**
|
|
11
|
+
* A constant that indicates whether the environment the code is running is a Web Browser.
|
|
12
|
+
*/
|
|
13
|
+
const isBrowser = typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
50
14
|
if (isBrowser) {
|
|
51
15
|
return {
|
|
52
16
|
type: "browser",
|
|
53
17
|
version: window.navigator.userAgent,
|
|
54
18
|
};
|
|
55
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* A constant that indicates whether the environment the code is running is Cloudflare.
|
|
22
|
+
* https://developers.cloudflare.com/workers/runtime-apis/web-standards/#navigatoruseragent
|
|
23
|
+
*/
|
|
24
|
+
const isCloudflare = typeof globalThis !== "undefined" && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) === "Cloudflare-Workers";
|
|
56
25
|
if (isCloudflare) {
|
|
57
26
|
return {
|
|
58
27
|
type: "workerd",
|
|
59
28
|
};
|
|
60
29
|
}
|
|
30
|
+
/**
|
|
31
|
+
* A constant that indicates whether the environment the code is running is Edge Runtime.
|
|
32
|
+
* https://vercel.com/docs/functions/runtimes/edge-runtime#check-if-you're-running-on-the-edge-runtime
|
|
33
|
+
*/
|
|
34
|
+
const isEdgeRuntime = typeof EdgeRuntime === "string";
|
|
35
|
+
if (isEdgeRuntime) {
|
|
36
|
+
return {
|
|
37
|
+
type: "edge-runtime",
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A constant that indicates whether the environment the code is running is a Web Worker.
|
|
42
|
+
*/
|
|
43
|
+
const isWebWorker = typeof self === "object" &&
|
|
44
|
+
typeof (self === null || self === void 0 ? void 0 : self.importScripts) === "function" &&
|
|
45
|
+
(((_b = self.constructor) === null || _b === void 0 ? void 0 : _b.name) === "DedicatedWorkerGlobalScope" ||
|
|
46
|
+
((_c = self.constructor) === null || _c === void 0 ? void 0 : _c.name) === "ServiceWorkerGlobalScope" ||
|
|
47
|
+
((_d = self.constructor) === null || _d === void 0 ? void 0 : _d.name) === "SharedWorkerGlobalScope");
|
|
61
48
|
if (isWebWorker) {
|
|
62
49
|
return {
|
|
63
50
|
type: "web-worker",
|
|
64
51
|
};
|
|
65
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* A constant that indicates whether the environment the code is running is Deno.
|
|
55
|
+
* FYI Deno spoofs process.versions.node, see https://deno.land/std@0.177.0/node/process.ts?s=versions
|
|
56
|
+
*/
|
|
57
|
+
const isDeno = typeof Deno !== "undefined" && typeof Deno.version !== "undefined" && typeof Deno.version.deno !== "undefined";
|
|
66
58
|
if (isDeno) {
|
|
67
59
|
return {
|
|
68
60
|
type: "deno",
|
|
69
61
|
version: Deno.version.deno,
|
|
70
62
|
};
|
|
71
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
* A constant that indicates whether the environment the code is running is Bun.sh.
|
|
66
|
+
*/
|
|
67
|
+
const isBun = typeof Bun !== "undefined" && typeof Bun.version !== "undefined";
|
|
72
68
|
if (isBun) {
|
|
73
69
|
return {
|
|
74
70
|
type: "bun",
|
|
75
71
|
version: Bun.version,
|
|
76
72
|
};
|
|
77
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* A constant that indicates whether the environment the code is running is Node.JS.
|
|
76
|
+
*/
|
|
77
|
+
const isNode = typeof process !== "undefined" &&
|
|
78
|
+
"version" in process &&
|
|
79
|
+
!!process.version &&
|
|
80
|
+
"versions" in process &&
|
|
81
|
+
!!((_e = process.versions) === null || _e === void 0 ? void 0 : _e.node);
|
|
78
82
|
if (isNode) {
|
|
79
83
|
return {
|
|
80
84
|
type: "node",
|
|
@@ -82,6 +86,11 @@ function evaluateRuntime() {
|
|
|
82
86
|
parsedVersion: Number(process.versions.node.split(".")[0]),
|
|
83
87
|
};
|
|
84
88
|
}
|
|
89
|
+
/**
|
|
90
|
+
* A constant that indicates whether the environment the code is running is in React-Native.
|
|
91
|
+
* https://github.com/facebook/react-native/blob/main/packages/react-native/Libraries/Core/setUpNavigator.js
|
|
92
|
+
*/
|
|
93
|
+
const isReactNative = typeof navigator !== "undefined" && (navigator === null || navigator === void 0 ? void 0 : navigator.product) === "ReactNative";
|
|
85
94
|
if (isReactNative) {
|
|
86
95
|
return {
|
|
87
96
|
type: "react-native",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SchemaUtils } from "./builders";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type Schema<Raw = unknown, Parsed = unknown> = BaseSchema<Raw, Parsed> & SchemaUtils<Raw, Parsed>;
|
|
3
|
+
export type inferRaw<S extends Schema> = S extends Schema<infer Raw, any> ? Raw : never;
|
|
4
|
+
export type inferParsed<S extends Schema> = S extends Schema<any, infer Parsed> ? Parsed : never;
|
|
5
5
|
export interface BaseSchema<Raw, Parsed> {
|
|
6
6
|
parse: (raw: unknown, opts?: SchemaOptions) => MaybeValid<Parsed>;
|
|
7
7
|
json: (parsed: unknown, opts?: SchemaOptions) => MaybeValid<Raw>;
|
|
@@ -24,10 +24,12 @@ export declare const SchemaType: {
|
|
|
24
24
|
readonly SET: "set";
|
|
25
25
|
readonly UNION: "union";
|
|
26
26
|
readonly UNDISCRIMINATED_UNION: "undiscriminatedUnion";
|
|
27
|
+
readonly NULLABLE: "nullable";
|
|
27
28
|
readonly OPTIONAL: "optional";
|
|
29
|
+
readonly OPTIONAL_NULLABLE: "optionalNullable";
|
|
28
30
|
};
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
+
export type SchemaType = (typeof SchemaType)[keyof typeof SchemaType];
|
|
32
|
+
export type MaybeValid<T> = Valid<T> | Invalid;
|
|
31
33
|
export interface Valid<T> {
|
|
32
34
|
ok: true;
|
|
33
35
|
value: T;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { Schema } from "../../Schema";
|
|
2
|
-
export declare function bigint(): Schema<
|
|
2
|
+
export declare function bigint(): Schema<bigint | number, bigint>;
|