@widgetic/api-sdk 1.0.16 → 1.0.17

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 (226) hide show
  1. package/dist/apis/ABTestingApi.js +90 -30
  2. package/dist/apis/AdminApi.js +12 -4
  3. package/dist/apis/AuthenticationApi.d.ts +3 -3
  4. package/dist/apis/AuthenticationApi.js +31 -11
  5. package/dist/apis/BatchApi.js +6 -2
  6. package/dist/apis/BillingApi.d.ts +13 -13
  7. package/dist/apis/BillingApi.js +8 -8
  8. package/dist/apis/CanvasesApi.js +30 -10
  9. package/dist/apis/ComponentsApi.d.ts +3 -3
  10. package/dist/apis/ComponentsApi.js +43 -15
  11. package/dist/apis/CompositionsApi.js +132 -44
  12. package/dist/apis/ContentsApi.js +36 -12
  13. package/dist/apis/ConversationsApi.js +30 -10
  14. package/dist/apis/CreditsApi.js +30 -10
  15. package/dist/apis/DemoContentsApi.js +30 -10
  16. package/dist/apis/EntitlementsApi.js +30 -10
  17. package/dist/apis/FoldersApi.js +30 -10
  18. package/dist/apis/HealthApi.js +12 -4
  19. package/dist/apis/IntegrationsApi.js +42 -14
  20. package/dist/apis/InvitationsApi.js +12 -4
  21. package/dist/apis/InvoicesApi.js +36 -12
  22. package/dist/apis/ManagedUsersApi.js +36 -12
  23. package/dist/apis/MessagesApi.js +36 -12
  24. package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
  25. package/dist/apis/OrganizationActivitiesApi.js +221 -0
  26. package/dist/apis/OrganizationsApi.d.ts +31 -106
  27. package/dist/apis/OrganizationsApi.js +324 -292
  28. package/dist/apis/PartnerCustomizationsApi.js +30 -10
  29. package/dist/apis/PartnersApi.js +30 -10
  30. package/dist/apis/PromptsApi.js +30 -10
  31. package/dist/apis/SubscriptionPlansApi.js +12 -4
  32. package/dist/apis/SubscriptionsApi.js +48 -16
  33. package/dist/apis/TranslationsApi.d.ts +5 -5
  34. package/dist/apis/TranslationsApi.js +2 -2
  35. package/dist/apis/UIComponentsApi.js +24 -8
  36. package/dist/apis/UsageApi.js +42 -14
  37. package/dist/apis/UsersApi.d.ts +3 -3
  38. package/dist/apis/UsersApi.js +1 -1
  39. package/dist/apis/WorkspacesApi.js +78 -26
  40. package/dist/apis/index.d.ts +1 -0
  41. package/dist/apis/index.js +1 -0
  42. package/dist/esm/apis/ABTestingApi.js +90 -30
  43. package/dist/esm/apis/AdminApi.js +12 -4
  44. package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
  45. package/dist/esm/apis/AuthenticationApi.js +32 -12
  46. package/dist/esm/apis/BatchApi.js +6 -2
  47. package/dist/esm/apis/BillingApi.d.ts +13 -13
  48. package/dist/esm/apis/BillingApi.js +9 -9
  49. package/dist/esm/apis/CanvasesApi.js +30 -10
  50. package/dist/esm/apis/ComponentsApi.d.ts +3 -3
  51. package/dist/esm/apis/ComponentsApi.js +44 -16
  52. package/dist/esm/apis/CompositionsApi.js +132 -44
  53. package/dist/esm/apis/ContentsApi.js +36 -12
  54. package/dist/esm/apis/ConversationsApi.js +30 -10
  55. package/dist/esm/apis/CreditsApi.js +30 -10
  56. package/dist/esm/apis/DemoContentsApi.js +30 -10
  57. package/dist/esm/apis/EntitlementsApi.js +30 -10
  58. package/dist/esm/apis/FoldersApi.js +30 -10
  59. package/dist/esm/apis/HealthApi.js +12 -4
  60. package/dist/esm/apis/IntegrationsApi.js +42 -14
  61. package/dist/esm/apis/InvitationsApi.js +12 -4
  62. package/dist/esm/apis/InvoicesApi.js +36 -12
  63. package/dist/esm/apis/ManagedUsersApi.js +36 -12
  64. package/dist/esm/apis/MessagesApi.js +36 -12
  65. package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
  66. package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
  67. package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
  68. package/dist/esm/apis/OrganizationsApi.js +324 -292
  69. package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
  70. package/dist/esm/apis/PartnersApi.js +30 -10
  71. package/dist/esm/apis/PromptsApi.js +30 -10
  72. package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
  73. package/dist/esm/apis/SubscriptionsApi.js +48 -16
  74. package/dist/esm/apis/TranslationsApi.d.ts +5 -5
  75. package/dist/esm/apis/TranslationsApi.js +3 -3
  76. package/dist/esm/apis/UIComponentsApi.js +24 -8
  77. package/dist/esm/apis/UsageApi.js +42 -14
  78. package/dist/esm/apis/UsersApi.d.ts +3 -3
  79. package/dist/esm/apis/UsersApi.js +2 -2
  80. package/dist/esm/apis/WorkspacesApi.js +78 -26
  81. package/dist/esm/apis/index.d.ts +1 -0
  82. package/dist/esm/apis/index.js +1 -0
  83. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  84. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  85. package/dist/esm/models/Canvas.d.ts +6 -0
  86. package/dist/esm/models/Canvas.js +2 -0
  87. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  88. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  89. package/dist/esm/models/ErrorResponse.d.ts +12 -12
  90. package/dist/esm/models/ErrorResponse.js +4 -4
  91. package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
  92. package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
  93. package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
  94. package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
  95. package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  96. package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
  97. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  98. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
  99. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  100. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
  101. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  102. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
  103. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  104. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
  105. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  106. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
  107. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  108. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
  109. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  110. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
  111. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  112. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
  113. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  114. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
  115. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  116. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
  117. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  118. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
  119. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  120. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
  121. package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
  122. package/dist/esm/models/UpdateCanvasRequest.js +2 -0
  123. package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
  124. package/dist/esm/models/UpdateWidgetRequest.js +5 -0
  125. package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  126. package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
  127. package/dist/esm/models/index.d.ts +24 -24
  128. package/dist/esm/models/index.js +24 -24
  129. package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  130. package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  131. package/dist/models/Canvas.d.ts +6 -0
  132. package/dist/models/Canvas.js +2 -0
  133. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  134. package/dist/models/CreateCanvasRequest.js +2 -0
  135. package/dist/models/ErrorResponse.d.ts +12 -12
  136. package/dist/models/ErrorResponse.js +4 -4
  137. package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
  138. package/dist/models/GetCompositionsBatch200Response.js +3 -3
  139. package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
  140. package/dist/models/GetWidgetsBatch200Response.js +3 -3
  141. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  142. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
  143. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  144. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
  145. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  146. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
  147. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  148. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  149. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  150. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
  151. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  152. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
  153. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  154. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
  155. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  156. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
  157. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  158. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  159. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  160. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
  161. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  162. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
  163. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  164. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
  165. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  166. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
  167. package/dist/models/UpdateCanvasRequest.d.ts +6 -0
  168. package/dist/models/UpdateCanvasRequest.js +2 -0
  169. package/dist/models/UpdateWidgetRequest.d.ts +12 -0
  170. package/dist/models/UpdateWidgetRequest.js +5 -0
  171. package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  172. package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
  173. package/dist/models/index.d.ts +24 -24
  174. package/dist/models/index.js +24 -24
  175. package/package.json +1 -1
  176. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  177. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  178. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  179. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  180. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  181. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  182. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  183. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  184. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  185. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  186. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  187. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  188. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  189. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  190. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  191. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  192. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  193. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  194. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  195. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  196. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  197. package/dist/esm/models/LoginUser200Response.js +0 -43
  198. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  199. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  200. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  201. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  202. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  203. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  204. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  205. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  206. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  207. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  208. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  209. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  210. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  211. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  212. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  213. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  214. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  215. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  216. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  217. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  218. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  219. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  220. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  221. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  222. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  223. package/dist/models/LoginUser200Response.d.ts +0 -38
  224. package/dist/models/LoginUser200Response.js +0 -50
  225. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  226. package/dist/models/RollbackComponent200Response.js +0 -50
