edge-impulse-linux 1.4.5 → 1.4.7
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/build/library/sensors/gstreamer.js +23 -8
- package/build/library/sensors/gstreamer.js.map +1 -1
- package/build/sdk/studio/sdk/api/adminApi.d.ts +34 -3
- package/build/sdk/studio/sdk/api/adminApi.js +219 -6
- package/build/sdk/studio/sdk/api/adminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.d.ts +26 -1
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js +151 -1
- package/build/sdk/studio/sdk/api/allowsReadOnlyApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/apis.d.ts +3 -1
- package/build/sdk/studio/sdk/api/apis.js +3 -1
- package/build/sdk/studio/sdk/api/apis.js.map +1 -1
- package/build/sdk/studio/sdk/api/dSPApi.d.ts +5 -1
- package/build/sdk/studio/sdk/api/dSPApi.js +5 -1
- package/build/sdk/studio/sdk/api/dSPApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/emailVerificationApi.d.ts +72 -0
- package/build/sdk/studio/sdk/api/emailVerificationApi.js +288 -0
- package/build/sdk/studio/sdk/api/emailVerificationApi.js.map +1 -0
- package/build/sdk/studio/sdk/api/jobsApi.d.ts +12 -0
- package/build/sdk/studio/sdk/api/jobsApi.js +79 -0
- package/build/sdk/studio/sdk/api/jobsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.d.ts +13 -0
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js +79 -0
- package/build/sdk/studio/sdk/api/organizationRequiresAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.d.ts +13 -0
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js +79 -0
- package/build/sdk/studio/sdk/api/organizationRequiresWhitelabelAdminApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/organizationsApi.d.ts +25 -0
- package/build/sdk/studio/sdk/api/organizationsApi.js +158 -0
- package/build/sdk/studio/sdk/api/organizationsApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/rawDataApi.d.ts +21 -0
- package/build/sdk/studio/sdk/api/rawDataApi.js +146 -0
- package/build/sdk/studio/sdk/api/rawDataApi.js.map +1 -1
- package/build/sdk/studio/sdk/api/userApi.d.ts +53 -7
- package/build/sdk/studio/sdk/api/userApi.js +309 -14
- package/build/sdk/studio/sdk/api/userApi.js.map +1 -1
- package/build/sdk/studio/sdk/model/activateUserOrVerifyEmailRequest.d.ts +28 -0
- package/build/sdk/studio/sdk/model/activateUserOrVerifyEmailRequest.js +32 -0
- package/build/sdk/studio/sdk/model/activateUserOrVerifyEmailRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/addOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/adminApiUser.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminApiUserAllOf.d.ts +1 -1
- package/build/sdk/studio/sdk/model/adminEnableFeatureRequest.d.ts +26 -0
- package/build/sdk/studio/sdk/model/adminEnableFeatureRequest.js +32 -0
- package/build/sdk/studio/sdk/model/adminEnableFeatureRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponse.d.ts +37 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponse.js +42 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOf.d.ts +29 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.d.ts +30 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js +37 -0
- package/build/sdk/studio/sdk/model/adminGetFeatureFlagsResponseAllOfFlags.js.map +1 -0
- package/build/sdk/studio/sdk/model/adminUpdateUserTrialRequest.d.ts +2 -2
- package/build/sdk/studio/sdk/model/calculateDataQualityMetricsRequest.d.ts +30 -0
- package/build/sdk/studio/sdk/model/calculateDataQualityMetricsRequest.js +33 -0
- package/build/sdk/studio/sdk/model/calculateDataQualityMetricsRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponse.d.ts +44 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponse.js +52 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponseAllOf.d.ts +32 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponseAllOf.js +37 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.d.ts +78 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js +93 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.d.ts +52 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js +62 -0
- package/build/sdk/studio/sdk/model/createEnterpriseTrialUserRequestAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/createUserRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js +5 -0
- package/build/sdk/studio/sdk/model/createUserRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/dSPInfo.d.ts +5 -1
- package/build/sdk/studio/sdk/model/dSPInfo.js +5 -0
- package/build/sdk/studio/sdk/model/dSPInfo.js.map +1 -1
- package/build/sdk/studio/sdk/model/enterpriseTrial.d.ts +4 -4
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.d.ts +40 -0
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.js +47 -0
- package/build/sdk/studio/sdk/model/enterpriseUpgradeOrTrialExtensionRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/entityCreatedResponse.d.ts +4 -1
- package/build/sdk/studio/sdk/model/entityCreatedResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/entityCreatedResponseAllOf.d.ts +28 -0
- package/build/sdk/studio/sdk/model/entityCreatedResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/entityCreatedResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/feature.d.ts +16 -0
- package/build/sdk/studio/sdk/model/feature.js +16 -0
- package/build/sdk/studio/sdk/model/feature.js.map +1 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponse.d.ts +34 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponse.js +42 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOf.d.ts +26 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfClusterInfos.d.ts +68 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfClusterInfos.js +80 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfClusterInfos.js.map +1 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfData.d.ts +28 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfData.js +42 -0
- package/build/sdk/studio/sdk/model/getDiversityDataResponseAllOfData.js.map +1 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponse.d.ts +36 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponse.js +42 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponseAllOf.d.ts +28 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/getEmailVerificationStatusResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponse.d.ts +9 -0
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponse.js +10 -0
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponse.js.map +1 -1
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponseAllOf.d.ts +9 -0
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponseAllOf.js +10 -0
- package/build/sdk/studio/sdk/model/getUserNeedToSetPasswordResponseAllOf.js.map +1 -1
- package/build/sdk/studio/sdk/model/impulseInputBlock.d.ts +1 -1
- package/build/sdk/studio/sdk/model/impulseInputBlock.js +1 -1
- package/build/sdk/studio/sdk/model/impulseInputBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/inputBlock.d.ts +1 -1
- package/build/sdk/studio/sdk/model/inputBlock.js +1 -1
- package/build/sdk/studio/sdk/model/inputBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponse.d.ts +37 -0
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponse.js +42 -0
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponseAllOf.d.ts +29 -0
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponseAllOf.js +32 -0
- package/build/sdk/studio/sdk/model/listEnterpriseTrialsResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/models.d.ts +27 -3
- package/build/sdk/studio/sdk/model/models.js +83 -9
- package/build/sdk/studio/sdk/model/models.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.d.ts +6 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.js +5 -0
- package/build/sdk/studio/sdk/model/organizationCreateProjectRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationDataItemFiles.d.ts +1 -0
- package/build/sdk/studio/sdk/model/organizationDataItemFiles.js +5 -0
- package/build/sdk/studio/sdk/model/organizationDataItemFiles.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationPipelineRunStep.d.ts +3 -0
- package/build/sdk/studio/sdk/model/organizationPipelineRunStep.js +5 -0
- package/build/sdk/studio/sdk/model/organizationPipelineRunStep.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationPipelineStep.d.ts +3 -0
- package/build/sdk/studio/sdk/model/organizationPipelineStep.js +5 -0
- package/build/sdk/studio/sdk/model/organizationPipelineStep.js.map +1 -1
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.d.ts +9 -0
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.js +10 -0
- package/build/sdk/studio/sdk/model/organizationTransformationBlock.js.map +1 -1
- package/build/sdk/studio/sdk/model/permission.d.ts +1 -1
- package/build/sdk/studio/sdk/model/permission.js +1 -1
- package/build/sdk/studio/sdk/model/permission.js.map +1 -1
- package/build/sdk/studio/sdk/model/requestEmailVerificationRequest.d.ts +28 -0
- package/build/sdk/studio/sdk/model/requestEmailVerificationRequest.js +32 -0
- package/build/sdk/studio/sdk/model/requestEmailVerificationRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/sample.d.ts +4 -0
- package/build/sdk/studio/sdk/model/sample.js +5 -0
- package/build/sdk/studio/sdk/model/sample.js.map +1 -1
- package/build/sdk/studio/sdk/model/startEnterpriseTrialRequest.d.ts +58 -0
- package/build/sdk/studio/sdk/model/startEnterpriseTrialRequest.js +68 -0
- package/build/sdk/studio/sdk/model/startEnterpriseTrialRequest.js.map +1 -0
- package/build/sdk/studio/sdk/model/tunerTrial.d.ts +3 -0
- package/build/sdk/studio/sdk/model/tunerTrial.js +10 -0
- package/build/sdk/studio/sdk/model/tunerTrial.js.map +1 -1
- package/build/sdk/studio/sdk/model/tunerTrialDspJobId.d.ts +26 -0
- package/build/sdk/studio/sdk/model/tunerTrialDspJobId.js +37 -0
- package/build/sdk/studio/sdk/model/tunerTrialDspJobId.js.map +1 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.d.ts +4 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.js +5 -0
- package/build/sdk/studio/sdk/model/updateOrganizationTransformationBlockRequest.js.map +1 -1
- package/build/sdk/studio/sdk/model/verifyEmailResponse.d.ts +44 -0
- package/build/sdk/studio/sdk/model/verifyEmailResponse.js +52 -0
- package/build/sdk/studio/sdk/model/verifyEmailResponse.js.map +1 -0
- package/build/sdk/studio/sdk/model/verifyEmailResponseAllOf.d.ts +36 -0
- package/build/sdk/studio/sdk/model/verifyEmailResponseAllOf.js +42 -0
- package/build/sdk/studio/sdk/model/verifyEmailResponseAllOf.js.map +1 -0
- package/build/sdk/studio/sdk/model/whitelabelAdminCreateProjectRequest.d.ts +36 -0
- package/build/sdk/studio/sdk/model/whitelabelAdminCreateProjectRequest.js +42 -0
- package/build/sdk/studio/sdk/model/whitelabelAdminCreateProjectRequest.js.map +1 -0
- package/build/shared/viewmodels/init.d.ts +1 -0
- package/build/shared/viewmodels/init.js +1 -0
- package/build/shared/viewmodels/init.js.map +1 -1
- package/build/test/gstreamer.test.js +1034 -784
- package/build/test/gstreamer.test.js.map +1 -1
- package/package.json +1 -1
- package/test/gstreamer.test.ts +1038 -784
|
@@ -10,24 +10,29 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActivateUserByThirdPartyActivationCodeRequest } from '../model/activateUserByThirdPartyActivationCodeRequest';
|
|
13
|
-
import {
|
|
13
|
+
import { ActivateUserOrVerifyEmailRequest } from '../model/activateUserOrVerifyEmailRequest';
|
|
14
14
|
import { ChangePasswordRequest } from '../model/changePasswordRequest';
|
|
15
15
|
import { ConvertUserRequest } from '../model/convertUserRequest';
|
|
16
16
|
import { CreateDeveloperProfileResponse } from '../model/createDeveloperProfileResponse';
|
|
17
|
+
import { CreateEnterpriseTrialResponse } from '../model/createEnterpriseTrialResponse';
|
|
18
|
+
import { CreateEnterpriseTrialUserRequest } from '../model/createEnterpriseTrialUserRequest';
|
|
17
19
|
import { CreateEvaluationUserResponse } from '../model/createEvaluationUserResponse';
|
|
18
20
|
import { CreateUserRequest } from '../model/createUserRequest';
|
|
19
21
|
import { CreateUserResponse } from '../model/createUserResponse';
|
|
22
|
+
import { EnterpriseUpgradeOrTrialExtensionRequest } from '../model/enterpriseUpgradeOrTrialExtensionRequest';
|
|
20
23
|
import { GenericApiResponse } from '../model/genericApiResponse';
|
|
21
24
|
import { GetJWTResponse } from '../model/getJWTResponse';
|
|
22
25
|
import { GetUserNeedToSetPasswordResponse } from '../model/getUserNeedToSetPasswordResponse';
|
|
23
26
|
import { GetUserResponse } from '../model/getUserResponse';
|
|
24
27
|
import { ListEmailResponse } from '../model/listEmailResponse';
|
|
28
|
+
import { ListEnterpriseTrialsResponse } from '../model/listEnterpriseTrialsResponse';
|
|
25
29
|
import { ListOrganizationBucketsUserResponse } from '../model/listOrganizationBucketsUserResponse';
|
|
26
30
|
import { ListOrganizationsResponse } from '../model/listOrganizationsResponse';
|
|
27
31
|
import { RequestResetPasswordRequest } from '../model/requestResetPasswordRequest';
|
|
28
32
|
import { ResetPasswordRequest } from '../model/resetPasswordRequest';
|
|
29
33
|
import { SendUserFeedbackRequest } from '../model/sendUserFeedbackRequest';
|
|
30
34
|
import { SetUserPasswordRequest } from '../model/setUserPasswordRequest';
|
|
35
|
+
import { StartEnterpriseTrialRequest } from '../model/startEnterpriseTrialRequest';
|
|
31
36
|
import { UpdateUserRequest } from '../model/updateUserRequest';
|
|
32
37
|
import { UploadUserPhotoResponse } from '../model/uploadUserPhotoResponse';
|
|
33
38
|
import { UserByThirdPartyActivationRequest } from '../model/userByThirdPartyActivationRequest';
|
|
@@ -82,9 +87,9 @@ export declare class UserApi {
|
|
|
82
87
|
/**
|
|
83
88
|
* Activate the current user account (requires an activation code). This function is only available through a JWT token.
|
|
84
89
|
* @summary Activate current user
|
|
85
|
-
* @param
|
|
90
|
+
* @param activateUserOrVerifyEmailRequest
|
|
86
91
|
*/
|
|
87
|
-
activateCurrentUser(
|
|
92
|
+
activateCurrentUser(activateUserOrVerifyEmailRequest: ActivateUserOrVerifyEmailRequest, options?: {
|
|
88
93
|
headers: {
|
|
89
94
|
[name: string]: string;
|
|
90
95
|
};
|
|
@@ -93,9 +98,9 @@ export declare class UserApi {
|
|
|
93
98
|
* Activate a user account (requires an activation code). This function is only available through a JWT token.
|
|
94
99
|
* @summary Activate user
|
|
95
100
|
* @param userId User ID
|
|
96
|
-
* @param
|
|
101
|
+
* @param activateUserOrVerifyEmailRequest
|
|
97
102
|
*/
|
|
98
|
-
activateUser(userId: number,
|
|
103
|
+
activateUser(userId: number, activateUserOrVerifyEmailRequest: ActivateUserOrVerifyEmailRequest, options?: {
|
|
99
104
|
headers: {
|
|
100
105
|
[name: string]: string;
|
|
101
106
|
};
|
|
@@ -150,6 +155,16 @@ export declare class UserApi {
|
|
|
150
155
|
[name: string]: string;
|
|
151
156
|
};
|
|
152
157
|
}): Promise<CreateDeveloperProfileResponse>;
|
|
158
|
+
/**
|
|
159
|
+
* Creates an enterprise trial user and a new trial organization, and redirects the user to the new organization.
|
|
160
|
+
* @summary Create enterprise trial user
|
|
161
|
+
* @param createEnterpriseTrialUserRequest Trial request
|
|
162
|
+
*/
|
|
163
|
+
createEnterpriseTrialUser(createEnterpriseTrialUserRequest: CreateEnterpriseTrialUserRequest, options?: {
|
|
164
|
+
headers: {
|
|
165
|
+
[name: string]: string;
|
|
166
|
+
};
|
|
167
|
+
}): Promise<CreateEnterpriseTrialResponse>;
|
|
153
168
|
/**
|
|
154
169
|
* Creates an evaluation user and a new project, and redirects the user to the new project.
|
|
155
170
|
* @summary Create evaluation user
|
|
@@ -227,8 +242,8 @@ export declare class UserApi {
|
|
|
227
242
|
};
|
|
228
243
|
}): Promise<GetUserResponse>;
|
|
229
244
|
/**
|
|
230
|
-
* Tells whether
|
|
231
|
-
* @summary Get user
|
|
245
|
+
* Tells whether a user is registered and whether it needs to set its password.
|
|
246
|
+
* @summary Get user registration state
|
|
232
247
|
* @param usernameOrEmail Username or email
|
|
233
248
|
*/
|
|
234
249
|
getUserNeedToSetPassword(usernameOrEmail: string, options?: {
|
|
@@ -255,6 +270,16 @@ export declare class UserApi {
|
|
|
255
270
|
[name: string]: string;
|
|
256
271
|
};
|
|
257
272
|
}): Promise<ListEmailResponse>;
|
|
273
|
+
/**
|
|
274
|
+
* Get a list of all enterprise trials for a user. This function is only available through a JWT token.
|
|
275
|
+
* @summary Get enterprise trials
|
|
276
|
+
* @param userId User ID
|
|
277
|
+
*/
|
|
278
|
+
listEnterpriseTrialsUser(userId: number, options?: {
|
|
279
|
+
headers: {
|
|
280
|
+
[name: string]: string;
|
|
281
|
+
};
|
|
282
|
+
}): Promise<ListEnterpriseTrialsResponse>;
|
|
258
283
|
/**
|
|
259
284
|
* List all organizational storage buckets that the current user has access to. This function is only available through a JWT token.
|
|
260
285
|
* @summary Get buckets current user
|
|
@@ -343,6 +368,17 @@ export declare class UserApi {
|
|
|
343
368
|
[name: string]: string;
|
|
344
369
|
};
|
|
345
370
|
}): Promise<GenericApiResponse>;
|
|
371
|
+
/**
|
|
372
|
+
* Send an upgrade to Enterprise request to Edge Impulse.
|
|
373
|
+
* @summary Send upgrade request
|
|
374
|
+
* @param userId User ID
|
|
375
|
+
* @param enterpriseUpgradeOrTrialExtensionRequest
|
|
376
|
+
*/
|
|
377
|
+
sendUserUpgradeRequest(userId: number, enterpriseUpgradeOrTrialExtensionRequest: EnterpriseUpgradeOrTrialExtensionRequest, options?: {
|
|
378
|
+
headers: {
|
|
379
|
+
[name: string]: string;
|
|
380
|
+
};
|
|
381
|
+
}): Promise<GenericApiResponse>;
|
|
346
382
|
/**
|
|
347
383
|
* Set the password for a new SSO user. This function is only available through an SSO access token.
|
|
348
384
|
* @summary Set password for SSO user
|
|
@@ -354,6 +390,16 @@ export declare class UserApi {
|
|
|
354
390
|
[name: string]: string;
|
|
355
391
|
};
|
|
356
392
|
}): Promise<GenericApiResponse>;
|
|
393
|
+
/**
|
|
394
|
+
* Create an enterprise trial for the current user. Users can only go through a trial once.
|
|
395
|
+
* @summary Start enterprise trial
|
|
396
|
+
* @param startEnterpriseTrialRequest
|
|
397
|
+
*/
|
|
398
|
+
startEnterpriseTrial(startEnterpriseTrialRequest: StartEnterpriseTrialRequest, options?: {
|
|
399
|
+
headers: {
|
|
400
|
+
[name: string]: string;
|
|
401
|
+
};
|
|
402
|
+
}): Promise<CreateEnterpriseTrialResponse>;
|
|
357
403
|
/**
|
|
358
404
|
* Update user properties such as name. This function is only available through a JWT token.
|
|
359
405
|
* @summary Update current user
|
|
@@ -144,9 +144,9 @@ class UserApi {
|
|
|
144
144
|
/**
|
|
145
145
|
* Activate the current user account (requires an activation code). This function is only available through a JWT token.
|
|
146
146
|
* @summary Activate current user
|
|
147
|
-
* @param
|
|
147
|
+
* @param activateUserOrVerifyEmailRequest
|
|
148
148
|
*/
|
|
149
|
-
async activateCurrentUser(
|
|
149
|
+
async activateCurrentUser(activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
150
150
|
const localVarPath = this.basePath + '/api/user/activate';
|
|
151
151
|
let localVarQueryParameters = {};
|
|
152
152
|
let localVarHeaderParams = Object.assign({
|
|
@@ -161,9 +161,9 @@ class UserApi {
|
|
|
161
161
|
localVarHeaderParams.Accept = produces.join(',');
|
|
162
162
|
}
|
|
163
163
|
let localVarFormParams = {};
|
|
164
|
-
// verify required parameter '
|
|
165
|
-
if (
|
|
166
|
-
throw new Error('Required parameter
|
|
164
|
+
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
165
|
+
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
166
|
+
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateCurrentUser.');
|
|
167
167
|
}
|
|
168
168
|
Object.assign(localVarHeaderParams, options.headers);
|
|
169
169
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -176,7 +176,7 @@ class UserApi {
|
|
|
176
176
|
useQuerystring: this._useQuerystring,
|
|
177
177
|
agentOptions: { keepAlive: false },
|
|
178
178
|
json: true,
|
|
179
|
-
body: models_1.ObjectSerializer.serialize(
|
|
179
|
+
body: models_1.ObjectSerializer.serialize(activateUserOrVerifyEmailRequest, "ActivateUserOrVerifyEmailRequest")
|
|
180
180
|
};
|
|
181
181
|
let authenticationPromise = Promise.resolve();
|
|
182
182
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -218,9 +218,9 @@ class UserApi {
|
|
|
218
218
|
* Activate a user account (requires an activation code). This function is only available through a JWT token.
|
|
219
219
|
* @summary Activate user
|
|
220
220
|
* @param userId User ID
|
|
221
|
-
* @param
|
|
221
|
+
* @param activateUserOrVerifyEmailRequest
|
|
222
222
|
*/
|
|
223
|
-
async activateUser(userId,
|
|
223
|
+
async activateUser(userId, activateUserOrVerifyEmailRequest, options = { headers: {} }) {
|
|
224
224
|
const localVarPath = this.basePath + '/api/users/{userId}/activate'
|
|
225
225
|
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
226
226
|
let localVarQueryParameters = {};
|
|
@@ -240,9 +240,9 @@ class UserApi {
|
|
|
240
240
|
if (userId === null || userId === undefined) {
|
|
241
241
|
throw new Error('Required parameter userId was null or undefined when calling activateUser.');
|
|
242
242
|
}
|
|
243
|
-
// verify required parameter '
|
|
244
|
-
if (
|
|
245
|
-
throw new Error('Required parameter
|
|
243
|
+
// verify required parameter 'activateUserOrVerifyEmailRequest' is not null or undefined
|
|
244
|
+
if (activateUserOrVerifyEmailRequest === null || activateUserOrVerifyEmailRequest === undefined) {
|
|
245
|
+
throw new Error('Required parameter activateUserOrVerifyEmailRequest was null or undefined when calling activateUser.');
|
|
246
246
|
}
|
|
247
247
|
Object.assign(localVarHeaderParams, options.headers);
|
|
248
248
|
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
@@ -255,7 +255,7 @@ class UserApi {
|
|
|
255
255
|
useQuerystring: this._useQuerystring,
|
|
256
256
|
agentOptions: { keepAlive: false },
|
|
257
257
|
json: true,
|
|
258
|
-
body: models_1.ObjectSerializer.serialize(
|
|
258
|
+
body: models_1.ObjectSerializer.serialize(activateUserOrVerifyEmailRequest, "ActivateUserOrVerifyEmailRequest")
|
|
259
259
|
};
|
|
260
260
|
let authenticationPromise = Promise.resolve();
|
|
261
261
|
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
@@ -658,6 +658,76 @@ class UserApi {
|
|
|
658
658
|
});
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
+
/**
|
|
662
|
+
* Creates an enterprise trial user and a new trial organization, and redirects the user to the new organization.
|
|
663
|
+
* @summary Create enterprise trial user
|
|
664
|
+
* @param createEnterpriseTrialUserRequest Trial request
|
|
665
|
+
*/
|
|
666
|
+
async createEnterpriseTrialUser(createEnterpriseTrialUserRequest, options = { headers: {} }) {
|
|
667
|
+
const localVarPath = this.basePath + '/api-user-create-enterprise-trial';
|
|
668
|
+
let localVarQueryParameters = {};
|
|
669
|
+
let localVarHeaderParams = Object.assign({
|
|
670
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
671
|
+
}, this.defaultHeaders);
|
|
672
|
+
const produces = ['application/json'];
|
|
673
|
+
// give precedence to 'application/json'
|
|
674
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
675
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
676
|
+
}
|
|
677
|
+
else {
|
|
678
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
679
|
+
}
|
|
680
|
+
let localVarFormParams = {};
|
|
681
|
+
// verify required parameter 'createEnterpriseTrialUserRequest' is not null or undefined
|
|
682
|
+
if (createEnterpriseTrialUserRequest === null || createEnterpriseTrialUserRequest === undefined) {
|
|
683
|
+
throw new Error('Required parameter createEnterpriseTrialUserRequest was null or undefined when calling createEnterpriseTrialUser.');
|
|
684
|
+
}
|
|
685
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
686
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
687
|
+
let localVarUseFormData = false;
|
|
688
|
+
let localVarRequestOptions = {
|
|
689
|
+
method: 'POST',
|
|
690
|
+
qs: localVarQueryParameters,
|
|
691
|
+
headers: localVarHeaderParams,
|
|
692
|
+
uri: localVarPath,
|
|
693
|
+
useQuerystring: this._useQuerystring,
|
|
694
|
+
agentOptions: { keepAlive: false },
|
|
695
|
+
json: true,
|
|
696
|
+
body: models_1.ObjectSerializer.serialize(createEnterpriseTrialUserRequest, "CreateEnterpriseTrialUserRequest")
|
|
697
|
+
};
|
|
698
|
+
let authenticationPromise = Promise.resolve();
|
|
699
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
700
|
+
return authenticationPromise.then(() => {
|
|
701
|
+
if (Object.keys(localVarFormParams).length) {
|
|
702
|
+
if (localVarUseFormData) {
|
|
703
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
return new Promise((resolve, reject) => {
|
|
710
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
711
|
+
if (error) {
|
|
712
|
+
reject(error);
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateEnterpriseTrialResponse");
|
|
716
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
717
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
718
|
+
reject(new Error(body.error || errString));
|
|
719
|
+
}
|
|
720
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
721
|
+
resolve(body);
|
|
722
|
+
}
|
|
723
|
+
else {
|
|
724
|
+
reject(errString);
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
});
|
|
728
|
+
});
|
|
729
|
+
});
|
|
730
|
+
}
|
|
661
731
|
/**
|
|
662
732
|
* Creates an evaluation user and a new project, and redirects the user to the new project.
|
|
663
733
|
* @summary Create evaluation user
|
|
@@ -1213,8 +1283,8 @@ class UserApi {
|
|
|
1213
1283
|
});
|
|
1214
1284
|
}
|
|
1215
1285
|
/**
|
|
1216
|
-
* Tells whether
|
|
1217
|
-
* @summary Get user
|
|
1286
|
+
* Tells whether a user is registered and whether it needs to set its password.
|
|
1287
|
+
* @summary Get user registration state
|
|
1218
1288
|
* @param usernameOrEmail Username or email
|
|
1219
1289
|
*/
|
|
1220
1290
|
async getUserNeedToSetPassword(usernameOrEmail, options = { headers: {} }) {
|
|
@@ -1422,6 +1492,79 @@ class UserApi {
|
|
|
1422
1492
|
});
|
|
1423
1493
|
});
|
|
1424
1494
|
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Get a list of all enterprise trials for a user. This function is only available through a JWT token.
|
|
1497
|
+
* @summary Get enterprise trials
|
|
1498
|
+
* @param userId User ID
|
|
1499
|
+
*/
|
|
1500
|
+
async listEnterpriseTrialsUser(userId, options = { headers: {} }) {
|
|
1501
|
+
const localVarPath = this.basePath + '/api/users/{userId}/trials'
|
|
1502
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
1503
|
+
let localVarQueryParameters = {};
|
|
1504
|
+
let localVarHeaderParams = Object.assign({
|
|
1505
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
1506
|
+
}, this.defaultHeaders);
|
|
1507
|
+
const produces = ['application/json'];
|
|
1508
|
+
// give precedence to 'application/json'
|
|
1509
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
1510
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
1511
|
+
}
|
|
1512
|
+
else {
|
|
1513
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
1514
|
+
}
|
|
1515
|
+
let localVarFormParams = {};
|
|
1516
|
+
// verify required parameter 'userId' is not null or undefined
|
|
1517
|
+
if (userId === null || userId === undefined) {
|
|
1518
|
+
throw new Error('Required parameter userId was null or undefined when calling listEnterpriseTrialsUser.');
|
|
1519
|
+
}
|
|
1520
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
1521
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
1522
|
+
let localVarUseFormData = false;
|
|
1523
|
+
let localVarRequestOptions = {
|
|
1524
|
+
method: 'GET',
|
|
1525
|
+
qs: localVarQueryParameters,
|
|
1526
|
+
headers: localVarHeaderParams,
|
|
1527
|
+
uri: localVarPath,
|
|
1528
|
+
useQuerystring: this._useQuerystring,
|
|
1529
|
+
agentOptions: { keepAlive: false },
|
|
1530
|
+
json: true,
|
|
1531
|
+
};
|
|
1532
|
+
let authenticationPromise = Promise.resolve();
|
|
1533
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
1534
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
1535
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
1536
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
1537
|
+
return authenticationPromise.then(() => {
|
|
1538
|
+
if (Object.keys(localVarFormParams).length) {
|
|
1539
|
+
if (localVarUseFormData) {
|
|
1540
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
1541
|
+
}
|
|
1542
|
+
else {
|
|
1543
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
return new Promise((resolve, reject) => {
|
|
1547
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
1548
|
+
if (error) {
|
|
1549
|
+
reject(error);
|
|
1550
|
+
}
|
|
1551
|
+
else {
|
|
1552
|
+
body = models_1.ObjectSerializer.deserialize(body, "ListEnterpriseTrialsResponse");
|
|
1553
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
1554
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
1555
|
+
reject(new Error(body.error || errString));
|
|
1556
|
+
}
|
|
1557
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
1558
|
+
resolve(body);
|
|
1559
|
+
}
|
|
1560
|
+
else {
|
|
1561
|
+
reject(errString);
|
|
1562
|
+
}
|
|
1563
|
+
}
|
|
1564
|
+
});
|
|
1565
|
+
});
|
|
1566
|
+
});
|
|
1567
|
+
}
|
|
1425
1568
|
/**
|
|
1426
1569
|
* List all organizational storage buckets that the current user has access to. This function is only available through a JWT token.
|
|
1427
1570
|
* @summary Get buckets current user
|
|
@@ -2061,6 +2204,85 @@ class UserApi {
|
|
|
2061
2204
|
});
|
|
2062
2205
|
});
|
|
2063
2206
|
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Send an upgrade to Enterprise request to Edge Impulse.
|
|
2209
|
+
* @summary Send upgrade request
|
|
2210
|
+
* @param userId User ID
|
|
2211
|
+
* @param enterpriseUpgradeOrTrialExtensionRequest
|
|
2212
|
+
*/
|
|
2213
|
+
async sendUserUpgradeRequest(userId, enterpriseUpgradeOrTrialExtensionRequest, options = { headers: {} }) {
|
|
2214
|
+
const localVarPath = this.basePath + '/api/users/{userId}/upgrade'
|
|
2215
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
2216
|
+
let localVarQueryParameters = {};
|
|
2217
|
+
let localVarHeaderParams = Object.assign({
|
|
2218
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2219
|
+
}, this.defaultHeaders);
|
|
2220
|
+
const produces = ['application/json'];
|
|
2221
|
+
// give precedence to 'application/json'
|
|
2222
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2223
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2224
|
+
}
|
|
2225
|
+
else {
|
|
2226
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2227
|
+
}
|
|
2228
|
+
let localVarFormParams = {};
|
|
2229
|
+
// verify required parameter 'userId' is not null or undefined
|
|
2230
|
+
if (userId === null || userId === undefined) {
|
|
2231
|
+
throw new Error('Required parameter userId was null or undefined when calling sendUserUpgradeRequest.');
|
|
2232
|
+
}
|
|
2233
|
+
// verify required parameter 'enterpriseUpgradeOrTrialExtensionRequest' is not null or undefined
|
|
2234
|
+
if (enterpriseUpgradeOrTrialExtensionRequest === null || enterpriseUpgradeOrTrialExtensionRequest === undefined) {
|
|
2235
|
+
throw new Error('Required parameter enterpriseUpgradeOrTrialExtensionRequest was null or undefined when calling sendUserUpgradeRequest.');
|
|
2236
|
+
}
|
|
2237
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2238
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2239
|
+
let localVarUseFormData = false;
|
|
2240
|
+
let localVarRequestOptions = {
|
|
2241
|
+
method: 'POST',
|
|
2242
|
+
qs: localVarQueryParameters,
|
|
2243
|
+
headers: localVarHeaderParams,
|
|
2244
|
+
uri: localVarPath,
|
|
2245
|
+
useQuerystring: this._useQuerystring,
|
|
2246
|
+
agentOptions: { keepAlive: false },
|
|
2247
|
+
json: true,
|
|
2248
|
+
body: models_1.ObjectSerializer.serialize(enterpriseUpgradeOrTrialExtensionRequest, "EnterpriseUpgradeOrTrialExtensionRequest")
|
|
2249
|
+
};
|
|
2250
|
+
let authenticationPromise = Promise.resolve();
|
|
2251
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2252
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2253
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2254
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2255
|
+
return authenticationPromise.then(() => {
|
|
2256
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2257
|
+
if (localVarUseFormData) {
|
|
2258
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2259
|
+
}
|
|
2260
|
+
else {
|
|
2261
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
|
+
return new Promise((resolve, reject) => {
|
|
2265
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2266
|
+
if (error) {
|
|
2267
|
+
reject(error);
|
|
2268
|
+
}
|
|
2269
|
+
else {
|
|
2270
|
+
body = models_1.ObjectSerializer.deserialize(body, "GenericApiResponse");
|
|
2271
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2272
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2273
|
+
reject(new Error(body.error || errString));
|
|
2274
|
+
}
|
|
2275
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2276
|
+
resolve(body);
|
|
2277
|
+
}
|
|
2278
|
+
else {
|
|
2279
|
+
reject(errString);
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
});
|
|
2283
|
+
});
|
|
2284
|
+
});
|
|
2285
|
+
}
|
|
2064
2286
|
/**
|
|
2065
2287
|
* Set the password for a new SSO user. This function is only available through an SSO access token.
|
|
2066
2288
|
* @summary Set password for SSO user
|
|
@@ -2137,6 +2359,79 @@ class UserApi {
|
|
|
2137
2359
|
});
|
|
2138
2360
|
});
|
|
2139
2361
|
}
|
|
2362
|
+
/**
|
|
2363
|
+
* Create an enterprise trial for the current user. Users can only go through a trial once.
|
|
2364
|
+
* @summary Start enterprise trial
|
|
2365
|
+
* @param startEnterpriseTrialRequest
|
|
2366
|
+
*/
|
|
2367
|
+
async startEnterpriseTrial(startEnterpriseTrialRequest, options = { headers: {} }) {
|
|
2368
|
+
const localVarPath = this.basePath + '/api/user/trial';
|
|
2369
|
+
let localVarQueryParameters = {};
|
|
2370
|
+
let localVarHeaderParams = Object.assign({
|
|
2371
|
+
'User-Agent': 'edgeimpulse-api nodejs'
|
|
2372
|
+
}, this.defaultHeaders);
|
|
2373
|
+
const produces = ['application/json'];
|
|
2374
|
+
// give precedence to 'application/json'
|
|
2375
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
2376
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
2377
|
+
}
|
|
2378
|
+
else {
|
|
2379
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
2380
|
+
}
|
|
2381
|
+
let localVarFormParams = {};
|
|
2382
|
+
// verify required parameter 'startEnterpriseTrialRequest' is not null or undefined
|
|
2383
|
+
if (startEnterpriseTrialRequest === null || startEnterpriseTrialRequest === undefined) {
|
|
2384
|
+
throw new Error('Required parameter startEnterpriseTrialRequest was null or undefined when calling startEnterpriseTrial.');
|
|
2385
|
+
}
|
|
2386
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
2387
|
+
Object.assign(localVarHeaderParams, this.opts.extraHeaders);
|
|
2388
|
+
let localVarUseFormData = false;
|
|
2389
|
+
let localVarRequestOptions = {
|
|
2390
|
+
method: 'POST',
|
|
2391
|
+
qs: localVarQueryParameters,
|
|
2392
|
+
headers: localVarHeaderParams,
|
|
2393
|
+
uri: localVarPath,
|
|
2394
|
+
useQuerystring: this._useQuerystring,
|
|
2395
|
+
agentOptions: { keepAlive: false },
|
|
2396
|
+
json: true,
|
|
2397
|
+
body: models_1.ObjectSerializer.serialize(startEnterpriseTrialRequest, "StartEnterpriseTrialRequest")
|
|
2398
|
+
};
|
|
2399
|
+
let authenticationPromise = Promise.resolve();
|
|
2400
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.ApiKeyAuthentication.applyToRequest(localVarRequestOptions));
|
|
2401
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTAuthentication.applyToRequest(localVarRequestOptions));
|
|
2402
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.JWTHttpHeaderAuthentication.applyToRequest(localVarRequestOptions));
|
|
2403
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
2404
|
+
return authenticationPromise.then(() => {
|
|
2405
|
+
if (Object.keys(localVarFormParams).length) {
|
|
2406
|
+
if (localVarUseFormData) {
|
|
2407
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
2408
|
+
}
|
|
2409
|
+
else {
|
|
2410
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
2411
|
+
}
|
|
2412
|
+
}
|
|
2413
|
+
return new Promise((resolve, reject) => {
|
|
2414
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
2415
|
+
if (error) {
|
|
2416
|
+
reject(error);
|
|
2417
|
+
}
|
|
2418
|
+
else {
|
|
2419
|
+
body = models_1.ObjectSerializer.deserialize(body, "CreateEnterpriseTrialResponse");
|
|
2420
|
+
const errString = `Failed to call "${localVarPath}", returned ${response.statusCode}: ` + response.body;
|
|
2421
|
+
if (typeof body.success === 'boolean' && !body.success) {
|
|
2422
|
+
reject(new Error(body.error || errString));
|
|
2423
|
+
}
|
|
2424
|
+
else if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
2425
|
+
resolve(body);
|
|
2426
|
+
}
|
|
2427
|
+
else {
|
|
2428
|
+
reject(errString);
|
|
2429
|
+
}
|
|
2430
|
+
}
|
|
2431
|
+
});
|
|
2432
|
+
});
|
|
2433
|
+
});
|
|
2434
|
+
}
|
|
2140
2435
|
/**
|
|
2141
2436
|
* Update user properties such as name. This function is only available through a JWT token.
|
|
2142
2437
|
* @summary Update current user
|