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.
Files changed (343) 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/WebflowClient.d.ts +3 -0
  277. package/dist/wrapper/WebflowClient.js +5 -0
  278. package/dist/wrapper/WebhooksClient.d.ts +39 -0
  279. package/dist/wrapper/WebhooksClient.js +66 -0
  280. package/package.json +5 -3
  281. package/reference.md +585 -91
  282. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -0
  283. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +2 -0
  284. package/serialization/resources/collections/resources/fields/client/requests/index.d.ts +0 -1
  285. package/serialization/resources/collections/resources/fields/client/requests/index.js +1 -3
  286. package/serialization/resources/collections/resources/fields/index.d.ts +0 -1
  287. package/serialization/resources/collections/resources/fields/index.js +0 -1
  288. package/serialization/resources/collections/resources/index.d.ts +1 -2
  289. package/serialization/resources/collections/resources/index.js +2 -3
  290. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.d.ts +1 -1
  291. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +1 -1
  292. package/serialization/types/Assets.d.ts +2 -0
  293. package/serialization/types/Assets.js +2 -0
  294. package/serialization/types/Conflict.d.ts +10 -0
  295. package/serialization/types/Conflict.js +31 -0
  296. package/serialization/types/Dom.d.ts +1 -0
  297. package/serialization/types/Dom.js +1 -0
  298. package/serialization/types/FieldCreate.d.ts +13 -0
  299. package/serialization/types/FieldCreate.js +34 -0
  300. package/serialization/types/FieldType.d.ts +1 -1
  301. package/serialization/types/FieldType.js +2 -0
  302. package/serialization/types/Metadata.d.ts +13 -0
  303. package/serialization/types/Metadata.js +34 -0
  304. package/serialization/types/MetadataOptionsItem.d.ts +13 -0
  305. package/serialization/types/MetadataOptionsItem.js +34 -0
  306. package/serialization/types/OptionField.d.ts +19 -0
  307. package/serialization/types/OptionField.js +40 -0
  308. package/serialization/types/ReferenceField.d.ts +20 -0
  309. package/serialization/types/ReferenceField.js +41 -0
  310. package/serialization/types/ReferenceFieldMetadata.d.ts +12 -0
  311. package/serialization/types/ReferenceFieldMetadata.js +33 -0
  312. package/serialization/types/ReferenceFieldType.d.ts +10 -0
  313. package/serialization/types/ReferenceFieldType.js +31 -0
  314. package/serialization/types/Robots.d.ts +14 -0
  315. package/serialization/types/Robots.js +35 -0
  316. package/serialization/types/RobotsRulesItem.d.ts +14 -0
  317. package/serialization/types/RobotsRulesItem.js +35 -0
  318. package/serialization/types/StaticField.d.ts +18 -0
  319. package/serialization/{resources/collections/resources/fields/client/requests/FieldCreate.js → types/StaticField.js} +7 -5
  320. package/serialization/types/StaticFieldType.d.ts +10 -0
  321. package/serialization/{resources/collections/resources/fields/types/FieldCreateType.js → types/StaticFieldType.js} +3 -4
  322. package/serialization/types/WebhookList.d.ts +2 -2
  323. package/serialization/types/WebhookList.js +2 -2
  324. package/serialization/types/index.d.ts +12 -0
  325. package/serialization/types/index.js +12 -0
  326. package/version.d.ts +1 -1
  327. package/version.js +1 -1
  328. package/wrapper/WebflowClient.d.ts +3 -0
  329. package/wrapper/WebflowClient.js +5 -0
  330. package/wrapper/WebhooksClient.d.ts +39 -0
  331. package/wrapper/WebhooksClient.js +66 -0
  332. package/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  333. package/dist/api/resources/collections/resources/fields/types/index.d.ts +0 -1
  334. package/dist/api/resources/collections/resources/fields/types/index.js +0 -17
  335. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  336. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  337. package/dist/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  338. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +0 -16
  339. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +0 -10
  340. package/serialization/resources/collections/resources/fields/types/index.d.ts +0 -1
  341. package/serialization/resources/collections/resources/fields/types/index.js +0 -17
  342. /package/api/resources/{collections/resources/fields/client/requests/FieldCreate.js → forms/client/requests/FormsListSubmissionsBySiteRequest.js} +0 -0
  343. /package/{dist/api/resources/collections/resources/fields/client/requests/FieldCreate.js → api/types/Conflict.js} +0 -0