@@ -78,8 +78,12 @@ class ABTestingApi extends runtime.BaseAPI {
78
78
  }
79
79
  const queryParameters = {};
80
80
  const headerParameters = {};
81
- if (this.configuration && this.configuration.apiKey) {
82
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
81
+ if (this.configuration && this.configuration.accessToken) {
82
+ const token = this.configuration.accessToken;
83
+ const tokenString = yield token("apiKeyAuth", []);
84
+ if (tokenString) {
85
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
86
+ }
83
87
  }
84
88
  const response = yield this.request({
85
89
  path: `/workspaces/{workspaceId}/ab-tests/{testId}/auto-stop-check`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -147,8 +151,12 @@ class ABTestingApi extends runtime.BaseAPI {
147
151
  const queryParameters = {};
148
152
  const headerParameters = {};
149
153
  headerParameters['Content-Type'] = 'application/json';
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
154
+ if (this.configuration && this.configuration.accessToken) {
155
+ const token = this.configuration.accessToken;
156
+ const tokenString = yield token("apiKeyAuth", []);
157
+ if (tokenString) {
158
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
159
+ }
152
160
  }
153
161
  const response = yield this.request({
154
162
  path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
@@ -184,8 +192,12 @@ class ABTestingApi extends runtime.BaseAPI {
184
192
  }
185
193
  const queryParameters = {};
186
194
  const headerParameters = {};
187
- if (this.configuration && this.configuration.apiKey) {
188
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
195
+ if (this.configuration && this.configuration.accessToken) {
196
+ const token = this.configuration.accessToken;
197
+ const tokenString = yield token("apiKeyAuth", []);
198
+ if (tokenString) {
199
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
200
+ }
189
201
  }
190
202
  const response = yield this.request({
191
203
  path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -244,8 +256,12 @@ class ABTestingApi extends runtime.BaseAPI {
244
256
  return __awaiter(this, void 0, void 0, function* () {
245
257
  const queryParameters = {};
246
258
  const headerParameters = {};
247
- if (this.configuration && this.configuration.apiKey) {
248
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
259
+ if (this.configuration && this.configuration.accessToken) {
260
+ const token = this.configuration.accessToken;
261
+ const tokenString = yield token("apiKeyAuth", []);
262
+ if (tokenString) {
263
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
264
+ }
249
265
  }
250
266
  const response = yield this.request({
251
267
  path: `/metrics/available`,
@@ -274,8 +290,12 @@ class ABTestingApi extends runtime.BaseAPI {
274
290
  return __awaiter(this, void 0, void 0, function* () {
275
291
  const queryParameters = {};
276
292
  const headerParameters = {};
277
- if (this.configuration && this.configuration.apiKey) {
278
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
293
+ if (this.configuration && this.configuration.accessToken) {
294
+ const token = this.configuration.accessToken;
295
+ const tokenString = yield token("apiKeyAuth", []);
296
+ if (tokenString) {
297
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
298
+ }
279
299
  }
280
300
  const response = yield this.request({
281
301
  path: `/ab-tests/metrics/available`,
@@ -340,8 +360,12 @@ class ABTestingApi extends runtime.BaseAPI {
340
360
  }
341
361
  const queryParameters = {};
342
362
  const headerParameters = {};
343
- if (this.configuration && this.configuration.apiKey) {
344
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
363
+ if (this.configuration && this.configuration.accessToken) {
364
+ const token = this.configuration.accessToken;
365
+ const tokenString = yield token("apiKeyAuth", []);
366
+ if (tokenString) {
367
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
368
+ }
345
369
  }
346
370
  const response = yield this.request({
347
371
  path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -376,8 +400,12 @@ class ABTestingApi extends runtime.BaseAPI {
376
400
  queryParameters['status'] = requestParameters['status'];
377
401
  }
378
402
  const headerParameters = {};
379
- if (this.configuration && this.configuration.apiKey) {
380
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
403
+ if (this.configuration && this.configuration.accessToken) {
404
+ const token = this.configuration.accessToken;
405
+ const tokenString = yield token("apiKeyAuth", []);
406
+ if (tokenString) {
407
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
408
+ }
381
409
  }
382
410
  const response = yield this.request({
383
411
  path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
@@ -412,8 +440,12 @@ class ABTestingApi extends runtime.BaseAPI {
412
440
  }
413
441
  const queryParameters = {};
414
442
  const headerParameters = {};
415
- if (this.configuration && this.configuration.apiKey) {
416
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
443
+ if (this.configuration && this.configuration.accessToken) {
444
+ const token = this.configuration.accessToken;
445
+ const tokenString = yield token("apiKeyAuth", []);
446
+ if (tokenString) {
447
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
448
+ }
417
449
  }
418
450
  const response = yield this.request({
419
451
  path: `/workspaces/{workspaceId}/ab-tests/{testId}/pause`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -452,8 +484,12 @@ class ABTestingApi extends runtime.BaseAPI {
452
484
  const queryParameters = {};
453
485
  const headerParameters = {};
454
486
  headerParameters['Content-Type'] = 'application/json';
455
- if (this.configuration && this.configuration.apiKey) {
456
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
487
+ if (this.configuration && this.configuration.accessToken) {
488
+ const token = this.configuration.accessToken;
489
+ const tokenString = yield token("apiKeyAuth", []);
490
+ if (tokenString) {
491
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
492
+ }
457
493
  }
458
494
  const response = yield this.request({
459
495
  path: `/workspaces/{workspaceId}/ab-tests/{testId}/duration`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -489,8 +525,12 @@ class ABTestingApi extends runtime.BaseAPI {
489
525
  }
490
526
  const queryParameters = {};
491
527
  const headerParameters = {};
492
- if (this.configuration && this.configuration.apiKey) {
493
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
528
+ if (this.configuration && this.configuration.accessToken) {
529
+ const token = this.configuration.accessToken;
530
+ const tokenString = yield token("apiKeyAuth", []);
531
+ if (tokenString) {
532
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
533
+ }
494
534
  }
495
535
  const response = yield this.request({
496
536
  path: `/workspaces/{workspaceId}/ab-tests/{testId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -526,8 +566,12 @@ class ABTestingApi extends runtime.BaseAPI {
526
566
  const queryParameters = {};
527
567
  const headerParameters = {};
528
568
  headerParameters['Content-Type'] = 'application/json';
529
- if (this.configuration && this.configuration.apiKey) {
530
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
569
+ if (this.configuration && this.configuration.accessToken) {
570
+ const token = this.configuration.accessToken;
571
+ const tokenString = yield token("apiKeyAuth", []);
572
+ if (tokenString) {
573
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
574
+ }
531
575
  }
532
576
  const response = yield this.request({
533
577
  path: `/workspaces/{workspaceId}/ab-tests/{testId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -631,8 +675,12 @@ class ABTestingApi extends runtime.BaseAPI {
631
675
  const queryParameters = {};
632
676
  const headerParameters = {};
633
677
  headerParameters['Content-Type'] = 'application/json';
634
- if (this.configuration && this.configuration.apiKey) {
635
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
678
+ if (this.configuration && this.configuration.accessToken) {
679
+ const token = this.configuration.accessToken;
680
+ const tokenString = yield token("apiKeyAuth", []);
681
+ if (tokenString) {
682
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
683
+ }
636
684
  }
637
685
  const response = yield this.request({
638
686
  path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
@@ -669,8 +717,12 @@ class ABTestingApi extends runtime.BaseAPI {
669
717
  const queryParameters = {};
670
718
  const headerParameters = {};
671
719
  headerParameters['Content-Type'] = 'application/json';
672
- if (this.configuration && this.configuration.apiKey) {
673
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
720
+ if (this.configuration && this.configuration.accessToken) {
721
+ const token = this.configuration.accessToken;
722
+ const tokenString = yield token("apiKeyAuth", []);
723
+ if (tokenString) {
724
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
725
+ }
674
726
  }
675
727
  const response = yield this.request({
676
728
  path: `/workspaces/{workspaceId}/ab-tests/validate-composition-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
@@ -707,8 +759,12 @@ class ABTestingApi extends runtime.BaseAPI {
707
759
  const queryParameters = {};
708
760
  const headerParameters = {};
709
761
  headerParameters['Content-Type'] = 'application/json';
710
- if (this.configuration && this.configuration.apiKey) {
711
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
762
+ if (this.configuration && this.configuration.accessToken) {
763
+ const token = this.configuration.accessToken;
764
+ const tokenString = yield token("apiKeyAuth", []);
765
+ if (tokenString) {
766
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
767
+ }
712
768
  }
713
769
  const response = yield this.request({
714
770
  path: `/workspaces/{workspaceId}/ab-tests/validate-goal-tracking`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
@@ -745,8 +801,12 @@ class ABTestingApi extends runtime.BaseAPI {
745
801
  const queryParameters = {};
746
802
  const headerParameters = {};
747
803
  headerParameters['Content-Type'] = 'application/json';
748
- if (this.configuration && this.configuration.apiKey) {
749
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
804
+ if (this.configuration && this.configuration.accessToken) {
805
+ const token = this.configuration.accessToken;
806
+ const tokenString = yield token("apiKeyAuth", []);
807
+ if (tokenString) {
808
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
809
+ }
750
810
  }
751
811
  const response = yield this.request({
752
812
  path: `/workspaces/{workspaceId}/ab-tests/validate-widget-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
@@ -46,8 +46,12 @@ class AdminApi extends runtime.BaseAPI {
46
46
  queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
47
47
  }
48
48
  const headerParameters = {};
49
- if (this.configuration && this.configuration.apiKey) {
50
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
49
+ if (this.configuration && this.configuration.accessToken) {
50
+ const token = this.configuration.accessToken;
51
+ const tokenString = yield token("apiKeyAuth", []);
52
+ if (tokenString) {
53
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
54
+ }
51
55
  }
52
56
  const response = yield this.request({
53
57
  path: `/health/admin`,
@@ -77,8 +81,12 @@ class AdminApi extends runtime.BaseAPI {
77
81
  const queryParameters = {};
78
82
  const headerParameters = {};
79
83
  headerParameters['Content-Type'] = 'application/json';
80
- if (this.configuration && this.configuration.apiKey) {
81
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
84
+ if (this.configuration && this.configuration.accessToken) {
85
+ const token = this.configuration.accessToken;
86
+ const tokenString = yield token("apiKeyAuth", []);
87
+ if (tokenString) {
88
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
89
+ }
82
90
  }
83
91
  const response = yield this.request({
84
92
  path: `/organizations/admin/cleanup-orphaned-invitations`,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CompleteSignupRequest, LoginUser200Response, LoginUserRequest, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
13
+ import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
14
14
  export interface CompleteSignupOperationRequest {
15
15
  completeSignupRequest: CompleteSignupRequest;
16
16
  }
@@ -105,11 +105,11 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
105
105
  /**
106
106
  * Login with email and password
107
107
  */
108
- loginUserRaw(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LoginUser200Response>>;
108
+ loginUserRaw(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response>>;
109
109
  /**
110
110
  * Login with email and password
111
111
  */
112
- loginUser(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LoginUser200Response>;
112
+ loginUser(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response>;
113
113
  /**
114
114
  * Logout current user
115
115
  */
@@ -94,8 +94,12 @@ class AuthenticationApi extends runtime.BaseAPI {
94
94
  return __awaiter(this, void 0, void 0, function* () {
95
95
  const queryParameters = {};
96
96
  const headerParameters = {};
97
- if (this.configuration && this.configuration.apiKey) {
98
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
97
+ if (this.configuration && this.configuration.accessToken) {
98
+ const token = this.configuration.accessToken;
99
+ const tokenString = yield token("apiKeyAuth", []);
100
+ if (tokenString) {
101
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
102
+ }
99
103
  }
100
104
  const response = yield this.request({
101
105
  path: `/auth/delete-account`,
@@ -121,8 +125,12 @@ class AuthenticationApi extends runtime.BaseAPI {
121
125
  return __awaiter(this, void 0, void 0, function* () {
122
126
  const queryParameters = {};
123
127
  const headerParameters = {};
124
- if (this.configuration && this.configuration.apiKey) {
125
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
128
+ if (this.configuration && this.configuration.accessToken) {
129
+ const token = this.configuration.accessToken;
130
+ const tokenString = yield token("apiKeyAuth", []);
131
+ if (tokenString) {
132
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
133
+ }
126
134
  }
127
135
  const response = yield this.request({
128
136
  path: `/auth/session`,
@@ -148,8 +156,12 @@ class AuthenticationApi extends runtime.BaseAPI {
148
156
  return __awaiter(this, void 0, void 0, function* () {
149
157
  const queryParameters = {};
150
158
  const headerParameters = {};
151
- if (this.configuration && this.configuration.apiKey) {
152
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
159
+ if (this.configuration && this.configuration.accessToken) {
160
+ const token = this.configuration.accessToken;
161
+ const tokenString = yield token("apiKeyAuth", []);
162
+ if (tokenString) {
163
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
164
+ }
153
165
  }
154
166
  const response = yield this.request({
155
167
  path: `/auth/get-metadata`,
@@ -222,7 +234,7 @@ class AuthenticationApi extends runtime.BaseAPI {
222
234
  query: queryParameters,
223
235
  body: (0, index_1.LoginUserRequestToJSON)(requestParameters['loginUserRequest']),
224
236
  }, initOverrides);
225
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoginUser200ResponseFromJSON)(jsonValue));
237
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON)(jsonValue));
226
238
  });
227
239
  }
228
240
  /**
@@ -241,8 +253,12 @@ class AuthenticationApi extends runtime.BaseAPI {
241
253
  return __awaiter(this, void 0, void 0, function* () {
242
254
  const queryParameters = {};
243
255
  const headerParameters = {};
244
- if (this.configuration && this.configuration.apiKey) {
245
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
256
+ if (this.configuration && this.configuration.accessToken) {
257
+ const token = this.configuration.accessToken;
258
+ const tokenString = yield token("apiKeyAuth", []);
259
+ if (tokenString) {
260
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
261
+ }
246
262
  }
247
263
  const response = yield this.request({
248
264
  path: `/auth/logout`,
@@ -475,8 +491,12 @@ class AuthenticationApi extends runtime.BaseAPI {
475
491
  const queryParameters = {};
476
492
  const headerParameters = {};
477
493
  headerParameters['Content-Type'] = 'application/json';
478
- if (this.configuration && this.configuration.apiKey) {
479
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
494
+ if (this.configuration && this.configuration.accessToken) {
495
+ const token = this.configuration.accessToken;
496
+ const tokenString = yield token("apiKeyAuth", []);
497
+ if (tokenString) {
498
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
499
+ }
480
500
  }
481
501
  const response = yield this.request({
482
502
  path: `/auth/update-metadata`,
@@ -41,8 +41,12 @@ class BatchApi extends runtime.BaseAPI {
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  headerParameters['Content-Type'] = 'application/json';
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("apiKeyAuth", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
46
50
  }
47
51
  const response = yield this.request({
48
52
  path: `/batch/process`,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiV1BillingPricingGet200Response, ApiV1BillingUsersUserIdInvoicesGet200Response, ApiV1BillingUsersUserIdPaymentMethodsGet200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response, ApiV1BillingUsersUserIdPaymentMethodsPost200Response, ApiV1BillingUsersUserIdPaymentMethodsPostRequest, ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response, ApiV1BillingUsersUserIdPortalPost200Response, ApiV1BillingUsersUserIdPortalPostRequest, ApiV1BillingUsersUserIdSubscriptionCancelPost200Response, ApiV1BillingUsersUserIdSubscriptionCancelPostRequest, ApiV1BillingUsersUserIdSubscriptionGet200Response, ApiV1BillingUsersUserIdSubscriptionPayPost200Response, ApiV1BillingUsersUserIdSubscriptionPost200Response, ApiV1BillingUsersUserIdSubscriptionPostRequest } from '../models/index';
13
+ import type { ApiV1BillingPricingGet200Response, ApiV1BillingUsersUserIdInvoicesGet200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response, ApiV1BillingUsersUserIdSubscriptionCancelPost200Response, ApiV1BillingUsersUserIdSubscriptionCancelPostRequest, ApiV1BillingUsersUserIdSubscriptionGet200Response, ApiV1BillingUsersUserIdSubscriptionPayPost200Response, ApiV1BillingUsersUserIdSubscriptionPost200Response, ApiV1BillingUsersUserIdSubscriptionPostRequest, OrganizationsOrgIdBillingPaymentMethodsGet200Response, OrganizationsOrgIdBillingPaymentMethodsPost200Response, OrganizationsOrgIdBillingPaymentMethodsPostRequest, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response, OrganizationsOrgIdBillingPortalPost200Response, OrganizationsOrgIdBillingPortalPostRequest } from '../models/index';
14
14
  export interface ApiV1BillingUsersUserIdInvoicesGetRequest {
15
15
  userId: string;
16
16
  limit?: number;
@@ -26,16 +26,16 @@ export interface ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDeleteReque
26
26
  userId: string;
27
27
  paymentMethodId: string;
28
28
  }
29
- export interface ApiV1BillingUsersUserIdPaymentMethodsPostOperationRequest {
29
+ export interface ApiV1BillingUsersUserIdPaymentMethodsPostRequest {
30
30
  userId: string;
31
- apiV1BillingUsersUserIdPaymentMethodsPostRequest: ApiV1BillingUsersUserIdPaymentMethodsPostRequest;
31
+ organizationsOrgIdBillingPaymentMethodsPostRequest: OrganizationsOrgIdBillingPaymentMethodsPostRequest;
32
32
  }
33
33
  export interface ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest {
34
34
  userId: string;
35
35
  }
36
- export interface ApiV1BillingUsersUserIdPortalPostOperationRequest {
36
+ export interface ApiV1BillingUsersUserIdPortalPostRequest {
37
37
  userId: string;
38
- apiV1BillingUsersUserIdPortalPostRequest?: ApiV1BillingUsersUserIdPortalPostRequest;
38
+ organizationsOrgIdBillingPortalPostRequest?: OrganizationsOrgIdBillingPortalPostRequest;
39
39
  }
40
40
  export interface ApiV1BillingUsersUserIdSubscriptionCancelPostOperationRequest {
41
41
  userId: string;
@@ -77,11 +77,11 @@ export declare class BillingApi extends runtime.BaseAPI {
77
77
  /**
78
78
  * List saved payment methods
79
79
  */
80
- apiV1BillingUsersUserIdPaymentMethodsGetRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1BillingUsersUserIdPaymentMethodsGet200Response>>;
80
+ apiV1BillingUsersUserIdPaymentMethodsGetRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsGet200Response>>;
81
81
  /**
82
82
  * List saved payment methods
83
83
  */
84
- apiV1BillingUsersUserIdPaymentMethodsGet(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1BillingUsersUserIdPaymentMethodsGet200Response>;
84
+ apiV1BillingUsersUserIdPaymentMethodsGet(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsGet200Response>;
85
85
  /**
86
86
  * Set the default payment method used for charges
87
87
  */
@@ -101,27 +101,27 @@ export declare class BillingApi extends runtime.BaseAPI {
101
101
  /**
102
102
  * Persist an attached payment method after confirmSetup
103
103
  */
104
- apiV1BillingUsersUserIdPaymentMethodsPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1BillingUsersUserIdPaymentMethodsPost200Response>>;
104
+ apiV1BillingUsersUserIdPaymentMethodsPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsPost200Response>>;
105
105
  /**
106
106
  * Persist an attached payment method after confirmSetup
107
107
  */
108
- apiV1BillingUsersUserIdPaymentMethodsPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1BillingUsersUserIdPaymentMethodsPost200Response>;
108
+ apiV1BillingUsersUserIdPaymentMethodsPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsPost200Response>;
109
109
  /**
110
110
  * Create a Stripe SetupIntent for saving a card via Elements
111
111
  */
112
- apiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response>>;
112
+ apiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response>>;
113
113
  /**
114
114
  * Create a Stripe SetupIntent for saving a card via Elements
115
115
  */
116
- apiV1BillingUsersUserIdPaymentMethodsSetupIntentPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response>;
116
+ apiV1BillingUsersUserIdPaymentMethodsSetupIntentPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response>;
117
117
  /**
118
118
  * Create a Stripe billing portal session for managing cards and invoices
119
119
  */
120
- apiV1BillingUsersUserIdPortalPostRaw(requestParameters: ApiV1BillingUsersUserIdPortalPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ApiV1BillingUsersUserIdPortalPost200Response>>;
120
+ apiV1BillingUsersUserIdPortalPostRaw(requestParameters: ApiV1BillingUsersUserIdPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPortalPost200Response>>;
121
121
  /**
122
122
  * Create a Stripe billing portal session for managing cards and invoices
123
123
  */
124
- apiV1BillingUsersUserIdPortalPost(requestParameters: ApiV1BillingUsersUserIdPortalPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ApiV1BillingUsersUserIdPortalPost200Response>;
124
+ apiV1BillingUsersUserIdPortalPost(requestParameters: ApiV1BillingUsersUserIdPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPortalPost200Response>;
125
125
  /**
126
126
  * Cancel the active subscription
127
127
  */
@@ -115,7 +115,7 @@ class BillingApi extends runtime.BaseAPI {
115
115
  headers: headerParameters,
116
116
  query: queryParameters,
117
117
  }, initOverrides);
118
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON)(jsonValue));
118
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON)(jsonValue));
119
119
  });
120
120
  }
121
121
  /**
@@ -211,8 +211,8 @@ class BillingApi extends runtime.BaseAPI {
211
211
  if (requestParameters['userId'] == null) {
212
212
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
213
213
  }
214
- if (requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest'] == null) {
215
- throw new runtime.RequiredError('apiV1BillingUsersUserIdPaymentMethodsPostRequest', 'Required parameter "apiV1BillingUsersUserIdPaymentMethodsPostRequest" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
214
+ if (requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest'] == null) {
215
+ throw new runtime.RequiredError('organizationsOrgIdBillingPaymentMethodsPostRequest', 'Required parameter "organizationsOrgIdBillingPaymentMethodsPostRequest" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
216
216
  }
217
217
  const queryParameters = {};
218
218
  const headerParameters = {};
@@ -229,9 +229,9 @@ class BillingApi extends runtime.BaseAPI {
229
229
  method: 'POST',
230
230
  headers: headerParameters,
231
231
  query: queryParameters,
232
- body: (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON)(requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest']),
232
+ body: (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest']),
233
233
  }, initOverrides);
234
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON)(jsonValue));
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON)(jsonValue));
235
235
  });
236
236
  }
237
237
  /**
@@ -266,7 +266,7 @@ class BillingApi extends runtime.BaseAPI {
266
266
  headers: headerParameters,
267
267
  query: queryParameters,
268
268
  }, initOverrides);
269
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseFromJSON)(jsonValue));
269
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON)(jsonValue));
270
270
  });
271
271
  }
272
272
  /**
@@ -301,9 +301,9 @@ class BillingApi extends runtime.BaseAPI {
301
301
  method: 'POST',
302
302
  headers: headerParameters,
303
303
  query: queryParameters,
304
- body: (0, index_1.ApiV1BillingUsersUserIdPortalPostRequestToJSON)(requestParameters['apiV1BillingUsersUserIdPortalPostRequest']),
304
+ body: (0, index_1.OrganizationsOrgIdBillingPortalPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPortalPostRequest']),
305
305
  }, initOverrides);
306
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ApiV1BillingUsersUserIdPortalPost200ResponseFromJSON)(jsonValue));
306
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPortalPost200ResponseFromJSON)(jsonValue));
307
307
  });
308
308
  }
309
309
  /**
@@ -41,8 +41,12 @@ class CanvasesApi extends runtime.BaseAPI {
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  headerParameters['Content-Type'] = 'application/json';
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("apiKeyAuth", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
46
50
  }
47
51
  const response = yield this.request({
48
52
  path: `/canvases`,
@@ -75,8 +79,12 @@ class CanvasesApi extends runtime.BaseAPI {
75
79
  }
76
80
  const queryParameters = {};
77
81
  const headerParameters = {};
78
- if (this.configuration && this.configuration.apiKey) {
79
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = yield token("apiKeyAuth", []);
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
80
88
  }
81
89
  const response = yield this.request({
82
90
  path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -131,8 +139,12 @@ class CanvasesApi extends runtime.BaseAPI {
131
139
  queryParameters['updated_before'] = requestParameters['updatedBefore'].toISOString();
132
140
  }
133
141
  const headerParameters = {};
134
- if (this.configuration && this.configuration.apiKey) {
135
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
142
+ if (this.configuration && this.configuration.accessToken) {
143
+ const token = this.configuration.accessToken;
144
+ const tokenString = yield token("apiKeyAuth", []);
145
+ if (tokenString) {
146
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
147
+ }
136
148
  }
137
149
  const response = yield this.request({
138
150
  path: `/canvases`,
@@ -164,8 +176,12 @@ class CanvasesApi extends runtime.BaseAPI {
164
176
  }
165
177
  const queryParameters = {};
166
178
  const headerParameters = {};
167
- if (this.configuration && this.configuration.apiKey) {
168
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
179
+ if (this.configuration && this.configuration.accessToken) {
180
+ const token = this.configuration.accessToken;
181
+ const tokenString = yield token("apiKeyAuth", []);
182
+ if (tokenString) {
183
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
184
+ }
169
185
  }
170
186
  const response = yield this.request({
171
187
  path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -201,8 +217,12 @@ class CanvasesApi extends runtime.BaseAPI {
201
217
  const queryParameters = {};
202
218
  const headerParameters = {};
203
219
  headerParameters['Content-Type'] = 'application/json';
204
- if (this.configuration && this.configuration.apiKey) {
205
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
220
+ if (this.configuration && this.configuration.accessToken) {
221
+ const token = this.configuration.accessToken;
222
+ const tokenString = yield token("apiKeyAuth", []);
223
+ if (tokenString) {
224
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
225
+ }
206
226
  }
207
227
  const response = yield this.request({
208
228
  path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CanvasesCanvasIdComponentsComponentIdPublishPost202Response, CanvasesCanvasIdComponentsComponentIdPublishPostRequest, Component, CreateComponentRequest, GetComponentsByWidgetId200Response, RollbackComponent200Response, RollbackComponentRequest, UpdateComponentRequest } from '../models/index';
13
+ import type { CanvasesCanvasIdComponentsComponentIdPublishPost202Response, CanvasesCanvasIdComponentsComponentIdPublishPostRequest, Component, CreateComponentRequest, GetComponentsByWidgetId200Response, RollbackComponentRequest, UpdateComponentRequest, UsersSendFeedbackPost200Response } from '../models/index';
14
14
  export interface CanvasesCanvasIdComponentsComponentIdPublishPostOperationRequest {
15
15
  canvasId: string;
16
16
  componentId: string;
@@ -128,12 +128,12 @@ export declare class ComponentsApi extends runtime.BaseAPI {
128
128
  * Rolls back a component to a specific checkpoint version by reverting to a specific Git commit. This operation cancels any in-progress or queued tasks for the component, resets the repository to the specified checkpoint, and updates the component\'s metadata.
129
129
  * Rollback Component to Checkpoint
130
130
  */
131
- rollbackComponentRaw(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RollbackComponent200Response>>;
131
+ rollbackComponentRaw(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
132
132
  /**
133
133
  * Rolls back a component to a specific checkpoint version by reverting to a specific Git commit. This operation cancels any in-progress or queued tasks for the component, resets the repository to the specified checkpoint, and updates the component\'s metadata.
134
134
  * Rollback Component to Checkpoint
135
135
  */
136
- rollbackComponent(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RollbackComponent200Response>;
136
+ rollbackComponent(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
137
137
  /**
138
138
  * Updates an existing component with the specified properties.
139
139
  * Update Component