@standards/schema 1.0.0-alpha.442 → 1.0.0-alpha.444

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 (36) hide show
  1. package/dist/{all-CQpxJzde.js → all-BrGOpgV8.js} +1 -1
  2. package/dist/{all-BYmKV0dE.mjs → all-Df9IeCkI.mjs} +1 -1
  3. package/dist/api/index.d.mts +321 -31
  4. package/dist/api/index.d.ts +321 -31
  5. package/dist/api/index.js +1 -1
  6. package/dist/api/index.mjs +1 -1
  7. package/dist/attribute-validators-BJdOkURX.mjs +11 -0
  8. package/dist/attribute-validators-rgM_bLG1.js +11 -0
  9. package/dist/{exceptions-uND1wZ9X.d.ts → exceptions-YHdKk5N8.d.ts} +8 -0
  10. package/dist/{exceptions-lFvB7G4Q.d.mts → exceptions-zQlC2r1F.d.mts} +8 -0
  11. package/dist/exceptions.d.mts +1 -1
  12. package/dist/exceptions.d.ts +1 -1
  13. package/dist/exceptions.js +1 -1
  14. package/dist/exceptions.mjs +1 -1
  15. package/dist/{index-CTEU8_BN.d.ts → index-BxDb1xz7.d.ts} +505 -162
  16. package/dist/index.d.mts +4 -4
  17. package/dist/index.d.ts +4 -4
  18. package/dist/index.js +2 -2
  19. package/dist/index.mjs +2 -2
  20. package/dist/record-operation-BrYpYAKR.js +2 -0
  21. package/dist/record-operation-DSjDUW-6.mjs +2 -0
  22. package/dist/{record-query-BY-r2Ck3.d.mts → record-query-CJVicxN7.d.mts} +505 -162
  23. package/dist/{utils-PmF7E7_-.d.mts → utils-BZMgedee.d.mts} +1 -1
  24. package/dist/{utils-Cn0G_X1P.d.ts → utils-CwQlKDYz.d.ts} +1 -1
  25. package/dist/utils.d.mts +1 -1
  26. package/dist/utils.d.ts +1 -1
  27. package/dist/validation/all.d.mts +1 -1
  28. package/dist/validation/all.d.ts +1 -1
  29. package/dist/validation/all.js +1 -1
  30. package/dist/validation/all.mjs +1 -1
  31. package/openapi.json +779 -54
  32. package/package.json +2 -2
  33. package/dist/attribute-validators-BndMvVLT.mjs +0 -11
  34. package/dist/attribute-validators-CYrBg3Iz.js +0 -11
  35. package/dist/record-operation-DBY5XtZW.mjs +0 -2
  36. package/dist/record-operation-Dqvgxmnz.js +0 -2
@@ -1,7 +1,7 @@
1
1
 
2
2
  import "./zod-locale.js";
3
- import { TenantId, Uuid } from "./utils-Cn0G_X1P.js";
4
- import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-uND1wZ9X.js";
3
+ import { TenantId, Uuid } from "./utils-CwQlKDYz.js";
4
+ import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-YHdKk5N8.js";
5
5
  import * as z$2 from "zod";
6
6
  import z, { z as z$1 } from "zod";
7
7
  import { ColorId, CountryIso3, CurrencyCode, IconName } from "@standards/constants";
@@ -349,6 +349,13 @@ export declare const PERMISSION_CATALOG: readonly [{
349
349
  readonly id: "use";
350
350
  readonly add: readonly ["read", "create", "update", "delete"];
351
351
  }];
