@rasadov/lumoar-sdk 1.1.5 → 1.1.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/api.ts CHANGED
@@ -1056,6 +1056,25 @@ export interface FileDownload {
1056
1056
  */
1057
1057
  'file_type'?: string | null;
1058
1058
  }
1059
+ /**
1060
+ * Schema for forgot password request
1061
+ * @export
1062
+ * @interface ForgotPasswordSchema
1063
+ */
1064
+ export interface ForgotPasswordSchema {
1065
+ /**
1066
+ *
1067
+ * @type {string}
1068
+ * @memberof ForgotPasswordSchema
1069
+ */
1070
+ 'email': string;
1071
+ /**
1072
+ *
1073
+ * @type {string}
1074
+ * @memberof ForgotPasswordSchema
1075
+ */
1076
+ 'turnstile_token': string;
1077
+ }
1059
1078
  /**
1060
1079
  *
1061
1080
  * @export
@@ -1567,6 +1586,62 @@ export interface ReportGenerate {
1567
1586
  */
1568
1587
  'report_id': string;
1569
1588
  }
1589
+ /**
1590
+ * Schema for resending OTP
1591
+ * @export
1592
+ * @interface ResendOTPSchema
1593
+ */
1594
+ export interface ResendOTPSchema {
1595
+ /**
1596
+ *
1597
+ * @type {string}
1598
+ * @memberof ResendOTPSchema
1599
+ */
1600
+ 'email': string;
1601
+ /**
1602
+ *
1603
+ * @type {string}
1604
+ * @memberof ResendOTPSchema
1605
+ */
1606
+ 'otp_type': string;
1607
+ /**
1608
+ *
1609
+ * @type {string}
1610
+ * @memberof ResendOTPSchema
1611
+ */
1612
+ 'turnstile_token': string;
1613
+ }
1614
+ /**
1615
+ * Schema for password reset
1616
+ * @export
1617
+ * @interface ResetPasswordSchema
1618
+ */
1619
+ export interface ResetPasswordSchema {
1620
+ /**
1621
+ *
1622
+ * @type {string}
1623
+ * @memberof ResetPasswordSchema
1624
+ */
1625
+ 'email': string;
1626
+ /**
1627
+ *
1628
+ * @type {string}
1629
+ * @memberof ResetPasswordSchema
1630
+ */
1631
+ 'otp_code': string;
1632
+ /**
1633
+ *
1634
+ * @type {string}
1635
+ * @memberof ResetPasswordSchema
1636
+ */
1637
+ 'new_password': string;
1638
+ /**
1639
+ *
1640
+ * @type {string}
1641
+ * @memberof ResetPasswordSchema
1642
+ */
1643
+ 'turnstile_token': string;
1644
+ }
1570
1645
  /**
1571
1646
  *
1572
1647
  * @export
@@ -1636,6 +1711,25 @@ export interface SchedulerRequest {
1636
1711
  */
1637
1712
  'user_ids_to_assign'?: Array<string>;
1638
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
+ }
1639
1733
  /**
1640
1734
  *
1641
1735
  * @export
@@ -2133,6 +2227,31 @@ export interface ValidationError {
2133
2227
  */
2134
2228
  export interface ValidationErrorLocInner {
2135
2229
  }
2230
+ /**
2231
+ * Schema for email verification
2232
+ * @export
2233
+ * @interface VerifyEmailSchema
2234
+ */
2235
+ export interface VerifyEmailSchema {
2236
+ /**
2237
+ *
2238
+ * @type {string}
2239
+ * @memberof VerifyEmailSchema
2240
+ */
2241
+ 'email': string;
2242
+ /**
2243
+ *
2244
+ * @type {string}
2245
+ * @memberof VerifyEmailSchema
2246
+ */
2247
+ 'otp_code': string;
2248
+ /**
2249
+ *
2250
+ * @type {string}
2251
+ * @memberof VerifyEmailSchema
2252
+ */
2253
+ 'turnstile_token': string;
2254
+ }
2136
2255
 
