webflow-api 2.3.6 → 2.4.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 (346) hide show
  1. package/api/resources/accessGroups/client/Client.d.ts +1 -1
  2. package/api/resources/accessGroups/client/Client.js +6 -4
  3. package/api/resources/assets/client/Client.d.ts +8 -8
  4. package/api/resources/assets/client/Client.js +50 -34
  5. package/api/resources/collections/client/Client.d.ts +5 -5
  6. package/api/resources/collections/client/Client.js +29 -19
  7. package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  8. package/api/resources/collections/resources/fields/client/Client.js +15 -11
  9. package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  10. package/api/resources/collections/resources/items/client/Client.d.ts +17 -17
  11. package/api/resources/collections/resources/items/client/Client.js +101 -55
  12. package/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  13. package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
  14. package/api/resources/collections/resources/items/types/index.d.ts +1 -1
  15. package/api/resources/collections/resources/items/types/index.js +1 -1
  16. package/api/resources/ecommerce/client/Client.d.ts +1 -1
  17. package/api/resources/ecommerce/client/Client.js +6 -4
  18. package/api/resources/forms/client/Client.d.ts +5 -5
  19. package/api/resources/forms/client/Client.js +31 -23
  20. package/api/resources/index.d.ts +3 -2
  21. package/api/resources/index.js +4 -3
  22. package/api/resources/inventory/client/Client.d.ts +3 -3
  23. package/api/resources/inventory/client/Client.js +14 -10
  24. package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
  25. package/api/resources/orders/client/Client.d.ts +6 -6
  26. package/api/resources/orders/client/Client.js +39 -29
  27. package/api/resources/pages/client/Client.d.ts +19 -10
  28. package/api/resources/pages/client/Client.js +44 -25
  29. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
  30. package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  31. package/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
  32. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
  33. package/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
  34. package/api/resources/pages/resources/scripts/client/Client.js +20 -14
  35. package/api/resources/products/client/Client.d.ts +6 -6
  36. package/api/resources/products/client/Client.js +40 -28
  37. package/api/resources/scripts/client/Client.d.ts +3 -3
  38. package/api/resources/scripts/client/Client.js +20 -14
  39. package/api/resources/sites/client/Client.d.ts +4 -4
  40. package/api/resources/sites/client/Client.js +30 -16
  41. package/api/resources/sites/index.d.ts +1 -0
  42. package/api/resources/sites/index.js +1 -0
  43. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  44. package/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
  45. package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
  46. package/api/resources/sites/resources/scripts/client/Client.js +26 -18
  47. package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
  48. package/api/resources/sites/types/index.d.ts +1 -0
  49. package/api/resources/sites/types/index.js +17 -0
  50. package/api/resources/token/client/Client.js +8 -4
  51. package/api/resources/users/client/Client.d.ts +5 -5
  52. package/api/resources/users/client/Client.js +31 -21
  53. package/api/resources/webhooks/client/Client.d.ts +7 -7
  54. package/api/resources/webhooks/client/Client.js +27 -19
  55. package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
  56. package/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
  57. package/api/types/CollectionItemFieldData.d.ts +2 -0
  58. package/api/types/ConflictErrorBody.d.ts +10 -1
  59. package/api/types/DuplicateUserEmail.d.ts +10 -1
  60. package/api/types/MissingScopes.d.ts +10 -1
  61. package/api/types/NotEnterprisePlanSite.d.ts +10 -1
  62. package/api/types/Page.d.ts +5 -1
  63. package/api/types/UserLimitReached.d.ts +10 -1
  64. package/api/types/UsersNotEnabled.d.ts +10 -1
  65. package/api/types/index.d.ts +4 -5
  66. package/api/types/index.js +4 -5
  67. package/core/fetcher/Fetcher.d.ts +4 -1
  68. package/core/fetcher/Fetcher.js +19 -185
  69. package/core/fetcher/createRequestUrl.d.ts +1 -0
  70. package/core/fetcher/createRequestUrl.js +13 -0
  71. package/core/fetcher/getFetchFn.d.ts +4 -0
  72. package/core/fetcher/getFetchFn.js +59 -0
  73. package/core/fetcher/getRequestBody.d.ts +7 -0
  74. package/core/fetcher/getRequestBody.js +23 -0
  75. package/core/fetcher/getResponseBody.d.ts +1 -0
  76. package/core/fetcher/getResponseBody.js +52 -0
  77. package/core/fetcher/makeRequest.d.ts +1 -0
  78. package/core/fetcher/makeRequest.js +42 -0
  79. package/core/fetcher/requestWithRetries.d.ts +1 -0
  80. package/core/fetcher/requestWithRetries.js +32 -0
  81. package/core/fetcher/signals.d.ts +12 -0
  82. package/core/fetcher/signals.js +37 -0
  83. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  84. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  85. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  86. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  87. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  88. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  89. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  90. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  91. package/core/runtime/runtime.d.ts +1 -0
  92. package/core/runtime/runtime.js +1 -0
  93. package/core/schemas/Schema.d.ts +8 -4
  94. package/core/schemas/Schema.js +1 -0
  95. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  96. package/core/schemas/builders/bigint/bigint.js +50 -0
  97. package/core/schemas/builders/bigint/index.d.ts +1 -0
  98. package/core/schemas/builders/bigint/index.js +5 -0
  99. package/core/schemas/builders/index.d.ts +1 -0
  100. package/core/schemas/builders/index.js +1 -0
  101. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  102. package/core/schemas/builders/lazy/lazy.js +8 -19
  103. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  104. package/core/schemas/builders/list/list.js +31 -44
  105. package/core/schemas/builders/object/object.js +90 -111
  106. package/core/schemas/builders/object/types.d.ts +2 -2
  107. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  108. package/core/schemas/builders/record/record.js +49 -60
  109. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  110. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  111. package/core/schemas/builders/set/set.js +6 -15
  112. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  113. package/core/schemas/builders/union/union.js +51 -62
  114. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  115. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  116. package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
  117. package/dist/api/resources/accessGroups/client/Client.js +6 -4
  118. package/dist/api/resources/assets/client/Client.d.ts +8 -8
  119. package/dist/api/resources/assets/client/Client.js +50 -34
  120. package/dist/api/resources/collections/client/Client.d.ts +5 -5
  121. package/dist/api/resources/collections/client/Client.js +29 -19
  122. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  123. package/dist/api/resources/collections/resources/fields/client/Client.js +15 -11
  124. package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  125. package/dist/api/resources/collections/resources/items/client/Client.d.ts +17 -17
  126. package/dist/api/resources/collections/resources/items/client/Client.js +101 -55
  127. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  128. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
  129. package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
  130. package/dist/api/resources/collections/resources/items/types/index.js +1 -1
  131. package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
  132. package/dist/api/resources/ecommerce/client/Client.js +6 -4
  133. package/dist/api/resources/forms/client/Client.d.ts +5 -5
  134. package/dist/api/resources/forms/client/Client.js +31 -23
  135. package/dist/api/resources/index.d.ts +3 -2
  136. package/dist/api/resources/index.js +4 -3
  137. package/dist/api/resources/inventory/client/Client.d.ts +3 -3
  138. package/dist/api/resources/inventory/client/Client.js +14 -10
  139. package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
  140. package/dist/api/resources/orders/client/Client.d.ts +6 -6
  141. package/dist/api/resources/orders/client/Client.js +39 -29
  142. package/dist/api/resources/pages/client/Client.d.ts +19 -10
  143. package/dist/api/resources/pages/client/Client.js +44 -25
  144. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
  145. package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  146. package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
  147. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
  148. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
  149. package/dist/api/resources/pages/resources/scripts/client/Client.js +20 -14
  150. package/dist/api/resources/products/client/Client.d.ts +6 -6
  151. package/dist/api/resources/products/client/Client.js +40 -28
  152. package/dist/api/resources/scripts/client/Client.d.ts +3 -3
  153. package/dist/api/resources/scripts/client/Client.js +20 -14
  154. package/dist/api/resources/sites/client/Client.d.ts +4 -4
  155. package/dist/api/resources/sites/client/Client.js +30 -16
  156. package/dist/api/resources/sites/index.d.ts +1 -0
  157. package/dist/api/resources/sites/index.js +1 -0
  158. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  159. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
  160. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
  161. package/dist/api/resources/sites/resources/scripts/client/Client.js +26 -18
  162. package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
  163. package/dist/api/resources/sites/types/index.d.ts +1 -0
  164. package/dist/api/resources/sites/types/index.js +17 -0
  165. package/dist/api/resources/token/client/Client.js +8 -4
  166. package/dist/api/resources/users/client/Client.d.ts +5 -5
  167. package/dist/api/resources/users/client/Client.js +31 -21
  168. package/dist/api/resources/webhooks/client/Client.d.ts +7 -7
  169. package/dist/api/resources/webhooks/client/Client.js +27 -19
  170. package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
  171. package/dist/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
  172. package/dist/api/types/CollectionItemFieldData.d.ts +2 -0
  173. package/dist/api/types/ConflictErrorBody.d.ts +10 -1
  174. package/dist/api/types/DuplicateUserEmail.d.ts +10 -1
  175. package/dist/api/types/MissingScopes.d.ts +10 -1
  176. package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
  177. package/dist/api/types/Page.d.ts +5 -1
  178. package/dist/api/types/UserLimitReached.d.ts +10 -1
  179. package/dist/api/types/UsersNotEnabled.d.ts +10 -1
  180. package/dist/api/types/index.d.ts +4 -5
  181. package/dist/api/types/index.js +4 -5
  182. package/dist/core/fetcher/Fetcher.d.ts +4 -1
  183. package/dist/core/fetcher/Fetcher.js +19 -185
  184. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  185. package/dist/core/fetcher/createRequestUrl.js +13 -0
  186. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  187. package/dist/core/fetcher/getFetchFn.js +59 -0
  188. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  189. package/dist/core/fetcher/getRequestBody.js +23 -0
  190. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  191. package/dist/core/fetcher/getResponseBody.js +52 -0
  192. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  193. package/dist/core/fetcher/makeRequest.js +42 -0
  194. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  195. package/dist/core/fetcher/requestWithRetries.js +32 -0
  196. package/dist/core/fetcher/signals.d.ts +12 -0
  197. package/dist/core/fetcher/signals.js +37 -0
  198. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  199. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  200. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  201. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  202. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  203. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  204. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  205. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  206. package/dist/core/runtime/runtime.d.ts +1 -0
  207. package/dist/core/runtime/runtime.js +1 -0
  208. package/dist/core/schemas/Schema.d.ts +8 -4
  209. package/dist/core/schemas/Schema.js +1 -0
  210. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  211. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  212. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  213. package/dist/core/schemas/builders/bigint/index.js +5 -0
  214. package/dist/core/schemas/builders/index.d.ts +1 -0
  215. package/dist/core/schemas/builders/index.js +1 -0
  216. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  217. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  218. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  219. package/dist/core/schemas/builders/list/list.js +31 -44
  220. package/dist/core/schemas/builders/object/object.js +90 -111
  221. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  222. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  223. package/dist/core/schemas/builders/record/record.js +49 -60
  224. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  225. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  226. package/dist/core/schemas/builders/set/set.js +6 -15
  227. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  228. package/dist/core/schemas/builders/union/union.js +51 -62
  229. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  230. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  231. package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  232. package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  233. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
  234. package/dist/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
  235. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  236. package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
  237. package/dist/serialization/resources/index.d.ts +3 -2
  238. package/dist/serialization/resources/index.js +4 -3
  239. package/dist/serialization/resources/sites/index.d.ts +1 -0
  240. package/dist/serialization/resources/sites/index.js +1 -0
  241. package/dist/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
  242. package/dist/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
  243. package/dist/serialization/resources/sites/types/index.d.ts +1 -0
  244. package/dist/serialization/resources/sites/types/index.js +17 -0
  245. package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
  246. package/{serialization/resources/collections/resources/items/client/requests → dist/serialization/types}/BulkCollectionItem.js +2 -2
  247. package/dist/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
  248. package/dist/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
  249. package/dist/serialization/types/CollectionItemFieldData.d.ts +1 -0
  250. package/dist/serialization/types/ConflictErrorBody.d.ts +8 -4
  251. package/dist/serialization/types/ConflictErrorBody.js +7 -3
  252. package/dist/serialization/types/DuplicateUserEmail.d.ts +7 -2
  253. package/dist/serialization/types/DuplicateUserEmail.js +31 -2
  254. package/dist/serialization/types/MissingScopes.d.ts +7 -2
  255. package/dist/serialization/types/MissingScopes.js +31 -2
  256. package/dist/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
  257. package/dist/serialization/types/NotEnterprisePlanSite.js +31 -2
  258. package/dist/serialization/types/Page.d.ts +3 -1
  259. package/dist/serialization/types/Page.js +3 -1
  260. package/dist/serialization/types/UserLimitReached.d.ts +7 -2
  261. package/dist/serialization/types/UserLimitReached.js +31 -2
  262. package/dist/serialization/types/UsersNotEnabled.d.ts +7 -2
  263. package/dist/serialization/types/UsersNotEnabled.js +31 -2
  264. package/dist/serialization/types/index.d.ts +3 -5
  265. package/dist/serialization/types/index.js +3 -5
  266. package/dist/version.d.ts +1 -0
  267. package/dist/version.js +4 -0
  268. package/dist/wrapper/ItemsClient.d.ts +49 -1
  269. package/dist/wrapper/ItemsClient.js +213 -6
  270. package/package.json +7 -2
  271. package/reference.md +5790 -0
  272. package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  273. package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  274. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
  275. package/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
  276. package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  277. package/serialization/resources/collections/resources/items/types/index.js +1 -1
  278. package/serialization/resources/index.d.ts +3 -2
  279. package/serialization/resources/index.js +4 -3
  280. package/serialization/resources/sites/index.d.ts +1 -0
  281. package/serialization/resources/sites/index.js +1 -0
  282. package/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
  283. package/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
  284. package/serialization/resources/sites/types/index.d.ts +1 -0
  285. package/serialization/resources/sites/types/index.js +17 -0
  286. package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
  287. package/{dist/serialization/resources/collections/resources/items/client/requests → serialization/types}/BulkCollectionItem.js +2 -2
  288. package/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
  289. package/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
  290. package/serialization/types/CollectionItemFieldData.d.ts +1 -0
  291. package/serialization/types/ConflictErrorBody.d.ts +8 -4
  292. package/serialization/types/ConflictErrorBody.js +7 -3
  293. package/serialization/types/DuplicateUserEmail.d.ts +7 -2
  294. package/serialization/types/DuplicateUserEmail.js +31 -2
  295. package/serialization/types/MissingScopes.d.ts +7 -2
  296. package/serialization/types/MissingScopes.js +31 -2
  297. package/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
  298. package/serialization/types/NotEnterprisePlanSite.js +31 -2
  299. package/serialization/types/Page.d.ts +3 -1
  300. package/serialization/types/Page.js +3 -1
  301. package/serialization/types/UserLimitReached.d.ts +7 -2
  302. package/serialization/types/UserLimitReached.js +31 -2
  303. package/serialization/types/UsersNotEnabled.d.ts +7 -2
  304. package/serialization/types/UsersNotEnabled.js +31 -2
  305. package/serialization/types/index.d.ts +3 -5
  306. package/serialization/types/index.js +3 -5
  307. package/version.d.ts +1 -0
  308. package/version.js +4 -0
  309. package/wrapper/ItemsClient.d.ts +49 -1
  310. package/wrapper/ItemsClient.js +213 -6
  311. package/api/types/PageDetails.d.ts +0 -41
  312. package/api/types/PageDetailsOpenGraph.d.ts +0 -16
  313. package/api/types/PageDetailsSeo.d.ts +0 -12
  314. package/dist/api/types/PageDetails.d.ts +0 -41
  315. package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
  316. package/dist/api/types/PageDetailsOpenGraph.js +0 -5
  317. package/dist/api/types/PageDetailsSeo.d.ts +0 -12
  318. package/dist/api/types/PageDetailsSeo.js +0 -5
  319. package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
  320. package/dist/serialization/types/OauthScope.d.ts +0 -10
  321. package/dist/serialization/types/OauthScope.js +0 -54
  322. package/dist/serialization/types/PageDetails.d.ts +0 -29
  323. package/dist/serialization/types/PageDetails.js +0 -50
  324. package/dist/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
  325. package/dist/serialization/types/PageDetailsOpenGraph.js +0 -36
  326. package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
  327. package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
  328. package/serialization/types/OauthScope.d.ts +0 -10
  329. package/serialization/types/OauthScope.js +0 -54
  330. package/serialization/types/PageDetails.d.ts +0 -29
  331. package/serialization/types/PageDetails.js +0 -50
  332. package/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
  333. package/serialization/types/PageDetailsOpenGraph.js +0 -36
  334. package/serialization/types/PageDetailsSeo.d.ts +0 -13
  335. /package/api/resources/collections/resources/items/{client/requests/BulkCollectionItem.js → types/ItemsPublishItemResponse.js} +0 -0
  336. /package/api/resources/{collections/resources/items/types/BulkCollectionItemFieldData.js → sites/types/SitesPublishResponse.js} +0 -0
  337. /package/{dist/api/resources/collections/resources/items/client/requests → api/types}/BulkCollectionItem.js +0 -0
  338. /package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.js +0 -0
  339. /package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
  340. /package/api/types/{OauthScope.js → OAuthScope.js} +0 -0
  341. /package/{api/types/PageDetails.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
  342. /package/{api/types/PageDetailsOpenGraph.js → dist/api/resources/sites/types/SitesPublishResponse.js} +0 -0
  343. /package/{api/types/PageDetailsSeo.js → dist/api/types/BulkCollectionItem.js} +0 -0
  344. /package/dist/api/types/{PageDetails.js → BulkCollectionItemFieldData.js} +0 -0
  345. /package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
  346. /package/dist/api/types/{OauthScope.js → OAuthScope.js} +0 -0
@@ -67,7 +67,7 @@ class Orders {
67
67
  * @throws {@link Webflow.InternalServerError}
68
68
  *
69
69
  * @example
70
- * await client.orders.list("site_id")
70
+ * await client.orders.list("580e63e98c9a982ac9b8b741")
71
71
  */
72
72
  list(siteId, request = {}, requestOptions) {
73
73
  var _a;
@@ -90,18 +90,20 @@ class Orders {
90
90
  Authorization: yield this._getAuthorizationHeader(),
91
91
  "X-Fern-Language": "JavaScript",
92
92
  "X-Fern-SDK-Name": "webflow-api",
93
- "X-Fern-SDK-Version": "2.3.6",
93
+ "X-Fern-SDK-Version": "2.4.0",
94
+ "User-Agent": "webflow-api/2.4.0",
94
95
  "X-Fern-Runtime": core.RUNTIME.type,
95
96
  "X-Fern-Runtime-Version": core.RUNTIME.version,
96
97
  },
97
98
  contentType: "application/json",
98
99
  queryParameters: _queryParams,
100
+ requestType: "json",
99
101
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
100
102
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
101
103
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
102
104
  });
103
105
  if (_response.ok) {
104
- return yield serializers.OrderList.parseOrThrow(_response.body, {
106
+ return serializers.OrderList.parseOrThrow(_response.body, {
105
107
  unrecognizedObjectKeys: "passthrough",
106
108
  allowUnrecognizedUnionMembers: true,
107
109
  allowUnrecognizedEnumValues: true,
@@ -122,7 +124,7 @@ class Orders {
122
124
  case 409:
123
125
  throw new Webflow.ConflictError(_response.error.body);
124
126
  case 429:
125
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
127
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
126
128
  unrecognizedObjectKeys: "passthrough",
127
129
  allowUnrecognizedUnionMembers: true,
128
130
  allowUnrecognizedEnumValues: true,
@@ -171,7 +173,7 @@ class Orders {
171
173
  * @throws {@link Webflow.InternalServerError}
172
174
  *
173
175
  * @example
174
- * await client.orders.get("site_id", "order_id")
176
+ * await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
175
177
  */
176
178
  get(siteId, orderId, requestOptions) {
177
179
  var _a;
@@ -183,17 +185,19 @@ class Orders {
183
185
  Authorization: yield this._getAuthorizationHeader(),
184
186
  "X-Fern-Language": "JavaScript",
185
187
  "X-Fern-SDK-Name": "webflow-api",
186
- "X-Fern-SDK-Version": "2.3.6",
188
+ "X-Fern-SDK-Version": "2.4.0",
189
+ "User-Agent": "webflow-api/2.4.0",
187
190
  "X-Fern-Runtime": core.RUNTIME.type,
188
191
  "X-Fern-Runtime-Version": core.RUNTIME.version,
189
192
  },
190
193
  contentType: "application/json",
194
+ requestType: "json",
191
195
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
192
196
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
193
197
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
194
198
  });
195
199
  if (_response.ok) {
196
- return yield serializers.Order.parseOrThrow(_response.body, {
200
+ return serializers.Order.parseOrThrow(_response.body, {
197
201
  unrecognizedObjectKeys: "passthrough",
198
202
  allowUnrecognizedUnionMembers: true,
199
203
  allowUnrecognizedEnumValues: true,
@@ -214,7 +218,7 @@ class Orders {
214
218
  case 409:
215
219
  throw new Webflow.ConflictError(_response.error.body);
216
220
  case 429:
217
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
221
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
218
222
  unrecognizedObjectKeys: "passthrough",
219
223
  allowUnrecognizedUnionMembers: true,
220
224
  allowUnrecognizedEnumValues: true,
@@ -264,7 +268,7 @@ class Orders {
264
268
  * @throws {@link Webflow.InternalServerError}
265
269
  *
266
270
  * @example
267
- * await client.orders.update("site_id", "order_id")
271
+ * await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
268
272
  */
269
273
  update(siteId, orderId, request = {}, requestOptions) {
270
274
  var _a;
@@ -276,18 +280,20 @@ class Orders {
276
280
  Authorization: yield this._getAuthorizationHeader(),
277
281
  "X-Fern-Language": "JavaScript",
278
282
  "X-Fern-SDK-Name": "webflow-api",
279
- "X-Fern-SDK-Version": "2.3.6",
283
+ "X-Fern-SDK-Version": "2.4.0",
284
+ "User-Agent": "webflow-api/2.4.0",
280
285
  "X-Fern-Runtime": core.RUNTIME.type,
281
286
  "X-Fern-Runtime-Version": core.RUNTIME.version,
282
287
  },
283
288
  contentType: "application/json",
284
- body: yield serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
289
+ requestType: "json",
290
+ body: serializers.OrdersUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
285
291
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
286
292
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
287
293
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
288
294
  });
289
295
  if (_response.ok) {
290
- return yield serializers.Order.parseOrThrow(_response.body, {
296
+ return serializers.Order.parseOrThrow(_response.body, {
291
297
  unrecognizedObjectKeys: "passthrough",
292
298
  allowUnrecognizedUnionMembers: true,
293
299
  allowUnrecognizedEnumValues: true,
@@ -308,7 +314,7 @@ class Orders {
308
314
  case 409:
309
315
  throw new Webflow.ConflictError(_response.error.body);
310
316
  case 429:
311
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
317
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
312
318
  unrecognizedObjectKeys: "passthrough",
313
319
  allowUnrecognizedUnionMembers: true,
314
320
  allowUnrecognizedEnumValues: true,
@@ -358,7 +364,7 @@ class Orders {
358
364
  * @throws {@link Webflow.InternalServerError}
359
365
  *
360
366
  * @example
361
- * await client.orders.updateFulfill("site_id", "order_id")
367
+ * await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
362
368
  */
363
369
  updateFulfill(siteId, orderId, request = {}, requestOptions) {
364
370
  var _a;
@@ -370,20 +376,20 @@ class Orders {
370
376
  Authorization: yield this._getAuthorizationHeader(),
371
377
  "X-Fern-Language": "JavaScript",
372
378
  "X-Fern-SDK-Name": "webflow-api",
373
- "X-Fern-SDK-Version": "2.3.6",
379
+ "X-Fern-SDK-Version": "2.4.0",
380
+ "User-Agent": "webflow-api/2.4.0",
374
381
  "X-Fern-Runtime": core.RUNTIME.type,
375
382
  "X-Fern-Runtime-Version": core.RUNTIME.version,
376
383
  },
377
384
  contentType: "application/json",
378
- body: yield serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, {
379
- unrecognizedObjectKeys: "strip",
380
- }),
385
+ requestType: "json",
386
+ body: serializers.OrdersUpdateFulfillRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
381
387
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
382
388
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
383
389
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
384
390
  });
385
391
  if (_response.ok) {
386
- return yield serializers.Order.parseOrThrow(_response.body, {
392
+ return serializers.Order.parseOrThrow(_response.body, {
387
393
  unrecognizedObjectKeys: "passthrough",
388
394
  allowUnrecognizedUnionMembers: true,
389
395
  allowUnrecognizedEnumValues: true,
@@ -404,7 +410,7 @@ class Orders {
404
410
  case 409:
405
411
  throw new Webflow.ConflictError(_response.error.body);
406
412
  case 429:
407
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
413
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
408
414
  unrecognizedObjectKeys: "passthrough",
409
415
  allowUnrecognizedUnionMembers: true,
410
416
  allowUnrecognizedEnumValues: true,
@@ -453,7 +459,7 @@ class Orders {
453
459
  * @throws {@link Webflow.InternalServerError}
454
460
  *
455
461
  * @example
456
- * await client.orders.updateUnfulfill("site_id", "order_id")
462
+ * await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
457
463
  */
458
464
  updateUnfulfill(siteId, orderId, requestOptions) {
459
465
  var _a;
@@ -465,17 +471,19 @@ class Orders {
465
471
  Authorization: yield this._getAuthorizationHeader(),
466
472
  "X-Fern-Language": "JavaScript",
467
473
  "X-Fern-SDK-Name": "webflow-api",
468
- "X-Fern-SDK-Version": "2.3.6",
474
+ "X-Fern-SDK-Version": "2.4.0",
475
+ "User-Agent": "webflow-api/2.4.0",
469
476
  "X-Fern-Runtime": core.RUNTIME.type,
470
477
  "X-Fern-Runtime-Version": core.RUNTIME.version,
471
478
  },
472
479
  contentType: "application/json",
480
+ requestType: "json",
473
481
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
474
482
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
475
483
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
476
484
  });
477
485
  if (_response.ok) {
478
- return yield serializers.Order.parseOrThrow(_response.body, {
486
+ return serializers.Order.parseOrThrow(_response.body, {
479
487
  unrecognizedObjectKeys: "passthrough",
480
488
  allowUnrecognizedUnionMembers: true,
481
489
  allowUnrecognizedEnumValues: true,
@@ -496,7 +504,7 @@ class Orders {
496
504
  case 409:
497
505
  throw new Webflow.ConflictError(_response.error.body);
498
506
  case 429:
499
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
507
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
500
508
  unrecognizedObjectKeys: "passthrough",
501
509
  allowUnrecognizedUnionMembers: true,
502
510
  allowUnrecognizedEnumValues: true,
@@ -547,7 +555,7 @@ class Orders {
547
555
  * @throws {@link Webflow.InternalServerError}
548
556
  *
549
557
  * @example
550
- * await client.orders.refund("site_id", "order_id")
558
+ * await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
551
559
  */
552
560
  refund(siteId, orderId, request = {}, requestOptions) {
553
561
  var _a;
@@ -559,18 +567,20 @@ class Orders {
559
567
  Authorization: yield this._getAuthorizationHeader(),
560
568
  "X-Fern-Language": "JavaScript",
561
569
  "X-Fern-SDK-Name": "webflow-api",
562
- "X-Fern-SDK-Version": "2.3.6",
570
+ "X-Fern-SDK-Version": "2.4.0",
571
+ "User-Agent": "webflow-api/2.4.0",
563
572
  "X-Fern-Runtime": core.RUNTIME.type,
564
573
  "X-Fern-Runtime-Version": core.RUNTIME.version,
565
574
  },
566
575
  contentType: "application/json",
567
- body: yield serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
576
+ requestType: "json",
577
+ body: serializers.OrdersRefundRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
568
578
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
569
579
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
570
580
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
571
581
  });
572
582
  if (_response.ok) {
573
- return yield serializers.Order.parseOrThrow(_response.body, {
583
+ return serializers.Order.parseOrThrow(_response.body, {
574
584
  unrecognizedObjectKeys: "passthrough",
575
585
  allowUnrecognizedUnionMembers: true,
576
586
  allowUnrecognizedEnumValues: true,
@@ -591,7 +601,7 @@ class Orders {
591
601
  case 409:
592
602
  throw new Webflow.ConflictError(_response.error.body);
593
603
  case 429:
594
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
604
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
595
605
  unrecognizedObjectKeys: "passthrough",
596
606
  allowUnrecognizedUnionMembers: true,
597
607
  allowUnrecognizedEnumValues: true,
@@ -36,7 +36,9 @@ export declare class Pages {
36
36
  * @throws {@link Webflow.InternalServerError}
37
37
  *
38
38
  * @example
39
- * await client.pages.list("site_id")
39
+ * await client.pages.list("580e63e98c9a982ac9b8b741", {
40
+ * locale: "65427cf400e02b306eaa04a0"
41
+ * })
40
42
  */
41
43
  list(siteId: string, request?: Webflow.PagesListRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageList>;
42
44
  /**
@@ -53,9 +55,11 @@ export declare class Pages {
53
55
  * @throws {@link Webflow.InternalServerError}
54
56
  *
55
57
  * @example
56
- * await client.pages.getMetadata("page_id")
58
+ * await client.pages.getMetadata("63c720f9347c2139b248e552", {
59
+ * locale: "65427cf400e02b306eaa04a0"
60
+ * })
57
61
  */
58
- getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageDetails>;
62
+ getMetadata(pageId: string, request?: Webflow.PagesGetMetadataRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
59
63
  /**
60
64
  * Update Page-level metadata, including SEO and Open Graph fields. </br></br> Required scope | `pages:write`
61
65
  *
@@ -70,7 +74,8 @@ export declare class Pages {
70
74
  * @throws {@link Webflow.InternalServerError}
71
75
  *
72
76
  * @example
73
- * await client.pages.updatePageSettings("page_id", {
77
+ * await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
78
+ * locale: "65427cf400e02b306eaa04a0",
74
79
  * body: {
75
80
  * id: "6596da6045e56dee495bcbba",
76
81
  * siteId: "6258612d1ee792848f805dcf",
@@ -78,8 +83,8 @@ export declare class Pages {
78
83
  * slug: "guide-to-the-galaxy",
79
84
  * parentId: "6419db964a9c435aa3af6251",
80
85
  * collectionId: "6390c49774a71f12831a08e3",
81
- * createdOn: new Date("2024-03-11T10:42:00.000Z"),
82
- * lastUpdated: new Date("2024-03-11T10:42:42.000Z"),
86
+ * createdOn: "2024-03-11T10:42:00Z",
87
+ * lastUpdated: "2024-03-11T10:42:42Z",
83
88
  * archived: false,
84
89
  * draft: false,
85
90
  * canBranch: true,
@@ -92,11 +97,13 @@ export declare class Pages {
92
97
  * titleCopied: false,
93
98
  * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
94
99
  * descriptionCopied: false
95
- * }
100
+ * },
101
+ * localeId: "653fd9af6a07fc9cfd7a5e57",
102
+ * publishedPath: "/en-us/guide-to-the-galaxy"
96
103
  * }
97
104
  * })
98
105
  */
99
- updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.PageDetails>;
106
+ updatePageSettings(pageId: string, request: Webflow.UpdatePageSettingsRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Page>;
100
107
  /**
101
108
  * Get static content from a static page. </br> If you do not provide a Locale ID in your request, the response will return any content that can be localized from the Primary locale</br></br> Required scope | `pages:read`
102
109
  *
@@ -112,7 +119,9 @@ export declare class Pages {
112
119
  * @throws {@link Webflow.InternalServerError}
113
120
  *
114
121
  * @example
115
- * await client.pages.getContent("page_id")
122
+ * await client.pages.getContent("63c720f9347c2139b248e552", {
123
+ * locale: "65427cf400e02b306eaa04a0"
124
+ * })
116
125
  */
117
126
  getContent(pageId: string, request?: Webflow.PagesGetContentRequest, requestOptions?: Pages.RequestOptions): Promise<Webflow.Dom>;
118
127
  /**
@@ -134,7 +143,7 @@ export declare class Pages {
134
143
  * @throws {@link Webflow.InternalServerError}
135
144
  *
136
145
  * @example
137
- * await client.pages.updateStaticContent("page_id", {
146
+ * await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
138
147
  * locale: "locale",
139
148
  * nodes: [{
140
149
  * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
@@ -75,7 +75,9 @@ class Pages {
75
75
  * @throws {@link Webflow.InternalServerError}
76
76
  *
77
77
  * @example
78
- * await client.pages.list("site_id")
78
+ * await client.pages.list("580e63e98c9a982ac9b8b741", {
79
+ * locale: "65427cf400e02b306eaa04a0"
80
+ * })
79
81
  */
80
82
  list(siteId, request = {}, requestOptions) {
81
83
  var _a;
@@ -98,18 +100,20 @@ class Pages {
98
100
  Authorization: yield this._getAuthorizationHeader(),
99
101
  "X-Fern-Language": "JavaScript",
100
102
  "X-Fern-SDK-Name": "webflow-api",
101
- "X-Fern-SDK-Version": "2.3.6",
103
+ "X-Fern-SDK-Version": "2.4.0",
104
+ "User-Agent": "webflow-api/2.4.0",
102
105
  "X-Fern-Runtime": core.RUNTIME.type,
103
106
  "X-Fern-Runtime-Version": core.RUNTIME.version,
104
107
  },
105
108
  contentType: "application/json",
106
109
  queryParameters: _queryParams,
110
+ requestType: "json",
107
111
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
108
112
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
109
113
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
114
  });
111
115
  if (_response.ok) {
112
- return yield serializers.PageList.parseOrThrow(_response.body, {
116
+ return serializers.PageList.parseOrThrow(_response.body, {
113
117
  unrecognizedObjectKeys: "passthrough",
114
118
  allowUnrecognizedUnionMembers: true,
115
119
  allowUnrecognizedEnumValues: true,
@@ -126,7 +130,7 @@ class Pages {
126
130
  case 404:
127
131
  throw new Webflow.NotFoundError(_response.error.body);
128
132
  case 429:
129
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
133
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
130
134
  unrecognizedObjectKeys: "passthrough",
131
135
  allowUnrecognizedUnionMembers: true,
132
136
  allowUnrecognizedEnumValues: true,
@@ -171,7 +175,9 @@ class Pages {
171
175
  * @throws {@link Webflow.InternalServerError}
172
176
  *
173
177
  * @example
174
- * await client.pages.getMetadata("page_id")
178
+ * await client.pages.getMetadata("63c720f9347c2139b248e552", {
179
+ * locale: "65427cf400e02b306eaa04a0"
180
+ * })
175
181
  */
176
182
  getMetadata(pageId, request = {}, requestOptions) {
177
183
  var _a;
@@ -188,18 +194,20 @@ class Pages {
188
194
  Authorization: yield this._getAuthorizationHeader(),
189
195
  "X-Fern-Language": "JavaScript",
190
196
  "X-Fern-SDK-Name": "webflow-api",
191
- "X-Fern-SDK-Version": "2.3.6",
197
+ "X-Fern-SDK-Version": "2.4.0",
198
+ "User-Agent": "webflow-api/2.4.0",
192
199
  "X-Fern-Runtime": core.RUNTIME.type,
193
200
  "X-Fern-Runtime-Version": core.RUNTIME.version,
194
201
  },
195
202
  contentType: "application/json",
196
203
  queryParameters: _queryParams,
204
+ requestType: "json",
197
205
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
198
206
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
199
207
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
200
208
  });
201
209
  if (_response.ok) {
202
- return yield serializers.PageDetails.parseOrThrow(_response.body, {
210
+ return serializers.Page.parseOrThrow(_response.body, {
203
211
  unrecognizedObjectKeys: "passthrough",
204
212
  allowUnrecognizedUnionMembers: true,
205
213
  allowUnrecognizedEnumValues: true,
@@ -216,7 +224,7 @@ class Pages {
216
224
  case 404:
217
225
  throw new Webflow.NotFoundError(_response.error.body);
218
226
  case 429:
219
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
227
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
220
228
  unrecognizedObjectKeys: "passthrough",
221
229
  allowUnrecognizedUnionMembers: true,
222
230
  allowUnrecognizedEnumValues: true,
@@ -261,7 +269,8 @@ class Pages {
261
269
  * @throws {@link Webflow.InternalServerError}
262
270
  *
263
271
  * @example
264
- * await client.pages.updatePageSettings("page_id", {
272
+ * await client.pages.updatePageSettings("63c720f9347c2139b248e552", {
273
+ * locale: "65427cf400e02b306eaa04a0",
265
274
  * body: {
266
275
  * id: "6596da6045e56dee495bcbba",
267
276
  * siteId: "6258612d1ee792848f805dcf",
@@ -269,8 +278,8 @@ class Pages {
269
278
  * slug: "guide-to-the-galaxy",
270
279
  * parentId: "6419db964a9c435aa3af6251",
271
280
  * collectionId: "6390c49774a71f12831a08e3",
272
- * createdOn: new Date("2024-03-11T10:42:00.000Z"),
273
- * lastUpdated: new Date("2024-03-11T10:42:42.000Z"),
281
+ * createdOn: "2024-03-11T10:42:00Z",
282
+ * lastUpdated: "2024-03-11T10:42:42Z",
274
283
  * archived: false,
275
284
  * draft: false,
276
285
  * canBranch: true,
@@ -283,7 +292,9 @@ class Pages {
283
292
  * titleCopied: false,
284
293
  * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
285
294
  * descriptionCopied: false
286
- * }
295
+ * },
296
+ * localeId: "653fd9af6a07fc9cfd7a5e57",
297
+ * publishedPath: "/en-us/guide-to-the-galaxy"
287
298
  * }
288
299
  * })
289
300
  */
@@ -302,19 +313,21 @@ class Pages {
302
313
  Authorization: yield this._getAuthorizationHeader(),
303
314
  "X-Fern-Language": "JavaScript",
304
315
  "X-Fern-SDK-Name": "webflow-api",
305
- "X-Fern-SDK-Version": "2.3.6",
316
+ "X-Fern-SDK-Version": "2.4.0",
317
+ "User-Agent": "webflow-api/2.4.0",
306
318
  "X-Fern-Runtime": core.RUNTIME.type,
307
319
  "X-Fern-Runtime-Version": core.RUNTIME.version,
308
320
  },
309
321
  contentType: "application/json",
310
322
  queryParameters: _queryParams,
311
- body: yield serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
323
+ requestType: "json",
324
+ body: serializers.Page.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
312
325
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
313
326
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
314
327
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
315
328
  });
316
329
  if (_response.ok) {
317
- return yield serializers.PageDetails.parseOrThrow(_response.body, {
330
+ return serializers.Page.parseOrThrow(_response.body, {
318
331
  unrecognizedObjectKeys: "passthrough",
319
332
  allowUnrecognizedUnionMembers: true,
320
333
  allowUnrecognizedEnumValues: true,
@@ -331,7 +344,7 @@ class Pages {
331
344
  case 404:
332
345
  throw new Webflow.NotFoundError(_response.error.body);
333
346
  case 429:
334
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
347
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
335
348
  unrecognizedObjectKeys: "passthrough",
336
349
  allowUnrecognizedUnionMembers: true,
337
350
  allowUnrecognizedEnumValues: true,
@@ -377,7 +390,9 @@ class Pages {
377
390
  * @throws {@link Webflow.InternalServerError}
378
391
  *
379
392
  * @example
380
- * await client.pages.getContent("page_id")
393
+ * await client.pages.getContent("63c720f9347c2139b248e552", {
394
+ * locale: "65427cf400e02b306eaa04a0"
395
+ * })
381
396
  */
382
397
  getContent(pageId, request = {}, requestOptions) {
383
398
  var _a;
@@ -400,18 +415,20 @@ class Pages {
400
415
  Authorization: yield this._getAuthorizationHeader(),
401
416
  "X-Fern-Language": "JavaScript",
402
417
  "X-Fern-SDK-Name": "webflow-api",
403
- "X-Fern-SDK-Version": "2.3.6",
418
+ "X-Fern-SDK-Version": "2.4.0",
419
+ "User-Agent": "webflow-api/2.4.0",
404
420
  "X-Fern-Runtime": core.RUNTIME.type,
405
421
  "X-Fern-Runtime-Version": core.RUNTIME.version,
406
422
  },
407
423
  contentType: "application/json",
408
424
  queryParameters: _queryParams,
425
+ requestType: "json",
409
426
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
410
427
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
411
428
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
412
429
  });
413
430
  if (_response.ok) {
414
- return yield serializers.Dom.parseOrThrow(_response.body, {
431
+ return serializers.Dom.parseOrThrow(_response.body, {
415
432
  unrecognizedObjectKeys: "passthrough",
416
433
  allowUnrecognizedUnionMembers: true,
417
434
  allowUnrecognizedEnumValues: true,
@@ -430,7 +447,7 @@ class Pages {
430
447
  case 404:
431
448
  throw new Webflow.NotFoundError(_response.error.body);
432
449
  case 429:
433
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
450
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
434
451
  unrecognizedObjectKeys: "passthrough",
435
452
  allowUnrecognizedUnionMembers: true,
436
453
  allowUnrecognizedEnumValues: true,
@@ -480,7 +497,7 @@ class Pages {
480
497
  * @throws {@link Webflow.InternalServerError}
481
498
  *
482
499
  * @example
483
- * await client.pages.updateStaticContent("page_id", {
500
+ * await client.pages.updateStaticContent("63c720f9347c2139b248e552", {
484
501
  * locale: "locale",
485
502
  * nodes: [{
486
503
  * nodeId: "a245c12d-995b-55ee-5ec7-aa36a6cad623",
@@ -507,19 +524,21 @@ class Pages {
507
524
  Authorization: yield this._getAuthorizationHeader(),
508
525
  "X-Fern-Language": "JavaScript",
509
526
  "X-Fern-SDK-Name": "webflow-api",
510
- "X-Fern-SDK-Version": "2.3.6",
527
+ "X-Fern-SDK-Version": "2.4.0",
528
+ "User-Agent": "webflow-api/2.4.0",
511
529
  "X-Fern-Runtime": core.RUNTIME.type,
512
530
  "X-Fern-Runtime-Version": core.RUNTIME.version,
513
531
  },
514
532
  contentType: "application/json",
515
533
  queryParameters: _queryParams,
516
- body: yield serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
534
+ requestType: "json",
535
+ body: serializers.DomWrite.jsonOrThrow(_body, { unrecognizedObjectKeys: "strip" }),
517
536
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
518
537
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
519
538
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
520
539
  });
521
540
  if (_response.ok) {
522
- return yield serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, {
541
+ return serializers.UpdateStaticContentResponse.parseOrThrow(_response.body, {
523
542
  unrecognizedObjectKeys: "passthrough",
524
543
  allowUnrecognizedUnionMembers: true,
525
544
  allowUnrecognizedEnumValues: true,
@@ -538,7 +557,7 @@ class Pages {
538
557
  case 404:
539
558
  throw new Webflow.NotFoundError(_response.error.body);
540
559
  case 429:
541
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
560
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
542
561
  unrecognizedObjectKeys: "passthrough",
543
562
  allowUnrecognizedUnionMembers: true,
544
563
  allowUnrecognizedEnumValues: true,
@@ -3,7 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * locale: "65427cf400e02b306eaa04a0"
8
+ * }
7
9
  */
8
10
  export interface PagesGetContentRequest {
9
11
  /**
@@ -3,7 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * locale: "65427cf400e02b306eaa04a0"
8
+ * }
7
9
  */
8
10
  export interface PagesGetMetadataRequest {
9
11
  /**
@@ -3,7 +3,9 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * locale: "65427cf400e02b306eaa04a0"
8
+ * }
7
9
  */
8
10
  export interface PagesListRequest {
9
11
  /**
@@ -5,6 +5,7 @@ import * as Webflow from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
+ * locale: "65427cf400e02b306eaa04a0",
8
9
  * body: {
9
10
  * id: "6596da6045e56dee495bcbba",
10
11
  * siteId: "6258612d1ee792848f805dcf",
@@ -12,8 +13,8 @@ import * as Webflow from "../../../../index";
12
13
  * slug: "guide-to-the-galaxy",
13
14
  * parentId: "6419db964a9c435aa3af6251",
14
15
  * collectionId: "6390c49774a71f12831a08e3",
15
- * createdOn: new Date("2024-03-11T10:42:00.000Z"),
16
- * lastUpdated: new Date("2024-03-11T10:42:42.000Z"),
16
+ * createdOn: "2024-03-11T10:42:00Z",
17
+ * lastUpdated: "2024-03-11T10:42:42Z",
17
18
  * archived: false,
18
19
  * draft: false,
19
20
  * canBranch: true,
@@ -26,7 +27,9 @@ import * as Webflow from "../../../../index";
26
27
  * titleCopied: false,
27
28
  * description: "Dive deep into the mysteries of the universe with your guide to everything galactic.",
28
29
  * descriptionCopied: false
29
- * }
30
+ * },
31
+ * localeId: "653fd9af6a07fc9cfd7a5e57",
32
+ * publishedPath: "/en-us/guide-to-the-galaxy"
30
33
  * }
31
34
  * }
32
35
  */