webflow-api 2.4.0 → 2.5.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 +2495 -0
- package/.mock/definition/accessGroups.yml +80 -0
- package/.mock/definition/api.yml +13 -0
- package/.mock/definition/assets.yml +414 -0
- package/.mock/definition/collections/fields.yml +187 -0
- package/.mock/definition/collections/items.yml +1511 -0
- package/.mock/definition/collections.yml +185 -0
- package/.mock/definition/ecommerce.yml +42 -0
- package/.mock/definition/forms.yml +301 -0
- package/.mock/definition/inventory.yml +120 -0
- package/.mock/definition/orders.yml +1569 -0
- package/.mock/definition/pages/scripts.yml +169 -0
- package/.mock/definition/pages.yml +443 -0
- package/.mock/definition/products.yml +500 -0
- package/.mock/definition/scripts.yml +257 -0
- package/.mock/definition/sites/activityLogs.yml +65 -0
- package/.mock/definition/sites/scripts.yml +228 -0
- package/.mock/definition/sites.yml +299 -0
- package/.mock/definition/token.yml +71 -0
- package/.mock/definition/users.yml +392 -0
- package/.mock/definition/webhooks.yml +189 -0
- package/.mock/fern.config.json +4 -0
- package/Client.d.ts +2 -0
- package/README.md +23 -30
- package/api/errors/InternalServerError.d.ts +2 -1
- package/api/errors/NotFoundError.d.ts +2 -1
- package/api/errors/TooManyRequestsError.d.ts +1 -1
- package/api/errors/UnauthorizedError.d.ts +2 -1
- package/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/api/resources/accessGroups/client/Client.js +27 -15
- package/api/resources/assets/client/Client.d.ts +31 -11
- package/api/resources/assets/client/Client.js +236 -126
- package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/api/resources/collections/client/Client.d.ts +15 -22
- package/api/resources/collections/client/Client.js +109 -137
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/api/resources/collections/resources/items/client/Client.js +959 -221
- package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.js +9 -0
- package/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/api/resources/ecommerce/client/Client.js +24 -14
- package/api/resources/forms/client/Client.d.ts +17 -5
- package/api/resources/forms/client/Client.js +140 -76
- package/api/resources/inventory/client/Client.d.ts +8 -1
- package/api/resources/inventory/client/Client.js +59 -30
- package/api/resources/orders/client/Client.d.ts +7 -2
- package/api/resources/orders/client/Client.js +164 -89
- package/api/resources/pages/client/Client.d.ts +25 -14
- package/api/resources/pages/client/Client.js +169 -100
- package/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/api/resources/products/client/Client.d.ts +26 -10
- package/api/resources/products/client/Client.js +188 -98
- package/api/resources/scripts/client/Client.d.ts +31 -3
- package/api/resources/scripts/client/Client.js +111 -47
- package/api/resources/sites/client/Client.d.ts +16 -4
- package/api/resources/sites/client/Client.js +101 -59
- package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/api/resources/token/client/Client.d.ts +7 -2
- package/api/resources/token/client/Client.js +23 -24
- package/api/resources/users/client/Client.d.ts +21 -6
- package/api/resources/users/client/Client.js +149 -78
- package/api/resources/webhooks/client/Client.d.ts +15 -2
- package/api/resources/webhooks/client/Client.js +114 -59
- package/api/types/AssetFolder.d.ts +1 -1
- package/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/api/types/AuthorizedUser.d.ts +1 -1
- package/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItem.d.ts +1 -1
- package/api/types/CollectionItemFieldData.d.ts +1 -1
- package/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/api/types/CollectionItemListNoPagination.js +5 -0
- package/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/api/types/CollectionItemWithIdInput.js +5 -0
- package/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/api/types/ConflictErrorBody.d.ts +1 -10
- package/api/types/CustomCodeBlock.d.ts +2 -2
- package/api/types/DuplicateUserEmail.d.ts +1 -11
- package/api/types/ErrorCode.d.ts +38 -0
- package/api/types/ErrorCode.js +37 -0
- package/api/types/Error_.d.ts +1 -1
- package/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/api/types/Form.d.ts +8 -8
- package/api/types/FormSubmission.d.ts +3 -3
- package/api/types/InvalidScopes.d.ts +4 -0
- package/api/types/InvalidScopes.js +5 -0
- package/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/api/types/Order.d.ts +5 -1
- package/api/types/Page.d.ts +2 -0
- package/api/types/Site.d.ts +4 -0
- package/api/types/SiteActivityLogItem.d.ts +1 -1
- package/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/api/types/SiteActivityLogItemEvent.js +50 -0
- package/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/api/types/SiteDataCollectionType.d.ts +12 -0
- package/api/types/SiteDataCollectionType.js +11 -0
- package/api/types/UserLimitReached.d.ts +1 -11
- package/api/types/UsersNotEnabled.d.ts +1 -11
- package/api/types/index.d.ts +10 -6
- package/api/types/index.js +10 -6
- package/core/fetcher/Fetcher.d.ts +1 -1
- package/core/fetcher/getResponseBody.js +3 -0
- package/core/fetcher/requestWithRetries.js +13 -4
- package/core/schemas/builders/object/object.js +28 -0
- package/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/Client.d.ts +2 -0
- package/dist/api/errors/InternalServerError.d.ts +2 -1
- package/dist/api/errors/NotFoundError.d.ts +2 -1
- package/dist/api/errors/TooManyRequestsError.d.ts +1 -1
- package/dist/api/errors/UnauthorizedError.d.ts +2 -1
- package/dist/api/resources/accessGroups/client/Client.d.ts +5 -1
- package/dist/api/resources/accessGroups/client/Client.js +27 -15
- package/dist/api/resources/assets/client/Client.d.ts +31 -11
- package/dist/api/resources/assets/client/Client.js +236 -126
- package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +5 -5
- package/dist/api/resources/collections/client/Client.d.ts +15 -22
- package/dist/api/resources/collections/client/Client.js +109 -137
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -2
- package/dist/api/resources/collections/resources/fields/client/Client.js +163 -32
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +302 -30
- package/dist/api/resources/collections/resources/items/client/Client.js +959 -221
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +61 -0
- package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +11 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +128 -0
- package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +8 -0
- package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +5 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.js +9 -0
- package/dist/api/resources/ecommerce/client/Client.d.ts +2 -0
- package/dist/api/resources/ecommerce/client/Client.js +24 -14
- package/dist/api/resources/forms/client/Client.d.ts +17 -5
- package/dist/api/resources/forms/client/Client.js +140 -76
- package/dist/api/resources/inventory/client/Client.d.ts +8 -1
- package/dist/api/resources/inventory/client/Client.js +59 -30
- package/dist/api/resources/orders/client/Client.d.ts +7 -2
- package/dist/api/resources/orders/client/Client.js +164 -89
- package/dist/api/resources/pages/client/Client.d.ts +25 -14
- package/dist/api/resources/pages/client/Client.js +169 -100
- package/dist/api/resources/pages/client/requests/DomWrite.d.ts +6 -6
- package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
- package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +3 -4
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +29 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +104 -46
- package/dist/api/resources/products/client/Client.d.ts +26 -10
- package/dist/api/resources/products/client/Client.js +188 -98
- package/dist/api/resources/scripts/client/Client.d.ts +31 -3
- package/dist/api/resources/scripts/client/Client.js +111 -47
- package/dist/api/resources/sites/client/Client.d.ts +16 -4
- package/dist/api/resources/sites/client/Client.js +101 -59
- package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +17 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +26 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +125 -61
- package/dist/api/resources/token/client/Client.d.ts +7 -2
- package/dist/api/resources/token/client/Client.js +23 -24
- package/dist/api/resources/users/client/Client.d.ts +21 -6
- package/dist/api/resources/users/client/Client.js +149 -78
- package/dist/api/resources/webhooks/client/Client.d.ts +15 -2
- package/dist/api/resources/webhooks/client/Client.js +114 -59
- package/dist/api/types/AssetFolder.d.ts +1 -1
- package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
- package/dist/api/types/AuthorizedUser.d.ts +1 -1
- package/dist/api/types/BulkCollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItem.d.ts +1 -1
- package/dist/api/types/CollectionItemFieldData.d.ts +1 -1
- package/dist/api/types/CollectionItemListNoPagination.d.ts +11 -0
- package/dist/api/types/CollectionItemListNoPagination.js +5 -0
- package/dist/api/types/CollectionItemWithIdInput.d.ts +24 -0
- package/dist/api/types/CollectionItemWithIdInput.js +5 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.d.ts +11 -0
- package/dist/api/types/CollectionItemWithIdInputFieldData.js +5 -0
- package/dist/api/types/ConflictErrorBody.d.ts +1 -10
- package/dist/api/types/CustomCodeBlock.d.ts +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +1 -11
- package/dist/api/types/ErrorCode.d.ts +38 -0
- package/dist/api/types/ErrorCode.js +37 -0
- package/dist/api/types/Error_.d.ts +1 -1
- package/dist/api/types/ForbiddenErrorBody.d.ts +2 -7
- package/dist/api/types/Form.d.ts +8 -8
- package/dist/api/types/FormSubmission.d.ts +3 -3
- package/dist/api/types/InvalidScopes.d.ts +4 -0
- package/dist/api/types/InvalidScopes.js +5 -0
- package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -11
- package/dist/api/types/Order.d.ts +5 -1
- package/dist/api/types/Page.d.ts +2 -0
- package/dist/api/types/Site.d.ts +4 -0
- package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
- package/dist/api/types/SiteActivityLogItemEvent.d.ts +48 -0
- package/dist/api/types/SiteActivityLogItemEvent.js +50 -0
- package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +5 -1
- package/dist/api/types/SiteActivityLogItemResourceOperation.js +4 -0
- package/dist/api/types/SiteDataCollectionType.d.ts +12 -0
- package/dist/api/types/SiteDataCollectionType.js +11 -0
- package/dist/api/types/UserLimitReached.d.ts +1 -11
- package/dist/api/types/UsersNotEnabled.d.ts +1 -11
- package/dist/api/types/index.d.ts +10 -6
- package/dist/api/types/index.js +10 -6
- package/dist/core/fetcher/Fetcher.d.ts +1 -1
- package/dist/core/fetcher/getResponseBody.js +3 -0
- package/dist/core/fetcher/requestWithRetries.js +13 -4
- package/dist/core/schemas/builders/object/object.js +28 -0
- package/dist/core/schemas/builders/object/types.d.ts +5 -0
- package/dist/errors/WebflowTimeoutError.d.ts +1 -1
- package/dist/errors/WebflowTimeoutError.js +2 -2
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/dist/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItem.d.ts +1 -1
- package/dist/serialization/types/CollectionItem.js +1 -1
- package/dist/serialization/types/CollectionItemFieldData.js +4 -2
- package/dist/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/dist/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/dist/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/dist/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/dist/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/dist/serialization/types/{MissingScopes.js → CollectionItemWithIdInputFieldData.js} +7 -8
- package/dist/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/dist/serialization/types/ConflictErrorBody.js +3 -7
- package/dist/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/dist/serialization/types/DuplicateUserEmail.js +1 -7
- package/dist/serialization/types/ErrorCode.d.ts +10 -0
- package/dist/serialization/types/ErrorCode.js +61 -0
- package/dist/serialization/types/Error_.d.ts +2 -1
- package/dist/serialization/types/Error_.js +2 -1
- package/dist/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/dist/serialization/types/ForbiddenErrorBody.js +3 -7
- package/dist/serialization/types/Form.d.ts +1 -1
- package/dist/serialization/types/Form.js +1 -1
- package/dist/serialization/types/InvalidScopes.d.ts +10 -0
- package/{serialization/types/MissingScopes.js → dist/serialization/types/InvalidScopes.js} +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/dist/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/dist/serialization/types/Page.d.ts +1 -0
- package/dist/serialization/types/Page.js +1 -0
- package/dist/serialization/types/Site.d.ts +3 -0
- package/dist/serialization/types/Site.js +3 -0
- package/dist/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/dist/serialization/types/SiteActivityLogItem.js +2 -1
- package/dist/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/dist/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/dist/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/dist/serialization/types/SiteDataCollectionType.js +31 -0
- package/dist/serialization/types/UserLimitReached.d.ts +2 -8
- package/dist/serialization/types/UserLimitReached.js +1 -7
- package/dist/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/dist/serialization/types/UsersNotEnabled.js +1 -7
- package/dist/serialization/types/index.d.ts +10 -5
- package/dist/serialization/types/index.js +10 -5
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/ItemsClient.d.ts +23 -49
- package/dist/wrapper/ItemsClient.js +50 -216
- package/dist/wrapper/WebflowClient.d.ts +1 -1
- package/dist/wrapper/WebflowClient.js +11 -1
- package/errors/WebflowTimeoutError.d.ts +1 -1
- package/errors/WebflowTimeoutError.js +2 -2
- package/package.json +1 -2
- package/reference.md +821 -230
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -1
- package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +2 -1
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +16 -0
- package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +37 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +13 -0
- package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +34 -0
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +5 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +11 -1
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +36 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.d.ts +14 -0
- package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js +36 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +12 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +33 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.d.ts +13 -0
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +34 -0
- package/serialization/resources/collections/resources/items/types/index.d.ts +9 -0
- package/serialization/resources/collections/resources/items/types/index.js +9 -0
- package/serialization/resources/pages/client/requests/DomWrite.d.ts +1 -1
- package/serialization/types/BulkCollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItem.d.ts +1 -1
- package/serialization/types/CollectionItem.js +1 -1
- package/serialization/types/CollectionItemFieldData.js +4 -2
- package/serialization/types/CollectionItemListNoPagination.d.ts +13 -0
- package/serialization/types/{TooManyRequestsErrorBody.js → CollectionItemListNoPagination.js} +4 -6
- package/serialization/types/CollectionItemWithIdInput.d.ts +20 -0
- package/serialization/types/CollectionItemWithIdInput.js +41 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.d.ts +14 -0
- package/serialization/types/CollectionItemWithIdInputFieldData.js +36 -0
- package/serialization/types/ConflictErrorBody.d.ts +4 -8
- package/serialization/types/ConflictErrorBody.js +3 -7
- package/serialization/types/DuplicateUserEmail.d.ts +2 -8
- package/serialization/types/DuplicateUserEmail.js +1 -7
- package/serialization/types/ErrorCode.d.ts +10 -0
- package/serialization/types/ErrorCode.js +61 -0
- package/serialization/types/Error_.d.ts +2 -1
- package/serialization/types/Error_.js +2 -1
- package/serialization/types/ForbiddenErrorBody.d.ts +4 -8
- package/serialization/types/ForbiddenErrorBody.js +3 -7
- package/serialization/types/Form.d.ts +1 -1
- package/serialization/types/Form.js +1 -1
- package/serialization/types/InvalidScopes.d.ts +10 -0
- package/serialization/types/InvalidScopes.js +31 -0
- package/serialization/types/NotEnterprisePlanSite.d.ts +2 -8
- package/serialization/types/NotEnterprisePlanSite.js +1 -7
- package/serialization/types/Page.d.ts +1 -0
- package/serialization/types/Page.js +1 -0
- package/serialization/types/Site.d.ts +3 -0
- package/serialization/types/Site.js +3 -0
- package/serialization/types/SiteActivityLogItem.d.ts +2 -1
- package/serialization/types/SiteActivityLogItem.js +2 -1
- package/serialization/types/SiteActivityLogItemEvent.d.ts +10 -0
- package/serialization/types/SiteActivityLogItemEvent.js +74 -0
- package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
- package/serialization/types/SiteActivityLogItemResourceOperation.js +11 -1
- package/serialization/types/SiteDataCollectionType.d.ts +10 -0
- package/serialization/types/SiteDataCollectionType.js +31 -0
- package/serialization/types/UserLimitReached.d.ts +2 -8
- package/serialization/types/UserLimitReached.js +1 -7
- package/serialization/types/UsersNotEnabled.d.ts +2 -8
- package/serialization/types/UsersNotEnabled.js +1 -7
- package/serialization/types/index.d.ts +10 -5
- package/serialization/types/index.js +10 -5
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/ItemsClient.d.ts +23 -49
- package/wrapper/ItemsClient.js +50 -216
- package/wrapper/WebflowClient.d.ts +1 -1
- package/wrapper/WebflowClient.js +11 -1
- package/api/types/MissingScopes.d.ts +0 -14
- package/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/api/types/MissingScopes.d.ts +0 -14
- package/dist/api/types/TooManyRequestsErrorBody.d.ts +0 -9
- package/dist/serialization/types/MissingScopes.d.ts +0 -16
- package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- package/serialization/types/MissingScopes.d.ts +0 -16
- package/serialization/types/TooManyRequestsErrorBody.d.ts +0 -15
- /package/api/{types/MissingScopes.js → resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js} +0 -0
- /package/api/{types/TooManyRequestsErrorBody.js → resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js} +0 -0
- /package/{dist/api/types/MissingScopes.js → api/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js} +0 -0
- /package/{dist/api/types/TooManyRequestsErrorBody.js → api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js} +0 -0
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
types:
|
|
2
|
+
UsersListRequestSort:
|
|
3
|
+
enum:
|
|
4
|
+
- value: CreatedOn
|
|
5
|
+
name: CreatedOnAscending
|
|
6
|
+
docs: Sorts users in ascending order based on their created date
|
|
7
|
+
- value: '-CreatedOn'
|
|
8
|
+
name: CreatedOnDescending
|
|
9
|
+
docs: Sorts users in descending order based on their created date
|
|
10
|
+
- value: Email
|
|
11
|
+
name: EmailAscending
|
|
12
|
+
docs: Sorts users in ascending order based on their email
|
|
13
|
+
- value: '-Email'
|
|
14
|
+
name: EmailDescending
|
|
15
|
+
docs: Sorts users in descending order based on their email
|
|
16
|
+
- value: Status
|
|
17
|
+
name: StatusAscending
|
|
18
|
+
docs: Sorts users in ascending order based on their status
|
|
19
|
+
- value: '-Status'
|
|
20
|
+
name: StatusDescending
|
|
21
|
+
docs: Sorts users in descending order based on their status
|
|
22
|
+
- value: LastLogin
|
|
23
|
+
name: LastLoginAscending
|
|
24
|
+
docs: Sorts users in ascending order based on their last login date
|
|
25
|
+
- value: '-LastLogin'
|
|
26
|
+
name: LastLoginDescending
|
|
27
|
+
docs: Sorts users in descending order based on their last login date
|
|
28
|
+
- value: UpdatedOn
|
|
29
|
+
name: UpdatedOnAscending
|
|
30
|
+
docs: Sorts users in ascending order based on their update date
|
|
31
|
+
- value: '-UpdatedOn'
|
|
32
|
+
name: UpdatedOnDescending
|
|
33
|
+
docs: Sorts users in descending order based on their update date
|
|
34
|
+
source:
|
|
35
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
36
|
+
UsersUpdateRequestData:
|
|
37
|
+
properties:
|
|
38
|
+
name:
|
|
39
|
+
type: optional<string>
|
|
40
|
+
docs: |
|
|
41
|
+
The name of the user
|
|
42
|
+
accept-privacy:
|
|
43
|
+
type: optional<boolean>
|
|
44
|
+
docs: |
|
|
45
|
+
Boolean indicating if the user has accepted the privacy policy
|
|
46
|
+
accept-communications:
|
|
47
|
+
type: optional<boolean>
|
|
48
|
+
docs: |
|
|
49
|
+
Boolean indicating if the user has accepted to receive communications
|
|
50
|
+
source:
|
|
51
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
52
|
+
inline: true
|
|
53
|
+
imports:
|
|
54
|
+
root: __package__.yml
|
|
55
|
+
service:
|
|
56
|
+
auth: false
|
|
57
|
+
base-path: ''
|
|
58
|
+
endpoints:
|
|
59
|
+
list:
|
|
60
|
+
path: /sites/{site_id}/users
|
|
61
|
+
method: GET
|
|
62
|
+
auth: true
|
|
63
|
+
docs: |
|
|
64
|
+
Get a list of users for a site
|
|
65
|
+
|
|
66
|
+
Required scope | `users:read`
|
|
67
|
+
source:
|
|
68
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
69
|
+
path-parameters:
|
|
70
|
+
site_id:
|
|
71
|
+
type: string
|
|
72
|
+
docs: Unique identifier for a Site
|
|
73
|
+
display-name: List Users
|
|
74
|
+
request:
|
|
75
|
+
name: UsersListRequest
|
|
76
|
+
query-parameters:
|
|
77
|
+
offset:
|
|
78
|
+
type: optional<double>
|
|
79
|
+
docs: >-
|
|
80
|
+
Offset used for pagination if the results have more than limit
|
|
81
|
+
records
|
|
82
|
+
limit:
|
|
83
|
+
type: optional<double>
|
|
84
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
85
|
+
sort:
|
|
86
|
+
type: optional<UsersListRequestSort>
|
|
87
|
+
docs: |
|
|
88
|
+
Sort string to use when ordering users
|
|
89
|
+
|
|
90
|
+
Example(`CreatedOn`, `Email`, `Status`, `LastLogin`, `UpdatedOn`).
|
|
91
|
+
|
|
92
|
+
Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`)
|
|
93
|
+
response:
|
|
94
|
+
docs: Request was successful
|
|
95
|
+
type: root.UserList
|
|
96
|
+
errors:
|
|
97
|
+
- root.BadRequestError
|
|
98
|
+
- root.UnauthorizedError
|
|
99
|
+
- root.ForbiddenError
|
|
100
|
+
- root.NotFoundError
|
|
101
|
+
- root.TooManyRequestsError
|
|
102
|
+
- root.InternalServerError
|
|
103
|
+
examples:
|
|
104
|
+
- path-parameters:
|
|
105
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
106
|
+
response:
|
|
107
|
+
body:
|
|
108
|
+
count: 5
|
|
109
|
+
limit: 5
|
|
110
|
+
offset: 0
|
|
111
|
+
total: 201
|
|
112
|
+
users:
|
|
113
|
+
- id: 6287ec36a841b25637c663df
|
|
114
|
+
isEmailVerified: false
|
|
115
|
+
lastUpdated: '2022-05-20T13:46:12Z'
|
|
116
|
+
invitedOn: '2016-10-24T19:41:29Z'
|
|
117
|
+
createdOn: '2022-05-20T13:46:12Z'
|
|
118
|
+
lastLogin: '2016-10-24T19:41:29Z'
|
|
119
|
+
status: unverified
|
|
120
|
+
accessGroups:
|
|
121
|
+
- slug: vogon-construction-crew
|
|
122
|
+
type: admin
|
|
123
|
+
- id: 6287ec36a841b25637c663f0
|
|
124
|
+
isEmailVerified: false
|
|
125
|
+
lastUpdated: '2022-05-19T05:32:04Z'
|
|
126
|
+
invitedOn: '2016-10-24T19:41:29Z'
|
|
127
|
+
createdOn: '2022-05-19T05:32:04Z'
|
|
128
|
+
lastLogin: '2016-10-24T19:41:29Z'
|
|
129
|
+
status: unverified
|
|
130
|
+
accessGroups:
|
|
131
|
+
- slug: improbability-drive-test-subjects
|
|
132
|
+
type: admin
|
|
133
|
+
- id: 6287ec36a841b25637c663d9
|
|
134
|
+
isEmailVerified: true
|
|
135
|
+
lastUpdated: '2022-05-17T03:34:06Z'
|
|
136
|
+
invitedOn: '2016-10-24T19:41:29Z'
|
|
137
|
+
createdOn: '2022-05-17T03:34:06Z'
|
|
138
|
+
lastLogin: '2016-10-24T19:41:29Z'
|
|
139
|
+
status: verified
|
|
140
|
+
accessGroups:
|
|
141
|
+
- slug: heart-of-gold-crew
|
|
142
|
+
type: admin
|
|
143
|
+
- id: 6287ec37a841b25637c6641b
|
|
144
|
+
isEmailVerified: false
|
|
145
|
+
lastUpdated: '2022-05-15T03:46:09Z'
|
|
146
|
+
invitedOn: '2016-10-24T19:41:29Z'
|
|
147
|
+
createdOn: '2022-05-15T03:46:09Z'
|
|
148
|
+
lastLogin: '2016-10-24T19:41:29Z'
|
|
149
|
+
status: unverified
|
|
150
|
+
accessGroups:
|
|
151
|
+
- slug: hitchhikers-guide-research-team
|
|
152
|
+
type: admin
|
|
153
|
+
- id: 6287ec37a841b25637c66449
|
|
154
|
+
isEmailVerified: true
|
|
155
|
+
lastUpdated: '2022-05-15T02:55:38Z'
|
|
156
|
+
invitedOn: '2016-10-24T19:41:29Z'
|
|
157
|
+
createdOn: '2022-05-15T02:55:38Z'
|
|
158
|
+
lastLogin: '2016-10-24T19:41:29Z'
|
|
159
|
+
status: verified
|
|
160
|
+
accessGroups:
|
|
161
|
+
- slug: milliways-reservationists
|
|
162
|
+
type: admin
|
|
163
|
+
get:
|
|
164
|
+
path: /sites/{site_id}/users/{user_id}
|
|
165
|
+
method: GET
|
|
166
|
+
auth: true
|
|
167
|
+
docs: |
|
|
168
|
+
Get a User by ID
|
|
169
|
+
|
|
170
|
+
Required scope | `users:read`
|
|
171
|
+
source:
|
|
172
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
173
|
+
path-parameters:
|
|
174
|
+
site_id:
|
|
175
|
+
type: string
|
|
176
|
+
docs: Unique identifier for a Site
|
|
177
|
+
user_id:
|
|
178
|
+
type: string
|
|
179
|
+
docs: Unique identifier for a User
|
|
180
|
+
display-name: Get User
|
|
181
|
+
response:
|
|
182
|
+
docs: Request was successful
|
|
183
|
+
type: root.User
|
|
184
|
+
errors:
|
|
185
|
+
- root.BadRequestError
|
|
186
|
+
- root.UnauthorizedError
|
|
187
|
+
- root.ForbiddenError
|
|
188
|
+
- root.NotFoundError
|
|
189
|
+
- root.TooManyRequestsError
|
|
190
|
+
- root.InternalServerError
|
|
191
|
+
examples:
|
|
192
|
+
- path-parameters:
|
|
193
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
194
|
+
user_id: 580e63e98c9a982ac9b8b741
|
|
195
|
+
response:
|
|
196
|
+
body:
|
|
197
|
+
id: 6287ec36a841b25637c663df
|
|
198
|
+
isEmailVerified: true
|
|
199
|
+
lastUpdated: '2022-05-20T13:46:12Z'
|
|
200
|
+
invitedOn: '2022-05-20T13:46:12Z'
|
|
201
|
+
createdOn: '2022-05-20T13:46:12Z'
|
|
202
|
+
lastLogin: '2022-05-20T13:46:12Z'
|
|
203
|
+
status: verified
|
|
204
|
+
accessGroups:
|
|
205
|
+
- slug: webflowers
|
|
206
|
+
type: admin
|
|
207
|
+
data:
|
|
208
|
+
data:
|
|
209
|
+
name: name
|
|
210
|
+
email: email
|
|
211
|
+
accept-privacy: true
|
|
212
|
+
accept-communications: true
|
|
213
|
+
additionalProperties: additionalProperties
|
|
214
|
+
delete:
|
|
215
|
+
path: /sites/{site_id}/users/{user_id}
|
|
216
|
+
method: DELETE
|
|
217
|
+
auth: true
|
|
218
|
+
docs: |
|
|
219
|
+
Delete a User by ID
|
|
220
|
+
|
|
221
|
+
Required scope | `users:write`
|
|
222
|
+
source:
|
|
223
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
224
|
+
path-parameters:
|
|
225
|
+
site_id:
|
|
226
|
+
type: string
|
|
227
|
+
docs: Unique identifier for a Site
|
|
228
|
+
user_id:
|
|
229
|
+
type: string
|
|
230
|
+
docs: Unique identifier for a User
|
|
231
|
+
display-name: Delete User
|
|
232
|
+
errors:
|
|
233
|
+
- root.BadRequestError
|
|
234
|
+
- root.UnauthorizedError
|
|
235
|
+
- root.ForbiddenError
|
|
236
|
+
- root.NotFoundError
|
|
237
|
+
- root.TooManyRequestsError
|
|
238
|
+
- root.InternalServerError
|
|
239
|
+
examples:
|
|
240
|
+
- path-parameters:
|
|
241
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
242
|
+
user_id: 580e63e98c9a982ac9b8b741
|
|
243
|
+
update:
|
|
244
|
+
path: /sites/{site_id}/users/{user_id}
|
|
245
|
+
method: PATCH
|
|
246
|
+
auth: true
|
|
247
|
+
docs: |
|
|
248
|
+
Update a User by ID
|
|
249
|
+
|
|
250
|
+
Required scope | `users:write`
|
|
251
|
+
|
|
252
|
+
<Note class="notice">The <code>email</code> and <code>password</code>
|
|
253
|
+
fields cannot be updated using this endpoint</Note>
|
|
254
|
+
source:
|
|
255
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
256
|
+
path-parameters:
|
|
257
|
+
site_id:
|
|
258
|
+
type: string
|
|
259
|
+
docs: Unique identifier for a Site
|
|
260
|
+
user_id:
|
|
261
|
+
type: string
|
|
262
|
+
docs: Unique identifier for a User
|
|
263
|
+
display-name: Update User
|
|
264
|
+
request:
|
|
265
|
+
name: UsersUpdateRequest
|
|
266
|
+
body:
|
|
267
|
+
properties:
|
|
268
|
+
data: optional<UsersUpdateRequestData>
|
|
269
|
+
accessGroups:
|
|
270
|
+
type: optional<list<string>>
|
|
271
|
+
docs: >
|
|
272
|
+
An array of access group slugs. Access groups are assigned to
|
|
273
|
+
the user as type `admin` and the user remains in the group until
|
|
274
|
+
removed.
|
|
275
|
+
content-type: application/json
|
|
276
|
+
response:
|
|
277
|
+
docs: Request was successful
|
|
278
|
+
type: root.User
|
|
279
|
+
errors:
|
|
280
|
+
- root.BadRequestError
|
|
281
|
+
- root.UnauthorizedError
|
|
282
|
+
- root.ForbiddenError
|
|
283
|
+
- root.NotFoundError
|
|
284
|
+
- root.TooManyRequestsError
|
|
285
|
+
- root.InternalServerError
|
|
286
|
+
examples:
|
|
287
|
+
- path-parameters:
|
|
288
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
289
|
+
user_id: 580e63e98c9a982ac9b8b741
|
|
290
|
+
request:
|
|
291
|
+
data:
|
|
292
|
+
name: Some One
|
|
293
|
+
accept-privacy: false
|
|
294
|
+
accept-communications: false
|
|
295
|
+
accessGroups:
|
|
296
|
+
- webflowers
|
|
297
|
+
- platinum
|
|
298
|
+
- free-tier
|
|
299
|
+
response:
|
|
300
|
+
body:
|
|
301
|
+
id: 6287ec36a841b25637c663df
|
|
302
|
+
isEmailVerified: true
|
|
303
|
+
lastUpdated: '2022-05-20T13:46:12Z'
|
|
304
|
+
invitedOn: '2022-05-20T13:46:12Z'
|
|
305
|
+
createdOn: '2022-05-20T13:46:12Z'
|
|
306
|
+
lastLogin: '2022-05-20T13:46:12Z'
|
|
307
|
+
status: verified
|
|
308
|
+
accessGroups:
|
|
309
|
+
- slug: webflowers
|
|
310
|
+
type: admin
|
|
311
|
+
data:
|
|
312
|
+
data:
|
|
313
|
+
name: name
|
|
314
|
+
email: email
|
|
315
|
+
accept-privacy: true
|
|
316
|
+
accept-communications: true
|
|
317
|
+
additionalProperties: additionalProperties
|
|
318
|
+
invite:
|
|
319
|
+
path: /sites/{site_id}/users/invite
|
|
320
|
+
method: POST
|
|
321
|
+
auth: true
|
|
322
|
+
docs: >
|
|
323
|
+
Create and invite a user with an email address.
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
The user will be sent and invite via email, which they will need to
|
|
327
|
+
accept in order to join paid any paid access group.
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
Required scope | `users:write`
|
|
331
|
+
source:
|
|
332
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
333
|
+
path-parameters:
|
|
334
|
+
site_id:
|
|
335
|
+
type: string
|
|
336
|
+
docs: Unique identifier for a Site
|
|
337
|
+
display-name: Create and Invite a User
|
|
338
|
+
request:
|
|
339
|
+
name: UsersInviteRequest
|
|
340
|
+
body:
|
|
341
|
+
properties:
|
|
342
|
+
email:
|
|
343
|
+
type: string
|
|
344
|
+
docs: Email address of user to send invite to
|
|
345
|
+
validation:
|
|
346
|
+
format: email
|
|
347
|
+
accessGroups:
|
|
348
|
+
type: optional<list<string>>
|
|
349
|
+
docs: >
|
|
350
|
+
An array of access group slugs. Access groups are assigned to
|
|
351
|
+
the user as type `admin` and the user remains in the group until
|
|
352
|
+
removed.
|
|
353
|
+
content-type: application/json
|
|
354
|
+
response:
|
|
355
|
+
docs: Request was successful
|
|
356
|
+
type: root.User
|
|
357
|
+
errors:
|
|
358
|
+
- root.BadRequestError
|
|
359
|
+
- root.UnauthorizedError
|
|
360
|
+
- root.ForbiddenError
|
|
361
|
+
- root.NotFoundError
|
|
362
|
+
- root.ConflictError
|
|
363
|
+
- root.TooManyRequestsError
|
|
364
|
+
- root.InternalServerError
|
|
365
|
+
examples:
|
|
366
|
+
- path-parameters:
|
|
367
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
368
|
+
request:
|
|
369
|
+
email: some.one@home.com
|
|
370
|
+
accessGroups:
|
|
371
|
+
- webflowers
|
|
372
|
+
response:
|
|
373
|
+
body:
|
|
374
|
+
id: 6287ec36a841b25637c663df
|
|
375
|
+
isEmailVerified: true
|
|
376
|
+
lastUpdated: '2022-05-20T13:46:12Z'
|
|
377
|
+
invitedOn: '2022-05-20T13:46:12Z'
|
|
378
|
+
createdOn: '2022-05-20T13:46:12Z'
|
|
379
|
+
lastLogin: '2022-05-20T13:46:12Z'
|
|
380
|
+
status: verified
|
|
381
|
+
accessGroups:
|
|
382
|
+
- slug: webflowers
|
|
383
|
+
type: admin
|
|
384
|
+
data:
|
|
385
|
+
data:
|
|
386
|
+
name: name
|
|
387
|
+
email: email
|
|
388
|
+
accept-privacy: true
|
|
389
|
+
accept-communications: true
|
|
390
|
+
additionalProperties: additionalProperties
|
|
391
|
+
source:
|
|
392
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/webhooks
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List all App-created Webhooks registered for a given site
|
|
13
|
+
|
|
14
|
+
Required scope | `sites:read`
|
|
15
|
+
source:
|
|
16
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
17
|
+
path-parameters:
|
|
18
|
+
site_id:
|
|
19
|
+
type: string
|
|
20
|
+
docs: Unique identifier for a Site
|
|
21
|
+
display-name: List Webhooks
|
|
22
|
+
response:
|
|
23
|
+
docs: Request was successful
|
|
24
|
+
type: root.WebhookList
|
|
25
|
+
errors:
|
|
26
|
+
- root.BadRequestError
|
|
27
|
+
- root.UnauthorizedError
|
|
28
|
+
- root.NotFoundError
|
|
29
|
+
- root.TooManyRequestsError
|
|
30
|
+
- root.InternalServerError
|
|
31
|
+
examples:
|
|
32
|
+
- path-parameters:
|
|
33
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
34
|
+
response:
|
|
35
|
+
body:
|
|
36
|
+
pagination:
|
|
37
|
+
limit: 100
|
|
38
|
+
offset: 0
|
|
39
|
+
total: 100
|
|
40
|
+
webhooks:
|
|
41
|
+
- id: 57ca0a9e418c504a6e1acbb6
|
|
42
|
+
triggerType: form_submission
|
|
43
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
44
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
45
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
46
|
+
filter:
|
|
47
|
+
name: Email Form
|
|
48
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
49
|
+
createdOn: '2016-09-02T23:26:22Z'
|
|
50
|
+
- id: 578d85cce0c47cd2865f4cf2
|
|
51
|
+
triggerType: form_submission
|
|
52
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
53
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
54
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
55
|
+
filter:
|
|
56
|
+
name: Email Form
|
|
57
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
58
|
+
createdOn: '2016-07-19T01:43:40Z'
|
|
59
|
+
- id: 578d85cce0c47cd2865f4cf3
|
|
60
|
+
triggerType: form_submission
|
|
61
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
62
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
63
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
64
|
+
filter:
|
|
65
|
+
name: Email Form
|
|
66
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
67
|
+
createdOn: '2016-07-19T01:43:40Z'
|
|
68
|
+
create:
|
|
69
|
+
path: /sites/{site_id}/webhooks
|
|
70
|
+
method: POST
|
|
71
|
+
auth: true
|
|
72
|
+
docs: >
|
|
73
|
+
Create a new Webhook.
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
Limit of 75 registrations per `triggerType`, per site.
|
|
77
|
+
|
|
78
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
79
|
+
endpoint requires a bearer token from a <a
|
|
80
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
81
|
+
Client App</a>.</blockquote>
|
|
82
|
+
|
|
83
|
+
Required scope | `sites:write`
|
|
84
|
+
source:
|
|
85
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
86
|
+
path-parameters:
|
|
87
|
+
site_id:
|
|
88
|
+
type: string
|
|
89
|
+
docs: Unique identifier for a Site
|
|
90
|
+
display-name: Create Webhook
|
|
91
|
+
request:
|
|
92
|
+
body: root.Webhook
|
|
93
|
+
content-type: application/json
|
|
94
|
+
response:
|
|
95
|
+
docs: Request was successful
|
|
96
|
+
type: root.Webhook
|
|
97
|
+
errors:
|
|
98
|
+
- root.BadRequestError
|
|
99
|
+
- root.UnauthorizedError
|
|
100
|
+
- root.NotFoundError
|
|
101
|
+
- root.TooManyRequestsError
|
|
102
|
+
- root.InternalServerError
|
|
103
|
+
examples:
|
|
104
|
+
- path-parameters:
|
|
105
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
106
|
+
request:
|
|
107
|
+
id: 582266e0cd48de0f0e3c6d8b
|
|
108
|
+
triggerType: form_submission
|
|
109
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
110
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
111
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
112
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
113
|
+
createdOn: '2022-11-08T23:59:28Z'
|
|
114
|
+
response:
|
|
115
|
+
body:
|
|
116
|
+
id: 582266e0cd48de0f0e3c6d8b
|
|
117
|
+
triggerType: form_submission
|
|
118
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
119
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
120
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
121
|
+
filter:
|
|
122
|
+
name: My Form
|
|
123
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
124
|
+
createdOn: '2022-11-08T23:59:28Z'
|
|
125
|
+
get:
|
|
126
|
+
path: /webhooks/{webhook_id}
|
|
127
|
+
method: GET
|
|
128
|
+
auth: true
|
|
129
|
+
docs: |
|
|
130
|
+
Get a specific Webhook instance
|
|
131
|
+
|
|
132
|
+
Required scope: `sites:read`
|
|
133
|
+
source:
|
|
134
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
135
|
+
path-parameters:
|
|
136
|
+
webhook_id:
|
|
137
|
+
type: string
|
|
138
|
+
docs: Unique identifier for a Webhook
|
|
139
|
+
display-name: Get Webhook
|
|
140
|
+
response:
|
|
141
|
+
docs: Request was successful
|
|
142
|
+
type: root.Webhook
|
|
143
|
+
errors:
|
|
144
|
+
- root.BadRequestError
|
|
145
|
+
- root.UnauthorizedError
|
|
146
|
+
- root.NotFoundError
|
|
147
|
+
- root.TooManyRequestsError
|
|
148
|
+
- root.InternalServerError
|
|
149
|
+
examples:
|
|
150
|
+
- path-parameters:
|
|
151
|
+
webhook_id: 580e64008c9a982ac9b8b754
|
|
152
|
+
response:
|
|
153
|
+
body:
|
|
154
|
+
id: 582266e0cd48de0f0e3c6d8b
|
|
155
|
+
triggerType: form_submission
|
|
156
|
+
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
157
|
+
workspaceId: 4f4e46fd476ea8c507000001
|
|
158
|
+
siteId: 562ac0395358780a1f5e6fbd
|
|
159
|
+
filter:
|
|
160
|
+
name: My Form
|
|
161
|
+
lastTriggered: '2023-02-08T23:59:28Z'
|
|
162
|
+
createdOn: '2022-11-08T23:59:28Z'
|
|
163
|
+
delete:
|
|
164
|
+
path: /webhooks/{webhook_id}
|
|
165
|
+
method: DELETE
|
|
166
|
+
auth: true
|
|
167
|
+
docs: |
|
|
168
|
+
Remove a Webhook
|
|
169
|
+
|
|
170
|
+
Required scope: `sites:read`
|
|
171
|
+
source:
|
|
172
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
173
|
+
path-parameters:
|
|
174
|
+
webhook_id:
|
|
175
|
+
type: string
|
|
176
|
+
docs: Unique identifier for a Webhook
|
|
177
|
+
display-name: Remove Webhook
|
|
178
|
+
errors:
|
|
179
|
+
- root.BadRequestError
|
|
180
|
+
- root.UnauthorizedError
|
|
181
|
+
- root.NotFoundError
|
|
182
|
+
- root.TooManyRequestsError
|
|
183
|
+
- root.InternalServerError
|
|
184
|
+
examples:
|
|
185
|
+
- path-parameters:
|
|
186
|
+
webhook_id: 580e64008c9a982ac9b8b754
|
|
187
|
+
source:
|
|
188
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
189
|
+
display-name: Webhooks
|
package/Client.d.ts
CHANGED
|
@@ -29,6 +29,8 @@ export declare namespace WebflowClient {
|
|
|
29
29
|
maxRetries?: number;
|
|
30
30
|
/** A hook to abort the request. */
|
|
31
31
|
abortSignal?: AbortSignal;
|
|
32
|
+
/** Additional headers to include in the request. */
|
|
33
|
+
headers?: Record<string, string>;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
export declare class WebflowClient {
|
package/README.md
CHANGED
|
@@ -12,34 +12,6 @@ The SDK contains typings and request builders for the Webflow Data API.
|
|
|
12
12
|
|
|
13
13
|
Explore the [API reference documentation](https://developers.webflow.com/reference/rest-introduction).
|
|
14
14
|
|
|
15
|
-
## V2 Migration Guide
|
|
16
|
-
|
|
17
|
-
> The SDK was rewritten in V2 and is now programatically generated from our OpenAPI spec. As part of this release there are some breaking changes.
|
|
18
|
-
|
|
19
|
-
#### Client Instantiation
|
|
20
|
-
The SDK exports `WebflowClient` instead of `Webflow`. The client now takes `accessToken` instead of `token`.
|
|
21
|
-
|
|
22
|
-
```ts
|
|
23
|
-
const webflow = new WebflowClient({ accessToken: "..." });
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
#### Oauth
|
|
27
|
-
The `WebflowClient` exports static methods that you can use for OAuth. These were previously on `Webflow`.
|
|
28
|
-
|
|
29
|
-
`webflow.authorizeUrl` -> `WebflowClient.authorizeURL`
|
|
30
|
-
|
|
31
|
-
`webflow.accessToken` -> `WebflowClient.getAccessToken`
|
|
32
|
-
|
|
33
|
-
`webflow.revokeToken` -> `WebflowClient.revokeToken`
|
|
34
|
-
|
|
35
|
-
#### HTTP Client
|
|
36
|
-
The SDK no longer uses Axios and defaults to fetch. The SDK supports multiple runtimes and will handle
|
|
37
|
-
using a fetch implementation if available or will default to `node-fetch`.
|
|
38
|
-
|
|
39
|
-
### Resources
|
|
40
|
-
Previously the SDK only supported the most important resources, such as site and user. Now the SDK supports
|
|
41
|
-
methods on a variety of different endpoints such as `collections`, `assets`, `forms`, `inventory`, `orders`, etc.
|
|
42
|
-
|
|
43
15
|
## Installation
|
|
44
16
|
|
|
45
17
|
Add this dependency to your project's package.json file:
|
|
@@ -65,7 +37,28 @@ import { WebflowClient } from "webflow-api";
|
|
|
65
37
|
|
|
66
38
|
const webflow = new WebflowClient({ accessToken });
|
|
67
39
|
|
|
68
|
-
|
|
40
|
+
// Env. variables
|
|
41
|
+
// in format of string, e.g.: "639656400769508adc12fe42"
|
|
42
|
+
const site_id = process.env.SITE_ID;
|
|
43
|
+
const custom_domain_id_1 = process.env.CUSTOM_DOMAIN_ID_1;
|
|
44
|
+
const custom_domain_id_2 = process.env.CUSTOM_DOMAIN_ID_2;
|
|
45
|
+
|
|
46
|
+
// Sites
|
|
47
|
+
|
|
48
|
+
// List Sites
|
|
49
|
+
const sites = await webflow.sites.list();
|
|
50
|
+
|
|
51
|
+
// Get Site
|
|
52
|
+
const site = await webflow.sites.get("site_id");
|
|
53
|
+
|
|
54
|
+
// Get Custom Domains
|
|
55
|
+
const customDomains = await webflow.sites.getCustomDomain(site_id);
|
|
56
|
+
|
|
57
|
+
// Publish Site
|
|
58
|
+
const site = await webflow.sites.publish(site_id, {
|
|
59
|
+
customDomains: [custom_domain_id_1, custom_domain_id_2],
|
|
60
|
+
publishToWebflowSubdomain: true,
|
|
61
|
+
});
|
|
69
62
|
```
|
|
70
63
|
|
|
71
64
|
## OAuth
|
|
@@ -85,7 +78,7 @@ const authorizeUrl = WebflowClient.authorizeURL({
|
|
|
85
78
|
state: "your_state",
|
|
86
79
|
scope: "sites:read",
|
|
87
80
|
clientId: "your_client_id",
|
|
88
|
-
|
|
81
|
+
redirectUri: "your_redirect_uri",
|
|
89
82
|
});
|
|
90
83
|
|
|
91
84
|
console.log(authorizeUrl);
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Webflow from "../index";
|
|
5
6
|
export declare class InternalServerError extends errors.WebflowError {
|
|
6
|
-
constructor(body
|
|
7
|
+
constructor(body: Webflow.Error_);
|
|
7
8
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as errors from "../../errors/index";
|
|
5
|
+
import * as Webflow from "../index";
|
|
5
6
|
export declare class NotFoundError extends errors.WebflowError {
|
|
6
|
-
constructor(body
|
|
7
|
+
constructor(body: Webflow.Error_);
|
|
7
8
|
}
|