2137
2256
  /**
2138
2257
  * AuditLogsApi - axios parameter creator
@@ -3953,18 +4072,16 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
3953
4072
  * @param {*} [options] Override http request option.
3954
4073
  * @throws {RequiredError}
3955
4074
  */
3956
- uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost: async (companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
4075
+ uploadEvidenceV1EvidenceUploadPost: async (companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
3957
4076
  // verify required parameter 'companyId' is not null or undefined
3958
- assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'companyId', companyId)
4077
+ assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'companyId', companyId)
3959
4078
  // verify required parameter 'controlId' is not null or undefined
3960
- assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'controlId', controlId)
4079
+ assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'controlId', controlId)
3961
4080
  // verify required parameter 'text' is not null or undefined
3962
- assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'text', text)
4081
+ assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'text', text)
3963
4082
  // verify required parameter 'files' is not null or undefined
3964
- assertParamExists('uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost', 'files', files)
3965
- const localVarPath = `/v1/evidence/upload/{company_id}/{control_id}`
3966
- .replace(`{${"company_id"}}`, encodeURIComponent(String(companyId)))
3967
- .replace(`{${"control_id"}}`, encodeURIComponent(String(controlId)));
4083
+ assertParamExists('uploadEvidenceV1EvidenceUploadPost', 'files', files)
4084
+ const localVarPath = `/v1/evidence/upload`;
3968
4085
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
3969
4086
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3970
4087
  let baseOptions;
@@ -3977,6 +4094,14 @@ export const EvidenceApiAxiosParamCreator = function (configuration?: Configurat
3977
4094
  const localVarQueryParameter = {} as any;
3978
4095
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
3979
4096
 
4097
+ if (companyId !== undefined) {
4098
+ localVarQueryParameter['company_id'] = companyId;
4099
+ }
4100
+
4101
+ if (controlId !== undefined) {
4102
+ localVarQueryParameter['control_id'] = controlId;
4103
+ }
4104
+
3980
4105
  if (text !== undefined) {
3981
4106
  localVarQueryParameter['text'] = text;
3982
4107
  }
@@ -4087,10 +4212,10 @@ export const EvidenceApiFp = function(configuration?: Configuration) {
4087
4212
  * @param {*} [options] Override http request option.
4088
4213
  * @throws {RequiredError}
4089
4214
  */
4090
- async uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
4091
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, text, files, authorization, sessionId, options);
4215
+ async uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EvidenceBase>> {
4216
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options);
4092
4217
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
4093
- const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost']?.[localVarOperationServerIndex]?.url;
4218
+ const localVarOperationServerBasePath = operationServerMap['EvidenceApi.uploadEvidenceV1EvidenceUploadPost']?.[localVarOperationServerIndex]?.url;
4094
4219
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4095
4220
  },
4096
4221
  }
@@ -4164,8 +4289,8 @@ export const EvidenceApiFactory = function (configuration?: Configuration, baseP
4164
4289
  * @param {*} [options] Override http request option.
4165
4290
  * @throws {RequiredError}
4166
4291
  */
4167
- uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
4168
- return localVarFp.uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(axios, basePath));
4292
+ uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<EvidenceBase> {
4293
+ return localVarFp.uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(axios, basePath));
4169
4294
  },
4170
4295
  };
4171
4296
  };
