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
@@ -63,7 +63,7 @@ class Items {
63
63
  * @throws {@link Webflow.InternalServerError}
64
64
  *
65
65
  * @example
66
- * await client.collections.items.listItems("collection_id")
66
+ * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745")
67
67
  */
68
68
  listItems(collectionId, request = {}, requestOptions) {
69
69
  var _a;
@@ -98,18 +98,20 @@ class Items {
98
98
  Authorization: yield this._getAuthorizationHeader(),
99
99
  "X-Fern-Language": "JavaScript",
100
100
  "X-Fern-SDK-Name": "webflow-api",
101
- "X-Fern-SDK-Version": "2.3.5",
101
+ "X-Fern-SDK-Version": "2.4.0",
102
+ "User-Agent": "webflow-api/2.4.0",
102
103
  "X-Fern-Runtime": core.RUNTIME.type,
103
104
  "X-Fern-Runtime-Version": core.RUNTIME.version,
104
105
  },
105
106
  contentType: "application/json",
106
107
  queryParameters: _queryParams,
108
+ requestType: "json",
107
109
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
108
110
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
109
111
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
110
112
  });
111
113
  if (_response.ok) {
112
- return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
114
+ return serializers.CollectionItemList.parseOrThrow(_response.body, {
113
115
  unrecognizedObjectKeys: "passthrough",
114
116
  allowUnrecognizedUnionMembers: true,
115
117
  allowUnrecognizedEnumValues: true,
@@ -126,7 +128,13 @@ class Items {
126
128
  case 404:
127
129
  throw new Webflow.NotFoundError(_response.error.body);
128
130
  case 429:
129
- throw new Webflow.TooManyRequestsError(_response.error.body);
131
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
132
+ unrecognizedObjectKeys: "passthrough",
133
+ allowUnrecognizedUnionMembers: true,
134
+ allowUnrecognizedEnumValues: true,
135
+ skipValidation: true,
136
+ breadcrumbsPrefix: ["response"],
137
+ }));
130
138
  case 500:
131
139
  throw new Webflow.InternalServerError(_response.error.body);
132
140
  default:
@@ -152,7 +160,7 @@ class Items {
152
160
  });
153
161
  }
154
162
  /**
155
- * Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use this endpoint.</a> </br></br> Required scope | `CMS:write`
163
+ * <style>.rm-Markdown.markdown-body a{color: #146EF5 !important;}</style> Create Item in a Collection.</br></br> To create items across multiple locales, <a href="https://developers.webflow.com/data/reference/create-item-for-multiple-locales"> please use the bulk item endpoint.</a> </br></br> Required scope | <code>CMS:write</code>
156
164
  *
157
165
  * @param {string} collectionId - Unique identifier for a Collection
158
166
  * @param {Webflow.CollectionItem} request
@@ -165,7 +173,7 @@ class Items {
165
173
  * @throws {@link Webflow.InternalServerError}
166
174
  *
167
175
  * @example
168
- * await client.collections.items.createItem("collection_id", {
176
+ * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
169
177
  * id: "42b720ef280c7a7a3be8cabe",
170
178
  * cmsLocaleId: "653ad57de882f528b32e810e",
171
179
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -189,18 +197,26 @@ class Items {
189
197
  Authorization: yield this._getAuthorizationHeader(),
190
198
  "X-Fern-Language": "JavaScript",
191
199
  "X-Fern-SDK-Name": "webflow-api",
192
- "X-Fern-SDK-Version": "2.3.5",
200
+ "X-Fern-SDK-Version": "2.4.0",
201
+ "User-Agent": "webflow-api/2.4.0",
193
202
  "X-Fern-Runtime": core.RUNTIME.type,
194
203
  "X-Fern-Runtime-Version": core.RUNTIME.version,
195
204
  },
196
205
  contentType: "application/json",
197
- body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
206
+ requestType: "json",
207
+ body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
198
208
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
199
209
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
200
210
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
201
211
  });
202
212
  if (_response.ok) {
203
- return;
213
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
214
+ unrecognizedObjectKeys: "passthrough",
215
+ allowUnrecognizedUnionMembers: true,
216
+ allowUnrecognizedEnumValues: true,
217
+ skipValidation: true,
218
+ breadcrumbsPrefix: ["response"],
219
+ });
204
220
  }
205
221
  if (_response.error.reason === "status-code") {
206
222
  switch (_response.error.statusCode) {
@@ -211,7 +227,13 @@ class Items {
211
227
  case 404:
212
228
  throw new Webflow.NotFoundError(_response.error.body);
213
229
  case 429:
214
- throw new Webflow.TooManyRequestsError(_response.error.body);
230
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
231
+ unrecognizedObjectKeys: "passthrough",
232
+ allowUnrecognizedUnionMembers: true,
233
+ allowUnrecognizedEnumValues: true,
234
+ skipValidation: true,
235
+ breadcrumbsPrefix: ["response"],
236
+ }));
215
237
  case 500:
216
238
  throw new Webflow.InternalServerError(_response.error.body);
217
239
  default:
@@ -250,7 +272,7 @@ class Items {
250
272
  * @throws {@link Webflow.InternalServerError}
251
273
  *
252
274
  * @example
253
- * await client.collections.items.listItemsLive("collection_id")
275
+ * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
254
276
  */
