webflow-api 3.3.0-beta → 3.3.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 (563) hide show
  1. package/BaseClient.d.ts +1 -1
  2. package/Client.d.ts +1 -7
  3. package/Client.js +31 -41
  4. package/LICENSE +18 -18
  5. package/README.md +55 -28
  6. package/api/resources/assets/client/Client.d.ts +4 -4
  7. package/api/resources/assets/client/Client.js +7 -8
  8. package/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
  9. package/api/resources/collections/client/Client.d.ts +2 -2
  10. package/api/resources/collections/client/Client.js +3 -6
  11. package/api/resources/collections/resources/fields/client/Client.d.ts +2 -2
  12. package/api/resources/collections/resources/fields/client/Client.js +4 -6
  13. package/api/resources/collections/resources/items/client/Client.d.ts +6 -6
  14. package/api/resources/collections/resources/items/client/Client.js +24 -12
  15. package/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  16. package/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  17. package/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
  18. package/{dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +1 -1
  19. package/api/resources/collections/resources/items/types/index.d.ts +1 -1
  20. package/api/resources/collections/resources/items/types/index.js +1 -1
  21. package/api/resources/components/client/Client.d.ts +8 -8
  22. package/api/resources/components/client/Client.js +10 -12
  23. package/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
  24. package/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
  25. package/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
  26. package/api/resources/ecommerce/client/Client.d.ts +2 -2
  27. package/api/resources/ecommerce/client/Client.js +2 -6
  28. package/api/resources/forms/client/Client.d.ts +6 -6
  29. package/api/resources/forms/client/Client.js +7 -10
  30. package/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
  31. package/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
  32. package/api/resources/index.d.ts +0 -6
  33. package/api/resources/index.js +1 -7
  34. package/api/resources/inventory/client/Client.d.ts +2 -2
  35. package/api/resources/inventory/client/Client.js +3 -6
  36. package/api/resources/orders/client/Client.d.ts +4 -4
  37. package/api/resources/orders/client/Client.js +8 -8
  38. package/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
  39. package/api/resources/pages/client/Client.d.ts +6 -6
  40. package/api/resources/pages/client/Client.js +8 -10
  41. package/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
  42. package/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
  43. package/api/resources/pages/resources/scripts/client/Client.d.ts +2 -2
  44. package/api/resources/pages/resources/scripts/client/Client.js +3 -6
  45. package/api/resources/products/client/Client.d.ts +4 -4
  46. package/api/resources/products/client/Client.js +8 -8
  47. package/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
  48. package/api/resources/scripts/client/Client.d.ts +2 -2
  49. package/api/resources/scripts/client/Client.js +4 -6
  50. package/api/resources/sites/client/Client.d.ts +2 -2
  51. package/api/resources/sites/client/Client.js +5 -6
  52. package/api/resources/sites/resources/activityLogs/client/Client.d.ts +4 -4
  53. package/api/resources/sites/resources/activityLogs/client/Client.js +4 -8
  54. package/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
  55. package/api/resources/sites/resources/comments/client/Client.d.ts +8 -8
  56. package/api/resources/sites/resources/comments/client/Client.js +14 -12
  57. package/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
  58. package/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
  59. package/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
  60. package/api/resources/sites/resources/forms/client/Client.d.ts +6 -6
  61. package/api/resources/sites/resources/forms/client/Client.js +7 -10
  62. package/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
  63. package/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
  64. package/api/resources/sites/resources/plans/client/Client.d.ts +2 -2
  65. package/api/resources/sites/resources/plans/client/Client.js +2 -6
  66. package/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
  67. package/api/resources/sites/resources/redirects/client/Client.js +6 -8
  68. package/api/resources/sites/resources/robotsTxt/client/Client.d.ts +2 -2
  69. package/api/resources/sites/resources/robotsTxt/client/Client.js +5 -6
  70. package/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  71. package/api/resources/sites/resources/scripts/client/Client.js +5 -8
  72. package/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
  73. package/api/resources/sites/resources/wellKnown/client/Client.d.ts +2 -2
  74. package/api/resources/sites/resources/wellKnown/client/Client.js +4 -6
  75. package/api/resources/token/client/Client.d.ts +2 -2
  76. package/api/resources/token/client/Client.js +2 -6
  77. package/api/resources/webhooks/client/Client.d.ts +2 -2
  78. package/api/resources/webhooks/client/Client.js +3 -6
  79. package/api/resources/workspaces/client/Client.d.ts +1 -1
  80. package/api/resources/workspaces/client/Client.js +1 -1
  81. package/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +4 -4
  82. package/api/resources/workspaces/resources/auditLogs/client/Client.js +6 -8
  83. package/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
  84. package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -0
  85. package/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
  86. package/api/types/AssetVariant.d.ts +6 -6
  87. package/api/types/ComponentDom.d.ts +1 -1
  88. package/api/types/ForbiddenErrorBody.d.ts +1 -1
  89. package/api/types/ProductFieldData.d.ts +1 -1
  90. package/api/types/SettingChange.d.ts +7 -0
  91. package/api/types/SettingChangeAuditLogItem.d.ts +5 -0
  92. package/api/types/TriggerType.d.ts +0 -3
  93. package/api/types/TriggerType.js +0 -3
  94. package/api/types/WorkspaceAuditLogItem.d.ts +4 -1
  95. package/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +5 -0
  96. package/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js +8 -0
  97. package/api/types/index.d.ts +3 -13
  98. package/api/types/index.js +3 -13
  99. package/dist/BaseClient.d.ts +1 -1
  100. package/dist/Client.d.ts +1 -7
  101. package/dist/Client.js +31 -41
  102. package/dist/api/resources/assets/client/Client.d.ts +4 -4
  103. package/dist/api/resources/assets/client/Client.js +7 -8
  104. package/dist/api/resources/assets/client/requests/AssetsListRequest.d.ts +2 -2
  105. package/dist/api/resources/collections/client/Client.d.ts +2 -2
  106. package/dist/api/resources/collections/client/Client.js +3 -6
  107. package/dist/api/resources/collections/resources/fields/client/Client.d.ts +2 -2
  108. package/dist/api/resources/collections/resources/fields/client/Client.js +4 -6
  109. package/dist/api/resources/collections/resources/items/client/Client.d.ts +6 -6
  110. package/dist/api/resources/collections/resources/items/client/Client.js +24 -12
  111. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsLiveRequest.d.ts +2 -2
  112. package/dist/api/resources/collections/resources/items/client/requests/ItemsListItemsRequest.d.ts +2 -2
  113. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +1 -1
  114. package/{api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +1 -1
  115. package/dist/api/resources/collections/resources/items/types/index.d.ts +1 -1
  116. package/dist/api/resources/collections/resources/items/types/index.js +1 -1
  117. package/dist/api/resources/components/client/Client.d.ts +8 -8
  118. package/dist/api/resources/components/client/Client.js +10 -12
  119. package/dist/api/resources/components/client/requests/ComponentsGetContentRequest.d.ts +2 -2
  120. package/dist/api/resources/components/client/requests/ComponentsGetPropertiesRequest.d.ts +2 -2
  121. package/dist/api/resources/components/client/requests/ComponentsListRequest.d.ts +2 -2
  122. package/dist/api/resources/ecommerce/client/Client.d.ts +2 -2
  123. package/dist/api/resources/ecommerce/client/Client.js +2 -6
  124. package/dist/api/resources/forms/client/Client.d.ts +6 -6
  125. package/dist/api/resources/forms/client/Client.js +7 -10
  126. package/dist/api/resources/forms/client/requests/FormsListRequest.d.ts +2 -2
  127. package/dist/api/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
  128. package/dist/api/resources/index.d.ts +0 -6
  129. package/dist/api/resources/index.js +1 -7
  130. package/dist/api/resources/inventory/client/Client.d.ts +2 -2
  131. package/dist/api/resources/inventory/client/Client.js +3 -6
  132. package/dist/api/resources/orders/client/Client.d.ts +4 -4
  133. package/dist/api/resources/orders/client/Client.js +8 -8
  134. package/dist/api/resources/orders/client/requests/OrdersListRequest.d.ts +2 -2
  135. package/dist/api/resources/pages/client/Client.d.ts +6 -6
  136. package/dist/api/resources/pages/client/Client.js +8 -10
  137. package/dist/api/resources/pages/client/requests/PagesGetContentRequest.d.ts +2 -2
  138. package/dist/api/resources/pages/client/requests/PagesListRequest.d.ts +2 -2
  139. package/dist/api/resources/pages/resources/scripts/client/Client.d.ts +2 -2
  140. package/dist/api/resources/pages/resources/scripts/client/Client.js +3 -6
  141. package/dist/api/resources/products/client/Client.d.ts +4 -4
  142. package/dist/api/resources/products/client/Client.js +8 -8
  143. package/dist/api/resources/products/client/requests/ProductsListRequest.d.ts +2 -2
  144. package/dist/api/resources/scripts/client/Client.d.ts +2 -2
  145. package/dist/api/resources/scripts/client/Client.js +4 -6
  146. package/dist/api/resources/sites/client/Client.d.ts +2 -2
  147. package/dist/api/resources/sites/client/Client.js +5 -6
  148. package/dist/api/resources/sites/resources/activityLogs/client/Client.d.ts +4 -4
  149. package/dist/api/resources/sites/resources/activityLogs/client/Client.js +4 -8
  150. package/dist/api/resources/sites/resources/activityLogs/client/requests/ActivityLogsListRequest.d.ts +2 -2
  151. package/dist/api/resources/sites/resources/comments/client/Client.d.ts +8 -8
  152. package/dist/api/resources/sites/resources/comments/client/Client.js +14 -12
  153. package/dist/api/resources/sites/resources/comments/client/requests/CommentsGetCommentThreadRequest.d.ts +2 -2
  154. package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentRepliesRequest.d.ts +2 -2
  155. package/dist/api/resources/sites/resources/comments/client/requests/CommentsListCommentThreadsRequest.d.ts +2 -2
  156. package/dist/api/resources/sites/resources/forms/client/Client.d.ts +6 -6
  157. package/dist/api/resources/sites/resources/forms/client/Client.js +7 -10
  158. package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsBySiteRequest.d.ts +2 -2
  159. package/dist/api/resources/sites/resources/forms/client/requests/FormsListSubmissionsRequest.d.ts +2 -2
  160. package/dist/api/resources/sites/resources/plans/client/Client.d.ts +2 -2
  161. package/dist/api/resources/sites/resources/plans/client/Client.js +2 -6
  162. package/dist/api/resources/sites/resources/redirects/client/Client.d.ts +4 -4
  163. package/dist/api/resources/sites/resources/redirects/client/Client.js +6 -8
  164. package/dist/api/resources/sites/resources/robotsTxt/client/Client.d.ts +2 -2
  165. package/dist/api/resources/sites/resources/robotsTxt/client/Client.js +5 -6
  166. package/dist/api/resources/sites/resources/scripts/client/Client.d.ts +4 -4
  167. package/dist/api/resources/sites/resources/scripts/client/Client.js +5 -8
  168. package/dist/api/resources/sites/resources/scripts/client/requests/ScriptsListCustomCodeBlocksRequest.d.ts +2 -2
  169. package/dist/api/resources/sites/resources/wellKnown/client/Client.d.ts +2 -2
  170. package/dist/api/resources/sites/resources/wellKnown/client/Client.js +4 -6
  171. package/dist/api/resources/token/client/Client.d.ts +2 -2
  172. package/dist/api/resources/token/client/Client.js +2 -6
  173. package/dist/api/resources/webhooks/client/Client.d.ts +2 -2
  174. package/dist/api/resources/webhooks/client/Client.js +3 -6
  175. package/dist/api/resources/workspaces/client/Client.d.ts +1 -1
  176. package/dist/api/resources/workspaces/client/Client.js +1 -1
  177. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.d.ts +4 -4
  178. package/dist/api/resources/workspaces/resources/auditLogs/client/Client.js +6 -8
  179. package/dist/api/resources/workspaces/resources/auditLogs/client/requests/AuditLogsGetWorkspaceAuditLogsRequest.d.ts +2 -2
  180. package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -0
  181. package/dist/api/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
  182. package/dist/api/types/AssetVariant.d.ts +6 -6
  183. package/dist/api/types/ComponentDom.d.ts +1 -1
  184. package/dist/api/types/ForbiddenErrorBody.d.ts +1 -1
  185. package/dist/api/types/ProductFieldData.d.ts +1 -1
  186. package/dist/api/types/SettingChange.d.ts +7 -0
  187. package/dist/api/types/SettingChangeAuditLogItem.d.ts +5 -0
  188. package/dist/api/types/TriggerType.d.ts +0 -3
  189. package/dist/api/types/TriggerType.js +0 -3
  190. package/dist/api/types/WorkspaceAuditLogItem.d.ts +4 -1
  191. package/dist/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +5 -0
  192. package/dist/api/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js +8 -0
  193. package/dist/api/types/index.d.ts +3 -13
  194. package/dist/api/types/index.js +3 -13
  195. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  196. package/dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  197. package/{serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +2 -2
  198. package/{serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +2 -2
  199. package/dist/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  200. package/dist/serialization/resources/collections/resources/items/types/index.js +1 -1
  201. package/dist/serialization/resources/index.d.ts +0 -5
  202. package/dist/serialization/resources/index.js +1 -6
  203. package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
  204. package/dist/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
  205. package/dist/serialization/types/AssetVariant.d.ts +6 -6
  206. package/dist/serialization/types/AssetVariant.js +6 -6
  207. package/dist/serialization/types/ForbiddenErrorBody.d.ts +2 -2
  208. package/dist/serialization/types/ForbiddenErrorBody.js +2 -2
  209. package/dist/serialization/types/SettingChange.d.ts +13 -0
  210. package/dist/serialization/types/{AccessGroup.js → SettingChange.js} +7 -7
  211. package/dist/serialization/types/SettingChangeAuditLogItem.d.ts +11 -0
  212. package/dist/serialization/types/{UserAccessGroupsItem.js → SettingChangeAuditLogItem.js} +5 -5
  213. package/dist/serialization/types/TriggerType.d.ts +1 -1
  214. package/dist/serialization/types/TriggerType.js +0 -3
  215. package/dist/serialization/types/WorkspaceAuditLogItem.d.ts +5 -1
  216. package/dist/serialization/types/WorkspaceAuditLogItem.js +2 -0
  217. package/dist/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +7 -0
  218. package/dist/serialization/types/{UserStatus.js → WorkspaceAuditLogItemPayloadSettingChangeMethod.js} +2 -2
  219. package/dist/serialization/types/index.d.ts +3 -13
  220. package/dist/serialization/types/index.js +3 -13
  221. package/dist/version.d.ts +1 -1
  222. package/dist/version.js +1 -1
  223. package/dist/wrapper/AssetsUtilitiesClient.d.ts +1 -1
  224. package/dist/wrapper/FormsClient.js +5 -5
  225. package/dist/wrapper/ItemsClient.js +20 -20
  226. package/dist/wrapper/PagesClient.js +5 -5
  227. package/dist/wrapper/WebflowClient.js +1 -1
  228. package/jest.config.mjs +1 -1
  229. package/package.json +2 -1
  230. package/reference.md +68 -544
  231. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.d.ts +2 -2
  232. package/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldData.js +2 -2
  233. package/{dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.d.ts → serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.d.ts} +2 -2
  234. package/{dist/serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → serialization/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +2 -2
  235. package/serialization/resources/collections/resources/items/types/index.d.ts +1 -1
  236. package/serialization/resources/collections/resources/items/types/index.js +1 -1
  237. package/serialization/resources/index.d.ts +0 -5
  238. package/serialization/resources/index.js +1 -6
  239. package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.d.ts +1 -1
  240. package/serialization/resources/workspaces/resources/auditLogs/types/AuditLogsGetWorkspaceAuditLogsRequestEventType.js +1 -0
  241. package/serialization/types/AssetVariant.d.ts +6 -6
  242. package/serialization/types/AssetVariant.js +6 -6
  243. package/serialization/types/ForbiddenErrorBody.d.ts +2 -2
  244. package/serialization/types/ForbiddenErrorBody.js +2 -2
  245. package/serialization/types/SettingChange.d.ts +13 -0
  246. package/{dist/serialization/types/AccessGroupList.js → serialization/types/SettingChange.js} +7 -8
  247. package/serialization/types/SettingChangeAuditLogItem.d.ts +11 -0
  248. package/serialization/types/{UserAccessGroupsItem.js → SettingChangeAuditLogItem.js} +5 -5
  249. package/serialization/types/TriggerType.d.ts +1 -1
  250. package/serialization/types/TriggerType.js +0 -3
  251. package/serialization/types/WorkspaceAuditLogItem.d.ts +5 -1
  252. package/serialization/types/WorkspaceAuditLogItem.js +2 -0
  253. package/serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.d.ts +7 -0
  254. package/{dist/serialization/types/UserLimitReached.js → serialization/types/WorkspaceAuditLogItemPayloadSettingChangeMethod.js} +2 -2
  255. package/serialization/types/index.d.ts +3 -13
  256. package/serialization/types/index.js +3 -13
  257. package/version.d.ts +1 -1
  258. package/version.js +1 -1
  259. package/wrapper/AssetsUtilitiesClient.d.ts +1 -1
  260. package/wrapper/FormsClient.js +5 -5
  261. package/wrapper/ItemsClient.js +20 -20
  262. package/wrapper/PagesClient.js +5 -5
  263. package/wrapper/WebflowClient.js +1 -1
  264. package/.mock/definition/__package__.yml +0 -4471
  265. package/.mock/definition/accessGroups.yml +0 -87
  266. package/.mock/definition/api.yml +0 -18
  267. package/.mock/definition/assets.yml +0 -487
  268. package/.mock/definition/collections/fields.yml +0 -212
  269. package/.mock/definition/collections/items.yml +0 -2145
  270. package/.mock/definition/collections.yml +0 -350
  271. package/.mock/definition/comments.yml +0 -41
  272. package/.mock/definition/components.yml +0 -548
  273. package/.mock/definition/ecommerce.yml +0 -45
  274. package/.mock/definition/forms.yml +0 -399
  275. package/.mock/definition/inventory.yml +0 -152
  276. package/.mock/definition/items.yml +0 -112
  277. package/.mock/definition/orders.yml +0 -1971
  278. package/.mock/definition/pages/scripts.yml +0 -155
  279. package/.mock/definition/pages.yml +0 -611
  280. package/.mock/definition/products.yml +0 -642
  281. package/.mock/definition/scripts.yml +0 -236
  282. package/.mock/definition/sites/activityLogs.yml +0 -77
  283. package/.mock/definition/sites/comments.yml +0 -352
  284. package/.mock/definition/sites/forms.yml +0 -316
  285. package/.mock/definition/sites/plans.yml +0 -48
  286. package/.mock/definition/sites/redirects.yml +0 -221
  287. package/.mock/definition/sites/robotsTxt.yml +0 -229
  288. package/.mock/definition/sites/scripts.yml +0 -243
  289. package/.mock/definition/sites/wellKnown.yml +0 -130
  290. package/.mock/definition/sites.yml +0 -558
  291. package/.mock/definition/token.yml +0 -75
  292. package/.mock/definition/users.yml +0 -594
  293. package/.mock/definition/webhooks.yml +0 -188
  294. package/.mock/definition/workspaces/auditLogs.yml +0 -125
  295. package/.mock/fern.config.json +0 -4
  296. package/api/resources/accessGroups/client/Client.d.ts +0 -39
  297. package/api/resources/accessGroups/client/Client.js +0 -197
  298. package/api/resources/accessGroups/client/index.d.ts +0 -1
  299. package/api/resources/accessGroups/client/index.js +0 -17
  300. package/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +0 -20
  301. package/api/resources/accessGroups/client/requests/index.d.ts +0 -1
  302. package/api/resources/accessGroups/client/requests/index.js +0 -2
  303. package/api/resources/accessGroups/index.d.ts +0 -2
  304. package/api/resources/accessGroups/index.js +0 -18
  305. package/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -9
  306. package/api/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -12
  307. package/api/resources/accessGroups/types/index.d.ts +0 -1
  308. package/api/resources/accessGroups/types/index.js +0 -17
  309. package/api/resources/users/client/Client.d.ts +0 -145
  310. package/api/resources/users/client/Client.js +0 -670
  311. package/api/resources/users/client/index.d.ts +0 -1
  312. package/api/resources/users/client/index.js +0 -17
  313. package/api/resources/users/client/requests/UsersInviteRequest.d.ts +0 -13
  314. package/api/resources/users/client/requests/UsersListRequest.d.ts +0 -23
  315. package/api/resources/users/client/requests/index.d.ts +0 -2
  316. package/api/resources/users/client/requests/index.js +0 -2
  317. package/api/resources/users/index.d.ts +0 -2
  318. package/api/resources/users/index.js +0 -18
  319. package/api/resources/users/types/UserAccountAddedPayload.d.ts +0 -5
  320. package/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
  321. package/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -9
  322. package/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -3
  323. package/api/resources/users/types/UserAccountDeletedPayload.d.ts +0 -5
  324. package/api/resources/users/types/UserAccountDeletedPayload.js +0 -3
  325. package/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
  326. package/api/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -3
  327. package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -9
  328. package/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -3
  329. package/api/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -5
  330. package/api/resources/users/types/UserAccountUpdatedPayload.js +0 -3
  331. package/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
  332. package/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -3
  333. package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -9
  334. package/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -3
  335. package/api/resources/users/types/UsersListRequestSort.d.ts +0 -33
  336. package/api/resources/users/types/UsersListRequestSort.js +0 -36
  337. package/api/resources/users/types/index.d.ts +0 -10
  338. package/api/resources/users/types/index.js +0 -26
  339. package/api/types/AccessGroup.d.ts +0 -12
  340. package/api/types/AccessGroup.js +0 -3
  341. package/api/types/AccessGroupList.d.ts +0 -16
  342. package/api/types/AccessGroupList.js +0 -3
  343. package/api/types/ConflictErrorBody.d.ts +0 -2
  344. package/api/types/ConflictErrorBody.js +0 -3
  345. package/api/types/DuplicateUserEmail.d.ts +0 -1
  346. package/api/types/DuplicateUserEmail.js +0 -3
  347. package/api/types/User.d.ts +0 -22
  348. package/api/types/User.js +0 -3
  349. package/api/types/UserAccessGroupsItem.d.ts +0 -14
  350. package/api/types/UserAccessGroupsItem.js +0 -3
  351. package/api/types/UserAccessGroupsItemType.d.ts +0 -10
  352. package/api/types/UserAccessGroupsItemType.js +0 -13
  353. package/api/types/UserData.d.ts +0 -7
  354. package/api/types/UserData.js +0 -3
  355. package/api/types/UserDataData.d.ts +0 -12
  356. package/api/types/UserDataData.js +0 -3
  357. package/api/types/UserLimitReached.d.ts +0 -1
  358. package/api/types/UserLimitReached.js +0 -3
  359. package/api/types/UserList.d.ts +0 -16
  360. package/api/types/UserList.js +0 -3
  361. package/api/types/UserStatus.d.ts +0 -7
  362. package/api/types/UserStatus.js +0 -10
  363. package/api/types/UsersNotEnabled.d.ts +0 -1
  364. package/api/types/UsersNotEnabled.js +0 -3
  365. package/dist/api/resources/accessGroups/client/Client.d.ts +0 -39
  366. package/dist/api/resources/accessGroups/client/Client.js +0 -197
  367. package/dist/api/resources/accessGroups/client/index.d.ts +0 -1
  368. package/dist/api/resources/accessGroups/client/index.js +0 -17
  369. package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.d.ts +0 -20
  370. package/dist/api/resources/accessGroups/client/requests/AccessGroupsListRequest.js +0 -3
  371. package/dist/api/resources/accessGroups/client/requests/index.d.ts +0 -1
  372. package/dist/api/resources/accessGroups/client/requests/index.js +0 -2
  373. package/dist/api/resources/accessGroups/index.d.ts +0 -2
  374. package/dist/api/resources/accessGroups/index.js +0 -18
  375. package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -9
  376. package/dist/api/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -12
  377. package/dist/api/resources/accessGroups/types/index.d.ts +0 -1
  378. package/dist/api/resources/accessGroups/types/index.js +0 -17
  379. package/dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js +0 -3
  380. package/dist/api/resources/users/client/Client.d.ts +0 -145
  381. package/dist/api/resources/users/client/Client.js +0 -670
  382. package/dist/api/resources/users/client/index.d.ts +0 -1
  383. package/dist/api/resources/users/client/index.js +0 -17
  384. package/dist/api/resources/users/client/requests/UsersInviteRequest.d.ts +0 -13
  385. package/dist/api/resources/users/client/requests/UsersInviteRequest.js +0 -3
  386. package/dist/api/resources/users/client/requests/UsersListRequest.d.ts +0 -23
  387. package/dist/api/resources/users/client/requests/UsersListRequest.js +0 -3
  388. package/dist/api/resources/users/client/requests/index.d.ts +0 -2
  389. package/dist/api/resources/users/client/requests/index.js +0 -2
  390. package/dist/api/resources/users/index.d.ts +0 -2
  391. package/dist/api/resources/users/index.js +0 -18
  392. package/dist/api/resources/users/types/UserAccountAddedPayload.d.ts +0 -5
  393. package/dist/api/resources/users/types/UserAccountAddedPayload.js +0 -3
  394. package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
  395. package/dist/api/resources/users/types/UserAccountAddedPayloadPayload.js +0 -3
  396. package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -9
  397. package/dist/api/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -3
  398. package/dist/api/resources/users/types/UserAccountDeletedPayload.d.ts +0 -5
  399. package/dist/api/resources/users/types/UserAccountDeletedPayload.js +0 -3
  400. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
  401. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -3
  402. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -9
  403. package/dist/api/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -3
  404. package/dist/api/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -5
  405. package/dist/api/resources/users/types/UserAccountUpdatedPayload.js +0 -3
  406. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
  407. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -3
  408. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -9
  409. package/dist/api/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -3
  410. package/dist/api/resources/users/types/UsersListRequestSort.d.ts +0 -33
  411. package/dist/api/resources/users/types/UsersListRequestSort.js +0 -36
  412. package/dist/api/resources/users/types/index.d.ts +0 -10
  413. package/dist/api/resources/users/types/index.js +0 -26
  414. package/dist/api/types/AccessGroup.d.ts +0 -12
  415. package/dist/api/types/AccessGroup.js +0 -3
  416. package/dist/api/types/AccessGroupList.d.ts +0 -16
  417. package/dist/api/types/AccessGroupList.js +0 -3
  418. package/dist/api/types/ConflictErrorBody.d.ts +0 -2
  419. package/dist/api/types/ConflictErrorBody.js +0 -3
  420. package/dist/api/types/DuplicateUserEmail.d.ts +0 -1
  421. package/dist/api/types/DuplicateUserEmail.js +0 -3
  422. package/dist/api/types/User.d.ts +0 -22
  423. package/dist/api/types/User.js +0 -3
  424. package/dist/api/types/UserAccessGroupsItem.d.ts +0 -14
  425. package/dist/api/types/UserAccessGroupsItem.js +0 -3
  426. package/dist/api/types/UserAccessGroupsItemType.d.ts +0 -10
  427. package/dist/api/types/UserAccessGroupsItemType.js +0 -13
  428. package/dist/api/types/UserData.d.ts +0 -7
  429. package/dist/api/types/UserData.js +0 -3
  430. package/dist/api/types/UserDataData.d.ts +0 -12
  431. package/dist/api/types/UserDataData.js +0 -3
  432. package/dist/api/types/UserLimitReached.d.ts +0 -1
  433. package/dist/api/types/UserLimitReached.js +0 -3
  434. package/dist/api/types/UserList.d.ts +0 -16
  435. package/dist/api/types/UserList.js +0 -3
  436. package/dist/api/types/UserStatus.d.ts +0 -7
  437. package/dist/api/types/UserStatus.js +0 -10
  438. package/dist/api/types/UsersNotEnabled.d.ts +0 -1
  439. package/dist/api/types/UsersNotEnabled.js +0 -3
  440. package/dist/serialization/resources/accessGroups/index.d.ts +0 -1
  441. package/dist/serialization/resources/accessGroups/index.js +0 -17
  442. package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -7
  443. package/dist/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -39
  444. package/dist/serialization/resources/accessGroups/types/index.d.ts +0 -1
  445. package/dist/serialization/resources/accessGroups/types/index.js +0 -17
  446. package/dist/serialization/resources/users/client/index.d.ts +0 -1
  447. package/dist/serialization/resources/users/client/index.js +0 -17
  448. package/dist/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +0 -10
  449. package/dist/serialization/resources/users/client/requests/UsersInviteRequest.js +0 -42
  450. package/dist/serialization/resources/users/client/requests/index.d.ts +0 -1
  451. package/dist/serialization/resources/users/client/requests/index.js +0 -5
  452. package/dist/serialization/resources/users/index.d.ts +0 -2
  453. package/dist/serialization/resources/users/index.js +0 -18
  454. package/dist/serialization/resources/users/types/UserAccountAddedPayload.d.ts +0 -11
  455. package/dist/serialization/resources/users/types/UserAccountAddedPayload.js +0 -43
  456. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
  457. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +0 -52
  458. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -12
  459. package/dist/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -44
  460. package/dist/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +0 -11
  461. package/dist/serialization/resources/users/types/UserAccountDeletedPayload.js +0 -43
  462. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
  463. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -52
  464. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -12
  465. package/dist/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -44
  466. package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -11
  467. package/dist/serialization/resources/users/types/UserAccountUpdatedPayload.js +0 -43
  468. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
  469. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -52
  470. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -12
  471. package/dist/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -44
  472. package/dist/serialization/resources/users/types/UsersListRequestSort.d.ts +0 -7
  473. package/dist/serialization/resources/users/types/UsersListRequestSort.js +0 -50
  474. package/dist/serialization/resources/users/types/index.d.ts +0 -10
  475. package/dist/serialization/resources/users/types/index.js +0 -26
  476. package/dist/serialization/types/AccessGroup.d.ts +0 -13
  477. package/dist/serialization/types/AccessGroupList.d.ts +0 -14
  478. package/dist/serialization/types/ConflictErrorBody.d.ts +0 -9
  479. package/dist/serialization/types/ConflictErrorBody.js +0 -41
  480. package/dist/serialization/types/DuplicateUserEmail.d.ts +0 -7
  481. package/dist/serialization/types/DuplicateUserEmail.js +0 -39
  482. package/dist/serialization/types/User.d.ts +0 -20
  483. package/dist/serialization/types/User.js +0 -52
  484. package/dist/serialization/types/UserAccessGroupsItem.d.ts +0 -11
  485. package/dist/serialization/types/UserAccessGroupsItemType.d.ts +0 -7
  486. package/dist/serialization/types/UserAccessGroupsItemType.js +0 -39
  487. package/dist/serialization/types/UserData.d.ts +0 -10
  488. package/dist/serialization/types/UserData.js +0 -42
  489. package/dist/serialization/types/UserDataData.d.ts +0 -13
  490. package/dist/serialization/types/UserDataData.js +0 -45
  491. package/dist/serialization/types/UserLimitReached.d.ts +0 -7
  492. package/dist/serialization/types/UserList.d.ts +0 -14
  493. package/dist/serialization/types/UserList.js +0 -46
  494. package/dist/serialization/types/UserStatus.d.ts +0 -7
  495. package/dist/serialization/types/UsersNotEnabled.d.ts +0 -7
  496. package/dist/serialization/types/UsersNotEnabled.js +0 -39
  497. package/serialization/resources/accessGroups/index.d.ts +0 -1
  498. package/serialization/resources/accessGroups/index.js +0 -17
  499. package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.d.ts +0 -7
  500. package/serialization/resources/accessGroups/types/AccessGroupsListRequestSort.js +0 -39
  501. package/serialization/resources/accessGroups/types/index.d.ts +0 -1
  502. package/serialization/resources/accessGroups/types/index.js +0 -17
  503. package/serialization/resources/users/client/index.d.ts +0 -1
  504. package/serialization/resources/users/client/index.js +0 -17
  505. package/serialization/resources/users/client/requests/UsersInviteRequest.d.ts +0 -10
  506. package/serialization/resources/users/client/requests/UsersInviteRequest.js +0 -42
  507. package/serialization/resources/users/client/requests/index.d.ts +0 -1
  508. package/serialization/resources/users/client/requests/index.js +0 -5
  509. package/serialization/resources/users/index.d.ts +0 -2
  510. package/serialization/resources/users/index.js +0 -18
  511. package/serialization/resources/users/types/UserAccountAddedPayload.d.ts +0 -11
  512. package/serialization/resources/users/types/UserAccountAddedPayload.js +0 -43
  513. package/serialization/resources/users/types/UserAccountAddedPayloadPayload.d.ts +0 -20
  514. package/serialization/resources/users/types/UserAccountAddedPayloadPayload.js +0 -52
  515. package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.d.ts +0 -12
  516. package/serialization/resources/users/types/UserAccountAddedPayloadPayloadData.js +0 -44
  517. package/serialization/resources/users/types/UserAccountDeletedPayload.d.ts +0 -11
  518. package/serialization/resources/users/types/UserAccountDeletedPayload.js +0 -43
  519. package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.d.ts +0 -20
  520. package/serialization/resources/users/types/UserAccountDeletedPayloadPayload.js +0 -52
  521. package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.d.ts +0 -12
  522. package/serialization/resources/users/types/UserAccountDeletedPayloadPayloadData.js +0 -44
  523. package/serialization/resources/users/types/UserAccountUpdatedPayload.d.ts +0 -11
  524. package/serialization/resources/users/types/UserAccountUpdatedPayload.js +0 -43
  525. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.d.ts +0 -20
  526. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayload.js +0 -52
  527. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.d.ts +0 -12
  528. package/serialization/resources/users/types/UserAccountUpdatedPayloadPayloadData.js +0 -44
  529. package/serialization/resources/users/types/UsersListRequestSort.d.ts +0 -7
  530. package/serialization/resources/users/types/UsersListRequestSort.js +0 -50
  531. package/serialization/resources/users/types/index.d.ts +0 -10
  532. package/serialization/resources/users/types/index.js +0 -26
  533. package/serialization/types/AccessGroup.d.ts +0 -13
  534. package/serialization/types/AccessGroup.js +0 -45
  535. package/serialization/types/AccessGroupList.d.ts +0 -14
  536. package/serialization/types/AccessGroupList.js +0 -46
  537. package/serialization/types/ConflictErrorBody.d.ts +0 -9
  538. package/serialization/types/ConflictErrorBody.js +0 -41
  539. package/serialization/types/DuplicateUserEmail.d.ts +0 -7
  540. package/serialization/types/DuplicateUserEmail.js +0 -39
  541. package/serialization/types/User.d.ts +0 -20
  542. package/serialization/types/User.js +0 -52
  543. package/serialization/types/UserAccessGroupsItem.d.ts +0 -11
  544. package/serialization/types/UserAccessGroupsItemType.d.ts +0 -7
  545. package/serialization/types/UserAccessGroupsItemType.js +0 -39
  546. package/serialization/types/UserData.d.ts +0 -10
  547. package/serialization/types/UserData.js +0 -42
  548. package/serialization/types/UserDataData.d.ts +0 -13
  549. package/serialization/types/UserDataData.js +0 -45
  550. package/serialization/types/UserLimitReached.d.ts +0 -7
  551. package/serialization/types/UserLimitReached.js +0 -39
  552. package/serialization/types/UserList.d.ts +0 -14
  553. package/serialization/types/UserList.js +0 -46
  554. package/serialization/types/UserStatus.d.ts +0 -7
  555. package/serialization/types/UserStatus.js +0 -39
  556. package/serialization/types/UsersNotEnabled.d.ts +0 -7
  557. package/serialization/types/UsersNotEnabled.js +0 -39
  558. /package/api/resources/{accessGroups/client/requests/AccessGroupsListRequest.js → collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +0 -0
  559. /package/api/{resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataItem.js → types/SettingChange.js} +0 -0
  560. /package/api/{resources/users/client/requests/UsersInviteRequest.js → types/SettingChangeAuditLogItem.js} +0 -0
  561. /package/{api/resources/users/client/requests/UsersListRequest.js → dist/api/resources/collections/resources/items/types/CreateBulkCollectionItemRequestBodyFieldDataOneItem.js} +0 -0
  562. /package/{api/resources/users/types/UserAccountAddedPayload.js → dist/api/types/SettingChange.js} +0 -0
  563. /package/{api/resources/users/types/UserAccountAddedPayloadPayload.js → dist/api/types/SettingChangeAuditLogItem.js} +0 -0
package/BaseClient.d.ts CHANGED
@@ -4,7 +4,7 @@ export interface BaseClientOptions {
4
4
  environment?: core.Supplier<environments.WebflowEnvironment | environments.WebflowEnvironmentUrls>;
5
5
  /** Specify a custom URL to connect the client to. */
6
6
  baseUrl?: core.Supplier<string>;
7
- accessToken?: core.Supplier<core.BearerToken | undefined>;
7
+ accessToken: core.Supplier<core.BearerToken>;
8
8
  /** Additional headers to include in requests. */
9
9
  headers?: Record<string, string | core.Supplier<string | null | undefined> | null | undefined>;
10
10
  /** The default maximum time to wait for a response in seconds. */
package/Client.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import { AccessGroups } from "./api/resources/accessGroups/client/Client";
2
1
  import { Assets } from "./api/resources/assets/client/Client";
3
2
  import { Collections } from "./api/resources/collections/client/Client";
4
3
  import { Components } from "./api/resources/components/client/Client";
@@ -11,7 +10,6 @@ import { Products } from "./api/resources/products/client/Client";
11
10
  import { Scripts } from "./api/resources/scripts/client/Client";
12
11
  import { Sites } from "./api/resources/sites/client/Client";
13
12
  import { Token } from "./api/resources/token/client/Client";
14
- import { Users } from "./api/resources/users/client/Client";
15
13
  import { Webhooks } from "./api/resources/webhooks/client/Client";
16
14
  import { Workspaces } from "./api/resources/workspaces/client/Client";
17
15
  import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient";
@@ -32,14 +30,12 @@ export declare class WebflowClient {
32
30
  protected _assets: Assets | undefined;
33
31
  protected _webhooks: Webhooks | undefined;
34
32
  protected _forms: Forms | undefined;
35
- protected _users: Users | undefined;
36
- protected _accessGroups: AccessGroups | undefined;
37
33
  protected _products: Products | undefined;
38
34
  protected _orders: Orders | undefined;
39
35
  protected _inventory: Inventory | undefined;
40
36
  protected _ecommerce: Ecommerce | undefined;
41
37
  protected _workspaces: Workspaces | undefined;
42
- constructor(_options?: WebflowClient.Options);
38
+ constructor(_options: WebflowClient.Options);
43
39
  get token(): Token;
44
40
  get sites(): Sites;
45
41
  get collections(): Collections;
@@ -49,8 +45,6 @@ export declare class WebflowClient {
49
45
  get assets(): Assets;
50
46
  get webhooks(): Webhooks;
51
47
  get forms(): Forms;
52
- get users(): Users;
53
- get accessGroups(): AccessGroups;
54
48
  get products(): Products;
55
49
  get orders(): Orders;
56
50
  get inventory(): Inventory;
package/Client.js CHANGED
@@ -35,98 +35,88 @@ var __importStar = (this && this.__importStar) || (function () {
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
37
  exports.WebflowClient = void 0;
38
- const Client_1 = require("./api/resources/accessGroups/client/Client");
39
- const Client_2 = require("./api/resources/assets/client/Client");
40
- const Client_3 = require("./api/resources/collections/client/Client");
41
- const Client_4 = require("./api/resources/components/client/Client");
42
- const Client_5 = require("./api/resources/ecommerce/client/Client");
43
- const Client_6 = require("./api/resources/forms/client/Client");
44
- const Client_7 = require("./api/resources/inventory/client/Client");
45
- const Client_8 = require("./api/resources/orders/client/Client");
46
- const Client_9 = require("./api/resources/pages/client/Client");
47
- const Client_10 = require("./api/resources/products/client/Client");
48
- const Client_11 = require("./api/resources/scripts/client/Client");
49
- const Client_12 = require("./api/resources/sites/client/Client");
50
- const Client_13 = require("./api/resources/token/client/Client");
51
- const Client_14 = require("./api/resources/users/client/Client");
52
- const Client_15 = require("./api/resources/webhooks/client/Client");
53
- const Client_16 = require("./api/resources/workspaces/client/Client");
38
+ const Client_1 = require("./api/resources/assets/client/Client");
39
+ const Client_2 = require("./api/resources/collections/client/Client");
40
+ const Client_3 = require("./api/resources/components/client/Client");
41
+ const Client_4 = require("./api/resources/ecommerce/client/Client");
42
+ const Client_5 = require("./api/resources/forms/client/Client");
43
+ const Client_6 = require("./api/resources/inventory/client/Client");
44
+ const Client_7 = require("./api/resources/orders/client/Client");
45
+ const Client_8 = require("./api/resources/pages/client/Client");
46
+ const Client_9 = require("./api/resources/products/client/Client");
47
+ const Client_10 = require("./api/resources/scripts/client/Client");
48
+ const Client_11 = require("./api/resources/sites/client/Client");
49
+ const Client_12 = require("./api/resources/token/client/Client");
50
+ const Client_13 = require("./api/resources/webhooks/client/Client");
51
+ const Client_14 = require("./api/resources/workspaces/client/Client");
54
52
  const core = __importStar(require("./core"));
55
53
  const headers_1 = require("./core/headers");
56
54
  class WebflowClient {
57
- constructor(_options = {}) {
55
+ constructor(_options) {
58
56
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_1.mergeHeaders)({
59
57
  "X-Fern-Language": "JavaScript",
60
58
  "X-Fern-SDK-Name": "webflow-api",
61
- "X-Fern-SDK-Version": "3.3.0-beta",
62
- "User-Agent": "webflow-api/3.3.0-beta",
59
+ "X-Fern-SDK-Version": "3.3.1",
60
+ "User-Agent": "webflow-api/3.3.1",
63
61
  "X-Fern-Runtime": core.RUNTIME.type,
64
62
  "X-Fern-Runtime-Version": core.RUNTIME.version,
65
63
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
66
64
  }
67
65
  get token() {
68
66
  var _a;
69
- return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new Client_13.Token(this._options)));
67
+ return ((_a = this._token) !== null && _a !== void 0 ? _a : (this._token = new Client_12.Token(this._options)));
70
68
  }
71
69
  get sites() {
72
70
  var _a;
73
- return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new Client_12.Sites(this._options)));
71
+ return ((_a = this._sites) !== null && _a !== void 0 ? _a : (this._sites = new Client_11.Sites(this._options)));
74
72
  }
75
73
  get collections() {
76
74
  var _a;
77
- return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_3.Collections(this._options)));
75
+ return ((_a = this._collections) !== null && _a !== void 0 ? _a : (this._collections = new Client_2.Collections(this._options)));
78
76
  }
79
77
  get pages() {
80
78
  var _a;
81
- return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new Client_9.Pages(this._options)));
79
+ return ((_a = this._pages) !== null && _a !== void 0 ? _a : (this._pages = new Client_8.Pages(this._options)));
82
80
  }
83
81
  get components() {
84
82
  var _a;
85
- return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new Client_4.Components(this._options)));
83
+ return ((_a = this._components) !== null && _a !== void 0 ? _a : (this._components = new Client_3.Components(this._options)));
86
84
  }
87
85
  get scripts() {
88
86
  var _a;
89
- return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_11.Scripts(this._options)));
87
+ return ((_a = this._scripts) !== null && _a !== void 0 ? _a : (this._scripts = new Client_10.Scripts(this._options)));
90
88
  }
91
89
  get assets() {
92
90
  var _a;
93
- return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_2.Assets(this._options)));
91
+ return ((_a = this._assets) !== null && _a !== void 0 ? _a : (this._assets = new Client_1.Assets(this._options)));
94
92
  }