@@ -4247,8 +4372,8 @@ export class EvidenceApi extends BaseAPI {
4247
4372
  * @throws {RequiredError}
4248
4373
  * @memberof EvidenceApi
4249
4374
  */
4250
- public uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4251
- return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadCompanyIdControlIdPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4375
+ public uploadEvidenceV1EvidenceUploadPost(companyId: string, controlId: string, text: string, files: Array<File>, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) {
4376
+ return EvidenceApiFp(this.configuration).uploadEvidenceV1EvidenceUploadPost(companyId, controlId, text, files, authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
4252
4377
  }
4253
4378
  }
4254
4379
 
@@ -6866,7 +6991,7 @@ export type ListTasksForUserV1TasksUserGetOrderEnum = typeof ListTasksForUserV1T
6866
6991
  export const UserApiAxiosParamCreator = function (configuration?: Configuration) {
6867
6992
  return {
6868
6993
  /**
6869
- * Change user password
6994
+ *
6870
6995
  * @summary Change Password
6871
6996
  * @param {UpdatePassword} updatePassword
6872
6997
  * @param {string | null} [sessionId]
@@ -6903,7 +7028,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
6903
7028
  };
6904
7029
  },
6905
7030
  /**
6906
- * Delete user
7031
+ *
6907
7032
  * @summary Delete User
6908
7033
  * @param {string | null} [sessionId]
6909
7034
  * @param {*} [options] Override http request option.
@@ -6934,7 +7059,43 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
6934
7059
  };
6935
7060
  },
6936
7061
  /**
6937
- * Get current user with relations
7062
+ *
7063
+ * @summary Forgot Password
7064
+ * @param {ForgotPasswordSchema} forgotPasswordSchema
7065
+ * @param {*} [options] Override http request option.
7066
+ * @throws {RequiredError}
7067
+ */
7068
+ forgotPasswordV1UserForgotPasswordPost: async (forgotPasswordSchema: ForgotPasswordSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7069
+ // verify required parameter 'forgotPasswordSchema' is not null or undefined
7070
+ assertParamExists('forgotPasswordV1UserForgotPasswordPost', 'forgotPasswordSchema', forgotPasswordSchema)
7071
+ const localVarPath = `/v1/user/forgot-password`;
7072
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7073
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7074
+ let baseOptions;
7075
+ if (configuration) {
7076
+ baseOptions = configuration.baseOptions;
7077
+ }
7078
+
7079
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7080
+ const localVarHeaderParameter = {} as any;
7081
+ const localVarQueryParameter = {} as any;
7082
+
7083
+
7084
+
7085
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7086
+
7087
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7088
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7089
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7090
+ localVarRequestOptions.data = serializeDataIfNeeded(forgotPasswordSchema, localVarRequestOptions, configuration)
7091
+
7092
+ return {
7093
+ url: toPathString(localVarUrlObj),
7094
+ options: localVarRequestOptions,
7095
+ };
7096
+ },
7097
+ /**
7098
+ *
6938
7099
  * @summary Get User Dash
6939
7100
  * @param {string | null} [sessionId]
6940
7101
  * @param {*} [options] Override http request option.
@@ -6965,7 +7126,7 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
6965
7126
  };
6966
7127
  },
6967
7128
  /**
6968
- * Get current user
7129
+ *
6969
7130
  * @summary Get User
6970
7131
  * @param {string | null} [sessionId]
6971
7132
  * @param {*} [options] Override http request option.
@@ -6996,7 +7157,115 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
6996
7157
  };
6997
7158
  },
6998
7159
  /**
6999
- * Update user
7160
+ *
7161
+ * @summary Resend Otp
7162
+ * @param {ResendOTPSchema} resendOTPSchema
7163
+ * @param {*} [options] Override http request option.
7164
+ * @throws {RequiredError}
7165
+ */
7166
+ resendOtpV1UserResendOtpPost: async (resendOTPSchema: ResendOTPSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7167
+ // verify required parameter 'resendOTPSchema' is not null or undefined
7168
+ assertParamExists('resendOtpV1UserResendOtpPost', 'resendOTPSchema', resendOTPSchema)
7169
+ const localVarPath = `/v1/user/resend-otp`;
7170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7171
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7172
+ let baseOptions;
7173
+ if (configuration) {
7174
+ baseOptions = configuration.baseOptions;
7175
+ }
7176
+
7177
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7178
+ const localVarHeaderParameter = {} as any;
7179
+ const localVarQueryParameter = {} as any;
7180
+
7181
+
7182
+
7183
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7184
+
7185
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7187
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7188
+ localVarRequestOptions.data = serializeDataIfNeeded(resendOTPSchema, localVarRequestOptions, configuration)
7189
+
7190
+ return {
7191
+ url: toPathString(localVarUrlObj),
7192
+ options: localVarRequestOptions,
7193
+ };
7194
+ },
7195
+ /**
7196
+ *
7197
+ * @summary Reset Password
7198
+ * @param {ResetPasswordSchema} resetPasswordSchema
7199
+ * @param {*} [options] Override http request option.
7200
+ * @throws {RequiredError}
7201
+ */
7202
+ resetPasswordV1UserResetPasswordPost: async (resetPasswordSchema: ResetPasswordSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7203
+ // verify required parameter 'resetPasswordSchema' is not null or undefined
7204
+ assertParamExists('resetPasswordV1UserResetPasswordPost', 'resetPasswordSchema', resetPasswordSchema)
7205
+ const localVarPath = `/v1/user/reset-password`;
7206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7208
+ let baseOptions;
7209
+ if (configuration) {
7210
+ baseOptions = configuration.baseOptions;
7211
+ }
7212
+
7213
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7214
+ const localVarHeaderParameter = {} as any;
7215
+ const localVarQueryParameter = {} as any;
7216
+
7217
+
7218
+
7219
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7220
+
7221
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7222
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7223
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7224
+ localVarRequestOptions.data = serializeDataIfNeeded(resetPasswordSchema, localVarRequestOptions, configuration)
7225
+
7226
+ return {
7227
+ url: toPathString(localVarUrlObj),
7228
+ options: localVarRequestOptions,
7229
+ };
7230
+ },
7231
+ /**
7232
+ *
7233
+ * @summary Send Verification Email
7234
+ * @param {SendOTPSchema} sendOTPSchema
7235
+ * @param {*} [options] Override http request option.
7236
+ * @throws {RequiredError}
7237
+ */
7238
+ sendVerificationEmailV1UserSendVerificationEmailPost: async (sendOTPSchema: SendOTPSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7239
+ // verify required parameter 'sendOTPSchema' is not null or undefined
7240
+ assertParamExists('sendVerificationEmailV1UserSendVerificationEmailPost', 'sendOTPSchema', sendOTPSchema)
7241
+ const localVarPath = `/v1/user/send-verification-email`;
7242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7244
+ let baseOptions;
7245
+ if (configuration) {
7246
+ baseOptions = configuration.baseOptions;
7247
+ }
7248
+
7249
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7250
+ const localVarHeaderParameter = {} as any;
7251
+ const localVarQueryParameter = {} as any;
7252
+
7253
+
7254
+
7255
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7256
+
7257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7260
+ localVarRequestOptions.data = serializeDataIfNeeded(sendOTPSchema, localVarRequestOptions, configuration)
7261
+
7262
+ return {
7263
+ url: toPathString(localVarUrlObj),
7264
+ options: localVarRequestOptions,
7265
+ };
7266
+ },
7267
+ /**
7268
+ *
7000
7269
  * @summary Update User
7001
7270
  * @param {UserUpdate} userUpdate
7002
7271
  * @param {string | null} [sessionId]
@@ -7027,6 +7296,42 @@ export const UserApiAxiosParamCreator = function (configuration?: Configuration)
7027
7296
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7028
7297
  localVarRequestOptions.data = serializeDataIfNeeded(userUpdate, localVarRequestOptions, configuration)
7029
7298
 
7299
+ return {
7300
+ url: toPathString(localVarUrlObj),
7301
+ options: localVarRequestOptions,
7302
+ };
7303
+ },
7304
+ /**
7305
+ *
7306
+ * @summary Verify Email
7307
+ * @param {VerifyEmailSchema} verifyEmailSchema
7308
+ * @param {*} [options] Override http request option.
7309
+ * @throws {RequiredError}
7310
+ */
7311
+ verifyEmailV1UserVerifyEmailPost: async (verifyEmailSchema: VerifyEmailSchema, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
7312
+ // verify required parameter 'verifyEmailSchema' is not null or undefined
7313
+ assertParamExists('verifyEmailV1UserVerifyEmailPost', 'verifyEmailSchema', verifyEmailSchema)
7314
+ const localVarPath = `/v1/user/verify-email`;
7315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
7316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7317
+ let baseOptions;
7318
+ if (configuration) {
7319
+ baseOptions = configuration.baseOptions;
7320
+ }
7321
+
7322
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
7323
+ const localVarHeaderParameter = {} as any;
7324
+ const localVarQueryParameter = {} as any;
7325
+
7326
+
7327
+
7328
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7329
+
7330
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
7331
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7332
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
7333
+ localVarRequestOptions.data = serializeDataIfNeeded(verifyEmailSchema, localVarRequestOptions, configuration)
7334
+
7030
7335
  return {
7031
7336
  url: toPathString(localVarUrlObj),
7032
7337
  options: localVarRequestOptions,
@@ -7043,7 +7348,7 @@ export const UserApiFp = function(configuration?: Configuration) {
7043
7348
  const localVarAxiosParamCreator = UserApiAxiosParamCreator(configuration)
7044
7349
  return {
7045
7350
  /**
7046
- * Change user password
7351
+ *
7047
7352
  * @summary Change Password
7048
7353
  * @param {UpdatePassword} updatePassword
7049
7354
  * @param {string | null} [sessionId]
@@ -7057,7 +7362,7 @@ export const UserApiFp = function(configuration?: Configuration) {
7057
7362
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7058
7363
  },
7059
7364
  /**
7060
- * Delete user
7365
+ *
7061
7366
  * @summary Delete User
7062
7367
  * @param {string | null} [sessionId]
7063
7368
  * @param {*} [options] Override http request option.
@@ -7070,7 +7375,20 @@ export const UserApiFp = function(configuration?: Configuration) {
7070
7375
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7071
7376
  },
7072
7377
  /**
7073
- * Get current user with relations
7378
+ *
7379
+ * @summary Forgot Password
7380
+ * @param {ForgotPasswordSchema} forgotPasswordSchema
7381
+ * @param {*} [options] Override http request option.
7382
+ * @throws {RequiredError}
7383
+ */
7384
+ async forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema: ForgotPasswordSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7385
+ const localVarAxiosArgs = await localVarAxiosParamCreator.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options);
7386
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7387
+ const localVarOperationServerBasePath = operationServerMap['UserApi.forgotPasswordV1UserForgotPasswordPost']?.[localVarOperationServerIndex]?.url;
7388
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7389
+ },
7390
+ /**
7391
+ *
7074
7392
  * @summary Get User Dash
7075
7393
  * @param {string | null} [sessionId]
7076
7394
  * @param {*} [options] Override http request option.
@@ -7083,7 +7401,7 @@ export const UserApiFp = function(configuration?: Configuration) {
7083
7401
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7084
7402
  },
7085
7403
  /**
7086
- * Get current user
7404
+ *
7087
7405
  * @summary Get User
7088
7406
  * @param {string | null} [sessionId]
7089
7407
  * @param {*} [options] Override http request option.
@@ -7096,7 +7414,46 @@ export const UserApiFp = function(configuration?: Configuration) {
7096
7414
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7097
7415
  },
7098
7416
  /**
7099
- * Update user
7417
+ *
7418
+ * @summary Resend Otp
7419
+ * @param {ResendOTPSchema} resendOTPSchema
7420
+ * @param {*} [options] Override http request option.
7421
+ * @throws {RequiredError}
7422
+ */
7423
+ async resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7424
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(resendOTPSchema, options);
7425
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7426
+ const localVarOperationServerBasePath = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']?.[localVarOperationServerIndex]?.url;
7427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7428
+ },
7429
+ /**
7430
+ *
7431
+ * @summary Reset Password
7432
+ * @param {ResetPasswordSchema} resetPasswordSchema
7433
+ * @param {*} [options] Override http request option.
7434
+ * @throws {RequiredError}
7435
+ */
7436
+ async resetPasswordV1UserResetPasswordPost(resetPasswordSchema: ResetPasswordSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7437
+ const localVarAxiosArgs = await localVarAxiosParamCreator.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options);
7438
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7439
+ const localVarOperationServerBasePath = operationServerMap['UserApi.resetPasswordV1UserResetPasswordPost']?.[localVarOperationServerIndex]?.url;
7440
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7441
+ },
7442
+ /**
7443
+ *
7444
+ * @summary Send Verification Email
7445
+ * @param {SendOTPSchema} sendOTPSchema
7446
+ * @param {*} [options] Override http request option.
7447
+ * @throws {RequiredError}
7448
+ */
7449
+ async sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema: SendOTPSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7450
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options);
7451
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7452
+ const localVarOperationServerBasePath = operationServerMap['UserApi.sendVerificationEmailV1UserSendVerificationEmailPost']?.[localVarOperationServerIndex]?.url;
7453
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7454
+ },
7455
+ /**
7456
+ *
7100
7457
  * @summary Update User
7101
7458
  * @param {UserUpdate} userUpdate
7102
7459
  * @param {string | null} [sessionId]
@@ -7109,6 +7466,19 @@ export const UserApiFp = function(configuration?: Configuration) {
7109
7466
  const localVarOperationServerBasePath = operationServerMap['UserApi.updateUserV1UserUpdatePatch']?.[localVarOperationServerIndex]?.url;
7110
7467
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7111
7468
  },
7469
+ /**
7470
+ *
7471
+ * @summary Verify Email
7472
+ * @param {VerifyEmailSchema} verifyEmailSchema
7473
+ * @param {*} [options] Override http request option.
7474
+ * @throws {RequiredError}
7475
+ */
7476
+ async verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>> {
7477
+ const localVarAxiosArgs = await localVarAxiosParamCreator.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options);
7478
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
7479
+ const localVarOperationServerBasePath = operationServerMap['UserApi.verifyEmailV1UserVerifyEmailPost']?.[localVarOperationServerIndex]?.url;
7480
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7481
+ },
7112
7482
  }
