@widgetic/api-sdk 1.0.16 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/apis/ABTestingApi.js +90 -30
  2. package/dist/apis/AdminApi.js +12 -4
  3. package/dist/apis/AuthenticationApi.d.ts +3 -3
  4. package/dist/apis/AuthenticationApi.js +31 -11
  5. package/dist/apis/BatchApi.js +6 -2
  6. package/dist/apis/BillingApi.d.ts +13 -13
  7. package/dist/apis/BillingApi.js +8 -8
  8. package/dist/apis/CanvasesApi.js +30 -10
  9. package/dist/apis/ComponentsApi.d.ts +3 -3
  10. package/dist/apis/ComponentsApi.js +43 -15
  11. package/dist/apis/CompositionsApi.js +132 -44
  12. package/dist/apis/ContentsApi.js +36 -12
  13. package/dist/apis/ConversationsApi.js +30 -10
  14. package/dist/apis/CreditsApi.js +30 -10
  15. package/dist/apis/DemoContentsApi.js +30 -10
  16. package/dist/apis/EntitlementsApi.js +30 -10
  17. package/dist/apis/FoldersApi.js +30 -10
  18. package/dist/apis/HealthApi.js +12 -4
  19. package/dist/apis/IntegrationsApi.js +42 -14
  20. package/dist/apis/InvitationsApi.js +12 -4
  21. package/dist/apis/InvoicesApi.js +36 -12
  22. package/dist/apis/ManagedUsersApi.js +36 -12
  23. package/dist/apis/MessagesApi.js +36 -12
  24. package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
  25. package/dist/apis/OrganizationActivitiesApi.js +221 -0
  26. package/dist/apis/OrganizationsApi.d.ts +31 -106
  27. package/dist/apis/OrganizationsApi.js +324 -292
  28. package/dist/apis/PartnerCustomizationsApi.js +30 -10
  29. package/dist/apis/PartnersApi.js +30 -10
  30. package/dist/apis/PromptsApi.js +30 -10
  31. package/dist/apis/SubscriptionPlansApi.js +12 -4
  32. package/dist/apis/SubscriptionsApi.js +48 -16
  33. package/dist/apis/TranslationsApi.d.ts +5 -5
  34. package/dist/apis/TranslationsApi.js +2 -2
  35. package/dist/apis/UIComponentsApi.js +24 -8
  36. package/dist/apis/UsageApi.js +42 -14
  37. package/dist/apis/UsersApi.d.ts +3 -3
  38. package/dist/apis/UsersApi.js +1 -1
  39. package/dist/apis/WorkspacesApi.js +78 -26
  40. package/dist/apis/index.d.ts +1 -0
  41. package/dist/apis/index.js +1 -0
  42. package/dist/esm/apis/ABTestingApi.js +90 -30
  43. package/dist/esm/apis/AdminApi.js +12 -4
  44. package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
  45. package/dist/esm/apis/AuthenticationApi.js +32 -12
  46. package/dist/esm/apis/BatchApi.js +6 -2
  47. package/dist/esm/apis/BillingApi.d.ts +13 -13
  48. package/dist/esm/apis/BillingApi.js +9 -9
  49. package/dist/esm/apis/CanvasesApi.js +30 -10
  50. package/dist/esm/apis/ComponentsApi.d.ts +3 -3
  51. package/dist/esm/apis/ComponentsApi.js +44 -16
  52. package/dist/esm/apis/CompositionsApi.js +132 -44
  53. package/dist/esm/apis/ContentsApi.js +36 -12
  54. package/dist/esm/apis/ConversationsApi.js +30 -10
  55. package/dist/esm/apis/CreditsApi.js +30 -10
  56. package/dist/esm/apis/DemoContentsApi.js +30 -10
  57. package/dist/esm/apis/EntitlementsApi.js +30 -10
  58. package/dist/esm/apis/FoldersApi.js +30 -10
  59. package/dist/esm/apis/HealthApi.js +12 -4
  60. package/dist/esm/apis/IntegrationsApi.js +42 -14
  61. package/dist/esm/apis/InvitationsApi.js +12 -4
  62. package/dist/esm/apis/InvoicesApi.js +36 -12
  63. package/dist/esm/apis/ManagedUsersApi.js +36 -12
  64. package/dist/esm/apis/MessagesApi.js +36 -12
  65. package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
  66. package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
  67. package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
  68. package/dist/esm/apis/OrganizationsApi.js +324 -292
  69. package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
  70. package/dist/esm/apis/PartnersApi.js +30 -10
  71. package/dist/esm/apis/PromptsApi.js +30 -10
  72. package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
  73. package/dist/esm/apis/SubscriptionsApi.js +48 -16
  74. package/dist/esm/apis/TranslationsApi.d.ts +5 -5
  75. package/dist/esm/apis/TranslationsApi.js +3 -3
  76. package/dist/esm/apis/UIComponentsApi.js +24 -8
  77. package/dist/esm/apis/UsageApi.js +42 -14
  78. package/dist/esm/apis/UsersApi.d.ts +3 -3
  79. package/dist/esm/apis/UsersApi.js +2 -2
  80. package/dist/esm/apis/WorkspacesApi.js +78 -26
  81. package/dist/esm/apis/index.d.ts +1 -0
  82. package/dist/esm/apis/index.js +1 -0
  83. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  84. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  85. package/dist/esm/models/Canvas.d.ts +6 -0
  86. package/dist/esm/models/Canvas.js +2 -0
  87. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  88. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  89. package/dist/esm/models/ErrorResponse.d.ts +12 -12
  90. package/dist/esm/models/ErrorResponse.js +4 -4
  91. package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
  92. package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
  93. package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
  94. package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
  95. package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  96. package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
  97. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  98. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
  99. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  100. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
  101. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  102. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
  103. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  104. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
  105. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  106. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
  107. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  108. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
  109. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  110. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
  111. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  112. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
  113. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  114. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
  115. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  116. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
  117. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  118. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
  119. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  120. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
  121. package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
  122. package/dist/esm/models/UpdateCanvasRequest.js +2 -0
  123. package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
  124. package/dist/esm/models/UpdateWidgetRequest.js +5 -0
  125. package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  126. package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
  127. package/dist/esm/models/index.d.ts +24 -24
  128. package/dist/esm/models/index.js +24 -24
  129. package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  130. package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  131. package/dist/models/Canvas.d.ts +6 -0
  132. package/dist/models/Canvas.js +2 -0
  133. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  134. package/dist/models/CreateCanvasRequest.js +2 -0
  135. package/dist/models/ErrorResponse.d.ts +12 -12
  136. package/dist/models/ErrorResponse.js +4 -4
  137. package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
  138. package/dist/models/GetCompositionsBatch200Response.js +3 -3
  139. package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
  140. package/dist/models/GetWidgetsBatch200Response.js +3 -3
  141. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  142. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
  143. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  144. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
  145. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  146. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
  147. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  148. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  149. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  150. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
  151. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  152. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
  153. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  154. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
  155. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  156. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
  157. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  158. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  159. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  160. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
  161. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  162. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
  163. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  164. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
  165. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  166. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
  167. package/dist/models/UpdateCanvasRequest.d.ts +6 -0
  168. package/dist/models/UpdateCanvasRequest.js +2 -0
  169. package/dist/models/UpdateWidgetRequest.d.ts +12 -0
  170. package/dist/models/UpdateWidgetRequest.js +5 -0
  171. package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  172. package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
  173. package/dist/models/index.d.ts +24 -24
  174. package/dist/models/index.js +24 -24
  175. package/package.json +1 -1
  176. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  177. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  178. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  179. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  180. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  181. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  182. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  183. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  184. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  185. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  186. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  187. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  188. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  189. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  190. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  191. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  192. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  193. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  194. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  195. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  196. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  197. package/dist/esm/models/LoginUser200Response.js +0 -43
  198. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  199. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  200. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  201. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  202. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  203. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  204. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  205. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  206. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  207. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  208. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  209. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  210. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  211. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  212. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  213. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  214. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  215. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  216. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  217. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  218. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  219. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  220. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  221. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  222. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  223. package/dist/models/LoginUser200Response.d.ts +0 -38
  224. package/dist/models/LoginUser200Response.js +0 -50
  225. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  226. package/dist/models/RollbackComponent200Response.js +0 -50
