@standards/schema 1.0.0-alpha.407 → 1.0.0-alpha.409

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 (85) hide show
  1. package/dist/{all-CYfzNNTD.d.ts → all-BSKNqzGh.d.mts} +12 -10
  2. package/dist/{all-1spF7ByM.d.mts → all-BwAwSr3s.d.ts} +12 -10
  3. package/dist/all-DoPwVWIX.js +2 -0
  4. package/dist/all-FfziiXML.mjs +2 -0
  5. package/dist/api/index.d.mts +415 -113
  6. package/dist/api/index.d.ts +415 -113
  7. package/dist/api/index.js +1 -1
  8. package/dist/api/index.mjs +1 -1
  9. package/dist/{attributes-CB6EJyu2.d.mts → attributes-BgPCTw3y.d.mts} +1 -1
  10. package/dist/{attributes-DPwwMMgq.d.ts → attributes-D4nvUmw6.d.ts} +1 -1
  11. package/dist/{checkbox-B6TumdR6.d.mts → checkbox-D11vN4kY.d.mts} +2 -2
  12. package/dist/{checkbox-M5L3PYDZ.d.ts → checkbox-DSAorFpa.d.ts} +2 -2
  13. package/dist/{date-D5D3aP1p.d.ts → date-C29k_cah.d.ts} +2 -2
  14. package/dist/{date-DM0ExRcF.d.mts → date-CtZVrU3Z.d.mts} +2 -2
  15. package/dist/{exceptions-BlKiQcvh.d.ts → exceptions-CmMd5DGH.d.mts} +12 -0
  16. package/dist/{exceptions-BlKiQcvh.d.mts → exceptions-CmMd5DGH.d.ts} +12 -0
  17. package/dist/exceptions.d.mts +1 -1
  18. package/dist/exceptions.d.ts +1 -1
  19. package/dist/exceptions.js +1 -1
  20. package/dist/exceptions.mjs +1 -1
  21. package/dist/{index-CXyPgHS_.d.mts → index-B6XCKKgD.d.mts} +1 -1
  22. package/dist/{index-CIS58KNs.d.mts → index-BDkw6z3G.d.mts} +3 -2
  23. package/dist/{index-BQ4MPVw-.d.ts → index-BJwJSvSN.d.ts} +213 -31
  24. package/dist/{index-Ba5hViTX.d.ts → index-CCt_hCgK.d.ts} +1 -1
  25. package/dist/{index-CkNJkuYX.d.ts → index-CXO6_OVC.d.ts} +3 -3
  26. package/dist/{index-CPeCTcO1.d.mts → index-DDCXoccV.d.mts} +213 -31
  27. package/dist/{index-DfaotFfW.d.mts → index-QZR1nwQt.d.mts} +3 -3
  28. package/dist/{index-ChyZg9Dl.d.ts → index-qj0Sxls-.d.ts} +3 -2
  29. package/dist/index.d.mts +10 -10
  30. package/dist/index.d.ts +10 -10
  31. package/dist/index.js +1 -1
  32. package/dist/index.mjs +1 -1
  33. package/dist/{number-CIP0eOB9.d.ts → number-BGpvOweC.d.ts} +2 -2
  34. package/dist/{number-BulsVlZX.d.mts → number-g88uoxhJ.d.mts} +2 -2
  35. package/dist/{objects-Cvc21DHf.d.mts → objects-C9F-MirX.d.mts} +27 -2
  36. package/dist/{objects-B07Ix6br.d.ts → objects-CfWCm1OL.d.ts} +27 -2
  37. package/dist/record-operation-B9XPdpM4.js +2 -0
  38. package/dist/record-operation-DR_4hSNA.mjs +2 -0
  39. package/dist/{text-BsEjIQsm.d.ts → text-CMMMIBIT.d.ts} +2 -2
  40. package/dist/{text-9dEmwy7y.d.mts → text-Dyxn_QlR.d.mts} +2 -2
  41. package/dist/{utils-5JI2a7Qr.d.ts → utils-Du85J1nY.d.ts} +1 -1
  42. package/dist/{utils-Vep_JDSS.d.mts → utils-mBdW0zGZ.d.mts} +1 -1
  43. package/dist/utils.d.mts +1 -1
  44. package/dist/utils.d.ts +1 -1
  45. package/dist/validation/all.d.mts +4 -4
  46. package/dist/validation/all.d.ts +4 -4
  47. package/dist/validation/all.js +1 -1
  48. package/dist/validation/all.mjs +1 -1
  49. package/dist/validation/complex/currency.d.mts +2 -2
  50. package/dist/validation/complex/currency.d.ts +2 -2
  51. package/dist/validation/complex/location.d.mts +2 -2
  52. package/dist/validation/complex/location.d.ts +2 -2
  53. package/dist/validation/complex/phone.d.mts +2 -2
  54. package/dist/validation/complex/phone.d.ts +2 -2
  55. package/dist/validation/complex/relation.d.mts +2 -2
  56. package/dist/validation/complex/relation.d.ts +2 -2
  57. package/dist/validation/complex/richtext.d.mts +2 -2
  58. package/dist/validation/complex/richtext.d.ts +2 -2
  59. package/dist/validation/complex/select.d.mts +2 -2
  60. package/dist/validation/complex/select.d.ts +2 -2
  61. package/dist/validation/complex/user.d.mts +2 -2
  62. package/dist/validation/complex/user.d.ts +2 -2
  63. package/dist/validation/computed/formula.d.mts +2 -2
  64. package/dist/validation/computed/formula.d.ts +2 -2
  65. package/dist/validation/computed/rollup.d.mts +2 -2
  66. package/dist/validation/computed/rollup.d.ts +2 -2
  67. package/dist/validation/config/index.d.mts +1 -1
  68. package/dist/validation/config/index.d.ts +1 -1
  69. package/dist/validation/core/index.d.mts +1 -1
  70. package/dist/validation/core/index.d.ts +1 -1
  71. package/dist/validation/object/index.d.mts +1 -1
  72. package/dist/validation/object/index.d.ts +1 -1
  73. package/dist/validation/primitives/checkbox.d.mts +1 -1
  74. package/dist/validation/primitives/checkbox.d.ts +1 -1
  75. package/dist/validation/primitives/date.d.mts +1 -1
  76. package/dist/validation/primitives/date.d.ts +1 -1
  77. package/dist/validation/primitives/number.d.mts +1 -1
  78. package/dist/validation/primitives/number.d.ts +1 -1
  79. package/dist/validation/primitives/text.d.mts +1 -1
  80. package/dist/validation/primitives/text.d.ts +1 -1
  81. package/package.json +2 -2
  82. package/dist/all-BNOv4MuC.js +0 -2
  83. package/dist/all-Bzzltedd.mjs +0 -2
  84. package/dist/record-operation-CuRWYQ7i.js +0 -2
  85. package/dist/record-operation-CylhzAbn.mjs +0 -2
