@objectstack/platform-objects 12.6.0 → 14.3.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 +38 -17
  4. package/dist/apps/index.js.map +1 -1
  5. package/dist/apps/index.mjs +38 -17
  6. package/dist/apps/index.mjs.map +1 -1
  7. package/dist/audit/index.d.mts +90 -30
  8. package/dist/audit/index.d.ts +90 -30
  9. package/dist/identity/index.d.mts +1057 -280
  10. package/dist/identity/index.d.ts +1057 -280
  11. package/dist/identity/index.js +184 -29
  12. package/dist/identity/index.js.map +1 -1
  13. package/dist/identity/index.mjs +184 -29
  14. package/dist/identity/index.mjs.map +1 -1
  15. package/dist/index.d.mts +1 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +362 -335
  18. package/dist/index.js.map +1 -1
  19. package/dist/index.mjs +362 -336
  20. package/dist/index.mjs.map +1 -1
  21. package/dist/metadata-translations/index.js +20 -288
  22. package/dist/metadata-translations/index.js.map +1 -1
  23. package/dist/metadata-translations/index.mjs +20 -288
  24. package/dist/metadata-translations/index.mjs.map +1 -1
  25. package/dist/pages/index.d.mts +35 -4
  26. package/dist/pages/index.d.ts +35 -4
  27. package/dist/pages/index.js +112 -1
  28. package/dist/pages/index.js.map +1 -1
  29. package/dist/pages/index.mjs +112 -2
  30. package/dist/pages/index.mjs.map +1 -1
  31. package/dist/plugin.js +37 -300
  32. package/dist/plugin.js.map +1 -1
  33. package/dist/plugin.mjs +37 -300
  34. package/dist/plugin.mjs.map +1 -1
  35. package/dist/system/index.d.mts +30 -9
  36. package/dist/system/index.d.ts +30 -9
  37. package/dist/system/index.js +8 -0
  38. package/dist/system/index.js.map +1 -1
  39. package/dist/system/index.mjs +8 -0
  40. package/dist/system/index.mjs.map +1 -1
  41. package/package.json +3 -3