@@ -68,7 +68,7 @@ types:
68
68
  openapi: ../../../openapi/referenced-specs/v2.yml
69
69
  ItemsDeleteItemsLiveRequestItemsItem:
70
70
  properties:
71
- itemId:
71
+ id:
72
72
  type: string
73
73
  docs: Unique identifier for the Item
74
74
  cmsLocaleIds:
@@ -166,10 +166,10 @@ service:
166
166
  docs: 'Maximum number of records to be returned (max limit: 100)'
167
167
  name:
168
168
  type: optional<string>
169
- docs: The name of the item(s)
169
+ docs: Filter by the exact name of the item(s)
170
170
  slug:
171
171
  type: optional<string>
172
- docs: The slug of the item
172
+ docs: Filter by the exact slug of the item
173
173
  sortBy:
174
174
  type: optional<ItemsListItemsRequestSortBy>
175
175
  docs: Sort results by the provided value
@@ -179,6 +179,7 @@ service:
179
179
  response:
180
180
  docs: Request was successful
181
181
  type: root.CollectionItemList
182
+ status-code: 200
182
183
  errors:
183
184
  - root.BadRequestError
184
185
  - root.UnauthorizedError
@@ -246,6 +247,7 @@ service:
246
247
  response:
247
248
  docs: Request was successful
248
249
  type: root.CollectionItem
250
+ status-code: 202
249
251
  errors:
250
252
  - root.BadRequestError
251
253
  - root.UnauthorizedError
@@ -322,8 +324,8 @@ service:
322
324
  Delete Items from a Collection.
323
325
 
324
326
 
325
- **Note:** If the `cmsLocaleId` parameter is undefined or empty and the
326
- items are localized, items will be deleted only in the primary locale.
327
+ <Tip title="Localization Tip">Items will only be deleted in the primary
328
+ locale unless a `cmsLocaleId` is included in the request.</Tip>
327
329
 
328
330
 
329
331
  Required scope | `CMS:write`
@@ -356,11 +358,14 @@ service:
356
358
  method: PATCH
357
359
  auth: true
358
360
  docs: >
359
- Update a single item or multiple items (up to 100) in a Collection.
361
+ Update a single item or multiple items in a Collection.
362
+
360
363
 
364
+ The limit for this endpoint is 100 items.
361
365
 
362
- **Note:** If the `cmsLocaleId` parameter is undefined or empty and the
363
- items are localized, items will be updated only in the primary locale.
366
+
367
+ <Tip title="Localization Tip">Items will only be updated in the primary
368
+ locale, unless a `cmsLocaleId` is included in the request.</Tip>
364
369
 
365
370
 
366
371
  Required scope | `CMS:write`
@@ -380,6 +385,7 @@ service:
380
385
  response:
381
386
  docs: Request was successful
382
387
  type: root.CollectionItem
388
+ status-code: 200
383
389
  errors:
384
390
  - root.BadRequestError
385
391
  - root.UnauthorizedError
@@ -560,7 +566,7 @@ service:
560
566
  method: GET
561
567
  auth: true
562
568
  docs: |
563
- List of all live Items within a Collection.
569
+ List all published items in a collection.
564
570
 
565
571
  Required scope | `CMS:read`
566
572
  source:
@@ -590,10 +596,10 @@ service:
590
596
  docs: 'Maximum number of records to be returned (max limit: 100)'
591
597
  name:
592
598
  type: optional<string>
593
- docs: The name of the item(s)
599
+ docs: Filter by the exact name of the item(s)
594
600
  slug:
595
601
  type: optional<string>
596
- docs: The slug of the item
602
+ docs: Filter by the exact slug of the item
597
603
  sortBy:
598
604
  type: optional<ItemsListItemsLiveRequestSortBy>
599
605
  docs: Sort results by the provided value
@@ -603,6 +609,7 @@ service:
603
609
  response:
604
610
  docs: Request was successful
605
611
  type: root.CollectionItemList
612
+ status-code: 200
606
613
  errors:
607
614
  - root.BadRequestError
608
615
  - root.UnauthorizedError
