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
@@ -63,9 +63,9 @@ class Fields {
63
63
  * @throws {@link Webflow.InternalServerError}
64
64
  *
65
65
  * @example
66
- * await client.collections.fields.create("collection_id", {
66
+ * await client.collections.fields.create("580e63fc8c9a982ac9b8b745", {
67
67
  * isRequired: false,
68
- * type: Webflow.collections.FieldCreateType.RichText,
68
+ * type: "RichText",
69
69
  * displayName: "Post Body",
70
70
  * helpText: "Add the body of your post here"
71
71
  * })
@@ -80,18 +80,20 @@ class Fields {
80
80
  Authorization: yield this._getAuthorizationHeader(),
81
81
  "X-Fern-Language": "JavaScript",
82
82
  "X-Fern-SDK-Name": "webflow-api",
83
- "X-Fern-SDK-Version": "2.3.6",
83
+ "X-Fern-SDK-Version": "2.4.2",
84
+ "User-Agent": "webflow-api/2.4.2",
84
85
  "X-Fern-Runtime": core.RUNTIME.type,
85
86
  "X-Fern-Runtime-Version": core.RUNTIME.version,
86
87
  },
87
88
  contentType: "application/json",
88
- body: yield serializers.collections.FieldCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
89
+ requestType: "json",
90
+ body: serializers.collections.FieldCreate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
89
91
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
90
92
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
91
93
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
92
94
  });
93
95
  if (_response.ok) {
94
- return yield serializers.Field.parseOrThrow(_response.body, {
96
+ return serializers.Field.parseOrThrow(_response.body, {
95
97
  unrecognizedObjectKeys: "passthrough",
96
98
  allowUnrecognizedUnionMembers: true,
97
99
  allowUnrecognizedEnumValues: true,
@@ -108,7 +110,7 @@ class Fields {
108
110
  case 404:
109
111
  throw new Webflow.NotFoundError(_response.error.body);
110
112
  case 429:
111
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
113
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
112
114
  unrecognizedObjectKeys: "passthrough",
113
115
  allowUnrecognizedUnionMembers: true,
114
116
  allowUnrecognizedEnumValues: true,
@@ -154,7 +156,7 @@ class Fields {
154
156
  * @throws {@link Webflow.InternalServerError}
155
157
  *
156
158
  * @example
157
- * await client.collections.fields.update("collection_id", "field_id", {
159
+ * await client.collections.fields.update("580e63fc8c9a982ac9b8b745", "580e63fc8c9a982ac9b8b745", {
158
160
  * isRequired: false,
159
161
  * displayName: "Post Body",
160
162
  * helpText: "Add the body of your post here"
@@ -170,18 +172,20 @@ class Fields {
170
172
  Authorization: yield this._getAuthorizationHeader(),
171
173
  "X-Fern-Language": "JavaScript",
172
174
  "X-Fern-SDK-Name": "webflow-api",
173
- "X-Fern-SDK-Version": "2.3.6",
175
+ "X-Fern-SDK-Version": "2.4.2",
176
+ "User-Agent": "webflow-api/2.4.2",
174
177
  "X-Fern-Runtime": core.RUNTIME.type,
175
178
  "X-Fern-Runtime-Version": core.RUNTIME.version,
176
179
  },
177
180
  contentType: "application/json",
178
- body: yield serializers.collections.FieldUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
181
+ requestType: "json",
182
+ body: serializers.collections.FieldUpdate.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
179
183
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
180
184
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
181
185
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
182
186
  });
183
187
  if (_response.ok) {
184
- return yield serializers.Field.parseOrThrow(_response.body, {
188
+ return serializers.Field.parseOrThrow(_response.body, {
185
189
  unrecognizedObjectKeys: "passthrough",
186
190
  allowUnrecognizedUnionMembers: true,
187
191
  allowUnrecognizedEnumValues: true,
@@ -198,7 +202,7 @@ class Fields {
198
202
  case 404:
199
203
  throw new Webflow.NotFoundError(_response.error.body);
200
204
  case 429:
201
- throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
205
+ throw new Webflow.TooManyRequestsError(serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
202
206
  unrecognizedObjectKeys: "passthrough",
203
207
  allowUnrecognizedUnionMembers: true,
204
208
  allowUnrecognizedEnumValues: true,
@@ -6,7 +6,7 @@ import * as Webflow from "../../../../../../index";
6
6
  * @example
7
7
  * {
8
8
  * isRequired: false,
9
- * type: Webflow.collections.FieldCreateType.RichText,
9
+ * type: "RichText",
10
10
  * displayName: "Post Body",
11
11
  * helpText: "Add the body of your post here"
12
12
  * }
@@ -35,7 +35,7 @@ export declare class Items {
35
35
  * @throws {@link Webflow.InternalServerError}
36
36
  *
37
37
  * @example
38
- * await client.collections.items.listItems("collection_id")
38
+ * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745")
39
39
  */
40
40
  listItems(collectionId: string, request?: Webflow.collections.ItemsListItemsRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
41
41
  /**
@@ -52,7 +52,7 @@ export declare class Items {
52
52
  * @throws {@link Webflow.InternalServerError}
53
53
  *
54
54
  * @example
55
- * await client.collections.items.createItem("collection_id", {
55
+ * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
56
56
  * id: "42b720ef280c7a7a3be8cabe",
57
57
  * cmsLocaleId: "653ad57de882f528b32e810e",
58
58
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -66,7 +66,7 @@ export declare class Items {
66
66
  * }
67
67
  * })
68
68
  */
69
- createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
69
+ createItem(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
70
70
  /**
71
71
  * List of all live Items within a Collection. </br></br> Required scope | `CMS:read`
72
72
  *
@@ -81,7 +81,7 @@ export declare class Items {
81
81
  * @throws {@link Webflow.InternalServerError}
82
82
  *
83
83
  * @example
84
- * await client.collections.items.listItemsLive("collection_id")
84
+ * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
85
85
  */
86
86
  listItemsLive(collectionId: string, request?: Webflow.collections.ItemsListItemsLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItemList>;
87
87
  /**
@@ -98,7 +98,7 @@ export declare class Items {
98
98
  * @throws {@link Webflow.InternalServerError}
99
99
  *
100
100
  * @example
101
- * await client.collections.items.createItemLive("collection_id", {
101
+ * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
102
102
  * id: "42b720ef280c7a7a3be8cabe",
103
103
  * cmsLocaleId: "653ad57de882f528b32e810e",
104
104
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -112,12 +112,12 @@ export declare class Items {
112
112
  * }
113
113
  * })
114
114
  */
115
- createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
115
+ createItemLive(collectionId: string, request: Webflow.CollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
116
116
  /**
117
117
  * Create single Item in a Collection with multiple corresponding locales. </br></br> Required scope | `CMS:write`
118
118
  *
119
119
  * @param {string} collectionId - Unique identifier for a Collection
120
- * @param {Webflow.collections.BulkCollectionItem} request
120
+ * @param {Webflow.BulkCollectionItem} request
121
121
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
122
122
  *
123
123
  * @throws {@link Webflow.BadRequestError}
@@ -127,11 +127,11 @@ export declare class Items {
127
127
  * @throws {@link Webflow.InternalServerError}
128
128
  *
129
129
  * @example
130
- * await client.collections.items.createItemForMultipleLocales("collection_id", {
130
+ * await client.collections.items.createItemForMultipleLocales("580e63fc8c9a982ac9b8b745", {
131
131
  * id: "580e64008c9a982ac9b8b754"
132
132
  * })
133
133
  */
134
- createItemForMultipleLocales(collectionId: string, request: Webflow.collections.BulkCollectionItem, requestOptions?: Items.RequestOptions): Promise<void>;
134
+ createItemForMultipleLocales(collectionId: string, request: Webflow.BulkCollectionItem, requestOptions?: Items.RequestOptions): Promise<Webflow.BulkCollectionItem>;
135
135
  /**
136
136
  * Get details of a selected Collection Item. </br></br> Required scope | `CMS:read`
137
137
  *
@@ -147,7 +147,7 @@ export declare class Items {
147
147
  * @throws {@link Webflow.InternalServerError}
148
148
  *
149
149
  * @example
150
- * await client.collections.items.getItem("collection_id", "item_id")
150
+ * await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
151
151
  */
152
152
  getItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
153
153
  /**
@@ -165,7 +165,7 @@ export declare class Items {
165
165
  * @throws {@link Webflow.InternalServerError}
166
166
  *
167
167
  * @example
168
- * await client.collections.items.deleteItem("collection_id", "item_id")
168
+ * await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
169
169
  */
170
170
  deleteItem(collectionId: string, itemId: string, request?: Webflow.collections.ItemsDeleteItemRequest, requestOptions?: Items.RequestOptions): Promise<void>;
171
171
  /**
@@ -183,7 +183,7 @@ export declare class Items {
183
183
  * @throws {@link Webflow.InternalServerError}
184
184
  *
185
185
  * @example
186
- * await client.collections.items.updateItem("collection_id", "item_id", {
186
+ * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
187
187
  * id: "42b720ef280c7a7a3be8cabe",
188
188
  * cmsLocaleId: "653ad57de882f528b32e810e",
189
189
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -213,7 +213,7 @@ export declare class Items {
213
213
  * @throws {@link Webflow.InternalServerError}
214
214
  *
215
215
  * @example
216
- * await client.collections.items.getItemLive("collection_id", "item_id")
216
+ * await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
217
217
  */
218
218
  getItemLive(collectionId: string, itemId: string, request?: Webflow.collections.ItemsGetItemLiveRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.CollectionItem>;
219
219
  /**
@@ -231,7 +231,7 @@ export declare class Items {
231
231
  * @throws {@link Webflow.InternalServerError}
232
232
  *
233
233
  * @example
234
- * await client.collections.items.deleteItemLive("collection_id", "item_id")
234
+ * await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
235
235
  */
236
236
  deleteItemLive(collectionId: string, itemId: string, request?: Webflow.collections.ItemsDeleteItemLiveRequest, requestOptions?: Items.RequestOptions): Promise<void>;
237
237
  /**
@@ -249,7 +249,7 @@ export declare class Items {
249
249
  * @throws {@link Webflow.InternalServerError}
250
250
  *
251
251
  * @example
252
- * await client.collections.items.updateItemLive("collection_id", "item_id", {
252
+ * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
253
253
  * id: "42b720ef280c7a7a3be8cabe",
254
254
  * cmsLocaleId: "653ad57de882f528b32e810e",
255
255
  * lastPublished: "2022-11-29T16:22:43.159Z",
@@ -278,10 +278,10 @@ export declare class Items {
278
278
  * @throws {@link Webflow.InternalServerError}
279
279
  *
280
280
  * @example
281
- * await client.collections.items.publishItem("collection_id", {
281
+ * await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
282
282
  * itemIds: ["itemIds"]
283
283
  * })
284
284
  */
285
- publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<void>;
285
+ publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): Promise<Webflow.collections.ItemsPublishItemResponse>;
286
286
  protected _getAuthorizationHeader(): Promise<string>;
287
287
  }