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
@@ -64,7 +64,7 @@ class AccessGroups {
64
64
  * @throws {@link Webflow.InternalServerError}
65
65
  *
66
66
  * @example
67
- * await client.accessGroups.list("site_id")
67
+ * await client.accessGroups.list("580e63e98c9a982ac9b8b741")
68
68
  */
69
69
  list(siteId, request = {}, requestOptions) {
70
70
  var _a;
@@ -87,18 +87,20 @@ class AccessGroups {
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.AccessGroupList.parseOrThrow(_response.body, {
103
+ return serializers.AccessGroupList.parseOrThrow(_response.body, {
102
104
  unrecognizedObjectKeys: "passthrough",
103
105
  allowUnrecognizedUnionMembers: true,
104
106
  allowUnrecognizedEnumValues: true,
@@ -117,7 +119,13 @@ class AccessGroups {
117
119
  case 404:
118
120
  throw new Webflow.NotFoundError(_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:
@@ -34,7 +34,7 @@ export declare class Assets {
34
34
  * @throws {@link Webflow.InternalServerError}
35
35
  *
36
36
  * @example
37
- * await client.assets.list("site_id")
37
+ * await client.assets.list("580e63e98c9a982ac9b8b741")
38
38
  */
39
39
  list(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Assets>;
40
40
  /**
@@ -51,7 +51,7 @@ export declare class Assets {
51
51
  * @throws {@link Webflow.InternalServerError}
52
52
  *
53
53
  * @example
54
- * await client.assets.create("site_id", {
54
+ * await client.assets.create("580e63e98c9a982ac9b8b741", {
55
55
  * fileName: "file.png",
56
56
  * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
57
57
  * })
@@ -70,7 +70,7 @@ export declare class Assets {
70
70
  * @throws {@link Webflow.InternalServerError}
71
71
  *
72
72
  * @example
73
- * await client.assets.get("asset_id")
73
+ * await client.assets.get("580e63fc8c9a982ac9b8b745")
74
74
  */
75
75
  get(assetId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.Asset>;
76
76
  /**
@@ -86,7 +86,7 @@ export declare class Assets {
86
86
  * @throws {@link Webflow.InternalServerError}
87
87
  *
88
88
  * @example
89
- * await client.assets.delete("asset_id")
89
+ * await client.assets.delete("580e63fc8c9a982ac9b8b745")
90
90
  */
91
91
  delete(assetId: string, requestOptions?: Assets.RequestOptions): Promise<void>;
92
92
  /**
@@ -103,7 +103,7 @@ export declare class Assets {
103
103
  * @throws {@link Webflow.InternalServerError}
104
104
  *
105
105
  * @example
106
- * await client.assets.update("asset_id", {
106
+ * await client.assets.update("580e63fc8c9a982ac9b8b745", {
107
107
  * displayName: "bulldoze.png"
108
108
  * })
109
109
  */
@@ -121,7 +121,7 @@ export declare class Assets {
121
121
  * @throws {@link Webflow.InternalServerError}
122
122
  *
123
123
  * @example
124
- * await client.assets.listFolders("site_id")
124
+ * await client.assets.listFolders("580e63e98c9a982ac9b8b741")
125
125
  */
126
126
  listFolders(siteId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolderList>;
127
127
  /**
@@ -138,7 +138,7 @@ export declare class Assets {
138
138
  * @throws {@link Webflow.InternalServerError}
139
139
  *
140
140
  * @example
141
- * await client.assets.createFolder("site_id", {
141
+ * await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
142
142
  * displayName: "my asset folder"
143
143
  * })
144
144
  */
@@ -156,7 +156,7 @@ export declare class Assets {
156
156
  * @throws {@link Webflow.InternalServerError}
157
157
  *
158
158
  * @example
159
- * await client.assets.getFolder("asset_folder_id")
159
+ * await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
160
160
  */
161
161
  getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): Promise<Webflow.AssetFolder>;
162
162
  protected _getAuthorizationHeader(): Promise<string>;
@@ -62,7 +62,7 @@ class Assets {
62
62
  * @throws {@link Webflow.InternalServerError}
63
63
  *
64
64
  * @example
65
- * await client.assets.list("site_id")
65
+ * await client.assets.list("580e63e98c9a982ac9b8b741")
66
66
  */
67
67
  list(siteId, requestOptions) {
68
68
  var _a;
@@ -74,17 +74,19 @@ class Assets {
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.Assets.parseOrThrow(_response.body, {
89
+ return serializers.Assets.parseOrThrow(_response.body, {
88
90
  unrecognizedObjectKeys: "passthrough",
89
91
  allowUnrecognizedUnionMembers: true,
90
92
  allowUnrecognizedEnumValues: true,
@@ -101,7 +103,13 @@ class Assets {
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,7 +148,7 @@ class Assets {
140
148
  * @throws {@link Webflow.InternalServerError}
141
149
  *
142
150
  * @example
143
- * await client.assets.create("site_id", {
151
+ * await client.assets.create("580e63e98c9a982ac9b8b741", {
144
152
  * fileName: "file.png",
145
153
  * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
146
154
  * })
@@ -155,18 +163,20 @@ class Assets {
155
163
  Authorization: yield this._getAuthorizationHeader(),
156
164
  "X-Fern-Language": "JavaScript",
157
165
  "X-Fern-SDK-Name": "webflow-api",
158
- "X-Fern-SDK-Version": "2.3.5",
166
+ "X-Fern-SDK-Version": "2.4.0",
167
+ "User-Agent": "webflow-api/2.4.0",
159
168
  "X-Fern-Runtime": core.RUNTIME.type,
160
169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
161
170
  },
162
171
  contentType: "application/json",
163
- body: yield serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
172
+ requestType: "json",
173
+ body: serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
164
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
165
175
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
166
176
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
167
177
  });
168
178
  if (_response.ok) {
169
- return yield serializers.AssetUpload.parseOrThrow(_response.body, {
179
+ return serializers.AssetUpload.parseOrThrow(_response.body, {
170
180
  unrecognizedObjectKeys: "passthrough",
171
181
  allowUnrecognizedUnionMembers: true,
172
182
  allowUnrecognizedEnumValues: true,
@@ -183,7 +193,13 @@ class Assets {
183
193
  case 404:
184
194
  throw new Webflow.NotFoundError(_response.error.body);
185
195
  case 429:
186
- throw new Webflow.TooManyRequestsError(_response.error.body);
196
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
197
+ unrecognizedObjectKeys: "passthrough",
198
+ allowUnrecognizedUnionMembers: true,
199
+ allowUnrecognizedEnumValues: true,
200
+ skipValidation: true,
201
+ breadcrumbsPrefix: ["response"],
202
+ }));
187
203
  case 500:
188
204
  throw new Webflow.InternalServerError(_response.error.body);
189
205
  default:
@@ -221,7 +237,7 @@ class Assets {
221
237
  * @throws {@link Webflow.InternalServerError}
222
238
  *
223
239
  * @example
224
- * await client.assets.get("asset_id")
240
+ * await client.assets.get("580e63fc8c9a982ac9b8b745")
225
241
  */
226
242
  get(assetId, requestOptions) {
227
243
  var _a;
@@ -233,17 +249,19 @@ class Assets {
233
249
  Authorization: yield this._getAuthorizationHeader(),
234
250
  "X-Fern-Language": "JavaScript",
235
251
  "X-Fern-SDK-Name": "webflow-api",
236
- "X-Fern-SDK-Version": "2.3.5",
252
+ "X-Fern-SDK-Version": "2.4.0",
253
+ "User-Agent": "webflow-api/2.4.0",
237
254
  "X-Fern-Runtime": core.RUNTIME.type,
238
255
  "X-Fern-Runtime-Version": core.RUNTIME.version,
239
256
  },
240
257
  contentType: "application/json",
258
+ requestType: "json",
241
259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
242
260
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
243
261
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
244
262
  });
245
263
  if (_response.ok) {
246
- return yield serializers.Asset.parseOrThrow(_response.body, {
264
+ return serializers.Asset.parseOrThrow(_response.body, {
247
265
  unrecognizedObjectKeys: "passthrough",
248
266
  allowUnrecognizedUnionMembers: true,
249
267
  allowUnrecognizedEnumValues: true,
@@ -260,7 +278,13 @@ class Assets {
260
278
  case 404:
261
279
  throw new Webflow.NotFoundError(_response.error.body);
262
280
  case 429:
263
- throw new Webflow.TooManyRequestsError(_response.error.body);
281
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
282
+ unrecognizedObjectKeys: "passthrough",
283
+ allowUnrecognizedUnionMembers: true,
284
+ allowUnrecognizedEnumValues: true,
285
+ skipValidation: true,
286
+ breadcrumbsPrefix: ["response"],
287
+ }));
264
288
  case 500:
265
289
  throw new Webflow.InternalServerError(_response.error.body);
266
290
  default:
@@ -298,7 +322,7 @@ class Assets {
298
322
  * @throws {@link Webflow.InternalServerError}
299
323
  *
300
324
  * @example
301
- * await client.assets.delete("asset_id")
325
+ * await client.assets.delete("580e63fc8c9a982ac9b8b745")
302
326
  */
303
327
  delete(assetId, requestOptions) {
304
328
  var _a;
@@ -310,11 +334,13 @@ class Assets {
310
334
  Authorization: yield this._getAuthorizationHeader(),
311
335
  "X-Fern-Language": "JavaScript",
312
336
  "X-Fern-SDK-Name": "webflow-api",
313
- "X-Fern-SDK-Version": "2.3.5",
337
+ "X-Fern-SDK-Version": "2.4.0",
338
+ "User-Agent": "webflow-api/2.4.0",
314
339
  "X-Fern-Runtime": core.RUNTIME.type,
315
340
  "X-Fern-Runtime-Version": core.RUNTIME.version,
316
341
  },
317
342
  contentType: "application/json",
343
+ requestType: "json",
318
344
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
319
345
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
320
346
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -331,7 +357,13 @@ class Assets {
331
357
  case 404:
332
358
  throw new Webflow.NotFoundError(_response.error.body);
333
359
  case 429:
334
- throw new Webflow.TooManyRequestsError(_response.error.body);
360
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
361
+ unrecognizedObjectKeys: "passthrough",
362
+ allowUnrecognizedUnionMembers: true,
363
+ allowUnrecognizedEnumValues: true,
364
+ skipValidation: true,
365
+ breadcrumbsPrefix: ["response"],
366
+ }));
335
367
  case 500:
336
368
  throw new Webflow.InternalServerError(_response.error.body);
337
369
  default:
@@ -370,7 +402,7 @@ class Assets {
370
402
  * @throws {@link Webflow.InternalServerError}
371
403
  *
372
404
  * @example
373
- * await client.assets.update("asset_id", {
405
+ * await client.assets.update("580e63fc8c9a982ac9b8b745", {
374
406
  * displayName: "bulldoze.png"
375
407
  * })
376
408
  */
@@ -384,18 +416,20 @@ class Assets {
384
416
  Authorization: yield this._getAuthorizationHeader(),
385
417
  "X-Fern-Language": "JavaScript",
386
418
  "X-Fern-SDK-Name": "webflow-api",
387
- "X-Fern-SDK-Version": "2.3.5",
419
+ "X-Fern-SDK-Version": "2.4.0",
420
+ "User-Agent": "webflow-api/2.4.0",
388
421
  "X-Fern-Runtime": core.RUNTIME.type,
389
422
  "X-Fern-Runtime-Version": core.RUNTIME.version,
390
423
  },
391
424
  contentType: "application/json",
392
- body: yield serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
425
+ requestType: "json",
426
+ body: serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
393
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
394
428
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
395
429
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
396
430
  });
397
431
  if (_response.ok) {
398
- return yield serializers.Asset.parseOrThrow(_response.body, {
432
+ return serializers.Asset.parseOrThrow(_response.body, {
399
433
  unrecognizedObjectKeys: "passthrough",
400
434
  allowUnrecognizedUnionMembers: true,
401
435
  allowUnrecognizedEnumValues: true,
@@ -412,7 +446,13 @@ class Assets {
412
446
  case 404:
413
447
  throw new Webflow.NotFoundError(_response.error.body);
414
448
  case 429:
415
- throw new Webflow.TooManyRequestsError(_response.error.body);
449
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
450
+ unrecognizedObjectKeys: "passthrough",
451
+ allowUnrecognizedUnionMembers: true,
452
+ allowUnrecognizedEnumValues: true,
453
+ skipValidation: true,
454
+ breadcrumbsPrefix: ["response"],
455
+ }));
416
456
  case 500:
417
457
  throw new Webflow.InternalServerError(_response.error.body);
418
458
  default:
@@ -450,7 +490,7 @@ class Assets {
450
490
  * @throws {@link Webflow.InternalServerError}
451
491
  *
452
492
  * @example
453
- * await client.assets.listFolders("site_id")
493
+ * await client.assets.listFolders("580e63e98c9a982ac9b8b741")
454
494
  */
455
495
  listFolders(siteId, requestOptions) {
456
496
  var _a;
@@ -462,17 +502,19 @@ class Assets {
462
502
  Authorization: yield this._getAuthorizationHeader(),
463
503
  "X-Fern-Language": "JavaScript",
464
504
  "X-Fern-SDK-Name": "webflow-api",
465
- "X-Fern-SDK-Version": "2.3.5",
505
+ "X-Fern-SDK-Version": "2.4.0",
506
+ "User-Agent": "webflow-api/2.4.0",
466
507
  "X-Fern-Runtime": core.RUNTIME.type,
467
508
  "X-Fern-Runtime-Version": core.RUNTIME.version,
468
509
  },
469
510
  contentType: "application/json",
511
+ requestType: "json",
470
512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
471
513
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
472
514
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
473
515
  });
474
516
  if (_response.ok) {
475
- return yield serializers.AssetFolderList.parseOrThrow(_response.body, {
517
+ return serializers.AssetFolderList.parseOrThrow(_response.body, {
476
518
  unrecognizedObjectKeys: "passthrough",
477
519
  allowUnrecognizedUnionMembers: true,
478
520
  allowUnrecognizedEnumValues: true,
@@ -489,7 +531,13 @@ class Assets {
489
531
  case 404:
490
532
  throw new Webflow.NotFoundError(_response.error.body);
491
533
  case 429:
492
- throw new Webflow.TooManyRequestsError(_response.error.body);
534
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
535
+ unrecognizedObjectKeys: "passthrough",
536
+ allowUnrecognizedUnionMembers: true,
537
+ allowUnrecognizedEnumValues: true,
538
+ skipValidation: true,
539
+ breadcrumbsPrefix: ["response"],
540
+ }));
493
541
  case 500:
494
542
  throw new Webflow.InternalServerError(_response.error.body);
495
543
  default:
@@ -528,7 +576,7 @@ class Assets {
528
576
  * @throws {@link Webflow.InternalServerError}
529
577
  *
530
578
  * @example
531
- * await client.assets.createFolder("site_id", {
579
+ * await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
532
580
  * displayName: "my asset folder"
533
581
  * })
534
582
  */
@@ -542,18 +590,20 @@ class Assets {
542
590
  Authorization: yield this._getAuthorizationHeader(),
543
591
  "X-Fern-Language": "JavaScript",
544
592
  "X-Fern-SDK-Name": "webflow-api",
545
- "X-Fern-SDK-Version": "2.3.5",
593
+ "X-Fern-SDK-Version": "2.4.0",
594
+ "User-Agent": "webflow-api/2.4.0",
546
595
  "X-Fern-Runtime": core.RUNTIME.type,
547
596
  "X-Fern-Runtime-Version": core.RUNTIME.version,
548
597
  },
549
598
  contentType: "application/json",
550
- body: yield serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
599
+ requestType: "json",
600
+ body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
551
601
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
552
602
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
553
603
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
554
604
  });
555
605
  if (_response.ok) {
556
- return yield serializers.AssetFolder.parseOrThrow(_response.body, {
606
+ return serializers.AssetFolder.parseOrThrow(_response.body, {
557
607
  unrecognizedObjectKeys: "passthrough",
558
608
  allowUnrecognizedUnionMembers: true,
559
609
  allowUnrecognizedEnumValues: true,
@@ -570,7 +620,13 @@ class Assets {
570
620
  case 404:
571
621
  throw new Webflow.NotFoundError(_response.error.body);
572
622
  case 429:
573
- throw new Webflow.TooManyRequestsError(_response.error.body);
623
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
624
+ unrecognizedObjectKeys: "passthrough",
625
+ allowUnrecognizedUnionMembers: true,
626
+ allowUnrecognizedEnumValues: true,
627
+ skipValidation: true,
628
+ breadcrumbsPrefix: ["response"],
629
+ }));
574
630
  case 500:
575
631
  throw new Webflow.InternalServerError(_response.error.body);
576
632
  default:
@@ -608,7 +664,7 @@ class Assets {
608
664
  * @throws {@link Webflow.InternalServerError}
609
665
  *
610
666
  * @example
611
- * await client.assets.getFolder("asset_folder_id")
667
+ * await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
612
668
  */
613
669
  getFolder(assetFolderId, requestOptions) {
614
670
  var _a;
@@ -620,17 +676,19 @@ class Assets {
620
676
  Authorization: yield this._getAuthorizationHeader(),
621
677
  "X-Fern-Language": "JavaScript",
622
678
  "X-Fern-SDK-Name": "webflow-api",
623
- "X-Fern-SDK-Version": "2.3.5",
679
+ "X-Fern-SDK-Version": "2.4.0",
680
+ "User-Agent": "webflow-api/2.4.0",
624
681
  "X-Fern-Runtime": core.RUNTIME.type,
625
682
  "X-Fern-Runtime-Version": core.RUNTIME.version,
626
683
  },
627
684
  contentType: "application/json",
685
+ requestType: "json",
628
686
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
629
687
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
630
688
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
631
689
  });
632
690
  if (_response.ok) {
633
- return yield serializers.AssetFolder.parseOrThrow(_response.body, {
691
+ return serializers.AssetFolder.parseOrThrow(_response.body, {
634
692
  unrecognizedObjectKeys: "passthrough",
635
693
  allowUnrecognizedUnionMembers: true,
636
694
  allowUnrecognizedEnumValues: true,
@@ -647,7 +705,13 @@ class Assets {
647
705
  case 404:
648
706
  throw new Webflow.NotFoundError(_response.error.body);
649
707
  case 429:
650
- throw new Webflow.TooManyRequestsError(_response.error.body);
708
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
709
+ unrecognizedObjectKeys: "passthrough",
710
+ allowUnrecognizedUnionMembers: true,
711
+ allowUnrecognizedEnumValues: true,
712
+ skipValidation: true,
713
+ breadcrumbsPrefix: ["response"],
714
+ }));
651
715
  case 500:
652
716
  throw new Webflow.InternalServerError(_response.error.body);
653
717
  default:
@@ -36,7 +36,7 @@ export declare class Collections {
36
36
  * @throws {@link Webflow.InternalServerError}
37
37
  *
38
38
  * @example
39
- * await client.collections.list("site_id")
39
+ * await client.collections.list("580e63e98c9a982ac9b8b741")
40
40
  */
41
41
  list(siteId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.CollectionList>;
42
42
  /**
@@ -53,7 +53,7 @@ export declare class Collections {
53
53
  * @throws {@link Webflow.InternalServerError}
54
54
  *
55
55
  * @example
56
- * await client.collections.create("site_id", {
56
+ * await client.collections.create("580e63e98c9a982ac9b8b741", {
57
57
  * displayName: "Blog Posts",
58
58
  * singularName: "Blog Post",
59
59
  * slug: "posts"
@@ -73,7 +73,7 @@ export declare class Collections {
73
73
  * @throws {@link Webflow.InternalServerError}
74
74
  *
75
75
  * @example
76
- * await client.collections.get("collection_id")
76
+ * await client.collections.get("580e63fc8c9a982ac9b8b745")
77
77
  */
78
78
  get(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<Webflow.Collection>;
79
79
  /**
@@ -89,7 +89,7 @@ export declare class Collections {
89
89
  * @throws {@link Webflow.InternalServerError}
90
90
  *
91
91
  * @example
92
- * await client.collections.deleteCollection("collection_id")
92
+ * await client.collections.deleteCollection("580e63fc8c9a982ac9b8b745")
93
93
  */
94
94
  deleteCollection(collectionId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
95
95
  /**
@@ -106,7 +106,7 @@ export declare class Collections {
106
106
  * @throws {@link Webflow.InternalServerError}
107
107
  *
108
108
  * @example
109
- * await client.collections.delete("collection_id", "field_id")
109
+ * await client.collections.delete("580e63fc8c9a982ac9b8b745", "580e63fc8c9a982ac9b8b745")
110
110
  */
111
111
  delete(collectionId: string, fieldId: string, requestOptions?: Collections.RequestOptions): Promise<void>;
112
112
  protected _fields: Fields | undefined;