@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
@@ -41,8 +41,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
43
  headerParameters['Content-Type'] = 'application/json';
44
- if (this.configuration && this.configuration.apiKey) {
45
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
44
+ if (this.configuration && this.configuration.accessToken) {
45
+ const token = this.configuration.accessToken;
46
+ const tokenString = yield token("apiKeyAuth", []);
47
+ if (tokenString) {
48
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
49
+ }
46
50
  }
47
51
  const response = yield this.request({
48
52
  path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
@@ -78,8 +82,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
78
82
  }
79
83
  const queryParameters = {};
80
84
  const headerParameters = {};
81
- if (this.configuration && this.configuration.apiKey) {
82
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
85
+ if (this.configuration && this.configuration.accessToken) {
86
+ const token = this.configuration.accessToken;
87
+ const tokenString = yield token("apiKeyAuth", []);
88
+ if (tokenString) {
89
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
90
+ }
83
91
  }
84
92
  const response = yield this.request({
85
93
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -120,8 +128,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
120
128
  queryParameters['sort'] = requestParameters['sort'];
121
129
  }
122
130
  const headerParameters = {};
123
- if (this.configuration && this.configuration.apiKey) {
124
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
131
+ if (this.configuration && this.configuration.accessToken) {
132
+ const token = this.configuration.accessToken;
133
+ const tokenString = yield token("apiKeyAuth", []);
134
+ if (tokenString) {
135
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
136
+ }
125
137
  }
126
138
  const response = yield this.request({
127
139
  path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
@@ -156,8 +168,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
156
168
  }
157
169
  const queryParameters = {};
158
170
  const headerParameters = {};
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
171
+ if (this.configuration && this.configuration.accessToken) {
172
+ const token = this.configuration.accessToken;
173
+ const tokenString = yield token("apiKeyAuth", []);
174
+ if (tokenString) {
175
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
176
+ }
161
177
  }
162
178
  const response = yield this.request({
163
179
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -196,8 +212,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
196
212
  const queryParameters = {};
197
213
  const headerParameters = {};
198
214
  headerParameters['Content-Type'] = 'application/json';
199
- if (this.configuration && this.configuration.apiKey) {
200
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
215
+ if (this.configuration && this.configuration.accessToken) {
216
+ const token = this.configuration.accessToken;
217
+ const tokenString = yield token("apiKeyAuth", []);
218
+ if (tokenString) {
219
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
220
+ }
201
221
  }
202
222
  const response = yield this.request({
203
223
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -37,8 +37,12 @@ export class EntitlementsApi 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: `/entitlements/check/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters['feature']))),
@@ -79,8 +83,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
79
83
  queryParameters['source'] = requestParameters['source'];
80
84
  }
81
85
  const headerParameters = {};
82
- if (this.configuration && this.configuration.apiKey) {
83
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
86
+ if (this.configuration && this.configuration.accessToken) {
87
+ const token = this.configuration.accessToken;
88
+ const tokenString = yield token("apiKeyAuth", []);
89
+ if (tokenString) {
90
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
91
+ }
84
92
  }
85
93
  const response = yield this.request({
86
94
  path: `/managed-users/{managedUserId}/entitlements`.replace(`{${"managedUserId"}}`, encodeURIComponent(String(requestParameters['managedUserId']))),
@@ -121,8 +129,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
121
129
  queryParameters['source'] = requestParameters['source'];
122
130
  }
123
131
  const headerParameters = {};
124
- if (this.configuration && this.configuration.apiKey) {
125
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
132
+ if (this.configuration && this.configuration.accessToken) {
133
+ const token = this.configuration.accessToken;
134
+ const tokenString = yield token("apiKeyAuth", []);
135
+ if (tokenString) {
136
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
137
+ }
126
138
  }
127
139
  const response = yield this.request({
128
140
  path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -160,8 +172,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
160
172
  queryParameters['source'] = requestParameters['source'];
161
173
  }
162
174
  const headerParameters = {};
163
- if (this.configuration && this.configuration.apiKey) {
164
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
175
+ if (this.configuration && this.configuration.accessToken) {
176
+ const token = this.configuration.accessToken;
177
+ const tokenString = yield token("apiKeyAuth", []);
178
+ if (tokenString) {
179
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
180
+ }
165
181
  }
166
182
  const response = yield this.request({
167
183
  path: `/entitlements`,
@@ -197,8 +213,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
197
213
  const queryParameters = {};
198
214
  const headerParameters = {};
199
215
  headerParameters['Content-Type'] = 'application/json';
200
- if (this.configuration && this.configuration.apiKey) {
201
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
216
+ if (this.configuration && this.configuration.accessToken) {
217
+ const token = this.configuration.accessToken;
218
+ const tokenString = yield token("apiKeyAuth", []);
219
+ if (tokenString) {
220
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
221
+ }
202
222
  }
203
223
  const response = yield this.request({
204
224
  path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -38,8 +38,12 @@ export class FoldersApi 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: `/folders`,
@@ -72,8 +76,12 @@ export class FoldersApi 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: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -107,8 +115,12 @@ export class FoldersApi extends runtime.BaseAPI {
107
115
  queryParameters['size'] = requestParameters['size'];
108
116
  }
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: `/folders`,
@@ -140,8 +152,12 @@ export class FoldersApi extends runtime.BaseAPI {
140
152
  }
141
153
  const queryParameters = {};
142
154
  const headerParameters = {};
143
- if (this.configuration && this.configuration.apiKey) {
144
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
155
+ if (this.configuration && this.configuration.accessToken) {
156
+ const token = this.configuration.accessToken;
157
+ const tokenString = yield token("apiKeyAuth", []);
158
+ if (tokenString) {
159
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
160
+ }
145
161
  }
146
162
  const response = yield this.request({
147
163
  path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -177,8 +193,12 @@ export class FoldersApi extends runtime.BaseAPI {
177
193
  const queryParameters = {};
178
194
  const headerParameters = {};
179
195
  headerParameters['Content-Type'] = 'application/json';
180
- if (this.configuration && this.configuration.apiKey) {
181
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
196
+ if (this.configuration && this.configuration.accessToken) {
197
+ const token = this.configuration.accessToken;
198
+ const tokenString = yield token("apiKeyAuth", []);
199
+ if (tokenString) {
200
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
201
+ }
182
202
  }
183
203
  const response = yield this.request({
184
204
  path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -43,8 +43,12 @@ export class HealthApi extends runtime.BaseAPI {
43
43
  queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
44
44
  }
45
45
  const headerParameters = {};
46
- if (this.configuration && this.configuration.apiKey) {
47
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = yield token("apiKeyAuth", []);
49
+ if (tokenString) {
50
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
+ }
48
52
  }
49
53
  const response = yield this.request({
50
54
  path: `/health/admin`,
@@ -73,8 +77,12 @@ export class HealthApi extends runtime.BaseAPI {
73
77
  return __awaiter(this, void 0, void 0, function* () {
74
78
  const queryParameters = {};
75
79
  const headerParameters = {};
76
- if (this.configuration && this.configuration.apiKey) {
77
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
80
+ if (this.configuration && this.configuration.accessToken) {
81
+ const token = this.configuration.accessToken;
82
+ const tokenString = yield token("apiKeyAuth", []);
83
+ if (tokenString) {
84
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
85
+ }
78
86
  }
79
87
  const response = yield this.request({
80
88
  path: `/health`,
@@ -38,8 +38,12 @@ export class IntegrationsApi 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: `/integrations/connect`,
@@ -73,8 +77,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
73
77
  const queryParameters = {};
74
78
  const headerParameters = {};
75
79
  headerParameters['Content-Type'] = 'application/json';
76
- if (this.configuration && this.configuration.apiKey) {
77
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
80
+ if (this.configuration && this.configuration.accessToken) {
81
+ const token = this.configuration.accessToken;
82
+ const tokenString = yield token("apiKeyAuth", []);
83
+ if (tokenString) {
84
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
85
+ }
78
86
  }
79
87
  const response = yield this.request({
80
88
  path: `/integrations`,
@@ -107,8 +115,12 @@ export class IntegrationsApi 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: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -140,8 +152,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
140
152
  const queryParameters = {};
141
153
  const headerParameters = {};
142
154
  headerParameters['Content-Type'] = 'application/json';
143
- if (this.configuration && this.configuration.apiKey) {
144
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
155
+ if (this.configuration && this.configuration.accessToken) {
156
+ const token = this.configuration.accessToken;
157
+ const tokenString = yield token("apiKeyAuth", []);
158
+ if (tokenString) {
159
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
160
+ }
145
161
  }
146
162
  const response = yield this.request({
147
163
  path: `/integrations/disconnect`,
@@ -179,8 +195,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
179
195
  queryParameters['type'] = requestParameters['type'];
180
196
  }
181
197
  const headerParameters = {};
182
- if (this.configuration && this.configuration.apiKey) {
183
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = yield token("apiKeyAuth", []);
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
184
204
  }
185
205
  const response = yield this.request({
186
206
  path: `/integrations`,
@@ -212,8 +232,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
212
232
  }
213
233
  const queryParameters = {};
214
234
  const headerParameters = {};
215
- if (this.configuration && this.configuration.apiKey) {
216
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
235
+ if (this.configuration && this.configuration.accessToken) {
236
+ const token = this.configuration.accessToken;
237
+ const tokenString = yield token("apiKeyAuth", []);
238
+ if (tokenString) {
239
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
240
+ }
217
241
  }
218
242
  const response = yield this.request({
219
243
  path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -249,8 +273,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
249
273
  const queryParameters = {};
250
274
  const headerParameters = {};
251
275
  headerParameters['Content-Type'] = 'application/json';
252
- if (this.configuration && this.configuration.apiKey) {
253
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
276
+ if (this.configuration && this.configuration.accessToken) {
277
+ const token = this.configuration.accessToken;
278
+ const tokenString = yield token("apiKeyAuth", []);
279
+ if (tokenString) {
280
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
281
+ }
254
282
  }
255
283
  const response = yield this.request({
256
284
  path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -37,8 +37,12 @@ export class InvitationsApi 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: `/invitations/accept/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -70,8 +74,12 @@ export class InvitationsApi extends runtime.BaseAPI {
70
74
  }
71
75
  const queryParameters = {};
72
76
  const headerParameters = {};
73
- if (this.configuration && this.configuration.apiKey) {
74
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
77
+ if (this.configuration && this.configuration.accessToken) {
78
+ const token = this.configuration.accessToken;
79
+ const tokenString = yield token("apiKeyAuth", []);
80
+ if (tokenString) {
81
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
82
+ }
75
83
  }
76
84
  const response = yield this.request({
77
85
  path: `/invitations/verify/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -37,8 +37,12 @@ export class InvoicesApi 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: `/invoices`,
@@ -83,8 +87,12 @@ export class InvoicesApi extends runtime.BaseAPI {
83
87
  queryParameters['offset'] = requestParameters['offset'];
84
88
  }
85
89
  const headerParameters = {};
86
- if (this.configuration && this.configuration.apiKey) {
87
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
90
+ if (this.configuration && this.configuration.accessToken) {
91
+ const token = this.configuration.accessToken;
92
+ const tokenString = yield token("apiKeyAuth", []);
93
+ if (tokenString) {
94
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
95
+ }
88
96
  }
89
97
  const response = yield this.request({
90
98
  path: `/invoices`,
@@ -116,8 +124,12 @@ export class InvoicesApi extends runtime.BaseAPI {
116
124
  }
117
125
  const queryParameters = {};
118
126
  const headerParameters = {};
119
- if (this.configuration && this.configuration.apiKey) {
120
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
127
+ if (this.configuration && this.configuration.accessToken) {
128
+ const token = this.configuration.accessToken;
129
+ const tokenString = yield token("apiKeyAuth", []);
130
+ if (tokenString) {
131
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
132
+ }
121
133
  }
122
134
  const response = yield this.request({
123
135
  path: `/invoices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -158,8 +170,12 @@ export class InvoicesApi extends runtime.BaseAPI {
158
170
  queryParameters['offset'] = requestParameters['offset'];
159
171
  }
160
172
  const headerParameters = {};
161
- if (this.configuration && this.configuration.apiKey) {
162
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
173
+ if (this.configuration && this.configuration.accessToken) {
174
+ const token = this.configuration.accessToken;
175
+ const tokenString = yield token("apiKeyAuth", []);
176
+ if (tokenString) {
177
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
178
+ }
163
179
  }
164
180
  const response = yield this.request({
165
181
  path: `/partners/{partnerId}/invoices`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -200,8 +216,12 @@ export class InvoicesApi extends runtime.BaseAPI {
200
216
  queryParameters['offset'] = requestParameters['offset'];
201
217
  }
202
218
  const headerParameters = {};
203
- if (this.configuration && this.configuration.apiKey) {
204
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
219
+ if (this.configuration && this.configuration.accessToken) {
220
+ const token = this.configuration.accessToken;
221
+ const tokenString = yield token("apiKeyAuth", []);
222
+ if (tokenString) {
223
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
224
+ }
205
225
  }
206
226
  const response = yield this.request({
207
227
  path: `/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -237,8 +257,12 @@ export class InvoicesApi extends runtime.BaseAPI {
237
257
  const queryParameters = {};
238
258
  const headerParameters = {};
239
259
  headerParameters['Content-Type'] = 'application/json';
240
- if (this.configuration && this.configuration.apiKey) {
241
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
260
+ if (this.configuration && this.configuration.accessToken) {
261
+ const token = this.configuration.accessToken;
262
+ const tokenString = yield token("apiKeyAuth", []);
263
+ if (tokenString) {
264
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
265
+ }
242
266
  }
243
267
  const response = yield this.request({
244
268
  path: `/invoices/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -38,8 +38,12 @@ export class ManagedUsersApi 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: `/managed-users`,
@@ -72,8 +76,12 @@ export class ManagedUsersApi 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: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -110,8 +118,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
110
118
  queryParameters['sort'] = requestParameters['sort'];
111
119
  }
112
120
  const headerParameters = {};
113
- if (this.configuration && this.configuration.apiKey) {
114
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
121
+ if (this.configuration && this.configuration.accessToken) {
122
+ const token = this.configuration.accessToken;
123
+ const tokenString = yield token("apiKeyAuth", []);
124
+ if (tokenString) {
125
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
126
+ }
115
127
  }
116
128
  const response = yield this.request({
117
129
  path: `/managed-users`,
@@ -143,8 +155,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
143
155
  }
144
156
  const queryParameters = {};
145
157
  const headerParameters = {};
146
- if (this.configuration && this.configuration.apiKey) {
147
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
158
+ if (this.configuration && this.configuration.accessToken) {
159
+ const token = this.configuration.accessToken;
160
+ const tokenString = yield token("apiKeyAuth", []);
161
+ if (tokenString) {
162
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
163
+ }
148
164
  }
149
165
  const response = yield this.request({
150
166
  path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -185,8 +201,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
185
201
  queryParameters['sort'] = requestParameters['sort'];
186
202
  }
187
203
  const headerParameters = {};
188
- if (this.configuration && this.configuration.apiKey) {
189
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
204
+ if (this.configuration && this.configuration.accessToken) {
205
+ const token = this.configuration.accessToken;
206
+ const tokenString = yield token("apiKeyAuth", []);
207
+ if (tokenString) {
208
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
209
+ }
190
210
  }
191
211
  const response = yield this.request({
192
212
  path: `/users/{managerId}/managed-users`.replace(`{${"managerId"}}`, encodeURIComponent(String(requestParameters['managerId']))),
@@ -222,8 +242,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
222
242
  const queryParameters = {};
223
243
  const headerParameters = {};
224
244
  headerParameters['Content-Type'] = 'application/json';
225
- if (this.configuration && this.configuration.apiKey) {
226
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
245
+ if (this.configuration && this.configuration.accessToken) {
246
+ const token = this.configuration.accessToken;
247
+ const tokenString = yield token("apiKeyAuth", []);
248
+ if (tokenString) {
249
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
250
+ }
227
251
  }
228
252
  const response = yield this.request({
229
253
  path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),