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,80 @@
|
|
|
1
|
+
types:
|
|
2
|
+
AccessGroupsListRequestSort:
|
|
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
|
+
source:
|
|
11
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
12
|
+
imports:
|
|
13
|
+
root: __package__.yml
|
|
14
|
+
service:
|
|
15
|
+
auth: false
|
|
16
|
+
base-path: ''
|
|
17
|
+
endpoints:
|
|
18
|
+
list:
|
|
19
|
+
path: /sites/{site_id}/accessgroups
|
|
20
|
+
method: GET
|
|
21
|
+
auth: true
|
|
22
|
+
docs: |
|
|
23
|
+
Get a list of access groups for a site
|
|
24
|
+
|
|
25
|
+
Required scope | `users:read`
|
|
26
|
+
source:
|
|
27
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
28
|
+
path-parameters:
|
|
29
|
+
site_id:
|
|
30
|
+
type: string
|
|
31
|
+
docs: Unique identifier for a Site
|
|
32
|
+
display-name: List Access Groups
|
|
33
|
+
request:
|
|
34
|
+
name: AccessGroupsListRequest
|
|
35
|
+
query-parameters:
|
|
36
|
+
offset:
|
|
37
|
+
type: optional<double>
|
|
38
|
+
docs: >-
|
|
39
|
+
Offset used for pagination if the results have more than limit
|
|
40
|
+
records
|
|
41
|
+
limit:
|
|
42
|
+
type: optional<double>
|
|
43
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
44
|
+
sort:
|
|
45
|
+
type: optional<AccessGroupsListRequestSort>
|
|
46
|
+
docs: |
|
|
47
|
+
Sort string to use when ordering access groups
|
|
48
|
+
Can be prefixed with a `-` to reverse the sort (ex. `-CreatedOn`)
|
|
49
|
+
response:
|
|
50
|
+
docs: Request was successful
|
|
51
|
+
type: root.AccessGroupList
|
|
52
|
+
errors:
|
|
53
|
+
- root.BadRequestError
|
|
54
|
+
- root.UnauthorizedError
|
|
55
|
+
- root.ForbiddenError
|
|
56
|
+
- root.NotFoundError
|
|
57
|
+
- root.TooManyRequestsError
|
|
58
|
+
- root.InternalServerError
|
|
59
|
+
examples:
|
|
60
|
+
- path-parameters:
|
|
61
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
62
|
+
response:
|
|
63
|
+
body:
|
|
64
|
+
count: 1
|
|
65
|
+
limit: 10
|
|
66
|
+
offset: 0
|
|
67
|
+
total: 1
|
|
68
|
+
accessGroups:
|
|
69
|
+
- id: 62be58d404be8a6cc900c081
|
|
70
|
+
name: Research Team
|
|
71
|
+
shortId: rt
|
|
72
|
+
slug: hitchhikers-guide-research-team
|
|
73
|
+
createdOn: '2022-08-01T19:41:48Z'
|
|
74
|
+
- id: 65a96161991e77bbb4a6c573
|
|
75
|
+
name: Admin
|
|
76
|
+
shortId: ad
|
|
77
|
+
slug: admin
|
|
78
|
+
createdOn: '2022-08-01T19:41:48Z'
|
|
79
|
+
source:
|
|
80
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
name: api
|
|
2
|
+
error-discrimination:
|
|
3
|
+
strategy: status-code
|
|
4
|
+
display-name: Data API
|
|
5
|
+
environments:
|
|
6
|
+
Default: https://api.webflow.com/v2
|
|
7
|
+
default-environment: Default
|
|
8
|
+
auth-schemes:
|
|
9
|
+
BearerToken:
|
|
10
|
+
scheme: bearer
|
|
11
|
+
token:
|
|
12
|
+
name: accessToken
|
|
13
|
+
auth: BearerToken
|
|
@@ -0,0 +1,414 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/assets
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: |
|
|
12
|
+
List assets for a given site
|
|
13
|
+
|
|
14
|
+
Required scope | `assets: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 Assets
|
|
22
|
+
response:
|
|
23
|
+
docs: Request was successful
|
|
24
|
+
type: root.Assets
|
|
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
|
+
assets:
|
|
37
|
+
- id: 63e5889e7fe4eafa7384cea4
|
|
38
|
+
contentType: image/png
|
|
39
|
+
size: 2212772
|
|
40
|
+
siteId: 63938b302ea6b0aa6f3d8745
|
|
41
|
+
hostedUrl: >-
|
|
42
|
+
https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
|
|
43
|
+
originalFileName: Candy-Wrapper.svg
|
|
44
|
+
displayName: 63e5889e7fe4eafa7384cea4_Candy-Wrapper.png
|
|
45
|
+
lastUpdated: '2023-03-01T23:42:57Z'
|
|
46
|
+
createdOn: '2023-02-09T23:58:22Z'
|
|
47
|
+
variants:
|
|
48
|
+
- hostedUrl: >-
|
|
49
|
+
https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
50
|
+
originalFileName: >-
|
|
51
|
+
Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
52
|
+
displayName: >-
|
|
53
|
+
660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
|
|
54
|
+
format: png
|
|
55
|
+
width: 500
|
|
56
|
+
height: 900
|
|
57
|
+
quality: 100
|
|
58
|
+
altText: A red chair
|
|
59
|
+
create:
|
|
60
|
+
path: /sites/{site_id}/assets
|
|
61
|
+
method: POST
|
|
62
|
+
auth: true
|
|
63
|
+
docs: >
|
|
64
|
+
Create a new asset entry.
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
This endpoint generates a response with the following information:
|
|
69
|
+
`uploadUrl` and `uploadDetails`.
|
|
70
|
+
|
|
71
|
+
You can use these two properties to [upload the file to Amazon s3 by
|
|
72
|
+
making a
|
|
73
|
+
POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
|
|
74
|
+
|
|
75
|
+
request to the `uploadUrl` with the `uploadDetails` object as your
|
|
76
|
+
header information in the request.
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
Required scope | `assets:write`
|
|
80
|
+
source:
|
|
81
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
82
|
+
path-parameters:
|
|
83
|
+
site_id:
|
|
84
|
+
type: string
|
|
85
|
+
docs: Unique identifier for a Site
|
|
86
|
+
display-name: Create Asset Metadata
|
|
87
|
+
request:
|
|
88
|
+
name: AssetsCreateRequest
|
|
89
|
+
body:
|
|
90
|
+
properties:
|
|
91
|
+
fileName:
|
|
92
|
+
type: string
|
|
93
|
+
docs: >-
|
|
94
|
+
File name including file extension. File names must be less than
|
|
95
|
+
100 characters.
|
|
96
|
+
fileHash:
|
|
97
|
+
type: string
|
|
98
|
+
docs: MD5 hash of the file
|
|
99
|
+
parentFolder:
|
|
100
|
+
type: optional<string>
|
|
101
|
+
docs: ID of the Asset folder (optional)
|
|
102
|
+
content-type: application/json
|
|
103
|
+
response:
|
|
104
|
+
docs: Request was successful
|
|
105
|
+
type: root.AssetUpload
|
|
106
|
+
errors:
|
|
107
|
+
- root.BadRequestError
|
|
108
|
+
- root.UnauthorizedError
|
|
109
|
+
- root.NotFoundError
|
|
110
|
+
- root.TooManyRequestsError
|
|
111
|
+
- root.InternalServerError
|
|
112
|
+
examples:
|
|
113
|
+
- path-parameters:
|
|
114
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
115
|
+
request:
|
|
116
|
+
fileName: file.png
|
|
117
|
+
fileHash: 3c7d87c9575702bc3b1e991f4d3c638e
|
|
118
|
+
response:
|
|
119
|
+
body:
|
|
120
|
+
uploadDetails:
|
|
121
|
+
acl: public-read
|
|
122
|
+
bucket: webflow-bucket-name
|
|
123
|
+
X-Amz-Algorithm: AWS4-HMAC-SHA256
|
|
124
|
+
X-Amz-Credential: <credential-key>/<date>/<region-zone>/s3/aws4_request
|
|
125
|
+
X-Amz-Date: <date-in-iso-like-string>
|
|
126
|
+
key: <siteId>/<fileId>_<filename-with-extension>
|
|
127
|
+
Policy: <a-very-long-alphanumeric-token-with-equal-sign-at-the-end>
|
|
128
|
+
X-Amz-Signature: <one-line-ling-alphanumeric-signature>
|
|
129
|
+
success_action_status: '201'
|
|
130
|
+
content-type: image/png
|
|
131
|
+
Cache-Control: max-age=31536000, must-revalidate
|
|
132
|
+
contentType: image/png
|
|
133
|
+
id: 64358b9544249dc43d37d2b7
|
|
134
|
+
parentFolder: 6436b1ce5281cace05b65aea
|
|
135
|
+
uploadUrl: >-
|
|
136
|
+
https://s3.amazonaws.com/webflow-dev-assets/643021114e290e0d3a0602b2/64358b9544249dc43d37d2b7_Screenshot%202023-04-11%20at%209.50.42%20AM.png
|
|
137
|
+
assetUrl: >-
|
|
138
|
+
https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d907ab9e91e3e9f56385e_paranoidAndroid-2024.png
|
|
139
|
+
hostedUrl: >-
|
|
140
|
+
https://d1otoma47x30pg.cloudfront.net/643021114e290e0d3a0602b2/64358b9544249dc43d37d2b7_Screenshot%202023-04-11%20at%209.50.42%20AM.png
|
|
141
|
+
originalFileName: file.png
|
|
142
|
+
createdOn: '2023-04-11T16:32:21Z'
|
|
143
|
+
lastUpdated: '2023-04-12T20:31:03Z'
|
|
144
|
+
get:
|
|
145
|
+
path: /assets/{asset_id}
|
|
146
|
+
method: GET
|
|
147
|
+
auth: true
|
|
148
|
+
docs: |
|
|
149
|
+
Get an Asset
|
|
150
|
+
|
|
151
|
+
Required scope | `assets:read`
|
|
152
|
+
source:
|
|
153
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
154
|
+
path-parameters:
|
|
155
|
+
asset_id:
|
|
156
|
+
type: string
|
|
157
|
+
docs: Unique identifier for an Asset on a site
|
|
158
|
+
display-name: Get Asset
|
|
159
|
+
response:
|
|
160
|
+
docs: Request was successful
|
|
161
|
+
type: root.Asset
|
|
162
|
+
errors:
|
|
163
|
+
- root.BadRequestError
|
|
164
|
+
- root.UnauthorizedError
|
|
165
|
+
- root.NotFoundError
|
|
166
|
+
- root.TooManyRequestsError
|
|
167
|
+
- root.InternalServerError
|
|
168
|
+
examples:
|
|
169
|
+
- path-parameters:
|
|
170
|
+
asset_id: 580e63fc8c9a982ac9b8b745
|
|
171
|
+
response:
|
|
172
|
+
body:
|
|
173
|
+
id: 55131cd036c09f7d07883dfc
|
|
174
|
+
contentType: image/png
|
|
175
|
+
size: 1500
|
|
176
|
+
siteId: 62749158efef318abc8d5a0f
|
|
177
|
+
hostedUrl: example.com/hostedimage.png
|
|
178
|
+
originalFileName: image.png
|
|
179
|
+
displayName: example-image-123.png
|
|
180
|
+
lastUpdated: '2016-09-06T21:12:22Z'
|
|
181
|
+
createdOn: '2016-09-02T23:26:22Z'
|
|
182
|
+
variants:
|
|
183
|
+
- hostedUrl: example.com/hostedimage.png
|
|
184
|
+
originalFileName: image.png
|
|
185
|
+
displayName: A brown dog
|
|
186
|
+
format: format
|
|
187
|
+
width: 1500
|
|
188
|
+
height: 900
|
|
189
|
+
quality: 1
|
|
190
|
+
error: error
|
|
191
|
+
altText: A red chair
|
|
192
|
+
delete:
|
|
193
|
+
path: /assets/{asset_id}
|
|
194
|
+
method: DELETE
|
|
195
|
+
auth: true
|
|
196
|
+
docs: |
|
|
197
|
+
Delete an Asset
|
|
198
|
+
|
|
199
|
+
Required Scope: `assets: write`
|
|
200
|
+
source:
|
|
201
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
202
|
+
path-parameters:
|
|
203
|
+
asset_id:
|
|
204
|
+
type: string
|
|
205
|
+
docs: Unique identifier for an Asset on a site
|
|
206
|
+
display-name: Delete Asset
|
|
207
|
+
errors:
|
|
208
|
+
- root.BadRequestError
|
|
209
|
+
- root.UnauthorizedError
|
|
210
|
+
- root.NotFoundError
|
|
211
|
+
- root.TooManyRequestsError
|
|
212
|
+
- root.InternalServerError
|
|
213
|
+
examples:
|
|
214
|
+
- path-parameters:
|
|
215
|
+
asset_id: 580e63fc8c9a982ac9b8b745
|
|
216
|
+
update:
|
|
217
|
+
path: /assets/{asset_id}
|
|
218
|
+
method: PATCH
|
|
219
|
+
auth: true
|
|
220
|
+
docs: |
|
|
221
|
+
Update an Asset
|
|
222
|
+
|
|
223
|
+
Required scope | `assets:write`
|
|
224
|
+
source:
|
|
225
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
226
|
+
path-parameters:
|
|
227
|
+
asset_id:
|
|
228
|
+
type: string
|
|
229
|
+
docs: Unique identifier for an Asset on a site
|
|
230
|
+
display-name: Update Asset
|
|
231
|
+
request:
|
|
232
|
+
name: AssetsUpdateRequest
|
|
233
|
+
body:
|
|
234
|
+
properties:
|
|
235
|
+
localeId:
|
|
236
|
+
type: optional<string>
|
|
237
|
+
docs: >-
|
|
238
|
+
Unique identifier for a specific locale. Applicable, when using
|
|
239
|
+
localization.
|
|
240
|
+
displayName:
|
|
241
|
+
type: optional<string>
|
|
242
|
+
docs: A human readable name for the asset
|
|
243
|
+
content-type: application/json
|
|
244
|
+
response:
|
|
245
|
+
docs: Request was successful
|
|
246
|
+
type: root.Asset
|
|
247
|
+
errors:
|
|
248
|
+
- root.BadRequestError
|
|
249
|
+
- root.UnauthorizedError
|
|
250
|
+
- root.NotFoundError
|
|
251
|
+
- root.TooManyRequestsError
|
|
252
|
+
- root.InternalServerError
|
|
253
|
+
examples:
|
|
254
|
+
- path-parameters:
|
|
255
|
+
asset_id: 580e63fc8c9a982ac9b8b745
|
|
256
|
+
request: {}
|
|
257
|
+
response:
|
|
258
|
+
body:
|
|
259
|
+
id: 55131cd036c09f7d07883dfc
|
|
260
|
+
contentType: image/png
|
|
261
|
+
size: 1500
|
|
262
|
+
siteId: 62749158efef318abc8d5a0f
|
|
263
|
+
hostedUrl: example.com/hostedimage.png
|
|
264
|
+
originalFileName: image.png
|
|
265
|
+
displayName: example-image-123.png
|
|
266
|
+
lastUpdated: '2016-09-06T21:12:22Z'
|
|
267
|
+
createdOn: '2016-09-02T23:26:22Z'
|
|
268
|
+
variants:
|
|
269
|
+
- hostedUrl: example.com/hostedimage.png
|
|
270
|
+
originalFileName: image.png
|
|
271
|
+
displayName: A brown dog
|
|
272
|
+
format: format
|
|
273
|
+
width: 1500
|
|
274
|
+
height: 900
|
|
275
|
+
quality: 1
|
|
276
|
+
error: error
|
|
277
|
+
altText: A red chair
|
|
278
|
+
list-folders:
|
|
279
|
+
path: /sites/{site_id}/asset_folders
|
|
280
|
+
method: GET
|
|
281
|
+
auth: true
|
|
282
|
+
docs: |
|
|
283
|
+
List Asset Folders within a given site
|
|
284
|
+
|
|
285
|
+
Required scope | `assets:read`
|
|
286
|
+
source:
|
|
287
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
288
|
+
path-parameters:
|
|
289
|
+
site_id:
|
|
290
|
+
type: string
|
|
291
|
+
docs: Unique identifier for a Site
|
|
292
|
+
display-name: List Asset Folders
|
|
293
|
+
response:
|
|
294
|
+
docs: Request was successful
|
|
295
|
+
type: root.AssetFolderList
|
|
296
|
+
errors:
|
|
297
|
+
- root.BadRequestError
|
|
298
|
+
- root.UnauthorizedError
|
|
299
|
+
- root.NotFoundError
|
|
300
|
+
- root.TooManyRequestsError
|
|
301
|
+
- root.InternalServerError
|
|
302
|
+
examples:
|
|
303
|
+
- path-parameters:
|
|
304
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
305
|
+
response:
|
|
306
|
+
body:
|
|
307
|
+
assetFolders:
|
|
308
|
+
- id: 6390c49774a71f0e3c1a08ee
|
|
309
|
+
displayName: emoji icons
|
|
310
|
+
parentFolder: 6390c49774a71f99f21a08eb
|
|
311
|
+
assets:
|
|
312
|
+
- 63e5889e7fe4eafa7384cea4
|
|
313
|
+
- 659595234426a9fcbad57043
|
|
314
|
+
siteId: 6390c49674a71f84b51a08d8
|
|
315
|
+
createdOn: '2018-10-14T21:55:49Z'
|
|
316
|
+
lastUpdated: '2022-12-07T16:51:37Z'
|
|
317
|
+
pagination:
|
|
318
|
+
limit: 1
|
|
319
|
+
offset: 0
|
|
320
|
+
total: 1
|
|
321
|
+
create-folder:
|
|
322
|
+
path: /sites/{site_id}/asset_folders
|
|
323
|
+
method: POST
|
|
324
|
+
auth: true
|
|
325
|
+
docs: |
|
|
326
|
+
Create an Asset Folder within a given site
|
|
327
|
+
|
|
328
|
+
Required scope | `assets:write`
|
|
329
|
+
source:
|
|
330
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
331
|
+
path-parameters:
|
|
332
|
+
site_id:
|
|
333
|
+
type: string
|
|
334
|
+
docs: Unique identifier for a Site
|
|
335
|
+
display-name: Create Asset Folder
|
|
336
|
+
request:
|
|
337
|
+
name: AssetsCreateFolderRequest
|
|
338
|
+
body:
|
|
339
|
+
properties:
|
|
340
|
+
displayName:
|
|
341
|
+
type: string
|
|
342
|
+
docs: A human readable name for the Asset Folder
|
|
343
|
+
parentFolder:
|
|
344
|
+
type: optional<string>
|
|
345
|
+
docs: >-
|
|
346
|
+
An (optional) pointer to a parent Asset Folder (or null for
|
|
347
|
+
root)
|
|
348
|
+
content-type: application/json
|
|
349
|
+
response:
|
|
350
|
+
docs: Request was successful
|
|
351
|
+
type: root.AssetFolder
|
|
352
|
+
errors:
|
|
353
|
+
- root.BadRequestError
|
|
354
|
+
- root.UnauthorizedError
|
|
355
|
+
- root.NotFoundError
|
|
356
|
+
- root.TooManyRequestsError
|
|
357
|
+
- root.InternalServerError
|
|
358
|
+
examples:
|
|
359
|
+
- path-parameters:
|
|
360
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
361
|
+
request:
|
|
362
|
+
displayName: my asset folder
|
|
363
|
+
response:
|
|
364
|
+
body:
|
|
365
|
+
id: 6390c49774a71f0e3c1a08ee
|
|
366
|
+
displayName: emoji icons
|
|
367
|
+
parentFolder: 6390c49774a71f99f21a08eb
|
|
368
|
+
assets:
|
|
369
|
+
- 63e5889e7fe4eafa7384cea4
|
|
370
|
+
- 659595234426a9fcbad57043
|
|
371
|
+
siteId: 6390c49674a71f84b51a08d8
|
|
372
|
+
createdOn: '2018-10-14T21:55:49Z'
|
|
373
|
+
lastUpdated: '2022-12-07T16:51:37Z'
|
|
374
|
+
get-folder:
|
|
375
|
+
path: /asset_folders/{asset_folder_id}
|
|
376
|
+
method: GET
|
|
377
|
+
auth: true
|
|
378
|
+
docs: |
|
|
379
|
+
Get details about a specific Asset Folder
|
|
380
|
+
|
|
381
|
+
Required scope | `assets:read`
|
|
382
|
+
source:
|
|
383
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
384
|
+
path-parameters:
|
|
385
|
+
asset_folder_id:
|
|
386
|
+
type: string
|
|
387
|
+
docs: Unique identifier for an Asset Folder
|
|
388
|
+
display-name: Get Asset Folder
|
|
389
|
+
response:
|
|
390
|
+
docs: Request was successful
|
|
391
|
+
type: root.AssetFolder
|
|
392
|
+
errors:
|
|
393
|
+
- root.BadRequestError
|
|
394
|
+
- root.UnauthorizedError
|
|
395
|
+
- root.NotFoundError
|
|
396
|
+
- root.TooManyRequestsError
|
|
397
|
+
- root.InternalServerError
|
|
398
|
+
examples:
|
|
399
|
+
- path-parameters:
|
|
400
|
+
asset_folder_id: 6390c49774a71f0e3c1a08ee
|
|
401
|
+
response:
|
|
402
|
+
body:
|
|
403
|
+
id: 6390c49774a71f0e3c1a08ee
|
|
404
|
+
displayName: emoji icons
|
|
405
|
+
parentFolder: 6390c49774a71f99f21a08eb
|
|
406
|
+
assets:
|
|
407
|
+
- 63e5889e7fe4eafa7384cea4
|
|
408
|
+
- 659595234426a9fcbad57043
|
|
409
|
+
siteId: 6390c49674a71f84b51a08d8
|
|
410
|
+
createdOn: '2018-10-14T21:55:49Z'
|
|
411
|
+
lastUpdated: '2022-12-07T16:51:37Z'
|
|
412
|
+
source:
|
|
413
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
414
|
+
display-name: Assets
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
types:
|
|
2
|
+
FieldCreateType:
|
|
3
|
+
enum:
|
|
4
|
+
- PlainText
|
|
5
|
+
- RichText
|
|
6
|
+
- Image
|
|
7
|
+
- MultiImage
|
|
8
|
+
- Video
|
|
9
|
+
- Link
|
|
10
|
+
- Email
|
|
11
|
+
- Phone
|
|
12
|
+
- Number
|
|
13
|
+
- DateTime
|
|
14
|
+
- Switch
|
|
15
|
+
- Color
|
|
16
|
+
- File
|
|
17
|
+
docs: Choose these appropriate field type for your collection data
|
|
18
|
+
source:
|
|
19
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
20
|
+
imports:
|
|
21
|
+
root: ../__package__.yml
|
|
22
|
+
service:
|
|
23
|
+
auth: false
|
|
24
|
+
base-path: ''
|
|
25
|
+
endpoints:
|
|
26
|
+
create:
|
|
27
|
+
path: /collections/{collection_id}/fields
|
|
28
|
+
method: POST
|
|
29
|
+
auth: true
|
|
30
|
+
docs: >
|
|
31
|
+
Create a custom field in a collection.
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
Slugs must be all lowercase letters without spaces.
|
|
35
|
+
|
|
36
|
+
If you pass a string with uppercase letters and/or spaces to the "Slug"
|
|
37
|
+
property, Webflow will
|
|
38
|
+
|
|
39
|
+
convert the slug to lowercase and replace spaces with "-."
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
Only some field types can be created through the API.
|
|
43
|
+
|
|
44
|
+
This endpoint does not currently support bulk creation.
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
Required scope | `cms:write`
|
|
48
|
+
source:
|
|
49
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
50
|
+
path-parameters:
|
|
51
|
+
collection_id:
|
|
52
|
+
type: string
|
|
53
|
+
docs: Unique identifier for a Collection
|
|
54
|
+
display-name: Create Collection Field
|
|
55
|
+
request:
|
|
56
|
+
name: FieldCreate
|
|
57
|
+
body:
|
|
58
|
+
properties:
|
|
59
|
+
isRequired:
|
|
60
|
+
type: optional<boolean>
|
|
61
|
+
docs: define whether a field is required in a collection
|
|
62
|
+
type:
|
|
63
|
+
type: FieldCreateType
|
|
64
|
+
docs: Choose these appropriate field type for your collection data
|
|
65
|
+
displayName:
|
|
66
|
+
type: string
|
|
67
|
+
docs: The name of a field
|
|
68
|
+
helpText:
|
|
69
|
+
type: optional<string>
|
|
70
|
+
docs: Additional text to help anyone filling out this field
|
|
71
|
+
content-type: application/json
|
|
72
|
+
response:
|
|
73
|
+
docs: Request was successful
|
|
74
|
+
type: root.Field
|
|
75
|
+
errors:
|
|
76
|
+
- root.BadRequestError
|
|
77
|
+
- root.UnauthorizedError
|
|
78
|
+
- root.NotFoundError
|
|
79
|
+
- root.TooManyRequestsError
|
|
80
|
+
- root.InternalServerError
|
|
81
|
+
examples:
|
|
82
|
+
- path-parameters:
|
|
83
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
84
|
+
request:
|
|
85
|
+
isRequired: false
|
|
86
|
+
type: RichText
|
|
87
|
+
displayName: Post Body
|
|
88
|
+
helpText: Add the body of your post here
|
|
89
|
+
response:
|
|
90
|
+
body:
|
|
91
|
+
id: 75821f618da60c18383330bcc0ca488b
|
|
92
|
+
isRequired: false
|
|
93
|
+
isEditable: true
|
|
94
|
+
type: RichText
|
|
95
|
+
slug: post-body
|
|
96
|
+
displayName: Post Body
|
|
97
|
+
helpText: Add the body of your post here
|
|
98
|
+
delete:
|
|
99
|
+
path: /collections/{collection_id}/fields/{field_id}
|
|
100
|
+
method: DELETE
|
|
101
|
+
auth: true
|
|
102
|
+
docs: >
|
|
103
|
+
Delete a custom field in a collection. This endpoint does not currently
|
|
104
|
+
support bulk deletion.
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
Required scope | `cms:write`
|
|
108
|
+
source:
|
|
109
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
110
|
+
path-parameters:
|
|
111
|
+
collection_id:
|
|
112
|
+
type: string
|
|
113
|
+
docs: Unique identifier for a Collection
|
|
114
|
+
field_id:
|
|
115
|
+
type: string
|
|
116
|
+
docs: Unique identifier for a Field in a collection
|
|
117
|
+
display-name: Delete Collection Field
|
|
118
|
+
errors:
|
|
119
|
+
- root.BadRequestError
|
|
120
|
+
- root.UnauthorizedError
|
|
121
|
+
- root.NotFoundError
|
|
122
|
+
- root.TooManyRequestsError
|
|
123
|
+
- root.InternalServerError
|
|
124
|
+
examples:
|
|
125
|
+
- path-parameters:
|
|
126
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
127
|
+
field_id: 580e63fc8c9a982ac9b8b745
|
|
128
|
+
update:
|
|
129
|
+
path: /collections/{collection_id}/fields/{field_id}
|
|
130
|
+
method: PATCH
|
|
131
|
+
auth: true
|
|
132
|
+
docs: |
|
|
133
|
+
Update a custom field in a collection.
|
|
134
|
+
|
|
135
|
+
Required scope | `cms:write`
|
|
136
|
+
source:
|
|
137
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
138
|
+
path-parameters:
|
|
139
|
+
collection_id:
|
|
140
|
+
type: string
|
|
141
|
+
docs: Unique identifier for a Collection
|
|
142
|
+
field_id:
|
|
143
|
+
type: string
|
|
144
|
+
docs: Unique identifier for a Field in a collection
|
|
145
|
+
display-name: Update Collection Field
|
|
146
|
+
request:
|
|
147
|
+
name: FieldUpdate
|
|
148
|
+
body:
|
|
149
|
+
properties:
|
|
150
|
+
isRequired:
|
|
151
|
+
type: optional<boolean>
|
|
152
|
+
docs: Define whether a field is required in a collection
|
|
153
|
+
displayName:
|
|
154
|
+
type: optional<string>
|
|
155
|
+
docs: The name of a field
|
|
156
|
+
helpText:
|
|
157
|
+
type: optional<string>
|
|
158
|
+
docs: Additional text to help anyone filling out this field
|
|
159
|
+
content-type: application/json
|
|
160
|
+
response:
|
|
161
|
+
docs: Request was successful
|
|
162
|
+
type: root.Field
|
|
163
|
+
errors:
|
|
164
|
+
- root.BadRequestError
|
|
165
|
+
- root.UnauthorizedError
|
|
166
|
+
- root.NotFoundError
|
|
167
|
+
- root.TooManyRequestsError
|
|
168
|
+
- root.InternalServerError
|
|
169
|
+
examples:
|
|
170
|
+
- path-parameters:
|
|
171
|
+
collection_id: 580e63fc8c9a982ac9b8b745
|
|
172
|
+
field_id: 580e63fc8c9a982ac9b8b745
|
|
173
|
+
request:
|
|
174
|
+
isRequired: false
|
|
175
|
+
displayName: Post Body
|
|
176
|
+
helpText: Add the body of your post here
|
|
177
|
+
response:
|
|
178
|
+
body:
|
|
179
|
+
id: 75821f618da60c18383330bcc0ca488b
|
|
180
|
+
isRequired: false
|
|
181
|
+
isEditable: true
|
|
182
|
+
type: RichText
|
|
183
|
+
slug: post-body
|
|
184
|
+
displayName: Post Body
|
|
185
|
+
helpText: Add the body of your post here
|
|
186
|
+
source:
|
|
187
|
+
openapi: ../../../referenced-specs/v2.yml
|