@@ -1,10 +1,10 @@
1
1
 
2
- import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-BlKiQcvh.js";
3
- import { TenantId, Uuid } from "./utils-5JI2a7Qr.js";
4
- import { DocumentLayout, ImageShape, ListViewTabVisibility, ObjectDefinition, ObjectImage, ObjectRecord, RecordAppearance, RecordListScope, ResourceVisibility, Timestamps, ViewerAccess } from "./objects-B07Ix6br.js";
5
- import { Attribute, AttributeType, BilateralConfig, CheckboxAttribute, Currency, CurrencyAttribute, DateAttribute, DatePrecision, DateRangeValue, DocumentAttribute, FormulaAttribute, FormulaReturnType, Location, LocationAttribute, LocationGranularity, MultiRelationAttribute, MultiselectAttribute, NumberAttribute, Option, Phone, PhoneAttribute, PropertyAttribute, PropertySchema, RelationAttribute, RelationTarget, RichtextAttribute, RollupAttribute, RollupFunction, SelectAttribute, SingleRelationAttribute, StatusAttribute, TextAttribute, TimeFormat, UserAttribute, UserReferenceType } from "./attributes-DPwwMMgq.js";
6
- import { ActivityContentDefinition, BLOCK_PERIODS, BlockContext, BlockDefinition, BlockInput, BlockWidth, CollectionAction, CollectionContentDefinition, CollectionContentSource, ColumnReference, ContentConfiguration, ContentCreateMode, ContentField, ContentFieldGroup, ContentOpenMode, ContentViewContext, ContentViewDefinition, CustomContentDefinition, DocumentsContentDefinition, DynamicValue, Eager, EmailsContentDefinition, FilterOperator, FilterRule, FilterState, FilterValue, FormContentDefinition, FormDensity, FormsContentDefinition, GridPosition, GridViolation, HeightMode, InferAttributeValue, InferQualifiedProps, InputShape, LayoutTraits, ListableBlockInput, MeetingsContentDefinition, ObjectBuilderLike, ObjectViewContext, ObjectViewDefinition, PageContentDefinition, PageViewDefinition, QualifiedDocumentAttributeBuilder, QualifiedDocumentBrand, QueryState, RecordMetadata, RecordQuery, RecordQueryDefinition, RelativeDateValue, RichtextContentDefinition, SortRule, ViewContentDefinition, ViewRead, WithCustomAttributes, WithCustomRecordAttributes, WithoutSystemFields } from "./all-CYfzNNTD.js";
7
- import { UpdateObjectInput } from "./index-ChyZg9Dl.js";
2
+ import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-CmMd5DGH.js";
3
+ import { TenantId, Uuid } from "./utils-Du85J1nY.js";
4
+ import { DocumentLayout, ImageShape, ListViewTabVisibility, ObjectDefinition, ObjectImage, ObjectRecord, RecordAppearance, RecordListScope, ResourceVisibility, Timestamps, ViewerAccess } from "./objects-CfWCm1OL.js";
5
+ import { Attribute, AttributeType, BilateralConfig, CheckboxAttribute, Currency, CurrencyAttribute, DateAttribute, DatePrecision, DateRangeValue, DocumentAttribute, FormulaAttribute, FormulaReturnType, Location, LocationAttribute, LocationGranularity, MultiRelationAttribute, MultiselectAttribute, NumberAttribute, Option, Phone, PhoneAttribute, PropertyAttribute, PropertySchema, RelationAttribute, RelationTarget, RichtextAttribute, RollupAttribute, RollupFunction, SelectAttribute, SingleRelationAttribute, StatusAttribute, TextAttribute, TimeFormat, UserAttribute, UserReferenceType } from "./attributes-D4nvUmw6.js";
6
+ import { ActivityContentDefinition, BLOCK_PERIODS, BlockContext, BlockDefinition, BlockInput, BlockWidth, CollectionAction, CollectionContentDefinition, CollectionContentSource, ColumnReference, ContentConfiguration, ContentCreateMode, ContentField, ContentFieldGroup, ContentOpenMode, ContentViewContext, ContentViewDefinition, CustomContentDefinition, DocumentsContentDefinition, DynamicValue, Eager, EmailsContentDefinition, FilterOperator, FilterRule, FilterState, FilterValue, FormContentDefinition, FormDensity, FormsContentDefinition, GridPosition, GridViolation, HeightMode, InferAttributeValue, InferQualifiedProps, InputShape, LayoutTraits, ListableBlockInput, MeetingsContentDefinition, ObjectBuilderLike, ObjectViewContext, ObjectViewDefinition, PageContentDefinition, PageViewDefinition, QualifiedDocumentAttributeBuilder, QualifiedDocumentBrand, QueryState, RecordMetadata, RecordQuery, RecordQueryDefinition, RelativeDateValue, RichtextContentDefinition, SortRule, ViewContentDefinition, ViewRead, WithCustomAttributes, WithCustomRecordAttributes, WithoutSystemFields } from "./all-BwAwSr3s.js";
7
+ import { UpdateObjectInput } from "./index-qj0Sxls-.js";
8
8
  import * as z$2 from "zod";
