@objectstack/platform-objects 13.0.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.
Files changed (41) hide show
  1. package/dist/apps/index.d.mts +1 -1
  2. package/dist/apps/index.d.ts +1 -1
  3. package/dist/apps/index.js +525 -1200
  4. package/dist/apps/index.js.map +1 -1
  5. package/dist/apps/index.mjs +525 -1200
  6. package/dist/apps/index.mjs.map +1 -1
  7. package/dist/audit/index.d.mts +262 -10
  8. package/dist/audit/index.d.ts +262 -10
  9. package/dist/audit/index.js +14 -0
  10. package/dist/audit/index.js.map +1 -1
  11. package/dist/audit/index.mjs +14 -0
  12. package/dist/audit/index.mjs.map +1 -1
  13. package/dist/identity/index.d.mts +1403 -236
  14. package/dist/identity/index.d.ts +1403 -236
  15. package/dist/identity/index.js +177 -17
  16. package/dist/identity/index.js.map +1 -1
  17. package/dist/identity/index.mjs +177 -17
  18. package/dist/identity/index.mjs.map +1 -1
  19. package/dist/index.d.mts +1 -1
  20. package/dist/index.d.ts +1 -1
  21. package/dist/index.js +1878 -1736
  22. package/dist/index.js.map +1 -1
  23. package/dist/index.mjs +1878 -1737
  24. package/dist/index.mjs.map +1 -1
  25. package/dist/metadata-translations/index.js +1020 -488
  26. package/dist/metadata-translations/index.js.map +1 -1
  27. package/dist/metadata-translations/index.mjs +1020 -488
  28. package/dist/metadata-translations/index.mjs.map +1 -1
  29. package/dist/pages/index.d.mts +34 -3
  30. package/dist/pages/index.d.ts +34 -3
  31. package/dist/pages/index.js +111 -0
  32. package/dist/pages/index.js.map +1 -1
  33. package/dist/pages/index.mjs +111 -1
  34. package/dist/pages/index.mjs.map +1 -1
  35. package/dist/plugin.js +1564 -1707
  36. package/dist/plugin.js.map +1 -1
  37. package/dist/plugin.mjs +1564 -1707
  38. package/dist/plugin.mjs.map +1 -1
  39. package/dist/system/index.d.mts +75 -3
  40. package/dist/system/index.d.ts +75 -3
  41. package/package.json +3 -3
@@ -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,35 +878,112 @@ 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";
858
885
  readonly successMessage: "Account unlocked";
859
886
  readonly refreshAfter: true;