352
+ }, {
353
+ readonly id: "workspace-mailboxes";
354
+ readonly resources: readonly ["workspace-mailboxes"];
355
+ readonly levels: readonly [{
356
+ readonly id: "manage";
357
+ readonly add: readonly ["delete"];
358
+ }];
352
359
  }, {
353
360
  readonly id: "api-keys";
354
361
  readonly resources: readonly ["api-keys"];
@@ -887,7 +894,9 @@ export declare const DECISION_LIST_STATES: readonly [
887
894
  "closed", "answered", "withdrawn", "expired", "unread", "read", "archived"];
888
895
  export type DecisionListState = (typeof DECISION_LIST_STATES)[number];
889
896
  /** What a decision can be about (§ 3): its links' target types. */
890
- export declare const DECISION_LINK_TARGET_TYPES: readonly ["record", "session", "document", "agent", "routine", "page", "email_thread"];
897
+ export declare const DECISION_LINK_TARGET_TYPES: readonly ["record", "session", "document", "agent", "routine", "page", "email_thread",
898
+ /** An https address outside Standards: its `targetId` is the URL, opened in a new tab. */
899
+ "url"];
891
900
  export type DecisionLinkTargetType = (typeof DECISION_LINK_TARGET_TYPES)[number];
892
901
  /** One thing a decision is about. `objectName` only on a `record` (its page is addressed by its object). */
893
902
  export declare const decisionLinkSchema: z$2.ZodObject<{
@@ -899,6 +908,7 @@ export declare const decisionLinkSchema: z$2.ZodObject<{
899
908
  record: "record";
900
909
  routine: "routine";
901
910
  session: "session";
911
+ url: "url";
902
912
  }>;
903
913
  targetId: z$2.ZodString;
904
914
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -962,6 +972,12 @@ export declare const DECISION_TYPE_CONNECTOR_CONNECTION_REAUTH_REQUIRED = "conne
962
972
  * nothing has synced. `payload.provider` and `payload.account` name it.
963
973
  */
964
974
  export declare const DECISION_TYPE_CONNECTOR_CONNECTION_ERROR = "connector.connection.error";
975
+ /**
976
+ * A mailbox whose grant does not cover changing and sending mail refused a
977
+ * send: it keeps syncing, and its owner reconnects it to send from it.
978
+ * `payload.provider` and `payload.account` name it.
979
+ */
980
+ export declare const DECISION_TYPE_CONNECTOR_CONNECTION_SEND_NOT_GRANTED = "connector.connection.send_not_granted";
965
981
  /**
966
982
  * A person added to a `user` attribute marked `.notifiesOnAssign()` (#5308).
967
983
  * The subject is the record when one write is announced; several assignments
@@ -1006,7 +1022,7 @@ export declare const DECISION_TYPE_PERSON = "person.decision";
1006
1022
  * configuration. Threaded by bundle (`bundle:<name>`), one open at a time.
1007
1023
  */
1008
1024
  export declare const DECISION_TYPE_BUNDLE_SETUP = "bundle.setup";
1009
- export declare const DECISION_TYPES_V1: readonly ["agent.question", "agent.approval", "agent.review", "agent.setup", "agent.routine_run.failed", "agent.message", "connector.connection.reauth_required", "connector.connection.error", "record.assigned", "record.mentioned", "access.granted", "environment.build.failed", "person.decision", "bundle.setup"];
1025
+ export declare const DECISION_TYPES_V1: readonly ["agent.question", "agent.approval", "agent.review", "agent.setup", "agent.routine_run.failed", "agent.message", "connector.connection.reauth_required", "connector.connection.error", "connector.connection.send_not_granted", "record.assigned", "record.mentioned", "access.granted", "environment.build.failed", "person.decision", "bundle.setup"];
1010
1026
  export type DecisionV1Type = (typeof DECISION_TYPES_V1)[number];
1011
1027
  /** Kinds that await an answer: always delivered in-app (#5448), and the only ones « À trancher » lists. */
1012
1028
  export declare const ACTIONABLE_DECISION_KINDS: readonly ["question", "approval", "review", "handoff"];
@@ -1054,6 +1070,10 @@ export declare const DECISION_TYPE_KINDS: {
1054
1070
  readonly kind: "handoff";
1055
1071
  readonly area: "connectors";
1056
1072
  };
1073
+ readonly "connector.connection.send_not_granted": {
1074
+ readonly kind: "handoff";
1075
+ readonly area: "connectors";
1076
+ };
1057
1077
  readonly "record.assigned": {
1058
1078
  readonly kind: "fyi";
1059
1079
  readonly area: "assignment";
@@ -1128,6 +1148,7 @@ export declare const decisionSchema: z$2.ZodObject<{
1128
1148
  record: "record";
1129
1149
  routine: "routine";
1130
1150
  session: "session";
1151
+ url: "url";
1131
1152
  }>;
1132
1153
  targetId: z$2.ZodString;
1133
1154
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -1250,6 +1271,7 @@ export declare const decisionWithRecipientSchema: z$2.ZodObject<{
1250
1271
  record: "record";
1251
1272
  routine: "routine";
1252
1273
  session: "session";
1274
+ url: "url";
1253
1275
  }>;
1254
1276
  targetId: z$2.ZodString;
1255
1277
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -1404,6 +1426,7 @@ export declare const decisionListResultSchema: z$2.ZodObject<{
1404
1426
  record: "record";
1405
1427
  routine: "routine";
1406
1428
  session: "session";
1429
+ url: "url";
1407
1430
  }>;
1408
1431
  targetId: z$2.ZodString;
1409
1432
  objectName: z$2.ZodOptional<z$2.ZodString>;
@@ -3903,16 +3926,26 @@ export type CalendarConnectorProviderId = Extract<ConnectorProviderId, "google-c
3903
3926
  /** Connection lifecycle status, mirrored from `connector_connections.status`. */
3904
3927
  export declare const CONNECTION_STATUS_IDS: readonly ["active", "reauth_required", "error", "disconnected"];
3905
3928
  export type ConnectionStatusId = (typeof CONNECTION_STATUS_IDS)[number];
3906
- /** What a connection may do on its provider; each maps to a scope tier per provider. */
3907
- export type ConnectorCapability = "read" | "modify" | "send";
3908
- /** Derived from the scopes the provider actually granted, never from what was requested. */
3929
+ /**
3930
+ * What a consent may be asked for beyond `read`, which is always requested. A
3931
+ * mailbox asks everything in one consent, whatever is named here; a calendar
3932
+ * asks `modify` when the person authorizes writing.
3933
+ */
3934
+ export type ConnectorCapability = "read" | "modify";
3935
+ /**
3936
+ * Derived from the scopes the provider actually granted, never from what was
3937
+ * requested. `canModify` is changing things at the provider (a mailbox's
3938
+ * triage, a calendar's events). `canSend` is a mailbox sending, read from its
3939
+ * send scopes alone: a grant older than the one consent may send without
3940
+ * `canModify`, or read without either.
3941
+ */
3909
3942
  export declare const connectionCapabilitiesSchema: z$2.ZodObject<{
3910
3943
  canRead: z$2.ZodBoolean;
3911
3944
  canModify: z$2.ZodBoolean;
3912
3945
  canSend: z$2.ZodBoolean;
3913
3946
  }, z$2.core.$strip>;
3914
3947
  export type ConnectionCapabilities = z$2.output<typeof connectionCapabilitiesSchema>;
3915
- /** What to ask for so a re-consent keeps what the connection already holds: the held flags beyond `read`, in capability order. */
3948
+ /** What to ask for so a re-consent keeps what the connection already holds beyond `read`. */
3916
3949
  export declare function requestedCapabilities(held: ConnectionCapabilities): Exclude<ConnectorCapability, "read">[];
3917
3950
  /**
3918
3951
  * How far a connection's full-history walk (backfill) has gone.
@@ -3987,7 +4020,7 @@ export interface StartConnectorAuthInput {
3987
4020
  /** Page the callback 302s back to, on a configured allowed origin. Exactly one of this or `mode`. */
3988
4021
  returnUrl?: string;
3989
4022
  mode?: "desktop";
3990
- /** Beyond `read`, which is always requested. */
4023
+ /** Beyond `read`, which is always requested. A mail provider asks its full set whatever is passed. */
3991
4024
  capabilities?: Exclude<ConnectorCapability, "read">[];
3992
4025
  /**
3993
4026
  * The account a reconnect names (its address): the provider offers it first.
@@ -4008,14 +4041,6 @@ export declare const connectorProvidersResultSchema: z$2.ZodObject<{
4008
4041
  "outlook-calendar": "outlook-calendar";
4009
4042
  slack: "slack";
4010
4043
  }>>;
4011
- mailTriageProviders: z$2.ZodArray<z$2.ZodEnum<{
4012
- github: "github";
4013
- gmail: "gmail";
4014
- "google-calendar": "google-calendar";
4015
- outlook: "outlook";
4016
- "outlook-calendar": "outlook-calendar";
4017
- slack: "slack";
4018
- }>>;
4019
4044
  }, z$2.core.$strip>;
4020
4045
  export type ConnectorProvidersResult = z$2.output<typeof connectorProvidersResultSchema>;
4021
4046
  /** Input to attach a Microsoft shared mailbox to an existing Outlook connection. */
@@ -11454,97 +11479,6 @@ export declare const servedAsIsAttributeSchema: z$2.ZodObject<{
11454
11479
  user: "user";
11455
11480
  }>;
11456
11481
  }, z$2.core.$strip>;
11457
- /** What a sync reports; `applied: false` when the workspace already held this hash. */
11458
- export declare const syncBundleResultSchema: z$2.ZodObject<{
11459
- applied: z$2.ZodBoolean;
11460
- hash: z$2.ZodString;
11461
- objects: z$2.ZodOptional<z$2.ZodObject<{
11462
- created: z$2.ZodNumber;
11463
- updated: z$2.ZodNumber;
11464
- deleted: z$2.ZodNumber;
11465
- }, z$2.core.$strip>>;
11466
- views: z$2.ZodOptional<z$2.ZodObject<{
11467
- created: z$2.ZodNumber;
11468
- updated: z$2.ZodNumber;
11469
- adopted: z$2.ZodNumber;
11470
- released: z$2.ZodNumber;
11471
- }, z$2.core.$strip>>;
11472
- deferredRetypes: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
11473
- object: z$2.ZodString;
11474
- attribute: z$2.ZodString;
11475
- to: z$2.ZodEnum<{
11476
- checkbox: "checkbox";
11477
- currency: "currency";
11478
- date: "date";
11479
- document: "document";
11480
- formula: "formula";
11481
- location: "location";
11482
- multiselect: "multiselect";
11483
- number: "number";
11484
- phone: "phone";
11485
- relation: "relation";
11486
- richtext: "richtext";
11487
- rollup: "rollup";
11488
- select: "select";
11489
- status: "status";
11490
- text: "text";
11491
- user: "user";
11492
- }>;
11493
- dependents: z$2.ZodArray<z$2.ZodObject<{
11494
- kind: z$2.ZodEnum<{
11495
- content: "content";
11496
- formula: "formula";
11497
- page: "page";
11498
- relation: "relation";
11499
- rollup: "rollup";
11500
- trigger: "trigger";
11501
- view: "view";
11502
- }>;
11503
- label: z$2.ZodString;
11504
- }, z$2.core.$strip>>;
11505
- hiddenDependents: z$2.ZodNumber;
11506
- }, z$2.core.$strip>>>;
11507
- servedAsIs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
11508
- object: z$2.ZodString;
11509
- attribute: z$2.ZodString;
11510
- declared: z$2.ZodEnum<{
11511
- checkbox: "checkbox";
11512
- currency: "currency";
11513
- date: "date";
11514
- document: "document";
11515
- formula: "formula";
11516
- location: "location";
11517
- multiselect: "multiselect";
11518
- number: "number";
11519
- phone: "phone";
11520
- relation: "relation";
11521
- richtext: "richtext";
11522
- rollup: "rollup";
11523
- select: "select";
11524
- status: "status";
11525
- text: "text";
11526
- user: "user";
11527
- }>;
11528
- stored: z$2.ZodEnum<{
11529
- checkbox: "checkbox";
11530
- currency: "currency";
11531
- date: "date";
11532
- document: "document";
11533
- formula: "formula";
11534
- location: "location";
11535
- multiselect: "multiselect";
11536
- number: "number";
11537
- phone: "phone";
11538
- relation: "relation";
11539
- richtext: "richtext";
11540
- rollup: "rollup";
11541
- select: "select";
11542
- status: "status";
11543
- text: "text";
11544
- user: "user";
11545
- }>;
11546
- }, z$2.core.$strip>>>;
11547
- }, z$2.core.$strip>;
11548
11482
  export declare const bundlePieceKindSchema: z$2.ZodEnum<{
11549
11483
  agent: "agent";
11550
11484
  object: "object";
@@ -11603,6 +11537,7 @@ export declare const bundleUpdatePieceKindSchema: z$2.ZodEnum<{
11603
11537
  object: "object";
11604
11538
  option: "option";
11605
11539
  page: "page";
11540
+ skill: "skill";
11606
11541
  tab: "tab";
11607
11542
  view: "view";
11608
11543
  }>;
@@ -11617,6 +11552,7 @@ export declare const bundleUpdateGroupSchema: z$2.ZodEnum<{
11617
11552
  conflict: "conflict";
11618
11553
  missing: "missing";
11619
11554
  notApplied: "notApplied";
11555
+ removed: "removed";
11620
11556
  updated: "updated";
11621
11557
  }>;
11622
11558
  /**
@@ -11628,18 +11564,28 @@ export declare const bundleUpdateGroupSchema: z$2.ZodEnum<{
11628
11564
  * refused here), `precondition` (the new type would not offer every value
11629
11565
  * stored), `dependents` (something that reads the attribute cannot follow,
11630
11566
  * `dependents` and `hiddenDependents`), `conversion` (the type change needs
11631
- * its values converted, not available yet).
11567
+ * its values converted, not available yet), `usedByBundle` (another installed
11568
+ * bundle uses the one removed), `takeoverOfAdded` (a sync would take over a
11569
+ * piece an added bundle installed).
11632
11570
  */
11633
11571
  export declare const bundleUpdateReasonCodeSchema: z$2.ZodEnum<{
11572
+ ambiguousRename: "ambiguousRename";
11573
+ blockedByWorkspace: "blockedByWorkspace";
11634
11574
  conversion: "conversion";
11635
11575
  dependents: "dependents";
11576
+ heldWith: "heldWith";
11577
+ invalid: "invalid";
11636
11578
  lossy: "lossy";
11637
11579
  move: "move";
11638
11580
  nameTaken: "nameTaken";
11581
+ needsConfirmation: "needsConfirmation";
11639
11582
  precondition: "precondition";
11640
11583
  refused: "refused";
11641
11584
  required: "required";
11585
+ resolved: "resolved";
11642
11586
  retype: "retype";
11587
+ takeoverOfAdded: "takeoverOfAdded";
11588
+ usedByBundle: "usedByBundle";
11643
11589
  }>;
11644
11590
  export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
11645
11591
  pieceId: z$2.ZodString;
@@ -11649,6 +11595,7 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
11649
11595
  object: "object";
11650
11596
  option: "option";
11651
11597
  page: "page";
11598
+ skill: "skill";
11652
11599
  tab: "tab";
11653
11600
  view: "view";
11654
11601
  }>;