@@ -40,8 +40,12 @@ class CreditsApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("apiKeyAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
45
49
  }
46
50
  const response = yield this.request({
47
51
  path: `/credits/add`,
@@ -77,8 +81,12 @@ class CreditsApi extends runtime.BaseAPI {
77
81
  queryParameters['offset'] = requestParameters['offset'];
78
82
  }
79
83
  const headerParameters = {};
80
- if (this.configuration && this.configuration.apiKey) {
81
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
84
+ if (this.configuration && this.configuration.accessToken) {
85
+ const token = this.configuration.accessToken;
86
+ const tokenString = yield token("apiKeyAuth", []);
87
+ if (tokenString) {
88
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
89
+ }
82
90
  }
83
91
  const response = yield this.request({
84
92
  path: `/credits/balances`,
@@ -110,8 +118,12 @@ class CreditsApi extends runtime.BaseAPI {
110
118
  }
111
119
  const queryParameters = {};
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: `/users/{userId}/credits/balance`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -152,8 +164,12 @@ class CreditsApi extends runtime.BaseAPI {
152
164
  queryParameters['offset'] = requestParameters['offset'];
153
165
  }
154
166
  const headerParameters = {};
155
- if (this.configuration && this.configuration.apiKey) {
156
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
167
+ if (this.configuration && this.configuration.accessToken) {
168
+ const token = this.configuration.accessToken;
169
+ const tokenString = yield token("apiKeyAuth", []);
170
+ if (tokenString) {
171
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
172
+ }
157
173
  }
158
174
  const response = yield this.request({
159
175
  path: `/users/{userId}/credits/transactions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -186,8 +202,12 @@ class CreditsApi extends runtime.BaseAPI {
186
202
  const queryParameters = {};
187
203
  const headerParameters = {};
188
204
  headerParameters['Content-Type'] = 'application/json';
189
- if (this.configuration && this.configuration.apiKey) {
190
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
205
+ if (this.configuration && this.configuration.accessToken) {
206
+ const token = this.configuration.accessToken;
207
+ const tokenString = yield token("apiKeyAuth", []);
208
+ if (tokenString) {
209
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
210
+ }
191
211
  }
192
212
  const response = yield this.request({
193
213
  path: `/credits/subtract`,
@@ -44,8 +44,12 @@ class DemoContentsApi extends runtime.BaseAPI {
44
44
  const queryParameters = {};
45
45
  const headerParameters = {};
46
46
  headerParameters['Content-Type'] = 'application/json';
47
- if (this.configuration && this.configuration.apiKey) {
48
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
47
+ if (this.configuration && this.configuration.accessToken) {
48
+ const token = this.configuration.accessToken;
49
+ const tokenString = yield token("apiKeyAuth", []);
50
+ if (tokenString) {
51
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
+ }
49
53
  }
50
54
  const response = yield this.request({
51
55
  path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
@@ -81,8 +85,12 @@ class DemoContentsApi extends runtime.BaseAPI {
81
85
  }
82
86
  const queryParameters = {};
83
87
  const headerParameters = {};
84
- if (this.configuration && this.configuration.apiKey) {
85
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
88
+ if (this.configuration && this.configuration.accessToken) {
89
+ const token = this.configuration.accessToken;
90
+ const tokenString = yield token("apiKeyAuth", []);
91
+ if (tokenString) {
92
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
93
+ }
86
94
  }
87
95
  const response = yield this.request({
88
96
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -123,8 +131,12 @@ class DemoContentsApi extends runtime.BaseAPI {
123
131
  queryParameters['sort'] = requestParameters['sort'];
124
132
  }
125
133
  const headerParameters = {};
126
- if (this.configuration && this.configuration.apiKey) {
127
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
134
+ if (this.configuration && this.configuration.accessToken) {
135
+ const token = this.configuration.accessToken;
136
+ const tokenString = yield token("apiKeyAuth", []);
137
+ if (tokenString) {
138
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
139
+ }
128
140
  }
129
141
  const response = yield this.request({
130
142
  path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
@@ -159,8 +171,12 @@ class DemoContentsApi extends runtime.BaseAPI {
159
171
  }
160
172
  const queryParameters = {};
161
173
  const headerParameters = {};
162
- if (this.configuration && this.configuration.apiKey) {
163
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
174
+ if (this.configuration && this.configuration.accessToken) {
175
+ const token = this.configuration.accessToken;
176
+ const tokenString = yield token("apiKeyAuth", []);
177
+ if (tokenString) {
178
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
179
+ }
164
180
  }
165
181
  const response = yield this.request({
166
182
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -199,8 +215,12 @@ class DemoContentsApi extends runtime.BaseAPI {
199
215
  const queryParameters = {};
200
216
  const headerParameters = {};
201
217
  headerParameters['Content-Type'] = 'application/json';
202
- if (this.configuration && this.configuration.apiKey) {
203
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
218
+ if (this.configuration && this.configuration.accessToken) {
219
+ const token = this.configuration.accessToken;
220
+ const tokenString = yield token("apiKeyAuth", []);
221
+ if (tokenString) {
222
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
223
+ }
204
224
  }
205
225
  const response = yield this.request({
206
226
  path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -40,8 +40,12 @@ class EntitlementsApi extends runtime.BaseAPI {
40
40
  }
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("apiKeyAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
45
49
  }
46
50
  const response = yield this.request({
47
51
  path: `/entitlements/check/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters['feature']))),
@@ -82,8 +86,12 @@ class EntitlementsApi extends runtime.BaseAPI {
82
86
  queryParameters['source'] = requestParameters['source'];
83
87
  }
84
88
  const headerParameters = {};
85
- if (this.configuration && this.configuration.apiKey) {
86
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
89
+ if (this.configuration && this.configuration.accessToken) {
90
+ const token = this.configuration.accessToken;
91
+ const tokenString = yield token("apiKeyAuth", []);
92
+ if (tokenString) {
93
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
94
+ }
87
95
  }
88
96
  const response = yield this.request({
89
97
  path: `/managed-users/{managedUserId}/entitlements`.replace(`{${"managedUserId"}}`, encodeURIComponent(String(requestParameters['managedUserId']))),
@@ -124,8 +132,12 @@ class EntitlementsApi extends runtime.BaseAPI {
124
132
  queryParameters['source'] = requestParameters['source'];
125
133
  }
126
134
  const headerParameters = {};
127
- if (this.configuration && this.configuration.apiKey) {
128
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
135
+ if (this.configuration && this.configuration.accessToken) {
136
+ const token = this.configuration.accessToken;
137
+ const tokenString = yield token("apiKeyAuth", []);
138
+ if (tokenString) {
139
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
140
+ }
129
141
  }
130
142
  const response = yield this.request({
131
143
  path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -163,8 +175,12 @@ class EntitlementsApi extends runtime.BaseAPI {
163
175
  queryParameters['source'] = requestParameters['source'];
164
176
  }
165
177
  const headerParameters = {};
166
- if (this.configuration && this.configuration.apiKey) {
167
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
178
+ if (this.configuration && this.configuration.accessToken) {
179
+ const token = this.configuration.accessToken;
180
+ const tokenString = yield token("apiKeyAuth", []);
181
+ if (tokenString) {
182
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
183
+ }
168
184
  }
169
185
  const response = yield this.request({
170
186
  path: `/entitlements`,
@@ -200,8 +216,12 @@ class EntitlementsApi extends runtime.BaseAPI {
200
216
  const queryParameters = {};
201
217
  const headerParameters = {};
202
218
  headerParameters['Content-Type'] = 'application/json';
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: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -41,8 +41,12 @@ class FoldersApi 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: `/folders`,
@@ -75,8 +79,12 @@ class FoldersApi extends runtime.BaseAPI {
75
79
  }
76
80
  const queryParameters = {};
77
81
  const headerParameters = {};
78
- if (this.configuration && this.configuration.apiKey) {
79
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
82
+ if (this.configuration && this.configuration.accessToken) {
83
+ const token = this.configuration.accessToken;
84
+ const tokenString = yield token("apiKeyAuth", []);
85
+ if (tokenString) {
86
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
87
+ }
80
88
  }
81
89
  const response = yield this.request({
82
90
  path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -110,8 +118,12 @@ class FoldersApi extends runtime.BaseAPI {
110
118
  queryParameters['size'] = requestParameters['size'];
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: `/folders`,
@@ -143,8 +155,12 @@ class FoldersApi 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: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -180,8 +196,12 @@ class FoldersApi extends runtime.BaseAPI {
180
196
  const queryParameters = {};
181
197
  const headerParameters = {};
182
198
  headerParameters['Content-Type'] = 'application/json';
183
- if (this.configuration && this.configuration.apiKey) {
184
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
199
+ if (this.configuration && this.configuration.accessToken) {
200
+ const token = this.configuration.accessToken;
201
+ const tokenString = yield token("apiKeyAuth", []);
202
+ if (tokenString) {
203
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
204
+ }
185
205
  }
186
206
  const response = yield this.request({
187
207
  path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -46,8 +46,12 @@ class HealthApi extends runtime.BaseAPI {
46
46
  queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
47
47
  }
48
48
  const headerParameters = {};
49
- if (this.configuration && this.configuration.apiKey) {
50
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
49
+ if (this.configuration && this.configuration.accessToken) {
50
+ const token = this.configuration.accessToken;
51
+ const tokenString = yield token("apiKeyAuth", []);
52
+ if (tokenString) {
53
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
54
+ }
51
55
  }
52
56
  const response = yield this.request({
53
57
  path: `/health/admin`,
@@ -76,8 +80,12 @@ class HealthApi extends runtime.BaseAPI {
76
80
  return __awaiter(this, void 0, void 0, function* () {
77
81
  const queryParameters = {};
78
82
  const headerParameters = {};
79
- if (this.configuration && this.configuration.apiKey) {
80
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
83
+ if (this.configuration && this.configuration.accessToken) {
84
+ const token = this.configuration.accessToken;
85
+ const tokenString = yield token("apiKeyAuth", []);
86
+ if (tokenString) {
87
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
88
+ }
81
89
  }
82
90
  const response = yield this.request({
83
91
  path: `/health`,
@@ -41,8 +41,12 @@ class IntegrationsApi 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: `/integrations/connect`,
@@ -76,8 +80,12 @@ class IntegrationsApi extends runtime.BaseAPI {
76
80
  const queryParameters = {};
77
81
  const headerParameters = {};
78
82
  headerParameters['Content-Type'] = 'application/json';
79
- if (this.configuration && this.configuration.apiKey) {
80
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
83
+ if (this.configuration && this.configuration.accessToken) {
84
+ const token = this.configuration.accessToken;
85
+ const tokenString = yield token("apiKeyAuth", []);
86
+ if (tokenString) {
87
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
88
+ }
81
89
  }
82
90
  const response = yield this.request({
83
91
  path: `/integrations`,
@@ -110,8 +118,12 @@ class IntegrationsApi extends runtime.BaseAPI {
110
118
  }
111
119
  const queryParameters = {};
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: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -143,8 +155,12 @@ class IntegrationsApi extends runtime.BaseAPI {
143
155
  const queryParameters = {};
144
156
  const headerParameters = {};
145
157
  headerParameters['Content-Type'] = 'application/json';
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: `/integrations/disconnect`,
@@ -182,8 +198,12 @@ class IntegrationsApi extends runtime.BaseAPI {
182
198
  queryParameters['type'] = requestParameters['type'];
183
199
  }
184
200
  const headerParameters = {};
185
- if (this.configuration && this.configuration.apiKey) {
186
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
201
+ if (this.configuration && this.configuration.accessToken) {
202
+ const token = this.configuration.accessToken;
203
+ const tokenString = yield token("apiKeyAuth", []);
204
+ if (tokenString) {
205
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
206
+ }
187
207
  }
188
208
  const response = yield this.request({
189
209
  path: `/integrations`,
@@ -215,8 +235,12 @@ class IntegrationsApi extends runtime.BaseAPI {
215
235
  }
216
236
  const queryParameters = {};
217
237
  const headerParameters = {};
218
- if (this.configuration && this.configuration.apiKey) {
219
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
238
+ if (this.configuration && this.configuration.accessToken) {
239
+ const token = this.configuration.accessToken;
240
+ const tokenString = yield token("apiKeyAuth", []);
241
+ if (tokenString) {
242
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
243
+ }
220
244
  }
221
245
  const response = yield this.request({
222
246
  path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -252,8 +276,12 @@ class IntegrationsApi extends runtime.BaseAPI {
252
276
  const queryParameters = {};
253
277
  const headerParameters = {};
254
278
  headerParameters['Content-Type'] = 'application/json';
255
- if (this.configuration && this.configuration.apiKey) {
256
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
279
+ if (this.configuration && this.configuration.accessToken) {
280
+ const token = this.configuration.accessToken;
281
+ const tokenString = yield token("apiKeyAuth", []);
282
+ if (tokenString) {
283
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
284
+ }
257
285
  }
258
286
  const response = yield this.request({
259
287
  path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -40,8 +40,12 @@ class InvitationsApi extends runtime.BaseAPI {
40
40
  }
41
41
  const queryParameters = {};
42
42
  const headerParameters = {};
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("apiKeyAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
45
49
  }
46
50
  const response = yield this.request({
47
51
  path: `/invitations/accept/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -73,8 +77,12 @@ class InvitationsApi extends runtime.BaseAPI {
73
77
  }
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: `/invitations/verify/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
@@ -40,8 +40,12 @@ class InvoicesApi extends runtime.BaseAPI {
40
40
  const queryParameters = {};
41
41
  const headerParameters = {};
42
42
  headerParameters['Content-Type'] = 'application/json';
43
- if (this.configuration && this.configuration.apiKey) {
44
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("apiKeyAuth", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
45
49
  }
46
50
  const response = yield this.request({
47
51
  path: `/invoices`,
@@ -86,8 +90,12 @@ class InvoicesApi extends runtime.BaseAPI {
86
90
  queryParameters['offset'] = requestParameters['offset'];
87
91
  }
88
92
  const headerParameters = {};
89
- if (this.configuration && this.configuration.apiKey) {
90
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
93
+ if (this.configuration && this.configuration.accessToken) {
94
+ const token = this.configuration.accessToken;
95
+ const tokenString = yield token("apiKeyAuth", []);
96
+ if (tokenString) {
97
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
98
+ }
91
99
  }
92
100
  const response = yield this.request({
93
101
  path: `/invoices`,
@@ -119,8 +127,12 @@ class InvoicesApi extends runtime.BaseAPI {
119
127
  }
120
128
  const queryParameters = {};
121
129
  const headerParameters = {};
122
- if (this.configuration && this.configuration.apiKey) {
123
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
130
+ if (this.configuration && this.configuration.accessToken) {
131
+ const token = this.configuration.accessToken;
132
+ const tokenString = yield token("apiKeyAuth", []);
133
+ if (tokenString) {
134
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
135
+ }
124
136
  }
125
137
  const response = yield this.request({
126
138
  path: `/invoices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -161,8 +173,12 @@ class InvoicesApi extends runtime.BaseAPI {
161
173
  queryParameters['offset'] = requestParameters['offset'];
162
174
  }
163
175
  const headerParameters = {};
164
- if (this.configuration && this.configuration.apiKey) {
165
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
176
+ if (this.configuration && this.configuration.accessToken) {
177
+ const token = this.configuration.accessToken;
178
+ const tokenString = yield token("apiKeyAuth", []);
179
+ if (tokenString) {
180
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
181
+ }
166
182
  }
167
183
  const response = yield this.request({
168
184
  path: `/partners/{partnerId}/invoices`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -203,8 +219,12 @@ class InvoicesApi extends runtime.BaseAPI {
203
219
  queryParameters['offset'] = requestParameters['offset'];
204
220
  }
205
221
  const headerParameters = {};
206
- if (this.configuration && this.configuration.apiKey) {
207
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
222
+ if (this.configuration && this.configuration.accessToken) {
223
+ const token = this.configuration.accessToken;
224
+ const tokenString = yield token("apiKeyAuth", []);
225
+ if (tokenString) {
226
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
227
+ }
208
228
  }
209
229
  const response = yield this.request({
210
230
  path: `/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -240,8 +260,12 @@ class InvoicesApi extends runtime.BaseAPI {
240
260
  const queryParameters = {};
241
261
  const headerParameters = {};
242
262
  headerParameters['Content-Type'] = 'application/json';
243
- if (this.configuration && this.configuration.apiKey) {
244
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
263
+ if (this.configuration && this.configuration.accessToken) {
264
+ const token = this.configuration.accessToken;
265
+ const tokenString = yield token("apiKeyAuth", []);
266
+ if (tokenString) {
267
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
268
+ }
245
269
  }
246
270
  const response = yield this.request({
247
271
  path: `/invoices/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),