255
277
  listItemsLive(collectionId, request = {}, requestOptions) {
256
278
  var _a;
@@ -285,18 +307,20 @@ class Items {
285
307
  Authorization: yield this._getAuthorizationHeader(),
286
308
  "X-Fern-Language": "JavaScript",
287
309
  "X-Fern-SDK-Name": "webflow-api",
288
- "X-Fern-SDK-Version": "2.3.5",
310
+ "X-Fern-SDK-Version": "2.4.0",
311
+ "User-Agent": "webflow-api/2.4.0",
289
312
  "X-Fern-Runtime": core.RUNTIME.type,
290
313
  "X-Fern-Runtime-Version": core.RUNTIME.version,
291
314
  },
292
315
  contentType: "application/json",
293
316
  queryParameters: _queryParams,
317
+ requestType: "json",
294
318
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
295
319
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
296
320
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
297
321
  });
298
322
  if (_response.ok) {
299
- return yield serializers.CollectionItemList.parseOrThrow(_response.body, {
323
+ return serializers.CollectionItemList.parseOrThrow(_response.body, {
300
324
  unrecognizedObjectKeys: "passthrough",
301
325
  allowUnrecognizedUnionMembers: true,
302
326
  allowUnrecognizedEnumValues: true,
@@ -313,7 +337,13 @@ class Items {
313
337
  case 404:
314
338
  throw new Webflow.NotFoundError(_response.error.body);
315
339
  case 429:
316
- throw new Webflow.TooManyRequestsError(_response.error.body);
340
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
341
+ unrecognizedObjectKeys: "passthrough",
342
+ allowUnrecognizedUnionMembers: true,
343
+ allowUnrecognizedEnumValues: true,
344
+ skipValidation: true,
345
+ breadcrumbsPrefix: ["response"],
346
+ }));
317
347
  case 500:
318
348
  throw new Webflow.InternalServerError(_response.error.body);
319
349
  default:
@@ -352,7 +382,7 @@ class Items {
352
382
  * @throws {@link Webflow.InternalServerError}
353
383
  *
354
384
  * @example
355
- * await client.collections.items.createItemLive("collection_id", {
385
+ * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
356
386
  * id: "42b720ef280c7a7a3be8cabe",
357
387
  * cmsLocaleId: "653ad57de882f528b32e810e",
358
388
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -376,18 +406,26 @@ class Items {
376
406
  Authorization: yield this._getAuthorizationHeader(),
377
407
  "X-Fern-Language": "JavaScript",
378
408
  "X-Fern-SDK-Name": "webflow-api",
379
- "X-Fern-SDK-Version": "2.3.5",
409
+ "X-Fern-SDK-Version": "2.4.0",
410
+ "User-Agent": "webflow-api/2.4.0",
380
411
  "X-Fern-Runtime": core.RUNTIME.type,
381
412
  "X-Fern-Runtime-Version": core.RUNTIME.version,
382
413
  },
383
414
  contentType: "application/json",
384
- body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
415
+ requestType: "json",
416
+ body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
385
417
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
386
418
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
387
419
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
388
420
  });
389
421
  if (_response.ok) {
390
- return;
422
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
423
+ unrecognizedObjectKeys: "passthrough",
424
+ allowUnrecognizedUnionMembers: true,
425
+ allowUnrecognizedEnumValues: true,
426
+ skipValidation: true,
427
+ breadcrumbsPrefix: ["response"],
428
+ });
391
429
  }
392
430
  if (_response.error.reason === "status-code") {
393
431
  switch (_response.error.statusCode) {
@@ -398,7 +436,13 @@ class Items {
398
436
  case 404:
399
437
  throw new Webflow.NotFoundError(_response.error.body);
400
438
  case 429:
401
- throw new Webflow.TooManyRequestsError(_response.error.body);
439
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
440
+ unrecognizedObjectKeys: "passthrough",
441
+ allowUnrecognizedUnionMembers: true,
442
+ allowUnrecognizedEnumValues: true,
443
+ skipValidation: true,
444
+ breadcrumbsPrefix: ["response"],
445
+ }));
402
446
  case 500:
403
447
  throw new Webflow.InternalServerError(_response.error.body);
404
448
  default:
@@ -427,7 +471,7 @@ class Items {
427
471
  * Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
428
472
  *
429
473
  * @param {string} collectionId - Unique identifier for a Collection
430
- * @param {Webflow.collections.BulkCollectionItem} request
474
+ * @param {Webflow.BulkCollectionItem} request
431
475
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
432
476
  *
433
477
  * @throws {@link Webflow.BadRequestError}
@@ -437,7 +481,7 @@ class Items {
437
481
  * @throws {@link Webflow.InternalServerError}
438
482
  *
439
483
  * @example
440
- * await client.collections.items.createItemForMultipleLocales("collection_id", {
484
+ * await client.collections.items.createItemForMultipleLocales("580e63fc8c9a982ac9b8b745", {
441
485
  * id: "580e64008c9a982ac9b8b754"
442
486
  * })
443
487
  */
@@ -451,20 +495,26 @@ class Items {
451
495
  Authorization: yield this._getAuthorizationHeader(),
452
496
  "X-Fern-Language": "JavaScript",
453
497
  "X-Fern-SDK-Name": "webflow-api",
454
- "X-Fern-SDK-Version": "2.3.5",
498
+ "X-Fern-SDK-Version": "2.4.0",
499
+ "User-Agent": "webflow-api/2.4.0",
455
500
  "X-Fern-Runtime": core.RUNTIME.type,
456
501
  "X-Fern-Runtime-Version": core.RUNTIME.version,
457
502
  },
458
503
  contentType: "application/json",
459
- body: yield serializers.collections.BulkCollectionItem.jsonOrThrow(request, {
460
- unrecognizedObjectKeys: "strip",
461
- }),
504
+ requestType: "json",
505
+ body: serializers.BulkCollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
462
506
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
463
507
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
464
508
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
465
509
  });
466
510
  if (_response.ok) {
467
- return;
511
+ return serializers.BulkCollectionItem.parseOrThrow(_response.body, {
512
+ unrecognizedObjectKeys: "passthrough",
513
+ allowUnrecognizedUnionMembers: true,
514
+ allowUnrecognizedEnumValues: true,
515
+ skipValidation: true,
516
+ breadcrumbsPrefix: ["response"],
517
+ });
468
518
  }
469
519
  if (_response.error.reason === "status-code") {
470
520
  switch (_response.error.statusCode) {
@@ -475,7 +525,13 @@ class Items {
475
525
  case 404:
476
526
  throw new Webflow.NotFoundError(_response.error.body);
477
527
  case 429:
478
- throw new Webflow.TooManyRequestsError(_response.error.body);
528
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
529
+ unrecognizedObjectKeys: "passthrough",
530
+ allowUnrecognizedUnionMembers: true,
531
+ allowUnrecognizedEnumValues: true,
532
+ skipValidation: true,
533
+ breadcrumbsPrefix: ["response"],
534
+ }));
479
535
  case 500:
480
536
  throw new Webflow.InternalServerError(_response.error.body);
481
537
  default:
@@ -515,7 +571,7 @@ class Items {
515
571
  * @throws {@link Webflow.InternalServerError}
516
572
  *
517
573
  * @example
518
- * await client.collections.items.getItem("collection_id", "item_id")
574
+ * await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
519
575
  */
520
576
  getItem(collectionId, itemId, request = {}, requestOptions) {
521
577
  var _a;
@@ -532,18 +588,20 @@ class Items {
532
588
  Authorization: yield this._getAuthorizationHeader(),
533
589
  "X-Fern-Language": "JavaScript",
534
590
  "X-Fern-SDK-Name": "webflow-api",
535
- "X-Fern-SDK-Version": "2.3.5",
591
+ "X-Fern-SDK-Version": "2.4.0",
592
+ "User-Agent": "webflow-api/2.4.0",
536
593
  "X-Fern-Runtime": core.RUNTIME.type,
537
594
  "X-Fern-Runtime-Version": core.RUNTIME.version,
538
595
  },
539
596
  contentType: "application/json",
540
597
  queryParameters: _queryParams,
598
+ requestType: "json",
541
599
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
542
600
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
543
601
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
544
602
  });
545
603
  if (_response.ok) {
546
- return yield serializers.CollectionItem.parseOrThrow(_response.body, {
604
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
547
605
  unrecognizedObjectKeys: "passthrough",
548
606
  allowUnrecognizedUnionMembers: true,
549
607
  allowUnrecognizedEnumValues: true,
@@ -560,7 +618,13 @@ class Items {
560
618
  case 404:
561
619
  throw new Webflow.NotFoundError(_response.error.body);
562
620
  case 429:
563
- throw new Webflow.TooManyRequestsError(_response.error.body);
621
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
622
+ unrecognizedObjectKeys: "passthrough",
623
+ allowUnrecognizedUnionMembers: true,
624
+ allowUnrecognizedEnumValues: true,
625
+ skipValidation: true,
626
+ breadcrumbsPrefix: ["response"],
627
+ }));
564
628
  case 500:
565
629
  throw new Webflow.InternalServerError(_response.error.body);
566
630
  default:
@@ -600,7 +664,7 @@ class Items {
600
664
  * @throws {@link Webflow.InternalServerError}
601
665
  *
602
666
  * @example
603
- * await client.collections.items.deleteItem("collection_id", "item_id")
667
+ * await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
604
668
  */
605
669
  deleteItem(collectionId, itemId, request = {}, requestOptions) {
606
670
  var _a;
@@ -617,12 +681,14 @@ class Items {
617
681
  Authorization: yield this._getAuthorizationHeader(),
618
682
  "X-Fern-Language": "JavaScript",
619
683
  "X-Fern-SDK-Name": "webflow-api",
620
- "X-Fern-SDK-Version": "2.3.5",
684
+ "X-Fern-SDK-Version": "2.4.0",
685
+ "User-Agent": "webflow-api/2.4.0",
621
686
  "X-Fern-Runtime": core.RUNTIME.type,
622
687
  "X-Fern-Runtime-Version": core.RUNTIME.version,
623
688
  },
624
689
  contentType: "application/json",
625
690
  queryParameters: _queryParams,
691
+ requestType: "json",
626
692
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
627
693
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
628
694
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -639,7 +705,13 @@ class Items {
639
705
  case 404:
640
706
  throw new Webflow.NotFoundError(_response.error.body);
641
707
  case 429:
642
- 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
+ }));
643
715
  case 500:
644
716
  throw new Webflow.InternalServerError(_response.error.body);
645
717
  default:
@@ -679,7 +751,7 @@ class Items {
679
751
  * @throws {@link Webflow.InternalServerError}
680
752
  *
681
753
  * @example
682
- * await client.collections.items.updateItem("collection_id", "item_id", {
754
+ * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
683
755
  * id: "42b720ef280c7a7a3be8cabe",
684
756
  * cmsLocaleId: "653ad57de882f528b32e810e",
685
757
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -703,18 +775,20 @@ class Items {
703
775
  Authorization: yield this._getAuthorizationHeader(),
704
776
  "X-Fern-Language": "JavaScript",
705
777
  "X-Fern-SDK-Name": "webflow-api",
706
- "X-Fern-SDK-Version": "2.3.5",
778
+ "X-Fern-SDK-Version": "2.4.0",
779
+ "User-Agent": "webflow-api/2.4.0",
707
780
  "X-Fern-Runtime": core.RUNTIME.type,
708
781
  "X-Fern-Runtime-Version": core.RUNTIME.version,
709
782
  },
710
783
  contentType: "application/json",
711
- body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
784
+ requestType: "json",
785
+ body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
712
786
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
713
787
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
714
788
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
715
789
  });
716
790
  if (_response.ok) {
717
- return yield serializers.CollectionItem.parseOrThrow(_response.body, {
791
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
718
792
  unrecognizedObjectKeys: "passthrough",
719
793
  allowUnrecognizedUnionMembers: true,
720
794
  allowUnrecognizedEnumValues: true,
@@ -731,7 +805,13 @@ class Items {
731
805
  case 404:
732
806
  throw new Webflow.NotFoundError(_response.error.body);
733
807
  case 429:
734
- throw new Webflow.TooManyRequestsError(_response.error.body);
808
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
809
+ unrecognizedObjectKeys: "passthrough",
810
+ allowUnrecognizedUnionMembers: true,
811
+ allowUnrecognizedEnumValues: true,
812
+ skipValidation: true,
813
+ breadcrumbsPrefix: ["response"],
814
+ }));
735
815
  case 500:
736
816
  throw new Webflow.InternalServerError(_response.error.body);
737
817
  default:
@@ -771,7 +851,7 @@ class Items {
771
851
  * @throws {@link Webflow.InternalServerError}
772
852
  *
773
853
  * @example
774
- * await client.collections.items.getItemLive("collection_id", "item_id")
854
+ * await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
775
855
  */
776
856
  getItemLive(collectionId, itemId, request = {}, requestOptions) {
777
857
  var _a;
@@ -788,18 +868,20 @@ class Items {
788
868
  Authorization: yield this._getAuthorizationHeader(),
789
869
  "X-Fern-Language": "JavaScript",
790
870
  "X-Fern-SDK-Name": "webflow-api",
791
- "X-Fern-SDK-Version": "2.3.5",
871
+ "X-Fern-SDK-Version": "2.4.0",
872
+ "User-Agent": "webflow-api/2.4.0",
792
873
  "X-Fern-Runtime": core.RUNTIME.type,
793
874
  "X-Fern-Runtime-Version": core.RUNTIME.version,
794
875
  },
795
876
  contentType: "application/json",
796
877
  queryParameters: _queryParams,
878
+ requestType: "json",
797
879
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
798
880
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
799
881
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
800
882
  });
801
883
  if (_response.ok) {
802
- return yield serializers.CollectionItem.parseOrThrow(_response.body, {
884
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
803
885
  unrecognizedObjectKeys: "passthrough",
804
886
  allowUnrecognizedUnionMembers: true,
805
887
  allowUnrecognizedEnumValues: true,
@@ -816,7 +898,13 @@ class Items {
816
898
  case 404:
817
899
  throw new Webflow.NotFoundError(_response.error.body);
818
900
  case 429:
819
- throw new Webflow.TooManyRequestsError(_response.error.body);
901
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
902
+ unrecognizedObjectKeys: "passthrough",
903
+ allowUnrecognizedUnionMembers: true,
904
+ allowUnrecognizedEnumValues: true,
905
+ skipValidation: true,
906
+ breadcrumbsPrefix: ["response"],
907
+ }));
820
908
  case 500:
821
909
  throw new Webflow.InternalServerError(_response.error.body);
822
910
  default:
@@ -842,7 +930,7 @@ class Items {
842
930
  });
843
931
  }
844
932
  /**
845
- * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion. </br></br> Required scope | `CMS:write`
933
+ * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft. This endpoint does not currently support bulk deletion.</br></br> Required scope | `CMS:write`
846
934
  *
847
935
  * @param {string} collectionId - Unique identifier for a Collection
848
936
  * @param {string} itemId - Unique identifier for an Item
@@ -856,7 +944,7 @@ class Items {
856
944
  * @throws {@link Webflow.InternalServerError}
857
945
  *
858
946
  * @example
859
- * await client.collections.items.deleteItemLive("collection_id", "item_id")
947
+ * await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
860
948
  */
861
949
  deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
862
950
  var _a;
@@ -873,12 +961,14 @@ class Items {
873
961
  Authorization: yield this._getAuthorizationHeader(),
874
962
  "X-Fern-Language": "JavaScript",
875
963
  "X-Fern-SDK-Name": "webflow-api",
876
- "X-Fern-SDK-Version": "2.3.5",
964
+ "X-Fern-SDK-Version": "2.4.0",
965
+ "User-Agent": "webflow-api/2.4.0",
877
966
  "X-Fern-Runtime": core.RUNTIME.type,
878
967
  "X-Fern-Runtime-Version": core.RUNTIME.version,
879
968
  },
880
969
  contentType: "application/json",
881
970
  queryParameters: _queryParams,
971
+ requestType: "json",
882
972
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
883
973
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
884
974
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -895,7 +985,13 @@ class Items {
895
985
  case 404:
896
986
  throw new Webflow.NotFoundError(_response.error.body);
897
987
  case 429:
898
- throw new Webflow.TooManyRequestsError(_response.error.body);
988
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
989
+ unrecognizedObjectKeys: "passthrough",
990
+ allowUnrecognizedUnionMembers: true,
991
+ allowUnrecognizedEnumValues: true,
992
+ skipValidation: true,
993
+ breadcrumbsPrefix: ["response"],
994
+ }));
899
995
  case 500:
900
996
  throw new Webflow.InternalServerError(_response.error.body);
901
997
  default:
@@ -935,7 +1031,7 @@ class Items {
935
1031
  * @throws {@link Webflow.InternalServerError}
936
1032
  *
937
1033
  * @example
938
- * await client.collections.items.updateItemLive("collection_id", "item_id", {
1034
+ * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
939
1035
  * id: "42b720ef280c7a7a3be8cabe",
940
1036
  * cmsLocaleId: "653ad57de882f528b32e810e",
941
1037
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -959,18 +1055,20 @@ class Items {
959
1055
  Authorization: yield this._getAuthorizationHeader(),
960
1056
  "X-Fern-Language": "JavaScript",
961
1057
  "X-Fern-SDK-Name": "webflow-api",
962
- "X-Fern-SDK-Version": "2.3.5",
1058
+ "X-Fern-SDK-Version": "2.4.0",
1059
+ "User-Agent": "webflow-api/2.4.0",
963
1060
  "X-Fern-Runtime": core.RUNTIME.type,
964
1061
  "X-Fern-Runtime-Version": core.RUNTIME.version,
965
1062
  },
966
1063
  contentType: "application/json",
967
- body: yield serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
1064
+ requestType: "json",
1065
+ body: serializers.CollectionItem.jsonOrThrow(request, { unrecognizedObjectKeys: "passthrough" }),
968
1066
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
969
1067
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
970
1068
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
971
1069
  });
972
1070
  if (_response.ok) {
973
- return yield serializers.CollectionItem.parseOrThrow(_response.body, {
1071
+ return serializers.CollectionItem.parseOrThrow(_response.body, {
974
1072
  unrecognizedObjectKeys: "passthrough",
975
1073
  allowUnrecognizedUnionMembers: true,
976
1074
  allowUnrecognizedEnumValues: true,
@@ -987,7 +1085,13 @@ class Items {
987
1085
  case 404:
988
1086
  throw new Webflow.NotFoundError(_response.error.body);
989
1087
  case 429:
990
- throw new Webflow.TooManyRequestsError(_response.error.body);
1088
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
1089
+ unrecognizedObjectKeys: "passthrough",
1090
+ allowUnrecognizedUnionMembers: true,
1091
+ allowUnrecognizedEnumValues: true,
1092
+ skipValidation: true,
1093
+ breadcrumbsPrefix: ["response"],
1094
+ }));
991
1095
  case 500:
992
1096
  throw new Webflow.InternalServerError(_response.error.body);
993
1097
  default:
@@ -1026,7 +1130,7 @@ class Items {
1026
1130
  * @throws {@link Webflow.InternalServerError}
1027
1131
  *
1028
1132
  * @example
1029
- * await client.collections.items.publishItem("collection_id", {
1133
+ * await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
1030
1134
  * itemIds: ["itemIds"]
1031
1135
  * })
1032
1136
  */
@@ -1040,12 +1144,14 @@ class Items {
1040
1144
  Authorization: yield this._getAuthorizationHeader(),
1041
1145
  "X-Fern-Language": "JavaScript",
1042
1146
  "X-Fern-SDK-Name": "webflow-api",
1043
- "X-Fern-SDK-Version": "2.3.5",
1147
+ "X-Fern-SDK-Version": "2.4.0",
1148
+ "User-Agent": "webflow-api/2.4.0",
1044
1149
  "X-Fern-Runtime": core.RUNTIME.type,
1045
1150
  "X-Fern-Runtime-Version": core.RUNTIME.version,
1046
1151
  },
1047
1152
  contentType: "application/json",
1048
- body: yield serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
1153
+ requestType: "json",
1154
+ body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
1049
1155
  unrecognizedObjectKeys: "strip",
1050
1156
  }),
1051
1157
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
@@ -1053,7 +1159,13 @@ class Items {
1053
1159
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1054
1160
  });
1055
1161
  if (_response.ok) {
1056
- return;
1162
+ return serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
1163
+ unrecognizedObjectKeys: "passthrough",
1164
+ allowUnrecognizedUnionMembers: true,
1165
+ allowUnrecognizedEnumValues: true,
1166
+ skipValidation: true,
1167
+ breadcrumbsPrefix: ["response"],
1168
+ });
1057
1169
  }
1058
1170
  if (_response.error.reason === "status-code") {
1059
1171
  switch (_response.error.statusCode) {
@@ -1064,7 +1176,13 @@ class Items {
1064
1176
  case 404:
1065
1177
  throw new Webflow.NotFoundError(_response.error.body);
1066
1178
  case 429:
1067
- throw new Webflow.TooManyRequestsError(_response.error.body);
1179
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
1180
+ unrecognizedObjectKeys: "passthrough",
1181
+ allowUnrecognizedUnionMembers: true,
1182
+ allowUnrecognizedEnumValues: true,
1183
+ skipValidation: true,
1184
+ breadcrumbsPrefix: ["response"],
1185
+ }));
1068
1186
  case 500:
1069
1187
  throw new Webflow.InternalServerError(_response.error.body);
1070
1188
  default:
@@ -1,6 +1,5 @@
1
1
  export { type ItemsListItemsRequest } from "./ItemsListItemsRequest";
2
2
  export { type ItemsListItemsLiveRequest } from "./ItemsListItemsLiveRequest";
3
- export { type BulkCollectionItem } from "./BulkCollectionItem";
4
3
  export { type ItemsGetItemRequest } from "./ItemsGetItemRequest";
5
4
  export { type ItemsDeleteItemRequest } from "./ItemsDeleteItemRequest";
6
5
  export { type ItemsGetItemLiveRequest } from "./ItemsGetItemLiveRequest";
@@ -0,0 +1,7 @@
1
+ /**
2
+ * This file was auto-generated by Fern from our API Definition.
3
+ */
4
+ export interface ItemsPublishItemResponse {
5
+ publishedItemIds?: string[];
6
+ errors?: string[];
7
+ }
@@ -2,4 +2,4 @@ export * from "./ItemsListItemsRequestSortBy";
2
2
  export * from "./ItemsListItemsRequestSortOrder";
3
3
  export * from "./ItemsListItemsLiveRequestSortBy";
4
4
  export * from "./ItemsListItemsLiveRequestSortOrder";
5
- export * from "./BulkCollectionItemFieldData";
5
+ export * from "./ItemsPublishItemResponse";
@@ -18,4 +18,4 @@ __exportStar(require("./ItemsListItemsRequestSortBy"), exports);
18
18
  __exportStar(require("./ItemsListItemsRequestSortOrder"), exports);
19
19
  __exportStar(require("./ItemsListItemsLiveRequestSortBy"), exports);
20
20
  __exportStar(require("./ItemsListItemsLiveRequestSortOrder"), exports);
21
- __exportStar(require("./BulkCollectionItemFieldData"), exports);
21
+ __exportStar(require("./ItemsPublishItemResponse"), exports);
@@ -38,7 +38,7 @@ export declare class Ecommerce {
38
38
  * @throws {@link Webflow.InternalServerError}
39
39
  *
40
40
  * @example
41
- * await client.ecommerce.getSettings("site_id")
41
+ * await client.ecommerce.getSettings("580e63e98c9a982ac9b8b741")
42
42
  */
43
43
  getSettings(siteId: string, requestOptions?: Ecommerce.RequestOptions): Promise<Webflow.EcommerceSettings>;
44
44
  protected _getAuthorizationHeader(): Promise<string>;