webflow-api 3.1.3 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1984) hide show
  1. package/.mock/definition/__package__.yml +980 -167
  2. package/.mock/definition/assets.yml +1 -1
  3. package/.mock/definition/collections/fields.yml +6 -6
  4. package/.mock/definition/collections/items.yml +286 -194
  5. package/.mock/definition/collections.yml +128 -10
  6. package/.mock/definition/comments.yml +40 -0
  7. package/.mock/definition/components.yml +27 -6
  8. package/.mock/definition/forms.yml +36 -0
  9. package/.mock/definition/inventory.yml +20 -0
  10. package/.mock/definition/items.yml +99 -0
  11. package/.mock/definition/orders.yml +382 -14
  12. package/.mock/definition/pages.yml +112 -28
  13. package/.mock/definition/products.yml +31 -21
  14. package/.mock/definition/scripts.yml +4 -0
  15. package/.mock/definition/sites/comments.yml +0 -2
  16. package/.mock/definition/sites/redirects.yml +8 -8
  17. package/.mock/definition/sites.yml +36 -9
  18. package/.mock/definition/users.yml +212 -28
  19. package/.mock/fern.config.json +1 -1
  20. package/Client.d.ts +21 -17
  21. package/Client.js +43 -1
  22. package/api/errors/BadRequestError.d.ts +2 -1
  23. package/api/errors/BadRequestError.js +19 -8
  24. package/api/errors/ConflictError.d.ts +2 -1
  25. package/api/errors/ConflictError.js +19 -8
  26. package/api/errors/ForbiddenError.d.ts +2 -1
  27. package/api/errors/ForbiddenError.js +19 -8
  28. package/api/errors/InternalServerError.d.ts +2 -1
  29. package/api/errors/InternalServerError.js +19 -8
  30. package/api/errors/NotFoundError.d.ts +2 -1
  31. package/api/errors/NotFoundError.js +19 -8
  32. package/api/errors/TooManyRequestsError.d.ts +2 -1
  33. package/api/errors/TooManyRequestsError.js +19 -8
  34. package/api/errors/UnauthorizedError.d.ts +2 -1
  35. package/api/errors/UnauthorizedError.js +19 -8
  36. package/api/resources/accessGroups/client/Client.d.ts +7 -2
  37. package/api/resources/accessGroups/client/Client.js +51 -28
  38. package/api/resources/accessGroups/client/index.d.ts +1 -0
  39. package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
  40. package/api/resources/assets/client/Client.d.ts +21 -9
  41. package/api/resources/assets/client/Client.js +210 -132
  42. package/api/resources/assets/client/index.d.ts +1 -0
  43. package/api/resources/collections/client/Client.d.ts +20 -10
  44. package/api/resources/collections/client/Client.js +121 -77
  45. package/api/resources/collections/client/index.d.ts +1 -0
  46. package/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
  47. package/api/resources/collections/resources/fields/client/Client.js +92 -54
  48. package/api/resources/collections/resources/fields/client/index.d.ts +1 -0
  49. package/api/resources/collections/resources/index.js +17 -7
  50. package/api/resources/collections/resources/items/client/Client.d.ts +129 -77
  51. package/api/resources/collections/resources/items/client/Client.js +582 -321
  52. package/api/resources/collections/resources/items/client/index.d.ts +1 -0
  53. package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
  54. package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -0
  55. package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +45 -0
  56. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
  57. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
  58. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -0
  59. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +24 -0
  60. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
  61. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -66
  62. package/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
  63. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
  64. package/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
  65. package/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
  66. package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.d.ts → api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.d.ts} +1 -1
  67. package/api/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemRequestBody.d.ts} +1 -1
  68. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
  69. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
  70. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
  71. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
  72. package/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
  73. package/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
  74. package/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsUpdateItemsResponse.d.ts} +1 -1
  75. package/api/resources/collections/resources/items/types/index.d.ts +7 -2
  76. package/api/resources/collections/resources/items/types/index.js +7 -2
  77. package/api/resources/components/client/Client.d.ts +24 -9
  78. package/api/resources/components/client/Client.js +176 -100
  79. package/api/resources/components/client/index.d.ts +1 -0
  80. package/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
  81. package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
  82. package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
  83. package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
  84. package/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
  85. package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
  86. package/api/resources/ecommerce/client/Client.d.ts +7 -2
  87. package/api/resources/ecommerce/client/Client.js +45 -26
  88. package/api/resources/forms/client/Client.d.ts +19 -8
  89. package/api/resources/forms/client/Client.js +198 -132
  90. package/api/resources/forms/client/index.d.ts +1 -0
  91. package/api/resources/index.js +17 -7
  92. package/api/resources/inventory/client/Client.d.ts +9 -3
  93. package/api/resources/inventory/client/Client.js +72 -43
  94. package/api/resources/inventory/client/index.d.ts +1 -0
  95. package/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
  96. package/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
  97. package/api/resources/inventory/types/index.d.ts +1 -0
  98. package/api/resources/inventory/types/index.js +1 -0
  99. package/api/resources/orders/client/Client.d.ts +17 -7
  100. package/api/resources/orders/client/Client.js +190 -121
  101. package/api/resources/orders/client/index.d.ts +1 -0
  102. package/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
  103. package/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
  104. package/api/resources/pages/client/Client.d.ts +29 -32
  105. package/api/resources/pages/client/Client.js +168 -125
  106. package/api/resources/pages/client/index.d.ts +1 -0
  107. package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
  108. package/api/resources/pages/client/requests/index.d.ts +1 -1
  109. package/api/resources/pages/resources/index.js +17 -7
  110. package/api/resources/pages/resources/scripts/client/Client.d.ts +11 -4
  111. package/api/resources/pages/resources/scripts/client/Client.js +85 -51
  112. package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
  113. package/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
  114. package/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
  115. package/api/resources/pages/types/index.d.ts +2 -0
  116. package/api/resources/pages/types/index.js +2 -0
  117. package/api/resources/products/client/Client.d.ts +29 -9
  118. package/api/resources/products/client/Client.js +194 -117
  119. package/api/resources/products/client/index.d.ts +1 -0
  120. package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  121. package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
  122. package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
  123. package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  124. package/api/resources/scripts/client/Client.d.ts +11 -4
  125. package/api/resources/scripts/client/Client.js +93 -54
  126. package/api/resources/scripts/client/index.d.ts +1 -0
  127. package/api/resources/sites/client/Client.d.ts +40 -24
  128. package/api/resources/sites/client/Client.js +222 -147
  129. package/api/resources/sites/client/index.d.ts +1 -0
  130. package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
  131. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -2
  132. package/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
  133. package/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
  134. package/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
  135. package/api/resources/sites/resources/comments/client/Client.js +127 -68
  136. package/api/resources/sites/resources/comments/client/index.d.ts +1 -0
  137. package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
  138. package/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
  139. package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
  140. package/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
  141. package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
  142. package/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
  143. package/api/resources/sites/resources/index.js +17 -7
  144. package/api/resources/sites/resources/plans/client/Client.d.ts +7 -2
  145. package/api/resources/sites/resources/plans/client/Client.js +43 -24
  146. package/api/resources/sites/resources/redirects/client/Client.d.ts +17 -9
  147. package/api/resources/sites/resources/redirects/client/Client.js +122 -75
  148. package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
  149. package/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
  150. package/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
  151. package/api/resources/sites/resources/scripts/client/Client.js +110 -68
  152. package/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
  153. package/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
  154. package/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
  155. package/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
  156. package/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
  157. package/api/resources/token/client/Client.d.ts +9 -3
  158. package/api/resources/token/client/Client.js +61 -34
  159. package/api/resources/users/client/Client.d.ts +28 -14
  160. package/api/resources/users/client/Client.js +162 -101
  161. package/api/resources/users/client/index.d.ts +1 -0
  162. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
  163. package/api/resources/users/client/requests/index.d.ts +0 -1
  164. package/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
  165. package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
  166. package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
  167. package/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
  168. package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
  169. package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
  170. package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
  171. package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
  172. package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
  173. package/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
  174. package/api/resources/users/types/index.d.ts +9 -1
  175. package/api/resources/users/types/index.js +9 -1
  176. package/api/resources/webhooks/client/Client.d.ts +15 -7
  177. package/api/resources/webhooks/client/Client.js +111 -69
  178. package/api/resources/workspaces/client/Client.d.ts +5 -11
  179. package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
  180. package/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
  181. package/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
  182. package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
  183. package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
  184. package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
  185. package/api/resources/workspaces/resources/index.js +17 -7
  186. package/api/types/Application.d.ts +10 -1
  187. package/api/types/Asset.d.ts +2 -2
  188. package/api/types/AssetVariant.d.ts +6 -6
  189. package/api/types/Authorization.d.ts +1 -1
  190. package/api/types/BadRequestErrorBody.d.ts +1 -1
  191. package/api/types/BulkCollectionItem.d.ts +1 -1
  192. package/api/types/Collection.d.ts +2 -2
  193. package/api/types/CollectionItemChanged.d.ts +12 -0
  194. package/api/types/CollectionItemChangedPayload.d.ts +5 -0
  195. package/api/types/CollectionItemCreated.d.ts +12 -0
  196. package/api/types/CollectionItemCreatedPayload.d.ts +5 -0
  197. package/api/types/CollectionItemRemoved.d.ts +10 -0
  198. package/api/types/CollectionItemRemovedPayload.d.ts +25 -0
  199. package/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
  200. package/api/types/CollectionItemUnpublished.d.ts +10 -0
  201. package/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
  202. package/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
  203. package/api/types/Comment.d.ts +12 -0
  204. package/api/types/CommentPayload.d.ts +38 -0
  205. package/api/types/CommentPayloadAuthor.d.ts +11 -0
  206. package/api/types/CommentPayloadAuthor.js +5 -0
  207. package/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
  208. package/api/types/CommentPayloadMentionedUsersItem.js +5 -0
  209. package/api/types/CommentReply.d.ts +2 -2
  210. package/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → api/types/ComponentInstance.d.ts} +1 -1
  211. package/api/types/ComponentInstance.js +5 -0
  212. package/{dist/api/types/ComponentNode.d.ts → api/types/ComponentNodeDom.d.ts} +4 -4
  213. package/api/types/ComponentNodeDom.js +5 -0
  214. package/api/types/ComponentPropertyType.d.ts +1 -1
  215. package/api/types/Conflict.d.ts +1 -1
  216. package/api/types/ConflictErrorBody.d.ts +1 -1
  217. package/api/types/CustomCodeBlockType.d.ts +1 -1
  218. package/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
  219. package/api/types/Dom.d.ts +2 -0
  220. package/api/types/DuplicateUserEmail.d.ts +1 -1
  221. package/api/types/ErrorCode.d.ts +1 -1
  222. package/api/types/Field.d.ts +2 -0
  223. package/api/types/FieldCreate.d.ts +1 -1
  224. package/api/types/FieldType.d.ts +1 -1
  225. package/api/types/FieldValidations.d.ts +10 -0
  226. package/api/types/FieldValidations.js +5 -0
  227. package/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
  228. package/api/types/FieldValidationsAdditionalProperties.js +5 -0
  229. package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
  230. package/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
  231. package/api/types/ForbiddenErrorBody.d.ts +1 -1
  232. package/api/types/FormField.d.ts +1 -1
  233. package/api/types/FormFieldValueType.d.ts +1 -1
  234. package/api/types/FormSubmissionTrigger.d.ts +13 -0
  235. package/api/types/FormSubmissionTrigger.js +5 -0
  236. package/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
  237. package/api/types/FormSubmissionTriggerPayload.js +5 -0
  238. package/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
  239. package/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
  240. package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
  241. package/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
  242. package/{dist/api/types/ImageNode.d.ts → api/types/ImageNodeDom.d.ts} +3 -3
  243. package/api/types/ImageNodeDom.js +5 -0
  244. package/api/types/InvalidDomain.d.ts +1 -1
  245. package/api/types/InvalidScopes.d.ts +1 -1
  246. package/api/types/InventoryItemInventoryType.d.ts +1 -1
  247. package/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
  248. package/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
  249. package/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
  250. package/api/types/ItemsListItemsRequestLastPublished.js +5 -0
  251. package/api/types/LocalizedItem.d.ts +31 -0
  252. package/api/types/LocalizedItem.js +5 -0
  253. package/api/types/MultiLocaleChangedPayload.d.ts +22 -0
  254. package/api/types/MultiLocaleChangedPayload.js +5 -0
  255. package/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
  256. package/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
  257. package/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
  258. package/api/types/MultiLocaleCreatedPayload.js +5 -0
  259. package/api/types/NewOrder.d.ts +12 -0
  260. package/api/types/NewOrder.js +5 -0
  261. package/api/types/NoDomains.d.ts +1 -1
  262. package/api/types/Node.d.ts +8 -8
  263. package/api/types/NotEnterprisePlanSite.d.ts +1 -1
  264. package/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
  265. package/api/types/OAuthScope.d.ts +1 -1
  266. package/api/types/Order.d.ts +2 -2
  267. package/api/types/OrderAddressJapanType.d.ts +1 -1
  268. package/api/types/OrderAddressType.d.ts +1 -1
  269. package/api/types/OrderBillingAddress.d.ts +27 -0
  270. package/api/types/OrderBillingAddress.js +5 -0
  271. package/api/types/OrderBillingAddressJapanType.d.ts +11 -0
  272. package/api/types/OrderBillingAddressJapanType.js +10 -0
  273. package/api/types/OrderBillingAddressType.d.ts +11 -0
  274. package/api/types/OrderBillingAddressType.js +10 -0
  275. package/api/types/OrderDisputeLastStatus.d.ts +1 -1
  276. package/api/types/OrderShippingAddress.d.ts +27 -0
  277. package/api/types/OrderShippingAddress.js +5 -0
  278. package/api/types/OrderShippingAddressJapanType.d.ts +11 -0
  279. package/api/types/OrderShippingAddressJapanType.js +10 -0
  280. package/api/types/OrderShippingAddressType.d.ts +11 -0
  281. package/api/types/OrderShippingAddressType.js +10 -0
  282. package/api/types/OrderStatus.d.ts +1 -1
  283. package/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
  284. package/api/types/Page.d.ts +3 -3
  285. package/api/types/PageCreatedWebhook.d.ts +13 -0
  286. package/api/types/PageCreatedWebhook.js +5 -0
  287. package/api/types/PageCreatedWebhookPayload.d.ts +13 -0
  288. package/api/types/PageCreatedWebhookPayload.js +5 -0
  289. package/api/types/PageDeletedWebhook.d.ts +13 -0
  290. package/api/types/PageDeletedWebhook.js +5 -0
  291. package/api/types/PageDeletedWebhookPayload.d.ts +13 -0
  292. package/api/types/PageDeletedWebhookPayload.js +5 -0
  293. package/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
  294. package/api/types/PageMetadataUpdatedWebhook.js +5 -0
  295. package/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
  296. package/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
  297. package/api/types/ProductFieldData.d.ts +2 -2
  298. package/api/types/ProductFieldDataEcProductType.d.ts +1 -1
  299. package/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
  300. package/api/types/PublishStatus.d.ts +1 -1
  301. package/api/types/ReferenceFieldType.d.ts +1 -1
  302. package/api/types/RegisteredScriptList.d.ts +1 -0
  303. package/api/types/ScriptApplyLocation.d.ts +1 -1
  304. package/api/types/Scripts.d.ts +1 -1
  305. package/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
  306. package/api/types/SearchButton.js +5 -0
  307. package/{dist/api/types/SearchButtonNode.d.ts → api/types/SearchButtonNodeDom.d.ts} +1 -1
  308. package/api/types/SearchButtonNodeDom.js +5 -0
  309. package/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
  310. package/api/types/Select.js +5 -0
  311. package/{dist/api/types/SelectNode.d.ts → api/types/SelectNodeDom.d.ts} +1 -1
  312. package/api/types/SelectNodeDom.js +5 -0
  313. package/api/types/SingleLocaleChangedPayload.d.ts +22 -0
  314. package/api/types/SingleLocaleChangedPayload.js +5 -0
  315. package/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
  316. package/api/types/SingleLocaleChangedPayloadFieldData.js +5 -0
  317. package/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
  318. package/api/types/SingleLocaleCreatedPayload.js +5 -0
  319. package/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
  320. package/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
  321. package/api/types/SiteActivityLogItemEvent.d.ts +1 -1
  322. package/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
  323. package/api/types/SiteDataCollectionType.d.ts +1 -1
  324. package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
  325. package/api/types/SitePlanId.d.ts +1 -1
  326. package/api/types/SitePlanName.d.ts +1 -1
  327. package/api/types/SitePublish.d.ts +13 -0
  328. package/api/types/SitePublish.js +5 -0
  329. package/api/types/SitePublishPayload.d.ts +16 -0
  330. package/api/types/SitePublishPayload.js +5 -0
  331. package/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
  332. package/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
  333. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
  334. package/api/types/SkuValueList.d.ts +1 -1
  335. package/api/types/StaticFieldType.d.ts +1 -1
  336. package/api/types/StripeCardBrand.d.ts +1 -1
  337. package/{dist/api/types/SubmitButtonNodeWrite.d.ts → api/types/SubmitButton.d.ts} +1 -1
  338. package/api/types/SubmitButton.js +5 -0
  339. package/{dist/api/types/SubmitButtonNode.d.ts → api/types/SubmitButtonNodeDom.d.ts} +1 -1
  340. package/api/types/SubmitButtonNodeDom.js +5 -0
  341. package/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
  342. package/api/types/TextInput.js +5 -0
  343. package/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
  344. package/api/types/TextInputNodeDom.js +5 -0
  345. package/api/types/TextNode.d.ts +4 -7
  346. package/api/types/TextNodeDom.d.ts +15 -0
  347. package/api/types/TextNodeDom.js +5 -0
  348. package/api/types/TriggerType.d.ts +1 -1
  349. package/api/types/UpdatedOrder.d.ts +12 -0
  350. package/api/types/UpdatedOrder.js +5 -0
  351. package/api/types/User.d.ts +0 -1
  352. package/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
  353. package/api/types/UserAccessGroupsItemType.d.ts +1 -1
  354. package/api/types/UserLimitReached.d.ts +1 -1
  355. package/api/types/UserStatus.d.ts +1 -1
  356. package/api/types/UsersNotEnabled.d.ts +1 -1
  357. package/api/types/WorkspaceAuditLogItem.d.ts +1 -1
  358. package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
  359. package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
  360. package/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
  361. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
  362. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
  363. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
  364. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
  365. package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
  366. package/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
  367. package/api/types/index.d.ts +62 -15
  368. package/api/types/index.js +62 -15
  369. package/core/auth/BearerToken.d.ts +1 -1
  370. package/core/fetcher/APIResponse.d.ts +11 -1
  371. package/core/fetcher/Fetcher.d.ts +4 -3
  372. package/core/fetcher/Fetcher.js +35 -14
  373. package/core/fetcher/Headers.d.ts +2 -0
  374. package/core/fetcher/Headers.js +84 -0
  375. package/core/fetcher/HttpResponsePromise.d.ts +58 -0
  376. package/core/fetcher/HttpResponsePromise.js +103 -0
  377. package/core/fetcher/RawResponse.d.ts +29 -0
  378. package/core/fetcher/RawResponse.js +44 -0
  379. package/core/fetcher/Supplier.d.ts +1 -1
  380. package/core/fetcher/createRequestUrl.d.ts +1 -1
  381. package/core/fetcher/createRequestUrl.js +1 -2
  382. package/core/fetcher/getFetchFn.js +18 -9
  383. package/core/fetcher/getHeader.js +1 -2
  384. package/core/fetcher/getRequestBody.js +5 -5
  385. package/core/fetcher/getResponseBody.js +1 -2
  386. package/core/fetcher/index.d.ts +3 -0
  387. package/core/fetcher/index.js +7 -1
  388. package/core/fetcher/makeRequest.d.ts +1 -1
  389. package/core/fetcher/requestWithRetries.js +4 -5
  390. package/core/fetcher/signals.d.ts +0 -1
  391. package/core/fetcher/signals.js +2 -3
  392. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  393. package/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  394. package/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  395. package/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  396. package/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  397. package/core/headers.d.ts +3 -0
  398. package/core/headers.js +29 -0
  399. package/core/index.d.ts +1 -1
  400. package/core/index.js +18 -8
  401. package/core/json.d.ts +15 -0
  402. package/core/json.js +24 -0
  403. package/core/runtime/runtime.d.ts +1 -1
  404. package/core/runtime/runtime.js +50 -41
  405. package/core/schemas/Schema.d.ts +7 -5
  406. package/core/schemas/Schema.js +2 -0
  407. package/core/schemas/builders/bigint/bigint.d.ts +1 -1
  408. package/core/schemas/builders/bigint/bigint.js +22 -19
  409. package/core/schemas/builders/date/date.js +1 -2
  410. package/core/schemas/builders/enum/enum.js +1 -2
  411. package/core/schemas/builders/lazy/lazy.d.ts +1 -1
  412. package/core/schemas/builders/lazy/lazy.js +3 -4
  413. package/core/schemas/builders/lazy/lazyObject.js +1 -2
  414. package/core/schemas/builders/list/list.js +1 -2
  415. package/core/schemas/builders/literals/booleanLiteral.js +1 -2
  416. package/core/schemas/builders/literals/stringLiteral.js +1 -2
  417. package/core/schemas/builders/object/object.d.ts +1 -1
  418. package/core/schemas/builders/object/object.js +3 -3
  419. package/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  420. package/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  421. package/core/schemas/builders/object/property.js +2 -3
  422. package/core/schemas/builders/object/types.d.ts +11 -11
  423. package/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  424. package/core/schemas/builders/object-like/types.d.ts +1 -1
  425. package/core/schemas/builders/record/record.js +2 -4
  426. package/core/schemas/builders/record/types.d.ts +2 -2
  427. package/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  428. package/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  429. package/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  430. package/core/schemas/builders/set/set.js +1 -2
  431. package/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  432. package/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  433. package/core/schemas/builders/union/discriminant.js +1 -2
  434. package/core/schemas/builders/union/types.d.ts +6 -6
  435. package/core/schemas/builders/union/union.d.ts +1 -1
  436. package/core/schemas/builders/union/union.js +1 -2
  437. package/core/schemas/utils/MaybePromise.d.ts +1 -1
  438. package/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  439. package/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  440. package/core/schemas/utils/entries.d.ts +1 -1
  441. package/core/schemas/utils/entries.js +1 -2
  442. package/core/schemas/utils/filterObject.d.ts +1 -1
  443. package/core/schemas/utils/filterObject.js +1 -2
  444. package/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  445. package/core/schemas/utils/isPlainObject.js +1 -2
  446. package/core/schemas/utils/keys.d.ts +1 -1
  447. package/core/schemas/utils/keys.js +1 -2
  448. package/core/schemas/utils/maybeSkipValidation.js +1 -2
  449. package/core/schemas/utils/partition.js +1 -2
  450. package/dist/Client.d.ts +21 -17
  451. package/dist/Client.js +43 -1
  452. package/dist/api/errors/BadRequestError.d.ts +2 -1
  453. package/dist/api/errors/BadRequestError.js +19 -8
  454. package/dist/api/errors/ConflictError.d.ts +2 -1
  455. package/dist/api/errors/ConflictError.js +19 -8
  456. package/dist/api/errors/ForbiddenError.d.ts +2 -1
  457. package/dist/api/errors/ForbiddenError.js +19 -8
  458. package/dist/api/errors/InternalServerError.d.ts +2 -1
  459. package/dist/api/errors/InternalServerError.js +19 -8
  460. package/dist/api/errors/NotFoundError.d.ts +2 -1
  461. package/dist/api/errors/NotFoundError.js +19 -8
  462. package/dist/api/errors/TooManyRequestsError.d.ts +2 -1
  463. package/dist/api/errors/TooManyRequestsError.js +19 -8
  464. package/dist/api/errors/UnauthorizedError.d.ts +2 -1
  465. package/dist/api/errors/UnauthorizedError.js +19 -8
  466. package/dist/api/resources/accessGroups/client/Client.d.ts +7 -2
  467. package/dist/api/resources/accessGroups/client/Client.js +51 -28
  468. package/dist/api/resources/accessGroups/client/index.d.ts +1 -0
  469. package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +1 -1
  470. package/dist/api/resources/assets/client/Client.d.ts +21 -9
  471. package/dist/api/resources/assets/client/Client.js +210 -132
  472. package/dist/api/resources/assets/client/index.d.ts +1 -0
  473. package/dist/api/resources/collections/client/Client.d.ts +20 -10
  474. package/dist/api/resources/collections/client/Client.js +121 -77
  475. package/dist/api/resources/collections/client/index.d.ts +1 -0
  476. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +17 -8
  477. package/dist/api/resources/collections/resources/fields/client/Client.js +92 -54
  478. package/dist/api/resources/collections/resources/fields/client/index.d.ts +1 -0
  479. package/dist/api/resources/collections/resources/index.js +17 -7
  480. package/dist/api/resources/collections/resources/items/client/Client.d.ts +129 -77
  481. package/dist/api/resources/collections/resources/items/client/Client.js +582 -321
  482. package/dist/api/resources/collections/resources/items/client/index.d.ts +1 -0
  483. package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
  484. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +45 -0
  485. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.js +5 -0
  486. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +45 -0
  487. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.js +5 -0
  488. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +4 -0
  489. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +4 -0
  490. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +24 -0
  491. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.js +5 -0
  492. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +24 -0
  493. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.js +5 -0
  494. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
  495. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +4 -66
  496. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +4 -1
  497. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
  498. package/dist/api/resources/collections/resources/items/types/ItemIDs.d.ts +9 -0
  499. package/dist/api/resources/collections/resources/items/types/ItemIDs.js +5 -0
  500. package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +10 -0
  501. package/dist/api/resources/collections/resources/items/types/ItemIDsWithLocales.js +5 -0
  502. package/dist/api/resources/collections/resources/items/types/{ItemsCreateItemRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +1 -1
  503. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js +5 -0
  504. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts +5 -0
  505. package/dist/api/resources/collections/resources/items/types/ItemsCreateItemRequestBody.js +5 -0
  506. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +1 -1
  507. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +1 -1
  508. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +1 -1
  509. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +1 -1
  510. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +11 -0
  511. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequest.js +5 -0
  512. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +9 -0
  513. package/dist/api/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +5 -0
  514. package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +5 -0
  515. package/dist/api/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +5 -0
  516. package/dist/api/resources/collections/resources/items/types/index.d.ts +7 -2
  517. package/dist/api/resources/collections/resources/items/types/index.js +7 -2
  518. package/dist/api/resources/components/client/Client.d.ts +24 -9
  519. package/dist/api/resources/components/client/Client.js +176 -100
  520. package/dist/api/resources/components/client/index.d.ts +1 -0
  521. package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +5 -0
  522. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +5 -0
  523. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -1
  524. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -1
  525. package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +7 -1
  526. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
  527. package/dist/api/resources/ecommerce/client/Client.d.ts +7 -2
  528. package/dist/api/resources/ecommerce/client/Client.js +45 -26
  529. package/dist/api/resources/forms/client/Client.d.ts +19 -8
  530. package/dist/api/resources/forms/client/Client.js +198 -132
  531. package/dist/api/resources/forms/client/index.d.ts +1 -0
  532. package/dist/api/resources/index.js +17 -7
  533. package/dist/api/resources/inventory/client/Client.d.ts +9 -3
  534. package/dist/api/resources/inventory/client/Client.js +72 -43
  535. package/dist/api/resources/inventory/client/index.d.ts +1 -0
  536. package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.d.ts +8 -0
  537. package/dist/api/resources/inventory/types/EcommInventoryChangedPayload.js +5 -0
  538. package/dist/api/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +1 -1
  539. package/dist/api/resources/inventory/types/index.d.ts +1 -0
  540. package/dist/api/resources/inventory/types/index.js +1 -0
  541. package/dist/api/resources/orders/client/Client.d.ts +17 -7
  542. package/dist/api/resources/orders/client/Client.js +190 -121
  543. package/dist/api/resources/orders/client/index.d.ts +1 -0
  544. package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +1 -1
  545. package/dist/api/resources/orders/types/OrdersRefundRequestReason.d.ts +1 -1
  546. package/dist/api/resources/pages/client/Client.d.ts +29 -32
  547. package/dist/api/resources/pages/client/Client.js +168 -125
  548. package/dist/api/resources/pages/client/index.d.ts +1 -0
  549. package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +36 -0
  550. package/dist/api/resources/pages/client/requests/PageMetadataWrite.js +5 -0
  551. package/dist/api/resources/pages/client/requests/index.d.ts +1 -1
  552. package/dist/api/resources/pages/resources/index.js +17 -7
  553. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +11 -4
  554. package/dist/api/resources/pages/resources/scripts/client/Client.js +85 -51
  555. package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
  556. package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +16 -0
  557. package/dist/api/resources/pages/types/PageMetadataWriteOpenGraph.js +5 -0
  558. package/dist/api/resources/pages/types/PageMetadataWriteSeo.d.ts +12 -0
  559. package/dist/api/resources/pages/types/PageMetadataWriteSeo.js +5 -0
  560. package/dist/api/resources/pages/types/index.d.ts +2 -0
  561. package/dist/api/resources/pages/types/index.js +2 -0
  562. package/dist/api/resources/products/client/Client.d.ts +29 -9
  563. package/dist/api/resources/products/client/Client.js +194 -117
  564. package/dist/api/resources/products/client/index.d.ts +1 -0
  565. package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -2
  566. package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +5 -0
  567. package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +5 -0
  568. package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  569. package/dist/api/resources/scripts/client/Client.d.ts +11 -4
  570. package/dist/api/resources/scripts/client/Client.js +93 -54
  571. package/dist/api/resources/scripts/client/index.d.ts +1 -0
  572. package/dist/api/resources/sites/client/Client.d.ts +40 -24
  573. package/dist/api/resources/sites/client/Client.js +222 -147
  574. package/dist/api/resources/sites/client/index.d.ts +1 -0
  575. package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +4 -1
  576. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -2
  577. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +43 -24
  578. package/dist/api/resources/sites/resources/activityLogs/client/index.d.ts +1 -0
  579. package/dist/api/resources/sites/resources/comments/client/Client.d.ts +11 -4
  580. package/dist/api/resources/sites/resources/comments/client/Client.js +127 -68
  581. package/dist/api/resources/sites/resources/comments/client/index.d.ts +1 -0
  582. package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.d.ts +1 -1
  583. package/dist/api/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.d.ts +1 -1
  584. package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.d.ts +1 -1
  585. package/dist/api/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.d.ts +1 -1
  586. package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.d.ts +1 -1
  587. package/dist/api/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.d.ts +1 -1
  588. package/dist/api/resources/sites/resources/index.js +17 -7
  589. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +7 -2
  590. package/dist/api/resources/sites/resources/plans/client/Client.js +43 -24
  591. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +17 -9
  592. package/dist/api/resources/sites/resources/redirects/client/Client.js +122 -75
  593. package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +13 -5
  594. package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +118 -69
  595. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +13 -5
  596. package/dist/api/resources/sites/resources/scripts/client/Client.js +110 -68
  597. package/dist/api/resources/sites/resources/scripts/client/index.d.ts +1 -0
  598. package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +9 -3
  599. package/dist/api/resources/sites/resources/wellKnown/client/Client.js +51 -26
  600. package/dist/api/resources/sites/resources/wellKnown/client/index.d.ts +1 -0
  601. package/dist/api/resources/sites/resources/wellKnown/types/WellKnownFileContentType.d.ts +1 -1
  602. package/dist/api/resources/token/client/Client.d.ts +9 -3
  603. package/dist/api/resources/token/client/Client.js +61 -34
  604. package/dist/api/resources/users/client/Client.d.ts +28 -14
  605. package/dist/api/resources/users/client/Client.js +162 -101
  606. package/dist/api/resources/users/client/index.d.ts +1 -0
  607. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
  608. package/dist/api/resources/users/client/requests/index.d.ts +0 -1
  609. package/dist/api/resources/users/types/UserAccountAddedPayload.d.ts +8 -0
  610. package/dist/api/resources/users/types/UserAccountAddedPayload.js +5 -0
  611. package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
  612. package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.js +5 -0
  613. package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +12 -0
  614. package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +5 -0
  615. package/dist/api/resources/users/types/UserAccountDeletedPayload.d.ts +8 -0
  616. package/dist/api/resources/users/types/UserAccountDeletedPayload.js +5 -0
  617. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
  618. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.js +5 -0
  619. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +12 -0
  620. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +5 -0
  621. package/dist/api/resources/users/types/UserAccountUpdatedPayload.d.ts +8 -0
  622. package/dist/api/resources/users/types/UserAccountUpdatedPayload.js +5 -0
  623. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
  624. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +5 -0
  625. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +12 -0
  626. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +5 -0
  627. package/dist/api/resources/users/types/UsersListRequestSort.d.ts +1 -1
  628. package/dist/api/resources/users/types/index.d.ts +9 -1
  629. package/dist/api/resources/users/types/index.js +9 -1
  630. package/dist/api/resources/webhooks/client/Client.d.ts +15 -7
  631. package/dist/api/resources/webhooks/client/Client.js +111 -69
  632. package/dist/api/resources/workspaces/client/Client.d.ts +5 -11
  633. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -4
  634. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +59 -30
  635. package/dist/api/resources/workspaces/resources/auditLogs/client/index.d.ts +1 -0
  636. package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
  637. package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
  638. package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.d.ts +1 -1
  639. package/dist/api/resources/workspaces/resources/index.js +17 -7
  640. package/dist/api/types/Application.d.ts +10 -1
  641. package/dist/api/types/Asset.d.ts +2 -2
  642. package/dist/api/types/AssetVariant.d.ts +6 -6
  643. package/dist/api/types/Authorization.d.ts +1 -1
  644. package/dist/api/types/BadRequestErrorBody.d.ts +1 -1
  645. package/dist/api/types/BulkCollectionItem.d.ts +1 -1
  646. package/dist/api/types/Collection.d.ts +2 -2
  647. package/dist/api/types/CollectionItemChanged.d.ts +12 -0
  648. package/dist/api/types/CollectionItemChanged.js +5 -0
  649. package/dist/api/types/CollectionItemChangedPayload.d.ts +5 -0
  650. package/dist/api/types/CollectionItemChangedPayload.js +5 -0
  651. package/dist/api/types/CollectionItemCreated.d.ts +12 -0
  652. package/dist/api/types/CollectionItemCreated.js +5 -0
  653. package/dist/api/types/CollectionItemCreatedPayload.d.ts +5 -0
  654. package/dist/api/types/CollectionItemCreatedPayload.js +5 -0
  655. package/dist/api/types/CollectionItemRemoved.d.ts +10 -0
  656. package/dist/api/types/CollectionItemRemoved.js +5 -0
  657. package/dist/api/types/CollectionItemRemovedPayload.d.ts +25 -0
  658. package/dist/api/types/CollectionItemRemovedPayload.js +5 -0
  659. package/dist/api/types/CollectionItemRemovedPayloadFieldData.d.ts +9 -0
  660. package/dist/api/types/CollectionItemRemovedPayloadFieldData.js +5 -0
  661. package/dist/api/types/CollectionItemUnpublished.d.ts +10 -0
  662. package/dist/api/types/CollectionItemUnpublished.js +5 -0
  663. package/dist/api/types/CollectionItemUnpublishedPayload.d.ts +25 -0
  664. package/dist/api/types/CollectionItemUnpublishedPayload.js +5 -0
  665. package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.d.ts +9 -0
  666. package/dist/api/types/CollectionItemUnpublishedPayloadFieldData.js +5 -0
  667. package/dist/api/types/Comment.d.ts +12 -0
  668. package/dist/api/types/Comment.js +5 -0
  669. package/dist/api/types/CommentPayload.d.ts +38 -0
  670. package/dist/api/types/CommentPayload.js +5 -0
  671. package/dist/api/types/CommentPayloadAuthor.d.ts +11 -0
  672. package/dist/api/types/CommentPayloadAuthor.js +5 -0
  673. package/dist/api/types/CommentPayloadMentionedUsersItem.d.ts +11 -0
  674. package/dist/api/types/CommentPayloadMentionedUsersItem.js +5 -0
  675. package/dist/api/types/CommentReply.d.ts +2 -2
  676. package/{api/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/api/types/ComponentInstance.d.ts} +1 -1
  677. package/dist/api/types/ComponentInstance.js +5 -0
  678. package/{api/types/ComponentNode.d.ts → dist/api/types/ComponentNodeDom.d.ts} +4 -4
  679. package/dist/api/types/ComponentNodeDom.js +5 -0
  680. package/dist/api/types/ComponentPropertyType.d.ts +1 -1
  681. package/dist/api/types/Conflict.d.ts +1 -1
  682. package/dist/api/types/ConflictErrorBody.d.ts +1 -1
  683. package/dist/api/types/CustomCodeBlockType.d.ts +1 -1
  684. package/dist/api/types/CustomRoleAuditLogItemEventSubType.d.ts +1 -1
  685. package/dist/api/types/Dom.d.ts +2 -0
  686. package/dist/api/types/DuplicateUserEmail.d.ts +1 -1
  687. package/dist/api/types/ErrorCode.d.ts +1 -1
  688. package/dist/api/types/Field.d.ts +2 -0
  689. package/dist/api/types/FieldCreate.d.ts +1 -1
  690. package/dist/api/types/FieldType.d.ts +1 -1
  691. package/dist/api/types/FieldValidations.d.ts +10 -0
  692. package/dist/api/types/FieldValidations.js +5 -0
  693. package/dist/api/types/FieldValidationsAdditionalProperties.d.ts +5 -0
  694. package/dist/api/types/FieldValidationsAdditionalProperties.js +5 -0
  695. package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +6 -0
  696. package/dist/api/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +5 -0
  697. package/dist/api/types/ForbiddenErrorBody.d.ts +1 -1
  698. package/dist/api/types/FormField.d.ts +1 -1
  699. package/dist/api/types/FormFieldValueType.d.ts +1 -1
  700. package/dist/api/types/FormSubmissionTrigger.d.ts +13 -0
  701. package/dist/api/types/FormSubmissionTrigger.js +5 -0
  702. package/dist/api/types/FormSubmissionTriggerPayload.d.ts +25 -0
  703. package/dist/api/types/FormSubmissionTriggerPayload.js +5 -0
  704. package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +12 -0
  705. package/dist/api/types/FormSubmissionTriggerPayloadSchemaItem.js +5 -0
  706. package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +14 -0
  707. package/dist/api/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +13 -0
  708. package/{api/types/ImageNode.d.ts → dist/api/types/ImageNodeDom.d.ts} +3 -3
  709. package/dist/api/types/ImageNodeDom.js +5 -0
  710. package/dist/api/types/InvalidDomain.d.ts +1 -1
  711. package/dist/api/types/InvalidScopes.d.ts +1 -1
  712. package/dist/api/types/InventoryItemInventoryType.d.ts +1 -1
  713. package/dist/api/types/ItemsListItemsLiveRequestLastPublished.d.ts +9 -0
  714. package/dist/api/types/ItemsListItemsLiveRequestLastPublished.js +5 -0
  715. package/dist/api/types/ItemsListItemsRequestLastPublished.d.ts +9 -0
  716. package/dist/api/types/ItemsListItemsRequestLastPublished.js +5 -0
  717. package/dist/api/types/LocalizedItem.d.ts +31 -0
  718. package/dist/api/types/LocalizedItem.js +5 -0
  719. package/dist/api/types/MultiLocaleChangedPayload.d.ts +22 -0
  720. package/dist/api/types/MultiLocaleChangedPayload.js +5 -0
  721. package/dist/api/types/MultiLocaleChangedPayloadFieldData.d.ts +11 -0
  722. package/dist/api/types/MultiLocaleChangedPayloadFieldData.js +5 -0
  723. package/dist/api/types/MultiLocaleCreatedPayload.d.ts +16 -0
  724. package/dist/api/types/MultiLocaleCreatedPayload.js +5 -0
  725. package/dist/api/types/NewOrder.d.ts +12 -0
  726. package/dist/api/types/NewOrder.js +5 -0
  727. package/dist/api/types/NoDomains.d.ts +1 -1
  728. package/dist/api/types/Node.d.ts +8 -8
  729. package/dist/api/types/NotEnterprisePlanSite.d.ts +1 -1
  730. package/dist/api/types/NotEnterprisePlanWorkspace.d.ts +1 -1
  731. package/dist/api/types/OAuthScope.d.ts +1 -1
  732. package/dist/api/types/Order.d.ts +2 -2
  733. package/dist/api/types/OrderAddressJapanType.d.ts +1 -1
  734. package/dist/api/types/OrderAddressType.d.ts +1 -1
  735. package/dist/api/types/OrderBillingAddress.d.ts +27 -0
  736. package/dist/api/types/OrderBillingAddress.js +5 -0
  737. package/dist/api/types/OrderBillingAddressJapanType.d.ts +11 -0
  738. package/dist/api/types/OrderBillingAddressJapanType.js +10 -0
  739. package/dist/api/types/OrderBillingAddressType.d.ts +11 -0
  740. package/dist/api/types/OrderBillingAddressType.js +10 -0
  741. package/dist/api/types/OrderDisputeLastStatus.d.ts +1 -1
  742. package/dist/api/types/OrderShippingAddress.d.ts +27 -0
  743. package/dist/api/types/OrderShippingAddress.js +5 -0
  744. package/dist/api/types/OrderShippingAddressJapanType.d.ts +11 -0
  745. package/dist/api/types/OrderShippingAddressJapanType.js +10 -0
  746. package/dist/api/types/OrderShippingAddressType.d.ts +11 -0
  747. package/dist/api/types/OrderShippingAddressType.js +10 -0
  748. package/dist/api/types/OrderStatus.d.ts +1 -1
  749. package/dist/api/types/OrderTotalsExtrasItemType.d.ts +1 -1
  750. package/dist/api/types/Page.d.ts +3 -3
  751. package/dist/api/types/PageCreatedWebhook.d.ts +13 -0
  752. package/dist/api/types/PageCreatedWebhook.js +5 -0
  753. package/dist/api/types/PageCreatedWebhookPayload.d.ts +13 -0
  754. package/dist/api/types/PageCreatedWebhookPayload.js +5 -0
  755. package/dist/api/types/PageDeletedWebhook.d.ts +13 -0
  756. package/dist/api/types/PageDeletedWebhook.js +5 -0
  757. package/dist/api/types/PageDeletedWebhookPayload.d.ts +13 -0
  758. package/dist/api/types/PageDeletedWebhookPayload.js +5 -0
  759. package/dist/api/types/PageMetadataUpdatedWebhook.d.ts +13 -0
  760. package/dist/api/types/PageMetadataUpdatedWebhook.js +5 -0
  761. package/dist/api/types/PageMetadataUpdatedWebhookPayload.d.ts +13 -0
  762. package/dist/api/types/PageMetadataUpdatedWebhookPayload.js +5 -0
  763. package/dist/api/types/ProductFieldData.d.ts +2 -2
  764. package/dist/api/types/ProductFieldDataEcProductType.d.ts +1 -1
  765. package/dist/api/types/ProductFieldDataTaxCategory.d.ts +1 -1
  766. package/dist/api/types/PublishStatus.d.ts +1 -1
  767. package/dist/api/types/ReferenceFieldType.d.ts +1 -1
  768. package/dist/api/types/RegisteredScriptList.d.ts +1 -0
  769. package/dist/api/types/ScriptApplyLocation.d.ts +1 -1
  770. package/dist/api/types/Scripts.d.ts +1 -1
  771. package/dist/api/types/{SearchButtonNodeWrite.d.ts → SearchButton.d.ts} +1 -1
  772. package/dist/api/types/SearchButton.js +5 -0
  773. package/{api/types/SearchButtonNode.d.ts → dist/api/types/SearchButtonNodeDom.d.ts} +1 -1
  774. package/dist/api/types/SearchButtonNodeDom.js +5 -0
  775. package/dist/api/types/{SelectNodeWrite.d.ts → Select.d.ts} +1 -1
  776. package/dist/api/types/Select.js +5 -0
  777. package/{api/types/SelectNode.d.ts → dist/api/types/SelectNodeDom.d.ts} +1 -1
  778. package/dist/api/types/SelectNodeDom.js +5 -0
  779. package/dist/api/types/SingleLocaleChangedPayload.d.ts +22 -0
  780. package/dist/api/types/SingleLocaleChangedPayload.js +5 -0
  781. package/dist/api/types/SingleLocaleChangedPayloadFieldData.d.ts +9 -0
  782. package/dist/api/types/SingleLocaleChangedPayloadFieldData.js +5 -0
  783. package/dist/api/types/SingleLocaleCreatedPayload.d.ts +22 -0
  784. package/dist/api/types/SingleLocaleCreatedPayload.js +5 -0
  785. package/dist/api/types/SingleLocaleCreatedPayloadFieldData.d.ts +9 -0
  786. package/dist/api/types/SingleLocaleCreatedPayloadFieldData.js +5 -0
  787. package/dist/api/types/SiteActivityLogItemEvent.d.ts +1 -1
  788. package/dist/api/types/SiteActivityLogItemResourceOperation.d.ts +1 -1
  789. package/dist/api/types/SiteDataCollectionType.d.ts +1 -1
  790. package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
  791. package/dist/api/types/SitePlanId.d.ts +1 -1
  792. package/dist/api/types/SitePlanName.d.ts +1 -1
  793. package/dist/api/types/SitePublish.d.ts +13 -0
  794. package/dist/api/types/SitePublish.js +5 -0
  795. package/dist/api/types/SitePublishPayload.d.ts +16 -0
  796. package/dist/api/types/SitePublishPayload.js +5 -0
  797. package/dist/api/types/SkuFieldDataEcSkuBillingMethod.d.ts +1 -1
  798. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +1 -1
  799. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +1 -1
  800. package/dist/api/types/SkuValueList.d.ts +1 -1
  801. package/dist/api/types/StaticFieldType.d.ts +1 -1
  802. package/dist/api/types/StripeCardBrand.d.ts +1 -1
  803. package/{api/types/SubmitButtonNodeWrite.d.ts → dist/api/types/SubmitButton.d.ts} +1 -1
  804. package/dist/api/types/SubmitButton.js +5 -0
  805. package/{api/types/SubmitButtonNode.d.ts → dist/api/types/SubmitButtonNodeDom.d.ts} +1 -1
  806. package/dist/api/types/SubmitButtonNodeDom.js +5 -0
  807. package/dist/api/types/{TextInputNodeWrite.d.ts → TextInput.d.ts} +1 -1
  808. package/dist/api/types/TextInput.js +5 -0
  809. package/dist/api/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +1 -1
  810. package/dist/api/types/TextInputNodeDom.js +5 -0
  811. package/dist/api/types/TextNode.d.ts +4 -7
  812. package/dist/api/types/TextNodeDom.d.ts +15 -0
  813. package/dist/api/types/TextNodeDom.js +5 -0
  814. package/dist/api/types/TriggerType.d.ts +1 -1
  815. package/dist/api/types/UpdatedOrder.d.ts +12 -0
  816. package/dist/api/types/UpdatedOrder.js +5 -0
  817. package/dist/api/types/User.d.ts +0 -1
  818. package/dist/api/types/UserAccessAuditLogItemEventSubType.d.ts +1 -1
  819. package/dist/api/types/UserAccessGroupsItemType.d.ts +1 -1
  820. package/dist/api/types/UserLimitReached.d.ts +1 -1
  821. package/dist/api/types/UserStatus.d.ts +1 -1
  822. package/dist/api/types/UsersNotEnabled.d.ts +1 -1
  823. package/dist/api/types/WorkspaceAuditLogItem.d.ts +1 -1
  824. package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
  825. package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.d.ts +1 -1
  826. package/dist/api/types/WorkspaceAuditLogItemPayloadUserAccessMethod.d.ts +1 -1
  827. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.d.ts +1 -1
  828. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.d.ts +1 -1
  829. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
  830. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.d.ts +1 -1
  831. package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
  832. package/dist/api/types/WorkspaceMembershipAuditLogItemEventSubType.d.ts +1 -1
  833. package/dist/api/types/index.d.ts +62 -15
  834. package/dist/api/types/index.js +62 -15
  835. package/dist/core/auth/BearerToken.d.ts +1 -1
  836. package/dist/core/fetcher/APIResponse.d.ts +11 -1
  837. package/dist/core/fetcher/Fetcher.d.ts +4 -3
  838. package/dist/core/fetcher/Fetcher.js +35 -14
  839. package/dist/core/fetcher/Headers.d.ts +2 -0
  840. package/dist/core/fetcher/Headers.js +84 -0
  841. package/dist/core/fetcher/HttpResponsePromise.d.ts +58 -0
  842. package/dist/core/fetcher/HttpResponsePromise.js +103 -0
  843. package/dist/core/fetcher/RawResponse.d.ts +29 -0
  844. package/dist/core/fetcher/RawResponse.js +44 -0
  845. package/dist/core/fetcher/Supplier.d.ts +1 -1
  846. package/dist/core/fetcher/createRequestUrl.d.ts +1 -1
  847. package/dist/core/fetcher/createRequestUrl.js +1 -2
  848. package/dist/core/fetcher/getFetchFn.js +18 -9
  849. package/dist/core/fetcher/getHeader.js +1 -2
  850. package/dist/core/fetcher/getRequestBody.js +5 -5
  851. package/dist/core/fetcher/getResponseBody.js +1 -2
  852. package/dist/core/fetcher/index.d.ts +3 -0
  853. package/dist/core/fetcher/index.js +7 -1
  854. package/dist/core/fetcher/makeRequest.d.ts +1 -1
  855. package/dist/core/fetcher/requestWithRetries.js +4 -5
  856. package/dist/core/fetcher/signals.d.ts +0 -1
  857. package/dist/core/fetcher/signals.js +2 -3
  858. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.d.ts +0 -1
  859. package/dist/core/fetcher/stream-wrappers/NodePre18StreamWrapper.js +6 -4
  860. package/dist/core/fetcher/stream-wrappers/UndiciStreamWrapper.d.ts +1 -1
  861. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.d.ts +1 -1
  862. package/dist/core/fetcher/stream-wrappers/chooseStreamWrapper.js +18 -9
  863. package/dist/core/headers.d.ts +3 -0
  864. package/dist/core/headers.js +29 -0
  865. package/dist/core/index.d.ts +1 -1
  866. package/dist/core/index.js +18 -8
  867. package/dist/core/json.d.ts +15 -0
  868. package/dist/core/json.js +24 -0
  869. package/dist/core/runtime/runtime.d.ts +1 -1
  870. package/dist/core/runtime/runtime.js +50 -41
  871. package/dist/core/schemas/Schema.d.ts +7 -5
  872. package/dist/core/schemas/Schema.js +2 -0
  873. package/dist/core/schemas/builders/bigint/bigint.d.ts +1 -1
  874. package/dist/core/schemas/builders/bigint/bigint.js +22 -19
  875. package/dist/core/schemas/builders/date/date.js +1 -2
  876. package/dist/core/schemas/builders/enum/enum.js +1 -2
  877. package/dist/core/schemas/builders/lazy/lazy.d.ts +1 -1
  878. package/dist/core/schemas/builders/lazy/lazy.js +3 -4
  879. package/dist/core/schemas/builders/lazy/lazyObject.js +1 -2
  880. package/dist/core/schemas/builders/list/list.js +1 -2
  881. package/dist/core/schemas/builders/literals/booleanLiteral.js +1 -2
  882. package/dist/core/schemas/builders/literals/stringLiteral.js +1 -2
  883. package/dist/core/schemas/builders/object/object.d.ts +1 -1
  884. package/dist/core/schemas/builders/object/object.js +3 -3
  885. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.d.ts +3 -3
  886. package/dist/core/schemas/builders/object/objectWithoutOptionalProperties.js +1 -2
  887. package/dist/core/schemas/builders/object/property.js +2 -3
  888. package/dist/core/schemas/builders/object/types.d.ts +11 -11
  889. package/dist/core/schemas/builders/object-like/getObjectLikeUtils.js +2 -3
  890. package/dist/core/schemas/builders/object-like/types.d.ts +1 -1
  891. package/dist/core/schemas/builders/record/record.js +2 -4
  892. package/dist/core/schemas/builders/record/types.d.ts +2 -2
  893. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.d.ts +4 -0
  894. package/dist/core/schemas/builders/schema-utils/getSchemaUtils.js +67 -4
  895. package/dist/core/schemas/builders/schema-utils/stringifyValidationErrors.js +1 -2
  896. package/dist/core/schemas/builders/set/set.js +1 -2
  897. package/dist/core/schemas/builders/undiscriminated-union/types.d.ts +4 -4
  898. package/dist/core/schemas/builders/undiscriminated-union/undiscriminatedUnion.js +1 -2
  899. package/dist/core/schemas/builders/union/discriminant.js +1 -2
  900. package/dist/core/schemas/builders/union/types.d.ts +6 -6
  901. package/dist/core/schemas/builders/union/union.d.ts +1 -1
  902. package/dist/core/schemas/builders/union/union.js +1 -2
  903. package/dist/core/schemas/utils/MaybePromise.d.ts +1 -1
  904. package/dist/core/schemas/utils/addQuestionMarksToNullableProperties.d.ts +4 -4
  905. package/dist/core/schemas/utils/createIdentitySchemaCreator.js +1 -2
  906. package/dist/core/schemas/utils/entries.d.ts +1 -1
  907. package/dist/core/schemas/utils/entries.js +1 -2
  908. package/dist/core/schemas/utils/filterObject.d.ts +1 -1
  909. package/dist/core/schemas/utils/filterObject.js +1 -2
  910. package/dist/core/schemas/utils/getErrorMessageForIncorrectType.js +1 -2
  911. package/dist/core/schemas/utils/isPlainObject.js +1 -2
  912. package/dist/core/schemas/utils/keys.d.ts +1 -1
  913. package/dist/core/schemas/utils/keys.js +1 -2
  914. package/dist/core/schemas/utils/maybeSkipValidation.js +1 -2
  915. package/dist/core/schemas/utils/partition.js +1 -2
  916. package/dist/environments.d.ts +1 -1
  917. package/dist/errors/WebflowError.d.ts +4 -1
  918. package/dist/errors/WebflowError.js +6 -8
  919. package/dist/index.js +17 -7
  920. package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
  921. package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
  922. package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
  923. package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
  924. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
  925. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
  926. package/dist/serialization/resources/collections/resources/index.js +17 -7
  927. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  928. package/dist/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
  929. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
  930. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
  931. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
  932. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
  933. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
  934. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
  935. package/dist/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  936. package/dist/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  937. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
  938. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
  939. package/dist/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
  940. package/{serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → dist/serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
  941. package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
  942. package/dist/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
  943. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
  944. package/{serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
  945. package/{serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts} +2 -2
  946. package/dist/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
  947. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
  948. package/dist/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
  949. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
  950. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
  951. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
  952. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
  953. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
  954. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
  955. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
  956. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
  957. package/dist/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
  958. package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
  959. package/dist/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
  960. package/dist/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
  961. package/dist/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
  962. package/dist/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
  963. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
  964. package/dist/serialization/resources/collections/resources/items/types/index.js +7 -2
  965. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
  966. package/dist/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
  967. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
  968. package/dist/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
  969. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +7 -7
  970. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
  971. package/dist/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
  972. package/dist/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
  973. package/dist/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
  974. package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
  975. package/dist/serialization/resources/index.js +17 -7
  976. package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
  977. package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
  978. package/dist/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
  979. package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
  980. package/dist/serialization/resources/inventory/types/index.d.ts +1 -0
  981. package/dist/serialization/resources/inventory/types/index.js +1 -0
  982. package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
  983. package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
  984. package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
  985. package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
  986. package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
  987. package/dist/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
  988. package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
  989. package/dist/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
  990. package/dist/serialization/resources/pages/client/requests/index.d.ts +1 -0
  991. package/dist/serialization/resources/pages/client/requests/index.js +3 -1
  992. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +7 -7
  993. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
  994. package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
  995. package/dist/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
  996. package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
  997. package/dist/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
  998. package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
  999. package/dist/serialization/resources/pages/types/index.d.ts +2 -0
  1000. package/dist/serialization/resources/pages/types/index.js +2 -0
  1001. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
  1002. package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
  1003. package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
  1004. package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
  1005. package/dist/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
  1006. package/dist/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
  1007. package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  1008. package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
  1009. package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
  1010. package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
  1011. package/dist/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
  1012. package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
  1013. package/dist/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
  1014. package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
  1015. package/dist/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
  1016. package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
  1017. package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
  1018. package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
  1019. package/dist/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
  1020. package/dist/serialization/resources/sites/resources/index.js +17 -7
  1021. package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
  1022. package/dist/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
  1023. package/dist/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
  1024. package/dist/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
  1025. package/dist/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
  1026. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  1027. package/dist/serialization/resources/users/client/requests/index.js +1 -3
  1028. package/dist/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
  1029. package/dist/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
  1030. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
  1031. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
  1032. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
  1033. package/dist/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
  1034. package/dist/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
  1035. package/dist/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
  1036. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
  1037. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
  1038. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
  1039. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
  1040. package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
  1041. package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
  1042. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
  1043. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
  1044. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
  1045. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
  1046. package/dist/serialization/resources/users/types/UsersListRequestSort.js +17 -7
  1047. package/dist/serialization/resources/users/types/index.d.ts +9 -1
  1048. package/dist/serialization/resources/users/types/index.js +9 -1
  1049. package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
  1050. package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
  1051. package/dist/serialization/resources/workspaces/resources/index.js +17 -7
  1052. package/dist/serialization/types/AccessGroup.js +17 -7
  1053. package/dist/serialization/types/AccessGroupList.js +17 -7
  1054. package/dist/serialization/types/Application.d.ts +7 -2
  1055. package/dist/serialization/types/Application.js +23 -8
  1056. package/dist/serialization/types/Asset.d.ts +2 -2
  1057. package/dist/serialization/types/Asset.js +19 -9
  1058. package/dist/serialization/types/AssetFolder.js +17 -7
  1059. package/dist/serialization/types/AssetFolderList.js +17 -7
  1060. package/dist/serialization/types/AssetUpload.js +17 -7
  1061. package/dist/serialization/types/AssetUploadUploadDetails.js +17 -7
  1062. package/dist/serialization/types/AssetVariant.d.ts +6 -6
  1063. package/dist/serialization/types/AssetVariant.js +23 -13
  1064. package/dist/serialization/types/Assets.js +17 -7
  1065. package/dist/serialization/types/Authorization.d.ts +1 -1
  1066. package/dist/serialization/types/Authorization.js +17 -7
  1067. package/dist/serialization/types/AuthorizationAuthorization.js +17 -7
  1068. package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
  1069. package/dist/serialization/types/AuthorizedUser.js +17 -7
  1070. package/dist/serialization/types/BadRequestErrorBody.js +17 -7
  1071. package/dist/serialization/types/BulkCollectionItem.d.ts +1 -1
  1072. package/dist/serialization/types/BulkCollectionItem.js +18 -8
  1073. package/dist/serialization/types/BulkCollectionItemFieldData.js +17 -7
  1074. package/dist/serialization/types/Collection.d.ts +2 -2
  1075. package/dist/serialization/types/Collection.js +19 -9
  1076. package/dist/serialization/types/CollectionItem.js +17 -7
  1077. package/dist/serialization/types/CollectionItemChanged.d.ts +14 -0
  1078. package/dist/serialization/types/CollectionItemChanged.js +45 -0
  1079. package/dist/serialization/types/CollectionItemChangedPayload.d.ts +12 -0
  1080. package/dist/serialization/types/CollectionItemChangedPayload.js +43 -0
  1081. package/dist/serialization/types/CollectionItemCreated.d.ts +14 -0
  1082. package/dist/serialization/types/CollectionItemCreated.js +45 -0
  1083. package/dist/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
  1084. package/dist/serialization/types/CollectionItemCreatedPayload.js +43 -0
  1085. package/dist/serialization/types/CollectionItemFieldData.js +17 -7
  1086. package/dist/serialization/types/CollectionItemList.js +17 -7
  1087. package/dist/serialization/types/CollectionItemListNoPagination.js +17 -7
  1088. package/dist/serialization/types/CollectionItemListPagination.js +17 -7
  1089. package/dist/serialization/types/CollectionItemPatchSingle.js +17 -7
  1090. package/dist/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
  1091. package/dist/serialization/types/CollectionItemPostSingle.js +17 -7
  1092. package/dist/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
  1093. package/dist/serialization/types/CollectionItemRemoved.d.ts +14 -0
  1094. package/dist/serialization/types/CollectionItemRemoved.js +45 -0
  1095. package/dist/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
  1096. package/dist/serialization/types/CollectionItemRemovedPayload.js +54 -0
  1097. package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
  1098. package/dist/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
  1099. package/dist/serialization/types/CollectionItemUnpublished.d.ts +14 -0
  1100. package/dist/serialization/types/CollectionItemUnpublished.js +45 -0
  1101. package/dist/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
  1102. package/dist/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
  1103. package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
  1104. package/dist/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
  1105. package/dist/serialization/types/CollectionItemWithIdInput.js +17 -7
  1106. package/dist/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
  1107. package/dist/serialization/types/CollectionList.js +17 -7
  1108. package/dist/serialization/types/CollectionListArrayItem.js +17 -7
  1109. package/dist/serialization/types/Comment.d.ts +14 -0
  1110. package/dist/serialization/types/Comment.js +45 -0
  1111. package/dist/serialization/types/CommentPayload.d.ts +28 -0
  1112. package/dist/serialization/types/CommentPayload.js +59 -0
  1113. package/dist/serialization/types/CommentPayloadAuthor.d.ts +14 -0
  1114. package/dist/serialization/types/CommentPayloadAuthor.js +45 -0
  1115. package/dist/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
  1116. package/dist/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
  1117. package/dist/serialization/types/CommentReply.d.ts +2 -2
  1118. package/dist/serialization/types/CommentReply.js +19 -9
  1119. package/dist/serialization/types/CommentReplyAuthor.js +17 -7
  1120. package/dist/serialization/types/CommentReplyList.js +17 -7
  1121. package/dist/serialization/types/CommentReplyListPagination.js +17 -7
  1122. package/dist/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
  1123. package/dist/serialization/types/CommentThread.js +17 -7
  1124. package/dist/serialization/types/CommentThreadAuthor.js +17 -7
  1125. package/dist/serialization/types/CommentThreadList.js +17 -7
  1126. package/dist/serialization/types/CommentThreadListPagination.js +17 -7
  1127. package/dist/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
  1128. package/dist/serialization/types/Component.js +17 -7
  1129. package/dist/serialization/types/ComponentDom.js +17 -7
  1130. package/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → dist/serialization/types/ComponentInstance.d.ts} +2 -2
  1131. package/{serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → dist/serialization/types/ComponentInstance.js} +19 -9
  1132. package/dist/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
  1133. package/dist/serialization/types/ComponentList.js +17 -7
  1134. package/dist/serialization/types/ComponentNodeDom.d.ts +15 -0
  1135. package/dist/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
  1136. package/dist/serialization/types/ComponentProperties.js +17 -7
  1137. package/dist/serialization/types/ComponentProperty.js +17 -7
  1138. package/dist/serialization/types/ComponentPropertyType.js +17 -7
  1139. package/dist/serialization/types/Conflict.js +17 -7
  1140. package/dist/serialization/types/ConflictErrorBody.js +17 -7
  1141. package/dist/serialization/types/CustomCodeBlock.js +17 -7
  1142. package/dist/serialization/types/CustomCodeBlockType.js +17 -7
  1143. package/dist/serialization/types/CustomCodeHostedResponse.js +17 -7
  1144. package/dist/serialization/types/CustomCodeInlineResponse.js +17 -7
  1145. package/dist/serialization/types/CustomRole.js +17 -7
  1146. package/dist/serialization/types/CustomRoleAuditLogItem.js +17 -7
  1147. package/dist/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
  1148. package/dist/serialization/types/Dom.d.ts +1 -0
  1149. package/dist/serialization/types/Dom.js +18 -7
  1150. package/dist/serialization/types/Domain.js +17 -7
  1151. package/dist/serialization/types/Domains.js +17 -7
  1152. package/dist/serialization/types/DuplicateUserEmail.js +17 -7
  1153. package/dist/serialization/types/EcommerceSettings.js +17 -7
  1154. package/dist/serialization/types/ErrorCode.js +17 -7
  1155. package/dist/serialization/types/Error_.js +17 -7
  1156. package/dist/serialization/types/Field.d.ts +2 -0
  1157. package/dist/serialization/types/Field.js +19 -7
  1158. package/dist/serialization/types/FieldCreate.js +17 -7
  1159. package/dist/serialization/types/FieldType.js +17 -7
  1160. package/dist/serialization/types/FieldValidations.d.ts +13 -0
  1161. package/dist/serialization/types/FieldValidations.js +44 -0
  1162. package/dist/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
  1163. package/dist/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
  1164. package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
  1165. package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
  1166. package/dist/serialization/types/ForbiddenErrorBody.js +17 -7
  1167. package/dist/serialization/types/Form.js +17 -7
  1168. package/dist/serialization/types/FormField.js +17 -7
  1169. package/dist/serialization/types/FormFieldValue.js +17 -7
  1170. package/dist/serialization/types/FormFieldValueType.js +17 -7
  1171. package/dist/serialization/types/FormList.js +17 -7
  1172. package/dist/serialization/types/FormResponseSettings.js +17 -7
  1173. package/dist/serialization/types/FormSubmission.js +17 -7
  1174. package/dist/serialization/types/FormSubmissionList.js +17 -7
  1175. package/dist/serialization/types/FormSubmissionTrigger.d.ts +14 -0
  1176. package/dist/serialization/types/FormSubmissionTrigger.js +45 -0
  1177. package/dist/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
  1178. package/dist/serialization/types/FormSubmissionTriggerPayload.js +51 -0
  1179. package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
  1180. package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
  1181. package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
  1182. package/dist/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
  1183. package/{serialization/types/ImageNode.d.ts → dist/serialization/types/ImageNodeDom.d.ts} +4 -4
  1184. package/{serialization/types/ImageNode.js → dist/serialization/types/ImageNodeDom.js} +21 -11
  1185. package/dist/serialization/types/ImageNodeImage.js +17 -7
  1186. package/dist/serialization/types/InvalidDomain.js +17 -7
  1187. package/dist/serialization/types/InvalidScopes.js +17 -7
  1188. package/dist/serialization/types/InventoryItem.js +17 -7
  1189. package/dist/serialization/types/InventoryItemInventoryType.js +17 -7
  1190. package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
  1191. package/dist/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
  1192. package/dist/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
  1193. package/dist/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
  1194. package/dist/serialization/types/ListCustomCodeBlocks.js +17 -7
  1195. package/dist/serialization/types/Locale.js +17 -7
  1196. package/dist/serialization/types/Locales.js +17 -7
  1197. package/dist/serialization/types/LocalizedItem.d.ts +24 -0
  1198. package/dist/serialization/types/LocalizedItem.js +55 -0
  1199. package/dist/serialization/types/Metadata.js +17 -7
  1200. package/dist/serialization/types/MetadataOptionsItem.js +17 -7
  1201. package/dist/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
  1202. package/dist/serialization/types/MultiLocaleChangedPayload.js +54 -0
  1203. package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
  1204. package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
  1205. package/dist/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
  1206. package/dist/serialization/types/MultiLocaleCreatedPayload.js +48 -0
  1207. package/dist/serialization/types/NewOrder.d.ts +14 -0
  1208. package/dist/serialization/types/NewOrder.js +45 -0
  1209. package/dist/serialization/types/NoDomains.js +17 -7
  1210. package/dist/serialization/types/Node.d.ts +14 -14
  1211. package/dist/serialization/types/Node.js +31 -21
  1212. package/dist/serialization/types/NotEnterprisePlanSite.js +17 -7
  1213. package/dist/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
  1214. package/dist/serialization/types/OptionField.js +17 -7
  1215. package/dist/serialization/types/Order.d.ts +4 -2
  1216. package/dist/serialization/types/Order.js +21 -9
  1217. package/dist/serialization/types/OrderAddress.js +17 -7
  1218. package/dist/serialization/types/OrderAddressJapanType.js +17 -7
  1219. package/dist/serialization/types/OrderAddressType.js +17 -7
  1220. package/dist/serialization/types/OrderBillingAddress.d.ts +22 -0
  1221. package/dist/serialization/types/OrderBillingAddress.js +53 -0
  1222. package/dist/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
  1223. package/dist/serialization/types/OrderBillingAddressJapanType.js +41 -0
  1224. package/dist/serialization/types/OrderBillingAddressType.d.ts +10 -0
  1225. package/dist/serialization/types/OrderBillingAddressType.js +41 -0
  1226. package/dist/serialization/types/OrderCustomerInfo.js +17 -7
  1227. package/dist/serialization/types/OrderDisputeLastStatus.js +17 -7
  1228. package/dist/serialization/types/OrderDownloadFilesItem.js +17 -7
  1229. package/dist/serialization/types/OrderList.js +17 -7
  1230. package/dist/serialization/types/OrderMetadata.js +17 -7
  1231. package/dist/serialization/types/OrderPrice.js +17 -7
  1232. package/dist/serialization/types/OrderPurchasedItem.js +17 -7
  1233. package/dist/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
  1234. package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
  1235. package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
  1236. package/dist/serialization/types/OrderShippingAddress.d.ts +22 -0
  1237. package/dist/serialization/types/OrderShippingAddress.js +53 -0
  1238. package/dist/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
  1239. package/dist/serialization/types/OrderShippingAddressJapanType.js +41 -0
  1240. package/dist/serialization/types/OrderShippingAddressType.d.ts +10 -0
  1241. package/dist/serialization/types/OrderShippingAddressType.js +41 -0
  1242. package/dist/serialization/types/OrderStatus.js +17 -7
  1243. package/dist/serialization/types/OrderTotals.js +17 -7
  1244. package/dist/serialization/types/OrderTotalsExtrasItem.js +17 -7
  1245. package/dist/serialization/types/OrderTotalsExtrasItemType.js +17 -7
  1246. package/dist/serialization/types/Page.d.ts +1 -1
  1247. package/dist/serialization/types/Page.js +18 -8
  1248. package/dist/serialization/types/PageCreatedWebhook.d.ts +14 -0
  1249. package/dist/serialization/types/PageCreatedWebhook.js +45 -0
  1250. package/dist/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
  1251. package/dist/serialization/types/PageCreatedWebhookPayload.js +47 -0
  1252. package/dist/serialization/types/PageDeletedWebhook.d.ts +14 -0
  1253. package/dist/serialization/types/PageDeletedWebhook.js +45 -0
  1254. package/dist/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
  1255. package/dist/serialization/types/PageDeletedWebhookPayload.js +47 -0
  1256. package/dist/serialization/types/PageList.js +17 -7
  1257. package/dist/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
  1258. package/dist/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
  1259. package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
  1260. package/dist/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
  1261. package/dist/serialization/types/PageOpenGraph.js +17 -7
  1262. package/dist/serialization/types/PageSeo.js +17 -7
  1263. package/dist/serialization/types/Pagination.js +17 -7
  1264. package/dist/serialization/types/PaypalDetails.js +17 -7
  1265. package/dist/serialization/types/Product.js +17 -7
  1266. package/dist/serialization/types/ProductAndSkUs.js +17 -7
  1267. package/dist/serialization/types/ProductAndSkUsList.js +17 -7
  1268. package/dist/serialization/types/ProductFieldData.d.ts +1 -1
  1269. package/dist/serialization/types/ProductFieldData.js +18 -8
  1270. package/dist/serialization/types/ProductFieldDataEcProductType.js +17 -7
  1271. package/dist/serialization/types/ProductFieldDataTaxCategory.js +17 -7
  1272. package/dist/serialization/types/PublishStatus.js +17 -7
  1273. package/dist/serialization/types/Redirect.js +17 -7
  1274. package/dist/serialization/types/Redirects.js +17 -7
  1275. package/dist/serialization/types/ReferenceField.js +17 -7
  1276. package/dist/serialization/types/ReferenceFieldMetadata.js +17 -7
  1277. package/dist/serialization/types/ReferenceFieldType.js +17 -7
  1278. package/dist/serialization/types/RegisteredScriptList.d.ts +2 -0
  1279. package/dist/serialization/types/RegisteredScriptList.js +19 -7
  1280. package/dist/serialization/types/Robots.js +17 -7
  1281. package/dist/serialization/types/RobotsRulesItem.js +17 -7
  1282. package/dist/serialization/types/ScriptApply.js +17 -7
  1283. package/dist/serialization/types/ScriptApplyList.js +17 -7
  1284. package/dist/serialization/types/ScriptApplyLocation.js +17 -7
  1285. package/dist/serialization/types/Scripts.js +17 -7
  1286. package/{serialization/types/SearchButtonNodeWrite.d.ts → dist/serialization/types/SearchButton.d.ts} +2 -2
  1287. package/dist/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
  1288. package/dist/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
  1289. package/{serialization/types/SearchButtonNode.js → dist/serialization/types/SearchButtonNodeDom.js} +19 -9
  1290. package/{serialization/types/SelectNodeWrite.d.ts → dist/serialization/types/Select.d.ts} +2 -2
  1291. package/{serialization/types/SelectNodeWrite.js → dist/serialization/types/Select.js} +19 -9
  1292. package/dist/serialization/types/SelectNodeChoicesItem.js +17 -7
  1293. package/{serialization/types/SelectNode.d.ts → dist/serialization/types/SelectNodeDom.d.ts} +2 -2
  1294. package/dist/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
  1295. package/dist/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
  1296. package/dist/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
  1297. package/dist/serialization/types/SingleLocaleChangedPayload.js +54 -0
  1298. package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
  1299. package/dist/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
  1300. package/dist/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
  1301. package/dist/serialization/types/SingleLocaleCreatedPayload.js +54 -0
  1302. package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
  1303. package/dist/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
  1304. package/dist/serialization/types/Site.js +17 -7
  1305. package/dist/serialization/types/SiteActivityLogItem.js +17 -7
  1306. package/dist/serialization/types/SiteActivityLogItemEvent.js +17 -7
  1307. package/dist/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
  1308. package/dist/serialization/types/SiteActivityLogItemUser.js +17 -7
  1309. package/dist/serialization/types/SiteActivityLogResponse.js +17 -7
  1310. package/dist/serialization/types/SiteDataCollectionType.js +17 -7
  1311. package/dist/serialization/types/SiteMembership.js +17 -7
  1312. package/dist/serialization/types/SiteMembershipAuditLogItem.js +17 -7
  1313. package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
  1314. package/dist/serialization/types/SitePlan.js +17 -7
  1315. package/dist/serialization/types/SitePlanId.js +17 -7
  1316. package/dist/serialization/types/SitePlanName.js +17 -7
  1317. package/dist/serialization/types/SitePublish.d.ts +14 -0
  1318. package/dist/serialization/types/SitePublish.js +45 -0
  1319. package/dist/serialization/types/SitePublishPayload.d.ts +15 -0
  1320. package/dist/serialization/types/SitePublishPayload.js +46 -0
  1321. package/dist/serialization/types/Sites.js +17 -7
  1322. package/dist/serialization/types/Sku.js +17 -7
  1323. package/dist/serialization/types/SkuFieldData.js +17 -7
  1324. package/dist/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
  1325. package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
  1326. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
  1327. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
  1328. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
  1329. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
  1330. package/dist/serialization/types/SkuFieldDataPrice.js +17 -7
  1331. package/dist/serialization/types/SkuPropertyList.js +17 -7
  1332. package/dist/serialization/types/SkuPropertyListEnumItem.js +17 -7
  1333. package/dist/serialization/types/SkuValueList.js +17 -7
  1334. package/dist/serialization/types/StaticField.js +17 -7
  1335. package/dist/serialization/types/StaticFieldType.js +17 -7
  1336. package/dist/serialization/types/StripeCard.js +17 -7
  1337. package/dist/serialization/types/StripeCardBrand.js +17 -7
  1338. package/dist/serialization/types/StripeCardExpires.js +17 -7
  1339. package/dist/serialization/types/StripeDetails.js +17 -7
  1340. package/{serialization/types/SubmitButtonNodeWrite.d.ts → dist/serialization/types/SubmitButton.d.ts} +2 -2
  1341. package/{serialization/types/SubmitButtonNodeWrite.js → dist/serialization/types/SubmitButton.js} +19 -9
  1342. package/{serialization/types/SubmitButtonNode.d.ts → dist/serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
  1343. package/dist/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
  1344. package/dist/serialization/types/Text.js +17 -7
  1345. package/{serialization/types/TextInputNodeWrite.d.ts → dist/serialization/types/TextInput.d.ts} +2 -2
  1346. package/dist/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
  1347. package/dist/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
  1348. package/{serialization/types/TextInputNode.js → dist/serialization/types/TextInputNodeDom.js} +19 -9
  1349. package/dist/serialization/types/TextNode.d.ts +2 -4
  1350. package/dist/serialization/types/TextNode.js +19 -11
  1351. package/dist/serialization/types/TextNodeDom.d.ts +15 -0
  1352. package/dist/serialization/types/TextNodeDom.js +46 -0
  1353. package/dist/serialization/types/TextNodeText.js +17 -7
  1354. package/dist/serialization/types/TriggerType.js +17 -7
  1355. package/dist/serialization/types/UpdatedOrder.d.ts +14 -0
  1356. package/dist/serialization/types/UpdatedOrder.js +45 -0
  1357. package/dist/serialization/types/User.js +17 -7
  1358. package/dist/serialization/types/UserAccess.js +17 -7
  1359. package/dist/serialization/types/UserAccessAuditLogItem.js +17 -7
  1360. package/dist/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
  1361. package/dist/serialization/types/UserAccessGroupsItem.js +17 -7
  1362. package/dist/serialization/types/UserAccessGroupsItemType.js +17 -7
  1363. package/dist/serialization/types/UserData.js +17 -7
  1364. package/dist/serialization/types/UserDataData.js +17 -7
  1365. package/dist/serialization/types/UserLimitReached.js +17 -7
  1366. package/dist/serialization/types/UserList.js +17 -7
  1367. package/dist/serialization/types/UserStatus.js +17 -7
  1368. package/dist/serialization/types/UsersNotEnabled.js +17 -7
  1369. package/dist/serialization/types/Webhook.js +17 -7
  1370. package/dist/serialization/types/WebhookFilter.js +17 -7
  1371. package/dist/serialization/types/WebhookList.js +17 -7
  1372. package/dist/serialization/types/WorkspaceAuditLogItem.js +17 -7
  1373. package/dist/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
  1374. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
  1375. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
  1376. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
  1377. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
  1378. package/dist/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
  1379. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
  1380. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
  1381. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
  1382. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
  1383. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
  1384. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
  1385. package/dist/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
  1386. package/dist/serialization/types/WorkspaceAuditLogResponse.js +17 -7
  1387. package/dist/serialization/types/WorkspaceInvitation.js +17 -7
  1388. package/dist/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
  1389. package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -7
  1390. package/dist/serialization/types/WorkspaceMembership.js +17 -7
  1391. package/dist/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
  1392. package/dist/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
  1393. package/dist/serialization/types/index.d.ts +62 -15
  1394. package/dist/serialization/types/index.js +62 -15
  1395. package/dist/version.d.ts +1 -1
  1396. package/dist/version.js +1 -1
  1397. package/dist/wrapper/CollectionsClient.d.ts +11 -0
  1398. package/dist/wrapper/CollectionsClient.js +18 -0
  1399. package/dist/wrapper/ItemsClient.d.ts +167 -0
  1400. package/dist/wrapper/ItemsClient.js +630 -0
  1401. package/dist/wrapper/PagesClient.d.ts +49 -0
  1402. package/dist/wrapper/PagesClient.js +214 -0
  1403. package/dist/wrapper/WebflowClient.d.ts +6 -0
  1404. package/dist/wrapper/WebflowClient.js +29 -9
  1405. package/dist/wrapper/WebhooksClient.d.ts +0 -1
  1406. package/dist/wrapper/WebhooksClient.js +2 -5
  1407. package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
  1408. package/dist/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
  1409. package/dist/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
  1410. package/dist/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
  1411. package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
  1412. package/dist/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
  1413. package/dist/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
  1414. package/dist/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
  1415. package/{api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → dist/wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
  1416. package/dist/wrapper/schemas/PageMetadataWrite.js +2 -0
  1417. package/dist/wrapper/schemas/index.d.ts +5 -0
  1418. package/dist/wrapper/schemas/index.js +21 -0
  1419. package/environments.d.ts +1 -1
  1420. package/errors/WebflowError.d.ts +4 -1
  1421. package/errors/WebflowError.js +6 -8
  1422. package/index.js +17 -7
  1423. package/jest.config.mjs +13 -0
  1424. package/package.json +24 -18
  1425. package/reference.md +115 -91
  1426. package/scripts/rename-to-esm-files.js +123 -0
  1427. package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +17 -7
  1428. package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.js +17 -7
  1429. package/serialization/resources/assets/client/requests/AssetsCreateRequest.js +17 -7
  1430. package/serialization/resources/assets/client/requests/AssetsUpdateRequest.js +17 -7
  1431. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.js +17 -7
  1432. package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.js +17 -7
  1433. package/serialization/resources/collections/resources/index.js +17 -7
  1434. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +1 -1
  1435. package/serialization/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.js +17 -7
  1436. package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsLiveRequest.js +17 -7
  1437. package/serialization/resources/collections/resources/items/client/requests/ItemsDeleteItemsRequest.js +17 -7
  1438. package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +1 -1
  1439. package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.js +17 -7
  1440. package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +1 -1
  1441. package/serialization/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.js +17 -7
  1442. package/serialization/resources/collections/resources/items/client/requests/index.d.ts +0 -1
  1443. package/serialization/resources/collections/resources/items/client/requests/index.js +1 -3
  1444. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +17 -7
  1445. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +17 -7
  1446. package/serialization/resources/collections/resources/items/types/ItemIDs.d.ts +12 -0
  1447. package/{dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.js → serialization/resources/collections/resources/items/types/ItemIDs.js} +21 -11
  1448. package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.d.ts +13 -0
  1449. package/serialization/resources/collections/resources/items/types/ItemIDsWithLocales.js +44 -0
  1450. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemLiveRequest.d.ts → ItemsCreateItemLiveRequestBody.d.ts} +2 -2
  1451. package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → serialization/resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +19 -9
  1452. package/{dist/serialization/resources/collections/resources/items/types/ItemsCreateItemRequest.d.ts → serialization/resources/collections/resources/items/types/ItemsCreateItemRequestBody.d.ts} +2 -2
  1453. package/serialization/resources/collections/resources/items/types/{ItemsCreateItemRequest.js → ItemsCreateItemRequestBody.js} +19 -9
  1454. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsLiveRequestItemsItem.js +17 -7
  1455. package/serialization/resources/collections/resources/items/types/ItemsDeleteItemsRequestItemsItem.js +17 -7
  1456. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +17 -7
  1457. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +17 -7
  1458. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +17 -7
  1459. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +17 -7
  1460. package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.d.ts +12 -0
  1461. package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequest.js +43 -0
  1462. package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.d.ts +13 -0
  1463. package/serialization/resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js +44 -0
  1464. package/serialization/resources/collections/resources/items/types/ItemsPublishItemResponse.js +17 -7
  1465. package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.d.ts +12 -0
  1466. package/serialization/resources/collections/resources/items/types/ItemsUpdateItemsResponse.js +43 -0
  1467. package/serialization/resources/collections/resources/items/types/MultipleItems.js +17 -7
  1468. package/serialization/resources/collections/resources/items/types/MultipleLiveItems.js +17 -7
  1469. package/serialization/resources/collections/resources/items/types/SingleCmsItem.js +17 -7
  1470. package/serialization/resources/collections/resources/items/types/index.d.ts +7 -2
  1471. package/serialization/resources/collections/resources/items/types/index.js +7 -2
  1472. package/serialization/resources/components/client/requests/ComponentDomWrite.d.ts +1 -1
  1473. package/serialization/resources/components/client/requests/ComponentDomWrite.js +17 -7
  1474. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.d.ts +1 -1
  1475. package/serialization/resources/components/client/requests/ComponentPropertiesWrite.js +17 -7
  1476. package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +7 -7
  1477. package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +29 -19
  1478. package/serialization/resources/components/types/ComponentPropertiesWritePropertiesItem.js +17 -7
  1479. package/serialization/resources/components/types/ComponentsUpdateContentResponse.js +17 -7
  1480. package/serialization/resources/components/types/ComponentsUpdatePropertiesResponse.js +17 -7
  1481. package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.js +17 -7
  1482. package/serialization/resources/index.js +17 -7
  1483. package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +17 -7
  1484. package/serialization/resources/inventory/types/EcommInventoryChangedPayload.d.ts +14 -0
  1485. package/serialization/resources/inventory/types/EcommInventoryChangedPayload.js +45 -0
  1486. package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.js +17 -7
  1487. package/serialization/resources/inventory/types/index.d.ts +1 -0
  1488. package/serialization/resources/inventory/types/index.js +1 -0
  1489. package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +17 -7
  1490. package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.js +17 -7
  1491. package/serialization/resources/orders/client/requests/OrdersUpdateRequest.js +17 -7
  1492. package/serialization/resources/orders/types/OrdersListRequestStatus.js +17 -7
  1493. package/serialization/resources/orders/types/OrdersRefundRequestReason.js +17 -7
  1494. package/serialization/resources/pages/client/requests/PageDomWrite.js +17 -7
  1495. package/serialization/resources/pages/client/requests/PageMetadataWrite.d.ts +17 -0
  1496. package/serialization/resources/pages/client/requests/PageMetadataWrite.js +48 -0
  1497. package/serialization/resources/pages/client/requests/index.d.ts +1 -0
  1498. package/serialization/resources/pages/client/requests/index.js +3 -1
  1499. package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +7 -7
  1500. package/serialization/resources/pages/types/PageDomWriteNodesItem.js +29 -19
  1501. package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.d.ts +15 -0
  1502. package/serialization/resources/pages/types/PageMetadataWriteOpenGraph.js +46 -0
  1503. package/serialization/resources/pages/types/PageMetadataWriteSeo.d.ts +13 -0
  1504. package/serialization/resources/pages/types/PageMetadataWriteSeo.js +44 -0
  1505. package/serialization/resources/pages/types/UpdateStaticContentResponse.js +17 -7
  1506. package/serialization/resources/pages/types/index.d.ts +2 -0
  1507. package/serialization/resources/pages/types/index.js +2 -0
  1508. package/serialization/resources/products/client/requests/ProductSkuCreate.js +17 -7
  1509. package/serialization/resources/products/client/requests/ProductSkuUpdate.js +17 -7
  1510. package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +17 -7
  1511. package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +17 -7
  1512. package/serialization/resources/products/types/ProductSkuCreateProduct.js +17 -7
  1513. package/serialization/resources/products/types/ProductSkuCreateSku.js +17 -7
  1514. package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  1515. package/serialization/resources/products/types/ProductsCreateSkuResponse.js +18 -8
  1516. package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.js +17 -7
  1517. package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.js +17 -7
  1518. package/serialization/resources/sites/client/requests/SitesCreateRequest.js +17 -7
  1519. package/serialization/resources/sites/client/requests/SitesPublishRequest.js +17 -7
  1520. package/serialization/resources/sites/client/requests/SitesUpdateRequest.js +17 -7
  1521. package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortBy.js +17 -7
  1522. package/serialization/resources/sites/resources/comments/types/CommentsGetCommentThreadRequestSortOrder.js +17 -7
  1523. package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortBy.js +17 -7
  1524. package/serialization/resources/sites/resources/comments/types/CommentsListCommentRepliesRequestSortOrder.js +17 -7
  1525. package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortBy.js +17 -7
  1526. package/serialization/resources/sites/resources/comments/types/CommentsListCommentThreadsRequestSortOrder.js +17 -7
  1527. package/serialization/resources/sites/resources/index.js +17 -7
  1528. package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownDeleteRequest.js +17 -7
  1529. package/serialization/resources/sites/resources/wellKnown/client/requests/WellKnownFile.js +17 -7
  1530. package/serialization/resources/sites/resources/wellKnown/types/WellKnownFileContentType.js +17 -7
  1531. package/serialization/resources/sites/types/SitesPublishResponse.js +17 -7
  1532. package/serialization/resources/users/client/requests/UsersInviteRequest.js +17 -7
  1533. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  1534. package/serialization/resources/users/client/requests/index.js +1 -3
  1535. package/serialization/resources/users/types/UserAccountAddedPayload.d.ts +14 -0
  1536. package/serialization/resources/users/types/UserAccountAddedPayload.js +45 -0
  1537. package/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +23 -0
  1538. package/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +54 -0
  1539. package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +15 -0
  1540. package/serialization/resources/users/types/{UsersUpdateRequestData.js → UserAccountAddedPayloadPayloadData.js} +22 -11
  1541. package/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +14 -0
  1542. package/serialization/resources/users/types/UserAccountDeletedPayload.js +45 -0
  1543. package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +23 -0
  1544. package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +54 -0
  1545. package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +15 -0
  1546. package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +46 -0
  1547. package/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +14 -0
  1548. package/serialization/resources/users/types/UserAccountUpdatedPayload.js +45 -0
  1549. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +23 -0
  1550. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +54 -0
  1551. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +15 -0
  1552. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +46 -0
  1553. package/serialization/resources/users/types/UsersListRequestSort.js +17 -7
  1554. package/serialization/resources/users/types/index.d.ts +9 -1
  1555. package/serialization/resources/users/types/index.js +9 -1
  1556. package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +17 -7
  1557. package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestSortOrder.js +17 -7
  1558. package/serialization/resources/workspaces/resources/index.js +17 -7
  1559. package/serialization/types/AccessGroup.js +17 -7
  1560. package/serialization/types/AccessGroupList.js +17 -7
  1561. package/serialization/types/Application.d.ts +7 -2
  1562. package/serialization/types/Application.js +23 -8
  1563. package/serialization/types/Asset.d.ts +2 -2
  1564. package/serialization/types/Asset.js +19 -9
  1565. package/serialization/types/AssetFolder.js +17 -7
  1566. package/serialization/types/AssetFolderList.js +17 -7
  1567. package/serialization/types/AssetUpload.js +17 -7
  1568. package/serialization/types/AssetUploadUploadDetails.js +17 -7
  1569. package/serialization/types/AssetVariant.d.ts +6 -6
  1570. package/serialization/types/AssetVariant.js +23 -13
  1571. package/serialization/types/Assets.js +17 -7
  1572. package/serialization/types/Authorization.d.ts +1 -1
  1573. package/serialization/types/Authorization.js +17 -7
  1574. package/serialization/types/AuthorizationAuthorization.js +17 -7
  1575. package/serialization/types/AuthorizationAuthorizationAuthorizedTo.js +17 -7
  1576. package/serialization/types/AuthorizedUser.js +17 -7
  1577. package/serialization/types/BadRequestErrorBody.js +17 -7
  1578. package/serialization/types/BulkCollectionItem.d.ts +1 -1
  1579. package/serialization/types/BulkCollectionItem.js +18 -8
  1580. package/serialization/types/BulkCollectionItemFieldData.js +17 -7
  1581. package/serialization/types/Collection.d.ts +2 -2
  1582. package/serialization/types/Collection.js +19 -9
  1583. package/serialization/types/CollectionItem.js +17 -7
  1584. package/serialization/types/CollectionItemChanged.d.ts +14 -0
  1585. package/serialization/types/CollectionItemChanged.js +45 -0
  1586. package/serialization/types/CollectionItemChangedPayload.d.ts +12 -0
  1587. package/serialization/types/CollectionItemChangedPayload.js +43 -0
  1588. package/serialization/types/CollectionItemCreated.d.ts +14 -0
  1589. package/serialization/types/CollectionItemCreated.js +45 -0
  1590. package/serialization/types/CollectionItemCreatedPayload.d.ts +12 -0
  1591. package/serialization/types/CollectionItemCreatedPayload.js +43 -0
  1592. package/serialization/types/CollectionItemFieldData.js +17 -7
  1593. package/serialization/types/CollectionItemList.js +17 -7
  1594. package/serialization/types/CollectionItemListNoPagination.js +17 -7
  1595. package/serialization/types/CollectionItemListPagination.js +17 -7
  1596. package/serialization/types/CollectionItemPatchSingle.js +17 -7
  1597. package/serialization/types/CollectionItemPatchSingleFieldData.js +17 -7
  1598. package/serialization/types/CollectionItemPostSingle.js +17 -7
  1599. package/serialization/types/CollectionItemPostSingleFieldData.js +17 -7
  1600. package/serialization/types/CollectionItemRemoved.d.ts +14 -0
  1601. package/serialization/types/CollectionItemRemoved.js +45 -0
  1602. package/serialization/types/CollectionItemRemovedPayload.d.ts +23 -0
  1603. package/serialization/types/CollectionItemRemovedPayload.js +54 -0
  1604. package/serialization/types/CollectionItemRemovedPayloadFieldData.d.ts +14 -0
  1605. package/serialization/types/CollectionItemRemovedPayloadFieldData.js +46 -0
  1606. package/serialization/types/CollectionItemUnpublished.d.ts +14 -0
  1607. package/serialization/types/CollectionItemUnpublished.js +45 -0
  1608. package/serialization/types/CollectionItemUnpublishedPayload.d.ts +23 -0
  1609. package/serialization/types/CollectionItemUnpublishedPayload.js +54 -0
  1610. package/serialization/types/CollectionItemUnpublishedPayloadFieldData.d.ts +14 -0
  1611. package/serialization/types/CollectionItemUnpublishedPayloadFieldData.js +46 -0
  1612. package/serialization/types/CollectionItemWithIdInput.js +17 -7
  1613. package/serialization/types/CollectionItemWithIdInputFieldData.js +17 -7
  1614. package/serialization/types/CollectionList.js +17 -7
  1615. package/serialization/types/CollectionListArrayItem.js +17 -7
  1616. package/serialization/types/Comment.d.ts +14 -0
  1617. package/serialization/types/Comment.js +45 -0
  1618. package/serialization/types/CommentPayload.d.ts +28 -0
  1619. package/serialization/types/CommentPayload.js +59 -0
  1620. package/serialization/types/CommentPayloadAuthor.d.ts +14 -0
  1621. package/serialization/types/CommentPayloadAuthor.js +45 -0
  1622. package/serialization/types/CommentPayloadMentionedUsersItem.d.ts +14 -0
  1623. package/serialization/types/CommentPayloadMentionedUsersItem.js +45 -0
  1624. package/serialization/types/CommentReply.d.ts +2 -2
  1625. package/serialization/types/CommentReply.js +19 -9
  1626. package/serialization/types/CommentReplyAuthor.js +17 -7
  1627. package/serialization/types/CommentReplyList.js +17 -7
  1628. package/serialization/types/CommentReplyListPagination.js +17 -7
  1629. package/serialization/types/CommentReplyMentionedUsersItem.js +17 -7
  1630. package/serialization/types/CommentThread.js +17 -7
  1631. package/serialization/types/CommentThreadAuthor.js +17 -7
  1632. package/serialization/types/CommentThreadList.js +17 -7
  1633. package/serialization/types/CommentThreadListPagination.js +17 -7
  1634. package/serialization/types/CommentThreadMentionedUsersItem.js +17 -7
  1635. package/serialization/types/Component.js +17 -7
  1636. package/serialization/types/ComponentDom.js +17 -7
  1637. package/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts → serialization/types/ComponentInstance.d.ts} +2 -2
  1638. package/{dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js → serialization/types/ComponentInstance.js} +19 -9
  1639. package/serialization/types/ComponentInstanceNodePropertyOverridesWritePropertyOverridesItem.js +17 -7
  1640. package/serialization/types/ComponentList.js +17 -7
  1641. package/serialization/types/ComponentNodeDom.d.ts +15 -0
  1642. package/serialization/types/{ComponentNode.js → ComponentNodeDom.js} +22 -12
  1643. package/serialization/types/ComponentProperties.js +17 -7
  1644. package/serialization/types/ComponentProperty.js +17 -7
  1645. package/serialization/types/ComponentPropertyType.js +17 -7
  1646. package/serialization/types/Conflict.js +17 -7
  1647. package/serialization/types/ConflictErrorBody.js +17 -7
  1648. package/serialization/types/CustomCodeBlock.js +17 -7
  1649. package/serialization/types/CustomCodeBlockType.js +17 -7
  1650. package/serialization/types/CustomCodeHostedResponse.js +17 -7
  1651. package/serialization/types/CustomCodeInlineResponse.js +17 -7
  1652. package/serialization/types/CustomRole.js +17 -7
  1653. package/serialization/types/CustomRoleAuditLogItem.js +17 -7
  1654. package/serialization/types/CustomRoleAuditLogItemEventSubType.js +17 -7
  1655. package/serialization/types/Dom.d.ts +1 -0
  1656. package/serialization/types/Dom.js +18 -7
  1657. package/serialization/types/Domain.js +17 -7
  1658. package/serialization/types/Domains.js +17 -7
  1659. package/serialization/types/DuplicateUserEmail.js +17 -7
  1660. package/serialization/types/EcommerceSettings.js +17 -7
  1661. package/serialization/types/ErrorCode.js +17 -7
  1662. package/serialization/types/Error_.js +17 -7
  1663. package/serialization/types/Field.d.ts +2 -0
  1664. package/serialization/types/Field.js +19 -7
  1665. package/serialization/types/FieldCreate.js +17 -7
  1666. package/serialization/types/FieldType.js +17 -7
  1667. package/serialization/types/FieldValidations.d.ts +13 -0
  1668. package/serialization/types/FieldValidations.js +44 -0
  1669. package/serialization/types/FieldValidationsAdditionalProperties.d.ts +11 -0
  1670. package/serialization/types/FieldValidationsAdditionalProperties.js +48 -0
  1671. package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +12 -0
  1672. package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +43 -0
  1673. package/serialization/types/ForbiddenErrorBody.js +17 -7
  1674. package/serialization/types/Form.js +17 -7
  1675. package/serialization/types/FormField.js +17 -7
  1676. package/serialization/types/FormFieldValue.js +17 -7
  1677. package/serialization/types/FormFieldValueType.js +17 -7
  1678. package/serialization/types/FormList.js +17 -7
  1679. package/serialization/types/FormResponseSettings.js +17 -7
  1680. package/serialization/types/FormSubmission.js +17 -7
  1681. package/serialization/types/FormSubmissionList.js +17 -7
  1682. package/serialization/types/FormSubmissionTrigger.d.ts +14 -0
  1683. package/serialization/types/FormSubmissionTrigger.js +45 -0
  1684. package/serialization/types/FormSubmissionTriggerPayload.d.ts +20 -0
  1685. package/serialization/types/FormSubmissionTriggerPayload.js +51 -0
  1686. package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.d.ts +15 -0
  1687. package/serialization/types/FormSubmissionTriggerPayloadSchemaItem.js +46 -0
  1688. package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.d.ts +10 -0
  1689. package/serialization/types/FormSubmissionTriggerPayloadSchemaItemFieldType.js +47 -0
  1690. package/{dist/serialization/types/ImageNode.d.ts → serialization/types/ImageNodeDom.d.ts} +4 -4
  1691. package/{dist/serialization/types/ImageNode.js → serialization/types/ImageNodeDom.js} +21 -11
  1692. package/serialization/types/ImageNodeImage.js +17 -7
  1693. package/serialization/types/InvalidDomain.js +17 -7
  1694. package/serialization/types/InvalidScopes.js +17 -7
  1695. package/serialization/types/InventoryItem.js +17 -7
  1696. package/serialization/types/InventoryItemInventoryType.js +17 -7
  1697. package/serialization/types/ItemsListItemsLiveRequestLastPublished.d.ts +13 -0
  1698. package/serialization/types/ItemsListItemsLiveRequestLastPublished.js +44 -0
  1699. package/serialization/types/ItemsListItemsRequestLastPublished.d.ts +13 -0
  1700. package/serialization/types/ItemsListItemsRequestLastPublished.js +44 -0
  1701. package/serialization/types/ListCustomCodeBlocks.js +17 -7
  1702. package/serialization/types/Locale.js +17 -7
  1703. package/serialization/types/Locales.js +17 -7
  1704. package/serialization/types/LocalizedItem.d.ts +24 -0
  1705. package/serialization/types/LocalizedItem.js +55 -0
  1706. package/serialization/types/Metadata.js +17 -7
  1707. package/serialization/types/MetadataOptionsItem.js +17 -7
  1708. package/serialization/types/MultiLocaleChangedPayload.d.ts +23 -0
  1709. package/serialization/types/MultiLocaleChangedPayload.js +54 -0
  1710. package/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +15 -0
  1711. package/serialization/types/MultiLocaleChangedPayloadFieldData.js +47 -0
  1712. package/serialization/types/MultiLocaleCreatedPayload.d.ts +17 -0
  1713. package/serialization/types/MultiLocaleCreatedPayload.js +48 -0
  1714. package/serialization/types/NewOrder.d.ts +14 -0
  1715. package/serialization/types/NewOrder.js +45 -0
  1716. package/serialization/types/NoDomains.js +17 -7
  1717. package/serialization/types/Node.d.ts +14 -14
  1718. package/serialization/types/Node.js +31 -21
  1719. package/serialization/types/NotEnterprisePlanSite.js +17 -7
  1720. package/serialization/types/NotEnterprisePlanWorkspace.js +17 -7
  1721. package/serialization/types/OptionField.js +17 -7
  1722. package/serialization/types/Order.d.ts +4 -2
  1723. package/serialization/types/Order.js +21 -9
  1724. package/serialization/types/OrderAddress.js +17 -7
  1725. package/serialization/types/OrderAddressJapanType.js +17 -7
  1726. package/serialization/types/OrderAddressType.js +17 -7
  1727. package/serialization/types/OrderBillingAddress.d.ts +22 -0
  1728. package/serialization/types/OrderBillingAddress.js +53 -0
  1729. package/serialization/types/OrderBillingAddressJapanType.d.ts +10 -0
  1730. package/serialization/types/OrderBillingAddressJapanType.js +41 -0
  1731. package/serialization/types/OrderBillingAddressType.d.ts +10 -0
  1732. package/serialization/types/OrderBillingAddressType.js +41 -0
  1733. package/serialization/types/OrderCustomerInfo.js +17 -7
  1734. package/serialization/types/OrderDisputeLastStatus.js +17 -7
  1735. package/serialization/types/OrderDownloadFilesItem.js +17 -7
  1736. package/serialization/types/OrderList.js +17 -7
  1737. package/serialization/types/OrderMetadata.js +17 -7
  1738. package/serialization/types/OrderPrice.js +17 -7
  1739. package/serialization/types/OrderPurchasedItem.js +17 -7
  1740. package/serialization/types/OrderPurchasedItemVariantImage.js +17 -7
  1741. package/serialization/types/OrderPurchasedItemVariantImageFile.js +17 -7
  1742. package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.js +17 -7
  1743. package/serialization/types/OrderShippingAddress.d.ts +22 -0
  1744. package/serialization/types/OrderShippingAddress.js +53 -0
  1745. package/serialization/types/OrderShippingAddressJapanType.d.ts +10 -0
  1746. package/serialization/types/OrderShippingAddressJapanType.js +41 -0
  1747. package/serialization/types/OrderShippingAddressType.d.ts +10 -0
  1748. package/serialization/types/OrderShippingAddressType.js +41 -0
  1749. package/serialization/types/OrderStatus.js +17 -7
  1750. package/serialization/types/OrderTotals.js +17 -7
  1751. package/serialization/types/OrderTotalsExtrasItem.js +17 -7
  1752. package/serialization/types/OrderTotalsExtrasItemType.js +17 -7
  1753. package/serialization/types/Page.d.ts +1 -1
  1754. package/serialization/types/Page.js +18 -8
  1755. package/serialization/types/PageCreatedWebhook.d.ts +14 -0
  1756. package/serialization/types/PageCreatedWebhook.js +45 -0
  1757. package/serialization/types/PageCreatedWebhookPayload.d.ts +16 -0
  1758. package/serialization/types/PageCreatedWebhookPayload.js +47 -0
  1759. package/serialization/types/PageDeletedWebhook.d.ts +14 -0
  1760. package/serialization/types/PageDeletedWebhook.js +45 -0
  1761. package/serialization/types/PageDeletedWebhookPayload.d.ts +16 -0
  1762. package/serialization/types/PageDeletedWebhookPayload.js +47 -0
  1763. package/serialization/types/PageList.js +17 -7
  1764. package/serialization/types/PageMetadataUpdatedWebhook.d.ts +14 -0
  1765. package/serialization/types/PageMetadataUpdatedWebhook.js +45 -0
  1766. package/serialization/types/PageMetadataUpdatedWebhookPayload.d.ts +16 -0
  1767. package/serialization/types/PageMetadataUpdatedWebhookPayload.js +47 -0
  1768. package/serialization/types/PageOpenGraph.js +17 -7
  1769. package/serialization/types/PageSeo.js +17 -7
  1770. package/serialization/types/Pagination.js +17 -7
  1771. package/serialization/types/PaypalDetails.js +17 -7
  1772. package/serialization/types/Product.js +17 -7
  1773. package/serialization/types/ProductAndSkUs.js +17 -7
  1774. package/serialization/types/ProductAndSkUsList.js +17 -7
  1775. package/serialization/types/ProductFieldData.d.ts +1 -1
  1776. package/serialization/types/ProductFieldData.js +18 -8
  1777. package/serialization/types/ProductFieldDataEcProductType.js +17 -7
  1778. package/serialization/types/ProductFieldDataTaxCategory.js +17 -7
  1779. package/serialization/types/PublishStatus.js +17 -7
  1780. package/serialization/types/Redirect.js +17 -7
  1781. package/serialization/types/Redirects.js +17 -7
  1782. package/serialization/types/ReferenceField.js +17 -7
  1783. package/serialization/types/ReferenceFieldMetadata.js +17 -7
  1784. package/serialization/types/ReferenceFieldType.js +17 -7
  1785. package/serialization/types/RegisteredScriptList.d.ts +2 -0
  1786. package/serialization/types/RegisteredScriptList.js +19 -7
  1787. package/serialization/types/Robots.js +17 -7
  1788. package/serialization/types/RobotsRulesItem.js +17 -7
  1789. package/serialization/types/ScriptApply.js +17 -7
  1790. package/serialization/types/ScriptApplyList.js +17 -7
  1791. package/serialization/types/ScriptApplyLocation.js +17 -7
  1792. package/serialization/types/Scripts.js +17 -7
  1793. package/{dist/serialization/types/SearchButtonNodeWrite.d.ts → serialization/types/SearchButton.d.ts} +2 -2
  1794. package/serialization/types/{SearchButtonNodeWrite.js → SearchButton.js} +19 -9
  1795. package/serialization/types/{SearchButtonNode.d.ts → SearchButtonNodeDom.d.ts} +2 -2
  1796. package/{dist/serialization/types/SearchButtonNode.js → serialization/types/SearchButtonNodeDom.js} +19 -9
  1797. package/{dist/serialization/types/SelectNodeWrite.d.ts → serialization/types/Select.d.ts} +2 -2
  1798. package/{dist/serialization/types/SelectNodeWrite.js → serialization/types/Select.js} +19 -9
  1799. package/serialization/types/SelectNodeChoicesItem.js +17 -7
  1800. package/{dist/serialization/types/SelectNode.d.ts → serialization/types/SelectNodeDom.d.ts} +2 -2
  1801. package/serialization/types/{SelectNode.js → SelectNodeDom.js} +19 -9
  1802. package/serialization/types/SelectNodeWriteChoicesItem.js +17 -7
  1803. package/serialization/types/SingleLocaleChangedPayload.d.ts +23 -0
  1804. package/serialization/types/SingleLocaleChangedPayload.js +54 -0
  1805. package/serialization/types/SingleLocaleChangedPayloadFieldData.d.ts +14 -0
  1806. package/serialization/types/SingleLocaleChangedPayloadFieldData.js +46 -0
  1807. package/serialization/types/SingleLocaleCreatedPayload.d.ts +23 -0
  1808. package/serialization/types/SingleLocaleCreatedPayload.js +54 -0
  1809. package/serialization/types/SingleLocaleCreatedPayloadFieldData.d.ts +14 -0
  1810. package/serialization/types/SingleLocaleCreatedPayloadFieldData.js +46 -0
  1811. package/serialization/types/Site.js +17 -7
  1812. package/serialization/types/SiteActivityLogItem.js +17 -7
  1813. package/serialization/types/SiteActivityLogItemEvent.js +17 -7
  1814. package/serialization/types/SiteActivityLogItemResourceOperation.js +17 -7
  1815. package/serialization/types/SiteActivityLogItemUser.js +17 -7
  1816. package/serialization/types/SiteActivityLogResponse.js +17 -7
  1817. package/serialization/types/SiteDataCollectionType.js +17 -7
  1818. package/serialization/types/SiteMembership.js +17 -7
  1819. package/serialization/types/SiteMembershipAuditLogItem.js +17 -7
  1820. package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +17 -7
  1821. package/serialization/types/SitePlan.js +17 -7
  1822. package/serialization/types/SitePlanId.js +17 -7
  1823. package/serialization/types/SitePlanName.js +17 -7
  1824. package/serialization/types/SitePublish.d.ts +14 -0
  1825. package/serialization/types/SitePublish.js +45 -0
  1826. package/serialization/types/SitePublishPayload.d.ts +15 -0
  1827. package/serialization/types/SitePublishPayload.js +46 -0
  1828. package/serialization/types/Sites.js +17 -7
  1829. package/serialization/types/Sku.js +17 -7
  1830. package/serialization/types/SkuFieldData.js +17 -7
  1831. package/serialization/types/SkuFieldDataCompareAtPrice.js +17 -7
  1832. package/serialization/types/SkuFieldDataEcSkuBillingMethod.js +17 -7
  1833. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +17 -7
  1834. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.js +17 -7
  1835. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +17 -7
  1836. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.js +17 -7
  1837. package/serialization/types/SkuFieldDataPrice.js +17 -7
  1838. package/serialization/types/SkuPropertyList.js +17 -7
  1839. package/serialization/types/SkuPropertyListEnumItem.js +17 -7
  1840. package/serialization/types/SkuValueList.js +17 -7
  1841. package/serialization/types/StaticField.js +17 -7
  1842. package/serialization/types/StaticFieldType.js +17 -7
  1843. package/serialization/types/StripeCard.js +17 -7
  1844. package/serialization/types/StripeCardBrand.js +17 -7
  1845. package/serialization/types/StripeCardExpires.js +17 -7
  1846. package/serialization/types/StripeDetails.js +17 -7
  1847. package/{dist/serialization/types/SubmitButtonNodeWrite.d.ts → serialization/types/SubmitButton.d.ts} +2 -2
  1848. package/{dist/serialization/types/SubmitButtonNodeWrite.js → serialization/types/SubmitButton.js} +19 -9
  1849. package/{dist/serialization/types/SubmitButtonNode.d.ts → serialization/types/SubmitButtonNodeDom.d.ts} +2 -2
  1850. package/serialization/types/{SubmitButtonNode.js → SubmitButtonNodeDom.js} +19 -9
  1851. package/serialization/types/Text.js +17 -7
  1852. package/{dist/serialization/types/TextInputNodeWrite.d.ts → serialization/types/TextInput.d.ts} +2 -2
  1853. package/serialization/types/{TextInputNodeWrite.js → TextInput.js} +19 -9
  1854. package/serialization/types/{TextInputNode.d.ts → TextInputNodeDom.d.ts} +2 -2
  1855. package/{dist/serialization/types/TextInputNode.js → serialization/types/TextInputNodeDom.js} +19 -9
  1856. package/serialization/types/TextNode.d.ts +2 -4
  1857. package/serialization/types/TextNode.js +19 -11
  1858. package/serialization/types/TextNodeDom.d.ts +15 -0
  1859. package/serialization/types/TextNodeDom.js +46 -0
  1860. package/serialization/types/TextNodeText.js +17 -7
  1861. package/serialization/types/TriggerType.js +17 -7
  1862. package/serialization/types/UpdatedOrder.d.ts +14 -0
  1863. package/serialization/types/UpdatedOrder.js +45 -0
  1864. package/serialization/types/User.js +17 -7
  1865. package/serialization/types/UserAccess.js +17 -7
  1866. package/serialization/types/UserAccessAuditLogItem.js +17 -7
  1867. package/serialization/types/UserAccessAuditLogItemEventSubType.js +17 -7
  1868. package/serialization/types/UserAccessGroupsItem.js +17 -7
  1869. package/serialization/types/UserAccessGroupsItemType.js +17 -7
  1870. package/serialization/types/UserData.js +17 -7
  1871. package/serialization/types/UserDataData.js +17 -7
  1872. package/serialization/types/UserLimitReached.js +17 -7
  1873. package/serialization/types/UserList.js +17 -7
  1874. package/serialization/types/UserStatus.js +17 -7
  1875. package/serialization/types/UsersNotEnabled.js +17 -7
  1876. package/serialization/types/Webhook.js +17 -7
  1877. package/serialization/types/WebhookFilter.js +17 -7
  1878. package/serialization/types/WebhookList.js +17 -7
  1879. package/serialization/types/WorkspaceAuditLogItem.js +17 -7
  1880. package/serialization/types/WorkspaceAuditLogItemActor.js +17 -7
  1881. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +17 -7
  1882. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipSite.js +17 -7
  1883. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipTargetUser.js +17 -7
  1884. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipUserType.js +17 -7
  1885. package/serialization/types/WorkspaceAuditLogItemPayloadUserAccessMethod.js +17 -7
  1886. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationMethod.js +17 -7
  1887. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUser.js +17 -7
  1888. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationUserType.js +17 -7
  1889. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +17 -7
  1890. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipTargetUser.js +17 -7
  1891. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipUserType.js +17 -7
  1892. package/serialization/types/WorkspaceAuditLogItemWorkspace.js +17 -7
  1893. package/serialization/types/WorkspaceAuditLogResponse.js +17 -7
  1894. package/serialization/types/WorkspaceInvitation.js +17 -7
  1895. package/serialization/types/WorkspaceInvitationAuditLogItem.js +17 -7
  1896. package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +17 -7
  1897. package/serialization/types/WorkspaceMembership.js +17 -7
  1898. package/serialization/types/WorkspaceMembershipAuditLogItem.js +17 -7
  1899. package/serialization/types/WorkspaceMembershipAuditLogItemEventSubType.js +17 -7
  1900. package/serialization/types/index.d.ts +62 -15
  1901. package/serialization/types/index.js +62 -15
  1902. package/version.d.ts +1 -1
  1903. package/version.js +1 -1
  1904. package/wrapper/CollectionsClient.d.ts +11 -0
  1905. package/wrapper/CollectionsClient.js +18 -0
  1906. package/wrapper/ItemsClient.d.ts +167 -0
  1907. package/wrapper/ItemsClient.js +630 -0
  1908. package/wrapper/PagesClient.d.ts +49 -0
  1909. package/wrapper/PagesClient.js +214 -0
  1910. package/wrapper/WebflowClient.d.ts +6 -0
  1911. package/wrapper/WebflowClient.js +29 -9
  1912. package/wrapper/WebhooksClient.d.ts +0 -1
  1913. package/wrapper/WebhooksClient.js +2 -5
  1914. package/wrapper/schemas/ItemsCreateItemLiveRequest.d.ts +4 -0
  1915. package/wrapper/schemas/ItemsCreateItemLiveRequest.js +2 -0
  1916. package/wrapper/schemas/ItemsCreateItemRequest.d.ts +4 -0
  1917. package/wrapper/schemas/ItemsCreateItemRequest.js +2 -0
  1918. package/wrapper/schemas/ItemsUpdateItemLiveRequest.d.ts +4 -0
  1919. package/wrapper/schemas/ItemsUpdateItemLiveRequest.js +2 -0
  1920. package/wrapper/schemas/ItemsUpdateItemRequest.d.ts +4 -0
  1921. package/wrapper/schemas/ItemsUpdateItemRequest.js +2 -0
  1922. package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts → wrapper/schemas/PageMetadataWrite.d.ts} +13 -17
  1923. package/wrapper/schemas/PageMetadataWrite.js +2 -0
  1924. package/wrapper/schemas/index.d.ts +5 -0
  1925. package/wrapper/schemas/index.js +21 -0
  1926. package/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
  1927. package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
  1928. package/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
  1929. package/api/types/TextNodeWrite.d.ts +0 -12
  1930. package/dist/api/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
  1931. package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -20
  1932. package/dist/api/resources/users/types/UsersUpdateRequestData.d.ts +0 -11
  1933. package/dist/api/types/TextNodeWrite.d.ts +0 -12
  1934. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
  1935. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
  1936. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
  1937. package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
  1938. package/dist/serialization/types/ComponentNode.d.ts +0 -15
  1939. package/dist/serialization/types/TextNodeWrite.d.ts +0 -13
  1940. package/dist/serialization/types/TextNodeWrite.js +0 -34
  1941. package/jest.config.js +0 -5
  1942. package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +0 -12
  1943. package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +0 -14
  1944. package/serialization/resources/users/client/requests/UsersUpdateRequest.js +0 -35
  1945. package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +0 -14
  1946. package/serialization/types/ComponentNode.d.ts +0 -15
  1947. package/serialization/types/TextNodeWrite.d.ts +0 -13
  1948. package/serialization/types/TextNodeWrite.js +0 -34
  1949. /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemLiveRequest.js +0 -0
  1950. /package/api/resources/collections/resources/items/{types → client/requests}/ItemsCreateItemRequest.js +0 -0
  1951. /package/api/resources/collections/resources/items/client/requests/{ItemsPublishItemRequest.js → ItemsUpdateItemLiveRequest.js} +0 -0
  1952. /package/api/resources/{pages/client/requests/UpdatePageSettingsRequest.js → collections/resources/items/client/requests/ItemsUpdateItemRequest.js} +0 -0
  1953. /package/api/resources/{users/client/requests/UsersUpdateRequest.js → collections/resources/items/types/ItemIDs.js} +0 -0
  1954. /package/api/resources/{users/types/UsersUpdateRequestData.js → collections/resources/items/types/ItemIDsWithLocales.js} +0 -0
  1955. /package/api/{types/ComponentInstanceNodePropertyOverridesWrite.js → resources/collections/resources/items/types/ItemsCreateItemLiveRequestBody.js} +0 -0
  1956. /package/api/{types/ComponentNode.js → resources/collections/resources/items/types/ItemsCreateItemRequestBody.js} +0 -0
  1957. /package/{dist/api/resources/collections/resources/items/client/requests → api/resources/collections/resources/items/types}/ItemsPublishItemRequest.js +0 -0
  1958. /package/api/{types/ImageNode.js → resources/collections/resources/items/types/ItemsPublishItemRequestItemsItemsItem.js} +0 -0
  1959. /package/api/{types/SearchButtonNode.js → resources/collections/resources/items/types/ItemsUpdateItemsResponse.js} +0 -0
  1960. /package/api/{types/SearchButtonNodeWrite.js → resources/inventory/types/EcommInventoryChangedPayload.js} +0 -0
  1961. /package/api/{types/SelectNode.js → resources/pages/client/requests/PageMetadataWrite.js} +0 -0
  1962. /package/api/{types/SelectNodeWrite.js → resources/pages/types/PageMetadataWriteOpenGraph.js} +0 -0
  1963. /package/api/{types/SubmitButtonNode.js → resources/pages/types/PageMetadataWriteSeo.js} +0 -0
  1964. /package/api/{types/SubmitButtonNodeWrite.js → resources/users/types/UserAccountAddedPayload.js} +0 -0
  1965. /package/api/{types/TextInputNode.js → resources/users/types/UserAccountAddedPayloadPayload.js} +0 -0
  1966. /package/api/{types/TextInputNodeWrite.js → resources/users/types/UserAccountAddedPayloadPayloadData.js} +0 -0
  1967. /package/api/{types/TextNodeWrite.js → resources/users/types/UserAccountDeletedPayload.js} +0 -0
  1968. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemLiveRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayload.js} +0 -0
  1969. /package/{dist/api/resources/collections/resources/items/types/ItemsCreateItemRequest.js → api/resources/users/types/UserAccountDeletedPayloadPayloadData.js} +0 -0
  1970. /package/{dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.js → api/resources/users/types/UserAccountUpdatedPayload.js} +0 -0
  1971. /package/{dist/api/resources/users/client/requests/UsersUpdateRequest.js → api/resources/users/types/UserAccountUpdatedPayloadPayload.js} +0 -0
  1972. /package/{dist/api/resources/users/types/UsersUpdateRequestData.js → api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js} +0 -0
  1973. /package/{dist/api/types/ComponentInstanceNodePropertyOverridesWrite.js → api/types/CollectionItemChanged.js} +0 -0
  1974. /package/{dist/api/types/ComponentNode.js → api/types/CollectionItemChangedPayload.js} +0 -0
  1975. /package/{dist/api/types/ImageNode.js → api/types/CollectionItemCreated.js} +0 -0
  1976. /package/{dist/api/types/SearchButtonNode.js → api/types/CollectionItemCreatedPayload.js} +0 -0
  1977. /package/{dist/api/types/SearchButtonNodeWrite.js → api/types/CollectionItemRemoved.js} +0 -0
  1978. /package/{dist/api/types/SelectNode.js → api/types/CollectionItemRemovedPayload.js} +0 -0
  1979. /package/{dist/api/types/SelectNodeWrite.js → api/types/CollectionItemRemovedPayloadFieldData.js} +0 -0
  1980. /package/{dist/api/types/SubmitButtonNode.js → api/types/CollectionItemUnpublished.js} +0 -0
  1981. /package/{dist/api/types/SubmitButtonNodeWrite.js → api/types/CollectionItemUnpublishedPayload.js} +0 -0
  1982. /package/{dist/api/types/TextInputNode.js → api/types/CollectionItemUnpublishedPayloadFieldData.js} +0 -0
  1983. /package/{dist/api/types/TextInputNodeWrite.js → api/types/Comment.js} +0 -0
  1984. /package/{dist/api/types/TextNodeWrite.js → api/types/CommentPayload.js} +0 -0
