@36node/auth-sdk 1.6.3 → 1.6.5-pr-37-9e6d250fc5
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/schemas.gen.d.ts +371 -176
- package/dist/schemas.gen.js +373 -181
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +191 -1
- package/dist/sdk.gen.js +42 -2
- package/dist/sdk.gen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.gen.d.ts +138 -37
- package/package.json +1 -1
package/dist/schemas.gen.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
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;
|
|
4
5
|
exports.HealthCheckResultSchema = {
|
|
5
6
|
type: 'object',
|
|
6
7
|
properties: {
|
|
@@ -24,6 +25,156 @@ exports.LoginDtoSchema = {
|
|
|
24
25
|
},
|
|
25
26
|
required: ['login', 'password'],
|
|
26
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', 'WebChat'],
|
|
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
|
+
description: '类型,支持设置多个',
|
|
66
|
+
type: 'array',
|
|
67
|
+
items: {
|
|
68
|
+
type: 'string',
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
id: {
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: 'Entity id',
|
|
74
|
+
},
|
|
75
|
+
createdAt: {
|
|
76
|
+
format: 'date-time',
|
|
77
|
+
type: 'string',
|
|
78
|
+
description: 'Entity created at when',
|
|
79
|
+
},
|
|
80
|
+
updatedAt: {
|
|
81
|
+
format: 'date-time',
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: 'Entity updated at when',
|
|
84
|
+
},
|
|
85
|
+
createdBy: {
|
|
86
|
+
type: 'string',
|
|
87
|
+
description: 'Entity created by who',
|
|
88
|
+
},
|
|
89
|
+
updatedBy: {
|
|
90
|
+
type: 'string',
|
|
91
|
+
description: 'Entity updated by who',
|
|
92
|
+
},
|
|
93
|
+
token: {
|
|
94
|
+
type: 'string',
|
|
95
|
+
description: 'token',
|
|
96
|
+
},
|
|
97
|
+
tokenExpireAt: {
|
|
98
|
+
format: 'date-time',
|
|
99
|
+
type: 'string',
|
|
100
|
+
description: 'token 过期时间',
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
required: ['refreshTokenExpireAt', 'refreshToken', 'uid', 'id', 'token', 'tokenExpireAt'],
|
|
104
|
+
};
|
|
105
|
+
exports.GithubDtoSchema = {
|
|
106
|
+
type: 'object',
|
|
107
|
+
properties: {
|
|
108
|
+
code: {
|
|
109
|
+
type: 'string',
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
required: ['code'],
|
|
113
|
+
};
|
|
114
|
+
exports.LoginByEmailDtoSchema = {
|
|
115
|
+
type: 'object',
|
|
116
|
+
properties: {
|
|
117
|
+
email: {
|
|
118
|
+
type: 'string',
|
|
119
|
+
description: '邮箱',
|
|
120
|
+
},
|
|
121
|
+
key: {
|
|
122
|
+
type: 'string',
|
|
123
|
+
description: '验证码 key',
|
|
124
|
+
},
|
|
125
|
+
code: {
|
|
126
|
+
type: 'string',
|
|
127
|
+
description: '验证码 code',
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
required: ['email', 'key', 'code'],
|
|
131
|
+
};
|
|
132
|
+
exports.LoginByPhoneDtoSchema = {
|
|
133
|
+
type: 'object',
|
|
134
|
+
properties: {
|
|
135
|
+
phone: {
|
|
136
|
+
type: 'string',
|
|
137
|
+
description: '手机号',
|
|
138
|
+
},
|
|
139
|
+
key: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
description: '验证码 key',
|
|
142
|
+
},
|
|
143
|
+
code: {
|
|
144
|
+
type: 'string',
|
|
145
|
+
description: '验证码 code',
|
|
146
|
+
},
|
|
147
|
+
},
|
|
148
|
+
required: ['phone', 'key', 'code'],
|
|
149
|
+
};
|
|
150
|
+
exports.LogoutDtoSchema = {
|
|
151
|
+
type: 'object',
|
|
152
|
+
properties: {
|
|
153
|
+
key: {
|
|
154
|
+
type: 'string',
|
|
155
|
+
description: 'session key',
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
required: ['key'],
|
|
159
|
+
};
|
|
160
|
+
exports.RegisterDtoSchema = {
|
|
161
|
+
type: 'object',
|
|
162
|
+
properties: {
|
|
163
|
+
username: {
|
|
164
|
+
type: 'string',
|
|
165
|
+
description: '用户名',
|
|
166
|
+
},
|
|
167
|
+
password: {
|
|
168
|
+
type: 'string',
|
|
169
|
+
description: '密码',
|
|
170
|
+
},
|
|
171
|
+
ns: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
description: '命名空间',
|
|
174
|
+
},
|
|
175
|
+
},
|
|
176
|
+
required: ['username', 'password'],
|
|
177
|
+
};
|
|
27
178
|
exports.UserSchema = {
|
|
28
179
|
type: 'object',
|
|
29
180
|
properties: {
|
|
@@ -109,10 +260,6 @@ exports.UserSchema = {
|
|
|
109
260
|
type: 'string',
|
|
110
261
|
},
|
|
111
262
|
},
|
|
112
|
-
super: {
|
|
113
|
-
type: 'boolean',
|
|
114
|
-
description: '是否超级管理员',
|
|
115
|
-
},
|
|
116
263
|
username: {
|
|
117
264
|
type: 'string',
|
|
118
265
|
description: '用户名',
|
|
@@ -144,10 +291,6 @@ exports.UserSchema = {
|
|
|
144
291
|
type: 'boolean',
|
|
145
292
|
description: '是否启用',
|
|
146
293
|
},
|
|
147
|
-
inviteCode: {
|
|
148
|
-
type: 'string',
|
|
149
|
-
description: '邀请码',
|
|
150
|
-
},
|
|
151
294
|
status: {
|
|
152
295
|
type: 'string',
|
|
153
296
|
description: '状态',
|
|
@@ -157,7 +300,7 @@ exports.UserSchema = {
|
|
|
157
300
|
type: 'string',
|
|
158
301
|
description: '过期时间',
|
|
159
302
|
},
|
|
160
|
-
|
|
303
|
+
type: {
|
|
161
304
|
description: '类型,支持设置多个',
|
|
162
305
|
type: 'array',
|
|
163
306
|
items: {
|
|
@@ -189,122 +332,6 @@ exports.UserSchema = {
|
|
|
189
332
|
},
|
|
190
333
|
required: ['id'],
|
|
191
334
|
};
|
|
192
|
-
exports.SessionWithTokenSchema = {
|
|
193
|
-
type: 'object',
|
|
194
|
-
properties: {
|
|
195
|
-
acl: {
|
|
196
|
-
type: 'object',
|
|
197
|
-
description: '访问控制列表',
|
|
198
|
-
},
|
|
199
|
-
expireAt: {
|
|
200
|
-
format: 'date-time',
|
|
201
|
-
type: 'string',
|
|
202
|
-
description: '会话过期时间',
|
|
203
|
-
},
|
|
204
|
-
key: {
|
|
205
|
-
type: 'string',
|
|
206
|
-
description: 'refresh token key',
|
|
207
|
-
},
|
|
208
|
-
user: {
|
|
209
|
-
description: '用户,实际存储 uid',
|
|
210
|
-
allOf: [
|
|
211
|
-
{
|
|
212
|
-
$ref: '#/components/schemas/User',
|
|
213
|
-
},
|
|
214
|
-
],
|
|
215
|
-
},
|
|
216
|
-
client: {
|
|
217
|
-
type: 'string',
|
|
218
|
-
description: '客户端/设备',
|
|
219
|
-
},
|
|
220
|
-
id: {
|
|
221
|
-
type: 'string',
|
|
222
|
-
description: 'Entity id',
|
|
223
|
-
},
|
|
224
|
-
createdAt: {
|
|
225
|
-
format: 'date-time',
|
|
226
|
-
type: 'string',
|
|
227
|
-
description: 'Entity created at when',
|
|
228
|
-
},
|
|
229
|
-
updatedAt: {
|
|
230
|
-
format: 'date-time',
|
|
231
|
-
type: 'string',
|
|
232
|
-
description: 'Entity updated at when',
|
|
233
|
-
},
|
|
234
|
-
createdBy: {
|
|
235
|
-
type: 'string',
|
|
236
|
-
description: 'Entity created by who',
|
|
237
|
-
},
|
|
238
|
-
updatedBy: {
|
|
239
|
-
type: 'string',
|
|
240
|
-
description: 'Entity updated by who',
|
|
241
|
-
},
|
|
242
|
-
token: {
|
|
243
|
-
type: 'string',
|
|
244
|
-
description: 'token',
|
|
245
|
-
},
|
|
246
|
-
tokenExpireAt: {
|
|
247
|
-
format: 'date-time',
|
|
248
|
-
type: 'string',
|
|
249
|
-
description: 'token 过期时间',
|
|
250
|
-
},
|
|
251
|
-
},
|
|
252
|
-
required: ['expireAt', 'key', 'user', 'id', 'token', 'tokenExpireAt'],
|
|
253
|
-
};
|
|
254
|
-
exports.LoginByEmailDtoSchema = {
|
|
255
|
-
type: 'object',
|
|
256
|
-
properties: {
|
|
257
|
-
email: {
|
|
258
|
-
type: 'string',
|
|
259
|
-
description: '邮箱',
|
|
260
|
-
},
|
|
261
|
-
key: {
|
|
262
|
-
type: 'string',
|
|
263
|
-
description: '验证码 key',
|
|
264
|
-
},
|
|
265
|
-
code: {
|
|
266
|
-
type: 'string',
|
|
267
|
-
description: '验证码 code',
|
|
268
|
-
},
|
|
269
|
-
},
|
|
270
|
-
required: ['email', 'key', 'code'],
|
|
271
|
-
};
|
|
272
|
-
exports.LoginByPhoneDtoSchema = {
|
|
273
|
-
type: 'object',
|
|
274
|
-
properties: {
|
|
275
|
-
phone: {
|
|
276
|
-
type: 'string',
|
|
277
|
-
description: '手机号',
|
|
278
|
-
},
|
|
279
|
-
key: {
|
|
280
|
-
type: 'string',
|
|
281
|
-
description: '验证码 key',
|
|
282
|
-
},
|
|
283
|
-
code: {
|
|
284
|
-
type: 'string',
|
|
285
|
-
description: '验证码 code',
|
|
286
|
-
},
|
|
287
|
-
},
|
|
288
|
-
required: ['phone', 'key', 'code'],
|
|
289
|
-
};
|
|
290
|
-
exports.RegisterDtoSchema = {
|
|
291
|
-
type: 'object',
|
|
292
|
-
properties: {
|
|
293
|
-
username: {
|
|
294
|
-
type: 'string',
|
|
295
|
-
description: '用户名',
|
|
296
|
-
},
|
|
297
|
-
password: {
|
|
298
|
-
type: 'string',
|
|
299
|
-
description: '密码',
|
|
300
|
-
},
|
|
301
|
-
ns: {
|
|
302
|
-
type: 'string',
|
|
303
|
-
description: '命名空间',
|
|
304
|
-
},
|
|
305
|
-
},
|
|
306
|
-
required: ['username', 'password'],
|
|
307
|
-
};
|
|
308
335
|
exports.RegisterbyPhoneDtoSchema = {
|
|
309
336
|
type: 'object',
|
|
310
337
|
properties: {
|
|
@@ -370,10 +397,6 @@ s => second
|
|
|
370
397
|
ms => millisecond
|
|
371
398
|
无单位 => millisecond`,
|
|
372
399
|
},
|
|
373
|
-
acl: {
|
|
374
|
-
type: 'object',
|
|
375
|
-
description: '访问控制列表',
|
|
376
|
-
},
|
|
377
400
|
uid: {
|
|
378
401
|
type: 'string',
|
|
379
402
|
description: 'user id',
|
|
@@ -399,12 +422,12 @@ exports.TokenSchema = {
|
|
|
399
422
|
exports.RefreshTokenDtoSchema = {
|
|
400
423
|
type: 'object',
|
|
401
424
|
properties: {
|
|
402
|
-
|
|
425
|
+
refreshToken: {
|
|
403
426
|
type: 'string',
|
|
404
427
|
description: 'user id',
|
|
405
428
|
},
|
|
406
429
|
},
|
|
407
|
-
required: ['
|
|
430
|
+
required: ['refreshToken'],
|
|
408
431
|
};
|
|
409
432
|
exports.CreateUserDtoSchema = {
|
|
410
433
|
type: 'object',
|
|
@@ -478,10 +501,6 @@ exports.CreateUserDtoSchema = {
|
|
|
478
501
|
type: 'string',
|
|
479
502
|
},
|
|
480
503
|
},
|
|
481
|
-
super: {
|
|
482
|
-
type: 'boolean',
|
|
483
|
-
description: '是否超级管理员',
|
|
484
|
-
},
|
|
485
504
|
username: {
|
|
486
505
|
type: 'string',
|
|
487
506
|
description: '用户名',
|
|
@@ -508,10 +527,6 @@ exports.CreateUserDtoSchema = {
|
|
|
508
527
|
type: 'boolean',
|
|
509
528
|
description: '是否启用',
|
|
510
529
|
},
|
|
511
|
-
inviteCode: {
|
|
512
|
-
type: 'string',
|
|
513
|
-
description: '邀请码',
|
|
514
|
-
},
|
|
515
530
|
status: {
|
|
516
531
|
type: 'string',
|
|
517
532
|
description: '状态',
|
|
@@ -521,7 +536,7 @@ exports.CreateUserDtoSchema = {
|
|
|
521
536
|
type: 'string',
|
|
522
537
|
description: '过期时间',
|
|
523
538
|
},
|
|
524
|
-
|
|
539
|
+
type: {
|
|
525
540
|
description: '类型,支持设置多个',
|
|
526
541
|
type: 'array',
|
|
527
542
|
items: {
|
|
@@ -610,10 +625,6 @@ exports.UpdateUserDtoSchema = {
|
|
|
610
625
|
type: 'string',
|
|
611
626
|
},
|
|
612
627
|
},
|
|
613
|
-
super: {
|
|
614
|
-
type: 'boolean',
|
|
615
|
-
description: '是否超级管理员',
|
|
616
|
-
},
|
|
617
628
|
username: {
|
|
618
629
|
type: 'string',
|
|
619
630
|
description: '用户名',
|
|
@@ -645,10 +656,6 @@ exports.UpdateUserDtoSchema = {
|
|
|
645
656
|
type: 'boolean',
|
|
646
657
|
description: '是否启用',
|
|
647
658
|
},
|
|
648
|
-
inviteCode: {
|
|
649
|
-
type: 'string',
|
|
650
|
-
description: '邀请码',
|
|
651
|
-
},
|
|
652
659
|
status: {
|
|
653
660
|
type: 'string',
|
|
654
661
|
description: '状态',
|
|
@@ -658,7 +665,7 @@ exports.UpdateUserDtoSchema = {
|
|
|
658
665
|
type: 'string',
|
|
659
666
|
description: '过期时间',
|
|
660
667
|
},
|
|
661
|
-
|
|
668
|
+
type: {
|
|
662
669
|
description: '类型,支持设置多个',
|
|
663
670
|
type: 'array',
|
|
664
671
|
items: {
|
|
@@ -878,54 +885,88 @@ exports.UpdateNamespaceDtoSchema = {
|
|
|
878
885
|
exports.CreateSessionDtoSchema = {
|
|
879
886
|
type: 'object',
|
|
880
887
|
properties: {
|
|
881
|
-
|
|
888
|
+
refreshTokenExpireAt: {
|
|
889
|
+
format: 'date-time',
|
|
882
890
|
type: 'string',
|
|
883
|
-
description: '
|
|
891
|
+
description: '会话过期时间',
|
|
884
892
|
},
|
|
885
|
-
|
|
886
|
-
type: '
|
|
887
|
-
description: '
|
|
893
|
+
uid: {
|
|
894
|
+
type: 'string',
|
|
895
|
+
description: '用户或第三方用户',
|
|
888
896
|
},
|
|
889
|
-
|
|
890
|
-
format: 'date-time',
|
|
897
|
+
source: {
|
|
891
898
|
type: 'string',
|
|
892
|
-
description: '
|
|
899
|
+
description: '第三方来源',
|
|
900
|
+
enum: ['GitHub', 'WebChat'],
|
|
893
901
|
},
|
|
894
902
|
client: {
|
|
895
903
|
type: 'string',
|
|
896
904
|
description: '客户端/设备',
|
|
897
905
|
},
|
|
906
|
+
permissions: {
|
|
907
|
+
description: '用户动态权限',
|
|
908
|
+
type: 'array',
|
|
909
|
+
items: {
|
|
910
|
+
type: 'string',
|
|
911
|
+
},
|
|
912
|
+
},
|
|
913
|
+
ns: {
|
|
914
|
+
type: 'string',
|
|
915
|
+
description: 'user ns',
|
|
916
|
+
},
|
|
917
|
+
type: {
|
|
918
|
+
description: '类型,支持设置多个',
|
|
919
|
+
type: 'array',
|
|
920
|
+
items: {
|
|
921
|
+
type: 'string',
|
|
922
|
+
},
|
|
923
|
+
},
|
|
898
924
|
},
|
|
899
|
-
required: ['
|
|
925
|
+
required: ['refreshTokenExpireAt', 'uid'],
|
|
900
926
|
};
|
|
901
927
|
exports.SessionSchema = {
|
|
902
928
|
type: 'object',
|
|
903
929
|
properties: {
|
|
904
|
-
|
|
905
|
-
type: 'object',
|
|
906
|
-
description: '访问控制列表',
|
|
907
|
-
},
|
|
908
|
-
expireAt: {
|
|
930
|
+
refreshTokenExpireAt: {
|
|
909
931
|
format: 'date-time',
|
|
910
932
|
type: 'string',
|
|
911
933
|
description: '会话过期时间',
|
|
912
934
|
},
|
|
913
|
-
|
|
935
|
+
refreshToken: {
|
|
914
936
|
type: 'string',
|
|
915
|
-
description: 'refresh token
|
|
937
|
+
description: 'refresh token',
|
|
916
938
|
},
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
],
|
|
939
|
+
uid: {
|
|
940
|
+
type: 'string',
|
|
941
|
+
description: '用户或第三方用户',
|
|
942
|
+
},
|
|
943
|
+
source: {
|
|
944
|
+
description: '第三方来源',
|
|
945
|
+
enum: ['GitHub', 'WebChat'],
|
|
946
|
+
type: 'string',
|
|
924
947
|
},
|
|
925
948
|
client: {
|
|
926
949
|
type: 'string',
|
|
927
950
|
description: '客户端/设备',
|
|
928
951
|
},
|
|
952
|
+
permissions: {
|
|
953
|
+
description: '用户动态权限',
|
|
954
|
+
type: 'array',
|
|
955
|
+
items: {
|
|
956
|
+
type: 'string',
|
|
957
|
+
},
|
|
958
|
+
},
|
|
959
|
+
ns: {
|
|
960
|
+
type: 'string',
|
|
961
|
+
description: 'user ns',
|
|
962
|
+
},
|
|
963
|
+
type: {
|
|
964
|
+
description: '类型,支持设置多个',
|
|
965
|
+
type: 'array',
|
|
966
|
+
items: {
|
|
967
|
+
type: 'string',
|
|
968
|
+
},
|
|
969
|
+
},
|
|
929
970
|
id: {
|
|
930
971
|
type: 'string',
|
|
931
972
|
description: 'Entity id',
|
|
@@ -949,27 +990,46 @@ exports.SessionSchema = {
|
|
|
949
990
|
description: 'Entity updated by who',
|
|
950
991
|
},
|
|
951
992
|
},
|
|
952
|
-
required: ['
|
|
993
|
+
required: ['refreshTokenExpireAt', 'refreshToken', 'uid', 'id'],
|
|
953
994
|
};
|
|
954
995
|
exports.UpdateSessionDtoSchema = {
|
|
955
996
|
type: 'object',
|
|
956
997
|
properties: {
|
|
957
|
-
|
|
958
|
-
type: 'object',
|
|
959
|
-
description: '访问控制列表',
|
|
960
|
-
},
|
|
961
|
-
expireAt: {
|
|
998
|
+
refreshTokenExpireAt: {
|
|
962
999
|
format: 'date-time',
|
|
963
1000
|
type: 'string',
|
|
964
1001
|
description: '会话过期时间',
|
|
965
1002
|
},
|
|
1003
|
+
uid: {
|
|
1004
|
+
type: 'string',
|
|
1005
|
+
description: '用户或第三方用户',
|
|
1006
|
+
},
|
|
1007
|
+
source: {
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
description: '第三方来源',
|
|
1010
|
+
enum: ['GitHub', 'WebChat'],
|
|
1011
|
+
},
|
|
966
1012
|
client: {
|
|
967
1013
|
type: 'string',
|
|
968
1014
|
description: '客户端/设备',
|
|
969
1015
|
},
|
|
970
|
-
|
|
1016
|
+
permissions: {
|
|
1017
|
+
description: '用户动态权限',
|
|
1018
|
+
type: 'array',
|
|
1019
|
+
items: {
|
|
1020
|
+
type: 'string',
|
|
1021
|
+
},
|
|
1022
|
+
},
|
|
1023
|
+
ns: {
|
|
971
1024
|
type: 'string',
|
|
972
|
-
description: '
|
|
1025
|
+
description: 'user ns',
|
|
1026
|
+
},
|
|
1027
|
+
type: {
|
|
1028
|
+
description: '类型,支持设置多个',
|
|
1029
|
+
type: 'array',
|
|
1030
|
+
items: {
|
|
1031
|
+
type: 'string',
|
|
1032
|
+
},
|
|
973
1033
|
},
|
|
974
1034
|
},
|
|
975
1035
|
};
|
|
@@ -1159,6 +1219,30 @@ exports.UpdateCaptchaDtoSchema = {
|
|
|
1159
1219
|
},
|
|
1160
1220
|
},
|
|
1161
1221
|
};
|
|
1222
|
+
exports.VerifyCaptchaDtoSchema = {
|
|
1223
|
+
type: 'object',
|
|
1224
|
+
properties: {
|
|
1225
|
+
code: {
|
|
1226
|
+
type: 'string',
|
|
1227
|
+
description: '验证码',
|
|
1228
|
+
},
|
|
1229
|
+
key: {
|
|
1230
|
+
type: 'string',
|
|
1231
|
+
description: '验证码 key',
|
|
1232
|
+
},
|
|
1233
|
+
},
|
|
1234
|
+
required: ['code', 'key'],
|
|
1235
|
+
};
|
|
1236
|
+
exports.VerifyCaptchaResultDtoSchema = {
|
|
1237
|
+
type: 'object',
|
|
1238
|
+
properties: {
|
|
1239
|
+
success: {
|
|
1240
|
+
type: 'boolean',
|
|
1241
|
+
description: '是否验证成功',
|
|
1242
|
+
},
|
|
1243
|
+
},
|
|
1244
|
+
required: ['success'],
|
|
1245
|
+
};
|
|
1162
1246
|
exports.SendEmailDtoSchema = {
|
|
1163
1247
|
type: 'object',
|
|
1164
1248
|
properties: {
|
|
@@ -1427,6 +1511,114 @@ exports.UpdateSmsRecordDtoSchema = {
|
|
|
1427
1511
|
},
|
|
1428
1512
|
},
|
|
1429
1513
|
};
|
|
1514
|
+
exports.ThirdPartySourceSchema = {
|
|
1515
|
+
type: 'string',
|
|
1516
|
+
description: '第三方登录来源',
|
|
1517
|
+
enum: ['GitHub', 'WebChat'],
|
|
1518
|
+
};
|
|
1519
|
+
exports.createThirdPartyDtoSchema = {
|
|
1520
|
+
type: 'object',
|
|
1521
|
+
properties: {
|
|
1522
|
+
source: {
|
|
1523
|
+
$ref: '#/components/schemas/ThirdPartySource',
|
|
1524
|
+
},
|
|
1525
|
+
login: {
|
|
1526
|
+
type: 'string',
|
|
1527
|
+
description: '第三方登录 id',
|
|
1528
|
+
},
|
|
1529
|
+
accessToken: {
|
|
1530
|
+
type: 'string',
|
|
1531
|
+
description: '第三方登录 accessToken',
|
|
1532
|
+
},
|
|
1533
|
+
uid: {
|
|
1534
|
+
type: 'string',
|
|
1535
|
+
description: '关联uid',
|
|
1536
|
+
},
|
|
1537
|
+
},
|
|
1538
|
+
required: ['source', 'login', 'accessToken'],
|
|
1539
|
+
};
|
|
1540
|
+
exports.ThirdPartySchema = {
|
|
1541
|
+
type: 'object',
|
|
1542
|
+
properties: {
|
|
1543
|
+
source: {
|
|
1544
|
+
$ref: '#/components/schemas/ThirdPartySource',
|
|
1545
|
+
},
|
|
1546
|
+
login: {
|
|
1547
|
+
type: 'string',
|
|
1548
|
+
description: '第三方登录 id',
|
|
1549
|
+
},
|
|
1550
|
+
accessToken: {
|
|
1551
|
+
type: 'string',
|
|
1552
|
+
description: '第三方登录 accessToken',
|
|
1553
|
+
},
|
|
1554
|
+
uid: {
|
|
1555
|
+
type: 'string',
|
|
1556
|
+
description: '关联uid',
|
|
1557
|
+
},
|
|
1558
|
+
id: {
|
|
1559
|
+
type: 'string',
|
|
1560
|
+
description: 'Entity id',
|
|
1561
|
+
},
|
|
1562
|
+
createdAt: {
|
|
1563
|
+
format: 'date-time',
|
|
1564
|
+
type: 'string',
|
|
1565
|
+
description: 'Entity created at when',
|
|
1566
|
+
},
|
|
1567
|
+
updatedAt: {
|
|
1568
|
+
format: 'date-time',
|
|
1569
|
+
type: 'string',
|
|
1570
|
+
description: 'Entity updated at when',
|
|
1571
|
+
},
|
|
1572
|
+
createdBy: {
|
|
1573
|
+
type: 'string',
|
|
1574
|
+
description: 'Entity created by who',
|
|
1575
|
+
},
|
|
1576
|
+
updatedBy: {
|
|
1577
|
+
type: 'string',
|
|
1578
|
+
description: 'Entity updated by who',
|
|
1579
|
+
},
|
|
1580
|
+
},
|
|
1581
|
+
required: ['source', 'login', 'accessToken', 'id'],
|
|
1582
|
+
};
|
|
1583
|
+
exports.UpdateThirdPartyDtoSchema = {
|
|
1584
|
+
type: 'object',
|
|
1585
|
+
properties: {
|
|
1586
|
+
source: {
|
|
1587
|
+
$ref: '#/components/schemas/ThirdPartySource',
|
|
1588
|
+
},
|
|
1589
|
+
login: {
|
|
1590
|
+
type: 'string',
|
|
1591
|
+
description: '第三方登录 id',
|
|
1592
|
+
},
|
|
1593
|
+
accessToken: {
|
|
1594
|
+
type: 'string',
|
|
1595
|
+
description: '第三方登录 accessToken',
|
|
1596
|
+
},
|
|
1597
|
+
uid: {
|
|
1598
|
+
type: 'string',
|
|
1599
|
+
description: '关联uid',
|
|
1600
|
+
},
|
|
1601
|
+
},
|
|
1602
|
+
};
|
|
1603
|
+
exports.bindThirdPartyDtoSchema = {
|
|
1604
|
+
type: 'object',
|
|
1605
|
+
properties: {
|
|
1606
|
+
username: {
|
|
1607
|
+
type: 'string',
|
|
1608
|
+
},
|
|
1609
|
+
password: {
|
|
1610
|
+
type: 'string',
|
|
1611
|
+
},
|
|
1612
|
+
source: {
|
|
1613
|
+
type: 'string',
|
|
1614
|
+
enum: ['GitHub', 'WebChat'],
|
|
1615
|
+
},
|
|
1616
|
+
login: {
|
|
1617
|
+
type: 'string',
|
|
1618
|
+
},
|
|
1619
|
+
},
|
|
1620
|
+
required: ['username', 'password', 'source', 'login'],
|
|
1621
|
+
};
|
|
1430
1622
|
exports.IndustrySchema = {
|
|
1431
1623
|
type: 'object',
|
|
1432
1624
|
properties: {
|