@rasadov/lumoar-sdk 1.2.0 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -93,7 +93,7 @@ export interface AuditLogSchema {
93
93
  'user': UserBase;
94
94
  }
95
95
  /**
96
- * Authentication success response schema. Attributes: - access_token: str - token_type: str - user_id: str - role: str
96
+ * Authentication success response schema. Attributes: - detail: dict[str, str] - access_token: str - user: UserAuth | None
97
97
  * @export
98
98
  * @interface AuthenticationSuccess
99
99
  */
@@ -114,10 +114,10 @@ export interface AuthenticationSuccess {
114
114
  'access_token': string;
115
115
  /**
116
116
  *
117
- * @type {UserInDBBase}
117
+ * @type {UserAuth}
118
118
  * @memberof AuthenticationSuccess
119
119
  */
120
- 'user'?: UserInDBBase;
120
+ 'user': UserAuth | null;
121
121
  }
122
122
  /**
123
123
  *
@@ -261,6 +261,61 @@ export interface CompanyCreate {
261
261
  */
262
262
  'compliance_goal'?: ComplianceGoal;
263
263
  }
264
+ /**
265
+ *
266
+ * @export
267
+ * @interface CompanyInDBBase
268
+ */
269
+ export interface CompanyInDBBase {
270
+ /**
271
+ *
272
+ * @type {string}
273
+ * @memberof CompanyInDBBase
274
+ */
275
+ 'name': string;
276
+ /**
277
+ *
278
+ * @type {string}
279
+ * @memberof CompanyInDBBase
280
+ */
281
+ 'industry': string;
282
+ /**
283
+ *
284
+ * @type {number}
285
+ * @memberof CompanyInDBBase
286
+ */
287
+ 'employee_count': number;
288
+ /**
289
+ *
290
+ * @type {string}
291
+ * @memberof CompanyInDBBase
292
+ */
293
+ 'domain': string;
294
+ /**
295
+ *
296
+ * @type {string}
297
+ * @memberof CompanyInDBBase
298
+ */
299
+ 'status'?: string | null;
300
+ /**
301
+ *
302
+ * @type {string}
303
+ * @memberof CompanyInDBBase
304
+ */
305
+ 'id': string;
306
+ /**
307
+ *
308
+ * @type {string}
309
+ * @memberof CompanyInDBBase
310
+ */
311
+ 'updated_at': string;
312
+ /**
313
+ *
314
+ * @type {CompanyComplianceInDB}
315
+ * @memberof CompanyInDBBase
316
+ */
317
+ 'compliance'?: CompanyComplianceInDB | null;
318
+ }
264
319
  /**
265
320
  *
266
321
  * @export
@@ -346,6 +401,12 @@ export interface CompanyWithControls {
346
401
  * @memberof CompanyWithControls
347
402
  */
348
403
  'updated_at': string;
404
+ /**
405
+ *
406
+ * @type {CompanyComplianceInDB}
407
+ * @memberof CompanyWithControls
408
+ */
409
+ 'compliance'?: CompanyComplianceInDB | null;
349
410
  /**
350
411
  *
351
412
  * @type {Array<ControlWithEvidences>}
@@ -401,6 +462,12 @@ export interface CompanyWithRoles {
401
462
  * @memberof CompanyWithRoles
402
463
  */
403
464
  'updated_at': string;
465
+ /**
466
+ *
467
+ * @type {CompanyComplianceInDB}
468
+ * @memberof CompanyWithRoles
469
+ */
470
+ 'compliance'?: CompanyComplianceInDB | null;
404
471
  /**
405
472
  *
406
473
  * @type {Array<RolesWithUser>}
@@ -580,10 +647,10 @@ export interface ControlWithRelationships {
580
647
  'data': FrameworkControlsBase;
581
648
  /**
582
649
  *
583
- * @type {SrcSharedSchemasCompanyCompanyInDBBase}
650
+ * @type {CompanyInDBBase}
584
651
  * @memberof ControlWithRelationships
585
652
  */
586
- 'company': SrcSharedSchemasCompanyCompanyInDBBase;
653
+ 'company': CompanyInDBBase;
587
654
  /**
588
655
  *
589
656
  * @type {Array<EvidenceBase>}
@@ -1128,10 +1195,10 @@ export interface PaginationResponseAuditLogSchema {
1128
1195
  export interface PaginationResponseCompanyInDBBase {
1129
1196
  /**
1130
1197
  *
1131
- * @type {Array<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>}
1198
+ * @type {Array<CompanyInDBBase>}
1132
1199
  * @memberof PaginationResponseCompanyInDBBase
1133
1200
  */
