@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
|
@@ -43,8 +43,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
43
43
|
}
|
|
44
44
|
const queryParameters = {};
|
|
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: `/workspaces/{workspaceId}/ab-tests/{testId}/auto-stop-check`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -80,8 +84,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
80
84
|
const queryParameters = {};
|
|
81
85
|
const headerParameters = {};
|
|
82
86
|
headerParameters['Content-Type'] = 'application/json';
|
|
83
|
-
if (this.configuration && this.configuration.
|
|
84
|
-
|
|
87
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
88
|
+
const token = this.configuration.accessToken;
|
|
89
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
90
|
+
if (tokenString) {
|
|
91
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
92
|
+
}
|
|
85
93
|
}
|
|
86
94
|
const response = yield this.request({
|
|
87
95
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -117,8 +125,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
117
125
|
}
|
|
118
126
|
const queryParameters = {};
|
|
119
127
|
const headerParameters = {};
|
|
120
|
-
if (this.configuration && this.configuration.
|
|
121
|
-
|
|
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
|
+
}
|
|
122
134
|
}
|
|
123
135
|
const response = yield this.request({
|
|
124
136
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -153,8 +165,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
153
165
|
}
|
|
154
166
|
const queryParameters = {};
|
|
155
167
|
const headerParameters = {};
|
|
156
|
-
if (this.configuration && this.configuration.
|
|
157
|
-
|
|
168
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
169
|
+
const token = this.configuration.accessToken;
|
|
170
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
171
|
+
if (tokenString) {
|
|
172
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
173
|
+
}
|
|
158
174
|
}
|
|
159
175
|
const response = yield this.request({
|
|
160
176
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -189,8 +205,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
189
205
|
queryParameters['status'] = requestParameters['status'];
|
|
190
206
|
}
|
|
191
207
|
const headerParameters = {};
|
|
192
|
-
if (this.configuration && this.configuration.
|
|
193
|
-
|
|
208
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
209
|
+
const token = this.configuration.accessToken;
|
|
210
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
211
|
+
if (tokenString) {
|
|
212
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
213
|
+
}
|
|
194
214
|
}
|
|
195
215
|
const response = yield this.request({
|
|
196
216
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -225,8 +245,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
225
245
|
}
|
|
226
246
|
const queryParameters = {};
|
|
227
247
|
const headerParameters = {};
|
|
228
|
-
if (this.configuration && this.configuration.
|
|
229
|
-
|
|
248
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
249
|
+
const token = this.configuration.accessToken;
|
|
250
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
251
|
+
if (tokenString) {
|
|
252
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
253
|
+
}
|
|
230
254
|
}
|
|
231
255
|
const response = yield this.request({
|
|
232
256
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/pause`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -265,8 +289,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
265
289
|
const queryParameters = {};
|
|
266
290
|
const headerParameters = {};
|
|
267
291
|
headerParameters['Content-Type'] = 'application/json';
|
|
268
|
-
if (this.configuration && this.configuration.
|
|
269
|
-
|
|
292
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
293
|
+
const token = this.configuration.accessToken;
|
|
294
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
295
|
+
if (tokenString) {
|
|
296
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
297
|
+
}
|
|
270
298
|
}
|
|
271
299
|
const response = yield this.request({
|
|
272
300
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/duration`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -302,8 +330,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
302
330
|
}
|
|
303
331
|
const queryParameters = {};
|
|
304
332
|
const headerParameters = {};
|
|
305
|
-
if (this.configuration && this.configuration.
|
|
306
|
-
|
|
333
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
334
|
+
const token = this.configuration.accessToken;
|
|
335
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
336
|
+
if (tokenString) {
|
|
337
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
338
|
+
}
|
|
307
339
|
}
|
|
308
340
|
const response = yield this.request({
|
|
309
341
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -339,8 +371,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
339
371
|
const queryParameters = {};
|
|
340
372
|
const headerParameters = {};
|
|
341
373
|
headerParameters['Content-Type'] = 'application/json';
|
|
342
|
-
if (this.configuration && this.configuration.
|
|
343
|
-
|
|
374
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
375
|
+
const token = this.configuration.accessToken;
|
|
376
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
377
|
+
if (tokenString) {
|
|
378
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
379
|
+
}
|
|
344
380
|
}
|
|
345
381
|
const response = yield this.request({
|
|
346
382
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -380,8 +416,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
380
416
|
const queryParameters = {};
|
|
381
417
|
const headerParameters = {};
|
|
382
418
|
headerParameters['Content-Type'] = 'application/json';
|
|
383
|
-
if (this.configuration && this.configuration.
|
|
384
|
-
|
|
419
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
420
|
+
const token = this.configuration.accessToken;
|
|
421
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
422
|
+
if (tokenString) {
|
|
423
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
424
|
+
}
|
|
385
425
|
}
|
|
386
426
|
const response = yield this.request({
|
|
387
427
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -418,8 +458,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
418
458
|
const queryParameters = {};
|
|
419
459
|
const headerParameters = {};
|
|
420
460
|
headerParameters['Content-Type'] = 'application/json';
|
|
421
|
-
if (this.configuration && this.configuration.
|
|
422
|
-
|
|
461
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
462
|
+
const token = this.configuration.accessToken;
|
|
463
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
464
|
+
if (tokenString) {
|
|
465
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
466
|
+
}
|
|
423
467
|
}
|
|
424
468
|
const response = yield this.request({
|
|
425
469
|
path: `/workspaces/{workspaceId}/ab-tests/validate-composition-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -456,8 +500,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
456
500
|
const queryParameters = {};
|
|
457
501
|
const headerParameters = {};
|
|
458
502
|
headerParameters['Content-Type'] = 'application/json';
|
|
459
|
-
if (this.configuration && this.configuration.
|
|
460
|
-
|
|
503
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
504
|
+
const token = this.configuration.accessToken;
|
|
505
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
506
|
+
if (tokenString) {
|
|
507
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
508
|
+
}
|
|
461
509
|
}
|
|
462
510
|
const response = yield this.request({
|
|
463
511
|
path: `/workspaces/{workspaceId}/ab-tests/validate-goal-tracking`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -494,8 +542,12 @@ class WorkspacesApi extends runtime.BaseAPI {
|
|
|
494
542
|
const queryParameters = {};
|
|
495
543
|
const headerParameters = {};
|
|
496
544
|
headerParameters['Content-Type'] = 'application/json';
|
|
497
|
-
if (this.configuration && this.configuration.
|
|
498
|
-
|
|
545
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
546
|
+
const token = this.configuration.accessToken;
|
|
547
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
548
|
+
if (tokenString) {
|
|
549
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
550
|
+
}
|
|
499
551
|
}
|
|
500
552
|
const response = yield this.request({
|
|
501
553
|
path: `/workspaces/{workspaceId}/ab-tests/validate-widget-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
package/dist/apis/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from './ManagedUsersApi';
|
|
|
29
29
|
export * from './MessagesApi';
|
|
30
30
|
export * from './MonitoringApi';
|
|
31
31
|
export * from './OperationsApi';
|
|
32
|
+
export * from './OrganizationActivitiesApi';
|
|
32
33
|
export * from './OrganizationsApi';
|
|
33
34
|
export * from './PartnerCustomizationsApi';
|
|
34
35
|
export * from './PartnersApi';
|
package/dist/apis/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./ManagedUsersApi"), exports);
|
|
|
47
47
|
__exportStar(require("./MessagesApi"), exports);
|
|
48
48
|
__exportStar(require("./MonitoringApi"), exports);
|
|
49
49
|
__exportStar(require("./OperationsApi"), exports);
|
|
50
|
+
__exportStar(require("./OrganizationActivitiesApi"), exports);
|
|
50
51
|
__exportStar(require("./OrganizationsApi"), exports);
|
|
51
52
|
__exportStar(require("./PartnerCustomizationsApi"), exports);
|
|
52
53
|
__exportStar(require("./PartnersApi"), exports);
|
|
@@ -75,8 +75,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
75
75
|
}
|
|
76
76
|
const queryParameters = {};
|
|
77
77
|
const headerParameters = {};
|
|
78
|
-
if (this.configuration && this.configuration.
|
|
79
|
-
|
|
78
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
79
|
+
const token = this.configuration.accessToken;
|
|
80
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
81
|
+
if (tokenString) {
|
|
82
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
83
|
+
}
|
|
80
84
|
}
|
|
81
85
|
const response = yield this.request({
|
|
82
86
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/auto-stop-check`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -144,8 +148,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
144
148
|
const queryParameters = {};
|
|
145
149
|
const headerParameters = {};
|
|
146
150
|
headerParameters['Content-Type'] = 'application/json';
|
|
147
|
-
if (this.configuration && this.configuration.
|
|
148
|
-
|
|
151
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
152
|
+
const token = this.configuration.accessToken;
|
|
153
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
154
|
+
if (tokenString) {
|
|
155
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
156
|
+
}
|
|
149
157
|
}
|
|
150
158
|
const response = yield this.request({
|
|
151
159
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -181,8 +189,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
181
189
|
}
|
|
182
190
|
const queryParameters = {};
|
|
183
191
|
const headerParameters = {};
|
|
184
|
-
if (this.configuration && this.configuration.
|
|
185
|
-
|
|
192
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
193
|
+
const token = this.configuration.accessToken;
|
|
194
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
195
|
+
if (tokenString) {
|
|
196
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
197
|
+
}
|
|
186
198
|
}
|
|
187
199
|
const response = yield this.request({
|
|
188
200
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -241,8 +253,12 @@ export class ABTestingApi 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: `/metrics/available`,
|
|
@@ -271,8 +287,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
271
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
272
288
|
const queryParameters = {};
|
|
273
289
|
const headerParameters = {};
|
|
274
|
-
if (this.configuration && this.configuration.
|
|
275
|
-
|
|
290
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
291
|
+
const token = this.configuration.accessToken;
|
|
292
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
293
|
+
if (tokenString) {
|
|
294
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
295
|
+
}
|
|
276
296
|
}
|
|
277
297
|
const response = yield this.request({
|
|
278
298
|
path: `/ab-tests/metrics/available`,
|
|
@@ -337,8 +357,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
337
357
|
}
|
|
338
358
|
const queryParameters = {};
|
|
339
359
|
const headerParameters = {};
|
|
340
|
-
if (this.configuration && this.configuration.
|
|
341
|
-
|
|
360
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
361
|
+
const token = this.configuration.accessToken;
|
|
362
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
363
|
+
if (tokenString) {
|
|
364
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
365
|
+
}
|
|
342
366
|
}
|
|
343
367
|
const response = yield this.request({
|
|
344
368
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -373,8 +397,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
373
397
|
queryParameters['status'] = requestParameters['status'];
|
|
374
398
|
}
|
|
375
399
|
const headerParameters = {};
|
|
376
|
-
if (this.configuration && this.configuration.
|
|
377
|
-
|
|
400
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
401
|
+
const token = this.configuration.accessToken;
|
|
402
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
403
|
+
if (tokenString) {
|
|
404
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
405
|
+
}
|
|
378
406
|
}
|
|
379
407
|
const response = yield this.request({
|
|
380
408
|
path: `/workspaces/{workspaceId}/ab-tests`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -409,8 +437,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
409
437
|
}
|
|
410
438
|
const queryParameters = {};
|
|
411
439
|
const headerParameters = {};
|
|
412
|
-
if (this.configuration && this.configuration.
|
|
413
|
-
|
|
440
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
441
|
+
const token = this.configuration.accessToken;
|
|
442
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
443
|
+
if (tokenString) {
|
|
444
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
445
|
+
}
|
|
414
446
|
}
|
|
415
447
|
const response = yield this.request({
|
|
416
448
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/pause`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -449,8 +481,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
449
481
|
const queryParameters = {};
|
|
450
482
|
const headerParameters = {};
|
|
451
483
|
headerParameters['Content-Type'] = 'application/json';
|
|
452
|
-
if (this.configuration && this.configuration.
|
|
453
|
-
|
|
484
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
485
|
+
const token = this.configuration.accessToken;
|
|
486
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
487
|
+
if (tokenString) {
|
|
488
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
489
|
+
}
|
|
454
490
|
}
|
|
455
491
|
const response = yield this.request({
|
|
456
492
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/duration`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -486,8 +522,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
486
522
|
}
|
|
487
523
|
const queryParameters = {};
|
|
488
524
|
const headerParameters = {};
|
|
489
|
-
if (this.configuration && this.configuration.
|
|
490
|
-
|
|
525
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
526
|
+
const token = this.configuration.accessToken;
|
|
527
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
528
|
+
if (tokenString) {
|
|
529
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
530
|
+
}
|
|
491
531
|
}
|
|
492
532
|
const response = yield this.request({
|
|
493
533
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/start`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -523,8 +563,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
523
563
|
const queryParameters = {};
|
|
524
564
|
const headerParameters = {};
|
|
525
565
|
headerParameters['Content-Type'] = 'application/json';
|
|
526
|
-
if (this.configuration && this.configuration.
|
|
527
|
-
|
|
566
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
567
|
+
const token = this.configuration.accessToken;
|
|
568
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
569
|
+
if (tokenString) {
|
|
570
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
571
|
+
}
|
|
528
572
|
}
|
|
529
573
|
const response = yield this.request({
|
|
530
574
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}/stop`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -628,8 +672,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
628
672
|
const queryParameters = {};
|
|
629
673
|
const headerParameters = {};
|
|
630
674
|
headerParameters['Content-Type'] = 'application/json';
|
|
631
|
-
if (this.configuration && this.configuration.
|
|
632
|
-
|
|
675
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
676
|
+
const token = this.configuration.accessToken;
|
|
677
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
678
|
+
if (tokenString) {
|
|
679
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
680
|
+
}
|
|
633
681
|
}
|
|
634
682
|
const response = yield this.request({
|
|
635
683
|
path: `/workspaces/{workspaceId}/ab-tests/{testId}`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))).replace(`{${"testId"}}`, encodeURIComponent(String(requestParameters['testId']))),
|
|
@@ -666,8 +714,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
666
714
|
const queryParameters = {};
|
|
667
715
|
const headerParameters = {};
|
|
668
716
|
headerParameters['Content-Type'] = 'application/json';
|
|
669
|
-
if (this.configuration && this.configuration.
|
|
670
|
-
|
|
717
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
718
|
+
const token = this.configuration.accessToken;
|
|
719
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
720
|
+
if (tokenString) {
|
|
721
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
722
|
+
}
|
|
671
723
|
}
|
|
672
724
|
const response = yield this.request({
|
|
673
725
|
path: `/workspaces/{workspaceId}/ab-tests/validate-composition-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -704,8 +756,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
704
756
|
const queryParameters = {};
|
|
705
757
|
const headerParameters = {};
|
|
706
758
|
headerParameters['Content-Type'] = 'application/json';
|
|
707
|
-
if (this.configuration && this.configuration.
|
|
708
|
-
|
|
759
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
760
|
+
const token = this.configuration.accessToken;
|
|
761
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
762
|
+
if (tokenString) {
|
|
763
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
764
|
+
}
|
|
709
765
|
}
|
|
710
766
|
const response = yield this.request({
|
|
711
767
|
path: `/workspaces/{workspaceId}/ab-tests/validate-goal-tracking`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -742,8 +798,12 @@ export class ABTestingApi extends runtime.BaseAPI {
|
|
|
742
798
|
const queryParameters = {};
|
|
743
799
|
const headerParameters = {};
|
|
744
800
|
headerParameters['Content-Type'] = 'application/json';
|
|
745
|
-
if (this.configuration && this.configuration.
|
|
746
|
-
|
|
801
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
802
|
+
const token = this.configuration.accessToken;
|
|
803
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
804
|
+
if (tokenString) {
|
|
805
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
806
|
+
}
|
|
747
807
|
}
|
|
748
808
|
const response = yield this.request({
|
|
749
809
|
path: `/workspaces/{workspaceId}/ab-tests/validate-widget-deletion`.replace(`{${"workspaceId"}}`, encodeURIComponent(String(requestParameters['workspaceId']))),
|
|
@@ -43,8 +43,12 @@ export class AdminApi 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`,
|
|
@@ -74,8 +78,12 @@ export class AdminApi extends runtime.BaseAPI {
|
|
|
74
78
|
const queryParameters = {};
|
|
75
79
|
const headerParameters = {};
|
|
76
80
|
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
-
if (this.configuration && this.configuration.
|
|
78
|
-
|
|
81
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
82
|
+
const token = this.configuration.accessToken;
|
|
83
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
84
|
+
if (tokenString) {
|
|
85
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
86
|
+
}
|
|
79
87
|
}
|
|
80
88
|
const response = yield this.request({
|
|
81
89
|
path: `/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
|
*/
|
|
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
import * as runtime from '../runtime.js';
|
|
24
|
-
import { CompleteSignupRequestToJSON,
|
|
24
|
+
import { CompleteSignupRequestToJSON, LoginUserRequestToJSON, OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON, ResetPasswordRequestToJSON, SignupUserRequestToJSON, SignupWithInvitationRequestToJSON, UpdateEmailRequestToJSON, UpdateNameRequestToJSON, UpdatePasswordRequestToJSON, UpdateUserMetadataRequestToJSON, } from '../models/index.js';
|
|
25
25
|
/**
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
@@ -91,8 +91,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
92
92
|
const queryParameters = {};
|
|
93
93
|
const headerParameters = {};
|
|
94
|
-
if (this.configuration && this.configuration.
|
|
95
|
-
|
|
94
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
95
|
+
const token = this.configuration.accessToken;
|
|
96
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
97
|
+
if (tokenString) {
|
|
98
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
99
|
+
}
|
|
96
100
|
}
|
|
97
101
|
const response = yield this.request({
|
|
98
102
|
path: `/auth/delete-account`,
|
|
@@ -118,8 +122,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
118
122
|
return __awaiter(this, void 0, void 0, function* () {
|
|
119
123
|
const queryParameters = {};
|
|
120
124
|
const headerParameters = {};
|
|
121
|
-
if (this.configuration && this.configuration.
|
|
122
|
-
|
|
125
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
126
|
+
const token = this.configuration.accessToken;
|
|
127
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
128
|
+
if (tokenString) {
|
|
129
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
130
|
+
}
|
|
123
131
|
}
|
|
124
132
|
const response = yield this.request({
|
|
125
133
|
path: `/auth/session`,
|
|
@@ -145,8 +153,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
145
153
|
return __awaiter(this, void 0, void 0, function* () {
|
|
146
154
|
const queryParameters = {};
|
|
147
155
|
const headerParameters = {};
|
|
148
|
-
if (this.configuration && this.configuration.
|
|
149
|
-
|
|
156
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
157
|
+
const token = this.configuration.accessToken;
|
|
158
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
159
|
+
if (tokenString) {
|
|
160
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
161
|
+
}
|
|
150
162
|
}
|
|
151
163
|
const response = yield this.request({
|
|
152
164
|
path: `/auth/get-metadata`,
|
|
@@ -219,7 +231,7 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
219
231
|
query: queryParameters,
|
|
220
232
|
body: LoginUserRequestToJSON(requestParameters['loginUserRequest']),
|
|
221
233
|
}, initOverrides);
|
|
222
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
234
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OrganizationsOrgIdBillingYearlyPricingComparisonGet200ResponseFromJSON(jsonValue));
|
|
223
235
|
});
|
|
224
236
|
}
|
|
225
237
|
/**
|
|
@@ -238,8 +250,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
238
250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
239
251
|
const queryParameters = {};
|
|
240
252
|
const headerParameters = {};
|
|
241
|
-
if (this.configuration && this.configuration.
|
|
242
|
-
|
|
253
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
254
|
+
const token = this.configuration.accessToken;
|
|
255
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
256
|
+
if (tokenString) {
|
|
257
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
258
|
+
}
|
|
243
259
|
}
|
|
244
260
|
const response = yield this.request({
|
|
245
261
|
path: `/auth/logout`,
|
|
@@ -472,8 +488,12 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
472
488
|
const queryParameters = {};
|
|
473
489
|
const headerParameters = {};
|
|
474
490
|
headerParameters['Content-Type'] = 'application/json';
|
|
475
|
-
if (this.configuration && this.configuration.
|
|
476
|
-
|
|
491
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
492
|
+
const token = this.configuration.accessToken;
|
|
493
|
+
const tokenString = yield token("apiKeyAuth", []);
|
|
494
|
+
if (tokenString) {
|
|
495
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
496
|
+
}
|
|
477
497
|
}
|
|
478
498
|
const response = yield this.request({
|
|
479
499
|
path: `/auth/update-metadata`,
|
|
@@ -38,8 +38,12 @@ export class BatchApi 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: `/batch/process`,
|