webflow-api 2.3.6 → 2.4.2

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 (348) hide show
  1. package/api/resources/accessGroups/client/Client.d.ts +1 -1
  2. package/api/resources/accessGroups/client/Client.js +6 -4
  3. package/api/resources/assets/client/Client.d.ts +8 -8
  4. package/api/resources/assets/client/Client.js +50 -34
  5. package/api/resources/collections/client/Client.d.ts +5 -5
  6. package/api/resources/collections/client/Client.js +29 -19
  7. package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  8. package/api/resources/collections/resources/fields/client/Client.js +15 -11
  9. package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  10. package/api/resources/collections/resources/items/client/Client.d.ts +17 -17
  11. package/api/resources/collections/resources/items/client/Client.js +101 -55
  12. package/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  13. package/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
  14. package/api/resources/collections/resources/items/types/index.d.ts +1 -1
  15. package/api/resources/collections/resources/items/types/index.js +1 -1
  16. package/api/resources/ecommerce/client/Client.d.ts +1 -1
  17. package/api/resources/ecommerce/client/Client.js +6 -4
  18. package/api/resources/forms/client/Client.d.ts +5 -5
  19. package/api/resources/forms/client/Client.js +31 -23
  20. package/api/resources/index.d.ts +3 -2
  21. package/api/resources/index.js +4 -3
  22. package/api/resources/inventory/client/Client.d.ts +3 -3
  23. package/api/resources/inventory/client/Client.js +14 -10
  24. package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
  25. package/api/resources/orders/client/Client.d.ts +6 -6
  26. package/api/resources/orders/client/Client.js +39 -29
  27. package/api/resources/pages/client/Client.d.ts +19 -10
  28. package/api/resources/pages/client/Client.js +44 -25
  29. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
  30. package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  31. package/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
  32. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
  33. package/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
  34. package/api/resources/pages/resources/scripts/client/Client.js +20 -14
  35. package/api/resources/products/client/Client.d.ts +6 -6
  36. package/api/resources/products/client/Client.js +40 -28
  37. package/api/resources/scripts/client/Client.d.ts +3 -3
  38. package/api/resources/scripts/client/Client.js +20 -14
  39. package/api/resources/sites/client/Client.d.ts +4 -4
  40. package/api/resources/sites/client/Client.js +30 -16
  41. package/api/resources/sites/index.d.ts +1 -0
  42. package/api/resources/sites/index.js +1 -0
  43. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  44. package/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
  45. package/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
  46. package/api/resources/sites/resources/scripts/client/Client.js +26 -18
  47. package/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
  48. package/api/resources/sites/types/index.d.ts +1 -0
  49. package/api/resources/sites/types/index.js +17 -0
  50. package/api/resources/token/client/Client.js +8 -4
  51. package/api/resources/users/client/Client.d.ts +5 -5
  52. package/api/resources/users/client/Client.js +31 -21
  53. package/api/resources/webhooks/client/Client.d.ts +7 -7
  54. package/api/resources/webhooks/client/Client.js +27 -19
  55. package/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
  56. package/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
  57. package/api/types/CollectionItemFieldData.d.ts +2 -0
  58. package/api/types/ConflictErrorBody.d.ts +10 -1
  59. package/api/types/DuplicateUserEmail.d.ts +10 -1
  60. package/api/types/MissingScopes.d.ts +10 -1
  61. package/api/types/NotEnterprisePlanSite.d.ts +10 -1
  62. package/api/types/Page.d.ts +5 -1
  63. package/api/types/UserLimitReached.d.ts +10 -1
  64. package/api/types/UsersNotEnabled.d.ts +10 -1
  65. package/api/types/index.d.ts +4 -5
  66. package/api/types/index.js +4 -5
  67. package/core/fetcher/Fetcher.d.ts +4 -1
  68. package/core/fetcher/Fetcher.js +19 -185
  69. package/core/fetcher/createRequestUrl.d.ts +1 -0
  70. package/core/fetcher/createRequestUrl.js +13 -0
  71. package/core/fetcher/getFetchFn.d.ts +4 -0
  72. package/core/fetcher/getFetchFn.js +59 -0
  73. package/core/fetcher/getRequestBody.d.ts +7 -0
  74. package/core/fetcher/getRequestBody.js +23 -0
  75. package/core/fetcher/getResponseBody.d.ts +1 -0
  76. package/core/fetcher/getResponseBody.js +52 -0
  77. package/core/fetcher/makeRequest.d.ts +1 -0
  78. package/core/fetcher/makeRequest.js +42 -0
  79. package/core/fetcher/requestWithRetries.d.ts +1 -0
  80. package/core/fetcher/requestWithRetries.js +32 -0
  81. package/core/fetcher/signals.d.ts +12 -0
  82. package/core/fetcher/signals.js +37 -0
  83. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  84. package/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  85. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  86. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  87. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  88. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  89. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  90. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  91. package/core/runtime/runtime.d.ts +1 -0
  92. package/core/runtime/runtime.js +1 -0
  93. package/core/schemas/Schema.d.ts +8 -4
  94. package/core/schemas/Schema.js +1 -0
  95. package/core/schemas/builders/bigint/bigint.d.ts +2 -0
  96. package/core/schemas/builders/bigint/bigint.js +50 -0
  97. package/core/schemas/builders/bigint/index.d.ts +1 -0
  98. package/core/schemas/builders/bigint/index.js +5 -0
  99. package/core/schemas/builders/index.d.ts +1 -0
  100. package/core/schemas/builders/index.js +1 -0
  101. package/core/schemas/builders/lazy/lazy.d.ts +2 -2
  102. package/core/schemas/builders/lazy/lazy.js +8 -19
  103. package/core/schemas/builders/lazy/lazyObject.js +1 -10
  104. package/core/schemas/builders/list/list.js +31 -44
  105. package/core/schemas/builders/object/object.js +90 -111
  106. package/core/schemas/builders/object/types.d.ts +2 -2
  107. package/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  108. package/core/schemas/builders/record/record.js +49 -60
  109. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  110. package/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  111. package/core/schemas/builders/set/set.js +6 -15
  112. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  113. package/core/schemas/builders/union/union.js +51 -62
  114. package/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  115. package/core/schemas/utils/maybeSkipValidation.js +3 -12
  116. package/dist/api/resources/accessGroups/client/Client.d.ts +1 -1
  117. package/dist/api/resources/accessGroups/client/Client.js +6 -4
  118. package/dist/api/resources/assets/client/Client.d.ts +8 -8
  119. package/dist/api/resources/assets/client/Client.js +50 -34
  120. package/dist/api/resources/collections/client/Client.d.ts +5 -5
  121. package/dist/api/resources/collections/client/Client.js +29 -19
  122. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  123. package/dist/api/resources/collections/resources/fields/client/Client.js +15 -11
  124. package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  125. package/dist/api/resources/collections/resources/items/client/Client.d.ts +17 -17
  126. package/dist/api/resources/collections/resources/items/client/Client.js +101 -55
  127. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  128. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +7 -0
  129. package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
  130. package/dist/api/resources/collections/resources/items/types/index.js +1 -1
  131. package/dist/api/resources/ecommerce/client/Client.d.ts +1 -1
  132. package/dist/api/resources/ecommerce/client/Client.js +6 -4
  133. package/dist/api/resources/forms/client/Client.d.ts +5 -5
  134. package/dist/api/resources/forms/client/Client.js +31 -23
  135. package/dist/api/resources/index.d.ts +3 -2
  136. package/dist/api/resources/index.js +4 -3
  137. package/dist/api/resources/inventory/client/Client.d.ts +3 -3
  138. package/dist/api/resources/inventory/client/Client.js +14 -10
  139. package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +1 -1
  140. package/dist/api/resources/orders/client/Client.d.ts +6 -6
  141. package/dist/api/resources/orders/client/Client.js +39 -29
  142. package/dist/api/resources/pages/client/Client.d.ts +19 -10
  143. package/dist/api/resources/pages/client/Client.js +44 -25
  144. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +3 -1
  145. package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  146. package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +3 -1
  147. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +6 -3
  148. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +5 -5
  149. package/dist/api/resources/pages/resources/scripts/client/Client.js +20 -14
  150. package/dist/api/resources/products/client/Client.d.ts +6 -6
  151. package/dist/api/resources/products/client/Client.js +40 -28
  152. package/dist/api/resources/scripts/client/Client.d.ts +3 -3
  153. package/dist/api/resources/scripts/client/Client.js +20 -14
  154. package/dist/api/resources/sites/client/Client.d.ts +4 -4
  155. package/dist/api/resources/sites/client/Client.js +30 -16
  156. package/dist/api/resources/sites/index.d.ts +1 -0
  157. package/dist/api/resources/sites/index.js +1 -0
  158. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +1 -1
  159. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +6 -4
  160. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +6 -6
  161. package/dist/api/resources/sites/resources/scripts/client/Client.js +26 -18
  162. package/dist/api/resources/sites/types/SitesPublishResponse.d.ts +10 -0
  163. package/dist/api/resources/sites/types/index.d.ts +1 -0
  164. package/dist/api/resources/sites/types/index.js +17 -0
  165. package/dist/api/resources/token/client/Client.js +8 -4
  166. package/dist/api/resources/users/client/Client.d.ts +5 -5
  167. package/dist/api/resources/users/client/Client.js +31 -21
  168. package/dist/api/resources/webhooks/client/Client.d.ts +7 -7
  169. package/dist/api/resources/webhooks/client/Client.js +27 -19
  170. package/dist/api/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +3 -6
  171. package/dist/api/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.d.ts +2 -0
  172. package/dist/api/types/CollectionItemFieldData.d.ts +2 -0
  173. package/dist/api/types/ConflictErrorBody.d.ts +10 -1
  174. package/dist/api/types/DuplicateUserEmail.d.ts +10 -1
  175. package/dist/api/types/MissingScopes.d.ts +10 -1
  176. package/dist/api/types/NotEnterprisePlanSite.d.ts +10 -1
  177. package/dist/api/types/Page.d.ts +5 -1
  178. package/dist/api/types/UserLimitReached.d.ts +10 -1
  179. package/dist/api/types/UsersNotEnabled.d.ts +10 -1
  180. package/dist/api/types/index.d.ts +4 -5
  181. package/dist/api/types/index.js +4 -5
  182. package/dist/core/fetcher/Fetcher.d.ts +4 -1
  183. package/dist/core/fetcher/Fetcher.js +19 -185
  184. package/dist/core/fetcher/createRequestUrl.d.ts +1 -0
  185. package/dist/core/fetcher/createRequestUrl.js +13 -0
  186. package/dist/core/fetcher/getFetchFn.d.ts +4 -0
  187. package/dist/core/fetcher/getFetchFn.js +59 -0
  188. package/dist/core/fetcher/getRequestBody.d.ts +7 -0
  189. package/dist/core/fetcher/getRequestBody.js +23 -0
  190. package/dist/core/fetcher/getResponseBody.d.ts +1 -0
  191. package/dist/core/fetcher/getResponseBody.js +52 -0
  192. package/dist/core/fetcher/makeRequest.d.ts +1 -0
  193. package/dist/core/fetcher/makeRequest.js +42 -0
  194. package/dist/core/fetcher/requestWithRetries.d.ts +1 -0
  195. package/dist/core/fetcher/requestWithRetries.js +32 -0
  196. package/dist/core/fetcher/signals.d.ts +12 -0
  197. package/dist/core/fetcher/signals.js +37 -0
  198. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.d.ts +30 -0
  199. package/dist/core/fetcher/stream-wrappers/Node18UniversalStreamWrapper.js +247 -0
  200. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +22 -0
  201. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +124 -0
  202. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +31 -0
  203. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.js +229 -0
  204. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +18 -0
  205. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +50 -0
  206. package/dist/core/runtime/runtime.d.ts +1 -0
  207. package/dist/core/runtime/runtime.js +1 -0
  208. package/dist/core/schemas/Schema.d.ts +8 -4
  209. package/dist/core/schemas/Schema.js +1 -0
  210. package/dist/core/schemas/builders/bigint/bigint.d.ts +2 -0
  211. package/dist/core/schemas/builders/bigint/bigint.js +50 -0
  212. package/dist/core/schemas/builders/bigint/index.d.ts +1 -0
  213. package/dist/core/schemas/builders/bigint/index.js +5 -0
  214. package/dist/core/schemas/builders/index.d.ts +1 -0
  215. package/dist/core/schemas/builders/index.js +1 -0
  216. package/dist/core/schemas/builders/lazy/lazy.d.ts +2 -2
  217. package/dist/core/schemas/builders/lazy/lazy.js +8 -19
  218. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -10
  219. package/dist/core/schemas/builders/list/list.js +31 -44
  220. package/dist/core/schemas/builders/object/object.js +90 -111
  221. package/dist/core/schemas/builders/object/types.d.ts +2 -2
  222. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +3 -12
  223. package/dist/core/schemas/builders/record/record.js +49 -60
  224. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +2 -2
  225. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +18 -21
  226. package/dist/core/schemas/builders/set/set.js +6 -15
  227. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +21 -32
  228. package/dist/core/schemas/builders/union/union.js +51 -62
  229. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +4 -0
  230. package/dist/core/schemas/utils/maybeSkipValidation.js +3 -12
  231. package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  232. package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  233. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
  234. package/dist/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
  235. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  236. package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
  237. package/dist/serialization/resources/index.d.ts +3 -2
  238. package/dist/serialization/resources/index.js +4 -3
  239. package/dist/serialization/resources/sites/index.d.ts +1 -0
  240. package/dist/serialization/resources/sites/index.js +1 -0
  241. package/dist/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
  242. package/dist/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
  243. package/dist/serialization/resources/sites/types/index.d.ts +1 -0
  244. package/dist/serialization/resources/sites/types/index.js +17 -0
  245. package/dist/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
  246. package/{serialization/resources/collections/resources/items/client/requests → dist/serialization/types}/BulkCollectionItem.js +2 -2
  247. package/dist/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
  248. package/dist/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
  249. package/dist/serialization/types/CollectionItemFieldData.d.ts +1 -0
  250. package/dist/serialization/types/ConflictErrorBody.d.ts +8 -4
  251. package/dist/serialization/types/ConflictErrorBody.js +7 -3
  252. package/dist/serialization/types/DuplicateUserEmail.d.ts +7 -2
  253. package/dist/serialization/types/DuplicateUserEmail.js +31 -2
  254. package/dist/serialization/types/MissingScopes.d.ts +7 -2
  255. package/dist/serialization/types/MissingScopes.js +31 -2
  256. package/dist/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
  257. package/dist/serialization/types/NotEnterprisePlanSite.js +31 -2
  258. package/dist/serialization/types/Page.d.ts +3 -1
  259. package/dist/serialization/types/Page.js +3 -1
  260. package/dist/serialization/types/UserLimitReached.d.ts +7 -2
  261. package/dist/serialization/types/UserLimitReached.js +31 -2
  262. package/dist/serialization/types/UsersNotEnabled.d.ts +7 -2
  263. package/dist/serialization/types/UsersNotEnabled.js +31 -2
  264. package/dist/serialization/types/index.d.ts +3 -5
  265. package/dist/serialization/types/index.js +3 -5
  266. package/dist/version.d.ts +1 -0
  267. package/dist/version.js +4 -0
  268. package/dist/wrapper/ItemsClient.d.ts +49 -1
  269. package/dist/wrapper/ItemsClient.js +213 -6
  270. package/dist/wrapper/WebflowClient.js +9 -0
  271. package/package.json +7 -2
  272. package/reference.md +5790 -0
  273. package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  274. package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  275. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.d.ts +13 -0
  276. package/serialization/{types/PageDetailsSeo.js → resources/collections/resources/items/types/ItemsPublishItemResponse.js} +5 -5
  277. package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  278. package/serialization/resources/collections/resources/items/types/index.js +1 -1
  279. package/serialization/resources/index.d.ts +3 -2
  280. package/serialization/resources/index.js +4 -3
  281. package/serialization/resources/sites/index.d.ts +1 -0
  282. package/serialization/resources/sites/index.js +1 -0
  283. package/serialization/resources/sites/types/SitesPublishResponse.d.ts +14 -0
  284. package/serialization/resources/sites/types/SitesPublishResponse.js +35 -0
  285. package/serialization/resources/sites/types/index.d.ts +1 -0
  286. package/serialization/resources/sites/types/index.js +17 -0
  287. package/serialization/{resources/collections/resources/items/client/requests → types}/BulkCollectionItem.d.ts +5 -5
  288. package/{dist/serialization/resources/collections/resources/items/client/requests → serialization/types}/BulkCollectionItem.js +2 -2
  289. package/serialization/types/BulkCollectionItemFieldData.d.ts +14 -0
  290. package/serialization/{resources/collections/resources/items/types → types}/BulkCollectionItemFieldData.js +1 -1
  291. package/serialization/types/CollectionItemFieldData.d.ts +1 -0
  292. package/serialization/types/ConflictErrorBody.d.ts +8 -4
  293. package/serialization/types/ConflictErrorBody.js +7 -3
  294. package/serialization/types/DuplicateUserEmail.d.ts +7 -2
  295. package/serialization/types/DuplicateUserEmail.js +31 -2
  296. package/serialization/types/MissingScopes.d.ts +7 -2
  297. package/serialization/types/MissingScopes.js +31 -2
  298. package/serialization/types/NotEnterprisePlanSite.d.ts +7 -2
  299. package/serialization/types/NotEnterprisePlanSite.js +31 -2
  300. package/serialization/types/Page.d.ts +3 -1
  301. package/serialization/types/Page.js +3 -1
  302. package/serialization/types/UserLimitReached.d.ts +7 -2
  303. package/serialization/types/UserLimitReached.js +31 -2
  304. package/serialization/types/UsersNotEnabled.d.ts +7 -2
  305. package/serialization/types/UsersNotEnabled.js +31 -2
  306. package/serialization/types/index.d.ts +3 -5
  307. package/serialization/types/index.js +3 -5
  308. package/version.d.ts +1 -0
  309. package/version.js +4 -0
  310. package/wrapper/ItemsClient.d.ts +49 -1
  311. package/wrapper/ItemsClient.js +213 -6
  312. package/wrapper/WebflowClient.js +9 -0
  313. package/api/types/PageDetails.d.ts +0 -41
  314. package/api/types/PageDetailsOpenGraph.d.ts +0 -16
  315. package/api/types/PageDetailsSeo.d.ts +0 -12
  316. package/dist/api/types/PageDetails.d.ts +0 -41
  317. package/dist/api/types/PageDetailsOpenGraph.d.ts +0 -16
  318. package/dist/api/types/PageDetailsOpenGraph.js +0 -5
  319. package/dist/api/types/PageDetailsSeo.d.ts +0 -12
  320. package/dist/api/types/PageDetailsSeo.js +0 -5
  321. package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
  322. package/dist/serialization/types/OauthScope.d.ts +0 -10
  323. package/dist/serialization/types/OauthScope.js +0 -54
  324. package/dist/serialization/types/PageDetails.d.ts +0 -29
  325. package/dist/serialization/types/PageDetails.js +0 -50
  326. package/dist/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
  327. package/dist/serialization/types/PageDetailsOpenGraph.js +0 -36
  328. package/dist/serialization/types/PageDetailsSeo.d.ts +0 -13
  329. package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +0 -13
  330. package/serialization/types/OauthScope.d.ts +0 -10
  331. package/serialization/types/OauthScope.js +0 -54
  332. package/serialization/types/PageDetails.d.ts +0 -29
  333. package/serialization/types/PageDetails.js +0 -50
  334. package/serialization/types/PageDetailsOpenGraph.d.ts +0 -15
  335. package/serialization/types/PageDetailsOpenGraph.js +0 -36
  336. package/serialization/types/PageDetailsSeo.d.ts +0 -13
  337. /package/api/resources/collections/resources/items/{client/requests/BulkCollectionItem.js → types/ItemsPublishItemResponse.js} +0 -0
  338. /package/api/resources/{collections/resources/items/types/BulkCollectionItemFieldData.js → sites/types/SitesPublishResponse.js} +0 -0
  339. /package/{dist/api/resources/collections/resources/items/client/requests → api/types}/BulkCollectionItem.js +0 -0
  340. /package/{dist/api/resources/collections/resources/items → api}/types/BulkCollectionItemFieldData.js +0 -0
  341. /package/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
  342. /package/api/types/{OauthScope.js → OAuthScope.js} +0 -0
  343. /package/{api/types/PageDetails.js → dist/api/resources/collections/resources/items/types/ItemsPublishItemResponse.js} +0 -0
  344. /package/{api/types/PageDetailsOpenGraph.js → dist/api/resources/sites/types/SitesPublishResponse.js} +0 -0
  345. /package/{api/types/PageDetailsSeo.js → dist/api/types/BulkCollectionItem.js} +0 -0
  346. /package/dist/api/types/{PageDetails.js → BulkCollectionItemFieldData.js} +0 -0
  347. /package/dist/api/types/{OauthScope.d.ts → OAuthScope.d.ts} +0 -0
  348. /package/dist/api/types/{OauthScope.js → OAuthScope.js} +0 -0