@@ -11657,19 +11604,28 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
11657
11604
  conflict: "conflict";
11658
11605
  missing: "missing";
11659
11606
  notApplied: "notApplied";
11607
+ removed: "removed";
11660
11608
  updated: "updated";
11661
11609
  }>;
11662
11610
  label: z$2.ZodString;
11663
11611
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
11612
+ ambiguousRename: "ambiguousRename";
11613
+ blockedByWorkspace: "blockedByWorkspace";
11664
11614
  conversion: "conversion";
11665
11615
  dependents: "dependents";
11616
+ heldWith: "heldWith";
11617
+ invalid: "invalid";
11666
11618
  lossy: "lossy";
11667
11619
  move: "move";
11668
11620
  nameTaken: "nameTaken";
11621
+ needsConfirmation: "needsConfirmation";
11669
11622
  precondition: "precondition";
11670
11623
  refused: "refused";
11671
11624
  required: "required";
11625
+ resolved: "resolved";
11672
11626
  retype: "retype";
11627
+ takeoverOfAdded: "takeoverOfAdded";
11628
+ usedByBundle: "usedByBundle";
11673
11629
  }>>;
11674
11630
  reasonName: z$2.ZodOptional<z$2.ZodString>;
11675
11631
  fromType: z$2.ZodOptional<z$2.ZodEnum<{
@@ -11722,6 +11678,240 @@ export declare const bundleUpdatePieceSchema: z$2.ZodObject<{
11722
11678
  }, z$2.core.$strip>>>;
11723
11679
  hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
11724
11680
  }, z$2.core.$strip>;
