@objectstack/platform-objects 0.1.0

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 (46) hide show
  1. package/LICENSE +202 -0
  2. package/dist/apps/index.d.mts +427 -0
  3. package/dist/apps/index.d.ts +427 -0
  4. package/dist/apps/index.js +520 -0
  5. package/dist/apps/index.js.map +1 -0
  6. package/dist/apps/index.mjs +510 -0
  7. package/dist/apps/index.mjs.map +1 -0
  8. package/dist/audit/index.d.mts +9507 -0
  9. package/dist/audit/index.d.ts +9507 -0
  10. package/dist/audit/index.js +492 -0
  11. package/dist/audit/index.js.map +1 -0
  12. package/dist/audit/index.mjs +487 -0
  13. package/dist/audit/index.mjs.map +1 -0
  14. package/dist/identity/index.d.mts +32482 -0
  15. package/dist/identity/index.d.ts +32482 -0
  16. package/dist/identity/index.js +1404 -0
  17. package/dist/identity/index.js.map +1 -0
  18. package/dist/identity/index.mjs +1385 -0
  19. package/dist/identity/index.mjs.map +1 -0
  20. package/dist/index.d.mts +10 -0
  21. package/dist/index.d.ts +10 -0
  22. package/dist/index.js +4209 -0
  23. package/dist/index.js.map +1 -0
  24. package/dist/index.mjs +4160 -0
  25. package/dist/index.mjs.map +1 -0
  26. package/dist/metadata/index.d.mts +25601 -0
  27. package/dist/metadata/index.d.ts +25601 -0
  28. package/dist/metadata/index.js +911 -0
  29. package/dist/metadata/index.js.map +1 -0
  30. package/dist/metadata/index.mjs +902 -0
  31. package/dist/metadata/index.mjs.map +1 -0
  32. package/dist/security/index.d.mts +3554 -0
  33. package/dist/security/index.d.ts +3554 -0
  34. package/dist/security/index.js +178 -0
  35. package/dist/security/index.js.map +1 -0
  36. package/dist/security/index.mjs +175 -0
  37. package/dist/security/index.mjs.map +1 -0
  38. package/dist/state-machine.zod-BFg-VE0M.d-Ek3_yo9P.d.mts +41 -0
  39. package/dist/state-machine.zod-BFg-VE0M.d-Ek3_yo9P.d.ts +41 -0
  40. package/dist/tenant/index.d.mts +16454 -0
  41. package/dist/tenant/index.d.ts +16454 -0
  42. package/dist/tenant/index.js +741 -0
  43. package/dist/tenant/index.js.map +1 -0
  44. package/dist/tenant/index.mjs +733 -0
  45. package/dist/tenant/index.mjs.map +1 -0
  46. package/package.json +84 -0
