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
@@ -96,7 +96,7 @@ class Items {
96
96
  const _response = yield core.fetcher({
97
97
  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)}/items`),
98
98
  method: "GET",
99
- 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),
99
+ 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),
100
100
  contentType: "application/json",
101
101
  queryParameters: _queryParams,
102
102
  requestType: "json",
@@ -174,7 +174,8 @@ class Items {
174
174
  /**
175
175
  * Create Item(s) in a Collection.
176
176
  *
177
- * To create items across multiple locales, please use [this endpoint.](/data/v2.0.0/reference/cms/collection-items/bulk-items/create-items)
177
+ *
178
+ * To create items across multiple locales, please use [this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
178
179
  *
179
180
  * Required scope | `CMS:write`
180
181
  *
@@ -223,7 +224,7 @@ class Items {
223
224
  const _response = yield core.fetcher({
224
225
  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)}/items`),
225
226
  method: "POST",
226
- 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),
227
+ 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),
227
228
  contentType: "application/json",
228
229
  requestType: "json",
229
230
  body: serializers.collections.ItemsCreateItemRequest.jsonOrThrow(request, {
@@ -316,6 +317,7 @@ class Items {
316
317
  * @throws {@link Webflow.BadRequestError}
317
318
  * @throws {@link Webflow.UnauthorizedError}
318
319
  * @throws {@link Webflow.NotFoundError}
320
+ * @throws {@link Webflow.ConflictError}
319
321
  * @throws {@link Webflow.TooManyRequestsError}
320
322
  * @throws {@link Webflow.InternalServerError}
321
323
  *
@@ -328,7 +330,7 @@ class Items {
328
330
  const _response = yield core.fetcher({
329
331
  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)}/items`),
330
332
  method: "DELETE",
331
- 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),
333
+ 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),
332
334
  contentType: "application/json",
333
335
  requestType: "json",
334
336
  body: serializers.collections.ItemsDeleteItemsRequest.jsonOrThrow(request, {
@@ -363,6 +365,8 @@ class Items {
363
365
  skipValidation: true,
364
366
  breadcrumbsPrefix: ["response"],
365
367
  }));
368
+ case 409:
369
+ throw new Webflow.ConflictError(_response.error.body);
366
370
  case 429:
367
371
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
368
372
  unrecognizedObjectKeys: "passthrough",
@@ -478,7 +482,7 @@ class Items {
478
482
  const _response = yield core.fetcher({
479
483
  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)}/items`),
480
484
  method: "PATCH",
481
- 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),
485
+ 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),
482
486
  contentType: "application/json",
483
487
  requestType: "json",
484
488
  body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(request, {
@@ -604,7 +608,7 @@ class Items {
604
608
  const _response = yield core.fetcher({
605
609
  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)}/items/live`),
606
610
  method: "GET",
607
- 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),
611
+ 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),
608
612
  contentType: "application/json",
609
613
  queryParameters: _queryParams,
610
614
  requestType: "json",
@@ -682,7 +686,9 @@ class Items {
682
686
  /**
683
687
  * Create live Item(s) in a Collection. The Item(s) will be published to the live site.
684
688
  *
685
- * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/bulk-items/create-items)
689
+ *
690
+ * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
691
+ *
686
692
  *
687
693
  * Required scope | `CMS:write`
688
694
  *
@@ -731,7 +737,7 @@ class Items {
731
737
  const _response = yield core.fetcher({
732
738
  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)}/items/live`),
733
739
  method: "POST",
734
- 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),
740
+ 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),
735
741
  contentType: "application/json",
736
742
  requestType: "json",
737
743
  body: serializers.collections.ItemsCreateItemLiveRequest.jsonOrThrow(request, {
@@ -836,7 +842,7 @@ class Items {
836
842
  const _response = yield core.fetcher({
837
843
  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)}/items/live`),
838
844
  method: "DELETE",
839
- 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),
845
+ 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),
840
846
  contentType: "application/json",
841
847
  requestType: "json",
842
848
  body: serializers.collections.ItemsDeleteItemsLiveRequest.jsonOrThrow(request, {
@@ -986,7 +992,7 @@ class Items {
986
992
  const _response = yield core.fetcher({
987
993
  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)}/items/live`),
988
994
  method: "PATCH",
989
- 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),
995
+ 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),
990
996
  contentType: "application/json",
991
997
  requestType: "json",
992
998
  body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(request, {
@@ -1069,9 +1075,8 @@ class Items {
1069
1075
  * Create an item or multiple items in a CMS Collection across multiple corresponding locales.
1070
1076
  *
1071
1077
  * **Notes:**
1072
- *
1073
- * - This endpoint can create up to 100 items in a request.
1074
- * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
1078
+ * - This endpoint can create up to 100 items in a request.
1079
+ * - If the `cmsLocaleIds` parameter is undefined or empty and localization is enabled, items will only be created in the primary locale.
1075
1080
  *
1076
1081
  * Required scope | `CMS:write`
1077
1082
  *
@@ -1110,13 +1115,13 @@ class Items {
1110
1115
  * }]
1111
1116
  * })
1112
1117
  */
1113
- createItems(collectionId, request = {}, requestOptions) {
1118
+ createItems(collectionId, request, requestOptions) {
1114
1119
  var _a;
1115
1120
  return __awaiter(this, void 0, void 0, function* () {
1116
1121
  const _response = yield core.fetcher({
1117
1122
  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)}/items/bulk`),
1118
1123
  method: "POST",
1119
- 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),
1124
+ 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),
1120
1125
  contentType: "application/json",
1121
1126
  requestType: "json",
1122
1127
  body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(request, {
@@ -1225,7 +1230,7 @@ class Items {
1225
1230
  const _response = yield core.fetcher({
1226
1231
  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)}/items/${encodeURIComponent(itemId)}`),
1227
1232
  method: "GET",
1228
- 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),
1233
+ 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),
1229
1234
  contentType: "application/json",
1230
1235
  queryParameters: _queryParams,
1231
1236
  requestType: "json",
@@ -1330,7 +1335,7 @@ class Items {
1330
1335
  const _response = yield core.fetcher({
1331
1336
  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)}/items/${encodeURIComponent(itemId)}`),
1332
1337
  method: "DELETE",
1333
- 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),
1338
+ 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),
1334
1339
  contentType: "application/json",
1335
1340
  queryParameters: _queryParams,
1336
1341
  requestType: "json",
@@ -1406,7 +1411,7 @@ class Items {
1406
1411
  *
1407
1412
  * @param {string} collectionId - Unique identifier for a Collection
1408
1413
  * @param {string} itemId - Unique identifier for an Item
1409
- * @param {Webflow.CollectionItem} request
1414
+ * @param {Webflow.CollectionItemPatchSingle} request
1410
1415
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
1411
1416
  *
1412
1417
  * @throws {@link Webflow.BadRequestError}
@@ -1417,11 +1422,6 @@ class Items {
1417
1422
  *
1418
1423
  * @example
1419
1424
  * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
1420
- * id: "42b720ef280c7a7a3be8cabe",
1421
- * cmsLocaleId: "653ad57de882f528b32e810e",
1422
- * lastPublished: "2022-11-29T16:22:43.159Z",
1423
- * lastUpdated: "2022-11-17T17:19:43.282Z",
1424
- * createdOn: "2022-11-17T17:11:57.148Z",
1425
1425
  * isArchived: false,
1426
1426
  * isDraft: false,
1427
1427
  * fieldData: {
@@ -1436,10 +1436,10 @@ class Items {
1436
1436
  const _response = yield core.fetcher({
1437
1437
  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)}/items/${encodeURIComponent(itemId)}`),
1438
1438
  method: "PATCH",
1439
- 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),
1439
+ 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),
1440
1440
  contentType: "application/json",
