webflow-api 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (629) hide show
  1. package/.mock/definition/__package__.yml +613 -214
  2. package/.mock/definition/accessGroups.yml +3 -3
  3. package/.mock/definition/assets.yml +10 -9
  4. package/.mock/definition/collections/fields.yml +16 -14
  5. package/.mock/definition/collections/items.yml +180 -63
  6. package/.mock/definition/collections.yml +6 -5
  7. package/.mock/definition/components.yml +486 -0
  8. package/.mock/definition/ecommerce.yml +2 -2
  9. package/.mock/definition/forms.yml +7 -6
  10. package/.mock/definition/inventory.yml +8 -6
  11. package/.mock/definition/orders.yml +11 -9
  12. package/.mock/definition/pages/scripts.yml +18 -17
  13. package/.mock/definition/pages.yml +91 -64
  14. package/.mock/definition/products.yml +9 -9
  15. package/.mock/definition/scripts.yml +12 -16
  16. package/.mock/definition/sites/activityLogs.yml +2 -2
  17. package/.mock/definition/sites/plans.yml +40 -0
  18. package/.mock/definition/sites/redirects.yml +190 -0
  19. package/.mock/definition/sites/scripts.yml +16 -21
  20. package/.mock/definition/sites.yml +202 -6
  21. package/.mock/definition/token.yml +5 -4
  22. package/.mock/definition/users.yml +8 -8
  23. package/.mock/definition/webhooks.yml +9 -9
  24. package/.mock/fern.config.json +1 -1
  25. package/Client.d.ts +3 -0
  26. package/Client.js +25 -20
  27. package/MIGRATION.md +32 -15
  28. package/api/errors/index.d.ts +1 -1
  29. package/api/errors/index.js +1 -1
  30. package/api/resources/accessGroups/client/Client.js +1 -1
  31. package/api/resources/assets/client/Client.d.ts +5 -0
  32. package/api/resources/assets/client/Client.js +13 -8
  33. package/api/resources/collections/client/Client.d.ts +3 -0
  34. package/api/resources/collections/client/Client.js +7 -4
  35. package/api/resources/collections/resources/fields/client/Client.js +3 -3
  36. package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +11 -10
  37. package/api/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  38. package/api/resources/collections/resources/items/client/Client.d.ts +13 -20
  39. package/api/resources/collections/resources/items/client/Client.js +31 -36
  40. package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  41. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
  42. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
  43. package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  44. package/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
  45. package/api/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
  46. package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → api/resources/collections/resources/items/types/MultipleLiveItems.d.ts} +1 -1
  47. package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
  48. package/api/resources/collections/resources/items/types/index.d.ts +3 -3
  49. package/api/resources/collections/resources/items/types/index.js +3 -3
  50. package/api/resources/components/client/Client.d.ts +176 -0
  51. package/api/resources/components/client/Client.js +670 -0
  52. package/api/resources/components/client/index.d.ts +1 -0
  53. package/api/resources/components/client/index.js +17 -0
  54. package/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
  55. package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
  56. package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
  57. package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
  58. package/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
  59. package/api/resources/components/client/requests/index.d.ts +5 -0
  60. package/api/resources/components/client/requests/index.js +2 -0
  61. package/api/resources/components/index.d.ts +2 -0
  62. package/api/resources/components/index.js +18 -0
  63. package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
  64. package/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
  65. package/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
  66. package/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
  67. package/api/resources/components/types/index.d.ts +4 -0
  68. package/api/resources/components/types/index.js +20 -0
  69. package/api/resources/ecommerce/client/Client.js +1 -1
  70. package/api/resources/forms/client/Client.d.ts +3 -0
  71. package/api/resources/forms/client/Client.js +8 -5
  72. package/api/resources/index.d.ts +3 -0
  73. package/api/resources/index.js +4 -1
  74. package/api/resources/inventory/client/Client.d.ts +3 -1
  75. package/api/resources/inventory/client/Client.js +5 -3
  76. package/api/resources/orders/client/Client.d.ts +3 -0
  77. package/api/resources/orders/client/Client.js +9 -6
  78. package/api/resources/pages/client/Client.d.ts +26 -10
  79. package/api/resources/pages/client/Client.js +32 -18
  80. package/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
  81. package/api/resources/pages/client/requests/PageDomWrite.js +5 -0
  82. package/api/resources/pages/client/requests/index.d.ts +1 -1
  83. package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -3
  84. package/api/resources/pages/resources/scripts/client/Client.js +11 -6
  85. package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
  86. package/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
  87. package/api/resources/pages/types/index.d.ts +1 -1
  88. package/api/resources/pages/types/index.js +1 -1
  89. package/api/resources/products/client/Client.d.ts +5 -6
  90. package/api/resources/products/client/Client.js +11 -12
  91. package/api/resources/scripts/client/Client.d.ts +3 -3
  92. package/api/resources/scripts/client/Client.js +6 -6
  93. package/api/resources/sites/client/Client.d.ts +70 -0
  94. package/api/resources/sites/client/Client.js +330 -9
  95. package/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
  96. package/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
  97. package/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  98. package/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
  99. package/api/resources/sites/client/requests/index.d.ts +2 -0
  100. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  101. package/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
  102. package/api/resources/sites/resources/index.d.ts +2 -0
  103. package/api/resources/sites/resources/index.js +3 -1
  104. package/api/resources/sites/resources/plans/client/Client.d.ts +45 -0
  105. package/api/resources/sites/resources/plans/client/Client.js +155 -0
  106. package/api/resources/sites/resources/plans/client/index.d.ts +1 -0
  107. package/api/resources/sites/resources/plans/client/index.js +2 -0
  108. package/api/resources/sites/resources/plans/index.d.ts +1 -0
  109. package/api/resources/sites/resources/plans/index.js +17 -0
  110. package/api/resources/sites/resources/redirects/client/Client.d.ts +115 -0
  111. package/api/resources/sites/resources/redirects/client/Client.js +472 -0
  112. package/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
  113. package/api/resources/sites/resources/redirects/client/index.js +2 -0
  114. package/api/resources/sites/resources/redirects/index.d.ts +1 -0
  115. package/api/resources/sites/resources/redirects/index.js +17 -0
  116. package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  117. package/api/resources/sites/resources/scripts/client/Client.js +8 -8
  118. package/api/resources/token/client/Client.d.ts +2 -1
  119. package/api/resources/token/client/Client.js +4 -3
  120. package/api/resources/users/client/Client.d.ts +1 -1
  121. package/api/resources/users/client/Client.js +6 -6
  122. package/api/resources/webhooks/client/Client.d.ts +4 -1
  123. package/api/resources/webhooks/client/Client.js +8 -5
  124. package/api/types/CollectionItem.d.ts +6 -2
  125. package/api/types/CollectionItemFieldData.d.ts +2 -2
  126. package/api/types/CollectionItemPatchSingle.d.ts +24 -0
  127. package/api/types/CollectionItemPatchSingle.js +5 -0
  128. package/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
  129. package/api/types/CollectionItemPatchSingleFieldData.js +5 -0
  130. package/api/types/CollectionItemPostSingle.d.ts +28 -0
  131. package/api/types/CollectionItemPostSingle.js +5 -0
  132. package/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
  133. package/api/types/CollectionItemPostSingleFieldData.js +5 -0
  134. package/api/types/Component.d.ts +18 -0
  135. package/api/types/Component.js +5 -0
  136. package/api/types/ComponentDom.d.ts +13 -0
  137. package/api/types/ComponentDom.js +5 -0
  138. package/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
  139. package/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
  140. package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
  141. package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
  142. package/api/types/ComponentList.d.ts +11 -0
  143. package/api/types/ComponentList.js +5 -0
  144. package/api/types/ComponentNode.d.ts +15 -0
  145. package/api/types/ComponentNode.js +5 -0
  146. package/api/types/ComponentProperties.d.ts +13 -0
  147. package/api/types/ComponentProperties.js +5 -0
  148. package/api/types/ComponentProperty.d.ts +17 -0
  149. package/api/types/ComponentProperty.js +5 -0
  150. package/api/types/ComponentPropertyType.d.ts +12 -0
  151. package/api/types/ComponentPropertyType.js +11 -0
  152. package/api/types/Dom.d.ts +1 -1
  153. package/api/types/Domain.d.ts +2 -0
  154. package/api/types/Error_.d.ts +1 -1
  155. package/api/types/FieldType.d.ts +10 -10
  156. package/api/types/FieldType.js +9 -9
  157. package/api/types/ImageNode.d.ts +6 -2
  158. package/api/types/ImageNodeImage.d.ts +7 -0
  159. package/api/types/ImageNodeImage.js +5 -0
  160. package/api/types/Node.d.ts +11 -8
  161. package/api/types/{ErrorDetailsItem.d.ts → NotEnterprisePlanWorkspace.d.ts} +1 -1
  162. package/api/types/NotEnterprisePlanWorkspace.js +5 -0
  163. package/api/types/ProductFieldData.d.ts +1 -1
  164. package/api/types/Redirect.d.ts +14 -0
  165. package/api/types/Redirect.js +5 -0
  166. package/api/types/Redirects.d.ts +12 -0
  167. package/api/types/Redirects.js +5 -0
  168. package/api/types/ScriptApply.d.ts +1 -1
  169. package/api/types/SitePlan.d.ts +12 -0
  170. package/api/types/SitePlan.js +5 -0
  171. package/api/types/SitePlanId.d.ts +21 -0
  172. package/api/types/SitePlanId.js +20 -0
  173. package/api/types/SitePlanName.d.ts +15 -0
  174. package/api/types/SitePlanName.js +14 -0
  175. package/api/types/Text.d.ts +9 -0
  176. package/api/types/Text.js +5 -0
  177. package/api/types/TextNode.d.ts +7 -3
  178. package/api/types/TextNodeText.d.ts +9 -0
  179. package/api/types/TextNodeText.js +5 -0
  180. package/{dist/api/resources/pages/types/DomWriteNodesItem.d.ts → api/types/TextNodeWrite.d.ts} +4 -1
  181. package/api/types/TextNodeWrite.js +5 -0
  182. package/api/types/TriggerType.d.ts +15 -15
  183. package/api/types/UserAccessGroupsItem.d.ts +2 -3
  184. package/api/types/UserAccessGroupsItemType.d.ts +2 -3
  185. package/api/types/index.d.ts +27 -6
  186. package/api/types/index.js +27 -6
  187. package/dist/Client.d.ts +3 -0
  188. package/dist/Client.js +25 -20
  189. package/dist/api/errors/index.d.ts +1 -1
  190. package/dist/api/errors/index.js +1 -1
  191. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  192. package/dist/api/resources/assets/client/Client.d.ts +5 -0
  193. package/dist/api/resources/assets/client/Client.js +13 -8
  194. package/dist/api/resources/collections/client/Client.d.ts +3 -0
  195. package/dist/api/resources/collections/client/Client.js +7 -4
  196. package/dist/api/resources/collections/resources/fields/client/Client.js +3 -3
  197. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +11 -10
  198. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  199. package/dist/api/resources/collections/resources/items/client/Client.d.ts +13 -20
  200. package/dist/api/resources/collections/resources/items/client/Client.js +31 -36
  201. package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  202. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +4 -1
  203. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts +3 -0
  204. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  205. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +1 -1
  206. package/dist/api/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleItems.d.ts} +2 -2
  207. package/dist/api/resources/collections/resources/items/types/MultipleItems.js +5 -0
  208. package/{api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts → dist/api/resources/collections/resources/items/types/MultipleLiveItems.d.ts} +1 -1
  209. package/dist/api/resources/collections/resources/items/types/MultipleLiveItems.js +5 -0
  210. package/dist/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +1 -1
  211. package/dist/api/resources/collections/resources/items/types/SingleCmsItem.js +5 -0
  212. package/dist/api/resources/collections/resources/items/types/index.d.ts +3 -3
  213. package/dist/api/resources/collections/resources/items/types/index.js +3 -3
  214. package/dist/api/resources/components/client/Client.d.ts +176 -0
  215. package/dist/api/resources/components/client/Client.js +670 -0
  216. package/dist/api/resources/components/client/index.d.ts +1 -0
  217. package/dist/api/resources/components/client/index.js +17 -0
  218. package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
  219. package/dist/api/resources/components/client/requests/ComponentDomWrite.js +5 -0
  220. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
  221. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.js +5 -0
  222. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
  223. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.js +5 -0
  224. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
  225. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.js +5 -0
  226. package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
  227. package/dist/api/resources/components/client/requests/ComponentsListRequest.js +5 -0
  228. package/dist/api/resources/components/client/requests/index.d.ts +5 -0
  229. package/dist/api/resources/components/client/requests/index.js +2 -0
  230. package/dist/api/resources/components/index.d.ts +2 -0
  231. package/dist/api/resources/components/index.js +18 -0
  232. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
  233. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.js +5 -0
  234. package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
  235. package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.js +5 -0
  236. package/dist/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
  237. package/dist/api/resources/components/types/ComponentsUpdateContentResponse.js +5 -0
  238. package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
  239. package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.js +5 -0
  240. package/dist/api/resources/components/types/index.d.ts +4 -0
  241. package/dist/api/resources/components/types/index.js +20 -0
  242. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  243. package/dist/api/resources/forms/client/Client.d.ts +3 -0
  244. package/dist/api/resources/forms/client/Client.js +8 -5
  245. package/dist/api/resources/index.d.ts +3 -0
  246. package/dist/api/resources/index.js +4 -1
  247. package/dist/api/resources/inventory/client/Client.d.ts +3 -1
  248. package/dist/api/resources/inventory/client/Client.js +5 -3
  249. package/dist/api/resources/orders/client/Client.d.ts +3 -0
  250. package/dist/api/resources/orders/client/Client.js +9 -6
  251. package/dist/api/resources/pages/client/Client.d.ts +26 -10
  252. package/dist/api/resources/pages/client/Client.js +32 -18
  253. package/dist/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
  254. package/dist/api/resources/pages/client/requests/PageDomWrite.js +5 -0
  255. package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
  256. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -3
  257. package/dist/api/resources/pages/resources/scripts/client/Client.js +11 -6
  258. package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
  259. package/dist/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
  260. package/dist/api/resources/pages/types/index.d.ts +1 -1
  261. package/dist/api/resources/pages/types/index.js +1 -1
  262. package/dist/api/resources/products/client/Client.d.ts +5 -6
  263. package/dist/api/resources/products/client/Client.js +11 -12
  264. package/dist/api/resources/scripts/client/Client.d.ts +3 -3
  265. package/dist/api/resources/scripts/client/Client.js +6 -6
  266. package/dist/api/resources/sites/client/Client.d.ts +70 -0
  267. package/dist/api/resources/sites/client/Client.js +330 -9
  268. package/dist/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
  269. package/dist/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
  270. package/dist/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  271. package/dist/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
  272. package/dist/api/resources/sites/client/requests/index.d.ts +2 -0
  273. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  274. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
  275. package/dist/api/resources/sites/resources/index.d.ts +2 -0
  276. package/dist/api/resources/sites/resources/index.js +3 -1
  277. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +45 -0
  278. package/dist/api/resources/sites/resources/plans/client/Client.js +155 -0
  279. package/dist/api/resources/sites/resources/plans/client/index.d.ts +1 -0
  280. package/dist/api/resources/sites/resources/plans/client/index.js +2 -0
  281. package/dist/api/resources/sites/resources/plans/index.d.ts +1 -0
  282. package/dist/api/resources/sites/resources/plans/index.js +17 -0
  283. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +115 -0
  284. package/dist/api/resources/sites/resources/redirects/client/Client.js +472 -0
  285. package/dist/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
  286. package/dist/api/resources/sites/resources/redirects/client/index.js +2 -0
  287. package/dist/api/resources/sites/resources/redirects/index.d.ts +1 -0
  288. package/dist/api/resources/sites/resources/redirects/index.js +17 -0
  289. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  290. package/dist/api/resources/sites/resources/scripts/client/Client.js +8 -8
  291. package/dist/api/resources/token/client/Client.d.ts +2 -1
  292. package/dist/api/resources/token/client/Client.js +4 -3
  293. package/dist/api/resources/users/client/Client.d.ts +1 -1
  294. package/dist/api/resources/users/client/Client.js +6 -6
  295. package/dist/api/resources/webhooks/client/Client.d.ts +4 -1
  296. package/dist/api/resources/webhooks/client/Client.js +8 -5
  297. package/dist/api/types/CollectionItem.d.ts +6 -2
  298. package/dist/api/types/CollectionItemFieldData.d.ts +2 -2
  299. package/dist/api/types/CollectionItemPatchSingle.d.ts +24 -0
  300. package/dist/api/types/CollectionItemPatchSingle.js +5 -0
  301. package/dist/api/types/CollectionItemPatchSingleFieldData.d.ts +11 -0
  302. package/dist/api/types/CollectionItemPatchSingleFieldData.js +5 -0
  303. package/dist/api/types/CollectionItemPostSingle.d.ts +28 -0
  304. package/dist/api/types/CollectionItemPostSingle.js +5 -0
  305. package/dist/api/types/CollectionItemPostSingleFieldData.d.ts +11 -0
  306. package/dist/api/types/CollectionItemPostSingleFieldData.js +5 -0
  307. package/dist/api/types/Component.d.ts +18 -0
  308. package/dist/api/types/Component.js +5 -0
  309. package/dist/api/types/ComponentDom.d.ts +13 -0
  310. package/dist/api/types/ComponentDom.js +5 -0
  311. package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
  312. package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
  313. package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
  314. package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
  315. package/dist/api/types/ComponentList.d.ts +11 -0
  316. package/dist/api/types/ComponentList.js +5 -0
  317. package/dist/api/types/ComponentNode.d.ts +15 -0
  318. package/dist/api/types/ComponentNode.js +5 -0
  319. package/dist/api/types/ComponentProperties.d.ts +13 -0
  320. package/dist/api/types/ComponentProperties.js +5 -0
  321. package/dist/api/types/ComponentProperty.d.ts +17 -0
  322. package/dist/api/types/ComponentProperty.js +5 -0
  323. package/dist/api/types/ComponentPropertyType.d.ts +12 -0
  324. package/dist/api/types/ComponentPropertyType.js +11 -0
  325. package/dist/api/types/Dom.d.ts +1 -1
  326. package/dist/api/types/Domain.d.ts +2 -0
  327. package/dist/api/types/Error_.d.ts +1 -1
  328. package/dist/api/types/FieldType.d.ts +10 -10
  329. package/dist/api/types/FieldType.js +9 -9
  330. package/dist/api/types/ImageNode.d.ts +6 -2
  331. package/dist/api/types/ImageNodeImage.d.ts +7 -0
  332. package/dist/api/types/ImageNodeImage.js +5 -0
  333. package/dist/api/types/Node.d.ts +11 -8
  334. package/dist/api/types/{ErrorDetailsItem.d.ts → NotEnterprisePlanWorkspace.d.ts} +1 -1
  335. package/dist/api/types/NotEnterprisePlanWorkspace.js +5 -0
  336. package/dist/api/types/ProductFieldData.d.ts +1 -1
  337. package/dist/api/types/Redirect.d.ts +14 -0
  338. package/dist/api/types/Redirect.js +5 -0
  339. package/dist/api/types/Redirects.d.ts +12 -0
  340. package/dist/api/types/Redirects.js +5 -0
  341. package/dist/api/types/ScriptApply.d.ts +1 -1
  342. package/dist/api/types/SitePlan.d.ts +12 -0
  343. package/dist/api/types/SitePlan.js +5 -0
  344. package/dist/api/types/SitePlanId.d.ts +21 -0
  345. package/dist/api/types/SitePlanId.js +20 -0
  346. package/dist/api/types/SitePlanName.d.ts +15 -0
  347. package/dist/api/types/SitePlanName.js +14 -0
  348. package/dist/api/types/Text.d.ts +9 -0
  349. package/dist/api/types/Text.js +5 -0
  350. package/dist/api/types/TextNode.d.ts +7 -3
  351. package/dist/api/types/TextNodeText.d.ts +9 -0
  352. package/dist/api/types/TextNodeText.js +5 -0
  353. package/{api/resources/pages/types/DomWriteNodesItem.d.ts → dist/api/types/TextNodeWrite.d.ts} +4 -1
  354. package/dist/api/types/TextNodeWrite.js +5 -0
  355. package/dist/api/types/TriggerType.d.ts +15 -15
  356. package/dist/api/types/UserAccessGroupsItem.d.ts +2 -3
  357. package/dist/api/types/UserAccessGroupsItemType.d.ts +2 -3
  358. package/dist/api/types/index.d.ts +27 -6
  359. package/dist/api/types/index.js +27 -6
  360. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +1 -1
  361. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  362. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  363. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
  364. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  365. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  366. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  367. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  368. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
  369. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
  370. package/dist/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +13 -0
  371. package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → dist/serialization/resources/collections/resources/items/types/MultipleItems.js} +4 -4
  372. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleLiveItems.d.ts} +2 -2
  373. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleLiveItems.js} +2 -2
  374. package/dist/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
  375. package/{serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js → dist/serialization/resources/collections/resources/items/types/SingleCmsItem.js} +2 -2
  376. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +3 -3
  377. package/dist/serialization/resources/collections/resources/items/types/index.js +3 -3
  378. package/dist/serialization/resources/components/client/index.d.ts +1 -0
  379. package/dist/serialization/resources/components/client/index.js +17 -0
  380. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
  381. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
  382. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
  383. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
  384. package/dist/serialization/resources/components/client/requests/index.d.ts +2 -0
  385. package/dist/serialization/resources/components/client/requests/index.js +7 -0
  386. package/dist/serialization/resources/components/index.d.ts +2 -0
  387. package/dist/serialization/resources/components/index.js +18 -0
  388. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
  389. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
  390. package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
  391. package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
  392. package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
  393. package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
  394. package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
  395. package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
  396. package/dist/serialization/resources/components/types/index.d.ts +4 -0
  397. package/dist/serialization/resources/components/types/index.js +20 -0
  398. package/dist/serialization/resources/index.d.ts +3 -0
  399. package/dist/serialization/resources/index.js +4 -1
  400. package/dist/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
  401. package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
  402. package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -1
  403. package/dist/serialization/resources/pages/client/requests/index.js +3 -3
  404. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
  405. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
  406. package/dist/serialization/resources/pages/types/index.d.ts +1 -1
  407. package/dist/serialization/resources/pages/types/index.js +1 -1
  408. package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
  409. package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
  410. package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  411. package/{serialization/resources/pages/client/requests/DomWrite.js → dist/serialization/resources/sites/client/requests/SitesUpdateRequest.js} +4 -4
  412. package/dist/serialization/resources/sites/client/requests/index.d.ts +2 -0
  413. package/dist/serialization/resources/sites/client/requests/index.js +5 -1
  414. package/dist/serialization/types/CollectionItem.d.ts +1 -1
  415. package/dist/serialization/types/CollectionItem.js +1 -1
  416. package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
  417. package/dist/serialization/types/CollectionItemFieldData.js +2 -2
  418. package/dist/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
  419. package/dist/serialization/types/CollectionItemPatchSingle.js +41 -0
  420. package/dist/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
  421. package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
  422. package/dist/serialization/types/CollectionItemPostSingle.d.ts +20 -0
  423. package/dist/serialization/types/CollectionItemPostSingle.js +41 -0
  424. package/dist/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
  425. package/dist/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
  426. package/dist/serialization/types/Component.d.ts +16 -0
  427. package/dist/serialization/types/Component.js +37 -0
  428. package/dist/serialization/types/ComponentDom.d.ts +16 -0
  429. package/dist/serialization/types/ComponentDom.js +37 -0
  430. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
  431. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
  432. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
  433. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
  434. package/dist/serialization/types/ComponentList.d.ts +15 -0
  435. package/dist/serialization/types/ComponentList.js +36 -0
  436. package/dist/serialization/types/ComponentNode.d.ts +15 -0
  437. package/dist/serialization/types/ComponentNode.js +36 -0
  438. package/dist/serialization/types/ComponentProperties.d.ts +16 -0
  439. package/dist/serialization/types/ComponentProperties.js +37 -0
  440. package/dist/serialization/types/ComponentProperty.d.ts +17 -0
  441. package/dist/serialization/types/ComponentProperty.js +38 -0
  442. package/dist/serialization/types/ComponentPropertyType.d.ts +10 -0
  443. package/dist/serialization/types/{ErrorDetailsItem.js → ComponentPropertyType.js} +2 -5
  444. package/dist/serialization/types/Domain.d.ts +1 -0
  445. package/dist/serialization/types/Domain.js +1 -0
  446. package/dist/serialization/types/Error_.d.ts +1 -2
  447. package/dist/serialization/types/Error_.js +1 -2
  448. package/dist/serialization/types/FieldType.d.ts +1 -1
  449. package/dist/serialization/types/FieldType.js +9 -9
  450. package/dist/serialization/types/ImageNode.d.ts +4 -2
  451. package/dist/serialization/types/ImageNode.js +4 -2
  452. package/dist/serialization/types/ImageNodeImage.d.ts +13 -0
  453. package/{serialization/types/ErrorDetailsItem.js → dist/serialization/types/ImageNodeImage.js} +5 -5
  454. package/dist/serialization/types/Node.d.ts +11 -8
  455. package/dist/serialization/types/Node.js +10 -7
  456. package/dist/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
  457. package/dist/serialization/types/{NodeType.js → NotEnterprisePlanWorkspace.js} +2 -2
  458. package/dist/serialization/types/Redirect.d.ts +14 -0
  459. package/dist/serialization/types/Redirect.js +35 -0
  460. package/dist/serialization/types/Redirects.d.ts +15 -0
  461. package/dist/serialization/types/Redirects.js +36 -0
  462. package/dist/serialization/types/SitePlan.d.ts +16 -0
  463. package/dist/serialization/types/SitePlan.js +37 -0
  464. package/dist/serialization/types/SitePlanId.d.ts +10 -0
  465. package/dist/serialization/types/SitePlanId.js +44 -0
  466. package/dist/serialization/types/SitePlanName.d.ts +10 -0
  467. package/dist/serialization/types/SitePlanName.js +38 -0
  468. package/dist/serialization/types/Text.d.ts +13 -0
  469. package/dist/serialization/types/Text.js +34 -0
  470. package/dist/serialization/types/TextNode.d.ts +4 -2
  471. package/dist/serialization/types/TextNode.js +4 -2
  472. package/dist/serialization/types/TextNodeText.d.ts +13 -0
  473. package/dist/serialization/types/TextNodeText.js +34 -0
  474. package/dist/serialization/types/TextNodeWrite.d.ts +13 -0
  475. package/{serialization/resources/pages/types/DomWriteNodesItem.js → dist/serialization/types/TextNodeWrite.js} +3 -3
  476. package/dist/serialization/types/index.d.ts +27 -6
  477. package/dist/serialization/types/index.js +27 -6
  478. package/dist/version.d.ts +1 -1
  479. package/dist/version.js +1 -1
  480. package/package.json +1 -1
  481. package/reference.md +1844 -788
  482. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +1 -1
  483. package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  484. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  485. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +1 -1
  486. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  487. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  488. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  489. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  490. package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts +3 -3
  491. package/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.js +3 -3
  492. package/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +13 -0
  493. package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → serialization/resources/collections/resources/items/types/MultipleItems.js} +4 -4
  494. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.d.ts → MultipleLiveItems.d.ts} +2 -2
  495. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → MultipleLiveItems.js} +2 -2
  496. package/serialization/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.d.ts → SingleCmsItem.d.ts} +2 -2
  497. package/{dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js → serialization/resources/collections/resources/items/types/SingleCmsItem.js} +2 -2
  498. package/serialization/resources/collections/resources/items/types/index.d.ts +3 -3
  499. package/serialization/resources/collections/resources/items/types/index.js +3 -3
  500. package/serialization/resources/components/client/index.d.ts +1 -0
  501. package/serialization/resources/components/client/index.js +17 -0
  502. package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
  503. package/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
  504. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
  505. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
  506. package/serialization/resources/components/client/requests/index.d.ts +2 -0
  507. package/serialization/resources/components/client/requests/index.js +7 -0
  508. package/serialization/resources/components/index.d.ts +2 -0
  509. package/serialization/resources/components/index.js +18 -0
  510. package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
  511. package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
  512. package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
  513. package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
  514. package/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
  515. package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
  516. package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
  517. package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
  518. package/serialization/resources/components/types/index.d.ts +4 -0
  519. package/serialization/resources/components/types/index.js +20 -0
  520. package/serialization/resources/index.d.ts +3 -0
  521. package/serialization/resources/index.js +4 -1
  522. package/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
  523. package/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
  524. package/serialization/resources/pages/client/requests/index.d.ts +1 -1
  525. package/serialization/resources/pages/client/requests/index.js +3 -3
  526. package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
  527. package/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
  528. package/serialization/resources/pages/types/index.d.ts +1 -1
  529. package/serialization/resources/pages/types/index.js +1 -1
  530. package/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
  531. package/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
  532. package/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  533. package/{dist/serialization/resources/pages/client/requests/DomWrite.js → serialization/resources/sites/client/requests/SitesUpdateRequest.js} +4 -4
  534. package/serialization/resources/sites/client/requests/index.d.ts +2 -0
  535. package/serialization/resources/sites/client/requests/index.js +5 -1
  536. package/serialization/types/CollectionItem.d.ts +1 -1
  537. package/serialization/types/CollectionItem.js +1 -1
  538. package/serialization/types/CollectionItemFieldData.d.ts +2 -2
  539. package/serialization/types/CollectionItemFieldData.js +2 -2
  540. package/serialization/types/CollectionItemPatchSingle.d.ts +20 -0
  541. package/serialization/types/CollectionItemPatchSingle.js +41 -0
  542. package/serialization/types/CollectionItemPatchSingleFieldData.d.ts +14 -0
  543. package/serialization/types/CollectionItemPatchSingleFieldData.js +36 -0
  544. package/serialization/types/CollectionItemPostSingle.d.ts +20 -0
  545. package/serialization/types/CollectionItemPostSingle.js +41 -0
  546. package/serialization/types/CollectionItemPostSingleFieldData.d.ts +14 -0
  547. package/serialization/types/CollectionItemPostSingleFieldData.js +36 -0
  548. package/serialization/types/Component.d.ts +16 -0
  549. package/serialization/types/Component.js +37 -0
  550. package/serialization/types/ComponentDom.d.ts +16 -0
  551. package/serialization/types/ComponentDom.js +37 -0
  552. package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
  553. package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
  554. package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
  555. package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
  556. package/serialization/types/ComponentList.d.ts +15 -0
  557. package/serialization/types/ComponentList.js +36 -0
  558. package/serialization/types/ComponentNode.d.ts +15 -0
  559. package/serialization/types/ComponentNode.js +36 -0
  560. package/serialization/types/ComponentProperties.d.ts +16 -0
  561. package/serialization/types/ComponentProperties.js +37 -0
  562. package/serialization/types/ComponentProperty.d.ts +17 -0
  563. package/serialization/types/ComponentProperty.js +38 -0
  564. package/serialization/types/ComponentPropertyType.d.ts +10 -0
  565. package/serialization/types/ComponentPropertyType.js +31 -0
  566. package/serialization/types/Domain.d.ts +1 -0
  567. package/serialization/types/Domain.js +1 -0
  568. package/serialization/types/Error_.d.ts +1 -2
  569. package/serialization/types/Error_.js +1 -2
  570. package/serialization/types/FieldType.d.ts +1 -1
  571. package/serialization/types/FieldType.js +9 -9
  572. package/serialization/types/ImageNode.d.ts +4 -2
  573. package/serialization/types/ImageNode.js +4 -2
  574. package/serialization/types/ImageNodeImage.d.ts +13 -0
  575. package/serialization/types/ImageNodeImage.js +34 -0
  576. package/serialization/types/Node.d.ts +11 -8
  577. package/serialization/types/Node.js +10 -7
  578. package/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
  579. package/serialization/types/{NodeType.js → NotEnterprisePlanWorkspace.js} +2 -2
  580. package/serialization/types/Redirect.d.ts +14 -0
  581. package/serialization/types/Redirect.js +35 -0
  582. package/serialization/types/Redirects.d.ts +15 -0
  583. package/serialization/types/Redirects.js +36 -0
  584. package/serialization/types/SitePlan.d.ts +16 -0
  585. package/serialization/types/SitePlan.js +37 -0
  586. package/serialization/types/SitePlanId.d.ts +10 -0
  587. package/serialization/types/SitePlanId.js +44 -0
  588. package/serialization/types/SitePlanName.d.ts +10 -0
  589. package/serialization/types/SitePlanName.js +38 -0
  590. package/serialization/types/Text.d.ts +13 -0
  591. package/serialization/types/Text.js +34 -0
  592. package/serialization/types/TextNode.d.ts +4 -2
  593. package/serialization/types/TextNode.js +4 -2
  594. package/serialization/types/TextNodeText.d.ts +13 -0
  595. package/serialization/types/TextNodeText.js +34 -0
  596. package/serialization/types/TextNodeWrite.d.ts +13 -0
  597. package/{dist/serialization/resources/pages/types/DomWriteNodesItem.js → serialization/types/TextNodeWrite.js} +3 -3
  598. package/serialization/types/index.d.ts +27 -6
  599. package/serialization/types/index.js +27 -6
  600. package/version.d.ts +1 -1
  601. package/version.js +1 -1
  602. package/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
  603. package/api/types/NodeType.d.ts +0 -8
  604. package/api/types/NodeType.js +0 -10
  605. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
  606. package/dist/api/types/NodeType.d.ts +0 -8
  607. package/dist/api/types/NodeType.js +0 -10
  608. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
  609. package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
  610. package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
  611. package/dist/serialization/types/ErrorDetailsItem.d.ts +0 -10
  612. package/dist/serialization/types/NodeType.d.ts +0 -10
  613. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.d.ts +0 -13
  614. package/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
  615. package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
  616. package/serialization/types/ErrorDetailsItem.d.ts +0 -10
  617. package/serialization/types/NodeType.d.ts +0 -10
  618. /package/api/resources/collections/resources/items/types/{CreateBulkCollectionItemRequestBodyFieldDataName.js → MultipleItems.js} +0 -0
  619. /package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequestItems.js → MultipleLiveItems.js} +0 -0
  620. /package/api/resources/collections/resources/items/types/{ItemsCreateItemRequestItems.js → SingleCmsItem.js} +0 -0
  621. /package/api/resources/{pages/client/requests/DomWrite.js → components/client/requests/ComponentDomWrite.js} +0 -0
  622. /package/api/resources/{pages/types/DomWriteNodesItem.js → components/client/requests/ComponentPropertiesWrite.js} +0 -0
  623. /package/api/{types/ErrorDetailsItem.js → resources/components/client/requests/ComponentsGetContentRequest.js} +0 -0
  624. /package/{dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataName.js → api/resources/components/client/requests/ComponentsGetPropertiesRequest.js} +0 -0
  625. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestItems.js → api/resources/components/client/requests/ComponentsListRequest.js} +0 -0
  626. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestItems.js → api/resources/components/types/ComponentDomWriteNodesItem.js} +0 -0
  627. /package/{dist/api/resources/pages/client/requests/DomWrite.js → api/resources/components/types/ComponentPropertiesWritePropertiesItem.js} +0 -0
  628. /package/{dist/api/resources/pages/types/DomWriteNodesItem.js → api/resources/components/types/ComponentsUpdateContentResponse.js} +0 -0
  629. /package/{dist/api/types/ErrorDetailsItem.js → api/resources/components/types/ComponentsUpdatePropertiesResponse.js} +0 -0
