@rasadov/lumoar-sdk 1.1.7 → 1.1.8
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/.openapi-generator/FILES +0 -1
- package/api.ts +36 -54
- package/dist/api.d.ts +24 -43
- package/dist/api.js +36 -22
- package/docs/UserApi.md +16 -8
- package/docs/VerifyEmailSchema.md +0 -4
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
package/api.ts
CHANGED
|
@@ -1711,25 +1711,6 @@ export interface SchedulerRequest {
|
|
|
1711
1711
|
*/
|
|
1712
1712
|
'user_ids_to_assign'?: Array<string>;
|
|
1713
1713
|
}
|
|
1714
|
-
/**
|
|
1715
|
-
* Schema for sending OTP
|
|
1716
|
-
* @export
|
|
1717
|
-
* @interface SendOTPSchema
|
|
1718
|
-
*/
|
|
1719
|
-
export interface SendOTPSchema {
|
|
1720
|
-
/**
|
|
1721
|
-
*
|
|
1722
|
-
* @type {string}
|
|
1723
|
-
* @memberof SendOTPSchema
|
|
1724
|
-
*/
|
|
1725
|
-
'email': string;
|
|
1726
|
-
/**
|
|
1727
|
-
*
|
|
1728
|
-
* @type {string}
|
|
1729
|
-
* @memberof SendOTPSchema
|
|
1730
|
-
*/
|
|
1731
|
-
'turnstile_token': string;
|
|
1732
|
-
}
|
|
1733
1714
|
/**
|
|
1734
1715
|
*
|
|
1735
1716
|
* @export
|
|
@@ -2233,24 +2214,12 @@ export interface ValidationErrorLocInner {
|
|
|
2233
2214
|
* @interface VerifyEmailSchema
|
|
2234
2215
|
*/
|
|
2235
2216
|
export interface VerifyEmailSchema {
|
|
2236
|
-
/**
|
|
2237
|
-
*
|
|
2238
|
-
* @type {string}
|
|
2239
|
-
* @memberof VerifyEmailSchema
|
|
2240
|
-
*/
|
|
2241
|
-
'email': string;
|
|
2242
2217
|
/**
|
|
2243
2218
|
*
|
|
2244
2219
|
* @type {string}
|
|
2245
2220
|
* @memberof VerifyEmailSchema
|
|
2246
2221
|
*/
|
|
2247
2222
|
'otp_code': string;
|
|
2248
|
-
/**
|
|
2249
|
-
*
|
|
2250
|
-
* @type {string}
|
|
2251
|
-
* @memberof VerifyEmailSchema
|
|
2252
|
-
*/
|
|
2253
|
-
'turnstile_token': string;
|
|
2254
2223
|
}
|
|
2255
2224
|
|
|
2256
2225
|
/**
|
|
@@ -7231,13 +7200,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7231
7200
|
/**
|
|
7232
7201
|
*
|
|
7233
7202
|
* @summary Send Verification Email
|
|
7234
|
-
* @param {
|
|
7203
|
+
* @param {string} [authorization]
|
|
7204
|
+
* @param {string} [sessionId]
|
|
7235
7205
|
* @param {*} [options] Override http request option.
|
|
7236
7206
|
* @throws {RequiredError}
|
|
7237
7207
|
*/
|
|
7238
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: async (
|
|
7239
|
-
// verify required parameter 'sendOTPSchema' is not null or undefined
|
|
7240
|
-
assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema)
|
|
7208
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: async (authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7241
7209
|
const localVarPath = `/v1/user/send-verification-email`;
|
|
7242
7210
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7243
7211
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -7252,12 +7220,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7252
7220
|
|
|
7253
7221
|
|
|
7254
7222
|
|
|
7255
|
-
|
|
7256
|
-
|
|
7223
|
+
if (authorization != null) {
|
|
7224
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7225
|
+
}
|
|
7257
7226
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7258
7227
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7259
7228
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
7260
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration)
|
|
7261
7229
|
|
|
7262
7230
|
return {
|
|
7263
7231
|
url: toPathString(localVarUrlObj),
|
|
@@ -7305,10 +7273,12 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7305
7273
|
*
|
|
7306
7274
|
* @summary Verify Email
|
|
7307
7275
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7276
|
+
* @param {string} [authorization]
|
|
7277
|
+
* @param {string} [sessionId]
|
|
7308
7278
|
* @param {*} [options] Override http request option.
|
|
7309
7279
|
* @throws {RequiredError}
|
|
7310
7280
|
*/
|
|
7311
|
-
verifyEmailV1UserVerifyEmailPost: async (verifyEmailSchema: VerifyEmailSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7281
|
+
verifyEmailV1UserVerifyEmailPost: async (verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
7312
7282
|
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
7313
7283
|
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema)
|
|
7314
7284
|
const localVarPath = `/v1/user/verify-email`;
|
|
@@ -7327,6 +7297,9 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
|
|
|
7327
7297
|
|
|
7328
7298
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7329
7299
|
|
|
7300
|
+
if (authorization != null) {
|
|
7301
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
7302
|
+
}
|
|
7330
7303
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
7331
7304
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7332
7305
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -7442,12 +7415,13 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7442
7415
|
/**
|
|
7443
7416
|
*
|
|
7444
7417
|
* @summary Send Verification Email
|
|
7445
|
-
* @param {
|
|
7418
|
+
* @param {string} [authorization]
|
|
7419
|
+
* @param {string} [sessionId]
|
|
7446
7420
|
* @param {*} [options] Override http request option.
|
|
7447
7421
|
* @throws {RequiredError}
|
|
7448
7422
|
*/
|
|
7449
|
-
async sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7450
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7423
|
+
async sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7424
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options);
|
|
7451
7425
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7452
7426
|
const localVarOperationServerBasePath = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7453
7427
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7470,11 +7444,13 @@ export const UserApiFp = function(configuration?: Configuration) {
|
|
|
7470
7444
|
*
|
|
7471
7445
|
* @summary Verify Email
|
|
7472
7446
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7447
|
+
* @param {string} [authorization]
|
|
7448
|
+
* @param {string} [sessionId]
|
|
7473
7449
|
* @param {*} [options] Override http request option.
|
|
7474
7450
|
* @throws {RequiredError}
|
|
7475
7451
|
*/
|
|
7476
|
-
async verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7477
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
|
|
7452
|
+
async verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
|
|
7453
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options);
|
|
7478
7454
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
7479
7455
|
const localVarOperationServerBasePath = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']?.[localVarOperationServerIndex]?.url;
|
|
7480
7456
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -7563,12 +7539,13 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7563
7539
|
/**
|
|
7564
7540
|
*
|
|
7565
7541
|
* @summary Send Verification Email
|
|
7566
|
-
* @param {
|
|
7542
|
+
* @param {string} [authorization]
|
|
7543
|
+
* @param {string} [sessionId]
|
|
7567
7544
|
* @param {*} [options] Override http request option.
|
|
7568
7545
|
* @throws {RequiredError}
|
|
7569
7546
|
*/
|
|
7570
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7571
|
-
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7547
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7548
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7572
7549
|
},
|
|
7573
7550
|
/**
|
|
7574
7551
|
*
|
|
@@ -7585,11 +7562,13 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
|
|
|
7585
7562
|
*
|
|
7586
7563
|
* @summary Verify Email
|
|
7587
7564
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7565
|
+
* @param {string} [authorization]
|
|
7566
|
+
* @param {string} [sessionId]
|
|
7588
7567
|
* @param {*} [options] Override http request option.
|
|
7589
7568
|
* @throws {RequiredError}
|
|
7590
7569
|
*/
|
|
7591
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7592
|
-
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
|
|
7570
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
|
|
7571
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
7593
7572
|
},
|
|
7594
7573
|
};
|
|
7595
7574
|
};
|
|
@@ -7689,13 +7668,14 @@ export class UserApi extends BaseAPI {
|
|
|
7689
7668
|
/**
|
|
7690
7669
|
*
|
|
7691
7670
|
* @summary Send Verification Email
|
|
7692
|
-
* @param {
|
|
7671
|
+
* @param {string} [authorization]
|
|
7672
|
+
* @param {string} [sessionId]
|
|
7693
7673
|
* @param {*} [options] Override http request option.
|
|
7694
7674
|
* @throws {RequiredError}
|
|
7695
7675
|
* @memberof UserApi
|
|
7696
7676
|
*/
|
|
7697
|
-
public sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7698
|
-
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
7677
|
+
public sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7678
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
7699
7679
|
}
|
|
7700
7680
|
|
|
7701
7681
|
/**
|
|
@@ -7715,12 +7695,14 @@ export class UserApi extends BaseAPI {
|
|
|
7715
7695
|
*
|
|
7716
7696
|
* @summary Verify Email
|
|
7717
7697
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
7698
|
+
* @param {string} [authorization]
|
|
7699
|
+
* @param {string} [sessionId]
|
|
7718
7700
|
* @param {*} [options] Override http request option.
|
|
7719
7701
|
* @throws {RequiredError}
|
|
7720
7702
|
* @memberof UserApi
|
|
7721
7703
|
*/
|
|
7722
|
-
public verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig) {
|
|
7723
|
-
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
|
|
7704
|
+
public verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
|
|
7705
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
7724
7706
|
}
|
|
7725
7707
|
}
|
|
7726
7708
|
|
package/dist/api.d.ts
CHANGED
|
@@ -1679,25 +1679,6 @@ export interface SchedulerRequest {
|
|
|
1679
1679
|
*/
|
|
1680
1680
|
'user_ids_to_assign'?: Array<string>;
|
|
1681
1681
|
}
|
|
1682
|
-
/**
|
|
1683
|
-
* Schema for sending OTP
|
|
1684
|
-
* @export
|
|
1685
|
-
* @interface SendOTPSchema
|
|
1686
|
-
*/
|
|
1687
|
-
export interface SendOTPSchema {
|
|
1688
|
-
/**
|
|
1689
|
-
*
|
|
1690
|
-
* @type {string}
|
|
1691
|
-
* @memberof SendOTPSchema
|
|
1692
|
-
*/
|
|
1693
|
-
'email': string;
|
|
1694
|
-
/**
|
|
1695
|
-
*
|
|
1696
|
-
* @type {string}
|
|
1697
|
-
* @memberof SendOTPSchema
|
|
1698
|
-
*/
|
|
1699
|
-
'turnstile_token': string;
|
|
1700
|
-
}
|
|
1701
1682
|
/**
|
|
1702
1683
|
*
|
|
1703
1684
|
* @export
|
|
@@ -2185,24 +2166,12 @@ export interface ValidationErrorLocInner {
|
|
|
2185
2166
|
* @interface VerifyEmailSchema
|
|
2186
2167
|
*/
|
|
2187
2168
|
export interface VerifyEmailSchema {
|
|
2188
|
-
/**
|
|
2189
|
-
*
|
|
2190
|
-
* @type {string}
|
|
2191
|
-
* @memberof VerifyEmailSchema
|
|
2192
|
-
*/
|
|
2193
|
-
'email': string;
|
|
2194
2169
|
/**
|
|
2195
2170
|
*
|
|
2196
2171
|
* @type {string}
|
|
2197
2172
|
* @memberof VerifyEmailSchema
|
|
2198
2173
|
*/
|
|
2199
2174
|
'otp_code': string;
|
|
2200
|
-
/**
|
|
2201
|
-
*
|
|
2202
|
-
* @type {string}
|
|
2203
|
-
* @memberof VerifyEmailSchema
|
|
2204
|
-
*/
|
|
2205
|
-
'turnstile_token': string;
|
|
2206
2175
|
}
|
|
2207
2176
|
/**
|
|
2208
2177
|
* AuditLogsApi - axios parameter creator
|
|
@@ -4700,11 +4669,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4700
4669
|
/**
|
|
4701
4670
|
*
|
|
4702
4671
|
* @summary Send Verification Email
|
|
4703
|
-
* @param {
|
|
4672
|
+
* @param {string} [authorization]
|
|
4673
|
+
* @param {string} [sessionId]
|
|
4704
4674
|
* @param {*} [options] Override http request option.
|
|
4705
4675
|
* @throws {RequiredError}
|
|
4706
4676
|
*/
|
|
4707
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: (
|
|
4677
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4708
4678
|
/**
|
|
4709
4679
|
*
|
|
4710
4680
|
* @summary Update User
|
|
@@ -4718,10 +4688,12 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
|
|
|
4718
4688
|
*
|
|
4719
4689
|
* @summary Verify Email
|
|
4720
4690
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4691
|
+
* @param {string} [authorization]
|
|
4692
|
+
* @param {string} [sessionId]
|
|
4721
4693
|
* @param {*} [options] Override http request option.
|
|
4722
4694
|
* @throws {RequiredError}
|
|
4723
4695
|
*/
|
|
4724
|
-
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4696
|
+
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
4725
4697
|
};
|
|
4726
4698
|
/**
|
|
4727
4699
|
* UserApi - functional programming interface
|
|
@@ -4788,11 +4760,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4788
4760
|
/**
|
|
4789
4761
|
*
|
|
4790
4762
|
* @summary Send Verification Email
|
|
4791
|
-
* @param {
|
|
4763
|
+
* @param {string} [authorization]
|
|
4764
|
+
* @param {string} [sessionId]
|
|
4792
4765
|
* @param {*} [options] Override http request option.
|
|
4793
4766
|
* @throws {RequiredError}
|
|
4794
4767
|
*/
|
|
4795
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
4768
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4796
4769
|
/**
|
|
4797
4770
|
*
|
|
4798
4771
|
* @summary Update User
|
|
@@ -4806,10 +4779,12 @@ export declare const UserApiFp: (configuration?: Configuration) => {
|
|
|
4806
4779
|
*
|
|
4807
4780
|
* @summary Verify Email
|
|
4808
4781
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4782
|
+
* @param {string} [authorization]
|
|
4783
|
+
* @param {string} [sessionId]
|
|
4809
4784
|
* @param {*} [options] Override http request option.
|
|
4810
4785
|
* @throws {RequiredError}
|
|
4811
4786
|
*/
|
|
4812
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4787
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
|
|
4813
4788
|
};
|
|
4814
4789
|
/**
|
|
4815
4790
|
* UserApi - factory interface
|
|
@@ -4876,11 +4851,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4876
4851
|
/**
|
|
4877
4852
|
*
|
|
4878
4853
|
* @summary Send Verification Email
|
|
4879
|
-
* @param {
|
|
4854
|
+
* @param {string} [authorization]
|
|
4855
|
+
* @param {string} [sessionId]
|
|
4880
4856
|
* @param {*} [options] Override http request option.
|
|
4881
4857
|
* @throws {RequiredError}
|
|
4882
4858
|
*/
|
|
4883
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
4859
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4884
4860
|
/**
|
|
4885
4861
|
*
|
|
4886
4862
|
* @summary Update User
|
|
@@ -4894,10 +4870,12 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
|
|
|
4894
4870
|
*
|
|
4895
4871
|
* @summary Verify Email
|
|
4896
4872
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4873
|
+
* @param {string} [authorization]
|
|
4874
|
+
* @param {string} [sessionId]
|
|
4897
4875
|
* @param {*} [options] Override http request option.
|
|
4898
4876
|
* @throws {RequiredError}
|
|
4899
4877
|
*/
|
|
4900
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4878
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
|
|
4901
4879
|
};
|
|
4902
4880
|
/**
|
|
4903
4881
|
* UserApi - object-oriented interface
|
|
@@ -4973,12 +4951,13 @@ export declare class UserApi extends BaseAPI {
|
|
|
4973
4951
|
/**
|
|
4974
4952
|
*
|
|
4975
4953
|
* @summary Send Verification Email
|
|
4976
|
-
* @param {
|
|
4954
|
+
* @param {string} [authorization]
|
|
4955
|
+
* @param {string} [sessionId]
|
|
4977
4956
|
* @param {*} [options] Override http request option.
|
|
4978
4957
|
* @throws {RequiredError}
|
|
4979
4958
|
* @memberof UserApi
|
|
4980
4959
|
*/
|
|
4981
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
4960
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
4982
4961
|
/**
|
|
4983
4962
|
*
|
|
4984
4963
|
* @summary Update User
|
|
@@ -4993,9 +4972,11 @@ export declare class UserApi extends BaseAPI {
|
|
|
4993
4972
|
*
|
|
4994
4973
|
* @summary Verify Email
|
|
4995
4974
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4975
|
+
* @param {string} [authorization]
|
|
4976
|
+
* @param {string} [sessionId]
|
|
4996
4977
|
* @param {*} [options] Override http request option.
|
|
4997
4978
|
* @throws {RequiredError}
|
|
4998
4979
|
* @memberof UserApi
|
|
4999
4980
|
*/
|
|
5000
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
4981
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
|
|
5001
4982
|
}
|
package/dist/api.js
CHANGED
|
@@ -4789,13 +4789,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4789
4789
|
/**
|
|
4790
4790
|
*
|
|
4791
4791
|
* @summary Send Verification Email
|
|
4792
|
-
* @param {
|
|
4792
|
+
* @param {string} [authorization]
|
|
4793
|
+
* @param {string} [sessionId]
|
|
4793
4794
|
* @param {*} [options] Override http request option.
|
|
4794
4795
|
* @throws {RequiredError}
|
|
4795
4796
|
*/
|
|
4796
|
-
sendVerificationEmailV1UserSendVerificationEmailPost: (
|
|
4797
|
-
// verify required parameter 'sendOTPSchema' is not null or undefined
|
|
4798
|
-
assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema);
|
|
4797
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
4799
4798
|
const localVarPath = `/v1/user/send-verification-email`;
|
|
4800
4799
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4801
4800
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4806,11 +4805,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4806
4805
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4807
4806
|
const localVarHeaderParameter = {};
|
|
4808
4807
|
const localVarQueryParameter = {};
|
|
4809
|
-
|
|
4808
|
+
if (authorization != null) {
|
|
4809
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4810
|
+
}
|
|
4810
4811
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4811
4812
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4812
4813
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4813
|
-
localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration);
|
|
4814
4814
|
return {
|
|
4815
4815
|
url: toPathString(localVarUrlObj),
|
|
4816
4816
|
options: localVarRequestOptions,
|
|
@@ -4851,10 +4851,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4851
4851
|
*
|
|
4852
4852
|
* @summary Verify Email
|
|
4853
4853
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4854
|
+
* @param {string} [authorization]
|
|
4855
|
+
* @param {string} [sessionId]
|
|
4854
4856
|
* @param {*} [options] Override http request option.
|
|
4855
4857
|
* @throws {RequiredError}
|
|
4856
4858
|
*/
|
|
4857
|
-
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema_1, ...args_1) => __awaiter(this, [verifyEmailSchema_1, ...args_1], void 0, function* (verifyEmailSchema, options = {}) {
|
|
4859
|
+
verifyEmailV1UserVerifyEmailPost: (verifyEmailSchema_1, authorization_1, sessionId_1, ...args_1) => __awaiter(this, [verifyEmailSchema_1, authorization_1, sessionId_1, ...args_1], void 0, function* (verifyEmailSchema, authorization, sessionId, options = {}) {
|
|
4858
4860
|
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
4859
4861
|
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema);
|
|
4860
4862
|
const localVarPath = `/v1/user/verify-email`;
|
|
@@ -4868,6 +4870,9 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4868
4870
|
const localVarHeaderParameter = {};
|
|
4869
4871
|
const localVarQueryParameter = {};
|
|
4870
4872
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4873
|
+
if (authorization != null) {
|
|
4874
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4875
|
+
}
|
|
4871
4876
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4872
4877
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4873
4878
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5002,14 +5007,15 @@ export const UserApiFp = function (configuration) {
|
|
|
5002
5007
|
/**
|
|
5003
5008
|
*
|
|
5004
5009
|
* @summary Send Verification Email
|
|
5005
|
-
* @param {
|
|
5010
|
+
* @param {string} [authorization]
|
|
5011
|
+
* @param {string} [sessionId]
|
|
5006
5012
|
* @param {*} [options] Override http request option.
|
|
5007
5013
|
* @throws {RequiredError}
|
|
5008
5014
|
*/
|
|
5009
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5015
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5010
5016
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5011
5017
|
var _a, _b, _c;
|
|
5012
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5018
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options);
|
|
5013
5019
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5014
5020
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5015
5021
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5036,13 +5042,15 @@ export const UserApiFp = function (configuration) {
|
|
|
5036
5042
|
*
|
|
5037
5043
|
* @summary Verify Email
|
|
5038
5044
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5045
|
+
* @param {string} [authorization]
|
|
5046
|
+
* @param {string} [sessionId]
|
|
5039
5047
|
* @param {*} [options] Override http request option.
|
|
5040
5048
|
* @throws {RequiredError}
|
|
5041
5049
|
*/
|
|
5042
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5050
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5043
5051
|
return __awaiter(this, void 0, void 0, function* () {
|
|
5044
5052
|
var _a, _b, _c;
|
|
5045
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
|
|
5053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options);
|
|
5046
5054
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5047
5055
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5048
5056
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5131,12 +5139,13 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5131
5139
|
/**
|
|
5132
5140
|
*
|
|
5133
5141
|
* @summary Send Verification Email
|
|
5134
|
-
* @param {
|
|
5142
|
+
* @param {string} [authorization]
|
|
5143
|
+
* @param {string} [sessionId]
|
|
5135
5144
|
* @param {*} [options] Override http request option.
|
|
5136
5145
|
* @throws {RequiredError}
|
|
5137
5146
|
*/
|
|
5138
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5139
|
-
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5147
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5148
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5140
5149
|
},
|
|
5141
5150
|
/**
|
|
5142
5151
|
*
|
|
@@ -5153,11 +5162,13 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
5153
5162
|
*
|
|
5154
5163
|
* @summary Verify Email
|
|
5155
5164
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5165
|
+
* @param {string} [authorization]
|
|
5166
|
+
* @param {string} [sessionId]
|
|
5156
5167
|
* @param {*} [options] Override http request option.
|
|
5157
5168
|
* @throws {RequiredError}
|
|
5158
5169
|
*/
|
|
5159
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5160
|
-
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
|
|
5170
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5171
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5161
5172
|
},
|
|
5162
5173
|
};
|
|
5163
5174
|
};
|
|
@@ -5249,13 +5260,14 @@ export class UserApi extends BaseAPI {
|
|
|
5249
5260
|
/**
|
|
5250
5261
|
*
|
|
5251
5262
|
* @summary Send Verification Email
|
|
5252
|
-
* @param {
|
|
5263
|
+
* @param {string} [authorization]
|
|
5264
|
+
* @param {string} [sessionId]
|
|
5253
5265
|
* @param {*} [options] Override http request option.
|
|
5254
5266
|
* @throws {RequiredError}
|
|
5255
5267
|
* @memberof UserApi
|
|
5256
5268
|
*/
|
|
5257
|
-
sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5258
|
-
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
5269
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5270
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5259
5271
|
}
|
|
5260
5272
|
/**
|
|
5261
5273
|
*
|
|
@@ -5273,11 +5285,13 @@ export class UserApi extends BaseAPI {
|
|
|
5273
5285
|
*
|
|
5274
5286
|
* @summary Verify Email
|
|
5275
5287
|
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5288
|
+
* @param {string} [authorization]
|
|
5289
|
+
* @param {string} [sessionId]
|
|
5276
5290
|
* @param {*} [options] Override http request option.
|
|
5277
5291
|
* @throws {RequiredError}
|
|
5278
5292
|
* @memberof UserApi
|
|
5279
5293
|
*/
|
|
5280
|
-
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options) {
|
|
5281
|
-
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5294
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5295
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5282
5296
|
}
|
|
5283
5297
|
}
|
package/docs/UserApi.md
CHANGED
|
@@ -380,7 +380,7 @@ No authorization required
|
|
|
380
380
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
381
381
|
|
|
382
382
|
# **sendVerificationEmailV1UserSendVerificationEmailPost**
|
|
383
|
-
> Details sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
383
|
+
> Details sendVerificationEmailV1UserSendVerificationEmailPost()
|
|
384
384
|
|
|
385
385
|
|
|
386
386
|
### Example
|
|
@@ -388,17 +388,18 @@ No authorization required
|
|
|
388
388
|
```typescript
|
|
389
389
|
import {
|
|
390
390
|
UserApi,
|
|
391
|
-
Configuration
|
|
392
|
-
SendOTPSchema
|
|
391
|
+
Configuration
|
|
393
392
|
} from './api';
|
|
394
393
|
|
|
395
394
|
const configuration = new Configuration();
|
|
396
395
|
const apiInstance = new UserApi(configuration);
|
|
397
396
|
|
|
398
|
-
let
|
|
397
|
+
let authorization: string; // (optional) (default to undefined)
|
|
398
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
399
399
|
|
|
400
400
|
const { status, data } = await apiInstance.sendVerificationEmailV1UserSendVerificationEmailPost(
|
|
401
|
-
|
|
401
|
+
authorization,
|
|
402
|
+
sessionId
|
|
402
403
|
);
|
|
403
404
|
```
|
|
404
405
|
|
|
@@ -406,7 +407,8 @@ const { status, data } = await apiInstance.sendVerificationEmailV1UserSendVerifi
|
|
|
406
407
|
|
|
407
408
|
|Name | Type | Description | Notes|
|
|
408
409
|
|------------- | ------------- | ------------- | -------------|
|
|
409
|
-
| **
|
|
410
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
411
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
410
412
|
|
|
411
413
|
|
|
412
414
|
### Return type
|
|
@@ -419,7 +421,7 @@ No authorization required
|
|
|
419
421
|
|
|
420
422
|
### HTTP request headers
|
|
421
423
|
|
|
422
|
-
- **Content-Type**:
|
|
424
|
+
- **Content-Type**: Not defined
|
|
423
425
|
- **Accept**: application/json
|
|
424
426
|
|
|
425
427
|
|
|
@@ -503,9 +505,13 @@ const configuration = new Configuration();
|
|
|
503
505
|
const apiInstance = new UserApi(configuration);
|
|
504
506
|
|
|
505
507
|
let verifyEmailSchema: VerifyEmailSchema; //
|
|
508
|
+
let authorization: string; // (optional) (default to undefined)
|
|
509
|
+
let sessionId: string; // (optional) (default to undefined)
|
|
506
510
|
|
|
507
511
|
const { status, data } = await apiInstance.verifyEmailV1UserVerifyEmailPost(
|
|
508
|
-
verifyEmailSchema
|
|
512
|
+
verifyEmailSchema,
|
|
513
|
+
authorization,
|
|
514
|
+
sessionId
|
|
509
515
|
);
|
|
510
516
|
```
|
|
511
517
|
|
|
@@ -514,6 +520,8 @@ const { status, data } = await apiInstance.verifyEmailV1UserVerifyEmailPost(
|
|
|
514
520
|
|Name | Type | Description | Notes|
|
|
515
521
|
|------------- | ------------- | ------------- | -------------|
|
|
516
522
|
| **verifyEmailSchema** | **VerifyEmailSchema**| | |
|
|
523
|
+
| **authorization** | [**string**] | | (optional) defaults to undefined|
|
|
524
|
+
| **sessionId** | [**string**] | | (optional) defaults to undefined|
|
|
517
525
|
|
|
518
526
|
|
|
519
527
|
### Return type
|
|
@@ -6,9 +6,7 @@ Schema for email verification
|
|
|
6
6
|
|
|
7
7
|
Name | Type | Description | Notes
|
|
8
8
|
------------ | ------------- | ------------- | -------------
|
|
9
|
-
**email** | **string** | | [default to undefined]
|
|
10
9
|
**otp_code** | **string** | | [default to undefined]
|
|
11
|
-
**turnstile_token** | **string** | | [default to undefined]
|
|
12
10
|
|
|
13
11
|
## Example
|
|
14
12
|
|
|
@@ -16,9 +14,7 @@ Name | Type | Description | Notes
|
|
|
16
14
|
import { VerifyEmailSchema } from './api';
|
|
17
15
|
|
|
18
16
|
const instance: VerifyEmailSchema = {
|
|
19
|
-
email,
|
|
20
17
|
otp_code,
|
|
21
|
-
turnstile_token,
|
|
22
18
|
};
|
|
23
19
|
```
|
|
24
20
|
|