1134
- 'items': Array<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>;
1201
+ 'items': Array<CompanyInDBBase>;
1135
1202
  /**
1136
1203
  *
1137
1204
  * @type {number}
@@ -1481,31 +1548,6 @@ export interface ReportGenerate {
1481
1548
  */
1482
1549
  'report_id': string;
1483
1550
  }
1484
- /**
1485
- * Schema for resending OTP
1486
- * @export
1487
- * @interface ResendOTPSchema
1488
- */
1489
- export interface ResendOTPSchema {
1490
- /**
1491
- *
1492
- * @type {string}
1493
- * @memberof ResendOTPSchema
1494
- */
1495
- 'email': string;
1496
- /**
1497
- *
1498
- * @type {string}
1499
- * @memberof ResendOTPSchema
1500
- */
1501
- 'otp_type': string;
1502
- /**
1503
- *
1504
- * @type {string}
1505
- * @memberof ResendOTPSchema
1506
- */
1507
- 'turnstile_token': string;
1508
- }
1509
1551
  /**
1510
1552
  * Schema for password reset
1511
1553
  * @export
@@ -1649,110 +1691,6 @@ export interface SchedulerRequest {
1649
1691
  */
1650
1692
  'user_ids_to_assign'?: Array<string>;
1651
1693
  }
1652
- /**
1653
- *
1654
- * @export
1655
- * @interface SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1656
- */
1657
- export interface SrcDomainsOrganizationSchemasCompanyCompanyInDBBase {
1658
- /**
1659
- *
1660
- * @type {string}
1661
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1662
- */
1663
- 'name': string;
1664
- /**
1665
- *
1666
- * @type {string}
1667
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1668
- */
1669
- 'industry': string;
1670
- /**
1671
- *
1672
- * @type {number}
1673
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1674
- */
1675
- 'employee_count': number;
1676
- /**
1677
- *
1678
- * @type {string}
1679
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1680
- */
1681
- 'domain': string;
1682
- /**
1683
- *
1684
- * @type {string}
1685
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1686
- */
1687
- 'status'?: string | null;
1688
- /**
1689
- *
1690
- * @type {string}
1691
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1692
- */
1693
- 'id': string;
1694
- /**
1695
- *
1696
- * @type {string}
1697
- * @memberof SrcDomainsOrganizationSchemasCompanyCompanyInDBBase
1698
- */
1699
- 'updated_at': string;
1700
- }
1701
- /**
1702
- *
1703
- * @export
1704
- * @interface SrcSharedSchemasCompanyCompanyInDBBase
1705
- */
1706
- export interface SrcSharedSchemasCompanyCompanyInDBBase {
1707
- /**
1708
- *
1709
- * @type {string}
1710
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1711
- */
1712
- 'name': string;
1713
- /**
1714
- *
1715
- * @type {string}
1716
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1717
- */
1718
- 'industry': string;
1719
- /**
1720
- *
1721
- * @type {number}
1722
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1723
- */
1724
- 'employee_count': number;
1725
- /**
1726
- *
1727
- * @type {string}
1728
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1729
- */
1730
- 'domain': string;
1731
- /**
1732
- *
1733
- * @type {string}
1734
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1735
- */
1736
- 'status'?: string | null;
1737
- /**
1738
- *
1739
- * @type {string}
1740
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1741
- */
1742
- 'id': string;
1743
- /**
1744
- *
1745
- * @type {string}
1746
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1747
- */
1748
- 'updated_at': string;
1749
- /**
1750
- *
1751
- * @type {CompanyComplianceInDB}
1752
- * @memberof SrcSharedSchemasCompanyCompanyInDBBase
1753
- */
1754
- 'compliance'?: CompanyComplianceInDB | null;
1755
- }
1756
1694
  /**
1757
1695
  *
1758
1696
  * @export
@@ -2058,6 +1996,37 @@ export interface UpdateTaskStatus {
2058
1996
  */
2059
1997
  'status': TaskStatus;
2060
1998
  }
