webflow-api 3.1.0 → 3.1.2

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.
Files changed (351) hide show
  1. package/.mock/definition/__package__.yml +363 -79
  2. package/.mock/definition/accessGroups.yml +1 -0
  3. package/.mock/definition/assets.yml +86 -47
  4. package/.mock/definition/collections/fields.yml +63 -46
  5. package/.mock/definition/collections/items.yml +58 -30
  6. package/.mock/definition/collections.yml +42 -7
  7. package/.mock/definition/components.yml +43 -50
  8. package/.mock/definition/ecommerce.yml +1 -0
  9. package/.mock/definition/forms.yml +114 -2
  10. package/.mock/definition/inventory.yml +2 -0
  11. package/.mock/definition/orders.yml +6 -68
  12. package/.mock/definition/pages/scripts.yml +10 -44
  13. package/.mock/definition/pages.yml +36 -41
  14. package/.mock/definition/products.yml +9 -0
  15. package/.mock/definition/scripts.yml +18 -49
  16. package/.mock/definition/sites/activityLogs.yml +10 -7
  17. package/.mock/definition/sites/plans.yml +7 -1
  18. package/.mock/definition/sites/redirects.yml +24 -1
  19. package/.mock/definition/sites/robotsTxt.yml +202 -0
  20. package/.mock/definition/sites/scripts.yml +22 -30
  21. package/.mock/definition/sites.yml +27 -30
  22. package/.mock/definition/token.yml +2 -0
  23. package/.mock/definition/users.yml +4 -0
  24. package/.mock/definition/webhooks.yml +7 -8
  25. package/.mock/fern.config.json +1 -1
  26. package/api/resources/accessGroups/client/Client.js +1 -1
  27. package/api/resources/assets/client/Client.d.ts +10 -7
  28. package/api/resources/assets/client/Client.js +18 -15
  29. package/api/resources/collections/client/Client.d.ts +21 -1
  30. package/api/resources/collections/client/Client.js +27 -5
  31. package/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
  32. package/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
  33. package/api/resources/collections/resources/fields/client/Client.js +40 -8
  34. package/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  35. package/api/resources/collections/resources/fields/index.d.ts +0 -1
  36. package/api/resources/collections/resources/fields/index.js +0 -1
  37. package/api/resources/collections/resources/index.d.ts +1 -2
  38. package/api/resources/collections/resources/index.js +2 -3
  39. package/api/resources/collections/resources/items/client/Client.d.ts +19 -12
  40. package/api/resources/collections/resources/items/client/Client.js +39 -28
  41. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  42. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  43. package/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  44. package/api/resources/components/client/Client.d.ts +5 -6
  45. package/api/resources/components/client/Client.js +10 -11
  46. package/api/resources/ecommerce/client/Client.js +1 -1
  47. package/api/resources/forms/client/Client.d.ts +51 -0
  48. package/api/resources/forms/client/Client.js +226 -5
  49. package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
  50. package/api/resources/forms/client/requests/index.d.ts +1 -0
  51. package/api/resources/inventory/client/Client.js +2 -2
  52. package/api/resources/orders/client/Client.js +6 -6
  53. package/api/resources/pages/client/Client.d.ts +8 -3
  54. package/api/resources/pages/client/Client.js +13 -8
  55. package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
  56. package/api/resources/pages/resources/scripts/client/Client.js +9 -23
  57. package/api/resources/products/client/Client.js +6 -6
  58. package/api/resources/scripts/client/Client.d.ts +12 -20
  59. package/api/resources/scripts/client/Client.js +15 -23
  60. package/api/resources/sites/client/Client.d.ts +12 -3
  61. package/api/resources/sites/client/Client.js +25 -14
  62. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
  63. package/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
  64. package/api/resources/sites/resources/index.d.ts +1 -0
  65. package/api/resources/sites/resources/index.js +2 -1
  66. package/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
  67. package/api/resources/sites/resources/plans/client/Client.js +3 -1
  68. package/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
  69. package/api/resources/sites/resources/redirects/client/Client.js +14 -4
  70. package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
  71. package/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
  72. package/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
  73. package/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
  74. package/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
  75. package/api/resources/{collections/resources/fields/types → sites/resources/robotsTxt}/index.js +1 -1
  76. package/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
  77. package/api/resources/sites/resources/scripts/client/Client.js +19 -17
  78. package/api/resources/token/client/Client.js +2 -2
  79. package/api/resources/users/client/Client.js +5 -5
  80. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
  81. package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
  82. package/api/resources/webhooks/client/Client.js +4 -4
  83. package/api/types/Asset.d.ts +4 -0
  84. package/api/types/AssetVariant.d.ts +3 -0
  85. package/api/types/Assets.d.ts +1 -0
  86. package/api/types/ComponentNode.d.ts +2 -2
  87. package/api/types/Conflict.d.ts +4 -0
  88. package/api/types/Dom.d.ts +2 -0
  89. package/api/types/FieldCreate.d.ts +8 -0
  90. package/api/types/FieldCreate.js +5 -0
  91. package/api/types/FieldType.d.ts +3 -1
  92. package/api/types/FieldType.js +2 -0
  93. package/api/types/ImageNode.d.ts +1 -0
  94. package/api/types/ImageNodeImage.d.ts +3 -0
  95. package/api/types/Metadata.d.ts +11 -0
  96. package/api/types/Metadata.js +5 -0
  97. package/api/types/MetadataOptionsItem.d.ts +12 -0
  98. package/api/types/MetadataOptionsItem.js +5 -0
  99. package/api/types/OAuthScope.d.ts +8 -0
  100. package/api/types/OAuthScope.js +2 -0
  101. package/api/types/OptionField.d.ts +19 -0
  102. package/api/types/OptionField.js +5 -0
  103. package/api/types/ReferenceField.d.ts +20 -0
  104. package/api/types/ReferenceField.js +5 -0
  105. package/api/types/ReferenceFieldMetadata.d.ts +10 -0
  106. package/api/types/ReferenceFieldMetadata.js +5 -0
  107. package/api/types/ReferenceFieldType.d.ts +11 -0
  108. package/api/types/ReferenceFieldType.js +10 -0
  109. package/api/types/Robots.d.ts +13 -0
  110. package/api/types/Robots.js +5 -0
  111. package/api/types/RobotsRulesItem.d.ts +11 -0
  112. package/api/types/RobotsRulesItem.js +5 -0
  113. package/api/types/SkuFieldData.d.ts +2 -0
  114. package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
  115. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
  116. package/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
  117. package/api/types/StaticField.js +5 -0
  118. package/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
  119. package/{dist/api/resources/collections/resources/fields/types/FieldCreateType.js → api/types/StaticFieldType.js} +2 -3
  120. package/api/types/Text.d.ts +3 -0
  121. package/api/types/TextNode.d.ts +1 -0
  122. package/api/types/TextNodeText.d.ts +3 -0
  123. package/api/types/TriggerType.d.ts +1 -15
  124. package/api/types/WebhookList.d.ts +1 -1
  125. package/api/types/index.d.ts +12 -0
  126. package/api/types/index.js +12 -0
  127. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  128. package/dist/api/resources/assets/client/Client.d.ts +10 -7
  129. package/dist/api/resources/assets/client/Client.js +18 -15
  130. package/dist/api/resources/collections/client/Client.d.ts +21 -1
  131. package/dist/api/resources/collections/client/Client.js +27 -5
  132. package/dist/api/resources/collections/client/requests/CollectionsCreateRequest.d.ts +23 -1
  133. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +34 -4
  134. package/dist/api/resources/collections/resources/fields/client/Client.js +40 -8
  135. package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  136. package/dist/api/resources/collections/resources/fields/index.d.ts +0 -1
  137. package/dist/api/resources/collections/resources/fields/index.js +0 -1
  138. package/dist/api/resources/collections/resources/index.d.ts +1 -2
  139. package/dist/api/resources/collections/resources/index.js +2 -3
  140. package/dist/api/resources/collections/resources/items/client/Client.d.ts +19 -12
  141. package/dist/api/resources/collections/resources/items/client/Client.js +39 -28
  142. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  143. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  144. package/dist/api/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  145. package/dist/api/resources/components/client/Client.d.ts +5 -6
  146. package/dist/api/resources/components/client/Client.js +10 -11
  147. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  148. package/dist/api/resources/forms/client/Client.d.ts +51 -0
  149. package/dist/api/resources/forms/client/Client.js +226 -5
  150. package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +23 -0
  151. package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.js +5 -0
  152. package/dist/api/resources/forms/client/requests/index.d.ts +1 -0
  153. package/dist/api/resources/inventory/client/Client.js +2 -2
  154. package/dist/api/resources/orders/client/Client.js +6 -6
  155. package/dist/api/resources/pages/client/Client.d.ts +8 -3
  156. package/dist/api/resources/pages/client/Client.js +13 -8
  157. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -20
  158. package/dist/api/resources/pages/resources/scripts/client/Client.js +9 -23
  159. package/dist/api/resources/products/client/Client.js +6 -6
  160. package/dist/api/resources/scripts/client/Client.d.ts +12 -20
  161. package/dist/api/resources/scripts/client/Client.js +15 -23
  162. package/dist/api/resources/sites/client/Client.d.ts +12 -3
  163. package/dist/api/resources/sites/client/Client.js +25 -14
  164. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +5 -1
  165. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -2
  166. package/dist/api/resources/sites/resources/index.d.ts +1 -0
  167. package/dist/api/resources/sites/resources/index.js +2 -1
  168. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -0
  169. package/dist/api/resources/sites/resources/plans/client/Client.js +3 -1
  170. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +10 -0
  171. package/dist/api/resources/sites/resources/redirects/client/Client.js +14 -4
  172. package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +124 -0
  173. package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +486 -0
  174. package/dist/api/resources/sites/resources/robotsTxt/client/index.d.ts +1 -0
  175. package/dist/api/resources/sites/resources/robotsTxt/client/index.js +2 -0
  176. package/dist/api/resources/sites/resources/robotsTxt/index.d.ts +1 -0
  177. package/dist/{serialization/resources/collections/resources/fields/types → api/resources/sites/resources/robotsTxt}/index.js +1 -1
  178. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +15 -13
  179. package/dist/api/resources/sites/resources/scripts/client/Client.js +19 -17
  180. package/dist/api/resources/token/client/Client.js +2 -2
  181. package/dist/api/resources/users/client/Client.js +5 -5
  182. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -4
  183. package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +1 -4
  184. package/dist/api/resources/webhooks/client/Client.js +4 -4
  185. package/dist/api/types/Asset.d.ts +4 -0
  186. package/dist/api/types/AssetVariant.d.ts +3 -0
  187. package/dist/api/types/Assets.d.ts +1 -0
  188. package/dist/api/types/ComponentNode.d.ts +2 -2
  189. package/dist/api/types/Conflict.d.ts +4 -0
  190. package/dist/api/types/Conflict.js +5 -0
  191. package/dist/api/types/Dom.d.ts +2 -0
  192. package/dist/api/types/FieldCreate.d.ts +8 -0
  193. package/dist/api/types/FieldCreate.js +5 -0
  194. package/dist/api/types/FieldType.d.ts +3 -1
  195. package/dist/api/types/FieldType.js +2 -0
  196. package/dist/api/types/ImageNode.d.ts +1 -0
  197. package/dist/api/types/ImageNodeImage.d.ts +3 -0
  198. package/dist/api/types/Metadata.d.ts +11 -0
  199. package/dist/api/types/Metadata.js +5 -0
  200. package/dist/api/types/MetadataOptionsItem.d.ts +12 -0
  201. package/dist/api/types/MetadataOptionsItem.js +5 -0
  202. package/dist/api/types/OAuthScope.d.ts +8 -0
  203. package/dist/api/types/OAuthScope.js +2 -0
  204. package/dist/api/types/OptionField.d.ts +19 -0
  205. package/dist/api/types/OptionField.js +5 -0
  206. package/dist/api/types/ReferenceField.d.ts +20 -0
  207. package/dist/api/types/ReferenceField.js +5 -0
  208. package/dist/api/types/ReferenceFieldMetadata.d.ts +10 -0
  209. package/dist/api/types/ReferenceFieldMetadata.js +5 -0
  210. package/dist/api/types/ReferenceFieldType.d.ts +11 -0
  211. package/dist/api/types/ReferenceFieldType.js +10 -0
  212. package/dist/api/types/Robots.d.ts +13 -0
  213. package/dist/api/types/Robots.js +5 -0
  214. package/dist/api/types/RobotsRulesItem.d.ts +11 -0
  215. package/dist/api/types/RobotsRulesItem.js +5 -0
  216. package/dist/api/types/SkuFieldData.d.ts +2 -0
  217. package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +3 -0
  218. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +3 -0
  219. package/dist/api/{resources/collections/resources/fields/client/requests/FieldCreate.d.ts → types/StaticField.d.ts} +7 -12
  220. package/dist/api/types/StaticField.js +5 -0
  221. package/dist/api/{resources/collections/resources/fields/types/FieldCreateType.d.ts → types/StaticFieldType.d.ts} +2 -3
  222. package/{api/resources/collections/resources/fields/types/FieldCreateType.js → dist/api/types/StaticFieldType.js} +2 -3
  223. package/dist/api/types/Text.d.ts +3 -0
  224. package/dist/api/types/TextNode.d.ts +1 -0
  225. package/dist/api/types/TextNodeText.d.ts +3 -0
  226. package/dist/api/types/TriggerType.d.ts +1 -15
  227. package/dist/api/types/WebhookList.d.ts +1 -1
  228. package/dist/api/types/index.d.ts +12 -0
  229. package/dist/api/types/index.js +12 -0
  230. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  231. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  232. package/dist/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  233. package/dist/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  234. package/dist/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  235. package/dist/serialization/resources/collections/resources/fields/index.js +0 -1
  236. package/dist/serialization/resources/collections/resources/index.d.ts +1 -2
  237. package/dist/serialization/resources/collections/resources/index.js +2 -3
  238. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  239. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  240. package/dist/serialization/types/Assets.d.ts +2 -0
  241. package/dist/serialization/types/Assets.js +2 -0
  242. package/dist/serialization/types/Conflict.d.ts +10 -0
  243. package/dist/serialization/types/Conflict.js +31 -0
  244. package/dist/serialization/types/Dom.d.ts +1 -0
  245. package/dist/serialization/types/Dom.js +1 -0
  246. package/dist/serialization/types/FieldCreate.d.ts +13 -0
  247. package/dist/serialization/types/FieldCreate.js +34 -0
  248. package/dist/serialization/types/FieldType.d.ts +1 -1
  249. package/dist/serialization/types/FieldType.js +2 -0
  250. package/dist/serialization/types/Metadata.d.ts +13 -0
  251. package/dist/serialization/types/Metadata.js +34 -0
  252. package/dist/serialization/types/MetadataOptionsItem.d.ts +13 -0
  253. package/dist/serialization/types/MetadataOptionsItem.js +34 -0
  254. package/dist/serialization/types/OptionField.d.ts +19 -0
  255. package/dist/serialization/types/OptionField.js +40 -0
  256. package/dist/serialization/types/ReferenceField.d.ts +20 -0
  257. package/dist/serialization/types/ReferenceField.js +41 -0
  258. package/dist/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  259. package/dist/serialization/types/ReferenceFieldMetadata.js +33 -0
  260. package/dist/serialization/types/ReferenceFieldType.d.ts +10 -0
  261. package/dist/serialization/types/ReferenceFieldType.js +31 -0
  262. package/dist/serialization/types/Robots.d.ts +14 -0
  263. package/dist/serialization/types/Robots.js +35 -0
  264. package/dist/serialization/types/RobotsRulesItem.d.ts +14 -0
  265. package/dist/serialization/types/RobotsRulesItem.js +35 -0
  266. package/dist/serialization/types/StaticField.d.ts +18 -0
  267. package/dist/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  268. package/dist/serialization/types/StaticFieldType.d.ts +10 -0
  269. package/dist/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  270. package/dist/serialization/types/WebhookList.d.ts +2 -2
  271. package/dist/serialization/types/WebhookList.js +2 -2
  272. package/dist/serialization/types/index.d.ts +12 -0
  273. package/dist/serialization/types/index.js +12 -0
  274. package/dist/version.d.ts +1 -1
  275. package/dist/version.js +1 -1
  276. package/dist/wrapper/AssetsClient.d.ts +12 -0
  277. package/dist/wrapper/AssetsClient.js +16 -0
  278. package/dist/wrapper/AssetsUtilitiesClient.d.ts +49 -0
  279. package/dist/wrapper/AssetsUtilitiesClient.js +121 -0
  280. package/dist/wrapper/WebflowClient.d.ts +6 -0
  281. package/dist/wrapper/WebflowClient.js +10 -0
  282. package/dist/wrapper/WebhooksClient.d.ts +39 -0
  283. package/dist/wrapper/WebhooksClient.js +66 -0
  284. package/package.json +15 -12
  285. package/reference.md +585 -91
  286. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  287. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  288. package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  289. package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  290. package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  291. package/serialization/resources/collections/resources/fields/index.js +0 -1
  292. package/serialization/resources/collections/resources/index.d.ts +1 -2
  293. package/serialization/resources/collections/resources/index.js +2 -3
  294. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  295. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  296. package/serialization/types/Assets.d.ts +2 -0
  297. package/serialization/types/Assets.js +2 -0
  298. package/serialization/types/Conflict.d.ts +10 -0
  299. package/serialization/types/Conflict.js +31 -0
  300. package/serialization/types/Dom.d.ts +1 -0
  301. package/serialization/types/Dom.js +1 -0
  302. package/serialization/types/FieldCreate.d.ts +13 -0
  303. package/serialization/types/FieldCreate.js +34 -0
  304. package/serialization/types/FieldType.d.ts +1 -1
  305. package/serialization/types/FieldType.js +2 -0
  306. package/serialization/types/Metadata.d.ts +13 -0
  307. package/serialization/types/Metadata.js +34 -0
  308. package/serialization/types/MetadataOptionsItem.d.ts +13 -0
  309. package/serialization/types/MetadataOptionsItem.js +34 -0
  310. package/serialization/types/OptionField.d.ts +19 -0
  311. package/serialization/types/OptionField.js +40 -0
  312. package/serialization/types/ReferenceField.d.ts +20 -0
  313. package/serialization/types/ReferenceField.js +41 -0
  314. package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  315. package/serialization/types/ReferenceFieldMetadata.js +33 -0
  316. package/serialization/types/ReferenceFieldType.d.ts +10 -0
  317. package/serialization/types/ReferenceFieldType.js +31 -0
  318. package/serialization/types/Robots.d.ts +14 -0
  319. package/serialization/types/Robots.js +35 -0
  320. package/serialization/types/RobotsRulesItem.d.ts +14 -0
  321. package/serialization/types/RobotsRulesItem.js +35 -0
  322. package/serialization/types/StaticField.d.ts +18 -0
  323. package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  324. package/serialization/types/StaticFieldType.d.ts +10 -0
  325. package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  326. package/serialization/types/WebhookList.d.ts +2 -2
  327. package/serialization/types/WebhookList.js +2 -2
  328. package/serialization/types/index.d.ts +12 -0
  329. package/serialization/types/index.js +12 -0
  330. package/version.d.ts +1 -1
  331. package/version.js +1 -1
  332. package/wrapper/AssetsClient.d.ts +12 -0
  333. package/wrapper/AssetsClient.js +16 -0
  334. package/wrapper/AssetsUtilitiesClient.d.ts +49 -0
  335. package/wrapper/AssetsUtilitiesClient.js +121 -0
  336. package/wrapper/WebflowClient.d.ts +6 -0
  337. package/wrapper/WebflowClient.js +10 -0
  338. package/wrapper/WebhooksClient.d.ts +39 -0
  339. package/wrapper/WebhooksClient.js +66 -0
  340. package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  341. package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  342. package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
  343. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  344. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  345. package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  346. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  347. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  348. package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  349. package/serialization/resources/collections/resources/fields/types/index.js +0 -17
  350. /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
  351. /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