@@ -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.6",
77
+ "X-Fern-SDK-Version": "2.4.2",
78
+ "User-Agent": "webflow-api/2.4.2",
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,7 @@ class Assets {
101
103
  case 404:
102
104
  throw new Webflow.NotFoundError(_response.error.body);
103
105
  case 429:
104
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
106
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
105
107
  unrecognizedObjectKeys: "passthrough",
106
108
  allowUnrecognizedUnionMembers: true,
107
109
  allowUnrecognizedEnumValues: true,
@@ -146,7 +148,7 @@ class Assets {
146
148
  * @throws {@link Webflow.InternalServerError}
147
149
  *
148
150
  * @example
149
- * await client.assets.create("site_id", {
151
+ * await client.assets.create("580e63e98c9a982ac9b8b741", {
150
152
  * fileName: "file.png",
151
153
  * fileHash: "3c7d87c9575702bc3b1e991f4d3c638e"
152
154
  * })
@@ -161,18 +163,20 @@ class Assets {
161
163
  Authorization: yield this._getAuthorizationHeader(),
162
164
  "X-Fern-Language": "JavaScript",
163
165
  "X-Fern-SDK-Name": "webflow-api",
164
- "X-Fern-SDK-Version": "2.3.6",
166
+ "X-Fern-SDK-Version": "2.4.2",
167
+ "User-Agent": "webflow-api/2.4.2",
165
168
  "X-Fern-Runtime": core.RUNTIME.type,
166
169
  "X-Fern-Runtime-Version": core.RUNTIME.version,
167
170
  },
168
171
  contentType: "application/json",
169
- body: yield serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
172
+ requestType: "json",
173
+ body: serializers.AssetsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
170
174
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
171
175
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
172
176
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
173
177
  });
174
178
  if (_response.ok) {
175
- return yield serializers.AssetUpload.parseOrThrow(_response.body, {
179
+ return serializers.AssetUpload.parseOrThrow(_response.body, {
176
180
  unrecognizedObjectKeys: "passthrough",
177
181
  allowUnrecognizedUnionMembers: true,
178
182
  allowUnrecognizedEnumValues: true,
@@ -189,7 +193,7 @@ class Assets {
189
193
  case 404:
190
194
  throw new Webflow.NotFoundError(_response.error.body);
191
195
  case 429:
192
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
196
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
193
197
  unrecognizedObjectKeys: "passthrough",
194
198
  allowUnrecognizedUnionMembers: true,
195
199
  allowUnrecognizedEnumValues: true,
@@ -233,7 +237,7 @@ class Assets {
233
237
  * @throws {@link Webflow.InternalServerError}
234
238
  *
235
239
  * @example
236
- * await client.assets.get("asset_id")
240
+ * await client.assets.get("580e63fc8c9a982ac9b8b745")
237
241
  */
238
242
  get(assetId, requestOptions) {
239
243
  var _a;
@@ -245,17 +249,19 @@ class Assets {
245
249
  Authorization: yield this._getAuthorizationHeader(),
246
250
  "X-Fern-Language": "JavaScript",
247
251
  "X-Fern-SDK-Name": "webflow-api",
248
- "X-Fern-SDK-Version": "2.3.6",
252
+ "X-Fern-SDK-Version": "2.4.2",
253
+ "User-Agent": "webflow-api/2.4.2",
249
254
  "X-Fern-Runtime": core.RUNTIME.type,
250
255
  "X-Fern-Runtime-Version": core.RUNTIME.version,
251
256
  },
252
257
  contentType: "application/json",
258
+ requestType: "json",
253
259
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
254
260
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
255
261
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
256
262
  });
257
263
  if (_response.ok) {
258
- return yield serializers.Asset.parseOrThrow(_response.body, {
264
+ return serializers.Asset.parseOrThrow(_response.body, {
259
265
  unrecognizedObjectKeys: "passthrough",
260
266
  allowUnrecognizedUnionMembers: true,
261
267
  allowUnrecognizedEnumValues: true,
@@ -272,7 +278,7 @@ class Assets {
272
278
  case 404:
273
279
  throw new Webflow.NotFoundError(_response.error.body);
274
280
  case 429:
275
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
281
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
276
282
  unrecognizedObjectKeys: "passthrough",
277
283
  allowUnrecognizedUnionMembers: true,
278
284
  allowUnrecognizedEnumValues: true,
@@ -316,7 +322,7 @@ class Assets {
316
322
  * @throws {@link Webflow.InternalServerError}
317
323
  *
318
324
  * @example
319
- * await client.assets.delete("asset_id")
325
+ * await client.assets.delete("580e63fc8c9a982ac9b8b745")
320
326
  */
321
327
  delete(assetId, requestOptions) {
322
328
  var _a;
@@ -328,11 +334,13 @@ class Assets {
328
334
  Authorization: yield this._getAuthorizationHeader(),
329
335
  "X-Fern-Language": "JavaScript",
330
336
  "X-Fern-SDK-Name": "webflow-api",
331
- "X-Fern-SDK-Version": "2.3.6",
337
+ "X-Fern-SDK-Version": "2.4.2",
338
+ "User-Agent": "webflow-api/2.4.2",
332
339
  "X-Fern-Runtime": core.RUNTIME.type,
333
340
  "X-Fern-Runtime-Version": core.RUNTIME.version,
334
341
  },
335
342
  contentType: "application/json",
343
+ requestType: "json",
336
344
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
337
345
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
338
346
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -349,7 +357,7 @@ class Assets {
349
357
  case 404:
350
358
  throw new Webflow.NotFoundError(_response.error.body);
351
359
  case 429:
352
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
360
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
353
361
  unrecognizedObjectKeys: "passthrough",
354
362
  allowUnrecognizedUnionMembers: true,
355
363
  allowUnrecognizedEnumValues: true,
@@ -394,7 +402,7 @@ class Assets {
394
402
  * @throws {@link Webflow.InternalServerError}
395
403
  *
396
404
  * @example
397
- * await client.assets.update("asset_id", {
405
+ * await client.assets.update("580e63fc8c9a982ac9b8b745", {
398
406
  * displayName: "bulldoze.png"
399
407
  * })
400
408
  */
@@ -408,18 +416,20 @@ class Assets {
408
416
  Authorization: yield this._getAuthorizationHeader(),
409
417
  "X-Fern-Language": "JavaScript",
410
418
  "X-Fern-SDK-Name": "webflow-api",
411
- "X-Fern-SDK-Version": "2.3.6",
419
+ "X-Fern-SDK-Version": "2.4.2",
420
+ "User-Agent": "webflow-api/2.4.2",
412
421
  "X-Fern-Runtime": core.RUNTIME.type,
413
422
  "X-Fern-Runtime-Version": core.RUNTIME.version,
414
423
  },
415
424
  contentType: "application/json",
416
- body: yield serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
425
+ requestType: "json",
426
+ body: serializers.AssetsUpdateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
417
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
418
428
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
419
429
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
420
430
  });
421
431
  if (_response.ok) {
422
- return yield serializers.Asset.parseOrThrow(_response.body, {
432
+ return serializers.Asset.parseOrThrow(_response.body, {
423
433
  unrecognizedObjectKeys: "passthrough",
424
434
  allowUnrecognizedUnionMembers: true,
425
435
  allowUnrecognizedEnumValues: true,
@@ -436,7 +446,7 @@ class Assets {
436
446
  case 404:
437
447
  throw new Webflow.NotFoundError(_response.error.body);
438
448
  case 429:
439
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
449
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
440
450
  unrecognizedObjectKeys: "passthrough",
441
451
  allowUnrecognizedUnionMembers: true,
442
452
  allowUnrecognizedEnumValues: true,
@@ -480,7 +490,7 @@ class Assets {
480
490
  * @throws {@link Webflow.InternalServerError}
481
491
  *
482
492
  * @example
483
- * await client.assets.listFolders("site_id")
493
+ * await client.assets.listFolders("580e63e98c9a982ac9b8b741")
484
494
  */
485
495
  listFolders(siteId, requestOptions) {
486
496
  var _a;
@@ -492,17 +502,19 @@ class Assets {
492
502
  Authorization: yield this._getAuthorizationHeader(),
493
503
  "X-Fern-Language": "JavaScript",
494
504
  "X-Fern-SDK-Name": "webflow-api",
495
- "X-Fern-SDK-Version": "2.3.6",
505
+ "X-Fern-SDK-Version": "2.4.2",
506
+ "User-Agent": "webflow-api/2.4.2",
496
507
  "X-Fern-Runtime": core.RUNTIME.type,
497
508
  "X-Fern-Runtime-Version": core.RUNTIME.version,
498
509
  },
499
510
  contentType: "application/json",
511
+ requestType: "json",
500
512
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
501
513
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
502
514
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
503
515
  });
504
516
  if (_response.ok) {
505
- return yield serializers.AssetFolderList.parseOrThrow(_response.body, {
517
+ return serializers.AssetFolderList.parseOrThrow(_response.body, {
506
518
  unrecognizedObjectKeys: "passthrough",
507
519
  allowUnrecognizedUnionMembers: true,
508
520
  allowUnrecognizedEnumValues: true,
@@ -519,7 +531,7 @@ class Assets {
519
531
  case 404:
520
532
  throw new Webflow.NotFoundError(_response.error.body);
521
533
  case 429:
522
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
534
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
523
535
  unrecognizedObjectKeys: "passthrough",
524
536
  allowUnrecognizedUnionMembers: true,
525
537
  allowUnrecognizedEnumValues: true,
@@ -564,7 +576,7 @@ class Assets {
564
576
  * @throws {@link Webflow.InternalServerError}
565
577
  *
566
578
  * @example
567
- * await client.assets.createFolder("site_id", {
579
+ * await client.assets.createFolder("580e63e98c9a982ac9b8b741", {
568
580
  * displayName: "my asset folder"
569
581
  * })
570
582
  */
@@ -578,18 +590,20 @@ class Assets {
578
590
  Authorization: yield this._getAuthorizationHeader(),
579
591
  "X-Fern-Language": "JavaScript",
580
592
  "X-Fern-SDK-Name": "webflow-api",
581
- "X-Fern-SDK-Version": "2.3.6",
593
+ "X-Fern-SDK-Version": "2.4.2",
594
+ "User-Agent": "webflow-api/2.4.2",
582
595
  "X-Fern-Runtime": core.RUNTIME.type,
583
596
  "X-Fern-Runtime-Version": core.RUNTIME.version,
584
597
  },
585
598
  contentType: "application/json",
586
- body: yield serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
599
+ requestType: "json",
600
+ body: serializers.AssetsCreateFolderRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
587
601
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
588
602
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
589
603
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
590
604
  });
591
605
  if (_response.ok) {
592
- return yield serializers.AssetFolder.parseOrThrow(_response.body, {
606
+ return serializers.AssetFolder.parseOrThrow(_response.body, {
593
607
  unrecognizedObjectKeys: "passthrough",
594
608
  allowUnrecognizedUnionMembers: true,
595
609
  allowUnrecognizedEnumValues: true,
@@ -606,7 +620,7 @@ class Assets {
606
620
  case 404:
607
621
  throw new Webflow.NotFoundError(_response.error.body);
608
622
  case 429:
609
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
623
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
610
624
  unrecognizedObjectKeys: "passthrough",
611
625
  allowUnrecognizedUnionMembers: true,
612
626
  allowUnrecognizedEnumValues: true,
@@ -650,7 +664,7 @@ class Assets {
650
664
  * @throws {@link Webflow.InternalServerError}
651
665
  *
652
666
  * @example
653
- * await client.assets.getFolder("asset_folder_id")
667
+ * await client.assets.getFolder("6390c49774a71f0e3c1a08ee")
654
668
  */
655
669
  getFolder(assetFolderId, requestOptions) {
656
670
  var _a;
@@ -662,17 +676,19 @@ class Assets {
662
676
  Authorization: yield this._getAuthorizationHeader(),
663
677
  "X-Fern-Language": "JavaScript",
664
678
  "X-Fern-SDK-Name": "webflow-api",
665
- "X-Fern-SDK-Version": "2.3.6",
679
+ "X-Fern-SDK-Version": "2.4.2",
680
+ "User-Agent": "webflow-api/2.4.2",
666
681
  "X-Fern-Runtime": core.RUNTIME.type,
667
682
  "X-Fern-Runtime-Version": core.RUNTIME.version,
668
683
  },
669
684
  contentType: "application/json",
685
+ requestType: "json",
670
686
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
671
687
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
672
688
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
673
689
  });
674
690
  if (_response.ok) {
675
- return yield serializers.AssetFolder.parseOrThrow(_response.body, {
691
+ return serializers.AssetFolder.parseOrThrow(_response.body, {
676
692
  unrecognizedObjectKeys: "passthrough",
677
693
  allowUnrecognizedUnionMembers: true,
678
694
  allowUnrecognizedEnumValues: true,
@@ -689,7 +705,7 @@ class Assets {
689
705
  case 404:
690
706
  throw new Webflow.NotFoundError(_response.error.body);
691
707
  case 429:
692
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
708
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
693
709
  unrecognizedObjectKeys: "passthrough",
694
710
  allowUnrecognizedUnionMembers: true,
695
711
  allowUnrecognizedEnumValues: true,
@@ -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;
@@ -64,7 +64,7 @@ class Collections {
64
64
  * @throws {@link Webflow.InternalServerError}
65
65
  *
66
66
  * @example
67
- * await client.collections.list("site_id")
67
+ * await client.collections.list("580e63e98c9a982ac9b8b741")
68
68
  */
69
69
  list(siteId, requestOptions) {
70
70
  var _a;
@@ -76,17 +76,19 @@ class Collections {
76
76
  Authorization: yield this._getAuthorizationHeader(),
77
77
  "X-Fern-Language": "JavaScript",
78
78
  "X-Fern-SDK-Name": "webflow-api",
79
- "X-Fern-SDK-Version": "2.3.6",
79
+ "X-Fern-SDK-Version": "2.4.2",
80
+ "User-Agent": "webflow-api/2.4.2",
80
81
  "X-Fern-Runtime": core.RUNTIME.type,
81
82
  "X-Fern-Runtime-Version": core.RUNTIME.version,
82
83
  },
83
84
  contentType: "application/json",
85
+ requestType: "json",
84
86
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
85
87
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
86
88
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
87
89
  });
88
90
  if (_response.ok) {
89
- return yield serializers.CollectionList.parseOrThrow(_response.body, {
91
+ return serializers.CollectionList.parseOrThrow(_response.body, {
90
92
  unrecognizedObjectKeys: "passthrough",
91
93
  allowUnrecognizedUnionMembers: true,
92
94
  allowUnrecognizedEnumValues: true,
@@ -103,7 +105,7 @@ class Collections {
103
105
  case 404:
104
106
  throw new Webflow.NotFoundError(_response.error.body);
105
107
  case 429:
106
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
108
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
107
109
  unrecognizedObjectKeys: "passthrough",
108
110
  allowUnrecognizedUnionMembers: true,
109
111
  allowUnrecognizedEnumValues: true,
@@ -148,7 +150,7 @@ class Collections {
148
150
  * @throws {@link Webflow.InternalServerError}
149
151
  *
150
152
  * @example
151
- * await client.collections.create("site_id", {
153
+ * await client.collections.create("580e63e98c9a982ac9b8b741", {
152
154
  * displayName: "Blog Posts",
153
155
  * singularName: "Blog Post",
154
156
  * slug: "posts"
@@ -164,18 +166,20 @@ class Collections {
164
166
  Authorization: yield this._getAuthorizationHeader(),
165
167
  "X-Fern-Language": "JavaScript",
166
168
  "X-Fern-SDK-Name": "webflow-api",
167
- "X-Fern-SDK-Version": "2.3.6",
169
+ "X-Fern-SDK-Version": "2.4.2",
170
+ "User-Agent": "webflow-api/2.4.2",
168
171
  "X-Fern-Runtime": core.RUNTIME.type,
169
172
  "X-Fern-Runtime-Version": core.RUNTIME.version,
170
173
  },
171
174
  contentType: "application/json",
172
- body: yield serializers.CollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
175
+ requestType: "json",
176
+ body: serializers.CollectionsCreateRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
173
177
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
174
178
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
175
179
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
176
180
  });
177
181
  if (_response.ok) {
178
- return yield serializers.Collection.parseOrThrow(_response.body, {
182
+ return serializers.Collection.parseOrThrow(_response.body, {
179
183
  unrecognizedObjectKeys: "passthrough",
180
184
  allowUnrecognizedUnionMembers: true,
181
185
  allowUnrecognizedEnumValues: true,
@@ -192,7 +196,7 @@ class Collections {
192
196
  case 404:
193
197
  throw new Webflow.NotFoundError(_response.error.body);
194
198
  case 429:
195
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
199
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
196
200
  unrecognizedObjectKeys: "passthrough",
197
201
  allowUnrecognizedUnionMembers: true,
198
202
  allowUnrecognizedEnumValues: true,
@@ -236,7 +240,7 @@ class Collections {
236
240
  * @throws {@link Webflow.InternalServerError}
237
241
  *
238
242
  * @example
239
- * await client.collections.get("collection_id")
243
+ * await client.collections.get("580e63fc8c9a982ac9b8b745")
240
244
  */
241
245
  get(collectionId, requestOptions) {
242
246
  var _a;
@@ -248,17 +252,19 @@ class Collections {
248
252
  Authorization: yield this._getAuthorizationHeader(),
249
253
  "X-Fern-Language": "JavaScript",
250
254
  "X-Fern-SDK-Name": "webflow-api",
251
- "X-Fern-SDK-Version": "2.3.6",
255
+ "X-Fern-SDK-Version": "2.4.2",
256
+ "User-Agent": "webflow-api/2.4.2",
252
257
  "X-Fern-Runtime": core.RUNTIME.type,
253
258
  "X-Fern-Runtime-Version": core.RUNTIME.version,
254
259
  },
255
260
  contentType: "application/json",
261
+ requestType: "json",
256
262
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
257
263
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
258
264
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
259
265
  });
260
266
  if (_response.ok) {
261
- return yield serializers.Collection.parseOrThrow(_response.body, {
267
+ return serializers.Collection.parseOrThrow(_response.body, {
262
268
  unrecognizedObjectKeys: "passthrough",
263
269
  allowUnrecognizedUnionMembers: true,
264
270
  allowUnrecognizedEnumValues: true,
@@ -275,7 +281,7 @@ class Collections {
275
281
  case 404:
276
282
  throw new Webflow.NotFoundError(_response.error.body);
277
283
  case 429:
278
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
284
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
279
285
  unrecognizedObjectKeys: "passthrough",
280
286
  allowUnrecognizedUnionMembers: true,
281
287
  allowUnrecognizedEnumValues: true,
@@ -319,7 +325,7 @@ class Collections {
319
325
  * @throws {@link Webflow.InternalServerError}
320
326
  *
321
327
  * @example
322
- * await client.collections.deleteCollection("collection_id")
328
+ * await client.collections.deleteCollection("580e63fc8c9a982ac9b8b745")
323
329
  */
324
330
  deleteCollection(collectionId, requestOptions) {
325
331
  var _a;
@@ -331,11 +337,13 @@ class Collections {
331
337
  Authorization: yield this._getAuthorizationHeader(),
332
338
  "X-Fern-Language": "JavaScript",
333
339
  "X-Fern-SDK-Name": "webflow-api",
334
- "X-Fern-SDK-Version": "2.3.6",
340
+ "X-Fern-SDK-Version": "2.4.2",
341
+ "User-Agent": "webflow-api/2.4.2",
335
342
  "X-Fern-Runtime": core.RUNTIME.type,
336
343
  "X-Fern-Runtime-Version": core.RUNTIME.version,
337
344
  },
338
345
  contentType: "application/json",
346
+ requestType: "json",
339
347
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
340
348
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
341
349
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -352,7 +360,7 @@ class Collections {
352
360
  case 404:
353
361
  throw new Webflow.NotFoundError(_response.error.body);
354
362
  case 429:
355
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
363
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
356
364
  unrecognizedObjectKeys: "passthrough",
357
365
  allowUnrecognizedUnionMembers: true,
358
366
  allowUnrecognizedEnumValues: true,
@@ -397,7 +405,7 @@ class Collections {
397
405
  * @throws {@link Webflow.InternalServerError}
398
406
  *
399
407
  * @example
400
- * await client.collections.delete("collection_id", "field_id")
408
+ * await client.collections.delete("580e63fc8c9a982ac9b8b745", "580e63fc8c9a982ac9b8b745")
401
409
  */
402
410
  delete(collectionId, fieldId, requestOptions) {
403
411
  var _a;
@@ -409,11 +417,13 @@ class Collections {
409
417
  Authorization: yield this._getAuthorizationHeader(),
410
418
  "X-Fern-Language": "JavaScript",
411
419
  "X-Fern-SDK-Name": "webflow-api",
412
- "X-Fern-SDK-Version": "2.3.6",
420
+ "X-Fern-SDK-Version": "2.4.2",
421
+ "User-Agent": "webflow-api/2.4.2",
413
422
  "X-Fern-Runtime": core.RUNTIME.type,
414
423
  "X-Fern-Runtime-Version": core.RUNTIME.version,
415
424
  },
416
425
  contentType: "application/json",
426
+ requestType: "json",
417
427
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
418
428
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
419
429
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
@@ -430,7 +440,7 @@ class Collections {
430
440
  case 404:
431
441
  throw new Webflow.NotFoundError(_response.error.body);
432
442
  case 429:
433
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
443
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
434
444
  unrecognizedObjectKeys: "passthrough",
435
445
  allowUnrecognizedUnionMembers: true,
436
446
  allowUnrecognizedEnumValues: true,
@@ -35,9 +35,9 @@ export declare class Fields {
35
35
  * @throws {@link Webflow.InternalServerError}
36
36
  *
37
37
  * @example
38
- * await client.collections.fields.create("collection_id", {
38
+ * await client.collections.fields.create("580e63fc8c9a982ac9b8b745", {
39
39
  * isRequired: false,
40
- * type: Webflow.collections.FieldCreateType.RichText,
40
+ * type: "RichText",
41
41
  * displayName: "Post Body",
42
42
  * helpText: "Add the body of your post here"
43
43
  * })
@@ -58,7 +58,7 @@ export declare class Fields {
58
58
  * @throws {@link Webflow.InternalServerError}
59
59
  *
60
60
  * @example
61
- * await client.collections.fields.update("collection_id", "field_id", {
61
+ * await client.collections.fields.update("580e63fc8c9a982ac9b8b745", "580e63fc8c9a982ac9b8b745", {
62
62
  * isRequired: false,
63
63
  * displayName: "Post Body",
64
64
  * helpText: "Add the body of your post here"