@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
|
@@ -78,8 +78,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
78
78
|
}
|
|
79
79
|
const queryParameters = {};
|
|
80
80
|
const headerParameters = {};
|
|
81
|
-
if (this.configuration && this.configuration.
|
|
82
|
-
|
|
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
|
+
}
|
|
83
87
|
}
|
|
84
88
|
const response = yield this.request({
|
|
85
89
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/auto-stop-check`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -147,8 +151,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
147
151
|
const queryParameters = {};
|
|
148
152
|
const headerParameters = {};
|
|
149
153
|
headerParameters['Content-Type'] = 'application/json';
|
|
150
|
-
if (this.configuration && this.configuration.
|
|
151
|
-
|
|
154
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
155
|
+
const token = this.configuration.accessToken;
|
|
156
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
157
|
+
if (tokenString) {
|
|
158
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
159
|
+
}
|
|
152
160
|
}
|
|
153
161
|
const response = yield this.request({
|
|
154
162
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -184,8 +192,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
184
192
|
}
|
|
185
193
|
const queryParameters = {};
|
|
186
194
|
const headerParameters = {};
|
|
187
|
-
if (this.configuration && this.configuration.
|
|
188
|
-
|
|
195
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
196
|
+
const token = this.configuration.accessToken;
|
|
197
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
198
|
+
if (tokenString) {
|
|
199
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
200
|
+
}
|
|
189
201
|
}
|
|
190
202
|
const response = yield this.request({
|
|
191
203
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -244,8 +256,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
244
256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
245
257
|
const queryParameters = {};
|
|
246
258
|
const headerParameters = {};
|
|
247
|
-
if (this.configuration && this.configuration.
|
|
248
|
-
|
|
259
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
260
|
+
const token = this.configuration.accessToken;
|
|
261
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
262
|
+
if (tokenString) {
|
|
263
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
264
|
+
}
|
|
249
265
|
}
|
|
250
266
|
const response = yield this.request({
|
|
251
267
|
path: `/metrics/available`,
|
|
@@ -274,8 +290,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
274
290
|
return __awaiter(this, void 0, void 0, function* () {
|
|
275
291
|
const queryParameters = {};
|
|
276
292
|
const headerParameters = {};
|
|
277
|
-
if (this.configuration && this.configuration.
|
|
278
|
-
|
|
293
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
294
|
+
const token = this.configuration.accessToken;
|
|
295
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
296
|
+
if (tokenString) {
|
|
297
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
298
|
+
}
|
|
279
299
|
}
|
|
280
300
|
const response = yield this.request({
|
|
281
301
|
path: `/ab-tests/metrics/available`,
|
|
@@ -340,8 +360,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
340
360
|
}
|
|
341
361
|
const queryParameters = {};
|
|
342
362
|
const headerParameters = {};
|
|
343
|
-
if (this.configuration && this.configuration.
|
|
344
|
-
|
|
363
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
364
|
+
const token = this.configuration.accessToken;
|
|
365
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
366
|
+
if (tokenString) {
|
|
367
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
368
|
+
}
|
|
345
369
|
}
|
|
346
370
|
const response = yield this.request({
|
|
347
371
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -376,8 +400,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
376
400
|
queryParameters['status'] = requestParameters['status'];
|
|
377
401
|
}
|
|
378
402
|
const headerParameters = {};
|
|
379
|
-
if (this.configuration && this.configuration.
|
|
380
|
-
|
|
403
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
404
|
+
const token = this.configuration.accessToken;
|
|
405
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
406
|
+
if (tokenString) {
|
|
407
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
408
|
+
}
|
|
381
409
|
}
|
|
382
410
|
const response = yield this.request({
|
|
383
411
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -412,8 +440,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
412
440
|
}
|
|
413
441
|
const queryParameters = {};
|
|
414
442
|
const headerParameters = {};
|
|
415
|
-
if (this.configuration && this.configuration.
|
|
416
|
-
|
|
443
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
444
|
+
const token = this.configuration.accessToken;
|
|
445
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
446
|
+
if (tokenString) {
|
|
447
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
448
|
+
}
|
|
417
449
|
}
|
|
418
450
|
const response = yield this.request({
|
|
419
451
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/pause`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -452,8 +484,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
452
484
|
const queryParameters = {};
|
|
453
485
|
const headerParameters = {};
|
|
454
486
|
headerParameters['Content-Type'] = 'application/json';
|
|
455
|
-
if (this.configuration && this.configuration.
|
|
456
|
-
|
|
487
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
488
|
+
const token = this.configuration.accessToken;
|
|
489
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
490
|
+
if (tokenString) {
|
|
491
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
492
|
+
}
|
|
457
493
|
}
|
|
458
494
|
const response = yield this.request({
|
|
459
495
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/duration`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -489,8 +525,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
489
525
|
}
|
|
490
526
|
const queryParameters = {};
|
|
491
527
|
const headerParameters = {};
|
|
492
|
-
if (this.configuration && this.configuration.
|
|
493
|
-
|
|
528
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
529
|
+
const token = this.configuration.accessToken;
|
|
530
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
531
|
+
if (tokenString) {
|
|
532
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
533
|
+
}
|
|
494
534
|
}
|
|
495
535
|
const response = yield this.request({
|
|
496
536
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -526,8 +566,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
526
566
|
const queryParameters = {};
|
|
527
567
|
const headerParameters = {};
|
|
528
568
|
headerParameters['Content-Type'] = 'application/json';
|
|
529
|
-
if (this.configuration && this.configuration.
|
|
530
|
-
|
|
569
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
570
|
+
const token = this.configuration.accessToken;
|
|
571
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
572
|
+
if (tokenString) {
|
|
573
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
574
|
+
}
|
|
531
575
|
}
|
|
532
576
|
const response = yield this.request({
|
|
533
577
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -631,8 +675,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
631
675
|
const queryParameters = {};
|
|
632
676
|
const headerParameters = {};
|
|
633
677
|
headerParameters['Content-Type'] = 'application/json';
|
|
634
|
-
if (this.configuration && this.configuration.
|
|
635
|
-
|
|
678
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
679
|
+
const token = this.configuration.accessToken;
|
|
680
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
681
|
+
if (tokenString) {
|
|
682
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
683
|
+
}
|
|
636
684
|
}
|
|
637
685
|
const response = yield this.request({
|
|
638
686
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -669,8 +717,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
669
717
|
const queryParameters = {};
|
|
670
718
|
const headerParameters = {};
|
|
671
719
|
headerParameters['Content-Type'] = 'application/json';
|
|
672
|
-
if (this.configuration && this.configuration.
|
|
673
|
-
|
|
720
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
721
|
+
const token = this.configuration.accessToken;
|
|
722
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
723
|
+
if (tokenString) {
|
|
724
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
725
|
+
}
|
|
674
726
|
}
|
|
675
727
|
const response = yield this.request({
|
|
676
728
|
path: `/workspaces/{workspaceId}/ab-tests/validate-composition-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -707,8 +759,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
707
759
|
const queryParameters = {};
|
|
708
760
|
const headerParameters = {};
|
|
709
761
|
headerParameters['Content-Type'] = 'application/json';
|
|
710
|
-
if (this.configuration && this.configuration.
|
|
711
|
-
|
|
762
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
763
|
+
const token = this.configuration.accessToken;
|
|
764
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
765
|
+
if (tokenString) {
|
|
766
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
767
|
+
}
|
|
712
768
|
}
|
|
713
769
|
const response = yield this.request({
|
|
714
770
|
path: `/workspaces/{workspaceId}/ab-tests/validate-goal-tracking`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -745,8 +801,12 @@ class ABTestingApi extends runtime.BaseAPI {
|
|
|
745
801
|
const queryParameters = {};
|
|
746
802
|
const headerParameters = {};
|
|
747
803
|
headerParameters['Content-Type'] = 'application/json';
|
|
748
|
-
if (this.configuration && this.configuration.
|
|
749
|
-
|
|
804
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
805
|
+
const token = this.configuration.accessToken;
|
|
806
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
807
|
+
if (tokenString) {
|
|
808
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
809
|
+
}
|
|
750
810
|
}
|
|
751
811
|
const response = yield this.request({
|
|
752
812
|
path: `/workspaces/{workspaceId}/ab-tests/validate-widget-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
package/dist/apis/AdminApi.js
CHANGED
|
@@ -46,8 +46,12 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
46
46
|
queryParameters['includeDbRecord'] = requestParameters['includeDbRecord'];
|
|
47
47
|
}
|
|
48
48
|
const headerParameters = {};
|
|
49
|
-
if (this.configuration && this.configuration.
|
|
50
|
-
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
51
55
|
}
|
|
52
56
|
const response = yield this.request({
|
|
53
57
|
path: `/health/admin`,
|
|
@@ -77,8 +81,12 @@ class AdminApi extends runtime.BaseAPI {
|
|
|
77
81
|
const queryParameters = {};
|
|
78
82
|
const headerParameters = {};
|
|
79
83
|
headerParameters['Content-Type'] = 'application/json';
|
|
80
|
-
if (this.configuration && this.configuration.
|
|
81
|
-
|
|
84
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
85
|
+
const token = this.configuration.accessToken;
|
|
86
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
87
|
+
if (tokenString) {
|
|
88
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
89
|
+
}
|
|
82
90
|
}
|
|
83
91
|
const response = yield this.request({
|
|
84
92
|
path: `/organizations/admin/cleanup-orphaned-invitations`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CompleteSignupRequest,
|
|
13
|
+
import type { CompleteSignupRequest, LoginUserRequest, OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response, ResetPasswordRequest, SignupUserRequest, SignupWithInvitationRequest, UpdateEmailRequest, UpdateNameRequest, UpdatePasswordRequest, UpdateUserMetadataRequest } from '../models/index';
|
|
14
14
|
export interface CompleteSignupOperationRequest {
|
|
15
15
|
completeSignupRequest: CompleteSignupRequest;
|
|
16
16
|
}
|
|
@@ -105,11 +105,11 @@ export declare class AuthenticationApi extends runtime.BaseAPI {
|
|
|
105
105
|
/**
|
|
106
106
|
* Login with email and password
|
|
107
107
|
*/
|
|
108
|
-
loginUserRaw(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
108
|
+
loginUserRaw(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response>>;
|
|
109
109
|
/**
|
|
110
110
|
* Login with email and password
|
|
111
111
|
*/
|
|
112
|
-
loginUser(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
112
|
+
loginUser(requestParameters: LoginUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingYearlyPricingComparisonGet200Response>;
|
|
113
113
|
/**
|
|
114
114
|
* Logout current user
|
|
115
115
|
*/
|
|
@@ -94,8 +94,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
94
94
|
return __awaiter(this, void 0, void 0, function* () {
|
|
95
95
|
const queryParameters = {};
|
|
96
96
|
const headerParameters = {};
|
|
97
|
-
if (this.configuration && this.configuration.
|
|
98
|
-
|
|
97
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
98
|
+
const token = this.configuration.accessToken;
|
|
99
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
100
|
+
if (tokenString) {
|
|
101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
102
|
+
}
|
|
99
103
|
}
|
|
100
104
|
const response = yield this.request({
|
|
101
105
|
path: `/auth/delete-account`,
|
|
@@ -121,8 +125,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
121
125
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
126
|
const queryParameters = {};
|
|
123
127
|
const headerParameters = {};
|
|
124
|
-
if (this.configuration && this.configuration.
|
|
125
|
-
|
|
128
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
129
|
+
const token = this.configuration.accessToken;
|
|
130
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
131
|
+
if (tokenString) {
|
|
132
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
133
|
+
}
|
|
126
134
|
}
|
|
127
135
|
const response = yield this.request({
|
|
128
136
|
path: `/auth/session`,
|
|
@@ -148,8 +156,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
148
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
149
157
|
const queryParameters = {};
|
|
150
158
|
const headerParameters = {};
|
|
151
|
-
if (this.configuration && this.configuration.
|
|
152
|
-
|
|
159
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
160
|
+
const token = this.configuration.accessToken;
|
|
161
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
162
|
+
if (tokenString) {
|
|
163
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
164
|
+
}
|
|
153
165
|
}
|
|
154
166
|
const response = yield this.request({
|
|
155
167
|
path: `/auth/get-metadata`,
|
|
@@ -222,7 +234,7 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
222
234
|
query: queryParameters,
|
|
223
235
|
body: (0, index_1.LoginUserRequestToJSON)(requestParameters['loginUserRequest']),
|
|
224
236
|
}, initOverrides);
|
|
225
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON)(jsonValue));
|
|
226
238
|
});
|
|
227
239
|
}
|
|
228
240
|
/**
|
|
@@ -241,8 +253,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
241
253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
242
254
|
const queryParameters = {};
|
|
243
255
|
const headerParameters = {};
|
|
244
|
-
if (this.configuration && this.configuration.
|
|
245
|
-
|
|
256
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
257
|
+
const token = this.configuration.accessToken;
|
|
258
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
259
|
+
if (tokenString) {
|
|
260
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
261
|
+
}
|
|
246
262
|
}
|
|
247
263
|
const response = yield this.request({
|
|
248
264
|
path: `/auth/logout`,
|
|
@@ -475,8 +491,12 @@ class AuthenticationApi extends runtime.BaseAPI {
|
|
|
475
491
|
const queryParameters = {};
|
|
476
492
|
const headerParameters = {};
|
|
477
493
|
headerParameters['Content-Type'] = 'application/json';
|
|
478
|
-
if (this.configuration && this.configuration.
|
|
479
|
-
|
|
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
|
+
}
|
|
480
500
|
}
|
|
481
501
|
const response = yield this.request({
|
|
482
502
|
path: `/auth/update-metadata`,
|
package/dist/apis/BatchApi.js
CHANGED
|
@@ -41,8 +41,12 @@ class BatchApi 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: `/batch/process`,
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { ApiV1BillingPricingGet200Response, ApiV1BillingUsersUserIdInvoicesGet200Response,
|
|
13
|
+
import type { ApiV1BillingPricingGet200Response, ApiV1BillingUsersUserIdInvoicesGet200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDefaultPut200Response, ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDelete200Response, ApiV1BillingUsersUserIdSubscriptionCancelPost200Response, ApiV1BillingUsersUserIdSubscriptionCancelPostRequest, ApiV1BillingUsersUserIdSubscriptionGet200Response, ApiV1BillingUsersUserIdSubscriptionPayPost200Response, ApiV1BillingUsersUserIdSubscriptionPost200Response, ApiV1BillingUsersUserIdSubscriptionPostRequest, OrganizationsOrgIdBillingPaymentMethodsGet200Response, OrganizationsOrgIdBillingPaymentMethodsPost200Response, OrganizationsOrgIdBillingPaymentMethodsPostRequest, OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response, OrganizationsOrgIdBillingPortalPost200Response, OrganizationsOrgIdBillingPortalPostRequest } from '../models/index';
|
|
14
14
|
export interface ApiV1BillingUsersUserIdInvoicesGetRequest {
|
|
15
15
|
userId: string;
|
|
16
16
|
limit?: number;
|
|
@@ -26,16 +26,16 @@ export interface ApiV1BillingUsersUserIdPaymentMethodsPaymentMethodIdDeleteReque
|
|
|
26
26
|
userId: string;
|
|
27
27
|
paymentMethodId: string;
|
|
28
28
|
}
|
|
29
|
-
export interface
|
|
29
|
+
export interface ApiV1BillingUsersUserIdPaymentMethodsPostRequest {
|
|
30
30
|
userId: string;
|
|
31
|
-
|
|
31
|
+
organizationsOrgIdBillingPaymentMethodsPostRequest: OrganizationsOrgIdBillingPaymentMethodsPostRequest;
|
|
32
32
|
}
|
|
33
33
|
export interface ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest {
|
|
34
34
|
userId: string;
|
|
35
35
|
}
|
|
36
|
-
export interface
|
|
36
|
+
export interface ApiV1BillingUsersUserIdPortalPostRequest {
|
|
37
37
|
userId: string;
|
|
38
|
-
|
|
38
|
+
organizationsOrgIdBillingPortalPostRequest?: OrganizationsOrgIdBillingPortalPostRequest;
|
|
39
39
|
}
|
|
40
40
|
export interface ApiV1BillingUsersUserIdSubscriptionCancelPostOperationRequest {
|
|
41
41
|
userId: string;
|
|
@@ -77,11 +77,11 @@ export declare class BillingApi extends runtime.BaseAPI {
|
|
|
77
77
|
/**
|
|
78
78
|
* List saved payment methods
|
|
79
79
|
*/
|
|
80
|
-
apiV1BillingUsersUserIdPaymentMethodsGetRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
80
|
+
apiV1BillingUsersUserIdPaymentMethodsGetRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsGet200Response>>;
|
|
81
81
|
/**
|
|
82
82
|
* List saved payment methods
|
|
83
83
|
*/
|
|
84
|
-
apiV1BillingUsersUserIdPaymentMethodsGet(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
84
|
+
apiV1BillingUsersUserIdPaymentMethodsGet(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsGet200Response>;
|
|
85
85
|
/**
|
|
86
86
|
* Set the default payment method used for charges
|
|
87
87
|
*/
|
|
@@ -101,27 +101,27 @@ export declare class BillingApi extends runtime.BaseAPI {
|
|
|
101
101
|
/**
|
|
102
102
|
* Persist an attached payment method after confirmSetup
|
|
103
103
|
*/
|
|
104
|
-
apiV1BillingUsersUserIdPaymentMethodsPostRaw(requestParameters:
|
|
104
|
+
apiV1BillingUsersUserIdPaymentMethodsPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsPost200Response>>;
|
|
105
105
|
/**
|
|
106
106
|
* Persist an attached payment method after confirmSetup
|
|
107
107
|
*/
|
|
108
|
-
apiV1BillingUsersUserIdPaymentMethodsPost(requestParameters:
|
|
108
|
+
apiV1BillingUsersUserIdPaymentMethodsPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsPost200Response>;
|
|
109
109
|
/**
|
|
110
110
|
* Create a Stripe SetupIntent for saving a card via Elements
|
|
111
111
|
*/
|
|
112
|
-
apiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
112
|
+
apiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRaw(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response>>;
|
|
113
113
|
/**
|
|
114
114
|
* Create a Stripe SetupIntent for saving a card via Elements
|
|
115
115
|
*/
|
|
116
|
-
apiV1BillingUsersUserIdPaymentMethodsSetupIntentPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
116
|
+
apiV1BillingUsersUserIdPaymentMethodsSetupIntentPost(requestParameters: ApiV1BillingUsersUserIdPaymentMethodsSetupIntentPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200Response>;
|
|
117
117
|
/**
|
|
118
118
|
* Create a Stripe billing portal session for managing cards and invoices
|
|
119
119
|
*/
|
|
120
|
-
apiV1BillingUsersUserIdPortalPostRaw(requestParameters:
|
|
120
|
+
apiV1BillingUsersUserIdPortalPostRaw(requestParameters: ApiV1BillingUsersUserIdPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OrganizationsOrgIdBillingPortalPost200Response>>;
|
|
121
121
|
/**
|
|
122
122
|
* Create a Stripe billing portal session for managing cards and invoices
|
|
123
123
|
*/
|
|
124
|
-
apiV1BillingUsersUserIdPortalPost(requestParameters:
|
|
124
|
+
apiV1BillingUsersUserIdPortalPost(requestParameters: ApiV1BillingUsersUserIdPortalPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OrganizationsOrgIdBillingPortalPost200Response>;
|
|
125
125
|
/**
|
|
126
126
|
* Cancel the active subscription
|
|
127
127
|
*/
|
package/dist/apis/BillingApi.js
CHANGED
|
@@ -115,7 +115,7 @@ class BillingApi extends runtime.BaseAPI {
|
|
|
115
115
|
headers: headerParameters,
|
|
116
116
|
query: queryParameters,
|
|
117
117
|
}, initOverrides);
|
|
118
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
118
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsGet200ResponseFromJSON)(jsonValue));
|
|
119
119
|
});
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
@@ -211,8 +211,8 @@ class BillingApi extends runtime.BaseAPI {
|
|
|
211
211
|
if (requestParameters['userId'] == null) {
|
|
212
212
|
throw new runtime.RequiredError('userId', 'Required parameter "userId" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
|
|
213
213
|
}
|
|
214
|
-
if (requestParameters['
|
|
215
|
-
throw new runtime.RequiredError('
|
|
214
|
+
if (requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest'] == null) {
|
|
215
|
+
throw new runtime.RequiredError('organizationsOrgIdBillingPaymentMethodsPostRequest', 'Required parameter "organizationsOrgIdBillingPaymentMethodsPostRequest" was null or undefined when calling apiV1BillingUsersUserIdPaymentMethodsPost().');
|
|
216
216
|
}
|
|
217
217
|
const queryParameters = {};
|
|
218
218
|
const headerParameters = {};
|
|
@@ -229,9 +229,9 @@ class BillingApi extends runtime.BaseAPI {
|
|
|
229
229
|
method: 'POST',
|
|
230
230
|
headers: headerParameters,
|
|
231
231
|
query: queryParameters,
|
|
232
|
-
body: (0, index_1.
|
|
232
|
+
body: (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPaymentMethodsPostRequest']),
|
|
233
233
|
}, initOverrides);
|
|
234
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
234
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsPost200ResponseFromJSON)(jsonValue));
|
|
235
235
|
});
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
@@ -266,7 +266,7 @@ class BillingApi extends runtime.BaseAPI {
|
|
|
266
266
|
headers: headerParameters,
|
|
267
267
|
query: queryParameters,
|
|
268
268
|
}, initOverrides);
|
|
269
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
269
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPaymentMethodsSetupIntentPost200ResponseFromJSON)(jsonValue));
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
/**
|
|
@@ -301,9 +301,9 @@ class BillingApi extends runtime.BaseAPI {
|
|
|
301
301
|
method: 'POST',
|
|
302
302
|
headers: headerParameters,
|
|
303
303
|
query: queryParameters,
|
|
304
|
-
body: (0, index_1.
|
|
304
|
+
body: (0, index_1.OrganizationsOrgIdBillingPortalPostRequestToJSON)(requestParameters['organizationsOrgIdBillingPortalPostRequest']),
|
|
305
305
|
}, initOverrides);
|
|
306
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.
|
|
306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrganizationsOrgIdBillingPortalPost200ResponseFromJSON)(jsonValue));
|
|
307
307
|
});
|
|
308
308
|
}
|
|
309
309
|
/**
|
package/dist/apis/CanvasesApi.js
CHANGED
|
@@ -41,8 +41,12 @@ class CanvasesApi 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: `/canvases`,
|
|
@@ -75,8 +79,12 @@ class CanvasesApi extends runtime.BaseAPI {
|
|
|
75
79
|
}
|
|
76
80
|
const queryParameters = {};
|
|
77
81
|
const headerParameters = {};
|
|
78
|
-
if (this.configuration && this.configuration.
|
|
79
|
-
|
|
82
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
83
|
+
const token = this.configuration.accessToken;
|
|
84
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
85
|
+
if (tokenString) {
|
|
86
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
87
|
+
}
|
|
80
88
|
}
|
|
81
89
|
const response = yield this.request({
|
|
82
90
|
path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -131,8 +139,12 @@ class CanvasesApi extends runtime.BaseAPI {
|
|
|
131
139
|
queryParameters['updated_before'] = requestParameters['updatedBefore'].toISOString();
|
|
132
140
|
}
|
|
133
141
|
const headerParameters = {};
|
|
134
|
-
if (this.configuration && this.configuration.
|
|
135
|
-
|
|
142
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
143
|
+
const token = this.configuration.accessToken;
|
|
144
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
145
|
+
if (tokenString) {
|
|
146
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
147
|
+
}
|
|
136
148
|
}
|
|
137
149
|
const response = yield this.request({
|
|
138
150
|
path: `/canvases`,
|
|
@@ -164,8 +176,12 @@ class CanvasesApi extends runtime.BaseAPI {
|
|
|
164
176
|
}
|
|
165
177
|
const queryParameters = {};
|
|
166
178
|
const headerParameters = {};
|
|
167
|
-
if (this.configuration && this.configuration.
|
|
168
|
-
|
|
179
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
180
|
+
const token = this.configuration.accessToken;
|
|
181
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
182
|
+
if (tokenString) {
|
|
183
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
184
|
+
}
|
|
169
185
|
}
|
|
170
186
|
const response = yield this.request({
|
|
171
187
|
path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -201,8 +217,12 @@ class CanvasesApi extends runtime.BaseAPI {
|
|
|
201
217
|
const queryParameters = {};
|
|
202
218
|
const headerParameters = {};
|
|
203
219
|
headerParameters['Content-Type'] = 'application/json';
|
|
204
|
-
if (this.configuration && this.configuration.
|
|
205
|
-
|
|
220
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
221
|
+
const token = this.configuration.accessToken;
|
|
222
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
223
|
+
if (tokenString) {
|
|
224
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
225
|
+
}
|
|
206
226
|
}
|
|
207
227
|
const response = yield this.request({
|
|
208
228
|
path: `/canvases/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CanvasesCanvasIdComponentsComponentIdPublishPost202Response, CanvasesCanvasIdComponentsComponentIdPublishPostRequest, Component, CreateComponentRequest, GetComponentsByWidgetId200Response,
|
|
13
|
+
import type { CanvasesCanvasIdComponentsComponentIdPublishPost202Response, CanvasesCanvasIdComponentsComponentIdPublishPostRequest, Component, CreateComponentRequest, GetComponentsByWidgetId200Response, RollbackComponentRequest, UpdateComponentRequest, UsersSendFeedbackPost200Response } from '../models/index';
|
|
14
14
|
export interface CanvasesCanvasIdComponentsComponentIdPublishPostOperationRequest {
|
|
15
15
|
canvasId: string;
|
|
16
16
|
componentId: string;
|
|
@@ -128,12 +128,12 @@ export declare class ComponentsApi extends runtime.BaseAPI {
|
|
|
128
128
|
* Rolls back a component to a specific checkpoint version by reverting to a specific Git commit. This operation cancels any in-progress or queued tasks for the component, resets the repository to the specified checkpoint, and updates the component\'s metadata.
|
|
129
129
|
* Rollback Component to Checkpoint
|
|
130
130
|
*/
|
|
131
|
-
rollbackComponentRaw(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
131
|
+
rollbackComponentRaw(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UsersSendFeedbackPost200Response>>;
|
|
132
132
|
/**
|
|
133
133
|
* Rolls back a component to a specific checkpoint version by reverting to a specific Git commit. This operation cancels any in-progress or queued tasks for the component, resets the repository to the specified checkpoint, and updates the component\'s metadata.
|
|
134
134
|
* Rollback Component to Checkpoint
|
|
135
135
|
*/
|
|
136
|
-
rollbackComponent(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
136
|
+
rollbackComponent(requestParameters: RollbackComponentOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UsersSendFeedbackPost200Response>;
|
|
137
137
|
/**
|
|
138
138
|
* Updates an existing component with the specified properties.
|
|
139
139
|
* Update Component
|