webflow-api 3.1.0 → 3.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.mock/definition/__package__.yml +363 -79
- package/.mock/definition/accessGroups.yml +1 -0
- package/.mock/definition/assets.yml +86 -47
- package/.mock/definition/collections/fields.yml +63 -46
- package/.mock/definition/collections/items.yml +58 -30
- package/.mock/definition/collections.yml +42 -7
- package/.mock/definition/components.yml +43 -50
- package/.mock/definition/ecommerce.yml +1 -0
- package/.mock/definition/forms.yml +114 -2
- package/.mock/definition/inventory.yml +2 -0
- package/.mock/definition/orders.yml +6 -68
- package/.mock/definition/pages/scripts.yml +10 -44
- package/.mock/definition/pages.yml +36 -41
- package/.mock/definition/products.yml +9 -0
- package/.mock/definition/scripts.yml +18 -49
- package/.mock/definition/sites/activityLogs.yml +10 -7
- package/.mock/definition/sites/plans.yml +7 -1
- package/.mock/definition/sites/redirects.yml +24 -1
- package/.mock/definition/sites/robotsTxt.yml +202 -0
- package/.mock/definition/sites/scripts.yml +22 -30
- package/.mock/definition/sites.yml +27 -30
- package/.mock/definition/token.yml +2 -0
- package/.mock/definition/users.yml +4 -0
- package/.mock/definition/webhooks.yml +7 -8
- package/.mock/fern.config.json +1 -1
- package/api/resources/accessGroups/client/Client.js +1 -1
- package/api/resources/assets/client/Client.d.ts +10 -7
- package/api/resources/assets/client/Client.js +18 -15
- package/api/resources/collections/client/Client.d.ts +21 -1
- package/api/resources/collections/client/Client.js +27 -5
- package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/api/resources/collections/resources/fields/index.js +0 -1
- package/api/resources/collections/resources/index.d.ts +1 -2
- package/api/resources/collections/resources/index.js +2 -3
- package/api/resources/collections/resources/items/client/Client.d.ts +19 -12
- package/api/resources/collections/resources/items/client/Client.js +39 -28
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/api/resources/components/client/Client.d.ts +5 -6
- package/api/resources/components/client/Client.js +10 -11
- package/api/resources/ecommerce/client/Client.js +1 -1
- package/api/resources/forms/client/Client.d.ts +51 -0
- package/api/resources/forms/client/Client.js +226 -5
- package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/api/resources/forms/client/requests/index.d.ts +1 -0
- package/api/resources/inventory/client/Client.js +2 -2
- package/api/resources/orders/client/Client.js +6 -6
- package/api/resources/pages/client/Client.d.ts +8 -3
- package/api/resources/pages/client/Client.js +13 -8
- package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/api/resources/products/client/Client.js +6 -6
- package/api/resources/scripts/client/Client.d.ts +12 -20
- package/api/resources/scripts/client/Client.js +15 -23
- package/api/resources/sites/client/Client.d.ts +12 -3
- package/api/resources/sites/client/Client.js +25 -14
- package/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/api/resources/sites/resources/index.d.ts +1 -0
- package/api/resources/sites/resources/index.js +2 -1
- package/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/api/resources/sites/resources/redirects/client/Client.js +14 -4
- package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/api/resources/{collections/resources/fields/types → sites/resources/robotsTxt}/index.js +1 -1
- package/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/api/resources/token/client/Client.js +2 -2
- package/api/resources/users/client/Client.js +5 -5
- package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/api/resources/webhooks/client/Client.js +4 -4
- package/api/types/Asset.d.ts +4 -0
- package/api/types/AssetVariant.d.ts +3 -0
- package/api/types/Assets.d.ts +1 -0
- package/api/types/ComponentNode.d.ts +2 -2
- package/api/types/Conflict.d.ts +4 -0
- package/api/types/Dom.d.ts +2 -0
- package/api/types/FieldCreate.d.ts +8 -0
- package/api/types/FieldCreate.js +5 -0
- package/api/types/FieldType.d.ts +3 -1
- package/api/types/FieldType.js +2 -0
- package/api/types/ImageNode.d.ts +1 -0
- package/api/types/ImageNodeImage.d.ts +3 -0
- package/api/types/Metadata.d.ts +11 -0
- package/api/types/Metadata.js +5 -0
- package/api/types/MetadataOptionsItem.d.ts +12 -0
- package/api/types/MetadataOptionsItem.js +5 -0
- package/api/types/OAuthScope.d.ts +8 -0
- package/api/types/OAuthScope.js +2 -0
- package/api/types/OptionField.d.ts +19 -0
- package/api/types/OptionField.js +5 -0
- package/api/types/ReferenceField.d.ts +20 -0
- package/api/types/ReferenceField.js +5 -0
- package/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/api/types/ReferenceFieldMetadata.js +5 -0
- package/api/types/ReferenceFieldType.d.ts +11 -0
- package/api/types/ReferenceFieldType.js +10 -0
- package/api/types/Robots.d.ts +13 -0
- package/api/types/Robots.js +5 -0
- package/api/types/RobotsRulesItem.d.ts +11 -0
- package/api/types/RobotsRulesItem.js +5 -0
- package/api/types/SkuFieldData.d.ts +2 -0
- package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/api/types/StaticField.js +5 -0
- package/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
- package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +2 -3
- package/api/types/Text.d.ts +3 -0
- package/api/types/TextNode.d.ts +1 -0
- package/api/types/TextNodeText.d.ts +3 -0
- package/api/types/TriggerType.d.ts +1 -15
- package/api/types/WebhookList.d.ts +1 -1
- package/api/types/index.d.ts +12 -0
- package/api/types/index.js +12 -0
- package/dist/api/resources/accessGroups/client/Client.js +1 -1
- package/dist/api/resources/assets/client/Client.d.ts +10 -7
- package/dist/api/resources/assets/client/Client.js +18 -15
- package/dist/api/resources/collections/client/Client.d.ts +21 -1
- package/dist/api/resources/collections/client/Client.js +27 -5
- package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
- package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
- package/dist/api/resources/collections/resources/fields/client/Client.js +40 -8
- package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/index.js +0 -1
- package/dist/api/resources/collections/resources/index.d.ts +1 -2
- package/dist/api/resources/collections/resources/index.js +2 -3
- package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -12
- package/dist/api/resources/collections/resources/items/client/Client.js +39 -28
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
- package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/api/resources/components/client/Client.d.ts +5 -6
- package/dist/api/resources/components/client/Client.js +10 -11
- package/dist/api/resources/ecommerce/client/Client.js +1 -1
- package/dist/api/resources/forms/client/Client.d.ts +51 -0
- package/dist/api/resources/forms/client/Client.js +226 -5
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
- package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
- package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
- package/dist/api/resources/inventory/client/Client.js +2 -2
- package/dist/api/resources/orders/client/Client.js +6 -6
- package/dist/api/resources/pages/client/Client.d.ts +8 -3
- package/dist/api/resources/pages/client/Client.js +13 -8
- package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
- package/dist/api/resources/pages/resources/scripts/client/Client.js +9 -23
- package/dist/api/resources/products/client/Client.js +6 -6
- package/dist/api/resources/scripts/client/Client.d.ts +12 -20
- package/dist/api/resources/scripts/client/Client.js +15 -23
- package/dist/api/resources/sites/client/Client.d.ts +12 -3
- package/dist/api/resources/sites/client/Client.js +25 -14
- package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
- package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
- package/dist/api/resources/sites/resources/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/index.js +2 -1
- package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
- package/dist/api/resources/sites/resources/plans/client/Client.js +3 -1
- package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
- package/dist/api/resources/sites/resources/redirects/client/Client.js +14 -4
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
- package/dist/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
- package/dist/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
- package/dist/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
- package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
- package/dist/api/resources/sites/resources/scripts/client/Client.js +19 -17
- package/dist/api/resources/token/client/Client.js +2 -2
- package/dist/api/resources/users/client/Client.js +5 -5
- package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
- package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
- package/dist/api/resources/webhooks/client/Client.js +4 -4
- package/dist/api/types/Asset.d.ts +4 -0
- package/dist/api/types/AssetVariant.d.ts +3 -0
- package/dist/api/types/Assets.d.ts +1 -0
- package/dist/api/types/ComponentNode.d.ts +2 -2
- package/dist/api/types/Conflict.d.ts +4 -0
- package/dist/api/types/Conflict.js +5 -0
- package/dist/api/types/Dom.d.ts +2 -0
- package/dist/api/types/FieldCreate.d.ts +8 -0
- package/dist/api/types/FieldCreate.js +5 -0
- package/dist/api/types/FieldType.d.ts +3 -1
- package/dist/api/types/FieldType.js +2 -0
- package/dist/api/types/ImageNode.d.ts +1 -0
- package/dist/api/types/ImageNodeImage.d.ts +3 -0
- package/dist/api/types/Metadata.d.ts +11 -0
- package/dist/api/types/Metadata.js +5 -0
- package/dist/api/types/MetadataOptionsItem.d.ts +12 -0
- package/dist/api/types/MetadataOptionsItem.js +5 -0
- package/dist/api/types/OAuthScope.d.ts +8 -0
- package/dist/api/types/OAuthScope.js +2 -0
- package/dist/api/types/OptionField.d.ts +19 -0
- package/dist/api/types/OptionField.js +5 -0
- package/dist/api/types/ReferenceField.d.ts +20 -0
- package/dist/api/types/ReferenceField.js +5 -0
- package/dist/api/types/ReferenceFieldMetadata.d.ts +10 -0
- package/dist/api/types/ReferenceFieldMetadata.js +5 -0
- package/dist/api/types/ReferenceFieldType.d.ts +11 -0
- package/dist/api/types/ReferenceFieldType.js +10 -0
- package/dist/api/types/Robots.d.ts +13 -0
- package/dist/api/types/Robots.js +5 -0
- package/dist/api/types/RobotsRulesItem.d.ts +11 -0
- package/dist/api/types/RobotsRulesItem.js +5 -0
- package/dist/api/types/SkuFieldData.d.ts +2 -0
- package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
- package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
- package/dist/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
- package/dist/api/types/StaticField.js +5 -0
- package/dist/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
- package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +2 -3
- package/dist/api/types/Text.d.ts +3 -0
- package/dist/api/types/TextNode.d.ts +1 -0
- package/dist/api/types/TextNodeText.d.ts +3 -0
- package/dist/api/types/TriggerType.d.ts +1 -15
- package/dist/api/types/WebhookList.d.ts +1 -1
- package/dist/api/types/index.d.ts +12 -0
- package/dist/api/types/index.js +12 -0
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/dist/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/dist/serialization/resources/collections/resources/fields/index.js +0 -1
- package/dist/serialization/resources/collections/resources/index.d.ts +1 -2
- package/dist/serialization/resources/collections/resources/index.js +2 -3
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/dist/serialization/types/Assets.d.ts +2 -0
- package/dist/serialization/types/Assets.js +2 -0
- package/dist/serialization/types/Conflict.d.ts +10 -0
- package/dist/serialization/types/Conflict.js +31 -0
- package/dist/serialization/types/Dom.d.ts +1 -0
- package/dist/serialization/types/Dom.js +1 -0
- package/dist/serialization/types/FieldCreate.d.ts +13 -0
- package/dist/serialization/types/FieldCreate.js +34 -0
- package/dist/serialization/types/FieldType.d.ts +1 -1
- package/dist/serialization/types/FieldType.js +2 -0
- package/dist/serialization/types/Metadata.d.ts +13 -0
- package/dist/serialization/types/Metadata.js +34 -0
- package/dist/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/dist/serialization/types/MetadataOptionsItem.js +34 -0
- package/dist/serialization/types/OptionField.d.ts +19 -0
- package/dist/serialization/types/OptionField.js +40 -0
- package/dist/serialization/types/ReferenceField.d.ts +20 -0
- package/dist/serialization/types/ReferenceField.js +41 -0
- package/dist/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/dist/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/dist/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/dist/serialization/types/ReferenceFieldType.js +31 -0
- package/dist/serialization/types/Robots.d.ts +14 -0
- package/dist/serialization/types/Robots.js +35 -0
- package/dist/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/dist/serialization/types/RobotsRulesItem.js +35 -0
- package/dist/serialization/types/StaticField.d.ts +18 -0
- package/dist/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/dist/serialization/types/StaticFieldType.d.ts +10 -0
- package/dist/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/dist/serialization/types/WebhookList.d.ts +2 -2
- package/dist/serialization/types/WebhookList.js +2 -2
- package/dist/serialization/types/index.d.ts +12 -0
- package/dist/serialization/types/index.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/wrapper/WebflowClient.d.ts +3 -0
- package/dist/wrapper/WebflowClient.js +5 -0
- package/dist/wrapper/WebhooksClient.d.ts +39 -0
- package/dist/wrapper/WebhooksClient.js +66 -0
- package/package.json +5 -3
- package/reference.md +585 -91
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
- package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
- package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
- package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/index.js +0 -1
- package/serialization/resources/collections/resources/index.d.ts +1 -2
- package/serialization/resources/collections/resources/index.js +2 -3
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
- package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
- package/serialization/types/Assets.d.ts +2 -0
- package/serialization/types/Assets.js +2 -0
- package/serialization/types/Conflict.d.ts +10 -0
- package/serialization/types/Conflict.js +31 -0
- package/serialization/types/Dom.d.ts +1 -0
- package/serialization/types/Dom.js +1 -0
- package/serialization/types/FieldCreate.d.ts +13 -0
- package/serialization/types/FieldCreate.js +34 -0
- package/serialization/types/FieldType.d.ts +1 -1
- package/serialization/types/FieldType.js +2 -0
- package/serialization/types/Metadata.d.ts +13 -0
- package/serialization/types/Metadata.js +34 -0
- package/serialization/types/MetadataOptionsItem.d.ts +13 -0
- package/serialization/types/MetadataOptionsItem.js +34 -0
- package/serialization/types/OptionField.d.ts +19 -0
- package/serialization/types/OptionField.js +40 -0
- package/serialization/types/ReferenceField.d.ts +20 -0
- package/serialization/types/ReferenceField.js +41 -0
- package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
- package/serialization/types/ReferenceFieldMetadata.js +33 -0
- package/serialization/types/ReferenceFieldType.d.ts +10 -0
- package/serialization/types/ReferenceFieldType.js +31 -0
- package/serialization/types/Robots.d.ts +14 -0
- package/serialization/types/Robots.js +35 -0
- package/serialization/types/RobotsRulesItem.d.ts +14 -0
- package/serialization/types/RobotsRulesItem.js +35 -0
- package/serialization/types/StaticField.d.ts +18 -0
- package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
- package/serialization/types/StaticFieldType.d.ts +10 -0
- package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
- package/serialization/types/WebhookList.d.ts +2 -2
- package/serialization/types/WebhookList.js +2 -2
- package/serialization/types/index.d.ts +12 -0
- package/serialization/types/index.js +12 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/wrapper/WebflowClient.d.ts +3 -0
- package/wrapper/WebflowClient.js +5 -0
- package/wrapper/WebhooksClient.d.ts +39 -0
- package/wrapper/WebhooksClient.js +66 -0
- package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
- package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
- package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
- package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
- package/serialization/resources/collections/resources/fields/types/index.js +0 -17
- /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
- /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
|
@@ -8,8 +8,13 @@ service:
|
|
|
8
8
|
path: /workspaces/{workspace_id}/sites
|
|
9
9
|
method: POST
|
|
10
10
|
auth: true
|
|
11
|
-
docs:
|
|
12
|
-
Create a site.
|
|
11
|
+
docs: >
|
|
12
|
+
Create a site.
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
16
|
+
workspace.</Warning>
|
|
17
|
+
|
|
13
18
|
|
|
14
19
|
Required scope | `workspace:write`
|
|
15
20
|
source:
|
|
@@ -36,6 +41,7 @@ service:
|
|
|
36
41
|
response:
|
|
37
42
|
docs: Request was successful
|
|
38
43
|
type: root.Site
|
|
44
|
+
status-code: 201
|
|
39
45
|
errors:
|
|
40
46
|
- root.BadRequestError
|
|
41
47
|
- root.UnauthorizedError
|
|
@@ -56,34 +62,12 @@ service:
|
|
|
56
62
|
createdOn: '2024-10-15T20:24:38Z'
|
|
57
63
|
displayName: The Hitchiker‘s Guide
|
|
58
64
|
shortName: hitchikers-guide
|
|
59
|
-
lastPublished: '2016-10-24T19:43:17Z'
|
|
60
65
|
lastUpdated: '2024-10-15T20:24:38Z'
|
|
61
|
-
previewUrl: >-
|
|
62
|
-
https://d1otoma47x30pg.cloudfront.net/580e63e98c9a982ac9b8b741/201610241243.png
|
|
63
|
-
timeZone: America/Los_Angeles
|
|
64
66
|
parentFolderId: 670ece123598db72d9648be1
|
|
65
67
|
customDomains:
|
|
66
68
|
- id: 589a331aa51e760df7ccb89d
|
|
67
69
|
url: test-api-domain.com
|
|
68
70
|
lastPublished: '2022-12-07T16:51:37Z'
|
|
69
|
-
locales:
|
|
70
|
-
primary:
|
|
71
|
-
id: 653fd9af6a07fc9cfd7a5e57
|
|
72
|
-
cmsLocaleId: 653ad57de882f528b32e810e
|
|
73
|
-
enabled: false
|
|
74
|
-
displayName: English (United States)
|
|
75
|
-
displayImageId: displayImageId
|
|
76
|
-
redirect: true
|
|
77
|
-
subdirectory: ''
|
|
78
|
-
tag: en-US
|
|
79
|
-
secondary:
|
|
80
|
-
- id: 653fd9af6a07fc9cfd7a5e57
|
|
81
|
-
cmsLocaleId: 653ad57de882f528b32e810e
|
|
82
|
-
enabled: false
|
|
83
|
-
displayName: English (United States)
|
|
84
|
-
redirect: true
|
|
85
|
-
subdirectory: ''
|
|
86
|
-
tag: en-US
|
|
87
71
|
dataCollectionEnabled: false
|
|
88
72
|
dataCollectionType: always
|
|
89
73
|
list:
|
|
@@ -100,6 +84,7 @@ service:
|
|
|
100
84
|
response:
|
|
101
85
|
docs: Request was successful
|
|
102
86
|
type: root.Sites
|
|
87
|
+
status-code: 200
|
|
103
88
|
errors:
|
|
104
89
|
- root.UnauthorizedError
|
|
105
90
|
- root.NotFoundError
|
|
@@ -159,7 +144,6 @@ service:
|
|
|
159
144
|
previewUrl: >-
|
|
160
145
|
https://d1otoma47x30pg.cloudfront.net/42e63e98c9a982ac9b8b742/198110121200.png
|
|
161
146
|
timeZone: DeepSpace/Depression
|
|
162
|
-
parentFolderId: 1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6
|
|
163
147
|
customDomains:
|
|
164
148
|
- id: 589a331aa51e760df7ccb89f
|
|
165
149
|
url: marvin.blog
|
|
@@ -193,7 +177,6 @@ service:
|
|
|
193
177
|
previewUrl: >-
|
|
194
178
|
https://d1otoma47x30pg.cloudfront.net/42e63e98c9a982ac9b8b743/198210121200.png
|
|
195
179
|
timeZone: Vogsphere/PoetryHall
|
|
196
|
-
parentFolderId: 1as2d3f4g5h6j7k8l9z0x1c2v3b4n5m6
|
|
197
180
|
customDomains:
|
|
198
181
|
- id: 589a331aa51e760df7ccb8a0
|
|
199
182
|
url: vogonpoetry.galaxy
|
|
@@ -235,6 +218,7 @@ service:
|
|
|
235
218
|
response:
|
|
236
219
|
docs: Request was successful
|
|
237
220
|
type: root.Site
|
|
221
|
+
status-code: 200
|
|
238
222
|
errors:
|
|
239
223
|
- root.BadRequestError
|
|
240
224
|
- root.UnauthorizedError
|
|
@@ -288,8 +272,13 @@ service:
|
|
|
288
272
|
path: /sites/{site_id}
|
|
289
273
|
method: DELETE
|
|
290
274
|
auth: true
|
|
291
|
-
docs:
|
|
292
|
-
Delete a site.
|
|
275
|
+
docs: >
|
|
276
|
+
Delete a site.
|
|
277
|
+
|
|
278
|
+
|
|
279
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
280
|
+
workspace.</Warning>
|
|
281
|
+
|
|
293
282
|
|
|
294
283
|
Required scope | `sites:write`
|
|
295
284
|
source:
|
|
@@ -313,8 +302,13 @@ service:
|
|
|
313
302
|
path: /sites/{site_id}
|
|
314
303
|
method: PATCH
|
|
315
304
|
auth: true
|
|
316
|
-
docs:
|
|
317
|
-
Update a site.
|
|
305
|
+
docs: >
|
|
306
|
+
Update a site.
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
<Warning title="Enterprise Only">This endpoint requires an Enterprise
|
|
310
|
+
workspace.</Warning>
|
|
311
|
+
|
|
318
312
|
|
|
319
313
|
Required scope | `sites:write`
|
|
320
314
|
source:
|
|
@@ -338,6 +332,7 @@ service:
|
|
|
338
332
|
response:
|
|
339
333
|
docs: Request was successful
|
|
340
334
|
type: root.Site
|
|
335
|
+
status-code: 200
|
|
341
336
|
errors:
|
|
342
337
|
- root.BadRequestError
|
|
343
338
|
- root.UnauthorizedError
|
|
@@ -407,6 +402,7 @@ service:
|
|
|
407
402
|
response:
|
|
408
403
|
docs: Request was successful
|
|
409
404
|
type: root.Domains
|
|
405
|
+
status-code: 200
|
|
410
406
|
errors:
|
|
411
407
|
- root.UnauthorizedError
|
|
412
408
|
- root.ForbiddenError
|
|
@@ -460,6 +456,7 @@ service:
|
|
|
460
456
|
response:
|
|
461
457
|
docs: Request accepted
|
|
462
458
|
type: SitesPublishResponse
|
|
459
|
+
status-code: 202
|
|
463
460
|
errors:
|
|
464
461
|
- root.BadRequestError
|
|
465
462
|
- root.UnauthorizedError
|
|
@@ -18,6 +18,7 @@ service:
|
|
|
18
18
|
response:
|
|
19
19
|
docs: Request was successful
|
|
20
20
|
type: root.AuthorizedUser
|
|
21
|
+
status-code: 200
|
|
21
22
|
errors:
|
|
22
23
|
- root.UnauthorizedError
|
|
23
24
|
- root.ForbiddenError
|
|
@@ -44,6 +45,7 @@ service:
|
|
|
44
45
|
response:
|
|
45
46
|
docs: Request was successful
|
|
46
47
|
type: root.Authorization
|
|
48
|
+
status-code: 200
|
|
47
49
|
errors:
|
|
48
50
|
- root.UnauthorizedError
|
|
49
51
|
examples:
|
|
@@ -93,6 +93,7 @@ service:
|
|
|
93
93
|
response:
|
|
94
94
|
docs: Request was successful
|
|
95
95
|
type: root.UserList
|
|
96
|
+
status-code: 200
|
|
96
97
|
errors:
|
|
97
98
|
- root.BadRequestError
|
|
98
99
|
- root.UnauthorizedError
|
|
@@ -181,6 +182,7 @@ service:
|
|
|
181
182
|
response:
|
|
182
183
|
docs: Request was successful
|
|
183
184
|
type: root.User
|
|
185
|
+
status-code: 200
|
|
184
186
|
errors:
|
|
185
187
|
- root.BadRequestError
|
|
186
188
|
- root.UnauthorizedError
|
|
@@ -276,6 +278,7 @@ service:
|
|
|
276
278
|
response:
|
|
277
279
|
docs: Request was successful
|
|
278
280
|
type: root.User
|
|
281
|
+
status-code: 200
|
|
279
282
|
errors:
|
|
280
283
|
- root.BadRequestError
|
|
281
284
|
- root.UnauthorizedError
|
|
@@ -354,6 +357,7 @@ service:
|
|
|
354
357
|
response:
|
|
355
358
|
docs: Request was successful
|
|
356
359
|
type: root.User
|
|
360
|
+
status-code: 200
|
|
357
361
|
errors:
|
|
358
362
|
- root.BadRequestError
|
|
359
363
|
- root.UnauthorizedError
|
|
@@ -22,6 +22,7 @@ service:
|
|
|
22
22
|
response:
|
|
23
23
|
docs: Request was successful
|
|
24
24
|
type: root.WebhookList
|
|
25
|
+
status-code: 200
|
|
25
26
|
errors:
|
|
26
27
|
- root.BadRequestError
|
|
27
28
|
- root.UnauthorizedError
|
|
@@ -33,10 +34,6 @@ service:
|
|
|
33
34
|
site_id: 580e63e98c9a982ac9b8b741
|
|
34
35
|
response:
|
|
35
36
|
body:
|
|
36
|
-
pagination:
|
|
37
|
-
limit: 100
|
|
38
|
-
offset: 0
|
|
39
|
-
total: 100
|
|
40
37
|
webhooks:
|
|
41
38
|
- id: 57ca0a9e418c504a6e1acbb6
|
|
42
39
|
triggerType: form_submission
|
|
@@ -65,6 +62,10 @@ service:
|
|
|
65
62
|
name: Email Form
|
|
66
63
|
lastTriggered: '2023-02-08T23:59:28Z'
|
|
67
64
|
createdOn: '2016-07-19T01:43:40Z'
|
|
65
|
+
pagination:
|
|
66
|
+
limit: 100
|
|
67
|
+
offset: 0
|
|
68
|
+
total: 100
|
|
68
69
|
create:
|
|
69
70
|
path: /sites/{site_id}/webhooks
|
|
70
71
|
method: POST
|
|
@@ -93,6 +94,7 @@ service:
|
|
|
93
94
|
response:
|
|
94
95
|
docs: Request was successful
|
|
95
96
|
type: root.Webhook
|
|
97
|
+
status-code: 201
|
|
96
98
|
errors:
|
|
97
99
|
- root.BadRequestError
|
|
98
100
|
- root.UnauthorizedError
|
|
@@ -117,8 +119,6 @@ service:
|
|
|
117
119
|
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
118
120
|
workspaceId: 4f4e46fd476ea8c507000001
|
|
119
121
|
siteId: 562ac0395358780a1f5e6fbd
|
|
120
|
-
filter:
|
|
121
|
-
name: My Form
|
|
122
122
|
lastTriggered: '2023-02-08T23:59:28Z'
|
|
123
123
|
createdOn: '2022-11-08T23:59:28Z'
|
|
124
124
|
get:
|
|
@@ -139,6 +139,7 @@ service:
|
|
|
139
139
|
response:
|
|
140
140
|
docs: Request was successful
|
|
141
141
|
type: root.Webhook
|
|
142
|
+
status-code: 200
|
|
142
143
|
errors:
|
|
143
144
|
- root.BadRequestError
|
|
144
145
|
- root.UnauthorizedError
|
|
@@ -155,8 +156,6 @@ service:
|
|
|
155
156
|
url: https://webhook.site/7f7f7f7f-7f7f-7f7f-7f7f-7f7f7f7f7f7f
|
|
156
157
|
workspaceId: 4f4e46fd476ea8c507000001
|
|
157
158
|
siteId: 562ac0395358780a1f5e6fbd
|
|
158
|
-
filter:
|
|
159
|
-
name: My Form
|
|
160
159
|
lastTriggered: '2023-02-08T23:59:28Z'
|
|
161
160
|
createdOn: '2022-11-08T23:59:28Z'
|
|
162
161
|
delete:
|
package/.mock/fern.config.json
CHANGED
|
@@ -85,7 +85,7 @@ class AccessGroups {
|
|
|
85
85
|
const _response = yield core.fetcher({
|
|
86
86
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/accessgroups`),
|
|
87
87
|
method: "GET",
|
|
88
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
88
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
89
89
|
contentType: "application/json",
|
|
90
90
|
queryParameters: _queryParams,
|
|
91
91
|
requestType: "json",
|
|
@@ -27,7 +27,7 @@ export declare class Assets {
|
|
|
27
27
|
protected readonly _options: Assets.Options;
|
|
28
28
|
constructor(_options: Assets.Options);
|
|
29
29
|
/**
|
|
30
|
-
* List assets
|
|
30
|
+
* List of assets uploaded to a site
|
|
31
31
|
*
|
|
32
32
|
* Required scope | `assets:read`
|
|
33
33
|
*
|
|
@@ -45,15 +45,18 @@ export declare class Assets {
|
|
|
45
45
|
*/
|
|
46
46
|
list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Assets>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* The first step in uploading an asset to a site.
|
|
49
49
|
*
|
|
50
50
|
*
|
|
51
51
|
* This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`.
|
|
52
|
-
* You can use these two properties to [upload the file to Amazon s3 by making a POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
|
|
53
|
-
* request to the `uploadUrl` with the `uploadDetails` object as your header information in the request.
|
|
54
52
|
*
|
|
55
53
|
*
|
|
56
|
-
*
|
|
54
|
+
* Use these properties in the header of a [POST request to Amazson s3](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) to complete the upload.
|
|
55
|
+
*
|
|
56
|
+
*
|
|
57
|
+
* To learn more about how to upload assets to Webflow, see our [assets guide](/data/docs/working-with-assets).
|
|
58
|
+
*
|
|
59
|
+
* Required scope | `assets:write`
|
|
57
60
|
*
|
|
58
61
|
* @param {string} siteId - Unique identifier for a Site
|
|
59
62
|
* @param {Webflow.AssetsCreateRequest} request
|
|
@@ -73,7 +76,7 @@ export declare class Assets {
|
|
|
73
76
|
*/
|
|
74
77
|
create(siteId: string, request: Webflow.AssetsCreateRequest, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetUpload>;
|
|
75
78
|
/**
|
|
76
|
-
* Get an
|
|
79
|
+
* Get details about an asset
|
|
77
80
|
*
|
|
78
81
|
* Required scope | `assets:read`
|
|
79
82
|
*
|
|
@@ -109,7 +112,7 @@ export declare class Assets {
|
|
|
109
112
|
*/
|
|
110
113
|
delete(assetId: string, requestOptions?: Assets.RequestOptions): Promise<void>;
|
|
111
114
|
/**
|
|
112
|
-
* Update an Asset
|
|
115
|
+
* Update details of an Asset.
|
|
113
116
|
*
|
|
114
117
|
* Required scope | `assets:write`
|
|
115
118
|
*
|
|
@@ -53,7 +53,7 @@ class Assets {
|
|
|
53
53
|
this._options = _options;
|
|
54
54
|
}
|
|
55
55
|
/**
|
|
56
|
-
* List assets
|
|
56
|
+
* List of assets uploaded to a site
|
|
57
57
|
*
|
|
58
58
|
* Required scope | `assets:read`
|
|
59
59
|
*
|
|
@@ -75,7 +75,7 @@ class Assets {
|
|
|
75
75
|
const _response = yield core.fetcher({
|
|
76
76
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/assets`),
|
|
77
77
|
method: "GET",
|
|
78
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
78
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
79
79
|
contentType: "application/json",
|
|
80
80
|
requestType: "json",
|
|
81
81
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -150,15 +150,18 @@ class Assets {
|
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
|
-
*
|
|
153
|
+
* The first step in uploading an asset to a site.
|
|
154
154
|
*
|
|
155
155
|
*
|
|
156
156
|
* This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`.
|
|
157
|
-
* You can use these two properties to [upload the file to Amazon s3 by making a POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
|
|
158
|
-
* request to the `uploadUrl` with the `uploadDetails` object as your header information in the request.
|
|
159
157
|
*
|
|
160
158
|
*
|
|
161
|
-
*
|
|
159
|
+
* Use these properties in the header of a [POST request to Amazson s3](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html) to complete the upload.
|
|
160
|
+
*
|
|
161
|
+
*
|
|
162
|
+
* To learn more about how to upload assets to Webflow, see our [assets guide](/data/docs/working-with-assets).
|
|
163
|
+
*
|
|
164
|
+
* Required scope | `assets:write`
|
|
162
165
|
*
|
|
163
166
|
* @param {string} siteId - Unique identifier for a Site
|
|
164
167
|
* @param {Webflow.AssetsCreateRequest} request
|
|
@@ -182,7 +185,7 @@ class Assets {
|
|
|
182
185
|
const _response = yield core.fetcher({
|
|
183
186
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/assets`),
|
|
184
187
|
method: "POST",
|
|
185
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
188
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
186
189
|
contentType: "application/json",
|
|
187
190
|
requestType: "json",
|
|
188
191
|
body: serializers.AssetsCreateRequest.jsonOrThrow(request, {
|
|
@@ -262,7 +265,7 @@ class Assets {
|
|
|
262
265
|
});
|
|
263
266
|
}
|
|
264
267
|
/**
|
|
265
|
-
* Get an
|
|
268
|
+
* Get details about an asset
|
|
266
269
|
*
|
|
267
270
|
* Required scope | `assets:read`
|
|
268
271
|
*
|
|
@@ -284,7 +287,7 @@ class Assets {
|
|
|
284
287
|
const _response = yield core.fetcher({
|
|
285
288
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
286
289
|
method: "GET",
|
|
287
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
290
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
288
291
|
contentType: "application/json",
|
|
289
292
|
requestType: "json",
|
|
290
293
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -381,7 +384,7 @@ class Assets {
|
|
|
381
384
|
const _response = yield core.fetcher({
|
|
382
385
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
383
386
|
method: "DELETE",
|
|
384
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
387
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
385
388
|
contentType: "application/json",
|
|
386
389
|
requestType: "json",
|
|
387
390
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -450,7 +453,7 @@ class Assets {
|
|
|
450
453
|
});
|
|
451
454
|
}
|
|
452
455
|
/**
|
|
453
|
-
* Update an Asset
|
|
456
|
+
* Update details of an Asset.
|
|
454
457
|
*
|
|
455
458
|
* Required scope | `assets:write`
|
|
456
459
|
*
|
|
@@ -473,7 +476,7 @@ class Assets {
|
|
|
473
476
|
const _response = yield core.fetcher({
|
|
474
477
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `assets/${encodeURIComponent(assetId)}`),
|
|
475
478
|
method: "PATCH",
|
|
476
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
479
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
477
480
|
contentType: "application/json",
|
|
478
481
|
requestType: "json",
|
|
479
482
|
body: serializers.AssetsUpdateRequest.jsonOrThrow(request, {
|
|
@@ -575,7 +578,7 @@ class Assets {
|
|
|
575
578
|
const _response = yield core.fetcher({
|
|
576
579
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/asset_folders`),
|
|
577
580
|
method: "GET",
|
|
578
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
581
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
579
582
|
contentType: "application/json",
|
|
580
583
|
requestType: "json",
|
|
581
584
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -675,7 +678,7 @@ class Assets {
|
|
|
675
678
|
const _response = yield core.fetcher({
|
|
676
679
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/asset_folders`),
|
|
677
680
|
method: "POST",
|
|
678
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
681
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
679
682
|
contentType: "application/json",
|
|
680
683
|
requestType: "json",
|
|
681
684
|
body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, {
|
|
@@ -777,7 +780,7 @@ class Assets {
|
|
|
777
780
|
const _response = yield core.fetcher({
|
|
778
781
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `asset_folders/${encodeURIComponent(assetFolderId)}`),
|
|
779
782
|
method: "GET",
|
|
780
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
783
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
781
784
|
contentType: "application/json",
|
|
782
785
|
requestType: "json",
|
|
783
786
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -58,6 +58,7 @@ export declare class Collections {
|
|
|
58
58
|
* @throws {@link Webflow.BadRequestError}
|
|
59
59
|
* @throws {@link Webflow.UnauthorizedError}
|
|
60
60
|
* @throws {@link Webflow.NotFoundError}
|
|
61
|
+
* @throws {@link Webflow.ConflictError}
|
|
61
62
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
62
63
|
* @throws {@link Webflow.InternalServerError}
|
|
63
64
|
*
|
|
@@ -65,7 +66,26 @@ export declare class Collections {
|
|
|
65
66
|
* await client.collections.create("580e63e98c9a982ac9b8b741", {
|
|
66
67
|
* displayName: "Blog Posts",
|
|
67
68
|
* singularName: "Blog Post",
|
|
68
|
-
* slug: "posts"
|
|
69
|
+
* slug: "posts",
|
|
70
|
+
* fields: [{
|
|
71
|
+
* isRequired: true,
|
|
72
|
+
* type: "PlainText",
|
|
73
|
+
* displayName: "Title",
|
|
74
|
+
* helpText: "The title of the blog post"
|
|
75
|
+
* }, {
|
|
76
|
+
* isRequired: true,
|
|
77
|
+
* type: "RichText",
|
|
78
|
+
* displayName: "Content",
|
|
79
|
+
* helpText: "The content of the blog post"
|
|
80
|
+
* }, {
|
|
81
|
+
* isRequired: true,
|
|
82
|
+
* type: "Reference",
|
|
83
|
+
* displayName: "Author",
|
|
84
|
+
* helpText: "The author of the blog post",
|
|
85
|
+
* metadata: {
|
|
86
|
+
* collectionId: "23cc2d952d4e4631ffd4345d2743db4e"
|
|
87
|
+
* }
|
|
88
|
+
* }]
|
|
69
89
|
* })
|
|
70
90
|
*/
|
|
71
91
|
create(siteId: string, request: Webflow.CollectionsCreateRequest, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
|
|
@@ -77,7 +77,7 @@ class Collections {
|
|
|
77
77
|
const _response = yield core.fetcher({
|
|
78
78
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/collections`),
|
|
79
79
|
method: "GET",
|
|
80
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
80
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
81
81
|
contentType: "application/json",
|
|
82
82
|
requestType: "json",
|
|
83
83
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -163,6 +163,7 @@ class Collections {
|
|
|
163
163
|
* @throws {@link Webflow.BadRequestError}
|
|
164
164
|
* @throws {@link Webflow.UnauthorizedError}
|
|
165
165
|
* @throws {@link Webflow.NotFoundError}
|
|
166
|
+
* @throws {@link Webflow.ConflictError}
|
|
166
167
|
* @throws {@link Webflow.TooManyRequestsError}
|
|
167
168
|
* @throws {@link Webflow.InternalServerError}
|
|
168
169
|
*
|
|
@@ -170,7 +171,26 @@ class Collections {
|
|
|
170
171
|
* await client.collections.create("580e63e98c9a982ac9b8b741", {
|
|
171
172
|
* displayName: "Blog Posts",
|
|
172
173
|
* singularName: "Blog Post",
|
|
173
|
-
* slug: "posts"
|
|
174
|
+
* slug: "posts",
|
|
175
|
+
* fields: [{
|
|
176
|
+
* isRequired: true,
|
|
177
|
+
* type: "PlainText",
|
|
178
|
+
* displayName: "Title",
|
|
179
|
+
* helpText: "The title of the blog post"
|
|
180
|
+
* }, {
|
|
181
|
+
* isRequired: true,
|
|
182
|
+
* type: "RichText",
|
|
183
|
+
* displayName: "Content",
|
|
184
|
+
* helpText: "The content of the blog post"
|
|
185
|
+
* }, {
|
|
186
|
+
* isRequired: true,
|
|
187
|
+
* type: "Reference",
|
|
188
|
+
* displayName: "Author",
|
|
189
|
+
* helpText: "The author of the blog post",
|
|
190
|
+
* metadata: {
|
|
191
|
+
* collectionId: "23cc2d952d4e4631ffd4345d2743db4e"
|
|
192
|
+
* }
|
|
193
|
+
* }]
|
|
174
194
|
* })
|
|
175
195
|
*/
|
|
176
196
|
create(siteId, request, requestOptions) {
|
|
@@ -179,7 +199,7 @@ class Collections {
|
|
|
179
199
|
const _response = yield core.fetcher({
|
|
180
200
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/collections`),
|
|
181
201
|
method: "POST",
|
|
182
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
202
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
183
203
|
contentType: "application/json",
|
|
184
204
|
requestType: "json",
|
|
185
205
|
body: serializers.CollectionsCreateRequest.jsonOrThrow(request, {
|
|
@@ -220,6 +240,8 @@ class Collections {
|
|
|
220
240
|
skipValidation: true,
|
|
221
241
|
breadcrumbsPrefix: ["response"],
|
|
222
242
|
}));
|
|
243
|
+
case 409:
|
|
244
|
+
throw new Webflow.ConflictError(_response.error.body);
|
|
223
245
|
case 429:
|
|
224
246
|
throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
|
|
225
247
|
unrecognizedObjectKeys: "passthrough",
|
|
@@ -281,7 +303,7 @@ class Collections {
|
|
|
281
303
|
const _response = yield core.fetcher({
|
|
282
304
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}`),
|
|
283
305
|
method: "GET",
|
|
284
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
306
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
285
307
|
contentType: "application/json",
|
|
286
308
|
requestType: "json",
|
|
287
309
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -378,7 +400,7 @@ class Collections {
|
|
|
378
400
|
const _response = yield core.fetcher({
|
|
379
401
|
url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `collections/${encodeURIComponent(collectionId)}`),
|
|
380
402
|
method: "DELETE",
|
|
381
|
-
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.
|
|
403
|
+
headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.1", "User-Agent": "webflow-api/3.1.1", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
|
|
382
404
|
contentType: "application/json",
|
|
383
405
|
requestType: "json",
|
|
384
406
|
timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
|
|
@@ -1,12 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
+
import * as Webflow from "../../../../index";
|
|
4
5
|
/**
|
|
5
6
|
* @example
|
|
6
7
|
* {
|
|
7
8
|
* displayName: "Blog Posts",
|
|
8
9
|
* singularName: "Blog Post",
|
|
9
|
-
* slug: "posts"
|
|
10
|
+
* slug: "posts",
|
|
11
|
+
* fields: [{
|
|
12
|
+
* isRequired: true,
|
|
13
|
+
* type: "PlainText",
|
|
14
|
+
* displayName: "Title",
|
|
15
|
+
* helpText: "The title of the blog post"
|
|
16
|
+
* }, {
|
|
17
|
+
* isRequired: true,
|
|
18
|
+
* type: "RichText",
|
|
19
|
+
* displayName: "Content",
|
|
20
|
+
* helpText: "The content of the blog post"
|
|
21
|
+
* }, {
|
|
22
|
+
* isRequired: true,
|
|
23
|
+
* type: "Reference",
|
|
24
|
+
* displayName: "Author",
|
|
25
|
+
* helpText: "The author of the blog post",
|
|
26
|
+
* metadata: {
|
|
27
|
+
* collectionId: "23cc2d952d4e4631ffd4345d2743db4e"
|
|
28
|
+
* }
|
|
29
|
+
* }]
|
|
10
30
|
* }
|
|
11
31
|
*/
|
|
12
32
|
export interface CollectionsCreateRequest {
|
|
@@ -16,4 +36,6 @@ export interface CollectionsCreateRequest {
|
|
|
16
36
|
singularName: string;
|
|
17
37
|
/** Part of a URL that identifier */
|
|
18
38
|
slug?: string;
|
|
39
|
+
/** An array of custom fields to add to the collection */
|
|
40
|
+
fields?: Webflow.FieldCreate[];
|
|
19
41
|
}
|