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,472 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by Fern from our API Definition.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
+ return new (P || (P = Promise))(function (resolve, reject) {
31
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
33
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
34
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
35
+ });
36
+ };
37
+ var __importDefault = (this && this.__importDefault) || function (mod) {
38
+ return (mod && mod.__esModule) ? mod : { "default": mod };
39
+ };
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.Redirects = void 0;
42
+ const environments = __importStar(require("../../../../../../environments"));
43
+ const core = __importStar(require("../../../../../../core"));
44
+ const Webflow = __importStar(require("../../../../../index"));
45
+ const url_join_1 = __importDefault(require("url-join"));
46
+ const serializers = __importStar(require("../../../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../../../errors/index"));
48
+ class Redirects {
49
+ constructor(_options) {
50
+ this._options = _options;
51
+ }
52
+ /**
53
+ * Fetch a list of all URL redirect rules configured for a specific site.
54
+ *
55
+ * Use this endpoint to review, audit, or manage the redirection rules that control how traffic is rerouted on your site.
56
+ *
57
+ *
58
+ * Required scope: `sites:read`
59
+ *
60
+ * @param {string} siteId - Unique identifier for a Site
61
+ * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
62
+ *
63
+ * @throws {@link Webflow.BadRequestError}
64
+ * @throws {@link Webflow.UnauthorizedError}
65
+ * @throws {@link Webflow.NotFoundError}
66
+ * @throws {@link Webflow.TooManyRequestsError}
67
+ * @throws {@link Webflow.InternalServerError}
68
+ *
69
+ * @example
70
+ * await client.sites.redirects.list("580e63e98c9a982ac9b8b741")
71
+ */
72
+ list(siteId, requestOptions) {
73
+ var _a;
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const _response = yield core.fetcher({
76
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/redirects`),
77
+ method: "GET",
78
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
79
+ contentType: "application/json",
80
+ requestType: "json",
81
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
82
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
84
+ });
85
+ if (_response.ok) {
86
+ return serializers.Redirects.parseOrThrow(_response.body, {
87
+ unrecognizedObjectKeys: "passthrough",
88
+ allowUnrecognizedUnionMembers: true,
89
+ allowUnrecognizedEnumValues: true,
90
+ skipValidation: true,
91
+ breadcrumbsPrefix: ["response"],
92
+ });
93
+ }
94
+ if (_response.error.reason === "status-code") {
95
+ switch (_response.error.statusCode) {
96
+ case 400:
97
+ throw new Webflow.BadRequestError(_response.error.body);
98
+ case 401:
99
+ throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
100
+ unrecognizedObjectKeys: "passthrough",
101
+ allowUnrecognizedUnionMembers: true,
102
+ allowUnrecognizedEnumValues: true,
103
+ skipValidation: true,
104
+ breadcrumbsPrefix: ["response"],
105
+ }));
106
+ case 404:
107
+ throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
108
+ unrecognizedObjectKeys: "passthrough",
109
+ allowUnrecognizedUnionMembers: true,
110
+ allowUnrecognizedEnumValues: true,
111
+ skipValidation: true,
112
+ breadcrumbsPrefix: ["response"],
113
+ }));
114
+ case 429:
115
+ throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
116
+ unrecognizedObjectKeys: "passthrough",
117
+ allowUnrecognizedUnionMembers: true,
118
+ allowUnrecognizedEnumValues: true,
119
+ skipValidation: true,
120
+ breadcrumbsPrefix: ["response"],
121
+ }));
122
+ case 500:
123
+ throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
124
+ unrecognizedObjectKeys: "passthrough",
125
+ allowUnrecognizedUnionMembers: true,
126
+ allowUnrecognizedEnumValues: true,
127
+ skipValidation: true,
128
+ breadcrumbsPrefix: ["response"],
129
+ }));
130
+ default:
131
+ throw new errors.WebflowError({
132
+ statusCode: _response.error.statusCode,
133
+ body: _response.error.body,
134
+ });
135
+ }
136
+ }
137
+ switch (_response.error.reason) {
138
+ case "non-json":
139
+ throw new errors.WebflowError({
140
+ statusCode: _response.error.statusCode,
141
+ body: _response.error.rawBody,
142
+ });
143
+ case "timeout":
144
+ throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /sites/{site_id}/redirects.");
145
+ case "unknown":
146
+ throw new errors.WebflowError({
147
+ message: _response.error.errorMessage,
148
+ });
149
+ }
150
+ });
151
+ }
152
+ /**
153
+ * Add a new URL redirection rule to a site.
154
+ *
155
+ * This endpoint allows you to define a source path (`fromUrl`) and its corresponding destination path (`toUrl`), which will dictate how traffic is rerouted on your site. This is useful for managing site changes, restructuring URLs, or handling outdated links.
156
+ *
157
+ * Required scope: `sites:write`
158
+ *
159
+ * @param {string} siteId - Unique identifier for a Site
160
+ * @param {Webflow.Redirect} request
161
+ * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
162
+ *
163
+ * @throws {@link Webflow.BadRequestError}
164
+ * @throws {@link Webflow.UnauthorizedError}
165
+ * @throws {@link Webflow.NotFoundError}
166
+ * @throws {@link Webflow.TooManyRequestsError}
167
+ * @throws {@link Webflow.InternalServerError}
168
+ *
169
+ * @example
170
+ * await client.sites.redirects.create("580e63e98c9a982ac9b8b741", {
171
+ * id: "42e1a2b7aa1a13f768a0042a",
172
+ * fromUrl: "/mostly-harmless",
173
+ * toUrl: "/earth"
174
+ * })
175
+ */
176
+ create(siteId, request, requestOptions) {
177
+ var _a;
178
+ return __awaiter(this, void 0, void 0, function* () {
179
+ const _response = yield core.fetcher({
180
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/redirects`),
181
+ method: "POST",
182
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
183
+ contentType: "application/json",
184
+ requestType: "json",
185
+ body: serializers.Redirect.jsonOrThrow(request, {
186
+ unrecognizedObjectKeys: "passthrough",
187
+ allowUnrecognizedUnionMembers: true,
188
+ allowUnrecognizedEnumValues: true,
189
+ }),
190
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
191
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
192
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
193
+ });
194
+ if (_response.ok) {
195
+ return serializers.Redirect.parseOrThrow(_response.body, {
196
+ unrecognizedObjectKeys: "passthrough",
197
+ allowUnrecognizedUnionMembers: true,
198
+ allowUnrecognizedEnumValues: true,
199
+ skipValidation: true,
200
+ breadcrumbsPrefix: ["response"],
201
+ });
202
+ }
203
+ if (_response.error.reason === "status-code") {
204
+ switch (_response.error.statusCode) {
205
+ case 400:
206
+ throw new Webflow.BadRequestError(_response.error.body);
207
+ case 401:
208
+ throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
209
+ unrecognizedObjectKeys: "passthrough",
210
+ allowUnrecognizedUnionMembers: true,
211
+ allowUnrecognizedEnumValues: true,
212
+ skipValidation: true,
213
+ breadcrumbsPrefix: ["response"],
214
+ }));
215
+ case 404:
216
+ throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
217
+ unrecognizedObjectKeys: "passthrough",
218
+ allowUnrecognizedUnionMembers: true,
219
+ allowUnrecognizedEnumValues: true,
220
+ skipValidation: true,
221
+ breadcrumbsPrefix: ["response"],
222
+ }));
223
+ case 429:
224
+ throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
225
+ unrecognizedObjectKeys: "passthrough",
226
+ allowUnrecognizedUnionMembers: true,
227
+ allowUnrecognizedEnumValues: true,
228
+ skipValidation: true,
229
+ breadcrumbsPrefix: ["response"],
230
+ }));
231
+ case 500:
232
+ throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
233
+ unrecognizedObjectKeys: "passthrough",
234
+ allowUnrecognizedUnionMembers: true,
235
+ allowUnrecognizedEnumValues: true,
236
+ skipValidation: true,
237
+ breadcrumbsPrefix: ["response"],
238
+ }));
239
+ default:
240
+ throw new errors.WebflowError({
241
+ statusCode: _response.error.statusCode,
242
+ body: _response.error.body,
243
+ });
244
+ }
245
+ }
246
+ switch (_response.error.reason) {
247
+ case "non-json":
248
+ throw new errors.WebflowError({
249
+ statusCode: _response.error.statusCode,
250
+ body: _response.error.rawBody,
251
+ });
252
+ case "timeout":
253
+ throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /sites/{site_id}/redirects.");
254
+ case "unknown":
255
+ throw new errors.WebflowError({
256
+ message: _response.error.errorMessage,
257
+ });
258
+ }
259
+ });
260
+ }
261
+ /**
262
+ * Remove a URL redirection rule from a site.
263
+ * This is useful for cleaning up outdated or unnecessary redirects, ensuring that your site's routing behavior remains efficient and up-to-date.
264
+ * Required scope: `sites:write`
265
+ *
266
+ * @param {string} siteId - Unique identifier for a Site
267
+ * @param {string} redirectId - Unique identifier site rediect
268
+ * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
269
+ *
270
+ * @throws {@link Webflow.BadRequestError}
271
+ * @throws {@link Webflow.UnauthorizedError}
272
+ * @throws {@link Webflow.NotFoundError}
273
+ * @throws {@link Webflow.TooManyRequestsError}
274
+ * @throws {@link Webflow.InternalServerError}
275
+ *
276
+ * @example
277
+ * await client.sites.redirects.delete("580e63e98c9a982ac9b8b741", "66c4cb9a20cac35ed19500e6")
278
+ */
279
+ delete(siteId, redirectId, requestOptions) {
280
+ var _a;
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ const _response = yield core.fetcher({
283
+ 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)}/redirects/${encodeURIComponent(redirectId)}`),
284
+ method: "DELETE",
285
+ 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),
286
+ contentType: "application/json",
287
+ requestType: "json",
288
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
289
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
290
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
291
+ });
292
+ if (_response.ok) {
293
+ return serializers.Redirects.parseOrThrow(_response.body, {
294
+ unrecognizedObjectKeys: "passthrough",
295
+ allowUnrecognizedUnionMembers: true,
296
+ allowUnrecognizedEnumValues: true,
297
+ skipValidation: true,
298
+ breadcrumbsPrefix: ["response"],
299
+ });
300
+ }
301
+ if (_response.error.reason === "status-code") {
302
+ switch (_response.error.statusCode) {
303
+ case 400:
304
+ throw new Webflow.BadRequestError(_response.error.body);
305
+ case 401:
306
+ throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
307
+ unrecognizedObjectKeys: "passthrough",
308
+ allowUnrecognizedUnionMembers: true,
309
+ allowUnrecognizedEnumValues: true,
310
+ skipValidation: true,
311
+ breadcrumbsPrefix: ["response"],
312
+ }));
313
+ case 404:
314
+ throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
315
+ unrecognizedObjectKeys: "passthrough",
316
+ allowUnrecognizedUnionMembers: true,
317
+ allowUnrecognizedEnumValues: true,
318
+ skipValidation: true,
319
+ breadcrumbsPrefix: ["response"],
320
+ }));
321
+ case 429:
322
+ throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
323
+ unrecognizedObjectKeys: "passthrough",
324
+ allowUnrecognizedUnionMembers: true,
325
+ allowUnrecognizedEnumValues: true,
326
+ skipValidation: true,
327
+ breadcrumbsPrefix: ["response"],
328
+ }));
329
+ case 500:
330
+ throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
331
+ unrecognizedObjectKeys: "passthrough",
332
+ allowUnrecognizedUnionMembers: true,
333
+ allowUnrecognizedEnumValues: true,
334
+ skipValidation: true,
335
+ breadcrumbsPrefix: ["response"],
336
+ }));
337
+ default:
338
+ throw new errors.WebflowError({
339
+ statusCode: _response.error.statusCode,
340
+ body: _response.error.body,
341
+ });
342
+ }
343
+ }
344
+ switch (_response.error.reason) {
345
+ case "non-json":
346
+ throw new errors.WebflowError({
347
+ statusCode: _response.error.statusCode,
348
+ body: _response.error.rawBody,
349
+ });
350
+ case "timeout":
351
+ throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /sites/{site_id}/redirects/{redirect_id}.");
352
+ case "unknown":
353
+ throw new errors.WebflowError({
354
+ message: _response.error.errorMessage,
355
+ });
356
+ }
357
+ });
358
+ }
359
+ /**
360
+ * Update a URL redirection rule from a site.
361
+ * Required scope: `sites:write`
362
+ *
363
+ * @param {string} siteId - Unique identifier for a Site
364
+ * @param {string} redirectId - Unique identifier site rediect
365
+ * @param {Webflow.Redirect} request
366
+ * @param {Redirects.RequestOptions} requestOptions - Request-specific configuration.
367
+ *
368
+ * @throws {@link Webflow.BadRequestError}
369
+ * @throws {@link Webflow.UnauthorizedError}
370
+ * @throws {@link Webflow.NotFoundError}
371
+ * @throws {@link Webflow.TooManyRequestsError}
372
+ * @throws {@link Webflow.InternalServerError}
373
+ *
374
+ * @example
375
+ * await client.sites.redirects.update("580e63e98c9a982ac9b8b741", "66c4cb9a20cac35ed19500e6", {
376
+ * id: "42e1a2b7aa1a13f768a0042a",
377
+ * fromUrl: "/mostly-harmless",
378
+ * toUrl: "/earth"
379
+ * })
380
+ */
381
+ update(siteId, redirectId, request, requestOptions) {
382
+ var _a;
383
+ return __awaiter(this, void 0, void 0, function* () {
384
+ const _response = yield core.fetcher({
385
+ 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)}/redirects/${encodeURIComponent(redirectId)}`),
386
+ method: "PATCH",
387
+ 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),
388
+ contentType: "application/json",
389
+ requestType: "json",
390
+ body: serializers.Redirect.jsonOrThrow(request, {
391
+ unrecognizedObjectKeys: "passthrough",
392
+ allowUnrecognizedUnionMembers: true,
393
+ allowUnrecognizedEnumValues: true,
394
+ }),
395
+ timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
396
+ maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
397
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
398
+ });
399
+ if (_response.ok) {
400
+ return serializers.Redirect.parseOrThrow(_response.body, {
401
+ unrecognizedObjectKeys: "passthrough",
402
+ allowUnrecognizedUnionMembers: true,
403
+ allowUnrecognizedEnumValues: true,
404
+ skipValidation: true,
405
+ breadcrumbsPrefix: ["response"],
406
+ });
407
+ }
408
+ if (_response.error.reason === "status-code") {
409
+ switch (_response.error.statusCode) {
410
+ case 400:
411
+ throw new Webflow.BadRequestError(_response.error.body);
412
+ case 401:
413
+ throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
414
+ unrecognizedObjectKeys: "passthrough",
415
+ allowUnrecognizedUnionMembers: true,
416
+ allowUnrecognizedEnumValues: true,
417
+ skipValidation: true,
418
+ breadcrumbsPrefix: ["response"],
419
+ }));
420
+ case 404:
421
+ throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
422
+ unrecognizedObjectKeys: "passthrough",
423
+ allowUnrecognizedUnionMembers: true,
424
+ allowUnrecognizedEnumValues: true,
425
+ skipValidation: true,
426
+ breadcrumbsPrefix: ["response"],
427
+ }));
428
+ case 429:
429
+ throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
430
+ unrecognizedObjectKeys: "passthrough",
431
+ allowUnrecognizedUnionMembers: true,
432
+ allowUnrecognizedEnumValues: true,
433
+ skipValidation: true,
434
+ breadcrumbsPrefix: ["response"],
435
+ }));
436
+ case 500:
437
+ throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
438
+ unrecognizedObjectKeys: "passthrough",
439
+ allowUnrecognizedUnionMembers: true,
440
+ allowUnrecognizedEnumValues: true,
441
+ skipValidation: true,
442
+ breadcrumbsPrefix: ["response"],
443
+ }));
444
+ default:
445
+ throw new errors.WebflowError({
446
+ statusCode: _response.error.statusCode,
447
+ body: _response.error.body,
448
+ });
449
+ }
450
+ }
451
+ switch (_response.error.reason) {
452
+ case "non-json":
453
+ throw new errors.WebflowError({
454
+ statusCode: _response.error.statusCode,
455
+ body: _response.error.rawBody,
456
+ });
457
+ case "timeout":
458
+ throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /sites/{site_id}/redirects/{redirect_id}.");
459
+ case "unknown":
460
+ throw new errors.WebflowError({
461
+ message: _response.error.errorMessage,
462
+ });
463
+ }
464
+ });
465
+ }
466
+ _getAuthorizationHeader() {
467
+ return __awaiter(this, void 0, void 0, function* () {
468
+ return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
469
+ });
470
+ }
471
+ }
472
+ exports.Redirects = Redirects;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./client";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./client"), exports);
@@ -26,7 +26,7 @@ export declare class Scripts {
26
26
  /**
27
27
  * Get all registered scripts that have been applied to a specific Site.
28
28
  *
29
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
29
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
30
30
  *
31
31
  * Required scope | `custom_code:read`
32
32
  *
@@ -50,7 +50,7 @@ export declare class Scripts {
50
50
  * to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
51
51
  * `custom_code` endpoints.
52
52
  *
53
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
53
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
54
54
  *
55
55
  * Required scope | `custom_code:write`
56
56
  *
@@ -84,7 +84,7 @@ export declare class Scripts {
84
84
  /**
85
85
  * Delete the custom code block that an app created for a Site
86
86
  *
87
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
87
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
88
88
  *
89
89
  * Required scope | `custom_code:write`
90
90
  *
@@ -104,7 +104,7 @@ export declare class Scripts {
104
104
  /**
105
105
  * Get all instances of Custom Code applied to a Site or Pages.
106
106
  *
107
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
107
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
108
108
  *
109
109
  * Required scope | `custom_code:read`
110
110
  *
@@ -52,7 +52,7 @@ class Scripts {
52
52
  /**
53
53
  * Get all registered scripts that have been applied to a specific Site.
54
54
  *
55
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
55
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
56
56
  *
57
57
  * Required scope | `custom_code:read`
58
58
  *
@@ -74,7 +74,7 @@ class Scripts {
74
74
  const _response = yield core.fetcher({
75
75
  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)}/custom_code`),
76
76
  method: "GET",
77
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.0.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),
77
+ headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.0", "User-Agent": "webflow-api/3.1.0", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
78
78
  contentType: "application/json",
79
79
  requestType: "json",
80
80
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -155,7 +155,7 @@ class Scripts {
155
155
  * to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate
156
156
  * `custom_code` endpoints.
157
157
  *
158
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
158
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
159
159
  *
160
160
  * Required scope | `custom_code:write`
161
161
  *
@@ -191,7 +191,7 @@ class Scripts {
191
191
  const _response = yield core.fetcher({
192
192
  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)}/custom_code`),
193
193
  method: "PUT",
194
- 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),
194
+ 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),
195
195
  contentType: "application/json",
196
196
  requestType: "json",
197
197
  body: serializers.ScriptApplyList.jsonOrThrow(request, {
@@ -273,7 +273,7 @@ class Scripts {
273
273
  /**
274
274
  * Delete the custom code block that an app created for a Site
275
275
  *
276
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
276
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
277
277
  *
278
278
  * Required scope | `custom_code:write`
279
279
  *
@@ -295,7 +295,7 @@ class Scripts {
295
295
  const _response = yield core.fetcher({
296
296
  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)}/custom_code`),
297
297
  method: "DELETE",
298
- 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),
298
+ 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),
299
299
  contentType: "application/json",
300
300
  requestType: "json",
301
301
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -366,7 +366,7 @@ class Scripts {
366
366
  /**
367
367
  * Get all instances of Custom Code applied to a Site or Pages.
368
368
  *
369
- * <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote>
369
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
370
370
  *
371
371
  * Required scope | `custom_code:read`
372
372
  *
@@ -397,7 +397,7 @@ class Scripts {
397
397
  const _response = yield core.fetcher({
398
398
  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)}/custom_code/blocks`),
399
399
  method: "GET",
400
- 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),
400
+ 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),
401
401
  contentType: "application/json",
402
402
  queryParameters: _queryParams,
403
403
  requestType: "json",
@@ -39,7 +39,8 @@ export declare class Token {
39
39
  authorizedBy(requestOptions?: Token.RequestOptions): Promise<Webflow.AuthorizedUser>;
40
40
  /**
41
41
  * Information about the authorization token
42
- * <Note>Access to this endpoint requires a bearer token from a []>Data Client App](/data/docs/getting-started-data-clients).</Note>
42
+ *
43
+ * <Note>Access to this endpoint requires a bearer token from a [Data Client App](/data/docs/getting-started-data-clients).</Note>
43
44
  *
44
45
  * @param {Token.RequestOptions} requestOptions - Request-specific configuration.
45
46
  *