@nocobase/plugin-auth 1.2.13-alpha → 1.3.0-alpha.20240710084543

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.
Files changed (107) hide show
  1. package/package.json +2 -2
  2. package/dist/client/AuthProvider.d.ts +0 -10
  3. package/dist/client/authenticator.d.ts +0 -21
  4. package/dist/client/basic/Options.d.ts +0 -10
  5. package/dist/client/basic/SignInForm.d.ts +0 -17
  6. package/dist/client/basic/SignUpForm.d.ts +0 -21
  7. package/dist/client/basic/index.d.ts +0 -11
  8. package/dist/client/index.d.ts +0 -35
  9. package/dist/client/index.js +0 -31
  10. package/dist/client/locale/index.d.ts +0 -10
  11. package/dist/client/pages/AuthLayout.d.ts +0 -13
  12. package/dist/client/pages/SignInPage.d.ts +0 -24
  13. package/dist/client/pages/SignUpPage.d.ts +0 -29
  14. package/dist/client/pages/index.d.ts +0 -11
  15. package/dist/client/settings/Authenticator.d.ts +0 -10
  16. package/dist/client/settings/Options.d.ts +0 -12
  17. package/dist/client/settings/authType.d.ts +0 -24
  18. package/dist/client/settings/schemas/authenticators.d.ts +0 -11
  19. package/dist/externalVersion.js +0 -27
  20. package/dist/index.d.ts +0 -9
  21. package/dist/index.js +0 -49
  22. package/dist/locale/en-US.json +0 -27
  23. package/dist/locale/ko_KR.json +0 -26
  24. package/dist/locale/zh-CN.json +0 -27
  25. package/dist/node_modules/cron/LICENSE +0 -8
  26. package/dist/node_modules/cron/lib/cron.js +0 -1
  27. package/dist/node_modules/cron/lib/job.js +0 -215
  28. package/dist/node_modules/cron/lib/time.js +0 -830
  29. package/dist/node_modules/cron/node_modules/luxon/build/amd/luxon.js +0 -7826
  30. package/dist/node_modules/cron/node_modules/luxon/build/cjs-browser/luxon.js +0 -7824
  31. package/dist/node_modules/cron/node_modules/luxon/build/es6/luxon.js +0 -7217
  32. package/dist/node_modules/cron/node_modules/luxon/build/global/luxon.js +0 -7829
  33. package/dist/node_modules/cron/node_modules/luxon/build/global/luxon.min.js +0 -1
  34. package/dist/node_modules/cron/node_modules/luxon/build/node/luxon.js +0 -6932
  35. package/dist/node_modules/cron/node_modules/luxon/package.json +0 -85
  36. package/dist/node_modules/cron/node_modules/luxon/src/datetime.js +0 -2248
  37. package/dist/node_modules/cron/node_modules/luxon/src/duration.js +0 -948
  38. package/dist/node_modules/cron/node_modules/luxon/src/errors.js +0 -61
  39. package/dist/node_modules/cron/node_modules/luxon/src/impl/conversions.js +0 -161
  40. package/dist/node_modules/cron/node_modules/luxon/src/impl/diff.js +0 -75
  41. package/dist/node_modules/cron/node_modules/luxon/src/impl/digits.js +0 -75
  42. package/dist/node_modules/cron/node_modules/luxon/src/impl/english.js +0 -233
  43. package/dist/node_modules/cron/node_modules/luxon/src/impl/formats.js +0 -176
  44. package/dist/node_modules/cron/node_modules/luxon/src/impl/formatter.js +0 -400
  45. package/dist/node_modules/cron/node_modules/luxon/src/impl/invalid.js +0 -14
  46. package/dist/node_modules/cron/node_modules/luxon/src/impl/locale.js +0 -494
  47. package/dist/node_modules/cron/node_modules/luxon/src/impl/regexParser.js +0 -335
  48. package/dist/node_modules/cron/node_modules/luxon/src/impl/tokenParser.js +0 -444
  49. package/dist/node_modules/cron/node_modules/luxon/src/impl/util.js +0 -274
  50. package/dist/node_modules/cron/node_modules/luxon/src/impl/zoneUtil.js +0 -34
  51. package/dist/node_modules/cron/node_modules/luxon/src/info.js +0 -169
  52. package/dist/node_modules/cron/node_modules/luxon/src/interval.js +0 -637
  53. package/dist/node_modules/cron/node_modules/luxon/src/luxon.js +0 -26
  54. package/dist/node_modules/cron/node_modules/luxon/src/package.json +0 -4
  55. package/dist/node_modules/cron/node_modules/luxon/src/settings.js +0 -148
  56. package/dist/node_modules/cron/node_modules/luxon/src/zone.js +0 -91
  57. package/dist/node_modules/cron/node_modules/luxon/src/zones/IANAZone.js +0 -189
  58. package/dist/node_modules/cron/node_modules/luxon/src/zones/fixedOffsetZone.js +0 -102
  59. package/dist/node_modules/cron/node_modules/luxon/src/zones/invalidZone.js +0 -53
  60. package/dist/node_modules/cron/node_modules/luxon/src/zones/systemZone.js +0 -61
  61. package/dist/node_modules/cron/package.json +0 -1
  62. package/dist/node_modules/cron/types/index.d.ts +0 -181
  63. package/dist/node_modules/cron/types/index.test-d.ts +0 -85
  64. package/dist/preset.d.ts +0 -11
  65. package/dist/preset.js +0 -43
  66. package/dist/server/actions/auth.d.ts +0 -16
  67. package/dist/server/actions/auth.js +0 -50
  68. package/dist/server/actions/authenticators.d.ts +0 -16
  69. package/dist/server/actions/authenticators.js +0 -112
  70. package/dist/server/basic-auth.d.ts +0 -18
  71. package/dist/server/basic-auth.js +0 -192
  72. package/dist/server/collections/authenticators.d.ts +0 -13
  73. package/dist/server/collections/authenticators.js +0 -126
  74. package/dist/server/collections/token-blacklist.d.ts +0 -10
  75. package/dist/server/collections/token-blacklist.js +0 -51
  76. package/dist/server/collections/users-authenticators.d.ts +0 -14
  77. package/dist/server/collections/users-authenticators.js +0 -94
  78. package/dist/server/index.d.ts +0 -11
  79. package/dist/server/index.js +0 -51
  80. package/dist/server/locale/en-US.d.ts +0 -17
  81. package/dist/server/locale/en-US.js +0 -39
  82. package/dist/server/locale/fr-FR.d.ts +0 -17
  83. package/dist/server/locale/fr-FR.js +0 -39
  84. package/dist/server/locale/index.d.ts +0 -11
  85. package/dist/server/locale/index.js +0 -52
  86. package/dist/server/locale/ja-JP.d.ts +0 -13
  87. package/dist/server/locale/ja-JP.js +0 -35
  88. package/dist/server/locale/pt-BR.d.ts +0 -17
  89. package/dist/server/locale/pt-BR.js +0 -39
  90. package/dist/server/locale/zh-CN.d.ts +0 -19
  91. package/dist/server/locale/zh-CN.js +0 -41
  92. package/dist/server/migrations/20230506152253-basic-authenticator.d.ts +0 -14
  93. package/dist/server/migrations/20230506152253-basic-authenticator.js +0 -53
  94. package/dist/server/migrations/20230607174500-update-basic.d.ts +0 -14
  95. package/dist/server/migrations/20230607174500-update-basic.js +0 -56
  96. package/dist/server/migrations/20231218132032-fix-allow-signup.d.ts +0 -14
  97. package/dist/server/migrations/20231218132032-fix-allow-signup.js +0 -64
  98. package/dist/server/model/authenticator.d.ts +0 -17
  99. package/dist/server/model/authenticator.js +0 -78
  100. package/dist/server/plugin.d.ts +0 -19
  101. package/dist/server/plugin.js +0 -138
  102. package/dist/server/storer.d.ts +0 -24
  103. package/dist/server/storer.js +0 -78
  104. package/dist/server/token-blacklist.d.ts +0 -25
  105. package/dist/server/token-blacklist.js +0 -95
  106. package/dist/swagger/index.d.ts +0 -762
  107. package/dist/swagger/index.js +0 -796
