webflow-api 3.1.4 → 3.2.1

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