7113
7483
  };
7114
7484
 
@@ -7120,7 +7490,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7120
7490
  const localVarFp = UserApiFp(configuration)
7121
7491
  return {
7122
7492
  /**
7123
- * Change user password
7493
+ *
7124
7494
  * @summary Change Password
7125
7495
  * @param {UpdatePassword} updatePassword
7126
7496
  * @param {string | null} [sessionId]
@@ -7131,7 +7501,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7131
7501
  return localVarFp.changePasswordV1UserPasswordChangePatch(updatePassword, sessionId, options).then((request) => request(axios, basePath));
7132
7502
  },
7133
7503
  /**
7134
- * Delete user
7504
+ *
7135
7505
  * @summary Delete User
7136
7506
  * @param {string | null} [sessionId]
7137
7507
  * @param {*} [options] Override http request option.
@@ -7141,7 +7511,17 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7141
7511
  return localVarFp.deleteUserV1UserDeleteDelete(sessionId, options).then((request) => request(axios, basePath));
7142
7512
  },
7143
7513
  /**
7144
- * Get current user with relations
7514
+ *
7515
+ * @summary Forgot Password
7516
+ * @param {ForgotPasswordSchema} forgotPasswordSchema
7517
+ * @param {*} [options] Override http request option.
7518
+ * @throws {RequiredError}
7519
+ */
7520
+ forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema: ForgotPasswordSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7521
+ return localVarFp.forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(axios, basePath));
7522
+ },
7523
+ /**
7524
+ *
7145
7525
  * @summary Get User Dash
7146
7526
  * @param {string | null} [sessionId]
7147
7527
  * @param {*} [options] Override http request option.
@@ -7151,7 +7531,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7151
7531
  return localVarFp.getUserDashV1UserMeDashGet(sessionId, options).then((request) => request(axios, basePath));
7152
7532
  },
7153
7533
  /**
7154
- * Get current user
7534
+ *
7155
7535
  * @summary Get User
7156
7536
  * @param {string | null} [sessionId]
7157
7537
  * @param {*} [options] Override http request option.
@@ -7161,7 +7541,37 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7161
7541
  return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
7162
7542
  },
7163
7543
  /**
7164
- * Update user
7544
+ *
7545
+ * @summary Resend Otp
7546
+ * @param {ResendOTPSchema} resendOTPSchema
7547
+ * @param {*} [options] Override http request option.
7548
+ * @throws {RequiredError}
7549
+ */
7550
+ resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7551
+ return localVarFp.resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(axios, basePath));
7552
+ },
7553
+ /**
7554
+ *
7555
+ * @summary Reset Password
7556
+ * @param {ResetPasswordSchema} resetPasswordSchema
7557
+ * @param {*} [options] Override http request option.
7558
+ * @throws {RequiredError}
7559
+ */
7560
+ resetPasswordV1UserResetPasswordPost(resetPasswordSchema: ResetPasswordSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7561
+ return localVarFp.resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(axios, basePath));
7562
+ },
7563
+ /**
7564
+ *
7565
+ * @summary Send Verification Email
7566
+ * @param {SendOTPSchema} sendOTPSchema
7567
+ * @param {*} [options] Override http request option.
7568
+ * @throws {RequiredError}
7569
+ */
7570
+ sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema: SendOTPSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7571
+ return localVarFp.sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options).then((request) => request(axios, basePath));
7572
+ },
7573
+ /**
7574
+ *
7165
7575
  * @summary Update User
7166
7576
  * @param {UserUpdate} userUpdate
7167
7577
  * @param {string | null} [sessionId]
@@ -7171,6 +7581,16 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7171
7581
  updateUserV1UserUpdatePatch(userUpdate: UserUpdate, sessionId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7172
7582
  return localVarFp.updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(axios, basePath));
7173
7583
  },
7584
+ /**
7585
+ *
7586
+ * @summary Verify Email
7587
+ * @param {VerifyEmailSchema} verifyEmailSchema
7588
+ * @param {*} [options] Override http request option.
7589
+ * @throws {RequiredError}
7590
+ */
7591
+ verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details> {
7592
+ return localVarFp.verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(axios, basePath));
7593
+ },
7174
7594
  };
