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
@@ -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
  */
@@ -34,7 +34,7 @@ export declare class Scripts {
34
34
  * @throws {@link Webflow.InternalServerError}
35
35
  *
36
36
  * @example
37
- * await client.pages.scripts.getCustomCode("page_id")
37
+ * await client.pages.scripts.getCustomCode("63c720f9347c2139b248e552")
38
38
  */
39
39
  getCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.ScriptApplyList>;
40
40
  /**
@@ -51,17 +51,17 @@ export declare class Scripts {
51
51
  * @throws {@link Webflow.InternalServerError}
52
52
  *
53
53
  * @example
54
- * await client.pages.scripts.upsertCustomCode("page_id", {
54
+ * await client.pages.scripts.upsertCustomCode("63c720f9347c2139b248e552", {
55
55
  * scripts: [{
56
56
  * id: "cms_slider",
57
- * location: Webflow.ScriptApplyLocation.Header,
57
+ * location: "header",
58
58
  * version: "1.0.0",
59
59
  * attributes: {
60
60
  * "my-attribute": "some-value"
61
61
  * }
62
62
  * }, {
63
63
  * id: "alert",
64
- * location: Webflow.ScriptApplyLocation.Header,
64
+ * location: "header",
65
65
  * version: "0.0.1"
66
66
  * }]
67
67
  * })
@@ -80,7 +80,7 @@ export declare class Scripts {
80
80
  * @throws {@link Webflow.InternalServerError}
81
81
  *
82
82
  * @example
83
- * await client.pages.scripts.deleteCustomCode("page_id")
83
+ * await client.pages.scripts.deleteCustomCode("63c720f9347c2139b248e552")
84
84
  */
85
85
  deleteCustomCode(pageId: string, requestOptions?: Scripts.RequestOptions): Promise<void>;
86
86
  protected _getAuthorizationHeader(): Promise<string>;
@@ -62,7 +62,7 @@ class Scripts {
62
62
  * @throws {@link Webflow.InternalServerError}
63
63
  *
64
64
  * @example
65
- * await client.pages.scripts.getCustomCode("page_id")
65
+ * await client.pages.scripts.getCustomCode("63c720f9347c2139b248e552")
66
66
  */
67
67
  getCustomCode(pageId, requestOptions) {
68
68
  var _a;
@@ -74,17 +74,19 @@ class Scripts {
74
74
  Authorization: yield this._getAuthorizationHeader(),
75
75
  "X-Fern-Language": "JavaScript",
76
76
  "X-Fern-SDK-Name": "webflow-api",
77
- "X-Fern-SDK-Version": "2.3.5",
77
+ "X-Fern-SDK-Version": "2.4.0",
78
+ "User-Agent": "webflow-api/2.4.0",
78
79
  "X-Fern-Runtime": core.RUNTIME.type,
79
80
  "X-Fern-Runtime-Version": core.RUNTIME.version,
80
81
  },
81
82
  contentType: "application/json",
83
+ requestType: "json",
82
84
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
83
85
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
86
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
85
87
  });
86
88
  if (_response.ok) {
87
- return yield serializers.ScriptApplyList.parseOrThrow(_response.body, {
89
+ return serializers.ScriptApplyList.parseOrThrow(_response.body, {
88
90
  unrecognizedObjectKeys: "passthrough",
89
91
  allowUnrecognizedUnionMembers: true,
90
92
  allowUnrecognizedEnumValues: true,
@@ -101,7 +103,13 @@ class Scripts {
101
103
  case 404:
102
104
  throw new Webflow.NotFoundError(_response.error.body);
103
105
  case 429:
104
- throw new Webflow.TooManyRequestsError(_response.error.body);
106
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
107
+ unrecognizedObjectKeys: "passthrough",
108
+ allowUnrecognizedUnionMembers: true,
109
+ allowUnrecognizedEnumValues: true,
110
+ skipValidation: true,
111
+ breadcrumbsPrefix: ["response"],
112
+ }));
105
113
  case 500:
106
114
  throw new Webflow.InternalServerError(_response.error.body);
107
115
  default:
@@ -140,17 +148,17 @@ class Scripts {
140
148
  * @throws {@link Webflow.InternalServerError}
141
149
  *
142
150
  * @example
143
- * await client.pages.scripts.upsertCustomCode("page_id", {
151
+ * await client.pages.scripts.upsertCustomCode("63c720f9347c2139b248e552", {
144
152
  * scripts: [{
145
153
  * id: "cms_slider",
146
- * location: Webflow.ScriptApplyLocation.Header,
154
+ * location: "header",
147
155
  * version: "1.0.0",
148
156
  * attributes: {
149
157
  * "my-attribute": "some-value"
150
158
  * }
151
159
  * }, {
152
160
  * id: "alert",
153
- * location: Webflow.ScriptApplyLocation.Header,
161
+ * location: "header",
154
162
  * version: "0.0.1"
155
163
  * }]
156
164
  * })
@@ -165,18 +173,20 @@ class Scripts {
165
173
  Authorization: yield this._getAuthorizationHeader(),
166
174
  "X-Fern-Language": "JavaScript",
167
175
  "X-Fern-SDK-Name": "webflow-api",
168
- "X-Fern-SDK-Version": "2.3.5",
176
+ "X-Fern-SDK-Version": "2.4.0",
177
+ "User-Agent": "webflow-api/2.4.0",
169
178
  "X-Fern-Runtime": core.RUNTIME.type,
170
179
  "X-Fern-Runtime-Version": core.RUNTIME.version,
171
180
  },
172
181
  contentType: "application/json",
173
- body: yield serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
182
+ requestType: "json",
183
+ body: serializers.ScriptApplyList.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
174
184
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
175
185
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
176
186
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
177
187
  });
178
188
  if (_response.ok) {
179
- return yield serializers.ScriptApplyList.parseOrThrow(_response.body, {
189
+ return serializers.ScriptApplyList.parseOrThrow(_response.body, {
180
190
  unrecognizedObjectKeys: "passthrough",
181
191
  allowUnrecognizedUnionMembers: true,
182
192
  allowUnrecognizedEnumValues: true,
@@ -193,7 +203,13 @@ class Scripts {
193
203
  case 404:
194
204
  throw new Webflow.NotFoundError(_response.error.body);
195
205
  case 429:
196
- throw new Webflow.TooManyRequestsError(_response.error.body);
206
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
207
+ unrecognizedObjectKeys: "passthrough",
208
+ allowUnrecognizedUnionMembers: true,
209
+ allowUnrecognizedEnumValues: true,
210
+ skipValidation: true,
211
+ breadcrumbsPrefix: ["response"],
212
+ }));
197
213
  case 500:
198
214
  throw new Webflow.InternalServerError(_response.error.body);
199
215
  default:
@@ -231,7 +247,7 @@ class Scripts {
231
247
  * @throws {@link Webflow.InternalServerError}
232
248
  *
233
249
  * @example
234
- * await client.pages.scripts.deleteCustomCode("page_id")
250
+ * await client.pages.scripts.deleteCustomCode("63c720f9347c2139b248e552")
235
251
  */
236
252
  deleteCustomCode(pageId, requestOptions) {
237
253
  var _a;
@@ -243,11 +259,13 @@ class Scripts {
243
259
  Authorization: yield this._getAuthorizationHeader(),
244
260
  "X-Fern-Language": "JavaScript",
245
261
  "X-Fern-SDK-Name": "webflow-api",
246
- "X-Fern-SDK-Version": "2.3.5",
262
+ "X-Fern-SDK-Version": "2.4.0",
263
+ "User-Agent": "webflow-api/2.4.0",
247
264
  "X-Fern-Runtime": core.RUNTIME.type,
248
265
  "X-Fern-Runtime-Version": core.RUNTIME.version,
249
266
  },
250
267
  contentType: "application/json",
268
+ requestType: "json",
251
269
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
252
270
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
253
271
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -264,7 +282,13 @@ class Scripts {
264
282
  case 404:
265
283
  throw new Webflow.NotFoundError(_response.error.body);
266
284
  case 429:
267
- throw new Webflow.TooManyRequestsError(_response.error.body);
285
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
286
+ unrecognizedObjectKeys: "passthrough",
287
+ allowUnrecognizedUnionMembers: true,
288
+ allowUnrecognizedEnumValues: true,
289
+ skipValidation: true,
290
+ breadcrumbsPrefix: ["response"],
291
+ }));
268
292
  case 500:
269
293
  throw new Webflow.InternalServerError(_response.error.body);
270
294
  default:
@@ -39,7 +39,7 @@ export declare class Products {
39
39
  * @throws {@link Webflow.InternalServerError}
40
40
  *
41
41
  * @example
42
- * await client.products.list("site_id")
42
+ * await client.products.list("580e63e98c9a982ac9b8b741")
43
43
  */
44
44
  list(siteId: string, request?: Webflow.ProductsListRequest, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUsList>;
45
45
  /**
@@ -66,7 +66,7 @@ export declare class Products {
66
66
  * @throws {@link Webflow.InternalServerError}
67
67
  *
68
68
  * @example
69
- * await client.products.create("site_id")
69
+ * await client.products.create("580e63e98c9a982ac9b8b741")
70
70
  */
71
71
  create(siteId: string, request?: Webflow.ProductSkuCreate, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
72
72
  /**
@@ -87,7 +87,7 @@ export declare class Products {
87
87
  * @throws {@link Webflow.InternalServerError}
88
88
  *
89
89
  * @example
90
- * await client.products.get("site_id", "product_id")
90
+ * await client.products.get("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
91
91
  */
92
92
  get(siteId: string, productId: string, requestOptions?: Products.RequestOptions): Promise<Webflow.ProductAndSkUs>;
93
93
  /**
@@ -109,7 +109,7 @@ export declare class Products {
109
109
  * @throws {@link Webflow.InternalServerError}
110
110
  *
111
111
  * @example
112
- * await client.products.update("site_id", "product_id")
112
+ * await client.products.update("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
113
113
  */
114
114
  update(siteId: string, productId: string, request?: Webflow.ProductSkuUpdate, requestOptions?: Products.RequestOptions): Promise<Webflow.Product>;
115
115
  /**
@@ -133,7 +133,7 @@ export declare class Products {
133
133
  * @throws {@link Webflow.InternalServerError}
134
134
  *
135
135
  * @example
136
- * await client.products.createSku("site_id", "product_id", {
136
+ * await client.products.createSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", {
137
137
  * skus: [{}]
138
138
  * })
139
139
  */
@@ -158,7 +158,7 @@ export declare class Products {
158
158
  * @throws {@link Webflow.InternalServerError}
159
159
  *
160
160
  * @example
161
- * await client.products.updateSku("site_id", "product_id", "sku_id", {
161
+ * await client.products.updateSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", "5e8518516e147040726cc415", {
162
162
  * sku: {}
163
163
  * })
164
164
  */
@@ -67,7 +67,7 @@ class Products {
67
67
  * @throws {@link Webflow.InternalServerError}
68
68
  *
69
69
  * @example
70
- * await client.products.list("site_id")
70
+ * await client.products.list("580e63e98c9a982ac9b8b741")
71
71
  */
72
72
  list(siteId, request = {}, requestOptions) {
73
73
  var _a;
@@ -87,18 +87,20 @@ class Products {
87
87
  Authorization: yield this._getAuthorizationHeader(),
88
88
  "X-Fern-Language": "JavaScript",
89
89
  "X-Fern-SDK-Name": "webflow-api",
90
- "X-Fern-SDK-Version": "2.3.5",
90
+ "X-Fern-SDK-Version": "2.4.0",
91
+ "User-Agent": "webflow-api/2.4.0",
91
92
  "X-Fern-Runtime": core.RUNTIME.type,
92
93
  "X-Fern-Runtime-Version": core.RUNTIME.version,
93
94
  },
94
95
  contentType: "application/json",
95
96
  queryParameters: _queryParams,
97
+ requestType: "json",
96
98
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
97
99
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
98
100
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
99
101
  });
100
102
  if (_response.ok) {
101
- return yield serializers.ProductAndSkUsList.parseOrThrow(_response.body, {
103
+ return serializers.ProductAndSkUsList.parseOrThrow(_response.body, {
102
104
  unrecognizedObjectKeys: "passthrough",
103
105
  allowUnrecognizedUnionMembers: true,
104
106
  allowUnrecognizedEnumValues: true,
@@ -119,7 +121,13 @@ class Products {
119
121
  case 409:
120
122
  throw new Webflow.ConflictError(_response.error.body);
121
123
  case 429:
122
- throw new Webflow.TooManyRequestsError(_response.error.body);
124
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
125
+ unrecognizedObjectKeys: "passthrough",
126
+ allowUnrecognizedUnionMembers: true,
127
+ allowUnrecognizedEnumValues: true,
128
+ skipValidation: true,
129
+ breadcrumbsPrefix: ["response"],
130
+ }));
123
131
  case 500:
124
132
  throw new Webflow.InternalServerError(_response.error.body);
125
133
  default:
@@ -168,7 +176,7 @@ class Products {
168
176
  * @throws {@link Webflow.InternalServerError}
169
177
  *
170
178
  * @example
171
- * await client.products.create("site_id")
179
+ * await client.products.create("580e63e98c9a982ac9b8b741")
172
180
  */
173
181
  create(siteId, request = {}, requestOptions) {
174
182
  var _a;
@@ -180,18 +188,20 @@ class Products {
180
188
  Authorization: yield this._getAuthorizationHeader(),
181
189
  "X-Fern-Language": "JavaScript",
182
190
  "X-Fern-SDK-Name": "webflow-api",
183
- "X-Fern-SDK-Version": "2.3.5",
191
+ "X-Fern-SDK-Version": "2.4.0",
192
+ "User-Agent": "webflow-api/2.4.0",
184
193
  "X-Fern-Runtime": core.RUNTIME.type,
185
194
  "X-Fern-Runtime-Version": core.RUNTIME.version,
186
195
  },
187
196
  contentType: "application/json",
188
- body: yield serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
197
+ requestType: "json",
198
+ body: serializers.ProductSkuCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
189
199
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
190
200
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
191
201
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
192
202
  });
193
203
  if (_response.ok) {
194
- return yield serializers.ProductAndSkUs.parseOrThrow(_response.body, {
204
+ return serializers.ProductAndSkUs.parseOrThrow(_response.body, {
195
205
  unrecognizedObjectKeys: "passthrough",
196
206
  allowUnrecognizedUnionMembers: true,
197
207
  allowUnrecognizedEnumValues: true,
@@ -212,7 +222,13 @@ class Products {
212
222
  case 409:
213
223
  throw new Webflow.ConflictError(_response.error.body);
214
224
  case 429:
215
- throw new Webflow.TooManyRequestsError(_response.error.body);
225
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
226
+ unrecognizedObjectKeys: "passthrough",
227
+ allowUnrecognizedUnionMembers: true,
228
+ allowUnrecognizedEnumValues: true,
229
+ skipValidation: true,
230
+ breadcrumbsPrefix: ["response"],
231
+ }));
216
232
  case 500:
217
233
  throw new Webflow.InternalServerError(_response.error.body);
218
234
  default:
@@ -255,7 +271,7 @@ class Products {
255
271
  * @throws {@link Webflow.InternalServerError}
256
272
  *
257
273
  * @example
258
- * await client.products.get("site_id", "product_id")
274
+ * await client.products.get("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
259
275
  */
260
276
  get(siteId, productId, requestOptions) {
261
277
  var _a;
@@ -267,17 +283,19 @@ class Products {
267
283
  Authorization: yield this._getAuthorizationHeader(),
268
284
  "X-Fern-Language": "JavaScript",
269
285
  "X-Fern-SDK-Name": "webflow-api",
270
- "X-Fern-SDK-Version": "2.3.5",
286
+ "X-Fern-SDK-Version": "2.4.0",
287
+ "User-Agent": "webflow-api/2.4.0",
271
288
  "X-Fern-Runtime": core.RUNTIME.type,
272
289
  "X-Fern-Runtime-Version": core.RUNTIME.version,
273
290
  },
274
291
  contentType: "application/json",
292
+ requestType: "json",
275
293
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
276
294
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
277
295
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
278
296
  });
279
297
  if (_response.ok) {
280
- return yield serializers.ProductAndSkUs.parseOrThrow(_response.body, {
298
+ return serializers.ProductAndSkUs.parseOrThrow(_response.body, {
281
299
  unrecognizedObjectKeys: "passthrough",
282
300
  allowUnrecognizedUnionMembers: true,
283
301
  allowUnrecognizedEnumValues: true,
@@ -298,7 +316,13 @@ class Products {
298
316
  case 409:
299
317
  throw new Webflow.ConflictError(_response.error.body);
300
318
  case 429:
301
- throw new Webflow.TooManyRequestsError(_response.error.body);
319
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
320
+ unrecognizedObjectKeys: "passthrough",
321
+ allowUnrecognizedUnionMembers: true,
322
+ allowUnrecognizedEnumValues: true,
323
+ skipValidation: true,
324
+ breadcrumbsPrefix: ["response"],
325
+ }));
302
326
  case 500:
303
327
  throw new Webflow.InternalServerError(_response.error.body);
304
328
  default:
@@ -342,7 +366,7 @@ class Products {
342
366
  * @throws {@link Webflow.InternalServerError}
343
367
  *
344
368
  * @example
345
- * await client.products.update("site_id", "product_id")
369
+ * await client.products.update("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745")
346
370
  */
347
371
  update(siteId, productId, request = {}, requestOptions) {
348
372
  var _a;
@@ -354,18 +378,20 @@ class Products {
354
378
  Authorization: yield this._getAuthorizationHeader(),
355
379
  "X-Fern-Language": "JavaScript",
356
380
  "X-Fern-SDK-Name": "webflow-api",
357
- "X-Fern-SDK-Version": "2.3.5",
381
+ "X-Fern-SDK-Version": "2.4.0",
382
+ "User-Agent": "webflow-api/2.4.0",
358
383
  "X-Fern-Runtime": core.RUNTIME.type,
359
384
  "X-Fern-Runtime-Version": core.RUNTIME.version,
360
385
  },
361
386
  contentType: "application/json",
362
- body: yield serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
387
+ requestType: "json",
388
+ body: serializers.ProductSkuUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
363
389
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
364
390
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
365
391
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
366
392
  });
367
393
  if (_response.ok) {
368
- return yield serializers.Product.parseOrThrow(_response.body, {
394
+ return serializers.Product.parseOrThrow(_response.body, {
369
395
  unrecognizedObjectKeys: "passthrough",
370
396
  allowUnrecognizedUnionMembers: true,
371
397
  allowUnrecognizedEnumValues: true,
@@ -386,7 +412,13 @@ class Products {
386
412
  case 409:
387
413
  throw new Webflow.ConflictError(_response.error.body);
388
414
  case 429:
389
- throw new Webflow.TooManyRequestsError(_response.error.body);
415
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
416
+ unrecognizedObjectKeys: "passthrough",
417
+ allowUnrecognizedUnionMembers: true,
418
+ allowUnrecognizedEnumValues: true,
419
+ skipValidation: true,
420
+ breadcrumbsPrefix: ["response"],
421
+ }));
390
422
  case 500:
391
423
  throw new Webflow.InternalServerError(_response.error.body);
392
424
  default:
@@ -432,7 +464,7 @@ class Products {
432
464
  * @throws {@link Webflow.InternalServerError}
433
465
  *
434
466
  * @example
435
- * await client.products.createSku("site_id", "product_id", {
467
+ * await client.products.createSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", {
436
468
  * skus: [{}]
437
469
  * })
438
470
  */
@@ -446,18 +478,20 @@ class Products {
446
478
  Authorization: yield this._getAuthorizationHeader(),
447
479
  "X-Fern-Language": "JavaScript",
448
480
  "X-Fern-SDK-Name": "webflow-api",
449
- "X-Fern-SDK-Version": "2.3.5",
481
+ "X-Fern-SDK-Version": "2.4.0",
482
+ "User-Agent": "webflow-api/2.4.0",
450
483
  "X-Fern-Runtime": core.RUNTIME.type,
451
484
  "X-Fern-Runtime-Version": core.RUNTIME.version,
452
485
  },
453
486
  contentType: "application/json",
454
- body: yield serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
487
+ requestType: "json",
488
+ body: serializers.ProductsCreateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
455
489
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
456
490
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
457
491
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
458
492
  });
459
493
  if (_response.ok) {
460
- return yield serializers.ProductsCreateSkuResponse.parseOrThrow(_response.body, {
494
+ return serializers.ProductsCreateSkuResponse.parseOrThrow(_response.body, {
461
495
  unrecognizedObjectKeys: "passthrough",
462
496
  allowUnrecognizedUnionMembers: true,
463
497
  allowUnrecognizedEnumValues: true,
@@ -478,7 +512,13 @@ class Products {
478
512
  case 409:
479
513
  throw new Webflow.ConflictError(_response.error.body);
480
514
  case 429:
481
- throw new Webflow.TooManyRequestsError(_response.error.body);
515
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
516
+ unrecognizedObjectKeys: "passthrough",
517
+ allowUnrecognizedUnionMembers: true,
518
+ allowUnrecognizedEnumValues: true,
519
+ skipValidation: true,
520
+ breadcrumbsPrefix: ["response"],
521
+ }));
482
522
  case 500:
483
523
  throw new Webflow.InternalServerError(_response.error.body);
484
524
  default:
@@ -523,7 +563,7 @@ class Products {
523
563
  * @throws {@link Webflow.InternalServerError}
524
564
  *
525
565
  * @example
526
- * await client.products.updateSku("site_id", "product_id", "sku_id", {
566
+ * await client.products.updateSku("580e63e98c9a982ac9b8b741", "580e63fc8c9a982ac9b8b745", "5e8518516e147040726cc415", {
527
567
  * sku: {}
528
568
  * })
529
569
  */
@@ -537,18 +577,20 @@ class Products {
537
577
  Authorization: yield this._getAuthorizationHeader(),
538
578
  "X-Fern-Language": "JavaScript",
539
579
  "X-Fern-SDK-Name": "webflow-api",
540
- "X-Fern-SDK-Version": "2.3.5",
580
+ "X-Fern-SDK-Version": "2.4.0",
581
+ "User-Agent": "webflow-api/2.4.0",
541
582
  "X-Fern-Runtime": core.RUNTIME.type,
542
583
  "X-Fern-Runtime-Version": core.RUNTIME.version,
543
584
  },
544
585
  contentType: "application/json",
545
- body: yield serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
586
+ requestType: "json",
587
+ body: serializers.ProductsUpdateSkuRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
546
588
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
547
589
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
548
590
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
549
591
  });
550
592
  if (_response.ok) {
551
- return yield serializers.Sku.parseOrThrow(_response.body, {
593
+ return serializers.Sku.parseOrThrow(_response.body, {
552
594
  unrecognizedObjectKeys: "passthrough",
553
595
  allowUnrecognizedUnionMembers: true,
554
596
  allowUnrecognizedEnumValues: true,
@@ -569,7 +611,13 @@ class Products {
569
611
  case 409:
570
612
  throw new Webflow.ConflictError(_response.error.body);
571
613
  case 429:
572
- throw new Webflow.TooManyRequestsError(_response.error.body);
614
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
615
+ unrecognizedObjectKeys: "passthrough",
616
+ allowUnrecognizedUnionMembers: true,
617
+ allowUnrecognizedEnumValues: true,
618
+ skipValidation: true,
619
+ breadcrumbsPrefix: ["response"],
620
+ }));
573
621
  case 500:
574
622
  throw new Webflow.InternalServerError(_response.error.body);
575
623
  default:
@@ -34,7 +34,7 @@ export declare class Scripts {
34
34
  * @throws {@link Webflow.InternalServerError}
35
35
  *
36
36
  * @example
37
- * await client.scripts.list("site_id")
37
+ * await client.scripts.list("580e63e98c9a982ac9b8b741")
38
38
  */
39
39
  list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.RegisteredScriptList>;
40
40
  /**
@@ -51,7 +51,7 @@ export declare class Scripts {
51
51
  * @throws {@link Webflow.InternalServerError}
52
52
  *
53
53
  * @example
54
- * await client.scripts.registerHosted("site_id", {
54
+ * await client.scripts.registerHosted("580e63e98c9a982ac9b8b741", {
55
55
  * hostedLocation: "hostedLocation",
56
56
  * integrityHash: "integrityHash",
57
57
  * version: "version",
@@ -73,7 +73,7 @@ export declare class Scripts {
73
73
  * @throws {@link Webflow.InternalServerError}
74
74
  *
75
75
  * @example
76
- * await client.scripts.registerInline("site_id", {
76
+ * await client.scripts.registerInline("580e63e98c9a982ac9b8b741", {
77
77
  * sourceCode: "alert('hello world');",
78
78
  * version: "0.0.1",
79
79
  * displayName: "Alert"