@@ -648,8 +655,8 @@ service:
648
655
  method: POST
649
656
  auth: true
650
657
  docs: >
651
- Create live Item(s) in a Collection. The Item(s) will be published to
652
- the live site.
658
+ Create item(s) in a collection that will be immediately published to the
659
+ live site.
653
660
 
654
661
 
655
662
 
@@ -672,6 +679,7 @@ service:
672
679
  response:
673
680
  docs: Request was successful
674
681
  type: root.CollectionItem
682
+ status-code: 202
675
683
  errors:
676
684
  - root.BadRequestError
677
685
  - root.UnauthorizedError
@@ -683,6 +691,9 @@ service:
683
691
  path-parameters:
684
692
  collection_id: 580e63fc8c9a982ac9b8b745
685
693
  request:
694
+ lastPublished: '2023-03-17T18:47:35.560Z'
695
+ lastUpdated: '2023-03-17T18:47:35.560Z'
696
+ createdOn: '2023-03-17T18:47:35.560Z'
686
697
  isArchived: false
687
698
  isDraft: false
688
699
  fieldData:
@@ -711,14 +722,20 @@ service:
711
722
  collection_id: 580e63fc8c9a982ac9b8b745
712
723
  request:
713
724
  items:
714
- - isArchived: false
725
+ - lastPublished: '2023-03-17T18:47:35.560Z'
726
+ lastUpdated: '2023-03-17T18:47:35.560Z'
727
+ createdOn: '2023-03-17T18:47:35.560Z'
728
+ isArchived: false
715
729
  isDraft: false
716
730
  fieldData:
717
731
  name: Senior Data Analyst
718
732
  slug: senior-data-analyst
719
733
  url: https://boards.greenhouse.io/webflow/jobs/26567701
720
734
  department: Data
721
- - isArchived: false
735
+ - lastPublished: '2023-03-17T18:47:35.560Z'
736
+ lastUpdated: '2023-03-17T18:47:35.560Z'
737
+ createdOn: '2023-03-17T18:47:35.560Z'
738
+ isArchived: false
722
739
  isDraft: false
723
740
  fieldData:
724
741
  name: Product Manager
@@ -746,13 +763,15 @@ service:
746
763
  auth: true
747
764
  docs: >
748
765
  Remove an item or multiple items (up to 100 items) from the live site.
749
- Deleting published items will unpublish the items from the live site and
750
- set them to draft.
751
766
 
752
767
 
753
- **Note:** If the `cmsLocaleId` parameter is undefined or empty and the
754
- items are localized, items will be unpublished only in the primary
755
- locale.
768
+ Using this endpoint to delete published item(s) will unpublish the
769
+ item(s) from the live site and set the item(s) `isDraft` property to
770
+ `true`.
771
+
772
+
773
+ <Tip title="Localization Tip">Items will only be unpublished in the
774
+ primary locale unless a `cmsLocaleId` is included in the request.</Tip>
756
775
 
757
776
 
758
777
  Required scope | `CMS:write`
@@ -784,12 +803,12 @@ service:
784
803
  method: PATCH
785
804
  auth: true
786
805
  docs: >
787
- Update a single live item or multiple live items (up to 100) in a
788
- Collection
806
+ Update a single published item or multiple published items (up to 100)
807
+ in a Collection
789
808
 
790
809
 
791
- **Note:** If the `cmsLocaleId` parameter is undefined or empty and the
792
- items are localized, items will be updated only in the primary locale.
810
+ <Tip title="Localization Tip">Items will only be updated in the primary
811
+ locale, unless a `cmsLocaleId` is included in the request.</Tip>
793
812
 
794
813
 
795
814
  Required scope | `CMS:write`
@@ -809,10 +828,12 @@ service:
809
828
  response:
810
829
  docs: Request was successful
811
830
  type: root.CollectionItemListNoPagination
831
+ status-code: 200
812
832
  errors:
813
833
  - root.BadRequestError
814
834
  - root.UnauthorizedError
815
835
  - root.NotFoundError
836
+ - root.ConflictError
816
837
  - root.TooManyRequestsError
817
838
  - root.InternalServerError
818
839
  examples:
@@ -1101,9 +1122,11 @@ service:
1101
1122
  corresponding locales.
1102
1123
 
1103
1124
 