package/dist/Client.js CHANGED
@@ -8,16 +8,17 @@ const Client_1 = require("./api/resources/token/client/Client");
8
8
  const Client_2 = require("./api/resources/sites/client/Client");
9
9
  const Client_3 = require("./api/resources/collections/client/Client");
10
10
  const Client_4 = require("./api/resources/pages/client/Client");
11
- const Client_5 = require("./api/resources/scripts/client/Client");
12
- const Client_6 = require("./api/resources/assets/client/Client");
13
- const Client_7 = require("./api/resources/webhooks/client/Client");
14
- const Client_8 = require("./api/resources/forms/client/Client");
15
- const Client_9 = require("./api/resources/users/client/Client");
16
- const Client_10 = require("./api/resources/accessGroups/client/Client");
17
- const Client_11 = require("./api/resources/products/client/Client");
18
- const Client_12 = require("./api/resources/orders/client/Client");
19
- const Client_13 = require("./api/resources/inventory/client/Client");
20
- const Client_14 = require("./api/resources/ecommerce/client/Client");
11
+ const Client_5 = require("./api/resources/components/client/Client");
12
+ const Client_6 = require("./api/resources/scripts/client/Client");
13
+ const Client_7 = require("./api/resources/assets/client/Client");
14
+ const Client_8 = require("./api/resources/webhooks/client/Client");
15
+ const Client_9 = require("./api/resources/forms/client/Client");
16
+ const Client_10 = require("./api/resources/users/client/Client");
17
+ const Client_11 = require("./api/resources/accessGroups/client/Client");
18
+ const Client_12 = require("./api/resources/products/client/Client");
19
+ const Client_13 = require("./api/resources/orders/client/Client");
20
+ const Client_14 = require("./api/resources/inventory/client/Client");
21
+ const Client_15 = require("./api/resources/ecommerce/client/Client");
21
22
  class WebflowClient {
22
23
  constructor(_options) {
23
24
  this._options = _options;
@@ -38,45 +39,49 @@ class WebflowClient {
38
39
  var _a;
39
40
  return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new Client_4.Pages(this._options)));
40
41
  }
