@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
|
@@ -87,8 +87,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
87
87
|
const queryParameters = {};
|
|
88
88
|
const headerParameters = {};
|
|
89
89
|
headerParameters['Content-Type'] = 'application/json';
|
|
90
|
-
if (this.configuration && this.configuration.
|
|
91
|
-
|
|
90
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
91
|
+
const token = this.configuration.accessToken;
|
|
92
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
93
|
+
if (tokenString) {
|
|
94
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
95
|
+
}
|
|
92
96
|
}
|
|
93
97
|
const response = yield this.request({
|
|
94
98
|
path: `/canvases/{canvasId}/components`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))),
|
|
@@ -124,8 +128,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
124
128
|
}
|
|
125
129
|
const queryParameters = {};
|
|
126
130
|
const headerParameters = {};
|
|
127
|
-
if (this.configuration && this.configuration.
|
|
128
|
-
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
134
|
+
if (tokenString) {
|
|
135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
|
+
}
|
|
129
137
|
}
|
|
130
138
|
const response = yield this.request({
|
|
131
139
|
path: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -159,8 +167,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
159
167
|
}
|
|
160
168
|
const queryParameters = {};
|
|
161
169
|
const headerParameters = {};
|
|
162
|
-
if (this.configuration && this.configuration.
|
|
163
|
-
|
|
170
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
171
|
+
const token = this.configuration.accessToken;
|
|
172
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
173
|
+
if (tokenString) {
|
|
174
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
175
|
+
}
|
|
164
176
|
}
|
|
165
177
|
const response = yield this.request({
|
|
166
178
|
path: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -191,8 +203,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
191
203
|
}
|
|
192
204
|
const queryParameters = {};
|
|
193
205
|
const headerParameters = {};
|
|
194
|
-
if (this.configuration && this.configuration.
|
|
195
|
-
|
|
206
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
207
|
+
const token = this.configuration.accessToken;
|
|
208
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
209
|
+
if (tokenString) {
|
|
210
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
211
|
+
}
|
|
196
212
|
}
|
|
197
213
|
const response = yield this.request({
|
|
198
214
|
path: `/component/{componentId}`.replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -233,8 +249,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
233
249
|
queryParameters['sort'] = requestParameters['sort'];
|
|
234
250
|
}
|
|
235
251
|
const headerParameters = {};
|
|
236
|
-
if (this.configuration && this.configuration.
|
|
237
|
-
|
|
252
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
253
|
+
const token = this.configuration.accessToken;
|
|
254
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
255
|
+
if (tokenString) {
|
|
256
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
257
|
+
}
|
|
238
258
|
}
|
|
239
259
|
const response = yield this.request({
|
|
240
260
|
path: `/canvases/{canvasId}/components`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))),
|
|
@@ -274,8 +294,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
274
294
|
queryParameters['sort'] = requestParameters['sort'];
|
|
275
295
|
}
|
|
276
296
|
const headerParameters = {};
|
|
277
|
-
if (this.configuration && this.configuration.
|
|
278
|
-
|
|
297
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
298
|
+
const token = this.configuration.accessToken;
|
|
299
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
300
|
+
if (tokenString) {
|
|
301
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
302
|
+
}
|
|
279
303
|
}
|
|
280
304
|
const response = yield this.request({
|
|
281
305
|
path: `/widgets/{widgetId}/components`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
|
|
@@ -325,7 +349,7 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
325
349
|
query: queryParameters,
|
|
326
350
|
body: (0, index_1.RollbackComponentRequestToJSON)(requestParameters['rollbackComponentRequest']),
|
|
327
351
|
}, initOverrides);
|
|
328
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
352
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UsersSendFeedbackPost200ResponseFromJSON)(jsonValue));
|
|
329
353
|
});
|
|
330
354
|
}
|
|
331
355
|
/**
|
|
@@ -356,8 +380,12 @@ class ComponentsApi extends runtime.BaseAPI {
|
|
|
356
380
|
const queryParameters = {};
|
|
357
381
|
const headerParameters = {};
|
|
358
382
|
headerParameters['Content-Type'] = 'application/json';
|
|
359
|
-
if (this.configuration && this.configuration.
|
|
360
|
-
|
|
383
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
384
|
+
const token = this.configuration.accessToken;
|
|
385
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
386
|
+
if (tokenString) {
|
|
387
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
388
|
+
}
|
|
361
389
|
}
|
|
362
390
|
const response = yield this.request({
|
|
363
391
|
path: `/canvases/{canvasId}/components/{componentId}`.replace(`{${"canvasId"}}`, encodeURIComponent(String(requestParameters['canvasId']))).replace(`{${"componentId"}}`, encodeURIComponent(String(requestParameters['componentId']))),
|
|
@@ -40,8 +40,12 @@ class CompositionsApi 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: `/compositions/{id}/access`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -74,8 +78,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
74
78
|
const queryParameters = {};
|
|
75
79
|
const headerParameters = {};
|
|
76
80
|
headerParameters['Content-Type'] = 'application/json';
|
|
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: `/compositions`,
|
|
@@ -115,8 +123,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
115
123
|
const queryParameters = {};
|
|
116
124
|
const headerParameters = {};
|
|
117
125
|
headerParameters['Content-Type'] = 'application/json';
|
|
118
|
-
if (this.configuration && this.configuration.
|
|
119
|
-
|
|
126
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
127
|
+
const token = this.configuration.accessToken;
|
|
128
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
129
|
+
if (tokenString) {
|
|
130
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
131
|
+
}
|
|
120
132
|
}
|
|
121
133
|
const response = yield this.request({
|
|
122
134
|
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
@@ -148,8 +160,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
148
160
|
}
|
|
149
161
|
const queryParameters = {};
|
|
150
162
|
const headerParameters = {};
|
|
151
|
-
if (this.configuration && this.configuration.
|
|
152
|
-
|
|
163
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
164
|
+
const token = this.configuration.accessToken;
|
|
165
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
166
|
+
if (tokenString) {
|
|
167
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
168
|
+
}
|
|
153
169
|
}
|
|
154
170
|
const response = yield this.request({
|
|
155
171
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -186,8 +202,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
186
202
|
}
|
|
187
203
|
const queryParameters = {};
|
|
188
204
|
const headerParameters = {};
|
|
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: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -219,8 +239,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
219
239
|
const queryParameters = {};
|
|
220
240
|
const headerParameters = {};
|
|
221
241
|
headerParameters['Content-Type'] = 'application/json';
|
|
222
|
-
if (this.configuration && this.configuration.
|
|
223
|
-
|
|
242
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
243
|
+
const token = this.configuration.accessToken;
|
|
244
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
245
|
+
if (tokenString) {
|
|
246
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
247
|
+
}
|
|
224
248
|
}
|
|
225
249
|
const response = yield this.request({
|
|
226
250
|
path: `/compositions/{id}/duplicate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -274,8 +298,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
274
298
|
queryParameters['include'] = requestParameters['include'];
|
|
275
299
|
}
|
|
276
300
|
const headerParameters = {};
|
|
277
|
-
if (this.configuration && this.configuration.
|
|
278
|
-
|
|
301
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
302
|
+
const token = this.configuration.accessToken;
|
|
303
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
304
|
+
if (tokenString) {
|
|
305
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
306
|
+
}
|
|
279
307
|
}
|
|
280
308
|
const response = yield this.request({
|
|
281
309
|
path: `/compositions`,
|
|
@@ -307,8 +335,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
307
335
|
}
|
|
308
336
|
const queryParameters = {};
|
|
309
337
|
const headerParameters = {};
|
|
310
|
-
if (this.configuration && this.configuration.
|
|
311
|
-
|
|
338
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
339
|
+
const token = this.configuration.accessToken;
|
|
340
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
341
|
+
if (tokenString) {
|
|
342
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
343
|
+
}
|
|
312
344
|
}
|
|
313
345
|
const response = yield this.request({
|
|
314
346
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -340,8 +372,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
340
372
|
}
|
|
341
373
|
const queryParameters = {};
|
|
342
374
|
const headerParameters = {};
|
|
343
|
-
if (this.configuration && this.configuration.
|
|
344
|
-
|
|
375
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
376
|
+
const token = this.configuration.accessToken;
|
|
377
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
378
|
+
if (tokenString) {
|
|
379
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
380
|
+
}
|
|
345
381
|
}
|
|
346
382
|
const response = yield this.request({
|
|
347
383
|
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -373,8 +409,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
373
409
|
}
|
|
374
410
|
const queryParameters = {};
|
|
375
411
|
const headerParameters = {};
|
|
376
|
-
if (this.configuration && this.configuration.
|
|
377
|
-
|
|
412
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
413
|
+
const token = this.configuration.accessToken;
|
|
414
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
415
|
+
if (tokenString) {
|
|
416
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
417
|
+
}
|
|
378
418
|
}
|
|
379
419
|
const response = yield this.request({
|
|
380
420
|
path: `/compositions/{id}/schema/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -412,8 +452,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
412
452
|
}
|
|
413
453
|
const queryParameters = {};
|
|
414
454
|
const headerParameters = {};
|
|
415
|
-
if (this.configuration && this.configuration.
|
|
416
|
-
|
|
455
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
456
|
+
const token = this.configuration.accessToken;
|
|
457
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
458
|
+
if (tokenString) {
|
|
459
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
460
|
+
}
|
|
417
461
|
}
|
|
418
462
|
const response = yield this.request({
|
|
419
463
|
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -447,8 +491,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
447
491
|
}
|
|
448
492
|
const queryParameters = {};
|
|
449
493
|
const headerParameters = {};
|
|
450
|
-
if (this.configuration && this.configuration.
|
|
451
|
-
|
|
494
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
495
|
+
const token = this.configuration.accessToken;
|
|
496
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
497
|
+
if (tokenString) {
|
|
498
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
499
|
+
}
|
|
452
500
|
}
|
|
453
501
|
const response = yield this.request({
|
|
454
502
|
path: `/compositions/{id}/database/{table}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))),
|
|
@@ -479,8 +527,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
479
527
|
}
|
|
480
528
|
const queryParameters = {};
|
|
481
529
|
const headerParameters = {};
|
|
482
|
-
if (this.configuration && this.configuration.
|
|
483
|
-
|
|
530
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
531
|
+
const token = this.configuration.accessToken;
|
|
532
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
533
|
+
if (tokenString) {
|
|
534
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
535
|
+
}
|
|
484
536
|
}
|
|
485
537
|
const response = yield this.request({
|
|
486
538
|
path: `/compositions/{id}/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -512,8 +564,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
512
564
|
}
|
|
513
565
|
const queryParameters = {};
|
|
514
566
|
const headerParameters = {};
|
|
515
|
-
if (this.configuration && this.configuration.
|
|
516
|
-
|
|
567
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
568
|
+
const token = this.configuration.accessToken;
|
|
569
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
570
|
+
if (tokenString) {
|
|
571
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
572
|
+
}
|
|
517
573
|
}
|
|
518
574
|
const response = yield this.request({
|
|
519
575
|
path: `/compositions/{id}/schema/design`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -545,8 +601,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
545
601
|
}
|
|
546
602
|
const queryParameters = {};
|
|
547
603
|
const headerParameters = {};
|
|
548
|
-
if (this.configuration && this.configuration.
|
|
549
|
-
|
|
604
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
605
|
+
const token = this.configuration.accessToken;
|
|
606
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
607
|
+
if (tokenString) {
|
|
608
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
609
|
+
}
|
|
550
610
|
}
|
|
551
611
|
const response = yield this.request({
|
|
552
612
|
path: `/compositions/{id}/embed-settings`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -578,8 +638,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
578
638
|
}
|
|
579
639
|
const queryParameters = {};
|
|
580
640
|
const headerParameters = {};
|
|
581
|
-
if (this.configuration && this.configuration.
|
|
582
|
-
|
|
641
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
642
|
+
const token = this.configuration.accessToken;
|
|
643
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
644
|
+
if (tokenString) {
|
|
645
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
646
|
+
}
|
|
583
647
|
}
|
|
584
648
|
const response = yield this.request({
|
|
585
649
|
path: `/compositions/{id}/versions`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -612,8 +676,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
612
676
|
const queryParameters = {};
|
|
613
677
|
const headerParameters = {};
|
|
614
678
|
headerParameters['Content-Type'] = 'application/json';
|
|
615
|
-
if (this.configuration && this.configuration.
|
|
616
|
-
|
|
679
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
680
|
+
const token = this.configuration.accessToken;
|
|
681
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
682
|
+
if (tokenString) {
|
|
683
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
684
|
+
}
|
|
617
685
|
}
|
|
618
686
|
const response = yield this.request({
|
|
619
687
|
path: `/compositions/batch`,
|
|
@@ -650,8 +718,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
650
718
|
const queryParameters = {};
|
|
651
719
|
const headerParameters = {};
|
|
652
720
|
headerParameters['Content-Type'] = 'application/json';
|
|
653
|
-
if (this.configuration && this.configuration.
|
|
654
|
-
|
|
721
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
722
|
+
const token = this.configuration.accessToken;
|
|
723
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
724
|
+
if (tokenString) {
|
|
725
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
726
|
+
}
|
|
655
727
|
}
|
|
656
728
|
const response = yield this.request({
|
|
657
729
|
path: `/compositions/{id}/content`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -688,8 +760,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
688
760
|
const queryParameters = {};
|
|
689
761
|
const headerParameters = {};
|
|
690
762
|
headerParameters['Content-Type'] = 'application/json';
|
|
691
|
-
if (this.configuration && this.configuration.
|
|
692
|
-
|
|
763
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
764
|
+
const token = this.configuration.accessToken;
|
|
765
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
766
|
+
if (tokenString) {
|
|
767
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
768
|
+
}
|
|
693
769
|
}
|
|
694
770
|
const response = yield this.request({
|
|
695
771
|
path: `/compositions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -732,8 +808,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
732
808
|
const queryParameters = {};
|
|
733
809
|
const headerParameters = {};
|
|
734
810
|
headerParameters['Content-Type'] = 'application/json';
|
|
735
|
-
if (this.configuration && this.configuration.
|
|
736
|
-
|
|
811
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
812
|
+
const token = this.configuration.accessToken;
|
|
813
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
814
|
+
if (tokenString) {
|
|
815
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
816
|
+
}
|
|
737
817
|
}
|
|
738
818
|
const response = yield this.request({
|
|
739
819
|
path: `/compositions/{id}/database/{table}/{recordId}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"table"}}`, encodeURIComponent(String(requestParameters['table']))).replace(`{${"recordId"}}`, encodeURIComponent(String(requestParameters['recordId']))),
|
|
@@ -769,8 +849,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
769
849
|
const queryParameters = {};
|
|
770
850
|
const headerParameters = {};
|
|
771
851
|
headerParameters['Content-Type'] = 'application/json';
|
|
772
|
-
if (this.configuration && this.configuration.
|
|
773
|
-
|
|
852
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
853
|
+
const token = this.configuration.accessToken;
|
|
854
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
855
|
+
if (tokenString) {
|
|
856
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
857
|
+
}
|
|
774
858
|
}
|
|
775
859
|
const response = yield this.request({
|
|
776
860
|
path: `/compositions/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -807,8 +891,12 @@ class CompositionsApi extends runtime.BaseAPI {
|
|
|
807
891
|
const queryParameters = {};
|
|
808
892
|
const headerParameters = {};
|
|
809
893
|
headerParameters['Content-Type'] = 'application/json';
|
|
810
|
-
if (this.configuration && this.configuration.
|
|
811
|
-
|
|
894
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
895
|
+
const token = this.configuration.accessToken;
|
|
896
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
897
|
+
if (tokenString) {
|
|
898
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
899
|
+
}
|
|
812
900
|
}
|
|
813
901
|
const response = yield this.request({
|
|
814
902
|
path: `/compositions/{id}/content/validate`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
package/dist/apis/ContentsApi.js
CHANGED
|
@@ -39,8 +39,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
39
39
|
const queryParameters = {};
|
|
40
40
|
const headerParameters = {};
|
|
41
41
|
headerParameters['Content-Type'] = 'application/json';
|
|
42
|
-
if (this.configuration && this.configuration.
|
|
43
|
-
|
|
42
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
43
|
+
const token = this.configuration.accessToken;
|
|
44
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
45
|
+
if (tokenString) {
|
|
46
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
47
|
+
}
|
|
44
48
|
}
|
|
45
49
|
const response = yield this.request({
|
|
46
50
|
path: `/contents`,
|
|
@@ -70,8 +74,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
70
74
|
}
|
|
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: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -100,8 +108,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
100
108
|
}
|
|
101
109
|
const queryParameters = {};
|
|
102
110
|
const headerParameters = {};
|
|
103
|
-
if (this.configuration && this.configuration.
|
|
104
|
-
|
|
111
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
112
|
+
const token = this.configuration.accessToken;
|
|
113
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
114
|
+
if (tokenString) {
|
|
115
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
116
|
+
}
|
|
105
117
|
}
|
|
106
118
|
const response = yield this.request({
|
|
107
119
|
path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -136,8 +148,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
136
148
|
queryParameters['sort'] = requestParameters['sort'];
|
|
137
149
|
}
|
|
138
150
|
const headerParameters = {};
|
|
139
|
-
if (this.configuration && this.configuration.
|
|
140
|
-
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
141
157
|
}
|
|
142
158
|
const response = yield this.request({
|
|
143
159
|
path: `/contents`,
|
|
@@ -170,8 +186,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
170
186
|
const queryParameters = {};
|
|
171
187
|
const headerParameters = {};
|
|
172
188
|
headerParameters['Content-Type'] = 'application/json';
|
|
173
|
-
if (this.configuration && this.configuration.
|
|
174
|
-
|
|
189
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
190
|
+
const token = this.configuration.accessToken;
|
|
191
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
192
|
+
if (tokenString) {
|
|
193
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
194
|
+
}
|
|
175
195
|
}
|
|
176
196
|
const response = yield this.request({
|
|
177
197
|
path: `/contents/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -201,8 +221,12 @@ class ContentsApi extends runtime.BaseAPI {
|
|
|
201
221
|
}
|
|
202
222
|
const queryParameters = {};
|
|
203
223
|
const headerParameters = {};
|
|
204
|
-
if (this.configuration && this.configuration.
|
|
205
|
-
|
|
224
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
225
|
+
const token = this.configuration.accessToken;
|
|
226
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
227
|
+
if (tokenString) {
|
|
228
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
229
|
+
}
|
|
206
230
|
}
|
|
207
231
|
const consumes = [
|
|
208
232
|
{ contentType: 'multipart/form-data' },
|
|
@@ -41,8 +41,12 @@ class ConversationsApi 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: `/conversations`,
|
|
@@ -74,8 +78,12 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
74
78
|
}
|
|
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: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -106,8 +114,12 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
106
114
|
}
|
|
107
115
|
const queryParameters = {};
|
|
108
116
|
const headerParameters = {};
|
|
109
|
-
if (this.configuration && this.configuration.
|
|
110
|
-
|
|
117
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
118
|
+
const token = this.configuration.accessToken;
|
|
119
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
120
|
+
if (tokenString) {
|
|
121
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
122
|
+
}
|
|
111
123
|
}
|
|
112
124
|
const response = yield this.request({
|
|
113
125
|
path: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|
|
@@ -150,8 +162,12 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
150
162
|
queryParameters['sort'] = requestParameters['sort'];
|
|
151
163
|
}
|
|
152
164
|
const headerParameters = {};
|
|
153
|
-
if (this.configuration && this.configuration.
|
|
154
|
-
|
|
165
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
166
|
+
const token = this.configuration.accessToken;
|
|
167
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
168
|
+
if (tokenString) {
|
|
169
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
170
|
+
}
|
|
155
171
|
}
|
|
156
172
|
const response = yield this.request({
|
|
157
173
|
path: `/conversations`,
|
|
@@ -186,8 +202,12 @@ class ConversationsApi 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: `/conversations/{conversationId}`.replace(`{${"conversationId"}}`, encodeURIComponent(String(requestParameters['conversationId']))),
|