@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
@@ -44,8 +44,12 @@ class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -78,8 +82,12 @@ class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -110,8 +118,12 @@ class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -149,8 +161,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
149
161
  queryParameters['offset'] = requestParameters['offset'];
150
162
  }
151
163
  const headerParameters = {};
152
- if (this.configuration && this.configuration.apiKey) {
153
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ const token = this.configuration.accessToken;
166
+ const tokenString = yield token("apiKeyAuth", []);
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
169
+ }
154
170
  }
155
171
  const response = yield this.request({
156
172
  path: `/partner-customizations`,
@@ -186,8 +202,12 @@ class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -44,8 +44,12 @@ class PartnersApi 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: `/partners/{partnerId}/credits/add`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -74,8 +78,12 @@ class PartnersApi extends runtime.BaseAPI {
74
78
  return __awaiter(this, void 0, void 0, function* () {
75
79
  const queryParameters = {};
76
80
  const headerParameters = {};
77
- if (this.configuration && this.configuration.apiKey) {
78
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
81
+ if (this.configuration && this.configuration.accessToken) {
82
+ const token = this.configuration.accessToken;
83
+ const tokenString = yield token("apiKeyAuth", []);
84
+ if (tokenString) {
85
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
86
+ }
79
87
  }
80
88
  const response = yield this.request({
81
89
  path: `/partners/credits/check-balances`,
@@ -110,8 +118,12 @@ class PartnersApi extends runtime.BaseAPI {
110
118
  const queryParameters = {};
111
119
  const headerParameters = {};
112
120
  headerParameters['Content-Type'] = 'application/json';
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: `/partners/{partnerId}/credits/auto-reload`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -143,8 +155,12 @@ class PartnersApi 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: `/partners/{partnerId}/credits/balance`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -185,8 +201,12 @@ class PartnersApi extends runtime.BaseAPI {
185
201
  queryParameters['type'] = requestParameters['type'];
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: `/partners/{partnerId}/credits/transactions`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -44,8 +44,12 @@ class PromptsApi 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: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -81,8 +85,12 @@ class PromptsApi 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: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -123,8 +131,12 @@ class PromptsApi 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: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -159,8 +171,12 @@ class PromptsApi 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: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -199,8 +215,12 @@ class PromptsApi 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: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -36,8 +36,12 @@ class SubscriptionPlansApi extends runtime.BaseAPI {
36
36
  return __awaiter(this, void 0, void 0, function* () {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
- if (this.configuration && this.configuration.apiKey) {
40
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
39
+ if (this.configuration && this.configuration.accessToken) {
40
+ const token = this.configuration.accessToken;
41
+ const tokenString = yield token("apiKeyAuth", []);
42
+ if (tokenString) {
43
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
44
+ }
41
45
  }
42
46
  const response = yield this.request({
43
47
  path: `/subscription-plans`,
@@ -69,8 +73,12 @@ class SubscriptionPlansApi extends runtime.BaseAPI {
69
73
  }
70
74
  const queryParameters = {};
71
75
  const headerParameters = {};
72
- if (this.configuration && this.configuration.apiKey) {
73
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
76
+ if (this.configuration && this.configuration.accessToken) {
77
+ const token = this.configuration.accessToken;
78
+ const tokenString = yield token("apiKeyAuth", []);
79
+ if (tokenString) {
80
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
81
+ }
74
82
  }
75
83
  const response = yield this.request({
76
84
  path: `/subscription-plans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -41,8 +41,12 @@ class SubscriptionsApi 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: `/subscriptions`,
@@ -75,8 +79,12 @@ class SubscriptionsApi 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: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -116,8 +124,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
116
124
  queryParameters['plan_type'] = requestParameters['planType'];
117
125
  }
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: `/subscriptions`,
@@ -149,8 +161,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
149
161
  queryParameters['months'] = requestParameters['months'];
150
162
  }
151
163
  const headerParameters = {};
152
- if (this.configuration && this.configuration.apiKey) {
153
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
164
+ if (this.configuration && this.configuration.accessToken) {
165
+ const token = this.configuration.accessToken;
166
+ const tokenString = yield token("apiKeyAuth", []);
167
+ if (tokenString) {
168
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
169
+ }
154
170
  }
155
171
  const response = yield this.request({
156
172
  path: `/subscriptions/reports/billing`,
@@ -182,8 +198,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
182
198
  }
183
199
  const queryParameters = {};
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: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -224,8 +244,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
224
244
  queryParameters['offset'] = requestParameters['offset'];
225
245
  }
226
246
  const headerParameters = {};
227
- if (this.configuration && this.configuration.apiKey) {
228
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
247
+ if (this.configuration && this.configuration.accessToken) {
248
+ const token = this.configuration.accessToken;
249
+ const tokenString = yield token("apiKeyAuth", []);
250
+ if (tokenString) {
251
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
252
+ }
229
253
  }
230
254
  const response = yield this.request({
231
255
  path: `/users/{userId}/subscriptions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -261,8 +285,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
261
285
  const queryParameters = {};
262
286
  const headerParameters = {};
263
287
  headerParameters['Content-Type'] = 'application/json';
264
- if (this.configuration && this.configuration.apiKey) {
265
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
288
+ if (this.configuration && this.configuration.accessToken) {
289
+ const token = this.configuration.accessToken;
290
+ const tokenString = yield token("apiKeyAuth", []);
291
+ if (tokenString) {
292
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
293
+ }
266
294
  }
267
295
  const response = yield this.request({
268
296
  path: `/subscriptions/{id}/refund`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -299,8 +327,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
299
327
  const queryParameters = {};
300
328
  const headerParameters = {};
301
329
  headerParameters['Content-Type'] = 'application/json';
302
- if (this.configuration && this.configuration.apiKey) {
303
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
330
+ if (this.configuration && this.configuration.accessToken) {
331
+ const token = this.configuration.accessToken;
332
+ const tokenString = yield token("apiKeyAuth", []);
333
+ if (tokenString) {
334
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
335
+ }
304
336
  }
305
337
  const response = yield this.request({
306
338
  path: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { AddLanguagesToTranslation200Response, AddLanguagesToTranslationRequest, CreateTranslation201Response, CreateTranslationRequest, GetLanguagePresets200Response, GetSupportedLanguages200Response, GetTranslation200Response, GetTranslationAnalytics200Response, GetTranslationConfig200Response, GetTranslations200Response, RetranslateExperimentRequest, RollbackComponent200Response, SubmitTranslationAnalyticsEventRequest, UpdateTranslationStatusRequest } from '../models/index';
13
+ import type { AddLanguagesToTranslation200Response, AddLanguagesToTranslationRequest, CreateTranslation201Response, CreateTranslationRequest, GetLanguagePresets200Response, GetSupportedLanguages200Response, GetTranslation200Response, GetTranslationAnalytics200Response, GetTranslationConfig200Response, GetTranslations200Response, RetranslateExperimentRequest, SubmitTranslationAnalyticsEventRequest, UpdateTranslationStatusRequest, UsersSendFeedbackPost200Response } from '../models/index';
14
14
  export interface AddLanguagesToTranslationOperationRequest {
15
15
  id: string;
16
16
  addLanguagesToTranslationRequest: AddLanguagesToTranslationRequest;
@@ -78,12 +78,12 @@ export declare class TranslationsApi extends runtime.BaseAPI {
78
78
  * Delete a translation experiment and all its variants
79
79
  * Delete a translation experiment
80
80
  */
81
- deleteTranslationRaw(requestParameters: DeleteTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RollbackComponent200Response>>;
81
+ deleteTranslationRaw(requestParameters: DeleteTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
82
82
  /**
83
83
  * Delete a translation experiment and all its variants
84
84
  * Delete a translation experiment
85
85
  */
86
- deleteTranslation(requestParameters: DeleteTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RollbackComponent200Response>;
86
+ deleteTranslation(requestParameters: DeleteTranslationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
87
87
  /**
88
88
  * Get predefined language presets (EU, APAC, etc.) for bulk language selection
89
89
  * Get language presets for quick selection
@@ -158,12 +158,12 @@ export declare class TranslationsApi extends runtime.BaseAPI {
158
158
  * Redo translations for existing language variants
159
159
  * Retranslate language variants
160
160
  */
161
- retranslateExperimentRaw(requestParameters: RetranslateExperimentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RollbackComponent200Response>>;
161
+ retranslateExperimentRaw(requestParameters: RetranslateExperimentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
162
162
  /**
163
163
  * Redo translations for existing language variants
164
164
  * Retranslate language variants
165
165
  */
166
- retranslateExperiment(requestParameters: RetranslateExperimentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RollbackComponent200Response>;
166
+ retranslateExperiment(requestParameters: RetranslateExperimentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
167
167
  /**
168
168
  * Submit analytics data for embed SDK usage
169
169
  * Submit analytics event for translation experiment (no auth required)
@@ -134,7 +134,7 @@ class TranslationsApi extends runtime.BaseAPI {
134
134
  headers: headerParameters,
135
135
  query: queryParameters,
136
136
  }, initOverrides);
137
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
137
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
138
138
  });
139
139
  }
140
140
  /**
@@ -411,7 +411,7 @@ class TranslationsApi extends runtime.BaseAPI {
411
411
  query: queryParameters,
412
412
  body: (0, index_1.RetranslateExperimentRequestToJSON)(requestParameters['retranslateExperimentRequest']),
413
413
  }, initOverrides);
414
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
414
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
415
415
  });
416
416
  }
417
417
  /**
@@ -40,8 +40,12 @@ class UIComponentsApi 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: `/ui/components/{componentId}/manifest`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -70,8 +74,12 @@ class UIComponentsApi extends runtime.BaseAPI {
70
74
  return __awaiter(this, void 0, void 0, function* () {
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: `/ui/components`,
@@ -107,8 +115,12 @@ class UIComponentsApi extends runtime.BaseAPI {
107
115
  const queryParameters = {};
108
116
  const headerParameters = {};
109
117
  headerParameters['Content-Type'] = 'application/json';
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: `/ui/components/{componentId}/mount`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -144,8 +156,12 @@ class UIComponentsApi extends runtime.BaseAPI {
144
156
  }
145
157
  const queryParameters = {};
146
158
  const headerParameters = {};
147
- if (this.configuration && this.configuration.apiKey) {
148
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
159
+ if (this.configuration && this.configuration.accessToken) {
160
+ const token = this.configuration.accessToken;
161
+ const tokenString = yield token("apiKeyAuth", []);
162
+ if (tokenString) {
163
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
164
+ }
149
165
  }
150
166
  const response = yield this.request({
151
167
  path: `/ui/components/{componentId}/{instanceId}`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))).replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
@@ -40,8 +40,12 @@ class UsageApi 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: `/usage/bulk`,
@@ -89,8 +93,12 @@ class UsageApi extends runtime.BaseAPI {
89
93
  queryParameters['offset'] = requestParameters['offset'];
90
94
  }
91
95
  const headerParameters = {};
92
- if (this.configuration && this.configuration.apiKey) {
93
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
96
+ if (this.configuration && this.configuration.accessToken) {
97
+ const token = this.configuration.accessToken;
98
+ const tokenString = yield token("apiKeyAuth", []);
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
101
+ }
94
102
  }
95
103
  const response = yield this.request({
96
104
  path: `/usage`,
@@ -122,8 +130,12 @@ class UsageApi extends runtime.BaseAPI {
122
130
  }
123
131
  const queryParameters = {};
124
132
  const headerParameters = {};
125
- if (this.configuration && this.configuration.apiKey) {
126
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
133
+ if (this.configuration && this.configuration.accessToken) {
134
+ const token = this.configuration.accessToken;
135
+ const tokenString = yield token("apiKeyAuth", []);
136
+ if (tokenString) {
137
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
138
+ }
127
139
  }
128
140
  const response = yield this.request({
129
141
  path: `/usage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -170,8 +182,12 @@ class UsageApi extends runtime.BaseAPI {
170
182
  queryParameters['offset'] = requestParameters['offset'];
171
183
  }
172
184
  const headerParameters = {};
173
- if (this.configuration && this.configuration.apiKey) {
174
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
185
+ if (this.configuration && this.configuration.accessToken) {
186
+ const token = this.configuration.accessToken;
187
+ const tokenString = yield token("apiKeyAuth", []);
188
+ if (tokenString) {
189
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
190
+ }
175
191
  }
176
192
  const response = yield this.request({
177
193
  path: `/users/{userId}/usage`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -215,8 +231,12 @@ class UsageApi extends runtime.BaseAPI {
215
231
  queryParameters['aggregation_period'] = requestParameters['aggregationPeriod'];
216
232
  }
217
233
  const headerParameters = {};
218
- if (this.configuration && this.configuration.apiKey) {
219
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
234
+ if (this.configuration && this.configuration.accessToken) {
235
+ const token = this.configuration.accessToken;
236
+ const tokenString = yield token("apiKeyAuth", []);
237
+ if (tokenString) {
238
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
239
+ }
220
240
  }
221
241
  const response = yield this.request({
222
242
  path: `/users/{userId}/usage/aggregated`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -248,8 +268,12 @@ class UsageApi extends runtime.BaseAPI {
248
268
  }
249
269
  const queryParameters = {};
250
270
  const headerParameters = {};
251
- if (this.configuration && this.configuration.apiKey) {
252
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
271
+ if (this.configuration && this.configuration.accessToken) {
272
+ const token = this.configuration.accessToken;
273
+ const tokenString = yield token("apiKeyAuth", []);
274
+ if (tokenString) {
275
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
276
+ }
253
277
  }
254
278
  const response = yield this.request({
255
279
  path: `/users/{userId}/usage/summary`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -282,8 +306,12 @@ class UsageApi extends runtime.BaseAPI {
282
306
  const queryParameters = {};
283
307
  const headerParameters = {};
284
308
  headerParameters['Content-Type'] = 'application/json';
285
- if (this.configuration && this.configuration.apiKey) {
286
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
309
+ if (this.configuration && this.configuration.accessToken) {
310
+ const token = this.configuration.accessToken;
311
+ const tokenString = yield token("apiKeyAuth", []);
312
+ if (tokenString) {
313
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
314
+ }
287
315
  }
288
316
  const response = yield this.request({
289
317
  path: `/usage`,
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { RollbackComponent200Response, UsersMeBillingGet200Response, UsersSendFeedbackPostRequest } from '../models/index';
13
+ import type { UsersMeBillingGet200Response, UsersSendFeedbackPost200Response, UsersSendFeedbackPostRequest } from '../models/index';
14
14
  export interface UsersSendFeedbackPostOperationRequest {
15
15
  usersSendFeedbackPostRequest: UsersSendFeedbackPostRequest;
16
16
  }
@@ -30,10 +30,10 @@ export declare class UsersApi extends runtime.BaseAPI {
30
30
  * Send user feedback via email using the email service
31
31
  * Send feedback email
32
32
  */
33
- usersSendFeedbackPostRaw(requestParameters: UsersSendFeedbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RollbackComponent200Response>>;
33
+ usersSendFeedbackPostRaw(requestParameters: UsersSendFeedbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
34
34
  /**
35
35
  * Send user feedback via email using the email service
36
36
  * Send feedback email
37
37
  */
38
- usersSendFeedbackPost(requestParameters: UsersSendFeedbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RollbackComponent200Response>;
38
+ usersSendFeedbackPost(requestParameters: UsersSendFeedbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
39
39
  }
@@ -80,7 +80,7 @@ class UsersApi extends runtime.BaseAPI {
80
80
  query: queryParameters,
81
81
  body: (0, index_1.UsersSendFeedbackPostRequestToJSON)(requestParameters['usersSendFeedbackPostRequest']),
82
82
  }, initOverrides);
83
- return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RollbackComponent200ResponseFromJSON)(jsonValue));
83
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
84
84
  });
85
85
  }
86
86
  /**