@36node/auth-sdk 1.6.4 → 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 -186
- package/dist/schemas.gen.js +373 -191
- package/dist/schemas.gen.js.map +1 -1
- package/dist/sdk.gen.d.ts +161 -1
- package/dist/sdk.gen.js +37 -2
- package/dist/sdk.gen.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.gen.d.ts +130 -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,132 +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.LogoutDtoSchema = {
|
|
291
|
-
type: 'object',
|
|
292
|
-
properties: {
|
|
293
|
-
key: {
|
|
294
|
-
type: 'string',
|
|
295
|
-
description: 'session key',
|
|
296
|
-
},
|
|
297
|
-
},
|
|
298
|
-
required: ['key'],
|
|
299
|
-
};
|
|
300
|
-
exports.RegisterDtoSchema = {
|
|
301
|
-
type: 'object',
|
|
302
|
-
properties: {
|
|
303
|
-
username: {
|
|
304
|
-
type: 'string',
|
|
305
|
-
description: '用户名',
|
|
306
|
-
},
|
|
307
|
-
password: {
|
|
308
|
-
type: 'string',
|
|
309
|
-
description: '密码',
|
|
310
|
-
},
|
|
311
|
-
ns: {
|
|
312
|
-
type: 'string',
|
|
313
|
-
description: '命名空间',
|
|
314
|
-
},
|
|
315
|
-
},
|
|
316
|
-
required: ['username', 'password'],
|
|
317
|
-
};
|
|
318
335
|
exports.RegisterbyPhoneDtoSchema = {
|
|
319
336
|
type: 'object',
|
|
320
337
|
properties: {
|
|
@@ -380,10 +397,6 @@ s => second
|
|
|
380
397
|
ms => millisecond
|
|
381
398
|
无单位 => millisecond`,
|
|
382
399
|
},
|
|
383
|
-
acl: {
|
|
384
|
-
type: 'object',
|
|
385
|
-
description: '访问控制列表',
|
|
386
|
-
},
|
|
387
400
|
uid: {
|
|
388
401
|
type: 'string',
|
|
389
402
|
description: 'user id',
|
|
@@ -409,12 +422,12 @@ exports.TokenSchema = {
|
|
|
409
422
|
exports.RefreshTokenDtoSchema = {
|
|
410
423
|
type: 'object',
|
|
411
424
|
properties: {
|
|
412
|
-
|
|
425
|
+
refreshToken: {
|
|
413
426
|
type: 'string',
|
|
414
427
|
description: 'user id',
|
|
415
428
|
},
|
|
416
429
|
},
|
|
417
|
-
required: ['
|
|
430
|
+
required: ['refreshToken'],
|
|
418
431
|
};
|
|
419
432
|
exports.CreateUserDtoSchema = {
|
|
420
433
|
type: 'object',
|
|
@@ -488,10 +501,6 @@ exports.CreateUserDtoSchema = {
|
|
|
488
501
|
type: 'string',
|
|
489
502
|
},
|
|
490
503
|
},
|
|
491
|
-
super: {
|
|
492
|
-
type: 'boolean',
|
|
493
|
-
description: '是否超级管理员',
|
|
494
|
-
},
|
|
495
504
|
username: {
|
|
496
505
|
type: 'string',
|
|
497
506
|
description: '用户名',
|
|
@@ -518,10 +527,6 @@ exports.CreateUserDtoSchema = {
|
|
|
518
527
|
type: 'boolean',
|
|
519
528
|
description: '是否启用',
|
|
520
529
|
},
|
|
521
|
-
inviteCode: {
|
|
522
|
-
type: 'string',
|
|
523
|
-
description: '邀请码',
|
|
524
|
-
},
|
|
525
530
|
status: {
|
|
526
531
|
type: 'string',
|
|
527
532
|
description: '状态',
|
|
@@ -531,7 +536,7 @@ exports.CreateUserDtoSchema = {
|
|
|
531
536
|
type: 'string',
|
|
532
537
|
description: '过期时间',
|
|
533
538
|
},
|
|
534
|
-
|
|
539
|
+
type: {
|
|
535
540
|
description: '类型,支持设置多个',
|
|
536
541
|
type: 'array',
|
|
537
542
|
items: {
|
|
@@ -620,10 +625,6 @@ exports.UpdateUserDtoSchema = {
|
|
|
620
625
|
type: 'string',
|
|
621
626
|
},
|
|
622
627
|
},
|
|
623
|
-
super: {
|
|
624
|
-
type: 'boolean',
|
|
625
|
-
description: '是否超级管理员',
|
|
626
|
-
},
|
|
627
628
|
username: {
|
|
628
629
|
type: 'string',
|
|
629
630
|
description: '用户名',
|
|
@@ -655,10 +656,6 @@ exports.UpdateUserDtoSchema = {
|
|
|
655
656
|
type: 'boolean',
|
|
656
657
|
description: '是否启用',
|
|
657
658
|
},
|
|
658
|
-
inviteCode: {
|
|
659
|
-
type: 'string',
|
|
660
|
-
description: '邀请码',
|
|
661
|
-
},
|
|
662
659
|
status: {
|
|
663
660
|
type: 'string',
|
|
664
661
|
description: '状态',
|
|
@@ -668,7 +665,7 @@ exports.UpdateUserDtoSchema = {
|
|
|
668
665
|
type: 'string',
|
|
669
666
|
description: '过期时间',
|
|
670
667
|
},
|
|
671
|
-
|
|
668
|
+
type: {
|
|
672
669
|
description: '类型,支持设置多个',
|
|
673
670
|
type: 'array',
|
|
674
671
|
items: {
|
|
@@ -888,54 +885,88 @@ exports.UpdateNamespaceDtoSchema = {
|
|
|
888
885
|
exports.CreateSessionDtoSchema = {
|
|
889
886
|
type: 'object',
|
|
890
887
|
properties: {
|
|
891
|
-
|
|
888
|
+
refreshTokenExpireAt: {
|
|
889
|
+
format: 'date-time',
|
|
892
890
|
type: 'string',
|
|
893
|
-
description: '
|
|
891
|
+
description: '会话过期时间',
|
|
894
892
|
},
|
|
895
|
-
|
|
896
|
-
type: '
|
|
897
|
-
description: '
|
|
893
|
+
uid: {
|
|
894
|
+
type: 'string',
|
|
895
|
+
description: '用户或第三方用户',
|
|
898
896
|
},
|
|
899
|
-
|
|
900
|
-
format: 'date-time',
|
|
897
|
+
source: {
|
|
901
898
|
type: 'string',
|
|
902
|
-
description: '
|
|
899
|
+
description: '第三方来源',
|
|
900
|
+
enum: ['GitHub', 'WebChat'],
|
|
903
901
|
},
|
|
904
902
|
client: {
|
|
905
903
|
type: 'string',
|
|
906
904
|
description: '客户端/设备',
|
|
907
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
|
+
},
|
|
908
924
|
},
|
|
909
|
-
required: ['
|
|
925
|
+
required: ['refreshTokenExpireAt', 'uid'],
|
|
910
926
|
};
|
|
911
927
|
exports.SessionSchema = {
|
|
912
928
|
type: 'object',
|
|
913
929
|
properties: {
|
|
914
|
-
|
|
915
|
-
type: 'object',
|
|
916
|
-
description: '访问控制列表',
|
|
917
|
-
},
|
|
918
|
-
expireAt: {
|
|
930
|
+
refreshTokenExpireAt: {
|
|
919
931
|
format: 'date-time',
|
|
920
932
|
type: 'string',
|
|
921
933
|
description: '会话过期时间',
|
|
922
934
|
},
|
|
923
|
-
|
|
935
|
+
refreshToken: {
|
|
936
|
+
type: 'string',
|
|
937
|
+
description: 'refresh token',
|
|
938
|
+
},
|
|
939
|
+
uid: {
|
|
924
940
|
type: 'string',
|
|
925
|
-
description: '
|
|
941
|
+
description: '用户或第三方用户',
|
|
926
942
|
},
|
|
927
|
-
|
|
928
|
-
description: '
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
$ref: '#/components/schemas/User',
|
|
932
|
-
},
|
|
933
|
-
],
|
|
943
|
+
source: {
|
|
944
|
+
description: '第三方来源',
|
|
945
|
+
enum: ['GitHub', 'WebChat'],
|
|
946
|
+
type: 'string',
|
|
934
947
|
},
|
|
935
948
|
client: {
|
|
936
949
|
type: 'string',
|
|
937
950
|
description: '客户端/设备',
|
|
938
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
|
+
},
|
|
939
970
|
id: {
|
|
940
971
|
type: 'string',
|
|
941
972
|
description: 'Entity id',
|
|
@@ -959,27 +990,46 @@ exports.SessionSchema = {
|
|
|
959
990
|
description: 'Entity updated by who',
|
|
960
991
|
},
|
|
961
992
|
},
|
|
962
|
-
required: ['
|
|
993
|
+
required: ['refreshTokenExpireAt', 'refreshToken', 'uid', 'id'],
|
|
963
994
|
};
|
|
964
995
|
exports.UpdateSessionDtoSchema = {
|
|
965
996
|
type: 'object',
|
|
966
997
|
properties: {
|
|
967
|
-
|
|
968
|
-
type: 'object',
|
|
969
|
-
description: '访问控制列表',
|
|
970
|
-
},
|
|
971
|
-
expireAt: {
|
|
998
|
+
refreshTokenExpireAt: {
|
|
972
999
|
format: 'date-time',
|
|
973
1000
|
type: 'string',
|
|
974
1001
|
description: '会话过期时间',
|
|
975
1002
|
},
|
|
1003
|
+
uid: {
|
|
1004
|
+
type: 'string',
|
|
1005
|
+
description: '用户或第三方用户',
|
|
1006
|
+
},
|
|
1007
|
+
source: {
|
|
1008
|
+
type: 'string',
|
|
1009
|
+
description: '第三方来源',
|
|
1010
|
+
enum: ['GitHub', 'WebChat'],
|
|
1011
|
+
},
|
|
976
1012
|
client: {
|
|
977
1013
|
type: 'string',
|
|
978
1014
|
description: '客户端/设备',
|
|
979
1015
|
},
|
|
980
|
-
|
|
1016
|
+
permissions: {
|
|
1017
|
+
description: '用户动态权限',
|
|
1018
|
+
type: 'array',
|
|
1019
|
+
items: {
|
|
1020
|
+
type: 'string',
|
|
1021
|
+
},
|
|
1022
|
+
},
|
|
1023
|
+
ns: {
|
|
981
1024
|
type: 'string',
|
|
982
|
-
description: '
|
|
1025
|
+
description: 'user ns',
|
|
1026
|
+
},
|
|
1027
|
+
type: {
|
|
1028
|
+
description: '类型,支持设置多个',
|
|
1029
|
+
type: 'array',
|
|
1030
|
+
items: {
|
|
1031
|
+
type: 'string',
|
|
1032
|
+
},
|
|
983
1033
|
},
|
|
984
1034
|
},
|
|
985
1035
|
};
|
|
@@ -1169,6 +1219,30 @@ exports.UpdateCaptchaDtoSchema = {
|
|
|
1169
1219
|
},
|
|
1170
1220
|
},
|
|
1171
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
|
+
};
|
|
1172
1246
|
exports.SendEmailDtoSchema = {
|
|
1173
1247
|
type: 'object',
|
|
1174
1248
|
properties: {
|
|
@@ -1437,6 +1511,114 @@ exports.UpdateSmsRecordDtoSchema = {
|
|
|
1437
1511
|
},
|
|
1438
1512
|
},
|
|
1439
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
|
+
};
|
|
1440
1622
|
exports.IndustrySchema = {
|
|
1441
1623
|
type: 'object',
|
|
1442
1624
|
properties: {
|