aaspai-authx 0.1.0 → 0.1.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/index.d.cts CHANGED
@@ -64,10 +64,20 @@ declare class AuthAdminService {
64
64
  }): Promise<(mongoose.Document<unknown, {}, {
65
65
  email: string;
66
66
  roles: string[];
67
- projectId: string;
68
- id: string;
69
67
  firstName: string;
70
68
  lastName: string;
69
+ metadata: mongoose.Types.DocumentArray<{
70
+ key: string;
71
+ value: any;
72
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
73
+ key: string;
74
+ value: any;
75
+ }> & {
76
+ key: string;
77
+ value: any;
78
+ }>;
79
+ projectId: string;
80
+ id: string;
71
81
  emailVerified: boolean;
72
82
  lastEmailSent: mongoose.Types.DocumentArray<{
73
83
  prototype?: {
@@ -220,6 +230,17 @@ declare class AuthAdminService {
220
230
  UTC?: {} | null | undefined;
221
231
  now?: {} | null | undefined;
222
232
  }>;
233
+ orgId?: string | null | undefined;
234
+ lastPasswordReset?: NativeDate | null | undefined;
235
+ passwordHash?: string | null | undefined;
236
+ } & mongoose.DefaultTimestampProps, {}, {
237
+ timestamps: true;
238
+ collection: string;
239
+ }> & {
240
+ email: string;
241
+ roles: string[];
242
+ firstName: string;
243
+ lastName: string;
223
244
  metadata: mongoose.Types.DocumentArray<{
224
245
  key: string;
225
246
  value: any;
@@ -230,19 +251,8 @@ declare class AuthAdminService {
230
251
  key: string;
231
252
  value: any;
232
253
  }>;
233
- orgId?: string | null | undefined;
234
- lastPasswordReset?: NativeDate | null | undefined;
235
- passwordHash?: string | null | undefined;
236
- } & mongoose.DefaultTimestampProps, {}, {
237
- timestamps: true;
238
- collection: string;
239
- }> & {
240
- email: string;
241
- roles: string[];
242
254
  projectId: string;
243
255
  id: string;
244
- firstName: string;
245
- lastName: string;
246
256
  emailVerified: boolean;
247
257
  lastEmailSent: mongoose.Types.DocumentArray<{
248
258
  prototype?: {
@@ -395,16 +405,6 @@ declare class AuthAdminService {
395
405
  UTC?: {} | null | undefined;
396
406
  now?: {} | null | undefined;
397
407
  }>;
398
- metadata: mongoose.Types.DocumentArray<{
399
- key: string;
400
- value: any;
401
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
402
- key: string;
403
- value: any;
404
- }> & {
405
- key: string;
406
- value: any;
407
- }>;
408
408
  orgId?: string | null | undefined;
409
409
  lastPasswordReset?: NativeDate | null | undefined;
410
410
  passwordHash?: string | null | undefined;
@@ -416,10 +416,20 @@ declare class AuthAdminService {
416
416
  getUserById(userId: string): Promise<(mongoose.Document<unknown, {}, {
417
417
  email: string;
418
418
  roles: string[];
419
- projectId: string;
420
- id: string;
421
419
  firstName: string;
422
420
  lastName: string;
421
+ metadata: mongoose.Types.DocumentArray<{
422
+ key: string;
423
+ value: any;
424
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
425
+ key: string;
426
+ value: any;
427
+ }> & {
428
+ key: string;
429
+ value: any;
430
+ }>;
431
+ projectId: string;
432
+ id: string;
423
433
  emailVerified: boolean;
424
434
  lastEmailSent: mongoose.Types.DocumentArray<{
425
435
  prototype?: {
@@ -572,6 +582,17 @@ declare class AuthAdminService {
572
582
  UTC?: {} | null | undefined;
573
583
  now?: {} | null | undefined;
574
584
  }>;
585
+ orgId?: string | null | undefined;
586
+ lastPasswordReset?: NativeDate | null | undefined;
587
+ passwordHash?: string | null | undefined;
588
+ } & mongoose.DefaultTimestampProps, {}, {
589
+ timestamps: true;
590
+ collection: string;
591
+ }> & {
592
+ email: string;
593
+ roles: string[];
594
+ firstName: string;
595
+ lastName: string;
575
596
  metadata: mongoose.Types.DocumentArray<{
576
597
  key: string;
577
598
  value: any;
@@ -582,19 +603,8 @@ declare class AuthAdminService {
582
603
  key: string;
583
604
  value: any;
584
605
  }>;
585
- orgId?: string | null | undefined;
586
- lastPasswordReset?: NativeDate | null | undefined;
587
- passwordHash?: string | null | undefined;
588
- } & mongoose.DefaultTimestampProps, {}, {
589
- timestamps: true;
590
- collection: string;
591
- }> & {
592
- email: string;
593
- roles: string[];
594
606
  projectId: string;
595
607
  id: string;
596
- firstName: string;
597
- lastName: string;
598
608
  emailVerified: boolean;
599
609
  lastEmailSent: mongoose.Types.DocumentArray<{
600
610
  prototype?: {
@@ -747,16 +757,6 @@ declare class AuthAdminService {
747
757
  UTC?: {} | null | undefined;
748
758
  now?: {} | null | undefined;
749
759
  }>;
750
- metadata: mongoose.Types.DocumentArray<{
751
- key: string;
752
- value: any;
753
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
754
- key: string;
755
- value: any;
756
- }> & {
757
- key: string;
758
- value: any;
759
- }>;
760
760
  orgId?: string | null | undefined;
761
761
  lastPasswordReset?: NativeDate | null | undefined;
762
762
  passwordHash?: string | null | undefined;
@@ -774,13 +774,24 @@ declare class AuthAdminService {
774
774
  lastName?: string;
775
775
  credentials?: any[];
776
776
  emailVerified?: boolean;
777
+ metadata?: any[];
777
778
  }): Promise<mongoose.Document<unknown, {}, {
778
779
  email: string;
779
780
  roles: string[];
780
- projectId: string;
781
- id: string;
782
781
  firstName: string;
783
782
  lastName: string;
783
+ metadata: mongoose.Types.DocumentArray<{
784
+ key: string;
785
+ value: any;
786
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
787
+ key: string;
788
+ value: any;
789
+ }> & {
790
+ key: string;
791
+ value: any;
792
+ }>;
793
+ projectId: string;
794
+ id: string;
784
795
  emailVerified: boolean;
785
796
  lastEmailSent: mongoose.Types.DocumentArray<{
786
797
  prototype?: {
@@ -933,6 +944,17 @@ declare class AuthAdminService {
933
944
  UTC?: {} | null | undefined;
934
945
  now?: {} | null | undefined;
935
946
  }>;
947
+ orgId?: string | null | undefined;
948
+ lastPasswordReset?: NativeDate | null | undefined;
949
+ passwordHash?: string | null | undefined;
950
+ } & mongoose.DefaultTimestampProps, {}, {
951
+ timestamps: true;
952
+ collection: string;
953
+ }> & {
954
+ email: string;
955
+ roles: string[];
956
+ firstName: string;
957
+ lastName: string;
936
958
  metadata: mongoose.Types.DocumentArray<{
937
959
  key: string;
938
960
  value: any;
@@ -943,19 +965,8 @@ declare class AuthAdminService {
943
965
  key: string;
944
966
  value: any;
945
967
  }>;
946
- orgId?: string | null | undefined;
947
- lastPasswordReset?: NativeDate | null | undefined;
948
- passwordHash?: string | null | undefined;
949
- } & mongoose.DefaultTimestampProps, {}, {
950
- timestamps: true;
951
- collection: string;
952
- }> & {
953
- email: string;
954
- roles: string[];
955
968
  projectId: string;
956
969
  id: string;
957
- firstName: string;
958
- lastName: string;
959
970
  emailVerified: boolean;
960
971
  lastEmailSent: mongoose.Types.DocumentArray<{
961
972
  prototype?: {
@@ -1108,16 +1119,6 @@ declare class AuthAdminService {
1108
1119
  UTC?: {} | null | undefined;
1109
1120
  now?: {} | null | undefined;
1110
1121
  }>;
1111
- metadata: mongoose.Types.DocumentArray<{
1112
- key: string;
1113
- value: any;
1114
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
1115
- key: string;
1116
- value: any;
1117
- }> & {
1118
- key: string;
1119
- value: any;
1120
- }>;
1121
1122
  orgId?: string | null | undefined;
1122
1123
  lastPasswordReset?: NativeDate | null | undefined;
1123
1124
  passwordHash?: string | null | undefined;
package/dist/index.d.ts CHANGED
@@ -64,10 +64,20 @@ declare class AuthAdminService {
64
64
  }): Promise<(mongoose.Document<unknown, {}, {
65
65
  email: string;
66
66
  roles: string[];
67
- projectId: string;
68
- id: string;
69
67
  firstName: string;
70
68
  lastName: string;
69
+ metadata: mongoose.Types.DocumentArray<{
70
+ key: string;
71
+ value: any;
72
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
73
+ key: string;
74
+ value: any;
75
+ }> & {
76
+ key: string;
77
+ value: any;
78
+ }>;
79
+ projectId: string;
80
+ id: string;
71
81
  emailVerified: boolean;
72
82
  lastEmailSent: mongoose.Types.DocumentArray<{
73
83
  prototype?: {
@@ -220,6 +230,17 @@ declare class AuthAdminService {
220
230
  UTC?: {} | null | undefined;
221
231
  now?: {} | null | undefined;
222
232
  }>;
233
+ orgId?: string | null | undefined;
234
+ lastPasswordReset?: NativeDate | null | undefined;
235
+ passwordHash?: string | null | undefined;
236
+ } & mongoose.DefaultTimestampProps, {}, {
237
+ timestamps: true;
238
+ collection: string;
239
+ }> & {
240
+ email: string;
241
+ roles: string[];
242
+ firstName: string;
243
+ lastName: string;
223
244
  metadata: mongoose.Types.DocumentArray<{
224
245
  key: string;
225
246
  value: any;
@@ -230,19 +251,8 @@ declare class AuthAdminService {
230
251
  key: string;
231
252
  value: any;
232
253
  }>;
233
- orgId?: string | null | undefined;
234
- lastPasswordReset?: NativeDate | null | undefined;
235
- passwordHash?: string | null | undefined;
236
- } & mongoose.DefaultTimestampProps, {}, {
237
- timestamps: true;
238
- collection: string;
239
- }> & {
240
- email: string;
241
- roles: string[];
242
254
  projectId: string;
243
255
  id: string;
244
- firstName: string;
245
- lastName: string;
246
256
  emailVerified: boolean;
247
257
  lastEmailSent: mongoose.Types.DocumentArray<{
248
258
  prototype?: {
@@ -395,16 +405,6 @@ declare class AuthAdminService {
395
405
  UTC?: {} | null | undefined;
396
406
  now?: {} | null | undefined;
397
407
  }>;
398
- metadata: mongoose.Types.DocumentArray<{
399
- key: string;
400
- value: any;
401
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
402
- key: string;
403
- value: any;
404
- }> & {
405
- key: string;
406
- value: any;
407
- }>;
408
408
  orgId?: string | null | undefined;
409
409
  lastPasswordReset?: NativeDate | null | undefined;
410
410
  passwordHash?: string | null | undefined;
@@ -416,10 +416,20 @@ declare class AuthAdminService {
416
416
  getUserById(userId: string): Promise<(mongoose.Document<unknown, {}, {
417
417
  email: string;
418
418
  roles: string[];
419
- projectId: string;
420
- id: string;
421
419
  firstName: string;
422
420
  lastName: string;
421
+ metadata: mongoose.Types.DocumentArray<{
422
+ key: string;
423
+ value: any;
424
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
425
+ key: string;
426
+ value: any;
427
+ }> & {
428
+ key: string;
429
+ value: any;
430
+ }>;
431
+ projectId: string;
432
+ id: string;
423
433
  emailVerified: boolean;
424
434
  lastEmailSent: mongoose.Types.DocumentArray<{
425
435
  prototype?: {
@@ -572,6 +582,17 @@ declare class AuthAdminService {
572
582
  UTC?: {} | null | undefined;
573
583
  now?: {} | null | undefined;
574
584
  }>;
585
+ orgId?: string | null | undefined;
586
+ lastPasswordReset?: NativeDate | null | undefined;
587
+ passwordHash?: string | null | undefined;
588
+ } & mongoose.DefaultTimestampProps, {}, {
589
+ timestamps: true;
590
+ collection: string;
591
+ }> & {
592
+ email: string;
593
+ roles: string[];
594
+ firstName: string;
595
+ lastName: string;
575
596
  metadata: mongoose.Types.DocumentArray<{
576
597
  key: string;
577
598
  value: any;
@@ -582,19 +603,8 @@ declare class AuthAdminService {
582
603
  key: string;
583
604
  value: any;
584
605
  }>;
585
- orgId?: string | null | undefined;
586
- lastPasswordReset?: NativeDate | null | undefined;
587
- passwordHash?: string | null | undefined;
588
- } & mongoose.DefaultTimestampProps, {}, {
589
- timestamps: true;
590
- collection: string;
591
- }> & {
592
- email: string;
593
- roles: string[];
594
606
  projectId: string;
595
607
  id: string;
596
- firstName: string;
597
- lastName: string;
598
608
  emailVerified: boolean;
599
609
  lastEmailSent: mongoose.Types.DocumentArray<{
600
610
  prototype?: {
@@ -747,16 +757,6 @@ declare class AuthAdminService {
747
757
  UTC?: {} | null | undefined;
748
758
  now?: {} | null | undefined;
749
759
  }>;
750
- metadata: mongoose.Types.DocumentArray<{
751
- key: string;
752
- value: any;
753
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
754
- key: string;
755
- value: any;
756
- }> & {
757
- key: string;
758
- value: any;
759
- }>;
760
760
  orgId?: string | null | undefined;
761
761
  lastPasswordReset?: NativeDate | null | undefined;
762
762
  passwordHash?: string | null | undefined;
@@ -774,13 +774,24 @@ declare class AuthAdminService {
774
774
  lastName?: string;
775
775
  credentials?: any[];
776
776
  emailVerified?: boolean;
777
+ metadata?: any[];
777
778
  }): Promise<mongoose.Document<unknown, {}, {
778
779
  email: string;
779
780
  roles: string[];
780
- projectId: string;
781
- id: string;
782
781
  firstName: string;
783
782
  lastName: string;
783
+ metadata: mongoose.Types.DocumentArray<{
784
+ key: string;
785
+ value: any;
786
+ }, mongoose.Types.Subdocument<bson.ObjectId, any, {
787
+ key: string;
788
+ value: any;
789
+ }> & {
790
+ key: string;
791
+ value: any;
792
+ }>;
793
+ projectId: string;
794
+ id: string;
784
795
  emailVerified: boolean;
785
796
  lastEmailSent: mongoose.Types.DocumentArray<{
786
797
  prototype?: {
@@ -933,6 +944,17 @@ declare class AuthAdminService {
933
944
  UTC?: {} | null | undefined;
934
945
  now?: {} | null | undefined;
935
946
  }>;
947
+ orgId?: string | null | undefined;
948
+ lastPasswordReset?: NativeDate | null | undefined;
949
+ passwordHash?: string | null | undefined;
950
+ } & mongoose.DefaultTimestampProps, {}, {
951
+ timestamps: true;
952
+ collection: string;
953
+ }> & {
954
+ email: string;
955
+ roles: string[];
956
+ firstName: string;
957
+ lastName: string;
936
958
  metadata: mongoose.Types.DocumentArray<{
937
959
  key: string;
938
960
  value: any;
@@ -943,19 +965,8 @@ declare class AuthAdminService {
943
965
  key: string;
944
966
  value: any;
945
967
  }>;
946
- orgId?: string | null | undefined;
947
- lastPasswordReset?: NativeDate | null | undefined;
948
- passwordHash?: string | null | undefined;
949
- } & mongoose.DefaultTimestampProps, {}, {
950
- timestamps: true;
951
- collection: string;
952
- }> & {
953
- email: string;
954
- roles: string[];
955
968
  projectId: string;
956
969
  id: string;
957
- firstName: string;
958
- lastName: string;
959
970
  emailVerified: boolean;
960
971
  lastEmailSent: mongoose.Types.DocumentArray<{
961
972
  prototype?: {
@@ -1108,16 +1119,6 @@ declare class AuthAdminService {
1108
1119
  UTC?: {} | null | undefined;
1109
1120
  now?: {} | null | undefined;
1110
1121
  }>;
1111
- metadata: mongoose.Types.DocumentArray<{
1112
- key: string;
1113
- value: any;
1114
- }, mongoose.Types.Subdocument<bson.ObjectId, any, {
1115
- key: string;
1116
- value: any;
1117
- }> & {
1118
- key: string;
1119
- value: any;
1120
- }>;
1121
1122
  orgId?: string | null | undefined;
1122
1123
  lastPasswordReset?: NativeDate | null | undefined;
1123
1124
  passwordHash?: string | null | undefined;