@36node/auth-sdk 1.6.5-pr-37-e873b45f73 → 1.6.5-pr-37-9ee874342a

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.
@@ -1,1733 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CreateRoleDtoSchema = exports.RegionSchema = exports.IndustrySchema = exports.bindThirdPartyDtoSchema = exports.UpdateThirdPartyDtoSchema = exports.ThirdPartySchema = exports.createThirdPartyDtoSchema = exports.ThirdPartySourceSchema = exports.UpdateSmsRecordDtoSchema = exports.SmsRecordSchema = exports.CreateSmsRecordDtoSchema = exports.SmsStatusSchema = exports.SendSmsDtoSchema = exports.UpdateEmailRecordDtoSchema = exports.EmailRecordSchema = exports.CreateEmailRecordDtoSchema = exports.EmailStatusSchema = exports.SendEmailDtoSchema = exports.VerifyCaptchaResultDtoSchema = exports.VerifyCaptchaDtoSchema = exports.UpdateCaptchaDtoSchema = exports.CaptchaSchema = exports.CreateCaptchaDtoSchema = exports.UpdateGroupDtoSchema = exports.GroupSchema = exports.CreateGroupDtoSchema = exports.UpdateSessionDtoSchema = exports.SessionSchema = exports.CreateSessionDtoSchema = exports.UpdateNamespaceDtoSchema = exports.NamespaceSchema = exports.CreateNamespaceDtoSchema = exports.UpdatePasswordDtoSchema = exports.ResetPasswordDtoSchema = exports.UpdateUserDtoSchema = exports.CreateUserDtoSchema = exports.RefreshTokenDtoSchema = exports.TokenSchema = exports.SignTokenDtoSchema = exports.RegisterByEmailDtoSchema = exports.RegisterbyPhoneDtoSchema = exports.UserSchema = exports.RegisterDtoSchema = exports.LogoutDtoSchema = exports.LoginByPhoneDtoSchema = exports.LoginByEmailDtoSchema = exports.GithubDtoSchema = exports.SessionWithTokenSchema = exports.LoginDtoSchema = exports.HealthCheckResultSchema = void 0;
4
- exports.UpdateRoleDtoSchema = exports.RoleSchema = void 0;
5
- exports.HealthCheckResultSchema = {
6
- type: 'object',
7
- properties: {
8
- message: {
9
- type: 'string',
10
- },
11
- },
12
- required: ['message'],
13
- };
14
- exports.LoginDtoSchema = {
15
- type: 'object',
16
- properties: {
17
- login: {
18
- type: 'string',
19
- description: '可以是 username/phone/Email',
20
- },
21
- password: {
22
- type: 'string',
23
- description: '密码',
24
- },
25
- },
26
- required: ['login', 'password'],
27
- };
28
- exports.SessionWithTokenSchema = {
29
- type: 'object',
30
- properties: {
31
- refreshTokenExpireAt: {
32
- format: 'date-time',
33
- type: 'string',
34
- description: '会话过期时间',
35
- },
36
- refreshToken: {
37
- type: 'string',
38
- description: 'refresh token',
39
- },
40
- uid: {
41
- type: 'string',
42
- description: '用户或第三方用户',
43
- },
44
- source: {
45
- description: '第三方来源',
46
- enum: ['GitHub', 'WeChat'],
47
- type: 'string',
48
- },
49
- client: {
50
- type: 'string',
51
- description: '客户端/设备',
52
- },
53
- permissions: {
54
- description: '用户动态权限',
55
- type: 'array',
56
- items: {
57
- type: 'string',
58
- },
59
- },
60
- ns: {
61
- type: 'string',
62
- description: 'user ns',
63
- },
64
- type: {
65
- type: 'string',
66
- description: '类型,登录端',
67
- },
68
- id: {
69
- type: 'string',
70
- description: 'Entity id',
71
- },
72
- createdAt: {
73
- format: 'date-time',
74
- type: 'string',
75
- description: 'Entity created at when',
76
- },
77
- updatedAt: {
78
- format: 'date-time',
79
- type: 'string',
80
- description: 'Entity updated at when',
81
- },
82
- createdBy: {
83
- type: 'string',
84
- description: 'Entity created by who',
85
- },
86
- updatedBy: {
87
- type: 'string',
88
- description: 'Entity updated by who',
89
- },
90
- token: {
91
- type: 'string',
92
- description: 'token',
93
- },
94
- tokenExpireAt: {
95
- format: 'date-time',
96
- type: 'string',
97
- description: 'token 过期时间',
98
- },
99
- },
100
- required: ['refreshTokenExpireAt', 'refreshToken', 'uid', 'id', 'token', 'tokenExpireAt'],
101
- };
102
- exports.GithubDtoSchema = {
103
- type: 'object',
104
- properties: {
105
- code: {
106
- type: 'string',
107
- },
108
- },
109
- required: ['code'],
110
- };
111
- exports.LoginByEmailDtoSchema = {
112
- type: 'object',
113
- properties: {
114
- email: {
115
- type: 'string',
116
- description: '邮箱',
117
- },
118
- key: {
119
- type: 'string',
120
- description: '验证码 key',
121
- },
122
- code: {
123
- type: 'string',
124
- description: '验证码 code',
125
- },
126
- },
127
- required: ['email', 'key', 'code'],
128
- };
129
- exports.LoginByPhoneDtoSchema = {
130
- type: 'object',
131
- properties: {
132
- phone: {
133
- type: 'string',
134
- description: '手机号',
135
- },
136
- key: {
137
- type: 'string',
138
- description: '验证码 key',
139
- },
140
- code: {
141
- type: 'string',
142
- description: '验证码 code',
143
- },
144
- },
145
- required: ['phone', 'key', 'code'],
146
- };
147
- exports.LogoutDtoSchema = {
148
- type: 'object',
149
- properties: {
150
- refreshToken: {
151
- type: 'string',
152
- description: 'session refreshToken',
153
- },
154
- },
155
- required: ['refreshToken'],
156
- };
157
- exports.RegisterDtoSchema = {
158
- type: 'object',
159
- properties: {
160
- username: {
161
- type: 'string',
162
- description: '用户名',
163
- },
164
- password: {
165
- type: 'string',
166
- description: '密码',
167
- },
168
- ns: {
169
- type: 'string',
170
- description: '命名空间',
171
- },
172
- },
173
- required: ['username', 'password'],
174
- };
175
- exports.UserSchema = {
176
- type: 'object',
177
- properties: {
178
- password: {
179
- type: 'string',
180
- description: '密码',
181
- writeOnly: true,
182
- },
183
- hasPassword: {
184
- type: 'boolean',
185
- description: '是否有密码',
186
- readOnly: true,
187
- },
188
- avatar: {
189
- type: 'string',
190
- description: '头像',
191
- },
192
- data: {
193
- type: 'string',
194
- description: '额外数据',
195
- },
196
- email: {
197
- type: 'string',
198
- description: '邮箱',
199
- },
200
- name: {
201
- type: 'string',
202
- description: '姓名',
203
- },
204
- identity: {
205
- type: 'string',
206
- },
207
- identityVerifiedAt: {
208
- format: 'date-time',
209
- type: 'string',
210
- description: '实名认证时间',
211
- },
212
- identityVerified: {
213
- type: 'boolean',
214
- description: '实名认证是否通过',
215
- },
216
- intro: {
217
- type: 'string',
218
- description: '简介',
219
- },
220
- language: {
221
- type: 'string',
222
- description: '使用语言',
223
- },
224
- lastLoginIp: {
225
- type: 'string',
226
- description: '最后登录 IP',
227
- },
228
- lastSeenAt: {
229
- format: 'date-time',
230
- type: 'string',
231
- description: '最后活跃时间',
232
- },
233
- nickname: {
234
- type: 'string',
235
- description: '昵称',
236
- },
237
- ns: {
238
- type: 'string',
239
- description: '所属命名空间',
240
- },
241
- phone: {
242
- type: 'string',
243
- description: '手机号',
244
- },
245
- registerIp: {
246
- type: 'string',
247
- description: '注册 IP',
248
- },
249
- registerRegion: {
250
- type: 'string',
251
- description: '注册地区,存地区编号',
252
- },
253
- roles: {
254
- description: '角色',
255
- type: 'array',
256
- items: {
257
- type: 'string',
258
- },
259
- },
260
- username: {
261
- type: 'string',
262
- description: '用户名',
263
- },
264
- employeeId: {
265
- type: 'string',
266
- description: '员工编号',
267
- },
268
- permissions: {
269
- description: '权限',
270
- type: 'array',
271
- items: {
272
- type: 'string',
273
- },
274
- },
275
- groups: {
276
- description: '团队',
277
- type: 'array',
278
- items: {
279
- type: 'string',
280
- },
281
- },
282
- lastLoginAt: {
283
- format: 'date-time',
284
- type: 'string',
285
- description: '最后登录时间',
286
- },
287
- active: {
288
- type: 'boolean',
289
- description: '是否启用',
290
- },
291
- status: {
292
- type: 'string',
293
- description: '状态',
294
- },
295
- expireAt: {
296
- format: 'date-time',
297
- type: 'string',
298
- description: '过期时间',
299
- },
300
- type: {
301
- type: 'string',
302
- description: '类型, 登录端',
303
- },
304
- id: {
305
- type: 'string',
306
- description: 'Entity id',
307
- },
308
- createdAt: {
309
- format: 'date-time',
310
- type: 'string',
311
- description: 'Entity created at when',
312
- },
313
- updatedAt: {
314
- format: 'date-time',
315
- type: 'string',
316
- description: 'Entity updated at when',
317
- },
318
- createdBy: {
319
- type: 'string',
320
- description: 'Entity created by who',
321
- },
322
- updatedBy: {
323
- type: 'string',
324
- description: 'Entity updated by who',
325
- },
326
- },
327
- required: ['id'],
328
- };
329
- exports.RegisterbyPhoneDtoSchema = {
330
- type: 'object',
331
- properties: {
332
- phone: {
333
- type: 'string',
334
- description: '手机号',
335
- },
336
- key: {
337
- type: 'string',
338
- description: '验证码 key',
339
- },
340
- code: {
341
- type: 'string',
342
- description: '验证码 code',
343
- },
344
- ns: {
345
- type: 'string',
346
- description: '命名空间',
347
- },
348
- },
349
- required: ['phone', 'key', 'code'],
350
- };
351
- exports.RegisterByEmailDtoSchema = {
352
- type: 'object',
353
- properties: {
354
- email: {
355
- type: 'string',
356
- description: '邮箱',
357
- },
358
- key: {
359
- type: 'string',
360
- description: '验证码 key',
361
- },
362
- code: {
363
- type: 'string',
364
- description: '验证码 code',
365
- },
366
- ns: {
367
- type: 'string',
368
- description: '命名空间',
369
- },
370
- },
371
- required: ['email', 'key', 'code'],
372
- };
373
- exports.SignTokenDtoSchema = {
374
- type: 'object',
375
- properties: {
376
- expiresIn: {
377
- type: 'string',
378
- description: `short time span string
379
-
380
- refs: https://github.com/vercel/ms
381
-
382
- eg: "2 days", "10h", "7d", "120s", "2.5 hrs", "2h", "1m", "5s", "1y", "100", "1y1m1d"
383
-
384
- m => minute
385
- h => hour
386
- d => day
387
- w => week
388
- M => month
389
- y => year
390
- s => second
391
- ms => millisecond
392
- 无单位 => millisecond`,
393
- },
394
- uid: {
395
- type: 'string',
396
- description: 'user id',
397
- },
398
- source: {
399
- type: 'string',
400
- description: 'user source',
401
- enum: ['GitHub', 'WeChat'],
402
- },
403
- },
404
- required: ['expiresIn', 'uid'],
405
- };
406
- exports.TokenSchema = {
407
- type: 'object',
408
- properties: {
409
- token: {
410
- type: 'string',
411
- description: 'token',
412
- },
413
- tokenExpireAt: {
414
- format: 'date-time',
415
- type: 'string',
416
- description: 'token 过期时间',
417
- },
418
- },
419
- required: ['token', 'tokenExpireAt'],
420
- };
421
- exports.RefreshTokenDtoSchema = {
422
- type: 'object',
423
- properties: {
424
- refreshToken: {
425
- type: 'string',
426
- description: 'user id',
427
- },
428
- },
429
- required: ['refreshToken'],
430
- };
431
- exports.CreateUserDtoSchema = {
432
- type: 'object',
433
- properties: {
434
- password: {
435
- type: 'string',
436
- description: '密码',
437
- writeOnly: true,
438
- },
439
- hasPassword: {
440
- type: 'boolean',
441
- description: '是否有密码',
442
- readOnly: true,
443
- },
444
- avatar: {
445
- type: 'string',
446
- description: '头像',
447
- },
448
- data: {
449
- type: 'string',
450
- description: '额外数据',
451
- },
452
- email: {
453
- type: 'string',
454
- description: '邮箱',
455
- },
456
- name: {
457
- type: 'string',
458
- description: '姓名',
459
- },
460
- identity: {
461
- type: 'string',
462
- },
463
- identityVerifiedAt: {
464
- format: 'date-time',
465
- type: 'string',
466
- description: '实名认证时间',
467
- },
468
- identityVerified: {
469
- type: 'boolean',
470
- description: '实名认证是否通过',
471
- },
472
- intro: {
473
- type: 'string',
474
- description: '简介',
475
- },
476
- language: {
477
- type: 'string',
478
- description: '使用语言',
479
- },
480
- nickname: {
481
- type: 'string',
482
- description: '昵称',
483
- },
484
- ns: {
485
- type: 'string',
486
- description: '所属命名空间',
487
- },
488
- phone: {
489
- type: 'string',
490
- description: '手机号',
491
- },
492
- registerRegion: {
493
- type: 'string',
494
- description: '注册地区,存地区编号',
495
- },
496
- roles: {
497
- description: '角色',
498
- type: 'array',
499
- items: {
500
- type: 'string',
501
- },
502
- },
503
- username: {
504
- type: 'string',
505
- description: '用户名',
506
- },
507
- employeeId: {
508
- type: 'string',
509
- description: '员工编号',
510
- },
511
- permissions: {
512
- description: '权限',
513
- type: 'array',
514
- items: {
515
- type: 'string',
516
- },
517
- },
518
- groups: {
519
- description: '团队',
520
- type: 'array',
521
- items: {
522
- type: 'string',
523
- },
524
- },
525
- active: {
526
- type: 'boolean',
527
- description: '是否启用',
528
- },
529
- status: {
530
- type: 'string',
531
- description: '状态',
532
- },
533
- expireAt: {
534
- format: 'date-time',
535
- type: 'string',
536
- description: '过期时间',
537
- },
538
- type: {
539
- type: 'string',
540
- description: '类型, 登录端',
541
- },
542
- },
543
- };
544
- exports.UpdateUserDtoSchema = {
545
- type: 'object',
546
- properties: {
547
- hasPassword: {
548
- type: 'boolean',
549
- description: '是否有密码',
550
- readOnly: true,
551
- },
552
- avatar: {
553
- type: 'string',
554
- description: '头像',
555
- },
556
- data: {
557
- type: 'string',
558
- description: '额外数据',
559
- },
560
- email: {
561
- type: 'string',
562
- description: '邮箱',
563
- },
564
- name: {
565
- type: 'string',
566
- description: '姓名',
567
- },
568
- identity: {
569
- type: 'string',
570
- },
571
- identityVerifiedAt: {
572
- format: 'date-time',
573
- type: 'string',
574
- description: '实名认证时间',
575
- },
576
- identityVerified: {
577
- type: 'boolean',
578
- description: '实名认证是否通过',
579
- },
580
- intro: {
581
- type: 'string',
582
- description: '简介',
583
- },
584
- language: {
585
- type: 'string',
586
- description: '使用语言',
587
- },
588
- lastLoginIp: {
589
- type: 'string',
590
- description: '最后登录 IP',
591
- },
592
- lastSeenAt: {
593
- format: 'date-time',
594
- type: 'string',
595
- description: '最后活跃时间',
596
- },
597
- nickname: {
598
- type: 'string',
599
- description: '昵称',
600
- },
601
- ns: {
602
- type: 'string',
603
- description: '所属命名空间',
604
- },
605
- phone: {
606
- type: 'string',
607
- description: '手机号',
608
- },
609
- registerIp: {
610
- type: 'string',
611
- description: '注册 IP',
612
- },
613
- registerRegion: {
614
- type: 'string',
615
- description: '注册地区,存地区编号',
616
- },
617
- roles: {
618
- description: '角色',
619
- type: 'array',
620
- items: {
621
- type: 'string',
622
- },
623
- },
624
- username: {
625
- type: 'string',
626
- description: '用户名',
627
- },
628
- employeeId: {
629
- type: 'string',
630
- description: '员工编号',
631
- },
632
- permissions: {
633
- description: '权限',
634
- type: 'array',
635
- items: {
636
- type: 'string',
637
- },
638
- },
639
- groups: {
640
- description: '团队',
641
- type: 'array',
642
- items: {
643
- type: 'string',
644
- },
645
- },
646
- lastLoginAt: {
647
- format: 'date-time',
648
- type: 'string',
649
- description: '最后登录时间',
650
- },
651
- active: {
652
- type: 'boolean',
653
- description: '是否启用',
654
- },
655
- status: {
656
- type: 'string',
657
- description: '状态',
658
- },
659
- expireAt: {
660
- format: 'date-time',
661
- type: 'string',
662
- description: '过期时间',
663
- },
664
- type: {
665
- type: 'string',
666
- description: '类型, 登录端',
667
- },
668
- },
669
- };
670
- exports.ResetPasswordDtoSchema = {
671
- type: 'object',
672
- properties: {
673
- password: {
674
- type: 'string',
675
- description: '密码',
676
- },
677
- },
678
- };
679
- exports.UpdatePasswordDtoSchema = {
680
- type: 'object',
681
- properties: {
682
- oldPassword: {
683
- type: 'string',
684
- description: '旧密码',
685
- },
686
- newPassword: {
687
- type: 'string',
688
- description: '新密码',
689
- },
690
- },
691
- required: ['newPassword'],
692
- };
693
- exports.CreateNamespaceDtoSchema = {
694
- type: 'object',
695
- properties: {
696
- data: {
697
- type: 'string',
698
- description: '额外数据',
699
- },
700
- desc: {
701
- type: 'string',
702
- description: '描述',
703
- },
704
- labels: {
705
- description: '标签',
706
- type: 'array',
707
- items: {
708
- type: 'string',
709
- },
710
- },
711
- name: {
712
- type: 'string',
713
- description: '名称',
714
- },
715
- key: {
716
- type: 'string',
717
- description: `命名空间的 key
718
-
719
- 允许的字符 ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$`,
720
- },
721
- ns: {
722
- type: 'string',
723
- description: '所属的 namespace',
724
- },
725
- permissions: {
726
- description: '权限',
727
- type: 'array',
728
- items: {
729
- type: 'string',
730
- },
731
- },
732
- active: {
733
- type: 'boolean',
734
- description: '是否启用',
735
- },
736
- defaultPassword: {
737
- type: 'string',
738
- description: '默认密码',
739
- },
740
- exportable: {
741
- type: 'boolean',
742
- description: '是否可导出',
743
- },
744
- userCount: {
745
- type: 'number',
746
- description: '人数',
747
- },
748
- },
749
- required: ['name', 'key'],
750
- };
751
- exports.NamespaceSchema = {
752
- type: 'object',
753
- properties: {
754
- data: {
755
- type: 'string',
756
- description: '额外数据',
757
- },
758
- desc: {
759
- type: 'string',
760
- description: '描述',
761
- },
762
- labels: {
763
- description: '标签',
764
- type: 'array',
765
- items: {
766
- type: 'string',
767
- },
768
- },
769
- name: {
770
- type: 'string',
771
- description: '名称',
772
- },
773
- key: {
774
- type: 'string',
775
- description: `命名空间的 key
776
-
777
- 允许的字符 ^[a-zA-Z][a-zA-Z0-9._/-]{0,30}$`,
778
- },
779
- ns: {
780
- type: 'string',
781
- description: '所属的 namespace',
782
- },
783
- permissions: {
784
- description: '权限',
785
- type: 'array',
786
- items: {
787
- type: 'string',
788
- },
789
- },
790
- active: {
791
- type: 'boolean',
792
- description: '是否启用',
793
- },
794
- defaultPassword: {
795
- type: 'string',
796
- description: '默认密码',
797
- },
798
- exportable: {
799
- type: 'boolean',
800
- description: '是否可导出',
801
- },
802
- userCount: {
803
- type: 'number',
804
- description: '人数',
805
- },
806
- id: {
807
- type: 'string',
808
- description: 'Entity id',
809
- },
810
- createdAt: {
811
- format: 'date-time',
812
- type: 'string',
813
- description: 'Entity created at when',
814
- },
815
- updatedAt: {
816
- format: 'date-time',
817
- type: 'string',
818
- description: 'Entity updated at when',
819
- },
820
- createdBy: {
821
- type: 'string',
822
- description: 'Entity created by who',
823
- },
824
- updatedBy: {
825
- type: 'string',
826
- description: 'Entity updated by who',
827
- },
828
- },
829
- required: ['name', 'key', 'id'],
830
- };
831
- exports.UpdateNamespaceDtoSchema = {
832
- type: 'object',
833
- properties: {
834
- data: {
835
- type: 'string',
836
- description: '额外数据',
837
- },
838
- desc: {
839
- type: 'string',
840
- description: '描述',
841
- },
842
- labels: {
843
- description: '标签',
844
- type: 'array',
845
- items: {
846
- type: 'string',
847
- },
848
- },
849
- name: {
850
- type: 'string',
851
- description: '名称',
852
- },
853
- permissions: {
854
- description: '权限',
855
- type: 'array',
856
- items: {
857
- type: 'string',
858
- },
859
- },
860
- active: {
861
- type: 'boolean',
862
- description: '是否启用',
863
- },
864
- defaultPassword: {
865
- type: 'string',
866
- description: '默认密码',
867
- },
868
- exportable: {
869
- type: 'boolean',
870
- description: '是否可导出',
871
- },
872
- userCount: {
873
- type: 'number',
874
- description: '人数',
875
- },
876
- },
877
- };
878
- exports.CreateSessionDtoSchema = {
879
- type: 'object',
880
- properties: {
881
- refreshTokenExpireAt: {
882
- format: 'date-time',
883
- type: 'string',
884
- description: '会话过期时间',
885
- },
886
- uid: {
887
- type: 'string',
888
- description: '用户或第三方用户',
889
- },
890
- source: {
891
- type: 'string',
892
- description: '第三方来源',
893
- enum: ['GitHub', 'WeChat'],
894
- },
895
- client: {
896
- type: 'string',
897
- description: '客户端/设备',
898
- },
899
- permissions: {
900
- description: '用户动态权限',
901
- type: 'array',
902
- items: {
903
- type: 'string',
904
- },
905
- },
906
- ns: {
907
- type: 'string',
908
- description: 'user ns',
909
- },
910
- type: {
911
- type: 'string',
912
- description: '类型,登录端',
913
- },
914
- },
915
- required: ['refreshTokenExpireAt', 'uid'],
916
- };
917
- exports.SessionSchema = {
918
- type: 'object',
919
- properties: {
920
- refreshTokenExpireAt: {
921
- format: 'date-time',
922
- type: 'string',
923
- description: '会话过期时间',
924
- },
925
- refreshToken: {
926
- type: 'string',
927
- description: 'refresh token',
928
- },
929
- uid: {
930
- type: 'string',
931
- description: '用户或第三方用户',
932
- },
933
- source: {
934
- description: '第三方来源',
935
- enum: ['GitHub', 'WeChat'],
936
- type: 'string',
937
- },
938
- client: {
939
- type: 'string',
940
- description: '客户端/设备',
941
- },
942
- permissions: {
943
- description: '用户动态权限',
944
- type: 'array',
945
- items: {
946
- type: 'string',
947
- },
948
- },
949
- ns: {
950
- type: 'string',
951
- description: 'user ns',
952
- },
953
- type: {
954
- type: 'string',
955
- description: '类型,登录端',
956
- },
957
- id: {
958
- type: 'string',
959
- description: 'Entity id',
960
- },
961
- createdAt: {
962
- format: 'date-time',
963
- type: 'string',
964
- description: 'Entity created at when',
965
- },
966
- updatedAt: {
967
- format: 'date-time',
968
- type: 'string',
969
- description: 'Entity updated at when',
970
- },
971
- createdBy: {
972
- type: 'string',
973
- description: 'Entity created by who',
974
- },
975
- updatedBy: {
976
- type: 'string',
977
- description: 'Entity updated by who',
978
- },
979
- },
980
- required: ['refreshTokenExpireAt', 'refreshToken', 'uid', 'id'],
981
- };
982
- exports.UpdateSessionDtoSchema = {
983
- type: 'object',
984
- properties: {
985
- refreshTokenExpireAt: {
986
- format: 'date-time',
987
- type: 'string',
988
- description: '会话过期时间',
989
- },
990
- uid: {
991
- type: 'string',
992
- description: '用户或第三方用户',
993
- },
994
- source: {
995
- type: 'string',
996
- description: '第三方来源',
997
- enum: ['GitHub', 'WeChat'],
998
- },
999
- client: {
1000
- type: 'string',
1001
- description: '客户端/设备',
1002
- },
1003
- permissions: {
1004
- description: '用户动态权限',
1005
- type: 'array',
1006
- items: {
1007
- type: 'string',
1008
- },
1009
- },
1010
- ns: {
1011
- type: 'string',
1012
- description: 'user ns',
1013
- },
1014
- type: {
1015
- type: 'string',
1016
- description: '类型,登录端',
1017
- },
1018
- },
1019
- };
1020
- exports.CreateGroupDtoSchema = {
1021
- type: 'object',
1022
- properties: {
1023
- data: {
1024
- type: 'string',
1025
- description: '额外数据',
1026
- },
1027
- name: {
1028
- type: 'string',
1029
- description: '名称',
1030
- },
1031
- permissions: {
1032
- description: '权限',
1033
- type: 'array',
1034
- items: {
1035
- type: 'string',
1036
- },
1037
- },
1038
- active: {
1039
- type: 'boolean',
1040
- description: '是否启用',
1041
- },
1042
- userCount: {
1043
- type: 'number',
1044
- description: '人数',
1045
- },
1046
- },
1047
- required: ['name'],
1048
- };
1049
- exports.GroupSchema = {
1050
- type: 'object',
1051
- properties: {
1052
- data: {
1053
- type: 'string',
1054
- description: '额外数据',
1055
- },
1056
- name: {
1057
- type: 'string',
1058
- description: '名称',
1059
- },
1060
- permissions: {
1061
- description: '权限',
1062
- type: 'array',
1063
- items: {
1064
- type: 'string',
1065
- },
1066
- },
1067
- active: {
1068
- type: 'boolean',
1069
- description: '是否启用',
1070
- },
1071
- userCount: {
1072
- type: 'number',
1073
- description: '人数',
1074
- },
1075
- id: {
1076
- type: 'string',
1077
- description: 'Entity id',
1078
- },
1079
- createdAt: {
1080
- format: 'date-time',
1081
- type: 'string',
1082
- description: 'Entity created at when',
1083
- },
1084
- updatedAt: {
1085
- format: 'date-time',
1086
- type: 'string',
1087
- description: 'Entity updated at when',
1088
- },
1089
- createdBy: {
1090
- type: 'string',
1091
- description: 'Entity created by who',
1092
- },
1093
- updatedBy: {
1094
- type: 'string',
1095
- description: 'Entity updated by who',
1096
- },
1097
- },
1098
- required: ['name', 'id'],
1099
- };
1100
- exports.UpdateGroupDtoSchema = {
1101
- type: 'object',
1102
- properties: {
1103
- data: {
1104
- type: 'string',
1105
- description: '额外数据',
1106
- },
1107
- name: {
1108
- type: 'string',
1109
- description: '名称',
1110
- },
1111
- permissions: {
1112
- description: '权限',
1113
- type: 'array',
1114
- items: {
1115
- type: 'string',
1116
- },
1117
- },
1118
- active: {
1119
- type: 'boolean',
1120
- description: '是否启用',
1121
- },
1122
- userCount: {
1123
- type: 'number',
1124
- description: '人数',
1125
- },
1126
- },
1127
- };
1128
- exports.CreateCaptchaDtoSchema = {
1129
- type: 'object',
1130
- properties: {
1131
- code: {
1132
- type: 'string',
1133
- description: '验证码',
1134
- },
1135
- expireAt: {
1136
- format: 'date-time',
1137
- type: 'string',
1138
- description: '过期时间',
1139
- },
1140
- key: {
1141
- type: 'string',
1142
- description: 'key',
1143
- },
1144
- },
1145
- required: ['key'],
1146
- };
1147
- exports.CaptchaSchema = {
1148
- type: 'object',
1149
- properties: {
1150
- code: {
1151
- type: 'string',
1152
- description: '验证码',
1153
- },
1154
- expireAt: {
1155
- format: 'date-time',
1156
- type: 'string',
1157
- description: '过期时间',
1158
- },
1159
- key: {
1160
- type: 'string',
1161
- description: 'key',
1162
- },
1163
- id: {
1164
- type: 'string',
1165
- description: 'Entity id',
1166
- },
1167
- createdAt: {
1168
- format: 'date-time',
1169
- type: 'string',
1170
- description: 'Entity created at when',
1171
- },
1172
- updatedAt: {
1173
- format: 'date-time',
1174
- type: 'string',
1175
- description: 'Entity updated at when',
1176
- },
1177
- createdBy: {
1178
- type: 'string',
1179
- description: 'Entity created by who',
1180
- },
1181
- updatedBy: {
1182
- type: 'string',
1183
- description: 'Entity updated by who',
1184
- },
1185
- },
1186
- required: ['code', 'expireAt', 'key', 'id'],
1187
- };
1188
- exports.UpdateCaptchaDtoSchema = {
1189
- type: 'object',
1190
- properties: {
1191
- code: {
1192
- type: 'string',
1193
- description: '验证码',
1194
- },
1195
- expireAt: {
1196
- format: 'date-time',
1197
- type: 'string',
1198
- description: '过期时间',
1199
- },
1200
- key: {
1201
- type: 'string',
1202
- description: 'key',
1203
- },
1204
- },
1205
- };
1206
- exports.VerifyCaptchaDtoSchema = {
1207
- type: 'object',
1208
- properties: {
1209
- code: {
1210
- type: 'string',
1211
- description: '验证码',
1212
- },
1213
- key: {
1214
- type: 'string',
1215
- description: '验证码 key',
1216
- },
1217
- },
1218
- required: ['code', 'key'],
1219
- };
1220
- exports.VerifyCaptchaResultDtoSchema = {
1221
- type: 'object',
1222
- properties: {
1223
- success: {
1224
- type: 'boolean',
1225
- description: '是否验证成功',
1226
- },
1227
- },
1228
- required: ['success'],
1229
- };
1230
- exports.SendEmailDtoSchema = {
1231
- type: 'object',
1232
- properties: {
1233
- from: {
1234
- type: 'string',
1235
- },
1236
- to: {
1237
- type: 'string',
1238
- },
1239
- subject: {
1240
- type: 'string',
1241
- },
1242
- content: {
1243
- type: 'string',
1244
- },
1245
- },
1246
- required: ['from', 'to', 'subject', 'content'],
1247
- };
1248
- exports.EmailStatusSchema = {
1249
- type: 'string',
1250
- description: '发送状态',
1251
- enum: ['pending', 'sent'],
1252
- };
1253
- exports.CreateEmailRecordDtoSchema = {
1254
- type: 'object',
1255
- properties: {
1256
- status: {
1257
- $ref: '#/components/schemas/EmailStatus',
1258
- },
1259
- from: {
1260
- type: 'string',
1261
- description: '发件者',
1262
- },
1263
- to: {
1264
- type: 'string',
1265
- description: '收件者',
1266
- },
1267
- subject: {
1268
- type: 'string',
1269
- description: '主题',
1270
- },
1271
- content: {
1272
- type: 'string',
1273
- description: '内容',
1274
- },
1275
- sentAt: {
1276
- format: 'date-time',
1277
- type: 'string',
1278
- description: '发送时间',
1279
- },
1280
- },
1281
- required: ['status', 'from', 'to', 'subject', 'content'],
1282
- };
1283
- exports.EmailRecordSchema = {
1284
- type: 'object',
1285
- properties: {
1286
- status: {
1287
- $ref: '#/components/schemas/EmailStatus',
1288
- },
1289
- from: {
1290
- type: 'string',
1291
- description: '发件者',
1292
- },
1293
- to: {
1294
- type: 'string',
1295
- description: '收件者',
1296
- },
1297
- subject: {
1298
- type: 'string',
1299
- description: '主题',
1300
- },
1301
- content: {
1302
- type: 'string',
1303
- description: '内容',
1304
- },
1305
- sentAt: {
1306
- format: 'date-time',
1307
- type: 'string',
1308
- description: '发送时间',
1309
- },
1310
- id: {
1311
- type: 'string',
1312
- description: 'Entity id',
1313
- },
1314
- createdAt: {
1315
- format: 'date-time',
1316
- type: 'string',
1317
- description: 'Entity created at when',
1318
- },
1319
- updatedAt: {
1320
- format: 'date-time',
1321
- type: 'string',
1322
- description: 'Entity updated at when',
1323
- },
1324
- createdBy: {
1325
- type: 'string',
1326
- description: 'Entity created by who',
1327
- },
1328
- updatedBy: {
1329
- type: 'string',
1330
- description: 'Entity updated by who',
1331
- },
1332
- },
1333
- required: ['status', 'from', 'to', 'subject', 'content', 'id'],
1334
- };
1335
- exports.UpdateEmailRecordDtoSchema = {
1336
- type: 'object',
1337
- properties: {
1338
- status: {
1339
- $ref: '#/components/schemas/EmailStatus',
1340
- },
1341
- from: {
1342
- type: 'string',
1343
- description: '发件者',
1344
- },
1345
- to: {
1346
- type: 'string',
1347
- description: '收件者',
1348
- },
1349
- subject: {
1350
- type: 'string',
1351
- description: '主题',
1352
- },
1353
- content: {
1354
- type: 'string',
1355
- description: '内容',
1356
- },
1357
- sentAt: {
1358
- format: 'date-time',
1359
- type: 'string',
1360
- description: '发送时间',
1361
- },
1362
- },
1363
- };
1364
- exports.SendSmsDtoSchema = {
1365
- type: 'object',
1366
- properties: {
1367
- phone: {
1368
- type: 'string',
1369
- },
1370
- sign: {
1371
- type: 'string',
1372
- },
1373
- template: {
1374
- type: 'string',
1375
- },
1376
- params: {
1377
- type: 'object',
1378
- },
1379
- },
1380
- required: ['phone', 'sign', 'template'],
1381
- };
1382
- exports.SmsStatusSchema = {
1383
- type: 'string',
1384
- description: '发送状态',
1385
- enum: ['pending', 'sent'],
1386
- };
1387
- exports.CreateSmsRecordDtoSchema = {
1388
- type: 'object',
1389
- properties: {
1390
- status: {
1391
- $ref: '#/components/schemas/SmsStatus',
1392
- },
1393
- phone: {
1394
- type: 'string',
1395
- description: '手机号',
1396
- },
1397
- sign: {
1398
- type: 'string',
1399
- description: '签名',
1400
- },
1401
- template: {
1402
- type: 'string',
1403
- description: '模板',
1404
- },
1405
- params: {
1406
- type: 'string',
1407
- description: '参数',
1408
- },
1409
- sentAt: {
1410
- format: 'date-time',
1411
- type: 'string',
1412
- description: '发送时间',
1413
- },
1414
- },
1415
- required: ['status', 'phone', 'sign', 'template'],
1416
- };
1417
- exports.SmsRecordSchema = {
1418
- type: 'object',
1419
- properties: {
1420
- status: {
1421
- $ref: '#/components/schemas/SmsStatus',
1422
- },
1423
- phone: {
1424
- type: 'string',
1425
- description: '手机号',
1426
- },
1427
- sign: {
1428
- type: 'string',
1429
- description: '签名',
1430
- },
1431
- template: {
1432
- type: 'string',
1433
- description: '模板',
1434
- },
1435
- params: {
1436
- type: 'string',
1437
- description: '参数',
1438
- },
1439
- sentAt: {
1440
- format: 'date-time',
1441
- type: 'string',
1442
- description: '发送时间',
1443
- },
1444
- id: {
1445
- type: 'string',
1446
- description: 'Entity id',
1447
- },
1448
- createdAt: {
1449
- format: 'date-time',
1450
- type: 'string',
1451
- description: 'Entity created at when',
1452
- },
1453
- updatedAt: {
1454
- format: 'date-time',
1455
- type: 'string',
1456
- description: 'Entity updated at when',
1457
- },
1458
- createdBy: {
1459
- type: 'string',
1460
- description: 'Entity created by who',
1461
- },
1462
- updatedBy: {
1463
- type: 'string',
1464
- description: 'Entity updated by who',
1465
- },
1466
- },
1467
- required: ['status', 'phone', 'sign', 'template', 'id'],
1468
- };
1469
- exports.UpdateSmsRecordDtoSchema = {
1470
- type: 'object',
1471
- properties: {
1472
- status: {
1473
- $ref: '#/components/schemas/SmsStatus',
1474
- },
1475
- phone: {
1476
- type: 'string',
1477
- description: '手机号',
1478
- },
1479
- sign: {
1480
- type: 'string',
1481
- description: '签名',
1482
- },
1483
- template: {
1484
- type: 'string',
1485
- description: '模板',
1486
- },
1487
- params: {
1488
- type: 'string',
1489
- description: '参数',
1490
- },
1491
- sentAt: {
1492
- format: 'date-time',
1493
- type: 'string',
1494
- description: '发送时间',
1495
- },
1496
- },
1497
- };
1498
- exports.ThirdPartySourceSchema = {
1499
- type: 'string',
1500
- description: '第三方登录来源',
1501
- enum: ['GitHub', 'WeChat'],
1502
- };
1503
- exports.createThirdPartyDtoSchema = {
1504
- type: 'object',
1505
- properties: {
1506
- source: {
1507
- $ref: '#/components/schemas/ThirdPartySource',
1508
- },
1509
- login: {
1510
- type: 'string',
1511
- description: '第三方登录 id',
1512
- },
1513
- accessToken: {
1514
- type: 'string',
1515
- description: '第三方登录 accessToken',
1516
- },
1517
- uid: {
1518
- type: 'string',
1519
- description: '关联uid',
1520
- },
1521
- },
1522
- required: ['source', 'login', 'accessToken'],
1523
- };
1524
- exports.ThirdPartySchema = {
1525
- type: 'object',
1526
- properties: {
1527
- source: {
1528
- $ref: '#/components/schemas/ThirdPartySource',
1529
- },
1530
- login: {
1531
- type: 'string',
1532
- description: '第三方登录 id',
1533
- },
1534
- accessToken: {
1535
- type: 'string',
1536
- description: '第三方登录 accessToken',
1537
- },
1538
- uid: {
1539
- type: 'string',
1540
- description: '关联uid',
1541
- },
1542
- id: {
1543
- type: 'string',
1544
- description: 'Entity id',
1545
- },
1546
- createdAt: {
1547
- format: 'date-time',
1548
- type: 'string',
1549
- description: 'Entity created at when',
1550
- },
1551
- updatedAt: {
1552
- format: 'date-time',
1553
- type: 'string',
1554
- description: 'Entity updated at when',
1555
- },
1556
- createdBy: {
1557
- type: 'string',
1558
- description: 'Entity created by who',
1559
- },
1560
- updatedBy: {
1561
- type: 'string',
1562
- description: 'Entity updated by who',
1563
- },
1564
- },
1565
- required: ['source', 'login', 'accessToken', 'id'],
1566
- };
1567
- exports.UpdateThirdPartyDtoSchema = {
1568
- type: 'object',
1569
- properties: {
1570
- source: {
1571
- $ref: '#/components/schemas/ThirdPartySource',
1572
- },
1573
- login: {
1574
- type: 'string',
1575
- description: '第三方登录 id',
1576
- },
1577
- accessToken: {
1578
- type: 'string',
1579
- description: '第三方登录 accessToken',
1580
- },
1581
- uid: {
1582
- type: 'string',
1583
- description: '关联uid',
1584
- },
1585
- },
1586
- };
1587
- exports.bindThirdPartyDtoSchema = {
1588
- type: 'object',
1589
- properties: {
1590
- username: {
1591
- type: 'string',
1592
- },
1593
- password: {
1594
- type: 'string',
1595
- },
1596
- source: {
1597
- type: 'string',
1598
- enum: ['GitHub', 'WeChat'],
1599
- },
1600
- login: {
1601
- type: 'string',
1602
- },
1603
- },
1604
- required: ['username', 'password', 'source', 'login'],
1605
- };
1606
- exports.IndustrySchema = {
1607
- type: 'object',
1608
- properties: {
1609
- code: {
1610
- type: 'string',
1611
- description: '编码',
1612
- },
1613
- name: {
1614
- type: 'string',
1615
- description: '名称',
1616
- },
1617
- children: {
1618
- description: '子集',
1619
- type: 'array',
1620
- items: {
1621
- $ref: '#/components/schemas/Industry',
1622
- },
1623
- },
1624
- },
1625
- required: ['code', 'name', 'children'],
1626
- };
1627
- exports.RegionSchema = {
1628
- type: 'object',
1629
- properties: {
1630
- code: {
1631
- type: 'string',
1632
- description: '缩写',
1633
- },
1634
- nameZh: {
1635
- type: 'string',
1636
- description: '中文名称',
1637
- },
1638
- namePinyin: {
1639
- type: 'string',
1640
- description: '中文拼音',
1641
- },
1642
- nameEn: {
1643
- type: 'string',
1644
- description: '英文名称',
1645
- },
1646
- dialingPrefix: {
1647
- type: 'string',
1648
- description: '电话前缀',
1649
- },
1650
- },
1651
- required: ['code', 'nameZh', 'namePinyin', 'nameEn', 'dialingPrefix'],
1652
- };
1653
- exports.CreateRoleDtoSchema = {
1654
- type: 'object',
1655
- properties: {
1656
- permissions: {
1657
- description: '权限',
1658
- type: 'array',
1659
- items: {
1660
- type: 'string',
1661
- },
1662
- },
1663
- key: {
1664
- type: 'string',
1665
- description: 'role key',
1666
- },
1667
- name: {
1668
- type: 'string',
1669
- description: '名称',
1670
- },
1671
- },
1672
- required: ['key', 'name'],
1673
- };
1674
- exports.RoleSchema = {
1675
- type: 'object',
1676
- properties: {
1677
- key: {
1678
- type: 'string',
1679
- description: 'role key',
1680
- },
1681
- name: {
1682
- type: 'string',
1683
- description: '名称',
1684
- },
1685
- permissions: {
1686
- description: '权限',
1687
- type: 'array',
1688
- items: {
1689
- type: 'string',
1690
- },
1691
- },
1692
- id: {
1693
- type: 'string',
1694
- description: 'Entity id',
1695
- },
1696
- createdAt: {
1697
- format: 'date-time',
1698
- type: 'string',
1699
- description: 'Entity created at when',
1700
- },
1701
- updatedAt: {
1702
- format: 'date-time',
1703
- type: 'string',
1704
- description: 'Entity updated at when',
1705
- },
1706
- createdBy: {
1707
- type: 'string',
1708
- description: 'Entity created by who',
1709
- },
1710
- updatedBy: {
1711
- type: 'string',
1712
- description: 'Entity updated by who',
1713
- },
1714
- },
1715
- required: ['key', 'name', 'permissions', 'id'],
1716
- };
1717
- exports.UpdateRoleDtoSchema = {
1718
- type: 'object',
1719
- properties: {
1720
- name: {
1721
- type: 'string',
1722
- description: '名称',
1723
- },
1724
- permissions: {
1725
- description: '权限',
1726
- type: 'array',
1727
- items: {
1728
- type: 'string',
1729
- },
1730
- },
1731
- },
1732
- };
1733
- //# sourceMappingURL=schemas.gen.js.map