@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.
- package/dist/apis/ABTestingApi.js +90 -30
- package/dist/apis/AdminApi.js +12 -4
- package/dist/apis/AuthenticationApi.d.ts +3 -3
- package/dist/apis/AuthenticationApi.js +31 -11
- package/dist/apis/BatchApi.js +6 -2
- package/dist/apis/BillingApi.d.ts +13 -13
- package/dist/apis/BillingApi.js +8 -8
- package/dist/apis/CanvasesApi.js +30 -10
- package/dist/apis/ComponentsApi.d.ts +3 -3
- package/dist/apis/ComponentsApi.js +43 -15
- package/dist/apis/CompositionsApi.js +132 -44
- package/dist/apis/ContentsApi.js +36 -12
- package/dist/apis/ConversationsApi.js +30 -10
- package/dist/apis/CreditsApi.js +30 -10
- package/dist/apis/DemoContentsApi.js +30 -10
- package/dist/apis/EntitlementsApi.js +30 -10
- package/dist/apis/FoldersApi.js +30 -10
- package/dist/apis/HealthApi.js +12 -4
- package/dist/apis/IntegrationsApi.js +42 -14
- package/dist/apis/InvitationsApi.js +12 -4
- package/dist/apis/InvoicesApi.js +36 -12
- package/dist/apis/ManagedUsersApi.js +36 -12
- package/dist/apis/MessagesApi.js +36 -12
- package/dist/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/apis/OrganizationActivitiesApi.js +221 -0
- package/dist/apis/OrganizationsApi.d.ts +31 -106
- package/dist/apis/OrganizationsApi.js +324 -292
- package/dist/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/apis/PartnersApi.js +30 -10
- package/dist/apis/PromptsApi.js +30 -10
- package/dist/apis/SubscriptionPlansApi.js +12 -4
- package/dist/apis/SubscriptionsApi.js +48 -16
- package/dist/apis/TranslationsApi.d.ts +5 -5
- package/dist/apis/TranslationsApi.js +2 -2
- package/dist/apis/UIComponentsApi.js +24 -8
- package/dist/apis/UsageApi.js +42 -14
- package/dist/apis/UsersApi.d.ts +3 -3
- package/dist/apis/UsersApi.js +1 -1
- package/dist/apis/WorkspacesApi.js +78 -26
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/ABTestingApi.js +90 -30
- package/dist/esm/apis/AdminApi.js +12 -4
- package/dist/esm/apis/AuthenticationApi.d.ts +3 -3
- package/dist/esm/apis/AuthenticationApi.js +32 -12
- package/dist/esm/apis/BatchApi.js +6 -2
- package/dist/esm/apis/BillingApi.d.ts +13 -13
- package/dist/esm/apis/BillingApi.js +9 -9
- package/dist/esm/apis/CanvasesApi.js +30 -10
- package/dist/esm/apis/ComponentsApi.d.ts +3 -3
- package/dist/esm/apis/ComponentsApi.js +44 -16
- package/dist/esm/apis/CompositionsApi.js +132 -44
- package/dist/esm/apis/ContentsApi.js +36 -12
- package/dist/esm/apis/ConversationsApi.js +30 -10
- package/dist/esm/apis/CreditsApi.js +30 -10
- package/dist/esm/apis/DemoContentsApi.js +30 -10
- package/dist/esm/apis/EntitlementsApi.js +30 -10
- package/dist/esm/apis/FoldersApi.js +30 -10
- package/dist/esm/apis/HealthApi.js +12 -4
- package/dist/esm/apis/IntegrationsApi.js +42 -14
- package/dist/esm/apis/InvitationsApi.js +12 -4
- package/dist/esm/apis/InvoicesApi.js +36 -12
- package/dist/esm/apis/ManagedUsersApi.js +36 -12
- package/dist/esm/apis/MessagesApi.js +36 -12
- package/dist/esm/apis/OrganizationActivitiesApi.d.ts +93 -0
- package/dist/esm/apis/OrganizationActivitiesApi.js +217 -0
- package/dist/esm/apis/OrganizationsApi.d.ts +31 -106
- package/dist/esm/apis/OrganizationsApi.js +324 -292
- package/dist/esm/apis/PartnerCustomizationsApi.js +30 -10
- package/dist/esm/apis/PartnersApi.js +30 -10
- package/dist/esm/apis/PromptsApi.js +30 -10
- package/dist/esm/apis/SubscriptionPlansApi.js +12 -4
- package/dist/esm/apis/SubscriptionsApi.js +48 -16
- package/dist/esm/apis/TranslationsApi.d.ts +5 -5
- package/dist/esm/apis/TranslationsApi.js +3 -3
- package/dist/esm/apis/UIComponentsApi.js +24 -8
- package/dist/esm/apis/UsageApi.js +42 -14
- package/dist/esm/apis/UsersApi.d.ts +3 -3
- package/dist/esm/apis/UsersApi.js +2 -2
- package/dist/esm/apis/WorkspacesApi.js +78 -26
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/esm/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/esm/models/Canvas.d.ts +6 -0
- package/dist/esm/models/Canvas.js +2 -0
- package/dist/esm/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/CreateCanvasRequest.js +2 -0
- package/dist/esm/models/ErrorResponse.d.ts +12 -12
- package/dist/esm/models/ErrorResponse.js +4 -4
- package/dist/esm/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/esm/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/esm/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/esm/models/{GetCompositionsBatch200ResponseErrorsInner.js → GetWidgetsBatch200ResponseErrorsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js → OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +42 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js → OrganizationsOrgIdBillingPaymentMethodsPostRequest.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/esm/models/{ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js → OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js} +8 -8
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200Response.js +44 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/esm/models/OrganizationsOrgIdBillingPortalPostRequest.js +41 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/esm/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +43 -0
- package/dist/esm/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/esm/models/UpdateCanvasRequest.js +2 -0
- package/dist/esm/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/esm/models/UpdateWidgetRequest.js +5 -0
- package/dist/esm/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/esm/models/{RollbackComponent200Response.js → UsersSendFeedbackPost200Response.js} +8 -8
- package/dist/esm/models/index.d.ts +24 -24
- package/dist/esm/models/index.js +24 -24
- package/dist/models/AgentModelsGet200ResponseModelsInner.d.ts +6 -0
- package/dist/models/AgentModelsGet200ResponseModelsInner.js +2 -0
- package/dist/models/Canvas.d.ts +6 -0
- package/dist/models/Canvas.js +2 -0
- package/dist/models/CreateCanvasRequest.d.ts +6 -0
- package/dist/models/CreateCanvasRequest.js +2 -0
- package/dist/models/ErrorResponse.d.ts +12 -12
- package/dist/models/ErrorResponse.js +4 -4
- package/dist/models/GetCompositionsBatch200Response.d.ts +3 -3
- package/dist/models/GetCompositionsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200Response.d.ts +3 -3
- package/dist/models/GetWidgetsBatch200Response.js +3 -3
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.d.ts +38 -0
- package/dist/models/GetWidgetsBatch200ResponseErrorsInner.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +62 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +58 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.d.ts +33 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPost200ResponseData.js +49 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsPostRequest.js +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.d.ts +50 -0
- package/dist/models/OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseData.js +54 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.d.ts +39 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200Response.js +51 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPost200ResponseData.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.d.ts +32 -0
- package/dist/models/OrganizationsOrgIdBillingPortalPostRequest.js +48 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.d.ts +38 -0
- package/dist/models/OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response.js +50 -0
- package/dist/models/UpdateCanvasRequest.d.ts +6 -0
- package/dist/models/UpdateCanvasRequest.js +2 -0
- package/dist/models/UpdateWidgetRequest.d.ts +12 -0
- package/dist/models/UpdateWidgetRequest.js +5 -0
- package/dist/models/UsersSendFeedbackPost200Response.d.ts +38 -0
- package/dist/models/UsersSendFeedbackPost200Response.js +50 -0
- package/dist/models/index.d.ts +24 -24
- package/dist/models/index.js +24 -24
- package/package.json +1 -1
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -42
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -44
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -41
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/esm/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -41
- package/dist/esm/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.d.ts +0 -38
- package/dist/esm/models/LoginUser200Response.js +0 -43
- package/dist/esm/models/RollbackComponent200Response.d.ts +0 -38
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.d.ts +0 -62
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsGet200ResponseDataPaymentMethodsInner.js +0 -58
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.d.ts +0 -33
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPost200ResponseData.js +0 -49
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsPostRequest.js +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.d.ts +0 -50
- package/dist/models/ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPost200ResponseData.js +0 -54
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.d.ts +0 -39
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200Response.js +0 -51
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPost200ResponseData.js +0 -48
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.d.ts +0 -32
- package/dist/models/ApiV1BillingUsersUserIdPortalPostRequest.js +0 -48
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.d.ts +0 -38
- package/dist/models/GetCompositionsBatch200ResponseErrorsInner.js +0 -50
- package/dist/models/LoginUser200Response.d.ts +0 -38
- package/dist/models/LoginUser200Response.js +0 -50
- package/dist/models/RollbackComponent200Response.d.ts +0 -38
- 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.
|
|
45
|
-
|
|
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.
|
|
79
|
-
|
|
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.
|
|
111
|
-
|
|
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.
|
|
150
|
-
|
|
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.
|
|
187
|
-
|
|
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.
|
|
45
|
-
|
|
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.
|
|
75
|
-
|
|
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.
|
|
111
|
-
|
|
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.
|
|
144
|
-
|
|
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.
|
|
186
|
-
|
|
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.
|
|
45
|
-
|
|
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.
|
|
82
|
-
|
|
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.
|
|
124
|
-
|
|
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.
|
|
160
|
-
|
|
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.
|
|
200
|
-
|
|
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.
|
|
37
|
-
|
|
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.
|
|
70
|
-
|
|
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.
|
|
42
|
-
|
|
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.
|
|
76
|
-
|
|
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.
|
|
117
|
-
|
|
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.
|
|
150
|
-
|
|
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.
|
|
183
|
-
|
|
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.
|
|
225
|
-
|
|
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.
|
|
262
|
-
|
|
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.
|
|
300
|
-
|
|
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,
|
|
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<
|
|
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<
|
|
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<
|
|
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<
|
|
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,
|
|
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) =>
|
|
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) =>
|
|
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.
|
|
41
|
-
|
|
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.
|
|
71
|
-
|
|
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.
|
|
108
|
-
|
|
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.
|
|
145
|
-
|
|
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.
|
|
41
|
-
|
|
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.
|
|
90
|
-
|
|
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.
|
|
123
|
-
|
|
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.
|
|
171
|
-
|
|
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.
|
|
216
|
-
|
|
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.
|
|
249
|
-
|
|
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.
|
|
283
|
-
|
|
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 {
|
|
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<
|
|
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<
|
|
38
|
+
usersSendFeedbackPost(requestParameters: UsersSendFeedbackPostOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
|
|
39
39
|
}
|