95
93
  get webhooks() {
96
94
  var _a;
97
- return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_15.Webhooks(this._options)));
95
+ return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_13.Webhooks(this._options)));
98
96
  }
99
97
  get forms() {
100
98
  var _a;
101
- return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_6.Forms(this._options)));
102
- }
103
- get users() {
104
- var _a;
105
- return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_14.Users(this._options)));
106
- }
107
- get accessGroups() {
108
- var _a;
109
- return ((_a = this._accessGroups) !== null && _a !== void 0 ? _a : (this._accessGroups = new Client_1.AccessGroups(this._options)));
99
+ return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_5.Forms(this._options)));
110
100
  }
111
101
  get products() {
112
102
  var _a;
113
- return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_10.Products(this._options)));
103
+ return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Client_9.Products(this._options)));
114
104
  }
115
105
  get orders() {
116
106
  var _a;
117
- return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_8.Orders(this._options)));
107
+ return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Client_7.Orders(this._options)));
118
108
  }
119
109
  get inventory() {
120
110
  var _a;
121
- return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_7.Inventory(this._options)));
111
+ return ((_a = this._inventory) !== null && _a !== void 0 ? _a : (this._inventory = new Client_6.Inventory(this._options)));
122
112
  }
123
113
  get ecommerce() {
124
114
  var _a;
125
- return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_5.Ecommerce(this._options)));
115
+ return ((_a = this._ecommerce) !== null && _a !== void 0 ? _a : (this._ecommerce = new Client_4.Ecommerce(this._options)));
126
116
  }