1104
- **Notes:**
1125
+ <Note>
1105
1126
  - This endpoint can create up to 100 items in a request.
1106
- - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
1127
+ - If the `cmsLocaleIds` parameter is not included in the request, an item will only be created in the primary locale.
1128
+ </Note>
1129
+
1107
1130
 
1108
1131
  Required scope | `CMS:write`
1109
1132
  source:
@@ -1135,6 +1158,7 @@ service:
1135
1158
  response:
1136
1159
  docs: Request was successful
1137
1160
  type: root.BulkCollectionItem
1161
+ status-code: 202
1138
1162
  errors:
1139
1163
  - root.BadRequestError
1140
1164
  - root.UnauthorizedError
@@ -1298,6 +1322,7 @@ service:
1298
1322
  response:
1299
1323
  docs: Request was successful
1300
1324
  type: root.CollectionItem
1325
+ status-code: 200
1301
1326
  errors:
1302
1327
  - root.BadRequestError
1303
1328
  - root.UnauthorizedError
@@ -1327,10 +1352,8 @@ service:
1327
1352
  path: /collections/{collection_id}/items/{item_id}
1328
1353
  method: DELETE
1329
1354
  auth: true
1330
- docs: >
1331
- Delete an Item from a Collection. This endpoint does not currently
1332
- support bulk deletion.
1333
-
1355
+ docs: |
1356
+ Delete an item from a collection.
1334
1357
 
1335
1358
  Required scope | `CMS:write`
1336
1359
  source:
@@ -1387,6 +1410,7 @@ service:
1387
1410
  response:
1388
1411
  docs: Request was successful
1389
1412
  type: root.CollectionItem
1413
+ status-code: 200
1390
1414
  errors:
1391
1415
  - root.BadRequestError
1392
1416
  - root.UnauthorizedError
@@ -1452,6 +1476,7 @@ service:
1452
1476
  response:
1453
1477
  docs: Request was successful
1454
1478
  type: root.CollectionItem
1479
+ status-code: 200
1455
1480
  errors:
1456
1481
  - root.BadRequestError
1457
1482
  - root.UnauthorizedError
@@ -1546,10 +1571,12 @@ service:
1546
1571
  response:
1547
1572
  docs: Request was successful
1548
1573
  type: root.CollectionItem
1574
+ status-code: 200
1549
1575
  errors:
1550
1576
  - root.BadRequestError
1551
1577
  - root.UnauthorizedError
1552
1578
  - root.NotFoundError
1579
+ - root.ConflictError
1553
1580
  - root.TooManyRequestsError
1554
1581
  - root.InternalServerError
1555
1582
  examples:
@@ -1604,6 +1631,7 @@ service:
1604
1631
  response:
1605
1632
  docs: Request was successful
1606
1633
  type: ItemsPublishItemResponse
1634
+ status-code: 202
1607
1635
  errors:
1608
1636
  - root.BadRequestError
1609
1637
  - root.UnauthorizedError
@@ -22,6 +22,7 @@ service:
22
22
  response:
23
23
  docs: Request was successful
24
24
  type: root.CollectionList
25
+ status-code: 200
25
26
  errors:
26
27
  - root.BadRequestError
27
28
  - root.UnauthorizedError
@@ -80,14 +81,19 @@ service:
80
81
  slug:
81
82
  type: optional<string>
82
83
  docs: Part of a URL that identifier
84
+ fields:
85
+ type: optional<list<root.FieldCreate>>
86
+ docs: An array of custom fields to add to the collection
83
87
  content-type: application/json
84
88
  response:
85
89
  docs: Request was successful
86
90
  type: root.Collection
91
+ status-code: 200
87
92
  errors:
88
93
  - root.BadRequestError
89
94
  - root.UnauthorizedError
90
95
  - root.NotFoundError
96
+ - root.ConflictError
91
97
  - root.TooManyRequestsError
92
98
  - root.InternalServerError
93
99
  examples:
@@ -97,22 +103,51 @@ service:
97
103
  displayName: Blog Posts
98
104
  singularName: Blog Post
99
105
  slug: posts