11681
+ /**
11682
+ * What uninstalling an added bundle would delete, counted as the system (a
11683
+ * piece another member made private shows in the totals, never by name), and
11684
+ * the fingerprint `bundles.remove` must carry. `blockedBy` names the bundles
11685
+ * that use it: while one does, the uninstall is refused.
11686
+ */
11687
+ export declare const bundleRemovalPreviewSchema: z$2.ZodObject<{
11688
+ blockedBy: z$2.ZodArray<z$2.ZodString>;
11689
+ objects: z$2.ZodArray<z$2.ZodObject<{
11690
+ name: z$2.ZodString;
11691
+ label: z$2.ZodString;
11692
+ records: z$2.ZodNumber;
11693
+ }, z$2.core.$strip>>;
11694
+ views: z$2.ZodNumber;
11695
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
11696
+ viewLabel: z$2.ZodString;
11697
+ contentLabel: z$2.ZodString;
11698
+ }, z$2.core.$strip>>;
11699
+ hiddenViewContents: z$2.ZodNumber;
11700
+ pages: z$2.ZodNumber;
11701
+ routines: z$2.ZodNumber;
11702
+ agents: z$2.ZodNumber;
11703
+ skills: z$2.ZodNumber;
11704
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
11705
+ objectLabel: z$2.ZodString;
11706
+ attributeLabel: z$2.ZodString;
11707
+ }, z$2.core.$strip>>;
11708
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
11709
+ objectLabel: z$2.ZodString;
11710
+ attributeLabel: z$2.ZodString;
11711
+ }, z$2.core.$strip>>;
11712
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
11713
+ objectLabel: z$2.ZodString;
11714
+ attributeLabel: z$2.ZodString;
11715
+ }, z$2.core.$strip>>;
11716
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
11717
+ viewLabel: z$2.ZodString;
11718
+ }, z$2.core.$strip>>;
11719
+ citedBy: z$2.ZodArray<z$2.ZodObject<{
11720
+ objectLabel: z$2.ZodString;
11721
+ attributeLabel: z$2.ZodOptional<z$2.ZodString>;
11722
+ viewLabel: z$2.ZodOptional<z$2.ZodString>;
11723
+ }, z$2.core.$strip>>;
11724
+ fingerprint: z$2.ZodString;
11725
+ }, z$2.core.$strip>;
11726
+ /** What a removal takes with it outside the removed objects: one contract for the preview and for a plan's removal rows. */
11727
+ export declare const bundleRemovalCascadeSchema: z$2.ZodObject<{
11728
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
11729
+ viewLabel: z$2.ZodString;
11730
+ contentLabel: z$2.ZodString;
11731
+ }, z$2.core.$strip>>;
11732
+ hiddenViewContents: z$2.ZodNumber;
11733
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
11734
+ objectLabel: z$2.ZodString;
11735
+ attributeLabel: z$2.ZodString;
11736
+ }, z$2.core.$strip>>;
11737
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
11738
+ objectLabel: z$2.ZodString;
11739
+ attributeLabel: z$2.ZodString;
11740
+ }, z$2.core.$strip>>;
11741
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
11742
+ objectLabel: z$2.ZodString;
11743
+ attributeLabel: z$2.ZodString;
11744
+ }, z$2.core.$strip>>;
11745
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
11746
+ viewLabel: z$2.ZodString;
11747
+ }, z$2.core.$strip>>;
11748
+ }, z$2.core.$strip>;
11749
+ /** One piece an update or a sync would remove; `records` and `cascade` are left out when redacted. */
11750
+ export declare const bundleRemovalRowSchema: z$2.ZodObject<{
11751
+ pieceId: z$2.ZodString;
11752
+ kind: z$2.ZodEnum<{
11753
+ agent: "agent";
11754
+ attribute: "attribute";
11755
+ object: "object";
11756
+ option: "option";
11757
+ page: "page";
11758
+ skill: "skill";
11759
+ tab: "tab";
11760
+ view: "view";
11761
+ }>;
11762
+ label: z$2.ZodString;
11763
+ records: z$2.ZodOptional<z$2.ZodNumber>;
11764
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
11765
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
11766
+ viewLabel: z$2.ZodString;
11767
+ contentLabel: z$2.ZodString;
11768
+ }, z$2.core.$strip>>;
11769
+ hiddenViewContents: z$2.ZodNumber;
11770
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
11771
+ objectLabel: z$2.ZodString;
11772
+ attributeLabel: z$2.ZodString;
11773
+ }, z$2.core.$strip>>;
11774
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
11775
+ objectLabel: z$2.ZodString;
11776
+ attributeLabel: z$2.ZodString;
11777
+ }, z$2.core.$strip>>;
11778
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
11779
+ objectLabel: z$2.ZodString;
11780
+ attributeLabel: z$2.ZodString;
11781
+ }, z$2.core.$strip>>;
11782
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
11783
+ viewLabel: z$2.ZodString;
11784
+ }, z$2.core.$strip>>;
11785
+ }, z$2.core.$strip>>;
11786
+ }, z$2.core.$strip>;
11787
+ /** What a sync reports; `applied: false` when the workspace already held this hash. */
11788
+ export declare const syncBundleResultSchema: z$2.ZodObject<{
11789
+ applied: z$2.ZodBoolean;
11790
+ hash: z$2.ZodString;
11791
+ objects: z$2.ZodOptional<z$2.ZodObject<{
11792
+ created: z$2.ZodNumber;
11793
+ updated: z$2.ZodNumber;
11794
+ deleted: z$2.ZodNumber;
11795
+ }, z$2.core.$strip>>;
11796
+ views: z$2.ZodOptional<z$2.ZodObject<{
11797
+ created: z$2.ZodNumber;
11798
+ updated: z$2.ZodNumber;
11799
+ adopted: z$2.ZodNumber;
11800
+ released: z$2.ZodNumber;
11801
+ }, z$2.core.$strip>>;
11802
+ deferredRetypes: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
11803
+ object: z$2.ZodString;
11804
+ attribute: z$2.ZodString;
11805
+ to: z$2.ZodEnum<{
11806
+ checkbox: "checkbox";
11807
+ currency: "currency";
11808
+ date: "date";
11809
+ document: "document";
11810
+ formula: "formula";
11811
+ location: "location";
11812
+ multiselect: "multiselect";
11813
+ number: "number";
11814
+ phone: "phone";
11815
+ relation: "relation";
11816
+ richtext: "richtext";
11817
+ rollup: "rollup";
11818
+ select: "select";
11819
+ status: "status";
11820
+ text: "text";
11821
+ user: "user";
11822
+ }>;
11823
+ dependents: z$2.ZodArray<z$2.ZodObject<{
11824
+ kind: z$2.ZodEnum<{
11825
+ content: "content";
11826
+ formula: "formula";
11827
+ page: "page";
11828
+ relation: "relation";
11829
+ rollup: "rollup";
11830
+ trigger: "trigger";
11831
+ view: "view";
11832
+ }>;
11833
+ label: z$2.ZodString;
11834
+ }, z$2.core.$strip>>;
11835
+ hiddenDependents: z$2.ZodNumber;
11836
+ }, z$2.core.$strip>>>;
11837
+ servedAsIs: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
11838
+ object: z$2.ZodString;
11839
+ attribute: z$2.ZodString;
11840
+ declared: z$2.ZodEnum<{
11841
+ checkbox: "checkbox";
11842
+ currency: "currency";
11843
+ date: "date";
11844
+ document: "document";
11845
+ formula: "formula";
11846
+ location: "location";
11847
+ multiselect: "multiselect";
11848
+ number: "number";
11849
+ phone: "phone";
11850
+ relation: "relation";
11851
+ richtext: "richtext";
11852
+ rollup: "rollup";
11853
+ select: "select";
11854
+ status: "status";
11855
+ text: "text";
11856
+ user: "user";
11857
+ }>;
11858
+ stored: z$2.ZodEnum<{
11859
+ checkbox: "checkbox";
11860
+ currency: "currency";
11861
+ date: "date";
11862
+ document: "document";
11863
+ formula: "formula";
11864
+ location: "location";
11865
+ multiselect: "multiselect";
11866
+ number: "number";
11867
+ phone: "phone";
11868
+ relation: "relation";
11869
+ richtext: "richtext";
11870
+ rollup: "rollup";
11871
+ select: "select";
11872
+ status: "status";
11873
+ text: "text";
11874
+ user: "user";
11875
+ }>;
11876
+ }, z$2.core.$strip>>>;
11877
+ pendingRemovals: z$2.ZodArray<z$2.ZodObject<{
11878
+ pieceId: z$2.ZodString;
11879
+ kind: z$2.ZodEnum<{
11880
+ agent: "agent";
11881
+ attribute: "attribute";
11882
+ object: "object";
11883
+ option: "option";
11884
+ page: "page";
11885
+ skill: "skill";
11886
+ tab: "tab";
11887
+ view: "view";
11888
+ }>;
11889
+ label: z$2.ZodString;
11890
+ records: z$2.ZodOptional<z$2.ZodNumber>;
11891
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
11892
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
11893
+ viewLabel: z$2.ZodString;
11894
+ contentLabel: z$2.ZodString;
11895
+ }, z$2.core.$strip>>;
11896
+ hiddenViewContents: z$2.ZodNumber;
11897
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
11898
+ objectLabel: z$2.ZodString;
11899
+ attributeLabel: z$2.ZodString;
11900
+ }, z$2.core.$strip>>;
11901
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
11902
+ objectLabel: z$2.ZodString;
11903
+ attributeLabel: z$2.ZodString;
11904
+ }, z$2.core.$strip>>;
11905
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
11906
+ objectLabel: z$2.ZodString;
11907
+ attributeLabel: z$2.ZodString;
11908
+ }, z$2.core.$strip>>;
11909
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
11910
+ viewLabel: z$2.ZodString;
11911
+ }, z$2.core.$strip>>;
11912
+ }, z$2.core.$strip>>;
11913
+ }, z$2.core.$strip>>;
11914
+ }, z$2.core.$strip>;
11725
11915
  /** What updating an added bundle would do, and the fingerprint `bundles.update` must carry. */