1999
+ /**
2000
+ *
2001
+ * @export
2002
+ * @interface UserAuth
2003
+ */
2004
+ export interface UserAuth {
2005
+ /**
2006
+ *
2007
+ * @type {string}
2008
+ * @memberof UserAuth
2009
+ */
2010
+ 'name': string;
2011
+ /**
2012
+ *
2013
+ * @type {string}
2014
+ * @memberof UserAuth
2015
+ */
2016
+ 'email': string;
2017
+ /**
2018
+ *
2019
+ * @type {string}
2020
+ * @memberof UserAuth
2021
+ */
2022
+ 'role': string;
2023
+ /**
2024
+ *
2025
+ * @type {boolean}
2026
+ * @memberof UserAuth
2027
+ */
2028
+ 'email_confirmed': boolean;
2029
+ }
2061
2030
  /**
2062
2031
  *
2063
2032
  * @export
@@ -2140,10 +2109,10 @@ export interface UserPermissionsWithCompany {
2140
2109
  'role': string | null;
2141
2110
  /**
2142
2111
  *
2143
- * @type {SrcSharedSchemasCompanyCompanyInDBBase}
2112
+ * @type {CompanyInDBBase}
2144
2113
  * @memberof UserPermissionsWithCompany
2145
2114
  */
2146
- 'company': SrcSharedSchemasCompanyCompanyInDBBase | null;
2115
+ 'company': CompanyInDBBase | null;
2147
2116
  }
2148
2117
  /**
2149
2118
  *
@@ -2864,7 +2833,7 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2864
2833
  * @param {*} [options] Override http request option.
2865
2834
  * @throws {RequiredError}
2866
2835
  */
2867
- createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>>;
2836
+ createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyInDBBase>>;
2868
2837
  /**
2869
2838
  *
2870
2839
  * @summary Get Companies
@@ -2905,7 +2874,7 @@ export declare const CompanyApiFp: (configuration?: Configuration) => {
2905
2874
  * @param {*} [options] Override http request option.
2906
2875
  * @throws {RequiredError}
2907
2876
  */
2908
- updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>>;
2877
+ updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompanyInDBBase>>;
2909
2878
  };
2910
2879
  /**
2911
2880
  * CompanyApi - factory interface
@@ -2921,7 +2890,7 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2921
2890
  * @param {*} [options] Override http request option.
2922
2891
  * @throws {RequiredError}
2923
2892
  */
2924
- createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>;
2893
+ createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyInDBBase>;
2925
2894
  /**
2926
2895
  *
2927
2896
  * @summary Get Companies
@@ -2962,7 +2931,7 @@ export declare const CompanyApiFactory: (configuration?: Configuration, basePath
2962
2931
  * @param {*} [options] Override http request option.
2963
2932
  * @throws {RequiredError}
2964
2933
  */
2965
- updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase>;
2934
+ updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<CompanyInDBBase>;
2966
2935
  };
2967
2936
  /**
2968
2937
  * CompanyApi - object-oriented interface
@@ -2981,7 +2950,7 @@ export declare class CompanyApi extends BaseAPI {
2981
2950
  * @throws {RequiredError}
2982
2951
  * @memberof CompanyApi
2983
2952
  */