106
+ fields:
107
+ - isRequired: true
108
+ type: PlainText
109
+ displayName: Title
110
+ helpText: The title of the blog post
111
+ - isRequired: true
112
+ type: RichText
113
+ displayName: Content
114
+ helpText: The content of the blog post
115
+ - isRequired: true
116
+ type: Reference
117
+ displayName: Author
118
+ helpText: The author of the blog post
119
+ metadata:
120
+ collectionId: 23cc2d952d4e4631ffd4345d2743db4e
100
121
  response:
101
122
  body:
102
- id: 580e63fc8c9a982ac9b8b745
123
+ id: 562ac0395358780a1f5e6fbd
103
124
  displayName: Blog Posts
104
125
  singularName: Blog Post
105
- slug: post
126
+ slug: posts
106
127
  createdOn: '2016-10-24T19:41:48Z'
107
128
  lastUpdated: '2016-10-24T19:42:38Z'
108
129
  fields:
109
- - id: 23cc2d952d4e4631ffd4345d2743db4e
130
+ - id: id
110
131
  isRequired: true
111
132
  isEditable: true
112
133
  type: PlainText
113
- slug: name
114
- displayName: Name
115
- helpText: helpText
134
+ slug: title
135
+ displayName: Title
136
+ helpText: The title of the blog post
137
+ - id: id
138
+ isRequired: true
139
+ isEditable: true
140
+ type: RichText
141
+ slug: content
142
+ displayName: Content
143
+ helpText: The content of the blog post
144
+ - id: id
145
+ isRequired: true
146
+ isEditable: true
147
+ type: Reference
148
+ slug: author
149
+ displayName: Author
150
+ helpText: The author of the blog post
116
151
  get:
117
152
  path: /collections/{collection_id}
118
153
  method: GET
@@ -131,6 +166,7 @@ service:
131
166
  response:
132
167
  docs: Request was successful
133
168
  type: root.Collection
169
+ status-code: 200
134
170
  errors:
135
171
  - root.BadRequestError
136
172
  - root.UnauthorizedError
@@ -155,7 +191,6 @@ service:
155
191
  type: PlainText
156
192
  slug: name
157
193
  displayName: Name
158
- helpText: helpText
159
194
  delete:
160
195
  path: /collections/{collection_id}
161
196
  method: DELETE
@@ -33,6 +33,7 @@ service:
33
33
  response:
34
34
  docs: Request was successful
35
35
  type: root.ComponentList
36
+ status-code: 200
36
37
  errors:
37
38
  - root.BadRequestError
38
39
  - root.UnauthorizedError
@@ -59,13 +60,9 @@ service:
59
60
  readonly: true
60
61
  - id: 6258612d1ee792848f805dcf
61
62
  name: Card
62
- group: Buttons
63
- description: A button component that can be used across the site
64
63
  readonly: true
65
64
  - id: 68a2b1d1ee792848f805dcf
66
65
  name: Nav
67
- group: Buttons
68
- description: A button component that can be used across the site
69
66
  readonly: true
70
67
  pagination:
71
68
  limit: 20
@@ -120,6 +117,7 @@ service:
120
117
  response:
121
118
  docs: Request was successful
122
119
  type: root.ComponentDom
120
+ status-code: 200
123
121
  errors:
124
122
  - root.BadRequestError
125
123
  - root.UnauthorizedError
@@ -137,33 +135,26 @@ service:
137
135
  body:
138
136
  componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
139
137
  nodes:
140
- - type: component-instance
141
- id: a245c12d-995b-55ee-5ec7-aa36a6cad623
142
- componentId: nodes
143
- propertyOverrides:
144
- - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
145
- - type: component-instance
146
- id: a245c12d-995b-55ee-5ec7-aa36a6cad627
147
- componentId: nodes
138
+ - id: id
139
+ text: {}
140
+ attributes:
141
+ key: value
142
+ type: text
143
+ - id: id
144
+ text: {}
145
+ attributes:
146
+ key: value
147
+ type: text
148
+ - id: id
149
+ image: {}
150
+ attributes:
151
+ key: value
152
+ type: image
153
+ - id: id
154
+ componentId: componentId
148
155
  propertyOverrides:
149
156
  - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