@@ -18,13 +18,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
18
18
  }) : function(o, v) {
19
19
  o["default"] = v;
20
20
  });
21
- var __importStar = (this && this.__importStar) || function (mod) {
22
- if (mod && mod.__esModule) return mod;
23
- var result = {};
24
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
- __setModuleDefault(result, mod);
26
- return result;
27
- };
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
28
38
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
29
39
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30
40
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -34,6 +44,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
34
44
  step((generator = generator.apply(thisArg, _arguments || [])).next());
35
45
  });
36
46
  };
47
+ var __rest = (this && this.__rest) || function (s, e) {
48
+ var t = {};
49
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
50
+ t[p] = s[p];
51
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
52
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
53
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
54
+ t[p[i]] = s[p[i]];
55
+ }
56
+ return t;
57
+ };
37
58
  var __importDefault = (this && this.__importDefault) || function (mod) {
38
59
  return (mod && mod.__esModule) ? mod : { "default": mod };
39
60
  };
@@ -42,8 +63,9 @@ exports.Items = void 0;
42
63
  const environments = __importStar(require("../../../../../../environments"));
43
64
  const core = __importStar(require("../../../../../../core"));
44
65
  const Webflow = __importStar(require("../../../../../index"));
45
- const url_join_1 = __importDefault(require("url-join"));
46
66
  const serializers = __importStar(require("../../../../../../serialization/index"));
