@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
|
@@ -41,8 +41,12 @@ export class DemoContentsApi 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: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
|
|
@@ -78,8 +82,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
|
|
|
78
82
|
}
|
|
79
83
|
const queryParameters = {};
|
|
80
84
|
const headerParameters = {};
|
|
81
|
-
if (this.configuration && this.configuration.
|
|
82
|
-
|
|
85
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
86
|
+
const token = this.configuration.accessToken;
|
|
87
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
88
|
+
if (tokenString) {
|
|
89
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
90
|
+
}
|
|
83
91
|
}
|
|
84
92
|
const response = yield this.request({
|
|
85
93
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -120,8 +128,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
|
|
|
120
128
|
queryParameters['sort'] = requestParameters['sort'];
|
|
121
129
|
}
|
|
122
130
|
const headerParameters = {};
|
|
123
|
-
if (this.configuration && this.configuration.
|
|
124
|
-
|
|
131
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
132
|
+
const token = this.configuration.accessToken;
|
|
133
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
134
|
+
if (tokenString) {
|
|
135
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
136
|
+
}
|
|
125
137
|
}
|
|
126
138
|
const response = yield this.request({
|
|
127
139
|
path: `/widgets/{widgetId}/demo_contents`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))),
|
|
@@ -156,8 +168,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
|
|
|
156
168
|
}
|
|
157
169
|
const queryParameters = {};
|
|
158
170
|
const headerParameters = {};
|
|
159
|
-
if (this.configuration && this.configuration.
|
|
160
|
-
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
161
177
|
}
|
|
162
178
|
const response = yield this.request({
|
|
163
179
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -196,8 +212,12 @@ export class DemoContentsApi extends runtime.BaseAPI {
|
|
|
196
212
|
const queryParameters = {};
|
|
197
213
|
const headerParameters = {};
|
|
198
214
|
headerParameters['Content-Type'] = 'application/json';
|
|
199
|
-
if (this.configuration && this.configuration.
|
|
200
|
-
|
|
215
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
216
|
+
const token = this.configuration.accessToken;
|
|
217
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
218
|
+
if (tokenString) {
|
|
219
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
220
|
+
}
|
|
201
221
|
}
|
|
202
222
|
const response = yield this.request({
|
|
203
223
|
path: `/widgets/{widgetId}/demo_contents/{id}`.replace(`{${"widgetId"}}`, encodeURIComponent(String(requestParameters['widgetId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -37,8 +37,12 @@ export class EntitlementsApi 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: `/entitlements/check/{feature}`.replace(`{${"feature"}}`, encodeURIComponent(String(requestParameters['feature']))),
|
|
@@ -79,8 +83,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
|
|
|
79
83
|
queryParameters['source'] = requestParameters['source'];
|
|
80
84
|
}
|
|
81
85
|
const headerParameters = {};
|
|
82
|
-
if (this.configuration && this.configuration.
|
|
83
|
-
|
|
86
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
87
|
+
const token = this.configuration.accessToken;
|
|
88
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
89
|
+
if (tokenString) {
|
|
90
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
91
|
+
}
|
|
84
92
|
}
|
|
85
93
|
const response = yield this.request({
|
|
86
94
|
path: `/managed-users/{managedUserId}/entitlements`.replace(`{${"managedUserId"}}`, encodeURIComponent(String(requestParameters['managedUserId']))),
|
|
@@ -121,8 +129,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
|
|
|
121
129
|
queryParameters['source'] = requestParameters['source'];
|
|
122
130
|
}
|
|
123
131
|
const headerParameters = {};
|
|
124
|
-
if (this.configuration && this.configuration.
|
|
125
|
-
|
|
132
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
133
|
+
const token = this.configuration.accessToken;
|
|
134
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
135
|
+
if (tokenString) {
|
|
136
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
137
|
+
}
|
|
126
138
|
}
|
|
127
139
|
const response = yield this.request({
|
|
128
140
|
path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -160,8 +172,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
|
|
|
160
172
|
queryParameters['source'] = requestParameters['source'];
|
|
161
173
|
}
|
|
162
174
|
const headerParameters = {};
|
|
163
|
-
if (this.configuration && this.configuration.
|
|
164
|
-
|
|
175
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
176
|
+
const token = this.configuration.accessToken;
|
|
177
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
178
|
+
if (tokenString) {
|
|
179
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
180
|
+
}
|
|
165
181
|
}
|
|
166
182
|
const response = yield this.request({
|
|
167
183
|
path: `/entitlements`,
|
|
@@ -197,8 +213,12 @@ export class EntitlementsApi extends runtime.BaseAPI {
|
|
|
197
213
|
const queryParameters = {};
|
|
198
214
|
const headerParameters = {};
|
|
199
215
|
headerParameters['Content-Type'] = 'application/json';
|
|
200
|
-
if (this.configuration && this.configuration.
|
|
201
|
-
|
|
216
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
217
|
+
const token = this.configuration.accessToken;
|
|
218
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
219
|
+
if (tokenString) {
|
|
220
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
221
|
+
}
|
|
202
222
|
}
|
|
203
223
|
const response = yield this.request({
|
|
204
224
|
path: `/partners/{partnerId}/entitlements`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -38,8 +38,12 @@ export class FoldersApi 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: `/folders`,
|
|
@@ -72,8 +76,12 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
72
76
|
}
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
75
|
-
if (this.configuration && this.configuration.
|
|
76
|
-
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
77
85
|
}
|
|
78
86
|
const response = yield this.request({
|
|
79
87
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -107,8 +115,12 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
107
115
|
queryParameters['size'] = requestParameters['size'];
|
|
108
116
|
}
|
|
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: `/folders`,
|
|
@@ -140,8 +152,12 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
140
152
|
}
|
|
141
153
|
const queryParameters = {};
|
|
142
154
|
const headerParameters = {};
|
|
143
|
-
if (this.configuration && this.configuration.
|
|
144
|
-
|
|
155
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
+
const token = this.configuration.accessToken;
|
|
157
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
+
}
|
|
145
161
|
}
|
|
146
162
|
const response = yield this.request({
|
|
147
163
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -177,8 +193,12 @@ export class FoldersApi extends runtime.BaseAPI {
|
|
|
177
193
|
const queryParameters = {};
|
|
178
194
|
const headerParameters = {};
|
|
179
195
|
headerParameters['Content-Type'] = 'application/json';
|
|
180
|
-
if (this.configuration && this.configuration.
|
|
181
|
-
|
|
196
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
197
|
+
const token = this.configuration.accessToken;
|
|
198
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
199
|
+
if (tokenString) {
|
|
200
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
201
|
+
}
|
|
182
202
|
}
|
|
183
203
|
const response = yield this.request({
|
|
184
204
|
path: `/folders/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -43,8 +43,12 @@ export class HealthApi extends runtime.BaseAPI {
|
|
|
43
43
|
queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
|
|
44
44
|
}
|
|
45
45
|
const headerParameters = {};
|
|
46
|
-
if (this.configuration && this.configuration.
|
|
47
|
-
|
|
46
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
47
|
+
const token = this.configuration.accessToken;
|
|
48
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
49
|
+
if (tokenString) {
|
|
50
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
51
|
+
}
|
|
48
52
|
}
|
|
49
53
|
const response = yield this.request({
|
|
50
54
|
path: `/health/admin`,
|
|
@@ -73,8 +77,12 @@ export class HealthApi extends runtime.BaseAPI {
|
|
|
73
77
|
return __awaiter(this, void 0, void 0, function* () {
|
|
74
78
|
const queryParameters = {};
|
|
75
79
|
const headerParameters = {};
|
|
76
|
-
if (this.configuration && this.configuration.
|
|
77
|
-
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
78
86
|
}
|
|
79
87
|
const response = yield this.request({
|
|
80
88
|
path: `/health`,
|
|
@@ -38,8 +38,12 @@ export class IntegrationsApi 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: `/integrations/connect`,
|
|
@@ -73,8 +77,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
75
79
|
headerParameters['Content-Type'] = 'application/json';
|
|
76
|
-
if (this.configuration && this.configuration.
|
|
77
|
-
|
|
80
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
81
|
+
const token = this.configuration.accessToken;
|
|
82
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
83
|
+
if (tokenString) {
|
|
84
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
85
|
+
}
|
|
78
86
|
}
|
|
79
87
|
const response = yield this.request({
|
|
80
88
|
path: `/integrations`,
|
|
@@ -107,8 +115,12 @@ export class IntegrationsApi 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: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -140,8 +152,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
140
152
|
const queryParameters = {};
|
|
141
153
|
const headerParameters = {};
|
|
142
154
|
headerParameters['Content-Type'] = 'application/json';
|
|
143
|
-
if (this.configuration && this.configuration.
|
|
144
|
-
|
|
155
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
156
|
+
const token = this.configuration.accessToken;
|
|
157
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
158
|
+
if (tokenString) {
|
|
159
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
160
|
+
}
|
|
145
161
|
}
|
|
146
162
|
const response = yield this.request({
|
|
147
163
|
path: `/integrations/disconnect`,
|
|
@@ -179,8 +195,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
179
195
|
queryParameters['type'] = requestParameters['type'];
|
|
180
196
|
}
|
|
181
197
|
const headerParameters = {};
|
|
182
|
-
if (this.configuration && this.configuration.
|
|
183
|
-
|
|
198
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
199
|
+
const token = this.configuration.accessToken;
|
|
200
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
201
|
+
if (tokenString) {
|
|
202
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
203
|
+
}
|
|
184
204
|
}
|
|
185
205
|
const response = yield this.request({
|
|
186
206
|
path: `/integrations`,
|
|
@@ -212,8 +232,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
212
232
|
}
|
|
213
233
|
const queryParameters = {};
|
|
214
234
|
const headerParameters = {};
|
|
215
|
-
if (this.configuration && this.configuration.
|
|
216
|
-
|
|
235
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
236
|
+
const token = this.configuration.accessToken;
|
|
237
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
238
|
+
if (tokenString) {
|
|
239
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
240
|
+
}
|
|
217
241
|
}
|
|
218
242
|
const response = yield this.request({
|
|
219
243
|
path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -249,8 +273,12 @@ export class IntegrationsApi extends runtime.BaseAPI {
|
|
|
249
273
|
const queryParameters = {};
|
|
250
274
|
const headerParameters = {};
|
|
251
275
|
headerParameters['Content-Type'] = 'application/json';
|
|
252
|
-
if (this.configuration && this.configuration.
|
|
253
|
-
|
|
276
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
277
|
+
const token = this.configuration.accessToken;
|
|
278
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
279
|
+
if (tokenString) {
|
|
280
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
281
|
+
}
|
|
254
282
|
}
|
|
255
283
|
const response = yield this.request({
|
|
256
284
|
path: `/integrations/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -37,8 +37,12 @@ export class InvitationsApi 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: `/invitations/accept/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
@@ -70,8 +74,12 @@ export class InvitationsApi 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: `/invitations/verify/{orgId}`.replace(`{${"orgId"}}`, encodeURIComponent(String(requestParameters['orgId']))),
|
|
@@ -37,8 +37,12 @@ export class InvoicesApi 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: `/invoices`,
|
|
@@ -83,8 +87,12 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
83
87
|
queryParameters['offset'] = requestParameters['offset'];
|
|
84
88
|
}
|
|
85
89
|
const headerParameters = {};
|
|
86
|
-
if (this.configuration && this.configuration.
|
|
87
|
-
|
|
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
|
+
}
|
|
88
96
|
}
|
|
89
97
|
const response = yield this.request({
|
|
90
98
|
path: `/invoices`,
|
|
@@ -116,8 +124,12 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
116
124
|
}
|
|
117
125
|
const queryParameters = {};
|
|
118
126
|
const headerParameters = {};
|
|
119
|
-
if (this.configuration && this.configuration.
|
|
120
|
-
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
130
|
+
if (tokenString) {
|
|
131
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
|
+
}
|
|
121
133
|
}
|
|
122
134
|
const response = yield this.request({
|
|
123
135
|
path: `/invoices/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -158,8 +170,12 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
158
170
|
queryParameters['offset'] = requestParameters['offset'];
|
|
159
171
|
}
|
|
160
172
|
const headerParameters = {};
|
|
161
|
-
if (this.configuration && this.configuration.
|
|
162
|
-
|
|
173
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
174
|
+
const token = this.configuration.accessToken;
|
|
175
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
176
|
+
if (tokenString) {
|
|
177
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
178
|
+
}
|
|
163
179
|
}
|
|
164
180
|
const response = yield this.request({
|
|
165
181
|
path: `/partners/{partnerId}/invoices`.replace(`{${"partnerId"}}`, encodeURIComponent(String(requestParameters['partnerId']))),
|
|
@@ -200,8 +216,12 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
200
216
|
queryParameters['offset'] = requestParameters['offset'];
|
|
201
217
|
}
|
|
202
218
|
const headerParameters = {};
|
|
203
|
-
if (this.configuration && this.configuration.
|
|
204
|
-
|
|
219
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
220
|
+
const token = this.configuration.accessToken;
|
|
221
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
222
|
+
if (tokenString) {
|
|
223
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
224
|
+
}
|
|
205
225
|
}
|
|
206
226
|
const response = yield this.request({
|
|
207
227
|
path: `/users/{userId}/invoices`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))),
|
|
@@ -237,8 +257,12 @@ export class InvoicesApi extends runtime.BaseAPI {
|
|
|
237
257
|
const queryParameters = {};
|
|
238
258
|
const headerParameters = {};
|
|
239
259
|
headerParameters['Content-Type'] = 'application/json';
|
|
240
|
-
if (this.configuration && this.configuration.
|
|
241
|
-
|
|
260
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
261
|
+
const token = this.configuration.accessToken;
|
|
262
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
263
|
+
if (tokenString) {
|
|
264
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
265
|
+
}
|
|
242
266
|
}
|
|
243
267
|
const response = yield this.request({
|
|
244
268
|
path: `/invoices/{id}/status`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -38,8 +38,12 @@ export class ManagedUsersApi 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: `/managed-users`,
|
|
@@ -72,8 +76,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
72
76
|
}
|
|
73
77
|
const queryParameters = {};
|
|
74
78
|
const headerParameters = {};
|
|
75
|
-
if (this.configuration && this.configuration.
|
|
76
|
-
|
|
79
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
80
|
+
const token = this.configuration.accessToken;
|
|
81
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
82
|
+
if (tokenString) {
|
|
83
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
84
|
+
}
|
|
77
85
|
}
|
|
78
86
|
const response = yield this.request({
|
|
79
87
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -110,8 +118,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
110
118
|
queryParameters['sort'] = requestParameters['sort'];
|
|
111
119
|
}
|
|
112
120
|
const headerParameters = {};
|
|
113
|
-
if (this.configuration && this.configuration.
|
|
114
|
-
|
|
121
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
122
|
+
const token = this.configuration.accessToken;
|
|
123
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
124
|
+
if (tokenString) {
|
|
125
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
126
|
+
}
|
|
115
127
|
}
|
|
116
128
|
const response = yield this.request({
|
|
117
129
|
path: `/managed-users`,
|
|
@@ -143,8 +155,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
143
155
|
}
|
|
144
156
|
const queryParameters = {};
|
|
145
157
|
const headerParameters = {};
|
|
146
|
-
if (this.configuration && this.configuration.
|
|
147
|
-
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
148
164
|
}
|
|
149
165
|
const response = yield this.request({
|
|
150
166
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -185,8 +201,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
185
201
|
queryParameters['sort'] = requestParameters['sort'];
|
|
186
202
|
}
|
|
187
203
|
const headerParameters = {};
|
|
188
|
-
if (this.configuration && this.configuration.
|
|
189
|
-
|
|
204
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
205
|
+
const token = this.configuration.accessToken;
|
|
206
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
207
|
+
if (tokenString) {
|
|
208
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
209
|
+
}
|
|
190
210
|
}
|
|
191
211
|
const response = yield this.request({
|
|
192
212
|
path: `/users/{managerId}/managed-users`.replace(`{${"managerId"}}`, encodeURIComponent(String(requestParameters['managerId']))),
|
|
@@ -222,8 +242,12 @@ export class ManagedUsersApi extends runtime.BaseAPI {
|
|
|
222
242
|
const queryParameters = {};
|
|
223
243
|
const headerParameters = {};
|
|
224
244
|
headerParameters['Content-Type'] = 'application/json';
|
|
225
|
-
if (this.configuration && this.configuration.
|
|
226
|
-
|
|
245
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
246
|
+
const token = this.configuration.accessToken;
|
|
247
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
248
|
+
if (tokenString) {
|
|
249
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
250
|
+
}
|
|
227
251
|
}
|
|
228
252
|
const response = yield this.request({
|
|
229
253
|
path: `/managed-users/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|