7175
7595
  };
7176
7596
 
@@ -7182,7 +7602,7 @@ export const UserApiFactory = function (configuration?: Configuration, basePath?
7182
7602
  */
7183
7603
  export class UserApi extends BaseAPI {
7184
7604
  /**
7185
- * Change user password
7605
+ *
7186
7606
  * @summary Change Password
7187
7607
  * @param {UpdatePassword} updatePassword
7188
7608
  * @param {string | null} [sessionId]
@@ -7195,7 +7615,7 @@ export class UserApi extends BaseAPI {
7195
7615
  }
7196
7616
 
7197
7617
  /**
7198
- * Delete user
7618
+ *
7199
7619
  * @summary Delete User
7200
7620
  * @param {string | null} [sessionId]
7201
7621
  * @param {*} [options] Override http request option.
@@ -7207,7 +7627,19 @@ export class UserApi extends BaseAPI {
7207
7627
  }
7208
7628
 
7209
7629
  /**
7210
- * Get current user with relations
7630
+ *
7631
+ * @summary Forgot Password
7632
+ * @param {ForgotPasswordSchema} forgotPasswordSchema
7633
+ * @param {*} [options] Override http request option.
7634
+ * @throws {RequiredError}
7635
+ * @memberof UserApi
7636
+ */
7637
+ public forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema: ForgotPasswordSchema, options?: RawAxiosRequestConfig) {
7638
+ return UserApiFp(this.configuration).forgotPasswordV1UserForgotPasswordPost(forgotPasswordSchema, options).then((request) => request(this.axios, this.basePath));
7639
+ }
7640
+
7641
+ /**
7642
+ *
7211
7643
  * @summary Get User Dash
7212
7644
  * @param {string | null} [sessionId]
7213
7645
  * @param {*} [options] Override http request option.
@@ -7219,7 +7651,7 @@ export class UserApi extends BaseAPI {
7219
7651
  }
7220
7652
 
7221
7653
  /**
7222
- * Get current user
7654
+ *
7223
7655
  * @summary Get User
7224
7656
  * @param {string | null} [sessionId]
7225
7657
  * @param {*} [options] Override http request option.
@@ -7231,7 +7663,43 @@ export class UserApi extends BaseAPI {
7231
7663
  }
7232
7664
 
7233
7665
  /**
7234
- * Update user
7666
+ *
7667
+ * @summary Resend Otp
7668
+ * @param {ResendOTPSchema} resendOTPSchema
7669
+ * @param {*} [options] Override http request option.
7670
+ * @throws {RequiredError}
7671
+ * @memberof UserApi
7672
+ */
7673
+ public resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig) {
7674
+ return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(this.axios, this.basePath));
7675
+ }
7676
+
7677
+ /**
7678
+ *
7679
+ * @summary Reset Password
7680
+ * @param {ResetPasswordSchema} resetPasswordSchema
7681
+ * @param {*} [options] Override http request option.
7682
+ * @throws {RequiredError}
7683
+ * @memberof UserApi
7684
+ */
7685
+ public resetPasswordV1UserResetPasswordPost(resetPasswordSchema: ResetPasswordSchema, options?: RawAxiosRequestConfig) {
7686
+ return UserApiFp(this.configuration).resetPasswordV1UserResetPasswordPost(resetPasswordSchema, options).then((request) => request(this.axios, this.basePath));
7687
+ }
7688
+
7689
+ /**
7690
+ *
7691
+ * @summary Send Verification Email
7692
+ * @param {SendOTPSchema} sendOTPSchema
7693
+ * @param {*} [options] Override http request option.
7694
+ * @throws {RequiredError}
7695
+ * @memberof UserApi
7696
+ */
7697
+ public sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema: SendOTPSchema, options?: RawAxiosRequestConfig) {
7698
+ return UserApiFp(this.configuration).sendVerificationEmailV1UserSendVerificationEmailPost(sendOTPSchema, options).then((request) => request(this.axios, this.basePath));
7699
+ }
7700
+
7701
+ /**
7702
+ *
7235
7703
  * @summary Update User
7236
7704
  * @param {UserUpdate} userUpdate
7237
7705
  * @param {string | null} [sessionId]
@@ -7242,6 +7710,18 @@ export class UserApi extends BaseAPI {
7242
7710
  public updateUserV1UserUpdatePatch(userUpdate: UserUpdate, sessionId?: string | null, options?: RawAxiosRequestConfig) {
7243
7711
  return UserApiFp(this.configuration).updateUserV1UserUpdatePatch(userUpdate, sessionId, options).then((request) => request(this.axios, this.basePath));
7244
7712
  }
7713
+
7714
+ /**
7715
+ *
7716
+ * @summary Verify Email
7717
+ * @param {VerifyEmailSchema} verifyEmailSchema
7718
+ * @param {*} [options] Override http request option.
7719
+ * @throws {RequiredError}
7720
+ * @memberof UserApi
7721
+ */
7722
+ public verifyEmailV1UserVerifyEmailPost(verifyEmailSchema: VerifyEmailSchema, options?: RawAxiosRequestConfig) {
7723
+ return UserApiFp(this.configuration).verifyEmailV1UserVerifyEmailPost(verifyEmailSchema, options).then((request) => request(this.axios, this.basePath));
7724
+ }
7245
7725
  }
7246
7726
 
7247
7727