webflow-api 3.2.0 → 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 (523) hide show
  1. package/.mock/definition/__package__.yml +112 -269
  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 +9 -3
  6. package/.mock/definition/collections/items.yml +458 -76
  7. package/.mock/definition/collections.yml +12 -4
  8. package/.mock/definition/components.yml +65 -25
  9. package/.mock/definition/ecommerce.yml +3 -1
  10. package/.mock/definition/forms.yml +29 -7
  11. package/.mock/definition/inventory.yml +25 -17
  12. package/.mock/definition/items.yml +28 -16
  13. package/.mock/definition/orders.yml +126 -110
  14. package/.mock/definition/pages/scripts.yml +27 -8
  15. package/.mock/definition/pages.yml +66 -45
  16. package/.mock/definition/products.yml +21 -12
  17. package/.mock/definition/scripts.yml +9 -3
  18. package/.mock/definition/sites/activityLogs.yml +6 -1
  19. package/.mock/definition/sites/comments.yml +39 -12
  20. package/.mock/definition/sites/plans.yml +3 -1
  21. package/.mock/definition/sites/redirects.yml +12 -4
  22. package/.mock/definition/sites/robotsTxt.yml +12 -4
  23. package/.mock/definition/sites/scripts.yml +35 -8
  24. package/.mock/definition/sites/wellKnown.yml +20 -4
  25. package/.mock/definition/sites.yml +23 -8
  26. package/.mock/definition/token.yml +3 -2
  27. package/.mock/definition/users.yml +19 -5
  28. package/.mock/definition/webhooks.yml +0 -4
  29. package/.mock/definition/workspaces/auditLogs.yml +9 -3
  30. package/.mock/fern.config.json +1 -1
  31. package/Client.d.ts +2 -2
  32. package/Client.js +3 -3
  33. package/api/resources/accessGroups/client/Client.d.ts +8 -4
  34. package/api/resources/accessGroups/client/Client.js +11 -3
  35. package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
  36. package/api/resources/assets/client/Client.d.ts +9 -5
  37. package/api/resources/assets/client/Client.js +24 -7
  38. package/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
  39. package/api/resources/assets/client/requests/index.d.ts +1 -0
  40. package/api/resources/collections/client/Client.d.ts +3 -3
  41. package/api/resources/collections/client/Client.js +6 -2
  42. package/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  43. package/api/resources/collections/resources/fields/client/Client.js +6 -2
  44. package/api/resources/collections/resources/items/client/Client.d.ts +53 -17
  45. package/api/resources/collections/resources/items/client/Client.js +57 -17
  46. package/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
  47. package/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +4 -2
  48. package/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +4 -2
  49. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
  50. package/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
  51. package/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
  52. package/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
  53. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +9 -1
  54. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +9 -1
  55. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +3 -2
  56. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +3 -2
  57. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
  58. package/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +2 -0
  59. package/api/resources/components/client/Client.d.ts +18 -9
  60. package/api/resources/components/client/Client.js +21 -8
  61. package/api/resources/components/client/requests/ComponentDomWrite.d.ts +3 -1
  62. package/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +3 -1
  63. package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -2
  64. package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -2
  65. package/api/resources/components/client/requests/ComponentsListRequest.d.ts +3 -1
  66. package/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
  67. package/api/resources/ecommerce/client/Client.d.ts +3 -3
  68. package/api/resources/ecommerce/client/Client.js +6 -2
  69. package/api/resources/forms/client/Client.d.ts +14 -6
  70. package/api/resources/forms/client/Client.js +17 -5
  71. package/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
  72. package/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
  73. package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
  74. package/api/resources/inventory/client/Client.d.ts +11 -11
  75. package/api/resources/inventory/client/Client.js +22 -18
  76. package/api/resources/orders/client/Client.d.ts +8 -4
  77. package/api/resources/orders/client/Client.js +11 -3
  78. package/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
  79. package/api/resources/pages/client/Client.d.ts +14 -15
  80. package/api/resources/pages/client/Client.js +17 -14
  81. package/api/resources/pages/client/requests/PageMetadataWrite.d.ts +9 -2
  82. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
  83. package/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  84. package/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
  85. package/api/resources/pages/resources/scripts/client/Client.d.ts +8 -6
  86. package/api/resources/pages/resources/scripts/client/Client.js +11 -5
  87. package/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
  88. package/api/resources/products/client/Client.d.ts +7 -4
  89. package/api/resources/products/client/Client.js +10 -3
  90. package/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
  91. package/api/resources/scripts/client/Client.d.ts +3 -3
  92. package/api/resources/scripts/client/Client.js +6 -2
  93. package/api/resources/sites/client/Client.d.ts +3 -3
  94. package/api/resources/sites/client/Client.js +6 -2
  95. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -4
  96. package/api/resources/sites/resources/activityLogs/client/Client.js +10 -3
  97. package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
  98. package/api/resources/sites/resources/comments/client/Client.d.ts +18 -6
  99. package/api/resources/sites/resources/comments/client/Client.js +21 -5
  100. package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
  101. package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
  102. package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
  103. package/api/resources/sites/resources/plans/client/Client.d.ts +3 -3
  104. package/api/resources/sites/resources/plans/client/Client.js +6 -2
  105. package/api/resources/sites/resources/redirects/client/Client.d.ts +3 -3
  106. package/api/resources/sites/resources/redirects/client/Client.js +6 -2
  107. package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +3 -3
  108. package/api/resources/sites/resources/robotsTxt/client/Client.js +6 -2
  109. package/api/resources/sites/resources/scripts/client/Client.d.ts +13 -6
  110. package/api/resources/sites/resources/scripts/client/Client.js +16 -5
  111. package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
  112. package/api/resources/sites/resources/wellKnown/client/Client.d.ts +6 -5
  113. package/api/resources/sites/resources/wellKnown/client/Client.js +9 -4
  114. package/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
  115. package/api/resources/token/client/Client.d.ts +3 -3
  116. package/api/resources/token/client/Client.js +6 -2
  117. package/api/resources/users/client/Client.d.ts +8 -4
  118. package/api/resources/users/client/Client.js +11 -3
  119. package/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
  120. package/api/resources/webhooks/client/Client.d.ts +3 -3
  121. package/api/resources/webhooks/client/Client.js +6 -2
  122. package/api/resources/workspaces/client/Client.d.ts +2 -2
  123. package/api/resources/workspaces/client/Client.js +1 -1
  124. package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -5
  125. package/api/resources/workspaces/resources/auditLogs/client/Client.js +12 -4
  126. package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
  127. package/api/types/CollectionItemChanged.d.ts +1 -1
  128. package/api/types/CollectionItemCreated.d.ts +1 -1
  129. package/api/types/CollectionItemPublished.d.ts +9 -0
  130. package/api/types/{ComponentInstance.d.ts → ComponentInstanceNodePropertyOverridesWrite.d.ts} +1 -1
  131. package/api/types/{ComponentNodeDom.d.ts → ComponentNode.d.ts} +1 -1
  132. package/api/types/Dom.d.ts +1 -1
  133. package/api/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +1 -1
  134. package/api/types/Node.d.ts +7 -7
  135. package/api/types/Payload.d.ts +25 -0
  136. package/api/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +1 -1
  137. package/api/types/{SearchButtonNodeDom.d.ts → SearchButtonNode.d.ts} +1 -1
  138. package/api/types/{SearchButton.d.ts → SearchButtonNodeWrite.d.ts} +1 -1
  139. package/api/types/{SelectNodeDom.d.ts → SelectNode.d.ts} +1 -1
  140. package/api/types/SiteMembership.d.ts +1 -0
  141. package/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
  142. package/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
  143. package/api/types/SkuFieldData.d.ts +0 -4
  144. package/{dist/api/types/SubmitButtonNodeDom.d.ts → api/types/SubmitButtonNode.d.ts} +1 -1
  145. package/{dist/api/types/SubmitButton.d.ts → api/types/SubmitButtonNodeWrite.d.ts} +1 -1
  146. package/{dist/api/types/TextInputNodeDom.d.ts → api/types/TextInputNode.d.ts} +1 -1
  147. package/api/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +1 -1
  148. package/api/types/TextNode.d.ts +7 -4
  149. package/api/types/TextNodeWrite.d.ts +12 -0
  150. package/api/types/TriggerType.d.ts +2 -1
  151. package/api/types/TriggerType.js +1 -0
  152. package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
  153. package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
  154. package/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
  155. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
  156. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
  157. package/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
  158. package/api/types/WorkspaceInvitation.d.ts +1 -0
  159. package/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
  160. package/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
  161. package/api/types/index.d.ts +17 -20
  162. package/api/types/index.js +17 -20
  163. package/dist/Client.d.ts +2 -2
  164. package/dist/Client.js +3 -3
  165. package/dist/api/resources/accessGroups/client/Client.d.ts +8 -4
  166. package/dist/api/resources/accessGroups/client/Client.js +11 -3
  167. package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +5 -1
  168. package/dist/api/resources/assets/client/Client.d.ts +9 -5
  169. package/dist/api/resources/assets/client/Client.js +24 -7
  170. package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +20 -0
  171. package/dist/api/resources/assets/client/requests/index.d.ts +1 -0
  172. package/dist/api/resources/collections/client/Client.d.ts +3 -3
  173. package/dist/api/resources/collections/client/Client.js +6 -2
  174. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +3 -3
  175. package/dist/api/resources/collections/resources/fields/client/Client.js +6 -2
  176. package/dist/api/resources/collections/resources/items/client/Client.d.ts +53 -17
  177. package/dist/api/resources/collections/resources/items/client/Client.js +57 -17
  178. package/dist/api/resources/collections/resources/items/client/requests/CreateBulkCollectionItemRequestBody.d.ts +4 -0
  179. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemLiveRequest.d.ts +4 -2
  180. package/dist/api/resources/collections/resources/items/client/requests/ItemsCreateItemRequest.d.ts +4 -2
  181. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemLiveRequest.d.ts +3 -1
  182. package/dist/api/resources/collections/resources/items/client/requests/ItemsDeleteItemRequest.d.ts +3 -1
  183. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemLiveRequest.d.ts +3 -1
  184. package/dist/api/resources/collections/resources/items/client/requests/ItemsGetItemRequest.d.ts +3 -1
  185. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +9 -1
  186. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +9 -1
  187. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemLiveRequest.d.ts +3 -2
  188. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemRequest.d.ts +3 -2
  189. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsLiveRequest.d.ts +4 -0
  190. package/dist/api/resources/collections/resources/items/client/requests/ItemsUpdateItemsRequest.d.ts +2 -0
  191. package/dist/api/resources/components/client/Client.d.ts +18 -9
  192. package/dist/api/resources/components/client/Client.js +21 -8
  193. package/dist/api/resources/components/client/requests/ComponentDomWrite.d.ts +3 -1
  194. package/dist/api/resources/components/client/requests/ComponentPropertiesWrite.d.ts +3 -1
  195. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +6 -2
  196. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +6 -2
  197. package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +3 -1
  198. package/dist/api/resources/components/types/ComponentDomWriteNodesItem.d.ts +1 -1
  199. package/dist/api/resources/ecommerce/client/Client.d.ts +3 -3
  200. package/dist/api/resources/ecommerce/client/Client.js +6 -2
  201. package/dist/api/resources/forms/client/Client.d.ts +14 -6
  202. package/dist/api/resources/forms/client/Client.js +17 -5
  203. package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +4 -1
  204. package/dist/api/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +3 -1
  205. package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +4 -1
  206. package/dist/api/resources/inventory/client/Client.d.ts +11 -11
  207. package/dist/api/resources/inventory/client/Client.js +22 -18
  208. package/dist/api/resources/orders/client/Client.d.ts +8 -4
  209. package/dist/api/resources/orders/client/Client.js +11 -3
  210. package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +5 -1
  211. package/dist/api/resources/pages/client/Client.d.ts +14 -15
  212. package/dist/api/resources/pages/client/Client.js +17 -14
  213. package/dist/api/resources/pages/client/requests/PageMetadataWrite.d.ts +9 -2
  214. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +6 -2
  215. package/dist/api/resources/pages/client/requests/PagesGetMetadataRequest.d.ts +3 -1
  216. package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +6 -2
  217. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +8 -6
  218. package/dist/api/resources/pages/resources/scripts/client/Client.js +11 -5
  219. package/dist/api/resources/pages/types/PageDomWriteNodesItem.d.ts +1 -1
  220. package/dist/api/resources/products/client/Client.d.ts +7 -4
  221. package/dist/api/resources/products/client/Client.js +10 -3
  222. package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +4 -1
  223. package/dist/api/resources/scripts/client/Client.d.ts +3 -3
  224. package/dist/api/resources/scripts/client/Client.js +6 -2
  225. package/dist/api/resources/sites/client/Client.d.ts +3 -3
  226. package/dist/api/resources/sites/client/Client.js +6 -2
  227. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +7 -4
  228. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +10 -3
  229. package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +4 -1
  230. package/dist/api/resources/sites/resources/comments/client/Client.d.ts +18 -6
  231. package/dist/api/resources/sites/resources/comments/client/Client.js +21 -5
  232. package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +8 -2
  233. package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +8 -2
  234. package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +8 -2
  235. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +3 -3
  236. package/dist/api/resources/sites/resources/plans/client/Client.js +6 -2
  237. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +3 -3
  238. package/dist/api/resources/sites/resources/redirects/client/Client.js +6 -2
  239. package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +3 -3
  240. package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +6 -2
  241. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +13 -6
  242. package/dist/api/resources/sites/resources/scripts/client/Client.js +16 -5
  243. package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +4 -1
  244. package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +6 -5
  245. package/dist/api/resources/sites/resources/wellKnown/client/Client.js +9 -4
  246. package/dist/api/resources/sites/resources/wellKnown/client/requests/WellKnownFile.d.ts +3 -2
  247. package/dist/api/resources/token/client/Client.d.ts +3 -3
  248. package/dist/api/resources/token/client/Client.js +6 -2
  249. package/dist/api/resources/users/client/Client.d.ts +8 -4
  250. package/dist/api/resources/users/client/Client.js +11 -3
  251. package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +5 -1
  252. package/dist/api/resources/webhooks/client/Client.d.ts +3 -3
  253. package/dist/api/resources/webhooks/client/Client.js +6 -2
  254. package/dist/api/resources/workspaces/client/Client.d.ts +2 -2
  255. package/dist/api/resources/workspaces/client/Client.js +1 -1
  256. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +9 -5
  257. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +12 -4
  258. package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +6 -2
  259. package/dist/api/types/CollectionItemChanged.d.ts +1 -1
  260. package/dist/api/types/CollectionItemCreated.d.ts +1 -1
  261. package/dist/api/types/CollectionItemPublished.d.ts +9 -0
  262. package/dist/api/types/{ComponentInstance.d.ts → ComponentInstanceNodePropertyOverridesWrite.d.ts} +1 -1
  263. package/dist/api/types/{ComponentNodeDom.d.ts → ComponentNode.d.ts} +1 -1
  264. package/dist/api/types/Dom.d.ts +1 -1
  265. package/dist/api/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +1 -1
  266. package/dist/api/types/Node.d.ts +7 -7
  267. package/dist/api/types/Payload.d.ts +25 -0
  268. package/dist/api/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +1 -1
  269. package/dist/api/types/{SearchButtonNodeDom.d.ts → SearchButtonNode.d.ts} +1 -1
  270. package/dist/api/types/{SearchButton.d.ts → SearchButtonNodeWrite.d.ts} +1 -1
  271. package/dist/api/types/{SelectNodeDom.d.ts → SelectNode.d.ts} +1 -1
  272. package/dist/api/types/SiteMembership.d.ts +1 -0
  273. package/dist/api/types/SiteMembershipAuditLogItemEventSubType.d.ts +2 -1
  274. package/dist/api/types/SiteMembershipAuditLogItemEventSubType.js +1 -0
  275. package/dist/api/types/SkuFieldData.d.ts +0 -4
  276. package/{api/types/SubmitButtonNodeDom.d.ts → dist/api/types/SubmitButtonNode.d.ts} +1 -1
  277. package/{api/types/SubmitButton.d.ts → dist/api/types/SubmitButtonNodeWrite.d.ts} +1 -1
  278. package/{api/types/TextInputNodeDom.d.ts → dist/api/types/TextInputNode.d.ts} +1 -1
  279. package/dist/api/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +1 -1
  280. package/dist/api/types/TextNode.d.ts +7 -4
  281. package/dist/api/types/TextNodeWrite.d.ts +12 -0
  282. package/dist/api/types/TriggerType.d.ts +2 -1
  283. package/dist/api/types/TriggerType.js +1 -0
  284. package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +9 -0
  285. package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +2 -1
  286. package/dist/api/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -0
  287. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +7 -0
  288. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +2 -1
  289. package/dist/api/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -0
  290. package/dist/api/types/WorkspaceInvitation.d.ts +1 -0
  291. package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +2 -1
  292. package/dist/api/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
  293. package/dist/api/types/index.d.ts +17 -20
  294. package/dist/api/types/index.js +17 -20
  295. package/dist/environments.d.ts +0 -4
  296. package/dist/environments.js +0 -2
  297. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +6 -6
  298. package/dist/serialization/resources/components/types/ComponentDomWriteNodesItem.js +10 -10
  299. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +6 -6
  300. package/dist/serialization/resources/pages/types/PageDomWriteNodesItem.js +10 -10
  301. package/dist/serialization/types/CollectionItemChanged.d.ts +2 -2
  302. package/dist/serialization/types/CollectionItemChanged.js +2 -2
  303. package/dist/serialization/types/CollectionItemCreated.d.ts +2 -2
  304. package/dist/serialization/types/CollectionItemCreated.js +2 -2
  305. package/dist/serialization/types/CollectionItemPublished.d.ts +14 -0
  306. package/dist/serialization/types/CollectionItemPublished.js +45 -0
  307. package/{serialization/types/ComponentInstance.d.ts → dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts} +2 -2
  308. package/{serialization/types/ComponentInstance.js → dist/serialization/types/ComponentInstanceNodePropertyOverridesWrite.js} +2 -2
  309. package/{serialization/types/ComponentNodeDom.d.ts → dist/serialization/types/ComponentNode.d.ts} +2 -2
  310. package/{serialization/types/ComponentNodeDom.js → dist/serialization/types/ComponentNode.js} +2 -2
  311. package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +1 -1
  312. package/dist/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +1 -1
  313. package/dist/serialization/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +2 -2
  314. package/dist/serialization/types/{ImageNodeDom.js → ImageNode.js} +2 -2
  315. package/dist/serialization/types/Node.d.ts +14 -14
  316. package/dist/serialization/types/Node.js +14 -14
  317. package/dist/serialization/types/Payload.d.ts +23 -0
  318. package/dist/serialization/types/{MultiLocaleChangedPayload.js → Payload.js} +8 -8
  319. package/dist/serialization/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +2 -2
  320. package/dist/serialization/types/{SingleLocaleChangedPayloadFieldData.js → PayloadFieldData.js} +2 -2
  321. package/{serialization/types/SearchButtonNodeDom.d.ts → dist/serialization/types/SearchButtonNode.d.ts} +2 -2
  322. package/{serialization/types/SearchButtonNodeDom.js → dist/serialization/types/SearchButtonNode.js} +2 -2
  323. package/{serialization/types/SearchButton.d.ts → dist/serialization/types/SearchButtonNodeWrite.d.ts} +2 -2
  324. package/{serialization/types/SearchButton.js → dist/serialization/types/SearchButtonNodeWrite.js} +2 -2
  325. package/{serialization/types/SelectNodeDom.d.ts → dist/serialization/types/SelectNode.d.ts} +2 -2
  326. package/{serialization/types/SelectNodeDom.js → dist/serialization/types/SelectNode.js} +2 -2
  327. package/dist/serialization/types/SiteMembership.d.ts +2 -0
  328. package/dist/serialization/types/SiteMembership.js +2 -0
  329. package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
  330. package/dist/serialization/types/SiteMembershipAuditLogItemEventSubType.js +1 -1
  331. package/dist/serialization/types/SkuFieldData.d.ts +0 -2
  332. package/dist/serialization/types/SkuFieldData.js +0 -2
  333. package/dist/serialization/types/{SubmitButtonNodeDom.d.ts → SubmitButtonNode.d.ts} +2 -2
  334. package/{serialization/types/SubmitButtonNodeDom.js → dist/serialization/types/SubmitButtonNode.js} +2 -2
  335. package/{serialization/types/SubmitButton.d.ts → dist/serialization/types/SubmitButtonNodeWrite.d.ts} +2 -2
  336. package/{serialization/types/SubmitButton.js → dist/serialization/types/SubmitButtonNodeWrite.js} +2 -2
  337. package/{serialization/types/TextInputNodeDom.d.ts → dist/serialization/types/TextInputNode.d.ts} +2 -2
  338. package/{serialization/types/TextInputNodeDom.js → dist/serialization/types/TextInputNode.js} +2 -2
  339. package/dist/serialization/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +2 -2
  340. package/dist/serialization/types/{TextInput.js → TextInputNodeWrite.js} +2 -2
  341. package/dist/serialization/types/TextNode.d.ts +4 -2
  342. package/dist/serialization/types/TextNode.js +4 -2
  343. package/dist/serialization/types/TextNodeWrite.d.ts +13 -0
  344. package/dist/serialization/types/TextNodeWrite.js +44 -0
  345. package/dist/serialization/types/TriggerType.d.ts +1 -1
  346. package/dist/serialization/types/TriggerType.js +1 -0
  347. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
  348. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
  349. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
  350. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -1
  351. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
  352. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
  353. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
  354. package/dist/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -1
  355. package/dist/serialization/types/WorkspaceInvitation.d.ts +2 -0
  356. package/dist/serialization/types/WorkspaceInvitation.js +2 -0
  357. package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
  358. package/dist/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
  359. package/dist/serialization/types/index.d.ts +17 -20
  360. package/dist/serialization/types/index.js +17 -20
  361. package/dist/version.d.ts +1 -1
  362. package/dist/version.js +1 -1
  363. package/dist/wrapper/AssetsClient.d.ts +24 -0
  364. package/dist/wrapper/AssetsClient.js +42 -0
  365. package/dist/wrapper/AssetsUtilitiesClient.d.ts +1 -1
  366. package/environments.d.ts +0 -4
  367. package/environments.js +0 -2
  368. package/jest.config.mjs +0 -4
  369. package/package.json +3 -3
  370. package/reference.md +158 -54
  371. package/serialization/resources/components/types/ComponentDomWriteNodesItem.d.ts +6 -6
  372. package/serialization/resources/components/types/ComponentDomWriteNodesItem.js +10 -10
  373. package/serialization/resources/pages/types/PageDomWriteNodesItem.d.ts +6 -6
  374. package/serialization/resources/pages/types/PageDomWriteNodesItem.js +10 -10
  375. package/serialization/types/CollectionItemChanged.d.ts +2 -2
  376. package/serialization/types/CollectionItemChanged.js +2 -2
  377. package/serialization/types/CollectionItemCreated.d.ts +2 -2
  378. package/serialization/types/CollectionItemCreated.js +2 -2
  379. package/serialization/types/CollectionItemPublished.d.ts +14 -0
  380. package/serialization/types/CollectionItemPublished.js +45 -0
  381. package/{dist/serialization/types/ComponentInstance.d.ts → serialization/types/ComponentInstanceNodePropertyOverridesWrite.d.ts} +2 -2
  382. package/{dist/serialization/types/ComponentInstance.js → serialization/types/ComponentInstanceNodePropertyOverridesWrite.js} +2 -2
  383. package/{dist/serialization/types/ComponentNodeDom.d.ts → serialization/types/ComponentNode.d.ts} +2 -2
  384. package/{dist/serialization/types/ComponentNodeDom.js → serialization/types/ComponentNode.js} +2 -2
  385. package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.d.ts +1 -1
  386. package/serialization/types/FieldValidationsAdditionalPropertiesAdditionalProperties.js +1 -1
  387. package/serialization/types/{ImageNodeDom.d.ts → ImageNode.d.ts} +2 -2
  388. package/serialization/types/{ImageNodeDom.js → ImageNode.js} +2 -2
  389. package/serialization/types/Node.d.ts +14 -14
  390. package/serialization/types/Node.js +14 -14
  391. package/serialization/types/Payload.d.ts +23 -0
  392. package/serialization/types/{MultiLocaleChangedPayload.js → Payload.js} +8 -8
  393. package/serialization/types/{SingleLocaleChangedPayloadFieldData.d.ts → PayloadFieldData.d.ts} +2 -2
  394. package/serialization/types/{SingleLocaleChangedPayloadFieldData.js → PayloadFieldData.js} +2 -2
  395. package/{dist/serialization/types/SearchButtonNodeDom.d.ts → serialization/types/SearchButtonNode.d.ts} +2 -2
  396. package/{dist/serialization/types/SearchButtonNodeDom.js → serialization/types/SearchButtonNode.js} +2 -2
  397. package/{dist/serialization/types/SearchButton.d.ts → serialization/types/SearchButtonNodeWrite.d.ts} +2 -2
  398. package/{dist/serialization/types/SearchButton.js → serialization/types/SearchButtonNodeWrite.js} +2 -2
  399. package/{dist/serialization/types/SelectNodeDom.d.ts → serialization/types/SelectNode.d.ts} +2 -2
  400. package/{dist/serialization/types/SelectNodeDom.js → serialization/types/SelectNode.js} +2 -2
  401. package/serialization/types/SiteMembership.d.ts +2 -0
  402. package/serialization/types/SiteMembership.js +2 -0
  403. package/serialization/types/SiteMembershipAuditLogItemEventSubType.d.ts +1 -1
  404. package/serialization/types/SiteMembershipAuditLogItemEventSubType.js +1 -1
  405. package/serialization/types/SkuFieldData.d.ts +0 -2
  406. package/serialization/types/SkuFieldData.js +0 -2
  407. package/serialization/types/{SubmitButtonNodeDom.d.ts → SubmitButtonNode.d.ts} +2 -2
  408. package/{dist/serialization/types/SubmitButtonNodeDom.js → serialization/types/SubmitButtonNode.js} +2 -2
  409. package/{dist/serialization/types/SubmitButton.d.ts → serialization/types/SubmitButtonNodeWrite.d.ts} +2 -2
  410. package/{dist/serialization/types/SubmitButton.js → serialization/types/SubmitButtonNodeWrite.js} +2 -2
  411. package/{dist/serialization/types/TextInputNodeDom.d.ts → serialization/types/TextInputNode.d.ts} +2 -2
  412. package/{dist/serialization/types/TextInputNodeDom.js → serialization/types/TextInputNode.js} +2 -2
  413. package/serialization/types/{TextInput.d.ts → TextInputNodeWrite.d.ts} +2 -2
  414. package/serialization/types/{TextInput.js → TextInputNodeWrite.js} +2 -2
  415. package/serialization/types/TextNode.d.ts +4 -2
  416. package/serialization/types/TextNode.js +4 -2
  417. package/serialization/types/TextNodeWrite.d.ts +13 -0
  418. package/serialization/types/TextNodeWrite.js +44 -0
  419. package/serialization/types/TriggerType.d.ts +1 -1
  420. package/serialization/types/TriggerType.js +1 -0
  421. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.d.ts +15 -0
  422. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js +46 -0
  423. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.d.ts +1 -1
  424. package/serialization/types/WorkspaceAuditLogItemPayloadSiteMembershipMethod.js +1 -1
  425. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.d.ts +13 -0
  426. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js +44 -0
  427. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.d.ts +1 -1
  428. package/serialization/types/WorkspaceAuditLogItemPayloadWorkspaceMembershipMethod.js +1 -1
  429. package/serialization/types/WorkspaceInvitation.d.ts +2 -0
  430. package/serialization/types/WorkspaceInvitation.js +2 -0
  431. package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.d.ts +1 -1
  432. package/serialization/types/WorkspaceInvitationAuditLogItemEventSubType.js +1 -0
  433. package/serialization/types/index.d.ts +17 -20
  434. package/serialization/types/index.js +17 -20
  435. package/version.d.ts +1 -1
  436. package/version.js +1 -1
  437. package/wrapper/AssetsClient.d.ts +24 -0
  438. package/wrapper/AssetsClient.js +42 -0
  439. package/wrapper/AssetsUtilitiesClient.d.ts +1 -1
  440. package/api/types/CollectionItemChangedPayload.d.ts +0 -5
  441. package/api/types/CollectionItemCreatedPayload.d.ts +0 -5
  442. package/api/types/LocalizedItem.d.ts +0 -31
  443. package/api/types/MultiLocaleChangedPayload.d.ts +0 -22
  444. package/api/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -11
  445. package/api/types/MultiLocaleCreatedPayload.d.ts +0 -16
  446. package/api/types/SingleLocaleChangedPayload.d.ts +0 -22
  447. package/api/types/TextNodeDom.d.ts +0 -15
  448. package/dist/api/types/CollectionItemChangedPayload.d.ts +0 -5
  449. package/dist/api/types/CollectionItemCreatedPayload.d.ts +0 -5
  450. package/dist/api/types/LocalizedItem.d.ts +0 -31
  451. package/dist/api/types/MultiLocaleChangedPayload.d.ts +0 -22
  452. package/dist/api/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -11
  453. package/dist/api/types/MultiLocaleCreatedPayload.d.ts +0 -16
  454. package/dist/api/types/SingleLocaleChangedPayload.d.ts +0 -22
  455. package/dist/api/types/SubmitButtonNodeDom.js +0 -5
  456. package/dist/api/types/TextInput.js +0 -5
  457. package/dist/api/types/TextInputNodeDom.js +0 -5
  458. package/dist/api/types/TextNodeDom.d.ts +0 -15
  459. package/dist/api/types/TextNodeDom.js +0 -5
  460. package/dist/serialization/types/CollectionItemChangedPayload.d.ts +0 -12
  461. package/dist/serialization/types/CollectionItemChangedPayload.js +0 -43
  462. package/dist/serialization/types/CollectionItemCreatedPayload.d.ts +0 -12
  463. package/dist/serialization/types/CollectionItemCreatedPayload.js +0 -43
  464. package/dist/serialization/types/LocalizedItem.d.ts +0 -24
  465. package/dist/serialization/types/LocalizedItem.js +0 -55
  466. package/dist/serialization/types/MultiLocaleChangedPayload.d.ts +0 -23
  467. package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -15
  468. package/dist/serialization/types/MultiLocaleChangedPayloadFieldData.js +0 -47
  469. package/dist/serialization/types/MultiLocaleCreatedPayload.d.ts +0 -17
  470. package/dist/serialization/types/MultiLocaleCreatedPayload.js +0 -48
  471. package/dist/serialization/types/SingleLocaleChangedPayload.d.ts +0 -23
  472. package/dist/serialization/types/SingleLocaleChangedPayload.js +0 -54
  473. package/dist/serialization/types/TextNodeDom.d.ts +0 -15
  474. package/dist/serialization/types/TextNodeDom.js +0 -46
  475. package/serialization/types/CollectionItemChangedPayload.d.ts +0 -12
  476. package/serialization/types/CollectionItemChangedPayload.js +0 -43
  477. package/serialization/types/CollectionItemCreatedPayload.d.ts +0 -12
  478. package/serialization/types/CollectionItemCreatedPayload.js +0 -43
  479. package/serialization/types/LocalizedItem.d.ts +0 -24
  480. package/serialization/types/LocalizedItem.js +0 -55
  481. package/serialization/types/MultiLocaleChangedPayload.d.ts +0 -23
  482. package/serialization/types/MultiLocaleChangedPayloadFieldData.d.ts +0 -15
  483. package/serialization/types/MultiLocaleChangedPayloadFieldData.js +0 -47
  484. package/serialization/types/MultiLocaleCreatedPayload.d.ts +0 -17
  485. package/serialization/types/MultiLocaleCreatedPayload.js +0 -48
  486. package/serialization/types/SingleLocaleChangedPayload.d.ts +0 -23
  487. package/serialization/types/SingleLocaleChangedPayload.js +0 -54
  488. package/serialization/types/TextNodeDom.d.ts +0 -15
  489. package/serialization/types/TextNodeDom.js +0 -46
  490. /package/api/{types/CollectionItemChangedPayload.js → resources/assets/client/requests/AssetsListRequest.js} +0 -0
  491. /package/api/types/{CollectionItemCreatedPayload.js → CollectionItemPublished.js} +0 -0
  492. /package/api/types/{ComponentInstance.js → ComponentInstanceNodePropertyOverridesWrite.js} +0 -0
  493. /package/api/types/{ComponentNodeDom.js → ComponentNode.js} +0 -0
  494. /package/api/types/{ImageNodeDom.js → ImageNode.js} +0 -0
  495. /package/api/types/{LocalizedItem.js → Payload.js} +0 -0
  496. /package/api/types/{MultiLocaleChangedPayload.js → PayloadFieldData.js} +0 -0
  497. /package/api/types/{MultiLocaleChangedPayloadFieldData.js → SearchButtonNode.js} +0 -0
  498. /package/api/types/{MultiLocaleCreatedPayload.js → SearchButtonNodeWrite.js} +0 -0
  499. /package/api/types/{SearchButton.js → SelectNode.js} +0 -0
  500. /package/api/types/{SearchButtonNodeDom.js → SubmitButtonNode.js} +0 -0
  501. /package/api/types/{SelectNodeDom.js → SubmitButtonNodeWrite.js} +0 -0
  502. /package/api/types/{SingleLocaleChangedPayload.js → TextInputNode.js} +0 -0
  503. /package/api/types/{SingleLocaleChangedPayloadFieldData.js → TextInputNodeWrite.js} +0 -0
  504. /package/api/types/{SubmitButton.js → TextNodeWrite.js} +0 -0
  505. /package/api/types/{SubmitButtonNodeDom.js → WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js} +0 -0
  506. /package/api/types/{TextInput.js → WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js} +0 -0
  507. /package/{api/types/TextInputNodeDom.js → dist/api/resources/assets/client/requests/AssetsListRequest.js} +0 -0
  508. /package/{api/types/TextNodeDom.js → dist/api/types/CollectionItemPublished.js} +0 -0
  509. /package/dist/api/types/{CollectionItemChangedPayload.js → ComponentInstanceNodePropertyOverridesWrite.js} +0 -0
  510. /package/dist/api/types/{CollectionItemCreatedPayload.js → ComponentNode.js} +0 -0
  511. /package/dist/api/types/{ComponentInstance.js → ImageNode.js} +0 -0
  512. /package/dist/api/types/{ComponentNodeDom.js → Payload.js} +0 -0
  513. /package/dist/api/types/{ImageNodeDom.js → PayloadFieldData.js} +0 -0
  514. /package/dist/api/types/{LocalizedItem.js → SearchButtonNode.js} +0 -0
  515. /package/dist/api/types/{MultiLocaleChangedPayload.js → SearchButtonNodeWrite.js} +0 -0
  516. /package/dist/api/types/{MultiLocaleChangedPayloadFieldData.js → SelectNode.js} +0 -0
  517. /package/dist/api/types/{MultiLocaleCreatedPayload.js → SubmitButtonNode.js} +0 -0
  518. /package/dist/api/types/{SearchButton.js → SubmitButtonNodeWrite.js} +0 -0
  519. /package/dist/api/types/{SearchButtonNodeDom.js → TextInputNode.js} +0 -0
  520. /package/dist/api/types/{SelectNodeDom.js → TextInputNodeWrite.js} +0 -0
  521. /package/dist/api/types/{SingleLocaleChangedPayload.js → TextNodeWrite.js} +0 -0
  522. /package/dist/api/types/{SingleLocaleChangedPayloadFieldData.js → WorkspaceAuditLogItemPayloadSiteMembershipGranularAccess.js} +0 -0
  523. /package/dist/api/types/{SubmitButton.js → WorkspaceAuditLogItemPayloadWorkspaceInvitationTargetUsersItem.js} +0 -0
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../errors/index"));
59
59
  class Scripts {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -414,7 +414,11 @@ class Scripts {
414
414
  }
415
415
  _getAuthorizationHeader() {
416
416
  return __awaiter(this, void 0, void 0, function* () {
417
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
417
+ const bearer = yield core.Supplier.get(this._options.accessToken);
418
+ if (bearer != null) {
419
+ return `Bearer ${bearer}`;
420
+ }
421
+ return undefined;
418
422
  });
419
423
  }
420
424
  }
