webflow-api 3.0.1 → 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 (556) hide show
  1. package/.mock/definition/__package__.yml +526 -221
  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 +168 -35
  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 +6 -4
  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/api/errors/index.d.ts +1 -1
  28. package/api/errors/index.js +1 -1
  29. package/api/resources/accessGroups/client/Client.js +1 -1
  30. package/api/resources/assets/client/Client.d.ts +5 -0
  31. package/api/resources/assets/client/Client.js +13 -8
  32. package/api/resources/collections/client/Client.d.ts +3 -0
  33. package/api/resources/collections/client/Client.js +7 -4
  34. package/api/resources/collections/resources/fields/client/Client.js +3 -3
  35. package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +11 -10
  36. package/api/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  37. package/api/resources/collections/resources/items/client/Client.d.ts +8 -5
  38. package/api/resources/collections/resources/items/client/Client.js +26 -21
  39. package/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  40. package/api/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
  41. package/api/resources/collections/resources/items/types/MultipleLiveItems.d.ts +8 -0
  42. package/api/resources/collections/resources/items/types/index.d.ts +1 -0
  43. package/api/resources/collections/resources/items/types/index.js +1 -0
  44. package/api/resources/components/client/Client.d.ts +176 -0
  45. package/api/resources/components/client/Client.js +670 -0
  46. package/api/resources/components/client/index.d.ts +1 -0
  47. package/api/resources/components/client/index.js +17 -0
  48. package/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
  49. package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
  50. package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
  51. package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
  52. package/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
  53. package/api/resources/components/client/requests/index.d.ts +5 -0
  54. package/api/resources/components/client/requests/index.js +2 -0
  55. package/api/resources/components/index.d.ts +2 -0
  56. package/api/resources/components/index.js +18 -0
  57. package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
  58. package/api/resources/components/types/ComponentDomWriteNodesItem.js +5 -0
  59. package/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
  60. package/api/resources/components/types/ComponentPropertiesWritePropertiesItem.js +5 -0
  61. package/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
  62. package/api/resources/components/types/ComponentsUpdateContentResponse.js +5 -0
  63. package/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
  64. package/api/resources/components/types/ComponentsUpdatePropertiesResponse.js +5 -0
  65. package/api/resources/components/types/index.d.ts +4 -0
  66. package/api/resources/components/types/index.js +20 -0
  67. package/api/resources/ecommerce/client/Client.js +1 -1
  68. package/api/resources/forms/client/Client.d.ts +3 -0
  69. package/api/resources/forms/client/Client.js +8 -5
  70. package/api/resources/index.d.ts +3 -0
  71. package/api/resources/index.js +4 -1
  72. package/api/resources/inventory/client/Client.d.ts +3 -1
  73. package/api/resources/inventory/client/Client.js +5 -3
  74. package/api/resources/orders/client/Client.d.ts +3 -0
  75. package/api/resources/orders/client/Client.js +9 -6
  76. package/api/resources/pages/client/Client.d.ts +26 -10
  77. package/api/resources/pages/client/Client.js +32 -18
  78. package/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
  79. package/api/resources/pages/client/requests/PageDomWrite.js +5 -0
  80. package/api/resources/pages/client/requests/index.d.ts +1 -1
  81. package/api/resources/pages/resources/scripts/client/Client.d.ts +6 -3
  82. package/api/resources/pages/resources/scripts/client/Client.js +11 -6
  83. package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
  84. package/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
  85. package/api/resources/pages/types/index.d.ts +1 -1
  86. package/api/resources/pages/types/index.js +1 -1
  87. package/api/resources/products/client/Client.d.ts +5 -6
  88. package/api/resources/products/client/Client.js +11 -12
  89. package/api/resources/scripts/client/Client.d.ts +3 -3
  90. package/api/resources/scripts/client/Client.js +6 -6
  91. package/api/resources/sites/client/Client.d.ts +70 -0
  92. package/api/resources/sites/client/Client.js +330 -9
  93. package/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
  94. package/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
  95. package/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  96. package/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
  97. package/api/resources/sites/client/requests/index.d.ts +2 -0
  98. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  99. package/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
  100. package/api/resources/sites/resources/index.d.ts +2 -0
  101. package/api/resources/sites/resources/index.js +3 -1
  102. package/api/resources/sites/resources/plans/client/Client.d.ts +45 -0
  103. package/api/resources/sites/resources/plans/client/Client.js +155 -0
  104. package/api/resources/sites/resources/plans/client/index.d.ts +1 -0
  105. package/api/resources/sites/resources/plans/client/index.js +2 -0
  106. package/api/resources/sites/resources/plans/index.d.ts +1 -0
  107. package/api/resources/sites/resources/plans/index.js +17 -0
  108. package/api/resources/sites/resources/redirects/client/Client.d.ts +115 -0
  109. package/api/resources/sites/resources/redirects/client/Client.js +472 -0
  110. package/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
  111. package/api/resources/sites/resources/redirects/client/index.js +2 -0
  112. package/api/resources/sites/resources/redirects/index.d.ts +1 -0
  113. package/api/resources/sites/resources/redirects/index.js +17 -0
  114. package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  115. package/api/resources/sites/resources/scripts/client/Client.js +8 -8
  116. package/api/resources/token/client/Client.d.ts +2 -1
  117. package/api/resources/token/client/Client.js +4 -3
  118. package/api/resources/users/client/Client.d.ts +1 -1
  119. package/api/resources/users/client/Client.js +6 -6
  120. package/api/resources/webhooks/client/Client.d.ts +4 -1
  121. package/api/resources/webhooks/client/Client.js +8 -5
  122. package/api/types/CollectionItem.d.ts +5 -1
  123. package/api/types/CollectionItemPostSingle.d.ts +7 -3
  124. package/api/types/Component.d.ts +18 -0
  125. package/api/types/Component.js +5 -0
  126. package/api/types/ComponentDom.d.ts +13 -0
  127. package/api/types/ComponentDom.js +5 -0
  128. package/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
  129. package/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
  130. package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
  131. package/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
  132. package/api/types/ComponentList.d.ts +11 -0
  133. package/api/types/ComponentList.js +5 -0
  134. package/api/types/ComponentNode.d.ts +15 -0
  135. package/api/types/ComponentNode.js +5 -0
  136. package/api/types/ComponentProperties.d.ts +13 -0
  137. package/api/types/ComponentProperties.js +5 -0
  138. package/api/types/ComponentProperty.d.ts +17 -0
  139. package/api/types/ComponentProperty.js +5 -0
  140. package/api/types/ComponentPropertyType.d.ts +12 -0
  141. package/api/types/ComponentPropertyType.js +11 -0
  142. package/api/types/Dom.d.ts +1 -1
  143. package/api/types/Domain.d.ts +2 -0
  144. package/api/types/Error_.d.ts +1 -1
  145. package/api/types/FieldType.d.ts +10 -10
  146. package/api/types/FieldType.js +9 -9
  147. package/api/types/ImageNode.d.ts +6 -2
  148. package/api/types/ImageNodeImage.d.ts +7 -0
  149. package/api/types/ImageNodeImage.js +5 -0
  150. package/api/types/Node.d.ts +11 -8
  151. package/api/types/{ErrorDetailsItem.d.ts → NotEnterprisePlanWorkspace.d.ts} +1 -1
  152. package/api/types/NotEnterprisePlanWorkspace.js +5 -0
  153. package/api/types/ProductFieldData.d.ts +1 -1
  154. package/api/types/Redirect.d.ts +14 -0
  155. package/api/types/Redirect.js +5 -0
  156. package/api/types/Redirects.d.ts +12 -0
  157. package/api/types/Redirects.js +5 -0
  158. package/api/types/ScriptApply.d.ts +1 -1
  159. package/api/types/SitePlan.d.ts +12 -0
  160. package/api/types/SitePlan.js +5 -0
  161. package/api/types/SitePlanId.d.ts +21 -0
  162. package/api/types/SitePlanId.js +20 -0
  163. package/api/types/SitePlanName.d.ts +15 -0
  164. package/api/types/SitePlanName.js +14 -0
  165. package/api/types/Text.d.ts +9 -0
  166. package/api/types/Text.js +5 -0
  167. package/api/types/TextNode.d.ts +7 -3
  168. package/api/types/TextNodeText.d.ts +9 -0
  169. package/api/types/TextNodeText.js +5 -0
  170. package/api/{resources/pages/types/DomWriteNodesItem.d.ts → types/TextNodeWrite.d.ts} +4 -1
  171. package/api/types/TextNodeWrite.js +5 -0
  172. package/api/types/TriggerType.d.ts +15 -15
  173. package/api/types/UserAccessGroupsItem.d.ts +2 -3
  174. package/api/types/UserAccessGroupsItemType.d.ts +2 -3
  175. package/api/types/index.d.ts +23 -6
  176. package/api/types/index.js +23 -6
  177. package/dist/Client.d.ts +3 -0
  178. package/dist/Client.js +25 -20
  179. package/dist/api/errors/index.d.ts +1 -1
  180. package/dist/api/errors/index.js +1 -1
  181. package/dist/api/resources/accessGroups/client/Client.js +1 -1
  182. package/dist/api/resources/assets/client/Client.d.ts +5 -0
  183. package/dist/api/resources/assets/client/Client.js +13 -8
  184. package/dist/api/resources/collections/client/Client.d.ts +3 -0
  185. package/dist/api/resources/collections/client/Client.js +7 -4
  186. package/dist/api/resources/collections/resources/fields/client/Client.js +3 -3
  187. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +11 -10
  188. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  189. package/dist/api/resources/collections/resources/items/client/Client.d.ts +8 -5
  190. package/dist/api/resources/collections/resources/items/client/Client.js +26 -21
  191. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +1 -1
  192. package/dist/api/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
  193. package/dist/api/resources/collections/resources/items/types/MultipleLiveItems.d.ts +8 -0
  194. package/dist/api/resources/collections/resources/items/types/MultipleLiveItems.js +5 -0
  195. package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -0
  196. package/dist/api/resources/collections/resources/items/types/index.js +1 -0
  197. package/dist/api/resources/components/client/Client.d.ts +176 -0
  198. package/dist/api/resources/components/client/Client.js +670 -0
  199. package/dist/api/resources/components/client/index.d.ts +1 -0
  200. package/dist/api/resources/components/client/index.js +17 -0
  201. package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +34 -0
  202. package/dist/api/resources/components/client/requests/ComponentDomWrite.js +5 -0
  203. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +25 -0
  204. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.js +5 -0
  205. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +28 -0
  206. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.js +5 -0
  207. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +23 -0
  208. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.js +5 -0
  209. package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +17 -0
  210. package/dist/api/resources/components/client/requests/ComponentsListRequest.js +5 -0
  211. package/dist/api/resources/components/client/requests/index.d.ts +5 -0
  212. package/dist/api/resources/components/client/requests/index.js +2 -0
  213. package/dist/api/resources/components/index.d.ts +2 -0
  214. package/dist/api/resources/components/index.js +18 -0
  215. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +5 -0
  216. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.js +5 -0
  217. package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +16 -0
  218. package/dist/api/resources/components/types/ComponentPropertiesWritePropertiesItem.js +5 -0
  219. package/dist/api/resources/components/types/ComponentsUpdateContentResponse.d.ts +7 -0
  220. package/dist/api/resources/components/types/ComponentsUpdateContentResponse.js +5 -0
  221. package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +7 -0
  222. package/dist/api/resources/components/types/ComponentsUpdatePropertiesResponse.js +5 -0
  223. package/dist/api/resources/components/types/index.d.ts +4 -0
  224. package/dist/api/resources/components/types/index.js +20 -0
  225. package/dist/api/resources/ecommerce/client/Client.js +1 -1
  226. package/dist/api/resources/forms/client/Client.d.ts +3 -0
  227. package/dist/api/resources/forms/client/Client.js +8 -5
  228. package/dist/api/resources/index.d.ts +3 -0
  229. package/dist/api/resources/index.js +4 -1
  230. package/dist/api/resources/inventory/client/Client.d.ts +3 -1
  231. package/dist/api/resources/inventory/client/Client.js +5 -3
  232. package/dist/api/resources/orders/client/Client.d.ts +3 -0
  233. package/dist/api/resources/orders/client/Client.js +9 -6
  234. package/dist/api/resources/pages/client/Client.d.ts +26 -10
  235. package/dist/api/resources/pages/client/Client.js +32 -18
  236. package/dist/api/resources/pages/client/requests/PageDomWrite.d.ts +34 -0
  237. package/dist/api/resources/pages/client/requests/PageDomWrite.js +5 -0
  238. package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
  239. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +6 -3
  240. package/dist/api/resources/pages/resources/scripts/client/Client.js +11 -6
  241. package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +5 -0
  242. package/dist/api/resources/pages/types/PageDomWriteNodesItem.js +5 -0
  243. package/dist/api/resources/pages/types/index.d.ts +1 -1
  244. package/dist/api/resources/pages/types/index.js +1 -1
  245. package/dist/api/resources/products/client/Client.d.ts +5 -6
  246. package/dist/api/resources/products/client/Client.js +11 -12
  247. package/dist/api/resources/scripts/client/Client.d.ts +3 -3
  248. package/dist/api/resources/scripts/client/Client.js +6 -6
  249. package/dist/api/resources/sites/client/Client.d.ts +70 -0
  250. package/dist/api/resources/sites/client/Client.js +330 -9
  251. package/dist/api/resources/sites/client/requests/SitesCreateRequest.d.ts +17 -0
  252. package/dist/api/resources/sites/client/requests/SitesCreateRequest.js +5 -0
  253. package/dist/api/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  254. package/dist/api/resources/sites/client/requests/SitesUpdateRequest.js +5 -0
  255. package/dist/api/resources/sites/client/requests/index.d.ts +2 -0
  256. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  257. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +2 -2
  258. package/dist/api/resources/sites/resources/index.d.ts +2 -0
  259. package/dist/api/resources/sites/resources/index.js +3 -1
  260. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +45 -0
  261. package/dist/api/resources/sites/resources/plans/client/Client.js +155 -0
  262. package/dist/api/resources/sites/resources/plans/client/index.d.ts +1 -0
  263. package/dist/api/resources/sites/resources/plans/client/index.js +2 -0
  264. package/dist/api/resources/sites/resources/plans/index.d.ts +1 -0
  265. package/dist/api/resources/sites/resources/plans/index.js +17 -0
  266. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +115 -0
  267. package/dist/api/resources/sites/resources/redirects/client/Client.js +472 -0
  268. package/dist/api/resources/sites/resources/redirects/client/index.d.ts +1 -0
  269. package/dist/api/resources/sites/resources/redirects/client/index.js +2 -0
  270. package/dist/api/resources/sites/resources/redirects/index.d.ts +1 -0
  271. package/dist/api/resources/sites/resources/redirects/index.js +17 -0
  272. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  273. package/dist/api/resources/sites/resources/scripts/client/Client.js +8 -8
  274. package/dist/api/resources/token/client/Client.d.ts +2 -1
  275. package/dist/api/resources/token/client/Client.js +4 -3
  276. package/dist/api/resources/users/client/Client.d.ts +1 -1
  277. package/dist/api/resources/users/client/Client.js +6 -6
  278. package/dist/api/resources/webhooks/client/Client.d.ts +4 -1
  279. package/dist/api/resources/webhooks/client/Client.js +8 -5
  280. package/dist/api/types/CollectionItem.d.ts +5 -1
  281. package/dist/api/types/CollectionItemPostSingle.d.ts +7 -3
  282. package/dist/api/types/Component.d.ts +18 -0
  283. package/dist/api/types/Component.js +5 -0
  284. package/dist/api/types/ComponentDom.d.ts +13 -0
  285. package/dist/api/types/ComponentDom.js +5 -0
  286. package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +13 -0
  287. package/dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js +5 -0
  288. package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +14 -0
  289. package/dist/api/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +5 -0
  290. package/dist/api/types/ComponentList.d.ts +11 -0
  291. package/dist/api/types/ComponentList.js +5 -0
  292. package/dist/api/types/ComponentNode.d.ts +15 -0
  293. package/dist/api/types/ComponentNode.js +5 -0
  294. package/dist/api/types/ComponentProperties.d.ts +13 -0
  295. package/dist/api/types/ComponentProperties.js +5 -0
  296. package/dist/api/types/ComponentProperty.d.ts +17 -0
  297. package/dist/api/types/ComponentProperty.js +5 -0
  298. package/dist/api/types/ComponentPropertyType.d.ts +12 -0
  299. package/dist/api/types/ComponentPropertyType.js +11 -0
  300. package/dist/api/types/Dom.d.ts +1 -1
  301. package/dist/api/types/Domain.d.ts +2 -0
  302. package/dist/api/types/Error_.d.ts +1 -1
  303. package/dist/api/types/FieldType.d.ts +10 -10
  304. package/dist/api/types/FieldType.js +9 -9
  305. package/dist/api/types/ImageNode.d.ts +6 -2
  306. package/dist/api/types/ImageNodeImage.d.ts +7 -0
  307. package/dist/api/types/ImageNodeImage.js +5 -0
  308. package/dist/api/types/Node.d.ts +11 -8
  309. package/dist/api/types/{ErrorDetailsItem.d.ts → NotEnterprisePlanWorkspace.d.ts} +1 -1
  310. package/dist/api/types/NotEnterprisePlanWorkspace.js +5 -0
  311. package/dist/api/types/ProductFieldData.d.ts +1 -1
  312. package/dist/api/types/Redirect.d.ts +14 -0
  313. package/dist/api/types/Redirect.js +5 -0
  314. package/dist/api/types/Redirects.d.ts +12 -0
  315. package/dist/api/types/Redirects.js +5 -0
  316. package/dist/api/types/ScriptApply.d.ts +1 -1
  317. package/dist/api/types/SitePlan.d.ts +12 -0
  318. package/dist/api/types/SitePlan.js +5 -0
  319. package/dist/api/types/SitePlanId.d.ts +21 -0
  320. package/dist/api/types/SitePlanId.js +20 -0
  321. package/dist/api/types/SitePlanName.d.ts +15 -0
  322. package/dist/api/types/SitePlanName.js +14 -0
  323. package/dist/api/types/Text.d.ts +9 -0
  324. package/dist/api/types/Text.js +5 -0
  325. package/dist/api/types/TextNode.d.ts +7 -3
  326. package/dist/api/types/TextNodeText.d.ts +9 -0
  327. package/dist/api/types/TextNodeText.js +5 -0
  328. package/dist/api/{resources/pages/types/DomWriteNodesItem.d.ts → types/TextNodeWrite.d.ts} +4 -1
  329. package/dist/api/types/TextNodeWrite.js +5 -0
  330. package/dist/api/types/TriggerType.d.ts +15 -15
  331. package/dist/api/types/UserAccessGroupsItem.d.ts +2 -3
  332. package/dist/api/types/UserAccessGroupsItemType.d.ts +2 -3
  333. package/dist/api/types/index.d.ts +23 -6
  334. package/dist/api/types/index.js +23 -6
  335. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +1 -1
  336. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  337. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  338. package/dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  339. package/dist/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
  340. package/dist/serialization/resources/collections/resources/items/types/MultipleItems.js +2 -2
  341. package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.d.ts +13 -0
  342. package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +34 -0
  343. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
  344. package/dist/serialization/resources/collections/resources/items/types/index.js +1 -0
  345. package/dist/serialization/resources/components/client/index.d.ts +1 -0
  346. package/dist/serialization/resources/components/client/index.js +17 -0
  347. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
  348. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
  349. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
  350. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
  351. package/dist/serialization/resources/components/client/requests/index.d.ts +2 -0
  352. package/dist/serialization/resources/components/client/requests/index.js +7 -0
  353. package/dist/serialization/resources/components/index.d.ts +2 -0
  354. package/dist/serialization/resources/components/index.js +18 -0
  355. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
  356. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
  357. package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
  358. package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
  359. package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
  360. package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
  361. package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
  362. package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
  363. package/dist/serialization/resources/components/types/index.d.ts +4 -0
  364. package/dist/serialization/resources/components/types/index.js +20 -0
  365. package/dist/serialization/resources/index.d.ts +3 -0
  366. package/dist/serialization/resources/index.js +4 -1
  367. package/dist/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
  368. package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
  369. package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -1
  370. package/dist/serialization/resources/pages/client/requests/index.js +3 -3
  371. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
  372. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
  373. package/dist/serialization/resources/pages/types/index.d.ts +1 -1
  374. package/dist/serialization/resources/pages/types/index.js +1 -1
  375. package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
  376. package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
  377. package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  378. package/{serialization/resources/pages/client/requests/DomWrite.js → dist/serialization/resources/sites/client/requests/SitesUpdateRequest.js} +4 -4
  379. package/dist/serialization/resources/sites/client/requests/index.d.ts +2 -0
  380. package/dist/serialization/resources/sites/client/requests/index.js +5 -1
  381. package/dist/serialization/types/Component.d.ts +16 -0
  382. package/dist/serialization/types/Component.js +37 -0
  383. package/dist/serialization/types/ComponentDom.d.ts +16 -0
  384. package/dist/serialization/types/ComponentDom.js +37 -0
  385. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
  386. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
  387. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
  388. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
  389. package/dist/serialization/types/ComponentList.d.ts +15 -0
  390. package/dist/serialization/types/ComponentList.js +36 -0
  391. package/dist/serialization/types/ComponentNode.d.ts +15 -0
  392. package/dist/serialization/types/ComponentNode.js +36 -0
  393. package/dist/serialization/types/ComponentProperties.d.ts +16 -0
  394. package/dist/serialization/types/ComponentProperties.js +37 -0
  395. package/dist/serialization/types/ComponentProperty.d.ts +17 -0
  396. package/dist/serialization/types/ComponentProperty.js +38 -0
  397. package/dist/serialization/types/ComponentPropertyType.d.ts +10 -0
  398. package/dist/serialization/types/{ErrorDetailsItem.js → ComponentPropertyType.js} +2 -5
  399. package/dist/serialization/types/Domain.d.ts +1 -0
  400. package/dist/serialization/types/Domain.js +1 -0
  401. package/dist/serialization/types/Error_.d.ts +1 -2
  402. package/dist/serialization/types/Error_.js +1 -2
  403. package/dist/serialization/types/FieldType.d.ts +1 -1
  404. package/dist/serialization/types/FieldType.js +9 -9
  405. package/dist/serialization/types/ImageNode.d.ts +4 -2
  406. package/dist/serialization/types/ImageNode.js +4 -2
  407. package/dist/serialization/types/ImageNodeImage.d.ts +13 -0
  408. package/{serialization/types/ErrorDetailsItem.js → dist/serialization/types/ImageNodeImage.js} +5 -5
  409. package/dist/serialization/types/Node.d.ts +11 -8
  410. package/dist/serialization/types/Node.js +10 -7
  411. package/dist/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
  412. package/dist/serialization/types/{NodeType.js → NotEnterprisePlanWorkspace.js} +2 -2
  413. package/dist/serialization/types/Redirect.d.ts +14 -0
  414. package/dist/serialization/types/Redirect.js +35 -0
  415. package/dist/serialization/types/Redirects.d.ts +15 -0
  416. package/dist/serialization/types/Redirects.js +36 -0
  417. package/dist/serialization/types/SitePlan.d.ts +16 -0
  418. package/dist/serialization/types/SitePlan.js +37 -0
  419. package/dist/serialization/types/SitePlanId.d.ts +10 -0
  420. package/dist/serialization/types/SitePlanId.js +44 -0
  421. package/dist/serialization/types/SitePlanName.d.ts +10 -0
  422. package/dist/serialization/types/SitePlanName.js +38 -0
  423. package/dist/serialization/types/Text.d.ts +13 -0
  424. package/dist/serialization/types/Text.js +34 -0
  425. package/dist/serialization/types/TextNode.d.ts +4 -2
  426. package/dist/serialization/types/TextNode.js +4 -2
  427. package/dist/serialization/types/TextNodeText.d.ts +13 -0
  428. package/dist/serialization/types/TextNodeText.js +34 -0
  429. package/dist/serialization/types/TextNodeWrite.d.ts +13 -0
  430. package/{serialization/resources/pages/types/DomWriteNodesItem.js → dist/serialization/types/TextNodeWrite.js} +3 -3
  431. package/dist/serialization/types/index.d.ts +23 -6
  432. package/dist/serialization/types/index.js +23 -6
  433. package/dist/version.d.ts +1 -1
  434. package/dist/version.js +1 -1
  435. package/package.json +1 -1
  436. package/reference.md +1844 -778
  437. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +1 -1
  438. package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +10 -9
  439. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts +2 -2
  440. package/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js +2 -2
  441. package/serialization/resources/collections/resources/items/types/MultipleItems.d.ts +2 -2
  442. package/serialization/resources/collections/resources/items/types/MultipleItems.js +2 -2
  443. package/serialization/resources/collections/resources/items/types/MultipleLiveItems.d.ts +13 -0
  444. package/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +34 -0
  445. package/serialization/resources/collections/resources/items/types/index.d.ts +1 -0
  446. package/serialization/resources/collections/resources/items/types/index.js +1 -0
  447. package/serialization/resources/components/client/index.d.ts +1 -0
  448. package/serialization/resources/components/client/index.js +17 -0
  449. package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +13 -0
  450. package/serialization/resources/components/client/requests/ComponentDomWrite.js +34 -0
  451. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +13 -0
  452. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +34 -0
  453. package/serialization/resources/components/client/requests/index.d.ts +2 -0
  454. package/serialization/resources/components/client/requests/index.js +7 -0
  455. package/serialization/resources/components/index.d.ts +2 -0
  456. package/serialization/resources/components/index.js +18 -0
  457. package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +12 -0
  458. package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +33 -0
  459. package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.d.ts +13 -0
  460. package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +34 -0
  461. package/serialization/resources/components/types/ComponentsUpdateContentResponse.d.ts +12 -0
  462. package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +33 -0
  463. package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.d.ts +12 -0
  464. package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +33 -0
  465. package/serialization/resources/components/types/index.d.ts +4 -0
  466. package/serialization/resources/components/types/index.js +20 -0
  467. package/serialization/resources/index.d.ts +3 -0
  468. package/serialization/resources/index.js +4 -1
  469. package/serialization/resources/pages/client/requests/PageDomWrite.d.ts +13 -0
  470. package/serialization/resources/pages/client/requests/PageDomWrite.js +34 -0
  471. package/serialization/resources/pages/client/requests/index.d.ts +1 -1
  472. package/serialization/resources/pages/client/requests/index.js +3 -3
  473. package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +12 -0
  474. package/serialization/resources/pages/types/PageDomWriteNodesItem.js +33 -0
  475. package/serialization/resources/pages/types/index.d.ts +1 -1
  476. package/serialization/resources/pages/types/index.js +1 -1
  477. package/serialization/resources/sites/client/requests/SitesCreateRequest.d.ts +14 -0
  478. package/serialization/resources/sites/client/requests/SitesCreateRequest.js +35 -0
  479. package/serialization/resources/sites/client/requests/SitesUpdateRequest.d.ts +13 -0
  480. package/{dist/serialization/resources/pages/client/requests/DomWrite.js → serialization/resources/sites/client/requests/SitesUpdateRequest.js} +4 -4
  481. package/serialization/resources/sites/client/requests/index.d.ts +2 -0
  482. package/serialization/resources/sites/client/requests/index.js +5 -1
  483. package/serialization/types/Component.d.ts +16 -0
  484. package/serialization/types/Component.js +37 -0
  485. package/serialization/types/ComponentDom.d.ts +16 -0
  486. package/serialization/types/ComponentDom.js +37 -0
  487. package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts +14 -0
  488. package/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js +35 -0
  489. package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.d.ts +13 -0
  490. package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +34 -0
  491. package/serialization/types/ComponentList.d.ts +15 -0
  492. package/serialization/types/ComponentList.js +36 -0
  493. package/serialization/types/ComponentNode.d.ts +15 -0
  494. package/serialization/types/ComponentNode.js +36 -0
  495. package/serialization/types/ComponentProperties.d.ts +16 -0
  496. package/serialization/types/ComponentProperties.js +37 -0
  497. package/serialization/types/ComponentProperty.d.ts +17 -0
  498. package/serialization/types/ComponentProperty.js +38 -0
  499. package/serialization/types/ComponentPropertyType.d.ts +10 -0
  500. package/serialization/types/ComponentPropertyType.js +31 -0
  501. package/serialization/types/Domain.d.ts +1 -0
  502. package/serialization/types/Domain.js +1 -0
  503. package/serialization/types/Error_.d.ts +1 -2
  504. package/serialization/types/Error_.js +1 -2
  505. package/serialization/types/FieldType.d.ts +1 -1
  506. package/serialization/types/FieldType.js +9 -9
  507. package/serialization/types/ImageNode.d.ts +4 -2
  508. package/serialization/types/ImageNode.js +4 -2
  509. package/serialization/types/ImageNodeImage.d.ts +13 -0
  510. package/serialization/types/ImageNodeImage.js +34 -0
  511. package/serialization/types/Node.d.ts +11 -8
  512. package/serialization/types/Node.js +10 -7
  513. package/serialization/types/NotEnterprisePlanWorkspace.d.ts +10 -0
  514. package/serialization/types/{NodeType.js → NotEnterprisePlanWorkspace.js} +2 -2
  515. package/serialization/types/Redirect.d.ts +14 -0
  516. package/serialization/types/Redirect.js +35 -0
  517. package/serialization/types/Redirects.d.ts +15 -0
  518. package/serialization/types/Redirects.js +36 -0
  519. package/serialization/types/SitePlan.d.ts +16 -0
  520. package/serialization/types/SitePlan.js +37 -0
  521. package/serialization/types/SitePlanId.d.ts +10 -0
  522. package/serialization/types/SitePlanId.js +44 -0
  523. package/serialization/types/SitePlanName.d.ts +10 -0
  524. package/serialization/types/SitePlanName.js +38 -0
  525. package/serialization/types/Text.d.ts +13 -0
  526. package/serialization/types/Text.js +34 -0
  527. package/serialization/types/TextNode.d.ts +4 -2
  528. package/serialization/types/TextNode.js +4 -2
  529. package/serialization/types/TextNodeText.d.ts +13 -0
  530. package/serialization/types/TextNodeText.js +34 -0
  531. package/serialization/types/TextNodeWrite.d.ts +13 -0
  532. package/{dist/serialization/resources/pages/types/DomWriteNodesItem.js → serialization/types/TextNodeWrite.js} +3 -3
  533. package/serialization/types/index.d.ts +23 -6
  534. package/serialization/types/index.js +23 -6
  535. package/version.d.ts +1 -1
  536. package/version.js +1 -1
  537. package/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
  538. package/api/types/NodeType.d.ts +0 -8
  539. package/api/types/NodeType.js +0 -10
  540. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +0 -27
  541. package/dist/api/types/NodeType.d.ts +0 -8
  542. package/dist/api/types/NodeType.js +0 -10
  543. package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
  544. package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
  545. package/dist/serialization/types/ErrorDetailsItem.d.ts +0 -10
  546. package/dist/serialization/types/NodeType.d.ts +0 -10
  547. package/serialization/resources/pages/client/requests/DomWrite.d.ts +0 -13
  548. package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +0 -13
  549. package/serialization/types/ErrorDetailsItem.d.ts +0 -10
  550. package/serialization/types/NodeType.d.ts +0 -10
  551. /package/api/resources/{pages/client/requests/DomWrite.js → collections/resources/items/types/MultipleLiveItems.js} +0 -0
  552. /package/api/resources/{pages/types/DomWriteNodesItem.js → components/client/requests/ComponentDomWrite.js} +0 -0
  553. /package/api/{types/ErrorDetailsItem.js → resources/components/client/requests/ComponentPropertiesWrite.js} +0 -0
  554. /package/{dist/api/resources/pages/client/requests/DomWrite.js → api/resources/components/client/requests/ComponentsGetContentRequest.js} +0 -0
  555. /package/{dist/api/resources/pages/types/DomWriteNodesItem.js → api/resources/components/client/requests/ComponentsGetPropertiesRequest.js} +0 -0
  556. /package/{dist/api/types/ErrorDetailsItem.js → api/resources/components/client/requests/ComponentsListRequest.js} +0 -0
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Webflow from "../index";
5
+ /**
6
+ * Site redirects response
7
+ */
8
+ export interface Redirects {
9
+ /** List of redirects for a given site */
10
+ redirects?: Webflow.Redirect[];
11
+ pagination?: Webflow.Pagination;
12
+ }
@@ -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 });
@@ -7,7 +7,7 @@ export interface ScriptApply {
7
7
  id: string;
8
8
  /** Location of the script, either in the header or footer of the published site */
9
9
  location: Webflow.ScriptApplyLocation;
10
- /** Semantic Version String for the registered script _e.g. 0.0.1_ */
10
+ /** Semantic Version String for the registered script *e.g. 0.0.1* */
11
11
  version: string;
12
12
  /** Developer-specified key/value pairs to be applied as attributes to the script */
13
13
  attributes?: Record<string, unknown>;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ import * as Webflow from "../index";
5
+ export interface SitePlan {
6
+ /** ID of the hosting plan. */
7
+ id?: Webflow.SitePlanId;
8
+ /** Name of the hosting plan. */
9
+ name?: Webflow.SitePlanName;
10
+ /** URL for more information about Webflow hosting plan pricing. */
11
+ pricingInfo?: string;
12
+ }
@@ -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 });
@@ -0,0 +1,21 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * ID of the hosting plan.
6
+ */
7
+ export declare type SitePlanId = "hosting-basic-v3" | "hosting-cms-v3" | "hosting-business-v3" | "hosting-ecommerce-standard-v2" | "hosting-ecommerce-plus-v2" | "hosting-ecommerce-advanced-v2" | "hosting-basic-v4" | "hosting-cms-v4" | "hosting-business-v4" | "hosting-ecommerce-standard-v3" | "hosting-ecommerce-plus-v3" | "hosting-ecommerce-advanced-v3";
8
+ export declare const SitePlanId: {
9
+ readonly HostingBasicV3: "hosting-basic-v3";
10
+ readonly HostingCmsV3: "hosting-cms-v3";
11
+ readonly HostingBusinessV3: "hosting-business-v3";
12
+ readonly HostingEcommerceStandardV2: "hosting-ecommerce-standard-v2";
13
+ readonly HostingEcommercePlusV2: "hosting-ecommerce-plus-v2";
14
+ readonly HostingEcommerceAdvancedV2: "hosting-ecommerce-advanced-v2";
15
+ readonly HostingBasicV4: "hosting-basic-v4";
16
+ readonly HostingCmsV4: "hosting-cms-v4";
17
+ readonly HostingBusinessV4: "hosting-business-v4";
18
+ readonly HostingEcommerceStandardV3: "hosting-ecommerce-standard-v3";
19
+ readonly HostingEcommercePlusV3: "hosting-ecommerce-plus-v3";
20
+ readonly HostingEcommerceAdvancedV3: "hosting-ecommerce-advanced-v3";
21
+ };
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SitePlanId = void 0;
7
+ exports.SitePlanId = {
8
+ HostingBasicV3: "hosting-basic-v3",
9
+ HostingCmsV3: "hosting-cms-v3",
10
+ HostingBusinessV3: "hosting-business-v3",
11
+ HostingEcommerceStandardV2: "hosting-ecommerce-standard-v2",
12
+ HostingEcommercePlusV2: "hosting-ecommerce-plus-v2",
13
+ HostingEcommerceAdvancedV2: "hosting-ecommerce-advanced-v2",
14
+ HostingBasicV4: "hosting-basic-v4",
15
+ HostingCmsV4: "hosting-cms-v4",
16
+ HostingBusinessV4: "hosting-business-v4",
17
+ HostingEcommerceStandardV3: "hosting-ecommerce-standard-v3",
18
+ HostingEcommercePlusV3: "hosting-ecommerce-plus-v3",
19
+ HostingEcommerceAdvancedV3: "hosting-ecommerce-advanced-v3",
20
+ };
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * Name of the hosting plan.
6
+ */
7
+ export declare type SitePlanName = "Basic Hosting" | "CMS Hosting" | "Business Hosting" | "ECommerce Standard Hosting" | "ECommerce Plus Hosting" | "ECommerce Advanced Hosting";
8
+ export declare const SitePlanName: {
9
+ readonly BasicHosting: "Basic Hosting";
10
+ readonly CmsHosting: "CMS Hosting";
11
+ readonly BusinessHosting: "Business Hosting";
12
+ readonly ECommerceStandardHosting: "ECommerce Standard Hosting";
13
+ readonly ECommercePlusHosting: "ECommerce Plus Hosting";
14
+ readonly ECommerceAdvancedHosting: "ECommerce Advanced Hosting";
15
+ };
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.SitePlanName = void 0;
7
+ exports.SitePlanName = {
8
+ BasicHosting: "Basic Hosting",
9
+ CmsHosting: "CMS Hosting",
10
+ BusinessHosting: "Business Hosting",
11
+ ECommerceStandardHosting: "ECommerce Standard Hosting",
12
+ ECommercePlusHosting: "ECommerce Plus Hosting",
13
+ ECommerceAdvancedHosting: "ECommerce Advanced Hosting",
14
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface Text {
5
+ /** The HTML content of the text node. */
6
+ html?: string;
7
+ /** The raw text content of the text node. */
8
+ text?: string;
9
+ }
@@ -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,10 +1,14 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
+ import * as Webflow from "../index";
4
5
  /**
5
- * Represents textual content within the DOM. It contains both the raw text and its HTML representation, allowing for flexibility in rendering and processing. Additional attributes can be associated with the text for styling or other purposes.
6
+ * Represents text content within the DOM. It contains both the raw text and its HTML representation. Additional attributes can be associated with the text for styling or other purposes.
6
7
  */
7
8
  export interface TextNode {
8
- html?: string;
9
- text?: string;
9
+ /** Node UUID */
10
+ id?: string;
11
+ text?: Webflow.TextNodeText;
12
+ /** The custom attributes of the node */
13
+ attributes?: Record<string, string>;
10
14
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface TextNodeText {
5
+ /** The HTML content of the text node. */
6
+ html?: string;
7
+ /** The raw text content of the text node. */
8
+ text?: string;
9
+ }
@@ -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,10 @@
1
1
  /**
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
- export interface DomWriteNodesItem {
4
+ /**
5
+ * Update a text node
6
+ */
7
+ export interface TextNodeWrite {
5
8
  /** Node UUID */
6
9
  nodeId: string;
7
10
  /** HTML content of the node, including the HTML tag. The HTML tags must be the same as what's returned from the Get Content endpoint. */
@@ -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,21 +2,21 @@
2
2
  * This file was auto-generated by Fern from our API Definition.
3
3
  */
4
4
  /**
5
- * - `form_submission` - Sends the [form_submission](#form_submission) event
6
- * - `site_publish` - Sends a [site_publish](#site_publish) event
7
- * - `page_created` - Send the [page_created](#page_created) event
8
- * - `page_metadata_updated` - Sends the [page_metadata_updated](#page_metadata_updated) event
9
- * - `page_deleted` - Sends the [page_deleted](#page_deleted) event
10
- * - `ecomm_new_order` - Sends the new [ecomm_new_order](#ecomm_new_order) event
11
- * - `ecomm_order_changed` - Sends the [ecomm_order_changed](#ecomm_order_changed) event
12
- * - `ecomm_inventory_changed` - Sends the [ecomm_inventory_changed](#ecomm_inventory_changed) event
13
- * - `user_account_added` - Sends the [user_account_added](#user_account_added) event
14
- * - `user_account_updated` - Sends the [user_account_updated](#user_account_updated) event
15
- * - `user_account_deleted` - Sends the [user_account_deleted](#user_account_deleted) event
16
- * - `collection_item_created` - Sends the [collection_item_created](#collection_item_created) event
17
- * - `collection_item_changed` - Sends the [collection_item_changed](#collection_item_changed) event
18
- * - `collection_item_deleted` - Sends the [collection_item_deleted](#collection_item_deleted) event
19
- * - `collection_item_unpublished` - Sends the [collection_item_unpublished](#collection_item_unpublished) event
5
+ * * `form_submission` - Sends the [form_submission](#form_submission) event
6
+ * * `site_publish` - Sends a [site_publish](#site_publish) event
7
+ * * `page_created` - Send the [page_created](#page_created) event
8
+ * * `page_metadata_updated` - Sends the [page_metadata_updated](#page_metadata_updated) event
9
+ * * `page_deleted` - Sends the [page_deleted](#page_deleted) event
10
+ * * `ecomm_new_order` - Sends the new [ecomm_new_order](#ecomm_new_order) event
11
+ * * `ecomm_order_changed` - Sends the [ecomm_order_changed](#ecomm_order_changed) event
12
+ * * `ecomm_inventory_changed` - Sends the [ecomm_inventory_changed](#ecomm_inventory_changed) event
13
+ * * `user_account_added` - Sends the [user_account_added](#user_account_added) event
14
+ * * `user_account_updated` - Sends the [user_account_updated](#user_account_updated) event
15
+ * * `user_account_deleted` - Sends the [user_account_deleted](#user_account_deleted) event
16
+ * * `collection_item_created` - Sends the [collection_item_created](#collection_item_created) event
17
+ * * `collection_item_changed` - Sends the [collection_item_changed](#collection_item_changed) event
18
+ * * `collection_item_deleted` - Sends the [collection_item_deleted](#collection_item_deleted) event
19
+ * * `collection_item_unpublished` - Sends the [collection_item_unpublished](#collection_item_unpublished) event
20
20
  */
21
21
  export declare type TriggerType = "form_submission" | "site_publish" | "page_created" | "page_metadata_updated" | "page_deleted" | "ecomm_new_order" | "ecomm_order_changed" | "ecomm_inventory_changed" | "user_account_added" | "user_account_updated" | "user_account_deleted" | "collection_item_created" | "collection_item_changed" | "collection_item_deleted" | "collection_item_unpublished";
22
22
  export declare const TriggerType: {
@@ -10,9 +10,8 @@ export interface UserAccessGroupsItem {
10
10
  slug?: string;
11
11
  /**
12
12
  * The type of access group based on how it was assigned to the user.
13
- *
14
- * - `admin` - Assigned to the user via API or in the designer
15
- * - `ecommerce` - Assigned to the user via an ecommerce purchase
13
+ * * `admin` - Assigned to the user via API or in the designer
14
+ * * `ecommerce` - Assigned to the user via an ecommerce purchase
16
15
  */
17
16
  type?: Webflow.UserAccessGroupsItemType;
18
17
  }
@@ -3,9 +3,8 @@
3
3
  */
4
4
  /**
5
5
  * The type of access group based on how it was assigned to the user.
6
- *
7
- * - `admin` - Assigned to the user via API or in the designer
8
- * - `ecommerce` - Assigned to the user via an ecommerce purchase
6
+ * * `admin` - Assigned to the user via API or in the designer
7
+ * * `ecommerce` - Assigned to the user via an ecommerce purchase
9
8
  */
10
9
  export declare type UserAccessGroupsItemType = "admin" | "ecommerce";
11
10
  export declare const UserAccessGroupsItemType: {
@@ -1,9 +1,8 @@
1
- export * from "./BadRequestErrorBody";
2
1
  export * from "./ForbiddenErrorBody";
2
+ export * from "./BadRequestErrorBody";
3
3
  export * from "./ConflictErrorBody";
4
4
  export * from "./AuthorizedUser";
5
5
  export * from "./ErrorCode";
6
- export * from "./ErrorDetailsItem";
7
6
  export * from "./Error_";
8
7
  export * from "./Application";
9
8
  export * from "./AuthorizationAuthorizationAuthorizedTo";
@@ -14,18 +13,24 @@ export * from "./Locale";
14
13
  export * from "./Locales";
15
14
  export * from "./SiteDataCollectionType";
16
15
  export * from "./Site";
16
+ export * from "./InvalidScopes";
17
+ export * from "./NotEnterprisePlanWorkspace";
17
18
  export * from "./Sites";
19
+ export * from "./NotEnterprisePlanSite";
18
20
  export * from "./Domains";
19
21
  export * from "./InvalidDomain";
20
22
  export * from "./NoDomains";
23
+ export * from "./Redirect";
24
+ export * from "./Pagination";
25
+ export * from "./Redirects";
26
+ export * from "./SitePlanId";
27
+ export * from "./SitePlanName";
28
+ export * from "./SitePlan";
21
29
  export * from "./SiteActivityLogItemEvent";
22
30
  export * from "./SiteActivityLogItemResourceOperation";
23
31
  export * from "./SiteActivityLogItemUser";
24
32
  export * from "./SiteActivityLogItem";
25
- export * from "./Pagination";
26
33
  export * from "./SiteActivityLogResponse";
27
- export * from "./InvalidScopes";
28
- export * from "./NotEnterprisePlanSite";
29
34
  export * from "./CollectionListArrayItem";
30
35
  export * from "./CollectionList";
31
36
  export * from "./FieldType";
@@ -48,11 +53,23 @@ export * from "./PageSeo";
48
53
  export * from "./PageOpenGraph";
49
54
  export * from "./Page";
50
55
  export * from "./PageList";
56
+ export * from "./TextNodeText";
51
57
  export * from "./TextNode";
58
+ export * from "./ImageNodeImage";
52
59
  export * from "./ImageNode";
53
- export * from "./NodeType";
60
+ export * from "./Text";
61
+ export * from "./ComponentPropertyType";
62
+ export * from "./ComponentProperty";
63
+ export * from "./ComponentNode";
54
64
  export * from "./Node";
55
65
  export * from "./Dom";
66
+ export * from "./TextNodeWrite";
67
+ export * from "./ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem";
68
+ export * from "./ComponentInstanceNodePropertyOverridesWrite";
69
+ export * from "./Component";
70
+ export * from "./ComponentList";
71
+ export * from "./ComponentDom";
72
+ export * from "./ComponentProperties";
56
73
  export * from "./ScriptApplyLocation";
57
74
  export * from "./ScriptApply";
58
75
  export * from "./ScriptApplyList";
@@ -14,12 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./BadRequestErrorBody"), exports);
18
17
  __exportStar(require("./ForbiddenErrorBody"), exports);
18
+ __exportStar(require("./BadRequestErrorBody"), exports);
19
19
  __exportStar(require("./ConflictErrorBody"), exports);
20
20
  __exportStar(require("./AuthorizedUser"), exports);
21
21
  __exportStar(require("./ErrorCode"), exports);
22
- __exportStar(require("./ErrorDetailsItem"), exports);
23
22
  __exportStar(require("./Error_"), exports);
24
23
  __exportStar(require("./Application"), exports);
25
24
  __exportStar(require("./AuthorizationAuthorizationAuthorizedTo"), exports);
@@ -30,18 +29,24 @@ __exportStar(require("./Locale"), exports);
30
29
  __exportStar(require("./Locales"), exports);
31
30
  __exportStar(require("./SiteDataCollectionType"), exports);
32
31
  __exportStar(require("./Site"), exports);
32
+ __exportStar(require("./InvalidScopes"), exports);
33
+ __exportStar(require("./NotEnterprisePlanWorkspace"), exports);
33
34
  __exportStar(require("./Sites"), exports);
35
+ __exportStar(require("./NotEnterprisePlanSite"), exports);
34
36
  __exportStar(require("./Domains"), exports);
35
37
  __exportStar(require("./InvalidDomain"), exports);
36
38
  __exportStar(require("./NoDomains"), exports);
39
+ __exportStar(require("./Redirect"), exports);
40
+ __exportStar(require("./Pagination"), exports);
41
+ __exportStar(require("./Redirects"), exports);
42
+ __exportStar(require("./SitePlanId"), exports);
43
+ __exportStar(require("./SitePlanName"), exports);
44
+ __exportStar(require("./SitePlan"), exports);
37
45
  __exportStar(require("./SiteActivityLogItemEvent"), exports);
38
46
  __exportStar(require("./SiteActivityLogItemResourceOperation"), exports);
39
47
  __exportStar(require("./SiteActivityLogItemUser"), exports);
40
48
  __exportStar(require("./SiteActivityLogItem"), exports);
41
- __exportStar(require("./Pagination"), exports);
42
49
  __exportStar(require("./SiteActivityLogResponse"), exports);
43
- __exportStar(require("./InvalidScopes"), exports);
44
- __exportStar(require("./NotEnterprisePlanSite"), exports);
45
50
  __exportStar(require("./CollectionListArrayItem"), exports);
46
51
  __exportStar(require("./CollectionList"), exports);
47
52
  __exportStar(require("./FieldType"), exports);
@@ -64,11 +69,23 @@ __exportStar(require("./PageSeo"), exports);
64
69
  __exportStar(require("./PageOpenGraph"), exports);
65
70
  __exportStar(require("./Page"), exports);
66
71
  __exportStar(require("./PageList"), exports);
72
+ __exportStar(require("./TextNodeText"), exports);
67
73
  __exportStar(require("./TextNode"), exports);
74
+ __exportStar(require("./ImageNodeImage"), exports);
68
75
  __exportStar(require("./ImageNode"), exports);
69
- __exportStar(require("./NodeType"), exports);
76
+ __exportStar(require("./Text"), exports);
77
+ __exportStar(require("./ComponentPropertyType"), exports);
78
+ __exportStar(require("./ComponentProperty"), exports);
79
+ __exportStar(require("./ComponentNode"), exports);
70
80
  __exportStar(require("./Node"), exports);
71
81
  __exportStar(require("./Dom"), exports);
82
+ __exportStar(require("./TextNodeWrite"), exports);
83
+ __exportStar(require("./ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem"), exports);
84
+ __exportStar(require("./ComponentInstanceNodePropertyOverridesWrite"), exports);
85
+ __exportStar(require("./Component"), exports);
86
+ __exportStar(require("./ComponentList"), exports);
87
+ __exportStar(require("./ComponentDom"), exports);
88
+ __exportStar(require("./ComponentProperties"), exports);
72
89
  __exportStar(require("./ScriptApplyLocation"), exports);
73
90
  __exportStar(require("./ScriptApply"), exports);
74
91
  __exportStar(require("./ScriptApplyList"), exports);
package/dist/Client.d.ts CHANGED
@@ -7,6 +7,7 @@ import { Token } from "./api/resources/token/client/Client";
7
7
  import { Sites } from "./api/resources/sites/client/Client";
8
8
  import { Collections } from "./api/resources/collections/client/Client";
9
9
  import { Pages } from "./api/resources/pages/client/Client";
10
+ import { Components } from "./api/resources/components/client/Client";
10
11
  import { Scripts } from "./api/resources/scripts/client/Client";
11
12
  import { Assets } from "./api/resources/assets/client/Client";
12
13
  import { Webhooks } from "./api/resources/webhooks/client/Client";
@@ -44,6 +45,8 @@ export declare class WebflowClient {
44
45
  get collections(): Collections;
45
46
  protected _pages: Pages | undefined;
46
47
  get pages(): Pages;
48
+ protected _components: Components | undefined;
49
+ get components(): Components;
47
50
  protected _scripts: Scripts | undefined;
48
51
  get scripts(): Scripts;
49
52
  protected _assets: Assets | undefined;
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.1", "User-Agent": "webflow-api/3.0.1", "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