@@ -49,6 +49,7 @@ service:
49
49
  response:
50
50
  docs: Request was successful
51
51
  type: root.AccessGroupList
52
+ status-code: 200
52
53
  errors:
53
54
  - root.BadRequestError
54
55
  - root.UnauthorizedError
@@ -9,7 +9,7 @@ service:
9
9
  method: GET
10
10
  auth: true
11
11
  docs: |
12
- List assets for a given site
12
+ List of assets uploaded to a site
13
13
 
14
14
  Required scope | `assets:read`
15
15
  source:
@@ -22,6 +22,7 @@ service:
22
22
  response:
23
23
  docs: Request was successful
24
24
  type: root.Assets
25
+ status-code: 200
25
26
  errors:
26
27
  - root.BadRequestError
27
28
  - root.UnauthorizedError
@@ -55,35 +56,64 @@ service:
55
56
  width: 500
56
57
  height: 900
57
58
  quality: 100
58
- altText: A red chair
59
+ altText: A single candy wrapper
60
+ - id: 63e5889e7fe4eafa7384cea5
61
+ contentType: image/png
62
+ size: 2212772
63
+ siteId: 63938b302ea6b0aa6f3d8745
64
+ hostedUrl: >-
65
+ https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
66
+ originalFileName: Gum-Wrapper.svg
67
+ displayName: 63e5889e7fe4eafa7384cea5_Gum-Wrapper.png
68
+ lastUpdated: '2023-03-01T23:42:57Z'
69
+ createdOn: '2023-02-09T23:58:22Z'
70
+ variants:
71
+ - hostedUrl: >-
72
+ https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
73
+ originalFileName: >-
74
+ Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
75
+ displayName: >-
76
+ 660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
77
+ format: png
78
+ width: 500
79
+ height: 900
80
+ quality: 100
81
+ altText: A single gum wrapper
82
+ pagination:
83
+ limit: 2
84
+ offset: 0
85
+ total: 2
59
86
  create:
