@widgetic/api-sdk 1.0.16 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -44,8 +44,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
|
|
|
44
44
|
const queryParameters = {};
|
|
45
45
|
const headerParameters = {};
|
|
46
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
-
if (this.configuration && this.configuration.
|
|
48
|
-
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -78,8 +82,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
|
|
|
78
82
|
}
|
|
79
83
|
const queryParameters = {};
|
|
80
84
|
const headerParameters = {};
|
|
81
|
-
if (this.configuration && this.configuration.
|
|
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: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -110,8 +118,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
|
|
|
110
118
|
}
|
|
111
119
|
const queryParameters = {};
|
|
112
120
|
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -149,8 +161,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
|
|
|
149
161
|
queryParameters['offset'] = requestParameters['offset'];
|
|
150
162
|
}
|
|
151
163
|
const headerParameters = {};
|
|
152
|
-
if (this.configuration && this.configuration.
|
|
153
|
-
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
154
170
|
}
|
|
155
171
|
const response = yield this.request({
|
|
156
172
|
path: `/partner-customizations`,
|
|
@@ -186,8 +202,12 @@ class PartnerCustomizationsApi extends runtime.BaseAPI {
|
|
|
186
202
|
const queryParameters = {};
|
|
187
203
|
const headerParameters = {};
|
|
188
204
|
headerParameters['Content-Type'] = 'application/json';
|
|
189
|
-
if (this.configuration && this.configuration.
|
|
190
|
-
|
|
205
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
206
|
+
const token = this.configuration.accessToken;
|
|
207
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
208
|
+
if (tokenString) {
|
|
209
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
210
|
+
}
|
|
191
211
|
}
|
|
192
212
|
const response = yield this.request({
|
|
193
213
|
path: `/partner-customizations/{partnerId}`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
package/dist/apis/PartnersApi.js
CHANGED
|
@@ -44,8 +44,12 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
44
44
|
const queryParameters = {};
|
|
45
45
|
const headerParameters = {};
|
|
46
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
-
if (this.configuration && this.configuration.
|
|
48
|
-
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/partners/{partnerId}/credits/add`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -74,8 +78,12 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
74
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
75
79
|
const queryParameters = {};
|
|
76
80
|
const headerParameters = {};
|
|
77
|
-
if (this.configuration && this.configuration.
|
|
78
|
-
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
const token = this.configuration.accessToken;
|
|
83
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
84
|
+
if (tokenString) {
|
|
85
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
86
|
+
}
|
|
79
87
|
}
|
|
80
88
|
const response = yield this.request({
|
|
81
89
|
path: `/partners/credits/check-balances`,
|
|
@@ -110,8 +118,12 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
110
118
|
const queryParameters = {};
|
|
111
119
|
const headerParameters = {};
|
|
112
120
|
headerParameters['Content-Type'] = 'application/json';
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/partners/{partnerId}/credits/auto-reload`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -143,8 +155,12 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
const queryParameters = {};
|
|
145
157
|
const headerParameters = {};
|
|
146
|
-
if (this.configuration && this.configuration.
|
|
147
|
-
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
148
164
|
}
|
|
149
165
|
const response = yield this.request({
|
|
150
166
|
path: `/partners/{partnerId}/credits/balance`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -185,8 +201,12 @@ class PartnersApi extends runtime.BaseAPI {
|
|
|
185
201
|
queryParameters['type'] = requestParameters['type'];
|
|
186
202
|
}
|
|
187
203
|
const headerParameters = {};
|
|
188
|
-
if (this.configuration && this.configuration.
|
|
189
|
-
|
|
204
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
205
|
+
const token = this.configuration.accessToken;
|
|
206
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
207
|
+
if (tokenString) {
|
|
208
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
209
|
+
}
|
|
190
210
|
}
|
|
191
211
|
const response = yield this.request({
|
|
192
212
|
path: `/partners/{partnerId}/credits/transactions`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
package/dist/apis/PromptsApi.js
CHANGED
|
@@ -44,8 +44,12 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
44
44
|
const queryParameters = {};
|
|
45
45
|
const headerParameters = {};
|
|
46
46
|
headerParameters['Content-Type'] = 'application/json';
|
|
47
|
-
if (this.configuration && this.configuration.
|
|
48
|
-
|
|
47
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
48
|
+
const token = this.configuration.accessToken;
|
|
49
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
50
|
+
if (tokenString) {
|
|
51
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
52
|
+
}
|
|
49
53
|
}
|
|
50
54
|
const response = yield this.request({
|
|
51
55
|
path: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -81,8 +85,12 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
81
85
|
}
|
|
82
86
|
const queryParameters = {};
|
|
83
87
|
const headerParameters = {};
|
|
84
|
-
if (this.configuration && this.configuration.
|
|
85
|
-
|
|
88
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
89
|
+
const token = this.configuration.accessToken;
|
|
90
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
91
|
+
if (tokenString) {
|
|
92
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
93
|
+
}
|
|
86
94
|
}
|
|
87
95
|
const response = yield this.request({
|
|
88
96
|
path: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -123,8 +131,12 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
123
131
|
queryParameters['sort'] = requestParameters['sort'];
|
|
124
132
|
}
|
|
125
133
|
const headerParameters = {};
|
|
126
|
-
if (this.configuration && this.configuration.
|
|
127
|
-
|
|
134
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
135
|
+
const token = this.configuration.accessToken;
|
|
136
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
137
|
+
if (tokenString) {
|
|
138
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
139
|
+
}
|
|
128
140
|
}
|
|
129
141
|
const response = yield this.request({
|
|
130
142
|
path: `/users/{userId}/prompts`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -159,8 +171,12 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
159
171
|
}
|
|
160
172
|
const queryParameters = {};
|
|
161
173
|
const headerParameters = {};
|
|
162
|
-
if (this.configuration && this.configuration.
|
|
163
|
-
|
|
174
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
175
|
+
const token = this.configuration.accessToken;
|
|
176
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
177
|
+
if (tokenString) {
|
|
178
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
179
|
+
}
|
|
164
180
|
}
|
|
165
181
|
const response = yield this.request({
|
|
166
182
|
path: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -199,8 +215,12 @@ class PromptsApi extends runtime.BaseAPI {
|
|
|
199
215
|
const queryParameters = {};
|
|
200
216
|
const headerParameters = {};
|
|
201
217
|
headerParameters['Content-Type'] = 'application/json';
|
|
202
|
-
if (this.configuration && this.configuration.
|
|
203
|
-
|
|
218
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
219
|
+
const token = this.configuration.accessToken;
|
|
220
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
221
|
+
if (tokenString) {
|
|
222
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
223
|
+
}
|
|
204
224
|
}
|
|
205
225
|
const response = yield this.request({
|
|
206
226
|
path: `/users/{userId}/prompts/{id}`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -36,8 +36,12 @@ class SubscriptionPlansApi extends runtime.BaseAPI {
|
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
const headerParameters = {};
|
|
39
|
-
if (this.configuration && this.configuration.
|
|
40
|
-
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
const response = yield this.request({
|
|
43
47
|
path: `/subscription-plans`,
|
|
@@ -69,8 +73,12 @@ class SubscriptionPlansApi extends runtime.BaseAPI {
|
|
|
69
73
|
}
|
|
70
74
|
const queryParameters = {};
|
|
71
75
|
const headerParameters = {};
|
|
72
|
-
if (this.configuration && this.configuration.
|
|
73
|
-
|
|
76
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
77
|
+
const token = this.configuration.accessToken;
|
|
78
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
79
|
+
if (tokenString) {
|
|
80
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
81
|
+
}
|
|
74
82
|
}
|
|
75
83
|
const response = yield this.request({
|
|
76
84
|
path: `/subscription-plans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -41,8 +41,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
43
|
headerParameters['Content-Type'] = 'application/json';
|
|
44
|
-
if (this.configuration && this.configuration.
|
|
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: `/subscriptions`,
|
|
@@ -75,8 +79,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
75
79
|
}
|
|
76
80
|
const queryParameters = {};
|
|
77
81
|
const headerParameters = {};
|
|
78
|
-
if (this.configuration && this.configuration.
|
|
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: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -116,8 +124,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
116
124
|
queryParameters['plan_type'] = requestParameters['planType'];
|
|
117
125
|
}
|
|
118
126
|
const headerParameters = {};
|
|
119
|
-
if (this.configuration && this.configuration.
|
|
120
|
-
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
130
|
+
if (tokenString) {
|
|
131
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
|
+
}
|
|
121
133
|
}
|
|
122
134
|
const response = yield this.request({
|
|
123
135
|
path: `/subscriptions`,
|
|
@@ -149,8 +161,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
149
161
|
queryParameters['months'] = requestParameters['months'];
|
|
150
162
|
}
|
|
151
163
|
const headerParameters = {};
|
|
152
|
-
if (this.configuration && this.configuration.
|
|
153
|
-
|
|
164
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
165
|
+
const token = this.configuration.accessToken;
|
|
166
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
167
|
+
if (tokenString) {
|
|
168
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
169
|
+
}
|
|
154
170
|
}
|
|
155
171
|
const response = yield this.request({
|
|
156
172
|
path: `/subscriptions/reports/billing`,
|
|
@@ -182,8 +198,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
182
198
|
}
|
|
183
199
|
const queryParameters = {};
|
|
184
200
|
const headerParameters = {};
|
|
185
|
-
if (this.configuration && this.configuration.
|
|
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: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -224,8 +244,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
224
244
|
queryParameters['offset'] = requestParameters['offset'];
|
|
225
245
|
}
|
|
226
246
|
const headerParameters = {};
|
|
227
|
-
if (this.configuration && this.configuration.
|
|
228
|
-
|
|
247
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
248
|
+
const token = this.configuration.accessToken;
|
|
249
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
250
|
+
if (tokenString) {
|
|
251
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
252
|
+
}
|
|
229
253
|
}
|
|
230
254
|
const response = yield this.request({
|
|
231
255
|
path: `/users/{userId}/subscriptions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -261,8 +285,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
261
285
|
const queryParameters = {};
|
|
262
286
|
const headerParameters = {};
|
|
263
287
|
headerParameters['Content-Type'] = 'application/json';
|
|
264
|
-
if (this.configuration && this.configuration.
|
|
265
|
-
|
|
288
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
289
|
+
const token = this.configuration.accessToken;
|
|
290
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
291
|
+
if (tokenString) {
|
|
292
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
293
|
+
}
|
|
266
294
|
}
|
|
267
295
|
const response = yield this.request({
|
|
268
296
|
path: `/subscriptions/{id}/refund`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -299,8 +327,12 @@ class SubscriptionsApi extends runtime.BaseAPI {
|
|
|
299
327
|
const queryParameters = {};
|
|
300
328
|
const headerParameters = {};
|
|
301
329
|
headerParameters['Content-Type'] = 'application/json';
|
|
302
|
-
if (this.configuration && this.configuration.
|
|
303
|
-
|
|
330
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
331
|
+
const token = this.configuration.accessToken;
|
|
332
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
333
|
+
if (tokenString) {
|
|
334
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
335
|
+
}
|
|
304
336
|
}
|
|
305
337
|
const response = yield this.request({
|
|
306
338
|
path: `/subscriptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { AddLanguagesToTranslation200Response, AddLanguagesToTranslationRequest, CreateTranslation201Response, CreateTranslationRequest, GetLanguagePresets200Response, GetSupportedLanguages200Response, GetTranslation200Response, GetTranslationAnalytics200Response, GetTranslationConfig200Response, GetTranslations200Response, RetranslateExperimentRequest,
|
|
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)
|
|
@@ -134,7 +134,7 @@ class TranslationsApi extends runtime.BaseAPI {
|
|
|
134
134
|
headers: headerParameters,
|
|
135
135
|
query: queryParameters,
|
|
136
136
|
}, initOverrides);
|
|
137
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
137
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
/**
|
|
@@ -411,7 +411,7 @@ class TranslationsApi extends runtime.BaseAPI {
|
|
|
411
411
|
query: queryParameters,
|
|
412
412
|
body: (0, index_1.RetranslateExperimentRequestToJSON)(requestParameters['retranslateExperimentRequest']),
|
|
413
413
|
}, initOverrides);
|
|
414
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
414
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
@@ -40,8 +40,12 @@ class UIComponentsApi extends runtime.BaseAPI {
|
|
|
40
40
|
}
|
|
41
41
|
const queryParameters = {};
|
|
42
42
|
const headerParameters = {};
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/ui/components/{componentId}/manifest`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -70,8 +74,12 @@ class UIComponentsApi extends runtime.BaseAPI {
|
|
|
70
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
75
|
const queryParameters = {};
|
|
72
76
|
const headerParameters = {};
|
|
73
|
-
if (this.configuration && this.configuration.
|
|
74
|
-
|
|
77
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
78
|
+
const token = this.configuration.accessToken;
|
|
79
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
80
|
+
if (tokenString) {
|
|
81
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
82
|
+
}
|
|
75
83
|
}
|
|
76
84
|
const response = yield this.request({
|
|
77
85
|
path: `/ui/components`,
|
|
@@ -107,8 +115,12 @@ class UIComponentsApi extends runtime.BaseAPI {
|
|
|
107
115
|
const queryParameters = {};
|
|
108
116
|
const headerParameters = {};
|
|
109
117
|
headerParameters['Content-Type'] = 'application/json';
|
|
110
|
-
if (this.configuration && this.configuration.
|
|
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: `/ui/components/{componentId}/mount`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -144,8 +156,12 @@ class UIComponentsApi extends runtime.BaseAPI {
|
|
|
144
156
|
}
|
|
145
157
|
const queryParameters = {};
|
|
146
158
|
const headerParameters = {};
|
|
147
|
-
if (this.configuration && this.configuration.
|
|
148
|
-
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
162
|
+
if (tokenString) {
|
|
163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
164
|
+
}
|
|
149
165
|
}
|
|
150
166
|
const response = yield this.request({
|
|
151
167
|
path: `/ui/components/{componentId}/{instanceId}`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))).replace(`{${"instanceId"}}`, encodeURIComponent(String(requestParameters['instanceId']))),
|
package/dist/apis/UsageApi.js
CHANGED
|
@@ -40,8 +40,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
40
40
|
const queryParameters = {};
|
|
41
41
|
const headerParameters = {};
|
|
42
42
|
headerParameters['Content-Type'] = 'application/json';
|
|
43
|
-
if (this.configuration && this.configuration.
|
|
44
|
-
|
|
43
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
44
|
+
const token = this.configuration.accessToken;
|
|
45
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
46
|
+
if (tokenString) {
|
|
47
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
48
|
+
}
|
|
45
49
|
}
|
|
46
50
|
const response = yield this.request({
|
|
47
51
|
path: `/usage/bulk`,
|
|
@@ -89,8 +93,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
89
93
|
queryParameters['offset'] = requestParameters['offset'];
|
|
90
94
|
}
|
|
91
95
|
const headerParameters = {};
|
|
92
|
-
if (this.configuration && this.configuration.
|
|
93
|
-
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
99
|
+
if (tokenString) {
|
|
100
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
101
|
+
}
|
|
94
102
|
}
|
|
95
103
|
const response = yield this.request({
|
|
96
104
|
path: `/usage`,
|
|
@@ -122,8 +130,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
122
130
|
}
|
|
123
131
|
const queryParameters = {};
|
|
124
132
|
const headerParameters = {};
|
|
125
|
-
if (this.configuration && this.configuration.
|
|
126
|
-
|
|
133
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
134
|
+
const token = this.configuration.accessToken;
|
|
135
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
136
|
+
if (tokenString) {
|
|
137
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
138
|
+
}
|
|
127
139
|
}
|
|
128
140
|
const response = yield this.request({
|
|
129
141
|
path: `/usage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -170,8 +182,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
170
182
|
queryParameters['offset'] = requestParameters['offset'];
|
|
171
183
|
}
|
|
172
184
|
const headerParameters = {};
|
|
173
|
-
if (this.configuration && this.configuration.
|
|
174
|
-
|
|
185
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
186
|
+
const token = this.configuration.accessToken;
|
|
187
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
188
|
+
if (tokenString) {
|
|
189
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
190
|
+
}
|
|
175
191
|
}
|
|
176
192
|
const response = yield this.request({
|
|
177
193
|
path: `/users/{userId}/usage`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -215,8 +231,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
215
231
|
queryParameters['aggregation_period'] = requestParameters['aggregationPeriod'];
|
|
216
232
|
}
|
|
217
233
|
const headerParameters = {};
|
|
218
|
-
if (this.configuration && this.configuration.
|
|
219
|
-
|
|
234
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
235
|
+
const token = this.configuration.accessToken;
|
|
236
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
237
|
+
if (tokenString) {
|
|
238
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
239
|
+
}
|
|
220
240
|
}
|
|
221
241
|
const response = yield this.request({
|
|
222
242
|
path: `/users/{userId}/usage/aggregated`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -248,8 +268,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
248
268
|
}
|
|
249
269
|
const queryParameters = {};
|
|
250
270
|
const headerParameters = {};
|
|
251
|
-
if (this.configuration && this.configuration.
|
|
252
|
-
|
|
271
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
272
|
+
const token = this.configuration.accessToken;
|
|
273
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
274
|
+
if (tokenString) {
|
|
275
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
276
|
+
}
|
|
253
277
|
}
|
|
254
278
|
const response = yield this.request({
|
|
255
279
|
path: `/users/{userId}/usage/summary`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -282,8 +306,12 @@ class UsageApi extends runtime.BaseAPI {
|
|
|
282
306
|
const queryParameters = {};
|
|
283
307
|
const headerParameters = {};
|
|
284
308
|
headerParameters['Content-Type'] = 'application/json';
|
|
285
|
-
if (this.configuration && this.configuration.
|
|
286
|
-
|
|
309
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
310
|
+
const token = this.configuration.accessToken;
|
|
311
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
312
|
+
if (tokenString) {
|
|
313
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
314
|
+
}
|
|
287
315
|
}
|
|
288
316
|
const response = yield this.request({
|
|
289
317
|
path: `/usage`,
|
package/dist/apis/UsersApi.d.ts
CHANGED
|
@@ -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
|
}
|
package/dist/apis/UsersApi.js
CHANGED
|
@@ -80,7 +80,7 @@ class UsersApi extends runtime.BaseAPI {
|
|
|
80
80
|
query: queryParameters,
|
|
81
81
|
body: (0, index_1.UsersSendFeedbackPostRequestToJSON)(requestParameters['usersSendFeedbackPostRequest']),
|
|
82
82
|
}, initOverrides);
|
|
83
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
83
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
/**
|