@widgetic/api-sdk 1.0.15 → 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
@@ -37,8 +37,12 @@ export class CompositionsApi extends runtime.BaseAPI {
37
37
  }
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("apiKeyAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/compositions/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -71,8 +75,12 @@ export class CompositionsApi extends runtime.BaseAPI {
71
75
  const queryParameters = {};
72
76
  const headerParameters = {};
73
77
  headerParameters['Content-Type'] = 'application/json';
74
- if (this.configuration && this.configuration.apiKey) {
75
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
78
+ if (this.configuration && this.configuration.accessToken) {
79
+ const token = this.configuration.accessToken;
80
+ const tokenString = yield token("apiKeyAuth", []);
81
+ if (tokenString) {
82
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
83
+ }
76
84
  }
77
85
  const response = yield this.request({
78
86
  path: `/compositions`,
@@ -112,8 +120,12 @@ export class CompositionsApi extends runtime.BaseAPI {
112
120
  const queryParameters = {};
113
121
  const headerParameters = {};
114
122
  headerParameters['Content-Type'] = 'application/json';
115
- if (this.configuration && this.configuration.apiKey) {
116
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
123
+ if (this.configuration && this.configuration.accessToken) {
124
+ const token = this.configuration.accessToken;
125
+ const tokenString = yield token("apiKeyAuth", []);
126
+ if (tokenString) {
127
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
128
+ }
117
129
  }
118
130
  const response = yield this.request({
119
131
  path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
@@ -145,8 +157,12 @@ export class CompositionsApi extends runtime.BaseAPI {
145
157
  }
146
158
  const queryParameters = {};
147
159
  const headerParameters = {};
148
- if (this.configuration && this.configuration.apiKey) {
149
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
160
+ if (this.configuration && this.configuration.accessToken) {
161
+ const token = this.configuration.accessToken;
162
+ const tokenString = yield token("apiKeyAuth", []);
163
+ if (tokenString) {
164
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
165
+ }
150
166
  }
151
167
  const response = yield this.request({
152
168
  path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -183,8 +199,12 @@ export class CompositionsApi extends runtime.BaseAPI {
183
199
  }
184
200
  const queryParameters = {};
185
201
  const headerParameters = {};
186
- if (this.configuration && this.configuration.apiKey) {
187
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
188
208
  }
189
209
  const response = yield this.request({
190
210
  path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
@@ -216,8 +236,12 @@ export class CompositionsApi extends runtime.BaseAPI {
216
236
  const queryParameters = {};
217
237
  const headerParameters = {};
218
238
  headerParameters['Content-Type'] = 'application/json';
219
- if (this.configuration && this.configuration.apiKey) {
220
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
239
+ if (this.configuration && this.configuration.accessToken) {
240
+ const token = this.configuration.accessToken;
241
+ const tokenString = yield token("apiKeyAuth", []);
242
+ if (tokenString) {
243
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
244
+ }
221
245
  }
222
246
  const response = yield this.request({
223
247
  path: `/compositions/{id}/duplicate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -271,8 +295,12 @@ export class CompositionsApi extends runtime.BaseAPI {
271
295
  queryParameters['include'] = requestParameters['include'];
272
296
  }
273
297
  const headerParameters = {};
274
- if (this.configuration && this.configuration.apiKey) {
275
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
298
+ if (this.configuration && this.configuration.accessToken) {
299
+ const token = this.configuration.accessToken;
300
+ const tokenString = yield token("apiKeyAuth", []);
301
+ if (tokenString) {
302
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
303
+ }
276
304
  }
277
305
  const response = yield this.request({
278
306
  path: `/compositions`,
@@ -304,8 +332,12 @@ export class CompositionsApi extends runtime.BaseAPI {
304
332
  }
305
333
  const queryParameters = {};
306
334
  const headerParameters = {};
307
- if (this.configuration && this.configuration.apiKey) {
308
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
335
+ if (this.configuration && this.configuration.accessToken) {
336
+ const token = this.configuration.accessToken;
337
+ const tokenString = yield token("apiKeyAuth", []);
338
+ if (tokenString) {
339
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
340
+ }
309
341
  }
310
342
  const response = yield this.request({
311
343
  path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -337,8 +369,12 @@ export class CompositionsApi extends runtime.BaseAPI {
337
369
  }
338
370
  const queryParameters = {};
339
371
  const headerParameters = {};
340
- if (this.configuration && this.configuration.apiKey) {
341
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
372
+ if (this.configuration && this.configuration.accessToken) {
373
+ const token = this.configuration.accessToken;
374
+ const tokenString = yield token("apiKeyAuth", []);
375
+ if (tokenString) {
376
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
377
+ }
342
378
  }
343
379
  const response = yield this.request({
344
380
  path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -370,8 +406,12 @@ export class CompositionsApi extends runtime.BaseAPI {
370
406
  }
371
407
  const queryParameters = {};
372
408
  const headerParameters = {};
373
- if (this.configuration && this.configuration.apiKey) {
374
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
409
+ if (this.configuration && this.configuration.accessToken) {
410
+ const token = this.configuration.accessToken;
411
+ const tokenString = yield token("apiKeyAuth", []);
412
+ if (tokenString) {
413
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
414
+ }
375
415
  }
376
416
  const response = yield this.request({
377
417
  path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -409,8 +449,12 @@ export class CompositionsApi extends runtime.BaseAPI {
409
449
  }
410
450
  const queryParameters = {};
411
451
  const headerParameters = {};
412
- if (this.configuration && this.configuration.apiKey) {
413
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
452
+ if (this.configuration && this.configuration.accessToken) {
453
+ const token = this.configuration.accessToken;
454
+ const tokenString = yield token("apiKeyAuth", []);
455
+ if (tokenString) {
456
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
457
+ }
414
458
  }
415
459
  const response = yield this.request({
416
460
  path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
@@ -444,8 +488,12 @@ export class CompositionsApi extends runtime.BaseAPI {
444
488
  }
445
489
  const queryParameters = {};
446
490
  const headerParameters = {};
447
- if (this.configuration && this.configuration.apiKey) {
448
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
491
+ if (this.configuration && this.configuration.accessToken) {
492
+ const token = this.configuration.accessToken;
493
+ const tokenString = yield token("apiKeyAuth", []);
494
+ if (tokenString) {
495
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
496
+ }
449
497
  }
450
498
  const response = yield this.request({
451
499
  path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
@@ -476,8 +524,12 @@ export class CompositionsApi extends runtime.BaseAPI {
476
524
  }
477
525
  const queryParameters = {};
478
526
  const headerParameters = {};
479
- if (this.configuration && this.configuration.apiKey) {
480
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
527
+ if (this.configuration && this.configuration.accessToken) {
528
+ const token = this.configuration.accessToken;
529
+ const tokenString = yield token("apiKeyAuth", []);
530
+ if (tokenString) {
531
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
532
+ }
481
533
  }
482
534
  const response = yield this.request({
483
535
  path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -509,8 +561,12 @@ export class CompositionsApi extends runtime.BaseAPI {
509
561
  }
510
562
  const queryParameters = {};
511
563
  const headerParameters = {};
512
- if (this.configuration && this.configuration.apiKey) {
513
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
564
+ if (this.configuration && this.configuration.accessToken) {
565
+ const token = this.configuration.accessToken;
566
+ const tokenString = yield token("apiKeyAuth", []);
567
+ if (tokenString) {
568
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
569
+ }
514
570
  }
515
571
  const response = yield this.request({
516
572
  path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -542,8 +598,12 @@ export class CompositionsApi extends runtime.BaseAPI {
542
598
  }
543
599
  const queryParameters = {};
544
600
  const headerParameters = {};
545
- if (this.configuration && this.configuration.apiKey) {
546
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
601
+ if (this.configuration && this.configuration.accessToken) {
602
+ const token = this.configuration.accessToken;
603
+ const tokenString = yield token("apiKeyAuth", []);
604
+ if (tokenString) {
605
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
606
+ }
547
607
  }
548
608
  const response = yield this.request({
549
609
  path: `/compositions/{id}/embed-settings`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -575,8 +635,12 @@ export class CompositionsApi extends runtime.BaseAPI {
575
635
  }
576
636
  const queryParameters = {};
577
637
  const headerParameters = {};
578
- if (this.configuration && this.configuration.apiKey) {
579
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
638
+ if (this.configuration && this.configuration.accessToken) {
639
+ const token = this.configuration.accessToken;
640
+ const tokenString = yield token("apiKeyAuth", []);
641
+ if (tokenString) {
642
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
643
+ }
580
644
  }
581
645
  const response = yield this.request({
582
646
  path: `/compositions/{id}/versions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -609,8 +673,12 @@ export class CompositionsApi extends runtime.BaseAPI {
609
673
  const queryParameters = {};
610
674
  const headerParameters = {};
611
675
  headerParameters['Content-Type'] = 'application/json';
612
- if (this.configuration && this.configuration.apiKey) {
613
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
676
+ if (this.configuration && this.configuration.accessToken) {
677
+ const token = this.configuration.accessToken;
678
+ const tokenString = yield token("apiKeyAuth", []);
679
+ if (tokenString) {
680
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
681
+ }
614
682
  }
615
683
  const response = yield this.request({
616
684
  path: `/compositions/batch`,
@@ -647,8 +715,12 @@ export class CompositionsApi extends runtime.BaseAPI {
647
715
  const queryParameters = {};
648
716
  const headerParameters = {};
649
717
  headerParameters['Content-Type'] = 'application/json';
650
- if (this.configuration && this.configuration.apiKey) {
651
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
718
+ if (this.configuration && this.configuration.accessToken) {
719
+ const token = this.configuration.accessToken;
720
+ const tokenString = yield token("apiKeyAuth", []);
721
+ if (tokenString) {
722
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
723
+ }
652
724
  }
653
725
  const response = yield this.request({
654
726
  path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -685,8 +757,12 @@ export class CompositionsApi extends runtime.BaseAPI {
685
757
  const queryParameters = {};
686
758
  const headerParameters = {};
687
759
  headerParameters['Content-Type'] = 'application/json';
688
- if (this.configuration && this.configuration.apiKey) {
689
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
760
+ if (this.configuration && this.configuration.accessToken) {
761
+ const token = this.configuration.accessToken;
762
+ const tokenString = yield token("apiKeyAuth", []);
763
+ if (tokenString) {
764
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
765
+ }
690
766
  }
691
767
  const response = yield this.request({
692
768
  path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -729,8 +805,12 @@ export class CompositionsApi extends runtime.BaseAPI {
729
805
  const queryParameters = {};
730
806
  const headerParameters = {};
731
807
  headerParameters['Content-Type'] = 'application/json';
732
- if (this.configuration && this.configuration.apiKey) {
733
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
808
+ if (this.configuration && this.configuration.accessToken) {
809
+ const token = this.configuration.accessToken;
810
+ const tokenString = yield token("apiKeyAuth", []);
811
+ if (tokenString) {
812
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
813
+ }
734
814
  }
735
815
  const response = yield this.request({
736
816
  path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
@@ -766,8 +846,12 @@ export class CompositionsApi extends runtime.BaseAPI {
766
846
  const queryParameters = {};
767
847
  const headerParameters = {};
768
848
  headerParameters['Content-Type'] = 'application/json';
769
- if (this.configuration && this.configuration.apiKey) {
770
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
849
+ if (this.configuration && this.configuration.accessToken) {
850
+ const token = this.configuration.accessToken;
851
+ const tokenString = yield token("apiKeyAuth", []);
852
+ if (tokenString) {
853
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
854
+ }
771
855
  }
772
856
  const response = yield this.request({
773
857
  path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -804,8 +888,12 @@ export class CompositionsApi extends runtime.BaseAPI {
804
888
  const queryParameters = {};
805
889
  const headerParameters = {};
806
890
  headerParameters['Content-Type'] = 'application/json';
807
- if (this.configuration && this.configuration.apiKey) {
808
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
891
+ if (this.configuration && this.configuration.accessToken) {
892
+ const token = this.configuration.accessToken;
893
+ const tokenString = yield token("apiKeyAuth", []);
894
+ if (tokenString) {
895
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
896
+ }
809
897
  }
810
898
  const response = yield this.request({
811
899
  path: `/compositions/{id}/content/validate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -36,8 +36,12 @@ export class ContentsApi extends runtime.BaseAPI {
36
36
  const queryParameters = {};
37
37
  const headerParameters = {};
38
38
  headerParameters['Content-Type'] = 'application/json';
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("apiKeyAuth", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/contents`,
@@ -67,8 +71,12 @@ export class ContentsApi extends runtime.BaseAPI {
67
71
  }
68
72
  const queryParameters = {};
69
73
  const headerParameters = {};
70
- if (this.configuration && this.configuration.apiKey) {
71
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ const token = this.configuration.accessToken;
76
+ const tokenString = yield token("apiKeyAuth", []);
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
72
80
  }
73
81
  const response = yield this.request({
74
82
  path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -97,8 +105,12 @@ export class ContentsApi extends runtime.BaseAPI {
97
105
  }
98
106
  const queryParameters = {};
99
107
  const headerParameters = {};
100
- if (this.configuration && this.configuration.apiKey) {
101
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
108
+ if (this.configuration && this.configuration.accessToken) {
109
+ const token = this.configuration.accessToken;
110
+ const tokenString = yield token("apiKeyAuth", []);
111
+ if (tokenString) {
112
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
113
+ }
102
114
  }
103
115
  const response = yield this.request({
104
116
  path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -133,8 +145,12 @@ export class ContentsApi extends runtime.BaseAPI {
133
145
  queryParameters['sort'] = requestParameters['sort'];
134
146
  }
135
147
  const headerParameters = {};
136
- if (this.configuration && this.configuration.apiKey) {
137
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
148
+ if (this.configuration && this.configuration.accessToken) {
149
+ const token = this.configuration.accessToken;
150
+ const tokenString = yield token("apiKeyAuth", []);
151
+ if (tokenString) {
152
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
153
+ }
138
154
  }
139
155
  const response = yield this.request({
140
156
  path: `/contents`,
@@ -167,8 +183,12 @@ export class ContentsApi extends runtime.BaseAPI {
167
183
  const queryParameters = {};
168
184
  const headerParameters = {};
169
185
  headerParameters['Content-Type'] = 'application/json';
170
- if (this.configuration && this.configuration.apiKey) {
171
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
186
+ if (this.configuration && this.configuration.accessToken) {
187
+ const token = this.configuration.accessToken;
188
+ const tokenString = yield token("apiKeyAuth", []);
189
+ if (tokenString) {
190
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
191
+ }
172
192
  }
173
193
  const response = yield this.request({
174
194
  path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -198,8 +218,12 @@ export class ContentsApi extends runtime.BaseAPI {
198
218
  }
199
219
  const queryParameters = {};
200
220
  const headerParameters = {};
201
- if (this.configuration && this.configuration.apiKey) {
202
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
221
+ if (this.configuration && this.configuration.accessToken) {
222
+ const token = this.configuration.accessToken;
223
+ const tokenString = yield token("apiKeyAuth", []);
224
+ if (tokenString) {
225
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
226
+ }
203
227
  }
204
228
  const consumes = [
205
229
  { contentType: 'multipart/form-data' },
@@ -38,8 +38,12 @@ export class ConversationsApi 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: `/conversations`,
@@ -71,8 +75,12 @@ export class ConversationsApi extends runtime.BaseAPI {
71
75
  }
72
76
  const queryParameters = {};
73
77
  const headerParameters = {};
74
- if (this.configuration && this.configuration.apiKey) {
75
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
78
+ if (this.configuration && this.configuration.accessToken) {
79
+ const token = this.configuration.accessToken;
80
+ const tokenString = yield token("apiKeyAuth", []);
81
+ if (tokenString) {
82
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
83
+ }
76
84
  }
77
85
  const response = yield this.request({
78
86
  path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
@@ -103,8 +111,12 @@ export class ConversationsApi extends runtime.BaseAPI {
103
111
  }
104
112
  const queryParameters = {};
105
113
  const headerParameters = {};
106
- if (this.configuration && this.configuration.apiKey) {
107
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
114
+ if (this.configuration && this.configuration.accessToken) {
115
+ const token = this.configuration.accessToken;
116
+ const tokenString = yield token("apiKeyAuth", []);
117
+ if (tokenString) {
118
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
119
+ }
108
120
  }
109
121
  const response = yield this.request({
110
122
  path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
@@ -147,8 +159,12 @@ export class ConversationsApi extends runtime.BaseAPI {
147
159
  queryParameters['sort'] = requestParameters['sort'];
148
160
  }
149
161
  const headerParameters = {};
150
- if (this.configuration && this.configuration.apiKey) {
151
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
162
+ if (this.configuration && this.configuration.accessToken) {
163
+ const token = this.configuration.accessToken;
164
+ const tokenString = yield token("apiKeyAuth", []);
165
+ if (tokenString) {
166
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
167
+ }
152
168
  }
153
169
  const response = yield this.request({
154
170
  path: `/conversations`,
@@ -183,8 +199,12 @@ export class ConversationsApi extends runtime.BaseAPI {
183
199
  const queryParameters = {};
184
200
  const headerParameters = {};
185
201
  headerParameters['Content-Type'] = 'application/json';
186
- if (this.configuration && this.configuration.apiKey) {
187
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
188
208
  }
189
209
  const response = yield this.request({
190
210
  path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
@@ -37,8 +37,12 @@ export class CreditsApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("apiKeyAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/credits/add`,
@@ -74,8 +78,12 @@ export class CreditsApi extends runtime.BaseAPI {
74
78
  queryParameters['offset'] = requestParameters['offset'];
75
79
  }
76
80
  const headerParameters = {};
77
- if (this.configuration && this.configuration.apiKey) {
78
- 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
+ }
79
87
  }
80
88
  const response = yield this.request({
81
89
  path: `/credits/balances`,
@@ -107,8 +115,12 @@ export class CreditsApi extends runtime.BaseAPI {
107
115
  }
108
116
  const queryParameters = {};
109
117
  const headerParameters = {};
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
118
+ if (this.configuration && this.configuration.accessToken) {
119
+ const token = this.configuration.accessToken;
120
+ const tokenString = yield token("apiKeyAuth", []);
121
+ if (tokenString) {
122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
123
+ }
112
124
  }
113
125
  const response = yield this.request({
114
126
  path: `/users/{userId}/credits/balance`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -149,8 +161,12 @@ export class CreditsApi extends runtime.BaseAPI {
149
161
  queryParameters['offset'] = requestParameters['offset'];
150
162
  }
151
163
  const headerParameters = {};
152
- if (this.configuration && this.configuration.apiKey) {
153
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ const token = this.configuration.accessToken;
166
+ const tokenString = yield token("apiKeyAuth", []);
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
169
+ }
154
170
  }
155
171
  const response = yield this.request({
156
172
  path: `/users/{userId}/credits/transactions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -183,8 +199,12 @@ export class CreditsApi extends runtime.BaseAPI {
183
199
  const queryParameters = {};
184
200
  const headerParameters = {};
185
201
  headerParameters['Content-Type'] = 'application/json';
186
- if (this.configuration && this.configuration.apiKey) {
187
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
188
208
  }
189
209
  const response = yield this.request({
190
210
  path: `/credits/subtract`,