@@ -307,7 +307,12 @@ declare const SysUser: Omit<{
307
307
  access?: {
308
308
  default: "public" | "private";
309
309
  } | undefined;
310
- requiredPermissions?: string[] | undefined;
310
+ requiredPermissions?: string[] | {
311
+ read?: string[] | undefined;
312
+ create?: string[] | undefined;
313
+ update?: string[] | undefined;
314
+ delete?: string[] | undefined;
315
+ } | undefined;
311
316
  softDelete?: {
312
317
  enabled: boolean;
313
318
  field: string;
@@ -653,9 +658,10 @@ declare const SysUser: Omit<{
653
658
  trash: boolean;
654
659
  mru: boolean;
655
660
  clone: boolean;
656
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
661
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
657
662
  } | undefined;
658
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
663
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
664
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
659
665
  publicSharing?: {
660
666
  enabled: boolean;
661
667
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -800,7 +806,7 @@ declare const SysUser: Omit<{
800
806
  readonly locations: ["list_toolbar"];
801
807
  readonly type: "api";
802
808
  readonly target: "/api/v1/auth/organization/invite-member";
803
- readonly visible: "features.multiOrgEnabled != false";
809
+ readonly visible: "features.organization != false";
804
810
  readonly successMessage: "Invitation sent";
805
811
  readonly refreshAfter: true;
806
812
  readonly params: [{
@@ -851,6 +857,61 @@ declare const SysUser: Omit<{
851
857
  readonly recordIdParam: "userId";
852
858
  readonly successMessage: "Account unlocked";
853
859
  readonly refreshAfter: true;
860
+ }, {
861
+ readonly name: "create_user";
862
+ readonly label: "Create User";
863
+ readonly icon: "user-plus";
864
+ readonly variant: "secondary";
865
+ readonly locations: ["list_toolbar"];
866
+ readonly type: "api";
867
+ readonly target: "/api/v1/auth/admin/create-user";
868
+ readonly visible: "features.admin == true";
869
+ readonly successMessage: "User created";
870
+ readonly refreshAfter: true;
871
+ readonly params: [{
872
+ readonly field: "email";
873
+ readonly required: false;
874
+ }, {
875
+ readonly name: "phoneNumber";
876
+ readonly label: "Phone Number";
877
+ readonly type: "text";
878
+ readonly required: false;
879
+ readonly helpText: "Sign-in phone number (E.164, e.g. +8613800000000). Required when no email is given.";
880
+ }, {
881
+ readonly field: "name";
882
+ readonly required: false;
883
+ }, {
884
+ readonly name: "generatePassword";
885
+ readonly label: "Generate Temporary Password";
886
+ readonly type: "boolean";
887
+ readonly required: false;
888
+ readonly defaultValue: true;
889
+ }, {
890
+ readonly name: "password";
891
+ readonly label: "Password (leave empty to generate)";
892
+ readonly type: "text";
893
+ readonly required: false;
894
+ }, {
895
+ readonly name: "mustChangePassword";
896
+ readonly label: "Require Password Change On First Login";
897
+ readonly type: "boolean";
898
+ readonly required: false;
899
+ readonly defaultValue: true;
900
+ }];
901
+ readonly resultDialog: {
902
+ readonly title: "User Created";
903
+ readonly description: "Copy the temporary password now — it is shown only once and never stored.";
904
+ readonly acknowledge: "I have saved this password";
905
+ readonly fields: [{
906
+ readonly path: "user.email";
907
+ readonly label: "Email";
908
+ readonly format: "text";
909
+ }, {
910
+ readonly path: "temporaryPassword";
911
+ readonly label: "Temporary Password";
912
+ readonly format: "secret";
913
+ }];
914
+ };
854
915
  }, {
855
916
  readonly name: "set_user_password";
856
917
  readonly label: "Set Password";
@@ -863,11 +924,33 @@ declare const SysUser: Omit<{
863
924
  readonly successMessage: "Password updated";
864
925
  readonly refreshAfter: false;
865
926
  readonly params: [{
927
+ readonly name: "generatePassword";
928
+ readonly label: "Generate Temporary Password";
929
+ readonly type: "boolean";
930
+ readonly required: false;
931
+ readonly defaultValue: false;
932
+ }, {
866
933
  readonly name: "newPassword";
867
- readonly label: "New Password";
934
+ readonly label: "New Password (leave empty to generate)";
868
935
  readonly type: "text";
869
- readonly required: true;
936
+ readonly required: false;
937
+ }, {
938
+ readonly name: "mustChangePassword";
939
+ readonly label: "Require Password Change On Next Login";
940
+ readonly type: "boolean";
941
+ readonly required: false;
942
+ readonly defaultValue: true;
870
943
  }];
944
+ readonly resultDialog: {
945
+ readonly title: "Password Updated";
946
+ readonly description: "If a temporary password was generated, copy it now — it is shown only once and never stored.";
947
+ readonly acknowledge: "Done";
948
+ readonly fields: [{
949
+ readonly path: "temporaryPassword";
950
+ readonly label: "Temporary Password";
951
+ readonly format: "secret";
952
+ }];
953
+ };
871
954
  }, {
872
955
  readonly name: "set_user_role";
873
956
  readonly label: "Set Platform Role";
@@ -3169,7 +3252,7 @@ declare const SysUser: Omit<{
3169
3252
  readonly index?: boolean | undefined;
3170
3253
  readonly type: "datetime";
3171
3254
  };
3172
- readonly mfa_required_at: {
3255
+ readonly phone_number: {
3173
3256
  readonly readonly?: boolean | undefined;
3174
3257
  readonly format?: string | undefined;
3175
3258
  readonly options?: {
@@ -3350,9 +3433,9 @@ declare const SysUser: Omit<{
3350
3433
  readonly inlineHelpText?: string | undefined;
3351
3434
  readonly autonumberFormat?: string | undefined;
3352
3435
  readonly index?: boolean | undefined;
3353
- readonly type: "datetime";
3436
+ readonly type: "text";
3354
3437
  };
3355
- readonly last_login_at: {
3438
+ readonly phone_number_verified: {
3356
3439
  readonly readonly?: boolean | undefined;
3357
3440
  readonly format?: string | undefined;
3358
3441
  readonly options?: {
@@ -3533,9 +3616,9 @@ declare const SysUser: Omit<{
3533
3616
  readonly inlineHelpText?: string | undefined;
3534
3617
  readonly autonumberFormat?: string | undefined;
3535
3618
  readonly index?: boolean | undefined;
3536
- readonly type: "datetime";
3619
+ readonly type: "boolean";
3537
3620
  };
3538
- readonly last_login_ip: {
3621
+ readonly must_change_password: {
3539
3622
  readonly readonly?: boolean | undefined;
3540
3623
  readonly format?: string | undefined;
3541
3624
  readonly options?: {
@@ -3716,9 +3799,9 @@ declare const SysUser: Omit<{
3716
3799
  readonly inlineHelpText?: string | undefined;
3717
3800
  readonly autonumberFormat?: string | undefined;
3718
3801
  readonly index?: boolean | undefined;
3719
- readonly type: "text";
3802
+ readonly type: "boolean";
3720
3803
  };
3721
- readonly ai_access: {
3804
+ readonly mfa_required_at: {
3722
3805
  readonly readonly?: boolean | undefined;
3723
3806
  readonly format?: string | undefined;
3724
3807
  readonly options?: {
@@ -3899,9 +3982,9 @@ declare const SysUser: Omit<{
3899
3982
  readonly inlineHelpText?: string | undefined;
3900
3983
  readonly autonumberFormat?: string | undefined;
3901
3984
  readonly index?: boolean | undefined;
3902
- readonly type: "boolean";
3985
+ readonly type: "datetime";
3903
3986
  };
3904
- readonly image: {
3987
+ readonly last_login_at: {
3905
3988
  readonly readonly?: boolean | undefined;
3906
3989
  readonly format?: string | undefined;
3907
3990
  readonly options?: {
@@ -4082,9 +4165,9 @@ declare const SysUser: Omit<{
4082
4165
  readonly inlineHelpText?: string | undefined;
4083
4166
  readonly autonumberFormat?: string | undefined;
4084
4167
  readonly index?: boolean | undefined;
4085
- readonly type: "url";
4168
+ readonly type: "datetime";
4086
4169
  };
4087
- readonly manager_id: {
4170
+ readonly last_login_ip: {
4088
4171
  readonly readonly?: boolean | undefined;
4089
4172
  readonly format?: string | undefined;
4090
4173
  readonly options?: {
@@ -4134,7 +4217,7 @@ declare const SysUser: Omit<{
4134
4217
  readonly maxLength?: number | undefined;
4135
4218
  readonly minLength?: number | undefined;
4136
4219
  readonly scale?: number | undefined;
4137
- reference: string;
4220
+ readonly reference?: string | undefined;
4138
4221
  readonly referenceFilters?: string[] | undefined;
4139
4222
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4140
4223
  readonly inlineEdit?: boolean | "grid" | "form" | undefined;
@@ -4265,9 +4348,9 @@ declare const SysUser: Omit<{
4265
4348
  readonly inlineHelpText?: string | undefined;
4266
4349
  readonly autonumberFormat?: string | undefined;
4267
4350
  readonly index?: boolean | undefined;
4268
- readonly type: "lookup";
4351
+ readonly type: "text";
4269
4352
  };
4270
- readonly primary_business_unit_id: {
4353
+ readonly ai_access: {
4271
4354
  readonly readonly?: boolean | undefined;
4272
4355
  readonly format?: string | undefined;
4273
4356
  readonly options?: {
@@ -4317,189 +4400,738 @@ declare const SysUser: Omit<{
4317
4400
  readonly maxLength?: number | undefined;
4318
4401
  readonly minLength?: number | undefined;
4319
4402
  readonly scale?: number | undefined;
4320
- reference: string;
4321
- readonly referenceFilters?: string[] | undefined;
4322
- readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4323
- readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4324
- readonly inlineTitle?: string | undefined;
4325
- readonly inlineColumns?: any[] | undefined;
4326
- readonly inlineAmountField?: string | undefined;
4327
- readonly relatedList?: boolean | "primary" | undefined;
4328
- readonly relatedListTitle?: string | undefined;
4329
- readonly relatedListColumns?: any[] | undefined;
4330
- readonly displayField?: string | undefined;
4331
- readonly descriptionField?: string | undefined;
4332
- readonly lookupColumns?: (string | {
4333
- field: string;
4334
- label?: string | undefined;
4335
- width?: string | undefined;
4336
- type?: string | undefined;
4337
- })[] | undefined;
4338
- readonly lookupPageSize?: number | undefined;
4339
- readonly lookupFilters?: {
4340
- field: string;
4341
- operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4342
- value: any;
4343
- }[] | undefined;
4344
- readonly dependsOn?: (string | {
4345
- field: string;
4346
- param?: string | undefined;
4347
- })[] | undefined;
4348
- readonly allowCreate?: boolean | undefined;
4349
- readonly expression?: {
4350
- dialect: "cel" | "js" | "cron" | "template";
4351
- source?: string | undefined;
4352
- ast?: unknown;
4353
- meta?: {
4354
- rationale?: string | undefined;
4355
- generatedBy?: string | undefined;
4356
- } | undefined;
4357
- } | undefined;
4358
- readonly summaryOperations?: {
4359
- object: string;
4360
- field: string;
4361
- function: "min" | "max" | "count" | "sum" | "avg";
4362
- relationshipField?: string | undefined;
4363
- } | undefined;
4364
- readonly language?: string | undefined;
4365
- readonly step?: number | undefined;
4366
- readonly currencyConfig?: {
4367
- precision: number;
4368
- currencyMode: "fixed" | "dynamic";
4369
- defaultCurrency: string;
4370
- } | undefined;
4371
- readonly vectorConfig?: {
4372
- dimensions: number;
4373
- distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4374
- normalized: boolean;
4375
- indexed: boolean;
4376
- indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4377
- } | undefined;
4378
- readonly fileAttachmentConfig?: {
4379
- virusScan: boolean;
4380
- virusScanOnUpload: boolean;
4381
- quarantineOnThreat: boolean;
4382
- allowMultiple: boolean;
4383
- allowReplace: boolean;
4384
- allowDelete: boolean;
4385
- requireUpload: boolean;
4386
- extractMetadata: boolean;
4387
- extractText: boolean;
4388
- versioningEnabled: boolean;
4389
- publicRead: boolean;
4390
- presignedUrlExpiry: number;
4391
- minSize?: number | undefined;
4392
- maxSize?: number | undefined;
4393
- allowedTypes?: string[] | undefined;
4394
- blockedTypes?: string[] | undefined;
4395
- allowedMimeTypes?: string[] | undefined;
4396
- blockedMimeTypes?: string[] | undefined;
4397
- virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4398
- storageProvider?: string | undefined;
4399
- storageBucket?: string | undefined;
4400
- storagePrefix?: string | undefined;
4401
- imageValidation?: {
4402
- generateThumbnails: boolean;
4403
- preserveMetadata: boolean;
4404
- autoRotate: boolean;
4405
- minWidth?: number | undefined;
4406
- maxWidth?: number | undefined;
4407
- minHeight?: number | undefined;
4408
- maxHeight?: number | undefined;
4409
- aspectRatio?: string | undefined;
4410
- thumbnailSizes?: {
4411
- name: string;
4412
- width: number;
4413
- height: number;
4414
- crop: boolean;
4415
- }[] | undefined;
4416
- } | undefined;
4417
- maxVersions?: number | undefined;
4418
- } | undefined;
4419
- readonly trackHistory?: boolean | undefined;
4420
- readonly readonlyWhen?: {
4421
- dialect: "cel" | "js" | "cron" | "template";
4422
- source?: string | undefined;
4423
- ast?: unknown;
4424
- meta?: {
4425
- rationale?: string | undefined;
4426
- generatedBy?: string | undefined;
4427
- } | undefined;
4428
- } | undefined;
4429
- readonly requiredWhen?: {
4430
- dialect: "cel" | "js" | "cron" | "template";
4431
- source?: string | undefined;
4432
- ast?: unknown;
4433
- meta?: {
4434
- rationale?: string | undefined;
4435
- generatedBy?: string | undefined;
4436
- } | undefined;
4437
- } | undefined;
4438
- readonly conditionalRequired?: {
4439
- dialect: "cel" | "js" | "cron" | "template";
4440
- source?: string | undefined;
4441
- ast?: unknown;
4442
- meta?: {
4443
- rationale?: string | undefined;
4444
- generatedBy?: string | undefined;
4445
- } | undefined;
4446
- } | undefined;
4447
- readonly sortable?: boolean | undefined;
4448
- readonly inlineHelpText?: string | undefined;
4449
- readonly autonumberFormat?: string | undefined;
4450
- readonly index?: boolean | undefined;
4451
- readonly type: "lookup";
4452
- };
4453
- readonly source: {
4454
- readonly readonly?: boolean | undefined;
4455
- readonly format?: string | undefined;
4456
- options: {
4457
- label: string;
4458
- value: string;
4459
- color?: string | undefined;
4460
- default?: boolean | undefined;
4461
- visibleWhen?: {
4462
- dialect: "cel" | "js" | "cron" | "template";
4463
- source?: string | undefined;
4464
- ast?: unknown;
4465
- meta?: {
4466
- rationale?: string | undefined;
4467
- generatedBy?: string | undefined;
4468
- } | undefined;
4469
- } | undefined;
4470
- }[];
4471
- readonly description?: string | undefined;
4472
- readonly label?: string | undefined;
4473
- readonly name?: string | undefined;
4474
- readonly precision?: number | undefined;
4475
- readonly required?: boolean | undefined;
4476
- readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4477
- readonly multiple?: boolean | undefined;
4478
- readonly dependencies?: string[] | undefined;
4479
- readonly externalId?: boolean | undefined;
4480
- readonly defaultValue?: unknown;
4481
- readonly requiredPermissions?: string[] | undefined;
4482
- readonly group?: string | undefined;
4483
- readonly hidden?: boolean | undefined;
4484
- readonly system?: boolean | undefined;
4485
- readonly min?: number | undefined;
4486
- readonly max?: number | undefined;
4487
- readonly visibleWhen?: {
4488
- dialect: "cel" | "js" | "cron" | "template";
4489
- source?: string | undefined;
4490
- ast?: unknown;
4491
- meta?: {
4492
- rationale?: string | undefined;
4493
- generatedBy?: string | undefined;
4494
- } | undefined;
4495
- } | undefined;
4496
- readonly dimensions?: number | undefined;
4497
- readonly columnName?: string | undefined;
4498
- readonly searchable?: boolean | undefined;
4499
- readonly unique?: boolean | undefined;
4500
- readonly maxLength?: number | undefined;
4501
- readonly minLength?: number | undefined;
4502
- readonly scale?: number | undefined;
4403
+ readonly reference?: string | undefined;
4404
+ readonly referenceFilters?: string[] | undefined;
4405
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4406
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4407
+ readonly inlineTitle?: string | undefined;
4408
+ readonly inlineColumns?: any[] | undefined;
4409
+ readonly inlineAmountField?: string | undefined;
4410
+ readonly relatedList?: boolean | "primary" | undefined;
4411
+ readonly relatedListTitle?: string | undefined;
4412
+ readonly relatedListColumns?: any[] | undefined;
4413
+ readonly displayField?: string | undefined;
4414
+ readonly descriptionField?: string | undefined;
4415
+ readonly lookupColumns?: (string | {
4416
+ field: string;
4417
+ label?: string | undefined;
4418
+ width?: string | undefined;
4419
+ type?: string | undefined;
4420
+ })[] | undefined;
4421
+ readonly lookupPageSize?: number | undefined;
4422
+ readonly lookupFilters?: {
4423
+ field: string;
4424
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4425
+ value: any;
4426
+ }[] | undefined;
4427
+ readonly dependsOn?: (string | {
4428
+ field: string;
4429
+ param?: string | undefined;
4430
+ })[] | undefined;
4431
+ readonly allowCreate?: boolean | undefined;
4432
+ readonly expression?: {
4433
+ dialect: "cel" | "js" | "cron" | "template";
4434
+ source?: string | undefined;
4435
+ ast?: unknown;
4436
+ meta?: {
4437
+ rationale?: string | undefined;
4438
+ generatedBy?: string | undefined;
4439
+ } | undefined;
4440
+ } | undefined;
4441
+ readonly summaryOperations?: {
4442
+ object: string;
4443
+ field: string;
4444
+ function: "min" | "max" | "count" | "sum" | "avg";
4445
+ relationshipField?: string | undefined;
4446
+ } | undefined;
4447
+ readonly language?: string | undefined;
4448
+ readonly step?: number | undefined;
4449
+ readonly currencyConfig?: {
4450
+ precision: number;
4451
+ currencyMode: "fixed" | "dynamic";
4452
+ defaultCurrency: string;
4453
+ } | undefined;
4454
+ readonly vectorConfig?: {
4455
+ dimensions: number;
4456
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4457
+ normalized: boolean;
4458
+ indexed: boolean;
4459
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4460
+ } | undefined;
4461
+ readonly fileAttachmentConfig?: {
4462
+ virusScan: boolean;
4463
+ virusScanOnUpload: boolean;
4464
+ quarantineOnThreat: boolean;
4465
+ allowMultiple: boolean;
4466
+ allowReplace: boolean;
4467
+ allowDelete: boolean;
4468
+ requireUpload: boolean;
4469
+ extractMetadata: boolean;
4470
+ extractText: boolean;
4471
+ versioningEnabled: boolean;
4472
+ publicRead: boolean;
4473
+ presignedUrlExpiry: number;
4474
+ minSize?: number | undefined;
4475
+ maxSize?: number | undefined;
4476
+ allowedTypes?: string[] | undefined;
4477
+ blockedTypes?: string[] | undefined;
4478
+ allowedMimeTypes?: string[] | undefined;
4479
+ blockedMimeTypes?: string[] | undefined;
4480
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4481
+ storageProvider?: string | undefined;
4482
+ storageBucket?: string | undefined;
4483
+ storagePrefix?: string | undefined;
4484
+ imageValidation?: {
4485
+ generateThumbnails: boolean;
4486
+ preserveMetadata: boolean;
4487
+ autoRotate: boolean;
4488
+ minWidth?: number | undefined;
4489
+ maxWidth?: number | undefined;
4490
+ minHeight?: number | undefined;
4491
+ maxHeight?: number | undefined;
4492
+ aspectRatio?: string | undefined;
4493
+ thumbnailSizes?: {
4494
+ name: string;
4495
+ width: number;
4496
+ height: number;
4497
+ crop: boolean;
4498
+ }[] | undefined;
4499
+ } | undefined;
4500
+ maxVersions?: number | undefined;
4501
+ } | undefined;
4502
+ readonly trackHistory?: boolean | undefined;
4503
+ readonly readonlyWhen?: {
4504
+ dialect: "cel" | "js" | "cron" | "template";
4505
+ source?: string | undefined;
4506
+ ast?: unknown;
4507
+ meta?: {
4508
+ rationale?: string | undefined;
4509
+ generatedBy?: string | undefined;
4510
+ } | undefined;
4511
+ } | undefined;
4512
+ readonly requiredWhen?: {
4513
+ dialect: "cel" | "js" | "cron" | "template";
4514
+ source?: string | undefined;
4515
+ ast?: unknown;
4516
+ meta?: {
4517
+ rationale?: string | undefined;
4518
+ generatedBy?: string | undefined;
4519
+ } | undefined;
4520
+ } | undefined;
4521
+ readonly conditionalRequired?: {
4522
+ dialect: "cel" | "js" | "cron" | "template";
4523
+ source?: string | undefined;
4524
+ ast?: unknown;
4525
+ meta?: {
4526
+ rationale?: string | undefined;
4527
+ generatedBy?: string | undefined;
4528
+ } | undefined;
4529
+ } | undefined;
4530
+ readonly sortable?: boolean | undefined;
4531
+ readonly inlineHelpText?: string | undefined;
4532
+ readonly autonumberFormat?: string | undefined;
4533
+ readonly index?: boolean | undefined;
4534
+ readonly type: "boolean";
4535
+ };
4536
+ readonly image: {
4537
+ readonly readonly?: boolean | undefined;
4538
+ readonly format?: string | undefined;
4539
+ readonly options?: {
4540
+ label: string;
4541
+ value: string;
4542
+ color?: string | undefined;
4543
+ default?: boolean | undefined;
4544
+ visibleWhen?: {
4545
+ dialect: "cel" | "js" | "cron" | "template";
4546
+ source?: string | undefined;
4547
+ ast?: unknown;
4548
+ meta?: {
4549
+ rationale?: string | undefined;
4550
+ generatedBy?: string | undefined;
4551
+ } | undefined;
4552
+ } | undefined;
4553
+ }[] | undefined;
4554
+ readonly description?: string | undefined;
4555
+ readonly label?: string | undefined;
4556
+ readonly name?: string | undefined;
4557
+ readonly precision?: number | undefined;
4558
+ readonly required?: boolean | undefined;
4559
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4560
+ readonly multiple?: boolean | undefined;
4561
+ readonly dependencies?: string[] | undefined;
4562
+ readonly externalId?: boolean | undefined;
4563
+ readonly defaultValue?: unknown;
4564
+ readonly requiredPermissions?: string[] | undefined;
4565
+ readonly group?: string | undefined;
4566
+ readonly hidden?: boolean | undefined;
4567
+ readonly system?: boolean | undefined;
4568
+ readonly min?: number | undefined;
4569
+ readonly max?: number | undefined;
4570
+ readonly visibleWhen?: {
4571
+ dialect: "cel" | "js" | "cron" | "template";
4572
+ source?: string | undefined;
4573
+ ast?: unknown;
4574
+ meta?: {
4575
+ rationale?: string | undefined;
4576
+ generatedBy?: string | undefined;
4577
+ } | undefined;
4578
+ } | undefined;
4579
+ readonly dimensions?: number | undefined;
4580
+ readonly columnName?: string | undefined;
4581
+ readonly searchable?: boolean | undefined;
4582
+ readonly unique?: boolean | undefined;
4583
+ readonly maxLength?: number | undefined;
4584
+ readonly minLength?: number | undefined;
4585
+ readonly scale?: number | undefined;
4586
+ readonly reference?: string | undefined;
4587
+ readonly referenceFilters?: string[] | undefined;
4588
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4589
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4590
+ readonly inlineTitle?: string | undefined;
4591
+ readonly inlineColumns?: any[] | undefined;
4592
+ readonly inlineAmountField?: string | undefined;
4593
+ readonly relatedList?: boolean | "primary" | undefined;
4594
+ readonly relatedListTitle?: string | undefined;
4595
+ readonly relatedListColumns?: any[] | undefined;
4596
+ readonly displayField?: string | undefined;
4597
+ readonly descriptionField?: string | undefined;
4598
+ readonly lookupColumns?: (string | {
4599
+ field: string;
4600
+ label?: string | undefined;
4601
+ width?: string | undefined;
4602
+ type?: string | undefined;
4603
+ })[] | undefined;
4604
+ readonly lookupPageSize?: number | undefined;
4605
+ readonly lookupFilters?: {
4606
+ field: string;
4607
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4608
+ value: any;
4609
+ }[] | undefined;
4610
+ readonly dependsOn?: (string | {
4611
+ field: string;
4612
+ param?: string | undefined;
4613
+ })[] | undefined;
4614
+ readonly allowCreate?: boolean | undefined;
4615
+ readonly expression?: {
4616
+ dialect: "cel" | "js" | "cron" | "template";
4617
+ source?: string | undefined;
4618
+ ast?: unknown;
4619
+ meta?: {
4620
+ rationale?: string | undefined;
4621
+ generatedBy?: string | undefined;
4622
+ } | undefined;
4623
+ } | undefined;
4624
+ readonly summaryOperations?: {
4625
+ object: string;
4626
+ field: string;
4627
+ function: "min" | "max" | "count" | "sum" | "avg";
4628
+ relationshipField?: string | undefined;
4629
+ } | undefined;
4630
+ readonly language?: string | undefined;
4631
+ readonly step?: number | undefined;
4632
+ readonly currencyConfig?: {
4633
+ precision: number;
4634
+ currencyMode: "fixed" | "dynamic";
4635
+ defaultCurrency: string;
4636
+ } | undefined;
4637
+ readonly vectorConfig?: {
4638
+ dimensions: number;
4639
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4640
+ normalized: boolean;
4641
+ indexed: boolean;
4642
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4643
+ } | undefined;
4644
+ readonly fileAttachmentConfig?: {
4645
+ virusScan: boolean;
4646
+ virusScanOnUpload: boolean;
4647
+ quarantineOnThreat: boolean;
4648
+ allowMultiple: boolean;
4649
+ allowReplace: boolean;
4650
+ allowDelete: boolean;
4651
+ requireUpload: boolean;
4652
+ extractMetadata: boolean;
4653
+ extractText: boolean;
4654
+ versioningEnabled: boolean;
4655
+ publicRead: boolean;
4656
+ presignedUrlExpiry: number;
4657
+ minSize?: number | undefined;
4658
+ maxSize?: number | undefined;
4659
+ allowedTypes?: string[] | undefined;
4660
+ blockedTypes?: string[] | undefined;
4661
+ allowedMimeTypes?: string[] | undefined;
4662
+ blockedMimeTypes?: string[] | undefined;
4663
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4664
+ storageProvider?: string | undefined;
4665
+ storageBucket?: string | undefined;
4666
+ storagePrefix?: string | undefined;
4667
+ imageValidation?: {
4668
+ generateThumbnails: boolean;
4669
+ preserveMetadata: boolean;
4670
+ autoRotate: boolean;
4671
+ minWidth?: number | undefined;
4672
+ maxWidth?: number | undefined;
4673
+ minHeight?: number | undefined;
4674
+ maxHeight?: number | undefined;
4675
+ aspectRatio?: string | undefined;
4676
+ thumbnailSizes?: {
4677
+ name: string;
4678
+ width: number;
4679
+ height: number;
4680
+ crop: boolean;
4681
+ }[] | undefined;
4682
+ } | undefined;
4683
+ maxVersions?: number | undefined;
4684
+ } | undefined;
4685
+ readonly trackHistory?: boolean | undefined;
4686
+ readonly readonlyWhen?: {
4687
+ dialect: "cel" | "js" | "cron" | "template";
4688
+ source?: string | undefined;
4689
+ ast?: unknown;
4690
+ meta?: {
4691
+ rationale?: string | undefined;
4692
+ generatedBy?: string | undefined;
4693
+ } | undefined;
4694
+ } | undefined;
4695
+ readonly requiredWhen?: {
4696
+ dialect: "cel" | "js" | "cron" | "template";
4697
+ source?: string | undefined;
4698
+ ast?: unknown;
4699
+ meta?: {
4700
+ rationale?: string | undefined;
4701
+ generatedBy?: string | undefined;
4702
+ } | undefined;
4703
+ } | undefined;
4704
+ readonly conditionalRequired?: {
4705
+ dialect: "cel" | "js" | "cron" | "template";
4706
+ source?: string | undefined;
4707
+ ast?: unknown;
4708
+ meta?: {
4709
+ rationale?: string | undefined;
4710
+ generatedBy?: string | undefined;
4711
+ } | undefined;
4712
+ } | undefined;
4713
+ readonly sortable?: boolean | undefined;
4714
+ readonly inlineHelpText?: string | undefined;
4715
+ readonly autonumberFormat?: string | undefined;
4716
+ readonly index?: boolean | undefined;
4717
+ readonly type: "url";
4718
+ };
4719
+ readonly manager_id: {
4720
+ readonly readonly?: boolean | undefined;
4721
+ readonly format?: string | undefined;
4722
+ readonly options?: {
4723
+ label: string;
4724
+ value: string;
4725
+ color?: string | undefined;
4726
+ default?: boolean | undefined;
4727
+ visibleWhen?: {
4728
+ dialect: "cel" | "js" | "cron" | "template";
4729
+ source?: string | undefined;
4730
+ ast?: unknown;
4731
+ meta?: {
4732
+ rationale?: string | undefined;
4733
+ generatedBy?: string | undefined;
4734
+ } | undefined;
4735
+ } | undefined;
4736
+ }[] | undefined;
4737
+ readonly description?: string | undefined;
4738
+ readonly label?: string | undefined;
4739
+ readonly name?: string | undefined;
4740
+ readonly precision?: number | undefined;
4741
+ readonly required?: boolean | undefined;
4742
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4743
+ readonly multiple?: boolean | undefined;
4744
+ readonly dependencies?: string[] | undefined;
4745
+ readonly externalId?: boolean | undefined;
4746
+ readonly defaultValue?: unknown;
4747
+ readonly requiredPermissions?: string[] | undefined;
4748
+ readonly group?: string | undefined;
4749
+ readonly hidden?: boolean | undefined;
4750
+ readonly system?: boolean | undefined;
4751
+ readonly min?: number | undefined;
4752
+ readonly max?: number | undefined;
4753
+ readonly visibleWhen?: {
4754
+ dialect: "cel" | "js" | "cron" | "template";
4755
+ source?: string | undefined;
4756
+ ast?: unknown;
4757
+ meta?: {
4758
+ rationale?: string | undefined;
4759
+ generatedBy?: string | undefined;
4760
+ } | undefined;
4761
+ } | undefined;
4762
+ readonly dimensions?: number | undefined;
4763
+ readonly columnName?: string | undefined;
4764
+ readonly searchable?: boolean | undefined;
4765
+ readonly unique?: boolean | undefined;
4766
+ readonly maxLength?: number | undefined;
4767
+ readonly minLength?: number | undefined;
4768
+ readonly scale?: number | undefined;
4769
+ reference: string;
4770
+ readonly referenceFilters?: string[] | undefined;
4771
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4772
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4773
+ readonly inlineTitle?: string | undefined;
4774
+ readonly inlineColumns?: any[] | undefined;
4775
+ readonly inlineAmountField?: string | undefined;
4776
+ readonly relatedList?: boolean | "primary" | undefined;
4777
+ readonly relatedListTitle?: string | undefined;
4778
+ readonly relatedListColumns?: any[] | undefined;
4779
+ readonly displayField?: string | undefined;
4780
+ readonly descriptionField?: string | undefined;
4781
+ readonly lookupColumns?: (string | {
4782
+ field: string;
4783
+ label?: string | undefined;
4784
+ width?: string | undefined;
4785
+ type?: string | undefined;
4786
+ })[] | undefined;
4787
+ readonly lookupPageSize?: number | undefined;
4788
+ readonly lookupFilters?: {
4789
+ field: string;
4790
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4791
+ value: any;
4792
+ }[] | undefined;
4793
+ readonly dependsOn?: (string | {
4794
+ field: string;
4795
+ param?: string | undefined;
4796
+ })[] | undefined;
4797
+ readonly allowCreate?: boolean | undefined;
4798
+ readonly expression?: {
4799
+ dialect: "cel" | "js" | "cron" | "template";
4800
+ source?: string | undefined;
4801
+ ast?: unknown;
4802
+ meta?: {
4803
+ rationale?: string | undefined;
4804
+ generatedBy?: string | undefined;
4805
+ } | undefined;
4806
+ } | undefined;
4807
+ readonly summaryOperations?: {
4808
+ object: string;
4809
+ field: string;
4810
+ function: "min" | "max" | "count" | "sum" | "avg";
4811
+ relationshipField?: string | undefined;
4812
+ } | undefined;
4813
+ readonly language?: string | undefined;
4814
+ readonly step?: number | undefined;
4815
+ readonly currencyConfig?: {
4816
+ precision: number;
4817
+ currencyMode: "fixed" | "dynamic";
4818
+ defaultCurrency: string;
4819
+ } | undefined;
4820
+ readonly vectorConfig?: {
4821
+ dimensions: number;
4822
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
4823
+ normalized: boolean;
4824
+ indexed: boolean;
4825
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
4826
+ } | undefined;
4827
+ readonly fileAttachmentConfig?: {
4828
+ virusScan: boolean;
4829
+ virusScanOnUpload: boolean;
4830
+ quarantineOnThreat: boolean;
4831
+ allowMultiple: boolean;
4832
+ allowReplace: boolean;
4833
+ allowDelete: boolean;
4834
+ requireUpload: boolean;
4835
+ extractMetadata: boolean;
4836
+ extractText: boolean;
4837
+ versioningEnabled: boolean;
4838
+ publicRead: boolean;
4839
+ presignedUrlExpiry: number;
4840
+ minSize?: number | undefined;
4841
+ maxSize?: number | undefined;
4842
+ allowedTypes?: string[] | undefined;
4843
+ blockedTypes?: string[] | undefined;
4844
+ allowedMimeTypes?: string[] | undefined;
4845
+ blockedMimeTypes?: string[] | undefined;
4846
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
4847
+ storageProvider?: string | undefined;
4848
+ storageBucket?: string | undefined;
4849
+ storagePrefix?: string | undefined;
4850
+ imageValidation?: {
4851
+ generateThumbnails: boolean;
4852
+ preserveMetadata: boolean;
4853
+ autoRotate: boolean;
4854
+ minWidth?: number | undefined;
4855
+ maxWidth?: number | undefined;
4856
+ minHeight?: number | undefined;
4857
+ maxHeight?: number | undefined;
4858
+ aspectRatio?: string | undefined;
4859
+ thumbnailSizes?: {
4860
+ name: string;
4861
+ width: number;
4862
+ height: number;
4863
+ crop: boolean;
4864
+ }[] | undefined;
4865
+ } | undefined;
4866
+ maxVersions?: number | undefined;
4867
+ } | undefined;
4868
+ readonly trackHistory?: boolean | undefined;
4869
+ readonly readonlyWhen?: {
4870
+ dialect: "cel" | "js" | "cron" | "template";
4871
+ source?: string | undefined;
4872
+ ast?: unknown;
4873
+ meta?: {
4874
+ rationale?: string | undefined;
4875
+ generatedBy?: string | undefined;
4876
+ } | undefined;
4877
+ } | undefined;
4878
+ readonly requiredWhen?: {
4879
+ dialect: "cel" | "js" | "cron" | "template";
4880
+ source?: string | undefined;
4881
+ ast?: unknown;
4882
+ meta?: {
4883
+ rationale?: string | undefined;
4884
+ generatedBy?: string | undefined;
4885
+ } | undefined;
4886
+ } | undefined;
4887
+ readonly conditionalRequired?: {
4888
+ dialect: "cel" | "js" | "cron" | "template";
4889
+ source?: string | undefined;
4890
+ ast?: unknown;
4891
+ meta?: {
4892
+ rationale?: string | undefined;
4893
+ generatedBy?: string | undefined;
4894
+ } | undefined;
4895
+ } | undefined;
4896
+ readonly sortable?: boolean | undefined;
4897
+ readonly inlineHelpText?: string | undefined;
4898
+ readonly autonumberFormat?: string | undefined;
4899
+ readonly index?: boolean | undefined;
4900
+ readonly type: "lookup";
4901
+ };
4902
+ readonly primary_business_unit_id: {
4903
+ readonly readonly?: boolean | undefined;
4904
+ readonly format?: string | undefined;
4905
+ readonly options?: {
4906
+ label: string;
4907
+ value: string;
4908
+ color?: string | undefined;
4909
+ default?: boolean | undefined;
4910
+ visibleWhen?: {
4911
+ dialect: "cel" | "js" | "cron" | "template";
4912
+ source?: string | undefined;
4913
+ ast?: unknown;
4914
+ meta?: {
4915
+ rationale?: string | undefined;
4916
+ generatedBy?: string | undefined;
4917
+ } | undefined;
4918
+ } | undefined;
4919
+ }[] | undefined;
4920
+ readonly description?: string | undefined;
4921
+ readonly label?: string | undefined;
4922
+ readonly name?: string | undefined;
4923
+ readonly precision?: number | undefined;
4924
+ readonly required?: boolean | undefined;
4925
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
4926
+ readonly multiple?: boolean | undefined;
4927
+ readonly dependencies?: string[] | undefined;
4928
+ readonly externalId?: boolean | undefined;
4929
+ readonly defaultValue?: unknown;
4930
+ readonly requiredPermissions?: string[] | undefined;
4931
+ readonly group?: string | undefined;
4932
+ readonly hidden?: boolean | undefined;
4933
+ readonly system?: boolean | undefined;
4934
+ readonly min?: number | undefined;
4935
+ readonly max?: number | undefined;
4936
+ readonly visibleWhen?: {
4937
+ dialect: "cel" | "js" | "cron" | "template";
4938
+ source?: string | undefined;
4939
+ ast?: unknown;
4940
+ meta?: {
4941
+ rationale?: string | undefined;
4942
+ generatedBy?: string | undefined;
4943
+ } | undefined;
4944
+ } | undefined;
4945
+ readonly dimensions?: number | undefined;
4946
+ readonly columnName?: string | undefined;
4947
+ readonly searchable?: boolean | undefined;
4948
+ readonly unique?: boolean | undefined;
4949
+ readonly maxLength?: number | undefined;
4950
+ readonly minLength?: number | undefined;
4951
+ readonly scale?: number | undefined;
4952
+ reference: string;
4953
+ readonly referenceFilters?: string[] | undefined;
4954
+ readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
4955
+ readonly inlineEdit?: boolean | "grid" | "form" | undefined;
4956
+ readonly inlineTitle?: string | undefined;
4957
+ readonly inlineColumns?: any[] | undefined;
4958
+ readonly inlineAmountField?: string | undefined;
4959
+ readonly relatedList?: boolean | "primary" | undefined;
4960
+ readonly relatedListTitle?: string | undefined;
4961
+ readonly relatedListColumns?: any[] | undefined;
4962
+ readonly displayField?: string | undefined;
4963
+ readonly descriptionField?: string | undefined;
4964
+ readonly lookupColumns?: (string | {
4965
+ field: string;
4966
+ label?: string | undefined;
4967
+ width?: string | undefined;
4968
+ type?: string | undefined;
4969
+ })[] | undefined;
4970
+ readonly lookupPageSize?: number | undefined;
4971
+ readonly lookupFilters?: {
4972
+ field: string;
4973
+ operator: "in" | "eq" | "ne" | "gt" | "lt" | "gte" | "lte" | "contains" | "notIn";
4974
+ value: any;
4975
+ }[] | undefined;
4976
+ readonly dependsOn?: (string | {
4977
+ field: string;
4978
+ param?: string | undefined;
4979
+ })[] | undefined;
4980
+ readonly allowCreate?: boolean | undefined;
4981
+ readonly expression?: {
4982
+ dialect: "cel" | "js" | "cron" | "template";
4983
+ source?: string | undefined;
4984
+ ast?: unknown;
4985
+ meta?: {
4986
+ rationale?: string | undefined;
4987
+ generatedBy?: string | undefined;
4988
+ } | undefined;
4989
+ } | undefined;
4990
+ readonly summaryOperations?: {
4991
+ object: string;
4992
+ field: string;
4993
+ function: "min" | "max" | "count" | "sum" | "avg";
4994
+ relationshipField?: string | undefined;
4995
+ } | undefined;
4996
+ readonly language?: string | undefined;
4997
+ readonly step?: number | undefined;
4998
+ readonly currencyConfig?: {
4999
+ precision: number;
5000
+ currencyMode: "fixed" | "dynamic";
5001
+ defaultCurrency: string;
5002
+ } | undefined;
5003
+ readonly vectorConfig?: {
5004
+ dimensions: number;
5005
+ distanceMetric: "cosine" | "euclidean" | "dotProduct" | "manhattan";
5006
+ normalized: boolean;
5007
+ indexed: boolean;
5008
+ indexType?: "flat" | "hnsw" | "ivfflat" | undefined;
5009
+ } | undefined;
5010
+ readonly fileAttachmentConfig?: {
5011
+ virusScan: boolean;
5012
+ virusScanOnUpload: boolean;
5013
+ quarantineOnThreat: boolean;
5014
+ allowMultiple: boolean;
5015
+ allowReplace: boolean;
5016
+ allowDelete: boolean;
5017
+ requireUpload: boolean;
5018
+ extractMetadata: boolean;
5019
+ extractText: boolean;
5020
+ versioningEnabled: boolean;
5021
+ publicRead: boolean;
5022
+ presignedUrlExpiry: number;
5023
+ minSize?: number | undefined;
5024
+ maxSize?: number | undefined;
5025
+ allowedTypes?: string[] | undefined;
5026
+ blockedTypes?: string[] | undefined;
5027
+ allowedMimeTypes?: string[] | undefined;
5028
+ blockedMimeTypes?: string[] | undefined;
5029
+ virusScanProvider?: "custom" | "clamav" | "virustotal" | "metadefender" | undefined;
5030
+ storageProvider?: string | undefined;
5031
+ storageBucket?: string | undefined;
5032
+ storagePrefix?: string | undefined;
5033
+ imageValidation?: {
5034
+ generateThumbnails: boolean;
5035
+ preserveMetadata: boolean;
5036
+ autoRotate: boolean;
5037
+ minWidth?: number | undefined;
5038
+ maxWidth?: number | undefined;
5039
+ minHeight?: number | undefined;
5040
+ maxHeight?: number | undefined;
5041
+ aspectRatio?: string | undefined;
5042
+ thumbnailSizes?: {
5043
+ name: string;
5044
+ width: number;
5045
+ height: number;
5046
+ crop: boolean;
5047
+ }[] | undefined;
5048
+ } | undefined;
5049
+ maxVersions?: number | undefined;
5050
+ } | undefined;
5051
+ readonly trackHistory?: boolean | undefined;
5052
+ readonly readonlyWhen?: {
5053
+ dialect: "cel" | "js" | "cron" | "template";
5054
+ source?: string | undefined;
5055
+ ast?: unknown;
5056
+ meta?: {
5057
+ rationale?: string | undefined;
5058
+ generatedBy?: string | undefined;
5059
+ } | undefined;
5060
+ } | undefined;
5061
+ readonly requiredWhen?: {
5062
+ dialect: "cel" | "js" | "cron" | "template";
5063
+ source?: string | undefined;
5064
+ ast?: unknown;
5065
+ meta?: {
5066
+ rationale?: string | undefined;
5067
+ generatedBy?: string | undefined;
5068
+ } | undefined;
5069
+ } | undefined;
5070
+ readonly conditionalRequired?: {
5071
+ dialect: "cel" | "js" | "cron" | "template";
5072
+ source?: string | undefined;
5073
+ ast?: unknown;
5074
+ meta?: {
5075
+ rationale?: string | undefined;
5076
+ generatedBy?: string | undefined;
5077
+ } | undefined;
5078
+ } | undefined;
5079
+ readonly sortable?: boolean | undefined;
5080
+ readonly inlineHelpText?: string | undefined;
5081
+ readonly autonumberFormat?: string | undefined;
5082
+ readonly index?: boolean | undefined;
5083
+ readonly type: "lookup";
5084
+ };
5085
+ readonly source: {
5086
+ readonly readonly?: boolean | undefined;
5087
+ readonly format?: string | undefined;
5088
+ options: {
5089
+ label: string;
5090
+ value: string;
5091
+ color?: string | undefined;
5092
+ default?: boolean | undefined;
5093
+ visibleWhen?: {
5094
+ dialect: "cel" | "js" | "cron" | "template";
5095
+ source?: string | undefined;
5096
+ ast?: unknown;
5097
+ meta?: {
5098
+ rationale?: string | undefined;
5099
+ generatedBy?: string | undefined;
5100
+ } | undefined;
5101
+ } | undefined;
5102
+ }[];
5103
+ readonly description?: string | undefined;
5104
+ readonly label?: string | undefined;
5105
+ readonly name?: string | undefined;
5106
+ readonly precision?: number | undefined;
5107
+ readonly required?: boolean | undefined;
5108
+ readonly returnType?: "number" | "boolean" | "date" | "text" | undefined;
5109
+ readonly multiple?: boolean | undefined;
5110
+ readonly dependencies?: string[] | undefined;
5111
+ readonly externalId?: boolean | undefined;
5112
+ readonly defaultValue?: unknown;
5113
+ readonly requiredPermissions?: string[] | undefined;
5114
+ readonly group?: string | undefined;
5115
+ readonly hidden?: boolean | undefined;
5116
+ readonly system?: boolean | undefined;
5117
+ readonly min?: number | undefined;
5118
+ readonly max?: number | undefined;
5119
+ readonly visibleWhen?: {
5120
+ dialect: "cel" | "js" | "cron" | "template";
5121
+ source?: string | undefined;
5122
+ ast?: unknown;
5123
+ meta?: {
5124
+ rationale?: string | undefined;
5125
+ generatedBy?: string | undefined;
5126
+ } | undefined;
5127
+ } | undefined;
5128
+ readonly dimensions?: number | undefined;
5129
+ readonly columnName?: string | undefined;
5130
+ readonly searchable?: boolean | undefined;
5131
+ readonly unique?: boolean | undefined;
5132
+ readonly maxLength?: number | undefined;
5133
+ readonly minLength?: number | undefined;
5134
+ readonly scale?: number | undefined;
4503
5135
  readonly reference?: string | undefined;
4504
5136
  readonly referenceFilters?: string[] | undefined;
4505
5137
  readonly deleteBehavior?: "set_null" | "cascade" | "restrict" | undefined;
@@ -5189,6 +5821,9 @@ declare const SysUser: Omit<{
5189
5821
  }, {
5190
5822
  readonly fields: ["created_at"];
5191
5823
  readonly unique: false;
5824
+ }, {
5825
+ readonly fields: ["phone_number"];
5826
+ readonly unique: true;
5192
5827
  }];
5193
5828
  readonly enable: {
5194
5829
  readonly trackHistory: true;
@@ -5508,7 +6143,12 @@ declare const SysSession: Omit<{
5508
6143
  access?: {
5509
6144
  default: "public" | "private";
5510
6145
  } | undefined;
5511
- requiredPermissions?: string[] | undefined;
6146
+ requiredPermissions?: string[] | {
6147
+ read?: string[] | undefined;
6148
+ create?: string[] | undefined;
6149
+ update?: string[] | undefined;
6150
+ delete?: string[] | undefined;
6151
+ } | undefined;
5512
6152
  softDelete?: {
5513
6153
  enabled: boolean;
5514
6154
  field: string;
@@ -5854,9 +6494,10 @@ declare const SysSession: Omit<{
5854
6494
  trash: boolean;
5855
6495
  mru: boolean;
5856
6496
  clone: boolean;
5857
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
6497
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
5858
6498
  } | undefined;
5859
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
6499
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
6500
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
5860
6501
  publicSharing?: {
5861
6502
  enabled: boolean;
5862
6503
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -8949,7 +9590,12 @@ declare const SysAccount: Omit<{
8949
9590
  access?: {
8950
9591
  default: "public" | "private";
8951
9592
  } | undefined;
8952
- requiredPermissions?: string[] | undefined;
9593
+ requiredPermissions?: string[] | {
9594
+ read?: string[] | undefined;
9595
+ create?: string[] | undefined;
9596
+ update?: string[] | undefined;
9597
+ delete?: string[] | undefined;
9598
+ } | undefined;
8953
9599
  softDelete?: {
8954
9600
  enabled: boolean;
8955
9601
  field: string;
@@ -9295,9 +9941,10 @@ declare const SysAccount: Omit<{
9295
9941
  trash: boolean;
9296
9942
  mru: boolean;
9297
9943
  clone: boolean;
9298
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
9944
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
9299
9945
  } | undefined;
9300
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
9946
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
9947
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
9301
9948
  publicSharing?: {
9302
9949
  enabled: boolean;
9303
9950
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -12446,7 +13093,12 @@ declare const SysVerification: Omit<{
12446
13093
  access?: {
12447
13094
  default: "public" | "private";
12448
13095
  } | undefined;
12449
- requiredPermissions?: string[] | undefined;
13096
+ requiredPermissions?: string[] | {
13097
+ read?: string[] | undefined;
13098
+ create?: string[] | undefined;
13099
+ update?: string[] | undefined;
13100
+ delete?: string[] | undefined;
13101
+ } | undefined;
12450
13102
  softDelete?: {
12451
13103
  enabled: boolean;
12452
13104
  field: string;
@@ -12792,9 +13444,10 @@ declare const SysVerification: Omit<{
12792
13444
  trash: boolean;
12793
13445
  mru: boolean;
12794
13446
  clone: boolean;
12795
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
13447
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
12796
13448
  } | undefined;
12797
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
13449
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
13450
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
12798
13451
  publicSharing?: {
12799
13452
  enabled: boolean;
12800
13453
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -12921,6 +13574,9 @@ declare const SysVerification: Omit<{
12921
13574
  readonly icon: "shield-check";
12922
13575
  readonly isSystem: true;
12923
13576
  readonly managedBy: "better-auth";
13577
+ readonly access: {
13578
+ readonly default: "private";
13579
+ };
12924
13580
  readonly protection: {
12925
13581
  readonly lock: "full";
12926
13582
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -14353,7 +15009,12 @@ declare const SysOrganization: Omit<{
14353
15009
  access?: {
14354
15010
  default: "public" | "private";
14355
15011
  } | undefined;
14356
- requiredPermissions?: string[] | undefined;
15012
+ requiredPermissions?: string[] | {
15013
+ read?: string[] | undefined;
15014
+ create?: string[] | undefined;
15015
+ update?: string[] | undefined;
15016
+ delete?: string[] | undefined;
15017
+ } | undefined;
14357
15018
  softDelete?: {
14358
15019
  enabled: boolean;
14359
15020
  field: string;
@@ -14699,9 +15360,10 @@ declare const SysOrganization: Omit<{
14699
15360
  trash: boolean;
14700
15361
  mru: boolean;
14701
15362
  clone: boolean;
14702
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
15363
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
14703
15364
  } | undefined;
14704
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
15365
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
15366
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
14705
15367
  publicSharing?: {
14706
15368
  enabled: boolean;
14707
15369
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -16751,7 +17413,12 @@ declare const SysMember: Omit<{
16751
17413
  access?: {
16752
17414
  default: "public" | "private";
16753
17415
  } | undefined;
16754
- requiredPermissions?: string[] | undefined;
17416
+ requiredPermissions?: string[] | {
17417
+ read?: string[] | undefined;
17418
+ create?: string[] | undefined;
17419
+ update?: string[] | undefined;
17420
+ delete?: string[] | undefined;
17421
+ } | undefined;
16755
17422
  softDelete?: {
16756
17423
  enabled: boolean;
16757
17424
  field: string;
@@ -17097,9 +17764,10 @@ declare const SysMember: Omit<{
17097
17764
  trash: boolean;
17098
17765
  mru: boolean;
17099
17766
  clone: boolean;
17100
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
17767
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
17101
17768
  } | undefined;
17102
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
17769
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
17770
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
17103
17771
  publicSharing?: {
17104
17772
  enabled: boolean;
17105
17773
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -17242,7 +17910,7 @@ declare const SysMember: Omit<{
17242
17910
  readonly locations: ["list_toolbar"];
17243
17911
  readonly type: "api";
17244
17912
  readonly target: "/api/v1/auth/organization/add-member";
17245
- readonly visible: "features.multiOrgEnabled != false";
17913
+ readonly visible: "features.organization != false";
17246
17914
  readonly successMessage: "Member added";
17247
17915
  readonly refreshAfter: true;
17248
17916
  readonly params: [{
@@ -17265,7 +17933,7 @@ declare const SysMember: Omit<{
17265
17933
  readonly type: "api";
17266
17934
  readonly target: "/api/v1/auth/organization/update-member-role";
17267
17935
  readonly recordIdParam: "memberId";
17268
- readonly visible: "features.multiOrgEnabled != false";
17936
+ readonly visible: "features.organization != false";
17269
17937
  readonly successMessage: "Member role updated";
17270
17938
  readonly refreshAfter: true;
17271
17939
  readonly params: [{
@@ -17283,7 +17951,7 @@ declare const SysMember: Omit<{
17283
17951
  readonly type: "api";
17284
17952
  readonly target: "/api/v1/auth/organization/remove-member";
17285
17953
  readonly recordIdParam: "memberIdOrEmail";
17286
- readonly visible: "features.multiOrgEnabled != false";
17954
+ readonly visible: "features.organization != false";
17287
17955
  readonly confirmText: "Remove this member from the organization? They will lose access to all org resources.";
17288
17956
  readonly successMessage: "Member removed";
17289
17957
  readonly refreshAfter: true;
@@ -17300,7 +17968,7 @@ declare const SysMember: Omit<{
17300
17968
  readonly bodyExtra: {
17301
17969
  readonly role: "owner";
17302
17970
  };
17303
- readonly visible: "record.role != 'owner' && features.multiOrgEnabled != false";
17971
+ readonly visible: "record.role != 'owner' && features.organization != false";
17304
17972
  readonly confirmText: "Transfer ownership of this organization to the selected member? You will be demoted to admin and lose owner-only privileges.";
17305
17973
  readonly successMessage: "Ownership transferred";
17306
17974
  readonly refreshAfter: true;
@@ -18570,7 +19238,12 @@ declare const SysInvitation: Omit<{
18570
19238
  access?: {
18571
19239
  default: "public" | "private";
18572
19240
  } | undefined;
18573
- requiredPermissions?: string[] | undefined;
19241
+ requiredPermissions?: string[] | {
19242
+ read?: string[] | undefined;
19243
+ create?: string[] | undefined;
19244
+ update?: string[] | undefined;
19245
+ delete?: string[] | undefined;
19246
+ } | undefined;
18574
19247
  softDelete?: {
18575
19248
  enabled: boolean;
18576
19249
  field: string;
@@ -18916,9 +19589,10 @@ declare const SysInvitation: Omit<{
18916
19589
  trash: boolean;
18917
19590
  mru: boolean;
18918
19591
  clone: boolean;
18919
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
19592
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
18920
19593
  } | undefined;
18921
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
19594
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
19595
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
18922
19596
  publicSharing?: {
18923
19597
  enabled: boolean;
18924
19598
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -19061,7 +19735,7 @@ declare const SysInvitation: Omit<{
19061
19735
  readonly locations: ["list_toolbar"];
19062
19736
  readonly type: "api";
19063
19737
  readonly target: "/api/v1/auth/organization/invite-member";
19064
- readonly visible: "features.multiOrgEnabled != false";
19738
+ readonly visible: "features.organization != false";
19065
19739
  readonly successMessage: "Invitation sent";
19066
19740
  readonly refreshAfter: true;
19067
19741
  readonly params: [{
@@ -19081,7 +19755,7 @@ declare const SysInvitation: Omit<{
19081
19755
  readonly type: "api";
19082
19756
  readonly target: "/api/v1/auth/organization/cancel-invitation";
19083
19757
  readonly recordIdParam: "invitationId";
19084
- readonly visible: "features.multiOrgEnabled != false";
19758
+ readonly visible: "features.organization != false";
19085
19759
  readonly confirmText: "Cancel this invitation? The recipient will no longer be able to accept it.";
19086
19760
  readonly successMessage: "Invitation canceled";
19087
19761
  readonly refreshAfter: true;
@@ -19096,7 +19770,7 @@ declare const SysInvitation: Omit<{
19096
19770
  readonly bodyExtra: {
19097
19771
  readonly resend: true;
19098
19772
  };
19099
- readonly visible: "features.multiOrgEnabled != false";
19773
+ readonly visible: "features.organization != false";
19100
19774
  readonly successMessage: "Invitation resent";
19101
19775
  readonly refreshAfter: true;
19102
19776
  readonly params: [{
@@ -21189,7 +21863,12 @@ declare const SysTeam: Omit<{
21189
21863
  access?: {
21190
21864
  default: "public" | "private";
21191
21865
  } | undefined;
21192
- requiredPermissions?: string[] | undefined;
21866
+ requiredPermissions?: string[] | {
21867
+ read?: string[] | undefined;
21868
+ create?: string[] | undefined;
21869
+ update?: string[] | undefined;
21870
+ delete?: string[] | undefined;
21871
+ } | undefined;
21193
21872
  softDelete?: {
21194
21873
  enabled: boolean;
21195
21874
  field: string;
@@ -21535,9 +22214,10 @@ declare const SysTeam: Omit<{
21535
22214
  trash: boolean;
21536
22215
  mru: boolean;
21537
22216
  clone: boolean;
21538
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
22217
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
21539
22218
  } | undefined;
21540
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
22219
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
22220
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
21541
22221
  publicSharing?: {
21542
22222
  enabled: boolean;
21543
22223
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -21682,7 +22362,7 @@ declare const SysTeam: Omit<{
21682
22362
  readonly locations: ["list_toolbar"];
21683
22363
  readonly type: "api";
21684
22364
  readonly target: "/api/v1/auth/organization/create-team";
21685
- readonly visible: "features.multiOrgEnabled != false";
22365
+ readonly visible: "features.organization != false";
21686
22366
  readonly successMessage: "Team created";
21687
22367
  readonly refreshAfter: true;
21688
22368
  readonly params: [{
@@ -21704,7 +22384,7 @@ declare const SysTeam: Omit<{
21704
22384
  readonly bodyShape: {
21705
22385
  readonly wrap: "data";
21706
22386
  };
21707
- readonly visible: "features.multiOrgEnabled != false";
22387
+ readonly visible: "features.organization != false";
21708
22388
  readonly successMessage: "Team updated";
21709
22389
  readonly refreshAfter: true;
21710
22390
  readonly params: [{
@@ -21722,7 +22402,7 @@ declare const SysTeam: Omit<{
21722
22402
  readonly type: "api";
21723
22403
  readonly target: "/api/v1/auth/organization/remove-team";
21724
22404
  readonly recordIdParam: "teamId";
21725
- readonly visible: "features.multiOrgEnabled != false";
22405
+ readonly visible: "features.organization != false";
21726
22406
  readonly confirmText: "Delete this team? Members will lose any team-scoped access. This cannot be undone.";
21727
22407
  readonly successMessage: "Team deleted";
21728
22408
  readonly refreshAfter: true;
@@ -23010,7 +23690,12 @@ declare const SysTeamMember: Omit<{
23010
23690
  access?: {
23011
23691
  default: "public" | "private";
23012
23692
  } | undefined;
23013
- requiredPermissions?: string[] | undefined;
23693
+ requiredPermissions?: string[] | {
23694
+ read?: string[] | undefined;
23695
+ create?: string[] | undefined;
23696
+ update?: string[] | undefined;
23697
+ delete?: string[] | undefined;
23698
+ } | undefined;
23014
23699
  softDelete?: {
23015
23700
  enabled: boolean;
23016
23701
  field: string;
@@ -23356,9 +24041,10 @@ declare const SysTeamMember: Omit<{
23356
24041
  trash: boolean;
23357
24042
  mru: boolean;
23358
24043
  clone: boolean;
23359
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
24044
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
23360
24045
  } | undefined;
23361
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
24046
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
24047
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
23362
24048
  publicSharing?: {
23363
24049
  enabled: boolean;
23364
24050
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -23501,7 +24187,7 @@ declare const SysTeamMember: Omit<{
23501
24187
  readonly locations: ["list_toolbar"];
23502
24188
  readonly type: "api";
23503
24189
  readonly target: "/api/v1/auth/organization/add-team-member";
23504
- readonly visible: "features.multiOrgEnabled != false";
24190
+ readonly visible: "features.organization != false";
23505
24191
  readonly successMessage: "Team member added";
23506
24192
  readonly refreshAfter: true;
23507
24193
  readonly params: [{
@@ -23522,7 +24208,7 @@ declare const SysTeamMember: Omit<{
23522
24208
  readonly locations: ["list_item"];
23523
24209
  readonly type: "api";
23524
24210
  readonly target: "/api/v1/auth/organization/remove-team-member";
23525
- readonly visible: "features.multiOrgEnabled != false";
24211
+ readonly visible: "features.organization != false";
23526
24212
  readonly confirmText: "Remove this user from the team? They will lose any team-scoped access.";
23527
24213
  readonly successMessage: "Team member removed";
23528
24214
  readonly refreshAfter: true;
@@ -24602,7 +25288,12 @@ declare const SysBusinessUnit: Omit<{
24602
25288
  access?: {
24603
25289
  default: "public" | "private";
24604
25290
  } | undefined;
24605
- requiredPermissions?: string[] | undefined;
25291
+ requiredPermissions?: string[] | {
25292
+ read?: string[] | undefined;
25293
+ create?: string[] | undefined;
25294
+ update?: string[] | undefined;
25295
+ delete?: string[] | undefined;
25296
+ } | undefined;
24606
25297
  softDelete?: {
24607
25298
  enabled: boolean;
24608
25299
  field: string;
@@ -24948,9 +25639,10 @@ declare const SysBusinessUnit: Omit<{
24948
25639
  trash: boolean;
24949
25640
  mru: boolean;
24950
25641
  clone: boolean;
24951
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
25642
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
24952
25643
  } | undefined;
24953
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
25644
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
25645
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
24954
25646
  publicSharing?: {
24955
25647
  enabled: boolean;
24956
25648
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -27901,7 +28593,12 @@ declare const SysBusinessUnitMember: Omit<{
27901
28593
  access?: {
27902
28594
  default: "public" | "private";
27903
28595
  } | undefined;
27904
- requiredPermissions?: string[] | undefined;
28596
+ requiredPermissions?: string[] | {
28597
+ read?: string[] | undefined;
28598
+ create?: string[] | undefined;
28599
+ update?: string[] | undefined;
28600
+ delete?: string[] | undefined;
28601
+ } | undefined;
27905
28602
  softDelete?: {
27906
28603
  enabled: boolean;
27907
28604
  field: string;
@@ -28247,9 +28944,10 @@ declare const SysBusinessUnitMember: Omit<{
28247
28944
  trash: boolean;
28248
28945
  mru: boolean;
28249
28946
  clone: boolean;
28250
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
28947
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
28251
28948
  } | undefined;
28252
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
28949
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
28950
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
28253
28951
  publicSharing?: {
28254
28952
  enabled: boolean;
28255
28953
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -28378,7 +29076,7 @@ declare const SysBusinessUnitMember: Omit<{
28378
29076
  readonly managedBy: "platform";
28379
29077
  readonly description: "User assignment to a business unit (matrix-org friendly, effective-dated).";
28380
29078
  readonly titleFormat: "{user_id} in {business_unit_id}";
28381
- readonly highlightFields: ["user_id", "business_unit_id", "role_in_business_unit", "is_primary"];
29079
+ readonly highlightFields: ["user_id", "business_unit_id", "function_in_business_unit", "is_primary"];
28382
29080
  readonly fields: {
28383
29081
  readonly id: {
28384
29082
  readonly readonly?: boolean | undefined;
@@ -28929,7 +29627,7 @@ declare const SysBusinessUnitMember: Omit<{
28929
29627
  readonly index?: boolean | undefined;
28930
29628
  readonly type: "lookup";
28931
29629
  };
28932
- readonly role_in_business_unit: {
29630
+ readonly function_in_business_unit: {
28933
29631
  readonly readonly?: boolean | undefined;
28934
29632
  readonly format?: string | undefined;
28935
29633
  options: {
@@ -30353,7 +31051,12 @@ declare const SysApiKey: Omit<{
30353
31051
  access?: {
30354
31052
  default: "public" | "private";
30355
31053
  } | undefined;
30356
- requiredPermissions?: string[] | undefined;
31054
+ requiredPermissions?: string[] | {
31055
+ read?: string[] | undefined;
31056
+ create?: string[] | undefined;
31057
+ update?: string[] | undefined;
31058
+ delete?: string[] | undefined;
31059
+ } | undefined;
30357
31060
  softDelete?: {
30358
31061
  enabled: boolean;
30359
31062
  field: string;
@@ -30699,9 +31402,10 @@ declare const SysApiKey: Omit<{
30699
31402
  trash: boolean;
30700
31403
  mru: boolean;
30701
31404
  clone: boolean;
30702
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
31405
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
30703
31406
  } | undefined;
30704
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
31407
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
31408
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
30705
31409
  publicSharing?: {
30706
31410
  enabled: boolean;
30707
31411
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -33295,7 +33999,12 @@ declare const SysTwoFactor: Omit<{
33295
33999
  access?: {
33296
34000
  default: "public" | "private";
33297
34001
  } | undefined;
33298
- requiredPermissions?: string[] | undefined;
34002
+ requiredPermissions?: string[] | {
34003
+ read?: string[] | undefined;
34004
+ create?: string[] | undefined;
34005
+ update?: string[] | undefined;
34006
+ delete?: string[] | undefined;
34007
+ } | undefined;
33299
34008
  softDelete?: {
33300
34009
  enabled: boolean;
33301
34010
  field: string;
@@ -33641,9 +34350,10 @@ declare const SysTwoFactor: Omit<{
33641
34350
  trash: boolean;
33642
34351
  mru: boolean;
33643
34352
  clone: boolean;
33644
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
34353
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
33645
34354
  } | undefined;
33646
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
34355
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
34356
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
33647
34357
  publicSharing?: {
33648
34358
  enabled: boolean;
33649
34359
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -35502,7 +36212,12 @@ declare const SysDeviceCode: Omit<{
35502
36212
  access?: {
35503
36213
  default: "public" | "private";
35504
36214
  } | undefined;
35505
- requiredPermissions?: string[] | undefined;
36215
+ requiredPermissions?: string[] | {
36216
+ read?: string[] | undefined;
36217
+ create?: string[] | undefined;
36218
+ update?: string[] | undefined;
36219
+ delete?: string[] | undefined;
36220
+ } | undefined;
35506
36221
  softDelete?: {
35507
36222
  enabled: boolean;
35508
36223
  field: string;
@@ -35848,9 +36563,10 @@ declare const SysDeviceCode: Omit<{
35848
36563
  trash: boolean;
35849
36564
  mru: boolean;
35850
36565
  clone: boolean;
35851
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
36566
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
35852
36567
  } | undefined;
35853
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
36568
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
36569
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
35854
36570
  publicSharing?: {
35855
36571
  enabled: boolean;
35856
36572
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -35977,6 +36693,9 @@ declare const SysDeviceCode: Omit<{
35977
36693
  readonly icon: "key-round";
35978
36694
  readonly isSystem: true;
35979
36695
  readonly managedBy: "better-auth";
36696
+ readonly access: {
36697
+ readonly default: "private";
36698
+ };
35980
36699
  readonly protection: {
35981
36700
  readonly lock: "full";
35982
36701
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -38518,7 +39237,12 @@ declare const SysUserPreference: Omit<{
38518
39237
  access?: {
38519
39238
  default: "public" | "private";
38520
39239
  } | undefined;
38521
- requiredPermissions?: string[] | undefined;
39240
+ requiredPermissions?: string[] | {
39241
+ read?: string[] | undefined;
39242
+ create?: string[] | undefined;
39243
+ update?: string[] | undefined;
39244
+ delete?: string[] | undefined;
39245
+ } | undefined;
38522
39246
  softDelete?: {
38523
39247
  enabled: boolean;
38524
39248
  field: string;
@@ -38864,9 +39588,10 @@ declare const SysUserPreference: Omit<{
38864
39588
  trash: boolean;
38865
39589
  mru: boolean;
38866
39590
  clone: boolean;
38867
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
39591
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
38868
39592
  } | undefined;
38869
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
39593
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
39594
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
38870
39595
  publicSharing?: {
38871
39596
  enabled: boolean;
38872
39597
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -40493,7 +41218,12 @@ declare const SysOauthApplication: Omit<{
40493
41218
  access?: {
40494
41219
  default: "public" | "private";
40495
41220
  } | undefined;
40496
- requiredPermissions?: string[] | undefined;
41221
+ requiredPermissions?: string[] | {
41222
+ read?: string[] | undefined;
41223
+ create?: string[] | undefined;
41224
+ update?: string[] | undefined;
41225
+ delete?: string[] | undefined;
41226
+ } | undefined;
40497
41227
  softDelete?: {
40498
41228
  enabled: boolean;
40499
41229
  field: string;
@@ -40839,9 +41569,10 @@ declare const SysOauthApplication: Omit<{
40839
41569
  trash: boolean;
40840
41570
  mru: boolean;
40841
41571
  clone: boolean;
40842
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
41572
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
40843
41573
  } | undefined;
40844
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
41574
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
41575
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
40845
41576
  publicSharing?: {
40846
41577
  enabled: boolean;
40847
41578
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -47032,7 +47763,12 @@ declare const SysOauthAccessToken: Omit<{
47032
47763
  access?: {
47033
47764
  default: "public" | "private";
47034
47765
  } | undefined;
47035
- requiredPermissions?: string[] | undefined;
47766
+ requiredPermissions?: string[] | {
47767
+ read?: string[] | undefined;
47768
+ create?: string[] | undefined;
47769
+ update?: string[] | undefined;
47770
+ delete?: string[] | undefined;
47771
+ } | undefined;
47036
47772
  softDelete?: {
47037
47773
  enabled: boolean;
47038
47774
  field: string;
@@ -47378,9 +48114,10 @@ declare const SysOauthAccessToken: Omit<{
47378
48114
  trash: boolean;
47379
48115
  mru: boolean;
47380
48116
  clone: boolean;
47381
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
48117
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
47382
48118
  } | undefined;
47383
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
48119
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
48120
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
47384
48121
  publicSharing?: {
47385
48122
  enabled: boolean;
47386
48123
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -47507,6 +48244,9 @@ declare const SysOauthAccessToken: Omit<{
47507
48244
  readonly icon: "ticket";
47508
48245
  readonly isSystem: true;
47509
48246
  readonly managedBy: "better-auth";
48247
+ readonly access: {
48248
+ readonly default: "private";
48249
+ };
47510
48250
  readonly protection: {
47511
48251
  readonly lock: "full";
47512
48252
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -49676,7 +50416,12 @@ declare const SysOauthRefreshToken: Omit<{
49676
50416
  access?: {
49677
50417
  default: "public" | "private";
49678
50418
  } | undefined;
49679
- requiredPermissions?: string[] | undefined;
50419
+ requiredPermissions?: string[] | {
50420
+ read?: string[] | undefined;
50421
+ create?: string[] | undefined;
50422
+ update?: string[] | undefined;
50423
+ delete?: string[] | undefined;
50424
+ } | undefined;
49680
50425
  softDelete?: {
49681
50426
  enabled: boolean;
49682
50427
  field: string;
@@ -50022,9 +50767,10 @@ declare const SysOauthRefreshToken: Omit<{
50022
50767
  trash: boolean;
50023
50768
  mru: boolean;
50024
50769
  clone: boolean;
50025
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
50770
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
50026
50771
  } | undefined;
50027
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
50772
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
50773
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
50028
50774
  publicSharing?: {
50029
50775
  enabled: boolean;
50030
50776
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -50151,6 +50897,9 @@ declare const SysOauthRefreshToken: Omit<{
50151
50897
  readonly icon: "refresh-cw";
50152
50898
  readonly isSystem: true;
50153
50899
  readonly managedBy: "better-auth";
50900
+ readonly access: {
50901
+ readonly default: "private";
50902
+ };
50154
50903
  readonly protection: {
50155
50904
  readonly lock: "full";
50156
50905
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -52503,7 +53252,12 @@ declare const SysOauthConsent: Omit<{
52503
53252
  access?: {
52504
53253
  default: "public" | "private";
52505
53254
  } | undefined;
52506
- requiredPermissions?: string[] | undefined;
53255
+ requiredPermissions?: string[] | {
53256
+ read?: string[] | undefined;
53257
+ create?: string[] | undefined;
53258
+ update?: string[] | undefined;
53259
+ delete?: string[] | undefined;
53260
+ } | undefined;
52507
53261
  softDelete?: {
52508
53262
  enabled: boolean;
52509
53263
  field: string;
@@ -52849,9 +53603,10 @@ declare const SysOauthConsent: Omit<{
52849
53603
  trash: boolean;
52850
53604
  mru: boolean;
52851
53605
  clone: boolean;
52852
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
53606
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
52853
53607
  } | undefined;
52854
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
53608
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
53609
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
52855
53610
  publicSharing?: {
52856
53611
  enabled: boolean;
52857
53612
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -54591,7 +55346,12 @@ declare const SysJwks: Omit<{
54591
55346
  access?: {
54592
55347
  default: "public" | "private";
54593
55348
  } | undefined;
54594
- requiredPermissions?: string[] | undefined;
55349
+ requiredPermissions?: string[] | {
55350
+ read?: string[] | undefined;
55351
+ create?: string[] | undefined;
55352
+ update?: string[] | undefined;
55353
+ delete?: string[] | undefined;
55354
+ } | undefined;
54595
55355
  softDelete?: {
54596
55356
  enabled: boolean;
54597
55357
  field: string;
@@ -54937,9 +55697,10 @@ declare const SysJwks: Omit<{
54937
55697
  trash: boolean;
54938
55698
  mru: boolean;
54939
55699
  clone: boolean;
54940
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
55700
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
54941
55701
  } | undefined;
54942
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
55702
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
55703
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
54943
55704
  publicSharing?: {
54944
55705
  enabled: boolean;
54945
55706
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -55066,6 +55827,9 @@ declare const SysJwks: Omit<{
55066
55827
  readonly icon: "key";
55067
55828
  readonly isSystem: true;
55068
55829
  readonly managedBy: "better-auth";
55830
+ readonly access: {
55831
+ readonly default: "private";
55832
+ };
55069
55833
  readonly protection: {
55070
55834
  readonly lock: "full";
55071
55835
  readonly reason: "Identity table managed by better-auth — see ADR-0010.";
@@ -56318,7 +57082,12 @@ declare const SysSsoProvider: Omit<{
56318
57082
  access?: {
56319
57083
  default: "public" | "private";
56320
57084
  } | undefined;
56321
- requiredPermissions?: string[] | undefined;
57085
+ requiredPermissions?: string[] | {
57086
+ read?: string[] | undefined;
57087
+ create?: string[] | undefined;
57088
+ update?: string[] | undefined;
57089
+ delete?: string[] | undefined;
57090
+ } | undefined;
56322
57091
  softDelete?: {
56323
57092
  enabled: boolean;
56324
57093
  field: string;
@@ -56664,9 +57433,10 @@ declare const SysSsoProvider: Omit<{
56664
57433
  trash: boolean;
56665
57434
  mru: boolean;
56666
57435
  clone: boolean;
56667
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
57436
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
56668
57437
  } | undefined;
56669
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
57438
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
57439
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
56670
57440
  publicSharing?: {
56671
57441
  enabled: boolean;
56672
57442
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -59385,7 +60155,12 @@ declare const SysScimProvider: Omit<{
59385
60155
  access?: {
59386
60156
  default: "public" | "private";
59387
60157
  } | undefined;
59388
- requiredPermissions?: string[] | undefined;
60158
+ requiredPermissions?: string[] | {
60159
+ read?: string[] | undefined;
60160
+ create?: string[] | undefined;
60161
+ update?: string[] | undefined;
60162
+ delete?: string[] | undefined;
60163
+ } | undefined;
59389
60164
  softDelete?: {
59390
60165
  enabled: boolean;
59391
60166
  field: string;
@@ -59731,9 +60506,10 @@ declare const SysScimProvider: Omit<{
59731
60506
  trash: boolean;
59732
60507
  mru: boolean;
59733
60508
  clone: boolean;
59734
- apiMethods?: ("search" | "create" | "import" | "delete" | "get" | "update" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
60509
+ apiMethods?: ("search" | "create" | "import" | "delete" | "update" | "get" | "upsert" | "list" | "bulk" | "aggregate" | "history" | "restore" | "purge" | "export")[] | undefined;
59735
60510
  } | undefined;
59736
- sharingModel?: "full" | "private" | "read" | "public_read" | "public_read_write" | "controlled_by_parent" | "read_write" | undefined;
60511
+ sharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
60512
+ externalSharingModel?: "private" | "public_read" | "public_read_write" | "controlled_by_parent" | undefined;
59737
60513
  publicSharing?: {
59738
60514
  enabled: boolean;
59739
60515
  allowedAudiences?: ("email" | "public" | "link_only" | "signed_in")[] | undefined;
@@ -59860,6 +60636,7 @@ declare const SysScimProvider: Omit<{
59860
60636
  readonly icon: "users";
59861
60637
  readonly isSystem: true;
59862
60638
  readonly managedBy: "better-auth";
60639
+ readonly requiredPermissions: ["manage_platform_settings"];
59863
60640
  readonly protection: {
59864
60641
  readonly lock: "full";
59865
60642
  readonly reason: "Identity table managed by better-auth (@better-auth/scim) — see ADR-0071.";