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