9
9
  import z, { z as z$1 } from "zod";
10
10
  import { ColorId, CountryIso3, CurrencyCode, IconName, MimeType } from "@standards/constants";
@@ -396,6 +396,13 @@ export declare const PERMISSION_CATALOG: readonly [{
396
396
  readonly id: "manage";
397
397
  readonly add: readonly ["create", "delete"];
398
398
  }];
399
+ }, {
400
+ readonly id: "devices";
401
+ readonly resources: readonly ["devices"];
402
+ readonly levels: readonly [{
403
+ readonly id: "manage";
404
+ readonly add: readonly ["manage"];
405
+ }];
399
406
  }];
400
407
  }, {
401
408
  readonly id: "administration";
@@ -1246,8 +1253,8 @@ export declare const meetingsOperations: {
1246
1253
  readonly input: z$2.ZodObject<{
1247
1254
  meetingId: z$2.ZodString;
1248
1255
  override: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodEnum<{
1249
- force: "force";
1250
1256
  skip: "skip";
1257
+ force: "force";
1251
1258
  }>>>;
1252
1259
  }, z$2.core.$strip>;
1253
1260
  readonly output: OutputType<Meeting>;
@@ -2341,7 +2348,7 @@ export declare const githubTriggerMatchSchema: z$2.ZodPipe<z$2.ZodObject<{
2341
2348
  })[];
2342
2349
  } | {
2343
2350
  family: "workflow";
2344
- actions: ("in_progress" | "requested" | "completed")[];
2351
+ actions: ("in_progress" | "completed" | "requested")[];
2345
2352
  repositories: string[];
2346
2353
  sender: GithubTriggerSender;
2347
2354
  conditions: ({
@@ -2892,7 +2899,7 @@ export declare const connectorTriggerMatchSchema: z$2.ZodUnion<readonly [z$2.Zod
2892
2899
  })[];
2893
2900
  } | {
2894
2901
  family: "workflow";
2895
- actions: ("in_progress" | "requested" | "completed")[];
2902
+ actions: ("in_progress" | "completed" | "requested")[];
2896
2903
  repositories: string[];
2897
2904
  sender: GithubTriggerSender;
2898
2905
  conditions: ({
@@ -3574,6 +3581,8 @@ export declare const VERB_NAMES: readonly ["search", "query", "read", "write", "
3574
3581
  export type VerbName = (typeof VERB_NAMES)[number];
3575
3582
  /** The one verb by which an agent reaches a person, a session or a draft. */
3576
3583
  export declare const SEND_VERB_NAME = "send";
3584
+ /** The verb that moves bytes between the sandbox, a mailbox and Standards' own files. */
3585
+ export declare const COPY_VERB_NAME = "copy";
3577
3586
  /** Record, document and file tools: always loaded, bounded by data permissions. */
3578
3587
  export declare const CORE_RECORD_TOOL_NAMES: readonly ["search", "query", "read", "write", "delete", "organize", "copy", "send", "edit_content"];
3579
3588
  /** Core: always loaded, never removable (D2). */
@@ -3871,7 +3880,7 @@ export interface ToolSummary {
3871
3880
  approval: boolean;
3872
3881
  }
3873
3882
  export interface DeviceGrantDetail {
3874
- platform: "darwin" | "linux";
3883
+ platform: "darwin" | "linux" | "win32";
3875
3884
  status: "online" | "offline" | "revoked";
3876
3885
  agentExecutionAuthorized: boolean;
3877
3886
  }
@@ -3977,6 +3986,11 @@ export interface AgentUIDataTypes {
3977
3986
  reason: string;
3978
3987
  };
3979
3988
  usage: AgentUsageView;
3989
+ /** A completed `send` to the session's person, live beside its call: the step's `sent-message` part. */
3990
+ "sent-message": {
3991
+ text: string;
3992
+ attachments?: string[];
3993
+ };
3980
3994
  "message-updated": {
3981
3995
  message: AgentSessionMessage;
3982
3996
  };
@@ -3988,6 +4002,33 @@ export interface AgentUIDataTypes {
3988
4002
  };
3989
4003
  }
3990
4004
  //#endregion
4005
+ //#region src/types/record-hierarchy.d.ts
4006
+ /**
4007
+ * Who gains and who loses access when a record moves under another parent
4008
+ * (spec 2026-11-02-hierarchical-records-design.md §4): the diff between the
4009
+ * effective audiences of its current and its new access root. The client
4010
+ * shows it before confirming, and `records.move` refuses when it changed.
4011
+ */
4012
+ export interface MoveImpact {
4013
+ /** Actors who read the subtree after the move and not before. */
4014
+ readonly added: readonly Uuid[];
4015
+ /** Actors who read the subtree before the move and not after. */
4016
+ readonly removed: readonly Uuid[];
4017
+ /** Actors who keep access with another role. */
4018
+ readonly roleChanged: readonly Uuid[];
4019
+ readonly workspaceBefore: boolean;
4020
+ readonly workspaceAfter: boolean;
4021
+ /** The moved record and its descendants. */
4022
+ readonly subtreeSize: number;
4023
+ }
4024
+ /**
4025
+ * Whether a move lets anyone read the subtree who could not before: someone
4026
+ * gains it, or a private tree becomes the workspace's. A role change keeps
4027
+ * the same readers. The one rule an agent's move is always asked on, and
4028
+ * the one the move dialog reads.
4029
+ */
4030
+ export declare function moveWidensAudience(impact: MoveImpact): boolean;
4031
+ //#endregion
3991
4032
  //#region src/types/agent.d.ts
3992
4033
  /**
3993
4034
  * Outcome of a compaction pass: a no-op (context already small enough), an LLM
@@ -4765,6 +4806,18 @@ export interface ToolImpact {
4765
4806
  quoteTruncatedChars: number;
4766
4807
  };
4767
4808
  };
4809
+ /**
4810
+ * Who gains and loses a record's subtree if it moves (`organize`
4811
+ * `file_under`), measured when the person is asked: the approved move is
4812
+ * refused if the audience is no longer this one.
4813
+ */
4814
+ move?: MoveImpact;
4815
+ /**
4816
+ * Where that move files the record, beside `move`: the new parent, named as
4817
+ * `record` is, or `null` for the top level. The card names it before anyone
4818
+ * approves. Its label only.
4819
+ */
4820
+ parent?: NonNullable<ToolImpact["record"]> | null;
4768
4821
  /** Named counts, e.g. `{ records: 1284, brokenLinks: 63 }`. */
4769
4822
  counts?: Record<string, number>;
4770
4823
  warnings?: string[];
@@ -5741,10 +5794,43 @@ export declare class DeviceChannelProtocolError extends SchemaError {
5741
5794
  readonly _tag = "DeviceChannelProtocolError";
5742
5795
  constructor(message: string);
5743
5796
  }
5797
+ /** The shells a worker can open a session in; announced at `authenticate`. */
5798
+ export declare const DEVICE_SHELLS: readonly ["zsh", "bash", "sh", "fish", "pwsh", "powershell"];
5799
+ export type DeviceShell = (typeof DEVICE_SHELLS)[number];
5800
+ /** Whether the machine can drive its desktop through `agent-desktop`. */
5801
+ export declare const DEVICE_DESKTOP_STATES: readonly ["ready", "permission_missing", "no_session", "unavailable"];
5802
+ export type DeviceDesktopState = (typeof DEVICE_DESKTOP_STATES)[number];
5803
+ export declare const DeviceDesktopStatusSchema: z$2.ZodObject<{
5804
+ state: z$2.ZodEnum<{
5805
+ ready: "ready";
5806
+ permission_missing: "permission_missing";
5807
+ no_session: "no_session";
5808
+ unavailable: "unavailable";
5809
+ }>;
5810
+ version: z$2.ZodString;
5811
+ }, z$2.core.$strict>;
5812
+ export type DeviceDesktopStatus = z$2.infer<typeof DeviceDesktopStatusSchema>;
5744
5813
  export declare const DeviceChannelWorkerFrameSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
5745
5814
  type: z$2.ZodLiteral<"authenticate">;
5746
5815
  credential: z$2.ZodString;
5747
5816
  protocol: z$2.ZodOptional<z$2.ZodNumber>;
5817
+ desktop: z$2.ZodOptional<z$2.ZodObject<{
5818
+ state: z$2.ZodEnum<{
5819
+ ready: "ready";
5820
+ permission_missing: "permission_missing";
5821
+ no_session: "no_session";
5822
+ unavailable: "unavailable";
5823
+ }>;
5824
+ version: z$2.ZodString;
5825
+ }, z$2.core.$strict>>;
5826
+ shell: z$2.ZodOptional<z$2.ZodEnum<{
5827
+ zsh: "zsh";
5828
+ bash: "bash";
5829
+ sh: "sh";
5830
+ fish: "fish";
5831
+ pwsh: "pwsh";
5832
+ powershell: "powershell";
5833
+ }>>;
5748
5834
  }, z$2.core.$strict>, z$2.ZodObject<{
5749
5835
  id: z$2.ZodUUID;
5750
5836
  leaseToken: z$2.ZodString;
@@ -5772,6 +5858,10 @@ export declare const DeviceChannelWorkerFrameSchema: z$2.ZodDiscriminatedUnion<[
5772
5858
  execution_failed: "execution_failed";
5773
5859
  }>>;
5774
5860
  }, z$2.core.$strict>;
5861
+ background: z$2.ZodOptional<z$2.ZodObject<{
5862
+ pid: z$2.ZodNumber;
5863
+ logPath: z$2.ZodString;
5864
+ }, z$2.core.$strict>>;
5775
5865
  id: z$2.ZodUUID;
5776
5866
  leaseToken: z$2.ZodString;
5777
5867
  type: z$2.ZodLiteral<"complete">;
@@ -5798,9 +5888,14 @@ export declare const DeviceChannelServerFrameSchema: z$2.ZodDiscriminatedUnion<[
5798
5888
  timeoutMs: z$2.ZodNumber;
5799
5889
  command: z$2.ZodOptional<z$2.ZodString>;
5800
5890
  cwd: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodString>>;
5891
+ rootSessionId: z$2.ZodOptional<z$2.ZodString>;
5892
+ background: z$2.ZodOptional<z$2.ZodBoolean>;
5801
5893
  id: z$2.ZodUUID;
5802
5894
  leaseToken: z$2.ZodString;
5803
5895
  type: z$2.ZodLiteral<"command">;
5896
+ }, z$2.core.$strict>, z$2.ZodObject<{
5897
+ type: z$2.ZodLiteral<"release_session">;
5898
+ rootSessionId: z$2.ZodString;
5804
5899
  }, z$2.core.$strict>, z$2.ZodObject<{
5805
5900
  type: z$2.ZodLiteral<"cancel">;
5806
5901
  id: z$2.ZodUUID;
@@ -7427,6 +7522,8 @@ export interface DBObject extends Timestamps {
7427
7522
  metadata?: Record<string, unknown>;
7428
7523
  /** Smart-folder layout convention for documents attached to records of this object. */
7429
7524
  documentLayout?: DocumentLayout;
7525
+ /** Records of this object may have a parent record of the same object. Stored in `metadata`. */
7526
+ hierarchical?: boolean;
7430
7527
  }
7431
7528
  /**
7432
7529
  * Data for creating a new object.
@@ -7445,6 +7542,7 @@ export interface CreateDBObject {
7445
7542
  system?: boolean;
7446
7543
  metadata?: Record<string, unknown>;
7447
7544
  documentLayout?: DocumentLayout;
7545
+ hierarchical?: boolean;
7448
7546
  }
7449
7547
  export interface UpdateDBObject {
7450
7548
  label?: string;
@@ -7459,6 +7557,7 @@ export interface UpdateDBObject {
7459
7557
  embeddingExpression?: string;
7460
7558
  metadata?: Record<string, unknown>;
7461
7559
  documentLayout?: DocumentLayout;
7560
+ hierarchical?: boolean;
7462
7561
  }
7463
7562
  /**
7464
7563
  * Data for upserting an object.
@@ -11447,6 +11546,10 @@ export declare class ObjectBuilder<TRecord extends Record<string, unknown> = {},
11447
11546
  * sub-folders and installable preset structures inside a record's drive.
11448
11547
  */
11449
11548
  documentLayout(layout: DocumentLayout): this;
11549
+ /**
11550
+ * Let records of this object have a parent record of the same object (a tree).
11551
+ */
11552
+ hierarchical(): this;
11450
11553
  /**
11451
11554
  * Build the final ObjectDefinition
11452
11555
  * @throws ValidationError if required fields are missing or invalid
@@ -12623,7 +12726,10 @@ export declare class GroupBuilder<const N extends string = string, const F exten
12623
12726
  attribute: string;
12624
12727
  }[]]>;
12625
12728
  description(description: string): GroupBuilder<N, F>;
12729
+ /** Every group folds already; this sets whether it starts folded. */
12626
12730
  collapsible(collapsed?: boolean): GroupBuilder<N, F>;
12731
+ /** Keeps the group open, with a plain title that does not fold it (#6439). */
12732
+ alwaysOpen(): GroupBuilder<N, F>;
12627
12733
  private presentation;
12628
12734
  build(): Omit<ContentFieldGroup, "name" | "fields"> & {
12629
12735
  name: N;
@@ -14250,8 +14356,8 @@ type AgentDataChunkOptions = {
14250
14356
  };
14251
14357
  export declare const providerNameSchema: z$2.ZodEnum<{
14252
14358
  cursor: "cursor";
14253
- openai: "openai";
14254
14359
  anthropic: "anthropic";
14360
+ openai: "openai";
14255
14361
  google: "google";
14256
14362
  spacexai: "spacexai";
14257
14363
  deepseek: "deepseek";
@@ -14281,8 +14387,8 @@ export declare const inferenceRoutingSchema: z$2.ZodEnum<{
14281
14387
  export declare const modelReferenceSchema: z$2.ZodObject<{
14282
14388
  provider: z$2.ZodEnum<{
14283
14389
  cursor: "cursor";
14284
- openai: "openai";
14285
14390
  anthropic: "anthropic";
14391
+ openai: "openai";
14286
14392
  google: "google";
14287
14393
  spacexai: "spacexai";
14288
14394
  deepseek: "deepseek";
@@ -14319,8 +14425,8 @@ export declare const agentSessionInferenceOverridesInputSchema: z$2.ZodObject<{
14319
14425
  model: z$2.ZodOptional<z$2.ZodObject<{
14320
14426
  provider: z$2.ZodEnum<{
14321
14427
  cursor: "cursor";
14322
- openai: "openai";
14323
14428
  anthropic: "anthropic";
14429
+ openai: "openai";
14324
14430
  google: "google";
14325
14431
  spacexai: "spacexai";
14326
14432
  deepseek: "deepseek";
@@ -14355,8 +14461,8 @@ export declare const agentSessionInferenceOverridesSchema: z$2.ZodObject<{
14355
14461
  model: z$2.ZodOptional<z$2.ZodObject<{
14356
14462
  provider: z$2.ZodEnum<{
14357
14463
  cursor: "cursor";
14358
- openai: "openai";
14359
14464
  anthropic: "anthropic";
14465
+ openai: "openai";
14360
14466
  google: "google";
14361
14467
  spacexai: "spacexai";
14362
14468
  deepseek: "deepseek";
@@ -14393,8 +14499,8 @@ export declare const sessionInferencePatchSchema: z$2.ZodObject<{
14393
14499
  model: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
14394
14500
  provider: z$2.ZodEnum<{
14395
14501
  cursor: "cursor";
14396
- openai: "openai";
14397
14502
  anthropic: "anthropic";
14503
+ openai: "openai";
14398
14504
  google: "google";
14399
14505
  spacexai: "spacexai";
14400
14506
  deepseek: "deepseek";
@@ -14453,10 +14559,10 @@ export declare const routedMessageInferenceSchema: z$2.ZodObject<{
14453
14559
  }>>;
14454
14560
  relation: z$2.ZodOptional<z$2.ZodEnum<{
14455
14561
  unknown: "unknown";
14456
- continue: "continue";
14457
14562
  aside: "aside";
14458
- modify: "modify";
14563
+ continue: "continue";
14459
14564
  new: "new";
14565
+ modify: "modify";
14460
14566
  }>>;
14461
14567
  anchorMessageId: z$2.ZodOptional<z$2.ZodString>;
14462
14568
  }, z$2.core.$strip>;
@@ -14500,6 +14606,20 @@ export declare const toolImpactSchema: z$2.ZodObject<{
14500
14606
  quoteTruncatedChars: z$2.ZodNumber;
14501
14607
  }, z$2.core.$strict>>;
14502
14608
  }, z$2.core.$strict>>;
14609
+ move: z$2.ZodOptional<z$2.ZodReadonly<z$2.ZodObject<{
14610
+ added: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14611
+ removed: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14612
+ roleChanged: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14613
+ workspaceBefore: z$2.ZodBoolean;
14614
+ workspaceAfter: z$2.ZodBoolean;
14615
+ subtreeSize: z$2.ZodNumber;
14616
+ }, z$2.core.$strict>>>;
14617
+ parent: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
14618
+ objectName: z$2.ZodString;
14619
+ id: z$2.ZodString;
14620
+ label: z$2.ZodString;
14621
+ objectIcon: z$2.ZodOptional<z$2.ZodString>;
14622
+ }, z$2.core.$strict>>>;
14503
14623
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14504
14624
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14505
14625
  }, z$2.core.$strict>;
@@ -14538,9 +14658,9 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
14538
14658
  }>>;
14539
14659
  state: z$2.ZodEnum<{
14540
14660
  error: "error";
14661
+ running: "running";
14541
14662
  completed: "completed";
14542
14663
  pending: "pending";
14543
- running: "running";
14544
14664
  "approval-requested": "approval-requested";
14545
14665
  "approval-responded": "approval-responded";
14546
14666
  "approval-dispatched": "approval-dispatched";
@@ -14587,6 +14707,20 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
14587
14707
  quoteTruncatedChars: z$2.ZodNumber;
14588
14708
  }, z$2.core.$strict>>;
14589
14709
  }, z$2.core.$strict>>;
14710
+ move: z$2.ZodOptional<z$2.ZodReadonly<z$2.ZodObject<{
14711
+ added: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14712
+ removed: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14713
+ roleChanged: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14714
+ workspaceBefore: z$2.ZodBoolean;
14715
+ workspaceAfter: z$2.ZodBoolean;
14716
+ subtreeSize: z$2.ZodNumber;
14717
+ }, z$2.core.$strict>>>;
14718
+ parent: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
14719
+ objectName: z$2.ZodString;
14720
+ id: z$2.ZodString;
14721
+ label: z$2.ZodString;
14722
+ objectIcon: z$2.ZodOptional<z$2.ZodString>;
14723
+ }, z$2.core.$strict>>>;
14590
14724
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14591
14725
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14592
14726
  }, z$2.core.$strict>>;
@@ -14653,8 +14787,8 @@ export declare const mentionReferenceSchema: z$2.ZodObject<{
14653
14787
  export declare const modelDefinitionSchema: z$2.ZodObject<{
14654
14788
  provider: z$2.ZodEnum<{
14655
14789
  cursor: "cursor";
14656
- openai: "openai";
14657
14790
  anthropic: "anthropic";
14791
+ openai: "openai";
14658
14792
  google: "google";
14659
14793
  spacexai: "spacexai";
14660
14794
  deepseek: "deepseek";
@@ -14716,9 +14850,9 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14716
14850
  }>>;
14717
14851
  state: z$2.ZodEnum<{
14718
14852
  error: "error";
14853
+ running: "running";
14719
14854
  completed: "completed";
14720
14855
  pending: "pending";
14721
- running: "running";
14722
14856
  "approval-requested": "approval-requested";
14723
14857
  "approval-responded": "approval-responded";
14724
14858
  "approval-dispatched": "approval-dispatched";
@@ -14765,6 +14899,20 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14765
14899
  quoteTruncatedChars: z$2.ZodNumber;
14766
14900
  }, z$2.core.$strict>>;
14767
14901
  }, z$2.core.$strict>>;
14902
+ move: z$2.ZodOptional<z$2.ZodReadonly<z$2.ZodObject<{
14903
+ added: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14904
+ removed: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14905
+ roleChanged: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
14906
+ workspaceBefore: z$2.ZodBoolean;
14907
+ workspaceAfter: z$2.ZodBoolean;
14908
+ subtreeSize: z$2.ZodNumber;
14909
+ }, z$2.core.$strict>>>;
14910
+ parent: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
14911
+ objectName: z$2.ZodString;
14912
+ id: z$2.ZodString;
14913
+ label: z$2.ZodString;
14914
+ objectIcon: z$2.ZodOptional<z$2.ZodString>;
14915
+ }, z$2.core.$strict>>>;
14768
14916
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14769
14917
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14770
14918
  }, z$2.core.$strict>>;
@@ -14830,8 +14978,8 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14830
14978
  model: z$2.ZodOptional<z$2.ZodObject<{
14831
14979
  provider: z$2.ZodEnum<{
14832
14980
  cursor: "cursor";
14833
- openai: "openai";
14834
14981
  anthropic: "anthropic";
14982
+ openai: "openai";
14835
14983
  google: "google";
14836
14984
  spacexai: "spacexai";
14837
14985
  deepseek: "deepseek";
@@ -14944,6 +15092,10 @@ export declare const customDataChunkSchemas: {
14944
15092
  utilization: z$2.ZodNumber;
14945
15093
  costUsd: z$2.ZodOptional<z$2.ZodNumber>;
14946
15094
  }, z$2.core.$strict>;
15095
+ readonly "sent-message": z$2.ZodObject<{
15096
+ text: z$2.ZodString;
15097
+ attachments: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
15098
+ }, z$2.core.$strict>;
14947
15099
  readonly "message-updated": z$2.ZodObject<{
14948
15100
  message: z$2.ZodObject<{
14949
15101
  id: z$2.ZodString;
@@ -14991,9 +15143,9 @@ export declare const customDataChunkSchemas: {
14991
15143
  }>>;
14992
15144
  state: z$2.ZodEnum<{
14993
15145
  error: "error";
15146
+ running: "running";
14994
15147
  completed: "completed";
14995
15148
  pending: "pending";
14996
- running: "running";
14997
15149
  "approval-requested": "approval-requested";
14998
15150
  "approval-responded": "approval-responded";
14999
15151
  "approval-dispatched": "approval-dispatched";
@@ -15040,6 +15192,20 @@ export declare const customDataChunkSchemas: {
15040
15192
  quoteTruncatedChars: z$2.ZodNumber;
15041
15193
  }, z$2.core.$strict>>;
15042
15194
  }, z$2.core.$strict>>;
15195
+ move: z$2.ZodOptional<z$2.ZodReadonly<z$2.ZodObject<{
15196
+ added: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15197
+ removed: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15198
+ roleChanged: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15199
+ workspaceBefore: z$2.ZodBoolean;
15200
+ workspaceAfter: z$2.ZodBoolean;
15201
+ subtreeSize: z$2.ZodNumber;
15202
+ }, z$2.core.$strict>>>;
15203
+ parent: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
15204
+ objectName: z$2.ZodString;
15205
+ id: z$2.ZodString;
15206
+ label: z$2.ZodString;
15207
+ objectIcon: z$2.ZodOptional<z$2.ZodString>;
15208
+ }, z$2.core.$strict>>>;
15043
15209
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
15044
15210
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
15045
15211
  }, z$2.core.$strict>>;
@@ -15105,8 +15271,8 @@ export declare const customDataChunkSchemas: {
15105
15271
  model: z$2.ZodOptional<z$2.ZodObject<{
15106
15272
  provider: z$2.ZodEnum<{
15107
15273
  cursor: "cursor";
15108
- openai: "openai";
15109
15274
  anthropic: "anthropic";
15275
+ openai: "openai";
15110
15276
  google: "google";
15111
15277
  spacexai: "spacexai";
15112
15278
  deepseek: "deepseek";
@@ -15171,6 +15337,20 @@ export declare const customDataChunkSchemas: {
15171
15337
  quoteTruncatedChars: z$2.ZodNumber;
15172
15338
  }, z$2.core.$strict>>;
15173
15339
  }, z$2.core.$strict>>;
15340
+ move: z$2.ZodOptional<z$2.ZodReadonly<z$2.ZodObject<{
15341
+ added: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15342
+ removed: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15343
+ roleChanged: z$2.ZodReadonly<z$2.ZodArray<z$2.ZodString>>;
15344
+ workspaceBefore: z$2.ZodBoolean;
15345
+ workspaceAfter: z$2.ZodBoolean;
15346
+ subtreeSize: z$2.ZodNumber;
15347
+ }, z$2.core.$strict>>>;
15348
+ parent: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
15349
+ objectName: z$2.ZodString;
15350
+ id: z$2.ZodString;
15351
+ label: z$2.ZodString;
15352
+ objectIcon: z$2.ZodOptional<z$2.ZodString>;
15353
+ }, z$2.core.$strict>>>;
15174
15354
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
15175
15355
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
15176
15356
  }, z$2.core.$strict>>;
@@ -15674,7 +15854,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
15674
15854
  })[];
15675
15855
  } | {
15676
15856
  family: "workflow";
15677
- actions: ("in_progress" | "requested" | "completed")[];
15857
+ actions: ("in_progress" | "completed" | "requested")[];
15678
15858
  repositories: string[];
15679
15859
  sender: GithubTriggerSender;
15680
15860
  conditions: ({
@@ -16112,7 +16292,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16112
16292
  })[];
16113
16293
  } | {
16114
16294
  family: "workflow";
16115
- actions: ("in_progress" | "requested" | "completed")[];
16295
+ actions: ("in_progress" | "completed" | "requested")[];
16116
16296
  repositories: string[];
16117
16297
  sender: GithubTriggerSender;
16118
16298
  conditions: ({
@@ -16390,7 +16570,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16390
16570
  })[];
16391
16571
  } | {
16392
16572
  family: "workflow";
16393
- actions: ("in_progress" | "requested" | "completed")[];
16573
+ actions: ("in_progress" | "completed" | "requested")[];
16394
16574
  repositories: string[];
16395
16575
  sender: GithubTriggerSender;
16396
16576
  conditions: ({
@@ -16669,7 +16849,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16669
16849
  })[];
16670
16850
  } | {
16671
16851
  family: "workflow";
16672
- actions: ("in_progress" | "requested" | "completed")[];
16852
+ actions: ("in_progress" | "completed" | "requested")[];
16673
16853
  repositories: string[];
16674
16854
  sender: GithubTriggerSender;
16675
16855
  conditions: ({
@@ -16946,7 +17126,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16946
17126
  })[];
16947
17127
  } | {
16948
17128
  family: "workflow";
16949
- actions: ("in_progress" | "requested" | "completed")[];
17129
+ actions: ("in_progress" | "completed" | "requested")[];
16950
17130
  repositories: string[];
16951
17131
  sender: GithubTriggerSender;
16952
17132
  conditions: ({
@@ -17371,7 +17551,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
17371
17551
  })[];
17372
17552
  } | {
17373
17553
  family: "workflow";
17374
- actions: ("in_progress" | "requested" | "completed")[];
17554
+ actions: ("in_progress" | "completed" | "requested")[];
17375
17555
  repositories: string[];
17376
17556
  sender: GithubTriggerSender;
17377
17557
  conditions: ({
@@ -17639,7 +17819,7 @@ export declare function parseMergedAgentTrigger(current: AgentTriggerInput, patc
17639
17819
  * yet is kept rather than refused.
17640
17820
  */
17641
17821
  export declare const modelIdentitySchema: z$2.ZodObject<{
17642
- provider: z$2.ZodCustom<"cursor" | "openai" | "anthropic" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai", "cursor" | "openai" | "anthropic" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai">;
17822
+ provider: z$2.ZodCustom<"cursor" | "anthropic" | "openai" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai", "cursor" | "anthropic" | "openai" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai">;
17643
17823
  model: z$2.ZodString;
17644
17824
  }, z$2.core.$strip>;
17645
17825
  //#endregion
@@ -17838,7 +18018,7 @@ export declare function judgePreferenceWrite(declarations: PreferenceDeclaration
17838
18018
  */
17839
18019
  export declare const CORE_PREFERENCES: readonly [PreferenceDeclaration<"workPosture", "manual" | "architect" | "auto">, PreferenceDeclaration<"chat.default", {
17840
18020
  model?: {
17841
- provider: "cursor" | "openai" | "anthropic" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai";
18021
+ provider: "cursor" | "anthropic" | "openai" | "google" | "spacexai" | "deepseek" | "moonshotai" | "alibaba" | "mistral" | "minimax" | "meta" | "zai";
17842
18022
  model: string;
17843
18023
  } | undefined;
17844
18024
  routing?: "auto" | undefined;
@@ -17911,6 +18091,7 @@ declare const recordStep: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
17911
18091
  base: z$2.ZodUnknown;
17912
18092
  props: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
17913
18093
  }, z$2.core.$strict>>;
18094
+ parentId: z$2.ZodOptional<z$2.ZodUUID>;
17914
18095
  }, z$2.core.$strict>>;
17915
18096
  }, z$2.core.$strict>, z$2.ZodObject<{
17916
18097
  kind: z$2.ZodLiteral<"record.delete">;
@@ -17962,6 +18143,7 @@ export declare const recordOperationSchema: z$2.ZodObject<{
17962
18143
  base: z$2.ZodUnknown;
17963
18144
  props: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
17964
18145
  }, z$2.core.$strict>>;
18146
+ parentId: z$2.ZodOptional<z$2.ZodUUID>;
17965
18147
  }, z$2.core.$strict>>;
17966
18148
  }, z$2.core.$strict>, z$2.ZodObject<{
17967
18149
  kind: z$2.ZodLiteral<"record.delete">;
@@ -1,5 +1,5 @@
1
1
 
2
- import { Attribute } from "./attributes-DPwwMMgq.js";
2
+ import { Attribute } from "./attributes-D4nvUmw6.js";
3
3
  import { z as z$1 } from "zod";
4
4
  //#region src/validation/core/types.d.ts
5
5
  /**
@@ -1,7 +1,7 @@
1
1
 
2
- import { ObjectDefinition } from "./objects-B07Ix6br.js";
3
- import { Attribute } from "./attributes-DPwwMMgq.js";
4
- import { ValidationMessages, ValidationResult } from "./index-Ba5hViTX.js";
2
+ import { ObjectDefinition } from "./objects-CfWCm1OL.js";
3
+ import { Attribute } from "./attributes-D4nvUmw6.js";
4
+ import { ValidationMessages, ValidationResult } from "./index-CCt_hCgK.js";
5
5
  import * as z$2 from "zod";
6
6
  //#region src/validation/object/attribute-factory.d.ts
7
7
  /**