2984
- createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase, any, {}>>;
2953
+ createCompanyV1CompanyCreatePost(companyCreate: CompanyCreate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyInDBBase, any, {}>>;
2985
2954
  /**
2986
2955
  *
2987
2956
  * @summary Get Companies
@@ -3026,7 +2995,7 @@ export declare class CompanyApi extends BaseAPI {
3026
2995
  * @throws {RequiredError}
3027
2996
  * @memberof CompanyApi
3028
2997
  */
3029
- updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<SrcDomainsOrganizationSchemasCompanyCompanyInDBBase, any, {}>>;
2998
+ updateCompanyV1CompanyUpdatePatch(companyUpdate: CompanyUpdate, authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CompanyInDBBase, any, {}>>;
3030
2999
  }
3031
3000
  /**
3032
3001
  * ControlsApi - axios parameter creator
@@ -4896,14 +4865,23 @@ export declare const UserApiAxiosParamCreator: (configuration?: Configuration) =
4896
4865
  * @throws {RequiredError}
4897
4866
  */
4898
4867
  getUserV1UserMeGet: (sessionId?: string | null, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4868
+ /**
4869
+ *
4870
+ * @summary Resend Otp By Email
4871
+ * @param {string} email
4872
+ * @param {*} [options] Override http request option.
4873
+ * @throws {RequiredError}
4874
+ */
4875
+ resendOtpByEmailV1UserResendOtpEmailPost: (email: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4899
4876
  /**
4900
4877
  *
4901
4878
  * @summary Resend Otp
4902
- * @param {ResendOTPSchema} resendOTPSchema
4879
+ * @param {string} [authorization]
4880
+ * @param {string} [sessionId]
4903
4881
  * @param {*} [options] Override http request option.
4904
4882
  * @throws {RequiredError}
4905
4883
  */
4906
- resendOtpV1UserResendOtpPost: (resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4884
+ resendOtpV1UserResendOtpPost: (authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
4907
4885
  /**
4908
4886
  *
4909
4887
  * @summary Reset Password
@@ -4987,14 +4965,23 @@ export declare const UserApiFp: (configuration?: Configuration) => {
4987
4965
  * @throws {RequiredError}
4988
4966
  */
4989
4967
  getUserV1UserMeGet(sessionId?: string | null, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserInDBBase>>;
4968
+ /**
4969
+ *
4970
+ * @summary Resend Otp By Email
4971
+ * @param {string} email
4972
+ * @param {*} [options] Override http request option.
4973
+ * @throws {RequiredError}
4974
+ */
4975
+ resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
4990
4976
  /**
4991
4977
  *
4992
4978
  * @summary Resend Otp
4993
- * @param {ResendOTPSchema} resendOTPSchema
4979
+ * @param {string} [authorization]
4980
+ * @param {string} [sessionId]
4994
4981
  * @param {*} [options] Override http request option.
4995
4982
  * @throws {RequiredError}
4996
4983
  */
4997
- resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
4984
+ resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Details>>;
4998
4985
  /**
4999
4986
  *
5000
4987
  * @summary Reset Password
@@ -5078,14 +5065,23 @@ export declare const UserApiFactory: (configuration?: Configuration, basePath?:
5078
5065
  * @throws {RequiredError}
5079
5066
  */
5080
5067
  getUserV1UserMeGet(sessionId?: string | null, options?: RawAxiosRequestConfig): AxiosPromise<UserInDBBase>;
5068
+ /**
5069
+ *
5070
+ * @summary Resend Otp By Email
5071
+ * @param {string} email
5072
+ * @param {*} [options] Override http request option.
5073
+ * @throws {RequiredError}
5074
+ */
5075
+ resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
5081
5076
  /**
5082
5077
  *
5083
5078
  * @summary Resend Otp
5084
- * @param {ResendOTPSchema} resendOTPSchema
5079
+ * @param {string} [authorization]
5080
+ * @param {string} [sessionId]
5085
5081
  * @param {*} [options] Override http request option.
5086
5082
  * @throws {RequiredError}
5087
5083
  */
5088
- resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
5084
+ resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): AxiosPromise<Details>;
5089
5085
  /**
5090
5086
  *
5091
5087
  * @summary Reset Password
@@ -5176,15 +5172,25 @@ export declare class UserApi extends BaseAPI {
5176
5172
  * @memberof UserApi
5177
5173
  */
5178
5174
  getUserV1UserMeGet(sessionId?: string | null, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<UserInDBBase, any, {}>>;
5175
+ /**
5176
+ *
5177
+ * @summary Resend Otp By Email
5178
+ * @param {string} email
5179
+ * @param {*} [options] Override http request option.
5180
+ * @throws {RequiredError}
5181
+ * @memberof UserApi
5182
+ */
5183
+ resendOtpByEmailV1UserResendOtpEmailPost(email: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
5179
5184
  /**
5180
5185
  *
5181
5186
  * @summary Resend Otp
5182
- * @param {ResendOTPSchema} resendOTPSchema
5187
+ * @param {string} [authorization]
5188
+ * @param {string} [sessionId]
5183
5189
  * @param {*} [options] Override http request option.
5184
5190
  * @throws {RequiredError}
5185
5191
  * @memberof UserApi
5186
5192
  */
5187
- resendOtpV1UserResendOtpPost(resendOTPSchema: ResendOTPSchema, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
5193
+ resendOtpV1UserResendOtpPost(authorization?: string, sessionId?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Details, any, {}>>;
5188
5194
  /**
5189
5195
  *
5190
5196
  * @summary Reset Password
package/dist/api.js CHANGED
@@ -4961,16 +4961,44 @@ export const UserApiAxiosParamCreator = function (configuration) {
4961
4961
  options: localVarRequestOptions,
4962
4962
  };
4963
4963
  }),
4964
+ /**
4965
+ *
4966
+ * @summary Resend Otp By Email
4967
+ * @param {string} email
4968
+ * @param {*} [options] Override http request option.
4969
+ * @throws {RequiredError}
4970
+ */
4971
+ resendOtpByEmailV1UserResendOtpEmailPost: (email_1, ...args_1) => __awaiter(this, [email_1, ...args_1], void 0, function* (email, options = {}) {
4972
+ // verify required parameter 'email' is not null or undefined
4973
+ assertParamExists('resendOtpByEmailV1UserResendOtpEmailPost', 'email', email);
4974
+ const localVarPath = `/v1/user/resend-otp/{email}`
4975
+ .replace(`{${"email"}}`, encodeURIComponent(String(email)));
4976
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4977
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4978
+ let baseOptions;
4979
+ if (configuration) {
4980
+ baseOptions = configuration.baseOptions;
4981
+ }
4982
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4983
+ const localVarHeaderParameter = {};
4984
+ const localVarQueryParameter = {};
4985
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4986
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4987
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4988
+ return {
4989
+ url: toPathString(localVarUrlObj),
4990
+ options: localVarRequestOptions,
4991
+ };
4992
+ }),
4964
4993
  /**
4965
4994
  *
4966
4995
  * @summary Resend Otp
4967
- * @param {ResendOTPSchema} resendOTPSchema
4996
+ * @param {string} [authorization]
4997
+ * @param {string} [sessionId]
4968
4998
  * @param {*} [options] Override http request option.
4969
4999
  * @throws {RequiredError}
4970
5000
  */
4971
- resendOtpV1UserResendOtpPost: (resendOTPSchema_1, ...args_1) => __awaiter(this, [resendOTPSchema_1, ...args_1], void 0, function* (resendOTPSchema, options = {}) {
4972
- // verify required parameter 'resendOTPSchema' is not null or undefined
4973
- assertParamExists('resendOtpV1UserResendOtpPost', 'resendOTPSchema', resendOTPSchema);
5001
+ resendOtpV1UserResendOtpPost: (authorization_1, sessionId_1, ...args_1) => __awaiter(this, [authorization_1, sessionId_1, ...args_1], void 0, function* (authorization, sessionId, options = {}) {
4974
5002
  const localVarPath = `/v1/user/resend-otp`;
4975
5003
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
4976
5004
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -4981,11 +5009,12 @@ export const UserApiAxiosParamCreator = function (configuration) {
4981
5009
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4982
5010
  const localVarHeaderParameter = {};
4983
5011
  const localVarQueryParameter = {};
4984
- localVarHeaderParameter['Content-Type'] = 'application/json';
5012
+ if (authorization != null) {
5013
+ localVarHeaderParameter['Authorization'] = String(authorization);
5014
+ }
4985
5015
  setSearchParams(localVarUrlObj, localVarQueryParameter);
4986
5016
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4987
5017
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4988
- localVarRequestOptions.data = serializeDataIfNeeded(resendOTPSchema, localVarRequestOptions, configuration);
4989
5018
  return {
4990
5019
  url: toPathString(localVarUrlObj),
4991
5020
  options: localVarRequestOptions,
@@ -5207,17 +5236,34 @@ export const UserApiFp = function (configuration) {
5207
5236
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5208
5237
  });
5209
5238
  },
5239
+ /**
5240
+ *
5241
+ * @summary Resend Otp By Email
5242
+ * @param {string} email
5243
+ * @param {*} [options] Override http request option.
5244
+ * @throws {RequiredError}
5245
+ */
5246
+ resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
5247
+ return __awaiter(this, void 0, void 0, function* () {
5248
+ var _a, _b, _c;
5249
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpByEmailV1UserResendOtpEmailPost(email, options);
5250
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5251
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpByEmailV1UserResendOtpEmailPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5252
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5253
+ });
5254
+ },
5210
5255
  /**
5211
5256
  *
5212
5257
  * @summary Resend Otp
5213
- * @param {ResendOTPSchema} resendOTPSchema
5258
+ * @param {string} [authorization]
5259
+ * @param {string} [sessionId]
5214
5260
  * @param {*} [options] Override http request option.
5215
5261
  * @throws {RequiredError}
5216
5262
  */
5217
- resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
5263
+ resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5218
5264
  return __awaiter(this, void 0, void 0, function* () {
5219
5265
  var _a, _b, _c;
5220
- const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(resendOTPSchema, options);
5266
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.resendOtpV1UserResendOtpPost(authorization, sessionId, options);
5221
5267
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5222
5268
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['UserApi.resendOtpV1UserResendOtpPost']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5223
5269
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -5351,15 +5397,26 @@ export const UserApiFactory = function (configuration, basePath, axios) {
5351
5397
  getUserV1UserMeGet(sessionId, options) {
5352
5398
  return localVarFp.getUserV1UserMeGet(sessionId, options).then((request) => request(axios, basePath));
5353
5399
  },
5400
+ /**
5401
+ *
5402
+ * @summary Resend Otp By Email
5403
+ * @param {string} email
5404
+ * @param {*} [options] Override http request option.
5405
+ * @throws {RequiredError}
5406
+ */
5407
+ resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
5408
+ return localVarFp.resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(axios, basePath));
5409
+ },
5354
5410
  /**
5355
5411
  *
5356
5412
  * @summary Resend Otp
5357
- * @param {ResendOTPSchema} resendOTPSchema
5413
+ * @param {string} [authorization]
5414
+ * @param {string} [sessionId]
5358
5415
  * @param {*} [options] Override http request option.
5359
5416
  * @throws {RequiredError}
5360
5417
  */
5361
- resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
5362
- return localVarFp.resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(axios, basePath));
5418
+ resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5419
+ return localVarFp.resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(axios, basePath));
5363
5420
  },
5364
5421
  /**
5365
5422
  *
@@ -5470,16 +5527,28 @@ export class UserApi extends BaseAPI {
5470
5527
  getUserV1UserMeGet(sessionId, options) {
5471
5528
  return UserApiFp(this.configuration).getUserV1UserMeGet(sessionId, options).then((request) => request(this.axios, this.basePath));
5472
5529
  }
5530
+ /**
5531
+ *
5532
+ * @summary Resend Otp By Email
5533
+ * @param {string} email
5534
+ * @param {*} [options] Override http request option.
5535
+ * @throws {RequiredError}
5536
+ * @memberof UserApi
5537
+ */
5538
+ resendOtpByEmailV1UserResendOtpEmailPost(email, options) {
5539
+ return UserApiFp(this.configuration).resendOtpByEmailV1UserResendOtpEmailPost(email, options).then((request) => request(this.axios, this.basePath));
5540
+ }
5473
5541
  /**
5474
5542
  *
5475
5543
  * @summary Resend Otp
5476
- * @param {ResendOTPSchema} resendOTPSchema
5544
+ * @param {string} [authorization]
5545
+ * @param {string} [sessionId]
5477
5546
  * @param {*} [options] Override http request option.
5478
5547
  * @throws {RequiredError}
5479
5548
  * @memberof UserApi
5480
5549
  */
5481
- resendOtpV1UserResendOtpPost(resendOTPSchema, options) {
5482
- return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(resendOTPSchema, options).then((request) => request(this.axios, this.basePath));
5550
+ resendOtpV1UserResendOtpPost(authorization, sessionId, options) {
5551
+ return UserApiFp(this.configuration).resendOtpV1UserResendOtpPost(authorization, sessionId, options).then((request) => request(this.axios, this.basePath));
5483
5552
  }
5484
5553
  /**
5485
5554
  *
@@ -1,6 +1,6 @@
1
1
  # AuthenticationSuccess
2
2
 
3
- Authentication success response schema. Attributes: - access_token: str - token_type: str - user_id: str - role: str
3
+ Authentication success response schema. Attributes: - detail: dict[str, str] - access_token: str - user: UserAuth | None
4
4
 
5
5
  ## Properties
6
6
 
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **detail** | **{ [key: string]: string; }** | | [default to undefined]
10
10
  **access_token** | **string** | | [default to undefined]
11
- **user** | [**UserInDBBase**](UserInDBBase.md) | | [optional] [default to undefined]
11
+ **user** | [**UserAuth**](UserAuth.md) | | [default to undefined]
12
12
 
13
13
  ## Example
14
14