webflow-api 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +112 -269
- package/.mock/definition/accessGroups.yml +7 -1
- package/.mock/definition/api.yml +0 -2
- package/.mock/definition/assets.yml +38 -8
- package/.mock/definition/collections/fields.yml +9 -3
- package/.mock/definition/collections/items.yml +458 -76
- package/.mock/definition/collections.yml +12 -4
- package/.mock/definition/components.yml +65 -25
- package/.mock/definition/ecommerce.yml +3 -1
- package/.mock/definition/forms.yml +29 -7
- package/.mock/definition/inventory.yml +25 -17
- package/.mock/definition/items.yml +28 -16
- package/.mock/definition/orders.yml +126 -110
- package/.mock/definition/pages/scripts.yml +27 -8
- package/.mock/definition/pages.yml +66 -45
- package/.mock/definition/products.yml +21 -12
- package/.mock/definition/scripts.yml +9 -3
- package/.mock/definition/sites/activityLogs.yml +6 -1
- package/.mock/definition/sites/comments.yml +39 -12
- package/.mock/definition/sites/plans.yml +3 -1
- package/.mock/definition/sites/redirects.yml +12 -4
- package/.mock/definition/sites/robotsTxt.yml +12 -4
- package/.mock/definition/sites/scripts.yml +35 -8
- package/.mock/definition/sites/wellKnown.yml +20 -4
- package/.mock/definition/sites.yml +23 -8
- package/.mock/definition/token.yml +3 -2
- package/.mock/definition/users.yml +19 -5
- package/.mock/definition/webhooks.yml +0 -4
- package/.mock/definition/workspaces/auditLogs.yml +9 -3
- package/.mock/fern.config.json +1 -1
- package/Client.d.ts +2 -2
- package/Client.js +3 -3
- package/api/resources/accessGroups/client/Client.d.ts +8 -4
- package/api/resources/accessGroups/client/Client.js +11 -3
- package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/api/resources/assets/client/Client.d.ts +9 -5
- package/api/resources/assets/client/Client.js +24 -7
- package/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/api/resources/assets/client/requests/index.d.ts +1 -0
- package/api/resources/collections/client/Client.d.ts +3 -3
- package/api/resources/collections/client/Client.js +6 -2
- package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/api/resources/collections/resources/fields/client/Client.js +6 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +53 -17
- package/api/resources/collections/resources/items/client/Client.js +57 -17
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +4 -2
- package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +4 -2
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +9 -1
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +9 -1
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +3 -2
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +3 -2
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +2 -0
- package/api/resources/components/client/Client.d.ts +18 -9
- package/api/resources/components/client/Client.js +21 -8
- package/api/resources/components/client/requests/ComponentDomWrite.d.ts +3 -1
- package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +3 -1
- package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -2
- package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -2
- package/api/resources/components/client/requests/ComponentsListRequest.d.ts +3 -1
- package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/api/resources/ecommerce/client/Client.d.ts +3 -3
- package/api/resources/ecommerce/client/Client.js +6 -2
- package/api/resources/forms/client/Client.d.ts +14 -6
- package/api/resources/forms/client/Client.js +17 -5
- package/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/api/resources/inventory/client/Client.d.ts +11 -11
- package/api/resources/inventory/client/Client.js +22 -18
- package/api/resources/orders/client/Client.d.ts +8 -4
- package/api/resources/orders/client/Client.js +11 -3
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- package/api/resources/pages/client/Client.d.ts +14 -15
- package/api/resources/pages/client/Client.js +17 -14
- package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +9 -2
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- package/api/resources/pages/resources/scripts/client/Client.d.ts +8 -6
- package/api/resources/pages/resources/scripts/client/Client.js +11 -5
- package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/api/resources/products/client/Client.d.ts +7 -4
- package/api/resources/products/client/Client.js +10 -3
- package/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +6 -2
- package/api/resources/sites/client/Client.d.ts +3 -3
- package/api/resources/sites/client/Client.js +6 -2
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -4
- package/api/resources/sites/resources/activityLogs/client/Client.js +10 -3
- package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/api/resources/sites/resources/comments/client/Client.d.ts +18 -6
- package/api/resources/sites/resources/comments/client/Client.js +21 -5
- package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- package/api/resources/sites/resources/plans/client/Client.d.ts +3 -3
- package/api/resources/sites/resources/plans/client/Client.js +6 -2
- package/api/resources/sites/resources/redirects/client/Client.d.ts +3 -3
- package/api/resources/sites/resources/redirects/client/Client.js +6 -2
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +3 -3
- package/api/resources/sites/resources/robotsTxt/client/Client.js +6 -2
- package/api/resources/sites/resources/scripts/client/Client.d.ts +13 -6
- package/api/resources/sites/resources/scripts/client/Client.js +16 -5
- package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/api/resources/sites/resources/wellKnown/client/Client.d.ts +6 -5
- package/api/resources/sites/resources/wellKnown/client/Client.js +9 -4
- package/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/api/resources/token/client/Client.d.ts +3 -3
- package/api/resources/token/client/Client.js +6 -2
- package/api/resources/users/client/Client.d.ts +8 -4
- package/api/resources/users/client/Client.js +11 -3
- package/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
- package/api/resources/webhooks/client/Client.d.ts +3 -3
- package/api/resources/webhooks/client/Client.js +6 -2
- package/api/resources/workspaces/client/Client.d.ts +2 -2
- package/api/resources/workspaces/client/Client.js +1 -1
- package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -5
- package/api/resources/workspaces/resources/auditLogs/client/Client.js +12 -4
- package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
- package/api/types/CollectionItemChanged.d.ts +1 -1
- package/api/types/CollectionItemCreated.d.ts +1 -1
- package/api/types/CollectionItemPublished.d.ts +9 -0
- package/api/types/{ComponentInstance.d.ts → ComponentInstanceNodePropertyOverridesWrite.d.ts} +1 -1
- package/api/types/{ComponentNodeDom.d.ts → ComponentNode.d.ts} +1 -1
- package/api/types/Dom.d.ts +1 -1
- package/api/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +1 -1
- package/api/types/Node.d.ts +7 -7
- package/api/types/Payload.d.ts +25 -0
- package/api/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +1 -1
- package/api/types/{SearchButtonNodeDom.d.ts → SearchButtonNode.d.ts} +1 -1
- package/api/types/{SearchButton.d.ts → SearchButtonNodeWrite.d.ts} +1 -1
- package/api/types/{SelectNodeDom.d.ts → SelectNode.d.ts} +1 -1
- package/api/types/SiteMembership.d.ts +1 -0
- package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- package/api/types/SkuFieldData.d.ts +0 -4
- package/{dist/api/types/SubmitButtonNodeDom.d.ts → api/types/SubmitButtonNode.d.ts} +1 -1
- package/{dist/api/types/SubmitButton.d.ts → api/types/SubmitButtonNodeWrite.d.ts} +1 -1
- package/{dist/api/types/TextInputNodeDom.d.ts → api/types/TextInputNode.d.ts} +1 -1
- package/api/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +1 -1
- package/api/types/TextNode.d.ts +7 -4
- package/api/types/TextNodeWrite.d.ts +12 -0
- package/api/types/TriggerType.d.ts +2 -1
- package/api/types/TriggerType.js +1 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/api/types/WorkspaceInvitation.d.ts +1 -0
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/api/types/index.d.ts +17 -20
- package/api/types/index.js +17 -20
- package/dist/Client.d.ts +2 -2
- package/dist/Client.js +3 -3
- package/dist/api/resources/accessGroups/client/Client.d.ts +8 -4
- package/dist/api/resources/accessGroups/client/Client.js +11 -3
- package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
- package/dist/api/resources/assets/client/Client.d.ts +9 -5
- package/dist/api/resources/assets/client/Client.js +24 -7
- package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
- package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/client/Client.js +6 -2
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
- package/dist/api/resources/collections/resources/fields/client/Client.js +6 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +53 -17
- package/dist/api/resources/collections/resources/items/client/Client.js +57 -17
- 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 +4 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +4 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +9 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +9 -1
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +3 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +3 -2
- 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 +2 -0
- package/dist/api/resources/components/client/Client.d.ts +18 -9
- package/dist/api/resources/components/client/Client.js +21 -8
- package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +3 -1
- package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +3 -1
- package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -2
- package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -2
- package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +3 -1
- package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/ecommerce/client/Client.d.ts +3 -3
- package/dist/api/resources/ecommerce/client/Client.js +6 -2
- package/dist/api/resources/forms/client/Client.d.ts +14 -6
- package/dist/api/resources/forms/client/Client.js +17 -5
- package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
- package/dist/api/resources/inventory/client/Client.d.ts +11 -11
- package/dist/api/resources/inventory/client/Client.js +22 -18
- package/dist/api/resources/orders/client/Client.d.ts +8 -4
- package/dist/api/resources/orders/client/Client.js +11 -3
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
- package/dist/api/resources/pages/client/Client.d.ts +14 -15
- package/dist/api/resources/pages/client/Client.js +17 -14
- package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +9 -2
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +8 -6
- package/dist/api/resources/pages/resources/scripts/client/Client.js +11 -5
- package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
- package/dist/api/resources/products/client/Client.d.ts +7 -4
- package/dist/api/resources/products/client/Client.js +10 -3
- package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +6 -2
- package/dist/api/resources/sites/client/Client.d.ts +3 -3
- package/dist/api/resources/sites/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -4
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +10 -3
- package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/comments/client/Client.d.ts +18 -6
- package/dist/api/resources/sites/resources/comments/client/Client.js +21 -5
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +3 -3
- package/dist/api/resources/sites/resources/plans/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +3 -3
- package/dist/api/resources/sites/resources/redirects/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +3 -3
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +13 -6
- package/dist/api/resources/sites/resources/scripts/client/Client.js +16 -5
- package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
- package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +6 -5
- package/dist/api/resources/sites/resources/wellKnown/client/Client.js +9 -4
- package/dist/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
- package/dist/api/resources/token/client/Client.d.ts +3 -3
- package/dist/api/resources/token/client/Client.js +6 -2
- package/dist/api/resources/users/client/Client.d.ts +8 -4
- package/dist/api/resources/users/client/Client.js +11 -3
- package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
- package/dist/api/resources/webhooks/client/Client.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.js +6 -2
- package/dist/api/resources/workspaces/client/Client.d.ts +2 -2
- package/dist/api/resources/workspaces/client/Client.js +1 -1
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -5
- package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +12 -4
- package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
- package/dist/api/types/CollectionItemChanged.d.ts +1 -1
- package/dist/api/types/CollectionItemCreated.d.ts +1 -1
- package/dist/api/types/CollectionItemPublished.d.ts +9 -0
- package/dist/api/types/{ComponentInstance.d.ts → ComponentInstanceNodePropertyOverridesWrite.d.ts} +1 -1
- package/dist/api/types/{ComponentNodeDom.d.ts → ComponentNode.d.ts} +1 -1
- package/dist/api/types/Dom.d.ts +1 -1
- package/dist/api/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +1 -1
- package/dist/api/types/Node.d.ts +7 -7
- package/dist/api/types/Payload.d.ts +25 -0
- package/dist/api/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +1 -1
- package/dist/api/types/{SearchButtonNodeDom.d.ts → SearchButtonNode.d.ts} +1 -1
- package/dist/api/types/{SearchButton.d.ts → SearchButtonNodeWrite.d.ts} +1 -1
- package/dist/api/types/{SelectNodeDom.d.ts → SelectNode.d.ts} +1 -1
- package/dist/api/types/SiteMembership.d.ts +1 -0
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
- package/dist/api/types/SkuFieldData.d.ts +0 -4
- package/{api/types/SubmitButtonNodeDom.d.ts → dist/api/types/SubmitButtonNode.d.ts} +1 -1
- package/{api/types/SubmitButton.d.ts → dist/api/types/SubmitButtonNodeWrite.d.ts} +1 -1
- package/{api/types/TextInputNodeDom.d.ts → dist/api/types/TextInputNode.d.ts} +1 -1
- package/dist/api/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +1 -1
- package/dist/api/types/TextNode.d.ts +7 -4
- package/dist/api/types/TextNodeWrite.d.ts +12 -0
- package/dist/api/types/TriggerType.d.ts +2 -1
- package/dist/api/types/TriggerType.js +1 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
- package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
- package/dist/api/types/WorkspaceInvitation.d.ts +1 -0
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
- package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/dist/api/types/index.d.ts +17 -20
- package/dist/api/types/index.js +17 -20
- package/dist/environments.d.ts +0 -4
- package/dist/environments.js +0 -2
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +6 -6
- package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +10 -10
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +6 -6
- package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +10 -10
- package/dist/serialization/types/CollectionItemChanged.d.ts +2 -2
- package/dist/serialization/types/CollectionItemChanged.js +2 -2
- package/dist/serialization/types/CollectionItemCreated.d.ts +2 -2
- package/dist/serialization/types/CollectionItemCreated.js +2 -2
- package/dist/serialization/types/CollectionItemPublished.d.ts +14 -0
- package/dist/serialization/types/CollectionItemPublished.js +45 -0
- package/{serialization/types/ComponentInstance.d.ts → dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts} +2 -2
- package/{serialization/types/ComponentInstance.js → dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js} +2 -2
- package/{serialization/types/ComponentNodeDom.d.ts → dist/serialization/types/ComponentNode.d.ts} +2 -2
- package/{serialization/types/ComponentNodeDom.js → dist/serialization/types/ComponentNode.js} +2 -2
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +1 -1
- package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +1 -1
- package/dist/serialization/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +2 -2
- package/dist/serialization/types/{ImageNodeDom.js → ImageNode.js} +2 -2
- package/dist/serialization/types/Node.d.ts +14 -14
- package/dist/serialization/types/Node.js +14 -14
- package/dist/serialization/types/Payload.d.ts +23 -0
- package/dist/serialization/types/{MultiLocaleChangedPayload.js → Payload.js} +8 -8
- package/dist/serialization/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +2 -2
- package/dist/serialization/types/{SingleLocaleChangedPayloadFieldData.js → PayloadFieldData.js} +2 -2
- package/{serialization/types/SearchButtonNodeDom.d.ts → dist/serialization/types/SearchButtonNode.d.ts} +2 -2
- package/{serialization/types/SearchButtonNodeDom.js → dist/serialization/types/SearchButtonNode.js} +2 -2
- package/{serialization/types/SearchButton.d.ts → dist/serialization/types/SearchButtonNodeWrite.d.ts} +2 -2
- package/{serialization/types/SearchButton.js → dist/serialization/types/SearchButtonNodeWrite.js} +2 -2
- package/{serialization/types/SelectNodeDom.d.ts → dist/serialization/types/SelectNode.d.ts} +2 -2
- package/{serialization/types/SelectNodeDom.js → dist/serialization/types/SelectNode.js} +2 -2
- package/dist/serialization/types/SiteMembership.d.ts +2 -0
- package/dist/serialization/types/SiteMembership.js +2 -0
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +1 -1
- package/dist/serialization/types/SkuFieldData.d.ts +0 -2
- package/dist/serialization/types/SkuFieldData.js +0 -2
- package/dist/serialization/types/{SubmitButtonNodeDom.d.ts → SubmitButtonNode.d.ts} +2 -2
- package/{serialization/types/SubmitButtonNodeDom.js → dist/serialization/types/SubmitButtonNode.js} +2 -2
- package/{serialization/types/SubmitButton.d.ts → dist/serialization/types/SubmitButtonNodeWrite.d.ts} +2 -2
- package/{serialization/types/SubmitButton.js → dist/serialization/types/SubmitButtonNodeWrite.js} +2 -2
- package/{serialization/types/TextInputNodeDom.d.ts → dist/serialization/types/TextInputNode.d.ts} +2 -2
- package/{serialization/types/TextInputNodeDom.js → dist/serialization/types/TextInputNode.js} +2 -2
- package/dist/serialization/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +2 -2
- package/dist/serialization/types/{TextInput.js → TextInputNodeWrite.js} +2 -2
- package/dist/serialization/types/TextNode.d.ts +4 -2
- package/dist/serialization/types/TextNode.js +4 -2
- package/dist/serialization/types/TextNodeWrite.d.ts +13 -0
- package/dist/serialization/types/TextNodeWrite.js +44 -0
- package/dist/serialization/types/TriggerType.d.ts +1 -1
- package/dist/serialization/types/TriggerType.js +1 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -1
- package/dist/serialization/types/WorkspaceInvitation.d.ts +2 -0
- package/dist/serialization/types/WorkspaceInvitation.js +2 -0
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/dist/serialization/types/index.d.ts +17 -20
- package/dist/serialization/types/index.js +17 -20
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/AssetsClient.d.ts +24 -0
- package/dist/wrapper/AssetsClient.js +42 -0
- package/dist/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/environments.d.ts +0 -4
- package/environments.js +0 -2
- package/jest.config.mjs +0 -4
- package/package.json +3 -3
- package/reference.md +158 -54
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +6 -6
- package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +10 -10
- package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +6 -6
- package/serialization/resources/pages/types/PageDomWriteNodesItem.js +10 -10
- package/serialization/types/CollectionItemChanged.d.ts +2 -2
- package/serialization/types/CollectionItemChanged.js +2 -2
- package/serialization/types/CollectionItemCreated.d.ts +2 -2
- package/serialization/types/CollectionItemCreated.js +2 -2
- package/serialization/types/CollectionItemPublished.d.ts +14 -0
- package/serialization/types/CollectionItemPublished.js +45 -0
- package/{dist/serialization/types/ComponentInstance.d.ts → serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts} +2 -2
- package/{dist/serialization/types/ComponentInstance.js → serialization/types/ComponentInstanceNodePropertyOverridesWrite.js} +2 -2
- package/{dist/serialization/types/ComponentNodeDom.d.ts → serialization/types/ComponentNode.d.ts} +2 -2
- package/{dist/serialization/types/ComponentNodeDom.js → serialization/types/ComponentNode.js} +2 -2
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +1 -1
- package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +1 -1
- package/serialization/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +2 -2
- package/serialization/types/{ImageNodeDom.js → ImageNode.js} +2 -2
- package/serialization/types/Node.d.ts +14 -14
- package/serialization/types/Node.js +14 -14
- package/serialization/types/Payload.d.ts +23 -0
- package/serialization/types/{MultiLocaleChangedPayload.js → Payload.js} +8 -8
- package/serialization/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +2 -2
- package/serialization/types/{SingleLocaleChangedPayloadFieldData.js → PayloadFieldData.js} +2 -2
- package/{dist/serialization/types/SearchButtonNodeDom.d.ts → serialization/types/SearchButtonNode.d.ts} +2 -2
- package/{dist/serialization/types/SearchButtonNodeDom.js → serialization/types/SearchButtonNode.js} +2 -2
- package/{dist/serialization/types/SearchButton.d.ts → serialization/types/SearchButtonNodeWrite.d.ts} +2 -2
- package/{dist/serialization/types/SearchButton.js → serialization/types/SearchButtonNodeWrite.js} +2 -2
- package/{dist/serialization/types/SelectNodeDom.d.ts → serialization/types/SelectNode.d.ts} +2 -2
- package/{dist/serialization/types/SelectNodeDom.js → serialization/types/SelectNode.js} +2 -2
- package/serialization/types/SiteMembership.d.ts +2 -0
- package/serialization/types/SiteMembership.js +2 -0
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +1 -1
- package/serialization/types/SkuFieldData.d.ts +0 -2
- package/serialization/types/SkuFieldData.js +0 -2
- package/serialization/types/{SubmitButtonNodeDom.d.ts → SubmitButtonNode.d.ts} +2 -2
- package/{dist/serialization/types/SubmitButtonNodeDom.js → serialization/types/SubmitButtonNode.js} +2 -2
- package/{dist/serialization/types/SubmitButton.d.ts → serialization/types/SubmitButtonNodeWrite.d.ts} +2 -2
- package/{dist/serialization/types/SubmitButton.js → serialization/types/SubmitButtonNodeWrite.js} +2 -2
- package/{dist/serialization/types/TextInputNodeDom.d.ts → serialization/types/TextInputNode.d.ts} +2 -2
- package/{dist/serialization/types/TextInputNodeDom.js → serialization/types/TextInputNode.js} +2 -2
- package/serialization/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +2 -2
- package/serialization/types/{TextInput.js → TextInputNodeWrite.js} +2 -2
- package/serialization/types/TextNode.d.ts +4 -2
- package/serialization/types/TextNode.js +4 -2
- package/serialization/types/TextNodeWrite.d.ts +13 -0
- package/serialization/types/TextNodeWrite.js +44 -0
- package/serialization/types/TriggerType.d.ts +1 -1
- package/serialization/types/TriggerType.js +1 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
- package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -1
- package/serialization/types/WorkspaceInvitation.d.ts +2 -0
- package/serialization/types/WorkspaceInvitation.js +2 -0
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
- package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
- package/serialization/types/index.d.ts +17 -20
- package/serialization/types/index.js +17 -20
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/AssetsClient.d.ts +24 -0
- package/wrapper/AssetsClient.js +42 -0
- package/wrapper/AssetsUtilitiesClient.d.ts +1 -1
- package/api/types/CollectionItemChangedPayload.d.ts +0 -5
- package/api/types/CollectionItemCreatedPayload.d.ts +0 -5
- package/api/types/LocalizedItem.d.ts +0 -31
- package/api/types/MultiLocaleChangedPayload.d.ts +0 -22
- package/api/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -11
- package/api/types/MultiLocaleCreatedPayload.d.ts +0 -16
- package/api/types/SingleLocaleChangedPayload.d.ts +0 -22
- package/api/types/TextNodeDom.d.ts +0 -15
- package/dist/api/types/CollectionItemChangedPayload.d.ts +0 -5
- package/dist/api/types/CollectionItemCreatedPayload.d.ts +0 -5
- package/dist/api/types/LocalizedItem.d.ts +0 -31
- package/dist/api/types/MultiLocaleChangedPayload.d.ts +0 -22
- package/dist/api/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -11
- package/dist/api/types/MultiLocaleCreatedPayload.d.ts +0 -16
- package/dist/api/types/SingleLocaleChangedPayload.d.ts +0 -22
- package/dist/api/types/SubmitButtonNodeDom.js +0 -5
- package/dist/api/types/TextInput.js +0 -5
- package/dist/api/types/TextInputNodeDom.js +0 -5
- package/dist/api/types/TextNodeDom.d.ts +0 -15
- package/dist/api/types/TextNodeDom.js +0 -5
- package/dist/serialization/types/CollectionItemChangedPayload.d.ts +0 -12
- package/dist/serialization/types/CollectionItemChangedPayload.js +0 -43
- package/dist/serialization/types/CollectionItemCreatedPayload.d.ts +0 -12
- package/dist/serialization/types/CollectionItemCreatedPayload.js +0 -43
- package/dist/serialization/types/LocalizedItem.d.ts +0 -24
- package/dist/serialization/types/LocalizedItem.js +0 -55
- package/dist/serialization/types/MultiLocaleChangedPayload.d.ts +0 -23
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -15
- package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.js +0 -47
- package/dist/serialization/types/MultiLocaleCreatedPayload.d.ts +0 -17
- package/dist/serialization/types/MultiLocaleCreatedPayload.js +0 -48
- package/dist/serialization/types/SingleLocaleChangedPayload.d.ts +0 -23
- package/dist/serialization/types/SingleLocaleChangedPayload.js +0 -54
- package/dist/serialization/types/TextNodeDom.d.ts +0 -15
- package/dist/serialization/types/TextNodeDom.js +0 -46
- package/serialization/types/CollectionItemChangedPayload.d.ts +0 -12
- package/serialization/types/CollectionItemChangedPayload.js +0 -43
- package/serialization/types/CollectionItemCreatedPayload.d.ts +0 -12
- package/serialization/types/CollectionItemCreatedPayload.js +0 -43
- package/serialization/types/LocalizedItem.d.ts +0 -24
- package/serialization/types/LocalizedItem.js +0 -55
- package/serialization/types/MultiLocaleChangedPayload.d.ts +0 -23
- package/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -15
- package/serialization/types/MultiLocaleChangedPayloadFieldData.js +0 -47
- package/serialization/types/MultiLocaleCreatedPayload.d.ts +0 -17
- package/serialization/types/MultiLocaleCreatedPayload.js +0 -48
- package/serialization/types/SingleLocaleChangedPayload.d.ts +0 -23
- package/serialization/types/SingleLocaleChangedPayload.js +0 -54
- package/serialization/types/TextNodeDom.d.ts +0 -15
- package/serialization/types/TextNodeDom.js +0 -46
- /package/api/{types/CollectionItemChangedPayload.js → resources/assets/client/requests/AssetsListRequest.js} +0 -0
- /package/api/types/{CollectionItemCreatedPayload.js → CollectionItemPublished.js} +0 -0
- /package/api/types/{ComponentInstance.js → ComponentInstanceNodePropertyOverridesWrite.js} +0 -0
- /package/api/types/{ComponentNodeDom.js → ComponentNode.js} +0 -0
- /package/api/types/{ImageNodeDom.js → ImageNode.js} +0 -0
- /package/api/types/{LocalizedItem.js → Payload.js} +0 -0
- /package/api/types/{MultiLocaleChangedPayload.js → PayloadFieldData.js} +0 -0
- /package/api/types/{MultiLocaleChangedPayloadFieldData.js → SearchButtonNode.js} +0 -0
- /package/api/types/{MultiLocaleCreatedPayload.js → SearchButtonNodeWrite.js} +0 -0
- /package/api/types/{SearchButton.js → SelectNode.js} +0 -0
- /package/api/types/{SearchButtonNodeDom.js → SubmitButtonNode.js} +0 -0
- /package/api/types/{SelectNodeDom.js → SubmitButtonNodeWrite.js} +0 -0
- /package/api/types/{SingleLocaleChangedPayload.js → TextInputNode.js} +0 -0
- /package/api/types/{SingleLocaleChangedPayloadFieldData.js → TextInputNodeWrite.js} +0 -0
- /package/api/types/{SubmitButton.js → TextNodeWrite.js} +0 -0
- /package/api/types/{SubmitButtonNodeDom.js → WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js} +0 -0
- /package/api/types/{TextInput.js → WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js} +0 -0
- /package/{api/types/TextInputNodeDom.js → dist/api/resources/assets/client/requests/AssetsListRequest.js} +0 -0
- /package/{api/types/TextNodeDom.js → dist/api/types/CollectionItemPublished.js} +0 -0
- /package/dist/api/types/{CollectionItemChangedPayload.js → ComponentInstanceNodePropertyOverridesWrite.js} +0 -0
- /package/dist/api/types/{CollectionItemCreatedPayload.js → ComponentNode.js} +0 -0
- /package/dist/api/types/{ComponentInstance.js → ImageNode.js} +0 -0
- /package/dist/api/types/{ComponentNodeDom.js → Payload.js} +0 -0
- /package/dist/api/types/{ImageNodeDom.js → PayloadFieldData.js} +0 -0
- /package/dist/api/types/{LocalizedItem.js → SearchButtonNode.js} +0 -0
- /package/dist/api/types/{MultiLocaleChangedPayload.js → SearchButtonNodeWrite.js} +0 -0
- /package/dist/api/types/{MultiLocaleChangedPayloadFieldData.js → SelectNode.js} +0 -0
- /package/dist/api/types/{MultiLocaleCreatedPayload.js → SubmitButtonNode.js} +0 -0
- /package/dist/api/types/{SearchButton.js → SubmitButtonNodeWrite.js} +0 -0
- /package/dist/api/types/{SearchButtonNodeDom.js → TextInputNode.js} +0 -0
- /package/dist/api/types/{SelectNodeDom.js → TextInputNodeWrite.js} +0 -0
- /package/dist/api/types/{SingleLocaleChangedPayload.js → TextNodeWrite.js} +0 -0
- /package/dist/api/types/{SingleLocaleChangedPayloadFieldData.js → WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js} +0 -0
- /package/dist/api/types/{SubmitButton.js → WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js} +0 -0
|
@@ -7,7 +7,9 @@ service:
|
|
|
7
7
|
get-custom-code:
|
|
8
8
|
path: /sites/{site_id}/custom_code
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth:
|
|
11
|
+
- OAuth2:
|
|
12
|
+
- custom_code:read
|
|
11
13
|
docs: |
|
|
12
14
|
Get all scripts applied to a site by the App.
|
|
13
15
|
|
|
@@ -54,14 +56,22 @@ service:
|
|
|
54
56
|
upsert-custom-code:
|
|
55
57
|
path: /sites/{site_id}/custom_code
|
|
56
58
|
method: PUT
|
|
57
|
-
auth:
|
|
58
|
-
|
|
59
|
-
|
|
59
|
+
auth:
|
|
60
|
+
- OAuth2:
|
|
61
|
+
- custom_code:write
|
|
62
|
+
docs: >
|
|
63
|
+
Apply registered scripts to a site. If you have multiple scripts your
|
|
64
|
+
App needs to apply or maintain on a site, ensure they are always
|
|
65
|
+
included in the request body for this endpoint. To remove individual
|
|
66
|
+
scripts, simply call this endpoint without the script in the request
|
|
67
|
+
body.
|
|
68
|
+
|
|
60
69
|
|
|
61
70
|
<Note title="Script Registration">
|
|
62
71
|
To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
|
|
63
72
|
</Note>
|
|
64
73
|
|
|
74
|
+
|
|
65
75
|
Required scope | `custom_code:write`
|
|
66
76
|
source:
|
|
67
77
|
openapi: ../../../openapi/referenced-specs/v2.yml
|
|
@@ -114,10 +124,22 @@ service:
|
|
|
114
124
|
delete-custom-code:
|
|
115
125
|
path: /sites/{site_id}/custom_code
|
|
116
126
|
method: DELETE
|
|
117
|
-
auth:
|
|
127
|
+
auth:
|
|
128
|
+
- OAuth2:
|
|
129
|
+
- custom_code:write
|
|
118
130
|
docs: >
|
|
119
|
-
Remove scripts from a site applied by the App. This endpoint will
|
|
120
|
-
remove scripts from the site's registered scripts.
|
|
131
|
+
Remove all scripts from a site applied by the App. This endpoint will
|
|
132
|
+
not remove scripts from the site's registered scripts.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
To remove individual scripts applied by the App, use the [Add/Update
|
|
136
|
+
Custom
|
|
137
|
+
Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code)
|
|
138
|
+
endpoint.
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
<Note>Access to this endpoint requires a bearer token obtained from an
|
|
142
|
+
[OAuth Code Grant Flow](/data/reference/oauth-app).</Note>
|
|
121
143
|
|
|
122
144
|
|
|
123
145
|
Required scope | `custom_code:write`
|
|
@@ -140,7 +162,9 @@ service:
|
|
|
140
162
|
list-custom-code-blocks:
|
|
141
163
|
path: /sites/{site_id}/custom_code/blocks
|
|
142
164
|
method: GET
|
|
143
|
-
auth:
|
|
165
|
+
auth:
|
|
166
|
+
- OAuth2:
|
|
167
|
+
- custom_code:read
|
|
144
168
|
docs: >
|
|
145
169
|
Get a list of scripts that have been applied to a site and/or individual
|
|
146
170
|
pages.
|
|
@@ -185,6 +209,9 @@ service:
|
|
|
185
209
|
examples:
|
|
186
210
|
- path-parameters:
|
|
187
211
|
site_id: 580e63e98c9a982ac9b8b741
|
|
212
|
+
query-parameters:
|
|
213
|
+
offset: 1.1
|
|
214
|
+
limit: 1.1
|
|
188
215
|
response:
|
|
189
216
|
body:
|
|
190
217
|
blocks:
|
|
@@ -19,7 +19,9 @@ service:
|
|
|
19
19
|
put:
|
|
20
20
|
path: /sites/{site_id}/well_known
|
|
21
21
|
method: PUT
|
|
22
|
-
auth:
|
|
22
|
+
auth:
|
|
23
|
+
- OAuth2:
|
|
24
|
+
- site_config:write
|
|
23
25
|
docs: >
|
|
24
26
|
Upload a supported well-known file to a site.
|
|
25
27
|
|
|
@@ -70,12 +72,26 @@ service:
|
|
|
70
72
|
- path-parameters:
|
|
71
73
|
site_id: 580e63e98c9a982ac9b8b741
|
|
72
74
|
request:
|
|
73
|
-
fileName:
|
|
74
|
-
fileData:
|
|
75
|
+
fileName: apple-app-site-association.txt
|
|
76
|
+
fileData: |
|
|
77
|
+
{
|
|
78
|
+
"applinks": {
|
|
79
|
+
"apps": [],
|
|
80
|
+
"details": [
|
|
81
|
+
{
|
|
82
|
+
"appID": "ABCDE12345.com.example.app",
|
|
83
|
+
"paths": [ "/*", "/some/path/*" ]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
contentType: application/json
|
|
75
89
|
delete:
|
|
76
90
|
path: /sites/{site_id}/well_known
|
|
77
91
|
method: DELETE
|
|
78
|
-
auth:
|
|
92
|
+
auth:
|
|
93
|
+
- OAuth2:
|
|
94
|
+
- site_config:write
|
|
79
95
|
docs: >
|
|
80
96
|
Delete existing well-known files from a site.
|
|
81
97
|
|
|
@@ -7,7 +7,9 @@ service:
|
|
|
7
7
|
create:
|
|
8
8
|
path: /workspaces/{workspace_id}/sites
|
|
9
9
|
method: POST
|
|
10
|
-
auth:
|
|
10
|
+
auth:
|
|
11
|
+
- OAuth2:
|
|
12
|
+
- sites:write
|
|
11
13
|
docs: >
|
|
12
14
|
Create a site.
|
|
13
15
|
|
|
@@ -73,7 +75,9 @@ service:
|
|
|
73
75
|
list:
|
|
74
76
|
path: /sites
|
|
75
77
|
method: GET
|
|
76
|
-
auth:
|
|
78
|
+
auth:
|
|
79
|
+
- OAuth2:
|
|
80
|
+
- sites:read
|
|
77
81
|
docs: |
|
|
78
82
|
List of all sites the provided access token is able to access.
|
|
79
83
|
|
|
@@ -203,7 +207,9 @@ service:
|
|
|
203
207
|
get:
|
|
204
208
|
path: /sites/{site_id}
|
|
205
209
|
method: GET
|
|
206
|
-
auth:
|
|
210
|
+
auth:
|
|
211
|
+
- OAuth2:
|
|
212
|
+
- sites:read
|
|
207
213
|
docs: |
|
|
208
214
|
Get details of a site.
|
|
209
215
|
|
|
@@ -226,7 +232,8 @@ service:
|
|
|
226
232
|
- root.TooManyRequestsError
|
|
227
233
|
- root.InternalServerError
|
|
228
234
|
examples:
|
|
229
|
-
-
|
|
235
|
+
- name: SiteWithLocales
|
|
236
|
+
path-parameters:
|
|
230
237
|
site_id: 580e63e98c9a982ac9b8b741
|
|
231
238
|
response:
|
|
232
239
|
body:
|
|
@@ -271,7 +278,9 @@ service:
|
|
|
271
278
|
delete:
|
|
272
279
|
path: /sites/{site_id}
|
|
273
280
|
method: DELETE
|
|
274
|
-
auth:
|
|
281
|
+
auth:
|
|
282
|
+
- OAuth2:
|
|
283
|
+
- sites:write
|
|
275
284
|
docs: >
|
|
276
285
|
Delete a site.
|
|
277
286
|
|
|
@@ -301,7 +310,9 @@ service:
|
|
|
301
310
|
update:
|
|
302
311
|
path: /sites/{site_id}
|
|
303
312
|
method: PATCH
|
|
304
|
-
auth:
|
|
313
|
+
auth:
|
|
314
|
+
- OAuth2:
|
|
315
|
+
- sites:write
|
|
305
316
|
docs: >
|
|
306
317
|
Update a site.
|
|
307
318
|
|
|
@@ -387,7 +398,9 @@ service:
|
|
|
387
398
|
get-custom-domain:
|
|
388
399
|
path: /sites/{site_id}/custom_domains
|
|
389
400
|
method: GET
|
|
390
|
-
auth:
|
|
401
|
+
auth:
|
|
402
|
+
- OAuth2:
|
|
403
|
+
- sites:read
|
|
391
404
|
docs: |
|
|
392
405
|
Get a list of all custom domains related to site.
|
|
393
406
|
|
|
@@ -424,7 +437,9 @@ service:
|
|
|
424
437
|
publish:
|
|
425
438
|
path: /sites/{site_id}/publish
|
|
426
439
|
method: POST
|
|
427
|
-
auth:
|
|
440
|
+
auth:
|
|
441
|
+
- OAuth2:
|
|
442
|
+
- sites:write
|
|
428
443
|
docs: >
|
|
429
444
|
Publishes a site to one or more more domains.
|
|
430
445
|
|
|
@@ -7,7 +7,9 @@ service:
|
|
|
7
7
|
authorized-by:
|
|
8
8
|
path: /token/authorized_by
|
|
9
9
|
method: GET
|
|
10
|
-
auth:
|
|
10
|
+
auth:
|
|
11
|
+
- OAuth2:
|
|
12
|
+
- authorized_user:read
|
|
11
13
|
docs: |
|
|
12
14
|
Information about the Authorized User
|
|
13
15
|
|
|
@@ -32,7 +34,6 @@ service:
|
|
|
32
34
|
introspect:
|
|
33
35
|
path: /token/introspect
|
|
34
36
|
method: GET
|
|
35
|
-
auth: true
|
|
36
37
|
docs: >
|
|
37
38
|
Information about the authorization token
|
|
38
39
|
|
|
@@ -180,7 +180,9 @@ service:
|
|
|
180
180
|
list:
|
|
181
181
|
path: /sites/{site_id}/users
|
|
182
182
|
method: GET
|
|
183
|
-
auth:
|
|
183
|
+
auth:
|
|
184
|
+
- OAuth2:
|
|
185
|
+
- users:read
|
|
184
186
|
docs: |
|
|
185
187
|
Get a list of users for a site
|
|
186
188
|
|
|
@@ -225,6 +227,10 @@ service:
|
|
|
225
227
|
examples:
|
|
226
228
|
- path-parameters:
|
|
227
229
|
site_id: 580e63e98c9a982ac9b8b741
|
|
230
|
+
query-parameters:
|
|
231
|
+
offset: 1.1
|
|
232
|
+
limit: 1.1
|
|
233
|
+
sort: CreatedOn
|
|
228
234
|
response:
|
|
229
235
|
body:
|
|
230
236
|
count: 5
|
|
@@ -285,7 +291,9 @@ service:
|
|
|
285
291
|
get:
|
|
286
292
|
path: /sites/{site_id}/users/{user_id}
|
|
287
293
|
method: GET
|
|
288
|
-
auth:
|
|
294
|
+
auth:
|
|
295
|
+
- OAuth2:
|
|
296
|
+
- users:read
|
|
289
297
|
docs: |
|
|
290
298
|
Get a User by ID
|
|
291
299
|
|
|
@@ -337,7 +345,9 @@ service:
|
|
|
337
345
|
delete:
|
|
338
346
|
path: /sites/{site_id}/users/{user_id}
|
|
339
347
|
method: DELETE
|
|
340
|
-
auth:
|
|
348
|
+
auth:
|
|
349
|
+
- OAuth2:
|
|
350
|
+
- users:write
|
|
341
351
|
docs: |
|
|
342
352
|
Delete a User by ID
|
|
343
353
|
|
|
@@ -366,7 +376,9 @@ service:
|
|
|
366
376
|
update:
|
|
367
377
|
path: /sites/{site_id}/users/{user_id}
|
|
368
378
|
method: PATCH
|
|
369
|
-
auth:
|
|
379
|
+
auth:
|
|
380
|
+
- OAuth2:
|
|
381
|
+
- users:write
|
|
370
382
|
docs: |
|
|
371
383
|
Update a User by ID
|
|
372
384
|
|
|
@@ -435,7 +447,9 @@ service:
|
|
|
435
447
|
invite:
|
|
436
448
|
path: /sites/{site_id}/users/invite
|
|
437
449
|
method: POST
|
|
438
|
-
auth:
|
|
450
|
+
auth:
|
|
451
|
+
- OAuth2:
|
|
452
|
+
- users:write
|
|
439
453
|
docs: >
|
|
440
454
|
Create and invite a user with an email address.
|
|
441
455
|
|
|
@@ -7,7 +7,6 @@ service:
|
|
|
7
7
|
list:
|
|
8
8
|
path: /sites/{site_id}/webhooks
|
|
9
9
|
method: GET
|
|
10
|
-
auth: true
|
|
11
10
|
docs: |
|
|
12
11
|
List all App-created Webhooks registered for a given site
|
|
13
12
|
|
|
@@ -69,7 +68,6 @@ service:
|
|
|
69
68
|
create:
|
|
70
69
|
path: /sites/{site_id}/webhooks
|
|
71
70
|
method: POST
|
|
72
|
-
auth: true
|
|
73
71
|
docs: >
|
|
74
72
|
Create a new Webhook.
|
|
75
73
|
|
|
@@ -124,7 +122,6 @@ service:
|
|
|
124
122
|
get:
|
|
125
123
|
path: /webhooks/{webhook_id}
|
|
126
124
|
method: GET
|
|
127
|
-
auth: true
|
|
128
125
|
docs: |
|
|
129
126
|
Get a specific Webhook instance
|
|
130
127
|
|
|
@@ -161,7 +158,6 @@ service:
|
|
|
161
158
|
delete:
|
|
162
159
|
path: /webhooks/{webhook_id}
|
|
163
160
|
method: DELETE
|
|
164
|
-
auth: true
|
|
165
161
|
docs: |
|
|
166
162
|
Remove a Webhook
|
|
167
163
|
|
|
@@ -23,7 +23,9 @@ service:
|
|
|
23
23
|
get-workspace-audit_logs:
|
|
24
24
|
path: /workspaces/{workspace_id_or_slug}/audit_logs
|
|
25
25
|
method: GET
|
|
26
|
-
auth:
|
|
26
|
+
auth:
|
|
27
|
+
- OAuth2:
|
|
28
|
+
- workspace_activity:read
|
|
27
29
|
docs: >
|
|
28
30
|
Get audit logs for a workspace.
|
|
29
31
|
|
|
@@ -79,8 +81,12 @@ service:
|
|
|
79
81
|
- path-parameters:
|
|
80
82
|
workspace_id_or_slug: hitchhikers-workspace
|
|
81
83
|
query-parameters:
|
|
82
|
-
|
|
83
|
-
|
|
84
|
+
limit: 1.1
|
|
85
|
+
offset: 1.1
|
|
86
|
+
sortOrder: asc
|
|
87
|
+
eventType: user_access
|
|
88
|
+
from: '2025-06-22T16:00:31Z'
|
|
89
|
+
to: '2025-07-22T16:00:31Z'
|
|
84
90
|
response:
|
|
85
91
|
body:
|
|
86
92
|
items:
|
package/.mock/fern.config.json
CHANGED
package/Client.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare namespace WebflowClient {
|
|
|
24
24
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
25
25
|
/** Specify a custom URL to connect the client to. */
|
|
26
26
|
baseUrl?: core.Supplier<string>;
|
|
27
|
-
accessToken
|
|
27
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
28
28
|
/** Additional headers to include in requests. */
|
|
29
29
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
30
30
|
}
|
|
@@ -57,7 +57,7 @@ export declare class WebflowClient {
|
|
|
57
57
|
protected _inventory: Inventory | undefined;
|
|
58
58
|
protected _ecommerce: Ecommerce | undefined;
|
|
59
59
|
protected _workspaces: Workspaces | undefined;
|
|
60
|
-
constructor(_options
|
|
60
|
+
constructor(_options?: WebflowClient.Options);
|
|
61
61
|
get token(): Token;
|
|
62
62
|
get sites(): Sites;
|
|
63
63
|
get collections(): Collections;
|
package/Client.js
CHANGED
|
@@ -56,12 +56,12 @@ const Client_14 = require("./api/resources/inventory/client/Client");
|
|
|
56
56
|
const Client_15 = require("./api/resources/ecommerce/client/Client");
|
|
57
57
|
const Client_16 = require("./api/resources/workspaces/client/Client");
|
|
58
58
|
class WebflowClient {
|
|
59
|
-
constructor(_options) {
|
|
59
|
+
constructor(_options = {}) {
|
|
60
60
|
this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
|
|
61
61
|
"X-Fern-Language": "JavaScript",
|
|
62
62
|
"X-Fern-SDK-Name": "webflow-api",
|
|
63
|
-
"X-Fern-SDK-Version": "3.2.
|
|
64
|
-
"User-Agent": "webflow-api/3.2.
|
|
63
|
+
"X-Fern-SDK-Version": "3.2.1",
|
|
64
|
+
"User-Agent": "webflow-api/3.2.1",
|
|
65
65
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
66
66
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
67
67
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -9,7 +9,7 @@ export declare namespace AccessGroups {
|
|
|
9
9
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
accessToken
|
|
12
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
14
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
15
|
}
|
|
@@ -26,7 +26,7 @@ export declare namespace AccessGroups {
|
|
|
26
26
|
}
|
|
27
27
|
export declare class AccessGroups {
|
|
28
28
|
protected readonly _options: AccessGroups.Options;
|
|
29
|
-
constructor(_options
|
|
29
|
+
constructor(_options?: AccessGroups.Options);
|
|
30
30
|
/**
|
|
31
31
|
* Get a list of access groups for a site
|
|
32
32
|
*
|
|
@@ -44,9 +44,13 @@ export declare class AccessGroups {
|
|
|
44
44
|
* @throws {@link Webflow.InternalServerError}
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
|
-
* await client.accessGroups.list("580e63e98c9a982ac9b8b741"
|
|
47
|
+
* await client.accessGroups.list("580e63e98c9a982ac9b8b741", {
|
|
48
|
+
* offset: 1.1,
|
|
49
|
+
* limit: 1.1,
|
|
50
|
+
* sort: "CreatedOn"
|
|
51
|
+
* })
|
|
48
52
|
*/
|
|
49
53
|
list(siteId: string, request?: Webflow.AccessGroupsListRequest, requestOptions?: AccessGroups.RequestOptions): core.HttpResponsePromise<Webflow.AccessGroupList>;
|
|
50
54
|
private __list;
|
|
51
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
55
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
52
56
|
}
|
|
@@ -57,7 +57,7 @@ const headers_js_1 = require("../../../../core/headers.js");
|
|
|
57
57
|
const url_join_1 = __importDefault(require("url-join"));
|
|
58
58
|
const errors = __importStar(require("../../../../errors/index"));
|
|
59
59
|
class AccessGroups {
|
|
60
|
-
constructor(_options) {
|
|
60
|
+
constructor(_options = {}) {
|
|
61
61
|
this._options = _options;
|
|
62
62
|
}
|
|
63
63
|
/**
|
|
@@ -77,7 +77,11 @@ class AccessGroups {
|
|
|
77
77
|
* @throws {@link Webflow.InternalServerError}
|
|
78
78
|
*
|
|
79
79
|
* @example
|
|
80
|
-
* await client.accessGroups.list("580e63e98c9a982ac9b8b741"
|
|
80
|
+
* await client.accessGroups.list("580e63e98c9a982ac9b8b741", {
|
|
81
|
+
* offset: 1.1,
|
|
82
|
+
* limit: 1.1,
|
|
83
|
+
* sort: "CreatedOn"
|
|
84
|
+
* })
|
|
81
85
|
*/
|
|
82
86
|
list(siteId, request = {}, requestOptions) {
|
|
83
87
|
return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions));
|
|
@@ -187,7 +191,11 @@ class AccessGroups {
|
|
|
187
191
|
}
|
|
188
192
|
_getAuthorizationHeader() {
|
|
189
193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
-
|
|
194
|
+
const bearer = yield core.Supplier.get(this._options.accessToken);
|
|
195
|
+
if (bearer != null) {
|
|
196
|
+
return `Bearer ${bearer}`;
|
|
197
|
+
}
|
|
198
|
+
return undefined;
|
|
191
199
|
});
|
|
192
200
|
}
|
|
193
201
|
}
|
|
@@ -9,7 +9,7 @@ export declare namespace Assets {
|
|
|
9
9
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
|
-
accessToken
|
|
12
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
13
13
|
/** Additional headers to include in requests. */
|
|
14
14
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
15
15
|
}
|
|
@@ -29,13 +29,14 @@ export declare namespace Assets {
|
|
|
29
29
|
*/
|
|
30
30
|
export declare class Assets {
|
|
31
31
|
protected readonly _options: Assets.Options;
|
|
32
|
-
constructor(_options
|
|
32
|
+
constructor(_options?: Assets.Options);
|
|
33
33
|
/**
|
|
34
34
|
* List of assets uploaded to a site
|
|
35
35
|
*
|
|
36
36
|
* Required scope | `assets:read`
|
|
37
37
|
*
|
|
38
38
|
* @param {string} siteId - Unique identifier for a Site
|
|
39
|
+
* @param {Webflow.AssetsListRequest} request
|
|
39
40
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
40
41
|
*
|
|
41
42
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -45,9 +46,12 @@ export declare class Assets {
|
|
|
45
46
|
* @throws {@link Webflow.InternalServerError}
|
|
46
47
|
*
|
|
47
48
|
* @example
|
|
48
|
-
* await client.assets.list("580e63e98c9a982ac9b8b741"
|
|
49
|
+
* await client.assets.list("580e63e98c9a982ac9b8b741", {
|
|
50
|
+
* offset: 1.1,
|
|
51
|
+
* limit: 1.1
|
|
52
|
+
* })
|
|
49
53
|
*/
|
|
50
|
-
list(siteId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.Assets>;
|
|
54
|
+
list(siteId: string, request?: Webflow.AssetsListRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.Assets>;
|
|
51
55
|
private __list;
|
|
52
56
|
/**
|
|
53
57
|
* The first step in uploading an asset to a site.
|
|
@@ -199,5 +203,5 @@ export declare class Assets {
|
|
|
199
203
|
*/
|
|
200
204
|
getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.AssetFolder>;
|
|
201
205
|
private __getFolder;
|
|
202
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
206
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
203
207
|
}
|
|
@@ -60,7 +60,7 @@ const errors = __importStar(require("../../../../errors/index"));
|
|
|
60
60
|
* Assets are files that are uploaded to your Webflow account.
|
|
61
61
|
*/
|
|
62
62
|
class Assets {
|
|
63
|
-
constructor(_options) {
|
|
63
|
+
constructor(_options = {}) {
|
|
64
64
|
this._options = _options;
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
@@ -69,6 +69,7 @@ class Assets {
|
|
|
69
69
|
* Required scope | `assets:read`
|
|
70
70
|
*
|
|
71
71
|
* @param {string} siteId - Unique identifier for a Site
|
|
72
|
+
* @param {Webflow.AssetsListRequest} request
|
|
72
73
|
* @param {Assets.RequestOptions} requestOptions - Request-specific configuration.
|
|
73
74
|
*
|
|
74
75
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -78,19 +79,31 @@ class Assets {
|
|
|
78
79
|
* @throws {@link Webflow.InternalServerError}
|
|
79
80
|
*
|
|
80
81
|
* @example
|
|
81
|
-
* await client.assets.list("580e63e98c9a982ac9b8b741"
|
|
82
|
+
* await client.assets.list("580e63e98c9a982ac9b8b741", {
|
|
83
|
+
* offset: 1.1,
|
|
84
|
+
* limit: 1.1
|
|
85
|
+
* })
|
|
82
86
|
*/
|
|
83
|
-
list(siteId, requestOptions) {
|
|
84
|
-
return core.HttpResponsePromise.fromPromise(this.__list(siteId, requestOptions));
|
|
87
|
+
list(siteId, request = {}, requestOptions) {
|
|
88
|
+
return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions));
|
|
85
89
|
}
|
|
86
|
-
__list(
|
|
87
|
-
return __awaiter(this,
|
|
90
|
+
__list(siteId_1) {
|
|
91
|
+
return __awaiter(this, arguments, void 0, function* (siteId, request = {}, requestOptions) {
|
|
88
92
|
var _a, _b, _c;
|
|
93
|
+
const { offset, limit } = request;
|
|
94
|
+
const _queryParams = {};
|
|
95
|
+
if (offset != null) {
|
|
96
|
+
_queryParams["offset"] = offset.toString();
|
|
97
|
+
}
|
|
98
|
+
if (limit != null) {
|
|
99
|
+
_queryParams["limit"] = limit.toString();
|
|
100
|
+
}
|
|
89
101
|
const _response = yield core.fetcher({
|
|
90
102
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
|
|
91
103
|
.base, `sites/${encodeURIComponent(siteId)}/assets`),
|
|
92
104
|
method: "GET",
|
|
93
105
|
headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
106
|
+
queryParameters: _queryParams,
|
|
94
107
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
95
108
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
96
109
|
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
@@ -934,7 +947,11 @@ class Assets {
|
|
|
934
947
|
}
|
|
935
948
|
_getAuthorizationHeader() {
|
|
936
949
|
return __awaiter(this, void 0, void 0, function* () {
|
|
937
|
-
|
|
950
|
+
const bearer = yield core.Supplier.get(this._options.accessToken);
|
|
951
|
+
if (bearer != null) {
|
|
952
|
+
return `Bearer ${bearer}`;
|
|
953
|
+
}
|
|
954
|
+
return undefined;
|
|
938
955
|
});
|
|
939
956
|
}
|
|
940
957
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* @example
|
|
6
|
+
* {
|
|
7
|
+
* offset: 1.1,
|
|
8
|
+
* limit: 1.1
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
export interface AssetsListRequest {
|
|
12
|
+
/**
|
|
13
|
+
* Offset used for pagination if the results have more than limit records
|
|
14
|
+
*/
|
|
15
|
+
offset?: number;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of records to be returned (max limit: 100)
|
|
18
|
+
*/
|
|
19
|
+
limit?: number;
|
|
20
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { type AssetsListRequest } from "./AssetsListRequest";
|
|
1
2
|
export { type AssetsCreateRequest } from "./AssetsCreateRequest";
|
|
2
3
|
export { type AssetsUpdateRequest } from "./AssetsUpdateRequest";
|
|
3
4
|
export { type AssetsCreateFolderRequest } from "./AssetsCreateFolderRequest";
|
|
@@ -11,7 +11,7 @@ export declare namespace Collections {
|
|
|
11
11
|
environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
|
|
12
12
|
/** Specify a custom URL to connect the client to. */
|
|
13
13
|
baseUrl?: core.Supplier<string>;
|
|
14
|
-
accessToken
|
|
14
|
+
accessToken?: core.Supplier<core.BearerToken | undefined>;
|
|
15
15
|
/** Additional headers to include in requests. */
|
|
16
16
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
17
17
|
}
|
|
@@ -33,7 +33,7 @@ export declare class Collections {
|
|
|
33
33
|
protected readonly _options: Collections.Options;
|
|
34
34
|
protected _fields: Fields | undefined;
|
|
35
35
|
protected _items: Items | undefined;
|
|
36
|
-
constructor(_options
|
|
36
|
+
constructor(_options?: Collections.Options);
|
|
37
37
|
get fields(): Fields;
|
|
38
38
|
get items(): Items;
|
|
39
39
|
/**
|
|
@@ -139,5 +139,5 @@ export declare class Collections {
|
|
|
139
139
|
*/
|
|
140
140
|
delete(collectionId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<void>;
|
|
141
141
|
private __delete;
|
|
142
|
-
protected _getAuthorizationHeader(): Promise<string>;
|
|
142
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
143
143
|
}
|
|
@@ -62,7 +62,7 @@ const Client_2 = require("../resources/items/client/Client");
|
|
|
62
62
|
* Collections are CMS collections of items.
|
|
63
63
|
*/
|
|
64
64
|
class Collections {
|
|
65
|
-
constructor(_options) {
|
|
65
|
+
constructor(_options = {}) {
|
|
66
66
|
this._options = _options;
|
|
67
67
|
}
|
|
68
68
|
get fields() {
|
|
@@ -522,7 +522,11 @@ class Collections {
|
|
|
522
522
|
}
|
|
523
523
|
_getAuthorizationHeader() {
|
|
524
524
|
return __awaiter(this, void 0, void 0, function* () {
|
|
525
|
-
|
|
525
|
+
const bearer = yield core.Supplier.get(this._options.accessToken);
|
|
526
|
+
if (bearer != null) {
|
|
527
|
+
return `Bearer ${bearer}`;
|
|
528
|
+
}
|
|
529
|
+
return undefined;
|
|
526
530
|
});
|
|
527
531
|
}
|
|
528
532
|
}
|