@@ -16,7 +16,7 @@ export declare namespace Sites {
16
16
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
17
17
  /** Specify a custom URL to connect the client to. */
18
18
  baseUrl?: core.Supplier<string>;
19
- accessToken: core.Supplier<core.BearerToken>;
19
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
20
20
  /** Additional headers to include in requests. */
21
21
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
22
22
  }
@@ -43,7 +43,7 @@ export declare class Sites {
43
43
  protected _activityLogs: ActivityLogs | undefined;
44
44
  protected _comments: Comments | undefined;
45
45
  protected _scripts: Scripts | undefined;
46
- constructor(_options: Sites.Options);
46
+ constructor(_options?: Sites.Options);
47
47
  get redirects(): Redirects;
48
48
  get plans(): Plans;
49
49
  get robotsTxt(): RobotsTxt;
@@ -202,5 +202,5 @@ export declare class Sites {
202
202
  */
203
203
  publish(siteId: string, request?: Webflow.SitesPublishRequest, requestOptions?: Sites.RequestOptions): core.HttpResponsePromise<Webflow.SitesPublishResponse>;
204
204
  private __publish;
205
- protected _getAuthorizationHeader(): Promise<string>;
205
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
206
206
  }
@@ -67,7 +67,7 @@ const Client_7 = require("../resources/scripts/client/Client");
67
67
  * Sites are the sites in your Webflow workspace.
68
68
  */
69
69
  class Sites {
70
- constructor(_options) {
70
+ constructor(_options = {}) {
71
71
  this._options = _options;
72
72
  }
73
73
  get redirects() {
@@ -855,7 +855,11 @@ class Sites {
855
855
  }
856
856
  _getAuthorizationHeader() {
857
857
  return __awaiter(this, void 0, void 0, function* () {
858
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
858
+ const bearer = yield core.Supplier.get(this._options.accessToken);
859
+ if (bearer != null) {
860
+ return `Bearer ${bearer}`;
861
+ }
862
+ return undefined;
859
863
  });
860
864
  }
861
865
  }
@@ -9,7 +9,7 @@ export declare namespace ActivityLogs {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace ActivityLogs {
26
26
  }
27
27
  export declare class ActivityLogs {
28
28
  protected readonly _options: ActivityLogs.Options;
29
- constructor(_options: ActivityLogs.Options);
29
+ constructor(_options?: ActivityLogs.Options);
30
30
  /**
31
31
  * Retrieve Activity Logs for a specific Site.
32
32
  *
@@ -44,9 +44,12 @@ export declare class ActivityLogs {
44
44
  * @throws {@link Webflow.InternalServerError}
45
45
  *
46
46
  * @example
47
- * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
47
+ * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", {
48
+ * limit: 1.1,
49
+ * offset: 1.1
50
+ * })
48
51
  */
49
52
  list(siteId: string, request?: Webflow.sites.ActivityLogsListRequest, requestOptions?: ActivityLogs.RequestOptions): core.HttpResponsePromise<Webflow.SiteActivityLogResponse>;
50
53
  private __list;
51
- protected _getAuthorizationHeader(): Promise<string>;
54
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
52
55
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class ActivityLogs {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -77,7 +77,10 @@ class ActivityLogs {
77
77
  * @throws {@link Webflow.InternalServerError}
78
78
  *
79
79
  * @example
80
- * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741")
80
+ * await client.sites.activityLogs.list("580e63e98c9a982ac9b8b741", {
81
+ * limit: 1.1,
82
+ * offset: 1.1
83
+ * })
81
84
  */
82
85
  list(siteId, request = {}, requestOptions) {
83
86
  return core.HttpResponsePromise.fromPromise(this.__list(siteId, request, requestOptions));
@@ -170,7 +173,11 @@ class ActivityLogs {
170
173
  }
171
174
  _getAuthorizationHeader() {
172
175
  return __awaiter(this, void 0, void 0, function* () {
173
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
176
+ const bearer = yield core.Supplier.get(this._options.accessToken);
177
+ if (bearer != null) {
178
+ return `Bearer ${bearer}`;
179
+ }
180
+ return undefined;
174
181
  });
175
182
  }
176
183
  }
@@ -3,7 +3,10 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * limit: 1.1,
8
+ * offset: 1.1
9
+ * }
7
10
  */
8
11
  export interface ActivityLogsListRequest {
9
12
  /**
@@ -9,7 +9,7 @@ export declare namespace Comments {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace Comments {
26
26
  }
27
27
  export declare class Comments {
28
28
  protected readonly _options: Comments.Options;
29
- constructor(_options: Comments.Options);
29
+ constructor(_options?: Comments.Options);
30
30
  /**
31
31
  * List all comment threads for a site.
32
32
  *
@@ -48,7 +48,11 @@ export declare class Comments {
48
48
  *
49
49
  * @example
50
50
  * await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", {
51
- * localeId: "65427cf400e02b306eaa04a0"
51
+ * localeId: "65427cf400e02b306eaa04a0",
52
+ * offset: 1.1,
53
+ * limit: 1.1,
54
+ * sortBy: "createdOn",
55
+ * sortOrder: "asc"
52
56
  * })
53
57
  */
54
58
  listCommentThreads(siteId: string, request?: Webflow.sites.CommentsListCommentThreadsRequest, requestOptions?: Comments.RequestOptions): core.HttpResponsePromise<Webflow.CommentThreadList>;
@@ -75,7 +79,11 @@ export declare class Comments {
75
79
  *
76
80
  * @example
77
81
  * await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
78
- * localeId: "65427cf400e02b306eaa04a0"
82
+ * localeId: "65427cf400e02b306eaa04a0",
83
+ * offset: 1.1,
84
+ * limit: 1.1,
85
+ * sortBy: "createdOn",
86
+ * sortOrder: "asc"
79
87
  * })
80
88
  */
81
89
  getCommentThread(siteId: string, commentThreadId: string, request?: Webflow.sites.CommentsGetCommentThreadRequest, requestOptions?: Comments.RequestOptions): core.HttpResponsePromise<Webflow.CommentThread>;
@@ -102,10 +110,14 @@ export declare class Comments {
102
110
  *
103
111
  * @example
104
112
  * await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
105
- * localeId: "65427cf400e02b306eaa04a0"
113
+ * localeId: "65427cf400e02b306eaa04a0",
114
+ * offset: 1.1,
115
+ * limit: 1.1,
116
+ * sortBy: "createdOn",
117
+ * sortOrder: "asc"
106
118
  * })
107
119
  */
108
120
  listCommentReplies(siteId: string, commentThreadId: string, request?: Webflow.sites.CommentsListCommentRepliesRequest, requestOptions?: Comments.RequestOptions): core.HttpResponsePromise<Webflow.CommentReplyList>;
109
121
  private __listCommentReplies;
110
- protected _getAuthorizationHeader(): Promise<string>;
122
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
111
123
  }
@@ -57,7 +57,7 @@ const headers_js_1 = require("../../../../../../core/headers.js");
57
57
  const url_join_1 = __importDefault(require("url-join"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class Comments {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -81,7 +81,11 @@ class Comments {
81
81
  *
82
82
  * @example
83
83
  * await client.sites.comments.listCommentThreads("580e63e98c9a982ac9b8b741", {
84
- * localeId: "65427cf400e02b306eaa04a0"
84
+ * localeId: "65427cf400e02b306eaa04a0",
85
+ * offset: 1.1,
86
+ * limit: 1.1,
87
+ * sortBy: "createdOn",
88
+ * sortOrder: "asc"
85
89
  * })
86
90
  */
87
91
  listCommentThreads(siteId, request = {}, requestOptions) {
@@ -220,7 +224,11 @@ class Comments {
220
224
  *
221
225
  * @example
222
226
  * await client.sites.comments.getCommentThread("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
223
- * localeId: "65427cf400e02b306eaa04a0"
227
+ * localeId: "65427cf400e02b306eaa04a0",
228
+ * offset: 1.1,
229
+ * limit: 1.1,
230
+ * sortBy: "createdOn",
231
+ * sortOrder: "asc"
224
232
  * })
225
233
  */
226
234
  getCommentThread(siteId, commentThreadId, request = {}, requestOptions) {
@@ -359,7 +367,11 @@ class Comments {
359
367
  *
360
368
  * @example
361
369
  * await client.sites.comments.listCommentReplies("580e63e98c9a982ac9b8b741", "580e63e98c9a982ac9b8b741", {
362
- * localeId: "65427cf400e02b306eaa04a0"
370
+ * localeId: "65427cf400e02b306eaa04a0",
371
+ * offset: 1.1,
372
+ * limit: 1.1,
373
+ * sortBy: "createdOn",
374
+ * sortOrder: "asc"
363
375
  * })
364
376
  */
365
377
  listCommentReplies(siteId, commentThreadId, request = {}, requestOptions) {
@@ -478,7 +490,11 @@ class Comments {
478
490
  }
479
491
  _getAuthorizationHeader() {
480
492
  return __awaiter(this, void 0, void 0, function* () {
481
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
493
+ const bearer = yield core.Supplier.get(this._options.accessToken);
494
+ if (bearer != null) {
495
+ return `Bearer ${bearer}`;
496
+ }
497
+ return undefined;
482
498
  });
483
499
  }
484
500
  }
@@ -5,12 +5,18 @@ import * as Webflow from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * localeId: "65427cf400e02b306eaa04a0"
8
+ * localeId: "65427cf400e02b306eaa04a0",
9
+ * offset: 1.1,
10
+ * limit: 1.1,
11
+ * sortBy: "createdOn",
12
+ * sortOrder: "asc"
9
13
  * }
10
14
  */
11
15
  export interface CommentsGetCommentThreadRequest {
12
16
  /**
13
- * Unique identifier for a specific locale. Applicable, when using localization.
17
+ * Unique identifier for a specific Locale.
18
+ *
19
+ * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization)
14
20
  */
15
21
  localeId?: string;
16
22
  /**
@@ -5,12 +5,18 @@ import * as Webflow from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * localeId: "65427cf400e02b306eaa04a0"
8
+ * localeId: "65427cf400e02b306eaa04a0",
9
+ * offset: 1.1,
10
+ * limit: 1.1,
11
+ * sortBy: "createdOn",
12
+ * sortOrder: "asc"
9
13
  * }
10
14
  */
11
15
  export interface CommentsListCommentRepliesRequest {
12
16
  /**
13
- * Unique identifier for a specific locale. Applicable, when using localization.
17
+ * Unique identifier for a specific Locale.
18
+ *
19
+ * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization)
14
20
  */
15
21
  localeId?: string;
16
22
  /**
@@ -5,12 +5,18 @@ import * as Webflow from "../../../../../../index";
5
5
  /**
6
6
  * @example
7
7
  * {
8
- * localeId: "65427cf400e02b306eaa04a0"
8
+ * localeId: "65427cf400e02b306eaa04a0",
9
+ * offset: 1.1,
10
+ * limit: 1.1,
11
+ * sortBy: "createdOn",
12
+ * sortOrder: "asc"
9
13
  * }
10
14
  */
11
15
  export interface CommentsListCommentThreadsRequest {
12
16
  /**
13
- * Unique identifier for a specific locale. Applicable, when using localization.
17
+ * Unique identifier for a specific Locale.
18
+ *
19
+ * [Lear more about localization.](/data/v2.0.0/docs/working-with-localization)
14
20
  */
15
21
  localeId?: string;
16
22
  /**
@@ -9,7 +9,7 @@ export declare namespace Plans {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace Plans {
26
26
  }
27
27
  export declare class Plans {
28
28
  protected readonly _options: Plans.Options;
29
- constructor(_options: Plans.Options);
29
+ constructor(_options?: Plans.Options);
30
30
  /**
31
31
  * Get site plan details for the specified Site.
32
32
  *
@@ -48,5 +48,5 @@ export declare class Plans {
48
48
  */
49
49
  getSitePlan(siteId: string, requestOptions?: Plans.RequestOptions): core.HttpResponsePromise<Webflow.SitePlan>;
50
50
  private __getSitePlan;
51
- protected _getAuthorizationHeader(): Promise<string>;
51
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
52
52
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class Plans {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -169,7 +169,11 @@ class Plans {
169
169
  }
170
170
  _getAuthorizationHeader() {
171
171
  return __awaiter(this, void 0, void 0, function* () {
172
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
172
+ const bearer = yield core.Supplier.get(this._options.accessToken);
173
+ if (bearer != null) {
174
+ return `Bearer ${bearer}`;
175
+ }
176
+ return undefined;
173
177
  });
174
178
  }
175
179
  }
@@ -9,7 +9,7 @@ export declare namespace Redirects {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace Redirects {
26
26
  }
27
27
  export declare class Redirects {
28
28
  protected readonly _options: Redirects.Options;
29
- constructor(_options: Redirects.Options);
29
+ constructor(_options?: Redirects.Options);
30
30
  /**
31
31
  * Fetch a list of all 301 redirect rules configured for a specific site.
32
32
  *
@@ -129,5 +129,5 @@ export declare class Redirects {
129
129
  */
130
130
  update(siteId: string, redirectId: string, request: Webflow.Redirect, requestOptions?: Redirects.RequestOptions): core.HttpResponsePromise<Webflow.Redirect>;
131
131
  private __update;
132
- protected _getAuthorizationHeader(): Promise<string>;
132
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
133
133
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class Redirects {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -522,7 +522,11 @@ class Redirects {
522
522
  }
523
523
  _getAuthorizationHeader() {
524
524
  return __awaiter(this, void 0, void 0, function* () {
525
- 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;
526
530
  });
527
531
  }
528
532
  }
@@ -9,7 +9,7 @@ export declare namespace RobotsTxt {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace RobotsTxt {
26
26
  }
27
27
  export declare class RobotsTxt {
28
28
  protected readonly _options: RobotsTxt.Options;
29
- constructor(_options: RobotsTxt.Options);
29
+ constructor(_options?: RobotsTxt.Options);
30
30
  /**
31
31
  * Retrieve the robots.txt configuration for various user agents.
32
32
  *
@@ -136,5 +136,5 @@ export declare class RobotsTxt {
136
136
  */
137
137
  patch(siteId: string, request: Webflow.Robots, requestOptions?: RobotsTxt.RequestOptions): core.HttpResponsePromise<Webflow.Robots>;
138
138
  private __patch;
139
- protected _getAuthorizationHeader(): Promise<string>;
139
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
140
140
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class RobotsTxt {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -536,7 +536,11 @@ class RobotsTxt {
536
536
  }
537
537
  _getAuthorizationHeader() {
538
538
  return __awaiter(this, void 0, void 0, function* () {
539
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
539
+ const bearer = yield core.Supplier.get(this._options.accessToken);
540
+ if (bearer != null) {
541
+ return `Bearer ${bearer}`;
542
+ }
543
+ return undefined;
540
544
  });
541
545
  }
542
546
  }
@@ -9,7 +9,7 @@ export declare namespace Scripts {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace Scripts {
26
26
  }
27
27
  export declare class Scripts {
28
28
  protected readonly _options: Scripts.Options;
29
- constructor(_options: Scripts.Options);
29
+ constructor(_options?: Scripts.Options);
30
30
  /**
31
31
  * Get all scripts applied to a site by the App.
32
32
  *
@@ -51,7 +51,7 @@ export declare class Scripts {
51
51
  getCustomCode(siteId: string, requestOptions?: Scripts.RequestOptions): core.HttpResponsePromise<Webflow.ScriptApplyList>;
52
52
  private __getCustomCode;
53
53
  /**
54
- * Apply registered scripts to a site.
54
+ * Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body.
55
55
  *
56
56
  * <Note title="Script Registration">
57
57
  * To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
@@ -88,7 +88,11 @@ export declare class Scripts {
88
88
  upsertCustomCode(siteId: string, request: Webflow.ScriptApplyList, requestOptions?: Scripts.RequestOptions): core.HttpResponsePromise<Webflow.ScriptApplyList>;
89
89
  private __upsertCustomCode;
90
90
  /**
91
- * Remove scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
91
+ * Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
92
+ *
93
+ * To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) endpoint.
94
+ *
95
+ * <Note>Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app).</Note>
92
96
  *
93
97
  * Required scope | `custom_code:write`
94
98
  *
@@ -128,9 +132,12 @@ export declare class Scripts {
128
132
  * @throws {@link Webflow.InternalServerError}
129
133
  *
130
134
  * @example
131
- * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
135
+ * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", {
136
+ * offset: 1.1,
137
+ * limit: 1.1
138
+ * })
132
139
  */
133
140
  listCustomCodeBlocks(siteId: string, request?: Webflow.sites.ScriptsListCustomCodeBlocksRequest, requestOptions?: Scripts.RequestOptions): core.HttpResponsePromise<Webflow.ListCustomCodeBlocks>;
134
141
  private __listCustomCodeBlocks;
135
- protected _getAuthorizationHeader(): Promise<string>;
142
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
136
143
  }
@@ -57,7 +57,7 @@ const url_join_1 = __importDefault(require("url-join"));
57
57
  const serializers = __importStar(require("../../../../../../serialization/index"));
58
58
  const errors = __importStar(require("../../../../../../errors/index"));
59
59
  class Scripts {
60
- constructor(_options) {
60
+ constructor(_options = {}) {
61
61
  this._options = _options;
62
62
  }
63
63
  /**
@@ -170,7 +170,7 @@ class Scripts {
170
170
  });
171
171
  }
172
172
  /**
173
- * Apply registered scripts to a site.
173
+ * Apply registered scripts to a site. If you have multiple scripts your App needs to apply or maintain on a site, ensure they are always included in the request body for this endpoint. To remove individual scripts, simply call this endpoint without the script in the request body.
174
174
  *
175
175
  * <Note title="Script Registration">
176
176
  * To apply a script to a site or page, the script must first be registered to a site via the [Register Script](/data/reference/custom-code/custom-code/register-hosted) endpoints. Once registered, the script can be applied to a Site or Page using the appropriate endpoints. See the documentation on [working with Custom Code](/data/docs/custom-code) for more information.
@@ -300,7 +300,11 @@ class Scripts {
300
300
  });
301
301
  }
302
302
  /**
303
- * Remove scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
303
+ * Remove all scripts from a site applied by the App. This endpoint will not remove scripts from the site's registered scripts.
304
+ *
305
+ * To remove individual scripts applied by the App, use the [Add/Update Custom Code](/data/reference/custom-code/custom-code-sites/upsert-custom-code) endpoint.
306
+ *
307
+ * <Note>Access to this endpoint requires a bearer token obtained from an [OAuth Code Grant Flow](/data/reference/oauth-app).</Note>
304
308
  *
305
309
  * Required scope | `custom_code:write`
306
310
  *
@@ -417,7 +421,10 @@ class Scripts {
417
421
  * @throws {@link Webflow.InternalServerError}
418
422
  *
419
423
  * @example
420
- * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741")
424
+ * await client.sites.scripts.listCustomCodeBlocks("580e63e98c9a982ac9b8b741", {
425
+ * offset: 1.1,
426
+ * limit: 1.1
427
+ * })
421
428
  */
422
429
  listCustomCodeBlocks(siteId, request = {}, requestOptions) {
423
430
  return core.HttpResponsePromise.fromPromise(this.__listCustomCodeBlocks(siteId, request, requestOptions));
@@ -518,7 +525,11 @@ class Scripts {
518
525
  }
519
526
  _getAuthorizationHeader() {
520
527
  return __awaiter(this, void 0, void 0, function* () {
521
- return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
528
+ const bearer = yield core.Supplier.get(this._options.accessToken);
529
+ if (bearer != null) {
530
+ return `Bearer ${bearer}`;
531
+ }
532
+ return undefined;
522
533
  });
523
534
  }
524
535
  }
@@ -3,7 +3,10 @@
3
3
  */
4
4
  /**
5
5
  * @example
6
- * {}
6
+ * {
7
+ * offset: 1.1,
8
+ * limit: 1.1
9
+ * }
7
10
  */
8
11
  export interface ScriptsListCustomCodeBlocksRequest {
9
12
  /**
@@ -9,7 +9,7 @@ export declare namespace WellKnown {
9
9
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
10
10
  /** Specify a custom URL to connect the client to. */
11
11
  baseUrl?: core.Supplier<string>;
12
- accessToken: core.Supplier<core.BearerToken>;
12
+ accessToken?: core.Supplier<core.BearerToken | undefined>;
13
13
  /** Additional headers to include in requests. */
14
14
  headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
15
15
  }
@@ -26,7 +26,7 @@ export declare namespace WellKnown {
26
26
  }
27
27
  export declare class WellKnown {
28
28
  protected readonly _options: WellKnown.Options;
29
- constructor(_options: WellKnown.Options);
29
+ constructor(_options?: WellKnown.Options);
30
30
  /**
31
31
  * Upload a supported well-known file to a site.
32
32
  *
@@ -55,8 +55,9 @@ export declare class WellKnown {
55
55
  *
56
56
  * @example
57
57
  * await client.sites.wellKnown.put("580e63e98c9a982ac9b8b741", {
58
- * fileName: "fileName",
59
- * fileData: "fileData"
58
+ * fileName: "apple-app-site-association.txt",
59
+ * fileData: "{\n \"applinks\": {\n \"apps\": [],\n \"details\": [\n {\n \"appID\": \"ABCDE12345.com.example.app\",\n \"paths\": [ \"/*\", \"/some/path/*\" ]\n }\n ]\n }\n}\n",
60
+ * contentType: "application/json"
60
61
  * })
61
62
  */
62
63
  put(siteId: string, request: Webflow.sites.WellKnownFile, requestOptions?: WellKnown.RequestOptions): core.HttpResponsePromise<void>;
@@ -83,5 +84,5 @@ export declare class WellKnown {
83
84
  */
84
85
  delete(siteId: string, request?: Webflow.sites.WellKnownDeleteRequest, requestOptions?: WellKnown.RequestOptions): core.HttpResponsePromise<void>;
85
86
  private __delete;
86
- protected _getAuthorizationHeader(): Promise<string>;
87
+ protected _getAuthorizationHeader(): Promise<string | undefined>;
87
88
  }