11726
11916
  export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
11727
11917
  pieces: z$2.ZodArray<z$2.ZodObject<{
@@ -11732,6 +11922,7 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
11732
11922
  object: "object";
11733
11923
  option: "option";
11734
11924
  page: "page";
11925
+ skill: "skill";
11735
11926
  tab: "tab";
11736
11927
  view: "view";
11737
11928
  }>;
@@ -11740,19 +11931,28 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
11740
11931
  conflict: "conflict";
11741
11932
  missing: "missing";
11742
11933
  notApplied: "notApplied";
11934
+ removed: "removed";
11743
11935
  updated: "updated";
11744
11936
  }>;
11745
11937
  label: z$2.ZodString;
11746
11938
  reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
11939
+ ambiguousRename: "ambiguousRename";
11940
+ blockedByWorkspace: "blockedByWorkspace";
11747
11941
  conversion: "conversion";
11748
11942
  dependents: "dependents";
11943
+ heldWith: "heldWith";
11944
+ invalid: "invalid";
11749
11945
  lossy: "lossy";
11750
11946
  move: "move";
11751
11947
  nameTaken: "nameTaken";
11948
+ needsConfirmation: "needsConfirmation";
11752
11949
  precondition: "precondition";
11753
11950
  refused: "refused";
11754
11951
  required: "required";
11952
+ resolved: "resolved";
11755
11953
  retype: "retype";
11954
+ takeoverOfAdded: "takeoverOfAdded";
11955
+ usedByBundle: "usedByBundle";
11756
11956
  }>>;
11757
11957
  reasonName: z$2.ZodOptional<z$2.ZodString>;
11758
11958
  fromType: z$2.ZodOptional<z$2.ZodEnum<{
@@ -11805,56 +12005,182 @@ export declare const bundleUpdatePlanSchema: z$2.ZodObject<{
11805
12005
  }, z$2.core.$strip>>>;
11806
12006
  hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
11807
12007
  }, z$2.core.$strip>>;
12008
+ removals: z$2.ZodArray<z$2.ZodObject<{
12009
+ pieceId: z$2.ZodString;
12010
+ kind: z$2.ZodEnum<{
12011
+ agent: "agent";
12012
+ attribute: "attribute";
12013
+ object: "object";
12014
+ option: "option";
12015
+ page: "page";
12016
+ skill: "skill";
12017
+ tab: "tab";
12018
+ view: "view";
12019
+ }>;
12020
+ label: z$2.ZodString;
12021
+ records: z$2.ZodOptional<z$2.ZodNumber>;
12022
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
12023
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
12024
+ viewLabel: z$2.ZodString;
12025
+ contentLabel: z$2.ZodString;
12026
+ }, z$2.core.$strip>>;
12027
+ hiddenViewContents: z$2.ZodNumber;
12028
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
12029
+ objectLabel: z$2.ZodString;
12030
+ attributeLabel: z$2.ZodString;
12031
+ }, z$2.core.$strip>>;
12032
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
12033
+ objectLabel: z$2.ZodString;
12034
+ attributeLabel: z$2.ZodString;
12035
+ }, z$2.core.$strip>>;
12036
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
12037
+ objectLabel: z$2.ZodString;
12038
+ attributeLabel: z$2.ZodString;
12039
+ }, z$2.core.$strip>>;
12040
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
12041
+ viewLabel: z$2.ZodString;
12042
+ }, z$2.core.$strip>>;
12043
+ }, z$2.core.$strip>>;
12044
+ }, z$2.core.$strip>>;
12045
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
11808
12046
  fingerprint: z$2.ZodString;