42
+ get components() {
43
+ var _a;
44
+ return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new Client_5.Components(this._options)));
45
+ }
41
46
  get scripts() {
42
47
  var _a;
43
- return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_5.Scripts(this._options)));
48
+ return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_6.Scripts(this._options)));
44
49
  }
45
50
  get assets() {
46
51
  var _a;
47
- return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_6.Assets(this._options)));
52
+ return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_7.Assets(this._options)));
48
53
  }
49
54
  get webhooks() {
50
55
  var _a;
51
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_7.Webhooks(this._options)));
56
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_8.Webhooks(this._options)));
52
57
  }
53
58
  get forms() {
54
59
  var _a;
55
- return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_8.Forms(this._options)));
60
+ return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_9.Forms(this._options)));
56
61
  }
57
62
  get users() {
58
63
  var _a;
59
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_9.Users(this._options)));
64
+ return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_10.Users(this._options)));
60
65
  }
61
66
  get accessGroups() {
62
67
  var _a;
63
- return ((_a = this._accessGroups) !== null && _a !== void 0 ? _a : (this._accessGroups = new Client_10.AccessGroups(this._options)));
68
+ return ((_a = this._accessGroups) !== null && _a !== void 0 ? _a : (this._accessGroups = new Client_11.AccessGroups(this._options)));
64
69
  }
