webflow-api 2.3.2 → 2.3.6

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 (999) hide show
  1. package/Client.d.ts +4 -0
  2. package/api/errors/BadRequestError.d.ts +1 -1
  3. package/api/errors/BadRequestError.js +1 -1
  4. package/api/errors/ConflictError.d.ts +1 -1
  5. package/api/errors/ConflictError.js +1 -1
  6. package/api/errors/ForbiddenError.d.ts +1 -1
  7. package/api/errors/ForbiddenError.js +1 -1
  8. package/api/errors/InternalServerError.d.ts +1 -1
  9. package/api/errors/InternalServerError.js +1 -1
  10. package/api/errors/NotFoundError.d.ts +1 -1
  11. package/api/errors/NotFoundError.js +1 -1
  12. package/api/errors/TooManyRequestsError.d.ts +3 -2
  13. package/api/errors/TooManyRequestsError.js +1 -1
  14. package/api/errors/UnauthorizedError.d.ts +1 -1
  15. package/api/errors/UnauthorizedError.js +1 -1
  16. package/api/errors/index.d.ts +2 -2
  17. package/api/errors/index.js +2 -2
  18. package/api/resources/accessGroups/client/Client.d.ts +11 -2
  19. package/api/resources/accessGroups/client/Client.js +19 -7
  20. package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
  21. package/api/resources/accessGroups/client/requests/index.d.ts +1 -1
  22. package/api/resources/assets/client/Client.d.ts +50 -13
  23. package/api/resources/assets/client/Client.js +128 -39
  24. package/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
  25. package/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
  26. package/api/resources/assets/client/requests/index.d.ts +3 -3
  27. package/api/resources/collections/client/Client.d.ts +32 -6
  28. package/api/resources/collections/client/Client.js +80 -23
  29. package/api/resources/collections/client/requests/index.d.ts +1 -1
  30. package/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
  31. package/api/resources/collections/resources/fields/client/Client.js +36 -11
  32. package/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  33. package/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
  34. package/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
  35. package/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
  36. package/api/resources/collections/resources/items/client/Client.d.ts +98 -22
  37. package/api/resources/collections/resources/items/client/Client.js +318 -81
  38. package/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
  39. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
  40. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
  41. package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
  42. package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
  43. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
  44. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
  45. package/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
  46. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
  47. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
  48. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
  49. package/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
  50. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
  51. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
  52. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
  53. package/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
  54. package/api/resources/collections/resources/items/types/index.d.ts +4 -0
  55. package/api/resources/collections/resources/items/types/index.js +4 -0
  56. package/api/resources/ecommerce/client/Client.d.ts +10 -2
  57. package/api/resources/ecommerce/client/Client.js +18 -7
  58. package/api/resources/forms/client/Client.d.ts +34 -7
  59. package/api/resources/forms/client/Client.js +91 -24
  60. package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
  61. package/{dist/api/resources/webhooks/client/requests/index.js → api/resources/forms/client/requests/FormsListSubmissionsRequest.js} +3 -0
  62. package/api/resources/forms/client/requests/index.d.ts +3 -2
  63. package/api/resources/index.d.ts +0 -1
  64. package/api/resources/index.js +0 -1
  65. package/api/resources/inventory/client/Client.d.ts +19 -6
  66. package/api/resources/inventory/client/Client.js +37 -14
  67. package/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
  68. package/api/resources/inventory/client/requests/index.d.ts +1 -1
  69. package/api/resources/orders/client/Client.d.ts +44 -12
  70. package/api/resources/orders/client/Client.js +102 -32
  71. package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
  72. package/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
  73. package/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
  74. package/api/resources/orders/client/requests/index.d.ts +4 -4
  75. package/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
  76. package/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
  77. package/api/resources/orders/types/index.d.ts +1 -0
  78. package/api/resources/orders/types/index.js +1 -0
  79. package/api/resources/pages/client/Client.d.ts +42 -13
  80. package/api/resources/pages/client/Client.js +97 -31
  81. package/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
  82. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
  83. package/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
  84. package/api/resources/pages/client/requests/index.d.ts +5 -5
  85. package/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
  86. package/api/resources/pages/resources/scripts/client/Client.js +52 -22
  87. package/api/resources/products/client/Client.d.ts +47 -89
  88. package/api/resources/products/client/Client.js +105 -109
  89. package/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
  90. package/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
  91. package/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
  92. package/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
  93. package/api/resources/products/client/requests/index.d.ts +5 -5
  94. package/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  95. package/api/resources/scripts/client/Client.d.ts +25 -7
  96. package/api/resources/scripts/client/Client.js +53 -18
  97. package/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
  98. package/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
  99. package/api/resources/scripts/client/requests/index.d.ts +2 -2
  100. package/api/resources/sites/client/Client.d.ts +26 -11
  101. package/api/resources/sites/client/Client.js +63 -28
  102. package/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
  103. package/api/resources/sites/client/requests/index.d.ts +1 -1
  104. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
  105. package/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
  106. package/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
  107. package/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
  108. package/api/resources/sites/resources/scripts/client/Client.js +69 -27
  109. package/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
  110. package/api/resources/token/client/Client.d.ts +14 -4
  111. package/api/resources/token/client/Client.js +16 -8
  112. package/api/resources/users/client/Client.d.ts +38 -8
  113. package/api/resources/users/client/Client.js +86 -25
  114. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
  115. package/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
  116. package/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
  117. package/api/resources/users/client/requests/index.d.ts +3 -3
  118. package/api/resources/webhooks/client/Client.d.ts +34 -8
  119. package/api/resources/webhooks/client/Client.js +72 -22
  120. package/api/resources/webhooks/client/index.d.ts +1 -1
  121. package/api/resources/webhooks/client/index.js +0 -15
  122. package/api/types/AccessGroupList.d.ts +1 -1
  123. package/api/types/Asset.d.ts +11 -9
  124. package/api/types/AssetFolderList.d.ts +1 -1
  125. package/api/types/AssetUpload.d.ts +1 -1
  126. package/api/types/Assets.d.ts +1 -1
  127. package/api/types/Authorization.d.ts +1 -1
  128. package/api/types/AuthorizationAuthorization.d.ts +1 -1
  129. package/api/types/BadRequestErrorBody.d.ts +5 -0
  130. package/api/{resources/webhooks/client/requests/index.js → types/BadRequestErrorBody.js} +3 -0
  131. package/api/types/Collection.d.ts +2 -1
  132. package/api/types/CollectionItem.d.ts +1 -1
  133. package/api/types/CollectionItemList.d.ts +1 -1
  134. package/api/types/CollectionList.d.ts +1 -1
  135. package/api/types/ConflictErrorBody.d.ts +5 -0
  136. package/api/types/ConflictErrorBody.js +5 -0
  137. package/api/types/CustomCodeBlock.d.ts +1 -1
  138. package/api/types/CustomCodeHostedResponse.d.ts +1 -1
  139. package/api/types/CustomCodeInlineResponse.d.ts +1 -1
  140. package/api/types/Dom.d.ts +1 -1
  141. package/api/types/Domains.d.ts +1 -1
  142. package/api/types/DuplicateUserEmail.d.ts +2 -11
  143. package/api/types/Error_.d.ts +1 -1
  144. package/api/types/Field.d.ts +1 -1
  145. package/api/types/FieldType.d.ts +2 -2
  146. package/api/types/FieldType.js +1 -1
  147. package/api/types/ForbiddenErrorBody.d.ts +10 -0
  148. package/api/types/ForbiddenErrorBody.js +5 -0
  149. package/api/types/Form.d.ts +3 -1
  150. package/api/types/FormField.d.ts +1 -1
  151. package/api/types/FormFieldValue.d.ts +1 -1
  152. package/api/types/FormList.d.ts +1 -1
  153. package/api/types/FormSubmissionList.d.ts +2 -2
  154. package/api/types/InventoryItem.d.ts +1 -1
  155. package/api/types/ListCustomCodeBlocks.d.ts +1 -1
  156. package/api/types/Locales.d.ts +1 -1
  157. package/api/types/MissingScopes.d.ts +2 -11
  158. package/api/types/Node.d.ts +1 -1
  159. package/api/types/NotEnterprisePlanSite.d.ts +2 -11
  160. package/api/types/OauthScope.d.ts +9 -1
  161. package/api/types/OauthScope.js +2 -0
  162. package/api/types/Order.d.ts +1 -1
  163. package/api/types/OrderAddress.d.ts +1 -1
  164. package/api/types/OrderList.d.ts +1 -1
  165. package/api/types/OrderPurchasedItem.d.ts +1 -1
  166. package/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
  167. package/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
  168. package/api/types/OrderTotals.d.ts +1 -1
  169. package/api/types/OrderTotalsExtrasItem.d.ts +1 -1
  170. package/api/types/Page.d.ts +1 -1
  171. package/api/types/PageDetails.d.ts +41 -0
  172. package/api/types/PageDetails.js +5 -0
  173. package/api/types/PageDetailsOpenGraph.d.ts +16 -0
  174. package/api/types/PageDetailsOpenGraph.js +5 -0
  175. package/api/types/PageDetailsSeo.d.ts +12 -0
  176. package/api/types/PageDetailsSeo.js +5 -0
  177. package/api/types/PageList.d.ts +1 -1
  178. package/api/types/Product.d.ts +1 -1
  179. package/api/types/ProductAndSkUs.d.ts +1 -1
  180. package/api/types/ProductAndSkUsList.d.ts +1 -1
  181. package/api/types/ProductFieldData.d.ts +1 -1
  182. package/api/types/RegisteredScriptList.d.ts +1 -1
  183. package/api/types/ScriptApply.d.ts +1 -1
  184. package/api/types/ScriptApplyList.d.ts +1 -1
  185. package/api/types/Scripts.d.ts +1 -1
  186. package/api/types/Site.d.ts +1 -1
  187. package/api/types/SiteActivityLogItem.d.ts +1 -1
  188. package/api/types/SiteActivityLogResponse.d.ts +1 -1
  189. package/api/types/Sites.d.ts +1 -1
  190. package/api/types/Sku.d.ts +1 -1
  191. package/api/types/SkuFieldData.d.ts +1 -1
  192. package/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
  193. package/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
  194. package/api/types/SkuPropertyList.d.ts +1 -1
  195. package/api/types/StripeCard.d.ts +1 -1
  196. package/api/types/TooManyRequestsErrorBody.d.ts +9 -0
  197. package/api/types/TooManyRequestsErrorBody.js +5 -0
  198. package/api/types/User.d.ts +1 -1
  199. package/api/types/UserAccessGroupsItem.d.ts +1 -1
  200. package/api/types/UserData.d.ts +1 -1
  201. package/api/types/UserLimitReached.d.ts +2 -11
  202. package/api/types/UserList.d.ts +1 -1
  203. package/api/types/UsersNotEnabled.d.ts +2 -11
  204. package/api/types/Webhook.d.ts +6 -6
  205. package/api/types/WebhookFilter.d.ts +10 -0
  206. package/api/types/WebhookFilter.js +5 -0
  207. package/api/types/WebhookList.d.ts +1 -1
  208. package/api/types/index.d.ts +8 -0
  209. package/api/types/index.js +8 -0
  210. package/core/fetcher/Fetcher.d.ts +2 -1
  211. package/core/fetcher/Fetcher.js +126 -19
  212. package/core/runtime/runtime.d.ts +1 -1
  213. package/core/runtime/runtime.js +11 -1
  214. package/core/schemas/builders/object/object.js +11 -15
  215. package/dist/Client.d.ts +4 -0
  216. package/dist/api/errors/BadRequestError.d.ts +1 -1
  217. package/dist/api/errors/BadRequestError.js +1 -1
  218. package/dist/api/errors/ConflictError.d.ts +1 -1
  219. package/dist/api/errors/ConflictError.js +1 -1
  220. package/dist/api/errors/ForbiddenError.d.ts +1 -1
  221. package/dist/api/errors/ForbiddenError.js +1 -1
  222. package/dist/api/errors/InternalServerError.d.ts +1 -1
  223. package/dist/api/errors/InternalServerError.js +1 -1
  224. package/dist/api/errors/NotFoundError.d.ts +1 -1
  225. package/dist/api/errors/NotFoundError.js +1 -1
  226. package/dist/api/errors/TooManyRequestsError.d.ts +3 -2
  227. package/dist/api/errors/TooManyRequestsError.js +1 -1
  228. package/dist/api/errors/UnauthorizedError.d.ts +1 -1
  229. package/dist/api/errors/UnauthorizedError.js +1 -1
  230. package/dist/api/errors/index.d.ts +2 -2
  231. package/dist/api/errors/index.js +2 -2
  232. package/dist/api/resources/accessGroups/client/Client.d.ts +11 -2
  233. package/dist/api/resources/accessGroups/client/Client.js +19 -7
  234. package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +1 -1
  235. package/dist/api/resources/accessGroups/client/requests/index.d.ts +1 -1
  236. package/dist/api/resources/assets/client/Client.d.ts +50 -13
  237. package/dist/api/resources/assets/client/Client.js +128 -39
  238. package/dist/api/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +1 -2
  239. package/dist/api/resources/assets/client/requests/AssetsCreateRequest.d.ts +1 -2
  240. package/dist/api/resources/assets/client/requests/index.d.ts +3 -3
  241. package/dist/api/resources/collections/client/Client.d.ts +32 -6
  242. package/dist/api/resources/collections/client/Client.js +80 -23
  243. package/dist/api/resources/collections/client/requests/index.d.ts +1 -1
  244. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +18 -3
  245. package/dist/api/resources/collections/resources/fields/client/Client.js +36 -11
  246. package/dist/api/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +1 -1
  247. package/dist/api/resources/collections/resources/fields/client/requests/index.d.ts +2 -2
  248. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.d.ts +2 -2
  249. package/dist/api/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
  250. package/dist/api/resources/collections/resources/items/client/Client.d.ts +98 -22
  251. package/dist/api/resources/collections/resources/items/client/Client.js +318 -81
  252. package/dist/api/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +2 -8
  253. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +13 -0
  254. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js +5 -0
  255. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +2 -2
  256. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +13 -0
  257. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js +5 -0
  258. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +1 -1
  259. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +19 -2
  260. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +19 -2
  261. package/dist/api/resources/collections/resources/items/client/requests/index.d.ts +8 -6
  262. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +9 -0
  263. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +11 -0
  264. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +8 -0
  265. package/dist/api/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +10 -0
  266. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +9 -0
  267. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +11 -0
  268. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +8 -0
  269. package/dist/api/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +10 -0
  270. package/dist/api/resources/collections/resources/items/types/index.d.ts +4 -0
  271. package/dist/api/resources/collections/resources/items/types/index.js +4 -0
  272. package/dist/api/resources/ecommerce/client/Client.d.ts +10 -2
  273. package/dist/api/resources/ecommerce/client/Client.js +18 -7
  274. package/dist/api/resources/forms/client/Client.d.ts +34 -7
  275. package/dist/api/resources/forms/client/Client.js +91 -24
  276. package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +17 -0
  277. package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.js +5 -0
  278. package/dist/api/resources/forms/client/requests/index.d.ts +3 -2
  279. package/dist/api/resources/index.d.ts +0 -1
  280. package/dist/api/resources/index.js +0 -1
  281. package/dist/api/resources/inventory/client/Client.d.ts +19 -6
  282. package/dist/api/resources/inventory/client/Client.js +37 -14
  283. package/dist/api/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +2 -4
  284. package/dist/api/resources/inventory/client/requests/index.d.ts +1 -1
  285. package/dist/api/resources/orders/client/Client.d.ts +44 -12
  286. package/dist/api/resources/orders/client/Client.js +102 -32
  287. package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -1
  288. package/dist/api/resources/orders/client/requests/OrdersRefundRequest.d.ts +1 -1
  289. package/dist/api/resources/orders/client/requests/OrdersUpdateRequest.d.ts +1 -6
  290. package/dist/api/resources/orders/client/requests/index.d.ts +4 -4
  291. package/dist/api/resources/orders/types/OrdersListRequestStatus.d.ts +12 -0
  292. package/dist/api/resources/orders/types/OrdersListRequestStatus.js +14 -0
  293. package/dist/api/resources/orders/types/index.d.ts +1 -0
  294. package/dist/api/resources/orders/types/index.js +1 -0
  295. package/dist/api/resources/pages/client/Client.d.ts +42 -13
  296. package/dist/api/resources/pages/client/Client.js +97 -31
  297. package/dist/api/resources/pages/client/requests/DomWrite.d.ts +1 -4
  298. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +8 -0
  299. package/dist/api/resources/pages/client/requests/UpdatePageSettingsRequest.d.ts +1 -2
  300. package/dist/api/resources/pages/client/requests/index.d.ts +5 -5
  301. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +24 -11
  302. package/dist/api/resources/pages/resources/scripts/client/Client.js +52 -22
  303. package/dist/api/resources/products/client/Client.d.ts +47 -89
  304. package/dist/api/resources/products/client/Client.js +105 -109
  305. package/dist/api/resources/products/client/requests/ProductSkuCreate.d.ts +2 -27
  306. package/dist/api/resources/products/client/requests/ProductSkuUpdate.d.ts +2 -27
  307. package/dist/api/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +2 -17
  308. package/dist/api/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +2 -17
  309. package/dist/api/resources/products/client/requests/index.d.ts +5 -5
  310. package/dist/api/resources/products/types/ProductsCreateSkuResponse.d.ts +1 -1
  311. package/dist/api/resources/scripts/client/Client.d.ts +25 -7
  312. package/dist/api/resources/scripts/client/Client.js +53 -18
  313. package/dist/api/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +1 -1
  314. package/dist/api/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +1 -1
  315. package/dist/api/resources/scripts/client/requests/index.d.ts +2 -2
  316. package/dist/api/resources/sites/client/Client.d.ts +26 -11
  317. package/dist/api/resources/sites/client/Client.js +63 -28
  318. package/dist/api/resources/sites/client/requests/SitesPublishRequest.d.ts +1 -4
  319. package/dist/api/resources/sites/client/requests/index.d.ts +1 -1
  320. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +11 -2
  321. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +19 -7
  322. package/dist/api/resources/sites/resources/activityLogs/client/requests/index.d.ts +1 -1
  323. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +31 -13
  324. package/dist/api/resources/sites/resources/scripts/client/Client.js +69 -27
  325. package/dist/api/resources/sites/resources/scripts/client/requests/index.d.ts +1 -1
  326. package/dist/api/resources/token/client/Client.d.ts +14 -4
  327. package/dist/api/resources/token/client/Client.js +16 -8
  328. package/dist/api/resources/users/client/Client.d.ts +38 -8
  329. package/dist/api/resources/users/client/Client.js +86 -25
  330. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +1 -1
  331. package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +1 -1
  332. package/dist/api/resources/users/client/requests/UsersUpdateRequest.d.ts +2 -2
  333. package/dist/api/resources/users/client/requests/index.d.ts +3 -3
  334. package/dist/api/resources/webhooks/client/Client.d.ts +34 -8
  335. package/dist/api/resources/webhooks/client/Client.js +72 -22
  336. package/dist/api/resources/webhooks/client/index.d.ts +1 -1
  337. package/dist/api/resources/webhooks/client/index.js +0 -15
  338. package/dist/api/types/AccessGroupList.d.ts +1 -1
  339. package/dist/api/types/Asset.d.ts +11 -9
  340. package/dist/api/types/AssetFolderList.d.ts +1 -1
  341. package/dist/api/types/AssetUpload.d.ts +1 -1
  342. package/dist/api/types/Assets.d.ts +1 -1
  343. package/dist/api/types/Authorization.d.ts +1 -1
  344. package/dist/api/types/AuthorizationAuthorization.d.ts +1 -1
  345. package/dist/api/types/BadRequestErrorBody.d.ts +5 -0
  346. package/dist/api/types/BadRequestErrorBody.js +5 -0
  347. package/dist/api/types/Collection.d.ts +2 -1
  348. package/dist/api/types/CollectionItem.d.ts +1 -1
  349. package/dist/api/types/CollectionItemList.d.ts +1 -1
  350. package/dist/api/types/CollectionList.d.ts +1 -1
  351. package/dist/api/types/ConflictErrorBody.d.ts +5 -0
  352. package/dist/api/types/ConflictErrorBody.js +5 -0
  353. package/dist/api/types/CustomCodeBlock.d.ts +1 -1
  354. package/dist/api/types/CustomCodeHostedResponse.d.ts +1 -1
  355. package/dist/api/types/CustomCodeInlineResponse.d.ts +1 -1
  356. package/dist/api/types/Dom.d.ts +1 -1
  357. package/dist/api/types/Domains.d.ts +1 -1
  358. package/dist/api/types/DuplicateUserEmail.d.ts +2 -11
  359. package/dist/api/types/Error_.d.ts +1 -1
  360. package/dist/api/types/Field.d.ts +1 -1
  361. package/dist/api/types/FieldType.d.ts +2 -2
  362. package/dist/api/types/FieldType.js +1 -1
  363. package/dist/api/types/ForbiddenErrorBody.d.ts +10 -0
  364. package/dist/api/types/ForbiddenErrorBody.js +5 -0
  365. package/dist/api/types/Form.d.ts +3 -1
  366. package/dist/api/types/FormField.d.ts +1 -1
  367. package/dist/api/types/FormFieldValue.d.ts +1 -1
  368. package/dist/api/types/FormList.d.ts +1 -1
  369. package/dist/api/types/FormSubmissionList.d.ts +2 -2
  370. package/dist/api/types/InventoryItem.d.ts +1 -1
  371. package/dist/api/types/ListCustomCodeBlocks.d.ts +1 -1
  372. package/dist/api/types/Locales.d.ts +1 -1
  373. package/dist/api/types/MissingScopes.d.ts +2 -11
  374. package/dist/api/types/Node.d.ts +1 -1
  375. package/dist/api/types/NotEnterprisePlanSite.d.ts +2 -11
  376. package/dist/api/types/OauthScope.d.ts +9 -1
  377. package/dist/api/types/OauthScope.js +2 -0
  378. package/dist/api/types/Order.d.ts +1 -1
  379. package/dist/api/types/OrderAddress.d.ts +1 -1
  380. package/dist/api/types/OrderList.d.ts +1 -1
  381. package/dist/api/types/OrderPurchasedItem.d.ts +1 -1
  382. package/dist/api/types/OrderPurchasedItemVariantImage.d.ts +1 -1
  383. package/dist/api/types/OrderPurchasedItemVariantImageFile.d.ts +1 -1
  384. package/dist/api/types/OrderTotals.d.ts +1 -1
  385. package/dist/api/types/OrderTotalsExtrasItem.d.ts +1 -1
  386. package/dist/api/types/Page.d.ts +1 -1
  387. package/dist/api/types/PageDetails.d.ts +41 -0
  388. package/dist/api/types/PageDetails.js +5 -0
  389. package/dist/api/types/PageDetailsOpenGraph.d.ts +16 -0
  390. package/dist/api/types/PageDetailsOpenGraph.js +5 -0
  391. package/dist/api/types/PageDetailsSeo.d.ts +12 -0
  392. package/dist/api/types/PageDetailsSeo.js +5 -0
  393. package/dist/api/types/PageList.d.ts +1 -1
  394. package/dist/api/types/Product.d.ts +1 -1
  395. package/dist/api/types/ProductAndSkUs.d.ts +1 -1
  396. package/dist/api/types/ProductAndSkUsList.d.ts +1 -1
  397. package/dist/api/types/ProductFieldData.d.ts +1 -1
  398. package/dist/api/types/RegisteredScriptList.d.ts +1 -1
  399. package/dist/api/types/ScriptApply.d.ts +1 -1
  400. package/dist/api/types/ScriptApplyList.d.ts +1 -1
  401. package/dist/api/types/Scripts.d.ts +1 -1
  402. package/dist/api/types/Site.d.ts +1 -1
  403. package/dist/api/types/SiteActivityLogItem.d.ts +1 -1
  404. package/dist/api/types/SiteActivityLogResponse.d.ts +1 -1
  405. package/dist/api/types/Sites.d.ts +1 -1
  406. package/dist/api/types/Sku.d.ts +1 -1
  407. package/dist/api/types/SkuFieldData.d.ts +1 -1
  408. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +1 -1
  409. package/dist/api/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +2 -1
  410. package/dist/api/types/SkuPropertyList.d.ts +1 -1
  411. package/dist/api/types/StripeCard.d.ts +1 -1
  412. package/dist/api/types/TooManyRequestsErrorBody.d.ts +9 -0
  413. package/dist/api/types/TooManyRequestsErrorBody.js +5 -0
  414. package/dist/api/types/User.d.ts +1 -1
  415. package/dist/api/types/UserAccessGroupsItem.d.ts +1 -1
  416. package/dist/api/types/UserData.d.ts +1 -1
  417. package/dist/api/types/UserLimitReached.d.ts +2 -11
  418. package/dist/api/types/UserList.d.ts +1 -1
  419. package/dist/api/types/UsersNotEnabled.d.ts +2 -11
  420. package/dist/api/types/Webhook.d.ts +6 -6
  421. package/dist/api/types/WebhookFilter.d.ts +10 -0
  422. package/dist/api/types/WebhookFilter.js +5 -0
  423. package/dist/api/types/WebhookList.d.ts +1 -1
  424. package/dist/api/types/index.d.ts +8 -0
  425. package/dist/api/types/index.js +8 -0
  426. package/dist/core/fetcher/Fetcher.d.ts +2 -1
  427. package/dist/core/fetcher/Fetcher.js +126 -19
  428. package/dist/core/runtime/runtime.d.ts +1 -1
  429. package/dist/core/runtime/runtime.js +11 -1
  430. package/dist/core/schemas/builders/object/object.js +11 -15
  431. package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
  432. package/dist/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
  433. package/dist/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
  434. package/dist/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
  435. package/dist/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
  436. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
  437. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
  438. package/dist/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
  439. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
  440. package/dist/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
  441. package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
  442. package/dist/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
  443. package/dist/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
  444. package/dist/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
  445. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
  446. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
  447. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
  448. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
  449. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
  450. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
  451. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
  452. package/dist/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
  453. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
  454. package/dist/serialization/resources/collections/resources/items/types/index.js +4 -0
  455. package/dist/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
  456. package/dist/serialization/resources/index.d.ts +0 -2
  457. package/dist/serialization/resources/index.js +1 -3
  458. package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
  459. package/dist/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
  460. package/dist/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
  461. package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
  462. package/dist/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
  463. package/dist/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
  464. package/dist/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
  465. package/dist/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
  466. package/dist/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
  467. package/dist/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
  468. package/dist/serialization/resources/orders/types/index.d.ts +1 -0
  469. package/dist/serialization/resources/orders/types/index.js +1 -0
  470. package/dist/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
  471. package/dist/serialization/resources/pages/client/requests/DomWrite.js +2 -10
  472. package/dist/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
  473. package/dist/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
  474. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
  475. package/dist/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
  476. package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
  477. package/dist/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
  478. package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
  479. package/dist/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
  480. package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
  481. package/dist/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
  482. package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
  483. package/dist/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
  484. package/dist/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
  485. package/dist/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
  486. package/dist/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
  487. package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
  488. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
  489. package/dist/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
  490. package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
  491. package/dist/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
  492. package/dist/serialization/types/AccessGroup.d.ts +2 -2
  493. package/dist/serialization/types/AccessGroupList.d.ts +4 -3
  494. package/dist/serialization/types/AccessGroupList.js +2 -12
  495. package/dist/serialization/types/Application.d.ts +2 -2
  496. package/dist/serialization/types/Asset.d.ts +9 -7
  497. package/dist/serialization/types/Asset.js +7 -16
  498. package/dist/serialization/types/AssetFolder.d.ts +2 -2
  499. package/dist/serialization/types/AssetFolderList.d.ts +6 -4
  500. package/dist/serialization/types/AssetFolderList.js +4 -13
  501. package/dist/serialization/types/AssetUpload.d.ts +4 -3
  502. package/dist/serialization/types/AssetUpload.js +2 -12
  503. package/dist/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
  504. package/dist/serialization/types/AssetVariant.d.ts +2 -2
  505. package/dist/serialization/types/Assets.d.ts +4 -3
  506. package/dist/serialization/types/Assets.js +2 -12
  507. package/dist/serialization/types/Authorization.d.ts +6 -4
  508. package/dist/serialization/types/Authorization.js +4 -13
  509. package/dist/serialization/types/AuthorizationAuthorization.d.ts +4 -3
  510. package/dist/serialization/types/AuthorizationAuthorization.js +2 -12
  511. package/dist/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
  512. package/dist/serialization/types/AuthorizedUser.d.ts +2 -2
  513. package/dist/serialization/types/BadRequestErrorBody.d.ts +12 -0
  514. package/dist/serialization/types/BadRequestErrorBody.js +33 -0
  515. package/dist/serialization/types/Collection.d.ts +4 -3
  516. package/dist/serialization/types/Collection.js +2 -1
  517. package/dist/serialization/types/CollectionItem.d.ts +4 -3
  518. package/dist/serialization/types/CollectionItem.js +2 -10
  519. package/dist/serialization/types/CollectionItemFieldData.d.ts +2 -2
  520. package/dist/serialization/types/CollectionItemList.d.ts +6 -4
  521. package/dist/serialization/types/CollectionItemList.js +4 -13
  522. package/dist/serialization/types/CollectionItemListPagination.d.ts +2 -2
  523. package/dist/serialization/types/CollectionList.d.ts +4 -3
  524. package/dist/serialization/types/CollectionList.js +2 -12
  525. package/dist/serialization/types/CollectionListArrayItem.d.ts +2 -2
  526. package/dist/serialization/types/ConflictErrorBody.d.ts +12 -0
  527. package/dist/serialization/types/ConflictErrorBody.js +33 -0
  528. package/dist/serialization/types/CustomCodeBlock.d.ts +6 -4
  529. package/dist/serialization/types/CustomCodeBlock.js +4 -11
  530. package/dist/serialization/types/CustomCodeBlockType.d.ts +2 -2
  531. package/dist/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
  532. package/dist/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
  533. package/dist/serialization/types/Dom.d.ts +6 -4
  534. package/dist/serialization/types/Dom.js +4 -11
  535. package/dist/serialization/types/Domain.d.ts +2 -2
  536. package/dist/serialization/types/Domains.d.ts +4 -3
  537. package/dist/serialization/types/Domains.js +2 -12
  538. package/dist/serialization/types/DuplicateUserEmail.d.ts +4 -8
  539. package/dist/serialization/types/DuplicateUserEmail.js +2 -41
  540. package/dist/serialization/types/EcommerceSettings.d.ts +2 -2
  541. package/dist/serialization/types/ErrorDetailsItem.d.ts +2 -2
  542. package/dist/serialization/types/Error_.d.ts +4 -3
  543. package/dist/serialization/types/Error_.js +2 -12
  544. package/dist/serialization/types/Field.d.ts +4 -3
  545. package/dist/serialization/types/Field.js +2 -10
  546. package/dist/serialization/types/FieldType.d.ts +3 -3
  547. package/dist/serialization/types/FieldType.js +1 -1
  548. package/dist/serialization/types/ForbiddenErrorBody.d.ts +16 -0
  549. package/dist/serialization/types/ForbiddenErrorBody.js +37 -0
  550. package/dist/serialization/types/Form.d.ts +7 -4
  551. package/dist/serialization/types/Form.js +5 -11
  552. package/dist/serialization/types/FormField.d.ts +4 -3
  553. package/dist/serialization/types/FormField.js +2 -10
  554. package/dist/serialization/types/FormFieldValue.d.ts +4 -3
  555. package/dist/serialization/types/FormFieldValue.js +2 -10
  556. package/dist/serialization/types/FormFieldValueType.d.ts +2 -2
  557. package/dist/serialization/types/FormList.d.ts +6 -4
  558. package/dist/serialization/types/FormList.js +4 -11
  559. package/dist/serialization/types/FormResponseSettings.d.ts +2 -2
  560. package/dist/serialization/types/FormSubmission.d.ts +2 -2
  561. package/dist/serialization/types/FormSubmissionList.d.ts +6 -4
  562. package/dist/serialization/types/FormSubmissionList.js +4 -13
  563. package/dist/serialization/types/ImageNode.d.ts +2 -2
  564. package/dist/serialization/types/InvalidDomain.d.ts +2 -2
  565. package/dist/serialization/types/InventoryItem.d.ts +4 -3
  566. package/dist/serialization/types/InventoryItem.js +2 -10
  567. package/dist/serialization/types/InventoryItemInventoryType.d.ts +2 -2
  568. package/dist/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
  569. package/dist/serialization/types/ListCustomCodeBlocks.js +4 -13
  570. package/dist/serialization/types/Locale.d.ts +2 -2
  571. package/dist/serialization/types/Locales.d.ts +5 -4
  572. package/dist/serialization/types/Locales.js +3 -13
  573. package/dist/serialization/types/MissingScopes.d.ts +4 -9
  574. package/dist/serialization/types/MissingScopes.js +2 -42
  575. package/dist/serialization/types/NoDomains.d.ts +2 -2
  576. package/dist/serialization/types/Node.d.ts +8 -5
  577. package/dist/serialization/types/Node.js +6 -12
  578. package/dist/serialization/types/NodeType.d.ts +2 -2
  579. package/dist/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
  580. package/dist/serialization/types/NotEnterprisePlanSite.js +2 -42
  581. package/dist/serialization/types/OauthScope.d.ts +3 -3
  582. package/dist/serialization/types/OauthScope.js +2 -0
  583. package/dist/serialization/types/Order.d.ts +30 -18
  584. package/dist/serialization/types/Order.js +28 -31
  585. package/dist/serialization/types/OrderAddress.d.ts +6 -4
  586. package/dist/serialization/types/OrderAddress.js +4 -11
  587. package/dist/serialization/types/OrderAddressJapanType.d.ts +2 -2
  588. package/dist/serialization/types/OrderAddressType.d.ts +2 -2
  589. package/dist/serialization/types/OrderCustomerInfo.d.ts +2 -2
  590. package/dist/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
  591. package/dist/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
  592. package/dist/serialization/types/OrderList.d.ts +6 -4
  593. package/dist/serialization/types/OrderList.js +4 -13
  594. package/dist/serialization/types/OrderMetadata.d.ts +2 -2
  595. package/dist/serialization/types/OrderPrice.d.ts +2 -2
  596. package/dist/serialization/types/OrderPurchasedItem.d.ts +7 -5
  597. package/dist/serialization/types/OrderPurchasedItem.js +5 -14
  598. package/dist/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
  599. package/dist/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
  600. package/dist/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
  601. package/dist/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
  602. package/dist/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
  603. package/dist/serialization/types/OrderStatus.d.ts +2 -2
  604. package/dist/serialization/types/OrderTotals.d.ts +7 -5
  605. package/dist/serialization/types/OrderTotals.js +5 -14
  606. package/dist/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
  607. package/dist/serialization/types/OrderTotalsExtrasItem.js +4 -11
  608. package/dist/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
  609. package/dist/serialization/types/Page.d.ts +6 -4
  610. package/dist/serialization/types/Page.js +4 -11
  611. package/dist/serialization/types/PageDetails.d.ts +29 -0
  612. package/dist/serialization/types/PageDetails.js +50 -0
  613. package/dist/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
  614. package/dist/serialization/types/PageDetailsOpenGraph.js +36 -0
  615. package/dist/serialization/types/PageDetailsSeo.d.ts +13 -0
  616. package/dist/serialization/types/PageDetailsSeo.js +34 -0
  617. package/dist/serialization/types/PageList.d.ts +6 -4
  618. package/dist/serialization/types/PageList.js +4 -11
  619. package/dist/serialization/types/PageOpenGraph.d.ts +2 -2
  620. package/dist/serialization/types/PageSeo.d.ts +2 -2
  621. package/dist/serialization/types/Pagination.d.ts +2 -2
  622. package/dist/serialization/types/PaypalDetails.d.ts +2 -2
  623. package/dist/serialization/types/Product.d.ts +4 -3
  624. package/dist/serialization/types/Product.js +2 -10
  625. package/dist/serialization/types/ProductAndSkUs.d.ts +6 -4
  626. package/dist/serialization/types/ProductAndSkUs.js +4 -11
  627. package/dist/serialization/types/ProductAndSkUsList.d.ts +6 -4
  628. package/dist/serialization/types/ProductAndSkUsList.js +4 -13
  629. package/dist/serialization/types/ProductFieldData.d.ts +8 -5
  630. package/dist/serialization/types/ProductFieldData.js +6 -14
  631. package/dist/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
  632. package/dist/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
  633. package/dist/serialization/types/PublishStatus.d.ts +2 -2
  634. package/dist/serialization/types/RegisteredScriptList.d.ts +4 -3
  635. package/dist/serialization/types/RegisteredScriptList.js +2 -12
  636. package/dist/serialization/types/ScriptApply.d.ts +4 -3
  637. package/dist/serialization/types/ScriptApply.js +2 -10
  638. package/dist/serialization/types/ScriptApplyList.d.ts +4 -3
  639. package/dist/serialization/types/ScriptApplyList.js +2 -12
  640. package/dist/serialization/types/ScriptApplyLocation.d.ts +2 -2
  641. package/dist/serialization/types/Scripts.d.ts +4 -3
  642. package/dist/serialization/types/Scripts.js +2 -10
  643. package/dist/serialization/types/Site.d.ts +6 -4
  644. package/dist/serialization/types/Site.js +4 -13
  645. package/dist/serialization/types/SiteActivityLogItem.d.ts +6 -4
  646. package/dist/serialization/types/SiteActivityLogItem.js +4 -13
  647. package/dist/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
  648. package/dist/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
  649. package/dist/serialization/types/SiteActivityLogResponse.d.ts +6 -4
  650. package/dist/serialization/types/SiteActivityLogResponse.js +4 -13
  651. package/dist/serialization/types/Sites.d.ts +4 -3
  652. package/dist/serialization/types/Sites.js +2 -10
  653. package/dist/serialization/types/Sku.d.ts +4 -3
  654. package/dist/serialization/types/Sku.js +2 -10
  655. package/dist/serialization/types/SkuFieldData.d.ts +12 -7
  656. package/dist/serialization/types/SkuFieldData.js +10 -14
  657. package/dist/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
  658. package/dist/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
  659. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
  660. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
  661. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
  662. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
  663. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
  664. package/dist/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
  665. package/dist/serialization/types/SkuFieldDataPrice.d.ts +2 -2
  666. package/dist/serialization/types/SkuPropertyList.d.ts +4 -3
  667. package/dist/serialization/types/SkuPropertyList.js +2 -10
  668. package/dist/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
  669. package/dist/serialization/types/SkuValueList.d.ts +2 -2
  670. package/dist/serialization/types/StripeCard.d.ts +6 -4
  671. package/dist/serialization/types/StripeCard.js +4 -11
  672. package/dist/serialization/types/StripeCardBrand.d.ts +2 -2
  673. package/dist/serialization/types/StripeCardExpires.d.ts +2 -2
  674. package/dist/serialization/types/StripeDetails.d.ts +2 -2
  675. package/dist/serialization/types/TextNode.d.ts +2 -2
  676. package/dist/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
  677. package/dist/serialization/types/TooManyRequestsErrorBody.js +36 -0
  678. package/dist/serialization/types/TriggerType.d.ts +2 -2
  679. package/dist/serialization/types/User.d.ts +8 -5
  680. package/dist/serialization/types/User.js +6 -14
  681. package/dist/serialization/types/UserAccessGroupsItem.d.ts +4 -3
  682. package/dist/serialization/types/UserAccessGroupsItem.js +2 -10
  683. package/dist/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
  684. package/dist/serialization/types/UserData.d.ts +4 -3
  685. package/dist/serialization/types/UserData.js +2 -10
  686. package/dist/serialization/types/UserDataData.d.ts +2 -2
  687. package/dist/serialization/types/UserLimitReached.d.ts +4 -8
  688. package/dist/serialization/types/UserLimitReached.js +2 -41
  689. package/dist/serialization/types/UserList.d.ts +4 -3
  690. package/dist/serialization/types/UserList.js +2 -10
  691. package/dist/serialization/types/UserStatus.d.ts +2 -2
  692. package/dist/serialization/types/UsersNotEnabled.d.ts +4 -8
  693. package/dist/serialization/types/UsersNotEnabled.js +2 -41
  694. package/dist/serialization/types/Webhook.d.ts +7 -5
  695. package/dist/serialization/types/Webhook.js +5 -12
  696. package/dist/serialization/types/WebhookFilter.d.ts +12 -0
  697. package/dist/serialization/types/WebhookFilter.js +33 -0
  698. package/dist/serialization/types/WebhookList.d.ts +6 -4
  699. package/dist/serialization/types/WebhookList.js +4 -13
  700. package/dist/serialization/types/index.d.ts +8 -0
  701. package/dist/serialization/types/index.js +8 -0
  702. package/dist/wrapper/ItemsClient.js +7 -1
  703. package/jest.config.js +2 -2
  704. package/package.json +13 -6
  705. package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +2 -2
  706. package/serialization/resources/assets/client/requests/AssetsCreateFolderRequest.d.ts +2 -2
  707. package/serialization/resources/assets/client/requests/AssetsCreateRequest.d.ts +2 -2
  708. package/serialization/resources/assets/client/requests/AssetsUpdateRequest.d.ts +2 -2
  709. package/serialization/resources/collections/client/requests/CollectionsCreateRequest.d.ts +2 -2
  710. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.d.ts +4 -3
  711. package/serialization/resources/collections/resources/fields/client/requests/FieldCreate.js +2 -10
  712. package/serialization/resources/collections/resources/fields/client/requests/FieldUpdate.d.ts +2 -2
  713. package/serialization/resources/collections/resources/fields/types/FieldCreateType.d.ts +3 -3
  714. package/serialization/resources/collections/resources/fields/types/FieldCreateType.js +1 -1
  715. package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.d.ts +4 -3
  716. package/serialization/resources/collections/resources/items/client/requests/BulkCollectionItem.js +2 -12
  717. package/serialization/resources/collections/resources/items/client/requests/ItemsPublishItemRequest.d.ts +2 -2
  718. package/serialization/resources/collections/resources/items/types/BulkCollectionItemFieldData.d.ts +2 -2
  719. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.d.ts +10 -0
  720. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortBy.js +31 -0
  721. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.d.ts +10 -0
  722. package/serialization/resources/collections/resources/items/types/ItemsListItemsLiveRequestSortOrder.js +31 -0
  723. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.d.ts +10 -0
  724. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortBy.js +31 -0
  725. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.d.ts +10 -0
  726. package/serialization/resources/collections/resources/items/types/ItemsListItemsRequestSortOrder.js +31 -0
  727. package/serialization/resources/collections/resources/items/types/index.d.ts +4 -0
  728. package/serialization/resources/collections/resources/items/types/index.js +4 -0
  729. package/serialization/resources/forms/client/requests/FormsUpdateSubmissionRequest.d.ts +2 -2
  730. package/serialization/resources/index.d.ts +0 -2
  731. package/serialization/resources/index.js +1 -3
  732. package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.d.ts +4 -3
  733. package/serialization/resources/inventory/client/requests/InventoryUpdateRequest.js +2 -10
  734. package/serialization/resources/inventory/types/InventoryUpdateRequestInventoryType.d.ts +2 -2
  735. package/serialization/resources/orders/client/requests/OrdersRefundRequest.d.ts +4 -3
  736. package/serialization/resources/orders/client/requests/OrdersRefundRequest.js +2 -10
  737. package/serialization/resources/orders/client/requests/OrdersUpdateFulfillRequest.d.ts +2 -2
  738. package/serialization/resources/orders/client/requests/OrdersUpdateRequest.d.ts +2 -2
  739. package/serialization/resources/orders/types/OrdersListRequestStatus.d.ts +10 -0
  740. package/serialization/resources/orders/types/OrdersListRequestStatus.js +31 -0
  741. package/serialization/resources/orders/types/OrdersRefundRequestReason.d.ts +2 -2
  742. package/serialization/resources/orders/types/index.d.ts +1 -0
  743. package/serialization/resources/orders/types/index.js +1 -0
  744. package/serialization/resources/pages/client/requests/DomWrite.d.ts +4 -3
  745. package/serialization/resources/pages/client/requests/DomWrite.js +2 -10
  746. package/serialization/resources/pages/types/DomWriteNodesItem.d.ts +2 -2
  747. package/serialization/resources/pages/types/UpdateStaticContentResponse.d.ts +2 -2
  748. package/serialization/resources/products/client/requests/ProductSkuCreate.d.ts +8 -5
  749. package/serialization/resources/products/client/requests/ProductSkuCreate.js +6 -12
  750. package/serialization/resources/products/client/requests/ProductSkuUpdate.d.ts +8 -5
  751. package/serialization/resources/products/client/requests/ProductSkuUpdate.js +6 -12
  752. package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.d.ts +6 -4
  753. package/serialization/resources/products/client/requests/ProductsCreateSkuRequest.js +4 -11
  754. package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.d.ts +6 -4
  755. package/serialization/resources/products/client/requests/ProductsUpdateSkuRequest.js +4 -11
  756. package/serialization/resources/products/types/ProductsCreateSkuResponse.d.ts +4 -3
  757. package/serialization/resources/products/types/ProductsCreateSkuResponse.js +2 -10
  758. package/serialization/resources/scripts/client/requests/CustomCodeHostedRequest.d.ts +2 -2
  759. package/serialization/resources/scripts/client/requests/CustomCodeInlineRequest.d.ts +2 -2
  760. package/serialization/resources/sites/client/requests/SitesPublishRequest.d.ts +2 -2
  761. package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +2 -2
  762. package/serialization/resources/users/client/requests/UsersUpdateRequest.d.ts +4 -3
  763. package/serialization/resources/users/client/requests/UsersUpdateRequest.js +2 -10
  764. package/serialization/resources/users/types/UsersListRequestSort.d.ts +2 -2
  765. package/serialization/resources/users/types/UsersUpdateRequestData.d.ts +2 -2
  766. package/serialization/types/AccessGroup.d.ts +2 -2
  767. package/serialization/types/AccessGroupList.d.ts +4 -3
  768. package/serialization/types/AccessGroupList.js +2 -12
  769. package/serialization/types/Application.d.ts +2 -2
  770. package/serialization/types/Asset.d.ts +9 -7
  771. package/serialization/types/Asset.js +7 -16
  772. package/serialization/types/AssetFolder.d.ts +2 -2
  773. package/serialization/types/AssetFolderList.d.ts +6 -4
  774. package/serialization/types/AssetFolderList.js +4 -13
  775. package/serialization/types/AssetUpload.d.ts +4 -3
  776. package/serialization/types/AssetUpload.js +2 -12
  777. package/serialization/types/AssetUploadUploadDetails.d.ts +2 -2
  778. package/serialization/types/AssetVariant.d.ts +2 -2
  779. package/serialization/types/Assets.d.ts +4 -3
  780. package/serialization/types/Assets.js +2 -12
  781. package/serialization/types/Authorization.d.ts +6 -4
  782. package/serialization/types/Authorization.js +4 -13
  783. package/serialization/types/AuthorizationAuthorization.d.ts +4 -3
  784. package/serialization/types/AuthorizationAuthorization.js +2 -12
  785. package/serialization/types/AuthorizationAuthorizationAuthorizedTo.d.ts +2 -2
  786. package/serialization/types/AuthorizedUser.d.ts +2 -2
  787. package/serialization/types/BadRequestErrorBody.d.ts +12 -0
  788. package/serialization/types/BadRequestErrorBody.js +33 -0
  789. package/serialization/types/Collection.d.ts +4 -3
  790. package/serialization/types/Collection.js +2 -1
  791. package/serialization/types/CollectionItem.d.ts +4 -3
  792. package/serialization/types/CollectionItem.js +2 -10
  793. package/serialization/types/CollectionItemFieldData.d.ts +2 -2
  794. package/serialization/types/CollectionItemList.d.ts +6 -4
  795. package/serialization/types/CollectionItemList.js +4 -13
  796. package/serialization/types/CollectionItemListPagination.d.ts +2 -2
  797. package/serialization/types/CollectionList.d.ts +4 -3
  798. package/serialization/types/CollectionList.js +2 -12
  799. package/serialization/types/CollectionListArrayItem.d.ts +2 -2
  800. package/serialization/types/ConflictErrorBody.d.ts +12 -0
  801. package/serialization/types/ConflictErrorBody.js +33 -0
  802. package/serialization/types/CustomCodeBlock.d.ts +6 -4
  803. package/serialization/types/CustomCodeBlock.js +4 -11
  804. package/serialization/types/CustomCodeBlockType.d.ts +2 -2
  805. package/serialization/types/CustomCodeHostedResponse.d.ts +2 -2
  806. package/serialization/types/CustomCodeInlineResponse.d.ts +2 -2
  807. package/serialization/types/Dom.d.ts +6 -4
  808. package/serialization/types/Dom.js +4 -11
  809. package/serialization/types/Domain.d.ts +2 -2
  810. package/serialization/types/Domains.d.ts +4 -3
  811. package/serialization/types/Domains.js +2 -12
  812. package/serialization/types/DuplicateUserEmail.d.ts +4 -8
  813. package/serialization/types/DuplicateUserEmail.js +2 -41
  814. package/serialization/types/EcommerceSettings.d.ts +2 -2
  815. package/serialization/types/ErrorDetailsItem.d.ts +2 -2
  816. package/serialization/types/Error_.d.ts +4 -3
  817. package/serialization/types/Error_.js +2 -12
  818. package/serialization/types/Field.d.ts +4 -3
  819. package/serialization/types/Field.js +2 -10
  820. package/serialization/types/FieldType.d.ts +3 -3
  821. package/serialization/types/FieldType.js +1 -1
  822. package/serialization/types/ForbiddenErrorBody.d.ts +16 -0
  823. package/serialization/types/ForbiddenErrorBody.js +37 -0
  824. package/serialization/types/Form.d.ts +7 -4
  825. package/serialization/types/Form.js +5 -11
  826. package/serialization/types/FormField.d.ts +4 -3
  827. package/serialization/types/FormField.js +2 -10
  828. package/serialization/types/FormFieldValue.d.ts +4 -3
  829. package/serialization/types/FormFieldValue.js +2 -10
  830. package/serialization/types/FormFieldValueType.d.ts +2 -2
  831. package/serialization/types/FormList.d.ts +6 -4
  832. package/serialization/types/FormList.js +4 -11
  833. package/serialization/types/FormResponseSettings.d.ts +2 -2
  834. package/serialization/types/FormSubmission.d.ts +2 -2
  835. package/serialization/types/FormSubmissionList.d.ts +6 -4
  836. package/serialization/types/FormSubmissionList.js +4 -13
  837. package/serialization/types/ImageNode.d.ts +2 -2
  838. package/serialization/types/InvalidDomain.d.ts +2 -2
  839. package/serialization/types/InventoryItem.d.ts +4 -3
  840. package/serialization/types/InventoryItem.js +2 -10
  841. package/serialization/types/InventoryItemInventoryType.d.ts +2 -2
  842. package/serialization/types/ListCustomCodeBlocks.d.ts +6 -4
  843. package/serialization/types/ListCustomCodeBlocks.js +4 -13
  844. package/serialization/types/Locale.d.ts +2 -2
  845. package/serialization/types/Locales.d.ts +5 -4
  846. package/serialization/types/Locales.js +3 -13
  847. package/serialization/types/MissingScopes.d.ts +4 -9
  848. package/serialization/types/MissingScopes.js +2 -42
  849. package/serialization/types/NoDomains.d.ts +2 -2
  850. package/serialization/types/Node.d.ts +8 -5
  851. package/serialization/types/Node.js +6 -12
  852. package/serialization/types/NodeType.d.ts +2 -2
  853. package/serialization/types/NotEnterprisePlanSite.d.ts +4 -9
  854. package/serialization/types/NotEnterprisePlanSite.js +2 -42
  855. package/serialization/types/OauthScope.d.ts +3 -3
  856. package/serialization/types/OauthScope.js +2 -0
  857. package/serialization/types/Order.d.ts +30 -18
  858. package/serialization/types/Order.js +28 -31
  859. package/serialization/types/OrderAddress.d.ts +6 -4
  860. package/serialization/types/OrderAddress.js +4 -11
  861. package/serialization/types/OrderAddressJapanType.d.ts +2 -2
  862. package/serialization/types/OrderAddressType.d.ts +2 -2
  863. package/serialization/types/OrderCustomerInfo.d.ts +2 -2
  864. package/serialization/types/OrderDisputeLastStatus.d.ts +2 -2
  865. package/serialization/types/OrderDownloadFilesItem.d.ts +2 -2
  866. package/serialization/types/OrderList.d.ts +6 -4
  867. package/serialization/types/OrderList.js +4 -13
  868. package/serialization/types/OrderMetadata.d.ts +2 -2
  869. package/serialization/types/OrderPrice.d.ts +2 -2
  870. package/serialization/types/OrderPurchasedItem.d.ts +7 -5
  871. package/serialization/types/OrderPurchasedItem.js +5 -14
  872. package/serialization/types/OrderPurchasedItemVariantImage.d.ts +4 -3
  873. package/serialization/types/OrderPurchasedItemVariantImage.js +2 -10
  874. package/serialization/types/OrderPurchasedItemVariantImageFile.d.ts +4 -3
  875. package/serialization/types/OrderPurchasedItemVariantImageFile.js +2 -12
  876. package/serialization/types/OrderPurchasedItemVariantImageFileVariantsItem.d.ts +2 -2
  877. package/serialization/types/OrderStatus.d.ts +2 -2
  878. package/serialization/types/OrderTotals.d.ts +7 -5
  879. package/serialization/types/OrderTotals.js +5 -14
  880. package/serialization/types/OrderTotalsExtrasItem.d.ts +6 -4
  881. package/serialization/types/OrderTotalsExtrasItem.js +4 -11
  882. package/serialization/types/OrderTotalsExtrasItemType.d.ts +2 -2
  883. package/serialization/types/Page.d.ts +6 -4
  884. package/serialization/types/Page.js +4 -11
  885. package/serialization/types/PageDetails.d.ts +29 -0
  886. package/serialization/types/PageDetails.js +50 -0
  887. package/serialization/types/PageDetailsOpenGraph.d.ts +15 -0
  888. package/serialization/types/PageDetailsOpenGraph.js +36 -0
  889. package/serialization/types/PageDetailsSeo.d.ts +13 -0
  890. package/serialization/types/PageDetailsSeo.js +34 -0
  891. package/serialization/types/PageList.d.ts +6 -4
  892. package/serialization/types/PageList.js +4 -11
  893. package/serialization/types/PageOpenGraph.d.ts +2 -2
  894. package/serialization/types/PageSeo.d.ts +2 -2
  895. package/serialization/types/Pagination.d.ts +2 -2
  896. package/serialization/types/PaypalDetails.d.ts +2 -2
  897. package/serialization/types/Product.d.ts +4 -3
  898. package/serialization/types/Product.js +2 -10
  899. package/serialization/types/ProductAndSkUs.d.ts +6 -4
  900. package/serialization/types/ProductAndSkUs.js +4 -11
  901. package/serialization/types/ProductAndSkUsList.d.ts +6 -4
  902. package/serialization/types/ProductAndSkUsList.js +4 -13
  903. package/serialization/types/ProductFieldData.d.ts +8 -5
  904. package/serialization/types/ProductFieldData.js +6 -14
  905. package/serialization/types/ProductFieldDataEcProductType.d.ts +2 -2
  906. package/serialization/types/ProductFieldDataTaxCategory.d.ts +2 -2
  907. package/serialization/types/PublishStatus.d.ts +2 -2
  908. package/serialization/types/RegisteredScriptList.d.ts +4 -3
  909. package/serialization/types/RegisteredScriptList.js +2 -12
  910. package/serialization/types/ScriptApply.d.ts +4 -3
  911. package/serialization/types/ScriptApply.js +2 -10
  912. package/serialization/types/ScriptApplyList.d.ts +4 -3
  913. package/serialization/types/ScriptApplyList.js +2 -12
  914. package/serialization/types/ScriptApplyLocation.d.ts +2 -2
  915. package/serialization/types/Scripts.d.ts +4 -3
  916. package/serialization/types/Scripts.js +2 -10
  917. package/serialization/types/Site.d.ts +6 -4
  918. package/serialization/types/Site.js +4 -13
  919. package/serialization/types/SiteActivityLogItem.d.ts +6 -4
  920. package/serialization/types/SiteActivityLogItem.js +4 -13
  921. package/serialization/types/SiteActivityLogItemResourceOperation.d.ts +2 -2
  922. package/serialization/types/SiteActivityLogItemUser.d.ts +2 -2
  923. package/serialization/types/SiteActivityLogResponse.d.ts +6 -4
  924. package/serialization/types/SiteActivityLogResponse.js +4 -13
  925. package/serialization/types/Sites.d.ts +4 -3
  926. package/serialization/types/Sites.js +2 -10
  927. package/serialization/types/Sku.d.ts +4 -3
  928. package/serialization/types/Sku.js +2 -10
  929. package/serialization/types/SkuFieldData.d.ts +12 -7
  930. package/serialization/types/SkuFieldData.js +10 -14
  931. package/serialization/types/SkuFieldDataCompareAtPrice.d.ts +2 -2
  932. package/serialization/types/SkuFieldDataEcSkuBillingMethod.d.ts +2 -2
  933. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.d.ts +6 -4
  934. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlan.js +4 -15
  935. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanInterval.d.ts +2 -2
  936. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.d.ts +4 -3
  937. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItem.js +2 -12
  938. package/serialization/types/SkuFieldDataEcSkuSubscriptionPlanPlansItemStatus.d.ts +2 -2
  939. package/serialization/types/SkuFieldDataPrice.d.ts +2 -2
  940. package/serialization/types/SkuPropertyList.d.ts +4 -3
  941. package/serialization/types/SkuPropertyList.js +2 -10
  942. package/serialization/types/SkuPropertyListEnumItem.d.ts +2 -2
  943. package/serialization/types/SkuValueList.d.ts +2 -2
  944. package/serialization/types/StripeCard.d.ts +6 -4
  945. package/serialization/types/StripeCard.js +4 -11
  946. package/serialization/types/StripeCardBrand.d.ts +2 -2
  947. package/serialization/types/StripeCardExpires.d.ts +2 -2
  948. package/serialization/types/StripeDetails.d.ts +2 -2
  949. package/serialization/types/TextNode.d.ts +2 -2
  950. package/serialization/types/TooManyRequestsErrorBody.d.ts +15 -0
  951. package/serialization/types/TooManyRequestsErrorBody.js +36 -0
  952. package/serialization/types/TriggerType.d.ts +2 -2
  953. package/serialization/types/User.d.ts +8 -5
  954. package/serialization/types/User.js +6 -14
  955. package/serialization/types/UserAccessGroupsItem.d.ts +4 -3
  956. package/serialization/types/UserAccessGroupsItem.js +2 -10
  957. package/serialization/types/UserAccessGroupsItemType.d.ts +2 -2
  958. package/serialization/types/UserData.d.ts +4 -3
  959. package/serialization/types/UserData.js +2 -10
  960. package/serialization/types/UserDataData.d.ts +2 -2
  961. package/serialization/types/UserLimitReached.d.ts +4 -8
  962. package/serialization/types/UserLimitReached.js +2 -41
  963. package/serialization/types/UserList.d.ts +4 -3
  964. package/serialization/types/UserList.js +2 -10
  965. package/serialization/types/UserStatus.d.ts +2 -2
  966. package/serialization/types/UsersNotEnabled.d.ts +4 -8
  967. package/serialization/types/UsersNotEnabled.js +2 -41
  968. package/serialization/types/Webhook.d.ts +7 -5
  969. package/serialization/types/Webhook.js +5 -12
  970. package/serialization/types/WebhookFilter.d.ts +12 -0
  971. package/serialization/types/WebhookFilter.js +33 -0
  972. package/serialization/types/WebhookList.d.ts +6 -4
  973. package/serialization/types/WebhookList.js +4 -13
  974. package/serialization/types/index.d.ts +8 -0
  975. package/serialization/types/index.js +8 -0
  976. package/wrapper/ItemsClient.js +7 -1
  977. package/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
  978. package/api/resources/webhooks/client/requests/index.d.ts +0 -1
  979. package/dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -25
  980. package/dist/api/resources/webhooks/client/requests/index.d.ts +0 -1
  981. package/dist/serialization/resources/webhooks/client/index.d.ts +0 -1
  982. package/dist/serialization/resources/webhooks/client/index.js +0 -17
  983. package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
  984. package/dist/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
  985. package/dist/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
  986. package/dist/serialization/resources/webhooks/client/requests/index.js +0 -5
  987. package/dist/serialization/resources/webhooks/index.d.ts +0 -1
  988. package/dist/serialization/resources/webhooks/index.js +0 -17
  989. package/serialization/resources/webhooks/client/index.d.ts +0 -1
  990. package/serialization/resources/webhooks/client/index.js +0 -17
  991. package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.d.ts +0 -14
  992. package/serialization/resources/webhooks/client/requests/WebhooksCreateRequest.js +0 -44
  993. package/serialization/resources/webhooks/client/requests/index.d.ts +0 -1
  994. package/serialization/resources/webhooks/client/requests/index.js +0 -5
  995. package/serialization/resources/webhooks/index.d.ts +0 -1
  996. package/serialization/resources/webhooks/index.js +0 -17
  997. package/tests/client.test.ts +0 -11
  998. /package/api/resources/{webhooks/client/requests/WebhooksCreateRequest.js → collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.js} +0 -0
  999. /package/{dist/api/resources/webhooks/client/requests/WebhooksCreateRequest.js → api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.js} +0 -0
