@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
|
@@ -37,8 +37,12 @@ export class CompositionsApi 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: `/compositions/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -71,8 +75,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
71
75
|
const queryParameters = {};
|
|
72
76
|
const headerParameters = {};
|
|
73
77
|
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/compositions`,
|
|
@@ -112,8 +120,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
112
120
|
const queryParameters = {};
|
|
113
121
|
const headerParameters = {};
|
|
114
122
|
headerParameters['Content-Type'] = 'application/json';
|
|
115
|
-
if (this.configuration && this.configuration.
|
|
116
|
-
|
|
123
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
124
|
+
const token = this.configuration.accessToken;
|
|
125
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
126
|
+
if (tokenString) {
|
|
127
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
128
|
+
}
|
|
117
129
|
}
|
|
118
130
|
const response = yield this.request({
|
|
119
131
|
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
@@ -145,8 +157,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
145
157
|
}
|
|
146
158
|
const queryParameters = {};
|
|
147
159
|
const headerParameters = {};
|
|
148
|
-
if (this.configuration && this.configuration.
|
|
149
|
-
|
|
160
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
161
|
+
const token = this.configuration.accessToken;
|
|
162
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
163
|
+
if (tokenString) {
|
|
164
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
165
|
+
}
|
|
150
166
|
}
|
|
151
167
|
const response = yield this.request({
|
|
152
168
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -183,8 +199,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
183
199
|
}
|
|
184
200
|
const queryParameters = {};
|
|
185
201
|
const headerParameters = {};
|
|
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: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -216,8 +236,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
216
236
|
const queryParameters = {};
|
|
217
237
|
const headerParameters = {};
|
|
218
238
|
headerParameters['Content-Type'] = 'application/json';
|
|
219
|
-
if (this.configuration && this.configuration.
|
|
220
|
-
|
|
239
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
240
|
+
const token = this.configuration.accessToken;
|
|
241
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
242
|
+
if (tokenString) {
|
|
243
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
244
|
+
}
|
|
221
245
|
}
|
|
222
246
|
const response = yield this.request({
|
|
223
247
|
path: `/compositions/{id}/duplicate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -271,8 +295,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
271
295
|
queryParameters['include'] = requestParameters['include'];
|
|
272
296
|
}
|
|
273
297
|
const headerParameters = {};
|
|
274
|
-
if (this.configuration && this.configuration.
|
|
275
|
-
|
|
298
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
299
|
+
const token = this.configuration.accessToken;
|
|
300
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
301
|
+
if (tokenString) {
|
|
302
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
303
|
+
}
|
|
276
304
|
}
|
|
277
305
|
const response = yield this.request({
|
|
278
306
|
path: `/compositions`,
|
|
@@ -304,8 +332,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
304
332
|
}
|
|
305
333
|
const queryParameters = {};
|
|
306
334
|
const headerParameters = {};
|
|
307
|
-
if (this.configuration && this.configuration.
|
|
308
|
-
|
|
335
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
336
|
+
const token = this.configuration.accessToken;
|
|
337
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
338
|
+
if (tokenString) {
|
|
339
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
340
|
+
}
|
|
309
341
|
}
|
|
310
342
|
const response = yield this.request({
|
|
311
343
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -337,8 +369,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
337
369
|
}
|
|
338
370
|
const queryParameters = {};
|
|
339
371
|
const headerParameters = {};
|
|
340
|
-
if (this.configuration && this.configuration.
|
|
341
|
-
|
|
372
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
373
|
+
const token = this.configuration.accessToken;
|
|
374
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
375
|
+
if (tokenString) {
|
|
376
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
377
|
+
}
|
|
342
378
|
}
|
|
343
379
|
const response = yield this.request({
|
|
344
380
|
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -370,8 +406,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
370
406
|
}
|
|
371
407
|
const queryParameters = {};
|
|
372
408
|
const headerParameters = {};
|
|
373
|
-
if (this.configuration && this.configuration.
|
|
374
|
-
|
|
409
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
410
|
+
const token = this.configuration.accessToken;
|
|
411
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
412
|
+
if (tokenString) {
|
|
413
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
414
|
+
}
|
|
375
415
|
}
|
|
376
416
|
const response = yield this.request({
|
|
377
417
|
path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -409,8 +449,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
409
449
|
}
|
|
410
450
|
const queryParameters = {};
|
|
411
451
|
const headerParameters = {};
|
|
412
|
-
if (this.configuration && this.configuration.
|
|
413
|
-
|
|
452
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
453
|
+
const token = this.configuration.accessToken;
|
|
454
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
455
|
+
if (tokenString) {
|
|
456
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
457
|
+
}
|
|
414
458
|
}
|
|
415
459
|
const response = yield this.request({
|
|
416
460
|
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -444,8 +488,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
444
488
|
}
|
|
445
489
|
const queryParameters = {};
|
|
446
490
|
const headerParameters = {};
|
|
447
|
-
if (this.configuration && this.configuration.
|
|
448
|
-
|
|
491
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
492
|
+
const token = this.configuration.accessToken;
|
|
493
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
494
|
+
if (tokenString) {
|
|
495
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
496
|
+
}
|
|
449
497
|
}
|
|
450
498
|
const response = yield this.request({
|
|
451
499
|
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
@@ -476,8 +524,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
476
524
|
}
|
|
477
525
|
const queryParameters = {};
|
|
478
526
|
const headerParameters = {};
|
|
479
|
-
if (this.configuration && this.configuration.
|
|
480
|
-
|
|
527
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
528
|
+
const token = this.configuration.accessToken;
|
|
529
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
530
|
+
if (tokenString) {
|
|
531
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
532
|
+
}
|
|
481
533
|
}
|
|
482
534
|
const response = yield this.request({
|
|
483
535
|
path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -509,8 +561,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
509
561
|
}
|
|
510
562
|
const queryParameters = {};
|
|
511
563
|
const headerParameters = {};
|
|
512
|
-
if (this.configuration && this.configuration.
|
|
513
|
-
|
|
564
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
565
|
+
const token = this.configuration.accessToken;
|
|
566
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
567
|
+
if (tokenString) {
|
|
568
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
569
|
+
}
|
|
514
570
|
}
|
|
515
571
|
const response = yield this.request({
|
|
516
572
|
path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -542,8 +598,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
542
598
|
}
|
|
543
599
|
const queryParameters = {};
|
|
544
600
|
const headerParameters = {};
|
|
545
|
-
if (this.configuration && this.configuration.
|
|
546
|
-
|
|
601
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
602
|
+
const token = this.configuration.accessToken;
|
|
603
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
604
|
+
if (tokenString) {
|
|
605
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
606
|
+
}
|
|
547
607
|
}
|
|
548
608
|
const response = yield this.request({
|
|
549
609
|
path: `/compositions/{id}/embed-settings`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -575,8 +635,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
575
635
|
}
|
|
576
636
|
const queryParameters = {};
|
|
577
637
|
const headerParameters = {};
|
|
578
|
-
if (this.configuration && this.configuration.
|
|
579
|
-
|
|
638
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
639
|
+
const token = this.configuration.accessToken;
|
|
640
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
641
|
+
if (tokenString) {
|
|
642
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
643
|
+
}
|
|
580
644
|
}
|
|
581
645
|
const response = yield this.request({
|
|
582
646
|
path: `/compositions/{id}/versions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -609,8 +673,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
609
673
|
const queryParameters = {};
|
|
610
674
|
const headerParameters = {};
|
|
611
675
|
headerParameters['Content-Type'] = 'application/json';
|
|
612
|
-
if (this.configuration && this.configuration.
|
|
613
|
-
|
|
676
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
677
|
+
const token = this.configuration.accessToken;
|
|
678
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
679
|
+
if (tokenString) {
|
|
680
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
681
|
+
}
|
|
614
682
|
}
|
|
615
683
|
const response = yield this.request({
|
|
616
684
|
path: `/compositions/batch`,
|
|
@@ -647,8 +715,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
647
715
|
const queryParameters = {};
|
|
648
716
|
const headerParameters = {};
|
|
649
717
|
headerParameters['Content-Type'] = 'application/json';
|
|
650
|
-
if (this.configuration && this.configuration.
|
|
651
|
-
|
|
718
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
719
|
+
const token = this.configuration.accessToken;
|
|
720
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
721
|
+
if (tokenString) {
|
|
722
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
723
|
+
}
|
|
652
724
|
}
|
|
653
725
|
const response = yield this.request({
|
|
654
726
|
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -685,8 +757,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
685
757
|
const queryParameters = {};
|
|
686
758
|
const headerParameters = {};
|
|
687
759
|
headerParameters['Content-Type'] = 'application/json';
|
|
688
|
-
if (this.configuration && this.configuration.
|
|
689
|
-
|
|
760
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
761
|
+
const token = this.configuration.accessToken;
|
|
762
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
763
|
+
if (tokenString) {
|
|
764
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
765
|
+
}
|
|
690
766
|
}
|
|
691
767
|
const response = yield this.request({
|
|
692
768
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -729,8 +805,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
729
805
|
const queryParameters = {};
|
|
730
806
|
const headerParameters = {};
|
|
731
807
|
headerParameters['Content-Type'] = 'application/json';
|
|
732
|
-
if (this.configuration && this.configuration.
|
|
733
|
-
|
|
808
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
809
|
+
const token = this.configuration.accessToken;
|
|
810
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
811
|
+
if (tokenString) {
|
|
812
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
813
|
+
}
|
|
734
814
|
}
|
|
735
815
|
const response = yield this.request({
|
|
736
816
|
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -766,8 +846,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
766
846
|
const queryParameters = {};
|
|
767
847
|
const headerParameters = {};
|
|
768
848
|
headerParameters['Content-Type'] = 'application/json';
|
|
769
|
-
if (this.configuration && this.configuration.
|
|
770
|
-
|
|
849
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
850
|
+
const token = this.configuration.accessToken;
|
|
851
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
852
|
+
if (tokenString) {
|
|
853
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
854
|
+
}
|
|
771
855
|
}
|
|
772
856
|
const response = yield this.request({
|
|
773
857
|
path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -804,8 +888,12 @@ export class CompositionsApi extends runtime.BaseAPI {
|
|
|
804
888
|
const queryParameters = {};
|
|
805
889
|
const headerParameters = {};
|
|
806
890
|
headerParameters['Content-Type'] = 'application/json';
|
|
807
|
-
if (this.configuration && this.configuration.
|
|
808
|
-
|
|
891
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
892
|
+
const token = this.configuration.accessToken;
|
|
893
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
894
|
+
if (tokenString) {
|
|
895
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
896
|
+
}
|
|
809
897
|
}
|
|
810
898
|
const response = yield this.request({
|
|
811
899
|
path: `/compositions/{id}/content/validate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -36,8 +36,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
36
36
|
const queryParameters = {};
|
|
37
37
|
const headerParameters = {};
|
|
38
38
|
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/contents`,
|
|
@@ -67,8 +71,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
67
71
|
}
|
|
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: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -97,8 +105,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
97
105
|
}
|
|
98
106
|
const queryParameters = {};
|
|
99
107
|
const headerParameters = {};
|
|
100
|
-
if (this.configuration && this.configuration.
|
|
101
|
-
|
|
108
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
109
|
+
const token = this.configuration.accessToken;
|
|
110
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
111
|
+
if (tokenString) {
|
|
112
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
113
|
+
}
|
|
102
114
|
}
|
|
103
115
|
const response = yield this.request({
|
|
104
116
|
path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -133,8 +145,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
133
145
|
queryParameters['sort'] = requestParameters['sort'];
|
|
134
146
|
}
|
|
135
147
|
const headerParameters = {};
|
|
136
|
-
if (this.configuration && this.configuration.
|
|
137
|
-
|
|
148
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
149
|
+
const token = this.configuration.accessToken;
|
|
150
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
151
|
+
if (tokenString) {
|
|
152
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
153
|
+
}
|
|
138
154
|
}
|
|
139
155
|
const response = yield this.request({
|
|
140
156
|
path: `/contents`,
|
|
@@ -167,8 +183,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
167
183
|
const queryParameters = {};
|
|
168
184
|
const headerParameters = {};
|
|
169
185
|
headerParameters['Content-Type'] = 'application/json';
|
|
170
|
-
if (this.configuration && this.configuration.
|
|
171
|
-
|
|
186
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
187
|
+
const token = this.configuration.accessToken;
|
|
188
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
189
|
+
if (tokenString) {
|
|
190
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
191
|
+
}
|
|
172
192
|
}
|
|
173
193
|
const response = yield this.request({
|
|
174
194
|
path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -198,8 +218,12 @@ export class ContentsApi extends runtime.BaseAPI {
|
|
|
198
218
|
}
|
|
199
219
|
const queryParameters = {};
|
|
200
220
|
const headerParameters = {};
|
|
201
|
-
if (this.configuration && this.configuration.
|
|
202
|
-
|
|
221
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
222
|
+
const token = this.configuration.accessToken;
|
|
223
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
224
|
+
if (tokenString) {
|
|
225
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
226
|
+
}
|
|
203
227
|
}
|
|
204
228
|
const consumes = [
|
|
205
229
|
{ contentType: 'multipart/form-data' },
|
|
@@ -38,8 +38,12 @@ export class ConversationsApi 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: `/conversations`,
|
|
@@ -71,8 +75,12 @@ export class ConversationsApi extends runtime.BaseAPI {
|
|
|
71
75
|
}
|
|
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: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -103,8 +111,12 @@ export class ConversationsApi extends runtime.BaseAPI {
|
|
|
103
111
|
}
|
|
104
112
|
const queryParameters = {};
|
|
105
113
|
const headerParameters = {};
|
|
106
|
-
if (this.configuration && this.configuration.
|
|
107
|
-
|
|
114
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
115
|
+
const token = this.configuration.accessToken;
|
|
116
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
117
|
+
if (tokenString) {
|
|
118
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
119
|
+
}
|
|
108
120
|
}
|
|
109
121
|
const response = yield this.request({
|
|
110
122
|
path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -147,8 +159,12 @@ export class ConversationsApi extends runtime.BaseAPI {
|
|
|
147
159
|
queryParameters['sort'] = requestParameters['sort'];
|
|
148
160
|
}
|
|
149
161
|
const headerParameters = {};
|
|
150
|
-
if (this.configuration && this.configuration.
|
|
151
|
-
|
|
162
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
163
|
+
const token = this.configuration.accessToken;
|
|
164
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
165
|
+
if (tokenString) {
|
|
166
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
167
|
+
}
|
|
152
168
|
}
|
|
153
169
|
const response = yield this.request({
|
|
154
170
|
path: `/conversations`,
|
|
@@ -183,8 +199,12 @@ export class ConversationsApi 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: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -37,8 +37,12 @@ export class CreditsApi 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: `/credits/add`,
|
|
@@ -74,8 +78,12 @@ export class CreditsApi extends runtime.BaseAPI {
|
|
|
74
78
|
queryParameters['offset'] = requestParameters['offset'];
|
|
75
79
|
}
|
|
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: `/credits/balances`,
|
|
@@ -107,8 +115,12 @@ export class CreditsApi 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: `/users/{userId}/credits/balance`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -149,8 +161,12 @@ export class CreditsApi 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: `/users/{userId}/credits/transactions`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -183,8 +199,12 @@ export class CreditsApi 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: `/credits/subtract`,
|