@objectstack/platform-objects 14.3.0 → 14.5.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.
@@ -324,6 +324,30 @@ declare const SysUser: Omit<{
324
324
  versionField: string;
325
325
  retentionDays?: number | undefined;
326
326
  } | undefined;
327
+ lifecycle?: {
328
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
329
+ retention?: {
330
+ maxAge: string;
331
+ onlyWhen?: Record<string, string | number | boolean | {
332
+ $in: (string | number)[];
333
+ }> | undefined;
334
+ } | undefined;
335
+ ttl?: {
336
+ field: string;
337
+ expireAfter: string;
338
+ } | undefined;
339
+ storage?: {
340
+ strategy: "rotation";
341
+ shards: number;
342
+ unit: "day" | "week" | "month";
343
+ } | undefined;
344
+ archive?: {
345
+ after: string;
346
+ to: string;
347
+ keep?: string | undefined;
348
+ } | undefined;
349
+ reclaim?: boolean | undefined;
350
+ } | undefined;
327
351
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
328
352
  activityMilestones?: {
329
353
  field: string;
@@ -481,7 +505,7 @@ declare const SysUser: Omit<{
481
505
  timeline?: {
482
506
  startDateField: string;
483
507
  titleField: string;
484
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
508
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
485
509
  endDateField?: string | undefined;
486
510
  groupByField?: string | undefined;
487
511
  colorField?: string | undefined;
@@ -788,6 +812,9 @@ declare const SysUser: Omit<{
788
812
  readonly icon: "user";
789
813
  readonly isSystem: true;
790
814
  readonly managedBy: "better-auth";
815
+ readonly userActions: {
816
+ readonly edit: true;
817
+ };
791
818
  readonly protection: {
792
819
  readonly lock: "full";
793
820
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -822,7 +849,7 @@ declare const SysUser: Omit<{
822
849
  readonly label: "Ban User";
823
850
  readonly icon: "ban";
824
851
  readonly variant: "danger";
825
- readonly locations: ["list_item"];
852
+ readonly locations: ["list_item", "record_header"];
826
853
  readonly type: "api";
827
854
  readonly target: "/api/v1/auth/admin/ban-user";
828
855
  readonly recordIdParam: "userId";
@@ -840,7 +867,7 @@ declare const SysUser: Omit<{
840
867
  readonly label: "Unban User";
841
868
  readonly icon: "check-circle-2";
842
869
  readonly variant: "secondary";
843
- readonly locations: ["list_item"];
870
+ readonly locations: ["list_item", "record_header"];
844
871
  readonly type: "api";
845
872
  readonly target: "/api/v1/auth/admin/unban-user";
846
873
  readonly recordIdParam: "userId";
@@ -851,7 +878,7 @@ declare const SysUser: Omit<{
851
878
  readonly label: "Unlock Account";
852
879
  readonly icon: "lock-open";
853
880
  readonly variant: "secondary";
854
- readonly locations: ["list_item"];
881
+ readonly locations: ["list_item", "record_header"];
855
882
  readonly type: "api";
856
883
  readonly target: "/api/v1/auth/admin/unlock-user";
857
884
  readonly recordIdParam: "userId";
@@ -917,7 +944,7 @@ declare const SysUser: Omit<{
917
944
  readonly label: "Set Password";
918
945
  readonly icon: "key-round";
919
946
  readonly variant: "secondary";
920
- readonly locations: ["list_item"];
947
+ readonly locations: ["list_item", "record_header"];
921
948
  readonly type: "api";
922
949
  readonly target: "/api/v1/auth/admin/set-user-password";
923
950
  readonly recordIdParam: "userId";
@@ -956,7 +983,7 @@ declare const SysUser: Omit<{
956
983
  readonly label: "Set Platform Role";
957
984
  readonly icon: "shield-check";
958
985
  readonly variant: "secondary";
959
- readonly locations: ["list_item"];
986
+ readonly locations: ["list_item", "record_header"];
960
987
  readonly type: "api";
961
988
  readonly target: "/api/v1/auth/admin/set-role";
962
989
  readonly recordIdParam: "userId";
@@ -973,7 +1000,7 @@ declare const SysUser: Omit<{
973
1000
  readonly label: "Impersonate User";
974
1001
  readonly icon: "user-cog";
975
1002
  readonly variant: "secondary";
976
- readonly locations: ["list_item"];
1003
+ readonly locations: ["list_item", "record_header"];
977
1004
  readonly type: "api";
978
1005
  readonly target: "/api/v1/auth/admin/impersonate-user";
979
1006
  readonly recordIdParam: "userId";
@@ -6160,6 +6187,30 @@ declare const SysSession: Omit<{
6160
6187
  versionField: string;
6161
6188
  retentionDays?: number | undefined;
6162
6189
  } | undefined;
6190
+ lifecycle?: {
6191
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
6192
+ retention?: {
6193
+ maxAge: string;
6194
+ onlyWhen?: Record<string, string | number | boolean | {
6195
+ $in: (string | number)[];
6196
+ }> | undefined;
6197
+ } | undefined;
6198
+ ttl?: {
6199
+ field: string;
6200
+ expireAfter: string;
6201
+ } | undefined;
6202
+ storage?: {
6203
+ strategy: "rotation";
6204
+ shards: number;
6205
+ unit: "day" | "week" | "month";
6206
+ } | undefined;
6207
+ archive?: {
6208
+ after: string;
6209
+ to: string;
6210
+ keep?: string | undefined;
6211
+ } | undefined;
6212
+ reclaim?: boolean | undefined;
6213
+ } | undefined;
6163
6214
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
6164
6215
  activityMilestones?: {
6165
6216
  field: string;
@@ -6317,7 +6368,7 @@ declare const SysSession: Omit<{
6317
6368
  timeline?: {
6318
6369
  startDateField: string;
6319
6370
  titleField: string;
6320
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
6371
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
6321
6372
  endDateField?: string | undefined;
6322
6373
  groupByField?: string | undefined;
6323
6374
  colorField?: string | undefined;
@@ -9607,6 +9658,30 @@ declare const SysAccount: Omit<{
9607
9658
  versionField: string;
9608
9659
  retentionDays?: number | undefined;
9609
9660
  } | undefined;
9661
+ lifecycle?: {
9662
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
9663
+ retention?: {
9664
+ maxAge: string;
9665
+ onlyWhen?: Record<string, string | number | boolean | {
9666
+ $in: (string | number)[];
9667
+ }> | undefined;
9668
+ } | undefined;
9669
+ ttl?: {
9670
+ field: string;
9671
+ expireAfter: string;
9672
+ } | undefined;
9673
+ storage?: {
9674
+ strategy: "rotation";
9675
+ shards: number;
9676
+ unit: "day" | "week" | "month";
9677
+ } | undefined;
9678
+ archive?: {
9679
+ after: string;
9680
+ to: string;
9681
+ keep?: string | undefined;
9682
+ } | undefined;
9683
+ reclaim?: boolean | undefined;
9684
+ } | undefined;
9610
9685
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
9611
9686
  activityMilestones?: {
9612
9687
  field: string;
@@ -9764,7 +9839,7 @@ declare const SysAccount: Omit<{
9764
9839
  timeline?: {
9765
9840
  startDateField: string;
9766
9841
  titleField: string;
9767
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
9842
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
9768
9843
  endDateField?: string | undefined;
9769
9844
  groupByField?: string | undefined;
9770
9845
  colorField?: string | undefined;
@@ -13110,6 +13185,30 @@ declare const SysVerification: Omit<{
13110
13185
  versionField: string;
13111
13186
  retentionDays?: number | undefined;
13112
13187
  } | undefined;
13188
+ lifecycle?: {
13189
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
13190
+ retention?: {
13191
+ maxAge: string;
13192
+ onlyWhen?: Record<string, string | number | boolean | {
13193
+ $in: (string | number)[];
13194
+ }> | undefined;
13195
+ } | undefined;
13196
+ ttl?: {
13197
+ field: string;
13198
+ expireAfter: string;
13199
+ } | undefined;
13200
+ storage?: {
13201
+ strategy: "rotation";
13202
+ shards: number;
13203
+ unit: "day" | "week" | "month";
13204
+ } | undefined;
13205
+ archive?: {
13206
+ after: string;
13207
+ to: string;
13208
+ keep?: string | undefined;
13209
+ } | undefined;
13210
+ reclaim?: boolean | undefined;
13211
+ } | undefined;
13113
13212
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
13114
13213
  activityMilestones?: {
13115
13214
  field: string;
@@ -13267,7 +13366,7 @@ declare const SysVerification: Omit<{
13267
13366
  timeline?: {
13268
13367
  startDateField: string;
13269
13368
  titleField: string;
13270
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
13369
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
13271
13370
  endDateField?: string | undefined;
13272
13371
  groupByField?: string | undefined;
13273
13372
  colorField?: string | undefined;
@@ -15026,6 +15125,30 @@ declare const SysOrganization: Omit<{
15026
15125
  versionField: string;
15027
15126
  retentionDays?: number | undefined;
15028
15127
  } | undefined;
15128
+ lifecycle?: {
15129
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
15130
+ retention?: {
15131
+ maxAge: string;
15132
+ onlyWhen?: Record<string, string | number | boolean | {
15133
+ $in: (string | number)[];
15134
+ }> | undefined;
15135
+ } | undefined;
15136
+ ttl?: {
15137
+ field: string;
15138
+ expireAfter: string;
15139
+ } | undefined;
15140
+ storage?: {
15141
+ strategy: "rotation";
15142
+ shards: number;
15143
+ unit: "day" | "week" | "month";
15144
+ } | undefined;
15145
+ archive?: {
15146
+ after: string;
15147
+ to: string;
15148
+ keep?: string | undefined;
15149
+ } | undefined;
15150
+ reclaim?: boolean | undefined;
15151
+ } | undefined;
15029
15152
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
15030
15153
  activityMilestones?: {
15031
15154
  field: string;
@@ -15183,7 +15306,7 @@ declare const SysOrganization: Omit<{
15183
15306
  timeline?: {
15184
15307
  startDateField: string;
15185
15308
  titleField: string;
15186
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
15309
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
15187
15310
  endDateField?: string | undefined;
15188
15311
  groupByField?: string | undefined;
15189
15312
  colorField?: string | undefined;
@@ -17430,6 +17553,30 @@ declare const SysMember: Omit<{
17430
17553
  versionField: string;
17431
17554
  retentionDays?: number | undefined;
17432
17555
  } | undefined;
17556
+ lifecycle?: {
17557
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
17558
+ retention?: {
17559
+ maxAge: string;
17560
+ onlyWhen?: Record<string, string | number | boolean | {
17561
+ $in: (string | number)[];
17562
+ }> | undefined;
17563
+ } | undefined;
17564
+ ttl?: {
17565
+ field: string;
17566
+ expireAfter: string;
17567
+ } | undefined;
17568
+ storage?: {
17569
+ strategy: "rotation";
17570
+ shards: number;
17571
+ unit: "day" | "week" | "month";
17572
+ } | undefined;
17573
+ archive?: {
17574
+ after: string;
17575
+ to: string;
17576
+ keep?: string | undefined;
17577
+ } | undefined;
17578
+ reclaim?: boolean | undefined;
17579
+ } | undefined;
17433
17580
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
17434
17581
  activityMilestones?: {
17435
17582
  field: string;
@@ -17587,7 +17734,7 @@ declare const SysMember: Omit<{
17587
17734
  timeline?: {
17588
17735
  startDateField: string;
17589
17736
  titleField: string;
17590
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
17737
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
17591
17738
  endDateField?: string | undefined;
17592
17739
  groupByField?: string | undefined;
17593
17740
  colorField?: string | undefined;
@@ -19255,6 +19402,30 @@ declare const SysInvitation: Omit<{
19255
19402
  versionField: string;
19256
19403
  retentionDays?: number | undefined;
19257
19404
  } | undefined;
19405
+ lifecycle?: {
19406
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
19407
+ retention?: {
19408
+ maxAge: string;
19409
+ onlyWhen?: Record<string, string | number | boolean | {
19410
+ $in: (string | number)[];
19411
+ }> | undefined;
19412
+ } | undefined;
19413
+ ttl?: {
19414
+ field: string;
19415
+ expireAfter: string;
19416
+ } | undefined;
19417
+ storage?: {
19418
+ strategy: "rotation";
19419
+ shards: number;
19420
+ unit: "day" | "week" | "month";
19421
+ } | undefined;
19422
+ archive?: {
19423
+ after: string;
19424
+ to: string;
19425
+ keep?: string | undefined;
19426
+ } | undefined;
19427
+ reclaim?: boolean | undefined;
19428
+ } | undefined;
19258
19429
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
19259
19430
  activityMilestones?: {
19260
19431
  field: string;
@@ -19412,7 +19583,7 @@ declare const SysInvitation: Omit<{
19412
19583
  timeline?: {
19413
19584
  startDateField: string;
19414
19585
  titleField: string;
19415
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
19586
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
19416
19587
  endDateField?: string | undefined;
19417
19588
  groupByField?: string | undefined;
19418
19589
  colorField?: string | undefined;
@@ -21880,6 +22051,30 @@ declare const SysTeam: Omit<{
21880
22051
  versionField: string;
21881
22052
  retentionDays?: number | undefined;
21882
22053
  } | undefined;
22054
+ lifecycle?: {
22055
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
22056
+ retention?: {
22057
+ maxAge: string;
22058
+ onlyWhen?: Record<string, string | number | boolean | {
22059
+ $in: (string | number)[];
22060
+ }> | undefined;
22061
+ } | undefined;
22062
+ ttl?: {
22063
+ field: string;
22064
+ expireAfter: string;
22065
+ } | undefined;
22066
+ storage?: {
22067
+ strategy: "rotation";
22068
+ shards: number;
22069
+ unit: "day" | "week" | "month";
22070
+ } | undefined;
22071
+ archive?: {
22072
+ after: string;
22073
+ to: string;
22074
+ keep?: string | undefined;
22075
+ } | undefined;
22076
+ reclaim?: boolean | undefined;
22077
+ } | undefined;
21883
22078
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
21884
22079
  activityMilestones?: {
21885
22080
  field: string;
@@ -22037,7 +22232,7 @@ declare const SysTeam: Omit<{
22037
22232
  timeline?: {
22038
22233
  startDateField: string;
22039
22234
  titleField: string;
22040
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
22235
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
22041
22236
  endDateField?: string | undefined;
22042
22237
  groupByField?: string | undefined;
22043
22238
  colorField?: string | undefined;
@@ -23707,6 +23902,30 @@ declare const SysTeamMember: Omit<{
23707
23902
  versionField: string;
23708
23903
  retentionDays?: number | undefined;
23709
23904
  } | undefined;
23905
+ lifecycle?: {
23906
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
23907
+ retention?: {
23908
+ maxAge: string;
23909
+ onlyWhen?: Record<string, string | number | boolean | {
23910
+ $in: (string | number)[];
23911
+ }> | undefined;
23912
+ } | undefined;
23913
+ ttl?: {
23914
+ field: string;
23915
+ expireAfter: string;
23916
+ } | undefined;
23917
+ storage?: {
23918
+ strategy: "rotation";
23919
+ shards: number;
23920
+ unit: "day" | "week" | "month";
23921
+ } | undefined;
23922
+ archive?: {
23923
+ after: string;
23924
+ to: string;
23925
+ keep?: string | undefined;
23926
+ } | undefined;
23927
+ reclaim?: boolean | undefined;
23928
+ } | undefined;
23710
23929
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
23711
23930
  activityMilestones?: {
23712
23931
  field: string;
@@ -23864,7 +24083,7 @@ declare const SysTeamMember: Omit<{
23864
24083
  timeline?: {
23865
24084
  startDateField: string;
23866
24085
  titleField: string;
23867
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
24086
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
23868
24087
  endDateField?: string | undefined;
23869
24088
  groupByField?: string | undefined;
23870
24089
  colorField?: string | undefined;
@@ -25305,6 +25524,30 @@ declare const SysBusinessUnit: Omit<{
25305
25524
  versionField: string;
25306
25525
  retentionDays?: number | undefined;
25307
25526
  } | undefined;
25527
+ lifecycle?: {
25528
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
25529
+ retention?: {
25530
+ maxAge: string;
25531
+ onlyWhen?: Record<string, string | number | boolean | {
25532
+ $in: (string | number)[];
25533
+ }> | undefined;
25534
+ } | undefined;
25535
+ ttl?: {
25536
+ field: string;
25537
+ expireAfter: string;
25538
+ } | undefined;
25539
+ storage?: {
25540
+ strategy: "rotation";
25541
+ shards: number;
25542
+ unit: "day" | "week" | "month";
25543
+ } | undefined;
25544
+ archive?: {
25545
+ after: string;
25546
+ to: string;
25547
+ keep?: string | undefined;
25548
+ } | undefined;
25549
+ reclaim?: boolean | undefined;
25550
+ } | undefined;
25308
25551
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
25309
25552
  activityMilestones?: {
25310
25553
  field: string;
@@ -25462,7 +25705,7 @@ declare const SysBusinessUnit: Omit<{
25462
25705
  timeline?: {
25463
25706
  startDateField: string;
25464
25707
  titleField: string;
25465
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
25708
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
25466
25709
  endDateField?: string | undefined;
25467
25710
  groupByField?: string | undefined;
25468
25711
  colorField?: string | undefined;
@@ -28610,6 +28853,30 @@ declare const SysBusinessUnitMember: Omit<{
28610
28853
  versionField: string;
28611
28854
  retentionDays?: number | undefined;
28612
28855
  } | undefined;
28856
+ lifecycle?: {
28857
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
28858
+ retention?: {
28859
+ maxAge: string;
28860
+ onlyWhen?: Record<string, string | number | boolean | {
28861
+ $in: (string | number)[];
28862
+ }> | undefined;
28863
+ } | undefined;
28864
+ ttl?: {
28865
+ field: string;
28866
+ expireAfter: string;
28867
+ } | undefined;
28868
+ storage?: {
28869
+ strategy: "rotation";
28870
+ shards: number;
28871
+ unit: "day" | "week" | "month";
28872
+ } | undefined;
28873
+ archive?: {
28874
+ after: string;
28875
+ to: string;
28876
+ keep?: string | undefined;
28877
+ } | undefined;
28878
+ reclaim?: boolean | undefined;
28879
+ } | undefined;
28613
28880
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
28614
28881
  activityMilestones?: {
28615
28882
  field: string;
@@ -28767,7 +29034,7 @@ declare const SysBusinessUnitMember: Omit<{
28767
29034
  timeline?: {
28768
29035
  startDateField: string;
28769
29036
  titleField: string;
28770
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
29037
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
28771
29038
  endDateField?: string | undefined;
28772
29039
  groupByField?: string | undefined;
28773
29040
  colorField?: string | undefined;
@@ -31068,6 +31335,30 @@ declare const SysApiKey: Omit<{
31068
31335
  versionField: string;
31069
31336
  retentionDays?: number | undefined;
31070
31337
  } | undefined;
31338
+ lifecycle?: {
31339
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
31340
+ retention?: {
31341
+ maxAge: string;
31342
+ onlyWhen?: Record<string, string | number | boolean | {
31343
+ $in: (string | number)[];
31344
+ }> | undefined;
31345
+ } | undefined;
31346
+ ttl?: {
31347
+ field: string;
31348
+ expireAfter: string;
31349
+ } | undefined;
31350
+ storage?: {
31351
+ strategy: "rotation";
31352
+ shards: number;
31353
+ unit: "day" | "week" | "month";
31354
+ } | undefined;
31355
+ archive?: {
31356
+ after: string;
31357
+ to: string;
31358
+ keep?: string | undefined;
31359
+ } | undefined;
31360
+ reclaim?: boolean | undefined;
31361
+ } | undefined;
31071
31362
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
31072
31363
  activityMilestones?: {
31073
31364
  field: string;
@@ -31225,7 +31516,7 @@ declare const SysApiKey: Omit<{
31225
31516
  timeline?: {
31226
31517
  startDateField: string;
31227
31518
  titleField: string;
31228
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
31519
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
31229
31520
  endDateField?: string | undefined;
31230
31521
  groupByField?: string | undefined;
31231
31522
  colorField?: string | undefined;
@@ -34016,6 +34307,30 @@ declare const SysTwoFactor: Omit<{
34016
34307
  versionField: string;
34017
34308
  retentionDays?: number | undefined;
34018
34309
  } | undefined;
34310
+ lifecycle?: {
34311
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
34312
+ retention?: {
34313
+ maxAge: string;
34314
+ onlyWhen?: Record<string, string | number | boolean | {
34315
+ $in: (string | number)[];
34316
+ }> | undefined;
34317
+ } | undefined;
34318
+ ttl?: {
34319
+ field: string;
34320
+ expireAfter: string;
34321
+ } | undefined;
34322
+ storage?: {
34323
+ strategy: "rotation";
34324
+ shards: number;
34325
+ unit: "day" | "week" | "month";
34326
+ } | undefined;
34327
+ archive?: {
34328
+ after: string;
34329
+ to: string;
34330
+ keep?: string | undefined;
34331
+ } | undefined;
34332
+ reclaim?: boolean | undefined;
34333
+ } | undefined;
34019
34334
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
34020
34335
  activityMilestones?: {
34021
34336
  field: string;
@@ -34173,7 +34488,7 @@ declare const SysTwoFactor: Omit<{
34173
34488
  timeline?: {
34174
34489
  startDateField: string;
34175
34490
  titleField: string;
34176
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
34491
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
34177
34492
  endDateField?: string | undefined;
34178
34493
  groupByField?: string | undefined;
34179
34494
  colorField?: string | undefined;
@@ -36229,6 +36544,30 @@ declare const SysDeviceCode: Omit<{
36229
36544
  versionField: string;
36230
36545
  retentionDays?: number | undefined;
36231
36546
  } | undefined;
36547
+ lifecycle?: {
36548
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
36549
+ retention?: {
36550
+ maxAge: string;
36551
+ onlyWhen?: Record<string, string | number | boolean | {
36552
+ $in: (string | number)[];
36553
+ }> | undefined;
36554
+ } | undefined;
36555
+ ttl?: {
36556
+ field: string;
36557
+ expireAfter: string;
36558
+ } | undefined;
36559
+ storage?: {
36560
+ strategy: "rotation";
36561
+ shards: number;
36562
+ unit: "day" | "week" | "month";
36563
+ } | undefined;
36564
+ archive?: {
36565
+ after: string;
36566
+ to: string;
36567
+ keep?: string | undefined;
36568
+ } | undefined;
36569
+ reclaim?: boolean | undefined;
36570
+ } | undefined;
36232
36571
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
36233
36572
  activityMilestones?: {
36234
36573
  field: string;
@@ -36386,7 +36725,7 @@ declare const SysDeviceCode: Omit<{
36386
36725
  timeline?: {
36387
36726
  startDateField: string;
36388
36727
  titleField: string;
36389
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
36728
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
36390
36729
  endDateField?: string | undefined;
36391
36730
  groupByField?: string | undefined;
36392
36731
  colorField?: string | undefined;
@@ -36693,6 +37032,13 @@ declare const SysDeviceCode: Omit<{
36693
37032
  readonly icon: "key-round";
36694
37033
  readonly isSystem: true;
36695
37034
  readonly managedBy: "better-auth";
37035
+ readonly lifecycle: {
37036
+ readonly class: "transient";
37037
+ readonly ttl: {
37038
+ readonly field: "expires_at";
37039
+ readonly expireAfter: "1d";
37040
+ };
37041
+ };
36696
37042
  readonly access: {
36697
37043
  readonly default: "private";
36698
37044
  };
@@ -39254,6 +39600,30 @@ declare const SysUserPreference: Omit<{
39254
39600
  versionField: string;
39255
39601
  retentionDays?: number | undefined;
39256
39602
  } | undefined;
39603
+ lifecycle?: {
39604
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
39605
+ retention?: {
39606
+ maxAge: string;
39607
+ onlyWhen?: Record<string, string | number | boolean | {
39608
+ $in: (string | number)[];
39609
+ }> | undefined;
39610
+ } | undefined;
39611
+ ttl?: {
39612
+ field: string;
39613
+ expireAfter: string;
39614
+ } | undefined;
39615
+ storage?: {
39616
+ strategy: "rotation";
39617
+ shards: number;
39618
+ unit: "day" | "week" | "month";
39619
+ } | undefined;
39620
+ archive?: {
39621
+ after: string;
39622
+ to: string;
39623
+ keep?: string | undefined;
39624
+ } | undefined;
39625
+ reclaim?: boolean | undefined;
39626
+ } | undefined;
39257
39627
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
39258
39628
  activityMilestones?: {
39259
39629
  field: string;
@@ -39411,7 +39781,7 @@ declare const SysUserPreference: Omit<{
39411
39781
  timeline?: {
39412
39782
  startDateField: string;
39413
39783
  titleField: string;
39414
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
39784
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
39415
39785
  endDateField?: string | undefined;
39416
39786
  groupByField?: string | undefined;
39417
39787
  colorField?: string | undefined;
@@ -41235,6 +41605,30 @@ declare const SysOauthApplication: Omit<{
41235
41605
  versionField: string;
41236
41606
  retentionDays?: number | undefined;
41237
41607
  } | undefined;
41608
+ lifecycle?: {
41609
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
41610
+ retention?: {
41611
+ maxAge: string;
41612
+ onlyWhen?: Record<string, string | number | boolean | {
41613
+ $in: (string | number)[];
41614
+ }> | undefined;
41615
+ } | undefined;
41616
+ ttl?: {
41617
+ field: string;
41618
+ expireAfter: string;
41619
+ } | undefined;
41620
+ storage?: {
41621
+ strategy: "rotation";
41622
+ shards: number;
41623
+ unit: "day" | "week" | "month";
41624
+ } | undefined;
41625
+ archive?: {
41626
+ after: string;
41627
+ to: string;
41628
+ keep?: string | undefined;
41629
+ } | undefined;
41630
+ reclaim?: boolean | undefined;
41631
+ } | undefined;
41238
41632
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
41239
41633
  activityMilestones?: {
41240
41634
  field: string;
@@ -41392,7 +41786,7 @@ declare const SysOauthApplication: Omit<{
41392
41786
  timeline?: {
41393
41787
  startDateField: string;
41394
41788
  titleField: string;
41395
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
41789
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
41396
41790
  endDateField?: string | undefined;
41397
41791
  groupByField?: string | undefined;
41398
41792
  colorField?: string | undefined;
@@ -47780,6 +48174,30 @@ declare const SysOauthAccessToken: Omit<{
47780
48174
  versionField: string;
47781
48175
  retentionDays?: number | undefined;
47782
48176
  } | undefined;
48177
+ lifecycle?: {
48178
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
48179
+ retention?: {
48180
+ maxAge: string;
48181
+ onlyWhen?: Record<string, string | number | boolean | {
48182
+ $in: (string | number)[];
48183
+ }> | undefined;
48184
+ } | undefined;
48185
+ ttl?: {
48186
+ field: string;
48187
+ expireAfter: string;
48188
+ } | undefined;
48189
+ storage?: {
48190
+ strategy: "rotation";
48191
+ shards: number;
48192
+ unit: "day" | "week" | "month";
48193
+ } | undefined;
48194
+ archive?: {
48195
+ after: string;
48196
+ to: string;
48197
+ keep?: string | undefined;
48198
+ } | undefined;
48199
+ reclaim?: boolean | undefined;
48200
+ } | undefined;
47783
48201
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
47784
48202
  activityMilestones?: {
47785
48203
  field: string;
@@ -47937,7 +48355,7 @@ declare const SysOauthAccessToken: Omit<{
47937
48355
  timeline?: {
47938
48356
  startDateField: string;
47939
48357
  titleField: string;
47940
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
48358
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
47941
48359
  endDateField?: string | undefined;
47942
48360
  groupByField?: string | undefined;
47943
48361
  colorField?: string | undefined;
@@ -50433,6 +50851,30 @@ declare const SysOauthRefreshToken: Omit<{
50433
50851
  versionField: string;
50434
50852
  retentionDays?: number | undefined;
50435
50853
  } | undefined;
50854
+ lifecycle?: {
50855
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
50856
+ retention?: {
50857
+ maxAge: string;
50858
+ onlyWhen?: Record<string, string | number | boolean | {
50859
+ $in: (string | number)[];
50860
+ }> | undefined;
50861
+ } | undefined;
50862
+ ttl?: {
50863
+ field: string;
50864
+ expireAfter: string;
50865
+ } | undefined;
50866
+ storage?: {
50867
+ strategy: "rotation";
50868
+ shards: number;
50869
+ unit: "day" | "week" | "month";
50870
+ } | undefined;
50871
+ archive?: {
50872
+ after: string;
50873
+ to: string;
50874
+ keep?: string | undefined;
50875
+ } | undefined;
50876
+ reclaim?: boolean | undefined;
50877
+ } | undefined;
50436
50878
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
50437
50879
  activityMilestones?: {
50438
50880
  field: string;
@@ -50590,7 +51032,7 @@ declare const SysOauthRefreshToken: Omit<{
50590
51032
  timeline?: {
50591
51033
  startDateField: string;
50592
51034
  titleField: string;
50593
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
51035
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
50594
51036
  endDateField?: string | undefined;
50595
51037
  groupByField?: string | undefined;
50596
51038
  colorField?: string | undefined;
@@ -53269,6 +53711,30 @@ declare const SysOauthConsent: Omit<{
53269
53711
  versionField: string;
53270
53712
  retentionDays?: number | undefined;
53271
53713
  } | undefined;
53714
+ lifecycle?: {
53715
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
53716
+ retention?: {
53717
+ maxAge: string;
53718
+ onlyWhen?: Record<string, string | number | boolean | {
53719
+ $in: (string | number)[];
53720
+ }> | undefined;
53721
+ } | undefined;
53722
+ ttl?: {
53723
+ field: string;
53724
+ expireAfter: string;
53725
+ } | undefined;
53726
+ storage?: {
53727
+ strategy: "rotation";
53728
+ shards: number;
53729
+ unit: "day" | "week" | "month";
53730
+ } | undefined;
53731
+ archive?: {
53732
+ after: string;
53733
+ to: string;
53734
+ keep?: string | undefined;
53735
+ } | undefined;
53736
+ reclaim?: boolean | undefined;
53737
+ } | undefined;
53272
53738
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
53273
53739
  activityMilestones?: {
53274
53740
  field: string;
@@ -53426,7 +53892,7 @@ declare const SysOauthConsent: Omit<{
53426
53892
  timeline?: {
53427
53893
  startDateField: string;
53428
53894
  titleField: string;
53429
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
53895
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
53430
53896
  endDateField?: string | undefined;
53431
53897
  groupByField?: string | undefined;
53432
53898
  colorField?: string | undefined;
@@ -55363,6 +55829,30 @@ declare const SysJwks: Omit<{
55363
55829
  versionField: string;
55364
55830
  retentionDays?: number | undefined;
55365
55831
  } | undefined;
55832
+ lifecycle?: {
55833
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
55834
+ retention?: {
55835
+ maxAge: string;
55836
+ onlyWhen?: Record<string, string | number | boolean | {
55837
+ $in: (string | number)[];
55838
+ }> | undefined;
55839
+ } | undefined;
55840
+ ttl?: {
55841
+ field: string;
55842
+ expireAfter: string;
55843
+ } | undefined;
55844
+ storage?: {
55845
+ strategy: "rotation";
55846
+ shards: number;
55847
+ unit: "day" | "week" | "month";
55848
+ } | undefined;
55849
+ archive?: {
55850
+ after: string;
55851
+ to: string;
55852
+ keep?: string | undefined;
55853
+ } | undefined;
55854
+ reclaim?: boolean | undefined;
55855
+ } | undefined;
55366
55856
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
55367
55857
  activityMilestones?: {
55368
55858
  field: string;
@@ -55520,7 +56010,7 @@ declare const SysJwks: Omit<{
55520
56010
  timeline?: {
55521
56011
  startDateField: string;
55522
56012
  titleField: string;
55523
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
56013
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
55524
56014
  endDateField?: string | undefined;
55525
56015
  groupByField?: string | undefined;
55526
56016
  colorField?: string | undefined;
@@ -57099,6 +57589,30 @@ declare const SysSsoProvider: Omit<{
57099
57589
  versionField: string;
57100
57590
  retentionDays?: number | undefined;
57101
57591
  } | undefined;
57592
+ lifecycle?: {
57593
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
57594
+ retention?: {
57595
+ maxAge: string;
57596
+ onlyWhen?: Record<string, string | number | boolean | {
57597
+ $in: (string | number)[];
57598
+ }> | undefined;
57599
+ } | undefined;
57600
+ ttl?: {
57601
+ field: string;
57602
+ expireAfter: string;
57603
+ } | undefined;
57604
+ storage?: {
57605
+ strategy: "rotation";
57606
+ shards: number;
57607
+ unit: "day" | "week" | "month";
57608
+ } | undefined;
57609
+ archive?: {
57610
+ after: string;
57611
+ to: string;
57612
+ keep?: string | undefined;
57613
+ } | undefined;
57614
+ reclaim?: boolean | undefined;
57615
+ } | undefined;
57102
57616
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
57103
57617
  activityMilestones?: {
57104
57618
  field: string;
@@ -57256,7 +57770,7 @@ declare const SysSsoProvider: Omit<{
57256
57770
  timeline?: {
57257
57771
  startDateField: string;
57258
57772
  titleField: string;
57259
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
57773
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
57260
57774
  endDateField?: string | undefined;
57261
57775
  groupByField?: string | undefined;
57262
57776
  colorField?: string | undefined;
@@ -57728,15 +58242,15 @@ declare const SysSsoProvider: Omit<{
57728
58242
  readonly description: "Add the DNS TXT record below at your domain’s DNS provider, then run “Verify Domain”. The token is shown once.";
57729
58243
  readonly acknowledge: "Done";
57730
58244
  readonly fields: [{
57731
- readonly path: "data.dnsRecordType";
58245
+ readonly path: "dnsRecordType";
57732
58246
  readonly label: "Record type";
57733
58247
  readonly format: "text";
57734
58248
  }, {
57735
- readonly path: "data.dnsRecordName";
58249
+ readonly path: "dnsRecordName";
57736
58250
  readonly label: "Name / Host";
57737
58251
  readonly format: "secret";
57738
58252
  }, {
57739
- readonly path: "data.dnsRecordValue";
58253
+ readonly path: "dnsRecordValue";
57740
58254
  readonly label: "Value";
57741
58255
  readonly format: "secret";
57742
58256
  }];
@@ -60172,6 +60686,30 @@ declare const SysScimProvider: Omit<{
60172
60686
  versionField: string;
60173
60687
  retentionDays?: number | undefined;
60174
60688
  } | undefined;
60689
+ lifecycle?: {
60690
+ class: "audit" | "record" | "telemetry" | "transient" | "event";
60691
+ retention?: {
60692
+ maxAge: string;
60693
+ onlyWhen?: Record<string, string | number | boolean | {
60694
+ $in: (string | number)[];
60695
+ }> | undefined;
60696
+ } | undefined;
60697
+ ttl?: {
60698
+ field: string;
60699
+ expireAfter: string;
60700
+ } | undefined;
60701
+ storage?: {
60702
+ strategy: "rotation";
60703
+ shards: number;
60704
+ unit: "day" | "week" | "month";
60705
+ } | undefined;
60706
+ archive?: {
60707
+ after: string;
60708
+ to: string;
60709
+ keep?: string | undefined;
60710
+ } | undefined;
60711
+ reclaim?: boolean | undefined;
60712
+ } | undefined;
60175
60713
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
60176
60714
  activityMilestones?: {
60177
60715
  field: string;
@@ -60329,7 +60867,7 @@ declare const SysScimProvider: Omit<{
60329
60867
  timeline?: {
60330
60868
  startDateField: string;
60331
60869
  titleField: string;
60332
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
60870
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
60333
60871
  endDateField?: string | undefined;
60334
60872
  groupByField?: string | undefined;
60335
60873
  colorField?: string | undefined;