67
+ const headers_js_1 = require("../../../../../../core/headers.js");
68
+ const url_join_1 = __importDefault(require("url-join"));
47
69
  const errors = __importStar(require("../../../../../../errors/index"));
48
70
  class Items {
49
71
  constructor(_options) {
@@ -68,9 +90,12 @@ class Items {
68
90
  * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745")
69
91
  */
70
92
  listItems(collectionId, request = {}, requestOptions) {
71
- var _a;
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
93
+ return core.HttpResponsePromise.fromPromise(this.__listItems(collectionId, request, requestOptions));
94
+ }
95
+ __listItems(collectionId_1) {
96
+ return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
97
+ var _a, _b, _c;
98
+ const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
74
99
  const _queryParams = {};
75
100
  if (cmsLocaleId != null) {
76
101
  _queryParams["cmsLocaleId"] = cmsLocaleId;
@@ -87,36 +112,54 @@ class Items {
87
112
  if (slug != null) {
88
113
  _queryParams["slug"] = slug;
89
114
  }
115
+ if (lastPublished != null) {
116
+ _queryParams["lastPublished"] = serializers.ItemsListItemsRequestLastPublished.jsonOrThrow(lastPublished, {
117
+ unrecognizedObjectKeys: "passthrough",
118
+ allowUnrecognizedUnionMembers: true,
119
+ allowUnrecognizedEnumValues: true,
120
+ breadcrumbsPrefix: ["request", "lastPublished"],
121
+ });
122
+ }
90
123
  if (sortBy != null) {
91
- _queryParams["sortBy"] = sortBy;
124
+ _queryParams["sortBy"] = serializers.collections.ItemsListItemsRequestSortBy.jsonOrThrow(sortBy, {
125
+ unrecognizedObjectKeys: "passthrough",
126
+ allowUnrecognizedUnionMembers: true,
127
+ allowUnrecognizedEnumValues: true,
128
+ });
92
129
  }
93
130
  if (sortOrder != null) {
94
- _queryParams["sortOrder"] = sortOrder;
131
+ _queryParams["sortOrder"] = serializers.collections.ItemsListItemsRequestSortOrder.jsonOrThrow(sortOrder, {
132
+ unrecognizedObjectKeys: "passthrough",
133
+ allowUnrecognizedUnionMembers: true,
134
+ allowUnrecognizedEnumValues: true,
135
+ });
95
136
  }
96
137
  const _response = yield core.fetcher({
97
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items`),
138
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
139
+ .base, `collections/${encodeURIComponent(collectionId)}/items`),
98
140
  method: "GET",
99
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
100
- contentType: "application/json",
141
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
101
142
  queryParameters: _queryParams,
102
- requestType: "json",
103
143
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
104
144
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
105
145
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
106
146
  });
107
147
  if (_response.ok) {
108
- return serializers.CollectionItemList.parseOrThrow(_response.body, {
109
- unrecognizedObjectKeys: "passthrough",
110
- allowUnrecognizedUnionMembers: true,
111
- allowUnrecognizedEnumValues: true,
112
- skipValidation: true,
113
- breadcrumbsPrefix: ["response"],
114
- });
148
+ return {
149
+ data: serializers.CollectionItemList.parseOrThrow(_response.body, {
150
+ unrecognizedObjectKeys: "passthrough",
151
+ allowUnrecognizedUnionMembers: true,
152
+ allowUnrecognizedEnumValues: true,
153
+ skipValidation: true,
154
+ breadcrumbsPrefix: ["response"],
155
+ }),
156
+ rawResponse: _response.rawResponse,
157
+ };
115
158
  }
116
159
  if (_response.error.reason === "status-code") {
117
160
  switch (_response.error.statusCode) {
118
161
  case 400:
119
- throw new Webflow.BadRequestError(_response.error.body);
162
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
120
163
  case 401:
121
164
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
122
165
  unrecognizedObjectKeys: "passthrough",
@@ -124,7 +167,7 @@ class Items {
124
167
  allowUnrecognizedEnumValues: true,
125
168
  skipValidation: true,
126
169
  breadcrumbsPrefix: ["response"],
127
- }));
170
+ }), _response.rawResponse);
128
171
  case 404:
129
172
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
130
173
  unrecognizedObjectKeys: "passthrough",
@@ -132,7 +175,7 @@ class Items {
132
175
  allowUnrecognizedEnumValues: true,
133
176
  skipValidation: true,
134
177
  breadcrumbsPrefix: ["response"],
135
- }));
178
+ }), _response.rawResponse);
136
179
  case 429:
137
180
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
138
181
  unrecognizedObjectKeys: "passthrough",
@@ -140,7 +183,7 @@ class Items {
140
183
  allowUnrecognizedEnumValues: true,
141
184
  skipValidation: true,
142
185
  breadcrumbsPrefix: ["response"],
143
- }));
186
+ }), _response.rawResponse);
144
187
  case 500:
145
188
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
146
189
  unrecognizedObjectKeys: "passthrough",
@@ -148,11 +191,12 @@ class Items {
148
191
  allowUnrecognizedEnumValues: true,
149
192
  skipValidation: true,
150
193
  breadcrumbsPrefix: ["response"],
151
- }));
194
+ }), _response.rawResponse);
152
195
  default:
153
196
  throw new errors.WebflowError({
154
197
  statusCode: _response.error.statusCode,
155
198
  body: _response.error.body,
199
+ rawResponse: _response.rawResponse,
156
200
  });
157
201
  }
158
202
  }
@@ -161,12 +205,14 @@ class Items {
161
205
  throw new errors.WebflowError({
162
206
  statusCode: _response.error.statusCode,
163
207
  body: _response.error.rawBody,
208
+ rawResponse: _response.rawResponse,
164
209
  });
165
210
  case "timeout":
166
211
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items.");
167
212
  case "unknown":
168
213
  throw new errors.WebflowError({
169
214
  message: _response.error.errorMessage,
215
+ rawResponse: _response.rawResponse,
170
216
  });
171
217
  }
172
218
  });
@@ -175,7 +221,7 @@ class Items {
175
221
  * Create Item(s) in a Collection.
176
222
  *
177
223
  *
178
- * To create items across multiple locales, please use [this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
224
+ * To create items across multiple locales, please use [this endpoint.](/data/reference/cms/collection-items/staged-items/create-items)
179
225
  *
180
226
  * Required scope | `CMS:write`
181
227
  *
@@ -191,43 +237,57 @@ class Items {
191
237
  *
192
238
  * @example
193
239
  * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
194
- * isArchived: false,
195
- * isDraft: false,
196
- * fieldData: {
197
- * name: "Pan Galactic Gargle Blaster Recipe",
198
- * slug: "pan-galactic-gargle-blaster"
240
+ * body: {
241
+ * isArchived: false,
242
+ * isDraft: false,
243
+ * fieldData: {
244
+ * name: "Pan Galactic Gargle Blaster Recipe",
245
+ * slug: "pan-galactic-gargle-blaster"
246
+ * }
199
247
  * }
200
248
  * })
201
249
  *
202
250
  * @example
203
251
  * await client.collections.items.createItem("580e63fc8c9a982ac9b8b745", {
204
- * items: [{
205
- * isArchived: false,
206
- * isDraft: false,
207
- * fieldData: {
208
- * name: "Senior Data Analyst",
209
- * slug: "senior-data-analyst"
210
- * }
211
- * }, {
212
- * isArchived: false,
213
- * isDraft: false,
214
- * fieldData: {
215
- * name: "Product Manager",
216
- * slug: "product-manager"
217
- * }
218
- * }]
252
+ * body: {
253
+ * items: [{
254
+ * isArchived: false,
255
+ * isDraft: false,
256
+ * fieldData: {
257
+ * name: "Senior Data Analyst",
258
+ * slug: "senior-data-analyst"
259
+ * }
260
+ * }, {
261
+ * isArchived: false,
262
+ * isDraft: false,
263
+ * fieldData: {
264
+ * name: "Product Manager",
265
+ * slug: "product-manager"
266
+ * }
267
+ * }]
268
+ * }
219
269
  * })
220
270
  */
221
271
  createItem(collectionId, request, requestOptions) {
222
- var _a;
272
+ return core.HttpResponsePromise.fromPromise(this.__createItem(collectionId, request, requestOptions));
273
+ }
274
+ __createItem(collectionId, request, requestOptions) {
223
275
  return __awaiter(this, void 0, void 0, function* () {
276
+ var _a, _b, _c;
277
+ const { skipInvalidFiles, body: _body } = request;
278
+ const _queryParams = {};
279
+ if (skipInvalidFiles != null) {
280
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
281
+ }
224
282
  const _response = yield core.fetcher({
225
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items`),
283
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
284
+ .base, `collections/${encodeURIComponent(collectionId)}/items`),
226
285
  method: "POST",
227
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
286
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
228
287
  contentType: "application/json",
288
+ queryParameters: _queryParams,
229
289
  requestType: "json",
230
- body: serializers.collections.ItemsCreateItemRequest.jsonOrThrow(request, {
290
+ body: serializers.collections.ItemsCreateItemRequestBody.jsonOrThrow(_body, {
231
291
  unrecognizedObjectKeys: "passthrough",
232
292
  allowUnrecognizedUnionMembers: true,
233
293
  allowUnrecognizedEnumValues: true,
@@ -237,18 +297,21 @@ class Items {
237
297
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
238
298
  });
239
299
  if (_response.ok) {
240
- return serializers.CollectionItem.parseOrThrow(_response.body, {
241
- unrecognizedObjectKeys: "passthrough",
242
- allowUnrecognizedUnionMembers: true,
243
- allowUnrecognizedEnumValues: true,
244
- skipValidation: true,
245
- breadcrumbsPrefix: ["response"],
246
- });
300
+ return {
301
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
302
+ unrecognizedObjectKeys: "passthrough",
303
+ allowUnrecognizedUnionMembers: true,
304
+ allowUnrecognizedEnumValues: true,
305
+ skipValidation: true,
306
+ breadcrumbsPrefix: ["response"],
307
+ }),
308
+ rawResponse: _response.rawResponse,
309
+ };
247
310
  }
248
311
  if (_response.error.reason === "status-code") {
249
312
  switch (_response.error.statusCode) {
250
313
  case 400:
251
- throw new Webflow.BadRequestError(_response.error.body);
314
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
252
315
  case 401:
253
316
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
254
317
  unrecognizedObjectKeys: "passthrough",
@@ -256,7 +319,7 @@ class Items {
256
319
  allowUnrecognizedEnumValues: true,
257
320
  skipValidation: true,
258
321
  breadcrumbsPrefix: ["response"],
259
- }));
322
+ }), _response.rawResponse);
260
323
  case 404:
261
324
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
262
325
  unrecognizedObjectKeys: "passthrough",
@@ -264,7 +327,7 @@ class Items {
264
327
  allowUnrecognizedEnumValues: true,
265
328
  skipValidation: true,
266
329
  breadcrumbsPrefix: ["response"],
267
- }));
330
+ }), _response.rawResponse);
268
331
  case 429:
269
332
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
270
333
  unrecognizedObjectKeys: "passthrough",
@@ -272,7 +335,7 @@ class Items {
272
335
  allowUnrecognizedEnumValues: true,
273
336
  skipValidation: true,
274
337
  breadcrumbsPrefix: ["response"],
275
- }));
338
+ }), _response.rawResponse);
276
339
  case 500:
277
340
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
278
341
  unrecognizedObjectKeys: "passthrough",
@@ -280,11 +343,12 @@ class Items {
280
343
  allowUnrecognizedEnumValues: true,
281
344
  skipValidation: true,
282
345
  breadcrumbsPrefix: ["response"],
283
- }));
346
+ }), _response.rawResponse);
284
347
  default:
285
348
  throw new errors.WebflowError({
286
349
  statusCode: _response.error.statusCode,
287
350
  body: _response.error.body,
351
+ rawResponse: _response.rawResponse,
288
352
  });
289
353
  }
290
354
  }
@@ -293,12 +357,14 @@ class Items {
293
357
  throw new errors.WebflowError({
294
358
  statusCode: _response.error.statusCode,
295
359
  body: _response.error.rawBody,
360
+ rawResponse: _response.rawResponse,
296
361
  });
297
362
  case "timeout":
298
363
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items.");
299
364
  case "unknown":
300
365
  throw new errors.WebflowError({
301
366
  message: _response.error.errorMessage,
367
+ rawResponse: _response.rawResponse,
302
368
  });
303
369
  }
