@widgetic/api-sdk 1.0.16 → 1.0.18

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 (234) 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 +14 -3
  4. package/dist/apis/AuthenticationApi.js +60 -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/WidgetsApi.d.ts +30 -0
  40. package/dist/apis/WidgetsApi.js +42 -0
  41. package/dist/apis/WorkspacesApi.js +78 -26
  42. package/dist/apis/index.d.ts +1 -0
  43. package/dist/apis/index.js +1 -0
  44. package/dist/esm/apis/ABTestingApi.js +90 -30
  45. package/dist/esm/apis/AdminApi.js +12 -4
  46. package/dist/esm/apis/AuthenticationApi.d.ts +14 -3
  47. package/dist/esm/apis/AuthenticationApi.js +61 -12
  48. package/dist/esm/apis/BatchApi.js +6 -2
  49. package/dist/esm/apis/BillingApi.d.ts +13 -13
  50. package/dist/esm/apis/BillingApi.js +9 -9
  51. package/dist/esm/apis/CanvasesApi.js +30 -10
  52. package/dist/esm/apis/ComponentsApi.d.ts +3 -3
  53. package/dist/esm/apis/ComponentsApi.js +44 -16
  54. package/dist/esm/apis/CompositionsApi.js +132 -44
  55. package/dist/esm/apis/ContentsApi.js +36 -12
  56. package/dist/esm/apis/ConversationsApi.js +30 -10
  57. package/dist/esm/apis/CreditsApi.js +30 -10
  58. package/dist/esm/apis/DemoContentsApi.js +30 -10
  59. package/dist/esm/apis/EntitlementsApi.js +30 -10
  60. package/dist/esm/apis/FoldersApi.js +30 -10
  61. package/dist/esm/apis/HealthApi.js +12 -4
  62. package/dist/esm/apis/IntegrationsApi.js +42 -14
  63. package/dist/esm/apis/InvitationsApi.js +12 -4
  64. package/dist/esm/apis/InvoicesApi.js +36 -12
  65. package/dist/esm/apis/ManagedUsersApi.js +36 -12
  66. package/dist/esm/apis/MessagesApi.js +36 -12
  67. package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
  68. package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
  69. package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
  70. package/dist/esm/apis/OrganizationsApi.js +324 -292
  71. package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
  72. package/dist/esm/apis/PartnersApi.js +30 -10
  73. package/dist/esm/apis/PromptsApi.js +30 -10
  74. package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
  75. package/dist/esm/apis/SubscriptionsApi.js +48 -16
  76. package/dist/esm/apis/TranslationsApi.d.ts +5 -5
  77. package/dist/esm/apis/TranslationsApi.js +3 -3
  78. package/dist/esm/apis/UIComponentsApi.js +24 -8
  79. package/dist/esm/apis/UsageApi.js +42 -14
  80. package/dist/esm/apis/UsersApi.d.ts +3 -3
  81. package/dist/esm/apis/UsersApi.js +2 -2
  82. package/dist/esm/apis/WidgetsApi.d.ts +30 -0
  83. package/dist/esm/apis/WidgetsApi.js +42 -0
  84. package/dist/esm/apis/WorkspacesApi.js +78 -26
  85. package/dist/esm/apis/index.d.ts +1 -0
  86. package/dist/esm/apis/index.js +1 -0
  87. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  88. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  89. package/dist/esm/models/Canvas.d.ts +6 -0
  90. package/dist/esm/models/Canvas.js +2 -0
  91. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  92. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  93. package/dist/esm/models/ErrorResponse.d.ts +12 -12
  94. package/dist/esm/models/ErrorResponse.js +4 -4
  95. package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
  96. package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
  97. package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
  98. package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
  99. package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  100. package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
  101. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  102. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
  103. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  104. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
  105. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  106. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
  107. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  108. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
  109. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  110. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
  111. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  112. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
  113. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  114. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
  115. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  116. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
  117. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  118. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
  119. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  120. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
  121. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  122. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
  123. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  124. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
  125. package/dist/esm/models/RefreshSessionRequest.d.ts +32 -0
  126. package/dist/esm/models/RefreshSessionRequest.js +41 -0
  127. package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
  128. package/dist/esm/models/UpdateCanvasRequest.js +2 -0
  129. package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
  130. package/dist/esm/models/UpdateWidgetRequest.js +4 -0
  131. package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  132. package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
  133. package/dist/esm/models/index.d.ts +25 -24
  134. package/dist/esm/models/index.js +25 -24
  135. package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  136. package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  137. package/dist/models/Canvas.d.ts +6 -0
  138. package/dist/models/Canvas.js +2 -0
  139. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  140. package/dist/models/CreateCanvasRequest.js +2 -0
  141. package/dist/models/ErrorResponse.d.ts +12 -12
  142. package/dist/models/ErrorResponse.js +4 -4
  143. package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
  144. package/dist/models/GetCompositionsBatch200Response.js +3 -3
  145. package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
  146. package/dist/models/GetWidgetsBatch200Response.js +3 -3
  147. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  148. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
  149. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  150. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
  151. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  152. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
  153. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  154. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  155. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  156. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
  157. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  158. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
  159. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  160. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
  161. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  162. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
  163. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  164. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  165. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  166. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
  167. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  168. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
  169. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  170. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
  171. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  172. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
  173. package/dist/models/RefreshSessionRequest.d.ts +32 -0
  174. package/dist/models/RefreshSessionRequest.js +48 -0
  175. package/dist/models/UpdateCanvasRequest.d.ts +6 -0
  176. package/dist/models/UpdateCanvasRequest.js +2 -0
  177. package/dist/models/UpdateWidgetRequest.d.ts +12 -0
  178. package/dist/models/UpdateWidgetRequest.js +4 -0
  179. package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  180. package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
  181. package/dist/models/index.d.ts +25 -24
  182. package/dist/models/index.js +25 -24
  183. package/package.json +1 -1
  184. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  185. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  186. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  187. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  188. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  189. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  190. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  191. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  192. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  193. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  194. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  195. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  196. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  197. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  198. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  199. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  200. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  201. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  202. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  203. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  204. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  205. package/dist/esm/models/LoginUser200Response.js +0 -43
  206. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  207. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  208. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  209. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  210. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  211. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  212. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  213. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  214. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  215. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  216. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  217. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  218. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  219. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  220. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  221. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  222. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  223. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  224. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  225. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  226. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  227. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  228. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  229. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  230. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  231. package/dist/models/LoginUser200Response.d.ts +0 -38
  232. package/dist/models/LoginUser200Response.js +0 -50
  233. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  234. package/dist/models/RollbackComponent200Response.js +0 -50
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CompleteSignupRequestToJSON, LoginUser200ResponseFromJSON, LoginUserRequestToJSON, ResetPasswordRequestToJSON, SignupUserRequestToJSON, SignupWithInvitationRequestToJSON, UpdateEmailRequestToJSON, UpdateNameRequestToJSON, UpdatePasswordRequestToJSON, UpdateUserMetadataRequestToJSON, } from '../models/index.js';
24
+ import { CompleteSignupRequestToJSON, LoginUserRequestToJSON, OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON, RefreshSessionRequestToJSON, ResetPasswordRequestToJSON, SignupUserRequestToJSON, SignupWithInvitationRequestToJSON, UpdateEmailRequestToJSON, UpdateNameRequestToJSON, UpdatePasswordRequestToJSON, UpdateUserMetadataRequestToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -91,8 +91,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
91
91
  return __awaiter(this, void 0, void 0, function* () {
92
92
  const queryParameters = {};
93
93
  const headerParameters = {};
94
- if (this.configuration && this.configuration.apiKey) {
95
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
94
+ if (this.configuration && this.configuration.accessToken) {
95
+ const token = this.configuration.accessToken;
96
+ const tokenString = yield token("apiKeyAuth", []);
97
+ if (tokenString) {
98
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
99
+ }
96
100
  }
97
101
  const response = yield this.request({
98
102
  path: `/auth/delete-account`,
@@ -118,8 +122,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
118
122
  return __awaiter(this, void 0, void 0, function* () {
119
123
  const queryParameters = {};
120
124
  const headerParameters = {};
121
- if (this.configuration && this.configuration.apiKey) {
122
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
125
+ if (this.configuration && this.configuration.accessToken) {
126
+ const token = this.configuration.accessToken;
127
+ const tokenString = yield token("apiKeyAuth", []);
128
+ if (tokenString) {
129
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
130
+ }
123
131
  }
124
132
  const response = yield this.request({
125
133
  path: `/auth/session`,
@@ -145,8 +153,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
145
153
  return __awaiter(this, void 0, void 0, function* () {
146
154
  const queryParameters = {};
147
155
  const headerParameters = {};
148
- if (this.configuration && this.configuration.apiKey) {
149
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
156
+ if (this.configuration && this.configuration.accessToken) {
157
+ const token = this.configuration.accessToken;
158
+ const tokenString = yield token("apiKeyAuth", []);
159
+ if (tokenString) {
160
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
161
+ }
150
162
  }
151
163
  const response = yield this.request({
152
164
  path: `/auth/get-metadata`,
@@ -219,7 +231,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
219
231
  query: queryParameters,
220
232
  body: LoginUserRequestToJSON(requestParameters['loginUserRequest']),
221
233
  }, initOverrides);
222
- return new runtime.JSONApiResponse(response, (jsonValue) => LoginUser200ResponseFromJSON(jsonValue));
234
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON(jsonValue));
223
235
  });
224
236
  }
225
237
  /**
@@ -238,8 +250,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
238
250
  return __awaiter(this, void 0, void 0, function* () {
239
251
  const queryParameters = {};
240
252
  const headerParameters = {};
241
- if (this.configuration && this.configuration.apiKey) {
242
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
253
+ if (this.configuration && this.configuration.accessToken) {
254
+ const token = this.configuration.accessToken;
255
+ const tokenString = yield token("apiKeyAuth", []);
256
+ if (tokenString) {
257
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
258
+ }
243
259
  }
244
260
  const response = yield this.request({
245
261
  path: `/auth/logout`,
@@ -258,6 +274,35 @@ export class AuthenticationApi extends runtime.BaseAPI {
258
274
  yield this.logoutUserRaw(initOverrides);
259
275
  });
260
276
  }
277
+ /**
278
+ * Refresh access token using a refresh token
279
+ */
280
+ refreshSessionRaw(requestParameters, initOverrides) {
281
+ return __awaiter(this, void 0, void 0, function* () {
282
+ if (requestParameters['refreshSessionRequest'] == null) {
283
+ throw new runtime.RequiredError('refreshSessionRequest', 'Required parameter "refreshSessionRequest" was null or undefined when calling refreshSession().');
284
+ }
285
+ const queryParameters = {};
286
+ const headerParameters = {};
287
+ headerParameters['Content-Type'] = 'application/json';
288
+ const response = yield this.request({
289
+ path: `/auth/refresh`,
290
+ method: 'POST',
291
+ headers: headerParameters,
292
+ query: queryParameters,
293
+ body: RefreshSessionRequestToJSON(requestParameters['refreshSessionRequest']),
294
+ }, initOverrides);
295
+ return new runtime.VoidApiResponse(response);
296
+ });
297
+ }
298
+ /**
299
+ * Refresh access token using a refresh token
300
+ */
301
+ refreshSession(requestParameters, initOverrides) {
302
+ return __awaiter(this, void 0, void 0, function* () {
303
+ yield this.refreshSessionRaw(requestParameters, initOverrides);
304
+ });
305
+ }
261
306
  /**
262
307
  * Resend email confirmation
263
308
  */
@@ -472,8 +517,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
472
517
  const queryParameters = {};
473
518
  const headerParameters = {};
474
519
  headerParameters['Content-Type'] = 'application/json';
475
- if (this.configuration && this.configuration.apiKey) {
476
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
520
+ if (this.configuration && this.configuration.accessToken) {
521
+ const token = this.configuration.accessToken;
522
+ const tokenString = yield token("apiKeyAuth", []);
523
+ if (tokenString) {
524
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
525
+ }
477
526
  }
478
527
  const response = yield this.request({
479
528
  path: `/auth/update-metadata`,
@@ -38,8 +38,12 @@ export class BatchApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'application/json';
41
- if (this.configuration && this.configuration.apiKey) {
42
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("apiKeyAuth", []);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
43
47
  }
44
48
  const response = yield this.request({
45
49
  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
  */
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { ApiV1BillingPricingGet200ResponseFromJSON, ApiV1BillingUsersUserIdInvoicesGet200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON, ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseFromJSON, ApiV1BillingUsersUserIdPortalPost200ResponseFromJSON, ApiV1BillingUsersUserIdPortalPostRequestToJSON, ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionCancelPostRequestToJSON, ApiV1BillingUsersUserIdSubscriptionGet200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPostRequestToJSON, } from '../models/index.js';
24
+ import { ApiV1BillingPricingGet200ResponseFromJSON, ApiV1BillingUsersUserIdInvoicesGet200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200ResponseFromJSON, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionCancelPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionCancelPostRequestToJSON, ApiV1BillingUsersUserIdSubscriptionGet200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPayPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPost200ResponseFromJSON, ApiV1BillingUsersUserIdSubscriptionPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON, OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON, OrganizationsOrgIdBillingPortalPost200ResponseFromJSON, OrganizationsOrgIdBillingPortalPostRequestToJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -112,7 +112,7 @@ export class BillingApi extends runtime.BaseAPI {
112
112
  headers: headerParameters,
113
113
  query: queryParameters,
114
114
  }, initOverrides);
115
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseFromJSON(jsonValue));
115
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON(jsonValue));
116
116
  });
117
117
  }
118
118
  /**
@@ -208,8 +208,8 @@ export class BillingApi extends runtime.BaseAPI {
208
208
  if (requestParameters['userId'] == null) {
209
209
  throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
210
210
  }
211
- if (requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest'] == null) {
212
- throw new runtime.RequiredError('apiV1BillingUsersUserIdPaymentMethodsPostRequest', 'Required parameter "apiV1BillingUsersUserIdPaymentMethodsPostRequest" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
211
+ if (requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest'] == null) {
212
+ throw new runtime.RequiredError('organizationsOrgIdBillingPaymentMethodsPostRequest', 'Required parameter "organizationsOrgIdBillingPaymentMethodsPostRequest" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
213
213
  }
214
214
  const queryParameters = {};
215
215
  const headerParameters = {};
@@ -226,9 +226,9 @@ export class BillingApi extends runtime.BaseAPI {
226
226
  method: 'POST',
227
227
  headers: headerParameters,
228
228
  query: queryParameters,
229
- body: ApiV1BillingUsersUserIdPaymentMethodsPostRequestToJSON(requestParameters['apiV1BillingUsersUserIdPaymentMethodsPostRequest']),
229
+ body: OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON(requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest']),
230
230
  }, initOverrides);
231
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseFromJSON(jsonValue));
231
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON(jsonValue));
232
232
  });
233
233
  }
234
234
  /**
@@ -263,7 +263,7 @@ export class BillingApi extends runtime.BaseAPI {
263
263
  headers: headerParameters,
264
264
  query: queryParameters,
265
265
  }, initOverrides);
266
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseFromJSON(jsonValue));
266
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON(jsonValue));
267
267
  });
268
268
  }
269
269
  /**
@@ -298,9 +298,9 @@ export class BillingApi extends runtime.BaseAPI {
298
298
  method: 'POST',
299
299
  headers: headerParameters,
300
300
  query: queryParameters,
301
- body: ApiV1BillingUsersUserIdPortalPostRequestToJSON(requestParameters['apiV1BillingUsersUserIdPortalPostRequest']),
301
+ body: OrganizationsOrgIdBillingPortalPostRequestToJSON(requestParameters['organizationsOrgIdBillingPortalPostRequest']),
302
302
  }, initOverrides);
303
- return new runtime.JSONApiResponse(response, (jsonValue) => ApiV1BillingUsersUserIdPortalPost200ResponseFromJSON(jsonValue));
303
+ return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingPortalPost200ResponseFromJSON(jsonValue));
304
304
  });
305
305
  }
306
306
  /**
@@ -38,8 +38,12 @@ export class CanvasesApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'application/json';
41
- if (this.configuration && this.configuration.apiKey) {
42
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("apiKeyAuth", []);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
43
47
  }
44
48
  const response = yield this.request({
45
49
  path: `/canvases`,
@@ -72,8 +76,12 @@ export class CanvasesApi extends runtime.BaseAPI {
72
76
  }
73
77
  const queryParameters = {};
74
78
  const headerParameters = {};
75
- if (this.configuration && this.configuration.apiKey) {
76
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("apiKeyAuth", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
77
85
  }
78
86
  const response = yield this.request({
79
87
  path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -128,8 +136,12 @@ export class CanvasesApi extends runtime.BaseAPI {
128
136
  queryParameters['updated_before'] = requestParameters['updatedBefore'].toISOString();
129
137
  }
130
138
  const headerParameters = {};
131
- if (this.configuration && this.configuration.apiKey) {
132
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
139
+ if (this.configuration && this.configuration.accessToken) {
140
+ const token = this.configuration.accessToken;
141
+ const tokenString = yield token("apiKeyAuth", []);
142
+ if (tokenString) {
143
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
144
+ }
133
145
  }
134
146
  const response = yield this.request({
135
147
  path: `/canvases`,
@@ -161,8 +173,12 @@ export class CanvasesApi extends runtime.BaseAPI {
161
173
  }
162
174
  const queryParameters = {};
163
175
  const headerParameters = {};
164
- if (this.configuration && this.configuration.apiKey) {
165
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
176
+ if (this.configuration && this.configuration.accessToken) {
177
+ const token = this.configuration.accessToken;
178
+ const tokenString = yield token("apiKeyAuth", []);
179
+ if (tokenString) {
180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
181
+ }
166
182
  }
167
183
  const response = yield this.request({
168
184
  path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -198,8 +214,12 @@ export class CanvasesApi extends runtime.BaseAPI {
198
214
  const queryParameters = {};
199
215
  const headerParameters = {};
200
216
  headerParameters['Content-Type'] = 'application/json';
201
- if (this.configuration && this.configuration.apiKey) {
202
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
217
+ if (this.configuration && this.configuration.accessToken) {
218
+ const token = this.configuration.accessToken;
219
+ const tokenString = yield token("apiKeyAuth", []);
220
+ if (tokenString) {
221
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
222
+ }
203
223
  }
204
224
  const response = yield this.request({
205
225
  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
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { CanvasesCanvasIdComponentsComponentIdPublishPost202ResponseFromJSON, CanvasesCanvasIdComponentsComponentIdPublishPostRequestToJSON, ComponentFromJSON, CreateComponentRequestToJSON, GetComponentsByWidgetId200ResponseFromJSON, RollbackComponent200ResponseFromJSON, RollbackComponentRequestToJSON, UpdateComponentRequestToJSON, } from '../models/index.js';
24
+ import { CanvasesCanvasIdComponentsComponentIdPublishPost202ResponseFromJSON, CanvasesCanvasIdComponentsComponentIdPublishPostRequestToJSON, ComponentFromJSON, CreateComponentRequestToJSON, GetComponentsByWidgetId200ResponseFromJSON, RollbackComponentRequestToJSON, UpdateComponentRequestToJSON, UsersSendFeedbackPost200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -84,8 +84,12 @@ export class ComponentsApi extends runtime.BaseAPI {
84
84
  const queryParameters = {};
85
85
  const headerParameters = {};
86
86
  headerParameters['Content-Type'] = 'application/json';
87
- if (this.configuration && this.configuration.apiKey) {
88
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
87
+ if (this.configuration && this.configuration.accessToken) {
88
+ const token = this.configuration.accessToken;
89
+ const tokenString = yield token("apiKeyAuth", []);
90
+ if (tokenString) {
91
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
92
+ }
89
93
  }
90
94
  const response = yield this.request({
91
95
  path: `/canvases/{canvasId}/components`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))),
@@ -121,8 +125,12 @@ export class ComponentsApi extends runtime.BaseAPI {
121
125
  }
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: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -156,8 +164,12 @@ export class ComponentsApi extends runtime.BaseAPI {
156
164
  }
157
165
  const queryParameters = {};
158
166
  const headerParameters = {};
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
167
+ if (this.configuration && this.configuration.accessToken) {
168
+ const token = this.configuration.accessToken;
169
+ const tokenString = yield token("apiKeyAuth", []);
170
+ if (tokenString) {
171
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
172
+ }
161
173
  }
162
174
  const response = yield this.request({
163
175
  path: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -188,8 +200,12 @@ export class ComponentsApi extends runtime.BaseAPI {
188
200
  }
189
201
  const queryParameters = {};
190
202
  const headerParameters = {};
191
- if (this.configuration && this.configuration.apiKey) {
192
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
203
+ if (this.configuration && this.configuration.accessToken) {
204
+ const token = this.configuration.accessToken;
205
+ const tokenString = yield token("apiKeyAuth", []);
206
+ if (tokenString) {
207
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
208
+ }
193
209
  }
194
210
  const response = yield this.request({
195
211
  path: `/component/{componentId}`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -230,8 +246,12 @@ export class ComponentsApi extends runtime.BaseAPI {
230
246
  queryParameters['sort'] = requestParameters['sort'];
231
247
  }
232
248
  const headerParameters = {};
233
- if (this.configuration && this.configuration.apiKey) {
234
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
249
+ if (this.configuration && this.configuration.accessToken) {
250
+ const token = this.configuration.accessToken;
251
+ const tokenString = yield token("apiKeyAuth", []);
252
+ if (tokenString) {
253
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
254
+ }
235
255
  }
236
256
  const response = yield this.request({
237
257
  path: `/canvases/{canvasId}/components`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))),
@@ -271,8 +291,12 @@ export class ComponentsApi extends runtime.BaseAPI {
271
291
  queryParameters['sort'] = requestParameters['sort'];
272
292
  }
273
293
  const headerParameters = {};
274
- if (this.configuration && this.configuration.apiKey) {
275
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
294
+ if (this.configuration && this.configuration.accessToken) {
295
+ const token = this.configuration.accessToken;
296
+ const tokenString = yield token("apiKeyAuth", []);
297
+ if (tokenString) {
298
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
299
+ }
276
300
  }
277
301
  const response = yield this.request({
278
302
  path: `/widgets/{widgetId}/components`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
@@ -322,7 +346,7 @@ export class ComponentsApi extends runtime.BaseAPI {
322
346
  query: queryParameters,
323
347
  body: RollbackComponentRequestToJSON(requestParameters['rollbackComponentRequest']),
324
348
  }, initOverrides);
325
- return new runtime.JSONApiResponse(response, (jsonValue) => RollbackComponent200ResponseFromJSON(jsonValue));
349
+ return new runtime.JSONApiResponse(response, (jsonValue) => UsersSendFeedbackPost200ResponseFromJSON(jsonValue));
326
350
  });
327
351
  }
328
352
  /**
@@ -353,8 +377,12 @@ export class ComponentsApi extends runtime.BaseAPI {
353
377
  const queryParameters = {};
354
378
  const headerParameters = {};
355
379
  headerParameters['Content-Type'] = 'application/json';
356
- if (this.configuration && this.configuration.apiKey) {
357
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
380
+ if (this.configuration && this.configuration.accessToken) {
381
+ const token = this.configuration.accessToken;
382
+ const tokenString = yield token("apiKeyAuth", []);
383
+ if (tokenString) {
384
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
385
+ }
358
386
  }
359
387
  const response = yield this.request({
360
388
  path: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),