@rasadov/lumoar-sdk 1.1.6 → 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 +4 -0
- package/api.ts +476 -20
- package/dist/api.d.ts +285 -20
- package/dist/api.js +369 -20
- package/docs/ForgotPasswordSchema.md +23 -0
- package/docs/ResendOTPSchema.md +25 -0
- package/docs/ResetPasswordSchema.md +27 -0
- package/docs/SendOTPSchema.md +23 -0
- package/docs/UserApi.md +273 -5
- package/docs/VerifyEmailSchema.md +21 -0
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -4588,7 +4588,7 @@ export const ListTasksForUserV1TasksUserGetOrderEnum = {
|
|
|
4588
4588
|
export const UserApiAxiosParamCreator = function (configuration) {
|
|
4589
4589
|
return {
|
|
4590
4590
|
/**
|
|
4591
|
-
*
|
|
4591
|
+
*
|
|
4592
4592
|
* @summary Change Password
|
|
4593
4593
|
* @param {UpdatePassword} updatePassword
|
|
4594
4594
|
* @param {string | null} [sessionId]
|
|
@@ -4619,7 +4619,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4619
4619
|
};
|
|
4620
4620
|
}),
|
|
4621
4621
|
/**
|
|
4622
|
-
*
|
|
4622
|
+
*
|
|
4623
4623
|
* @summary Delete User
|
|
4624
4624
|
* @param {string | null} [sessionId]
|
|
4625
4625
|
* @param {*} [options] Override http request option.
|
|
@@ -4645,7 +4645,37 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4645
4645
|
};
|
|
4646
4646
|
}),
|
|
4647
4647
|
/**
|
|
4648
|
-
*
|
|
4648
|
+
*
|
|
4649
|
+
* @summary Forgot Password
|
|
4650
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
4651
|
+
* @param {*} [options] Override http request option.
|
|
4652
|
+
* @throws {RequiredError}
|
|
4653
|
+
*/
|
|
4654
|
+
forgotPasswordV1UserForgotPasswordPost: (forgotPasswordSchema_1, ...args_1) => __awaiter(this, [forgotPasswordSchema_1, ...args_1], void 0, function* (forgotPasswordSchema, options = {}) {
|
|
4655
|
+
// verify required parameter 'forgotPasswordSchema' is not null or undefined
|
|
4656
|
+
assertParamExists('forgotPasswordV1UserForgotPasswordPost', 'forgotPasswordSchema', forgotPasswordSchema);
|
|
4657
|
+
const localVarPath = `/v1/user/forgot-password`;
|
|
4658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4659
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4660
|
+
let baseOptions;
|
|
4661
|
+
if (configuration) {
|
|
4662
|
+
baseOptions = configuration.baseOptions;
|
|
4663
|
+
}
|
|
4664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4665
|
+
const localVarHeaderParameter = {};
|
|
4666
|
+
const localVarQueryParameter = {};
|
|
4667
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4668
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4669
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4670
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4671
|
+
localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordSchema, localVarRequestOptions, configuration);
|
|
4672
|
+
return {
|
|
4673
|
+
url: toPathString(localVarUrlObj),
|
|
4674
|
+
options: localVarRequestOptions,
|
|
4675
|
+
};
|
|
4676
|
+
}),
|
|
4677
|
+
/**
|
|
4678
|
+
*
|
|
4649
4679
|
* @summary Get User Dash
|
|
4650
4680
|
* @param {string | null} [sessionId]
|
|
4651
4681
|
* @param {*} [options] Override http request option.
|
|
@@ -4671,7 +4701,7 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4671
4701
|
};
|
|
4672
4702
|
}),
|
|
4673
4703
|
/**
|
|
4674
|
-
*
|
|
4704
|
+
*
|
|
4675
4705
|
* @summary Get User
|
|
4676
4706
|
* @param {string | null} [sessionId]
|
|
4677
4707
|
* @param {*} [options] Override http request option.
|
|
@@ -4697,7 +4727,97 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4697
4727
|
};
|
|
4698
4728
|
}),
|
|
4699
4729
|
/**
|
|
4700
|
-
*
|
|
4730
|
+
*
|
|
4731
|
+
* @summary Resend Otp
|
|
4732
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
4733
|
+
* @param {*} [options] Override http request option.
|
|
4734
|
+
* @throws {RequiredError}
|
|
4735
|
+
*/
|
|
4736
|
+
resendOtpV1UserResendOtpPost: (resendOTPSchema_1, ...args_1) => __awaiter(this, [resendOTPSchema_1, ...args_1], void 0, function* (resendOTPSchema, options = {}) {
|
|
4737
|
+
// verify required parameter 'resendOTPSchema' is not null or undefined
|
|
4738
|
+
assertParamExists('resendOtpV1UserResendOtpPost', 'resendOTPSchema', resendOTPSchema);
|
|
4739
|
+
const localVarPath = `/v1/user/resend-otp`;
|
|
4740
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4741
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4742
|
+
let baseOptions;
|
|
4743
|
+
if (configuration) {
|
|
4744
|
+
baseOptions = configuration.baseOptions;
|
|
4745
|
+
}
|
|
4746
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4747
|
+
const localVarHeaderParameter = {};
|
|
4748
|
+
const localVarQueryParameter = {};
|
|
4749
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4750
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4751
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4752
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4753
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resendOTPSchema, localVarRequestOptions, configuration);
|
|
4754
|
+
return {
|
|
4755
|
+
url: toPathString(localVarUrlObj),
|
|
4756
|
+
options: localVarRequestOptions,
|
|
4757
|
+
};
|
|
4758
|
+
}),
|
|
4759
|
+
/**
|
|
4760
|
+
*
|
|
4761
|
+
* @summary Reset Password
|
|
4762
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
4763
|
+
* @param {*} [options] Override http request option.
|
|
4764
|
+
* @throws {RequiredError}
|
|
4765
|
+
*/
|
|
4766
|
+
resetPasswordV1UserResetPasswordPost: (resetPasswordSchema_1, ...args_1) => __awaiter(this, [resetPasswordSchema_1, ...args_1], void 0, function* (resetPasswordSchema, options = {}) {
|
|
4767
|
+
// verify required parameter 'resetPasswordSchema' is not null or undefined
|
|
4768
|
+
assertParamExists('resetPasswordV1UserResetPasswordPost', 'resetPasswordSchema', resetPasswordSchema);
|
|
4769
|
+
const localVarPath = `/v1/user/reset-password`;
|
|
4770
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4771
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4772
|
+
let baseOptions;
|
|
4773
|
+
if (configuration) {
|
|
4774
|
+
baseOptions = configuration.baseOptions;
|
|
4775
|
+
}
|
|
4776
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4777
|
+
const localVarHeaderParameter = {};
|
|
4778
|
+
const localVarQueryParameter = {};
|
|
4779
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4780
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4781
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4782
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4783
|
+
localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordSchema, localVarRequestOptions, configuration);
|
|
4784
|
+
return {
|
|
4785
|
+
url: toPathString(localVarUrlObj),
|
|
4786
|
+
options: localVarRequestOptions,
|
|
4787
|
+
};
|
|
4788
|
+
}),
|
|
4789
|
+
/**
|
|
4790
|
+
*
|
|
4791
|
+
* @summary Send Verification Email
|
|
4792
|
+
* @param {string} [authorization]
|
|
4793
|
+
* @param {string} [sessionId]
|
|
4794
|
+
* @param {*} [options] Override http request option.
|
|
4795
|
+
* @throws {RequiredError}
|
|
4796
|
+
*/
|
|
4797
|
+
sendVerificationEmailV1UserSendVerificationEmailPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
|
|
4798
|
+
const localVarPath = `/v1/user/send-verification-email`;
|
|
4799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4801
|
+
let baseOptions;
|
|
4802
|
+
if (configuration) {
|
|
4803
|
+
baseOptions = configuration.baseOptions;
|
|
4804
|
+
}
|
|
4805
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4806
|
+
const localVarHeaderParameter = {};
|
|
4807
|
+
const localVarQueryParameter = {};
|
|
4808
|
+
if (authorization != null) {
|
|
4809
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4810
|
+
}
|
|
4811
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4812
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4813
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4814
|
+
return {
|
|
4815
|
+
url: toPathString(localVarUrlObj),
|
|
4816
|
+
options: localVarRequestOptions,
|
|
4817
|
+
};
|
|
4818
|
+
}),
|
|
4819
|
+
/**
|
|
4820
|
+
*
|
|
4701
4821
|
* @summary Update User
|
|
4702
4822
|
* @param {UserUpdate} userUpdate
|
|
4703
4823
|
* @param {string | null} [sessionId]
|
|
@@ -4727,6 +4847,41 @@ export const UserApiAxiosParamCreator = function (configuration) {
|
|
|
4727
4847
|
options: localVarRequestOptions,
|
|
4728
4848
|
};
|
|
4729
4849
|
}),
|
|
4850
|
+
/**
|
|
4851
|
+
*
|
|
4852
|
+
* @summary Verify Email
|
|
4853
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
4854
|
+
* @param {string} [authorization]
|
|
4855
|
+
* @param {string} [sessionId]
|
|
4856
|
+
* @param {*} [options] Override http request option.
|
|
4857
|
+
* @throws {RequiredError}
|
|
4858
|
+
*/
|
|
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 = {}) {
|
|
4860
|
+
// verify required parameter 'verifyEmailSchema' is not null or undefined
|
|
4861
|
+
assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema);
|
|
4862
|
+
const localVarPath = `/v1/user/verify-email`;
|
|
4863
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4864
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4865
|
+
let baseOptions;
|
|
4866
|
+
if (configuration) {
|
|
4867
|
+
baseOptions = configuration.baseOptions;
|
|
4868
|
+
}
|
|
4869
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4870
|
+
const localVarHeaderParameter = {};
|
|
4871
|
+
const localVarQueryParameter = {};
|
|
4872
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4873
|
+
if (authorization != null) {
|
|
4874
|
+
localVarHeaderParameter['Authorization'] = String(authorization);
|
|
4875
|
+
}
|
|
4876
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4877
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4878
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4879
|
+
localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailSchema, localVarRequestOptions, configuration);
|
|
4880
|
+
return {
|
|
4881
|
+
url: toPathString(localVarUrlObj),
|
|
4882
|
+
options: localVarRequestOptions,
|
|
4883
|
+
};
|
|
4884
|
+
}),
|
|
4730
4885
|
};
|
|
4731
4886
|
};
|
|
4732
4887
|
/**
|
|
@@ -4737,7 +4892,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4737
4892
|
const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration);
|
|
4738
4893
|
return {
|
|
4739
4894
|
/**
|
|
4740
|
-
*
|
|
4895
|
+
*
|
|
4741
4896
|
* @summary Change Password
|
|
4742
4897
|
* @param {UpdatePassword} updatePassword
|
|
4743
4898
|
* @param {string | null} [sessionId]
|
|
@@ -4754,7 +4909,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4754
4909
|
});
|
|
4755
4910
|
},
|
|
4756
4911
|
/**
|
|
4757
|
-
*
|
|
4912
|
+
*
|
|
4758
4913
|
* @summary Delete User
|
|
4759
4914
|
* @param {string | null} [sessionId]
|
|
4760
4915
|
* @param {*} [options] Override http request option.
|
|
@@ -4770,7 +4925,23 @@ export const UserApiFp = function (configuration) {
|
|
|
4770
4925
|
});
|
|
4771
4926
|
},
|
|
4772
4927
|
/**
|
|
4773
|
-
*
|
|
4928
|
+
*
|
|
4929
|
+
* @summary Forgot Password
|
|
4930
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
4931
|
+
* @param {*} [options] Override http request option.
|
|
4932
|
+
* @throws {RequiredError}
|
|
4933
|
+
*/
|
|
4934
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
4935
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4936
|
+
var _a, _b, _c;
|
|
4937
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options);
|
|
4938
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4939
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.forgotPasswordV1UserForgotPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4940
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4941
|
+
});
|
|
4942
|
+
},
|
|
4943
|
+
/**
|
|
4944
|
+
*
|
|
4774
4945
|
* @summary Get User Dash
|
|
4775
4946
|
* @param {string | null} [sessionId]
|
|
4776
4947
|
* @param {*} [options] Override http request option.
|
|
@@ -4786,7 +4957,7 @@ export const UserApiFp = function (configuration) {
|
|
|
4786
4957
|
});
|
|
4787
4958
|
},
|
|
4788
4959
|
/**
|
|
4789
|
-
*
|
|
4960
|
+
*
|
|
4790
4961
|
* @summary Get User
|
|
4791
4962
|
* @param {string | null} [sessionId]
|
|
4792
4963
|
* @param {*} [options] Override http request option.
|
|
@@ -4802,7 +4973,56 @@ export const UserApiFp = function (configuration) {
|
|
|
4802
4973
|
});
|
|
4803
4974
|
},
|
|
4804
4975
|
/**
|
|
4805
|
-
*
|
|
4976
|
+
*
|
|
4977
|
+
* @summary Resend Otp
|
|
4978
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
4979
|
+
* @param {*} [options] Override http request option.
|
|
4980
|
+
* @throws {RequiredError}
|
|
4981
|
+
*/
|
|
4982
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
4983
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4984
|
+
var _a, _b, _c;
|
|
4985
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(resendOTPSchema, options);
|
|
4986
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4987
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4988
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4989
|
+
});
|
|
4990
|
+
},
|
|
4991
|
+
/**
|
|
4992
|
+
*
|
|
4993
|
+
* @summary Reset Password
|
|
4994
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
4995
|
+
* @param {*} [options] Override http request option.
|
|
4996
|
+
* @throws {RequiredError}
|
|
4997
|
+
*/
|
|
4998
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
4999
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5000
|
+
var _a, _b, _c;
|
|
5001
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options);
|
|
5002
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5003
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resetPasswordV1UserResetPasswordPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5004
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5005
|
+
});
|
|
5006
|
+
},
|
|
5007
|
+
/**
|
|
5008
|
+
*
|
|
5009
|
+
* @summary Send Verification Email
|
|
5010
|
+
* @param {string} [authorization]
|
|
5011
|
+
* @param {string} [sessionId]
|
|
5012
|
+
* @param {*} [options] Override http request option.
|
|
5013
|
+
* @throws {RequiredError}
|
|
5014
|
+
*/
|
|
5015
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5016
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5017
|
+
var _a, _b, _c;
|
|
5018
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options);
|
|
5019
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5020
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5021
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5022
|
+
});
|
|
5023
|
+
},
|
|
5024
|
+
/**
|
|
5025
|
+
*
|
|
4806
5026
|
* @summary Update User
|
|
4807
5027
|
* @param {UserUpdate} userUpdate
|
|
4808
5028
|
* @param {string | null} [sessionId]
|
|
@@ -4818,6 +5038,24 @@ export const UserApiFp = function (configuration) {
|
|
|
4818
5038
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4819
5039
|
});
|
|
4820
5040
|
},
|
|
5041
|
+
/**
|
|
5042
|
+
*
|
|
5043
|
+
* @summary Verify Email
|
|
5044
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5045
|
+
* @param {string} [authorization]
|
|
5046
|
+
* @param {string} [sessionId]
|
|
5047
|
+
* @param {*} [options] Override http request option.
|
|
5048
|
+
* @throws {RequiredError}
|
|
5049
|
+
*/
|
|
5050
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5051
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5052
|
+
var _a, _b, _c;
|
|
5053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options);
|
|
5054
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5055
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5056
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5057
|
+
});
|
|
5058
|
+
},
|
|
4821
5059
|
};
|
|
4822
5060
|
};
|
|
4823
5061
|
/**
|
|
@@ -4828,7 +5066,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4828
5066
|
const localVarFp = UserApiFp(configuration);
|
|
4829
5067
|
return {
|
|
4830
5068
|
/**
|
|
4831
|
-
*
|
|
5069
|
+
*
|
|
4832
5070
|
* @summary Change Password
|
|
4833
5071
|
* @param {UpdatePassword} updatePassword
|
|
4834
5072
|
* @param {string | null} [sessionId]
|
|
@@ -4839,7 +5077,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4839
5077
|
return localVarFp.changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(axios, basePath));
|
|
4840
5078
|
},
|
|
4841
5079
|
/**
|
|
4842
|
-
*
|
|
5080
|
+
*
|
|
4843
5081
|
* @summary Delete User
|
|
4844
5082
|
* @param {string | null} [sessionId]
|
|
4845
5083
|
* @param {*} [options] Override http request option.
|
|
@@ -4849,7 +5087,17 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4849
5087
|
return localVarFp.deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(axios, basePath));
|
|
4850
5088
|
},
|
|
4851
5089
|
/**
|
|
4852
|
-
*
|
|
5090
|
+
*
|
|
5091
|
+
* @summary Forgot Password
|
|
5092
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
5093
|
+
* @param {*} [options] Override http request option.
|
|
5094
|
+
* @throws {RequiredError}
|
|
5095
|
+
*/
|
|
5096
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
5097
|
+
return localVarFp.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(axios, basePath));
|
|
5098
|
+
},
|
|
5099
|
+
/**
|
|
5100
|
+
*
|
|
4853
5101
|
* @summary Get User Dash
|
|
4854
5102
|
* @param {string | null} [sessionId]
|
|
4855
5103
|
* @param {*} [options] Override http request option.
|
|
@@ -4859,7 +5107,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4859
5107
|
return localVarFp.getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(axios, basePath));
|
|
4860
5108
|
},
|
|
4861
5109
|
/**
|
|
4862
|
-
*
|
|
5110
|
+
*
|
|
4863
5111
|
* @summary Get User
|
|
4864
5112
|
* @param {string | null} [sessionId]
|
|
4865
5113
|
* @param {*} [options] Override http request option.
|
|
@@ -4869,7 +5117,38 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4869
5117
|
return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
|
|
4870
5118
|
},
|
|
4871
5119
|
/**
|
|
4872
|
-
*
|
|
5120
|
+
*
|
|
5121
|
+
* @summary Resend Otp
|
|
5122
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
5123
|
+
* @param {*} [options] Override http request option.
|
|
5124
|
+
* @throws {RequiredError}
|
|
5125
|
+
*/
|
|
5126
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
5127
|
+
return localVarFp.resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(axios, basePath));
|
|
5128
|
+
},
|
|
5129
|
+
/**
|
|
5130
|
+
*
|
|
5131
|
+
* @summary Reset Password
|
|
5132
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
5133
|
+
* @param {*} [options] Override http request option.
|
|
5134
|
+
* @throws {RequiredError}
|
|
5135
|
+
*/
|
|
5136
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
5137
|
+
return localVarFp.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(axios, basePath));
|
|
5138
|
+
},
|
|
5139
|
+
/**
|
|
5140
|
+
*
|
|
5141
|
+
* @summary Send Verification Email
|
|
5142
|
+
* @param {string} [authorization]
|
|
5143
|
+
* @param {string} [sessionId]
|
|
5144
|
+
* @param {*} [options] Override http request option.
|
|
5145
|
+
* @throws {RequiredError}
|
|
5146
|
+
*/
|
|
5147
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5148
|
+
return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5149
|
+
},
|
|
5150
|
+
/**
|
|
5151
|
+
*
|
|
4873
5152
|
* @summary Update User
|
|
4874
5153
|
* @param {UserUpdate} userUpdate
|
|
4875
5154
|
* @param {string | null} [sessionId]
|
|
@@ -4879,6 +5158,18 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4879
5158
|
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
4880
5159
|
return localVarFp.updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(axios, basePath));
|
|
4881
5160
|
},
|
|
5161
|
+
/**
|
|
5162
|
+
*
|
|
5163
|
+
* @summary Verify Email
|
|
5164
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5165
|
+
* @param {string} [authorization]
|
|
5166
|
+
* @param {string} [sessionId]
|
|
5167
|
+
* @param {*} [options] Override http request option.
|
|
5168
|
+
* @throws {RequiredError}
|
|
5169
|
+
*/
|
|
5170
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5171
|
+
return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(axios, basePath));
|
|
5172
|
+
},
|
|
4882
5173
|
};
|
|
4883
5174
|
};
|
|
4884
5175
|
/**
|
|
@@ -4889,7 +5180,7 @@ export const UserApiFactory = function (configuration, basePath, axios) {
|
|
|
4889
5180
|
*/
|
|
4890
5181
|
export class UserApi extends BaseAPI {
|
|
4891
5182
|
/**
|
|
4892
|
-
*
|
|
5183
|
+
*
|
|
4893
5184
|
* @summary Change Password
|
|
4894
5185
|
* @param {UpdatePassword} updatePassword
|
|
4895
5186
|
* @param {string | null} [sessionId]
|
|
@@ -4901,7 +5192,7 @@ export class UserApi extends BaseAPI {
|
|
|
4901
5192
|
return UserApiFp(this.configuration).changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4902
5193
|
}
|
|
4903
5194
|
/**
|
|
4904
|
-
*
|
|
5195
|
+
*
|
|
4905
5196
|
* @summary Delete User
|
|
4906
5197
|
* @param {string | null} [sessionId]
|
|
4907
5198
|
* @param {*} [options] Override http request option.
|
|
@@ -4912,7 +5203,18 @@ export class UserApi extends BaseAPI {
|
|
|
4912
5203
|
return UserApiFp(this.configuration).deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4913
5204
|
}
|
|
4914
5205
|
/**
|
|
4915
|
-
*
|
|
5206
|
+
*
|
|
5207
|
+
* @summary Forgot Password
|
|
5208
|
+
* @param {ForgotPasswordSchema} forgotPasswordSchema
|
|
5209
|
+
* @param {*} [options] Override http request option.
|
|
5210
|
+
* @throws {RequiredError}
|
|
5211
|
+
* @memberof UserApi
|
|
5212
|
+
*/
|
|
5213
|
+
forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options) {
|
|
5214
|
+
return UserApiFp(this.configuration).forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5215
|
+
}
|
|
5216
|
+
/**
|
|
5217
|
+
*
|
|
4916
5218
|
* @summary Get User Dash
|
|
4917
5219
|
* @param {string | null} [sessionId]
|
|
4918
5220
|
* @param {*} [options] Override http request option.
|
|
@@ -4923,7 +5225,7 @@ export class UserApi extends BaseAPI {
|
|
|
4923
5225
|
return UserApiFp(this.configuration).getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4924
5226
|
}
|
|
4925
5227
|
/**
|
|
4926
|
-
*
|
|
5228
|
+
*
|
|
4927
5229
|
* @summary Get User
|
|
4928
5230
|
* @param {string | null} [sessionId]
|
|
4929
5231
|
* @param {*} [options] Override http request option.
|
|
@@ -4934,7 +5236,41 @@ export class UserApi extends BaseAPI {
|
|
|
4934
5236
|
return UserApiFp(this.configuration).getUserV1UserMeGet(sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4935
5237
|
}
|
|
4936
5238
|
/**
|
|
4937
|
-
*
|
|
5239
|
+
*
|
|
5240
|
+
* @summary Resend Otp
|
|
5241
|
+
* @param {ResendOTPSchema} resendOTPSchema
|
|
5242
|
+
* @param {*} [options] Override http request option.
|
|
5243
|
+
* @throws {RequiredError}
|
|
5244
|
+
* @memberof UserApi
|
|
5245
|
+
*/
|
|
5246
|
+
resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
|
|
5247
|
+
return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5248
|
+
}
|
|
5249
|
+
/**
|
|
5250
|
+
*
|
|
5251
|
+
* @summary Reset Password
|
|
5252
|
+
* @param {ResetPasswordSchema} resetPasswordSchema
|
|
5253
|
+
* @param {*} [options] Override http request option.
|
|
5254
|
+
* @throws {RequiredError}
|
|
5255
|
+
* @memberof UserApi
|
|
5256
|
+
*/
|
|
5257
|
+
resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options) {
|
|
5258
|
+
return UserApiFp(this.configuration).resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(this.axios, this.basePath));
|
|
5259
|
+
}
|
|
5260
|
+
/**
|
|
5261
|
+
*
|
|
5262
|
+
* @summary Send Verification Email
|
|
5263
|
+
* @param {string} [authorization]
|
|
5264
|
+
* @param {string} [sessionId]
|
|
5265
|
+
* @param {*} [options] Override http request option.
|
|
5266
|
+
* @throws {RequiredError}
|
|
5267
|
+
* @memberof UserApi
|
|
5268
|
+
*/
|
|
5269
|
+
sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options) {
|
|
5270
|
+
return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5271
|
+
}
|
|
5272
|
+
/**
|
|
5273
|
+
*
|
|
4938
5274
|
* @summary Update User
|
|
4939
5275
|
* @param {UserUpdate} userUpdate
|
|
4940
5276
|
* @param {string | null} [sessionId]
|
|
@@ -4945,4 +5281,17 @@ export class UserApi extends BaseAPI {
|
|
|
4945
5281
|
updateUserV1UserUpdatePatch(userUpdate, sessionId, options) {
|
|
4946
5282
|
return UserApiFp(this.configuration).updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
4947
5283
|
}
|
|
5284
|
+
/**
|
|
5285
|
+
*
|
|
5286
|
+
* @summary Verify Email
|
|
5287
|
+
* @param {VerifyEmailSchema} verifyEmailSchema
|
|
5288
|
+
* @param {string} [authorization]
|
|
5289
|
+
* @param {string} [sessionId]
|
|
5290
|
+
* @param {*} [options] Override http request option.
|
|
5291
|
+
* @throws {RequiredError}
|
|
5292
|
+
* @memberof UserApi
|
|
5293
|
+
*/
|
|
5294
|
+
verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options) {
|
|
5295
|
+
return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
|
|
5296
|
+
}
|
|
4948
5297
|
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# ForgotPasswordSchema
|
|
2
|
+
|
|
3
|
+
Schema for forgot password request
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { ForgotPasswordSchema } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: ForgotPasswordSchema = {
|
|
18
|
+
email,
|
|
19
|
+
turnstile_token,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ResendOTPSchema
|
|
2
|
+
|
|
3
|
+
Schema for resending OTP
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**otp_type** | **string** | | [default to undefined]
|
|
11
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import { ResendOTPSchema } from './api';
|
|
17
|
+
|
|
18
|
+
const instance: ResendOTPSchema = {
|
|
19
|
+
email,
|
|
20
|
+
otp_type,
|
|
21
|
+
turnstile_token,
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# ResetPasswordSchema
|
|
2
|
+
|
|
3
|
+
Schema for password reset
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**otp_code** | **string** | | [default to undefined]
|
|
11
|
+
**new_password** | **string** | | [default to undefined]
|
|
12
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import { ResetPasswordSchema } from './api';
|
|
18
|
+
|
|
19
|
+
const instance: ResetPasswordSchema = {
|
|
20
|
+
email,
|
|
21
|
+
otp_code,
|
|
22
|
+
new_password,
|
|
23
|
+
turnstile_token,
|
|
24
|
+
};
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# SendOTPSchema
|
|
2
|
+
|
|
3
|
+
Schema for sending OTP
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
Name | Type | Description | Notes
|
|
8
|
+
------------ | ------------- | ------------- | -------------
|
|
9
|
+
**email** | **string** | | [default to undefined]
|
|
10
|
+
**turnstile_token** | **string** | | [default to undefined]
|
|
11
|
+
|
|
12
|
+
## Example
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { SendOTPSchema } from './api';
|
|
16
|
+
|
|
17
|
+
const instance: SendOTPSchema = {
|
|
18
|
+
email,
|
|
19
|
+
turnstile_token,
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|