1441
1441
  requestType: "json",
1442
- body: serializers.CollectionItem.jsonOrThrow(request, {
1442
+ body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
1443
1443
  unrecognizedObjectKeys: "passthrough",
1444
1444
  allowUnrecognizedUnionMembers: true,
1445
1445
  allowUnrecognizedEnumValues: true,
@@ -1545,7 +1545,7 @@ class Items {
1545
1545
  const _response = yield core.fetcher({
1546
1546
  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)}/items/${encodeURIComponent(itemId)}/live`),
1547
1547
  method: "GET",
1548
- 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),
1548
+ 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),
1549
1549
  contentType: "application/json",
1550
1550
  queryParameters: _queryParams,
1551
1551
  requestType: "json",
@@ -1652,7 +1652,7 @@ class Items {
1652
1652
  const _response = yield core.fetcher({
1653
1653
  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)}/items/${encodeURIComponent(itemId)}/live`),
1654
1654
  method: "DELETE",
1655
- 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),
1655
+ 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),
1656
1656
  contentType: "application/json",
1657
1657
  queryParameters: _queryParams,
1658
1658
  requestType: "json",
@@ -1728,7 +1728,7 @@ class Items {
1728
1728
  *
1729
1729
  * @param {string} collectionId - Unique identifier for a Collection
1730
1730
  * @param {string} itemId - Unique identifier for an Item
1731
- * @param {Webflow.CollectionItem} request
1731
+ * @param {Webflow.CollectionItemPatchSingle} request
1732
1732
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
1733
1733
  *
1734
1734
  * @throws {@link Webflow.BadRequestError}
@@ -1739,11 +1739,6 @@ class Items {
1739
1739
  *
1740
1740
  * @example
1741
1741
  * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
1742
- * id: "42b720ef280c7a7a3be8cabe",
1743
- * cmsLocaleId: "653ad57de882f528b32e810e",
1744
- * lastPublished: "2022-11-29T16:22:43.159Z",
1745
- * lastUpdated: "2022-11-17T17:19:43.282Z",
1746
- * createdOn: "2022-11-17T17:11:57.148Z",
1747
1742
  * isArchived: false,
1748
1743
  * isDraft: false,
1749
1744
  * fieldData: {
@@ -1758,10 +1753,10 @@ class Items {
1758
1753
  const _response = yield core.fetcher({
1759
1754
  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)}/items/${encodeURIComponent(itemId)}/live`),
1760
1755
  method: "PATCH",
1761
- 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),
1756
+ 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),
1762
1757
  contentType: "application/json",
1763
1758
  requestType: "json",
1764
- body: serializers.CollectionItem.jsonOrThrow(request, {
1759
+ body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
1765
1760
  unrecognizedObjectKeys: "passthrough",
1766
1761
  allowUnrecognizedUnionMembers: true,
1767
1762
  allowUnrecognizedEnumValues: true,
@@ -1864,7 +1859,7 @@ class Items {
1864
1859
  const _response = yield core.fetcher({
1865
1860
  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)}/items/publish`),
1866
1861
  method: "POST",
1867
- 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),
1862
+ 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),
1868
1863
  contentType: "application/json",
1869
1864
  requestType: "json",
1870
1865
  body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
@@ -57,5 +57,5 @@ export interface CreateBulkCollectionItemRequestBody {
57
57
  isArchived?: boolean;
58
58
  /** Indicates whether the item is in draft state. */
59
59
  isDraft?: boolean;
60
- fieldData?: Webflow.collections.CreateBulkCollectionItemRequestBodyFieldData;
60
+ fieldData: Webflow.collections.CreateBulkCollectionItemRequestBodyFieldData;
61
61
  }
@@ -2,4 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Webflow from "../../../../../index";
5
- export declare type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataName | Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[];
5
+ export declare type CreateBulkCollectionItemRequestBodyFieldData = Webflow.collections.SingleCmsItem
6
+ /**
7
+ * A list of CMS items to create */
8
+ | Webflow.collections.CreateBulkCollectionItemRequestBodyFieldDataItem[];
@@ -1,6 +1,9 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ /**
5
+ * A single CMS item to create
6
+ */
4
7
  export interface CreateBulkCollectionItemRequestBodyFieldDataItem {
5
8
  /** The name of the item. */
6
9
  name: string;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Webflow from "../../../../../index";
5
- export declare type ItemsCreateItemLiveRequest = Webflow.CollectionItem | Webflow.collections.ItemsCreateItemLiveRequestItems;
5
+ export declare type ItemsCreateItemLiveRequest = Webflow.CollectionItem | Webflow.collections.MultipleLiveItems;
@@ -2,4 +2,4 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Webflow from "../../../../../index";
5
- export declare type ItemsCreateItemRequest = Webflow.CollectionItem | Webflow.collections.ItemsCreateItemRequestItems;
5
+ export declare type ItemsCreateItemRequest = Webflow.CollectionItemPostSingle | Webflow.collections.MultipleItems;
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Webflow from "../../../../../index";
5
- export interface ItemsCreateItemRequestItems {
5
+ export interface MultipleItems {
6
6
  /** An array of items to create */
7
- items?: Webflow.CollectionItem[];
7
+ items?: Webflow.CollectionItemPostSingle[];
8
8
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,7 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  import * as Webflow from "../../../../../index";
5
- export interface ItemsCreateItemLiveRequestItems {
5
+ export interface MultipleLiveItems {
6
6
  /** List of collection items to create */
7
7
  items?: Webflow.CollectionItem[];
8
8
  }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface CreateBulkCollectionItemRequestBodyFieldDataName {
4
+ export interface SingleCmsItem {
5
5
  /** The name of the item. */
6
6
  name: string;
7
7
  /**
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,14 @@
1
1
  export * from "./ItemsListItemsRequestSortBy";
2
2
  export * from "./ItemsListItemsRequestSortOrder";
3
- export * from "./ItemsCreateItemRequestItems";
3
+ export * from "./MultipleItems";
4
4
  export * from "./ItemsCreateItemRequest";
5
5
  export * from "./ItemsDeleteItemsRequestItemsItem";
6
6
  export * from "./ItemsListItemsLiveRequestSortBy";
7
7
  export * from "./ItemsListItemsLiveRequestSortOrder";
8
- export * from "./ItemsCreateItemLiveRequestItems";
8
+ export * from "./MultipleLiveItems";
9
9
  export * from "./ItemsCreateItemLiveRequest";
10
10
  export * from "./ItemsDeleteItemsLiveRequestItemsItem";
11
- export * from "./CreateBulkCollectionItemRequestBodyFieldDataName";
11
+ export * from "./SingleCmsItem";
12
12
  export * from "./CreateBulkCollectionItemRequestBodyFieldDataItem";
13
13
  export * from "./CreateBulkCollectionItemRequestBodyFieldData";
14
14
  export * from "./ItemsPublishItemResponse";
@@ -16,15 +16,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./ItemsListItemsRequestSortBy"), exports);
18
18
  __exportStar(require("./ItemsListItemsRequestSortOrder"), exports);
19
- __exportStar(require("./ItemsCreateItemRequestItems"), exports);
19
+ __exportStar(require("./MultipleItems"), exports);
20
20
  __exportStar(require("./ItemsCreateItemRequest"), exports);
21
21
  __exportStar(require("./ItemsDeleteItemsRequestItemsItem"), exports);
22
22
  __exportStar(require("./ItemsListItemsLiveRequestSortBy"), exports);
23
23
  __exportStar(require("./ItemsListItemsLiveRequestSortOrder"), exports);
24
- __exportStar(require("./ItemsCreateItemLiveRequestItems"), exports);
24
+ __exportStar(require("./MultipleLiveItems"), exports);
25
25
  __exportStar(require("./ItemsCreateItemLiveRequest"), exports);
26
26
  __exportStar(require("./ItemsDeleteItemsLiveRequestItemsItem"), exports);
27
- __exportStar(require("./CreateBulkCollectionItemRequestBodyFieldDataName"), exports);
27
+ __exportStar(require("./SingleCmsItem"), exports);
28
28
  __exportStar(require("./CreateBulkCollectionItemRequestBodyFieldDataItem"), exports);
29
29
  __exportStar(require("./CreateBulkCollectionItemRequestBodyFieldData"), exports);
30
30
  __exportStar(require("./ItemsPublishItemResponse"), exports);
@@ -0,0 +1,176 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as environments from "../../../../environments";
5
+ import * as core from "../../../../core";
6
+ import * as Webflow from "../../../index";
7
+ export declare namespace Components {
8
+ interface Options {
9
+ environment?: core.Supplier<environments.WebflowEnvironment | string>;
10
+ accessToken: core.Supplier<core.BearerToken>;
11
+ }
12
+ interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
14
+ timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
16
+ maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
19
+ /** Additional headers to include in the request. */
20
+ headers?: Record<string, string>;
21
+ }
22
+ }
23
+ export declare class Components {
24
+ protected readonly _options: Components.Options;
25
+ constructor(_options: Components.Options);
26
+ /**
27
+ * List of all components for a site.
28
+ *
29
+ * Required scope | `components:read`
30
+ *
31
+ * @param {string} siteId - Unique identifier for a Site
32
+ * @param {Webflow.ComponentsListRequest} request
33
+ * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
34
+ *
35
+ * @throws {@link Webflow.BadRequestError}
36
+ * @throws {@link Webflow.UnauthorizedError}
37
+ * @throws {@link Webflow.NotFoundError}
38
+ * @throws {@link Webflow.TooManyRequestsError}
39
+ * @throws {@link Webflow.InternalServerError}
40
+ *
41
+ * @example
42
+ * await client.components.list("580e63e98c9a982ac9b8b741")
43
+ */
44
+ list(siteId: string, request?: Webflow.ComponentsListRequest, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentList>;
45
+ /**
46
+ * Get static content from a component definition. This includes text nodes, image nodes and nested component instances.
47
+ * To retrieve dynamic content set by component properties, use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint.
48
+ *
49
+ * <Note>If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale.</Note>
50
+ *
51
+ * Required scope | `components:read`
52
+ *
53
+ * @param {string} siteId - Unique identifier for a Site
54
+ * @param {string} componentId - Unique identifier for a Component
55
+ * @param {Webflow.ComponentsGetContentRequest} request
56
+ * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
58
+ * @throws {@link Webflow.BadRequestError}
59
+ * @throws {@link Webflow.UnauthorizedError}
60
+ * @throws {@link Webflow.NotFoundError}
61
+ * @throws {@link Webflow.TooManyRequestsError}
62
+ * @throws {@link Webflow.InternalServerError}
63
+ *
64
+ * @example
65
+ * await client.components.getContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
66
+ * localeId: "65427cf400e02b306eaa04a0"
67
+ * })
68
+ */
69
+ getContent(siteId: string, componentId: string, request?: Webflow.ComponentsGetContentRequest, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentDom>;
70
+ /**
71
+ * This endpoint updates content within a component defintion for **secondary locales**. It supports updating up to 1000 nodes in a single request.
72
+ *
73
+ * Before making updates:
74
+ * 1. Use the [get component content](/data/reference/pages-and-components/components/get-content) endpoint to identify available content nodes and their types
75
+ * 2. If your component definition has a component instance nested within it, retrieve the nested component instance's properties that you'll override using the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint
76
+ *
77
+ * <Note>
78
+ * This endpoint is specifically for localizing component definitions. Ensure that the specified `localeId` is a valid **secondary locale** for the site otherwise the request will fail.
79
+ * </Note>
80
+ *
81
+ * Required scope | `components:write`
82
+ *
83
+ * @param {string} siteId - Unique identifier for a Site
84
+ * @param {string} componentId - Unique identifier for a Component
85
+ * @param {Webflow.ComponentDomWrite} request
86
+ * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
87
+ *
88
+ * @throws {@link Webflow.BadRequestError}
89
+ * @throws {@link Webflow.UnauthorizedError}
90
+ * @throws {@link Webflow.ForbiddenError}
91
+ * @throws {@link Webflow.NotFoundError}
92
+ * @throws {@link Webflow.TooManyRequestsError}
93
+ * @throws {@link Webflow.InternalServerError}
94
+ *
95
+ * @example
96
+ * await client.components.updateContent("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
97
+ * localeId: "65427cf400e02b306eaa04a0",
98
+ * nodes: [{
99
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
100
+ * text: "<h1>The Hitchhiker's Guide to the Galaxy</h1>"
101
+ * }, {
102
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad627",
103
+ * text: "<div><h3>Don't Panic!</h3><p>Always know where your towel is.</p></div>"
104
+ * }, {
105
+ * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad629",
106
+ * propertyOverrides: [{
107
+ * propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f0",
108
+ * text: "<div><h1>Time is an <em>illusion</em></h1></div>"
109
+ * }, {
110
+ * propertyId: "7dd14c08-2e96-8d3d-2b19-b5c03642a0f1",
111
+ * text: "Life, the Universe and Everything"
112
+ * }]
113
+ * }]
114
+ * })
115
+ */
116
+ updateContent(siteId: string, componentId: string, request: Webflow.ComponentDomWrite, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentsUpdateContentResponse>;
117
+ /**
118
+ * Get the property default values of a component definition.
119
+ *
120
+ * <Note>If you do not provide a Locale ID in your request, the response will return any properties that can be localized from the Primary locale.</Note>
121
+ *
122
+ * Required scope | `components:read`
123
+ *
124
+ * @param {string} siteId - Unique identifier for a Site
125
+ * @param {string} componentId - Unique identifier for a Component
126
+ * @param {Webflow.ComponentsGetPropertiesRequest} request
127
+ * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
128
+ *
129
+ * @throws {@link Webflow.BadRequestError}
130
+ * @throws {@link Webflow.UnauthorizedError}
131
+ * @throws {@link Webflow.NotFoundError}
132
+ * @throws {@link Webflow.TooManyRequestsError}
133
+ * @throws {@link Webflow.InternalServerError}
134
+ *
135
+ * @example
136
+ * await client.components.getProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
137
+ * localeId: "65427cf400e02b306eaa04a0"
138
+ * })
139
+ */
140
+ getProperties(siteId: string, componentId: string, request?: Webflow.ComponentsGetPropertiesRequest, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentProperties>;
141
+ /**
142
+ * Update the property default values of a component definition in a specificed locale.
143
+ *
144
+ * Before making updates:
145
+ * 1. Use the [get component properties](/data/reference/pages-and-components/components/get-properties) endpoint to identify available properties
146
+ *
147
+ * <Note>The request requires a secondary locale ID. If a locale is missing, the request will not be processed and will result in an error.</Note>
148
+ *
149
+ * Required scope | `components:write`
150
+ *
151
+ * @param {string} siteId - Unique identifier for a Site
152
+ * @param {string} componentId - Unique identifier for a Component
153
+ * @param {Webflow.ComponentPropertiesWrite} request
154
+ * @param {Components.RequestOptions} requestOptions - Request-specific configuration.
155
+ *
156
+ * @throws {@link Webflow.BadRequestError}
157
+ * @throws {@link Webflow.UnauthorizedError}
158
+ * @throws {@link Webflow.NotFoundError}
159
+ * @throws {@link Webflow.TooManyRequestsError}
160
+ * @throws {@link Webflow.InternalServerError}
161
+ *
162
+ * @example
163
+ * await client.components.updateProperties("580e63e98c9a982ac9b8b741", "8505ba55-ef72-629e-f85c-33e4b703d48b", {
164
+ * localeId: "65427cf400e02b306eaa04a0",
165
+ * properties: [{
166
+ * propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
167
+ * text: "The Hitchhiker\u2019s Guide to the Galaxy"
168
+ * }, {
169
+ * propertyId: "a245c12d-995b-55ee-5ec7-aa36a6cad627",
170
+ * text: "<div><h3>Dont Panic!</h3><p>Always know where your towel is.</p></div>"
171
+ * }]
172
+ * })
173
+ */
174
+ updateProperties(siteId: string, componentId: string, request: Webflow.ComponentPropertiesWrite, requestOptions?: Components.RequestOptions): Promise<Webflow.ComponentsUpdatePropertiesResponse>;
175
+ protected _getAuthorizationHeader(): Promise<string>;
176
+ }