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
@@ -66,7 +66,7 @@ class Ecommerce {
66
66
  * @throws {@link Webflow.InternalServerError}
67
67
  *
68
68
  * @example
69
- * await client.ecommerce.getSettings("site_id")
69
+ * await client.ecommerce.getSettings("580e63e98c9a982ac9b8b741")
70
70
  */
71
71
  getSettings(siteId, requestOptions) {
72
72
  var _a;
@@ -78,17 +78,19 @@ class Ecommerce {
78
78
  Authorization: yield this._getAuthorizationHeader(),
79
79
  "X-Fern-Language": "JavaScript",
80
80
  "X-Fern-SDK-Name": "webflow-api",
81
- "X-Fern-SDK-Version": "2.3.5",
81
+ "X-Fern-SDK-Version": "2.4.0",
82
+ "User-Agent": "webflow-api/2.4.0",
82
83
  "X-Fern-Runtime": core.RUNTIME.type,
83
84
  "X-Fern-Runtime-Version": core.RUNTIME.version,
84
85
  },
85
86
  contentType: "application/json",
87
+ requestType: "json",
86
88
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
87
89
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
88
90
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
89
91
  });
90
92
  if (_response.ok) {
91
- return yield serializers.EcommerceSettings.parseOrThrow(_response.body, {
93
+ return serializers.EcommerceSettings.parseOrThrow(_response.body, {
92
94
  unrecognizedObjectKeys: "passthrough",
93
95
  allowUnrecognizedUnionMembers: true,
94
96
  allowUnrecognizedEnumValues: true,
@@ -109,7 +111,13 @@ class Ecommerce {
109
111
  case 409:
110
112
  throw new Webflow.ConflictError(_response.error.body);
111
113
  case 429:
112
- throw new Webflow.TooManyRequestsError(_response.error.body);
114
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
115
+ unrecognizedObjectKeys: "passthrough",
116
+ allowUnrecognizedUnionMembers: true,
117
+ allowUnrecognizedEnumValues: true,
118
+ skipValidation: true,
119
+ breadcrumbsPrefix: ["response"],
120
+ }));
113
121
  case 500:
114
122
  throw new Webflow.InternalServerError(_response.error.body);
115
123
  default:
@@ -37,7 +37,7 @@ export declare class Forms {
37
37
  * @throws {@link Webflow.InternalServerError}
38
38
  *
39
39
  * @example
40
- * await client.forms.list("site_id")
40
+ * await client.forms.list("580e63e98c9a982ac9b8b741")
41
41
  */
42
42
  list(siteId: string, request?: Webflow.FormsListRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormList>;
43
43
  /**
@@ -54,13 +54,14 @@ export declare class Forms {
54
54
  * @throws {@link Webflow.InternalServerError}
55
55
  *
56
56
  * @example
57
- * await client.forms.get("form_id")
57
+ * await client.forms.get("580e63e98c9a982ac9b8b741")
58
58
  */
59
59
  get(formId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.Form>;
60
60
  /**
61
61
  * List form submissions for a given form </br></br> Required scope | `forms:read`
62
62
  *
63
63
  * @param {string} formId - Unique identifier for a Form
64
+ * @param {Webflow.FormsListSubmissionsRequest} request
64
65
  * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
65
66
  *
66
67
  * @throws {@link Webflow.BadRequestError}
@@ -71,9 +72,9 @@ export declare class Forms {
71
72
  * @throws {@link Webflow.InternalServerError}
72
73
  *
73
74
  * @example
74
- * await client.forms.listSubmissions("form_id")
75
+ * await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
75
76
  */
76
- listSubmissions(formId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
77
+ listSubmissions(formId: string, request?: Webflow.FormsListSubmissionsRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmissionList>;
77
78
  /**
78
79
  * Get information about a given form submission</br></br> Required scope | `forms:read`
79
80
  *
@@ -88,7 +89,7 @@ export declare class Forms {
88
89
  * @throws {@link Webflow.InternalServerError}
89
90
  *
90
91
  * @example
91
- * await client.forms.getSubmission("form_submission_id")
92
+ * await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
92
93
  */
93
94
  getSubmission(formSubmissionId: string, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
94
95
  /**
@@ -107,7 +108,7 @@ export declare class Forms {
107
108
  * @throws {@link Webflow.InternalServerError}
108
109
  *
109
110
  * @example
110
- * await client.forms.updateSubmission("form_submission_id")
111
+ * await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
111
112
  */
112
113
  updateSubmission(formSubmissionId: string, request?: Webflow.FormsUpdateSubmissionRequest, requestOptions?: Forms.RequestOptions): Promise<Webflow.FormSubmission>;
113
114
  protected _getAuthorizationHeader(): Promise<string>;
@@ -65,7 +65,7 @@ class Forms {
65
65
  * @throws {@link Webflow.InternalServerError}
66
66
  *
67
67
  * @example
68
- * await client.forms.list("site_id")
68
+ * await client.forms.list("580e63e98c9a982ac9b8b741")
69
69
  */
70
70
  list(siteId, request = {}, requestOptions) {
71
71
  var _a;
@@ -85,18 +85,20 @@ class Forms {
85
85
  Authorization: yield this._getAuthorizationHeader(),
86
86
  "X-Fern-Language": "JavaScript",
87
87
  "X-Fern-SDK-Name": "webflow-api",
88
- "X-Fern-SDK-Version": "2.3.5",
88
+ "X-Fern-SDK-Version": "2.4.0",
89
+ "User-Agent": "webflow-api/2.4.0",
89
90
  "X-Fern-Runtime": core.RUNTIME.type,
90
91
  "X-Fern-Runtime-Version": core.RUNTIME.version,
91
92
  },
92
93
  contentType: "application/json",
93
94
  queryParameters: _queryParams,
95
+ requestType: "json",
94
96
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
95
97
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
96
98
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
97
99
  });
98
100
  if (_response.ok) {
99
- return yield serializers.FormList.parseOrThrow(_response.body, {
101
+ return serializers.FormList.parseOrThrow(_response.body, {
100
102
  unrecognizedObjectKeys: "passthrough",
101
103
  allowUnrecognizedUnionMembers: true,
102
104
  allowUnrecognizedEnumValues: true,
@@ -117,7 +119,13 @@ class Forms {
117
119
  case 409:
118
120
  throw new Webflow.ConflictError(_response.error.body);
119
121
  case 429:
120
- throw new Webflow.TooManyRequestsError(_response.error.body);
122
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
123
+ unrecognizedObjectKeys: "passthrough",
124
+ allowUnrecognizedUnionMembers: true,
125
+ allowUnrecognizedEnumValues: true,
126
+ skipValidation: true,
127
+ breadcrumbsPrefix: ["response"],
128
+ }));
121
129
  case 500:
122
130
  throw new Webflow.InternalServerError(_response.error.body);
123
131
  default:
@@ -156,7 +164,7 @@ class Forms {
156
164
  * @throws {@link Webflow.InternalServerError}
157
165
  *
158
166
  * @example
159
- * await client.forms.get("form_id")
167
+ * await client.forms.get("580e63e98c9a982ac9b8b741")
160
168
  */
161
169
  get(formId, requestOptions) {
162
170
  var _a;
@@ -168,17 +176,19 @@ class Forms {
168
176
  Authorization: yield this._getAuthorizationHeader(),
169
177
  "X-Fern-Language": "JavaScript",
170
178
  "X-Fern-SDK-Name": "webflow-api",
171
- "X-Fern-SDK-Version": "2.3.5",
179
+ "X-Fern-SDK-Version": "2.4.0",
180
+ "User-Agent": "webflow-api/2.4.0",
172
181
  "X-Fern-Runtime": core.RUNTIME.type,
173
182
  "X-Fern-Runtime-Version": core.RUNTIME.version,
174
183
  },
175
184
  contentType: "application/json",
185
+ requestType: "json",
176
186
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
177
187
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
178
188
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
179
189
  });
180
190
  if (_response.ok) {
181
- return yield serializers.Form.parseOrThrow(_response.body, {
191
+ return serializers.Form.parseOrThrow(_response.body, {
182
192
  unrecognizedObjectKeys: "passthrough",
183
193
  allowUnrecognizedUnionMembers: true,
184
194
  allowUnrecognizedEnumValues: true,
@@ -197,7 +207,13 @@ class Forms {
197
207
  case 404:
198
208
  throw new Webflow.NotFoundError(_response.error.body);
199
209
  case 429:
200
- throw new Webflow.TooManyRequestsError(_response.error.body);
210
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
211
+ unrecognizedObjectKeys: "passthrough",
212
+ allowUnrecognizedUnionMembers: true,
213
+ allowUnrecognizedEnumValues: true,
214
+ skipValidation: true,
215
+ breadcrumbsPrefix: ["response"],
216
+ }));
201
217
  case 500:
202
218
  throw new Webflow.InternalServerError(_response.error.body);
203
219
  default:
@@ -226,6 +242,7 @@ class Forms {
226
242
  * List form submissions for a given form </br></br> Required scope | `forms:read`
227
243
  *
228
244
  * @param {string} formId - Unique identifier for a Form
245
+ * @param {Webflow.FormsListSubmissionsRequest} request
229
246
  * @param {Forms.RequestOptions} requestOptions - Request-specific configuration.
230
247
  *
231
248
  * @throws {@link Webflow.BadRequestError}
@@ -236,11 +253,19 @@ class Forms {
236
253
  * @throws {@link Webflow.InternalServerError}
237
254
  *
238
255
  * @example
239
- * await client.forms.listSubmissions("form_id")
256
+ * await client.forms.listSubmissions("580e63e98c9a982ac9b8b741")
240
257
  */
241
- listSubmissions(formId, requestOptions) {
258
+ listSubmissions(formId, request = {}, requestOptions) {
242
259
  var _a;
243
260
  return __awaiter(this, void 0, void 0, function* () {
261
+ const { offset, limit } = request;
262
+ const _queryParams = {};
263
+ if (offset != null) {
264
+ _queryParams["offset"] = offset.toString();
265
+ }
266
+ if (limit != null) {
267
+ _queryParams["limit"] = limit.toString();
268
+ }
244
269
  const _response = yield core.fetcher({
245
270
  url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `forms/${encodeURIComponent(formId)}/submissions`),
246
271
  method: "GET",
@@ -248,17 +273,20 @@ class Forms {
248
273
  Authorization: yield this._getAuthorizationHeader(),
249
274
  "X-Fern-Language": "JavaScript",
250
275
  "X-Fern-SDK-Name": "webflow-api",
251
- "X-Fern-SDK-Version": "2.3.5",
276
+ "X-Fern-SDK-Version": "2.4.0",
277
+ "User-Agent": "webflow-api/2.4.0",
252
278
  "X-Fern-Runtime": core.RUNTIME.type,
253
279
  "X-Fern-Runtime-Version": core.RUNTIME.version,
254
280
  },
255
281
  contentType: "application/json",
282
+ queryParameters: _queryParams,
283
+ requestType: "json",
256
284
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
257
285
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
258
286
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
259
287
  });
260
288
  if (_response.ok) {
261
- return yield serializers.FormSubmissionList.parseOrThrow(_response.body, {
289
+ return serializers.FormSubmissionList.parseOrThrow(_response.body, {
262
290
  unrecognizedObjectKeys: "passthrough",
263
291
  allowUnrecognizedUnionMembers: true,
264
292
  allowUnrecognizedEnumValues: true,
@@ -277,7 +305,13 @@ class Forms {
277
305
  case 404:
278
306
  throw new Webflow.NotFoundError(_response.error.body);
279
307
  case 429:
280
- throw new Webflow.TooManyRequestsError(_response.error.body);
308
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
309
+ unrecognizedObjectKeys: "passthrough",
310
+ allowUnrecognizedUnionMembers: true,
311
+ allowUnrecognizedEnumValues: true,
312
+ skipValidation: true,
313
+ breadcrumbsPrefix: ["response"],
314
+ }));
281
315
  case 500:
282
316
  throw new Webflow.InternalServerError(_response.error.body);
283
317
  default:
@@ -316,7 +350,7 @@ class Forms {
316
350
  * @throws {@link Webflow.InternalServerError}
317
351
  *
318
352
  * @example
319
- * await client.forms.getSubmission("form_submission_id")
353
+ * await client.forms.getSubmission("580e63e98c9a982ac9b8b741")
320
354
  */
321
355
  getSubmission(formSubmissionId, requestOptions) {
322
356
  var _a;
@@ -328,17 +362,19 @@ class Forms {
328
362
  Authorization: yield this._getAuthorizationHeader(),
329
363
  "X-Fern-Language": "JavaScript",
330
364
  "X-Fern-SDK-Name": "webflow-api",
331
- "X-Fern-SDK-Version": "2.3.5",
365
+ "X-Fern-SDK-Version": "2.4.0",
366
+ "User-Agent": "webflow-api/2.4.0",
332
367
  "X-Fern-Runtime": core.RUNTIME.type,
333
368
  "X-Fern-Runtime-Version": core.RUNTIME.version,
334
369
  },
335
370
  contentType: "application/json",
371
+ requestType: "json",
336
372
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
373
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
374
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
339
375
  });
340
376
  if (_response.ok) {
341
- return yield serializers.FormSubmission.parseOrThrow(_response.body, {
377
+ return serializers.FormSubmission.parseOrThrow(_response.body, {
342
378
  unrecognizedObjectKeys: "passthrough",
343
379
  allowUnrecognizedUnionMembers: true,
344
380
  allowUnrecognizedEnumValues: true,
@@ -357,7 +393,13 @@ class Forms {
357
393
  case 404:
358
394
  throw new Webflow.NotFoundError(_response.error.body);
359
395
  case 429:
360
- throw new Webflow.TooManyRequestsError(_response.error.body);
396
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
397
+ unrecognizedObjectKeys: "passthrough",
398
+ allowUnrecognizedUnionMembers: true,
399
+ allowUnrecognizedEnumValues: true,
400
+ skipValidation: true,
401
+ breadcrumbsPrefix: ["response"],
402
+ }));
361
403
  case 500:
362
404
  throw new Webflow.InternalServerError(_response.error.body);
363
405
  default:
@@ -398,7 +440,7 @@ class Forms {
398
440
  * @throws {@link Webflow.InternalServerError}
399
441
  *
400
442
  * @example
401
- * await client.forms.updateSubmission("form_submission_id")
443
+ * await client.forms.updateSubmission("580e63e98c9a982ac9b8b741")
402
444
  */
403
445
  updateSubmission(formSubmissionId, request = {}, requestOptions) {
404
446
  var _a;
@@ -410,20 +452,20 @@ class Forms {
410
452
  Authorization: yield this._getAuthorizationHeader(),
411
453
  "X-Fern-Language": "JavaScript",
412
454
  "X-Fern-SDK-Name": "webflow-api",
413
- "X-Fern-SDK-Version": "2.3.5",
455
+ "X-Fern-SDK-Version": "2.4.0",
456
+ "User-Agent": "webflow-api/2.4.0",
414
457
  "X-Fern-Runtime": core.RUNTIME.type,
415
458
  "X-Fern-Runtime-Version": core.RUNTIME.version,
416
459
  },
417
460
  contentType: "application/json",
418
- body: yield serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, {
419
- unrecognizedObjectKeys: "strip",
420
- }),
461
+ requestType: "json",
462
+ body: serializers.FormsUpdateSubmissionRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
421
463
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
422
464
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
423
465
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
424
466
  });
425
467
  if (_response.ok) {
426
- return yield serializers.FormSubmission.parseOrThrow(_response.body, {
468
+ return serializers.FormSubmission.parseOrThrow(_response.body, {
427
469
  unrecognizedObjectKeys: "passthrough",
428
470
  allowUnrecognizedUnionMembers: true,
429
471
  allowUnrecognizedEnumValues: true,
@@ -444,7 +486,13 @@ class Forms {
444
486
  case 409:
445
487
  throw new Webflow.ConflictError(_response.error.body);
446
488
  case 429:
447
- throw new Webflow.TooManyRequestsError(_response.error.body);
489
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
490
+ unrecognizedObjectKeys: "passthrough",
491
+ allowUnrecognizedUnionMembers: true,
492
+ allowUnrecognizedEnumValues: true,
493
+ skipValidation: true,
494
+ breadcrumbsPrefix: ["response"],
495
+ }));
448
496
  case 500:
449
497
  throw new Webflow.InternalServerError(_response.error.body);
450
498
  default:
@@ -0,0 +1,17 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ /**
5
+ * @example
6
+ * {}
7
+ */
8
+ export interface FormsListSubmissionsRequest {
9
+ /**
10
+ * Offset used for pagination if the results have more than limit records
11
+ */
12
+ offset?: number;
13
+ /**
14
+ * Maximum number of records to be returned (max limit: 100)
15
+ */
16
+ limit?: number;
17
+ }
@@ -1,2 +1,3 @@
1
1
  export { type FormsListRequest } from "./FormsListRequest";
2
+ export { type FormsListSubmissionsRequest } from "./FormsListSubmissionsRequest";
2
3
  export { type FormsUpdateSubmissionRequest } from "./FormsUpdateSubmissionRequest";
@@ -1,4 +1,5 @@
1
- export * as collections from "./collections";
1
+ export * as sites from "./sites";
2
+ export * from "./sites/types";
2
3
  export * as pages from "./pages";
3
4
  export * from "./pages/types";
4
5
  export * as users from "./users";
@@ -11,8 +12,8 @@ export * as orders from "./orders";
11
12
  export * from "./orders/types";
12
13
  export * as inventory from "./inventory";
13
14
  export * from "./inventory/types";
15
+ export * as collections from "./collections";
14
16
  export * as token from "./token";
15
- export * as sites from "./sites";
16
17
  export * as scripts from "./scripts";
17
18
  export * as assets from "./assets";
18
19
  export * as webhooks from "./webhooks";
@@ -23,7 +24,6 @@ export * from "./collections/client/requests";
23
24
  export * from "./pages/client/requests";
24
25
  export * from "./scripts/client/requests";
25
26
  export * from "./assets/client/requests";
26
- export * from "./webhooks/client/requests";
27
27
  export * from "./forms/client/requests";
28
28
  export * from "./users/client/requests";
29
29
  export * from "./accessGroups/client/requests";
@@ -26,8 +26,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
26
26
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ecommerce = exports.forms = exports.webhooks = exports.assets = exports.scripts = exports.sites = exports.token = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.collections = void 0;
30
- exports.collections = __importStar(require("./collections"));
29
+ exports.ecommerce = exports.forms = exports.webhooks = exports.assets = exports.scripts = exports.token = exports.collections = exports.inventory = exports.orders = exports.products = exports.accessGroups = exports.users = exports.pages = exports.sites = void 0;
30
+ exports.sites = __importStar(require("./sites"));
31
+ __exportStar(require("./sites/types"), exports);
31
32
  exports.pages = __importStar(require("./pages"));
32
33
  __exportStar(require("./pages/types"), exports);
33
34
  exports.users = __importStar(require("./users"));
@@ -40,8 +41,8 @@ exports.orders = __importStar(require("./orders"));
40
41
  __exportStar(require("./orders/types"), exports);
41
42
  exports.inventory = __importStar(require("./inventory"));
42
43
  __exportStar(require("./inventory/types"), exports);
44
+ exports.collections = __importStar(require("./collections"));
43
45
  exports.token = __importStar(require("./token"));
44
- exports.sites = __importStar(require("./sites"));
45
46
  exports.scripts = __importStar(require("./scripts"));
46
47
  exports.assets = __importStar(require("./assets"));
47
48
  exports.webhooks = __importStar(require("./webhooks"));
@@ -52,7 +53,6 @@ __exportStar(require("./collections/client/requests"), exports);
52
53
  __exportStar(require("./pages/client/requests"), exports);
53
54
  __exportStar(require("./scripts/client/requests"), exports);
54
55
  __exportStar(require("./assets/client/requests"), exports);
55
- __exportStar(require("./webhooks/client/requests"), exports);
56
56
  __exportStar(require("./forms/client/requests"), exports);
57
57
  __exportStar(require("./users/client/requests"), exports);
58
58
  __exportStar(require("./accessGroups/client/requests"), exports);
@@ -39,7 +39,7 @@ export declare class Inventory {
39
39
  * @throws {@link Webflow.InternalServerError}
40
40
  *
41
41
  * @example
42
- * await client.inventory.list("collection_id", "item_id")
42
+ * await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
43
43
  */
44
44
  list(collectionId: string, itemId: string, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
45
45
  /**
@@ -61,8 +61,8 @@ export declare class Inventory {
61
61
  * @throws {@link Webflow.InternalServerError}
62
62
  *
63
63
  * @example
64
- * await client.inventory.update("collection_id", "item_id", {
65
- * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
64
+ * await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
65
+ * inventoryType: "infinite"
66
66
  * })
67
67
  */
68
68
  update(collectionId: string, itemId: string, request: Webflow.InventoryUpdateRequest, requestOptions?: Inventory.RequestOptions): Promise<Webflow.InventoryItem>;
@@ -67,7 +67,7 @@ class Inventory {
67
67
  * @throws {@link Webflow.InternalServerError}
68
68
  *
69
69
  * @example
70
- * await client.inventory.list("collection_id", "item_id")
70
+ * await client.inventory.list("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
71
71
  */
72
72
  list(collectionId, itemId, requestOptions) {
73
73
  var _a;
@@ -79,17 +79,19 @@ class Inventory {
79
79
  Authorization: yield this._getAuthorizationHeader(),
80
80
  "X-Fern-Language": "JavaScript",
81
81
  "X-Fern-SDK-Name": "webflow-api",
82
- "X-Fern-SDK-Version": "2.3.5",
82
+ "X-Fern-SDK-Version": "2.4.0",
83
+ "User-Agent": "webflow-api/2.4.0",
83
84
  "X-Fern-Runtime": core.RUNTIME.type,
84
85
  "X-Fern-Runtime-Version": core.RUNTIME.version,
85
86
  },
86
87
  contentType: "application/json",
88
+ requestType: "json",
87
89
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
88
90
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
89
91
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
90
92
  });
91
93
  if (_response.ok) {
92
- return yield serializers.InventoryItem.parseOrThrow(_response.body, {
94
+ return serializers.InventoryItem.parseOrThrow(_response.body, {
93
95
  unrecognizedObjectKeys: "passthrough",
94
96
  allowUnrecognizedUnionMembers: true,
95
97
  allowUnrecognizedEnumValues: true,
@@ -110,7 +112,13 @@ class Inventory {
110
112
  case 409:
111
113
  throw new Webflow.ConflictError(_response.error.body);
112
114
  case 429:
113
- throw new Webflow.TooManyRequestsError(_response.error.body);
115
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
116
+ unrecognizedObjectKeys: "passthrough",
117
+ allowUnrecognizedUnionMembers: true,
118
+ allowUnrecognizedEnumValues: true,
119
+ skipValidation: true,
120
+ breadcrumbsPrefix: ["response"],
121
+ }));
114
122
  case 500:
115
123
  throw new Webflow.InternalServerError(_response.error.body);
116
124
  default:
@@ -154,8 +162,8 @@ class Inventory {
154
162
  * @throws {@link Webflow.InternalServerError}
155
163
  *
156
164
  * @example
157
- * await client.inventory.update("collection_id", "item_id", {
158
- * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
165
+ * await client.inventory.update("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
166
+ * inventoryType: "infinite"
159
167
  * })
160
168
  */
161
169
  update(collectionId, itemId, request, requestOptions) {
@@ -168,18 +176,20 @@ class Inventory {
168
176
  Authorization: yield this._getAuthorizationHeader(),
169
177
  "X-Fern-Language": "JavaScript",
170
178
  "X-Fern-SDK-Name": "webflow-api",
171
- "X-Fern-SDK-Version": "2.3.5",
179
+ "X-Fern-SDK-Version": "2.4.0",
180
+ "User-Agent": "webflow-api/2.4.0",
172
181
  "X-Fern-Runtime": core.RUNTIME.type,
173
182
  "X-Fern-Runtime-Version": core.RUNTIME.version,
174
183
  },
175
184
  contentType: "application/json",
176
- body: yield serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
185
+ requestType: "json",
186
+ body: serializers.InventoryUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
177
187
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
178
188
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
179
189
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
180
190
  });
181
191
  if (_response.ok) {
182
- return yield serializers.InventoryItem.parseOrThrow(_response.body, {
192
+ return serializers.InventoryItem.parseOrThrow(_response.body, {
183
193
  unrecognizedObjectKeys: "passthrough",
184
194
  allowUnrecognizedUnionMembers: true,
185
195
  allowUnrecognizedEnumValues: true,
@@ -200,7 +210,13 @@ class Inventory {
200
210
  case 409:
201
211
  throw new Webflow.ConflictError(_response.error.body);
202
212
  case 429:
203
- throw new Webflow.TooManyRequestsError(_response.error.body);
213
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
214
+ unrecognizedObjectKeys: "passthrough",
215
+ allowUnrecognizedUnionMembers: true,
216
+ allowUnrecognizedEnumValues: true,
217
+ skipValidation: true,
218
+ breadcrumbsPrefix: ["response"],
219
+ }));
204
220
  case 500:
205
221
  throw new Webflow.InternalServerError(_response.error.body);
206
222
  default:
@@ -5,7 +5,7 @@ import * as Webflow from "../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * inventoryType: Webflow.InventoryUpdateRequestInventoryType.Infinite
8
+ * inventoryType: "infinite"
9
9
  * }
10
10
  */
11
11
  export interface InventoryUpdateRequest {
@@ -39,7 +39,7 @@ export declare class Orders {
39
39
  * @throws {@link Webflow.InternalServerError}
40
40
  *
41
41
  * @example
42
- * await client.orders.list("site_id")
42
+ * await client.orders.list("580e63e98c9a982ac9b8b741")
43
43
  */
44
44
  list(siteId: string, request?: Webflow.OrdersListRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.OrderList>;
45
45
  /**
@@ -60,7 +60,7 @@ export declare class Orders {
60
60
  * @throws {@link Webflow.InternalServerError}
61
61
  *
62
62
  * @example
63
- * await client.orders.get("site_id", "order_id")
63
+ * await client.orders.get("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
64
64
  */
65
65
  get(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
66
66
  /**
@@ -82,7 +82,7 @@ export declare class Orders {
82
82
  * @throws {@link Webflow.InternalServerError}
83
83
  *
84
84
  * @example
85
- * await client.orders.update("site_id", "order_id")
85
+ * await client.orders.update("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
86
86
  */
87
87
  update(siteId: string, orderId: string, request?: Webflow.OrdersUpdateRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
88
88
  /**
@@ -104,7 +104,7 @@ export declare class Orders {
104
104
  * @throws {@link Webflow.InternalServerError}
105
105
  *
106
106
  * @example
107
- * await client.orders.updateFulfill("site_id", "order_id")
107
+ * await client.orders.updateFulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
108
108
  */
109
109
  updateFulfill(siteId: string, orderId: string, request?: Webflow.OrdersUpdateFulfillRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
110
110
  /**
@@ -125,7 +125,7 @@ export declare class Orders {
125
125
  * @throws {@link Webflow.InternalServerError}
126
126
  *
127
127
  * @example
128
- * await client.orders.updateUnfulfill("site_id", "order_id")
128
+ * await client.orders.updateUnfulfill("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
129
129
  */
130
130
  updateUnfulfill(siteId: string, orderId: string, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
131
131
  /**
@@ -148,7 +148,7 @@ export declare class Orders {
148
148
  * @throws {@link Webflow.InternalServerError}
149
149
  *
150
150
  * @example
151
- * await client.orders.refund("site_id", "order_id")
151
+ * await client.orders.refund("580e63e98c9a982ac9b8b741", "5e8518516e147040726cc415")
152
152
  */
153
153
  refund(siteId: string, orderId: string, request?: Webflow.OrdersRefundRequest, requestOptions?: Orders.RequestOptions): Promise<Webflow.Order>;
154
154
  protected _getAuthorizationHeader(): Promise<string>;