@@ -1,796 +0,0 @@
1
- /**
2
- * This file is part of the NocoBase (R) project.
3
- * Copyright (c) 2020-2024 NocoBase Co., Ltd.
4
- * Authors: NocoBase Team.
5
- *
6
- * This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
7
- * For more information, please refer to: https://www.nocobase.com/agreement.
8
- */
9
-
10
- var __defProp = Object.defineProperty;
11
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
12
- var __getOwnPropNames = Object.getOwnPropertyNames;
13
- var __hasOwnProp = Object.prototype.hasOwnProperty;
14
- var __export = (target, all) => {
15
- for (var name in all)
16
- __defProp(target, name, { get: all[name], enumerable: true });
17
- };
18
- var __copyProps = (to, from, except, desc) => {
19
- if (from && typeof from === "object" || typeof from === "function") {
20
- for (let key of __getOwnPropNames(from))
21
- if (!__hasOwnProp.call(to, key) && key !== except)
22
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
23
- }
24
- return to;
25
- };
26
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
- var swagger_exports = {};
28
- __export(swagger_exports, {
29
- default: () => swagger_default
30
- });
31
- module.exports = __toCommonJS(swagger_exports);
32
- var swagger_default = {
33
- info: {
34
- title: "NocoBase API - Auth plugin"
35
- },
36
- paths: {
37
- "/auth:check": {
38
- get: {
39
- description: "Check if the user is logged in",
40
- tags: ["Auth"],
41
- parameters: [
42
- {
43
- name: "X-Authenticator",
44
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u8BC6",
45
- in: "header",
46
- schema: {
47
- type: "string",
48
- default: "basic"
49
- }
50
- }
51
- ],
52
- security: [],
53
- responses: {
54
- 200: {
55
- description: "successful operation",
56
- content: {
57
- "application/json": {
58
- schema: {
59
- allOf: [
60
- {
61
- $ref: "#/components/schemas/user"
62
- },
63
- {
64
- type: "object",
65
- properties: {
66
- roles: {
67
- $ref: "#/components/schemas/roles"
68
- }
69
- }
70
- }
71
- ]
72
- }
73
- }
74
- }
75
- }
76
- }
77
- }
78
- },
79
- "/auth:signIn": {
80
- post: {
81
- description: "Sign in",
82
- tags: ["Basic auth"],
83
- security: [],
84
- parameters: [
85
- {
86
- name: "X-Authenticator",
87
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u8BC6",
88
- in: "header",
89
- schema: {
90
- type: "string",
91
- default: "basic"
92
- }
93
- }
94
- ],
95
- requestBody: {
96
- content: {
97
- "application/json": {
98
- schema: {
99
- type: "object",
100
- properties: {
101
- email: {
102
- type: "string",
103
- description: "\u90AE\u7BB1"
104
- },
105
- password: {
106
- type: "string",
107
- description: "\u5BC6\u7801"
108
- }
109
- }
110
- }
111
- }
112
- }
113
- },
114
- responses: {
115
- 200: {
116
- description: "successful operation",
117
- content: {
118
- "application/json": {
119
- schema: {
120
- type: "object",
121
- properties: {
122
- token: {
123
- type: "string"
124
- },
125
- user: {
126
- $ref: "#/components/schemas/user"
127
- }
128
- }
129
- }
130
- }
131
- }
132
- },
133
- 401: {
134
- description: "Unauthorized",
135
- content: {
136
- "application/json": {
137
- schema: {
138
- $ref: "#/components/schemas/error"
139
- }
140
- }
141
- }
142
- }
143
- }
144
- }
145
- },
146
- "/auth:signUp": {
147
- post: {
148
- description: "Sign up",
149
- tags: ["Basic auth"],
150
- security: [],
151
- requestBody: {
152
- content: {
153
- "application/json": {
154
- schema: {
155
- type: "object",
156
- properties: {
157
- email: {
158
- type: "string",
159
- description: "\u90AE\u7BB1"
160
- },
161
- password: {
162
- type: "string",
163
- description: "\u5BC6\u7801"
164
- },
165
- confirm_password: {
166
- type: "string",
167
- description: "\u786E\u8BA4\u5BC6\u7801"
168
- }
169
- }
170
- }
171
- }
172
- }
173
- },
174
- responses: {
175
- 200: {
176
- description: "ok"
177
- }
178
- }
179
- }
180
- },
181
- "/auth:signOut": {
182
- post: {
183
- description: "Sign out",
184
- tags: ["Basic auth"],
185
- security: [],
186
- responses: {
187
- 200: {
188
- description: "ok"
189
- }
190
- }
191
- }
192
- },
193
- "/auth:lostPassword": {
194
- post: {
195
- description: "Lost password",
196
- tags: ["Basic auth"],
197
- security: [],
198
- requestBody: {
199
- content: {
200
- "application/json": {
201
- schema: {
202
- type: "object",
203
- properties: {
204
- email: {
205
- type: "string",
206
- description: "\u90AE\u7BB1"
207
- }
208
- }
209
- }
210
- }
211
- }
212
- },
213
- responses: {
214
- 200: {
215
- description: "successful operation",
216
- content: {
217
- "application/json": {
218
- schema: {
219
- allOf: [
220
- {
221
- $ref: "#/components/schemas/user"
222
- },
223
- {
224
- type: "object",
225
- properties: {
226
- resetToken: {
227
- type: "string",
228
- description: "\u91CD\u7F6E\u5BC6\u7801\u7684token"
229
- }
230
- }
231
- }
232
- ]
233
- }
234
- }
235
- }
236
- },
237
- 400: {
238
- description: "Please fill in your email address",
239
- content: {
240
- "application/json": {
241
- schema: {
242
- $ref: "#/components/schemas/error"
243
- }
244
- }
245
- }
246
- },
247
- 401: {
248
- description: "The email is incorrect, please re-enter",
249
- content: {
250
- "application/json": {
251
- schema: {
252
- $ref: "#/components/schemas/error"
253
- }
254
- }
255
- }
256
- }
257
- }
258
- }
259
- },
260
- "/auth:resetPassword": {
261
- post: {
262
- description: "Reset password",
263
- tags: ["Basic auth"],
264
- security: [],
265
- requestBody: {
266
- content: {
267
- "application/json": {
268
- schema: {
269
- type: "object",
270
- properties: {
271
- email: {
272
- type: "string",
273
- description: "\u90AE\u7BB1"
274
- },
275
- password: {
276
- type: "string",
277
- description: "\u5BC6\u7801"
278
- },
279
- resetToken: {
280
- type: "string",
281
- description: "\u91CD\u7F6E\u5BC6\u7801\u7684token"
282
- }
283
- }
284
- }
285
- }
286
- }
287
- },
288
- responses: {
289
- 200: {
290
- description: "successful operation",
291
- content: {
292
- "application/json": {
293
- schema: {
294
- $ref: "#/components/schemas/user"
295
- }
296
- }
297
- }
298
- },
299
- 404: {
300
- description: "User not found",
301
- content: {
302
- "application/json": {
303
- schema: {
304
- $ref: "#/components/schemas/error"
305
- }
306
- }
307
- }
308
- }
309
- }
310
- }
311
- },
312
- "/auth:getUserByResetToken": {
313
- get: {
314
- description: "Get user by reset token",
315
- tags: ["Basic auth"],
316
- security: [],
317
- parameters: [
318
- {
319
- name: "token",
320
- in: "query",
321
- description: "\u91CD\u7F6E\u5BC6\u7801\u7684token",
322
- required: true,
323
- schema: {
324
- type: "string"
325
- }
326
- }
327
- ],
328
- responses: {
329
- 200: {
330
- description: "ok",
331
- content: {
332
- "application/json": {
333
- schema: {
334
- $ref: "#/components/schemas/user"
335
- }
336
- }
337
- }
338
- },
339
- 401: {
340
- description: "Unauthorized",
341
- content: {
342
- "application/json": {
343
- schema: {
344
- $ref: "#/components/schemas/error"
345
- }
346
- }
347
- }
348
- }
349
- }
350
- }
351
- },
352
- "/auth:changePassword": {
353
- post: {
354
- description: "Change password",
355
- tags: ["Basic auth"],
356
- security: [],
357
- requestBody: {
358
- content: {
359
- "application/json": {
360
- schema: {
361
- type: "object",
362
- properties: {
363
- oldPassword: {
364
- type: "string",
365
- description: "\u65E7\u5BC6\u7801"
366
- },
367
- newPassword: {
368
- type: "string",
369
- description: "\u65B0\u5BC6\u7801"
370
- },
371
- confirmPassword: {
372
- type: "string",
373
- description: "\u786E\u8BA4\u5BC6\u7801"
374
- }
375
- }
376
- }
377
- }
378
- }
379
- },
380
- responses: {
381
- 200: {
382
- description: "ok",
383
- content: {
384
- "application/json": {
385
- schema: {
386
- $ref: "#/components/schemas/user"
387
- }
388
- }
389
- }
390
- },
391
- 401: {
392
- description: "Unauthorized",
393
- content: {
394
- "application/json": {
395
- schema: {
396
- $ref: "#/components/schemas/error"
397
- }
398
- }
399
- }
400
- }
401
- }
402
- }
403
- },
404
- "authenticators:listTypes": {
405
- get: {
406
- description: "List authenticator types",
407
- tags: ["Authenticator"],
408
- responses: {
409
- 200: {
410
- description: "ok",
411
- content: {
412
- "application/json": {
413
- schema: {
414
- type: "array",
415
- items: {
416
- type: "string"
417
- }
418
- }
419
- }
420
- }
421
- }
422
- }
423
- }
424
- },
425
- "authenticators:publicList": {
426
- get: {
427
- description: "List enabled authenticators",
428
- tags: ["Authenticator"],
429
- security: [],
430
- responses: {
431
- 200: {
432
- description: "ok",
433
- content: {
434
- "application/json": {
435
- schema: {
436
- type: "array",
437
- items: {
438
- type: "object",
439
- properties: {
440
- name: {
441
- type: "string",
442
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u8BC6"
443
- },
444
- title: {
445
- type: "string",
446
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u9898"
447
- },
448
- authType: {
449
- type: "string",
450
- description: "\u767B\u5F55\u65B9\u5F0F\u7C7B\u578B"
451
- },
452
- options: {
453
- type: "object",
454
- description: "\u767B\u5F55\u65B9\u5F0F\u516C\u5F00\u914D\u7F6E"
455
- }
456
- }
457
- }
458
- }
459
- }
460
- }
461
- }
462
- }
463
- }
464
- },
465
- "authenticators:create": {
466
- post: {
467
- description: "Create authenticator",
468
- tags: ["Authenticator"],
469
- requestBody: {
470
- content: {
471
- "application/json": {
472
- schema: {
473
- type: "object",
474
- properties: {
475
- name: {
476
- type: "string",
477
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u8BC6"
478
- },
479
- authType: {
480
- type: "string",
481
- description: "\u767B\u5F55\u65B9\u5F0F\u7C7B\u578B"
482
- },
483
- options: {
484
- type: "object",
485
- description: "\u767B\u5F55\u65B9\u5F0F\u914D\u7F6E"
486
- }
487
- }
488
- }
489
- }
490
- }
491
- },
492
- responses: {
493
- 200: {
494
- description: "ok",
495
- content: {
496
- "application/json": {
497
- schema: {
498
- $ref: "#/components/schemas/authenticator"
499
- }
500
- }
501
- }
502
- }
503
- }
504
- }
505
- },
506
- "authenticators:list": {
507
- get: {
508
- description: "List authenticators",
509
- tags: ["Authenticator"],
510
- responses: {
511
- 200: {
512
- description: "ok",
513
- content: {
514
- "application/json": {
515
- schema: {
516
- type: "array",
517
- items: {
518
- $ref: "#/components/schemas/authenticator"
519
- }
520
- }
521
- }
522
- }
523
- }
524
- }
525
- }
526
- },
527
- "authenticators:get": {
528
- get: {
529
- description: "Get authenticator",
530
- tags: ["Authenticator"],
531
- parameters: [
532
- {
533
- name: "filterByTk",
534
- in: "query",
535
- description: "ID",
536
- required: true,
537
- schema: {
538
- type: "integer"
539
- }
540
- }
541
- ],
542
- responses: {
543
- 200: {
544
- description: "ok",
545
- content: {
546
- "application/json": {
547
- schema: {
548
- $ref: "#/components/schemas/authenticator"
549
- }
550
- }
551
- }
552
- }
553
- }
554
- }
555
- },
556
- "authenticators:update": {
557
- post: {
558
- description: "Update authenticator",
559
- tags: ["Authenticator"],
560
- parameters: [
561
- {
562
- name: "filterByTk",
563
- in: "query",
564
- description: "ID",
565
- required: true,
566
- schema: {
567
- type: "integer"
568
- }
569
- }
570
- ],
571
- requestBody: {
572
- content: {
573
- "application/json": {
574
- schema: {
575
- $ref: "#/components/schemas/authenticator"
576
- }
577
- }
578
- }
579
- },
580
- responses: {
581
- 200: {
582
- description: "ok",
583
- content: {
584
- "application/json": {
585
- schema: {
586
- $ref: "#/components/schemas/authenticator"
587
- }
588
- }
589
- }
590
- }
591
- }
592
- }
593
- },
594
- "authenticators:destroy": {
595
- post: {
596
- description: "Destroy authenticator",
597
- tags: ["Authenticator"],
598
- parameters: [
599
- {
600
- name: "filterByTk",
601
- in: "query",
602
- description: "ID",
603
- required: true,
604
- schema: {
605
- type: "integer"
606
- }
607
- }
608
- ],
609
- responses: {
610
- 200: {
611
- description: "ok"
612
- }
613
- }
614
- }
615
- }
616
- },
617
- components: {
618
- schemas: {
619
- user: {
620
- type: "object",
621
- description: "\u7528\u6237",
622
- properties: {
623
- id: {
624
- type: "integer",
625
- description: "ID"
626
- },
627
- nickname: {
628
- type: "string",
629
- description: "\u6635\u79F0"
630
- },
631
- email: {
632
- type: "string",
633
- description: "\u90AE\u7BB1"
634
- },
635
- phone: {
636
- type: "string",
637
- description: "\u624B\u673A\u53F7"
638
- },
639
- appLang: {
640
- type: "string",
641
- description: "\u7528\u6237\u4F7F\u7528\u8BED\u8A00"
642
- },
643
- systemSettings: {
644
- type: "object",
645
- description: "\u7CFB\u7EDF\u8BBE\u7F6E",
646
- properties: {
647
- theme: {
648
- type: "string",
649
- description: "\u7528\u6237\u4F7F\u7528\u4E3B\u9898"
650
- }
651
- }
652
- },
653
- createdAt: {
654
- type: "string",
655
- format: "date-time",
656
- description: "\u521B\u5EFA\u65F6\u95F4"
657
- },
658
- updatedAt: {
659
- type: "string",
660
- format: "date-time",
661
- description: "\u66F4\u65B0\u65F6\u95F4"
662
- },
663
- createdById: {
664
- type: "integer",
665
- description: "\u521B\u5EFA\u4EBA"
666
- },
667
- updatedById: {
668
- type: "integer",
669
- description: "\u66F4\u65B0\u4EBA"
670
- }
671
- }
672
- },
673
- roles: {
674
- type: "array",
675
- description: "\u89D2\u8272",
676
- items: {
677
- type: "object",
678
- properties: {
679
- title: {
680
- type: "string",
681
- description: "\u89D2\u8272\u540D\u79F0"
682
- },
683
- name: {
684
- type: "string",
685
- description: "\u89D2\u8272\u6807\u8BC6"
686
- },
687
- description: {
688
- type: "string",
689
- description: "\u89D2\u8272\u63CF\u8FF0"
690
- },
691
- hidden: {
692
- type: "boolean",
693
- description: "\u662F\u5426\u9690\u85CF"
694
- },
695
- default: {
696
- type: "boolean",
697
- description: "\u662F\u5426\u9ED8\u8BA4"
698
- },
699
- allowConfigure: {
700
- type: "boolean",
701
- description: "\u662F\u5426\u5141\u8BB8\u914D\u7F6E"
702
- },
703
- allowNewMenu: {
704
- type: "boolean",
705
- description: "\u662F\u5426\u5141\u8BB8\u65B0\u5EFA\u83DC\u5355"
706
- },
707
- snippets: {
708
- type: "array",
709
- items: {
710
- type: "string"
711
- },
712
- description: "\u63A5\u53E3\u6743\u9650"
713
- },
714
- strategy: {
715
- type: "array",
716
- description: "\u6570\u636E\u8868\u6743\u9650\u7B56\u7565",
717
- items: {
718
- type: "object",
719
- properties: {
720
- actions: {
721
- type: "array",
722
- items: {
723
- type: "string"
724
- },
725
- description: "\u64CD\u4F5C"
726
- }
727
- }
728
- }
729
- },
730
- createdAt: {
731
- type: "string",
732
- format: "date-time",
733
- description: "\u521B\u5EFA\u65F6\u95F4"
734
- },
735
- updatedAt: {
736
- type: "string",
737
- format: "date-time",
738
- description: "\u66F4\u65B0\u65F6\u95F4"
739
- }
740
- }
741
- }
742
- },
743
- authenticator: {
744
- type: "object",
745
- properties: {
746
- id: {
747
- type: "integer",
748
- description: "ID"
749
- },
750
- authType: {
751
- type: "string",
752
- description: "\u767B\u5F55\u65B9\u5F0F\u7C7B\u578B"
753
- },
754
- name: {
755
- type: "string",
756
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u8BC6"
757
- },
758
- title: {
759
- type: "string",
760
- description: "\u767B\u5F55\u65B9\u5F0F\u6807\u9898"
761
- },
762
- options: {
763
- type: "object",
764
- description: "\u767B\u5F55\u65B9\u5F0F\u914D\u7F6E"
765
- },
766
- description: {
767
- type: "string",
768
- description: "\u767B\u5F55\u65B9\u5F0F\u63CF\u8FF0"
769
- },
770
- enabled: {
771
- type: "boolean",
772
- description: "\u662F\u5426\u542F\u7528"
773
- },
774
- createdAt: {
775
- type: "string",
776
- format: "date-time",
777
- description: "\u521B\u5EFA\u65F6\u95F4"
778
- },
779
- updatedAt: {
780
- type: "string",
781
- format: "date-time",
782
- description: "\u66F4\u65B0\u65F6\u95F4"
783
- },
784
- createdById: {
785
- type: "integer",
786
- description: "\u521B\u5EFA\u4EBA"
787
- },
788
- updatedById: {
789
- type: "integer",
790
- description: "\u66F4\u65B0\u4EBA"
791
- }
792
- }
793
- }
794
- }
795
- }
796
- };