11809
12047
  }, z$2.core.$strip>;
11810
- /** `bundles.update`: how many pieces the update wrote. */
11811
- export declare const bundleUpdateResultSchema: z$2.ZodObject<{
11812
- applied: z$2.ZodNumber;
11813
- }, z$2.core.$strip>;
11814
- /**
11815
- * What uninstalling an added bundle would delete, counted as the system (a
11816
- * piece another member made private shows in the totals, never by name), and
11817
- * the fingerprint `bundles.remove` must carry. `blockedBy` names the bundles
11818
- * that use it: while one does, the uninstall is refused.
11819
- */
11820
- export declare const bundleRemovalPreviewSchema: z$2.ZodObject<{
11821
- blockedBy: z$2.ZodArray<z$2.ZodString>;
11822
- objects: z$2.ZodArray<z$2.ZodObject<{
11823
- name: z$2.ZodString;
12048
+ /** What syncing a bundle would do, and the fingerprint `bundles.sync` must carry to apply it. */
12049
+ export declare const bundleSyncPreviewSchema: z$2.ZodObject<{
12050
+ pieces: z$2.ZodArray<z$2.ZodObject<{
12051
+ pieceId: z$2.ZodString;
12052
+ kind: z$2.ZodEnum<{
12053
+ agent: "agent";
12054
+ attribute: "attribute";
12055
+ object: "object";
12056
+ option: "option";
12057
+ page: "page";
12058
+ skill: "skill";
12059
+ tab: "tab";
12060
+ view: "view";
12061
+ }>;
12062
+ group: z$2.ZodEnum<{
12063
+ added: "added";
12064
+ conflict: "conflict";
12065
+ missing: "missing";
12066
+ notApplied: "notApplied";
12067
+ removed: "removed";
12068
+ updated: "updated";
12069
+ }>;
11824
12070
  label: z$2.ZodString;
11825
- records: z$2.ZodNumber;
11826
- }, z$2.core.$strip>>;
11827
- views: z$2.ZodNumber;
11828
- viewContents: z$2.ZodArray<z$2.ZodObject<{
11829
- viewLabel: z$2.ZodString;
11830
- contentLabel: z$2.ZodString;
11831
- }, z$2.core.$strip>>;
11832
- hiddenViewContents: z$2.ZodNumber;
11833
- pages: z$2.ZodNumber;
11834
- routines: z$2.ZodNumber;
11835
- agents: z$2.ZodNumber;
11836
- skills: z$2.ZodNumber;
11837
- inboundRelations: z$2.ZodArray<z$2.ZodObject<{
11838
- objectLabel: z$2.ZodString;
11839
- attributeLabel: z$2.ZodString;
11840
- }, z$2.core.$strip>>;
11841
- computedAttributes: z$2.ZodArray<z$2.ZodObject<{
11842
- objectLabel: z$2.ZodString;
11843
- attributeLabel: z$2.ZodString;
11844
- }, z$2.core.$strip>>;
11845
- prunedRelations: z$2.ZodArray<z$2.ZodObject<{
11846
- objectLabel: z$2.ZodString;
11847
- attributeLabel: z$2.ZodString;
11848
- }, z$2.core.$strip>>;
11849
- emptiedViews: z$2.ZodArray<z$2.ZodObject<{
11850
- viewLabel: z$2.ZodString;
12071
+ reasonCode: z$2.ZodOptional<z$2.ZodEnum<{
12072
+ ambiguousRename: "ambiguousRename";
12073
+ blockedByWorkspace: "blockedByWorkspace";
12074
+ conversion: "conversion";
12075
+ dependents: "dependents";
12076
+ heldWith: "heldWith";
12077
+ invalid: "invalid";
12078
+ lossy: "lossy";
12079
+ move: "move";
12080
+ nameTaken: "nameTaken";
12081
+ needsConfirmation: "needsConfirmation";
12082
+ precondition: "precondition";
12083
+ refused: "refused";
12084
+ required: "required";
12085
+ resolved: "resolved";
12086
+ retype: "retype";
12087
+ takeoverOfAdded: "takeoverOfAdded";
12088
+ usedByBundle: "usedByBundle";
12089
+ }>>;
12090
+ reasonName: z$2.ZodOptional<z$2.ZodString>;
12091
+ fromType: z$2.ZodOptional<z$2.ZodEnum<{
12092
+ checkbox: "checkbox";
12093
+ currency: "currency";
12094
+ date: "date";
12095
+ document: "document";
12096
+ formula: "formula";
12097
+ location: "location";
12098
+ multiselect: "multiselect";
12099
+ number: "number";
12100
+ phone: "phone";
12101
+ relation: "relation";
12102
+ richtext: "richtext";
12103
+ rollup: "rollup";
12104
+ select: "select";
12105
+ status: "status";
12106
+ text: "text";
12107
+ user: "user";
12108
+ }>>;
12109
+ toType: z$2.ZodOptional<z$2.ZodEnum<{
12110
+ checkbox: "checkbox";
12111
+ currency: "currency";
12112
+ date: "date";
12113
+ document: "document";
12114
+ formula: "formula";
12115
+ location: "location";
12116
+ multiselect: "multiselect";
12117
+ number: "number";
12118
+ phone: "phone";
12119
+ relation: "relation";
12120
+ richtext: "richtext";
12121
+ rollup: "rollup";
12122
+ select: "select";
12123
+ status: "status";
12124
+ text: "text";
12125
+ user: "user";
12126
+ }>>;
12127
+ dependents: z$2.ZodOptional<z$2.ZodArray<z$2.ZodObject<{
12128
+ kind: z$2.ZodEnum<{
12129
+ content: "content";
12130
+ formula: "formula";
12131
+ page: "page";
12132
+ relation: "relation";
12133
+ rollup: "rollup";
12134
+ trigger: "trigger";
12135
+ view: "view";
12136
+ }>;
12137
+ label: z$2.ZodString;
12138
+ }, z$2.core.$strip>>>;
12139
+ hiddenDependents: z$2.ZodOptional<z$2.ZodNumber>;
11851
12140
  }, z$2.core.$strip>>;
11852
- citedBy: z$2.ZodArray<z$2.ZodObject<{
11853
- objectLabel: z$2.ZodString;
11854
- attributeLabel: z$2.ZodOptional<z$2.ZodString>;
11855
- viewLabel: z$2.ZodOptional<z$2.ZodString>;
12141
+ removals: z$2.ZodArray<z$2.ZodObject<{
12142
+ pieceId: z$2.ZodString;
12143
+ kind: z$2.ZodEnum<{
12144
+ agent: "agent";
12145
+ attribute: "attribute";
12146
+ object: "object";
12147
+ option: "option";
12148
+ page: "page";
12149
+ skill: "skill";
12150
+ tab: "tab";
12151
+ view: "view";
12152
+ }>;
12153
+ label: z$2.ZodString;
12154
+ records: z$2.ZodOptional<z$2.ZodNumber>;
12155
+ cascade: z$2.ZodOptional<z$2.ZodObject<{
12156
+ viewContents: z$2.ZodArray<z$2.ZodObject<{
12157
+ viewLabel: z$2.ZodString;
12158
+ contentLabel: z$2.ZodString;
12159
+ }, z$2.core.$strip>>;
12160
+ hiddenViewContents: z$2.ZodNumber;
12161
+ inboundRelations: z$2.ZodArray<z$2.ZodObject<{
12162
+ objectLabel: z$2.ZodString;
12163
+ attributeLabel: z$2.ZodString;
12164
+ }, z$2.core.$strip>>;
12165
+ computedAttributes: z$2.ZodArray<z$2.ZodObject<{
12166
+ objectLabel: z$2.ZodString;
12167
+ attributeLabel: z$2.ZodString;
12168
+ }, z$2.core.$strip>>;
12169
+ prunedRelations: z$2.ZodArray<z$2.ZodObject<{
12170
+ objectLabel: z$2.ZodString;
12171
+ attributeLabel: z$2.ZodString;
12172
+ }, z$2.core.$strip>>;
12173
+ emptiedViews: z$2.ZodArray<z$2.ZodObject<{
12174
+ viewLabel: z$2.ZodString;
12175
+ }, z$2.core.$strip>>;
12176
+ }, z$2.core.$strip>>;
11856
12177
  }, z$2.core.$strip>>;
11857
12178
  fingerprint: z$2.ZodString;
12179
+ totalRecords: z$2.ZodOptional<z$2.ZodNumber>;
12180
+ }, z$2.core.$strip>;
12181
+ /** `bundles.update`: how many pieces the update wrote. */
12182
+ export declare const bundleUpdateResultSchema: z$2.ZodObject<{
12183
+ applied: z$2.ZodNumber;
11858
12184
  }, z$2.core.$strip>;
11859
12185
  /** What adding wrote: one entry per object, view or agent created, under the bundle that declares it. */
11860
12186
  export declare const bundleAddResultSchema: z$2.ZodObject<{
@@ -11943,11 +12269,16 @@ export type AvailableBundleSummary = z$1.output<typeof availableBundleSummarySch
11943
12269
  * What `PUT /bundles/:name` carries: the built bundle, plus the renames and
11944
12270
  * retypes this sync resolves (#4362). `resolutions` travel outside the hash: a
11945
12271
  * bundle whose hash is already held is not pushed, and its resolutions with it.
11946
- * The path `:name` is authoritative: a body `name`, when present, must equal it.
12272
+ * `fingerprint` and `confirmedRecords` travel outside the hash too. The path
12273
+ * `:name` is authoritative: a body `name`, when present, must equal it.
11947
12274
  */
11948
12275
  export type SyncBundleInput = Omit<BuiltBundle, "name"> & {
11949
12276
  name?: string;
11950
12277
  resolutions?: SchemaSourceResolution[];
12278
+ /** The sync preview's fingerprint, tying the apply to what the admin saw; outside the hash. */
12279
+ fingerprint?: string;
12280
+ /** The record total the admin confirmed for the removals; outside the hash. */
12281
+ confirmedRecords?: number;
11951
12282
  };
11952
12283
  /** What a sync reports; `applied: false` when the workspace already held this hash. */
11953
12284
  export type SyncBundleResult = z$1.output<typeof syncBundleResultSchema>;
@@ -11964,8 +12295,14 @@ export type BundleUpdateReasonCode = z$1.output<typeof bundleUpdateReasonCodeSch
11964
12295
  export type BundleUpdatePiece = z$1.output<typeof bundleUpdatePieceSchema>;
11965
12296
  /** What updating an added bundle would do, and the fingerprint `bundles.update` must carry. */
11966
12297
  export type BundleUpdatePlan = z$1.output<typeof bundleUpdatePlanSchema>;
12298
+ /** What syncing a bundle would do, and the fingerprint `bundles.sync` carries to confirm it. */
12299
+ export type BundleSyncPreview = z$1.output<typeof bundleSyncPreviewSchema>;
11967
12300
  /** What uninstalling an added bundle would delete, and the fingerprint `bundles.remove` must carry. */
11968
12301
  export type BundleRemovalPreview = z$1.output<typeof bundleRemovalPreviewSchema>;
12302
+ /** What a removal takes with it outside the removed pieces. */
12303
+ export type BundleRemovalCascade = z$1.output<typeof bundleRemovalCascadeSchema>;
12304
+ /** One piece an update or a sync would remove; `records` and `cascade` are absent when redacted. */
12305
+ export type BundleRemovalRow = z$1.output<typeof bundleRemovalRowSchema>;
11969
12306
  /** What adding wrote: one entry per object, view or agent created, under the bundle that declares it. */
11970
12307
  export type BundleAddResult = z$1.output<typeof bundleAddResultSchema>;
11971
12308
  /** Where an added piece came from; stamped on every draft operation it produces. */
@@ -12357,6 +12694,8 @@ export interface DraftableObject extends Omit<UpdateObjectInput, "metadata" | "l
12357
12694
  name: string;
12358
12695
  label: string;
12359
12696
  icon?: string;
12697
+ /** Declared in code (`system: true`): a draft never removes it. Absent on any other object. */
12698
+ system?: true;
12360
12699
  }
12361
12700
  export interface DraftableAttribute {
12362
12701
  id: string;
@@ -19620,6 +19959,7 @@ export declare const tenantSettingsSchema: z$2.ZodObject<{
19620
19959
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
19621
19960
  findImages: z$2.ZodBoolean;
19622
19961
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
19962
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
19623
19963
  }, z$2.core.$strip>;
19624
19964
  export type TenantSettings = z$2.output<typeof tenantSettingsSchema>;
19625
19965
  /** `GET /tenant/settings`: the settings plus what the deployment can do. */
@@ -19634,6 +19974,7 @@ export declare const tenantSettingsResponseSchema: z$2.ZodObject<{
19634
19974
  memoryTenantMonthlyLimitUsd: z$2.ZodNullable<z$2.ZodString>;
19635
19975
  findImages: z$2.ZodBoolean;
19636
19976
  memberMonthlyCapCredits: z$2.ZodNullable<z$2.ZodNumber>;
19977
+ runCostCeilingUsd: z$2.ZodNullable<z$2.ZodString>;
19637
19978
  meetingBotConfigured: z$2.ZodBoolean;
19638
19979
  meetingBotImageUrl: z$2.ZodNullable<z$2.ZodString>;
19639
19980
  logosConfigured: z$2.ZodBoolean;
@@ -20523,6 +20864,8 @@ export declare const LINK_COOKIE_MAX_AGE_MS: number;
20523
20864
  export declare const HARNESS_BRIDGE_PORT = 4000;
20524
20865
  /** Every kind of machine key, as `GET /machines`' `kind` filter takes it (machines and links §1). */
20525
20866
  export declare const MACHINE_KEY_KINDS: readonly ["conversation", "run", "change"];
20867
+ /** The icon a custom object takes when its definition names none: a deterministic catalogue fallback. */
20868
+ export declare const DEFAULT_CUSTOM_OBJECT_ICON: IconName;
20526
20869
  /** Configuration for the `agent()` builder factory. */
20527
20870
  export interface AgentBuilderConfig {
20528
20871
  /** Technical name — stable identity used by the boot sync to match DB rows. */
@@ -24710,11 +25053,7 @@ export declare const mailboxAccountSchema: z$2.ZodObject<{
24710
25053
  error: "error";
24711
25054
  reauth_required: "reauth_required";
24712
25055
  }>;
24713
- capabilities: z$2.ZodObject<{
24714
- canRead: z$2.ZodBoolean;
24715
- canModify: z$2.ZodBoolean;
24716
- canSend: z$2.ZodBoolean;
24717
- }, z$2.core.$strip>;
25056
+ canSend: z$2.ZodBoolean;
24718
25057
  }, z$2.core.$strip>;
24719
25058
  export type MailboxAccount = z$2.output<typeof mailboxAccountSchema>;
24720
25059
  /** How the mailbox lists mail: one row per conversation, or one row per message. */
@@ -24834,7 +25173,6 @@ export declare const replyDefaultsSchema: z$2.ZodObject<{
24834
25173
  gmail: "gmail";
24835
25174
  outlook: "outlook";
24836
25175
  }>;
24837
- canSend: z$2.ZodBoolean;
24838
25176
  parentEmailId: z$2.ZodString;
24839
25177
  subject: z$2.ZodString;
24840
25178
  selfAddresses: z$2.ZodArray<z$2.ZodString>;
@@ -25040,7 +25378,6 @@ export declare const mailboxThreadDetailSchema: z$2.ZodObject<{
25040
25378
  gmail: "gmail";
25041
25379
  outlook: "outlook";
25042
25380
  }>;
25043
- canSend: z$2.ZodBoolean;
25044
25381
  parentEmailId: z$2.ZodString;
25045
25382
  subject: z$2.ZodString;
25046
25383
  selfAddresses: z$2.ZodArray<z$2.ZodString>;
@@ -26771,6 +27108,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
26771
27108
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
26772
27109
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
26773
27110
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
27111
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
26774
27112
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
26775
27113
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
26776
27114
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -26781,6 +27119,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
26781
27119
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
26782
27120
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
26783
27121
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
27122
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
26784
27123
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
26785
27124
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
26786
27125
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -26928,6 +27267,7 @@ export declare const recordsBulkUpdateResultSchema: z$2.ZodObject<{
26928
27267
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
26929
27268
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
26930
27269
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
27270
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
26931
27271
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
26932
27272
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
26933
27273
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
@@ -26977,6 +27317,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
26977
27317
  readonly CONNECTOR_API_FAILED: "SCHEMA_CONNECTOR_API_FAILED";
26978
27318
  readonly CONNECTOR_AUTH_FAILED: "SCHEMA_CONNECTOR_AUTH_FAILED";
26979
27319
  readonly CONNECTOR_INVALID_STATE: "SCHEMA_CONNECTOR_INVALID_STATE";
27320
+ readonly CONNECTOR_ACCOUNT_MISMATCH: "SCHEMA_CONNECTOR_ACCOUNT_MISMATCH";
26980
27321
  readonly CONNECTOR_GRANT_ORPHANED: "SCHEMA_CONNECTOR_GRANT_ORPHANED";
26981
27322
  readonly OAUTH_COMPLETION_REFUSED: "SCHEMA_OAUTH_COMPLETION_REFUSED";
26982
27323
  readonly OAUTH_COMPLETION_OTHER_WORKSPACE: "SCHEMA_OAUTH_COMPLETION_OTHER_WORKSPACE";
@@ -26987,6 +27328,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
26987
27328
  readonly SYNC_CASCADE: "SCHEMA_SYNC_CASCADE";
26988
27329
  readonly ORPHAN_SYSTEM_ATTRIBUTE: "SCHEMA_ORPHAN_SYSTEM_ATTRIBUTE";
26989
27330
  readonly MIGRATIONS_PENDING: "SCHEMA_MIGRATIONS_PENDING";
27331
+ readonly BUILD_MISMATCH: "SCHEMA_BUILD_MISMATCH";
26990
27332
  readonly SYSTEM_ENTITY_IMMUTABLE: "SCHEMA_SYSTEM_ENTITY_IMMUTABLE";
26991
27333
  readonly AMBIGUOUS_CHANGE: "SCHEMA_AMBIGUOUS_CHANGE";
26992
27334
  readonly RECORD_GRANT_ON_WORKSPACE: "RECORD_GRANT_ON_WORKSPACE";
@@ -27134,6 +27476,7 @@ export declare const recordsBulkDeleteResultSchema: z$2.ZodObject<{
27134
27476
  readonly EMAIL_PROVIDER_API_FAILED: "EMAIL_PROVIDER_API_FAILED";
27135
27477
  readonly EMAIL_SEND_FAILED: "EMAIL_SEND_FAILED";
27136
27478
  readonly EMAIL_SENT_NOT_STORED: "EMAIL_SENT_NOT_STORED";
27479
+ readonly EMAIL_SEND_NOT_GRANTED: "EMAIL_SEND_NOT_GRANTED";
27137
27480
  readonly EMAIL_BATCH_ITEM_FAILED: "EMAIL_BATCH_ITEM_FAILED";
27138
27481
  readonly EMAIL_SCOPE_UNSUPPORTED: "EMAIL_SCOPE_UNSUPPORTED";
27139
27482
  readonly EMAIL_CATEGORY_LIMIT: "EMAIL_CATEGORY_LIMIT";
@@ -28990,7 +29333,7 @@ export declare function parseNewsIntensity(raw: unknown): NewsIntensity;
28990
29333
  /** `null` for a kind this version does not know — the entry is kept, without a marker. */
28991
29334
  export declare function parseNewsTarget(raw: string): NewsTarget | null;
28992
29335
  export declare function formatNewsTarget(target: NewsTarget): string;
28993
- /** Semver order with prereleases; `null` when either side is not semver. The only version comparison news uses. */
29336
+ /** Semver 2.0.0 order with prereleases, build metadata ignored (§10); `null` when either side is not semver. The only version comparison news uses. */
28994
29337
  export declare function compareVersions(a: string, b: string): -1 | 0 | 1 | null;
28995
29338
  export declare function isSemver(value: string): boolean;
28996
29339
  /**