@widgetic/api-sdk 1.0.15 → 1.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/apis/ABTestingApi.js +90 -30
  2. package/dist/apis/AdminApi.js +12 -4
  3. package/dist/apis/AuthenticationApi.d.ts +3 -3
  4. package/dist/apis/AuthenticationApi.js +31 -11
  5. package/dist/apis/BatchApi.js +6 -2
  6. package/dist/apis/BillingApi.d.ts +13 -13
  7. package/dist/apis/BillingApi.js +8 -8
  8. package/dist/apis/CanvasesApi.js +30 -10
  9. package/dist/apis/ComponentsApi.d.ts +3 -3
  10. package/dist/apis/ComponentsApi.js +43 -15
  11. package/dist/apis/CompositionsApi.js +132 -44
  12. package/dist/apis/ContentsApi.js +36 -12
  13. package/dist/apis/ConversationsApi.js +30 -10
  14. package/dist/apis/CreditsApi.js +30 -10
  15. package/dist/apis/DemoContentsApi.js +30 -10
  16. package/dist/apis/EntitlementsApi.js +30 -10
  17. package/dist/apis/FoldersApi.js +30 -10
  18. package/dist/apis/HealthApi.js +12 -4
  19. package/dist/apis/IntegrationsApi.js +42 -14
  20. package/dist/apis/InvitationsApi.js +12 -4
  21. package/dist/apis/InvoicesApi.js +36 -12
  22. package/dist/apis/ManagedUsersApi.js +36 -12
  23. package/dist/apis/MessagesApi.js +36 -12
  24. package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
  25. package/dist/apis/OrganizationActivitiesApi.js +221 -0
  26. package/dist/apis/OrganizationsApi.d.ts +31 -106
  27. package/dist/apis/OrganizationsApi.js +324 -292
  28. package/dist/apis/PartnerCustomizationsApi.js +30 -10
  29. package/dist/apis/PartnersApi.js +30 -10
  30. package/dist/apis/PromptsApi.js +30 -10
  31. package/dist/apis/SubscriptionPlansApi.js +12 -4
  32. package/dist/apis/SubscriptionsApi.js +48 -16
  33. package/dist/apis/TranslationsApi.d.ts +5 -5
  34. package/dist/apis/TranslationsApi.js +2 -2
  35. package/dist/apis/UIComponentsApi.js +24 -8
  36. package/dist/apis/UsageApi.js +42 -14
  37. package/dist/apis/UsersApi.d.ts +3 -3
  38. package/dist/apis/UsersApi.js +1 -1
  39. package/dist/apis/WorkspacesApi.js +78 -26
  40. package/dist/apis/index.d.ts +1 -0
  41. package/dist/apis/index.js +1 -0
  42. package/dist/esm/apis/ABTestingApi.js +90 -30
  43. package/dist/esm/apis/AdminApi.js +12 -4
  44. package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
  45. package/dist/esm/apis/AuthenticationApi.js +32 -12
  46. package/dist/esm/apis/BatchApi.js +6 -2
  47. package/dist/esm/apis/BillingApi.d.ts +13 -13
  48. package/dist/esm/apis/BillingApi.js +9 -9
  49. package/dist/esm/apis/CanvasesApi.js +30 -10
  50. package/dist/esm/apis/ComponentsApi.d.ts +3 -3
  51. package/dist/esm/apis/ComponentsApi.js +44 -16
  52. package/dist/esm/apis/CompositionsApi.js +132 -44
  53. package/dist/esm/apis/ContentsApi.js +36 -12
  54. package/dist/esm/apis/ConversationsApi.js +30 -10
  55. package/dist/esm/apis/CreditsApi.js +30 -10
  56. package/dist/esm/apis/DemoContentsApi.js +30 -10
  57. package/dist/esm/apis/EntitlementsApi.js +30 -10
  58. package/dist/esm/apis/FoldersApi.js +30 -10
  59. package/dist/esm/apis/HealthApi.js +12 -4
  60. package/dist/esm/apis/IntegrationsApi.js +42 -14
  61. package/dist/esm/apis/InvitationsApi.js +12 -4
  62. package/dist/esm/apis/InvoicesApi.js +36 -12
  63. package/dist/esm/apis/ManagedUsersApi.js +36 -12
  64. package/dist/esm/apis/MessagesApi.js +36 -12
  65. package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
  66. package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
  67. package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
  68. package/dist/esm/apis/OrganizationsApi.js +324 -292
  69. package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
  70. package/dist/esm/apis/PartnersApi.js +30 -10
  71. package/dist/esm/apis/PromptsApi.js +30 -10
  72. package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
  73. package/dist/esm/apis/SubscriptionsApi.js +48 -16
  74. package/dist/esm/apis/TranslationsApi.d.ts +5 -5
  75. package/dist/esm/apis/TranslationsApi.js +3 -3
  76. package/dist/esm/apis/UIComponentsApi.js +24 -8
  77. package/dist/esm/apis/UsageApi.js +42 -14
  78. package/dist/esm/apis/UsersApi.d.ts +3 -3
  79. package/dist/esm/apis/UsersApi.js +2 -2
  80. package/dist/esm/apis/WorkspacesApi.js +78 -26
  81. package/dist/esm/apis/index.d.ts +1 -0
  82. package/dist/esm/apis/index.js +1 -0
  83. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  84. package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  85. package/dist/esm/models/Canvas.d.ts +6 -0
  86. package/dist/esm/models/Canvas.js +2 -0
  87. package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
  88. package/dist/esm/models/CreateCanvasRequest.js +2 -0
  89. package/dist/esm/models/ErrorResponse.d.ts +12 -12
  90. package/dist/esm/models/ErrorResponse.js +4 -4
  91. package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
  92. package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
  93. package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
  94. package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
  95. package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  96. package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
  97. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  98. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
  99. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  100. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
  101. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  102. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
  103. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  104. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
  105. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  106. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
  107. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  108. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
  109. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  110. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
  111. package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  112. package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
  113. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  114. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
  115. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  116. package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
  117. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  118. package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
  119. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  120. package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
  121. package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
  122. package/dist/esm/models/UpdateCanvasRequest.js +2 -0
  123. package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
  124. package/dist/esm/models/UpdateWidgetRequest.js +5 -0
  125. package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  126. package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
  127. package/dist/esm/models/index.d.ts +24 -24
  128. package/dist/esm/models/index.js +24 -24
  129. package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
  130. package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
  131. package/dist/models/Canvas.d.ts +6 -0
  132. package/dist/models/Canvas.js +2 -0
  133. package/dist/models/CreateCanvasRequest.d.ts +6 -0
  134. package/dist/models/CreateCanvasRequest.js +2 -0
  135. package/dist/models/ErrorResponse.d.ts +12 -12
  136. package/dist/models/ErrorResponse.js +4 -4
  137. package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
  138. package/dist/models/GetCompositionsBatch200Response.js +3 -3
  139. package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
  140. package/dist/models/GetWidgetsBatch200Response.js +3 -3
  141. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
  142. package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
  143. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
  144. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
  145. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
  146. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
  147. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
  148. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
  149. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
  150. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
  151. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
  152. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
  153. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
  154. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
  155. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
  156. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
  157. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
  158. package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
  159. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
  160. package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
  161. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
  162. package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
  163. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
  164. package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
  165. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
  166. package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
  167. package/dist/models/UpdateCanvasRequest.d.ts +6 -0
  168. package/dist/models/UpdateCanvasRequest.js +2 -0
  169. package/dist/models/UpdateWidgetRequest.d.ts +12 -0
  170. package/dist/models/UpdateWidgetRequest.js +5 -0
  171. package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
  172. package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
  173. package/dist/models/index.d.ts +24 -24
  174. package/dist/models/index.js +24 -24
  175. package/package.json +1 -1
  176. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  177. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
  178. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  179. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
  180. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  181. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  182. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
  183. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  184. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
  185. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  186. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  187. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
  188. package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  189. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  190. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
  191. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  192. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
  193. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  194. package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
  195. package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  196. package/dist/esm/models/LoginUser200Response.d.ts +0 -38
  197. package/dist/esm/models/LoginUser200Response.js +0 -43
  198. package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
  199. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
  200. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
  201. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
  202. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
  203. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
  204. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
  205. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
  206. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
  207. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
  208. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
  209. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
  210. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
  211. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
  212. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
  213. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
  214. package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
  215. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
  216. package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
  217. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
  218. package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
  219. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
  220. package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
  221. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
  222. package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
  223. package/dist/models/LoginUser200Response.d.ts +0 -38
  224. package/dist/models/LoginUser200Response.js +0 -50
  225. package/dist/models/RollbackComponent200Response.d.ts +0 -38
  226. package/dist/models/RollbackComponent200Response.js +0 -50