887
+ }, {
888
+ readonly name: "create_user";
889
+ readonly label: "Create User";
890
+ readonly icon: "user-plus";
891
+ readonly variant: "secondary";
892
+ readonly locations: ["list_toolbar"];
893
+ readonly type: "api";
894
+ readonly target: "/api/v1/auth/admin/create-user";
895
+ readonly visible: "features.admin == true";
896
+ readonly successMessage: "User created";
897
+ readonly refreshAfter: true;
898
+ readonly params: [{
899
+ readonly field: "email";
900
+ readonly required: false;
901
+ }, {
902
+ readonly name: "phoneNumber";
903
+ readonly label: "Phone Number";
904
+ readonly type: "text";
905
+ readonly required: false;
906
+ readonly helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given.";
907
+ }, {
908
+ readonly field: "name";
909
+ readonly required: false;
910
+ }, {
911
+ readonly name: "generatePassword";
912
+ readonly label: "Generate Temporary Password";
913
+ readonly type: "boolean";
914
+ readonly required: false;
915
+ readonly defaultValue: true;
916
+ }, {
917
+ readonly name: "password";
918
+ readonly label: "Password (leave empty to generate)";
919
+ readonly type: "text";
920
+ readonly required: false;
921
+ }, {
922
+ readonly name: "mustChangePassword";
923
+ readonly label: "Require Password Change On First Login";
924
+ readonly type: "boolean";
925
+ readonly required: false;
926
+ readonly defaultValue: true;
927
+ }];
928
+ readonly resultDialog: {
929
+ readonly title: "User Created";
930
+ readonly description: "Copy the temporary password now — it is shown only once and never stored.";
931
+ readonly acknowledge: "I have saved this password";
932
+ readonly fields: [{
933
+ readonly path: "user.email";
934
+ readonly label: "Email";
935
+ readonly format: "text";
936
+ }, {
937
+ readonly path: "temporaryPassword";
938
+ readonly label: "Temporary Password";
939
+ readonly format: "secret";
940
+ }];
941
+ };
860
942
  }, {
861
943
  readonly name: "set_user_password";
862
944
  readonly label: "Set Password";
863
945
  readonly icon: "key-round";
864
946
  readonly variant: "secondary";
865
- readonly locations: ["list_item"];
947
+ readonly locations: ["list_item", "record_header"];
866
948
  readonly type: "api";
867
949
  readonly target: "/api/v1/auth/admin/set-user-password";
868
950
  readonly recordIdParam: "userId";
869
951
  readonly successMessage: "Password updated";
870
952
  readonly refreshAfter: false;
871
953
  readonly params: [{
954
+ readonly name: "generatePassword";
955
+ readonly label: "Generate Temporary Password";
956
+ readonly type: "boolean";
957
+ readonly required: false;
958
+ readonly defaultValue: false;
959
+ }, {
872
960
  readonly name: "newPassword";
873
- readonly label: "New Password";
961
+ readonly label: "New Password (leave empty to generate)";
874
962
  readonly type: "text";
875
- readonly required: true;
963
+ readonly required: false;
964
+ }, {
965
+ readonly name: "mustChangePassword";
966
+ readonly label: "Require Password Change On Next Login";
967
+ readonly type: "boolean";
968
+ readonly required: false;
969
+ readonly defaultValue: true;
876
970
  }];
971
+ readonly resultDialog: {
972
+ readonly title: "Password Updated";
973
+ readonly description: "If a temporary password was generated, copy it now — it is shown only once and never stored.";
974
+ readonly acknowledge: "Done";
975
+ readonly fields: [{
976
+ readonly path: "temporaryPassword";
977
+ readonly label: "Temporary Password";
978
+ readonly format: "secret";
979
+ }];
980
+ };
877
981
  }, {
878
982
  readonly name: "set_user_role";
879
983
  readonly label: "Set Platform Role";
880
984
  readonly icon: "shield-check";
881
985
  readonly variant: "secondary";
882
- readonly locations: ["list_item"];
986
+ readonly locations: ["list_item", "record_header"];
883
987
  readonly type: "api";
884
988
  readonly target: "/api/v1/auth/admin/set-role";
885
989
  readonly recordIdParam: "userId";
@@ -896,7 +1000,7 @@ declare const SysUser: Omit<{
896
1000
  readonly label: "Impersonate User";
897
1001
  readonly icon: "user-cog";
898
1002
  readonly variant: "secondary";
899
- readonly locations: ["list_item"];
1003
+ readonly locations: ["list_item", "record_header"];
900
1004
  readonly type: "api";
901
1005
  readonly target: "/api/v1/auth/admin/impersonate-user";
902
1006
  readonly recordIdParam: "userId";
@@ -3175,7 +3279,7 @@ declare const SysUser: Omit<{
3175
3279
  readonly index?: boolean | undefined;
3176
3280
  readonly type: "datetime";
3177
3281
  };
3178
- readonly mfa_required_at: {
3282
+ readonly phone_number: {
3179
3283
  readonly readonly?: boolean | undefined;
3180
3284
  readonly format?: string | undefined;
3181
3285
  readonly options?: {
@@ -3356,192 +3460,9 @@ declare const SysUser: Omit<{
3356
3460
  readonly inlineHelpText?: string | undefined;
3357
3461
  readonly autonumberFormat?: string | undefined;
3358
3462
  readonly index?: boolean | undefined;
3359
- readonly type: "datetime";
3360
- };
3361
- readonly last_login_at: {
3362
- readonly readonly?: boolean | undefined;
3363
- readonly format?: string | undefined;
3364
- readonly options?: {
3365
- label: string;
3366
- value: string;
3367
- color?: string | undefined;
3368
- default?: boolean | undefined;
3369
- visibleWhen?: {
3370
- dialect: "cel" | "js" | "cron" | "template";
3371
- source?: string | undefined;
3372
- ast?: unknown;
3373
- meta?: {
3374
- rationale?: string | undefined;
3375
- generatedBy?: string | undefined;
3376
- } | undefined;
3377
- } | undefined;
3378
- }[] | undefined;
3379
- readonly description?: string | undefined;
3380
- readonly label?: string | undefined;
3381
- readonly name?: string | undefined;
3382
- readonly precision?: number | undefined;
3383
- readonly required?: boolean | undefined;
3384
- readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
3385
- readonly multiple?: boolean | undefined;
3386
- readonly dependencies?: string[] | undefined;
3387
- readonly externalId?: boolean | undefined;
3388
- readonly defaultValue?: unknown;
3389
- readonly requiredPermissions?: string[] | undefined;
3390
- readonly group?: string | undefined;
3391
- readonly hidden?: boolean | undefined;
3392
- readonly system?: boolean | undefined;
3393
- readonly min?: number | undefined;
3394
- readonly max?: number | undefined;
3395
- readonly visibleWhen?: {
3396
- dialect: "cel" | "js" | "cron" | "template";
3397
- source?: string | undefined;
3398
- ast?: unknown;
3399
- meta?: {
3400
- rationale?: string | undefined;
3401
- generatedBy?: string | undefined;
3402
- } | undefined;
3403
- } | undefined;
3404
- readonly dimensions?: number | undefined;
3405
- readonly columnName?: string | undefined;
3406
- readonly searchable?: boolean | undefined;
3407
- readonly unique?: boolean | undefined;
3408
- readonly maxLength?: number | undefined;
3409
- readonly minLength?: number | undefined;
3410
- readonly scale?: number | undefined;
3411
- readonly reference?: string | undefined;
3412
- readonly referenceFilters?: string[] | undefined;
3413
- readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
3414
- readonly inlineEdit?: boolean | "grid" | "form" | undefined;
3415
- readonly inlineTitle?: string | undefined;
3416
- readonly inlineColumns?: any[] | undefined;
3417
- readonly inlineAmountField?: string | undefined;
3418
- readonly relatedList?: boolean | "primary" | undefined;
3419
- readonly relatedListTitle?: string | undefined;
3420
- readonly relatedListColumns?: any[] | undefined;
3421
- readonly displayField?: string | undefined;
3422
- readonly descriptionField?: string | undefined;
3423
- readonly lookupColumns?: (string | {
3424
- field: string;
3425
- label?: string | undefined;
3426
- width?: string | undefined;
3427
- type?: string | undefined;
3428
- })[] | undefined;
3429
- readonly lookupPageSize?: number | undefined;
3430
- readonly lookupFilters?: {
3431
- field: string;
3432
- operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
3433
- value: any;
3434
- }[] | undefined;
3435
- readonly dependsOn?: (string | {
3436
- field: string;
3437
- param?: string | undefined;
3438
- })[] | undefined;
3439
- readonly allowCreate?: boolean | undefined;
3440
- readonly expression?: {
3441
- dialect: "cel" | "js" | "cron" | "template";
3442
- source?: string | undefined;
3443
- ast?: unknown;
3444
- meta?: {
3445
- rationale?: string | undefined;
3446
- generatedBy?: string | undefined;
3447
- } | undefined;
3448
- } | undefined;
3449
- readonly summaryOperations?: {
3450
- object: string;
3451
- field: string;
3452
- function: "min" | "max" | "count" | "sum" | "avg";
3453
- relationshipField?: string | undefined;
3454
- } | undefined;
3455
- readonly language?: string | undefined;
3456
- readonly step?: number | undefined;
3457
- readonly currencyConfig?: {
3458
- precision: number;
3459
- currencyMode: "fixed" | "dynamic";
3460
- defaultCurrency: string;
3461
- } | undefined;
3462
- readonly vectorConfig?: {
3463
- dimensions: number;
3464
- distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
3465
- normalized: boolean;
3466
- indexed: boolean;
3467
- indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
3468
- } | undefined;
3469
- readonly fileAttachmentConfig?: {
3470
- virusScan: boolean;
3471
- virusScanOnUpload: boolean;
3472
- quarantineOnThreat: boolean;
3473
- allowMultiple: boolean;
3474
- allowReplace: boolean;
3475
- allowDelete: boolean;
3476
- requireUpload: boolean;
3477
- extractMetadata: boolean;
3478
- extractText: boolean;
3479
- versioningEnabled: boolean;
3480
- publicRead: boolean;
3481
- presignedUrlExpiry: number;
3482
- minSize?: number | undefined;
3483
- maxSize?: number | undefined;
3484
- allowedTypes?: string[] | undefined;
3485
- blockedTypes?: string[] | undefined;
3486
- allowedMimeTypes?: string[] | undefined;
3487
- blockedMimeTypes?: string[] | undefined;
3488
- virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
3489
- storageProvider?: string | undefined;
3490
- storageBucket?: string | undefined;
3491
- storagePrefix?: string | undefined;
3492
- imageValidation?: {
3493
- generateThumbnails: boolean;
3494
- preserveMetadata: boolean;
3495
- autoRotate: boolean;
3496
- minWidth?: number | undefined;
3497
- maxWidth?: number | undefined;
3498
- minHeight?: number | undefined;
3499
- maxHeight?: number | undefined;
3500
- aspectRatio?: string | undefined;
3501
- thumbnailSizes?: {
3502
- name: string;
3503
- width: number;
3504
- height: number;
3505
- crop: boolean;
3506
- }[] | undefined;
3507
- } | undefined;
3508
- maxVersions?: number | undefined;
3509
- } | undefined;
3510
- readonly trackHistory?: boolean | undefined;
3511
- readonly readonlyWhen?: {
3512
- dialect: "cel" | "js" | "cron" | "template";
3513
- source?: string | undefined;
3514
- ast?: unknown;
3515
- meta?: {
3516
- rationale?: string | undefined;
3517
- generatedBy?: string | undefined;
3518
- } | undefined;
3519
- } | undefined;
3520
- readonly requiredWhen?: {
3521
- dialect: "cel" | "js" | "cron" | "template";
3522
- source?: string | undefined;
3523
- ast?: unknown;
3524
- meta?: {
3525
- rationale?: string | undefined;
3526
- generatedBy?: string | undefined;
3527
- } | undefined;
3528
- } | undefined;
3529
- readonly conditionalRequired?: {
3530
- dialect: "cel" | "js" | "cron" | "template";
3531
- source?: string | undefined;
3532
- ast?: unknown;
3533
- meta?: {
3534
- rationale?: string | undefined;
3535
- generatedBy?: string | undefined;
3536
- } | undefined;
3537
- } | undefined;
3538
- readonly sortable?: boolean | undefined;
3539
- readonly inlineHelpText?: string | undefined;
3540
- readonly autonumberFormat?: string | undefined;
3541
- readonly index?: boolean | undefined;
3542
- readonly type: "datetime";
3463
+ readonly type: "text";
3543
3464
  };
3544
- readonly last_login_ip: {
3465
+ readonly phone_number_verified: {
3545
3466
  readonly readonly?: boolean | undefined;
3546
3467
  readonly format?: string | undefined;
3547
3468
  readonly options?: {
@@ -3722,9 +3643,9 @@ declare const SysUser: Omit<{
3722
3643
  readonly inlineHelpText?: string | undefined;
3723
3644
  readonly autonumberFormat?: string | undefined;
3724
3645
  readonly index?: boolean | undefined;
3725
- readonly type: "text";
3646
+ readonly type: "boolean";
3726
3647
  };
3727
- readonly ai_access: {
3648
+ readonly must_change_password: {
3728
3649
  readonly readonly?: boolean | undefined;
3729
3650
  readonly format?: string | undefined;
3730
3651
  readonly options?: {
@@ -3907,7 +3828,7 @@ declare const SysUser: Omit<{
3907
3828
  readonly index?: boolean | undefined;
3908
3829
  readonly type: "boolean";
3909
3830
  };
3910
- readonly image: {
3831
+ readonly mfa_required_at: {
3911
3832
  readonly readonly?: boolean | undefined;
3912
3833
  readonly format?: string | undefined;
3913
3834
  readonly options?: {
@@ -4088,9 +4009,9 @@ declare const SysUser: Omit<{
4088
4009
  readonly inlineHelpText?: string | undefined;
4089
4010
  readonly autonumberFormat?: string | undefined;
4090
4011
  readonly index?: boolean | undefined;
4091
- readonly type: "url";
4012
+ readonly type: "datetime";
4092
4013
  };
4093
- readonly manager_id: {
4014
+ readonly last_login_at: {
4094
4015
  readonly readonly?: boolean | undefined;
4095
4016
  readonly format?: string | undefined;
4096
4017
  readonly options?: {
@@ -4140,7 +4061,7 @@ declare const SysUser: Omit<{
4140
4061
  readonly maxLength?: number | undefined;
4141
4062
  readonly minLength?: number | undefined;
4142
4063
  readonly scale?: number | undefined;
4143
- reference: string;
4064
+ readonly reference?: string | undefined;
4144
4065
  readonly referenceFilters?: string[] | undefined;
4145
4066
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4146
4067
  readonly inlineEdit?: boolean | "grid" | "form" | undefined;
@@ -4271,9 +4192,9 @@ declare const SysUser: Omit<{
4271
4192
  readonly inlineHelpText?: string | undefined;
4272
4193
  readonly autonumberFormat?: string | undefined;
4273
4194
  readonly index?: boolean | undefined;
4274
- readonly type: "lookup";
4195
+ readonly type: "datetime";
4275
4196
  };
4276
- readonly primary_business_unit_id: {
4197
+ readonly last_login_ip: {
4277
4198
  readonly readonly?: boolean | undefined;
4278
4199
  readonly format?: string | undefined;
4279
4200
  readonly options?: {
@@ -4323,7 +4244,7 @@ declare const SysUser: Omit<{
4323
4244
  readonly maxLength?: number | undefined;
4324
4245
  readonly minLength?: number | undefined;
4325
4246
  readonly scale?: number | undefined;
4326
- reference: string;
4247
+ readonly reference?: string | undefined;
4327
4248
  readonly referenceFilters?: string[] | undefined;
4328
4249
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4329
4250
  readonly inlineEdit?: boolean | "grid" | "form" | undefined;
@@ -4454,12 +4375,12 @@ declare const SysUser: Omit<{
4454
4375
  readonly inlineHelpText?: string | undefined;
4455
4376
  readonly autonumberFormat?: string | undefined;
4456
4377
  readonly index?: boolean | undefined;
4457
- readonly type: "lookup";
4378
+ readonly type: "text";
4458
4379
  };
4459
- readonly source: {
4380
+ readonly ai_access: {
4460
4381
  readonly readonly?: boolean | undefined;
4461
4382
  readonly format?: string | undefined;
4462
- options: {
4383
+ readonly options?: {
4463
4384
  label: string;
4464
4385
  value: string;
4465
4386
  color?: string | undefined;
@@ -4473,7 +4394,7 @@ declare const SysUser: Omit<{
4473
4394
  generatedBy?: string | undefined;
4474
4395
  } | undefined;
4475
4396
  } | undefined;
4476
- }[];
4397
+ }[] | undefined;
4477
4398
  readonly description?: string | undefined;
4478
4399
  readonly label?: string | undefined;
4479
4400
  readonly name?: string | undefined;
@@ -4637,9 +4558,9 @@ declare const SysUser: Omit<{
4637
4558
  readonly inlineHelpText?: string | undefined;
4638
4559
  readonly autonumberFormat?: string | undefined;
4639
4560
  readonly index?: boolean | undefined;
4640
- readonly type: "select";
4561
+ readonly type: "boolean";
4641
4562
  };
4642
- readonly id: {
4563
+ readonly image: {
4643
4564
  readonly readonly?: boolean | undefined;
4644
4565
  readonly format?: string | undefined;
4645
4566
  readonly options?: {
@@ -4820,9 +4741,741 @@ declare const SysUser: Omit<{
4820
4741
  readonly inlineHelpText?: string | undefined;
4821
4742
  readonly autonumberFormat?: string | undefined;
4822
4743
  readonly index?: boolean | undefined;
4823
- readonly type: "text";
4744
+ readonly type: "url";
4824
4745
  };
4825
- readonly created_at: {
4746
+ readonly manager_id: {
4747
+ readonly readonly?: boolean | undefined;
4748
+ readonly format?: string | undefined;
4749
+ readonly options?: {
4750
+ label: string;
4751
+ value: string;
4752
+ color?: string | undefined;
4753
+ default?: boolean | undefined;
4754
+ visibleWhen?: {
4755
+ dialect: "cel" | "js" | "cron" | "template";
4756
+ source?: string | undefined;
4757
+ ast?: unknown;
4758
+ meta?: {
4759
+ rationale?: string | undefined;
4760
+ generatedBy?: string | undefined;
4761
+ } | undefined;
4762
+ } | undefined;
4763
+ }[] | undefined;
4764
+ readonly description?: string | undefined;
4765
+ readonly label?: string | undefined;
4766
+ readonly name?: string | undefined;
4767
+ readonly precision?: number | undefined;
4768
+ readonly required?: boolean | undefined;
4769
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4770
+ readonly multiple?: boolean | undefined;
4771
+ readonly dependencies?: string[] | undefined;
4772
+ readonly externalId?: boolean | undefined;
4773
+ readonly defaultValue?: unknown;
4774
+ readonly requiredPermissions?: string[] | undefined;
4775
+ readonly group?: string | undefined;
4776
+ readonly hidden?: boolean | undefined;
4777
+ readonly system?: boolean | undefined;
4778
+ readonly min?: number | undefined;
4779
+ readonly max?: number | undefined;
4780
+ readonly visibleWhen?: {
4781
+ dialect: "cel" | "js" | "cron" | "template";
4782
+ source?: string | undefined;
4783
+ ast?: unknown;
4784
+ meta?: {
4785
+ rationale?: string | undefined;
4786
+ generatedBy?: string | undefined;
4787
+ } | undefined;
4788
+ } | undefined;
4789
+ readonly dimensions?: number | undefined;
4790
+ readonly columnName?: string | undefined;
4791
+ readonly searchable?: boolean | undefined;
4792
+ readonly unique?: boolean | undefined;
4793
+ readonly maxLength?: number | undefined;
4794
+ readonly minLength?: number | undefined;
4795
+ readonly scale?: number | undefined;
4796
+ reference: string;
4797
+ readonly referenceFilters?: string[] | undefined;
4798
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4799
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4800
+ readonly inlineTitle?: string | undefined;
4801
+ readonly inlineColumns?: any[] | undefined;
4802
+ readonly inlineAmountField?: string | undefined;
4803
+ readonly relatedList?: boolean | "primary" | undefined;
4804
+ readonly relatedListTitle?: string | undefined;
4805
+ readonly relatedListColumns?: any[] | undefined;
4806
+ readonly displayField?: string | undefined;
4807
+ readonly descriptionField?: string | undefined;
4808
+ readonly lookupColumns?: (string | {
4809
+ field: string;
4810
+ label?: string | undefined;
4811
+ width?: string | undefined;
4812
+ type?: string | undefined;
4813
+ })[] | undefined;
4814
+ readonly lookupPageSize?: number | undefined;
4815
+ readonly lookupFilters?: {
4816
+ field: string;
4817
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4818
+ value: any;
4819
+ }[] | undefined;
4820
+ readonly dependsOn?: (string | {
4821
+ field: string;
4822
+ param?: string | undefined;
4823
+ })[] | undefined;
4824
+ readonly allowCreate?: boolean | undefined;
4825
+ readonly expression?: {
4826
+ dialect: "cel" | "js" | "cron" | "template";
4827
+ source?: string | undefined;
4828
+ ast?: unknown;
4829
+ meta?: {
4830
+ rationale?: string | undefined;
4831
+ generatedBy?: string | undefined;
4832
+ } | undefined;
4833
+ } | undefined;
4834
+ readonly summaryOperations?: {
4835
+ object: string;
4836
+ field: string;
4837
+ function: "min" | "max" | "count" | "sum" | "avg";
4838
+ relationshipField?: string | undefined;
4839
+ } | undefined;
4840
+ readonly language?: string | undefined;
4841
+ readonly step?: number | undefined;
4842
+ readonly currencyConfig?: {
4843
+ precision: number;
4844
+ currencyMode: "fixed" | "dynamic";
4845
+ defaultCurrency: string;
4846
+ } | undefined;
4847
+ readonly vectorConfig?: {
4848
+ dimensions: number;
4849
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4850
+ normalized: boolean;
4851
+ indexed: boolean;
4852
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4853
+ } | undefined;
4854
+ readonly fileAttachmentConfig?: {
4855
+ virusScan: boolean;
4856
+ virusScanOnUpload: boolean;
4857
+ quarantineOnThreat: boolean;
4858
+ allowMultiple: boolean;
4859
+ allowReplace: boolean;
4860
+ allowDelete: boolean;
4861
+ requireUpload: boolean;
4862
+ extractMetadata: boolean;
4863
+ extractText: boolean;
4864
+ versioningEnabled: boolean;
4865
+ publicRead: boolean;
4866
+ presignedUrlExpiry: number;
4867
+ minSize?: number | undefined;
4868
+ maxSize?: number | undefined;
4869
+ allowedTypes?: string[] | undefined;
4870
+ blockedTypes?: string[] | undefined;
4871
+ allowedMimeTypes?: string[] | undefined;
4872
+ blockedMimeTypes?: string[] | undefined;
4873
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4874
+ storageProvider?: string | undefined;
4875
+ storageBucket?: string | undefined;
4876
+ storagePrefix?: string | undefined;
4877
+ imageValidation?: {
4878
+ generateThumbnails: boolean;
4879
+ preserveMetadata: boolean;
4880
+ autoRotate: boolean;
4881
+ minWidth?: number | undefined;
4882
+ maxWidth?: number | undefined;
4883
+ minHeight?: number | undefined;
4884
+ maxHeight?: number | undefined;
4885
+ aspectRatio?: string | undefined;
4886
+ thumbnailSizes?: {
4887
+ name: string;
4888
+ width: number;
4889
+ height: number;
4890
+ crop: boolean;
4891
+ }[] | undefined;
4892
+ } | undefined;
4893
+ maxVersions?: number | undefined;
4894
+ } | undefined;
4895
+ readonly trackHistory?: boolean | undefined;
4896
+ readonly readonlyWhen?: {
4897
+ dialect: "cel" | "js" | "cron" | "template";
4898
+ source?: string | undefined;
4899
+ ast?: unknown;
4900
+ meta?: {
4901
+ rationale?: string | undefined;
4902
+ generatedBy?: string | undefined;
4903
+ } | undefined;
4904
+ } | undefined;
4905
+ readonly requiredWhen?: {
4906
+ dialect: "cel" | "js" | "cron" | "template";
4907
+ source?: string | undefined;
4908
+ ast?: unknown;
4909
+ meta?: {
4910
+ rationale?: string | undefined;
4911
+ generatedBy?: string | undefined;
4912
+ } | undefined;
4913
+ } | undefined;
4914
+ readonly conditionalRequired?: {
4915
+ dialect: "cel" | "js" | "cron" | "template";
4916
+ source?: string | undefined;
4917
+ ast?: unknown;
4918
+ meta?: {
4919
+ rationale?: string | undefined;
4920
+ generatedBy?: string | undefined;
4921
+ } | undefined;
4922
+ } | undefined;
4923
+ readonly sortable?: boolean | undefined;
4924
+ readonly inlineHelpText?: string | undefined;
4925
+ readonly autonumberFormat?: string | undefined;
4926
+ readonly index?: boolean | undefined;
4927
+ readonly type: "lookup";
4928
+ };
4929
+ readonly primary_business_unit_id: {
4930
+ readonly readonly?: boolean | undefined;
4931
+ readonly format?: string | undefined;
4932
+ readonly options?: {
4933
+ label: string;
4934
+ value: string;
4935
+ color?: string | undefined;
4936
+ default?: boolean | undefined;
4937
+ visibleWhen?: {
4938
+ dialect: "cel" | "js" | "cron" | "template";
4939
+ source?: string | undefined;
4940
+ ast?: unknown;
4941
+ meta?: {
4942
+ rationale?: string | undefined;
4943
+ generatedBy?: string | undefined;
4944
+ } | undefined;
4945
+ } | undefined;
4946
+ }[] | undefined;
4947
+ readonly description?: string | undefined;
4948
+ readonly label?: string | undefined;
4949
+ readonly name?: string | undefined;
4950
+ readonly precision?: number | undefined;
4951
+ readonly required?: boolean | undefined;
4952
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4953
+ readonly multiple?: boolean | undefined;
4954
+ readonly dependencies?: string[] | undefined;
4955
+ readonly externalId?: boolean | undefined;
4956
+ readonly defaultValue?: unknown;
4957
+ readonly requiredPermissions?: string[] | undefined;
4958
+ readonly group?: string | undefined;
4959
+ readonly hidden?: boolean | undefined;
4960
+ readonly system?: boolean | undefined;
4961
+ readonly min?: number | undefined;
4962
+ readonly max?: number | undefined;
4963
+ readonly visibleWhen?: {
4964
+ dialect: "cel" | "js" | "cron" | "template";
4965
+ source?: string | undefined;
4966
+ ast?: unknown;
4967
+ meta?: {
4968
+ rationale?: string | undefined;
4969
+ generatedBy?: string | undefined;
4970
+ } | undefined;
4971
+ } | undefined;
4972
+ readonly dimensions?: number | undefined;
4973
+ readonly columnName?: string | undefined;
4974
+ readonly searchable?: boolean | undefined;
4975
+ readonly unique?: boolean | undefined;
4976
+ readonly maxLength?: number | undefined;
4977
+ readonly minLength?: number | undefined;
4978
+ readonly scale?: number | undefined;
4979
+ reference: string;
4980
+ readonly referenceFilters?: string[] | undefined;
4981
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4982
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4983
+ readonly inlineTitle?: string | undefined;
4984
+ readonly inlineColumns?: any[] | undefined;
4985
+ readonly inlineAmountField?: string | undefined;
4986
+ readonly relatedList?: boolean | "primary" | undefined;
4987
+ readonly relatedListTitle?: string | undefined;
4988
+ readonly relatedListColumns?: any[] | undefined;
4989
+ readonly displayField?: string | undefined;
4990
+ readonly descriptionField?: string | undefined;
4991
+ readonly lookupColumns?: (string | {
4992
+ field: string;
4993
+ label?: string | undefined;
4994
+ width?: string | undefined;
4995
+ type?: string | undefined;
4996
+ })[] | undefined;
4997
+ readonly lookupPageSize?: number | undefined;
4998
+ readonly lookupFilters?: {
4999
+ field: string;
5000
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
5001
+ value: any;
5002
+ }[] | undefined;
5003
+ readonly dependsOn?: (string | {
5004
+ field: string;
5005
+ param?: string | undefined;
5006
+ })[] | undefined;
5007
+ readonly allowCreate?: boolean | undefined;
5008
+ readonly expression?: {
5009
+ dialect: "cel" | "js" | "cron" | "template";
5010
+ source?: string | undefined;
5011
+ ast?: unknown;
5012
+ meta?: {
5013
+ rationale?: string | undefined;
5014
+ generatedBy?: string | undefined;
5015
+ } | undefined;
5016
+ } | undefined;
5017
+ readonly summaryOperations?: {
5018
+ object: string;
5019
+ field: string;
5020
+ function: "min" | "max" | "count" | "sum" | "avg";
5021
+ relationshipField?: string | undefined;
5022
+ } | undefined;
5023
+ readonly language?: string | undefined;
5024
+ readonly step?: number | undefined;
5025
+ readonly currencyConfig?: {
5026
+ precision: number;
5027
+ currencyMode: "fixed" | "dynamic";
5028
+ defaultCurrency: string;
5029
+ } | undefined;
5030
+ readonly vectorConfig?: {
5031
+ dimensions: number;
5032
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5033
+ normalized: boolean;
5034
+ indexed: boolean;
5035
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5036
+ } | undefined;
5037
+ readonly fileAttachmentConfig?: {
5038
+ virusScan: boolean;
5039
+ virusScanOnUpload: boolean;
5040
+ quarantineOnThreat: boolean;
5041
+ allowMultiple: boolean;
5042
+ allowReplace: boolean;
5043
+ allowDelete: boolean;
5044
+ requireUpload: boolean;
5045
+ extractMetadata: boolean;
5046
+ extractText: boolean;
5047
+ versioningEnabled: boolean;
5048
+ publicRead: boolean;
5049
+ presignedUrlExpiry: number;
5050
+ minSize?: number | undefined;
5051
+ maxSize?: number | undefined;
5052
+ allowedTypes?: string[] | undefined;
5053
+ blockedTypes?: string[] | undefined;
5054
+ allowedMimeTypes?: string[] | undefined;
5055
+ blockedMimeTypes?: string[] | undefined;
5056
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5057
+ storageProvider?: string | undefined;
5058
+ storageBucket?: string | undefined;
5059
+ storagePrefix?: string | undefined;
5060
+ imageValidation?: {
5061
+ generateThumbnails: boolean;
5062
+ preserveMetadata: boolean;
5063
+ autoRotate: boolean;
5064
+ minWidth?: number | undefined;
5065
+ maxWidth?: number | undefined;
5066
+ minHeight?: number | undefined;
5067
+ maxHeight?: number | undefined;
5068
+ aspectRatio?: string | undefined;
5069
+ thumbnailSizes?: {
5070
+ name: string;
5071
+ width: number;
5072
+ height: number;
5073
+ crop: boolean;
5074
+ }[] | undefined;
5075
+ } | undefined;
5076
+ maxVersions?: number | undefined;
5077
+ } | undefined;
5078
+ readonly trackHistory?: boolean | undefined;
5079
+ readonly readonlyWhen?: {
5080
+ dialect: "cel" | "js" | "cron" | "template";
5081
+ source?: string | undefined;
5082
+ ast?: unknown;
5083
+ meta?: {
5084
+ rationale?: string | undefined;
5085
+ generatedBy?: string | undefined;
5086
+ } | undefined;
5087
+ } | undefined;
5088
+ readonly requiredWhen?: {
5089
+ dialect: "cel" | "js" | "cron" | "template";
5090
+ source?: string | undefined;
5091
+ ast?: unknown;
5092
+ meta?: {
5093
+ rationale?: string | undefined;
5094
+ generatedBy?: string | undefined;
5095
+ } | undefined;
5096
+ } | undefined;
5097
+ readonly conditionalRequired?: {
5098
+ dialect: "cel" | "js" | "cron" | "template";
5099
+ source?: string | undefined;
5100
+ ast?: unknown;
5101
+ meta?: {
5102
+ rationale?: string | undefined;
5103
+ generatedBy?: string | undefined;
5104
+ } | undefined;
5105
+ } | undefined;
5106
+ readonly sortable?: boolean | undefined;
5107
+ readonly inlineHelpText?: string | undefined;
5108
+ readonly autonumberFormat?: string | undefined;
5109
+ readonly index?: boolean | undefined;
5110
+ readonly type: "lookup";
5111
+ };
5112
+ readonly source: {
5113
+ readonly readonly?: boolean | undefined;
5114
+ readonly format?: string | undefined;
5115
+ options: {
5116
+ label: string;
5117
+ value: string;
5118
+ color?: string | undefined;
5119
+ default?: boolean | undefined;
5120
+ visibleWhen?: {
5121
+ dialect: "cel" | "js" | "cron" | "template";
5122
+ source?: string | undefined;
5123
+ ast?: unknown;
5124
+ meta?: {
5125
+ rationale?: string | undefined;
5126
+ generatedBy?: string | undefined;
5127
+ } | undefined;
5128
+ } | undefined;
5129
+ }[];
5130
+ readonly description?: string | undefined;
5131
+ readonly label?: string | undefined;
5132
+ readonly name?: string | undefined;
5133
+ readonly precision?: number | undefined;
5134
+ readonly required?: boolean | undefined;
5135
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
5136
+ readonly multiple?: boolean | undefined;
5137
+ readonly dependencies?: string[] | undefined;
5138
+ readonly externalId?: boolean | undefined;
5139
+ readonly defaultValue?: unknown;
5140
+ readonly requiredPermissions?: string[] | undefined;
5141
+ readonly group?: string | undefined;
5142
+ readonly hidden?: boolean | undefined;
5143
+ readonly system?: boolean | undefined;
5144
+ readonly min?: number | undefined;
5145
+ readonly max?: number | undefined;
5146
+ readonly visibleWhen?: {
5147
+ dialect: "cel" | "js" | "cron" | "template";
5148
+ source?: string | undefined;
5149
+ ast?: unknown;
5150
+ meta?: {
5151
+ rationale?: string | undefined;
5152
+ generatedBy?: string | undefined;
5153
+ } | undefined;
5154
+ } | undefined;
5155
+ readonly dimensions?: number | undefined;
5156
+ readonly columnName?: string | undefined;
5157
+ readonly searchable?: boolean | undefined;
5158
+ readonly unique?: boolean | undefined;
5159
+ readonly maxLength?: number | undefined;
5160
+ readonly minLength?: number | undefined;
5161
+ readonly scale?: number | undefined;
5162
+ readonly reference?: string | undefined;
5163
+ readonly referenceFilters?: string[] | undefined;
5164
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5165
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
5166
+ readonly inlineTitle?: string | undefined;
5167
+ readonly inlineColumns?: any[] | undefined;
5168
+ readonly inlineAmountField?: string | undefined;
5169
+ readonly relatedList?: boolean | "primary" | undefined;
5170
+ readonly relatedListTitle?: string | undefined;
5171
+ readonly relatedListColumns?: any[] | undefined;
5172
+ readonly displayField?: string | undefined;
5173
+ readonly descriptionField?: string | undefined;
5174
+ readonly lookupColumns?: (string | {
5175
+ field: string;
5176
+ label?: string | undefined;
5177
+ width?: string | undefined;
5178
+ type?: string | undefined;
5179
+ })[] | undefined;
5180
+ readonly lookupPageSize?: number | undefined;
5181
+ readonly lookupFilters?: {
5182
+ field: string;
5183
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
5184
+ value: any;
5185
+ }[] | undefined;
5186
+ readonly dependsOn?: (string | {
5187
+ field: string;
5188
+ param?: string | undefined;
5189
+ })[] | undefined;
5190
+ readonly allowCreate?: boolean | undefined;
5191
+ readonly expression?: {
5192
+ dialect: "cel" | "js" | "cron" | "template";
5193
+ source?: string | undefined;
5194
+ ast?: unknown;
5195
+ meta?: {
5196
+ rationale?: string | undefined;
5197
+ generatedBy?: string | undefined;
5198
+ } | undefined;
5199
+ } | undefined;
5200
+ readonly summaryOperations?: {
5201
+ object: string;
5202
+ field: string;
5203
+ function: "min" | "max" | "count" | "sum" | "avg";
5204
+ relationshipField?: string | undefined;
5205
+ } | undefined;
5206
+ readonly language?: string | undefined;
5207
+ readonly step?: number | undefined;
5208
+ readonly currencyConfig?: {
5209
+ precision: number;
5210
+ currencyMode: "fixed" | "dynamic";
5211
+ defaultCurrency: string;
5212
+ } | undefined;
5213
+ readonly vectorConfig?: {
5214
+ dimensions: number;
5215
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5216
+ normalized: boolean;
5217
+ indexed: boolean;
5218
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5219
+ } | undefined;
5220
+ readonly fileAttachmentConfig?: {
5221
+ virusScan: boolean;
5222
+ virusScanOnUpload: boolean;
5223
+ quarantineOnThreat: boolean;
5224
+ allowMultiple: boolean;
5225
+ allowReplace: boolean;
5226
+ allowDelete: boolean;
5227
+ requireUpload: boolean;
5228
+ extractMetadata: boolean;
5229
+ extractText: boolean;
5230
+ versioningEnabled: boolean;
5231
+ publicRead: boolean;
5232
+ presignedUrlExpiry: number;
5233
+ minSize?: number | undefined;
5234
+ maxSize?: number | undefined;
5235
+ allowedTypes?: string[] | undefined;
5236
+ blockedTypes?: string[] | undefined;
5237
+ allowedMimeTypes?: string[] | undefined;
5238
+ blockedMimeTypes?: string[] | undefined;
5239
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5240
+ storageProvider?: string | undefined;
5241
+ storageBucket?: string | undefined;
5242
+ storagePrefix?: string | undefined;
5243
+ imageValidation?: {
5244
+ generateThumbnails: boolean;
5245
+ preserveMetadata: boolean;
5246
+ autoRotate: boolean;
5247
+ minWidth?: number | undefined;
5248
+ maxWidth?: number | undefined;
5249
+ minHeight?: number | undefined;
5250
+ maxHeight?: number | undefined;
5251
+ aspectRatio?: string | undefined;
5252
+ thumbnailSizes?: {
5253
+ name: string;
5254
+ width: number;
5255
+ height: number;
5256
+ crop: boolean;
5257
+ }[] | undefined;
5258
+ } | undefined;
5259
+ maxVersions?: number | undefined;
5260
+ } | undefined;
5261
+ readonly trackHistory?: boolean | undefined;
5262
+ readonly readonlyWhen?: {
5263
+ dialect: "cel" | "js" | "cron" | "template";
5264
+ source?: string | undefined;
5265
+ ast?: unknown;
5266
+ meta?: {
5267
+ rationale?: string | undefined;
5268
+ generatedBy?: string | undefined;
5269
+ } | undefined;
5270
+ } | undefined;
5271
+ readonly requiredWhen?: {
5272
+ dialect: "cel" | "js" | "cron" | "template";
5273
+ source?: string | undefined;
5274
+ ast?: unknown;
5275
+ meta?: {
5276
+ rationale?: string | undefined;
5277
+ generatedBy?: string | undefined;
5278
+ } | undefined;
5279
+ } | undefined;
5280
+ readonly conditionalRequired?: {
5281
+ dialect: "cel" | "js" | "cron" | "template";
5282
+ source?: string | undefined;
5283
+ ast?: unknown;
5284
+ meta?: {
5285
+ rationale?: string | undefined;
5286
+ generatedBy?: string | undefined;
5287
+ } | undefined;
5288
+ } | undefined;
5289
+ readonly sortable?: boolean | undefined;
5290
+ readonly inlineHelpText?: string | undefined;
5291
+ readonly autonumberFormat?: string | undefined;
5292
+ readonly index?: boolean | undefined;
5293
+ readonly type: "select";
5294
+ };
5295
+ readonly id: {
5296
+ readonly readonly?: boolean | undefined;
5297
+ readonly format?: string | undefined;
5298
+ readonly options?: {
5299
+ label: string;
5300
+ value: string;
5301
+ color?: string | undefined;
5302
+ default?: boolean | undefined;
5303
+ visibleWhen?: {
5304
+ dialect: "cel" | "js" | "cron" | "template";
5305
+ source?: string | undefined;
5306
+ ast?: unknown;
5307
+ meta?: {
5308
+ rationale?: string | undefined;
5309
+ generatedBy?: string | undefined;
5310
+ } | undefined;
5311
+ } | undefined;
5312
+ }[] | undefined;
5313
+ readonly description?: string | undefined;
5314
+ readonly label?: string | undefined;
5315
+ readonly name?: string | undefined;
5316
+ readonly precision?: number | undefined;
5317
+ readonly required?: boolean | undefined;
5318
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
5319
+ readonly multiple?: boolean | undefined;
5320
+ readonly dependencies?: string[] | undefined;
5321
+ readonly externalId?: boolean | undefined;
5322
+ readonly defaultValue?: unknown;
5323
+ readonly requiredPermissions?: string[] | undefined;
5324
+ readonly group?: string | undefined;
5325
+ readonly hidden?: boolean | undefined;
5326
+ readonly system?: boolean | undefined;
5327
+ readonly min?: number | undefined;
5328
+ readonly max?: number | undefined;
5329
+ readonly visibleWhen?: {
5330
+ dialect: "cel" | "js" | "cron" | "template";
5331
+ source?: string | undefined;
5332
+ ast?: unknown;
5333
+ meta?: {
5334
+ rationale?: string | undefined;
5335
+ generatedBy?: string | undefined;
5336
+ } | undefined;
5337
+ } | undefined;
5338
+ readonly dimensions?: number | undefined;
5339
+ readonly columnName?: string | undefined;
5340
+ readonly searchable?: boolean | undefined;
5341
+ readonly unique?: boolean | undefined;
5342
+ readonly maxLength?: number | undefined;
5343
+ readonly minLength?: number | undefined;
5344
+ readonly scale?: number | undefined;
5345
+ readonly reference?: string | undefined;
5346
+ readonly referenceFilters?: string[] | undefined;
5347
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
5348
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
5349
+ readonly inlineTitle?: string | undefined;
5350
+ readonly inlineColumns?: any[] | undefined;
5351
+ readonly inlineAmountField?: string | undefined;
5352
+ readonly relatedList?: boolean | "primary" | undefined;
5353
+ readonly relatedListTitle?: string | undefined;
5354
+ readonly relatedListColumns?: any[] | undefined;
5355
+ readonly displayField?: string | undefined;
5356
+ readonly descriptionField?: string | undefined;
5357
+ readonly lookupColumns?: (string | {
5358
+ field: string;
5359
+ label?: string | undefined;
5360
+ width?: string | undefined;
5361
+ type?: string | undefined;
5362
+ })[] | undefined;
5363
+ readonly lookupPageSize?: number | undefined;
5364
+ readonly lookupFilters?: {
5365
+ field: string;
5366
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
5367
+ value: any;
5368
+ }[] | undefined;
5369
+ readonly dependsOn?: (string | {
5370
+ field: string;
5371
+ param?: string | undefined;
5372
+ })[] | undefined;
5373
+ readonly allowCreate?: boolean | undefined;
5374
+ readonly expression?: {
5375
+ dialect: "cel" | "js" | "cron" | "template";
5376
+ source?: string | undefined;
5377
+ ast?: unknown;
5378
+ meta?: {
5379
+ rationale?: string | undefined;
5380
+ generatedBy?: string | undefined;
5381
+ } | undefined;
5382
+ } | undefined;
5383
+ readonly summaryOperations?: {
5384
+ object: string;
5385
+ field: string;
5386
+ function: "min" | "max" | "count" | "sum" | "avg";
5387
+ relationshipField?: string | undefined;
5388
+ } | undefined;
5389
+ readonly language?: string | undefined;
5390
+ readonly step?: number | undefined;
5391
+ readonly currencyConfig?: {
5392
+ precision: number;
5393
+ currencyMode: "fixed" | "dynamic";
5394
+ defaultCurrency: string;
5395
+ } | undefined;
5396
+ readonly vectorConfig?: {
5397
+ dimensions: number;
5398
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5399
+ normalized: boolean;
5400
+ indexed: boolean;
5401
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5402
+ } | undefined;
5403
+ readonly fileAttachmentConfig?: {
5404
+ virusScan: boolean;
5405
+ virusScanOnUpload: boolean;
5406
+ quarantineOnThreat: boolean;
5407
+ allowMultiple: boolean;
5408
+ allowReplace: boolean;
5409
+ allowDelete: boolean;
5410
+ requireUpload: boolean;
5411
+ extractMetadata: boolean;
5412
+ extractText: boolean;
5413
+ versioningEnabled: boolean;
5414
+ publicRead: boolean;
5415
+ presignedUrlExpiry: number;
5416
+ minSize?: number | undefined;
5417
+ maxSize?: number | undefined;
5418
+ allowedTypes?: string[] | undefined;
5419
+ blockedTypes?: string[] | undefined;
5420
+ allowedMimeTypes?: string[] | undefined;
5421
+ blockedMimeTypes?: string[] | undefined;
5422
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5423
+ storageProvider?: string | undefined;
5424
+ storageBucket?: string | undefined;
5425
+ storagePrefix?: string | undefined;
5426
+ imageValidation?: {
5427
+ generateThumbnails: boolean;
5428
+ preserveMetadata: boolean;
5429
+ autoRotate: boolean;
5430
+ minWidth?: number | undefined;
5431
+ maxWidth?: number | undefined;
5432
+ minHeight?: number | undefined;
5433
+ maxHeight?: number | undefined;
5434
+ aspectRatio?: string | undefined;
5435
+ thumbnailSizes?: {
5436
+ name: string;
5437
+ width: number;
5438
+ height: number;
5439
+ crop: boolean;
5440
+ }[] | undefined;
5441
+ } | undefined;
5442
+ maxVersions?: number | undefined;
5443
+ } | undefined;
5444
+ readonly trackHistory?: boolean | undefined;
5445
+ readonly readonlyWhen?: {
5446
+ dialect: "cel" | "js" | "cron" | "template";
5447
+ source?: string | undefined;
5448
+ ast?: unknown;
5449
+ meta?: {
5450
+ rationale?: string | undefined;
5451
+ generatedBy?: string | undefined;
5452
+ } | undefined;
5453
+ } | undefined;
5454
+ readonly requiredWhen?: {
5455
+ dialect: "cel" | "js" | "cron" | "template";
5456
+ source?: string | undefined;
5457
+ ast?: unknown;
5458
+ meta?: {
5459
+ rationale?: string | undefined;
5460
+ generatedBy?: string | undefined;
5461
+ } | undefined;
5462
+ } | undefined;
5463
+ readonly conditionalRequired?: {
5464
+ dialect: "cel" | "js" | "cron" | "template";
5465
+ source?: string | undefined;
5466
+ ast?: unknown;
5467
+ meta?: {
5468
+ rationale?: string | undefined;
5469
+ generatedBy?: string | undefined;
5470
+ } | undefined;
5471
+ } | undefined;
5472
+ readonly sortable?: boolean | undefined;
5473
+ readonly inlineHelpText?: string | undefined;
5474
+ readonly autonumberFormat?: string | undefined;
5475
+ readonly index?: boolean | undefined;
5476
+ readonly type: "text";
5477
+ };
5478
+ readonly created_at: {
4826
5479
  readonly readonly?: boolean | undefined;
4827
5480
  readonly format?: string | undefined;
4828
5481
  readonly options?: {
@@ -5195,6 +5848,9 @@ declare const SysUser: Omit<{
5195
5848
  }, {
5196
5849
  readonly fields: ["created_at"];
5197
5850
  readonly unique: false;
5851
+ }, {
5852
+ readonly fields: ["phone_number"];
5853
+ readonly unique: true;
5198
5854
  }];
5199
5855
  readonly enable: {
5200
5856
  readonly trackHistory: true;
@@ -5531,6 +6187,30 @@ declare const SysSession: Omit<{
5531
6187
  versionField: string;
5532
6188
  retentionDays?: number | undefined;
5533
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;
5534
6214
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
5535
6215
  activityMilestones?: {
5536
6216
  field: string;
@@ -5688,7 +6368,7 @@ declare const SysSession: Omit<{
5688
6368
  timeline?: {
5689
6369
  startDateField: string;
5690
6370
  titleField: string;
5691
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
6371
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
5692
6372
  endDateField?: string | undefined;
5693
6373
  groupByField?: string | undefined;
5694
6374
  colorField?: string | undefined;
@@ -8978,6 +9658,30 @@ declare const SysAccount: Omit<{
8978
9658
  versionField: string;
8979
9659
  retentionDays?: number | undefined;
8980
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;
8981
9685
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
8982
9686
  activityMilestones?: {
8983
9687
  field: string;
@@ -9135,7 +9839,7 @@ declare const SysAccount: Omit<{
9135
9839
  timeline?: {
9136
9840
  startDateField: string;
9137
9841
  titleField: string;
9138
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
9842
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
9139
9843
  endDateField?: string | undefined;
9140
9844
  groupByField?: string | undefined;
9141
9845
  colorField?: string | undefined;
@@ -12481,6 +13185,30 @@ declare const SysVerification: Omit<{
12481
13185
  versionField: string;
12482
13186
  retentionDays?: number | undefined;
12483
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;
12484
13212
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
12485
13213
  activityMilestones?: {
12486
13214
  field: string;
@@ -12638,7 +13366,7 @@ declare const SysVerification: Omit<{
12638
13366
  timeline?: {
12639
13367
  startDateField: string;
12640
13368
  titleField: string;
12641
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
13369
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
12642
13370
  endDateField?: string | undefined;
12643
13371
  groupByField?: string | undefined;
12644
13372
  colorField?: string | undefined;
@@ -14397,6 +15125,30 @@ declare const SysOrganization: Omit<{
14397
15125
  versionField: string;
14398
15126
  retentionDays?: number | undefined;
14399
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;
14400
15152
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
14401
15153
  activityMilestones?: {
14402
15154
  field: string;
@@ -14554,7 +15306,7 @@ declare const SysOrganization: Omit<{
14554
15306
  timeline?: {
14555
15307
  startDateField: string;
14556
15308
  titleField: string;
14557
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
15309
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
14558
15310
  endDateField?: string | undefined;
14559
15311
  groupByField?: string | undefined;
14560
15312
  colorField?: string | undefined;
@@ -16801,6 +17553,30 @@ declare const SysMember: Omit<{
16801
17553
  versionField: string;
16802
17554
  retentionDays?: number | undefined;
16803
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;
16804
17580
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
16805
17581
  activityMilestones?: {
16806
17582
  field: string;
@@ -16958,7 +17734,7 @@ declare const SysMember: Omit<{
16958
17734
  timeline?: {
16959
17735
  startDateField: string;
16960
17736
  titleField: string;
16961
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
17737
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
16962
17738
  endDateField?: string | undefined;
16963
17739
  groupByField?: string | undefined;
16964
17740
  colorField?: string | undefined;
@@ -18626,6 +19402,30 @@ declare const SysInvitation: Omit<{
18626
19402
  versionField: string;
18627
19403
  retentionDays?: number | undefined;
18628
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;
18629
19429
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
18630
19430
  activityMilestones?: {
18631
19431
  field: string;
@@ -18783,7 +19583,7 @@ declare const SysInvitation: Omit<{
18783
19583
  timeline?: {
18784
19584
  startDateField: string;
18785
19585
  titleField: string;
18786
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
19586
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
18787
19587
  endDateField?: string | undefined;
18788
19588
  groupByField?: string | undefined;
18789
19589
  colorField?: string | undefined;
@@ -21251,6 +22051,30 @@ declare const SysTeam: Omit<{
21251
22051
  versionField: string;
21252
22052
  retentionDays?: number | undefined;
21253
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;
21254
22078
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
21255
22079
  activityMilestones?: {
21256
22080
  field: string;
@@ -21408,7 +22232,7 @@ declare const SysTeam: Omit<{
21408
22232
  timeline?: {
21409
22233
  startDateField: string;
21410
22234
  titleField: string;
21411
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
22235
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
21412
22236
  endDateField?: string | undefined;
21413
22237
  groupByField?: string | undefined;
21414
22238
  colorField?: string | undefined;
@@ -23078,6 +23902,30 @@ declare const SysTeamMember: Omit<{
23078
23902
  versionField: string;
23079
23903
  retentionDays?: number | undefined;
23080
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;
23081
23929
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
23082
23930
  activityMilestones?: {
23083
23931
  field: string;
@@ -23235,7 +24083,7 @@ declare const SysTeamMember: Omit<{
23235
24083
  timeline?: {
23236
24084
  startDateField: string;
23237
24085
  titleField: string;
23238
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
24086
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
23239
24087
  endDateField?: string | undefined;
23240
24088
  groupByField?: string | undefined;
23241
24089
  colorField?: string | undefined;
@@ -24676,6 +25524,30 @@ declare const SysBusinessUnit: Omit<{
24676
25524
  versionField: string;
24677
25525
  retentionDays?: number | undefined;
24678
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;
24679
25551
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
24680
25552
  activityMilestones?: {
24681
25553
  field: string;
@@ -24833,7 +25705,7 @@ declare const SysBusinessUnit: Omit<{
24833
25705
  timeline?: {
24834
25706
  startDateField: string;
24835
25707
  titleField: string;
24836
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
25708
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
24837
25709
  endDateField?: string | undefined;
24838
25710
  groupByField?: string | undefined;
24839
25711
  colorField?: string | undefined;
@@ -27981,6 +28853,30 @@ declare const SysBusinessUnitMember: Omit<{
27981
28853
  versionField: string;
27982
28854
  retentionDays?: number | undefined;
27983
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;
27984
28880
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
27985
28881
  activityMilestones?: {
27986
28882
  field: string;
@@ -28138,7 +29034,7 @@ declare const SysBusinessUnitMember: Omit<{
28138
29034
  timeline?: {
28139
29035
  startDateField: string;
28140
29036
  titleField: string;
28141
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
29037
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
28142
29038
  endDateField?: string | undefined;
28143
29039
  groupByField?: string | undefined;
28144
29040
  colorField?: string | undefined;
@@ -30439,6 +31335,30 @@ declare const SysApiKey: Omit<{
30439
31335
  versionField: string;
30440
31336
  retentionDays?: number | undefined;
30441
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;
30442
31362
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
30443
31363
  activityMilestones?: {
30444
31364
  field: string;
@@ -30596,7 +31516,7 @@ declare const SysApiKey: Omit<{
30596
31516
  timeline?: {
30597
31517
  startDateField: string;
30598
31518
  titleField: string;
30599
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
31519
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
30600
31520
  endDateField?: string | undefined;
30601
31521
  groupByField?: string | undefined;
30602
31522
  colorField?: string | undefined;
@@ -33387,6 +34307,30 @@ declare const SysTwoFactor: Omit<{
33387
34307
  versionField: string;
33388
34308
  retentionDays?: number | undefined;
33389
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;
33390
34334
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
33391
34335
  activityMilestones?: {
33392
34336
  field: string;
@@ -33544,7 +34488,7 @@ declare const SysTwoFactor: Omit<{
33544
34488
  timeline?: {
33545
34489
  startDateField: string;
33546
34490
  titleField: string;
33547
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
34491
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
33548
34492
  endDateField?: string | undefined;
33549
34493
  groupByField?: string | undefined;
33550
34494
  colorField?: string | undefined;
@@ -35600,6 +36544,30 @@ declare const SysDeviceCode: Omit<{
35600
36544
  versionField: string;
35601
36545
  retentionDays?: number | undefined;
35602
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;
35603
36571
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
35604
36572
  activityMilestones?: {
35605
36573
  field: string;
@@ -35757,7 +36725,7 @@ declare const SysDeviceCode: Omit<{
35757
36725
  timeline?: {
35758
36726
  startDateField: string;
35759
36727
  titleField: string;
35760
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
36728
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
35761
36729
  endDateField?: string | undefined;
35762
36730
  groupByField?: string | undefined;
35763
36731
  colorField?: string | undefined;
@@ -36064,6 +37032,13 @@ declare const SysDeviceCode: Omit<{
36064
37032
  readonly icon: "key-round";
36065
37033
  readonly isSystem: true;
36066
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
+ };
36067
37042
  readonly access: {
36068
37043
  readonly default: "private";
36069
37044
  };
@@ -38625,6 +39600,30 @@ declare const SysUserPreference: Omit<{
38625
39600
  versionField: string;
38626
39601
  retentionDays?: number | undefined;
38627
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;
38628
39627
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
38629
39628
  activityMilestones?: {
38630
39629
  field: string;
@@ -38782,7 +39781,7 @@ declare const SysUserPreference: Omit<{
38782
39781
  timeline?: {
38783
39782
  startDateField: string;
38784
39783
  titleField: string;
38785
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
39784
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
38786
39785
  endDateField?: string | undefined;
38787
39786
  groupByField?: string | undefined;
38788
39787
  colorField?: string | undefined;
@@ -40606,6 +41605,30 @@ declare const SysOauthApplication: Omit<{
40606
41605
  versionField: string;
40607
41606
  retentionDays?: number | undefined;
40608
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;
40609
41632
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
40610
41633
  activityMilestones?: {
40611
41634
  field: string;
@@ -40763,7 +41786,7 @@ declare const SysOauthApplication: Omit<{
40763
41786
  timeline?: {
40764
41787
  startDateField: string;
40765
41788
  titleField: string;
40766
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
41789
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
40767
41790
  endDateField?: string | undefined;
40768
41791
  groupByField?: string | undefined;
40769
41792
  colorField?: string | undefined;
@@ -47151,6 +48174,30 @@ declare const SysOauthAccessToken: Omit<{
47151
48174
  versionField: string;
47152
48175
  retentionDays?: number | undefined;
47153
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;
47154
48201
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
47155
48202
  activityMilestones?: {
47156
48203
  field: string;
@@ -47308,7 +48355,7 @@ declare const SysOauthAccessToken: Omit<{
47308
48355
  timeline?: {
47309
48356
  startDateField: string;
47310
48357
  titleField: string;
47311
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
48358
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
47312
48359
  endDateField?: string | undefined;
47313
48360
  groupByField?: string | undefined;
47314
48361
  colorField?: string | undefined;
@@ -49804,6 +50851,30 @@ declare const SysOauthRefreshToken: Omit<{
49804
50851
  versionField: string;
49805
50852
  retentionDays?: number | undefined;
49806
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;
49807
50878
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
49808
50879
  activityMilestones?: {
49809
50880
  field: string;
@@ -49961,7 +51032,7 @@ declare const SysOauthRefreshToken: Omit<{
49961
51032
  timeline?: {
49962
51033
  startDateField: string;
49963
51034
  titleField: string;
49964
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
51035
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
49965
51036
  endDateField?: string | undefined;
49966
51037
  groupByField?: string | undefined;
49967
51038
  colorField?: string | undefined;
@@ -52640,6 +53711,30 @@ declare const SysOauthConsent: Omit<{
52640
53711
  versionField: string;
52641
53712
  retentionDays?: number | undefined;
52642
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;
52643
53738
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
52644
53739
  activityMilestones?: {
52645
53740
  field: string;
@@ -52797,7 +53892,7 @@ declare const SysOauthConsent: Omit<{
52797
53892
  timeline?: {
52798
53893
  startDateField: string;
52799
53894
  titleField: string;
52800
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
53895
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
52801
53896
  endDateField?: string | undefined;
52802
53897
  groupByField?: string | undefined;
52803
53898
  colorField?: string | undefined;
@@ -54734,6 +55829,30 @@ declare const SysJwks: Omit<{
54734
55829
  versionField: string;
54735
55830
  retentionDays?: number | undefined;
54736
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;
54737
55856
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
54738
55857
  activityMilestones?: {
54739
55858
  field: string;
@@ -54891,7 +56010,7 @@ declare const SysJwks: Omit<{
54891
56010
  timeline?: {
54892
56011
  startDateField: string;
54893
56012
  titleField: string;
54894
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
56013
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
54895
56014
  endDateField?: string | undefined;
54896
56015
  groupByField?: string | undefined;
54897
56016
  colorField?: string | undefined;
@@ -56470,6 +57589,30 @@ declare const SysSsoProvider: Omit<{
56470
57589
  versionField: string;
56471
57590
  retentionDays?: number | undefined;
56472
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;
56473
57616
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
56474
57617
  activityMilestones?: {
56475
57618
  field: string;
@@ -56627,7 +57770,7 @@ declare const SysSsoProvider: Omit<{
56627
57770
  timeline?: {
56628
57771
  startDateField: string;
56629
57772
  titleField: string;
56630
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
57773
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
56631
57774
  endDateField?: string | undefined;
56632
57775
  groupByField?: string | undefined;
56633
57776
  colorField?: string | undefined;
@@ -57099,15 +58242,15 @@ declare const SysSsoProvider: Omit<{
57099
58242
  readonly description: "Add the DNS TXT record below at your domain’s DNS provider, then run “Verify Domain”. The token is shown once.";
57100
58243
  readonly acknowledge: "Done";
57101
58244
  readonly fields: [{
57102
- readonly path: "data.dnsRecordType";
58245
+ readonly path: "dnsRecordType";
57103
58246
  readonly label: "Record type";
57104
58247
  readonly format: "text";
57105
58248
  }, {
57106
- readonly path: "data.dnsRecordName";
58249
+ readonly path: "dnsRecordName";
57107
58250
  readonly label: "Name / Host";
57108
58251
  readonly format: "secret";
57109
58252
  }, {
57110
- readonly path: "data.dnsRecordValue";
58253
+ readonly path: "dnsRecordValue";
57111
58254
  readonly label: "Value";
57112
58255
  readonly format: "secret";
57113
58256
  }];
@@ -59543,6 +60686,30 @@ declare const SysScimProvider: Omit<{
59543
60686
  versionField: string;
59544
60687
  retentionDays?: number | undefined;
59545
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;
59546
60713
  validations?: _objectstack_spec_data.BaseValidationRuleShape[] | undefined;
59547
60714
  activityMilestones?: {
59548
60715
  field: string;
@@ -59700,7 +60867,7 @@ declare const SysScimProvider: Omit<{
59700
60867
  timeline?: {
59701
60868
  startDateField: string;
59702
60869
  titleField: string;
59703
- scale: "hour" | "day" | "week" | "month" | "quarter" | "year";
60870
+ scale: "day" | "week" | "month" | "hour" | "quarter" | "year";
59704
60871
  endDateField?: string | undefined;
59705
60872
  groupByField?: string | undefined;
59706
60873
  colorField?: string | undefined;