65
70
  get products() {
66
71
  var _a;
67
- return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_11.Products(this._options)));
72
+ return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_12.Products(this._options)));
68
73
  }
69
74
  get orders() {
70
75
  var _a;
71
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_12.Orders(this._options)));
76
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_13.Orders(this._options)));
72
77
  }
73
78
  get inventory() {
74
79
  var _a;
75
- return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_13.Inventory(this._options)));
80
+ return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_14.Inventory(this._options)));
76
81
  }
77
82
  get ecommerce() {
78
83
  var _a;
79
- return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_14.Ecommerce(this._options)));
84
+ return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_15.Ecommerce(this._options)));
80
85
  }
81
86
  }
82
87
  exports.WebflowClient = WebflowClient;
@@ -1,7 +1,7 @@
1
1
  export * from "./UnauthorizedError";
2
2
  export * from "./ForbiddenError";
3
+ export * from "./BadRequestError";
3
4
  export * from "./NotFoundError";
4
5
  export * from "./TooManyRequestsError";
5
- export * from "./BadRequestError";
6
6
  export * from "./InternalServerError";
7
7
  export * from "./ConflictError";
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./UnauthorizedError"), exports);
18
18
  __exportStar(require("./ForbiddenError"), exports);
19
+ __exportStar(require("./BadRequestError"), exports);
19
20
  __exportStar(require("./NotFoundError"), exports);