60
87
  path: /sites/{site_id}/assets
61
88
  method: POST
62
89
  auth: true
63
90
  docs: >
64
- Create a new asset entry.
91
+ The first step in uploading an asset to a site.
65
92
 
66
93
 
67
94
 
68
95
  This endpoint generates a response with the following information:
69
- `uploadUrl` and `uploadDetails`.
96
+ `uploadUrl` and `uploadDetails`.
70
97
 
71
- You can use these two properties to [upload the file to Amazon s3 by
72
- making a
73
- POST](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
74
98
 
75
- request to the `uploadUrl` with the `uploadDetails` object as your
76
- header information in the request.
77
99
 
78
-
79
- Required scope | `assets:write`
100
+ Use these properties in the header of a [POST request to Amazson
101
+ s3](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html)
102
+ to complete the upload.
103
+
104
+
105
+
106
+ To learn more about how to upload assets to Webflow, see our [assets
107
+ guide](/data/docs/working-with-assets).
108
+
109
+ Required scope | `assets:write`
80
110
  source:
81
111
  openapi: ../../../openapi/referenced-specs/v2.yml
82
112
  path-parameters:
83
113
  site_id:
84
114
  type: string
85
115
  docs: Unique identifier for a Site
86
- display-name: Create Asset Metadata
116
+ display-name: Upload Asset
87
117
  request:
88
118
  name: AssetsCreateRequest
89
119
  body:
@@ -103,6 +133,7 @@ service:
103
133
  response:
104
134
  docs: Request was successful
105
135
  type: root.AssetUpload
136
+ status-code: 200
106
137
  errors:
107
138
  - root.BadRequestError
108
139
  - root.UnauthorizedError
@@ -146,7 +177,7 @@ service:
146
177
  method: GET
147
178
  auth: true
148
179
  docs: |
149
- Get an Asset
180
+ Get details about an asset
150
181
 
151
182
  Required scope | `assets:read`
152
183
  source:
@@ -159,6 +190,7 @@ service:
159
190
  response:
160
191
  docs: Request was successful
161
192
  type: root.Asset
193
+ status-code: 200
162
194
  errors:
163
195
  - root.BadRequestError
164
196
  - root.UnauthorizedError
@@ -170,25 +202,27 @@ service:
170
202
  asset_id: 580e63fc8c9a982ac9b8b745
171
203
  response:
172
204
  body:
173
- id: 55131cd036c09f7d07883dfc
205
+ id: 63e5889e7fe4eafa7384cea4
174
206
  contentType: image/png
175
- size: 1500
176
- siteId: 62749158efef318abc8d5a0f
177
- hostedUrl: example.com/hostedimage.png
178
- originalFileName: image.png
179
- displayName: example-image-123.png
180
- lastUpdated: '2016-09-06T21:12:22Z'
181
- createdOn: '2016-09-02T23:26:22Z'
207
+ size: 2212772
208
+ siteId: 63938b302ea6b0aa6f3d8745
209
+ hostedUrl: >-
210
+ https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
211
+ originalFileName: Candy-Wrapper.svg
212
+ displayName: 63e5889e7fe4eafa7384cea4_Candy-Wrapper.png
213
+ lastUpdated: '2023-03-01T23:42:57Z'
214
+ createdOn: '2023-02-09T23:58:22Z'
182
215
  variants:
183
- - hostedUrl: example.com/hostedimage.png
184
- originalFileName: image.png
185
- displayName: A brown dog
186
- format: format
187
- width: 1500
216
+ - hostedUrl: >-
217
+ https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
218
+ originalFileName: Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
219
+ displayName: >-
220
+ 660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
221
+ format: png
222
+ width: 500
188
223
  height: 900
189
- quality: 1
190
- error: error
191
- altText: A red chair
224
+ quality: 100
225
+ altText: A single candy wrapper
192
226
  delete:
193
227
  path: /assets/{asset_id}
194
228
  method: DELETE
@@ -218,7 +252,7 @@ service:
218
252
  method: PATCH
219
253
  auth: true
220
254
  docs: |
221
- Update an Asset
255
+ Update details of an Asset.
222
256
 
223
257
  Required scope | `assets:write`
224
258
  source:
@@ -244,6 +278,7 @@ service:
244
278
  response:
245
279
  docs: Request was successful
246
280
  type: root.Asset
281
+ status-code: 200
247
282
  errors:
248
283
  - root.BadRequestError
249
284
  - root.UnauthorizedError
@@ -256,25 +291,27 @@ service:
256
291
  request: {}
257
292
  response:
258
293
  body:
259
- id: 55131cd036c09f7d07883dfc
294
+ id: 63e5889e7fe4eafa7384cea4
260
295
  contentType: image/png
261
- size: 1500
262
- siteId: 62749158efef318abc8d5a0f
263
- hostedUrl: example.com/hostedimage.png
264
- originalFileName: image.png
265
- displayName: example-image-123.png
266
- lastUpdated: '2016-09-06T21:12:22Z'
267
- createdOn: '2016-09-02T23:26:22Z'
296
+ size: 2212772
297
+ siteId: 63938b302ea6b0aa6f3d8745
298
+ hostedUrl: >-
299
+ https://s3.amazonaws.com/webflow-prod-assets/63938b302ea6b0aa6f3d8745/63e5889e7fe4eafa7384cea4_Vectors-Wrapper.svg
300
+ originalFileName: Candy-Wrapper.svg
301
+ displayName: 63e5889e7fe4eafa7384cea4_Candy-Wrapper.png
302
+ lastUpdated: '2023-03-01T23:42:57Z'
303
+ createdOn: '2023-02-09T23:58:22Z'
268
304
  variants:
269
- - hostedUrl: example.com/hostedimage.png
270
- originalFileName: image.png
271
- displayName: A brown dog
272
- format: format
273
- width: 1500
305
+ - hostedUrl: >-
306
+ https://s3.amazonaws.com/webflow-prod-assets/6258612d1ee792848f805dcf/660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
307
+ originalFileName: Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
308
+ displayName: >-
309
+ 660d83ce30f3a599ddb0bdb3_Screenshot%202024-03-20%20at%209.03.24%E2%80%AFPM-p-500.png
310
+ format: png
311
+ width: 500
274
312
  height: 900
275
- quality: 1
276
- error: error
277
- altText: A red chair
313
+ quality: 100
314
+ altText: A single candy wrapper
278
315
  list-folders:
279
316
  path: /sites/{site_id}/asset_folders
280
317
  method: GET
@@ -293,6 +330,7 @@ service:
293
330
  response:
294
331
  docs: Request was successful
295
332
  type: root.AssetFolderList
333
+ status-code: 200
296
334
  errors:
297
335
  - root.BadRequestError
298
336
  - root.UnauthorizedError
@@ -307,7 +345,6 @@ service:
307
345
  assetFolders:
308
346
  - id: 6390c49774a71f0e3c1a08ee
309
347
  displayName: emoji icons
310
- parentFolder: 6390c49774a71f99f21a08eb
311
348
  assets:
312
349
  - 63e5889e7fe4eafa7384cea4
313
350
  - 659595234426a9fcbad57043
@@ -349,6 +386,7 @@ service:
349
386
  response:
350
387
  docs: Request was successful
351
388
  type: root.AssetFolder
389
+ status-code: 200
352
390
  errors:
353
391
  - root.BadRequestError
354
392
  - root.UnauthorizedError
@@ -389,6 +427,7 @@ service:
389
427
  response:
390
428
  docs: Request was successful
391
429
  type: root.AssetFolder
430
+ status-code: 200
392
431
  errors:
393
432
  - root.BadRequestError
394
433
  - root.UnauthorizedError
@@ -1,24 +1,3 @@
1
- types:
2
- FieldCreateType:
3
- enum:
4
- - Color
5
- - DateTime
6
- - Email
7
- - ExtFileRef
8
- - File
9
- - Image
10
- - Link
11
- - MultiImage
12
- - Number
13
- - Phone
14
- - PlainText
15
- - RichText
16
- - Switch
17
- - Video
18
- docs: Choose these appropriate field type for your collection data
19
- inline: true
20
- source:
21
- openapi: ../../../openapi/referenced-specs/v2.yml
22
1
  imports:
23
2
  root: ../__package__.yml
24
3
  service:
@@ -30,7 +9,7 @@ service:
30
9
  method: POST
31
10
  auth: true
32
11
  docs: >
33
- Create a custom field in a collection.
12
+ Create a custom field in a collection.
34
13
 
35
14
 
36
15
  Slugs must be all lowercase letters without spaces.
@@ -40,10 +19,7 @@ service:
40
19
 
41
20
  convert the slug to lowercase and replace spaces with "-."
42
21
 
43
-
44
- Only some field types can be created through the API.
45
-
46
- This endpoint does not currently support bulk creation.
22
+ This endpoint does not currently support bulk creation.
47
23
 
48
24
 
49
25
  Required scope | `cms:write`
@@ -55,48 +31,88 @@ service:
55
31
  docs: Unique identifier for a Collection
56
32
  display-name: Create Collection Field
57
33
  request:
58
- name: FieldCreate
59
- body:
60
- properties:
61
- isRequired:
62
- type: optional<boolean>
63
- docs: define whether a field is required in a collection
64
- type:
65
- type: FieldCreateType
66
- docs: Choose these appropriate field type for your collection data
67
- displayName:
68
- type: string
69
- docs: The name of a field
70
- helpText:
71
- type: optional<string>
72
- docs: Additional text to help anyone filling out this field
34
+ body: root.FieldCreate
73
35
  content-type: application/json
74
36
  response:
75
37
  docs: Request was successful
76
- type: root.Field
38
+ type: root.FieldCreate
39
+ status-code: 200
77
40
  errors:
78
41
  - root.BadRequestError
79
42
  - root.UnauthorizedError
80
43
  - root.NotFoundError
44
+ - root.ConflictError
81
45
  - root.TooManyRequestsError
82
46
  - root.InternalServerError
83
47
  examples:
84
- - path-parameters:
48
+ - name: StaticField
49
+ path-parameters:
85
50
  collection_id: 580e63fc8c9a982ac9b8b745
86
51
  request:
52
+ id: 562ac0395358780a1f5e6fbc
53
+ isEditable: true
87
54
  isRequired: false
88
55
  type: RichText
89
56
  displayName: Post Body
90
57
  helpText: Add the body of your post here
91
58
  response:
92
59
  body:
93
- id: 75821f618da60c18383330bcc0ca488b
94
- isRequired: false
60
+ id: 562ac0395358780a1f5e6fbc
95
61
  isEditable: true
62
+ isRequired: false
96
63
  type: RichText
97
- slug: post-body
98
64
  displayName: Post Body
99
65
  helpText: Add the body of your post here
66
+ - name: OptionField
67
+ path-parameters:
68
+ collection_id: 580e63fc8c9a982ac9b8b745
69
+ request:
70
+ id: 562ac0395358780a1f5e6fbc
71
+ isEditable: true
72
+ isRequired: false
73
+ type: Option
74
+ displayName: Post Type
75
+ helpText: Add the body of your post here
76
+ metadata:
77
+ options:
78
+ - name: Feature
79
+ - name: News
80
+ - name: Product Highlight
81
+ response:
82
+ body:
83
+ id: 562ac0395358780a1f5e6fbc
84
+ isEditable: true
85
+ isRequired: false
86
+ type: Option
87
+ displayName: Post Type
88
+ helpText: Add the body of your post here
89
+ metadata:
90
+ options:
91
+ - name: Feature
92
+ - name: News
93
+ - name: Product Highlight
94
+ - name: ReferenceField
95
+ path-parameters:
96
+ collection_id: 580e63fc8c9a982ac9b8b745
97
+ request:
98
+ id: 562ac0395358780a1f5e6fbd
99
+ isEditable: true
100
+ isRequired: false
101
+ type: Reference
102
+ displayName: Author
103
+ helpText: Add the post author here
104
+ metadata:
105
+ collectionId: 63692ab61fb2852f582ba8f5
106
+ response:
107
+ body:
108
+ id: 562ac0395358780a1f5e6fbd
109
+ isEditable: true
110
+ isRequired: false
111
+ type: Reference
112
+ displayName: Author
113
+ helpText: Add the post author here
114
+ metadata:
115
+ collectionId: 63692ab61fb2852f582ba8f5
100
116
  delete:
101
117
  path: /collections/{collection_id}/fields/{field_id}
102
118
  method: DELETE
@@ -162,6 +178,7 @@ service:
162
178
  response:
163
179
  docs: Request was successful
164
180
  type: root.Field
181
+ status-code: 200
165
182
  errors:
166
183
  - root.BadRequestError
167
184
  - root.UnauthorizedError