304
370
  });
@@ -329,12 +395,16 @@ class Items {
329
395
  * })
330
396
  */
331
397
  deleteItems(collectionId, request, requestOptions) {
332
- var _a;
398
+ return core.HttpResponsePromise.fromPromise(this.__deleteItems(collectionId, request, requestOptions));
399
+ }
400
+ __deleteItems(collectionId, request, requestOptions) {
333
401
  return __awaiter(this, void 0, void 0, function* () {
402
+ var _a, _b, _c;
334
403
  const _response = yield core.fetcher({
335
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items`),
404
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
405
+ .base, `collections/${encodeURIComponent(collectionId)}/items`),
336
406
  method: "DELETE",
337
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
407
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
338
408
  contentType: "application/json",
339
409
  requestType: "json",
340
410
  body: serializers.collections.ItemsDeleteItemsRequest.jsonOrThrow(request, {
@@ -347,12 +417,12 @@ class Items {
347
417
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
348
418
  });
349
419
  if (_response.ok) {
350
- return;
420
+ return { data: undefined, rawResponse: _response.rawResponse };
351
421
  }
352
422
  if (_response.error.reason === "status-code") {
353
423
  switch (_response.error.statusCode) {
354
424
  case 400:
355
- throw new Webflow.BadRequestError(_response.error.body);
425
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
356
426
  case 401:
357
427
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
358
428
  unrecognizedObjectKeys: "passthrough",
@@ -360,7 +430,7 @@ class Items {
360
430
  allowUnrecognizedEnumValues: true,
361
431
  skipValidation: true,
362
432
  breadcrumbsPrefix: ["response"],
363
- }));
433
+ }), _response.rawResponse);
364
434
  case 404:
365
435
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
366
436
  unrecognizedObjectKeys: "passthrough",
@@ -368,9 +438,9 @@ class Items {
368
438
  allowUnrecognizedEnumValues: true,
369
439
  skipValidation: true,
370
440
  breadcrumbsPrefix: ["response"],
371
- }));
441
+ }), _response.rawResponse);
372
442
  case 409:
373
- throw new Webflow.ConflictError(_response.error.body);
443
+ throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
374
444
  case 429:
375
445
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
376
446
  unrecognizedObjectKeys: "passthrough",
@@ -378,7 +448,7 @@ class Items {
378
448
  allowUnrecognizedEnumValues: true,
379
449
  skipValidation: true,
380
450
  breadcrumbsPrefix: ["response"],
381
- }));
451
+ }), _response.rawResponse);
382
452
  case 500:
383
453
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
384
454
  unrecognizedObjectKeys: "passthrough",
@@ -386,11 +456,12 @@ class Items {
386
456
  allowUnrecognizedEnumValues: true,
387
457
  skipValidation: true,
388
458
  breadcrumbsPrefix: ["response"],
389
- }));
459
+ }), _response.rawResponse);
390
460
  default:
391
461
  throw new errors.WebflowError({
392
462
  statusCode: _response.error.statusCode,
393
463
  body: _response.error.body,
464
+ rawResponse: _response.rawResponse,
394
465
  });
395
466
  }
396
467
  }
@@ -399,12 +470,14 @@ class Items {
399
470
  throw new errors.WebflowError({
400
471
  statusCode: _response.error.statusCode,
401
472
  body: _response.error.rawBody,
473
+ rawResponse: _response.rawResponse,
402
474
  });
403
475
  case "timeout":
404
476
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items.");
405
477
  case "unknown":
406
478
  throw new errors.WebflowError({
407
479
  message: _response.error.errorMessage,
480
+ rawResponse: _response.rawResponse,
408
481
  });
409
482
  }
410
483
  });
@@ -483,15 +556,25 @@ class Items {
483
556
  * })
484
557
  */
485
558
  updateItems(collectionId, request = {}, requestOptions) {
486
- var _a;
487
- return __awaiter(this, void 0, void 0, function* () {
559
+ return core.HttpResponsePromise.fromPromise(this.__updateItems(collectionId, request, requestOptions));
560
+ }
561
+ __updateItems(collectionId_1) {
562
+ return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
563
+ var _a, _b, _c;
564
+ const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
565
+ const _queryParams = {};
566
+ if (skipInvalidFiles != null) {
567
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
568
+ }
488
569
  const _response = yield core.fetcher({
489
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items`),
570
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
571
+ .base, `collections/${encodeURIComponent(collectionId)}/items`),
490
572
  method: "PATCH",
491
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
573
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
492
574
  contentType: "application/json",
575
+ queryParameters: _queryParams,
493
576
  requestType: "json",
494
- body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(request, {
577
+ body: serializers.collections.ItemsUpdateItemsRequest.jsonOrThrow(_body, {
495
578
  unrecognizedObjectKeys: "passthrough",
496
579
  allowUnrecognizedUnionMembers: true,
497
580
  allowUnrecognizedEnumValues: true,
@@ -501,18 +584,21 @@ class Items {
501
584
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
502
585
  });
503
586
  if (_response.ok) {
504
- return serializers.CollectionItem.parseOrThrow(_response.body, {
505
- unrecognizedObjectKeys: "passthrough",
506
- allowUnrecognizedUnionMembers: true,
507
- allowUnrecognizedEnumValues: true,
508
- skipValidation: true,
509
- breadcrumbsPrefix: ["response"],
510
- });
587
+ return {
588
+ data: serializers.collections.ItemsUpdateItemsResponse.parseOrThrow(_response.body, {
589
+ unrecognizedObjectKeys: "passthrough",
590
+ allowUnrecognizedUnionMembers: true,
591
+ allowUnrecognizedEnumValues: true,
592
+ skipValidation: true,
593
+ breadcrumbsPrefix: ["response"],
594
+ }),
595
+ rawResponse: _response.rawResponse,
596
+ };
511
597
  }
512
598
  if (_response.error.reason === "status-code") {
513
599
  switch (_response.error.statusCode) {
514
600
  case 400:
515
- throw new Webflow.BadRequestError(_response.error.body);
601
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
516
602
  case 401:
517
603
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
518
604
  unrecognizedObjectKeys: "passthrough",
@@ -520,7 +606,7 @@ class Items {
520
606
  allowUnrecognizedEnumValues: true,
521
607
  skipValidation: true,
522
608
  breadcrumbsPrefix: ["response"],
523
- }));
609
+ }), _response.rawResponse);
524
610
  case 404:
525
611
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
526
612
  unrecognizedObjectKeys: "passthrough",
@@ -528,7 +614,7 @@ class Items {
528
614
  allowUnrecognizedEnumValues: true,
529
615
  skipValidation: true,
530
616
  breadcrumbsPrefix: ["response"],
531
- }));
617
+ }), _response.rawResponse);
532
618
  case 429:
533
619
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
534
620
  unrecognizedObjectKeys: "passthrough",
@@ -536,7 +622,7 @@ class Items {
536
622
  allowUnrecognizedEnumValues: true,
537
623
  skipValidation: true,
538
624
  breadcrumbsPrefix: ["response"],
539
- }));
625
+ }), _response.rawResponse);
540
626
  case 500:
541
627
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
542
628
  unrecognizedObjectKeys: "passthrough",
@@ -544,11 +630,12 @@ class Items {
544
630
  allowUnrecognizedEnumValues: true,
545
631
  skipValidation: true,
546
632
  breadcrumbsPrefix: ["response"],
547
- }));
633
+ }), _response.rawResponse);
548
634
  default:
549
635
  throw new errors.WebflowError({
550
636
  statusCode: _response.error.statusCode,
551
637
  body: _response.error.body,
638
+ rawResponse: _response.rawResponse,
552
639
  });
553
640
  }
554
641
  }
@@ -557,12 +644,14 @@ class Items {
557
644
  throw new errors.WebflowError({
558
645
  statusCode: _response.error.statusCode,
559
646
  body: _response.error.rawBody,
647
+ rawResponse: _response.rawResponse,
560
648
  });
561
649
  case "timeout":
562
650
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items.");
563
651
  case "unknown":
564
652
  throw new errors.WebflowError({
565
653
  message: _response.error.errorMessage,
654
+ rawResponse: _response.rawResponse,
566
655
  });
567
656
  }
568
657
  });
@@ -591,9 +680,12 @@ class Items {
591
680
  * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745")
592
681
  */
593
682
  listItemsLive(collectionId, request = {}, requestOptions) {
594
- var _a;
595
- return __awaiter(this, void 0, void 0, function* () {
596
- const { cmsLocaleId, offset, limit, name, slug, sortBy, sortOrder } = request;
683
+ return core.HttpResponsePromise.fromPromise(this.__listItemsLive(collectionId, request, requestOptions));
684
+ }
685
+ __listItemsLive(collectionId_1) {
686
+ return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
687
+ var _a, _b, _c;
688
+ const { cmsLocaleId, offset, limit, name, slug, lastPublished, sortBy, sortOrder } = request;
597
689
  const _queryParams = {};
598
690
  if (cmsLocaleId != null) {
599
691
  _queryParams["cmsLocaleId"] = cmsLocaleId;
@@ -610,37 +702,54 @@ class Items {
610
702
  if (slug != null) {
611
703
  _queryParams["slug"] = slug;
612
704
  }
705
+ if (lastPublished != null) {
706
+ _queryParams["lastPublished"] = serializers.ItemsListItemsLiveRequestLastPublished.jsonOrThrow(lastPublished, {
707
+ unrecognizedObjectKeys: "passthrough",
708
+ allowUnrecognizedUnionMembers: true,
709
+ allowUnrecognizedEnumValues: true,
710
+ breadcrumbsPrefix: ["request", "lastPublished"],
711
+ });
712
+ }
613
713
  if (sortBy != null) {
614
- _queryParams["sortBy"] = sortBy;
714
+ _queryParams["sortBy"] = serializers.collections.ItemsListItemsLiveRequestSortBy.jsonOrThrow(sortBy, {
715
+ unrecognizedObjectKeys: "passthrough",
716
+ allowUnrecognizedUnionMembers: true,
717
+ allowUnrecognizedEnumValues: true,
718
+ });
615
719
  }
616
720
  if (sortOrder != null) {
617
- _queryParams["sortOrder"] = sortOrder;
721
+ _queryParams["sortOrder"] = serializers.collections.ItemsListItemsLiveRequestSortOrder.jsonOrThrow(sortOrder, {
722
+ unrecognizedObjectKeys: "passthrough",
723
+ allowUnrecognizedUnionMembers: true,
724
+ allowUnrecognizedEnumValues: true,
725
+ });
618
726
  }
619
727
  const _response = yield core.fetcher({
620
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi)
728
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
621
729
  .dataApi, `collections/${encodeURIComponent(collectionId)}/items/live`),
622
730
  method: "GET",
623
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
624
- contentType: "application/json",
731
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
625
732
  queryParameters: _queryParams,
626
- requestType: "json",
627
733
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
628
734
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
629
735
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
630
736
  });
631
737
  if (_response.ok) {
632
- return serializers.CollectionItemList.parseOrThrow(_response.body, {
633
- unrecognizedObjectKeys: "passthrough",
634
- allowUnrecognizedUnionMembers: true,
635
- allowUnrecognizedEnumValues: true,
636
- skipValidation: true,
637
- breadcrumbsPrefix: ["response"],
638
- });
738
+ return {
739
+ data: serializers.CollectionItemList.parseOrThrow(_response.body, {
740
+ unrecognizedObjectKeys: "passthrough",
741
+ allowUnrecognizedUnionMembers: true,
742
+ allowUnrecognizedEnumValues: true,
743
+ skipValidation: true,
744
+ breadcrumbsPrefix: ["response"],
745
+ }),
746
+ rawResponse: _response.rawResponse,
747
+ };
639
748
  }
640
749
  if (_response.error.reason === "status-code") {
641
750
  switch (_response.error.statusCode) {
642
751
  case 400:
643
- throw new Webflow.BadRequestError(_response.error.body);
752
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
644
753
  case 401:
645
754
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
646
755
  unrecognizedObjectKeys: "passthrough",
@@ -648,7 +757,7 @@ class Items {
648
757
  allowUnrecognizedEnumValues: true,
649
758
  skipValidation: true,
650
759
  breadcrumbsPrefix: ["response"],
651
- }));
760
+ }), _response.rawResponse);
652
761
  case 404:
653
762
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
654
763
  unrecognizedObjectKeys: "passthrough",
@@ -656,7 +765,7 @@ class Items {
656
765
  allowUnrecognizedEnumValues: true,
657
766
  skipValidation: true,
658
767
  breadcrumbsPrefix: ["response"],
659
- }));
768
+ }), _response.rawResponse);
660
769
  case 429:
661
770
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
662
771
  unrecognizedObjectKeys: "passthrough",
@@ -664,7 +773,7 @@ class Items {
664
773
  allowUnrecognizedEnumValues: true,
665
774
  skipValidation: true,
666
775
  breadcrumbsPrefix: ["response"],
667
- }));
776
+ }), _response.rawResponse);
668
777
  case 500:
669
778
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
670
779
  unrecognizedObjectKeys: "passthrough",
@@ -672,11 +781,12 @@ class Items {
672
781
  allowUnrecognizedEnumValues: true,
673
782
  skipValidation: true,
674
783
  breadcrumbsPrefix: ["response"],
675
- }));
784
+ }), _response.rawResponse);
676
785
  default:
677
786
  throw new errors.WebflowError({
678
787
  statusCode: _response.error.statusCode,
679
788
  body: _response.error.body,
789
+ rawResponse: _response.rawResponse,
680
790
  });
681
791
  }
682
792
  }
@@ -685,12 +795,14 @@ class Items {
685
795
  throw new errors.WebflowError({
686
796
  statusCode: _response.error.statusCode,
687
797
  body: _response.error.rawBody,
798
+ rawResponse: _response.rawResponse,
688
799
  });
689
800
  case "timeout":
690
801
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/live.");
691
802
  case "unknown":
692
803
  throw new errors.WebflowError({
693
804
  message: _response.error.errorMessage,
805
+ rawResponse: _response.rawResponse,
694
806
  });
695
807
  }
696
808
  });
@@ -699,7 +811,7 @@ class Items {
699
811
  * Create item(s) in a collection that will be immediately published to the live site.
700
812
  *
701
813
  *
702
- * To create items across multiple locales, [please use this endpoint.](/v2.0.0/data/reference/cms/collection-items/staged-items/create-items)
814
+ * To create items across multiple locales, [please use this endpoint.](/data/reference/cms/collection-items/staged-items/create-items)
703
815
  *
704
816
  *
705
817
  * Required scope | `CMS:write`
@@ -716,43 +828,57 @@ class Items {
716
828
  *
717
829
  * @example
718
830
  * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
719
- * isArchived: false,
720
- * isDraft: false,
721
- * fieldData: {
722
- * name: "Pan Galactic Gargle Blaster Recipe",
723
- * slug: "pan-galactic-gargle-blaster"
831
+ * body: {
832
+ * isArchived: false,
833
+ * isDraft: false,
834
+ * fieldData: {
835
+ * name: "Pan Galactic Gargle Blaster Recipe",
836
+ * slug: "pan-galactic-gargle-blaster"
837
+ * }
724
838
  * }
725
839
  * })
726
840
  *
727
841
  * @example
728
842
  * await client.collections.items.createItemLive("580e63fc8c9a982ac9b8b745", {
729
- * items: [{
730
- * isArchived: false,
731
- * isDraft: false,
732
- * fieldData: {
733
- * name: "Senior Data Analyst",
734
- * slug: "senior-data-analyst"
735
- * }
736
- * }, {
737
- * isArchived: false,
738
- * isDraft: false,
739
- * fieldData: {
740
- * name: "Product Manager",
741
- * slug: "product-manager"
742
- * }
743
- * }]
843
+ * body: {
844
+ * items: [{
845
+ * isArchived: false,
846
+ * isDraft: false,
847
+ * fieldData: {
848
+ * name: "Senior Data Analyst",
849
+ * slug: "senior-data-analyst"
850
+ * }
851
+ * }, {
852
+ * isArchived: false,
853
+ * isDraft: false,
854
+ * fieldData: {
855
+ * name: "Product Manager",
856
+ * slug: "product-manager"
857
+ * }
858
+ * }]
859
+ * }
744
860
  * })
745
861
  */
746
862
  createItemLive(collectionId, request, requestOptions) {
747
- var _a;
863
+ return core.HttpResponsePromise.fromPromise(this.__createItemLive(collectionId, request, requestOptions));
864
+ }
865
+ __createItemLive(collectionId, request, requestOptions) {
748
866
  return __awaiter(this, void 0, void 0, function* () {
867
+ var _a, _b, _c;
868
+ const { skipInvalidFiles, body: _body } = request;
869
+ const _queryParams = {};
870
+ if (skipInvalidFiles != null) {
871
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
872
+ }
749
873
  const _response = yield core.fetcher({
750
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/live`),
874
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
875
+ .base, `collections/${encodeURIComponent(collectionId)}/items/live`),
751
876
  method: "POST",
752
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
877
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
753
878
  contentType: "application/json",
879
+ queryParameters: _queryParams,
754
880
  requestType: "json",
755
- body: serializers.collections.ItemsCreateItemLiveRequest.jsonOrThrow(request, {
881
+ body: serializers.collections.ItemsCreateItemLiveRequestBody.jsonOrThrow(_body, {
756
882
  unrecognizedObjectKeys: "passthrough",
757
883
  allowUnrecognizedUnionMembers: true,
758
884
  allowUnrecognizedEnumValues: true,
@@ -762,18 +888,21 @@ class Items {
762
888
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
763
889
  });
764
890
  if (_response.ok) {
765
- return serializers.CollectionItem.parseOrThrow(_response.body, {
766
- unrecognizedObjectKeys: "passthrough",
767
- allowUnrecognizedUnionMembers: true,
768
- allowUnrecognizedEnumValues: true,
769
- skipValidation: true,
770
- breadcrumbsPrefix: ["response"],
771
- });
891
+ return {
892
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
893
+ unrecognizedObjectKeys: "passthrough",
894
+ allowUnrecognizedUnionMembers: true,
895
+ allowUnrecognizedEnumValues: true,
896
+ skipValidation: true,
897
+ breadcrumbsPrefix: ["response"],
898
+ }),
899
+ rawResponse: _response.rawResponse,
900
+ };
772
901
  }
773
902
  if (_response.error.reason === "status-code") {
774
903
  switch (_response.error.statusCode) {
775
904
  case 400:
776
- throw new Webflow.BadRequestError(_response.error.body);
905
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
777
906
  case 401:
778
907
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
779
908
  unrecognizedObjectKeys: "passthrough",
@@ -781,7 +910,7 @@ class Items {
781
910
  allowUnrecognizedEnumValues: true,
782
911
  skipValidation: true,
783
912
  breadcrumbsPrefix: ["response"],
784
- }));
913
+ }), _response.rawResponse);
785
914
  case 404:
786
915
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
787
916
  unrecognizedObjectKeys: "passthrough",
@@ -789,7 +918,7 @@ class Items {
789
918
  allowUnrecognizedEnumValues: true,
790
919
  skipValidation: true,
791
920
  breadcrumbsPrefix: ["response"],
792
- }));
921
+ }), _response.rawResponse);
793
922
  case 429:
794
923
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
795
924
  unrecognizedObjectKeys: "passthrough",
@@ -797,7 +926,7 @@ class Items {
797
926
  allowUnrecognizedEnumValues: true,
798
927
  skipValidation: true,
799
928
  breadcrumbsPrefix: ["response"],
800
- }));
929
+ }), _response.rawResponse);
801
930
  case 500:
802
931
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
803
932
  unrecognizedObjectKeys: "passthrough",
@@ -805,11 +934,12 @@ class Items {
805
934
  allowUnrecognizedEnumValues: true,
806
935
  skipValidation: true,
807
936
  breadcrumbsPrefix: ["response"],
808
- }));
937
+ }), _response.rawResponse);
809
938
  default:
810
939
  throw new errors.WebflowError({
811
940
  statusCode: _response.error.statusCode,
812
941
  body: _response.error.body,
942
+ rawResponse: _response.rawResponse,
813
943
  });
814
944
  }
815
945
  }
@@ -818,20 +948,20 @@ class Items {
818
948
  throw new errors.WebflowError({
819
949
  statusCode: _response.error.statusCode,
820
950
  body: _response.error.rawBody,
951
+ rawResponse: _response.rawResponse,
821
952
  });
822
953
  case "timeout":
823
954
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/live.");
824
955
  case "unknown":
825
956
  throw new errors.WebflowError({
826
957
  message: _response.error.errorMessage,
958
+ rawResponse: _response.rawResponse,
827
959
  });
828
960
  }
829
961
  });
830
962
  }
831
963
  /**
832
- * Remove an item or multiple items (up to 100 items) from the live site.
833
- *
834
- * Using this endpoint to delete published item(s) will unpublish the item(s) from the live site and set the item(s) `isDraft` property to `true`.
964
+ * Unpublish up to 100 items from the live site and set the `isDraft` property to `true`.
835
965
  *
836
966
  * <Tip title="Localization Tip">Items will only be unpublished in the primary locale unless a `cmsLocaleId` is included in the request.</Tip>
837
967
  *
@@ -855,12 +985,16 @@ class Items {
855
985
  * })
856
986
  */
857
987
  deleteItemsLive(collectionId, request, requestOptions) {
858
- var _a;
988
+ return core.HttpResponsePromise.fromPromise(this.__deleteItemsLive(collectionId, request, requestOptions));
989
+ }
990
+ __deleteItemsLive(collectionId, request, requestOptions) {
859
991
  return __awaiter(this, void 0, void 0, function* () {
992
+ var _a, _b, _c;
860
993
  const _response = yield core.fetcher({
861
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/live`),
994
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
995
+ .base, `collections/${encodeURIComponent(collectionId)}/items/live`),
862
996
  method: "DELETE",
863
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
997
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
864
998
  contentType: "application/json",
865
999
  requestType: "json",
866
1000
  body: serializers.collections.ItemsDeleteItemsLiveRequest.jsonOrThrow(request, {
@@ -873,12 +1007,12 @@ class Items {
873
1007
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
874
1008
  });
875
1009
  if (_response.ok) {
876
- return;
1010
+ return { data: undefined, rawResponse: _response.rawResponse };
877
1011
  }
878
1012
  if (_response.error.reason === "status-code") {
879
1013
  switch (_response.error.statusCode) {
880
1014
  case 400:
881
- throw new Webflow.BadRequestError(_response.error.body);
1015
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
882
1016
  case 401:
883
1017
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
884
1018
  unrecognizedObjectKeys: "passthrough",
@@ -886,7 +1020,7 @@ class Items {
886
1020
  allowUnrecognizedEnumValues: true,
887
1021
  skipValidation: true,
888
1022
  breadcrumbsPrefix: ["response"],
889
- }));
1023
+ }), _response.rawResponse);
890
1024
  case 404:
891
1025
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
892
1026
  unrecognizedObjectKeys: "passthrough",
@@ -894,7 +1028,7 @@ class Items {
894
1028
  allowUnrecognizedEnumValues: true,
895
1029
  skipValidation: true,
896
1030
  breadcrumbsPrefix: ["response"],
897
- }));
1031
+ }), _response.rawResponse);
898
1032
  case 429:
