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,257 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: __package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/registered_scripts
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >
|
|
12
|
+
List of scripts registered to a Site.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
16
|
+
Scripts must first be registered
|
|
17
|
+
|
|
18
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
19
|
+
Site or Page using the appropriate
|
|
20
|
+
|
|
21
|
+
`custom_code` endpoints.
|
|
22
|
+
|
|
23
|
+
Additionally, Scripts can be remotely hosted, or registered as inline
|
|
24
|
+
snippets.
|
|
25
|
+
|
|
26
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
27
|
+
endpoint requires a bearer token from a <a
|
|
28
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
29
|
+
Client App</a>.</blockquote>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
Required scope | `custom_code:read`
|
|
33
|
+
source:
|
|
34
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
35
|
+
path-parameters:
|
|
36
|
+
site_id:
|
|
37
|
+
type: string
|
|
38
|
+
docs: Unique identifier for a Site
|
|
39
|
+
display-name: Get Registered Scripts
|
|
40
|
+
response:
|
|
41
|
+
docs: Request was successful
|
|
42
|
+
type: root.RegisteredScriptList
|
|
43
|
+
errors:
|
|
44
|
+
- root.BadRequestError
|
|
45
|
+
- root.UnauthorizedError
|
|
46
|
+
- root.NotFoundError
|
|
47
|
+
- root.TooManyRequestsError
|
|
48
|
+
- root.InternalServerError
|
|
49
|
+
examples:
|
|
50
|
+
- path-parameters:
|
|
51
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
52
|
+
response:
|
|
53
|
+
body:
|
|
54
|
+
registeredScripts:
|
|
55
|
+
- id: alert
|
|
56
|
+
canCopy: false
|
|
57
|
+
displayName: Alert
|
|
58
|
+
hostedLocation: https://cdn.webflow.io/.../alert-0.0.1.js
|
|
59
|
+
integrityHash: integrityHash
|
|
60
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
61
|
+
lastUpdated: lastUpdated
|
|
62
|
+
version: 0.0.1
|
|
63
|
+
- id: alert
|
|
64
|
+
canCopy: false
|
|
65
|
+
displayName: Alert
|
|
66
|
+
hostedLocation: https://cdn.webflow.io/.../alert-0.0.2.js
|
|
67
|
+
integrityHash: integrityHash
|
|
68
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
69
|
+
lastUpdated: lastUpdated
|
|
70
|
+
version: 0.0.2
|
|
71
|
+
- id: cms_slider
|
|
72
|
+
canCopy: true
|
|
73
|
+
displayName: CMS Slider
|
|
74
|
+
hostedLocation: https://cdn.jsdelivr.net/.../cms_slider.js
|
|
75
|
+
integrityHash: >-
|
|
76
|
+
sha384-J+YlJ8v0gpaRoKH7SbFbEmxOZlAxLiwNjfSsBhDooGa5roXlPPpXbEevck4J7YZ+
|
|
77
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
78
|
+
lastUpdated: lastUpdated
|
|
79
|
+
version: 1.0.0
|
|
80
|
+
register-hosted:
|
|
81
|
+
path: /sites/{site_id}/registered_scripts/hosted
|
|
82
|
+
method: POST
|
|
83
|
+
auth: true
|
|
84
|
+
docs: >
|
|
85
|
+
Add a script to a Site's Custom Code registry.
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
89
|
+
Scripts must first be registered
|
|
90
|
+
|
|
91
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
92
|
+
Site or Page using the appropriate
|
|
93
|
+
|
|
94
|
+
`custom_code` endpoints.
|
|
95
|
+
|
|
96
|
+
Additionally, Scripts can be remotely hosted, or registered as inline
|
|
97
|
+
snippets.
|
|
98
|
+
|
|
99
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
100
|
+
endpoint requires a bearer token from a <a
|
|
101
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
102
|
+
Client App</a>.</blockquote>
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
Required scope | `custom_code:write`
|
|
106
|
+
source:
|
|
107
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
108
|
+
path-parameters:
|
|
109
|
+
site_id:
|
|
110
|
+
type: string
|
|
111
|
+
docs: Unique identifier for a Site
|
|
112
|
+
display-name: Register Script - Hosted
|
|
113
|
+
request:
|
|
114
|
+
name: CustomCodeHostedRequest
|
|
115
|
+
body:
|
|
116
|
+
properties:
|
|
117
|
+
hostedLocation:
|
|
118
|
+
type: string
|
|
119
|
+
docs: URI for an externally hosted script location
|
|
120
|
+
integrityHash:
|
|
121
|
+
type: string
|
|
122
|
+
docs: Sub-Resource Integrity Hash
|
|
123
|
+
canCopy:
|
|
124
|
+
type: optional<boolean>
|
|
125
|
+
docs: >-
|
|
126
|
+
Define whether the script can be copied on site duplication and
|
|
127
|
+
transfer
|
|
128
|
+
default: false
|
|
129
|
+
version:
|
|
130
|
+
type: string
|
|
131
|
+
docs: >-
|
|
132
|
+
A Semantic Version (SemVer) string, denoting the version of the
|
|
133
|
+
script
|
|
134
|
+
displayName:
|
|
135
|
+
type: string
|
|
136
|
+
docs: >-
|
|
137
|
+
User-facing name for the script. Must be between 1 and 50
|
|
138
|
+
alphanumeric characters
|
|
139
|
+
content-type: application/json
|
|
140
|
+
response:
|
|
141
|
+
docs: Request was successful
|
|
142
|
+
type: root.CustomCodeHostedResponse
|
|
143
|
+
errors:
|
|
144
|
+
- root.BadRequestError
|
|
145
|
+
- root.UnauthorizedError
|
|
146
|
+
- root.NotFoundError
|
|
147
|
+
- root.TooManyRequestsError
|
|
148
|
+
- root.InternalServerError
|
|
149
|
+
examples:
|
|
150
|
+
- path-parameters:
|
|
151
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
152
|
+
request:
|
|
153
|
+
hostedLocation: hostedLocation
|
|
154
|
+
integrityHash: integrityHash
|
|
155
|
+
version: version
|
|
156
|
+
displayName: displayName
|
|
157
|
+
response:
|
|
158
|
+
body:
|
|
159
|
+
id: cms_slider
|
|
160
|
+
canCopy: true
|
|
161
|
+
displayName: CMS Slider
|
|
162
|
+
hostedLocation: https://cdn.jsdelivr.net/.../cmsslider.js
|
|
163
|
+
integrityHash: >-
|
|
164
|
+
sha384-J+YlJ8v0gpaRoKH7SbFbEmxOZlAxLiwNjfSsBhDooGa5roXlPPpXbEevck4J7YZ+
|
|
165
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
166
|
+
lastUpdated: lastUpdated
|
|
167
|
+
version: 1.0.0
|
|
168
|
+
register-inline:
|
|
169
|
+
path: /sites/{site_id}/registered_scripts/inline
|
|
170
|
+
method: POST
|
|
171
|
+
auth: true
|
|
172
|
+
docs: >
|
|
173
|
+
Add a script to a Site's Custom Code registry. Inline scripts can be
|
|
174
|
+
between 1 and 2000 characters.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
178
|
+
Scripts must first be registered
|
|
179
|
+
|
|
180
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
181
|
+
Site or Page using the appropriate
|
|
182
|
+
|
|
183
|
+
`custom_code` endpoints.
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
187
|
+
endpoint requires a bearer token from a <a
|
|
188
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
189
|
+
Client App</a>.</blockquote>
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
Required scope | `custom_code:write`
|
|
193
|
+
source:
|
|
194
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
195
|
+
path-parameters:
|
|
196
|
+
site_id:
|
|
197
|
+
type: string
|
|
198
|
+
docs: Unique identifier for a Site
|
|
199
|
+
display-name: Register Script - Inline
|
|
200
|
+
request:
|
|
201
|
+
name: CustomCodeInlineRequest
|
|
202
|
+
body:
|
|
203
|
+
properties:
|
|
204
|
+
sourceCode:
|
|
205
|
+
type: string
|
|
206
|
+
docs: The code to be added to the site (to be hosted by Webflow).
|
|
207
|
+
integrityHash:
|
|
208
|
+
type: optional<string>
|
|
209
|
+
docs: >-
|
|
210
|
+
Sub-Resource Integrity Hash. Only required for externally hosted
|
|
211
|
+
scripts (passed via hostedLocation)
|
|
212
|
+
canCopy:
|
|
213
|
+
type: optional<boolean>
|
|
214
|
+
docs: >-
|
|
215
|
+
Define whether the script can be copied on site duplication and
|
|
216
|
+
transfer
|
|
217
|
+
default: false
|
|
218
|
+
version:
|
|
219
|
+
type: string
|
|
220
|
+
docs: >-
|
|
221
|
+
A Semantic Version (SemVer) string, denoting the version of the
|
|
222
|
+
script
|
|
223
|
+
displayName:
|
|
224
|
+
type: string
|
|
225
|
+
docs: >-
|
|
226
|
+
User-facing name for the script. Must be between 1 and 50
|
|
227
|
+
alphanumeric characters
|
|
228
|
+
content-type: application/json
|
|
229
|
+
response:
|
|
230
|
+
docs: Created
|
|
231
|
+
type: root.CustomCodeInlineResponse
|
|
232
|
+
errors:
|
|
233
|
+
- root.BadRequestError
|
|
234
|
+
- root.UnauthorizedError
|
|
235
|
+
- root.NotFoundError
|
|
236
|
+
- root.TooManyRequestsError
|
|
237
|
+
- root.InternalServerError
|
|
238
|
+
examples:
|
|
239
|
+
- path-parameters:
|
|
240
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
241
|
+
request:
|
|
242
|
+
sourceCode: alert('hello world');
|
|
243
|
+
version: 0.0.1
|
|
244
|
+
displayName: Alert
|
|
245
|
+
response:
|
|
246
|
+
body:
|
|
247
|
+
id: alert
|
|
248
|
+
canCopy: false
|
|
249
|
+
displayName: Alert
|
|
250
|
+
hostedLocation: >-
|
|
251
|
+
https://uploads-ssl.webflow.com/6258612d1ee792848f805dcf%2F64b6c769ff52ba6c3d904a91%2F660d6e15b3d1696f2d2b1447%2Falert-0.0.1.js
|
|
252
|
+
integrityHash: integrityHash
|
|
253
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
254
|
+
lastUpdated: lastUpdated
|
|
255
|
+
version: 0.0.1
|
|
256
|
+
source:
|
|
257
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: ../__package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
list:
|
|
8
|
+
path: /sites/{site_id}/activity_logs
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >-
|
|
12
|
+
Retrieve Activity Logs for a specific Site. Requires Site to be on an
|
|
13
|
+
Enterprise plan. </br></br> Required scope | `site_activity:read`
|
|
14
|
+
source:
|
|
15
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
16
|
+
path-parameters:
|
|
17
|
+
site_id:
|
|
18
|
+
type: string
|
|
19
|
+
docs: Unique identifier for a Site
|
|
20
|
+
display-name: Get Site Activity Logs
|
|
21
|
+
request:
|
|
22
|
+
name: ActivityLogsListRequest
|
|
23
|
+
query-parameters:
|
|
24
|
+
limit:
|
|
25
|
+
type: optional<double>
|
|
26
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
27
|
+
offset:
|
|
28
|
+
type: optional<double>
|
|
29
|
+
docs: >-
|
|
30
|
+
Offset used for pagination if the results have more than limit
|
|
31
|
+
records
|
|
32
|
+
response:
|
|
33
|
+
docs: A list of site activity logs
|
|
34
|
+
type: root.SiteActivityLogResponse
|
|
35
|
+
errors:
|
|
36
|
+
- root.ForbiddenError
|
|
37
|
+
- root.NotFoundError
|
|
38
|
+
- root.TooManyRequestsError
|
|
39
|
+
- root.InternalServerError
|
|
40
|
+
examples:
|
|
41
|
+
- path-parameters:
|
|
42
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
43
|
+
response:
|
|
44
|
+
body:
|
|
45
|
+
items:
|
|
46
|
+
- id: 654c16c7b229e56bcf26872d
|
|
47
|
+
createdOn: '2023-11-08T23:16:23Z'
|
|
48
|
+
lastUpdated: '2023-11-08T23:16:23Z'
|
|
49
|
+
event: cms_collection
|
|
50
|
+
resourceOperation: CREATED
|
|
51
|
+
user:
|
|
52
|
+
id: 6509cd56e90eec668b009712
|
|
53
|
+
displayName: John Doe
|
|
54
|
+
resourceId: 654c16c7b229e56bcf26870c
|
|
55
|
+
resourceName: foo-bar
|
|
56
|
+
newValue: newValue
|
|
57
|
+
previousValue: previousValue
|
|
58
|
+
payload:
|
|
59
|
+
key: value
|
|
60
|
+
pagination:
|
|
61
|
+
limit: 25
|
|
62
|
+
offset: 0
|
|
63
|
+
total: 1
|
|
64
|
+
source:
|
|
65
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
imports:
|
|
2
|
+
root: ../__package__.yml
|
|
3
|
+
service:
|
|
4
|
+
auth: false
|
|
5
|
+
base-path: ''
|
|
6
|
+
endpoints:
|
|
7
|
+
get-custom-code:
|
|
8
|
+
path: /sites/{site_id}/custom_code
|
|
9
|
+
method: GET
|
|
10
|
+
auth: true
|
|
11
|
+
docs: >
|
|
12
|
+
Get all registered scripts that have been applied to a specific Site.
|
|
13
|
+
|
|
14
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
15
|
+
endpoint requires a bearer token from a <a
|
|
16
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
17
|
+
Client App</a>.</blockquote>
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
Required scope | `custom_code:read`
|
|
21
|
+
source:
|
|
22
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
23
|
+
path-parameters:
|
|
24
|
+
site_id:
|
|
25
|
+
type: string
|
|
26
|
+
docs: Unique identifier for a Site
|
|
27
|
+
display-name: Get Custom Code
|
|
28
|
+
response:
|
|
29
|
+
docs: Request was successful
|
|
30
|
+
type: root.ScriptApplyList
|
|
31
|
+
errors:
|
|
32
|
+
- root.BadRequestError
|
|
33
|
+
- root.UnauthorizedError
|
|
34
|
+
- root.NotFoundError
|
|
35
|
+
- root.TooManyRequestsError
|
|
36
|
+
- root.InternalServerError
|
|
37
|
+
examples:
|
|
38
|
+
- path-parameters:
|
|
39
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
40
|
+
response:
|
|
41
|
+
body:
|
|
42
|
+
scripts:
|
|
43
|
+
- id: cms_slider
|
|
44
|
+
location: header
|
|
45
|
+
version: 1.0.0
|
|
46
|
+
attributes:
|
|
47
|
+
my-attribute: some-value
|
|
48
|
+
- id: alert
|
|
49
|
+
location: header
|
|
50
|
+
version: 0.0.1
|
|
51
|
+
attributes:
|
|
52
|
+
key: value
|
|
53
|
+
lastUpdated: '2022-10-26T00:28:54.191Z'
|
|
54
|
+
createdOn: '2022-10-26T00:28:54.191Z'
|
|
55
|
+
upsert-custom-code:
|
|
56
|
+
path: /sites/{site_id}/custom_code
|
|
57
|
+
method: PUT
|
|
58
|
+
auth: true
|
|
59
|
+
docs: >
|
|
60
|
+
Add a registered script to a Site.
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
In order to use the Custom Code APIs for Sites and Pages, Custom Code
|
|
64
|
+
Scripts must first be registered
|
|
65
|
+
|
|
66
|
+
to a Site via the `registered_scripts` endpoints, and then applied to a
|
|
67
|
+
Site or Page using the appropriate
|
|
68
|
+
|
|
69
|
+
`custom_code` endpoints.
|
|
70
|
+
|
|
71
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
72
|
+
endpoint requires a bearer token from a <a
|
|
73
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
74
|
+
Client App</a>.</blockquote>
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
Required scope | `custom_code:write`
|
|
78
|
+
source:
|
|
79
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
80
|
+
path-parameters:
|
|
81
|
+
site_id:
|
|
82
|
+
type: string
|
|
83
|
+
docs: Unique identifier for a Site
|
|
84
|
+
display-name: Add/Update Custom Code
|
|
85
|
+
request:
|
|
86
|
+
body: root.ScriptApplyList
|
|
87
|
+
content-type: application/json
|
|
88
|
+
response:
|
|
89
|
+
docs: Request was successful
|
|
90
|
+
type: root.ScriptApplyList
|
|
91
|
+
errors:
|
|
92
|
+
- root.BadRequestError
|
|
93
|
+
- root.UnauthorizedError
|
|
94
|
+
- root.NotFoundError
|
|
95
|
+
- root.TooManyRequestsError
|
|
96
|
+
- root.InternalServerError
|
|
97
|
+
examples:
|
|
98
|
+
- path-parameters:
|
|
99
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
100
|
+
request:
|
|
101
|
+
scripts:
|
|
102
|
+
- id: cms_slider
|
|
103
|
+
location: header
|
|
104
|
+
version: 1.0.0
|
|
105
|
+
attributes:
|
|
106
|
+
my-attribute: some-value
|
|
107
|
+
- id: alert
|
|
108
|
+
location: header
|
|
109
|
+
version: 0.0.1
|
|
110
|
+
response:
|
|
111
|
+
body:
|
|
112
|
+
scripts:
|
|
113
|
+
- id: cms_slider
|
|
114
|
+
location: header
|
|
115
|
+
version: 1.0.0
|
|
116
|
+
attributes:
|
|
117
|
+
my-attribute: some-value
|
|
118
|
+
- id: alert
|
|
119
|
+
location: header
|
|
120
|
+
version: 0.0.1
|
|
121
|
+
attributes:
|
|
122
|
+
key: value
|
|
123
|
+
lastUpdated: lastUpdated
|
|
124
|
+
createdOn: createdOn
|
|
125
|
+
delete-custom-code:
|
|
126
|
+
path: /sites/{site_id}/custom_code
|
|
127
|
+
method: DELETE
|
|
128
|
+
auth: true
|
|
129
|
+
docs: >
|
|
130
|
+
Delete the custom code block that an app created for a Site
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
134
|
+
endpoint requires a bearer token from a <a
|
|
135
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
136
|
+
Client App</a>.</blockquote>
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
Required scope | `custom_code:write`
|
|
140
|
+
source:
|
|
141
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
142
|
+
path-parameters:
|
|
143
|
+
site_id:
|
|
144
|
+
type: string
|
|
145
|
+
docs: Unique identifier for a Site
|
|
146
|
+
display-name: Delete Custom Code
|
|
147
|
+
errors:
|
|
148
|
+
- root.BadRequestError
|
|
149
|
+
- root.UnauthorizedError
|
|
150
|
+
- root.NotFoundError
|
|
151
|
+
- root.TooManyRequestsError
|
|
152
|
+
- root.InternalServerError
|
|
153
|
+
examples:
|
|
154
|
+
- path-parameters:
|
|
155
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
156
|
+
list-custom-code-blocks:
|
|
157
|
+
path: /sites/{site_id}/custom_code/blocks
|
|
158
|
+
method: GET
|
|
159
|
+
auth: true
|
|
160
|
+
docs: >
|
|
161
|
+
Get all instances of Custom Code applied to a Site or Pages.
|
|
162
|
+
|
|
163
|
+
<blockquote class="callout callout_info" theme="📘">Access to this
|
|
164
|
+
endpoint requires a bearer token from a <a
|
|
165
|
+
href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data
|
|
166
|
+
Client App</a>.</blockquote>
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
Required scope | `custom_code:read`
|
|
170
|
+
source:
|
|
171
|
+
openapi: ../../../referenced-specs/v2.yml
|
|
172
|
+
path-parameters:
|
|
173
|
+
site_id:
|
|
174
|
+
type: string
|
|
175
|
+
docs: Unique identifier for a Site
|
|
176
|
+
display-name: List Custom Code Blocks
|
|
177
|
+
request:
|
|
178
|
+
name: ScriptsListCustomCodeBlocksRequest
|
|
179
|
+
query-parameters:
|
|
180
|
+
offset:
|
|
181
|
+
type: optional<double>
|
|
182
|
+
docs: >-
|
|
183
|
+
Offset used for pagination if the results have more than limit
|
|
184
|
+
records
|
|
185
|
+
limit:
|
|
186
|
+
type: optional<double>
|
|
187
|
+
docs: 'Maximum number of records to be returned (max limit: 100)'
|
|
188
|
+
response:
|
|
189
|
+
docs: Request was successful
|
|
190
|
+
type: root.ListCustomCodeBlocks
|
|
191
|
+
errors:
|
|
192
|
+
- root.BadRequestError
|
|
193
|
+
- root.UnauthorizedError
|
|
194
|
+
- root.NotFoundError
|
|
195
|
+
- root.TooManyRequestsError
|
|
196
|
+
- root.InternalServerError
|
|
197
|
+
examples:
|
|
198
|
+
- path-parameters:
|
|
199
|
+
site_id: 580e63e98c9a982ac9b8b741
|
|
200
|
+
response:
|
|
201
|
+
body:
|
|
202
|
+
blocks:
|
|
203
|
+
- siteId: 6258612d1ee792848f805dcf
|
|
204
|
+
pageId: pageId
|
|
205
|
+
type: site
|
|
206
|
+
scripts:
|
|
207
|
+
- id: chartjs
|
|
208
|
+
location: header
|
|
209
|
+
version: 4.4.2
|
|
210
|
+
attributes:
|
|
211
|
+
key: value
|
|
212
|
+
createdOn: '2024-04-03T16:49:15Z'
|
|
213
|
+
lastUpdated: '2024-04-03T16:49:15Z'
|
|
214
|
+
- siteId: 6390c49674a71f84b51a08d8
|
|
215
|
+
pageId: 6419db964a9c43f6a3af6348
|
|
216
|
+
type: page
|
|
217
|
+
scripts:
|
|
218
|
+
- id: id
|
|
219
|
+
location: header
|
|
220
|
+
version: version
|
|
221
|
+
createdOn: '2022-10-26T00:28:54Z'
|
|
222
|
+
lastUpdated: '2022-10-26T00:28:54Z'
|
|
223
|
+
pagination:
|
|
224
|
+
limit: 10
|
|
225
|
+
offset: 0
|
|
226
|
+
total: 1
|
|
227
|
+
source:
|
|
228
|
+
openapi: ../../../referenced-specs/v2.yml
|