20
21
  __exportStar(require("./TooManyRequestsError"), exports);
21
- __exportStar(require("./BadRequestError"), exports);
22
22
  __exportStar(require("./InternalServerError"), exports);
23
23
  __exportStar(require("./ConflictError"), exports);
@@ -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.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "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",
@@ -20,6 +20,9 @@ export declare namespace Assets {
20
20
  headers?: Record<string, string>;
21
21
  }
22
22
  }
23
+ /**
24
+ * Assets are files that are uploaded to your Webflow account.
25
+ */
23
26
  export declare class Assets {
24
27
  protected readonly _options: Assets.Options;
25
28
  constructor(_options: Assets.Options);
@@ -44,10 +47,12 @@ export declare class Assets {
44
47
  /**
45
48
  * Create a new asset entry.
46
49
  *
50
+ *
47
51
  * This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`.
48
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)
49
53
  * request to the `uploadUrl` with the `uploadDetails` object as your header information in the request.
50
54
  *
55
+ *
51
56
  * Required scope | `assets:write`
52
57
  *
53
58
  * @param {string} siteId - Unique identifier for a Site
@@ -45,6 +45,9 @@ const Webflow = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
46
  const serializers = __importStar(require("../../../../serialization/index"));
47
47
  const errors = __importStar(require("../../../../errors/index"));
48
+ /**
49
+ * Assets are files that are uploaded to your Webflow account.
50
+ */
48
51
  class Assets {
49
52
  constructor(_options) {
50
53
  this._options = _options;
@@ -72,7 +75,7 @@ class Assets {
72
75
  const _response = yield core.fetcher({
73
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`),
74
77
  method: "GET",
75
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
76
79
  contentType: "application/json",
77
80
  requestType: "json",
78
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -149,10 +152,12 @@ class Assets {
149
152
  /**
150
153
  * Create a new asset entry.
151
154
  *
155
+ *
152
156
  * This endpoint generates a response with the following information: `uploadUrl` and `uploadDetails`.
153
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)
154
158
  * request to the `uploadUrl` with the `uploadDetails` object as your header information in the request.
155
159
  *
160
+ *
156
161
  * Required scope | `assets:write`
157
162
  *
158
163
  * @param {string} siteId - Unique identifier for a Site
@@ -177,7 +182,7 @@ class Assets {
177
182
  const _response = yield core.fetcher({
178
183
  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`),
179
184
  method: "POST",
180
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
185
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
181
186
  contentType: "application/json",
182
187
  requestType: "json",
183
188
  body: serializers.AssetsCreateRequest.jsonOrThrow(request, {
@@ -279,7 +284,7 @@ class Assets {
279
284
  const _response = yield core.fetcher({
280
285
  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)}`),
281
286
  method: "GET",
282
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
287
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
283
288
  contentType: "application/json",
284
289
  requestType: "json",
285
290
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -376,7 +381,7 @@ class Assets {
376
381
  const _response = yield core.fetcher({
377
382
  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)}`),
378
383
  method: "DELETE",
379
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
384
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
380
385
  contentType: "application/json",
381
386
  requestType: "json",
382
387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -468,7 +473,7 @@ class Assets {
468
473
  const _response = yield core.fetcher({
469
474
  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)}`),
470
475
  method: "PATCH",
471
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
476
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
472
477
  contentType: "application/json",
473
478
  requestType: "json",
474
479
  body: serializers.AssetsUpdateRequest.jsonOrThrow(request, {
@@ -570,7 +575,7 @@ class Assets {
570
575
  const _response = yield core.fetcher({
571
576
  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`),
572
577
  method: "GET",
573
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
578
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
574
579
  contentType: "application/json",
575
580
  requestType: "json",
576
581
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -670,7 +675,7 @@ class Assets {
670
675
  const _response = yield core.fetcher({
671
676
  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`),
672
677
  method: "POST",
673
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
678
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
674
679
  contentType: "application/json",
675
680
  requestType: "json",
676
681
  body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, {
@@ -772,7 +777,7 @@ class Assets {
772
777
  const _response = yield core.fetcher({
773
778
  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)}`),
774
779
  method: "GET",
775
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
780
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
776
781
  contentType: "application/json",
777
782
  requestType: "json",
778
783
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -22,6 +22,9 @@ export declare namespace Collections {
22
22
  headers?: Record<string, string>;
23
23
  }
24
24
  }
25
+ /**
26
+ * Collections are CMS collections of items.
27
+ */
25
28
  export declare class Collections {
26
29
  protected readonly _options: Collections.Options;
27
30
  constructor(_options: Collections.Options);
@@ -47,6 +47,9 @@ const serializers = __importStar(require("../../../../serialization/index"));
47
47
  const errors = __importStar(require("../../../../errors/index"));
48
48
  const Client_1 = require("../resources/fields/client/Client");
49
49
  const Client_2 = require("../resources/items/client/Client");
50
+ /**
51
+ * Collections are CMS collections of items.
52
+ */
50
53
  class Collections {
51
54
  constructor(_options) {
52
55
  this._options = _options;
@@ -74,7 +77,7 @@ class Collections {
74
77
  const _response = yield core.fetcher({
75
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`),
76
79
  method: "GET",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
80
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
81
  contentType: "application/json",
79
82
  requestType: "json",
80
83
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -176,7 +179,7 @@ class Collections {
176
179
  const _response = yield core.fetcher({
177
180
  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`),
178
181
  method: "POST",
179
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
182
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
180
183
  contentType: "application/json",
181
184
  requestType: "json",
182
185
  body: serializers.CollectionsCreateRequest.jsonOrThrow(request, {
@@ -278,7 +281,7 @@ class Collections {
278
281
  const _response = yield core.fetcher({
279
282
  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)}`),
280
283
  method: "GET",
281
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
284
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
282
285
  contentType: "application/json",
283
286
  requestType: "json",
284
287
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -375,7 +378,7 @@ class Collections {
375
378
  const _response = yield core.fetcher({
376
379
  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)}`),
377
380
  method: "DELETE",
378
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
381
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
379
382
  contentType: "application/json",
380
383
  requestType: "json",
381
384
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -85,7 +85,7 @@ class Fields {
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, `collections/${encodeURIComponent(collectionId)}/fields`),
87
87
  method: "POST",
88
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
88
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "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
  requestType: "json",
91
91
  body: serializers.collections.FieldCreate.jsonOrThrow(request, {
@@ -188,7 +188,7 @@ class Fields {
188
188
  const _response = yield core.fetcher({
189
189
  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)}/fields/${encodeURIComponent(fieldId)}`),
190
190
  method: "DELETE",
191
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
191
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
192
192
  contentType: "application/json",
193
193
  requestType: "json",
194
194
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -285,7 +285,7 @@ class Fields {
285
285
  const _response = yield core.fetcher({
286
286
  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)}/fields/${encodeURIComponent(fieldId)}`),
287
287
  method: "PATCH",
288
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.0", "User-Agent": "webflow-api/3.0.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
288
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
289
289
  contentType: "application/json",
290
290
  requestType: "json",
291
291
  body: serializers.collections.FieldUpdate.jsonOrThrow(request, {
@@ -4,19 +4,20 @@
4
4
  /**
5
5
  * Choose these appropriate field type for your collection data
6
6
  */
7
- export declare type FieldCreateType = "PlainText" | "RichText" | "Image" | "MultiImage" | "Video" | "Link" | "Email" | "Phone" | "Number" | "DateTime" | "Switch" | "Color" | "File";
7
+ export declare type FieldCreateType = "Color" | "DateTime" | "Email" | "ExtFileRef" | "File" | "Image" | "Link" | "MultiImage" | "Number" | "Phone" | "PlainText" | "RichText" | "Switch" | "Video";
8
8
  export declare const FieldCreateType: {
9
- readonly PlainText: "PlainText";
10
- readonly RichText: "RichText";
9
+ readonly Color: "Color";
10
+ readonly DateTime: "DateTime";
11
+ readonly Email: "Email";
12
+ readonly ExtFileRef: "ExtFileRef";
13
+ readonly File: "File";
11
14
  readonly Image: "Image";
12
- readonly MultiImage: "MultiImage";
13
- readonly Video: "Video";
14
15
  readonly Link: "Link";
15
- readonly Email: "Email";
16
- readonly Phone: "Phone";
16
+ readonly MultiImage: "MultiImage";
17
17
  readonly Number: "Number";
18
- readonly DateTime: "DateTime";
18
+ readonly Phone: "Phone";
19
+ readonly PlainText: "PlainText";
20
+ readonly RichText: "RichText";
19
21
  readonly Switch: "Switch";
20
- readonly Color: "Color";
21
- readonly File: "File";
22
+ readonly Video: "Video";
22
23
  };
@@ -5,17 +5,18 @@
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.FieldCreateType = void 0;
7
7
  exports.FieldCreateType = {
8
- PlainText: "PlainText",
9
- RichText: "RichText",
8
+ Color: "Color",
9
+ DateTime: "DateTime",
10
+ Email: "Email",
11
+ ExtFileRef: "ExtFileRef",
12
+ File: "File",
10
13
  Image: "Image",
11
- MultiImage: "MultiImage",
12
- Video: "Video",
13
14
  Link: "Link",
14
- Email: "Email",
15
- Phone: "Phone",
15
+ MultiImage: "MultiImage",
16
16
  Number: "Number",
17
- DateTime: "DateTime",
17
+ Phone: "Phone",
18
+ PlainText: "PlainText",
19
+ RichText: "RichText",
18
20
  Switch: "Switch",
19
- Color: "Color",
20
- File: "File",
21
+ Video: "Video",
21
22
  };
@@ -45,7 +45,8 @@ export declare class Items {
45
45
  /**
46
46
  * Create Item(s) in a Collection.
47
47
  *
48
- * To create items across multiple locales, please use [this endpoint.](/data/v2.0.0/reference/cms/collection-items/bulk-items/create-items)
48
+ *
49
+ * To create items across multiple locales, please use [this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
49
50
  *
50
51
  * Required scope | `CMS:write`
51
52
  *
@@ -103,6 +104,7 @@ export declare class Items {
103
104
  * @throws {@link Webflow.BadRequestError}
104
105
  * @throws {@link Webflow.UnauthorizedError}
105
106
  * @throws {@link Webflow.NotFoundError}
107
+ * @throws {@link Webflow.ConflictError}
106
108
  * @throws {@link Webflow.TooManyRequestsError}
107
109
  * @throws {@link Webflow.InternalServerError}
108
110
  *
@@ -204,7 +206,9 @@ export declare class Items {
204
206
  /**
205
207
  * Create live Item(s) in a Collection. The Item(s) will be published to the live site.
206
208
  *
207
- * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/bulk-items/create-items)
209
+ *
210
+ * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
211
+ *
208
212
  *
209
213
  * Required scope | `CMS:write`
210
214
  *
@@ -345,9 +349,8 @@ export declare class Items {
345
349
  * Create an item or multiple items in a CMS Collection across multiple corresponding locales.
346
350
  *
347
351
  * **Notes:**
348
- *
349
- * - This endpoint can create up to 100 items in a request.
350
- * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
352
+ * - This endpoint can create up to 100 items in a request.
353
+ * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
351
354
  *
352
355
  * Required scope | `CMS:write`
353
356
  *
@@ -386,7 +389,7 @@ export declare class Items {
386
389
  * }]
387
390
  * })
388
391
  */
389
- createItems(collectionId: string, request?: Webflow.collections.CreateBulkCollectionItemRequestBody, requestOptions?: Items.RequestOptions): Promise<Webflow.BulkCollectionItem>;
392
+ createItems(collectionId: string, request: Webflow.collections.CreateBulkCollectionItemRequestBody, requestOptions?: Items.RequestOptions): Promise<Webflow.BulkCollectionItem>;
390
393
  /**
391
394
  * Get details of a selected Collection Item.
392
395
  *
@@ -434,7 +437,7 @@ export declare class Items {
434
437
  *
435
438
  * @param {string} collectionId - Unique identifier for a Collection
436
439
  * @param {string} itemId - Unique identifier for an Item
437
- * @param {Webflow.CollectionItem} request
440
+ * @param {Webflow.CollectionItemPatchSingle} request
438
441
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
439
442
  *
440
443
  * @throws {@link Webflow.BadRequestError}
@@ -445,11 +448,6 @@ export declare class Items {
445
448
  *
446
449
  * @example
447
450
  * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
448
- * id: "42b720ef280c7a7a3be8cabe",
449
- * cmsLocaleId: "653ad57de882f528b32e810e",
450
- * lastPublished: "2022-11-29T16:22:43.159Z",
451
- * lastUpdated: "2022-11-17T17:19:43.282Z",
452
- * createdOn: "2022-11-17T17:11:57.148Z",
453
451
  * isArchived: false,
454
452
  * isDraft: false,
455
453
  * fieldData: {
@@ -458,7 +456,7 @@ export declare class Items {
458
456
  * }
459
457
  * })
460
458
  */
461
- updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
459
+ updateItem(collectionId: string, itemId: string, request: Webflow.CollectionItemPatchSingle, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
462
460
  /**
463
461
  * Get details of a selected Collection live Item.
464
462
  *
@@ -508,7 +506,7 @@ export declare class Items {
508
506
  *
509
507
  * @param {string} collectionId - Unique identifier for a Collection
510
508
  * @param {string} itemId - Unique identifier for an Item
511
- * @param {Webflow.CollectionItem} request
509
+ * @param {Webflow.CollectionItemPatchSingle} request
512
510
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
513
511
  *
514
512
  * @throws {@link Webflow.BadRequestError}
@@ -519,11 +517,6 @@ export declare class Items {
519
517
  *
520
518
  * @example
521
519
  * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
522
- * id: "42b720ef280c7a7a3be8cabe",
523
- * cmsLocaleId: "653ad57de882f528b32e810e",
524
- * lastPublished: "2022-11-29T16:22:43.159Z",
525
- * lastUpdated: "2022-11-17T17:19:43.282Z",
526
- * createdOn: "2022-11-17T17:11:57.148Z",
527
520
  * isArchived: false,
528
521
  * isDraft: false,
529
522
  * fieldData: {
@@ -532,7 +525,7 @@ export declare class Items {
532
525
  * }
533
526
  * })
534
527
  */
535
- updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
528
+ updateItemLive(collectionId: string, itemId: string, request: Webflow.CollectionItemPatchSingle, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
536
529
  /**
537
530
  * Publish an item or multiple items.
538
531
  *