@@ -0,0 +1,1404 @@
1
+ 'use strict';
2
+
3
+ var data = require('@objectstack/spec/data');
4
+
5
+ // src/identity/sys-user.object.ts
6
+ var SysUser = data.ObjectSchema.create({
7
+ name: "sys_user",
8
+ label: "User",
9
+ pluralLabel: "Users",
10
+ icon: "user",
11
+ isSystem: true,
12
+ description: "User accounts for authentication",
13
+ displayNameField: "name",
14
+ titleFormat: "{name}",
15
+ compactLayout: ["name", "email", "email_verified"],
16
+ fields: {
17
+ // ── Identity (primary business fields) ───────────────────────
18
+ name: data.Field.text({
19
+ label: "Name",
20
+ required: true,
21
+ searchable: true,
22
+ maxLength: 255,
23
+ group: "Identity"
24
+ }),
25
+ email: data.Field.email({
26
+ label: "Email",
27
+ required: true,
28
+ searchable: true,
29
+ group: "Identity"
30
+ }),
31
+ email_verified: data.Field.boolean({
32
+ label: "Email Verified",
33
+ defaultValue: false,
34
+ group: "Identity"
35
+ }),
36
+ two_factor_enabled: data.Field.boolean({
37
+ label: "Two-Factor Enabled",
38
+ defaultValue: false,
39
+ group: "Identity",
40
+ description: "Whether two-factor authentication is enabled for this user. Maintained by the better-auth `twoFactor` plugin."
41
+ }),
42
+ // ── Profile ──────────────────────────────────────────────────
43
+ image: data.Field.url({
44
+ label: "Profile Image",
45
+ required: false,
46
+ group: "Profile"
47
+ }),
48
+ // ── System (auto-managed, hidden from create/edit forms) ─────
49
+ id: data.Field.text({
50
+ label: "User ID",
51
+ required: true,
52
+ readonly: true,
53
+ group: "System"
54
+ }),
55
+ created_at: data.Field.datetime({
56
+ label: "Created At",
57
+ defaultValue: "NOW()",
58
+ readonly: true,
59
+ group: "System"
60
+ }),
61
+ updated_at: data.Field.datetime({
62
+ label: "Updated At",
63
+ defaultValue: "NOW()",
64
+ readonly: true,
65
+ group: "System"
66
+ })
67
+ },
68
+ indexes: [
69
+ { fields: ["email"], unique: true },
70
+ { fields: ["created_at"], unique: false }
71
+ ],
72
+ enable: {
73
+ trackHistory: true,
74
+ searchable: true,
75
+ apiEnabled: true,
76
+ apiMethods: ["get", "list", "create", "update", "delete"],
77
+ trash: true,
78
+ mru: true
79
+ },
80
+ validations: [
81
+ {
82
+ name: "email_unique",
83
+ type: "unique",
84
+ severity: "error",
85
+ message: "Email must be unique",
86
+ fields: ["email"],
87
+ caseSensitive: false
88
+ }
89
+ ]
90
+ });
91
+ var SysSession = data.ObjectSchema.create({
92
+ name: "sys_session",
93
+ label: "Session",
94
+ pluralLabel: "Sessions",
95
+ icon: "key",
96
+ isSystem: true,
97
+ description: "Active user sessions",
98
+ displayNameField: "user_id",
99
+ titleFormat: "Session \u2014 {user_id}",
100
+ compactLayout: ["user_id", "ip_address", "expires_at"],
101
+ fields: {
102
+ // ── Session owner & expiry ──────────────────────────────────
103
+ user_id: data.Field.lookup("sys_user", {
104
+ label: "User",
105
+ required: true,
106
+ searchable: true,
107
+ group: "Session"
108
+ }),
109
+ expires_at: data.Field.datetime({
110
+ label: "Expires At",
111
+ required: true,
112
+ group: "Session"
113
+ }),
114
+ // ── Active context (multi-org/team) ──────────────────────────
115
+ active_organization_id: data.Field.lookup("sys_organization", {
116
+ label: "Active Organization",
117
+ required: false,
118
+ group: "Context"
119
+ }),
120
+ active_team_id: data.Field.lookup("sys_team", {
121
+ label: "Active Team",
122
+ required: false,
123
+ group: "Context"
124
+ }),
125
+ // ── Client fingerprint ───────────────────────────────────────
126
+ ip_address: data.Field.text({
127
+ label: "IP Address",
128
+ required: false,
129
+ maxLength: 45,
130
+ // Support IPv6
131
+ group: "Client"
132
+ }),
133
+ user_agent: data.Field.textarea({
134
+ label: "User Agent",
135
+ required: false,
136
+ group: "Client"
137
+ }),
138
+ // ── Secret (hidden by default) ──────────────────────────────
139
+ token: data.Field.text({
140
+ label: "Session Token",
141
+ required: true,
142
+ hidden: true,
143
+ readonly: true,
144
+ description: "Opaque session token \u2014 never exposed in UI",
145
+ group: "Secret"
146
+ }),
147
+ // ── System ───────────────────────────────────────────────────
148
+ id: data.Field.text({
149
+ label: "Session ID",
150
+ required: true,
151
+ readonly: true,
152
+ group: "System"
153
+ }),
154
+ created_at: data.Field.datetime({
155
+ label: "Created At",
156
+ defaultValue: "NOW()",
157
+ readonly: true,
158
+ group: "System"
159
+ }),
160
+ updated_at: data.Field.datetime({
161
+ label: "Updated At",
162
+ defaultValue: "NOW()",
163
+ readonly: true,
164
+ group: "System"
165
+ })
166
+ },
167
+ indexes: [
168
+ { fields: ["token"], unique: true },
169
+ { fields: ["user_id"], unique: false },
170
+ { fields: ["expires_at"], unique: false }
171
+ ],
172
+ enable: {
173
+ trackHistory: false,
174
+ searchable: false,
175
+ apiEnabled: true,
176
+ apiMethods: ["get", "list", "create", "delete"],
177
+ trash: false,
178
+ mru: false,
179
+ clone: false
180
+ }
181
+ });
182
+ var SysAccount = data.ObjectSchema.create({
183
+ name: "sys_account",
184
+ label: "Account",
185
+ pluralLabel: "Accounts",
186
+ icon: "link",
187
+ isSystem: true,
188
+ description: "OAuth and authentication provider accounts",
189
+ titleFormat: "{provider_id} - {account_id}",
190
+ compactLayout: ["provider_id", "user_id", "account_id"],
191
+ fields: {
192
+ id: data.Field.text({
193
+ label: "Account ID",
194
+ required: true,
195
+ readonly: true
196
+ }),
197
+ created_at: data.Field.datetime({
198
+ label: "Created At",
199
+ defaultValue: "NOW()",
200
+ readonly: true
201
+ }),
202
+ updated_at: data.Field.datetime({
203
+ label: "Updated At",
204
+ defaultValue: "NOW()",
205
+ readonly: true
206
+ }),
207
+ provider_id: data.Field.text({
208
+ label: "Provider ID",
209
+ required: true,
210
+ description: "OAuth provider identifier (google, github, etc.)"
211
+ }),
212
+ account_id: data.Field.text({
213
+ label: "Provider Account ID",
214
+ required: true,
215
+ description: "User's ID in the provider's system"
216
+ }),
217
+ user_id: data.Field.lookup("sys_user", {
218
+ label: "User",
219
+ required: true,
220
+ description: "Link to user table"
221
+ }),
222
+ access_token: data.Field.textarea({
223
+ label: "Access Token",
224
+ required: false
225
+ }),
226
+ refresh_token: data.Field.textarea({
227
+ label: "Refresh Token",
228
+ required: false
229
+ }),
230
+ id_token: data.Field.textarea({
231
+ label: "ID Token",
232
+ required: false
233
+ }),
234
+ access_token_expires_at: data.Field.datetime({
235
+ label: "Access Token Expires At",
236
+ required: false
237
+ }),
238
+ refresh_token_expires_at: data.Field.datetime({
239
+ label: "Refresh Token Expires At",
240
+ required: false
241
+ }),
242
+ scope: data.Field.text({
243
+ label: "OAuth Scope",
244
+ required: false
245
+ }),
246
+ password: data.Field.text({
247
+ label: "Password Hash",
248
+ required: false,
249
+ description: "Hashed password for email/password provider"
250
+ })
251
+ },
252
+ indexes: [
253
+ { fields: ["user_id"], unique: false },
254
+ { fields: ["provider_id", "account_id"], unique: true }
255
+ ],
256
+ enable: {
257
+ trackHistory: false,
258
+ searchable: false,
259
+ apiEnabled: true,
260
+ apiMethods: ["get", "list", "create", "update", "delete"],
261
+ trash: true,
262
+ mru: false
263
+ }
264
+ });
265
+ var SysVerification = data.ObjectSchema.create({
266
+ name: "sys_verification",
267
+ label: "Verification",
268
+ pluralLabel: "Verifications",
269
+ icon: "shield-check",
270
+ isSystem: true,
271
+ description: "Email and phone verification tokens",
272
+ titleFormat: "Verification for {identifier}",
273
+ compactLayout: ["identifier", "expires_at", "created_at"],
274
+ fields: {
275
+ id: data.Field.text({
276
+ label: "Verification ID",
277
+ required: true,
278
+ readonly: true
279
+ }),
280
+ created_at: data.Field.datetime({
281
+ label: "Created At",
282
+ defaultValue: "NOW()",
283
+ readonly: true
284
+ }),
285
+ updated_at: data.Field.datetime({
286
+ label: "Updated At",
287
+ defaultValue: "NOW()",
288
+ readonly: true
289
+ }),
290
+ value: data.Field.text({
291
+ label: "Verification Token",
292
+ required: true,
293
+ description: "Token or code for verification"
294
+ }),
295
+ expires_at: data.Field.datetime({
296
+ label: "Expires At",
297
+ required: true
298
+ }),
299
+ identifier: data.Field.text({
300
+ label: "Identifier",
301
+ required: true,
302
+ description: "Email address or phone number"
303
+ })
304
+ },
305
+ indexes: [
306
+ { fields: ["value"], unique: true },
307
+ { fields: ["identifier"], unique: false },
308
+ { fields: ["expires_at"], unique: false }
309
+ ],
310
+ enable: {
311
+ trackHistory: false,
312
+ searchable: false,
313
+ apiEnabled: true,
314
+ apiMethods: ["get", "create", "delete"],
315
+ trash: false,
316
+ mru: false
317
+ }
318
+ });
319
+ var SysOrganization = data.ObjectSchema.create({
320
+ name: "sys_organization",
321
+ label: "Organization",
322
+ pluralLabel: "Organizations",
323
+ icon: "building-2",
324
+ isSystem: true,
325
+ description: "Organizations for multi-tenant grouping",
326
+ displayNameField: "name",
327
+ titleFormat: "{name}",
328
+ compactLayout: ["name", "slug"],
329
+ fields: {
330
+ // ── Identity ─────────────────────────────────────────────────
331
+ name: data.Field.text({
332
+ label: "Name",
333
+ required: true,
334
+ searchable: true,
335
+ maxLength: 255,
336
+ group: "Identity"
337
+ }),
338
+ slug: data.Field.text({
339
+ label: "Slug",
340
+ required: false,
341
+ searchable: true,
342
+ maxLength: 255,
343
+ description: "URL-friendly identifier",
344
+ group: "Identity"
345
+ }),
346
+ // ── Branding ─────────────────────────────────────────────────
347
+ logo: data.Field.url({
348
+ label: "Logo",
349
+ required: false,
350
+ group: "Branding"
351
+ }),
352
+ // ── Configuration ────────────────────────────────────────────
353
+ metadata: data.Field.textarea({
354
+ label: "Metadata",
355
+ required: false,
356
+ description: "JSON-serialized organization metadata",
357
+ group: "Configuration"
358
+ }),
359
+ // ── System ───────────────────────────────────────────────────
360
+ id: data.Field.text({
361
+ label: "Organization ID",
362
+ required: true,
363
+ readonly: true,
364
+ group: "System"
365
+ }),
366
+ created_at: data.Field.datetime({
367
+ label: "Created At",
368
+ defaultValue: "NOW()",
369
+ readonly: true,
370
+ group: "System"
371
+ }),
372
+ updated_at: data.Field.datetime({
373
+ label: "Updated At",
374
+ defaultValue: "NOW()",
375
+ readonly: true,
376
+ group: "System"
377
+ })
378
+ },
379
+ indexes: [
380
+ { fields: ["slug"], unique: true },
381
+ { fields: ["name"] }
382
+ ],
383
+ enable: {
384
+ trackHistory: true,
385
+ searchable: true,
386
+ apiEnabled: true,
387
+ apiMethods: ["get", "list", "create", "update", "delete"],
388
+ trash: true,
389
+ mru: true
390
+ }
391
+ });
392
+ var SysMember = data.ObjectSchema.create({
393
+ name: "sys_member",
394
+ label: "Member",
395
+ pluralLabel: "Members",
396
+ icon: "user-check",
397
+ isSystem: true,
398
+ description: "Organization membership records",
399
+ titleFormat: "{user_id} in {organization_id}",
400
+ compactLayout: ["user_id", "organization_id", "role"],
401
+ fields: {
402
+ id: data.Field.text({
403
+ label: "Member ID",
404
+ required: true,
405
+ readonly: true
406
+ }),
407
+ created_at: data.Field.datetime({
408
+ label: "Created At",
409
+ defaultValue: "NOW()",
410
+ readonly: true
411
+ }),
412
+ organization_id: data.Field.lookup("sys_organization", {
413
+ label: "Organization",
414
+ required: true
415
+ }),
416
+ user_id: data.Field.lookup("sys_user", {
417
+ label: "User",
418
+ required: true
419
+ }),
420
+ role: data.Field.text({
421
+ label: "Role",
422
+ required: false,
423
+ description: "Member role within the organization (e.g. admin, member)",
424
+ maxLength: 100
425
+ })
426
+ },
427
+ indexes: [
428
+ { fields: ["organization_id", "user_id"], unique: true },
429
+ { fields: ["user_id"] }
430
+ ],
431
+ enable: {
432
+ trackHistory: true,
433
+ searchable: false,
434
+ apiEnabled: true,
435
+ apiMethods: ["get", "list", "create", "update", "delete"],
436
+ trash: false,
437
+ mru: false
438
+ }
439
+ });
440
+ var SysInvitation = data.ObjectSchema.create({
441
+ name: "sys_invitation",
442
+ label: "Invitation",
443
+ pluralLabel: "Invitations",
444
+ icon: "mail",
445
+ isSystem: true,
446
+ description: "Organization invitations for user onboarding",
447
+ titleFormat: "Invitation to {organization_id}",
448
+ compactLayout: ["email", "organization_id", "status"],
449
+ fields: {
450
+ id: data.Field.text({
451
+ label: "Invitation ID",
452
+ required: true,
453
+ readonly: true
454
+ }),
455
+ created_at: data.Field.datetime({
456
+ label: "Created At",
457
+ defaultValue: "NOW()",
458
+ readonly: true
459
+ }),
460
+ organization_id: data.Field.lookup("sys_organization", {
461
+ label: "Organization",
462
+ required: true
463
+ }),
464
+ email: data.Field.email({
465
+ label: "Email",
466
+ required: true,
467
+ description: "Email address of the invited user"
468
+ }),
469
+ role: data.Field.text({
470
+ label: "Role",
471
+ required: false,
472
+ maxLength: 100,
473
+ description: "Role to assign upon acceptance"
474
+ }),
475
+ status: data.Field.select(["pending", "accepted", "rejected", "expired", "canceled"], {
476
+ label: "Status",
477
+ required: true,
478
+ defaultValue: "pending"
479
+ }),
480
+ inviter_id: data.Field.lookup("sys_user", {
481
+ label: "Inviter",
482
+ required: true,
483
+ description: "User who sent the invitation"
484
+ }),
485
+ expires_at: data.Field.datetime({
486
+ label: "Expires At",
487
+ required: true
488
+ }),
489
+ team_id: data.Field.lookup("sys_team", {
490
+ label: "Team",
491
+ required: false,
492
+ description: "Optional team to assign upon acceptance"
493
+ })
494
+ },
495
+ indexes: [
496
+ { fields: ["organization_id"] },
497
+ { fields: ["email"] },
498
+ { fields: ["expires_at"] }
499
+ ],
500
+ enable: {
501
+ trackHistory: true,
502
+ searchable: false,
503
+ apiEnabled: true,
504
+ apiMethods: ["get", "list", "create", "update", "delete"],
505
+ trash: false,
506
+ mru: false
507
+ }
508
+ });
509
+ var SysTeam = data.ObjectSchema.create({
510
+ name: "sys_team",
511
+ label: "Team",
512
+ pluralLabel: "Teams",
513
+ icon: "users",
514
+ isSystem: true,
515
+ description: "Teams within organizations for fine-grained grouping",
516
+ displayNameField: "name",
517
+ titleFormat: "{name}",
518
+ compactLayout: ["name", "organization_id"],
519
+ fields: {
520
+ // ── Identity ─────────────────────────────────────────────────
521
+ name: data.Field.text({
522
+ label: "Name",
523
+ required: true,
524
+ searchable: true,
525
+ maxLength: 255,
526
+ group: "Identity"
527
+ }),
528
+ organization_id: data.Field.lookup("sys_organization", {
529
+ label: "Organization",
530
+ required: true,
531
+ description: "Parent organization for this team",
532
+ group: "Identity"
533
+ }),
534
+ // ── System ───────────────────────────────────────────────────
535
+ id: data.Field.text({
536
+ label: "Team ID",
537
+ required: true,
538
+ readonly: true,
539
+ group: "System"
540
+ }),
541
+ created_at: data.Field.datetime({
542
+ label: "Created At",
543
+ defaultValue: "NOW()",
544
+ readonly: true,
545
+ group: "System"
546
+ }),
547
+ updated_at: data.Field.datetime({
548
+ label: "Updated At",
549
+ defaultValue: "NOW()",
550
+ readonly: true,
551
+ group: "System"
552
+ })
553
+ },
554
+ indexes: [
555
+ { fields: ["organization_id"] },
556
+ { fields: ["name", "organization_id"], unique: true }
557
+ ],
558
+ enable: {
559
+ trackHistory: true,
560
+ searchable: true,
561
+ apiEnabled: true,
562
+ apiMethods: ["get", "list", "create", "update", "delete"],
563
+ trash: true,
564
+ mru: false
565
+ }
566
+ });
567
+ var SysTeamMember = data.ObjectSchema.create({
568
+ name: "sys_team_member",
569
+ label: "Team Member",
570
+ pluralLabel: "Team Members",
571
+ icon: "user-plus",
572
+ isSystem: true,
573
+ description: "Team membership records linking users to teams",
574
+ titleFormat: "{user_id} in {team_id}",
575
+ compactLayout: ["user_id", "team_id", "created_at"],
576
+ fields: {
577
+ id: data.Field.text({
578
+ label: "Team Member ID",
579
+ required: true,
580
+ readonly: true
581
+ }),
582
+ created_at: data.Field.datetime({
583
+ label: "Created At",
584
+ defaultValue: "NOW()",
585
+ readonly: true
586
+ }),
587
+ team_id: data.Field.lookup("sys_team", {
588
+ label: "Team",
589
+ required: true
590
+ }),
591
+ user_id: data.Field.lookup("sys_user", {
592
+ label: "User",
593
+ required: true
594
+ })
595
+ },
596
+ indexes: [
597
+ { fields: ["team_id", "user_id"], unique: true },
598
+ { fields: ["user_id"] }
599
+ ],
600
+ enable: {
601
+ trackHistory: true,
602
+ searchable: false,
603
+ apiEnabled: true,
604
+ apiMethods: ["get", "list", "create", "delete"],
605
+ trash: false,
606
+ mru: false
607
+ }
608
+ });
609
+ var SysApiKey = data.ObjectSchema.create({
610
+ name: "sys_api_key",
611
+ label: "API Key",
612
+ pluralLabel: "API Keys",
613
+ icon: "key-round",
614
+ isSystem: true,
615
+ description: "API keys for programmatic access",
616
+ displayNameField: "name",
617
+ titleFormat: "{name}",
618
+ compactLayout: ["name", "prefix", "user_id", "expires_at", "revoked"],
619
+ fields: {
620
+ // ── Identity ─────────────────────────────────────────────────
621
+ name: data.Field.text({
622
+ label: "Name",
623
+ required: true,
624
+ searchable: true,
625
+ maxLength: 255,
626
+ description: "Human-readable label for the API key",
627
+ group: "Identity"
628
+ }),
629
+ prefix: data.Field.text({
630
+ label: "Prefix",
631
+ required: false,
632
+ maxLength: 16,
633
+ description: 'Visible prefix for identifying the key (e.g., "osk_")',
634
+ group: "Identity"
635
+ }),
636
+ user_id: data.Field.lookup("sys_user", {
637
+ label: "Owner",
638
+ required: true,
639
+ description: "User who owns this API key",
640
+ group: "Identity"
641
+ }),
642
+ // ── Access ───────────────────────────────────────────────────
643
+ scopes: data.Field.textarea({
644
+ label: "Scopes",
645
+ required: false,
646
+ description: "JSON array of permission scopes",
647
+ group: "Access"
648
+ }),
649
+ // ── Lifecycle ────────────────────────────────────────────────
650
+ expires_at: data.Field.datetime({
651
+ label: "Expires At",
652
+ required: false,
653
+ group: "Lifecycle"
654
+ }),
655
+ last_used_at: data.Field.datetime({
656
+ label: "Last Used At",
657
+ required: false,
658
+ readonly: true,
659
+ description: "Automatically updated on each API call",
660
+ group: "Lifecycle"
661
+ }),
662
+ revoked: data.Field.boolean({
663
+ label: "Revoked",
664
+ defaultValue: false,
665
+ group: "Lifecycle"
666
+ }),
667
+ // ── Secret (hidden by default) ──────────────────────────────
668
+ key: data.Field.text({
669
+ label: "Hashed Key",
670
+ required: true,
671
+ hidden: true,
672
+ readonly: true,
673
+ description: "Hashed API key value \u2014 never exposed to clients",
674
+ group: "Secret"
675
+ }),
676
+ // ── System ───────────────────────────────────────────────────
677
+ id: data.Field.text({
678
+ label: "API Key ID",
679
+ required: true,
680
+ readonly: true,
681
+ group: "System"
682
+ }),
683
+ created_at: data.Field.datetime({
684
+ label: "Created At",
685
+ defaultValue: "NOW()",
686
+ readonly: true,
687
+ group: "System"
688
+ }),
689
+ updated_at: data.Field.datetime({
690
+ label: "Updated At",
691
+ defaultValue: "NOW()",
692
+ readonly: true,
693
+ group: "System"
694
+ })
695
+ },
696
+ indexes: [
697
+ { fields: ["key"], unique: true },
698
+ { fields: ["user_id"] },
699
+ { fields: ["prefix"] },
700
+ { fields: ["revoked"] }
701
+ ],
702
+ enable: {
703
+ trackHistory: true,
704
+ searchable: false,
705
+ apiEnabled: true,
706
+ apiMethods: ["get", "list", "create", "update", "delete"],
707
+ trash: false,
708
+ mru: false
709
+ }
710
+ });
711
+ var SysTwoFactor = data.ObjectSchema.create({
712
+ name: "sys_two_factor",
713
+ label: "Two Factor",
714
+ pluralLabel: "Two Factor Credentials",
715
+ icon: "smartphone",
716
+ isSystem: true,
717
+ description: "Two-factor authentication credentials",
718
+ titleFormat: "Two-factor for {user_id}",
719
+ compactLayout: ["user_id", "created_at"],
720
+ fields: {
721
+ id: data.Field.text({
722
+ label: "Two Factor ID",
723
+ required: true,
724
+ readonly: true
725
+ }),
726
+ created_at: data.Field.datetime({
727
+ label: "Created At",
728
+ defaultValue: "NOW()",
729
+ readonly: true
730
+ }),
731
+ updated_at: data.Field.datetime({
732
+ label: "Updated At",
733
+ defaultValue: "NOW()",
734
+ readonly: true
735
+ }),
736
+ user_id: data.Field.lookup("sys_user", {
737
+ label: "User",
738
+ required: true
739
+ }),
740
+ secret: data.Field.text({
741
+ label: "Secret",
742
+ required: true,
743
+ description: "TOTP secret key"
744
+ }),
745
+ backup_codes: data.Field.textarea({
746
+ label: "Backup Codes",
747
+ required: false,
748
+ description: "JSON-serialized backup recovery codes"
749
+ })
750
+ },
751
+ indexes: [
752
+ { fields: ["user_id"], unique: true }
753
+ ],
754
+ enable: {
755
+ trackHistory: false,
756
+ searchable: false,
757
+ apiEnabled: true,
758
+ apiMethods: ["get", "create", "update", "delete"],
759
+ trash: false,
760
+ mru: false
761
+ }
762
+ });
763
+ var SysDeviceCode = data.ObjectSchema.create({
764
+ name: "sys_device_code",
765
+ label: "Device Code",
766
+ pluralLabel: "Device Codes",
767
+ icon: "key-round",
768
+ isSystem: true,
769
+ description: "OAuth 2.0 Device Authorization Grant (RFC 8628) pending requests",
770
+ titleFormat: "{user_code}",
771
+ compactLayout: ["user_code", "status", "client_id", "expires_at"],
772
+ fields: {
773
+ id: data.Field.text({
774
+ label: "Device Code ID",
775
+ required: true,
776
+ readonly: true
777
+ }),
778
+ created_at: data.Field.datetime({
779
+ label: "Created At",
780
+ defaultValue: "NOW()",
781
+ readonly: true
782
+ }),
783
+ updated_at: data.Field.datetime({
784
+ label: "Updated At",
785
+ defaultValue: "NOW()",
786
+ readonly: true
787
+ }),
788
+ /** High-entropy token returned to the device (CLI). Polled at /device/token. */
789
+ device_code: data.Field.text({
790
+ label: "Device Code",
791
+ required: true,
792
+ description: "High-entropy token returned to the polling device"
793
+ }),
794
+ /** Human-readable short code displayed to the user (e.g. ABCD-EFGH). */
795
+ user_code: data.Field.text({
796
+ label: "User Code",
797
+ required: true,
798
+ description: "Short user-facing code (e.g. ABCD-EFGH)"
799
+ }),
800
+ /** Owning user — populated when the request is approved. */
801
+ user_id: data.Field.lookup("sys_user", {
802
+ label: "User",
803
+ required: false,
804
+ description: "User who approved the device authorization"
805
+ }),
806
+ expires_at: data.Field.datetime({
807
+ label: "Expires At",
808
+ required: true,
809
+ description: "When the device & user codes are no longer valid"
810
+ }),
811
+ /** 'pending' | 'approved' | 'denied' */
812
+ status: data.Field.text({
813
+ label: "Status",
814
+ required: true,
815
+ description: "Current status: 'pending' | 'approved' | 'denied'"
816
+ }),
817
+ last_polled_at: data.Field.datetime({
818
+ label: "Last Polled At",
819
+ required: false,
820
+ description: "Timestamp of the most recent /device/token poll"
821
+ }),
822
+ polling_interval: data.Field.number({
823
+ label: "Polling Interval (ms)",
824
+ required: false,
825
+ description: "Server-recommended minimum polling interval, in ms"
826
+ }),
827
+ client_id: data.Field.text({
828
+ label: "Client ID",
829
+ required: false,
830
+ description: "OAuth client identifier of the requesting device"
831
+ }),
832
+ scope: data.Field.text({
833
+ label: "Scope",
834
+ required: false,
835
+ description: "Space-separated OAuth scopes requested by the device"
836
+ })
837
+ },
838
+ indexes: [
839
+ { fields: ["device_code"], unique: true },
840
+ { fields: ["user_code"], unique: true },
841
+ { fields: ["status"], unique: false }
842
+ ],
843
+ enable: {
844
+ trackHistory: false,
845
+ searchable: false,
846
+ apiEnabled: true,
847
+ apiMethods: ["get", "create", "update", "delete"],
848
+ trash: false,
849
+ mru: false
850
+ }
851
+ });
852
+ var SysUserPreference = data.ObjectSchema.create({
853
+ name: "sys_user_preference",
854
+ label: "User Preference",
855
+ pluralLabel: "User Preferences",
856
+ icon: "settings",
857
+ isSystem: true,
858
+ description: "Per-user key-value preferences (theme, locale, etc.)",
859
+ titleFormat: "{key}",
860
+ compactLayout: ["user_id", "key"],
861
+ fields: {
862
+ id: data.Field.text({
863
+ label: "Preference ID",
864
+ required: true,
865
+ readonly: true
866
+ }),
867
+ created_at: data.Field.datetime({
868
+ label: "Created At",
869
+ defaultValue: "NOW()",
870
+ readonly: true
871
+ }),
872
+ updated_at: data.Field.datetime({
873
+ label: "Updated At",
874
+ defaultValue: "NOW()",
875
+ readonly: true
876
+ }),
877
+ user_id: data.Field.lookup("sys_user", {
878
+ label: "User",
879
+ required: true,
880
+ description: "Owner user of this preference"
881
+ }),
882
+ key: data.Field.text({
883
+ label: "Key",
884
+ required: true,
885
+ maxLength: 255,
886
+ description: "Preference key (e.g., theme, locale, plugin.ai.auto_save)"
887
+ }),
888
+ value: data.Field.json({
889
+ label: "Value",
890
+ description: "Preference value (any JSON-serializable type)"
891
+ })
892
+ },
893
+ indexes: [
894
+ { fields: ["user_id", "key"], unique: true },
895
+ { fields: ["user_id"], unique: false }
896
+ ],
897
+ enable: {
898
+ trackHistory: false,
899
+ searchable: false,
900
+ apiEnabled: true,
901
+ apiMethods: ["get", "list", "create", "update", "delete"],
902
+ trash: false,
903
+ mru: false
904
+ }
905
+ });
906
+ var SysOauthApplication = data.ObjectSchema.create({
907
+ name: "sys_oauth_application",
908
+ label: "OAuth Application",
909
+ pluralLabel: "OAuth Applications",
910
+ icon: "key-round",
911
+ isSystem: true,
912
+ description: "Registered OAuth/OIDC client applications",
913
+ displayNameField: "name",
914
+ titleFormat: "{name}",
915
+ compactLayout: ["name", "client_id", "type", "disabled"],
916
+ fields: {
917
+ // ── Identity ─────────────────────────────────────────────────
918
+ id: data.Field.text({
919
+ label: "ID",
920
+ required: true,
921
+ readonly: true,
922
+ group: "System"
923
+ }),
924
+ name: data.Field.text({
925
+ label: "Name",
926
+ required: false,
927
+ searchable: true,
928
+ maxLength: 255,
929
+ group: "Identity"
930
+ }),
931
+ icon: data.Field.url({
932
+ label: "Icon",
933
+ required: false,
934
+ description: "Logo URL shown on the consent screen",
935
+ group: "Identity"
936
+ }),
937
+ uri: data.Field.url({
938
+ label: "Home URI",
939
+ required: false,
940
+ description: "Public homepage of the registered client",
941
+ group: "Identity"
942
+ }),
943
+ contacts: data.Field.textarea({
944
+ label: "Contacts",
945
+ required: false,
946
+ description: "JSON-serialized list of contact email addresses",
947
+ group: "Identity"
948
+ }),
949
+ tos: data.Field.url({
950
+ label: "Terms of Service",
951
+ required: false,
952
+ group: "Identity"
953
+ }),
954
+ policy: data.Field.url({
955
+ label: "Privacy Policy",
956
+ required: false,
957
+ group: "Identity"
958
+ }),
959
+ metadata: data.Field.textarea({
960
+ label: "Metadata",
961
+ required: false,
962
+ description: "JSON-serialized application metadata",
963
+ group: "Identity"
964
+ }),
965
+ // ── OAuth Credentials ────────────────────────────────────────
966
+ client_id: data.Field.text({
967
+ label: "Client ID",
968
+ required: true,
969
+ readonly: true,
970
+ maxLength: 255,
971
+ description: "Public OAuth client identifier",
972
+ group: "Credentials"
973
+ }),
974
+ client_secret: data.Field.text({
975
+ label: "Client Secret",
976
+ required: false,
977
+ maxLength: 1024,
978
+ description: "OAuth client secret (hashed/encrypted at rest)",
979
+ group: "Credentials"
980
+ }),
981
+ redirect_uris: data.Field.textarea({
982
+ label: "Redirect URIs",
983
+ required: true,
984
+ description: "JSON-serialized list of allowed redirect URIs",
985
+ group: "Credentials"
986
+ }),
987
+ post_logout_redirect_uris: data.Field.textarea({
988
+ label: "Post-logout Redirect URIs",
989
+ required: false,
990
+ description: "JSON-serialized list of allowed post-logout redirect URIs",
991
+ group: "Credentials"
992
+ }),
993
+ type: data.Field.select(["web", "native", "user-agent-based", "public"], {
994
+ label: "Client Type",
995
+ required: false,
996
+ defaultValue: "web",
997
+ group: "Credentials"
998
+ }),
999
+ public: data.Field.boolean({
1000
+ label: "Public Client",
1001
+ required: false,
1002
+ description: "Marks the client as a public (non-confidential) OAuth client",
1003
+ group: "Credentials"
1004
+ }),
1005
+ require_pkce: data.Field.boolean({
1006
+ label: "Require PKCE",
1007
+ required: false,
1008
+ group: "Credentials"
1009
+ }),
1010
+ token_endpoint_auth_method: data.Field.text({
1011
+ label: "Token Endpoint Auth Method",
1012
+ required: false,
1013
+ maxLength: 64,
1014
+ description: "e.g. client_secret_basic, client_secret_post, none",
1015
+ group: "Credentials"
1016
+ }),
1017
+ grant_types: data.Field.textarea({
1018
+ label: "Grant Types",
1019
+ required: false,
1020
+ description: "JSON-serialized list of allowed grant types",
1021
+ group: "Credentials"
1022
+ }),
1023
+ response_types: data.Field.textarea({
1024
+ label: "Response Types",
1025
+ required: false,
1026
+ description: "JSON-serialized list of allowed response types",
1027
+ group: "Credentials"
1028
+ }),
1029
+ scopes: data.Field.textarea({
1030
+ label: "Allowed Scopes",
1031
+ required: false,
1032
+ description: "JSON-serialized list of scopes the client may request",
1033
+ group: "Credentials"
1034
+ }),
1035
+ subject_type: data.Field.text({
1036
+ label: "Subject Type",
1037
+ required: false,
1038
+ maxLength: 32,
1039
+ description: "OIDC subject type (e.g. public, pairwise)",
1040
+ group: "Credentials"
1041
+ }),
1042
+ // ── Behaviour flags ──────────────────────────────────────────
1043
+ disabled: data.Field.boolean({
1044
+ label: "Disabled",
1045
+ required: false,
1046
+ defaultValue: false,
1047
+ group: "Behaviour"
1048
+ }),
1049
+ skip_consent: data.Field.boolean({
1050
+ label: "Skip Consent",
1051
+ required: false,
1052
+ description: "Treat as a trusted client and bypass the consent screen",
1053
+ group: "Behaviour"
1054
+ }),
1055
+ enable_end_session: data.Field.boolean({
1056
+ label: "Enable End Session",
1057
+ required: false,
1058
+ description: "Allow the client to call the OIDC end-session endpoint",
1059
+ group: "Behaviour"
1060
+ }),
1061
+ // ── Software statement (RFC 7591 §2.3) ───────────────────────
1062
+ software_id: data.Field.text({
1063
+ label: "Software ID",
1064
+ required: false,
1065
+ maxLength: 255,
1066
+ group: "Software"
1067
+ }),
1068
+ software_version: data.Field.text({
1069
+ label: "Software Version",
1070
+ required: false,
1071
+ maxLength: 64,
1072
+ group: "Software"
1073
+ }),
1074
+ software_statement: data.Field.textarea({
1075
+ label: "Software Statement",
1076
+ required: false,
1077
+ description: "Signed JWT asserting the client metadata (RFC 7591 \xA72.3)",
1078
+ group: "Software"
1079
+ }),
1080
+ // ── Ownership / system ───────────────────────────────────────
1081
+ user_id: data.Field.lookup("sys_user", {
1082
+ label: "Owner User",
1083
+ required: false,
1084
+ description: "User who registered this application",
1085
+ group: "System"
1086
+ }),
1087
+ reference_id: data.Field.text({
1088
+ label: "Reference ID",
1089
+ required: false,
1090
+ maxLength: 255,
1091
+ description: "Caller-supplied correlation identifier",
1092
+ group: "System"
1093
+ }),
1094
+ created_at: data.Field.datetime({
1095
+ label: "Created At",
1096
+ defaultValue: "NOW()",
1097
+ readonly: true,
1098
+ group: "System"
1099
+ }),
1100
+ updated_at: data.Field.datetime({
1101
+ label: "Updated At",
1102
+ defaultValue: "NOW()",
1103
+ readonly: true,
1104
+ group: "System"
1105
+ })
1106
+ },
1107
+ indexes: [
1108
+ { fields: ["client_id"], unique: true },
1109
+ { fields: ["user_id"] },
1110
+ { fields: ["reference_id"] }
1111
+ ],
1112
+ enable: {
1113
+ trackHistory: true,
1114
+ searchable: true,
1115
+ apiEnabled: true,
1116
+ apiMethods: ["get", "list", "delete"],
1117
+ trash: false,
1118
+ mru: false
1119
+ }
1120
+ });
1121
+ var SysOauthAccessToken = data.ObjectSchema.create({
1122
+ name: "sys_oauth_access_token",
1123
+ label: "OAuth Access Token",
1124
+ pluralLabel: "OAuth Access Tokens",
1125
+ icon: "ticket",
1126
+ isSystem: true,
1127
+ description: "Opaque OAuth access tokens issued to client applications",
1128
+ compactLayout: ["client_id", "user_id", "expires_at"],
1129
+ fields: {
1130
+ id: data.Field.text({
1131
+ label: "ID",
1132
+ required: true,
1133
+ readonly: true
1134
+ }),
1135
+ token: data.Field.text({
1136
+ label: "Token",
1137
+ required: true,
1138
+ maxLength: 1024,
1139
+ description: "Opaque access token value"
1140
+ }),
1141
+ client_id: data.Field.text({
1142
+ label: "Client ID",
1143
+ required: true,
1144
+ description: "Foreign key to sys_oauth_application.client_id"
1145
+ }),
1146
+ session_id: data.Field.lookup("sys_session", {
1147
+ label: "Session",
1148
+ required: false,
1149
+ description: "Foreign key to sys_session.id"
1150
+ }),
1151
+ user_id: data.Field.lookup("sys_user", {
1152
+ label: "User",
1153
+ required: false,
1154
+ description: "Foreign key to sys_user.id"
1155
+ }),
1156
+ refresh_id: data.Field.lookup("sys_oauth_refresh_token", {
1157
+ label: "Refresh Token",
1158
+ required: false,
1159
+ description: "Foreign key to sys_oauth_refresh_token.id"
1160
+ }),
1161
+ reference_id: data.Field.text({
1162
+ label: "Reference ID",
1163
+ required: false,
1164
+ maxLength: 255,
1165
+ description: "Caller-supplied correlation identifier"
1166
+ }),
1167
+ scopes: data.Field.textarea({
1168
+ label: "Scopes",
1169
+ required: true,
1170
+ description: "JSON-serialized list of scopes granted to this token"
1171
+ }),
1172
+ expires_at: data.Field.datetime({
1173
+ label: "Expires At",
1174
+ required: true
1175
+ }),
1176
+ created_at: data.Field.datetime({
1177
+ label: "Created At",
1178
+ defaultValue: "NOW()",
1179
+ readonly: true
1180
+ })
1181
+ },
1182
+ indexes: [
1183
+ { fields: ["token"], unique: true },
1184
+ { fields: ["client_id"] },
1185
+ { fields: ["session_id"] },
1186
+ { fields: ["user_id"] },
1187
+ { fields: ["refresh_id"] }
1188
+ ],
1189
+ enable: {
1190
+ trackHistory: false,
1191
+ searchable: false,
1192
+ apiEnabled: false,
1193
+ apiMethods: [],
1194
+ trash: false,
1195
+ mru: false
1196
+ }
1197
+ });
1198
+ var SysOauthRefreshToken = data.ObjectSchema.create({
1199
+ name: "sys_oauth_refresh_token",
1200
+ label: "OAuth Refresh Token",
1201
+ pluralLabel: "OAuth Refresh Tokens",
1202
+ icon: "refresh-cw",
1203
+ isSystem: true,
1204
+ description: "Opaque OAuth refresh tokens (linked to a session)",
1205
+ compactLayout: ["client_id", "user_id", "expires_at"],
1206
+ fields: {
1207
+ id: data.Field.text({
1208
+ label: "ID",
1209
+ required: true,
1210
+ readonly: true
1211
+ }),
1212
+ token: data.Field.text({
1213
+ label: "Token",
1214
+ required: true,
1215
+ maxLength: 1024,
1216
+ description: "Opaque refresh token value"
1217
+ }),
1218
+ client_id: data.Field.text({
1219
+ label: "Client ID",
1220
+ required: true,
1221
+ description: "Foreign key to sys_oauth_application.client_id"
1222
+ }),
1223
+ session_id: data.Field.lookup("sys_session", {
1224
+ label: "Session",
1225
+ required: false,
1226
+ description: "Foreign key to sys_session.id"
1227
+ }),
1228
+ user_id: data.Field.lookup("sys_user", {
1229
+ label: "User",
1230
+ required: true,
1231
+ description: "Foreign key to sys_user.id"
1232
+ }),
1233
+ reference_id: data.Field.text({
1234
+ label: "Reference ID",
1235
+ required: false,
1236
+ maxLength: 255,
1237
+ description: "Caller-supplied correlation identifier"
1238
+ }),
1239
+ scopes: data.Field.textarea({
1240
+ label: "Scopes",
1241
+ required: true,
1242
+ description: "JSON-serialized list of scopes granted to this token"
1243
+ }),
1244
+ expires_at: data.Field.datetime({
1245
+ label: "Expires At",
1246
+ required: true
1247
+ }),
1248
+ created_at: data.Field.datetime({
1249
+ label: "Created At",
1250
+ defaultValue: "NOW()",
1251
+ readonly: true
1252
+ }),
1253
+ revoked: data.Field.datetime({
1254
+ label: "Revoked At",
1255
+ required: false,
1256
+ description: "Timestamp at which this refresh token was revoked"
1257
+ }),
1258
+ auth_time: data.Field.datetime({
1259
+ label: "Auth Time",
1260
+ required: false,
1261
+ description: "When the user originally authenticated for this token chain"
1262
+ })
1263
+ },
1264
+ indexes: [
1265
+ { fields: ["token"], unique: true },
1266
+ { fields: ["client_id"] },
1267
+ { fields: ["session_id"] },
1268
+ { fields: ["user_id"] }
1269
+ ],
1270
+ enable: {
1271
+ trackHistory: false,
1272
+ searchable: false,
1273
+ apiEnabled: false,
1274
+ apiMethods: [],
1275
+ trash: false,
1276
+ mru: false
1277
+ }
1278
+ });
1279
+ var SysOauthConsent = data.ObjectSchema.create({
1280
+ name: "sys_oauth_consent",
1281
+ label: "OAuth Consent",
1282
+ pluralLabel: "OAuth Consents",
1283
+ icon: "shield-check",
1284
+ isSystem: true,
1285
+ description: "User consent records for OAuth client applications",
1286
+ compactLayout: ["client_id", "user_id", "scopes"],
1287
+ fields: {
1288
+ id: data.Field.text({
1289
+ label: "ID",
1290
+ required: true,
1291
+ readonly: true
1292
+ }),
1293
+ client_id: data.Field.text({
1294
+ label: "Client ID",
1295
+ required: true,
1296
+ description: "Foreign key to sys_oauth_application.client_id"
1297
+ }),
1298
+ user_id: data.Field.lookup("sys_user", {
1299
+ label: "User",
1300
+ required: false,
1301
+ description: "Foreign key to sys_user.id"
1302
+ }),
1303
+ reference_id: data.Field.text({
1304
+ label: "Reference ID",
1305
+ required: false,
1306
+ maxLength: 255,
1307
+ description: "Caller-supplied correlation identifier"
1308
+ }),
1309
+ scopes: data.Field.textarea({
1310
+ label: "Scopes",
1311
+ required: true,
1312
+ description: "JSON-serialized list of scopes the user consented to"
1313
+ }),
1314
+ created_at: data.Field.datetime({
1315
+ label: "Created At",
1316
+ defaultValue: "NOW()",
1317
+ readonly: true
1318
+ }),
1319
+ updated_at: data.Field.datetime({
1320
+ label: "Updated At",
1321
+ defaultValue: "NOW()",
1322
+ readonly: true
1323
+ })
1324
+ },
1325
+ indexes: [
1326
+ { fields: ["client_id"] },
1327
+ { fields: ["user_id"] }
1328
+ ],
1329
+ enable: {
1330
+ trackHistory: false,
1331
+ searchable: false,
1332
+ apiEnabled: false,
1333
+ apiMethods: [],
1334
+ trash: false,
1335
+ mru: false
1336
+ }
1337
+ });
1338
+ var SysJwks = data.ObjectSchema.create({
1339
+ name: "sys_jwks",
1340
+ label: "JWKS Key",
1341
+ pluralLabel: "JWKS Keys",
1342
+ icon: "key",
1343
+ isSystem: true,
1344
+ description: "Asymmetric key pairs used to sign and verify issued JWTs",
1345
+ compactLayout: ["id", "created_at", "expires_at"],
1346
+ fields: {
1347
+ id: data.Field.text({
1348
+ label: "Key ID",
1349
+ required: true,
1350
+ readonly: true,
1351
+ description: "JWK `kid` value"
1352
+ }),
1353
+ public_key: data.Field.textarea({
1354
+ label: "Public Key",
1355
+ required: true,
1356
+ description: "JSON-serialized JWK public key"
1357
+ }),
1358
+ private_key: data.Field.textarea({
1359
+ label: "Private Key",
1360
+ required: true,
1361
+ description: "JSON-serialized JWK private key (encrypted at rest)"
1362
+ }),
1363
+ created_at: data.Field.datetime({
1364
+ label: "Created At",
1365
+ required: true,
1366
+ defaultValue: "NOW()",
1367
+ readonly: true
1368
+ }),
1369
+ expires_at: data.Field.datetime({
1370
+ label: "Expires At",
1371
+ required: false,
1372
+ description: "When the key may no longer be used to verify tokens"
1373
+ })
1374
+ },
1375
+ enable: {
1376
+ trackHistory: false,
1377
+ searchable: false,
1378
+ apiEnabled: false,
1379
+ apiMethods: [],
1380
+ trash: false,
1381
+ mru: false
1382
+ }
1383
+ });
1384
+
1385
+ exports.SysAccount = SysAccount;
1386
+ exports.SysApiKey = SysApiKey;
1387
+ exports.SysDeviceCode = SysDeviceCode;
1388
+ exports.SysInvitation = SysInvitation;
1389
+ exports.SysJwks = SysJwks;
1390
+ exports.SysMember = SysMember;
1391
+ exports.SysOauthAccessToken = SysOauthAccessToken;
1392
+ exports.SysOauthApplication = SysOauthApplication;
1393
+ exports.SysOauthConsent = SysOauthConsent;
1394
+ exports.SysOauthRefreshToken = SysOauthRefreshToken;
1395
+ exports.SysOrganization = SysOrganization;
1396
+ exports.SysSession = SysSession;
1397
+ exports.SysTeam = SysTeam;
1398
+ exports.SysTeamMember = SysTeamMember;
1399
+ exports.SysTwoFactor = SysTwoFactor;
1400
+ exports.SysUser = SysUser;
1401
+ exports.SysUserPreference = SysUserPreference;
1402
+ exports.SysVerification = SysVerification;
1403
+ //# sourceMappingURL=index.js.map
1404
+ //# sourceMappingURL=index.js.map