@objectstack/plugin-approvals 17.0.0-rc.2 → 17.0.0-rc.4

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.
package/dist/index.d.ts CHANGED
@@ -29,11 +29,11 @@ declare const SysApprovalRequest: Omit<{
29
29
  isSystem: boolean;
30
30
  datasource: string;
31
31
  fields: Record<string, {
32
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
32
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
33
33
  required: boolean;
34
34
  searchable: boolean;
35
35
  multiple: boolean;
36
- unique: boolean | "global";
36
+ unique: boolean | "global" | "organization";
37
37
  deleteBehavior: "set_null" | "cascade" | "restrict";
38
38
  hidden: boolean;
39
39
  readonly: boolean;
@@ -312,10 +312,10 @@ declare const SysApprovalRequest: Omit<{
312
312
  } | undefined;
313
313
  indexes?: {
314
314
  fields: string[];
315
- type: "hash" | "btree" | "gin" | "gist" | "fulltext";
316
- unique: boolean | "global";
315
+ unique: boolean | "global" | "organization";
317
316
  name?: string | undefined;
318
- partial?: string | undefined;
317
+ type?: undefined;
318
+ partial?: undefined;
319
319
  }[] | undefined;
320
320
  fieldGroups?: {
321
321
  key: string;
@@ -329,7 +329,7 @@ declare const SysApprovalRequest: Omit<{
329
329
  }[] | undefined;
330
330
  tenancy?: {
331
331
  enabled: boolean;
332
- tenantField: string;
332
+ tenantField?: string | undefined;
333
333
  } | undefined;
334
334
  access?: {
335
335
  default: "public" | "private";
@@ -444,14 +444,14 @@ declare const SysApprovalRequest: Omit<{
444
444
  provider: "api";
445
445
  read?: {
446
446
  url: string;
447
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
447
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
448
448
  headers?: Record<string, string> | undefined;
449
449
  params?: Record<string, unknown> | undefined;
450
450
  body?: unknown;
451
451
  } | undefined;
452
452
  write?: {
453
453
  url: string;
454
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
454
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
455
455
  headers?: Record<string, string> | undefined;
456
456
  params?: Record<string, unknown> | undefined;
457
457
  body?: unknown;
@@ -620,12 +620,13 @@ declare const SysApprovalRequest: Omit<{
620
620
  params?: {
621
621
  [x: string]: unknown;
622
622
  name: string;
623
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
623
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
624
624
  label?: string | undefined;
625
625
  help?: string | undefined;
626
626
  required?: boolean | undefined;
627
627
  default?: unknown;
628
628
  options?: {
629
+ [x: string]: unknown;
629
630
  label: string;
630
631
  value: string | number | boolean;
631
632
  }[] | undefined;
@@ -758,7 +759,7 @@ declare const SysApprovalRequest: Omit<{
758
759
  field?: string | undefined;
759
760
  objectOverride?: string | undefined;
760
761
  label?: string | undefined;
761
- type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
762
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
762
763
  options?: {
763
764
  label: string;
764
765
  value: string;
@@ -780,7 +781,7 @@ declare const SysApprovalRequest: Omit<{
780
781
  generatedBy?: string | undefined;
781
782
  } | undefined;
782
783
  } | undefined;
783
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
784
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
784
785
  }, "requiresFeature">[] | undefined;
785
786
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
786
787
  order?: number | undefined;
@@ -808,7 +809,7 @@ declare const SysApprovalRequest: Omit<{
808
809
  generatedBy?: string | undefined;
809
810
  } | undefined;
810
811
  } | undefined;
811
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
812
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
812
813
  disabled?: boolean | {
813
814
  dialect: "cel" | "cron" | "template";
814
815
  source?: string | undefined;
@@ -838,7 +839,7 @@ declare const SysApprovalRequest: Omit<{
838
839
  bodyShape?: "flat" | {
839
840
  wrap: string;
840
841
  } | undefined;
841
- method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
842
+ method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
842
843
  bodyExtra?: Record<string, unknown> | undefined;
843
844
  mode?: "custom" | "delete" | "edit" | "create" | undefined;
844
845
  opensInNewTab?: boolean | undefined;
@@ -1031,7 +1032,7 @@ declare const SysApprovalRequest: Omit<{
1031
1032
  } | undefined;
1032
1033
  readonly scale?: number | undefined;
1033
1034
  readonly searchable?: boolean | undefined;
1034
- readonly unique?: boolean | "global" | undefined;
1035
+ readonly unique?: boolean | "global" | "organization" | undefined;
1035
1036
  readonly defaultValue?: unknown;
1036
1037
  readonly maxLength?: number | undefined;
1037
1038
  readonly minLength?: number | undefined;
@@ -1178,7 +1179,7 @@ declare const SysApprovalRequest: Omit<{
1178
1179
  } | undefined;
1179
1180
  readonly scale?: number | undefined;
1180
1181
  readonly searchable?: boolean | undefined;
1181
- readonly unique?: boolean | "global" | undefined;
1182
+ readonly unique?: boolean | "global" | "organization" | undefined;
1182
1183
  readonly defaultValue?: unknown;
1183
1184
  readonly maxLength?: number | undefined;
1184
1185
  readonly minLength?: number | undefined;
@@ -1316,7 +1317,7 @@ declare const SysApprovalRequest: Omit<{
1316
1317
  } | undefined;
1317
1318
  readonly scale?: number | undefined;
1318
1319
  readonly searchable?: boolean | undefined;
1319
- readonly unique?: boolean | "global" | undefined;
1320
+ readonly unique?: boolean | "global" | "organization" | undefined;
1320
1321
  readonly defaultValue?: unknown;
1321
1322
  readonly maxLength?: number | undefined;
1322
1323
  readonly minLength?: number | undefined;
@@ -1454,7 +1455,7 @@ declare const SysApprovalRequest: Omit<{
1454
1455
  } | undefined;
1455
1456
  readonly scale?: number | undefined;
1456
1457
  readonly searchable?: boolean | undefined;
1457
- readonly unique?: boolean | "global" | undefined;
1458
+ readonly unique?: boolean | "global" | "organization" | undefined;
1458
1459
  readonly defaultValue?: unknown;
1459
1460
  readonly maxLength?: number | undefined;
1460
1461
  readonly minLength?: number | undefined;
@@ -1600,7 +1601,7 @@ declare const SysApprovalRequest: Omit<{
1600
1601
  } | undefined;
1601
1602
  readonly scale?: number | undefined;
1602
1603
  readonly searchable?: boolean | undefined;
1603
- readonly unique?: boolean | "global" | undefined;
1604
+ readonly unique?: boolean | "global" | "organization" | undefined;
1604
1605
  readonly defaultValue?: unknown;
1605
1606
  readonly maxLength?: number | undefined;
1606
1607
  readonly minLength?: number | undefined;
@@ -1738,7 +1739,7 @@ declare const SysApprovalRequest: Omit<{
1738
1739
  } | undefined;
1739
1740
  readonly scale?: number | undefined;
1740
1741
  readonly searchable?: boolean | undefined;
1741
- readonly unique?: boolean | "global" | undefined;
1742
+ readonly unique?: boolean | "global" | "organization" | undefined;
1742
1743
  readonly defaultValue?: unknown;
1743
1744
  readonly maxLength?: number | undefined;
1744
1745
  readonly minLength?: number | undefined;
@@ -1876,7 +1877,7 @@ declare const SysApprovalRequest: Omit<{
1876
1877
  } | undefined;
1877
1878
  readonly scale?: number | undefined;
1878
1879
  readonly searchable?: boolean | undefined;
1879
- readonly unique?: boolean | "global" | undefined;
1880
+ readonly unique?: boolean | "global" | "organization" | undefined;
1880
1881
  readonly defaultValue?: unknown;
1881
1882
  readonly maxLength?: number | undefined;
1882
1883
  readonly minLength?: number | undefined;
@@ -2014,7 +2015,7 @@ declare const SysApprovalRequest: Omit<{
2014
2015
  } | undefined;
2015
2016
  readonly scale?: number | undefined;
2016
2017
  readonly searchable?: boolean | undefined;
2017
- readonly unique?: boolean | "global" | undefined;
2018
+ readonly unique?: boolean | "global" | "organization" | undefined;
2018
2019
  readonly defaultValue?: unknown;
2019
2020
  readonly maxLength?: number | undefined;
2020
2021
  readonly minLength?: number | undefined;
@@ -2152,7 +2153,7 @@ declare const SysApprovalRequest: Omit<{
2152
2153
  } | undefined;
2153
2154
  readonly scale?: number | undefined;
2154
2155
  readonly searchable?: boolean | undefined;
2155
- readonly unique?: boolean | "global" | undefined;
2156
+ readonly unique?: boolean | "global" | "organization" | undefined;
2156
2157
  readonly defaultValue?: unknown;
2157
2158
  readonly maxLength?: number | undefined;
2158
2159
  readonly minLength?: number | undefined;
@@ -2290,7 +2291,7 @@ declare const SysApprovalRequest: Omit<{
2290
2291
  } | undefined;
2291
2292
  readonly scale?: number | undefined;
2292
2293
  readonly searchable?: boolean | undefined;
2293
- readonly unique?: boolean | "global" | undefined;
2294
+ readonly unique?: boolean | "global" | "organization" | undefined;
2294
2295
  readonly defaultValue?: unknown;
2295
2296
  readonly maxLength?: number | undefined;
2296
2297
  readonly minLength?: number | undefined;
@@ -2428,7 +2429,7 @@ declare const SysApprovalRequest: Omit<{
2428
2429
  } | undefined;
2429
2430
  readonly scale?: number | undefined;
2430
2431
  readonly searchable?: boolean | undefined;
2431
- readonly unique?: boolean | "global" | undefined;
2432
+ readonly unique?: boolean | "global" | "organization" | undefined;
2432
2433
  readonly defaultValue?: unknown;
2433
2434
  readonly maxLength?: number | undefined;
2434
2435
  readonly minLength?: number | undefined;
@@ -2566,7 +2567,7 @@ declare const SysApprovalRequest: Omit<{
2566
2567
  } | undefined;
2567
2568
  readonly scale?: number | undefined;
2568
2569
  readonly searchable?: boolean | undefined;
2569
- readonly unique?: boolean | "global" | undefined;
2570
+ readonly unique?: boolean | "global" | "organization" | undefined;
2570
2571
  readonly defaultValue?: unknown;
2571
2572
  readonly maxLength?: number | undefined;
2572
2573
  readonly minLength?: number | undefined;
@@ -2704,7 +2705,7 @@ declare const SysApprovalRequest: Omit<{
2704
2705
  } | undefined;
2705
2706
  readonly scale?: number | undefined;
2706
2707
  readonly searchable?: boolean | undefined;
2707
- readonly unique?: boolean | "global" | undefined;
2708
+ readonly unique?: boolean | "global" | "organization" | undefined;
2708
2709
  readonly defaultValue?: unknown;
2709
2710
  readonly maxLength?: number | undefined;
2710
2711
  readonly minLength?: number | undefined;
@@ -2842,7 +2843,7 @@ declare const SysApprovalRequest: Omit<{
2842
2843
  } | undefined;
2843
2844
  readonly scale?: number | undefined;
2844
2845
  readonly searchable?: boolean | undefined;
2845
- readonly unique?: boolean | "global" | undefined;
2846
+ readonly unique?: boolean | "global" | "organization" | undefined;
2846
2847
  readonly defaultValue?: unknown;
2847
2848
  readonly maxLength?: number | undefined;
2848
2849
  readonly minLength?: number | undefined;
@@ -2980,7 +2981,7 @@ declare const SysApprovalRequest: Omit<{
2980
2981
  } | undefined;
2981
2982
  readonly scale?: number | undefined;
2982
2983
  readonly searchable?: boolean | undefined;
2983
- readonly unique?: boolean | "global" | undefined;
2984
+ readonly unique?: boolean | "global" | "organization" | undefined;
2984
2985
  readonly defaultValue?: unknown;
2985
2986
  readonly maxLength?: number | undefined;
2986
2987
  readonly minLength?: number | undefined;
@@ -3118,7 +3119,7 @@ declare const SysApprovalRequest: Omit<{
3118
3119
  } | undefined;
3119
3120
  readonly scale?: number | undefined;
3120
3121
  readonly searchable?: boolean | undefined;
3121
- readonly unique?: boolean | "global" | undefined;
3122
+ readonly unique?: boolean | "global" | "organization" | undefined;
3122
3123
  readonly defaultValue?: unknown;
3123
3124
  readonly maxLength?: number | undefined;
3124
3125
  readonly minLength?: number | undefined;
@@ -3375,11 +3376,11 @@ declare const SysApprovalAction: Omit<{
3375
3376
  isSystem: boolean;
3376
3377
  datasource: string;
3377
3378
  fields: Record<string, {
3378
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
3379
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
3379
3380
  required: boolean;
3380
3381
  searchable: boolean;
3381
3382
  multiple: boolean;
3382
- unique: boolean | "global";
3383
+ unique: boolean | "global" | "organization";
3383
3384
  deleteBehavior: "set_null" | "cascade" | "restrict";
3384
3385
  hidden: boolean;
3385
3386
  readonly: boolean;
@@ -3658,10 +3659,10 @@ declare const SysApprovalAction: Omit<{
3658
3659
  } | undefined;
3659
3660
  indexes?: {
3660
3661
  fields: string[];
3661
- type: "hash" | "btree" | "gin" | "gist" | "fulltext";
3662
- unique: boolean | "global";
3662
+ unique: boolean | "global" | "organization";
3663
3663
  name?: string | undefined;
3664
- partial?: string | undefined;
3664
+ type?: undefined;
3665
+ partial?: undefined;
3665
3666
  }[] | undefined;
3666
3667
  fieldGroups?: {
3667
3668
  key: string;
@@ -3675,7 +3676,7 @@ declare const SysApprovalAction: Omit<{
3675
3676
  }[] | undefined;
3676
3677
  tenancy?: {
3677
3678
  enabled: boolean;
3678
- tenantField: string;
3679
+ tenantField?: string | undefined;
3679
3680
  } | undefined;
3680
3681
  access?: {
3681
3682
  default: "public" | "private";
@@ -3790,14 +3791,14 @@ declare const SysApprovalAction: Omit<{
3790
3791
  provider: "api";
3791
3792
  read?: {
3792
3793
  url: string;
3793
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
3794
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3794
3795
  headers?: Record<string, string> | undefined;
3795
3796
  params?: Record<string, unknown> | undefined;
3796
3797
  body?: unknown;
3797
3798
  } | undefined;
3798
3799
  write?: {
3799
3800
  url: string;
3800
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
3801
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
3801
3802
  headers?: Record<string, string> | undefined;
3802
3803
  params?: Record<string, unknown> | undefined;
3803
3804
  body?: unknown;
@@ -3966,12 +3967,13 @@ declare const SysApprovalAction: Omit<{
3966
3967
  params?: {
3967
3968
  [x: string]: unknown;
3968
3969
  name: string;
3969
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
3970
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
3970
3971
  label?: string | undefined;
3971
3972
  help?: string | undefined;
3972
3973
  required?: boolean | undefined;
3973
3974
  default?: unknown;
3974
3975
  options?: {
3976
+ [x: string]: unknown;
3975
3977
  label: string;
3976
3978
  value: string | number | boolean;
3977
3979
  }[] | undefined;
@@ -4104,7 +4106,7 @@ declare const SysApprovalAction: Omit<{
4104
4106
  field?: string | undefined;
4105
4107
  objectOverride?: string | undefined;
4106
4108
  label?: string | undefined;
4107
- type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
4109
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
4108
4110
  options?: {
4109
4111
  label: string;
4110
4112
  value: string;
@@ -4126,7 +4128,7 @@ declare const SysApprovalAction: Omit<{
4126
4128
  generatedBy?: string | undefined;
4127
4129
  } | undefined;
4128
4130
  } | undefined;
4129
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
4131
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
4130
4132
  }, "requiresFeature">[] | undefined;
4131
4133
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
4132
4134
  order?: number | undefined;
@@ -4154,7 +4156,7 @@ declare const SysApprovalAction: Omit<{
4154
4156
  generatedBy?: string | undefined;
4155
4157
  } | undefined;
4156
4158
  } | undefined;
4157
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
4159
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
4158
4160
  disabled?: boolean | {
4159
4161
  dialect: "cel" | "cron" | "template";
4160
4162
  source?: string | undefined;
@@ -4184,7 +4186,7 @@ declare const SysApprovalAction: Omit<{
4184
4186
  bodyShape?: "flat" | {
4185
4187
  wrap: string;
4186
4188
  } | undefined;
4187
- method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
4189
+ method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
4188
4190
  bodyExtra?: Record<string, unknown> | undefined;
4189
4191
  mode?: "custom" | "delete" | "edit" | "create" | undefined;
4190
4192
  opensInNewTab?: boolean | undefined;
@@ -4352,7 +4354,7 @@ declare const SysApprovalAction: Omit<{
4352
4354
  } | undefined;
4353
4355
  readonly scale?: number | undefined;
4354
4356
  readonly searchable?: boolean | undefined;
4355
- readonly unique?: boolean | "global" | undefined;
4357
+ readonly unique?: boolean | "global" | "organization" | undefined;
4356
4358
  readonly defaultValue?: unknown;
4357
4359
  readonly maxLength?: number | undefined;
4358
4360
  readonly minLength?: number | undefined;
@@ -4507,7 +4509,7 @@ declare const SysApprovalAction: Omit<{
4507
4509
  } | undefined;
4508
4510
  readonly scale?: number | undefined;
4509
4511
  readonly searchable?: boolean | undefined;
4510
- readonly unique?: boolean | "global" | undefined;
4512
+ readonly unique?: boolean | "global" | "organization" | undefined;
4511
4513
  readonly defaultValue?: unknown;
4512
4514
  readonly maxLength?: number | undefined;
4513
4515
  readonly minLength?: number | undefined;
@@ -4645,7 +4647,7 @@ declare const SysApprovalAction: Omit<{
4645
4647
  } | undefined;
4646
4648
  readonly scale?: number | undefined;
4647
4649
  readonly searchable?: boolean | undefined;
4648
- readonly unique?: boolean | "global" | undefined;
4650
+ readonly unique?: boolean | "global" | "organization" | undefined;
4649
4651
  readonly defaultValue?: unknown;
4650
4652
  readonly maxLength?: number | undefined;
4651
4653
  readonly minLength?: number | undefined;
@@ -4783,7 +4785,7 @@ declare const SysApprovalAction: Omit<{
4783
4785
  } | undefined;
4784
4786
  readonly scale?: number | undefined;
4785
4787
  readonly searchable?: boolean | undefined;
4786
- readonly unique?: boolean | "global" | undefined;
4788
+ readonly unique?: boolean | "global" | "organization" | undefined;
4787
4789
  readonly defaultValue?: unknown;
4788
4790
  readonly maxLength?: number | undefined;
4789
4791
  readonly minLength?: number | undefined;
@@ -4929,7 +4931,7 @@ declare const SysApprovalAction: Omit<{
4929
4931
  } | undefined;
4930
4932
  readonly scale?: number | undefined;
4931
4933
  readonly searchable?: boolean | undefined;
4932
- readonly unique?: boolean | "global" | undefined;
4934
+ readonly unique?: boolean | "global" | "organization" | undefined;
4933
4935
  readonly defaultValue?: unknown;
4934
4936
  readonly maxLength?: number | undefined;
4935
4937
  readonly minLength?: number | undefined;
@@ -5067,7 +5069,7 @@ declare const SysApprovalAction: Omit<{
5067
5069
  } | undefined;
5068
5070
  readonly scale?: number | undefined;
5069
5071
  readonly searchable?: boolean | undefined;
5070
- readonly unique?: boolean | "global" | undefined;
5072
+ readonly unique?: boolean | "global" | "organization" | undefined;
5071
5073
  readonly defaultValue?: unknown;
5072
5074
  readonly maxLength?: number | undefined;
5073
5075
  readonly minLength?: number | undefined;
@@ -5223,7 +5225,7 @@ declare const SysApprovalAction: Omit<{
5223
5225
  } | undefined;
5224
5226
  readonly scale?: number | undefined;
5225
5227
  readonly searchable?: boolean | undefined;
5226
- readonly unique?: boolean | "global" | undefined;
5228
+ readonly unique?: boolean | "global" | "organization" | undefined;
5227
5229
  readonly defaultValue?: unknown;
5228
5230
  readonly maxLength?: number | undefined;
5229
5231
  readonly minLength?: number | undefined;
@@ -5361,7 +5363,7 @@ declare const SysApprovalAction: Omit<{
5361
5363
  } | undefined;
5362
5364
  readonly scale?: number | undefined;
5363
5365
  readonly searchable?: boolean | undefined;
5364
- readonly unique?: boolean | "global" | undefined;
5366
+ readonly unique?: boolean | "global" | "organization" | undefined;
5365
5367
  readonly defaultValue?: unknown;
5366
5368
  readonly maxLength?: number | undefined;
5367
5369
  readonly minLength?: number | undefined;
@@ -5466,11 +5468,11 @@ declare const SysApprovalApprover: Omit<{
5466
5468
  isSystem: boolean;
5467
5469
  datasource: string;
5468
5470
  fields: Record<string, {
5469
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
5471
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
5470
5472
  required: boolean;
5471
5473
  searchable: boolean;
5472
5474
  multiple: boolean;
5473
- unique: boolean | "global";
5475
+ unique: boolean | "global" | "organization";
5474
5476
  deleteBehavior: "set_null" | "cascade" | "restrict";
5475
5477
  hidden: boolean;
5476
5478
  readonly: boolean;
@@ -5749,10 +5751,10 @@ declare const SysApprovalApprover: Omit<{
5749
5751
  } | undefined;
5750
5752
  indexes?: {
5751
5753
  fields: string[];
5752
- type: "hash" | "btree" | "gin" | "gist" | "fulltext";
5753
- unique: boolean | "global";
5754
+ unique: boolean | "global" | "organization";
5754
5755
  name?: string | undefined;
5755
- partial?: string | undefined;
5756
+ type?: undefined;
5757
+ partial?: undefined;
5756
5758
  }[] | undefined;
5757
5759
  fieldGroups?: {
5758
5760
  key: string;
@@ -5766,7 +5768,7 @@ declare const SysApprovalApprover: Omit<{
5766
5768
  }[] | undefined;
5767
5769
  tenancy?: {
5768
5770
  enabled: boolean;
5769
- tenantField: string;
5771
+ tenantField?: string | undefined;
5770
5772
  } | undefined;
5771
5773
  access?: {
5772
5774
  default: "public" | "private";
@@ -5881,14 +5883,14 @@ declare const SysApprovalApprover: Omit<{
5881
5883
  provider: "api";
5882
5884
  read?: {
5883
5885
  url: string;
5884
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
5886
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
5885
5887
  headers?: Record<string, string> | undefined;
5886
5888
  params?: Record<string, unknown> | undefined;
5887
5889
  body?: unknown;
5888
5890
  } | undefined;
5889
5891
  write?: {
5890
5892
  url: string;
5891
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
5893
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
5892
5894
  headers?: Record<string, string> | undefined;
5893
5895
  params?: Record<string, unknown> | undefined;
5894
5896
  body?: unknown;
@@ -6057,12 +6059,13 @@ declare const SysApprovalApprover: Omit<{
6057
6059
  params?: {
6058
6060
  [x: string]: unknown;
6059
6061
  name: string;
6060
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
6062
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
6061
6063
  label?: string | undefined;
6062
6064
  help?: string | undefined;
6063
6065
  required?: boolean | undefined;
6064
6066
  default?: unknown;
6065
6067
  options?: {
6068
+ [x: string]: unknown;
6066
6069
  label: string;
6067
6070
  value: string | number | boolean;
6068
6071
  }[] | undefined;
@@ -6195,7 +6198,7 @@ declare const SysApprovalApprover: Omit<{
6195
6198
  field?: string | undefined;
6196
6199
  objectOverride?: string | undefined;
6197
6200
  label?: string | undefined;
6198
- type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
6201
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
6199
6202
  options?: {
6200
6203
  label: string;
6201
6204
  value: string;
@@ -6217,7 +6220,7 @@ declare const SysApprovalApprover: Omit<{
6217
6220
  generatedBy?: string | undefined;
6218
6221
  } | undefined;
6219
6222
  } | undefined;
6220
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
6223
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
6221
6224
  }, "requiresFeature">[] | undefined;
6222
6225
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
6223
6226
  order?: number | undefined;
@@ -6245,7 +6248,7 @@ declare const SysApprovalApprover: Omit<{
6245
6248
  generatedBy?: string | undefined;
6246
6249
  } | undefined;
6247
6250
  } | undefined;
6248
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
6251
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
6249
6252
  disabled?: boolean | {
6250
6253
  dialect: "cel" | "cron" | "template";
6251
6254
  source?: string | undefined;
@@ -6275,7 +6278,7 @@ declare const SysApprovalApprover: Omit<{
6275
6278
  bodyShape?: "flat" | {
6276
6279
  wrap: string;
6277
6280
  } | undefined;
6278
- method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
6281
+ method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
6279
6282
  bodyExtra?: Record<string, unknown> | undefined;
6280
6283
  mode?: "custom" | "delete" | "edit" | "create" | undefined;
6281
6284
  opensInNewTab?: boolean | undefined;
@@ -6375,7 +6378,7 @@ declare const SysApprovalApprover: Omit<{
6375
6378
  } | undefined;
6376
6379
  readonly scale?: number | undefined;
6377
6380
  readonly searchable?: boolean | undefined;
6378
- readonly unique?: boolean | "global" | undefined;
6381
+ readonly unique?: boolean | "global" | "organization" | undefined;
6379
6382
  readonly defaultValue?: unknown;
6380
6383
  readonly maxLength?: number | undefined;
6381
6384
  readonly minLength?: number | undefined;
@@ -6530,7 +6533,7 @@ declare const SysApprovalApprover: Omit<{
6530
6533
  } | undefined;
6531
6534
  readonly scale?: number | undefined;
6532
6535
  readonly searchable?: boolean | undefined;
6533
- readonly unique?: boolean | "global" | undefined;
6536
+ readonly unique?: boolean | "global" | "organization" | undefined;
6534
6537
  readonly defaultValue?: unknown;
6535
6538
  readonly maxLength?: number | undefined;
6536
6539
  readonly minLength?: number | undefined;
@@ -6668,7 +6671,7 @@ declare const SysApprovalApprover: Omit<{
6668
6671
  } | undefined;
6669
6672
  readonly scale?: number | undefined;
6670
6673
  readonly searchable?: boolean | undefined;
6671
- readonly unique?: boolean | "global" | undefined;
6674
+ readonly unique?: boolean | "global" | "organization" | undefined;
6672
6675
  readonly defaultValue?: unknown;
6673
6676
  readonly maxLength?: number | undefined;
6674
6677
  readonly minLength?: number | undefined;
@@ -6776,11 +6779,11 @@ declare const SysApprovalDelegation: Omit<{
6776
6779
  isSystem: boolean;
6777
6780
  datasource: string;
6778
6781
  fields: Record<string, {
6779
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
6782
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
6780
6783
  required: boolean;
6781
6784
  searchable: boolean;
6782
6785
  multiple: boolean;
6783
- unique: boolean | "global";
6786
+ unique: boolean | "global" | "organization";
6784
6787
  deleteBehavior: "set_null" | "cascade" | "restrict";
6785
6788
  hidden: boolean;
6786
6789
  readonly: boolean;
@@ -7059,10 +7062,10 @@ declare const SysApprovalDelegation: Omit<{
7059
7062
  } | undefined;
7060
7063
  indexes?: {
7061
7064
  fields: string[];
7062
- type: "hash" | "btree" | "gin" | "gist" | "fulltext";
7063
- unique: boolean | "global";
7065
+ unique: boolean | "global" | "organization";
7064
7066
  name?: string | undefined;
7065
- partial?: string | undefined;
7067
+ type?: undefined;
7068
+ partial?: undefined;
7066
7069
  }[] | undefined;
7067
7070
  fieldGroups?: {
7068
7071
  key: string;
@@ -7076,7 +7079,7 @@ declare const SysApprovalDelegation: Omit<{
7076
7079
  }[] | undefined;
7077
7080
  tenancy?: {
7078
7081
  enabled: boolean;
7079
- tenantField: string;
7082
+ tenantField?: string | undefined;
7080
7083
  } | undefined;
7081
7084
  access?: {
7082
7085
  default: "public" | "private";
@@ -7191,14 +7194,14 @@ declare const SysApprovalDelegation: Omit<{
7191
7194
  provider: "api";
7192
7195
  read?: {
7193
7196
  url: string;
7194
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
7197
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
7195
7198
  headers?: Record<string, string> | undefined;
7196
7199
  params?: Record<string, unknown> | undefined;
7197
7200
  body?: unknown;
7198
7201
  } | undefined;
7199
7202
  write?: {
7200
7203
  url: string;
7201
- method: "POST" | "PATCH" | "PUT" | "DELETE" | "GET";
7204
+ method: "GET" | "POST" | "PUT" | "DELETE" | "PATCH";
7202
7205
  headers?: Record<string, string> | undefined;
7203
7206
  params?: Record<string, unknown> | undefined;
7204
7207
  body?: unknown;
@@ -7367,12 +7370,13 @@ declare const SysApprovalDelegation: Omit<{
7367
7370
  params?: {
7368
7371
  [x: string]: unknown;
7369
7372
  name: string;
7370
- type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
7373
+ type: "number" | "boolean" | "user" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector";
7371
7374
  label?: string | undefined;
7372
7375
  help?: string | undefined;
7373
7376
  required?: boolean | undefined;
7374
7377
  default?: unknown;
7375
7378
  options?: {
7379
+ [x: string]: unknown;
7376
7380
  label: string;
7377
7381
  value: string | number | boolean;
7378
7382
  }[] | undefined;
@@ -7505,7 +7509,7 @@ declare const SysApprovalDelegation: Omit<{
7505
7509
  field?: string | undefined;
7506
7510
  objectOverride?: string | undefined;
7507
7511
  label?: string | undefined;
7508
- type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "formula" | "text" | "textarea" | "email" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "time" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
7512
+ type?: "number" | "boolean" | "date" | "record" | "file" | "code" | "datetime" | "signature" | "progress" | "url" | "email" | "time" | "formula" | "text" | "textarea" | "phone" | "password" | "secret" | "markdown" | "html" | "richtext" | "currency" | "percent" | "toggle" | "select" | "multiselect" | "radio" | "checkboxes" | "lookup" | "master_detail" | "tree" | "user" | "image" | "avatar" | "video" | "audio" | "summary" | "autonumber" | "composite" | "repeater" | "location" | "address" | "json" | "color" | "rating" | "slider" | "qrcode" | "tags" | "vector" | undefined;
7509
7513
  options?: {
7510
7514
  label: string;
7511
7515
  value: string;
@@ -7527,7 +7531,7 @@ declare const SysApprovalDelegation: Omit<{
7527
7531
  generatedBy?: string | undefined;
7528
7532
  } | undefined;
7529
7533
  } | undefined;
7530
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
7534
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
7531
7535
  }, "requiresFeature">[] | undefined;
7532
7536
  variant?: "link" | "primary" | "secondary" | "danger" | "ghost" | undefined;
7533
7537
  order?: number | undefined;
@@ -7555,7 +7559,7 @@ declare const SysApprovalDelegation: Omit<{
7555
7559
  generatedBy?: string | undefined;
7556
7560
  } | undefined;
7557
7561
  } | undefined;
7558
- requiresFeature?: "twoFactor" | "passkeys" | "magicLink" | "organization" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
7562
+ requiresFeature?: "organization" | "twoFactor" | "passkeys" | "magicLink" | "multiOrgEnabled" | "degradedTenancy" | "oidcProvider" | "sso" | "ssoEnforced" | "deviceAuthorization" | "admin" | "phoneNumber" | "phoneNumberOtp" | undefined;
7559
7563
  disabled?: boolean | {
7560
7564
  dialect: "cel" | "cron" | "template";
7561
7565
  source?: string | undefined;
@@ -7585,7 +7589,7 @@ declare const SysApprovalDelegation: Omit<{
7585
7589
  bodyShape?: "flat" | {
7586
7590
  wrap: string;
7587
7591
  } | undefined;
7588
- method?: "POST" | "PATCH" | "PUT" | "DELETE" | undefined;
7592
+ method?: "POST" | "PUT" | "DELETE" | "PATCH" | undefined;
7589
7593
  bodyExtra?: Record<string, unknown> | undefined;
7590
7594
  mode?: "custom" | "delete" | "edit" | "create" | undefined;
7591
7595
  opensInNewTab?: boolean | undefined;
@@ -7706,7 +7710,7 @@ declare const SysApprovalDelegation: Omit<{
7706
7710
  } | undefined;
7707
7711
  readonly scale?: number | undefined;
7708
7712
  readonly searchable?: boolean | undefined;
7709
- readonly unique?: boolean | "global" | undefined;
7713
+ readonly unique?: boolean | "global" | "organization" | undefined;
7710
7714
  readonly defaultValue?: unknown;
7711
7715
  readonly maxLength?: number | undefined;
7712
7716
  readonly minLength?: number | undefined;
@@ -7862,7 +7866,7 @@ declare const SysApprovalDelegation: Omit<{
7862
7866
  } | undefined;
7863
7867
  readonly scale?: number | undefined;
7864
7868
  readonly searchable?: boolean | undefined;
7865
- readonly unique?: boolean | "global" | undefined;
7869
+ readonly unique?: boolean | "global" | "organization" | undefined;
7866
7870
  readonly defaultValue?: unknown;
7867
7871
  readonly maxLength?: number | undefined;
7868
7872
  readonly minLength?: number | undefined;
@@ -8000,7 +8004,7 @@ declare const SysApprovalDelegation: Omit<{
8000
8004
  } | undefined;
8001
8005
  readonly scale?: number | undefined;
8002
8006
  readonly searchable?: boolean | undefined;
8003
- readonly unique?: boolean | "global" | undefined;
8007
+ readonly unique?: boolean | "global" | "organization" | undefined;
8004
8008
  readonly defaultValue?: unknown;
8005
8009
  readonly maxLength?: number | undefined;
8006
8010
  readonly minLength?: number | undefined;
@@ -8138,7 +8142,7 @@ declare const SysApprovalDelegation: Omit<{
8138
8142
  } | undefined;
8139
8143
  readonly scale?: number | undefined;
8140
8144
  readonly searchable?: boolean | undefined;
8141
- readonly unique?: boolean | "global" | undefined;
8145
+ readonly unique?: boolean | "global" | "organization" | undefined;
8142
8146
  readonly defaultValue?: unknown;
8143
8147
  readonly maxLength?: number | undefined;
8144
8148
  readonly minLength?: number | undefined;
@@ -8285,7 +8289,7 @@ declare const SysApprovalDelegation: Omit<{
8285
8289
  } | undefined;
8286
8290
  readonly scale?: number | undefined;
8287
8291
  readonly searchable?: boolean | undefined;
8288
- readonly unique?: boolean | "global" | undefined;
8292
+ readonly unique?: boolean | "global" | "organization" | undefined;
8289
8293
  readonly defaultValue?: unknown;
8290
8294
  readonly maxLength?: number | undefined;
8291
8295
  readonly minLength?: number | undefined;
@@ -8423,7 +8427,7 @@ declare const SysApprovalDelegation: Omit<{
8423
8427
  } | undefined;
8424
8428
  readonly scale?: number | undefined;
8425
8429
  readonly searchable?: boolean | undefined;
8426
- readonly unique?: boolean | "global" | undefined;
8430
+ readonly unique?: boolean | "global" | "organization" | undefined;
8427
8431
  readonly defaultValue?: unknown;
8428
8432
  readonly maxLength?: number | undefined;
8429
8433
  readonly minLength?: number | undefined;
@@ -8552,7 +8556,7 @@ interface ApprovalResumeSurface {
8552
8556
  getFlow?(name: string): Promise<any | null>;
8553
8557
  /**
8554
8558
  * Terminally cancel a suspended run (ADR-0044). Used when a recall lands
8555
- * during a revision window — the run is paused at the revise wait node,
8559
+ * during a revision window — the run is paused at the revise-window node,
8556
8560
  * which has no reject edge to resume down.
8557
8561
  */
8558
8562
  cancelRun?(runId: string, reason?: string): Promise<unknown>;
@@ -9054,6 +9058,39 @@ declare class ApprovalService implements IApprovalService {
9054
9058
  * failure and reports it loudly.
9055
9059
  */
9056
9060
  private assertRunResumable;
9061
+ /**
9062
+ * The run named by a recorded outcome cannot be advanced at all, because no
9063
+ * automation engine in THIS process implements the capability it needs
9064
+ * (#4420). Returns the reason, or `undefined` when the capability is there
9065
+ * and the caller should proceed.
9066
+ *
9067
+ * **Why this is not simply "not our problem".** Approvals is legitimately
9068
+ * usable with no engine attached, and {@link assertRunResumable} deliberately
9069
+ * stays out of the way for that reason. But "no engine is attached" and "no
9070
+ * run is waiting" are different facts, and only the second is benign: a
9071
+ * `flow_run_id` on the row is the request's OWN declaration that a run is
9072
+ * parked on this decision. Deciding it in a process that cannot resume it
9073
+ * reproduces #4420's reported half-state exactly — a durable decision, a
9074
+ * mirrored status field frozen mid-workflow, a flow parked forever — while
9075
+ * the caller is answered HTTP 200. The engine-less composition is the one
9076
+ * path the #4420 fix left silent, because every guard it added hangs off an
9077
+ * engine that is not there.
9078
+ *
9079
+ * **So the outcome stands, but it is never silent.** Rolling the decision
9080
+ * back is not on the table (a human really did decide, and the row is
9081
+ * already durable), and refusing every such call would break the standalone
9082
+ * compositions the pre-flight protects. What is owed is the report: `error`
9083
+ * level per AGENTS.md's durability rule — persisted state and runtime state
9084
+ * disagree and nothing looks broken from the outside — plus a `resumeError`
9085
+ * on the response, so `resumed: false` carries its reason instead of leaving
9086
+ * the caller to guess whether a resume was even attempted.
9087
+ *
9088
+ * Reuses the registered `RESUME_FAILED` code (ADR-0112 ledger) and
9089
+ * {@link serviceResume}'s message shape: the fact being reported — an
9090
+ * outcome recorded whose run did not advance — is the same one, and this
9091
+ * needs no new vocabulary of its own.
9092
+ */
9093
+ private missingRunCapability;
9057
9094
  /**
9058
9095
  * Resume the run behind an outcome that has ALREADY been written down, and
9059
9096
  * fail loudly when it cannot be (#4420).
@@ -9065,7 +9102,10 @@ declare class ApprovalService implements IApprovalService {
9065
9102
  * everything it catches never reaches a write.
9066
9103
  *
9067
9104
  * `RESUME_IN_PROGRESS` is the exception — a concurrent resume is already
9068
- * advancing the run, so the outcome stands and only `resumed` is false.
9105
+ * advancing the run, so the outcome stands and only `resumed` is false. So
9106
+ * is a composition with no engine at all ({@link missingRunCapability}),
9107
+ * which cannot throw without breaking every standalone deployment — it
9108
+ * reports through `resumeError` instead.
9069
9109
  *
9070
9110
  * @param what - how the recorded outcome reads in the error, e.g.
9071
9111
  * `"the approve decision"`.
@@ -9095,7 +9135,7 @@ declare class ApprovalService implements IApprovalService {
9095
9135
  *
9096
9136
  * ADR-0044: also valid on the LATEST `returned` request of its run — the
9097
9137
  * submitter abandons the revision window instead of resubmitting. The run
9098
- * is then paused at the revise wait node (no reject edge), so it is
9138
+ * is then paused at the revise-window node (no reject edge), so it is
9099
9139
  * terminally cancelled via {@link ApprovalResumeSurface.cancelRun} rather
9100
9140
  * than resumed.
9101
9141
  */
@@ -9104,7 +9144,7 @@ declare class ApprovalService implements IApprovalService {
9104
9144
  * ADR-0044 send back for revision. Finalises the pending request as
9105
9145
  * `returned` (a third terminal state — approver-initiated rework, distinct
9106
9146
  * from submitter-initiated `recalled`) and resumes the owning flow run down
9107
- * its `revise` edge to a wait point: the record lock (keyed on `pending`)
9147
+ * its `revise` edge to the revise window: the record lock (keyed on `pending`)
9108
9148
  * releases, the submitter reworks the data, then {@link resubmit}s.
9109
9149
  *
9110
9150
  * Requires the approval node to declare a `revise` out-edge — validated
@@ -9117,7 +9157,7 @@ declare class ApprovalService implements IApprovalService {
9117
9157
  /**
9118
9158
  * ADR-0044 resubmit after rework. Valid on the LATEST `returned` request of
9119
9159
  * its run, submitter-only. Audits `resubmit` on the returned (round-N)
9120
- * request and resumes the run from the revise wait node; traversal walks
9160
+ * request and resumes the run from the revise-window node; traversal walks
9121
9161
  * the declared back-edge into the approval node, whose executor opens the
9122
9162
  * round-N+1 request — fresh approver slate, record re-locks.
9123
9163
  */
@@ -9127,6 +9167,21 @@ declare class ApprovalService implements IApprovalService {
9127
9167
  * out-edge before send-back is allowed — the engine's branch-label fallback
9128
9168
  * (no matching label ⇒ ALL out-edges) must never be reachable from a user
9129
9169
  * action.
9170
+ *
9171
+ * Since #3823 it also checks WHAT that edge targets: the revise window must
9172
+ * be an `approval_revise` node, the pause this service owns. ADR-0044 D3
9173
+ * pointed the edge at an ordinary `wait`, which is `resumeAuthority: 'any'`,
9174
+ * so a raw engine resume walked the resubmit back-edge with no submitter
9175
+ * check, no `resubmit` audit row, and — with a pending request colliding on
9176
+ * the record — destroyed the run by consuming the suspension before the
9177
+ * re-entry failed. Refused HERE, before any mutation, for the same reason the
9178
+ * missing-edge check is: a run must never be parked in a revise window that
9179
+ * something other than {@link resubmit} can advance.
9180
+ *
9181
+ * Also refused at authoring time — `flow-approval-revise-target-not-service-owned`
9182
+ * in `@objectstack/lint` gates `os build` / `os validate` / `os lint` and the
9183
+ * runtime metadata publish path — so a flow reaching this check at all is one
9184
+ * published before that gate existed.
9130
9185
  */
9131
9186
  private assertReviseEdge;
9132
9187
  /**
@@ -9539,15 +9594,45 @@ interface ApprovalAutomationSurface {
9539
9594
  branchLabel?: string;
9540
9595
  }): Promise<unknown>;
9541
9596
  }
9542
- interface MinimalLogger {
9597
+ interface MinimalLogger$1 {
9543
9598
  info?: (msg: any, ...rest: any[]) => void;
9544
9599
  warn?: (msg: any, ...rest: any[]) => void;
9545
9600
  }
9546
9601
  /**
9547
- * Register the `approval` node executor on the automation engine. Idempotent at
9548
- * the engine level (re-registering replaces). Safe to skip when no automation
9602
+ * Register the `approval` node executor on the automation engine, plus the
9603
+ * `approval_revise` window the ADR-0044 send-back parks on. Idempotent at the
9604
+ * engine level (re-registering replaces). Safe to skip when no automation
9549
9605
  * service is present.
9606
+ *
9607
+ * The two register together deliberately (#3823): send-back resumes the run
9608
+ * down the `revise` edge onto the revise-window node, and `sendBack` refuses a
9609
+ * flow whose revise edge targets anything else — so an engine holding the
9610
+ * `approval` node without the revise window would accept approvals whose
9611
+ * send-back can never run.
9612
+ */
9613
+ declare function registerApprovalNode(automation: ApprovalAutomationSurface, service: ApprovalService, logger?: MinimalLogger$1): void;
9614
+
9615
+ interface MinimalLogger {
9616
+ info?: (msg: any, ...rest: any[]) => void;
9617
+ warn?: (msg: any, ...rest: any[]) => void;
9618
+ }
9619
+ /**
9620
+ * Correlation prefix for a revise-window suspension — what the suspended-run
9621
+ * record carries so an operator (or `listSuspendedRuns`) can tell a revise
9622
+ * window from a timer or signal wait at a glance.
9623
+ *
9624
+ * Deliberately NOT one of the engine's linked-run prefixes (`subflow:` /
9625
+ * `map:`): those mean "this run is waiting on another run", and the resume gate
9626
+ * follows them to judge the child's node. A revise window waits on a person.
9627
+ */
9628
+ declare const APPROVAL_REVISE_CORRELATION_PREFIX = "approval_revise:";
9629
+ /**
9630
+ * Register the `approval_revise` node executor. Called from
9631
+ * {@link registerApprovalNode} rather than wired separately on purpose: a
9632
+ * deployment that has the `approval` node must have this one too, or every
9633
+ * send-back in it is refused at runtime — there is no half of this feature
9634
+ * worth installing.
9550
9635
  */
9551
- declare function registerApprovalNode(automation: ApprovalAutomationSurface, service: ApprovalService, logger?: MinimalLogger): void;
9636
+ declare function registerApprovalReviseNode(automation: ApprovalAutomationSurface, logger?: MinimalLogger): void;
9552
9637
 
9553
- export { type ApprovalAutomationSurface, type ApprovalClock, type ApprovalEngine, type ApprovalNodeAutoOutcome, type ApprovalResumeSurface, ApprovalService, type ApprovalServiceOptions, type ApprovalsPluginOptions, ApprovalsServicePlugin, type ApproverExpressionContext, type StrandedApprovalRequest, SysApprovalAction, SysApprovalApprover, SysApprovalDelegation, SysApprovalRequest, registerApprovalNode };
9638
+ export { APPROVAL_REVISE_CORRELATION_PREFIX, type ApprovalAutomationSurface, type ApprovalClock, type ApprovalEngine, type ApprovalNodeAutoOutcome, type ApprovalResumeSurface, ApprovalService, type ApprovalServiceOptions, type ApprovalsPluginOptions, ApprovalsServicePlugin, type ApproverExpressionContext, type StrandedApprovalRequest, SysApprovalAction, SysApprovalApprover, SysApprovalDelegation, SysApprovalRequest, registerApprovalNode, registerApprovalReviseNode };