@@ -41,8 +41,12 @@ export class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -75,8 +79,12 @@ export class PartnerCustomizationsApi 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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -107,8 +115,12 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
107
115
  }
108
116
  const queryParameters = {};
109
117
  const headerParameters = {};
110
- if (this.configuration && this.configuration.apiKey) {
111
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
118
+ if (this.configuration && this.configuration.accessToken) {
119
+ const token = this.configuration.accessToken;
120
+ const tokenString = yield token("apiKeyAuth", []);
121
+ if (tokenString) {
122
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
123
+ }
112
124
  }
113
125
  const response = yield this.request({
114
126
  path: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -146,8 +158,12 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
146
158
  queryParameters['offset'] = requestParameters['offset'];
147
159
  }
148
160
  const headerParameters = {};
149
- if (this.configuration && this.configuration.apiKey) {
150
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = yield token("apiKeyAuth", []);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
151
167
  }
152
168
  const response = yield this.request({
153
169
  path: `/partner-customizations`,
@@ -183,8 +199,12 @@ export class PartnerCustomizationsApi extends runtime.BaseAPI {
183
199
  const queryParameters = {};
184
200
  const headerParameters = {};
185
201
  headerParameters['Content-Type'] = 'application/json';
186
- if (this.configuration && this.configuration.apiKey) {
187
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
202
+ if (this.configuration && this.configuration.accessToken) {
203
+ const token = this.configuration.accessToken;
204
+ const tokenString = yield token("apiKeyAuth", []);
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
207
+ }
188
208
  }
189
209
  const response = yield this.request({
190
210
  path: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -41,8 +41,12 @@ export class PartnersApi 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: `/partners/{partnerId}/credits/add`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -71,8 +75,12 @@ export class PartnersApi extends runtime.BaseAPI {
71
75
  return __awaiter(this, void 0, void 0, function* () {
72
76
  const queryParameters = {};
73
77
  const headerParameters = {};
74
- if (this.configuration && this.configuration.apiKey) {
75
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
78
+ if (this.configuration && this.configuration.accessToken) {
79
+ const token = this.configuration.accessToken;
80
+ const tokenString = yield token("apiKeyAuth", []);
81
+ if (tokenString) {
82
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
83
+ }
76
84
  }
77
85
  const response = yield this.request({
78
86
  path: `/partners/credits/check-balances`,
@@ -107,8 +115,12 @@ export class PartnersApi 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: `/partners/{partnerId}/credits/auto-reload`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -140,8 +152,12 @@ export class PartnersApi extends runtime.BaseAPI {
140
152
  }
141
153
  const queryParameters = {};
142
154
  const headerParameters = {};
143
- if (this.configuration && this.configuration.apiKey) {
144
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
155
+ if (this.configuration && this.configuration.accessToken) {
156
+ const token = this.configuration.accessToken;
157
+ const tokenString = yield token("apiKeyAuth", []);
158
+ if (tokenString) {
159
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
160
+ }
145
161
  }
146
162
  const response = yield this.request({
147
163
  path: `/partners/{partnerId}/credits/balance`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -182,8 +198,12 @@ export class PartnersApi 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: `/partners/{partnerId}/credits/transactions`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
@@ -41,8 +41,12 @@ export class PromptsApi 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: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -78,8 +82,12 @@ export class PromptsApi 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: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -120,8 +128,12 @@ export class PromptsApi extends runtime.BaseAPI {
120
128
  queryParameters['sort'] = requestParameters['sort'];
121
129
  }
122
130
  const headerParameters = {};
123
- if (this.configuration && this.configuration.apiKey) {
124
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
131
+ if (this.configuration && this.configuration.accessToken) {
132
+ const token = this.configuration.accessToken;
133
+ const tokenString = yield token("apiKeyAuth", []);
134
+ if (tokenString) {
135
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
136
+ }
125
137
  }
126
138
  const response = yield this.request({
127
139
  path: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -156,8 +168,12 @@ export class PromptsApi extends runtime.BaseAPI {
156
168
  }
157
169
  const queryParameters = {};
158
170
  const headerParameters = {};
159
- if (this.configuration && this.configuration.apiKey) {
160
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
171
+ if (this.configuration && this.configuration.accessToken) {
172
+ const token = this.configuration.accessToken;
173
+ const tokenString = yield token("apiKeyAuth", []);
174
+ if (tokenString) {
175
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
176
+ }
161
177
  }
162
178
  const response = yield this.request({
163
179
  path: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -196,8 +212,12 @@ export class PromptsApi extends runtime.BaseAPI {
196
212
  const queryParameters = {};
197
213
  const headerParameters = {};
198
214
  headerParameters['Content-Type'] = 'application/json';
199
- if (this.configuration && this.configuration.apiKey) {
200
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
215
+ if (this.configuration && this.configuration.accessToken) {
216
+ const token = this.configuration.accessToken;
217
+ const tokenString = yield token("apiKeyAuth", []);
218
+ if (tokenString) {
219
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
220
+ }
201
221
  }
202
222
  const response = yield this.request({
203
223
  path: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -33,8 +33,12 @@ export class SubscriptionPlansApi extends runtime.BaseAPI {
33
33
  return __awaiter(this, void 0, void 0, function* () {
34
34
  const queryParameters = {};
35
35
  const headerParameters = {};
36
- if (this.configuration && this.configuration.apiKey) {
37
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
36
+ if (this.configuration && this.configuration.accessToken) {
37
+ const token = this.configuration.accessToken;
38
+ const tokenString = yield token("apiKeyAuth", []);
39
+ if (tokenString) {
40
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
41
+ }
38
42
  }
39
43
  const response = yield this.request({
40
44
  path: `/subscription-plans`,
@@ -66,8 +70,12 @@ export class SubscriptionPlansApi extends runtime.BaseAPI {
66
70
  }
67
71
  const queryParameters = {};
68
72
  const headerParameters = {};
69
- if (this.configuration && this.configuration.apiKey) {
70
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
73
+ if (this.configuration && this.configuration.accessToken) {
74
+ const token = this.configuration.accessToken;
75
+ const tokenString = yield token("apiKeyAuth", []);
76
+ if (tokenString) {
77
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
78
+ }
71
79
  }
72
80
  const response = yield this.request({
73
81
  path: `/subscription-plans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -38,8 +38,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
40
  headerParameters['Content-Type'] = 'application/json';
41
- if (this.configuration && this.configuration.apiKey) {
42
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
41
+ if (this.configuration && this.configuration.accessToken) {
42
+ const token = this.configuration.accessToken;
43
+ const tokenString = yield token("apiKeyAuth", []);
44
+ if (tokenString) {
45
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
46
+ }
43
47
  }
44
48
  const response = yield this.request({
45
49
  path: `/subscriptions`,
@@ -72,8 +76,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
72
76
  }
73
77
  const queryParameters = {};
74
78
  const headerParameters = {};
75
- if (this.configuration && this.configuration.apiKey) {
76
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
79
+ if (this.configuration && this.configuration.accessToken) {
80
+ const token = this.configuration.accessToken;
81
+ const tokenString = yield token("apiKeyAuth", []);
82
+ if (tokenString) {
83
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
84
+ }
77
85
  }
78
86
  const response = yield this.request({
79
87
  path: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -113,8 +121,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
113
121
  queryParameters['plan_type'] = requestParameters['planType'];
114
122
  }
115
123
  const headerParameters = {};
116
- if (this.configuration && this.configuration.apiKey) {
117
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
124
+ if (this.configuration && this.configuration.accessToken) {
125
+ const token = this.configuration.accessToken;
126
+ const tokenString = yield token("apiKeyAuth", []);
127
+ if (tokenString) {
128
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
129
+ }
118
130
  }
119
131
  const response = yield this.request({
120
132
  path: `/subscriptions`,
@@ -146,8 +158,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
146
158
  queryParameters['months'] = requestParameters['months'];
147
159
  }
148
160
  const headerParameters = {};
149
- if (this.configuration && this.configuration.apiKey) {
150
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
161
+ if (this.configuration && this.configuration.accessToken) {
162
+ const token = this.configuration.accessToken;
163
+ const tokenString = yield token("apiKeyAuth", []);
164
+ if (tokenString) {
165
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
166
+ }
151
167
  }
152
168
  const response = yield this.request({
153
169
  path: `/subscriptions/reports/billing`,
@@ -179,8 +195,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
179
195
  }
180
196
  const queryParameters = {};
181
197
  const headerParameters = {};
182
- if (this.configuration && this.configuration.apiKey) {
183
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
198
+ if (this.configuration && this.configuration.accessToken) {
199
+ const token = this.configuration.accessToken;
200
+ const tokenString = yield token("apiKeyAuth", []);
201
+ if (tokenString) {
202
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
203
+ }
184
204
  }
185
205
  const response = yield this.request({
186
206
  path: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -221,8 +241,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
221
241
  queryParameters['offset'] = requestParameters['offset'];
222
242
  }
223
243
  const headerParameters = {};
224
- if (this.configuration && this.configuration.apiKey) {
225
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
244
+ if (this.configuration && this.configuration.accessToken) {
245
+ const token = this.configuration.accessToken;
246
+ const tokenString = yield token("apiKeyAuth", []);
247
+ if (tokenString) {
248
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
249
+ }
226
250
  }
227
251
  const response = yield this.request({
228
252
  path: `/users/{userId}/subscriptions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -258,8 +282,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
258
282
  const queryParameters = {};
259
283
  const headerParameters = {};
260
284
  headerParameters['Content-Type'] = 'application/json';
261
- if (this.configuration && this.configuration.apiKey) {
262
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
285
+ if (this.configuration && this.configuration.accessToken) {
286
+ const token = this.configuration.accessToken;
287
+ const tokenString = yield token("apiKeyAuth", []);
288
+ if (tokenString) {
289
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
290
+ }
263
291
  }
264
292
  const response = yield this.request({
265
293
  path: `/subscriptions/{id}/refund`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -296,8 +324,12 @@ export class SubscriptionsApi extends runtime.BaseAPI {
296
324
  const queryParameters = {};
297
325
  const headerParameters = {};
298
326
  headerParameters['Content-Type'] = 'application/json';
299
- if (this.configuration && this.configuration.apiKey) {
300
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
327
+ if (this.configuration && this.configuration.accessToken) {
328
+ const token = this.configuration.accessToken;
329
+ const tokenString = yield token("apiKeyAuth", []);
330
+ if (tokenString) {
331
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
332
+ }
301
333
  }
302
334
  const response = yield this.request({
303
335
  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)
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime.js';
24
- import { AddLanguagesToTranslation200ResponseFromJSON, AddLanguagesToTranslationRequestToJSON, CreateTranslation201ResponseFromJSON, CreateTranslationRequestToJSON, GetLanguagePresets200ResponseFromJSON, GetSupportedLanguages200ResponseFromJSON, GetTranslation200ResponseFromJSON, GetTranslationAnalytics200ResponseFromJSON, GetTranslationConfig200ResponseFromJSON, GetTranslations200ResponseFromJSON, RetranslateExperimentRequestToJSON, RollbackComponent200ResponseFromJSON, SubmitTranslationAnalyticsEventRequestToJSON, UpdateTranslationStatusRequestToJSON, } from '../models/index.js';
24
+ import { AddLanguagesToTranslation200ResponseFromJSON, AddLanguagesToTranslationRequestToJSON, CreateTranslation201ResponseFromJSON, CreateTranslationRequestToJSON, GetLanguagePresets200ResponseFromJSON, GetSupportedLanguages200ResponseFromJSON, GetTranslation200ResponseFromJSON, GetTranslationAnalytics200ResponseFromJSON, GetTranslationConfig200ResponseFromJSON, GetTranslations200ResponseFromJSON, RetranslateExperimentRequestToJSON, SubmitTranslationAnalyticsEventRequestToJSON, UpdateTranslationStatusRequestToJSON, UsersSendFeedbackPost200ResponseFromJSON, } from '../models/index.js';
25
25
  /**
26
26
  *
27
27
  */
@@ -131,7 +131,7 @@ export class TranslationsApi extends runtime.BaseAPI {
131
131
  headers: headerParameters,
132
132
  query: queryParameters,
133
133
  }, initOverrides);
134
- return new runtime.JSONApiResponse(response, (jsonValue) => RollbackComponent200ResponseFromJSON(jsonValue));
134
+ return new runtime.JSONApiResponse(response, (jsonValue) => UsersSendFeedbackPost200ResponseFromJSON(jsonValue));
135
135
  });
136
136
  }
137
137
  /**
@@ -408,7 +408,7 @@ export class TranslationsApi extends runtime.BaseAPI {
408
408
  query: queryParameters,
409
409
  body: RetranslateExperimentRequestToJSON(requestParameters['retranslateExperimentRequest']),
410
410
  }, initOverrides);
411
- return new runtime.JSONApiResponse(response, (jsonValue) => RollbackComponent200ResponseFromJSON(jsonValue));
411
+ return new runtime.JSONApiResponse(response, (jsonValue) => UsersSendFeedbackPost200ResponseFromJSON(jsonValue));
412
412
  });
413
413
  }
414
414
  /**
@@ -37,8 +37,12 @@ export class UIComponentsApi extends runtime.BaseAPI {
37
37
  }
38
38
  const queryParameters = {};
39
39
  const headerParameters = {};
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("apiKeyAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/ui/components/{componentId}/manifest`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -67,8 +71,12 @@ export class UIComponentsApi extends runtime.BaseAPI {
67
71
  return __awaiter(this, void 0, void 0, function* () {
68
72
  const queryParameters = {};
69
73
  const headerParameters = {};
70
- if (this.configuration && this.configuration.apiKey) {
71
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
74
+ if (this.configuration && this.configuration.accessToken) {
75
+ const token = this.configuration.accessToken;
76
+ const tokenString = yield token("apiKeyAuth", []);
77
+ if (tokenString) {
78
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
79
+ }
72
80
  }
73
81
  const response = yield this.request({
74
82
  path: `/ui/components`,
@@ -104,8 +112,12 @@ export class UIComponentsApi extends runtime.BaseAPI {
104
112
  const queryParameters = {};
105
113
  const headerParameters = {};
106
114
  headerParameters['Content-Type'] = 'application/json';
107
- if (this.configuration && this.configuration.apiKey) {
108
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
115
+ if (this.configuration && this.configuration.accessToken) {
116
+ const token = this.configuration.accessToken;
117
+ const tokenString = yield token("apiKeyAuth", []);
118
+ if (tokenString) {
119
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
120
+ }
109
121
  }
110
122
  const response = yield this.request({
111
123
  path: `/ui/components/{componentId}/mount`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
@@ -141,8 +153,12 @@ export class UIComponentsApi extends runtime.BaseAPI {
141
153
  }
142
154
  const queryParameters = {};
143
155
  const headerParameters = {};
144
- if (this.configuration && this.configuration.apiKey) {
145
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
156
+ if (this.configuration && this.configuration.accessToken) {
157
+ const token = this.configuration.accessToken;
158
+ const tokenString = yield token("apiKeyAuth", []);
159
+ if (tokenString) {
160
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
161
+ }
146
162
  }
147
163
  const response = yield this.request({
148
164
  path: `/ui/components/{componentId}/{instanceId}`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))).replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
@@ -37,8 +37,12 @@ export class UsageApi extends runtime.BaseAPI {
37
37
  const queryParameters = {};
38
38
  const headerParameters = {};
39
39
  headerParameters['Content-Type'] = 'application/json';
40
- if (this.configuration && this.configuration.apiKey) {
41
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
40
+ if (this.configuration && this.configuration.accessToken) {
41
+ const token = this.configuration.accessToken;
42
+ const tokenString = yield token("apiKeyAuth", []);
43
+ if (tokenString) {
44
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
45
+ }
42
46
  }
43
47
  const response = yield this.request({
44
48
  path: `/usage/bulk`,
@@ -86,8 +90,12 @@ export class UsageApi 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: `/usage`,
@@ -119,8 +127,12 @@ export class UsageApi 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: `/usage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
@@ -167,8 +179,12 @@ export class UsageApi extends runtime.BaseAPI {
167
179
  queryParameters['offset'] = requestParameters['offset'];
168
180
  }
169
181
  const headerParameters = {};
170
- if (this.configuration && this.configuration.apiKey) {
171
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
182
+ if (this.configuration && this.configuration.accessToken) {
183
+ const token = this.configuration.accessToken;
184
+ const tokenString = yield token("apiKeyAuth", []);
185
+ if (tokenString) {
186
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
187
+ }
172
188
  }
173
189
  const response = yield this.request({
174
190
  path: `/users/{userId}/usage`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -212,8 +228,12 @@ export class UsageApi extends runtime.BaseAPI {
212
228
  queryParameters['aggregation_period'] = requestParameters['aggregationPeriod'];
213
229
  }
214
230
  const headerParameters = {};
215
- if (this.configuration && this.configuration.apiKey) {
216
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
231
+ if (this.configuration && this.configuration.accessToken) {
232
+ const token = this.configuration.accessToken;
233
+ const tokenString = yield token("apiKeyAuth", []);
234
+ if (tokenString) {
235
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
236
+ }
217
237
  }
218
238
  const response = yield this.request({
219
239
  path: `/users/{userId}/usage/aggregated`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -245,8 +265,12 @@ export class UsageApi extends runtime.BaseAPI {
245
265
  }
246
266
  const queryParameters = {};
247
267
  const headerParameters = {};
248
- if (this.configuration && this.configuration.apiKey) {
249
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
268
+ if (this.configuration && this.configuration.accessToken) {
269
+ const token = this.configuration.accessToken;
270
+ const tokenString = yield token("apiKeyAuth", []);
271
+ if (tokenString) {
272
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
273
+ }
250
274
  }
251
275
  const response = yield this.request({
252
276
  path: `/users/{userId}/usage/summary`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
@@ -279,8 +303,12 @@ export class UsageApi extends runtime.BaseAPI {
279
303
  const queryParameters = {};
280
304
  const headerParameters = {};
281
305
  headerParameters['Content-Type'] = 'application/json';
282
- if (this.configuration && this.configuration.apiKey) {
283
- headerParameters["Authorization"] = yield this.configuration.apiKey("Authorization"); // apiKeyAuth authentication
306
+ if (this.configuration && this.configuration.accessToken) {
307
+ const token = this.configuration.accessToken;
308
+ const tokenString = yield token("apiKeyAuth", []);
309
+ if (tokenString) {
310
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
311
+ }
284
312
  }
285
313
  const response = yield this.request({
286
314
  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
  }