150
- - type: component-instance
151
- id: a245c12d-995b-55ee-5ec7-aa36a6cad629
152
- componentId: nodes
153
- propertyOverrides:
154
- - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
155
- - type: component-instance
156
- id: a245c12d-995b-55ee-5ec7-aa36a6cad631
157
- componentId: 6258612d1ee792848f805dcf
158
- propertyOverrides:
159
- - propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad633
160
- type: Plain Text
161
- text:
162
- text: Don't Panic!
163
- - propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad635
164
- type: Rich Text
165
- text:
166
- html: <div><p>Always know where your towel is.</p></div>
157
+ type: component-instance
167
158
  pagination:
168
159
  limit: 4
169
160
  offset: 0
@@ -178,21 +169,21 @@ service:
178
169
  body:
179
170
  componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
180
171
  nodes:
181
- - type: component-instance
182
- id: 69118560-d0bc-15fc-bbf8-b8fe5f6535b8
183
- componentId: nodes
172
+ - id: id
173
+ image: {}
174
+ attributes:
175
+ key: value
176
+ type: image
177
+ - id: id
178
+ text: {}
179
+ attributes:
180
+ key: value
181
+ type: text
182
+ - id: id
183
+ componentId: componentId
184
184
  propertyOverrides:
185
185
  - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
186
- - type: component-instance
187
- id: 8ebfb409-7493-3bca-5d48-0e547befb960
188
- componentId: nodes
189
- propertyOverrides:
190
- - propertyId: 7dd14c08-2e96-8d3d-2b19-b5c03642a0f0
191
- - type: component-instance
192
- id: 69118560-d0bc-15fc-bbf8-b8fe5f6535c2
193
- componentId: 69118560-d0bc-15fc-bbf8-b8fe5f6535b5
194
- propertyOverrides:
195
- - propertyId: a245c12d-995b-55ee-5ec7-aa36a6cad623
186
+ type: component-instance
196
187
  pagination:
197
188
  limit: 100
198
189
  offset: 0
@@ -255,6 +246,7 @@ service:
255
246
  response:
256
247
  docs: Request was successful
257
248
  type: ComponentsUpdateContentResponse
249
+ status-code: 200
258
250
  errors:
259
251
  - root.BadRequestError
260
252
  - root.UnauthorizedError
@@ -291,10 +283,10 @@ service:
291
283
  method: GET
292
284
  auth: true
293
285
  docs: >
294
- Get the property default values of a component definition.
286
+ Get the default property values of a component definition.
295
287
 
296
288
 
297
- <Note>If you do not provide a Locale ID in your request, the response
289
+ <Note>If you do not include a `localeId` in your request, the response
298
290
  will return any properties that can be localized from the Primary
299
291
  locale.</Note>
300
292
 
@@ -329,6 +321,7 @@ service:
329
321
  response:
330
322
  docs: Request was successful
331
323
  type: root.ComponentProperties
324
+ status-code: 200
332
325
  errors:
333
326
  - root.BadRequestError
334
327
  - root.UnauthorizedError
@@ -366,18 +359,17 @@ service:
366
359
  method: POST
367
360
  auth: true
368
361
  docs: >
369
- Update the property default values of a component definition in a
362
+ Update the default property values of a component definition in a
370
363
  specificed locale.
371
364
 
372
365
 
373
- Before making updates:
374
-
375
- 1. Use the [get component
366
+ Before making updates, use the [get component
376
367
  properties](/data/reference/pages-and-components/components/get-properties)
377
- endpoint to identify available properties
368
+ endpoint to identify properties that can be updated in a secondary
369
+ locale.
378
370
 
379
371
 
380
- <Note>The request requires a secondary locale ID. If a locale is
372
+ <Note>The request requires a secondary locale ID. If a `localeId` is
381
373
  missing, the request will not be processed and will result in an
382
374
  error.</Note>
383
375
 
@@ -412,6 +404,7 @@ service:
412
404
  response:
413
405
  docs: Request was successful
414
406
  type: ComponentsUpdatePropertiesResponse
407
+ status-code: 200
415
408
  errors:
416
409
  - root.BadRequestError
417
410
  - root.UnauthorizedError
@@ -22,6 +22,7 @@ service:
22
22
  response:
23
23
  docs: Request was successful
24
24
  type: root.EcommerceSettings
25
+ status-code: 200
25
26
  errors:
26
27
  - root.BadRequestError
27
28
  - root.UnauthorizedError