899
1033
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
900
1034
  unrecognizedObjectKeys: "passthrough",
@@ -902,7 +1036,7 @@ class Items {
902
1036
  allowUnrecognizedEnumValues: true,
903
1037
  skipValidation: true,
904
1038
  breadcrumbsPrefix: ["response"],
905
- }));
1039
+ }), _response.rawResponse);
906
1040
  case 500:
907
1041
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
908
1042
  unrecognizedObjectKeys: "passthrough",
@@ -910,11 +1044,12 @@ class Items {
910
1044
  allowUnrecognizedEnumValues: true,
911
1045
  skipValidation: true,
912
1046
  breadcrumbsPrefix: ["response"],
913
- }));
1047
+ }), _response.rawResponse);
914
1048
  default:
915
1049
  throw new errors.WebflowError({
916
1050
  statusCode: _response.error.statusCode,
917
1051
  body: _response.error.body,
1052
+ rawResponse: _response.rawResponse,
918
1053
  });
919
1054
  }
920
1055
  }
@@ -923,12 +1058,14 @@ class Items {
923
1058
  throw new errors.WebflowError({
924
1059
  statusCode: _response.error.statusCode,
925
1060
  body: _response.error.rawBody,
1061
+ rawResponse: _response.rawResponse,
926
1062
  });
927
1063
  case "timeout":
928
1064
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/live.");
929
1065
  case "unknown":
930
1066
  throw new errors.WebflowError({
931
1067
  message: _response.error.errorMessage,
1068
+ rawResponse: _response.rawResponse,
932
1069
  });
933
1070
  }
934
1071
  });
@@ -1006,15 +1143,25 @@ class Items {
1006
1143
  * })
1007
1144
  */
1008
1145
  updateItemsLive(collectionId, request = {}, requestOptions) {
1009
- var _a;
1010
- return __awaiter(this, void 0, void 0, function* () {
1146
+ return core.HttpResponsePromise.fromPromise(this.__updateItemsLive(collectionId, request, requestOptions));
1147
+ }
1148
+ __updateItemsLive(collectionId_1) {
1149
+ return __awaiter(this, arguments, void 0, function* (collectionId, request = {}, requestOptions) {
1150
+ var _a, _b, _c;
1151
+ const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
1152
+ const _queryParams = {};
1153
+ if (skipInvalidFiles != null) {
1154
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
1155
+ }
1011
1156
  const _response = yield core.fetcher({
1012
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/live`),
1157
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1158
+ .base, `collections/${encodeURIComponent(collectionId)}/items/live`),
1013
1159
  method: "PATCH",
1014
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1160
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1015
1161
  contentType: "application/json",
1162
+ queryParameters: _queryParams,
1016
1163
  requestType: "json",
1017
- body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(request, {
1164
+ body: serializers.collections.ItemsUpdateItemsLiveRequest.jsonOrThrow(_body, {
1018
1165
  unrecognizedObjectKeys: "passthrough",
1019
1166
  allowUnrecognizedUnionMembers: true,
1020
1167
  allowUnrecognizedEnumValues: true,
@@ -1024,18 +1171,21 @@ class Items {
1024
1171
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1025
1172
  });
1026
1173
  if (_response.ok) {
1027
- return serializers.CollectionItemListNoPagination.parseOrThrow(_response.body, {
1028
- unrecognizedObjectKeys: "passthrough",
1029
- allowUnrecognizedUnionMembers: true,
1030
- allowUnrecognizedEnumValues: true,
1031
- skipValidation: true,
1032
- breadcrumbsPrefix: ["response"],
1033
- });
1174
+ return {
1175
+ data: serializers.CollectionItemListNoPagination.parseOrThrow(_response.body, {
1176
+ unrecognizedObjectKeys: "passthrough",
1177
+ allowUnrecognizedUnionMembers: true,
1178
+ allowUnrecognizedEnumValues: true,
1179
+ skipValidation: true,
1180
+ breadcrumbsPrefix: ["response"],
1181
+ }),
1182
+ rawResponse: _response.rawResponse,
1183
+ };
1034
1184
  }
1035
1185
  if (_response.error.reason === "status-code") {
1036
1186
  switch (_response.error.statusCode) {
1037
1187
  case 400:
1038
- throw new Webflow.BadRequestError(_response.error.body);
1188
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1039
1189
  case 401:
1040
1190
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1041
1191
  unrecognizedObjectKeys: "passthrough",
@@ -1043,7 +1193,7 @@ class Items {
1043
1193
  allowUnrecognizedEnumValues: true,
1044
1194
  skipValidation: true,
1045
1195
  breadcrumbsPrefix: ["response"],
1046
- }));
1196
+ }), _response.rawResponse);
1047
1197
  case 404:
1048
1198
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1049
1199
  unrecognizedObjectKeys: "passthrough",
@@ -1051,9 +1201,9 @@ class Items {
1051
1201
  allowUnrecognizedEnumValues: true,
1052
1202
  skipValidation: true,
1053
1203
  breadcrumbsPrefix: ["response"],
1054
- }));
1204
+ }), _response.rawResponse);
1055
1205
  case 409:
1056
- throw new Webflow.ConflictError(_response.error.body);
1206
+ throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
1057
1207
  case 429:
1058
1208
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1059
1209
  unrecognizedObjectKeys: "passthrough",
@@ -1061,7 +1211,7 @@ class Items {
1061
1211
  allowUnrecognizedEnumValues: true,
1062
1212
  skipValidation: true,
1063
1213
  breadcrumbsPrefix: ["response"],
1064
- }));
1214
+ }), _response.rawResponse);
1065
1215
  case 500:
1066
1216
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1067
1217
  unrecognizedObjectKeys: "passthrough",
@@ -1069,11 +1219,12 @@ class Items {
1069
1219
  allowUnrecognizedEnumValues: true,
1070
1220
  skipValidation: true,
1071
1221
  breadcrumbsPrefix: ["response"],
1072
- }));
1222
+ }), _response.rawResponse);
1073
1223
  default:
1074
1224
  throw new errors.WebflowError({
1075
1225
  statusCode: _response.error.statusCode,
1076
1226
  body: _response.error.body,
1227
+ rawResponse: _response.rawResponse,
1077
1228
  });
1078
1229
  }
1079
1230
  }
@@ -1082,12 +1233,14 @@ class Items {
1082
1233
  throw new errors.WebflowError({
1083
1234
  statusCode: _response.error.statusCode,
1084
1235
  body: _response.error.rawBody,
1236
+ rawResponse: _response.rawResponse,
1085
1237
  });
1086
1238
  case "timeout":
1087
1239
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/live.");
1088
1240
  case "unknown":
1089
1241
  throw new errors.WebflowError({
1090
1242
  message: _response.error.errorMessage,
1243
+ rawResponse: _response.rawResponse,
1091
1244
  });
1092
1245
  }
1093
1246
  });
@@ -1138,15 +1291,25 @@ class Items {
1138
1291
  * })
1139
1292
  */
1140
1293
  createItems(collectionId, request, requestOptions) {
1141
- var _a;
1294
+ return core.HttpResponsePromise.fromPromise(this.__createItems(collectionId, request, requestOptions));
1295
+ }
1296
+ __createItems(collectionId, request, requestOptions) {
1142
1297
  return __awaiter(this, void 0, void 0, function* () {
1298
+ var _a, _b, _c;
1299
+ const { skipInvalidFiles } = request, _body = __rest(request, ["skipInvalidFiles"]);
1300
+ const _queryParams = {};
1301
+ if (skipInvalidFiles != null) {
1302
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
1303
+ }
1143
1304
  const _response = yield core.fetcher({
1144
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
1305
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1306
+ .base, `collections/${encodeURIComponent(collectionId)}/items/bulk`),
1145
1307
  method: "POST",
1146
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1308
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1147
1309
  contentType: "application/json",
1310
+ queryParameters: _queryParams,
1148
1311
  requestType: "json",
1149
- body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(request, {
1312
+ body: serializers.collections.CreateBulkCollectionItemRequestBody.jsonOrThrow(_body, {
1150
1313
  unrecognizedObjectKeys: "passthrough",
1151
1314
  allowUnrecognizedUnionMembers: true,
1152
1315
  allowUnrecognizedEnumValues: true,
@@ -1156,18 +1319,21 @@ class Items {
1156
1319
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1157
1320
  });
1158
1321
  if (_response.ok) {
1159
- return serializers.BulkCollectionItem.parseOrThrow(_response.body, {
1160
- unrecognizedObjectKeys: "passthrough",
1161
- allowUnrecognizedUnionMembers: true,
1162
- allowUnrecognizedEnumValues: true,
1163
- skipValidation: true,
1164
- breadcrumbsPrefix: ["response"],
1165
- });
1322
+ return {
1323
+ data: serializers.BulkCollectionItem.parseOrThrow(_response.body, {
1324
+ unrecognizedObjectKeys: "passthrough",
1325
+ allowUnrecognizedUnionMembers: true,
1326
+ allowUnrecognizedEnumValues: true,
1327
+ skipValidation: true,
1328
+ breadcrumbsPrefix: ["response"],
1329
+ }),
1330
+ rawResponse: _response.rawResponse,
1331
+ };
1166
1332
  }
1167
1333
  if (_response.error.reason === "status-code") {
1168
1334
  switch (_response.error.statusCode) {
1169
1335
  case 400:
1170
- throw new Webflow.BadRequestError(_response.error.body);
1336
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1171
1337
  case 401:
1172
1338
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1173
1339
  unrecognizedObjectKeys: "passthrough",
@@ -1175,7 +1341,7 @@ class Items {
1175
1341
  allowUnrecognizedEnumValues: true,
1176
1342
  skipValidation: true,
1177
1343
  breadcrumbsPrefix: ["response"],
1178
- }));
1344
+ }), _response.rawResponse);
1179
1345
  case 404:
1180
1346
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1181
1347
  unrecognizedObjectKeys: "passthrough",
@@ -1183,7 +1349,7 @@ class Items {
1183
1349
  allowUnrecognizedEnumValues: true,
1184
1350
  skipValidation: true,
1185
1351
  breadcrumbsPrefix: ["response"],
1186
- }));
1352
+ }), _response.rawResponse);
1187
1353
  case 429:
1188
1354
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1189
1355
  unrecognizedObjectKeys: "passthrough",
@@ -1191,7 +1357,7 @@ class Items {
1191
1357
  allowUnrecognizedEnumValues: true,
1192
1358
  skipValidation: true,
1193
1359
  breadcrumbsPrefix: ["response"],
1194
- }));
1360
+ }), _response.rawResponse);
1195
1361
  case 500:
1196
1362
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1197
1363
  unrecognizedObjectKeys: "passthrough",
@@ -1199,11 +1365,12 @@ class Items {
1199
1365
  allowUnrecognizedEnumValues: true,
1200
1366
  skipValidation: true,
1201
1367
  breadcrumbsPrefix: ["response"],
1202
- }));
1368
+ }), _response.rawResponse);
1203
1369
  default:
1204
1370
  throw new errors.WebflowError({
1205
1371
  statusCode: _response.error.statusCode,
1206
1372
  body: _response.error.body,
1373
+ rawResponse: _response.rawResponse,
1207
1374
  });
1208
1375
  }
1209
1376
  }
@@ -1212,12 +1379,14 @@ class Items {
1212
1379
  throw new errors.WebflowError({
1213
1380
  statusCode: _response.error.statusCode,
1214
1381
  body: _response.error.rawBody,
1382
+ rawResponse: _response.rawResponse,
1215
1383
  });
1216
1384
  case "timeout":
1217
1385
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/bulk.");
1218
1386
  case "unknown":
1219
1387
  throw new errors.WebflowError({
1220
1388
  message: _response.error.errorMessage,
1389
+ rawResponse: _response.rawResponse,
1221
1390
  });
1222
1391
  }
1223
1392
  });
@@ -1242,38 +1411,42 @@ class Items {
1242
1411
  * await client.collections.items.getItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
1243
1412
  */
1244
1413
  getItem(collectionId, itemId, request = {}, requestOptions) {
1245
- var _a;
1246
- return __awaiter(this, void 0, void 0, function* () {
1414
+ return core.HttpResponsePromise.fromPromise(this.__getItem(collectionId, itemId, request, requestOptions));
1415
+ }
1416
+ __getItem(collectionId_1, itemId_1) {
1417
+ return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
1418
+ var _a, _b, _c;
1247
1419
  const { cmsLocaleId } = request;
1248
1420
  const _queryParams = {};
1249
1421
  if (cmsLocaleId != null) {
1250
1422
  _queryParams["cmsLocaleId"] = cmsLocaleId;
1251
1423
  }
1252
1424
  const _response = yield core.fetcher({
1253
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi)
1425
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1254
1426
  .production, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1255
1427
  method: "GET",
1256
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1257
- contentType: "application/json",
1428
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1258
1429
  queryParameters: _queryParams,
1259
- requestType: "json",
1260
1430
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1261
1431
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1262
1432
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1263
1433
  });
1264
1434
  if (_response.ok) {
1265
- return serializers.CollectionItem.parseOrThrow(_response.body, {
1266
- unrecognizedObjectKeys: "passthrough",
1267
- allowUnrecognizedUnionMembers: true,
1268
- allowUnrecognizedEnumValues: true,
1269
- skipValidation: true,
1270
- breadcrumbsPrefix: ["response"],
1271
- });
1435
+ return {
1436
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
1437
+ unrecognizedObjectKeys: "passthrough",
1438
+ allowUnrecognizedUnionMembers: true,
1439
+ allowUnrecognizedEnumValues: true,
1440
+ skipValidation: true,
1441
+ breadcrumbsPrefix: ["response"],
1442
+ }),
1443
+ rawResponse: _response.rawResponse,
1444
+ };
1272
1445
  }
1273
1446
  if (_response.error.reason === "status-code") {
1274
1447
  switch (_response.error.statusCode) {
1275
1448
  case 400:
1276
- throw new Webflow.BadRequestError(_response.error.body);
1449
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1277
1450
  case 401:
1278
1451
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1279
1452
  unrecognizedObjectKeys: "passthrough",
@@ -1281,7 +1454,7 @@ class Items {
1281
1454
  allowUnrecognizedEnumValues: true,
1282
1455
  skipValidation: true,
1283
1456
  breadcrumbsPrefix: ["response"],
1284
- }));
1457
+ }), _response.rawResponse);
1285
1458
  case 404:
1286
1459
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1287
1460
  unrecognizedObjectKeys: "passthrough",
@@ -1289,7 +1462,7 @@ class Items {
1289
1462
  allowUnrecognizedEnumValues: true,
1290
1463
  skipValidation: true,
1291
1464
  breadcrumbsPrefix: ["response"],
1292
- }));
1465
+ }), _response.rawResponse);
1293
1466
  case 429:
1294
1467
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1295
1468
  unrecognizedObjectKeys: "passthrough",
@@ -1297,7 +1470,7 @@ class Items {
1297
1470
  allowUnrecognizedEnumValues: true,
1298
1471
  skipValidation: true,
1299
1472
  breadcrumbsPrefix: ["response"],
1300
- }));
1473
+ }), _response.rawResponse);
1301
1474
  case 500:
1302
1475
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1303
1476
  unrecognizedObjectKeys: "passthrough",
@@ -1305,11 +1478,12 @@ class Items {
1305
1478
  allowUnrecognizedEnumValues: true,
1306
1479
  skipValidation: true,
1307
1480
  breadcrumbsPrefix: ["response"],
1308
- }));
1481
+ }), _response.rawResponse);
1309
1482
  default:
1310
1483
  throw new errors.WebflowError({
1311
1484
  statusCode: _response.error.statusCode,
1312
1485
  body: _response.error.body,
1486
+ rawResponse: _response.rawResponse,
1313
1487
  });
1314
1488
  }
1315
1489
  }
@@ -1318,12 +1492,14 @@ class Items {
1318
1492
  throw new errors.WebflowError({
1319
1493
  statusCode: _response.error.statusCode,
1320
1494
  body: _response.error.rawBody,
1495
+ rawResponse: _response.rawResponse,
1321
1496
  });
1322
1497
  case "timeout":
1323
1498
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/{item_id}.");
1324
1499
  case "unknown":
1325
1500
  throw new errors.WebflowError({
1326
1501
  message: _response.error.errorMessage,
1502
+ rawResponse: _response.rawResponse,
1327
1503
  });
1328
1504
  }
1329
1505
  });
@@ -1348,31 +1524,33 @@ class Items {
1348
1524
  * await client.collections.items.deleteItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
1349
1525
  */
1350
1526
  deleteItem(collectionId, itemId, request = {}, requestOptions) {
1351
- var _a;
1352
- return __awaiter(this, void 0, void 0, function* () {
1527
+ return core.HttpResponsePromise.fromPromise(this.__deleteItem(collectionId, itemId, request, requestOptions));
1528
+ }
1529
+ __deleteItem(collectionId_1, itemId_1) {
1530
+ return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
1531
+ var _a, _b, _c;
1353
1532
  const { cmsLocaleId } = request;
1354
1533
  const _queryParams = {};
1355
1534
  if (cmsLocaleId != null) {
1356
1535
  _queryParams["cmsLocaleId"] = cmsLocaleId;
1357
1536
  }
1358
1537
  const _response = yield core.fetcher({
1359
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1538
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1539
+ .base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1360
1540
  method: "DELETE",
1361
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1362
- contentType: "application/json",
1541
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1363
1542
  queryParameters: _queryParams,
1364
- requestType: "json",
1365
1543
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1366
1544
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1367
1545
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1368
1546
  });
1369
1547
  if (_response.ok) {
1370
- return;
1548
+ return { data: undefined, rawResponse: _response.rawResponse };
1371
1549
  }
1372
1550
  if (_response.error.reason === "status-code") {
1373
1551
  switch (_response.error.statusCode) {
1374
1552
  case 400:
1375
- throw new Webflow.BadRequestError(_response.error.body);
1553
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1376
1554
  case 401:
1377
1555
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1378
1556
  unrecognizedObjectKeys: "passthrough",
@@ -1380,7 +1558,7 @@ class Items {
1380
1558
  allowUnrecognizedEnumValues: true,
1381
1559
  skipValidation: true,
1382
1560
  breadcrumbsPrefix: ["response"],
1383
- }));
1561
+ }), _response.rawResponse);
1384
1562
  case 404:
1385
1563
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1386
1564
  unrecognizedObjectKeys: "passthrough",
@@ -1388,7 +1566,7 @@ class Items {
1388
1566
  allowUnrecognizedEnumValues: true,
1389
1567
  skipValidation: true,
1390
1568
  breadcrumbsPrefix: ["response"],
1391
- }));
1569
+ }), _response.rawResponse);
1392
1570
  case 429:
1393
1571
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1394
1572
  unrecognizedObjectKeys: "passthrough",
@@ -1396,7 +1574,7 @@ class Items {
1396
1574
  allowUnrecognizedEnumValues: true,
1397
1575
  skipValidation: true,
1398
1576
  breadcrumbsPrefix: ["response"],
1399
- }));
1577
+ }), _response.rawResponse);
1400
1578
  case 500:
1401
1579
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1402
1580
  unrecognizedObjectKeys: "passthrough",
@@ -1404,11 +1582,12 @@ class Items {
1404
1582
  allowUnrecognizedEnumValues: true,
1405
1583
  skipValidation: true,
1406
1584
  breadcrumbsPrefix: ["response"],
1407
- }));
1585
+ }), _response.rawResponse);
1408
1586
  default:
1409
1587
  throw new errors.WebflowError({
1410
1588
  statusCode: _response.error.statusCode,
1411
1589
  body: _response.error.body,
1590
+ rawResponse: _response.rawResponse,
1412
1591
  });
1413
1592
  }
1414
1593
  }
@@ -1417,12 +1596,14 @@ class Items {
1417
1596
  throw new errors.WebflowError({
1418
1597
  statusCode: _response.error.statusCode,
1419
1598
  body: _response.error.rawBody,
1599
+ rawResponse: _response.rawResponse,
1420
1600
  });
1421
1601
  case "timeout":
1422
1602
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/{item_id}.");
1423
1603
  case "unknown":
1424
1604
  throw new errors.WebflowError({
1425
1605
  message: _response.error.errorMessage,
1606
+ rawResponse: _response.rawResponse,
1426
1607
  });
1427
1608
  }
1428
1609
  });
@@ -1434,7 +1615,7 @@ class Items {
1434
1615
  *
1435
1616
  * @param {string} collectionId - Unique identifier for a Collection
1436
1617
  * @param {string} itemId - Unique identifier for an Item
1437
- * @param {Webflow.CollectionItemPatchSingle} request
1618
+ * @param {Webflow.collections.ItemsUpdateItemRequest} request
1438
1619
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
1439
1620
  *
1440
1621
  * @throws {@link Webflow.BadRequestError}
@@ -1445,24 +1626,36 @@ class Items {
1445
1626
  *
1446
1627
  * @example
1447
1628
  * await client.collections.items.updateItem("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
1448
- * isArchived: false,
1449
- * isDraft: false,
1450
- * fieldData: {
1451
- * name: "Pan Galactic Gargle Blaster Recipe",
1452
- * slug: "pan-galactic-gargle-blaster"
1629
+ * body: {
1630
+ * isArchived: false,
1631
+ * isDraft: false,
1632
+ * fieldData: {
1633
+ * name: "Pan Galactic Gargle Blaster Recipe",
1634
+ * slug: "pan-galactic-gargle-blaster"
1635
+ * }
1453
1636
  * }
1454
1637
  * })
1455
1638
  */
1456
1639
  updateItem(collectionId, itemId, request, requestOptions) {
1457
- var _a;
1640
+ return core.HttpResponsePromise.fromPromise(this.__updateItem(collectionId, itemId, request, requestOptions));
1641
+ }
1642
+ __updateItem(collectionId, itemId, request, requestOptions) {
1458
1643
  return __awaiter(this, void 0, void 0, function* () {
1644
+ var _a, _b, _c;
1645
+ const { skipInvalidFiles, body: _body } = request;
1646
+ const _queryParams = {};
1647
+ if (skipInvalidFiles != null) {
1648
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
1649
+ }
1459
1650
  const _response = yield core.fetcher({
1460
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1651
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1652
+ .base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}`),
1461
1653
  method: "PATCH",
1462
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1654
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1463
1655
  contentType: "application/json",
1656
+ queryParameters: _queryParams,
1464
1657
  requestType: "json",
1465
- body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
1658
+ body: serializers.CollectionItemPatchSingle.jsonOrThrow(_body, {
1466
1659
  unrecognizedObjectKeys: "passthrough",
1467
1660
  allowUnrecognizedUnionMembers: true,
1468
1661
  allowUnrecognizedEnumValues: true,
@@ -1472,18 +1665,21 @@ class Items {
1472
1665
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1473
1666
  });
1474
1667
  if (_response.ok) {
1475
- return serializers.CollectionItem.parseOrThrow(_response.body, {
1476
- unrecognizedObjectKeys: "passthrough",
1477
- allowUnrecognizedUnionMembers: true,
1478
- allowUnrecognizedEnumValues: true,
1479
- skipValidation: true,
1480
- breadcrumbsPrefix: ["response"],
1481
- });
1668
+ return {
1669
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
1670
+ unrecognizedObjectKeys: "passthrough",
1671
+ allowUnrecognizedUnionMembers: true,
1672
+ allowUnrecognizedEnumValues: true,
1673
+ skipValidation: true,
1674
+ breadcrumbsPrefix: ["response"],
1675
+ }),
1676
+ rawResponse: _response.rawResponse,
1677
+ };
1482
1678
  }
1483
1679
  if (_response.error.reason === "status-code") {
1484
1680
  switch (_response.error.statusCode) {
1485
1681
  case 400:
1486
- throw new Webflow.BadRequestError(_response.error.body);
1682
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1487
1683
  case 401:
1488
1684
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1489
1685
  unrecognizedObjectKeys: "passthrough",
@@ -1491,7 +1687,7 @@ class Items {
1491
1687
  allowUnrecognizedEnumValues: true,
1492
1688
  skipValidation: true,
1493
1689
  breadcrumbsPrefix: ["response"],
1494
- }));
1690
+ }), _response.rawResponse);
1495
1691
  case 404:
1496
1692
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1497
1693
  unrecognizedObjectKeys: "passthrough",
@@ -1499,7 +1695,7 @@ class Items {
1499
1695
  allowUnrecognizedEnumValues: true,
1500
1696
  skipValidation: true,
1501
1697
  breadcrumbsPrefix: ["response"],
1502
- }));
1698
+ }), _response.rawResponse);
1503
1699
  case 429:
1504
1700
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1505
1701
  unrecognizedObjectKeys: "passthrough",
@@ -1507,7 +1703,7 @@ class Items {
1507
1703
  allowUnrecognizedEnumValues: true,
1508
1704
  skipValidation: true,
1509
1705
  breadcrumbsPrefix: ["response"],
1510
- }));
1706
+ }), _response.rawResponse);
1511
1707
  case 500:
1512
1708
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1513
1709
  unrecognizedObjectKeys: "passthrough",
@@ -1515,11 +1711,12 @@ class Items {
1515
1711
  allowUnrecognizedEnumValues: true,
1516
1712
  skipValidation: true,
1517
1713
  breadcrumbsPrefix: ["response"],
1518
- }));
1714
+ }), _response.rawResponse);
1519
1715
  default:
1520
1716
  throw new errors.WebflowError({
1521
1717
  statusCode: _response.error.statusCode,
1522
1718
  body: _response.error.body,
1719
+ rawResponse: _response.rawResponse,
1523
1720
  });
1524
1721
  }
1525
1722
  }
@@ -1528,12 +1725,14 @@ class Items {
1528
1725
  throw new errors.WebflowError({
1529
1726
  statusCode: _response.error.statusCode,
1530
1727
  body: _response.error.rawBody,
1728
+ rawResponse: _response.rawResponse,
1531
1729
  });
1532
1730
  case "timeout":
1533
1731
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/{item_id}.");
1534
1732
  case "unknown":
1535
1733
  throw new errors.WebflowError({
1536
1734
  message: _response.error.errorMessage,
1735
+ rawResponse: _response.rawResponse,
1537
1736
  });
1538
1737
  }
1539
1738
  });
@@ -1563,38 +1762,42 @@ class Items {
1563
1762
  * await client.collections.items.getItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
1564
1763
  */
1565
1764
  getItemLive(collectionId, itemId, request = {}, requestOptions) {
1566
- var _a;
1567
- return __awaiter(this, void 0, void 0, function* () {
1765
+ return core.HttpResponsePromise.fromPromise(this.__getItemLive(collectionId, itemId, request, requestOptions));
1766
+ }
1767
+ __getItemLive(collectionId_1, itemId_1) {
1768
+ return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
1769
+ var _a, _b, _c;
1568
1770
  const { cmsLocaleId } = request;
1569
1771
  const _queryParams = {};
1570
1772
  if (cmsLocaleId != null) {
1571
1773
  _queryParams["cmsLocaleId"] = cmsLocaleId;
1572
1774
  }
1573
1775
  const _response = yield core.fetcher({
1574
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi)
1776
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1575
1777
  .dataApi, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1576
1778
  method: "GET",
1577
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1578
- contentType: "application/json",
1779
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1579
1780
  queryParameters: _queryParams,
1580
- requestType: "json",
1581
1781
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1582
1782
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1583
1783
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1584
1784
  });
1585
1785
  if (_response.ok) {
1586
- return serializers.CollectionItem.parseOrThrow(_response.body, {
1587
- unrecognizedObjectKeys: "passthrough",
1588
- allowUnrecognizedUnionMembers: true,
1589
- allowUnrecognizedEnumValues: true,
1590
- skipValidation: true,
1591
- breadcrumbsPrefix: ["response"],
1592
- });
1786
+ return {
1787
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
1788
+ unrecognizedObjectKeys: "passthrough",
1789
+ allowUnrecognizedUnionMembers: true,
1790
+ allowUnrecognizedEnumValues: true,
1791
+ skipValidation: true,
1792
+ breadcrumbsPrefix: ["response"],
1793
+ }),
1794
+ rawResponse: _response.rawResponse,
1795
+ };
1593
1796
  }
1594
1797
  if (_response.error.reason === "status-code") {
1595
1798
  switch (_response.error.statusCode) {
1596
1799
  case 400:
1597
- throw new Webflow.BadRequestError(_response.error.body);
1800
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1598
1801
  case 401:
1599
1802
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1600
1803
  unrecognizedObjectKeys: "passthrough",
@@ -1602,7 +1805,7 @@ class Items {
1602
1805
  allowUnrecognizedEnumValues: true,
1603
1806
  skipValidation: true,
1604
1807
  breadcrumbsPrefix: ["response"],
1605
- }));
1808
+ }), _response.rawResponse);
1606
1809
  case 404:
1607
1810
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1608
1811
  unrecognizedObjectKeys: "passthrough",
@@ -1610,7 +1813,7 @@ class Items {
1610
1813
  allowUnrecognizedEnumValues: true,
1611
1814
  skipValidation: true,
1612
1815
  breadcrumbsPrefix: ["response"],
1613
- }));
1816
+ }), _response.rawResponse);
1614
1817
  case 429:
1615
1818
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1616
1819
  unrecognizedObjectKeys: "passthrough",
@@ -1618,7 +1821,7 @@ class Items {
1618
1821
  allowUnrecognizedEnumValues: true,
1619
1822
  skipValidation: true,
1620
1823
  breadcrumbsPrefix: ["response"],
1621
- }));
1824
+ }), _response.rawResponse);
1622
1825
  case 500:
1623
1826
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1624
1827
  unrecognizedObjectKeys: "passthrough",
@@ -1626,11 +1829,12 @@ class Items {
1626
1829
  allowUnrecognizedEnumValues: true,
1627
1830
  skipValidation: true,
1628
1831
  breadcrumbsPrefix: ["response"],
1629
- }));
1832
+ }), _response.rawResponse);
1630
1833
  default:
1631
1834
  throw new errors.WebflowError({
1632
1835
  statusCode: _response.error.statusCode,
1633
1836
  body: _response.error.body,
1837
+ rawResponse: _response.rawResponse,
1634
1838
  });
1635
1839
  }
1636
1840
  }
@@ -1639,20 +1843,22 @@ class Items {
1639
1843
  throw new errors.WebflowError({
1640
1844
  statusCode: _response.error.statusCode,
1641
1845
  body: _response.error.rawBody,
1846
+ rawResponse: _response.rawResponse,
1642
1847
  });
1643
1848
  case "timeout":
1644
1849
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling GET /collections/{collection_id}/items/{item_id}/live.");
1645
1850
  case "unknown":
1646
1851
  throw new errors.WebflowError({
1647
1852
  message: _response.error.errorMessage,
1853
+ rawResponse: _response.rawResponse,
1648
1854
  });
1649
1855
  }
1650
1856
  });
1651
1857
  }
1652
1858
  /**
1653
- * Remove a live item from the site. Removing a published item will unpublish the item from the live site and set it to draft.
1859
+ * Unpublish a live item from the site and set the `isDraft` property to `true`.
1654
1860
  *
1655
- * This endpoint does not currently support bulk deletion.
1861
+ * For bulk unpublishing, please use [this endpoint.](/data/v2.0.0/reference/cms/collection-items/live-items/delete-items-live)
1656
1862
  *
1657
1863
  * Required scope | `CMS:write`
1658
1864
  *
@@ -1671,31 +1877,33 @@ class Items {
1671
1877
  * await client.collections.items.deleteItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754")
1672
1878
  */
1673
1879
  deleteItemLive(collectionId, itemId, request = {}, requestOptions) {
1674
- var _a;
1675
- return __awaiter(this, void 0, void 0, function* () {
1880
+ return core.HttpResponsePromise.fromPromise(this.__deleteItemLive(collectionId, itemId, request, requestOptions));
1881
+ }
1882
+ __deleteItemLive(collectionId_1, itemId_1) {
1883
+ return __awaiter(this, arguments, void 0, function* (collectionId, itemId, request = {}, requestOptions) {
1884
+ var _a, _b, _c;
1676
1885
  const { cmsLocaleId } = request;
1677
1886
  const _queryParams = {};
1678
1887
  if (cmsLocaleId != null) {
1679
1888
  _queryParams["cmsLocaleId"] = cmsLocaleId;
1680
1889
  }
1681
1890
  const _response = yield core.fetcher({
1682
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1891
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
1892
+ .base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1683
1893
  method: "DELETE",
1684
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1685
- contentType: "application/json",
1894
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1686
1895
  queryParameters: _queryParams,
1687
- requestType: "json",
1688
1896
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
1689
1897
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
1690
1898
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1691
1899
  });
1692
1900
  if (_response.ok) {
1693
- return;
1901
+ return { data: undefined, rawResponse: _response.rawResponse };
1694
1902
  }
1695
1903
  if (_response.error.reason === "status-code") {
1696
1904
  switch (_response.error.statusCode) {
1697
1905
  case 400:
1698
- throw new Webflow.BadRequestError(_response.error.body);
1906
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1699
1907
  case 401:
1700
1908
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1701
1909
  unrecognizedObjectKeys: "passthrough",
@@ -1703,7 +1911,7 @@ class Items {
1703
1911
  allowUnrecognizedEnumValues: true,
1704
1912
  skipValidation: true,
1705
1913
  breadcrumbsPrefix: ["response"],
1706
- }));
1914
+ }), _response.rawResponse);
1707
1915
  case 404:
1708
1916
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1709
1917
  unrecognizedObjectKeys: "passthrough",
@@ -1711,7 +1919,7 @@ class Items {
1711
1919
  allowUnrecognizedEnumValues: true,
1712
1920
  skipValidation: true,
1713
1921
  breadcrumbsPrefix: ["response"],
1714
- }));
1922
+ }), _response.rawResponse);
1715
1923
  case 429:
1716
1924
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1717
1925
  unrecognizedObjectKeys: "passthrough",
@@ -1719,7 +1927,7 @@ class Items {
1719
1927
  allowUnrecognizedEnumValues: true,
1720
1928
  skipValidation: true,
1721
1929
  breadcrumbsPrefix: ["response"],
1722
- }));
1930
+ }), _response.rawResponse);
1723
1931
  case 500:
1724
1932
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1725
1933
  unrecognizedObjectKeys: "passthrough",
@@ -1727,11 +1935,12 @@ class Items {
1727
1935
  allowUnrecognizedEnumValues: true,
1728
1936
  skipValidation: true,
1729
1937
  breadcrumbsPrefix: ["response"],
1730
- }));
1938
+ }), _response.rawResponse);
1731
1939
  default:
1732
1940
  throw new errors.WebflowError({
1733
1941
  statusCode: _response.error.statusCode,
1734
1942
  body: _response.error.body,
1943
+ rawResponse: _response.rawResponse,
1735
1944
  });
1736
1945
  }
1737
1946
  }
@@ -1740,12 +1949,14 @@ class Items {
1740
1949
  throw new errors.WebflowError({
1741
1950
  statusCode: _response.error.statusCode,
1742
1951
  body: _response.error.rawBody,
1952
+ rawResponse: _response.rawResponse,
1743
1953
  });
1744
1954
  case "timeout":
1745
1955
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling DELETE /collections/{collection_id}/items/{item_id}/live.");
1746
1956
  case "unknown":
1747
1957
  throw new errors.WebflowError({
1748
1958
  message: _response.error.errorMessage,
1959
+ rawResponse: _response.rawResponse,
1749
1960
  });
1750
1961
  }
1751
1962
  });
@@ -1757,7 +1968,7 @@ class Items {
1757
1968
  *
1758
1969
  * @param {string} collectionId - Unique identifier for a Collection
1759
1970
  * @param {string} itemId - Unique identifier for an Item
1760
- * @param {Webflow.CollectionItemPatchSingle} request
1971
+ * @param {Webflow.collections.ItemsUpdateItemLiveRequest} request
1761
1972
  * @param {Items.RequestOptions} requestOptions - Request-specific configuration.
1762
1973
  *
1763
1974
  * @throws {@link Webflow.BadRequestError}
@@ -1769,24 +1980,36 @@ class Items {
1769
1980
  *
1770
1981
  * @example
1771
1982
  * await client.collections.items.updateItemLive("580e63fc8c9a982ac9b8b745", "580e64008c9a982ac9b8b754", {
1772
- * isArchived: false,
1773
- * isDraft: false,
1774
- * fieldData: {
1775
- * name: "Pan Galactic Gargle Blaster Recipe",
1776
- * slug: "pan-galactic-gargle-blaster"
1983
+ * body: {
1984
+ * isArchived: false,
1985
+ * isDraft: false,
1986
+ * fieldData: {
1987
+ * name: "Pan Galactic Gargle Blaster Recipe",
1988
+ * slug: "pan-galactic-gargle-blaster"
1989
+ * }
1777
1990
  * }
1778
1991
  * })
1779
1992
  */
1780
1993
  updateItemLive(collectionId, itemId, request, requestOptions) {
1781
- var _a;
1994
+ return core.HttpResponsePromise.fromPromise(this.__updateItemLive(collectionId, itemId, request, requestOptions));
1995
+ }
1996
+ __updateItemLive(collectionId, itemId, request, requestOptions) {
1782
1997
  return __awaiter(this, void 0, void 0, function* () {
1998
+ var _a, _b, _c;
1999
+ const { skipInvalidFiles, body: _body } = request;
2000
+ const _queryParams = {};
2001
+ if (skipInvalidFiles != null) {
2002
+ _queryParams["skipInvalidFiles"] = skipInvalidFiles.toString();
2003
+ }
1783
2004
  const _response = yield core.fetcher({
1784
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
2005
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
2006
+ .base, `collections/${encodeURIComponent(collectionId)}/items/${encodeURIComponent(itemId)}/live`),
1785
2007
  method: "PATCH",
1786
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2008
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1787
2009
  contentType: "application/json",
2010
+ queryParameters: _queryParams,
1788
2011
  requestType: "json",
1789
- body: serializers.CollectionItemPatchSingle.jsonOrThrow(request, {
2012
+ body: serializers.CollectionItemPatchSingle.jsonOrThrow(_body, {
1790
2013
  unrecognizedObjectKeys: "passthrough",
1791
2014
  allowUnrecognizedUnionMembers: true,
1792
2015
  allowUnrecognizedEnumValues: true,
@@ -1796,18 +2019,21 @@ class Items {
1796
2019
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1797
2020
  });
1798
2021
  if (_response.ok) {
1799
- return serializers.CollectionItem.parseOrThrow(_response.body, {
1800
- unrecognizedObjectKeys: "passthrough",
1801
- allowUnrecognizedUnionMembers: true,
1802
- allowUnrecognizedEnumValues: true,
1803
- skipValidation: true,
1804
- breadcrumbsPrefix: ["response"],
1805
- });
2022
+ return {
2023
+ data: serializers.CollectionItem.parseOrThrow(_response.body, {
2024
+ unrecognizedObjectKeys: "passthrough",
2025
+ allowUnrecognizedUnionMembers: true,
2026
+ allowUnrecognizedEnumValues: true,
2027
+ skipValidation: true,
2028
+ breadcrumbsPrefix: ["response"],
2029
+ }),
2030
+ rawResponse: _response.rawResponse,
2031
+ };
1806
2032
  }
1807
2033
  if (_response.error.reason === "status-code") {
1808
2034
  switch (_response.error.statusCode) {
1809
2035
  case 400:
1810
- throw new Webflow.BadRequestError(_response.error.body);
2036
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1811
2037
  case 401:
1812
2038
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1813
2039
  unrecognizedObjectKeys: "passthrough",
@@ -1815,7 +2041,7 @@ class Items {
1815
2041
  allowUnrecognizedEnumValues: true,
1816
2042
  skipValidation: true,
1817
2043
  breadcrumbsPrefix: ["response"],
1818
- }));
2044
+ }), _response.rawResponse);
1819
2045
  case 404:
1820
2046
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1821
2047
  unrecognizedObjectKeys: "passthrough",
@@ -1823,9 +2049,9 @@ class Items {
1823
2049
  allowUnrecognizedEnumValues: true,
1824
2050
  skipValidation: true,
1825
2051
  breadcrumbsPrefix: ["response"],
1826
- }));
2052
+ }), _response.rawResponse);
1827
2053
  case 409:
1828
- throw new Webflow.ConflictError(_response.error.body);
2054
+ throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
1829
2055
  case 429:
1830
2056
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1831
2057
  unrecognizedObjectKeys: "passthrough",
@@ -1833,7 +2059,7 @@ class Items {
1833
2059
  allowUnrecognizedEnumValues: true,
1834
2060
  skipValidation: true,
1835
2061
  breadcrumbsPrefix: ["response"],
1836
- }));
2062
+ }), _response.rawResponse);
1837
2063
  case 500:
1838
2064
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1839
2065
  unrecognizedObjectKeys: "passthrough",
@@ -1841,11 +2067,12 @@ class Items {
1841
2067
  allowUnrecognizedEnumValues: true,
1842
2068
  skipValidation: true,
1843
2069
  breadcrumbsPrefix: ["response"],
1844
- }));
2070
+ }), _response.rawResponse);
1845
2071
  default:
1846
2072
  throw new errors.WebflowError({
1847
2073
  statusCode: _response.error.statusCode,
1848
2074
  body: _response.error.body,
2075
+ rawResponse: _response.rawResponse,
1849
2076
  });
1850
2077
  }
1851
2078
  }
@@ -1854,12 +2081,14 @@ class Items {
1854
2081
  throw new errors.WebflowError({
1855
2082
  statusCode: _response.error.statusCode,
1856
2083
  body: _response.error.rawBody,
2084
+ rawResponse: _response.rawResponse,
1857
2085
  });
1858
2086
  case "timeout":
1859
2087
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling PATCH /collections/{collection_id}/items/{item_id}/live.");
1860
2088
  case "unknown":
1861
2089
  throw new errors.WebflowError({
1862
2090
  message: _response.error.errorMessage,
2091
+ rawResponse: _response.rawResponse,
1863
2092
  });
1864
2093
  }
1865
2094
  });
@@ -1882,16 +2111,42 @@ class Items {
1882
2111
  *
1883
2112
  * @example
1884
2113
  * await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
1885
- * itemIds: ["itemIds"]
2114
+ * itemIds: ["643fd856d66b6528195ee2ca", "643fd856d66b6528195ee2cb", "643fd856d66b6528195ee2cc"]
2115
+ * })
2116
+ *
2117
+ * @example
2118
+ * await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
2119
+ * items: [{
2120
+ * id: "643fd856d66b6528195ee2ca",
2121
+ * cmsLocaleIds: ["653ad57de882f528b32e810e"]
2122
+ * }, {
2123
+ * id: "643fd856d66b6528195ee2cb",
2124
+ * cmsLocaleIds: ["653ad57de882f528b32e810e"]
2125
+ * }, {
2126
+ * id: "643fd856d66b6528195ee2cc",
2127
+ * cmsLocaleIds: ["653ad57de882f528b32e810e"]
2128
+ * }]
2129
+ * })
2130
+ *
2131
+ * @example
2132
+ * await client.collections.items.publishItem("580e63fc8c9a982ac9b8b745", {
2133
+ * items: [{
2134
+ * id: "643fd856d66b6528195ee2ca",
2135
+ * cmsLocaleIds: ["653ad57de882f528b32e810e", "6514390aea353fc691d69827", "65143930ea353fc691d69cd8"]
2136
+ * }]
1886
2137
  * })
1887
2138
  */
1888
2139
  publishItem(collectionId, request, requestOptions) {
1889
- var _a;
2140
+ return core.HttpResponsePromise.fromPromise(this.__publishItem(collectionId, request, requestOptions));
2141
+ }
2142
+ __publishItem(collectionId, request, requestOptions) {
1890
2143
  return __awaiter(this, void 0, void 0, function* () {
2144
+ var _a, _b, _c;
1891
2145
  const _response = yield core.fetcher({
1892
- url: (0, url_join_1.default)(((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.DataApi).base, `collections/${encodeURIComponent(collectionId)}/items/publish`),
2146
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.baseUrl))) !== null && _a !== void 0 ? _a : ((_b = (yield core.Supplier.get(this._options.environment))) !== null && _b !== void 0 ? _b : environments.WebflowEnvironment.DataApi)
2147
+ .base, `collections/${encodeURIComponent(collectionId)}/items/publish`),
1893
2148
  method: "POST",
1894
- headers: Object.assign({ Authorization: yield this._getAuthorizationHeader(), "X-Fern-Language": "JavaScript", "X-Fern-SDK-Name": "webflow-api", "X-Fern-SDK-Version": "3.1.3", "User-Agent": "webflow-api/3.1.3", "X-Fern-Runtime": core.RUNTIME.type, "X-Fern-Runtime-Version": core.RUNTIME.version }, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
2149
+ headers: (0, headers_js_1.mergeHeaders)((_c = this._options) === null || _c === void 0 ? void 0 : _c.headers, (0, headers_js_1.mergeOnlyDefinedHeaders)({ Authorization: yield this._getAuthorizationHeader() }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers),
1895
2150
  contentType: "application/json",
1896
2151
  requestType: "json",
1897
2152
  body: serializers.collections.ItemsPublishItemRequest.jsonOrThrow(request, {
@@ -1904,18 +2159,21 @@ class Items {
1904
2159
  abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
1905
2160
  });
1906
2161
  if (_response.ok) {
1907
- return serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
1908
- unrecognizedObjectKeys: "passthrough",
1909
- allowUnrecognizedUnionMembers: true,
1910
- allowUnrecognizedEnumValues: true,
1911
- skipValidation: true,
1912
- breadcrumbsPrefix: ["response"],
1913
- });
2162
+ return {
2163
+ data: serializers.collections.ItemsPublishItemResponse.parseOrThrow(_response.body, {
2164
+ unrecognizedObjectKeys: "passthrough",
2165
+ allowUnrecognizedUnionMembers: true,
2166
+ allowUnrecognizedEnumValues: true,
2167
+ skipValidation: true,
2168
+ breadcrumbsPrefix: ["response"],
2169
+ }),
2170
+ rawResponse: _response.rawResponse,
2171
+ };
1914
2172
  }
1915
2173
  if (_response.error.reason === "status-code") {
1916
2174
  switch (_response.error.statusCode) {
1917
2175
  case 400:
1918
- throw new Webflow.BadRequestError(_response.error.body);
2176
+ throw new Webflow.BadRequestError(_response.error.body, _response.rawResponse);
1919
2177
  case 401:
1920
2178
  throw new Webflow.UnauthorizedError(serializers.Error_.parseOrThrow(_response.error.body, {
1921
2179
  unrecognizedObjectKeys: "passthrough",
@@ -1923,7 +2181,7 @@ class Items {
1923
2181
  allowUnrecognizedEnumValues: true,
1924
2182
  skipValidation: true,
1925
2183
  breadcrumbsPrefix: ["response"],
1926
- }));
2184
+ }), _response.rawResponse);
1927
2185
  case 404:
1928
2186
  throw new Webflow.NotFoundError(serializers.Error_.parseOrThrow(_response.error.body, {
1929
2187
  unrecognizedObjectKeys: "passthrough",
@@ -1931,9 +2189,9 @@ class Items {
1931
2189
  allowUnrecognizedEnumValues: true,
1932
2190
  skipValidation: true,
1933
2191
  breadcrumbsPrefix: ["response"],
1934
- }));
2192
+ }), _response.rawResponse);
1935
2193
  case 409:
1936
- throw new Webflow.ConflictError(_response.error.body);
2194
+ throw new Webflow.ConflictError(_response.error.body, _response.rawResponse);
1937
2195
  case 429:
1938
2196
  throw new Webflow.TooManyRequestsError(serializers.Error_.parseOrThrow(_response.error.body, {
1939
2197
  unrecognizedObjectKeys: "passthrough",
@@ -1941,7 +2199,7 @@ class Items {
1941
2199
  allowUnrecognizedEnumValues: true,
1942
2200
  skipValidation: true,
1943
2201
  breadcrumbsPrefix: ["response"],
1944
- }));
2202
+ }), _response.rawResponse);
1945
2203
  case 500:
1946
2204
  throw new Webflow.InternalServerError(serializers.Error_.parseOrThrow(_response.error.body, {
1947
2205
  unrecognizedObjectKeys: "passthrough",
@@ -1949,11 +2207,12 @@ class Items {
1949
2207
  allowUnrecognizedEnumValues: true,
1950
2208
  skipValidation: true,
1951
2209
  breadcrumbsPrefix: ["response"],
1952
- }));
2210
+ }), _response.rawResponse);
1953
2211
  default:
1954
2212
  throw new errors.WebflowError({
1955
2213
  statusCode: _response.error.statusCode,
1956
2214
  body: _response.error.body,
2215
+ rawResponse: _response.rawResponse,
1957
2216
  });
1958
2217
  }
1959
2218
  }
@@ -1962,12 +2221,14 @@ class Items {
1962
2221
  throw new errors.WebflowError({
1963
2222
  statusCode: _response.error.statusCode,
1964
2223
  body: _response.error.rawBody,
2224
+ rawResponse: _response.rawResponse,
1965
2225
  });
1966
2226
  case "timeout":
1967
2227
  throw new errors.WebflowTimeoutError("Timeout exceeded when calling POST /collections/{collection_id}/items/publish.");
1968
2228
  case "unknown":
1969
2229
  throw new errors.WebflowError({
1970
2230
  message: _response.error.errorMessage,
2231
+ rawResponse: _response.rawResponse,
1971
2232
  });
1972
2233
  }
1973
2234
  });