127
117
  get workspaces() {
128
118
  var _a;
129
- return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_16.Workspaces(this._options)));
119
+ return ((_a = this._workspaces) !== null && _a !== void 0 ? _a : (this._workspaces = new Client_14.Workspaces(this._options)));
130
120
  }
131
121
  }
132
122
  exports.WebflowClient = WebflowClient;
package/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- Copyright (c) 2025 Webflow, Inc
1
+ MIT License
2
2
 
3
- Permission is hereby granted, free of charge, to any person ob-
4
- taining a copy of this software and associated documentation
5
- files (the "Software"), to deal in the Software without restric-
6
- tion, including without limitation the rights to use, copy, modi-
7
- fy, merge, publish, distribute, sublicense, and/or sell copies of
8
- the Software, and to permit persons to whom the Software is fur-
9
- nished to do so, subject to the following conditions:
3
+ Copyright (c) 2026 Webflow.
10
4
 
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
13
11
 
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
16
- OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONIN-
17
- FRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19
- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Webflow JS SDK
1
+ # Webflow JavaScript/TypeScript SDK
2
2
 
3
3
  [![npm shield](https://img.shields.io/npm/v/webflow-api)](https://www.npmjs.com/package/webflow-api)
4
4
  [![fern shield](https://img.shields.io/badge/%F0%9F%8C%BF-SDK%20generated%20by%20Fern-brightgreen)](https://github.com/fern-api/fern)
@@ -19,43 +19,56 @@ Add this dependency to your project's package.json file:
19
19
  Using npm:
20
20
 
21
21
  ```shell
22
- $ npm install webflow-api
22
+ npm install webflow-api
23
23
  ```
24
24
 
25
- Using yarn
25
+ Using yarn:
26
26
 
27
27
  ```shell
28
- $ yarn add webflow-api
28
+ yarn add webflow-api
29
29
  ```
30
30
 
31
+ ## Authentication
32
+
33
+ You can use a workspace token to access all of the sites in your Webflow Workspace or a site token to access a single site.
34
+
35
+ - To get a workspace token, open the [Webflow Dashboard](https://webflow.com/dashboard?utm_source=dashboard), click **Apps & Integrations > Manage**, and under **Workspace API access**, click **Generate API token**.
36
+
37
+ - To get a site token, find the site in the [Webflow Dashboard](https://webflow.com/dashboard?utm_source=dashboard), open its settings, and under **API access**, click **Generate API token**.
38
+
39
+ For more information about tokens, see [Authentication](https://developers.webflow.com/data/reference/authentication) in the Webflow documentation.
40
+
41
+ For more complex authentication with OAuth, see [OAuth](#oauth) below.
42
+
31
43
  ## Usage
32
44
 
33
- Simply import `Webflow` and start making calls to our API.
45
+ To use the SDK, import the `webflow-api` package, provide your access token, and make calls to the Webflow API, as in this example:
34
46
 
35
47
  ```javascript
36
48
  import { WebflowClient } from "webflow-api";
37
49
 
38
- const webflow = new WebflowClient({ accessToken });
50
+ // Workspace or site token
51
+ const webflow = new WebflowClient({
52
+ accessToken: process.env.WEBFLOW_API_TOKEN,
53
+ });
39
54
 
40
- // Env. variables
41
- // in format of string, e.g.: "639656400769508adc12fe42"
55
+ // Environment variables
56
+ // in string format, such as "639656400769508adc12fe42"
42
57
  const site_id = process.env.SITE_ID;
43
58
  const custom_domain_id_1 = process.env.CUSTOM_DOMAIN_ID_1;
44
59
  const custom_domain_id_2 = process.env.CUSTOM_DOMAIN_ID_2;
45
60
 
46
- // Sites
47
-
48
- // List Sites
61
+ // List sites
49
62
  const sites = await webflow.sites.list();
50
63
 
51
- // Get Site
52
- const site = await webflow.sites.get("site_id");
64
+ // Get site
65
+ const site = await webflow.sites.get(site_id);
53
66
 
54
- // Get Custom Domains
67
+ // Get custom domains
55
68
  const customDomains = await webflow.sites.getCustomDomain(site_id);
56
69
 
57
- // Publish Site
58
- const site = await webflow.sites.publish(site_id, {
70
+ // Publish site
71
+ const publishRequest = await webflow.sites.publish(site_id, {
59
72
  customDomains: [custom_domain_id_1, custom_domain_id_2],
60
73
  publishToWebflowSubdomain: true,
61
74
  });
@@ -63,13 +76,19 @@ const site = await webflow.sites.publish(site_id, {
63
76
 
64
77
  ## OAuth
65
78
 
66
- To implement OAuth, you'll need to [register a Webflow App in your Workspace](https://developers.webflow.com/reference/authorization)
79
+ To implement OAuth, you must register a Webflow App in your Workspace with the "Data CLient" building block and get its client ID and secret.
80
+ See https://developers.webflow.com/apps/data/docs/register-an-app.
67
81
 
68
- ### Step 1: Authorize URL
82
+ To get the client ID, edit the App in your workspace, go to the Building Blocks tab, and copy the ID from the **Client ID** field.
69
83
 
70
- The first step in OAuth is to generate an Authorization URL. Use this URL
71
- to fetch your Authorization Code. See the [docs](https://docs.developers.webflow.com/v1.0.0/docs/oauth#user-authorization)
72
- for more details.
84
+ For full instructions, see https://developers.webflow.com/data/reference/oauth-app.
85
+
86
+ ### Step 1: Generate an authorization URL
87
+
88
+ The first step in OAuth is to generate an authorization URL.
89
+ You direct your users to go to this URL, which prompts them to approve the App's access to specific sites or Workspaces.
90
+
91
+ This example code generates the authorization URL:
73
92
 
74
93
  ```javascript
75
94
  import { WebflowClient } from "webflow-api";
@@ -84,16 +103,18 @@ const authorizeUrl = WebflowClient.authorizeURL({
84
103
  console.log(authorizeUrl);
85
104
  ```
86
105
 
87
- ### Step 2: Retrieve your access token
106
+ ### Step 2: Retrieve an access token
107
+
108
+ The callback from the authorization URL includes the state that you set in the request and an authorization code.
109
+ You can use this authorization code to generate an access token for the App.
88
110
 
89
- Use the `getAccessToken` function and pass in your `client_id`,
90
- `client_secret`, and `authorization_code`.
111
+ This example passes the App's client ID and secret and the authorization code to the `getAccessToken` function:
91
112
 
92
113
  ```javascript
93
114
  import { WebflowClient } from "webflow-api";
94
115
 
95
116
  const accessToken = WebflowClient.getAccessToken({
96
- clientId: "your_client_id",
117
+ clientId: "your_client_id",
97
118
  clientSecret: "your_client_secret",
98
119
  code: "your_authorization_code"
99
120
  });
@@ -101,14 +122,20 @@ const accessToken = WebflowClient.getAccessToken({
101
122
 
102
123
  ### Step 3: Instantiate the client
103
124
 
104
- Instantiate the client using your `access_token`.
125
+ Instantiate the client using the access token:
105
126
 
106
127
  ```javascript
107
128
  import { WebflowClient } from "webflow-api";
108
129
 
109
- const webflow = WebflowClient({ accessToken });
130
+ const webflow = new WebflowClient({ accessToken });
131
+
132
+ const {sites} = await webflow.sites.list();
133
+
134
+ console.log(sites);
110
135
  ```
111
136
 
137
+ Now the App has access to the sites or Workspaces that the user allowed access to.
138
+
112
139
  ## Webflow Types
113
140
 
114
141
  All of the types are nested within the `Webflow` namespace. Let IntelliSense
@@ -150,7 +177,7 @@ const sites = await webflow.sites.get(..., {
150
177
  ```
151
178
 
152
179
  ### Retries
153
- The SDK will automatically retry failures with exponential backoff.
180
+ The SDK will automatically retry failures with exponential backoff.
154
181
  You can configure the retries by setting maxRetries.
155
182
 
156
183
  ```javascript
@@ -12,7 +12,7 @@ export declare namespace Assets {
12
12
  */
13
13
  export declare class Assets {
14
14
  protected readonly _options: Assets.Options;
15
- constructor(_options?: Assets.Options);
15
+ constructor(_options: Assets.Options);
16
16
  /**
17
17
  * List of assets uploaded to a site
18
18
  *
@@ -30,8 +30,8 @@ export declare class Assets {
30
30
  *
31
31
  * @example
32
32
  * await client.assets.list("580e63e98c9a982ac9b8b741", {
33
- * offset: 1.1,
34
- * limit: 1.1
33
+ * offset: 1,
34
+ * limit: 1
35
35
  * })
36
36
  */
37
37
  list(siteId: string, request?: Webflow.AssetsListRequest, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.Assets>;
@@ -186,5 +186,5 @@ export declare class Assets {
186
186
  */
187
187
  getFolder(assetFolderId: string, requestOptions?: Assets.RequestOptions): core.HttpResponsePromise<Webflow.AssetFolder>;
188
188
  private __getFolder;
189
- protected _getAuthorizationHeader(): Promise<string | undefined>;
189
+ protected _getAuthorizationHeader(): Promise<string>;
190
190
  }
@@ -54,7 +54,7 @@ const Webflow = __importStar(require("../../../index"));
54
54
  * Assets are files that are uploaded to your Webflow account.
55
55
  */
56
56
  class Assets {
57
- constructor(_options = {}) {
57
+ constructor(_options) {
58
58
  this._options = _options;
59
59
  }
60
60
  /**
@@ -74,8 +74,8 @@ class Assets {
74
74
  *
75
75
  * @example
76
76
  * await client.assets.list("580e63e98c9a982ac9b8b741", {
77
- * offset: 1.1,
78
- * limit: 1.1
77
+ * offset: 1,
78
+ * limit: 1
79
79
  * })
80
80
  */
81
81
  list(siteId, request = {}, requestOptions) {
@@ -225,6 +225,7 @@ class Assets {
225
225
  unrecognizedObjectKeys: "passthrough",
226
226
  allowUnrecognizedUnionMembers: true,
227
227
  allowUnrecognizedEnumValues: true,
228
+ omitUndefined: true,
228
229
  }),
229
230
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
230
231
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -545,6 +546,7 @@ class Assets {
545
546
  unrecognizedObjectKeys: "passthrough",
546
547
  allowUnrecognizedUnionMembers: true,
547
548
  allowUnrecognizedEnumValues: true,
549
+ omitUndefined: true,
548
550
  }),
549
551
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
550
552
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -769,6 +771,7 @@ class Assets {
769
771
  unrecognizedObjectKeys: "passthrough",
770
772
  allowUnrecognizedUnionMembers: true,
771
773
  allowUnrecognizedEnumValues: true,
774
+ omitUndefined: true,
772
775
  }),
773
776
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
774
777
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -956,11 +959,7 @@ class Assets {
956
959
  }
957
960
  _getAuthorizationHeader() {
958
961
  return __awaiter(this, void 0, void 0, function* () {
959
- const bearer = yield core.Supplier.get(this._options.accessToken);
960
- if (bearer != null) {
961
- return `Bearer ${bearer}`;
962
- }
963
- return undefined;
962
+ return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
964
963
  });
965
964
  }
966
965
  }
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @example
3
3
  * {
4
- * offset: 1.1,
5
- * limit: 1.1
4
+ * offset: 1,
5
+ * limit: 1
6
6
  * }
7
7
  */
8
8
  export interface AssetsListRequest {
@@ -16,7 +16,7 @@ export declare class Collections {
16
16
  protected readonly _options: Collections.Options;
17
17
  protected _fields: Fields | undefined;
18
18
  protected _items: Items | undefined;
19
- constructor(_options?: Collections.Options);
19
+ constructor(_options: Collections.Options);
20
20
  get fields(): Fields;
21
21
  get items(): Items;
22
22
  /**
@@ -122,5 +122,5 @@ export declare class Collections {
122
122
  */
123
123
  delete(collectionId: string, requestOptions?: Collections.RequestOptions): core.HttpResponsePromise<void>;
124
124
  private __delete;
125
- protected _getAuthorizationHeader(): Promise<string | undefined>;
125
+ protected _getAuthorizationHeader(): Promise<string>;
126
126
  }
@@ -56,7 +56,7 @@ const Client_2 = require("../resources/items/client/Client");
56
56
  * Collections are CMS collections of items.
57
57
  */
58
58
  class Collections {
59
- constructor(_options = {}) {
59
+ constructor(_options) {
60
60
  this._options = _options;
61
61
  }
62
62
  get fields() {
@@ -237,6 +237,7 @@ class Collections {
237
237
  unrecognizedObjectKeys: "passthrough",
238
238
  allowUnrecognizedUnionMembers: true,
239
239
  allowUnrecognizedEnumValues: true,
240
+ omitUndefined: true,
240
241
  }),
241
242
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
242
243
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -524,11 +525,7 @@ class Collections {
524
525
  }
525
526
  _getAuthorizationHeader() {
526
527
  return __awaiter(this, void 0, void 0, function* () {
527
- const bearer = yield core.Supplier.get(this._options.accessToken);
528
- if (bearer != null) {
529
- return `Bearer ${bearer}`;
530
- }
531
- return undefined;
528
+ return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
532
529
  });
533
530
  }
534
531
  }
@@ -9,7 +9,7 @@ export declare namespace Fields {
9
9
  }
10
10
  export declare class Fields {
11
11
  protected readonly _options: Fields.Options;
12
- constructor(_options?: Fields.Options);
12
+ constructor(_options: Fields.Options);
13
13
  /**
14
14
  * Create a custom field in a collection.
15
15
  *
@@ -119,5 +119,5 @@ export declare class Fields {
119
119
  */
120
120
  update(collectionId: string, fieldId: string, request?: Webflow.collections.FieldUpdate, requestOptions?: Fields.RequestOptions): core.HttpResponsePromise<Webflow.Field>;
121
121
  private __update;
122
- protected _getAuthorizationHeader(): Promise<string | undefined>;
122
+ protected _getAuthorizationHeader(): Promise<string>;
123
123
  }
@@ -51,7 +51,7 @@ const errors = __importStar(require("../../../../../../errors/index"));
51
51
  const serializers = __importStar(require("../../../../../../serialization/index"));
52
52
  const Webflow = __importStar(require("../../../../../index"));
53
53
  class Fields {
54
- constructor(_options = {}) {
54
+ constructor(_options) {
55
55
  this._options = _options;
56
56
  }
57
57
  /**
@@ -135,6 +135,7 @@ class Fields {
135
135
  unrecognizedObjectKeys: "passthrough",
136
136
  allowUnrecognizedUnionMembers: true,
137
137
  allowUnrecognizedEnumValues: true,
138
+ omitUndefined: true,
138
139
  }),
139
140
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
140
141
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -356,6 +357,7 @@ class Fields {
356
357
  unrecognizedObjectKeys: "passthrough",
357
358
  allowUnrecognizedUnionMembers: true,
358
359
  allowUnrecognizedEnumValues: true,
360
+ omitUndefined: true,
359
361
  }),
360
362
  timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
361
363
  maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
@@ -436,11 +438,7 @@ class Fields {
436
438
  }
437
439
  _getAuthorizationHeader() {
438
440
  return __awaiter(this, void 0, void 0, function* () {
439
- const bearer = yield core.Supplier.get(this._options.accessToken);
440
- if (bearer != null) {
441
- return `Bearer ${bearer}`;
442
- }
443
- return undefined;
441
+ return `Bearer ${yield core.Supplier.get(this._options.accessToken)}`;
444
442
  });
445
443
  }
446
444
  }
@@ -9,7 +9,7 @@ export declare namespace Items {
9
9
  }
10
10
  export declare class Items {
11
11
  protected readonly _options: Items.Options;
12
- constructor(_options?: Items.Options);
12
+ constructor(_options: Items.Options);
13
13
  /**
14
14
  * List of all Items within a Collection.
15
15
  *
@@ -28,8 +28,8 @@ export declare class Items {
28
28
  * @example
29
29
  * await client.collections.items.listItems("580e63fc8c9a982ac9b8b745", {
30
30
  * cmsLocaleId: "cmsLocaleId",
31
- * offset: 1.1,
32
- * limit: 1.1,
31
+ * offset: 1,
32
+ * limit: 1,
33
33
  * name: "name",
34
34
  * slug: "slug",
35
35
  * sortBy: "lastPublished",
@@ -265,8 +265,8 @@ export declare class Items {
265
265
  * @example
266
266
  * await client.collections.items.listItemsLive("580e63fc8c9a982ac9b8b745", {
267
267
  * cmsLocaleId: "cmsLocaleId",
268
- * offset: 1.1,
269
- * limit: 1.1,
268
+ * offset: 1,
269
+ * limit: 1,
270
270
  * name: "name",
271
271
  * slug: "slug",
272
272
  * sortBy: "lastPublished",
@@ -802,5 +802,5 @@ export declare class Items {
802
802
  */
803
803
  publishItem(collectionId: string, request: Webflow.collections.ItemsPublishItemRequest, requestOptions?: Items.RequestOptions): core.HttpResponsePromise<Webflow.collections.ItemsPublishItemResponse>;
804
804
  private __publishItem;
805
- protected _getAuthorizationHeader(): Promise<string | undefined>;
805
+ protected _getAuthorizationHeader(): Promise<string>;
806
806
  }