@@ -3,22 +3,30 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Webflow from "../../..";
6
+ import * as Webflow from "../../../index";
7
7
  export declare namespace Scripts {
8
8
  interface Options {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | string>;
10
10
  accessToken: core.Supplier<core.BearerToken>;
11
11
  }
12
12
  interface RequestOptions {
13
+ /** The maximum time to wait for a response in seconds. */
13
14
  timeoutInSeconds?: number;
15
+ /** The number of times to retry the request. Defaults to 2. */
14
16
  maxRetries?: number;
17
+ /** A hook to abort the request. */
18
+ abortSignal?: AbortSignal;
15
19
  }
16
20
  }
17
21
  export declare class Scripts {
18
22
  protected readonly _options: Scripts.Options;
19
23
  constructor(_options: Scripts.Options);
20
24
  /**
21
- * List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:read`
25
+ * List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `custom_code:read`
26
+ *
27
+ * @param {string} siteId - Unique identifier for a Site
28
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
29
+ *
22
30
  * @throws {@link Webflow.BadRequestError}
23
31
  * @throws {@link Webflow.UnauthorizedError}
24
32
  * @throws {@link Webflow.NotFoundError}
@@ -26,11 +34,16 @@ export declare class Scripts {
26
34
  * @throws {@link Webflow.InternalServerError}
27
35
  *
28
36
  * @example
29
- * await webflow.scripts.list("site_id")
37
+ * await client.scripts.list("site_id")
30
38
  */
31
39
  list(siteId: string, requestOptions?: Scripts.RequestOptions): Promise<Webflow.RegisteredScriptList>;
32
40
  /**
33
- * Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:write`
41
+ * Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> </br></br> Required scope | `custom_code:write`
42
+ *
43
+ * @param {string} siteId - Unique identifier for a Site
44
+ * @param {Webflow.CustomCodeHostedRequest} request
45
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
46
+ *
34
47
  * @throws {@link Webflow.BadRequestError}
35
48
  * @throws {@link Webflow.UnauthorizedError}
36
49
  * @throws {@link Webflow.NotFoundError}
@@ -38,7 +51,7 @@ export declare class Scripts {
38
51
  * @throws {@link Webflow.InternalServerError}
39
52
  *
40
53
  * @example
41
- * await webflow.scripts.registerHosted("site_id", {
54
+ * await client.scripts.registerHosted("site_id", {
42
55
  * hostedLocation: "hostedLocation",
43
56
  * integrityHash: "integrityHash",
44
57
  * version: "version",
@@ -47,7 +60,12 @@ export declare class Scripts {
47
60
  */
48
61
  registerHosted(siteId: string, request: Webflow.CustomCodeHostedRequest, requestOptions?: Scripts.RequestOptions): Promise<Webflow.CustomCodeHostedResponse>;
49
62
  /**
50
- * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
63
+ * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `custom_code:write`
64
+ *
65
+ * @param {string} siteId - Unique identifier for a Site
66
+ * @param {Webflow.CustomCodeInlineRequest} request
67
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
68
+ *
51
69
  * @throws {@link Webflow.BadRequestError}
52
70
  * @throws {@link Webflow.UnauthorizedError}
53
71
  * @throws {@link Webflow.NotFoundError}
@@ -55,7 +73,7 @@ export declare class Scripts {
55
73
  * @throws {@link Webflow.InternalServerError}
56
74
  *
57
75
  * @example
58
- * await webflow.scripts.registerInline("site_id", {
76
+ * await client.scripts.registerInline("site_id", {
59
77
  * sourceCode: "alert('hello world');",
60
78
  * version: "0.0.1",
61
79
  * displayName: "Alert"
@@ -41,16 +41,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Scripts = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Webflow = __importStar(require("../../.."));
44
+ const Webflow = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const serializers = __importStar(require("../../../../serialization"));
47
- const errors = __importStar(require("../../../../errors"));
46
+ const serializers = __importStar(require("../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../errors/index"));
48
48
  class Scripts {
49
49
  constructor(_options) {
50
50
  this._options = _options;
51
51
  }
52
52
  /**
53
- * List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:read`
53
+ * List of scripts registered to a Site. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `custom_code:read`
54
+ *
55
+ * @param {string} siteId - Unique identifier for a Site
56
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
57
+ *
54
58
  * @throws {@link Webflow.BadRequestError}
55
59
  * @throws {@link Webflow.UnauthorizedError}
56
60
  * @throws {@link Webflow.NotFoundError}
@@ -58,25 +62,26 @@ class Scripts {
58
62
  * @throws {@link Webflow.InternalServerError}
59
63
  *
60
64
  * @example
61
- * await webflow.scripts.list("site_id")
65
+ * await client.scripts.list("site_id")
62
66
  */
63
67
  list(siteId, requestOptions) {
64
68
  var _a;
65
69
  return __awaiter(this, void 0, void 0, function* () {
66
70
  const _response = yield core.fetcher({
67
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/registered_scripts`),
71
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts`),
68
72
  method: "GET",
69
73
  headers: {
70
74
  Authorization: yield this._getAuthorizationHeader(),
71
75
  "X-Fern-Language": "JavaScript",
72
76
  "X-Fern-SDK-Name": "webflow-api",
73
- "X-Fern-SDK-Version": "2.3.2",
77
+ "X-Fern-SDK-Version": "2.3.6",
74
78
  "X-Fern-Runtime": core.RUNTIME.type,
75
79
  "X-Fern-Runtime-Version": core.RUNTIME.version,
76
80
  },
77
81
  contentType: "application/json",
78
82
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
79
83
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
84
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
80
85
  });
81
86
  if (_response.ok) {
82
87
  return yield serializers.RegisteredScriptList.parseOrThrow(_response.body, {
@@ -96,7 +101,13 @@ class Scripts {
96
101
  case 404:
97
102
  throw new Webflow.NotFoundError(_response.error.body);
98
103
  case 429:
99
- throw new Webflow.TooManyRequestsError(_response.error.body);
104
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
105
+ unrecognizedObjectKeys: "passthrough",
106
+ allowUnrecognizedUnionMembers: true,
107
+ allowUnrecognizedEnumValues: true,
108
+ skipValidation: true,
109
+ breadcrumbsPrefix: ["response"],
110
+ }));
100
111
  case 500:
101
112
  throw new Webflow.InternalServerError(_response.error.body);
102
113
  default:
@@ -122,7 +133,12 @@ class Scripts {
122
133
  });
123
134
  }
124
135
  /**
125
- * Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. Access to this endpoint requires a bearer token from a Data Client App. </br></br> Required scope | `custom_code:write`
136
+ * Add a script to a Site's Custom Code registry. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. Additionally, Scripts can be remotely hosted, or registered as inline snippets. <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> </br></br> Required scope | `custom_code:write`
137
+ *
138
+ * @param {string} siteId - Unique identifier for a Site
139
+ * @param {Webflow.CustomCodeHostedRequest} request
140
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
141
+ *
126
142
  * @throws {@link Webflow.BadRequestError}
127
143
  * @throws {@link Webflow.UnauthorizedError}
128
144
  * @throws {@link Webflow.NotFoundError}
@@ -130,7 +146,7 @@ class Scripts {
130
146
  * @throws {@link Webflow.InternalServerError}
131
147
  *
132
148
  * @example
133
- * await webflow.scripts.registerHosted("site_id", {
149
+ * await client.scripts.registerHosted("site_id", {
134
150
  * hostedLocation: "hostedLocation",
135
151
  * integrityHash: "integrityHash",
136
152
  * version: "version",
@@ -141,13 +157,13 @@ class Scripts {
141
157
  var _a;
142
158
  return __awaiter(this, void 0, void 0, function* () {
143
159
  const _response = yield core.fetcher({
144
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/registered_scripts/hosted`),
160
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts/hosted`),
145
161
  method: "POST",
146
162
  headers: {
147
163
  Authorization: yield this._getAuthorizationHeader(),
148
164
  "X-Fern-Language": "JavaScript",
149
165
  "X-Fern-SDK-Name": "webflow-api",
150
- "X-Fern-SDK-Version": "2.3.2",
166
+ "X-Fern-SDK-Version": "2.3.6",
151
167
  "X-Fern-Runtime": core.RUNTIME.type,
152
168
  "X-Fern-Runtime-Version": core.RUNTIME.version,
153
169
  },
@@ -155,6 +171,7 @@ class Scripts {
155
171
  body: yield serializers.CustomCodeHostedRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
156
172
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
157
173
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
174
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
158
175
  });
159
176
  if (_response.ok) {
160
177
  return yield serializers.CustomCodeHostedResponse.parseOrThrow(_response.body, {
@@ -174,7 +191,13 @@ class Scripts {
174
191
  case 404:
175
192
  throw new Webflow.NotFoundError(_response.error.body);
176
193
  case 429:
177
- throw new Webflow.TooManyRequestsError(_response.error.body);
194
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
195
+ unrecognizedObjectKeys: "passthrough",
196
+ allowUnrecognizedUnionMembers: true,
197
+ allowUnrecognizedEnumValues: true,
198
+ skipValidation: true,
199
+ breadcrumbsPrefix: ["response"],
200
+ }));
178
201
  case 500:
179
202
  throw new Webflow.InternalServerError(_response.error.body);
180
203
  default:
@@ -200,7 +223,12 @@ class Scripts {
200
223
  });
201
224
  }
202
225
  /**
203
- * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> Access to this endpoint requires a bearer token from a Data Client App. Required scope | `custom_code:write`
226
+ * Add a script to a Site's Custom Code registry. Inline scripts can be between 1 and 2000 characters. </br></br> In order to use the Custom Code APIs for Sites and Pages, Custom Code Scripts must first be registered to a Site via the `registered_scripts` endpoints, and then applied to a Site or Page using the appropriate `custom_code` endpoints. </br></br> <blockquote class="callout callout_info" theme="📘">Access to this endpoint requires a bearer token from a <a href="https://developers.webflow.com/data/docs/getting-started-data-clients">Data Client App</a>.</blockquote> Required scope | `custom_code:write`
227
+ *
228
+ * @param {string} siteId - Unique identifier for a Site
229
+ * @param {Webflow.CustomCodeInlineRequest} request
230
+ * @param {Scripts.RequestOptions} requestOptions - Request-specific configuration.
231
+ *
204
232
  * @throws {@link Webflow.BadRequestError}
205
233
  * @throws {@link Webflow.UnauthorizedError}
206
234
  * @throws {@link Webflow.NotFoundError}
@@ -208,7 +236,7 @@ class Scripts {
208
236
  * @throws {@link Webflow.InternalServerError}
209
237
  *
210
238
  * @example
211
- * await webflow.scripts.registerInline("site_id", {
239
+ * await client.scripts.registerInline("site_id", {
212
240
  * sourceCode: "alert('hello world');",
213
241
  * version: "0.0.1",
214
242
  * displayName: "Alert"
@@ -218,13 +246,13 @@ class Scripts {
218
246
  var _a;
219
247
  return __awaiter(this, void 0, void 0, function* () {
220
248
  const _response = yield core.fetcher({
221
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/registered_scripts/inline`),
249
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/registered_scripts/inline`),
222
250
  method: "POST",
223
251
  headers: {
224
252
  Authorization: yield this._getAuthorizationHeader(),
225
253
  "X-Fern-Language": "JavaScript",
226
254
  "X-Fern-SDK-Name": "webflow-api",
227
- "X-Fern-SDK-Version": "2.3.2",
255
+ "X-Fern-SDK-Version": "2.3.6",
228
256
  "X-Fern-Runtime": core.RUNTIME.type,
229
257
  "X-Fern-Runtime-Version": core.RUNTIME.version,
230
258
  },
@@ -232,6 +260,7 @@ class Scripts {
232
260
  body: yield serializers.CustomCodeInlineRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
233
261
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
234
262
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
263
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
235
264
  });
236
265
  if (_response.ok) {
237
266
  return yield serializers.CustomCodeInlineResponse.parseOrThrow(_response.body, {
@@ -251,7 +280,13 @@ class Scripts {
251
280
  case 404:
252
281
  throw new Webflow.NotFoundError(_response.error.body);
253
282
  case 429:
254
- throw new Webflow.TooManyRequestsError(_response.error.body);
283
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
284
+ unrecognizedObjectKeys: "passthrough",
285
+ allowUnrecognizedUnionMembers: true,
286
+ allowUnrecognizedEnumValues: true,
287
+ skipValidation: true,
288
+ breadcrumbsPrefix: ["response"],
289
+ }));
255
290
  case 500:
256
291
  throw new Webflow.InternalServerError(_response.error.body);
257
292
  default:
@@ -19,6 +19,6 @@ export interface CustomCodeHostedRequest {
19
19
  canCopy?: boolean;
20
20
  /** A Semantic Version (SemVer) string, denoting the version of the script */
21
21
  version: string;
22
- /** User-facing name for the script */
22
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
23
23
  displayName: string;
24
24
  }
@@ -18,6 +18,6 @@ export interface CustomCodeInlineRequest {
18
18
  canCopy?: boolean;
19
19
  /** A Semantic Version (SemVer) string, denoting the version of the script */
20
20
  version: string;
21
- /** User-facing name for the script */
21
+ /** User-facing name for the script. Must be between 1 and 50 alphanumeric characters */
22
22
  displayName: string;
23
23
  }
@@ -1,2 +1,2 @@
1
- export { CustomCodeHostedRequest } from "./CustomCodeHostedRequest";
2
- export { CustomCodeInlineRequest } from "./CustomCodeInlineRequest";
1
+ export { type CustomCodeHostedRequest } from "./CustomCodeHostedRequest";
2
+ export { type CustomCodeInlineRequest } from "./CustomCodeInlineRequest";
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as environments from "../../../../environments";
5
5
  import * as core from "../../../../core";
6
- import * as Webflow from "../../..";
6
+ import * as Webflow from "../../../index";
7
7
  import { ActivityLogs } from "../resources/activityLogs/client/Client";
8
8
  import { Scripts } from "../resources/scripts/client/Client";
9
9
  export declare namespace Sites {
@@ -12,8 +12,12 @@ export declare namespace Sites {
12
12
  accessToken: core.Supplier<core.BearerToken>;
13
13
  }
14
14
  interface RequestOptions {
15
+ /** The maximum time to wait for a response in seconds. */
15
16
  timeoutInSeconds?: number;
17
+ /** The number of times to retry the request. Defaults to 2. */
16
18
  maxRetries?: number;
19
+ /** A hook to abort the request. */
20
+ abortSignal?: AbortSignal;
17
21
  }
18
22
  }
19
23
  export declare class Sites {
@@ -21,18 +25,23 @@ export declare class Sites {
21
25
  constructor(_options: Sites.Options);
22
26
  /**
23
27
  * List of all sites the provided access token is able to access. </br></br> Required scope | `sites:read`
24
- * @throws {@link Webflow.BadRequestError}
28
+ *
29
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
30
+ *
25
31
  * @throws {@link Webflow.UnauthorizedError}
26
32
  * @throws {@link Webflow.NotFoundError}
27
33
  * @throws {@link Webflow.TooManyRequestsError}
28
- * @throws {@link Webflow.InternalServerError}
29
34
  *
30
35
  * @example
31
- * await webflow.sites.list()
36
+ * await client.sites.list()
32
37
  */
33
38
  list(requestOptions?: Sites.RequestOptions): Promise<Webflow.Sites>;
34
39
  /**
35
40
  * Get a site by site id </br></br> Required scope | `sites:read`
41
+ *
42
+ * @param {string} siteId - Unique identifier for a Site
43
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
44
+ *
36
45
  * @throws {@link Webflow.BadRequestError}
37
46
  * @throws {@link Webflow.UnauthorizedError}
38
47
  * @throws {@link Webflow.NotFoundError}
@@ -40,11 +49,15 @@ export declare class Sites {
40
49
  * @throws {@link Webflow.InternalServerError}
41
50
  *
42
51
  * @example
43
- * await webflow.sites.get("site_id")
52
+ * await client.sites.get("site_id")
44
53
  */
45
54
  get(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Site>;
46
55
  /**
47
56
  * Get a list of all custom domains related to site. </br></br> Required scope | `sites:read`
57
+ *
58
+ * @param {string} siteId - Unique identifier for a Site
59
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
60
+ *
48
61
  * @throws {@link Webflow.UnauthorizedError}
49
62
  * @throws {@link Webflow.ForbiddenError}
50
63
  * @throws {@link Webflow.NotFoundError}
@@ -52,11 +65,16 @@ export declare class Sites {
52
65
  * @throws {@link Webflow.InternalServerError}
53
66
  *
54
67
  * @example
55
- * await webflow.sites.getCustomDomain("site_id")
68
+ * await client.sites.getCustomDomain("site_id")
56
69
  */
57
70
  getCustomDomain(siteId: string, requestOptions?: Sites.RequestOptions): Promise<Webflow.Domains>;
58
71
  /**
59
- * Publish a site to one more more domains. </br></br> Required scope | `sites:write`
72
+ * Publish a site to one more more domains. </br></br> Required scope | `sites:write` <blockquote class="callout callout_info" theme="📘"><h2 class="callout-heading"><span class="callout-icon">📘</span><p>Endpoint-specific rate limit</p></h2><p>This endpoint has a limit of one successful publish queue per minute.</p></blockquote>
73
+ *
74
+ * @param {string} siteId - Unique identifier for a Site
75
+ * @param {Webflow.SitesPublishRequest} request
76
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
77
+ *
60
78
  * @throws {@link Webflow.BadRequestError}
61
79
  * @throws {@link Webflow.UnauthorizedError}
62
80
  * @throws {@link Webflow.ForbiddenError}
@@ -64,10 +82,7 @@ export declare class Sites {
64
82
  * @throws {@link Webflow.TooManyRequestsError}
65
83
  *
66
84
  * @example
67
- * await webflow.sites.publish("site_id", {
68
- * customDomains: ["589a331aa51e760df7ccb89d"],
69
- * publishToWebflowSubdomain: false
70
- * })
85
+ * await client.sites.publish("site_id")
71
86
  */
72
87
  publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): Promise<void>;
73
88
  protected _activityLogs: ActivityLogs | undefined;
@@ -41,10 +41,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
41
41
  exports.Sites = void 0;
42
42
  const environments = __importStar(require("../../../../environments"));
43
43
  const core = __importStar(require("../../../../core"));
44
- const Webflow = __importStar(require("../../.."));
44
+ const Webflow = __importStar(require("../../../index"));
45
45
  const url_join_1 = __importDefault(require("url-join"));
46
- const serializers = __importStar(require("../../../../serialization"));
47
- const errors = __importStar(require("../../../../errors"));
46
+ const serializers = __importStar(require("../../../../serialization/index"));
47
+ const errors = __importStar(require("../../../../errors/index"));
48
48
  const Client_1 = require("../resources/activityLogs/client/Client");
49
49
  const Client_2 = require("../resources/scripts/client/Client");
50
50
  class Sites {
@@ -53,14 +53,15 @@ class Sites {
53
53
  }
54
54
  /**
55
55
  * List of all sites the provided access token is able to access. </br></br> Required scope | `sites:read`
56
- * @throws {@link Webflow.BadRequestError}
56
+ *
57
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
58
+ *
57
59
  * @throws {@link Webflow.UnauthorizedError}
58
60
  * @throws {@link Webflow.NotFoundError}
59
61
  * @throws {@link Webflow.TooManyRequestsError}
60
- * @throws {@link Webflow.InternalServerError}
61
62
  *
62
63
  * @example
63
- * await webflow.sites.list()
64
+ * await client.sites.list()
64
65
  */
65
66
  list(requestOptions) {
66
67
  var _a;
@@ -72,13 +73,14 @@ class Sites {
72
73
  Authorization: yield this._getAuthorizationHeader(),
73
74
  "X-Fern-Language": "JavaScript",
74
75
  "X-Fern-SDK-Name": "webflow-api",
75
- "X-Fern-SDK-Version": "2.3.2",
76
+ "X-Fern-SDK-Version": "2.3.6",
76
77
  "X-Fern-Runtime": core.RUNTIME.type,
77
78
  "X-Fern-Runtime-Version": core.RUNTIME.version,
78
79
  },
79
80
  contentType: "application/json",
80
81
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
81
82
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
83
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
82
84
  });
83
85
  if (_response.ok) {
84
86
  return yield serializers.Sites.parseOrThrow(_response.body, {
@@ -91,16 +93,18 @@ class Sites {
91
93
  }
92
94
  if (_response.error.reason === "status-code") {
93
95
  switch (_response.error.statusCode) {
94
- case 400:
95
- throw new Webflow.BadRequestError(_response.error.body);
96
96
  case 401:
97
97
  throw new Webflow.UnauthorizedError(_response.error.body);
98
98
  case 404:
99
99
  throw new Webflow.NotFoundError(_response.error.body);
100
100
  case 429:
101
- throw new Webflow.TooManyRequestsError(_response.error.body);
102
- case 500:
103
- throw new Webflow.InternalServerError(_response.error.body);
101
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
102
+ unrecognizedObjectKeys: "passthrough",
103
+ allowUnrecognizedUnionMembers: true,
104
+ allowUnrecognizedEnumValues: true,
105
+ skipValidation: true,
106
+ breadcrumbsPrefix: ["response"],
107
+ }));
104
108
  default:
105
109
  throw new errors.WebflowError({
106
110
  statusCode: _response.error.statusCode,
@@ -125,6 +129,10 @@ class Sites {
125
129
  }
126
130
  /**
127
131
  * Get a site by site id </br></br> Required scope | `sites:read`
132
+ *
133
+ * @param {string} siteId - Unique identifier for a Site
134
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
135
+ *
128
136
  * @throws {@link Webflow.BadRequestError}
129
137
  * @throws {@link Webflow.UnauthorizedError}
130
138
  * @throws {@link Webflow.NotFoundError}
@@ -132,25 +140,26 @@ class Sites {
132
140
  * @throws {@link Webflow.InternalServerError}
133
141
  *
134
142
  * @example
135
- * await webflow.sites.get("site_id")
143
+ * await client.sites.get("site_id")
136
144
  */
137
145
  get(siteId, requestOptions) {
138
146
  var _a;
139
147
  return __awaiter(this, void 0, void 0, function* () {
140
148
  const _response = yield core.fetcher({
141
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}`),
149
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}`),
142
150
  method: "GET",
143
151
  headers: {
144
152
  Authorization: yield this._getAuthorizationHeader(),
145
153
  "X-Fern-Language": "JavaScript",
146
154
  "X-Fern-SDK-Name": "webflow-api",
147
- "X-Fern-SDK-Version": "2.3.2",
155
+ "X-Fern-SDK-Version": "2.3.6",
148
156
  "X-Fern-Runtime": core.RUNTIME.type,
149
157
  "X-Fern-Runtime-Version": core.RUNTIME.version,
150
158
  },
151
159
  contentType: "application/json",
152
160
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
153
161
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
162
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
154
163
  });
155
164
  if (_response.ok) {
156
165
  return yield serializers.Site.parseOrThrow(_response.body, {
@@ -170,7 +179,13 @@ class Sites {
170
179
  case 404:
171
180
  throw new Webflow.NotFoundError(_response.error.body);
172
181
  case 429:
173
- throw new Webflow.TooManyRequestsError(_response.error.body);
182
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
183
+ unrecognizedObjectKeys: "passthrough",
184
+ allowUnrecognizedUnionMembers: true,
185
+ allowUnrecognizedEnumValues: true,
186
+ skipValidation: true,
187
+ breadcrumbsPrefix: ["response"],
188
+ }));
174
189
  case 500:
175
190
  throw new Webflow.InternalServerError(_response.error.body);
176
191
  default:
@@ -197,6 +212,10 @@ class Sites {
197
212
  }
198
213
  /**
199
214
  * Get a list of all custom domains related to site. </br></br> Required scope | `sites:read`
215
+ *
216
+ * @param {string} siteId - Unique identifier for a Site
217
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
218
+ *
200
219
  * @throws {@link Webflow.UnauthorizedError}
201
220
  * @throws {@link Webflow.ForbiddenError}
202
221
  * @throws {@link Webflow.NotFoundError}
@@ -204,25 +223,26 @@ class Sites {
204
223
  * @throws {@link Webflow.InternalServerError}
205
224
  *
206
225
  * @example
207
- * await webflow.sites.getCustomDomain("site_id")
226
+ * await client.sites.getCustomDomain("site_id")
208
227
  */
209
228
  getCustomDomain(siteId, requestOptions) {
210
229
  var _a;
211
230
  return __awaiter(this, void 0, void 0, function* () {
212
231
  const _response = yield core.fetcher({
213
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/custom_domains`),
232
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/custom_domains`),
214
233
  method: "GET",
215
234
  headers: {
216
235
  Authorization: yield this._getAuthorizationHeader(),
217
236
  "X-Fern-Language": "JavaScript",
218
237
  "X-Fern-SDK-Name": "webflow-api",
219
- "X-Fern-SDK-Version": "2.3.2",
238
+ "X-Fern-SDK-Version": "2.3.6",
220
239
  "X-Fern-Runtime": core.RUNTIME.type,
221
240
  "X-Fern-Runtime-Version": core.RUNTIME.version,
222
241
  },
223
242
  contentType: "application/json",
224
243
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
225
244
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
245
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
226
246
  });
227
247
  if (_response.ok) {
228
248
  return yield serializers.Domains.parseOrThrow(_response.body, {
@@ -242,7 +262,13 @@ class Sites {
242
262
  case 404:
243
263
  throw new Webflow.NotFoundError(_response.error.body);
244
264
  case 429:
245
- throw new Webflow.TooManyRequestsError(_response.error.body);
265
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
266
+ unrecognizedObjectKeys: "passthrough",
267
+ allowUnrecognizedUnionMembers: true,
268
+ allowUnrecognizedEnumValues: true,
269
+ skipValidation: true,
270
+ breadcrumbsPrefix: ["response"],
271
+ }));
246
272
  case 500:
247
273
  throw new Webflow.InternalServerError(_response.error.body);
248
274
  default:
@@ -268,7 +294,12 @@ class Sites {
268
294
  });
269
295
  }
270
296
  /**
271
- * Publish a site to one more more domains. </br></br> Required scope | `sites:write`
297
+ * Publish a site to one more more domains. </br></br> Required scope | `sites:write` <blockquote class="callout callout_info" theme="📘"><h2 class="callout-heading"><span class="callout-icon">📘</span><p>Endpoint-specific rate limit</p></h2><p>This endpoint has a limit of one successful publish queue per minute.</p></blockquote>
298
+ *
299
+ * @param {string} siteId - Unique identifier for a Site
300
+ * @param {Webflow.SitesPublishRequest} request
301
+ * @param {Sites.RequestOptions} requestOptions - Request-specific configuration.
302
+ *
272
303
  * @throws {@link Webflow.BadRequestError}
273
304
  * @throws {@link Webflow.UnauthorizedError}
274
305
  * @throws {@link Webflow.ForbiddenError}
@@ -276,22 +307,19 @@ class Sites {
276
307
  * @throws {@link Webflow.TooManyRequestsError}
277
308
  *
278
309
  * @example
279
- * await webflow.sites.publish("site_id", {
280
- * customDomains: ["589a331aa51e760df7ccb89d"],
281
- * publishToWebflowSubdomain: false
282
- * })
310
+ * await client.sites.publish("site_id")
283
311
  */
284
312
  publish(siteId, request = {}, requestOptions) {
285
313
  var _a;
286
314
  return __awaiter(this, void 0, void 0, function* () {
287
315
  const _response = yield core.fetcher({
288
- url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${siteId}/publish`),
316
+ url: (0, url_join_1.default)((_a = (yield core.Supplier.get(this._options.environment))) !== null && _a !== void 0 ? _a : environments.WebflowEnvironment.Default, `sites/${encodeURIComponent(siteId)}/publish`),
289
317
  method: "POST",
290
318
  headers: {
291
319
  Authorization: yield this._getAuthorizationHeader(),
292
320
  "X-Fern-Language": "JavaScript",
293
321
  "X-Fern-SDK-Name": "webflow-api",
294
- "X-Fern-SDK-Version": "2.3.2",
322
+ "X-Fern-SDK-Version": "2.3.6",
295
323
  "X-Fern-Runtime": core.RUNTIME.type,
296
324
  "X-Fern-Runtime-Version": core.RUNTIME.version,
297
325
  },
@@ -299,6 +327,7 @@ class Sites {
299
327
  body: yield serializers.SitesPublishRequest.jsonOrThrow(request, { unrecognizedObjectKeys: "strip" }),
300
328
  timeoutMs: (requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) != null ? requestOptions.timeoutInSeconds * 1000 : 60000,
301
329
  maxRetries: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries,
330
+ abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
302
331
  });
303
332
  if (_response.ok) {
304
333
  return;
@@ -314,7 +343,13 @@ class Sites {
314
343
  case 404:
315
344
  throw new Webflow.NotFoundError(_response.error.body);
316
345
  case 429:
317
- throw new Webflow.TooManyRequestsError(_response.error.body);
346
+ throw new Webflow.TooManyRequestsError(yield serializers.TooManyRequestsErrorBody.parseOrThrow(_response.error.body, {
347
+ unrecognizedObjectKeys: "passthrough",
348
+ allowUnrecognizedUnionMembers: true,
349
+ allowUnrecognizedEnumValues: true,
350
+ skipValidation: true,
351
+ breadcrumbsPrefix: ["response"],
352
+ }));
318
353
  default:
319
354
  throw new errors.WebflowError({
320
355
  statusCode: _response.error.statusCode,