webflow-api 2.1.1 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Client.d.ts +3 -3
- package/Client.js +6 -6
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +1 -1
- package/api/resources/assets/client/Client.js +9 -9
- package/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +1 -1
- package/api/resources/collections/client/Client.js +5 -5
- package/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/api/resources/collections/resources/items/client/Client.d.ts +51 -22
- package/api/resources/collections/resources/items/client/Client.js +119 -33
- package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/api/resources/collections/resources/items/types/index.js +1 -0
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.js +5 -5
- package/api/resources/index.d.ts +2 -2
- package/api/resources/index.js +3 -3
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -2
- package/api/resources/orders/types/index.d.ts +0 -1
- package/api/resources/orders/types/index.js +0 -1
- package/api/resources/pages/client/Client.js +5 -5
- package/api/resources/pages/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/pages/resources/scripts/client/Client.js +6 -6
- package/api/resources/products/client/Client.d.ts +2 -2
- package/api/resources/products/client/Client.js +8 -8
- package/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +2 -2
- package/api/resources/scripts/client/Client.d.ts +3 -3
- package/api/resources/scripts/client/Client.js +6 -6
- package/api/resources/sites/client/Client.d.ts +2 -2
- package/api/resources/sites/client/Client.js +6 -6
- package/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/api/resources/sites/resources/scripts/client/Client.js +8 -8
- package/api/resources/token/client/Client.d.ts +1 -1
- package/api/resources/token/client/Client.js +3 -3
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/webhooks/client/Client.d.ts +3 -3
- package/api/resources/webhooks/client/Client.js +7 -7
- package/api/types/Application.d.ts +1 -10
- package/api/types/Authorization.d.ts +1 -1
- package/api/types/CustomCodeBlock.d.ts +1 -1
- package/{dist/api/types/Assets.d.ts → api/types/Domains.d.ts} +2 -2
- package/api/types/DuplicateUserEmail.d.ts +2 -1
- package/{dist/api/types/Sites.d.ts → api/types/Scripts.d.ts} +1 -3
- package/api/types/UserLimitReached.d.ts +2 -1
- package/api/types/UsersNotEnabled.d.ts +2 -1
- package/api/types/index.d.ts +56 -74
- package/api/types/index.js +56 -74
- package/dist/Client.d.ts +3 -3
- package/dist/Client.js +6 -6
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +1 -1
- package/dist/api/resources/assets/client/Client.js +9 -9
- package/dist/api/resources/assets/client/requests/AssetsUpdateRequest.d.ts +1 -1
- package/dist/api/resources/collections/client/Client.js +5 -5
- package/dist/api/resources/collections/resources/fields/client/Client.js +2 -2
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +51 -22
- package/dist/api/resources/collections/resources/items/client/Client.js +119 -33
- package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +34 -0
- package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +9 -0
- package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/api/resources/collections/resources/items/types/index.js +1 -0
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.js +5 -5
- package/dist/api/resources/index.d.ts +2 -2
- package/dist/api/resources/index.js +3 -3
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +1 -2
- package/dist/api/resources/orders/types/index.d.ts +0 -1
- package/dist/api/resources/orders/types/index.js +0 -1
- package/dist/api/resources/pages/client/Client.js +5 -5
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/pages/resources/scripts/client/Client.js +6 -6
- package/dist/api/resources/products/client/Client.d.ts +2 -2
- package/dist/api/resources/products/client/Client.js +8 -8
- package/dist/api/resources/products/client/requests/ProductsUpdateRequest.d.ts +2 -2
- package/dist/api/resources/scripts/client/Client.d.ts +3 -3
- package/dist/api/resources/scripts/client/Client.js +6 -6
- package/dist/api/resources/sites/client/Client.d.ts +2 -2
- package/dist/api/resources/sites/client/Client.js +6 -6
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
- package/dist/api/resources/sites/resources/scripts/client/Client.js +8 -8
- package/dist/api/resources/token/client/Client.d.ts +1 -1
- package/dist/api/resources/token/client/Client.js +3 -3
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/webhooks/client/Client.d.ts +3 -3
- package/dist/api/resources/webhooks/client/Client.js +7 -7
- package/dist/api/types/Application.d.ts +1 -10
- package/dist/api/types/Authorization.d.ts +1 -1
- package/dist/api/types/CustomCodeBlock.d.ts +1 -1
- package/{api/types/Assets.d.ts → dist/api/types/Domains.d.ts} +2 -2
- package/dist/api/types/DuplicateUserEmail.d.ts +2 -1
- package/{api/types/Sites.d.ts → dist/api/types/Scripts.d.ts} +1 -3
- package/dist/api/types/UserLimitReached.d.ts +2 -1
- package/dist/api/types/UsersNotEnabled.d.ts +2 -1
- package/dist/api/types/index.d.ts +56 -74
- package/dist/api/types/index.js +56 -74
- package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/dist/serialization/{types/UserWebhookPayload.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +13 -5
- package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/dist/serialization/{types/PublishedSite.js → resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +5 -4
- package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/dist/serialization/resources/index.d.ts +2 -2
- package/dist/serialization/resources/index.js +3 -3
- package/dist/serialization/resources/orders/types/index.d.ts +0 -1
- package/dist/serialization/resources/orders/types/index.js +0 -1
- package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/dist/serialization/resources/webhooks/client/index.js +0 -14
- package/dist/serialization/types/AccessGroup.d.ts +1 -1
- package/dist/serialization/types/AccessGroup.js +1 -1
- package/dist/serialization/types/Application.d.ts +2 -7
- package/dist/serialization/types/Application.js +1 -6
- package/dist/serialization/types/Authorization.d.ts +1 -1
- package/dist/serialization/types/Authorization.js +1 -1
- package/dist/serialization/types/CustomCodeBlock.d.ts +1 -1
- package/dist/serialization/types/CustomCodeBlock.js +1 -3
- package/dist/serialization/types/{Assets.d.ts → Domains.d.ts} +3 -3
- package/{serialization/types/Assets.js → dist/serialization/types/Domains.js} +4 -4
- package/dist/serialization/types/DuplicateUserEmail.d.ts +1 -1
- package/dist/serialization/types/DuplicateUserEmail.js +1 -1
- package/{serialization/types/Fields.d.ts → dist/serialization/types/Scripts.d.ts} +3 -3
- package/dist/serialization/types/{Fields.js → Scripts.js} +2 -2
- package/dist/serialization/types/UserLimitReached.d.ts +1 -1
- package/dist/serialization/types/UserLimitReached.js +1 -1
- package/dist/serialization/types/UsersNotEnabled.d.ts +1 -1
- package/dist/serialization/types/UsersNotEnabled.js +1 -1
- package/dist/serialization/types/index.d.ts +56 -74
- package/dist/serialization/types/index.js +56 -74
- package/dist/wrapper/WebflowClient.js +2 -2
- package/package.json +1 -1
- package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +19 -0
- package/serialization/{types/UserWebhookPayload.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +13 -5
- package/serialization/resources/collections/resources/items/client/requests/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/client/requests/index.js +3 -1
- package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +13 -0
- package/{dist/serialization/types/PageSeoGraphDataOpenGraph.js → serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +5 -5
- package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
- package/serialization/resources/collections/resources/items/types/index.js +1 -0
- package/serialization/resources/index.d.ts +2 -2
- package/serialization/resources/index.js +3 -3
- package/serialization/resources/orders/types/index.d.ts +0 -1
- package/serialization/resources/orders/types/index.js +0 -1
- package/serialization/resources/webhooks/client/index.d.ts +0 -1
- package/serialization/resources/webhooks/client/index.js +0 -14
- package/serialization/types/AccessGroup.d.ts +1 -1
- package/serialization/types/AccessGroup.js +1 -1
- package/serialization/types/Application.d.ts +2 -7
- package/serialization/types/Application.js +1 -6
- package/serialization/types/Authorization.d.ts +1 -1
- package/serialization/types/Authorization.js +1 -1
- package/serialization/types/CustomCodeBlock.d.ts +1 -1
- package/serialization/types/CustomCodeBlock.js +1 -3
- package/serialization/types/{Assets.d.ts → Domains.d.ts} +3 -3
- package/{dist/serialization/types/Assets.js → serialization/types/Domains.js} +4 -4
- package/serialization/types/DuplicateUserEmail.d.ts +1 -1
- package/serialization/types/DuplicateUserEmail.js +1 -1
- package/{dist/serialization/types/Fields.d.ts → serialization/types/Scripts.d.ts} +3 -3
- package/serialization/types/{Fields.js → Scripts.js} +2 -2
- package/serialization/types/UserLimitReached.d.ts +1 -1
- package/serialization/types/UserLimitReached.js +1 -1
- package/serialization/types/UsersNotEnabled.d.ts +1 -1
- package/serialization/types/UsersNotEnabled.js +1 -1
- package/serialization/types/index.d.ts +56 -74
- package/serialization/types/index.js +56 -74
- package/wrapper/WebflowClient.js +2 -2
- package/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
- package/api/resources/orders/types/OrdersListRequestStatus.js +0 -14
- package/api/types/CollectionItemRemoved.d.ts +0 -9
- package/api/types/Fields.d.ts +0 -8
- package/api/types/FormSubmissionTrigger.d.ts +0 -10
- package/api/types/FormSubmissionTriggerPayload.d.ts +0 -18
- package/api/types/InvalidScopes.d.ts +0 -10
- package/api/types/PageCreatedWebhook.d.ts +0 -12
- package/api/types/PageDeletedWebhook.d.ts +0 -12
- package/api/types/PageMetadataUpdatedWebhook.d.ts +0 -12
- package/api/types/PageMetadataUpdatedWebhook.js +0 -5
- package/api/types/PageSeoGraphData.d.ts +0 -11
- package/api/types/PageSeoGraphData.js +0 -5
- package/api/types/PageSeoGraphDataOpenGraph.d.ts +0 -7
- package/api/types/PageSeoGraphDataOpenGraph.js +0 -5
- package/api/types/PageSeoGraphDataSeo.d.ts +0 -7
- package/api/types/PageSeoGraphDataSeo.js +0 -5
- package/api/types/PublishedItems.d.ts +0 -12
- package/api/types/PublishedItems.js +0 -5
- package/api/types/PublishedSite.d.ts +0 -7
- package/api/types/PublishedSite.js +0 -5
- package/api/types/RemovedItems.d.ts +0 -12
- package/api/types/RemovedItems.js +0 -5
- package/api/types/SitePublish.d.ts +0 -8
- package/api/types/SitePublish.js +0 -5
- package/api/types/SitePublishPayload.d.ts +0 -16
- package/api/types/SitePublishPayload.js +0 -5
- package/api/types/Sites.js +0 -5
- package/api/types/UserWebhookPayload.d.ts +0 -9
- package/api/types/UserWebhookPayload.js +0 -5
- package/api/types/UserWebhookPayloadTriggerType.d.ts +0 -12
- package/api/types/UserWebhookPayloadTriggerType.js +0 -11
- package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +0 -12
- package/dist/api/resources/orders/types/OrdersListRequestStatus.js +0 -14
- package/dist/api/types/Assets.js +0 -5
- package/dist/api/types/CollectionItemRemoved.d.ts +0 -9
- package/dist/api/types/CollectionItemRemoved.js +0 -5
- package/dist/api/types/Fields.d.ts +0 -8
- package/dist/api/types/Fields.js +0 -5
- package/dist/api/types/FormSubmissionTrigger.d.ts +0 -10
- package/dist/api/types/FormSubmissionTrigger.js +0 -5
- package/dist/api/types/FormSubmissionTriggerPayload.d.ts +0 -18
- package/dist/api/types/FormSubmissionTriggerPayload.js +0 -5
- package/dist/api/types/InvalidScopes.d.ts +0 -10
- package/dist/api/types/InvalidScopes.js +0 -5
- package/dist/api/types/PageCreatedWebhook.d.ts +0 -12
- package/dist/api/types/PageCreatedWebhook.js +0 -5
- package/dist/api/types/PageDeletedWebhook.d.ts +0 -12
- package/dist/api/types/PageDeletedWebhook.js +0 -5
- package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +0 -12
- package/dist/api/types/PageMetadataUpdatedWebhook.js +0 -5
- package/dist/api/types/PageSeoGraphData.d.ts +0 -11
- package/dist/api/types/PageSeoGraphData.js +0 -5
- package/dist/api/types/PageSeoGraphDataOpenGraph.d.ts +0 -7
- package/dist/api/types/PageSeoGraphDataOpenGraph.js +0 -5
- package/dist/api/types/PageSeoGraphDataSeo.d.ts +0 -7
- package/dist/api/types/PageSeoGraphDataSeo.js +0 -5
- package/dist/api/types/PublishedItems.d.ts +0 -12
- package/dist/api/types/PublishedItems.js +0 -5
- package/dist/api/types/PublishedSite.d.ts +0 -7
- package/dist/api/types/PublishedSite.js +0 -5
- package/dist/api/types/RemovedItems.d.ts +0 -12
- package/dist/api/types/RemovedItems.js +0 -5
- package/dist/api/types/SitePublish.d.ts +0 -8
- package/dist/api/types/SitePublish.js +0 -5
- package/dist/api/types/SitePublishPayload.d.ts +0 -16
- package/dist/api/types/SitePublishPayload.js +0 -5
- package/dist/api/types/Sites.js +0 -5
- package/dist/api/types/UserWebhookPayload.d.ts +0 -9
- package/dist/api/types/UserWebhookPayload.js +0 -5
- package/dist/api/types/UserWebhookPayloadTriggerType.d.ts +0 -12
- package/dist/api/types/UserWebhookPayloadTriggerType.js +0 -11
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +0 -10
- package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +0 -31
- package/dist/serialization/resources/webhooks/client/list.d.ts +0 -10
- package/dist/serialization/resources/webhooks/client/list.js +0 -40
- package/dist/serialization/types/CollectionItemRemoved.d.ts +0 -13
- package/dist/serialization/types/CollectionItemRemoved.js +0 -34
- package/dist/serialization/types/FormSubmissionTrigger.d.ts +0 -13
- package/dist/serialization/types/FormSubmissionTrigger.js +0 -43
- package/dist/serialization/types/FormSubmissionTriggerPayload.d.ts +0 -16
- package/dist/serialization/types/FormSubmissionTriggerPayload.js +0 -37
- package/dist/serialization/types/InvalidScopes.d.ts +0 -16
- package/dist/serialization/types/InvalidScopes.js +0 -37
- package/dist/serialization/types/PageCreatedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageCreatedWebhook.js +0 -36
- package/dist/serialization/types/PageDeletedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageDeletedWebhook.js +0 -36
- package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +0 -15
- package/dist/serialization/types/PageMetadataUpdatedWebhook.js +0 -36
- package/dist/serialization/types/PageSeoGraphData.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphData.js +0 -43
- package/dist/serialization/types/PageSeoGraphDataOpenGraph.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphDataSeo.d.ts +0 -13
- package/dist/serialization/types/PageSeoGraphDataSeo.js +0 -34
- package/dist/serialization/types/PublishedItems.d.ts +0 -13
- package/dist/serialization/types/PublishedItems.js +0 -34
- package/dist/serialization/types/PublishedSite.d.ts +0 -12
- package/dist/serialization/types/RemovedItems.d.ts +0 -13
- package/dist/serialization/types/RemovedItems.js +0 -34
- package/dist/serialization/types/SitePublish.d.ts +0 -12
- package/dist/serialization/types/SitePublish.js +0 -42
- package/dist/serialization/types/SitePublishPayload.d.ts +0 -15
- package/dist/serialization/types/SitePublishPayload.js +0 -36
- package/dist/serialization/types/Sites.d.ts +0 -12
- package/dist/serialization/types/Sites.js +0 -42
- package/dist/serialization/types/UserWebhookPayload.d.ts +0 -13
- package/dist/serialization/types/UserWebhookPayloadTriggerType.d.ts +0 -10
- package/dist/serialization/types/UserWebhookPayloadTriggerType.js +0 -31
- package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +0 -10
- package/serialization/resources/orders/types/OrdersListRequestStatus.js +0 -31
- package/serialization/resources/webhooks/client/list.d.ts +0 -10
- package/serialization/resources/webhooks/client/list.js +0 -40
- package/serialization/types/CollectionItemRemoved.d.ts +0 -13
- package/serialization/types/CollectionItemRemoved.js +0 -34
- package/serialization/types/FormSubmissionTrigger.d.ts +0 -13
- package/serialization/types/FormSubmissionTrigger.js +0 -43
- package/serialization/types/FormSubmissionTriggerPayload.d.ts +0 -16
- package/serialization/types/FormSubmissionTriggerPayload.js +0 -37
- package/serialization/types/InvalidScopes.d.ts +0 -16
- package/serialization/types/InvalidScopes.js +0 -37
- package/serialization/types/PageCreatedWebhook.d.ts +0 -15
- package/serialization/types/PageCreatedWebhook.js +0 -36
- package/serialization/types/PageDeletedWebhook.d.ts +0 -15
- package/serialization/types/PageDeletedWebhook.js +0 -36
- package/serialization/types/PageMetadataUpdatedWebhook.d.ts +0 -15
- package/serialization/types/PageMetadataUpdatedWebhook.js +0 -36
- package/serialization/types/PageSeoGraphData.d.ts +0 -13
- package/serialization/types/PageSeoGraphData.js +0 -43
- package/serialization/types/PageSeoGraphDataOpenGraph.d.ts +0 -13
- package/serialization/types/PageSeoGraphDataOpenGraph.js +0 -34
- package/serialization/types/PageSeoGraphDataSeo.d.ts +0 -13
- package/serialization/types/PageSeoGraphDataSeo.js +0 -34
- package/serialization/types/PublishedItems.d.ts +0 -13
- package/serialization/types/PublishedItems.js +0 -34
- package/serialization/types/PublishedSite.d.ts +0 -12
- package/serialization/types/PublishedSite.js +0 -33
- package/serialization/types/RemovedItems.d.ts +0 -13
- package/serialization/types/RemovedItems.js +0 -34
- package/serialization/types/SitePublish.d.ts +0 -12
- package/serialization/types/SitePublish.js +0 -42
- package/serialization/types/SitePublishPayload.d.ts +0 -15
- package/serialization/types/SitePublishPayload.js +0 -36
- package/serialization/types/Sites.d.ts +0 -12
- package/serialization/types/Sites.js +0 -42
- package/serialization/types/UserWebhookPayload.d.ts +0 -13
- package/serialization/types/UserWebhookPayloadTriggerType.d.ts +0 -10
- package/serialization/types/UserWebhookPayloadTriggerType.js +0 -31
- /package/api/{types/Assets.js → resources/collections/resources/items/client/requests/BulkCollectionItem.js} +0 -0
- /package/api/{types/CollectionItemRemoved.js → resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +0 -0
- /package/api/types/{Fields.js → Domains.js} +0 -0
- /package/api/types/{FormSubmissionTrigger.js → Scripts.js} +0 -0
- /package/{api/types/FormSubmissionTriggerPayload.js → dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.js} +0 -0
- /package/{api/types/InvalidScopes.js → dist/api/resources/collections/resources/items/types/BulkCollectionItemFieldData.js} +0 -0
- /package/{api/types/PageCreatedWebhook.js → dist/api/types/Domains.js} +0 -0
- /package/{api/types/PageDeletedWebhook.js → dist/api/types/Scripts.js} +0 -0
|
@@ -50,7 +50,7 @@ class Scripts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Get all registered scripts that have been applied to a specific Page. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:read`
|
|
53
|
+
* Get all registered scripts that have been applied to a specific Page. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
|
|
54
54
|
* @throws {@link Webflow.BadRequestError}
|
|
55
55
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "v2.
|
|
73
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -122,7 +122,7 @@ class Scripts {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Add a registered script to a Page. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
125
|
+
* Add a registered script to a Page. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
126
126
|
* @throws {@link Webflow.BadRequestError}
|
|
127
127
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
128
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -159,7 +159,7 @@ class Scripts {
|
|
|
159
159
|
Authorization: yield this._getAuthorizationHeader(),
|
|
160
160
|
"X-Fern-Language": "JavaScript",
|
|
161
161
|
"X-Fern-SDK-Name": "webflow-api",
|
|
162
|
-
"X-Fern-SDK-Version": "v2.
|
|
162
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
163
163
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
164
164
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
165
165
|
},
|
|
@@ -212,7 +212,7 @@ class Scripts {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
* Delete the custom code block that an app has created for a page </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
215
|
+
* Delete the custom code block that an app has created for a page </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
216
216
|
* @throws {@link Webflow.BadRequestError}
|
|
217
217
|
* @throws {@link Webflow.UnauthorizedError}
|
|
218
218
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -232,7 +232,7 @@ class Scripts {
|
|
|
232
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
233
233
|
"X-Fern-Language": "JavaScript",
|
|
234
234
|
"X-Fern-SDK-Name": "webflow-api",
|
|
235
|
-
"X-Fern-SDK-Version": "v2.
|
|
235
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
236
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
238
|
},
|
|
@@ -82,7 +82,7 @@ class Products {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "v2.
|
|
85
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -169,7 +169,7 @@ class Products {
|
|
|
169
169
|
Authorization: yield this._getAuthorizationHeader(),
|
|
170
170
|
"X-Fern-Language": "JavaScript",
|
|
171
171
|
"X-Fern-SDK-Name": "webflow-api",
|
|
172
|
-
"X-Fern-SDK-Version": "v2.
|
|
172
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
173
173
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
174
174
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
175
175
|
},
|
|
@@ -250,7 +250,7 @@ class Products {
|
|
|
250
250
|
Authorization: yield this._getAuthorizationHeader(),
|
|
251
251
|
"X-Fern-Language": "JavaScript",
|
|
252
252
|
"X-Fern-SDK-Name": "webflow-api",
|
|
253
|
-
"X-Fern-SDK-Version": "v2.
|
|
253
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
254
254
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
255
255
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
256
256
|
},
|
|
@@ -344,8 +344,8 @@ class Products {
|
|
|
344
344
|
* slug: "crimson-red"
|
|
345
345
|
* }, {
|
|
346
346
|
* id: "forrest-green",
|
|
347
|
-
* name: "
|
|
348
|
-
* slug: "
|
|
347
|
+
* name: "name",
|
|
348
|
+
* slug: "slug"
|
|
349
349
|
* }, {
|
|
350
350
|
* id: "id",
|
|
351
351
|
* name: "name",
|
|
@@ -374,7 +374,7 @@ class Products {
|
|
|
374
374
|
Authorization: yield this._getAuthorizationHeader(),
|
|
375
375
|
"X-Fern-Language": "JavaScript",
|
|
376
376
|
"X-Fern-SDK-Name": "webflow-api",
|
|
377
|
-
"X-Fern-SDK-Version": "v2.
|
|
377
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
378
378
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
379
379
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
380
380
|
},
|
|
@@ -473,7 +473,7 @@ class Products {
|
|
|
473
473
|
Authorization: yield this._getAuthorizationHeader(),
|
|
474
474
|
"X-Fern-Language": "JavaScript",
|
|
475
475
|
"X-Fern-SDK-Name": "webflow-api",
|
|
476
|
-
"X-Fern-SDK-Version": "v2.
|
|
476
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
477
477
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
478
478
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
479
479
|
},
|
|
@@ -570,7 +570,7 @@ class Products {
|
|
|
570
570
|
Authorization: yield this._getAuthorizationHeader(),
|
|
571
571
|
"X-Fern-Language": "JavaScript",
|
|
572
572
|
"X-Fern-SDK-Name": "webflow-api",
|
|
573
|
-
"X-Fern-SDK-Version": "v2.
|
|
573
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
574
574
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
575
575
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
576
576
|
},
|
|
@@ -18,7 +18,7 @@ export declare class Scripts {
|
|
|
18
18
|
protected readonly _options: Scripts.Options;
|
|
19
19
|
constructor(_options: Scripts.Options);
|
|
20
20
|
/**
|
|
21
|
-
* List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. </br></br> Required scope | `custom_code:read`
|
|
21
|
+
* List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:read`
|
|
22
22
|
* @throws {@link Webflow.BadRequestError}
|
|
23
23
|
* @throws {@link Webflow.UnauthorizedError}
|
|
24
24
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -30,7 +30,7 @@ export declare class Scripts {
|
|
|
30
30
|
*/
|
|
31
31
|
list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.RegisteredScriptList>;
|
|
32
32
|
/**
|
|
33
|
-
* Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. </br></br> Required scope | `custom_code:write`
|
|
33
|
+
* Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -47,7 +47,7 @@ export declare class Scripts {
|
|
|
47
47
|
*/
|
|
48
48
|
registerHosted(siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.CustomCodeResponse>;
|
|
49
49
|
/**
|
|
50
|
-
* Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
50
|
+
* Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
51
51
|
* @throws {@link Webflow.BadRequestError}
|
|
52
52
|
* @throws {@link Webflow.UnauthorizedError}
|
|
53
53
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -50,7 +50,7 @@ class Scripts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. </br></br> Required scope | `custom_code:read`
|
|
53
|
+
* List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:read`
|
|
54
54
|
* @throws {@link Webflow.BadRequestError}
|
|
55
55
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "v2.
|
|
73
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -122,7 +122,7 @@ class Scripts {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. </br></br> Required scope | `custom_code:write`
|
|
125
|
+
* Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:write`
|
|
126
126
|
* @throws {@link Webflow.BadRequestError}
|
|
127
127
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
128
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -147,7 +147,7 @@ class Scripts {
|
|
|
147
147
|
Authorization: yield this._getAuthorizationHeader(),
|
|
148
148
|
"X-Fern-Language": "JavaScript",
|
|
149
149
|
"X-Fern-SDK-Name": "webflow-api",
|
|
150
|
-
"X-Fern-SDK-Version": "v2.
|
|
150
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
151
151
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
152
152
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
153
153
|
},
|
|
@@ -200,7 +200,7 @@ class Scripts {
|
|
|
200
200
|
});
|
|
201
201
|
}
|
|
202
202
|
/**
|
|
203
|
-
* Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
203
|
+
* Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
204
204
|
* @throws {@link Webflow.BadRequestError}
|
|
205
205
|
* @throws {@link Webflow.UnauthorizedError}
|
|
206
206
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -224,7 +224,7 @@ class Scripts {
|
|
|
224
224
|
Authorization: yield this._getAuthorizationHeader(),
|
|
225
225
|
"X-Fern-Language": "JavaScript",
|
|
226
226
|
"X-Fern-SDK-Name": "webflow-api",
|
|
227
|
-
"X-Fern-SDK-Version": "v2.
|
|
227
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
228
228
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
229
229
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
230
230
|
},
|
|
@@ -30,7 +30,7 @@ export declare class Sites {
|
|
|
30
30
|
* @example
|
|
31
31
|
* await webflow.sites.list()
|
|
32
32
|
*/
|
|
33
|
-
list(requestOptions?: Sites.RequestOptions): Promise<Webflow.
|
|
33
|
+
list(requestOptions?: Sites.RequestOptions): Promise<Webflow.Site>;
|
|
34
34
|
/**
|
|
35
35
|
* Get a site by site id </br></br> Required scope | `sites:read`
|
|
36
36
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -54,7 +54,7 @@ export declare class Sites {
|
|
|
54
54
|
* @example
|
|
55
55
|
* await webflow.sites.getCustomDomain("site_id")
|
|
56
56
|
*/
|
|
57
|
-
getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.
|
|
57
|
+
getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Domains>;
|
|
58
58
|
/**
|
|
59
59
|
* Publish a site to one more more domains. </br></br> Required scope | `sites:write`
|
|
60
60
|
* @throws {@link Webflow.BadRequestError}
|
|
@@ -72,7 +72,7 @@ class Sites {
|
|
|
72
72
|
Authorization: yield this._getAuthorizationHeader(),
|
|
73
73
|
"X-Fern-Language": "JavaScript",
|
|
74
74
|
"X-Fern-SDK-Name": "webflow-api",
|
|
75
|
-
"X-Fern-SDK-Version": "v2.
|
|
75
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
76
76
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
77
77
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
78
78
|
},
|
|
@@ -81,7 +81,7 @@ class Sites {
|
|
|
81
81
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
82
82
|
});
|
|
83
83
|
if (_response.ok) {
|
|
84
|
-
return yield serializers.
|
|
84
|
+
return yield serializers.Site.parseOrThrow(_response.body, {
|
|
85
85
|
unrecognizedObjectKeys: "passthrough",
|
|
86
86
|
allowUnrecognizedUnionMembers: true,
|
|
87
87
|
allowUnrecognizedEnumValues: true,
|
|
@@ -144,7 +144,7 @@ class Sites {
|
|
|
144
144
|
Authorization: yield this._getAuthorizationHeader(),
|
|
145
145
|
"X-Fern-Language": "JavaScript",
|
|
146
146
|
"X-Fern-SDK-Name": "webflow-api",
|
|
147
|
-
"X-Fern-SDK-Version": "v2.
|
|
147
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
148
148
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
149
149
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
150
150
|
},
|
|
@@ -216,7 +216,7 @@ class Sites {
|
|
|
216
216
|
Authorization: yield this._getAuthorizationHeader(),
|
|
217
217
|
"X-Fern-Language": "JavaScript",
|
|
218
218
|
"X-Fern-SDK-Name": "webflow-api",
|
|
219
|
-
"X-Fern-SDK-Version": "v2.
|
|
219
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
220
220
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
221
221
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
222
222
|
},
|
|
@@ -225,7 +225,7 @@ class Sites {
|
|
|
225
225
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
226
226
|
});
|
|
227
227
|
if (_response.ok) {
|
|
228
|
-
return yield serializers.
|
|
228
|
+
return yield serializers.Domains.parseOrThrow(_response.body, {
|
|
229
229
|
unrecognizedObjectKeys: "passthrough",
|
|
230
230
|
allowUnrecognizedUnionMembers: true,
|
|
231
231
|
allowUnrecognizedEnumValues: true,
|
|
@@ -290,7 +290,7 @@ class Sites {
|
|
|
290
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
291
|
"X-Fern-Language": "JavaScript",
|
|
292
292
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "v2.
|
|
293
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
294
294
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
295
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
296
|
},
|
|
@@ -77,7 +77,7 @@ class ActivityLogs {
|
|
|
77
77
|
Authorization: yield this._getAuthorizationHeader(),
|
|
78
78
|
"X-Fern-Language": "JavaScript",
|
|
79
79
|
"X-Fern-SDK-Name": "webflow-api",
|
|
80
|
-
"X-Fern-SDK-Version": "v2.
|
|
80
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
81
81
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
82
82
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
83
83
|
},
|
|
@@ -18,7 +18,7 @@ export declare class Scripts {
|
|
|
18
18
|
protected readonly _options: Scripts.Options;
|
|
19
19
|
constructor(_options: Scripts.Options);
|
|
20
20
|
/**
|
|
21
|
-
* Get all registered scripts that have been applied to a specific Site. Required scope | `custom_code:read`
|
|
21
|
+
* Get all registered scripts that have been applied to a specific Site. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
|
|
22
22
|
* @throws {@link Webflow.BadRequestError}
|
|
23
23
|
* @throws {@link Webflow.UnauthorizedError}
|
|
24
24
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -30,7 +30,7 @@ export declare class Scripts {
|
|
|
30
30
|
*/
|
|
31
31
|
getCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
32
32
|
/**
|
|
33
|
-
* Add a registered script to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
33
|
+
* Add a registered script to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -59,7 +59,7 @@ export declare class Scripts {
|
|
|
59
59
|
*/
|
|
60
60
|
upsertCustomCode(siteId: string, request: Webflow.ScriptApplyList, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
|
|
61
61
|
/**
|
|
62
|
-
* Delete the custom code block that an app created for a Site
|
|
62
|
+
* Delete the custom code block that an app created for a Site </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
63
63
|
* @throws {@link Webflow.BadRequestError}
|
|
64
64
|
* @throws {@link Webflow.UnauthorizedError}
|
|
65
65
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -71,7 +71,7 @@ export declare class Scripts {
|
|
|
71
71
|
*/
|
|
72
72
|
deleteCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
|
|
73
73
|
/**
|
|
74
|
-
* Get all instances of Custom Code applied to a Site or Pages. Required scope | `custom_code:read`
|
|
74
|
+
* Get all instances of Custom Code applied to a Site or Pages. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
|
|
75
75
|
* @throws {@link Webflow.BadRequestError}
|
|
76
76
|
* @throws {@link Webflow.UnauthorizedError}
|
|
77
77
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -50,7 +50,7 @@ class Scripts {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* Get all registered scripts that have been applied to a specific Site. Required scope | `custom_code:read`
|
|
53
|
+
* Get all registered scripts that have been applied to a specific Site. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
|
|
54
54
|
* @throws {@link Webflow.BadRequestError}
|
|
55
55
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -70,7 +70,7 @@ class Scripts {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "v2.
|
|
73
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -122,7 +122,7 @@ class Scripts {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Add a registered script to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Required scope | `custom_code:write`
|
|
125
|
+
* Add a registered script to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
126
126
|
* @throws {@link Webflow.BadRequestError}
|
|
127
127
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
128
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -159,7 +159,7 @@ class Scripts {
|
|
|
159
159
|
Authorization: yield this._getAuthorizationHeader(),
|
|
160
160
|
"X-Fern-Language": "JavaScript",
|
|
161
161
|
"X-Fern-SDK-Name": "webflow-api",
|
|
162
|
-
"X-Fern-SDK-Version": "v2.
|
|
162
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
163
163
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
164
164
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
165
165
|
},
|
|
@@ -212,7 +212,7 @@ class Scripts {
|
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
214
|
/**
|
|
215
|
-
* Delete the custom code block that an app created for a Site
|
|
215
|
+
* Delete the custom code block that an app created for a Site </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
|
|
216
216
|
* @throws {@link Webflow.BadRequestError}
|
|
217
217
|
* @throws {@link Webflow.UnauthorizedError}
|
|
218
218
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -232,7 +232,7 @@ class Scripts {
|
|
|
232
232
|
Authorization: yield this._getAuthorizationHeader(),
|
|
233
233
|
"X-Fern-Language": "JavaScript",
|
|
234
234
|
"X-Fern-SDK-Name": "webflow-api",
|
|
235
|
-
"X-Fern-SDK-Version": "v2.
|
|
235
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
236
236
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
237
237
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
238
238
|
},
|
|
@@ -278,7 +278,7 @@ class Scripts {
|
|
|
278
278
|
});
|
|
279
279
|
}
|
|
280
280
|
/**
|
|
281
|
-
* Get all instances of Custom Code applied to a Site or Pages. Required scope | `custom_code:read`
|
|
281
|
+
* Get all instances of Custom Code applied to a Site or Pages. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:read`
|
|
282
282
|
* @throws {@link Webflow.BadRequestError}
|
|
283
283
|
* @throws {@link Webflow.UnauthorizedError}
|
|
284
284
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -306,7 +306,7 @@ class Scripts {
|
|
|
306
306
|
Authorization: yield this._getAuthorizationHeader(),
|
|
307
307
|
"X-Fern-Language": "JavaScript",
|
|
308
308
|
"X-Fern-SDK-Name": "webflow-api",
|
|
309
|
-
"X-Fern-SDK-Version": "v2.
|
|
309
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
310
310
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
311
311
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
312
312
|
},
|
|
@@ -27,7 +27,7 @@ export declare class Token {
|
|
|
27
27
|
*/
|
|
28
28
|
authorizedBy(requestOptions?: Token.RequestOptions): Promise<Webflow.AuthorizedUser>;
|
|
29
29
|
/**
|
|
30
|
-
* Information about the authorization token
|
|
30
|
+
* Information about the authorization token </br></br> Access to this endpoint requires a bearer token from a Data Client App.
|
|
31
31
|
* @throws {@link Webflow.UnauthorizedError}
|
|
32
32
|
*
|
|
33
33
|
* @example
|
|
@@ -67,7 +67,7 @@ class Token {
|
|
|
67
67
|
Authorization: yield this._getAuthorizationHeader(),
|
|
68
68
|
"X-Fern-Language": "JavaScript",
|
|
69
69
|
"X-Fern-SDK-Name": "webflow-api",
|
|
70
|
-
"X-Fern-SDK-Version": "v2.
|
|
70
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
71
71
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
72
72
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
73
73
|
},
|
|
@@ -113,7 +113,7 @@ class Token {
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
/**
|
|
116
|
-
* Information about the authorization token
|
|
116
|
+
* Information about the authorization token </br></br> Access to this endpoint requires a bearer token from a Data Client App.
|
|
117
117
|
* @throws {@link Webflow.UnauthorizedError}
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
@@ -129,7 +129,7 @@ class Token {
|
|
|
129
129
|
Authorization: yield this._getAuthorizationHeader(),
|
|
130
130
|
"X-Fern-Language": "JavaScript",
|
|
131
131
|
"X-Fern-SDK-Name": "webflow-api",
|
|
132
|
-
"X-Fern-SDK-Version": "v2.
|
|
132
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
133
133
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
134
134
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
135
135
|
},
|
|
@@ -82,7 +82,7 @@ class Users {
|
|
|
82
82
|
Authorization: yield this._getAuthorizationHeader(),
|
|
83
83
|
"X-Fern-Language": "JavaScript",
|
|
84
84
|
"X-Fern-SDK-Name": "webflow-api",
|
|
85
|
-
"X-Fern-SDK-Version": "v2.
|
|
85
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
86
86
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
87
87
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
88
88
|
},
|
|
@@ -158,7 +158,7 @@ class Users {
|
|
|
158
158
|
Authorization: yield this._getAuthorizationHeader(),
|
|
159
159
|
"X-Fern-Language": "JavaScript",
|
|
160
160
|
"X-Fern-SDK-Name": "webflow-api",
|
|
161
|
-
"X-Fern-SDK-Version": "v2.
|
|
161
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
162
162
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
163
163
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
164
164
|
},
|
|
@@ -233,7 +233,7 @@ class Users {
|
|
|
233
233
|
Authorization: yield this._getAuthorizationHeader(),
|
|
234
234
|
"X-Fern-Language": "JavaScript",
|
|
235
235
|
"X-Fern-SDK-Name": "webflow-api",
|
|
236
|
-
"X-Fern-SDK-Version": "v2.
|
|
236
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
237
237
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
238
238
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
239
239
|
},
|
|
@@ -311,7 +311,7 @@ class Users {
|
|
|
311
311
|
Authorization: yield this._getAuthorizationHeader(),
|
|
312
312
|
"X-Fern-Language": "JavaScript",
|
|
313
313
|
"X-Fern-SDK-Name": "webflow-api",
|
|
314
|
-
"X-Fern-SDK-Version": "v2.
|
|
314
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
315
315
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
316
316
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
317
317
|
},
|
|
@@ -391,7 +391,7 @@ class Users {
|
|
|
391
391
|
Authorization: yield this._getAuthorizationHeader(),
|
|
392
392
|
"X-Fern-Language": "JavaScript",
|
|
393
393
|
"X-Fern-SDK-Name": "webflow-api",
|
|
394
|
-
"X-Fern-SDK-Version": "v2.
|
|
394
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
395
395
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
396
396
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
397
397
|
},
|
|
@@ -18,7 +18,7 @@ export declare class Webhooks {
|
|
|
18
18
|
protected readonly _options: Webhooks.Options;
|
|
19
19
|
constructor(_options: Webhooks.Options);
|
|
20
20
|
/**
|
|
21
|
-
* List all App-created Webhooks registered for a given site
|
|
21
|
+
* List all App-created Webhooks registered for a given site </br></br> Required scope | `sites:read`
|
|
22
22
|
* @throws {@link Webflow.BadRequestError}
|
|
23
23
|
* @throws {@link Webflow.UnauthorizedError}
|
|
24
24
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -28,9 +28,9 @@ export declare class Webhooks {
|
|
|
28
28
|
* @example
|
|
29
29
|
* await webflow.webhooks.list("site_id")
|
|
30
30
|
*/
|
|
31
|
-
list(siteId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.
|
|
31
|
+
list(siteId: string, requestOptions?: Webhooks.RequestOptions): Promise<Webflow.WebhookList>;
|
|
32
32
|
/**
|
|
33
|
-
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site.
|
|
33
|
+
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. </br></br> Access to this endpoint requires a bearer token from a Data Client App. The only exceptions are for creating webhooks with `site_publish` or `form_submission` triggers, which can be done with Site Tokens </br> Required scope | `sites:write`
|
|
34
34
|
* @throws {@link Webflow.BadRequestError}
|
|
35
35
|
* @throws {@link Webflow.UnauthorizedError}
|
|
36
36
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -50,7 +50,7 @@ class Webhooks {
|
|
|
50
50
|
this._options = _options;
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* List all App-created Webhooks registered for a given site
|
|
53
|
+
* List all App-created Webhooks registered for a given site </br></br> Required scope | `sites:read`
|
|
54
54
|
* @throws {@link Webflow.BadRequestError}
|
|
55
55
|
* @throws {@link Webflow.UnauthorizedError}
|
|
56
56
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -70,7 +70,7 @@ class Webhooks {
|
|
|
70
70
|
Authorization: yield this._getAuthorizationHeader(),
|
|
71
71
|
"X-Fern-Language": "JavaScript",
|
|
72
72
|
"X-Fern-SDK-Name": "webflow-api",
|
|
73
|
-
"X-Fern-SDK-Version": "v2.
|
|
73
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
74
74
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
75
75
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
76
76
|
},
|
|
@@ -79,7 +79,7 @@ class Webhooks {
|
|
|
79
79
|
maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
|
|
80
80
|
});
|
|
81
81
|
if (_response.ok) {
|
|
82
|
-
return yield serializers.
|
|
82
|
+
return yield serializers.WebhookList.parseOrThrow(_response.body, {
|
|
83
83
|
unrecognizedObjectKeys: "passthrough",
|
|
84
84
|
allowUnrecognizedUnionMembers: true,
|
|
85
85
|
allowUnrecognizedEnumValues: true,
|
|
@@ -122,7 +122,7 @@ class Webhooks {
|
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
/**
|
|
125
|
-
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site.
|
|
125
|
+
* Create a new Webhook, to be notified when Webflow resources change. Limit of 75 registrations per `triggerType`, per site. </br></br> Access to this endpoint requires a bearer token from a Data Client App. The only exceptions are for creating webhooks with `site_publish` or `form_submission` triggers, which can be done with Site Tokens </br> Required scope | `sites:write`
|
|
126
126
|
* @throws {@link Webflow.BadRequestError}
|
|
127
127
|
* @throws {@link Webflow.UnauthorizedError}
|
|
128
128
|
* @throws {@link Webflow.NotFoundError}
|
|
@@ -145,7 +145,7 @@ class Webhooks {
|
|
|
145
145
|
Authorization: yield this._getAuthorizationHeader(),
|
|
146
146
|
"X-Fern-Language": "JavaScript",
|
|
147
147
|
"X-Fern-SDK-Name": "webflow-api",
|
|
148
|
-
"X-Fern-SDK-Version": "v2.
|
|
148
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
149
149
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
150
150
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
151
151
|
},
|
|
@@ -218,7 +218,7 @@ class Webhooks {
|
|
|
218
218
|
Authorization: yield this._getAuthorizationHeader(),
|
|
219
219
|
"X-Fern-Language": "JavaScript",
|
|
220
220
|
"X-Fern-SDK-Name": "webflow-api",
|
|
221
|
-
"X-Fern-SDK-Version": "v2.
|
|
221
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
222
222
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
223
223
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
224
224
|
},
|
|
@@ -290,7 +290,7 @@ class Webhooks {
|
|
|
290
290
|
Authorization: yield this._getAuthorizationHeader(),
|
|
291
291
|
"X-Fern-Language": "JavaScript",
|
|
292
292
|
"X-Fern-SDK-Name": "webflow-api",
|
|
293
|
-
"X-Fern-SDK-Version": "v2.
|
|
293
|
+
"X-Fern-SDK-Version": "v2.2.0",
|
|
294
294
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
295
295
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
296
296
|
},
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export
|
|
5
|
-
/** Unique identifier for the Application */
|
|
6
|
-
id?: string;
|
|
7
|
-
/** Application description provided by the developer */
|
|
8
|
-
description?: string;
|
|
9
|
-
/** Application homepage URL provided by the developer */
|
|
10
|
-
homepage?: string;
|
|
11
|
-
/** Application name provided by the developer */
|
|
12
|
-
displayName?: string;
|
|
13
|
-
}
|
|
4
|
+
export declare type Application = unknown;
|
|
@@ -12,7 +12,7 @@ export interface CustomCodeBlock {
|
|
|
12
12
|
pageId?: string;
|
|
13
13
|
/** Whether the Custom Code script is applied at the Site-level or Page-level */
|
|
14
14
|
type?: Webflow.CustomCodeBlockType;
|
|
15
|
-
scripts?: Webflow.
|
|
15
|
+
scripts?: Webflow.Scripts;
|
|
16
16
|
/** The date the Block was created */
|
|
17
17
|
createdOn?: Date;
|
|
18
18
|
/** The date the Block was most recently updated */
|