@standards/schema 1.0.0-alpha.408 → 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-DfIVNu-r.d.mts → index-BJwJSvSN.d.ts} +215 -35
  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-kIe8V1Oz.d.ts → index-DDCXoccV.d.mts} +215 -35
  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-BLq2emrx.js +0 -2
  85. package/dist/record-operation-DK20jPvI.mjs +0 -2
@@ -1,15 +1,15 @@
1
1
 
2
- import { SchemaError, SchemaErrorCode, ValidationError } from "./exceptions-BlKiQcvh.mjs";
3
- import { TenantId, Uuid } from "./utils-Vep_JDSS.mjs";
4
- import { DocumentLayout, ImageShape, ListViewTabVisibility, ObjectDefinition, ObjectImage, ObjectRecord, RecordAppearance, RecordListScope, ResourceVisibility, Timestamps, ViewerAccess } from "./objects-Cvc21DHf.mjs";
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-CB6EJyu2.mjs";
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-1spF7ByM.mjs";
7
- import { UpdateObjectInput } from "./index-CIS58KNs.mjs";
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";
11
- import "libphonenumber-js";
12
11
  import { StandardSchemaV1, StandardSchemaV1 as StandardSchemaV1$1 } from "@standard-schema/spec";
12
+ import "libphonenumber-js";
13
13
  //#region src/types/permissions.d.ts
14
14
  /**
15
15
  * Scope of a permission rule.
@@ -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: ({
@@ -3873,7 +3880,7 @@ export interface ToolSummary {
3873
3880
  approval: boolean;
3874
3881
  }
3875
3882
  export interface DeviceGrantDetail {
3876
- platform: "darwin" | "linux";
3883
+ platform: "darwin" | "linux" | "win32";
3877
3884
  status: "online" | "offline" | "revoked";
3878
3885
  agentExecutionAuthorized: boolean;
3879
3886
  }
@@ -3979,6 +3986,11 @@ export interface AgentUIDataTypes {
3979
3986
  reason: string;
3980
3987
  };
3981
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
+ };
3982
3994
  "message-updated": {
3983
3995
  message: AgentSessionMessage;
3984
3996
  };
@@ -3990,6 +4002,33 @@ export interface AgentUIDataTypes {
3990
4002
  };
3991
4003
  }
3992
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
3993
4032
  //#region src/types/agent.d.ts
3994
4033
  /**
3995
4034
  * Outcome of a compaction pass: a no-op (context already small enough), an LLM
@@ -4767,6 +4806,18 @@ export interface ToolImpact {
4767
4806
  quoteTruncatedChars: number;
4768
4807
  };
4769
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;
4770
4821
  /** Named counts, e.g. `{ records: 1284, brokenLinks: 63 }`. */
4771
4822
  counts?: Record<string, number>;
4772
4823
  warnings?: string[];
@@ -5743,10 +5794,43 @@ export declare class DeviceChannelProtocolError extends SchemaError {
5743
5794
  readonly _tag = "DeviceChannelProtocolError";
5744
5795
  constructor(message: string);
5745
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>;
5746
5813
  export declare const DeviceChannelWorkerFrameSchema: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
5747
5814
  type: z$2.ZodLiteral<"authenticate">;
5748
5815
  credential: z$2.ZodString;
5749
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
+ }>>;
5750
5834
  }, z$2.core.$strict>, z$2.ZodObject<{
5751
5835
  id: z$2.ZodUUID;
5752
5836
  leaseToken: z$2.ZodString;
@@ -5774,6 +5858,10 @@ export declare const DeviceChannelWorkerFrameSchema: z$2.ZodDiscriminatedUnion<[
5774
5858
  execution_failed: "execution_failed";
5775
5859
  }>>;
5776
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>>;
5777
5865
  id: z$2.ZodUUID;
5778
5866
  leaseToken: z$2.ZodString;
5779
5867
  type: z$2.ZodLiteral<"complete">;
@@ -5800,9 +5888,14 @@ export declare const DeviceChannelServerFrameSchema: z$2.ZodDiscriminatedUnion<[
5800
5888
  timeoutMs: z$2.ZodNumber;
5801
5889
  command: z$2.ZodOptional<z$2.ZodString>;
5802
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>;
5803
5893
  id: z$2.ZodUUID;
5804
5894
  leaseToken: z$2.ZodString;
5805
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;
5806
5899
  }, z$2.core.$strict>, z$2.ZodObject<{
5807
5900
  type: z$2.ZodLiteral<"cancel">;
5808
5901
  id: z$2.ZodUUID;
@@ -7429,6 +7522,8 @@ export interface DBObject extends Timestamps {
7429
7522
  metadata?: Record<string, unknown>;
7430
7523
  /** Smart-folder layout convention for documents attached to records of this object. */
7431
7524
  documentLayout?: DocumentLayout;
7525
+ /** Records of this object may have a parent record of the same object. Stored in `metadata`. */
7526
+ hierarchical?: boolean;
7432
7527
  }
7433
7528
  /**
7434
7529
  * Data for creating a new object.
@@ -7447,6 +7542,7 @@ export interface CreateDBObject {
7447
7542
  system?: boolean;
7448
7543
  metadata?: Record<string, unknown>;
7449
7544
  documentLayout?: DocumentLayout;
7545
+ hierarchical?: boolean;
7450
7546
  }
7451
7547
  export interface UpdateDBObject {
7452
7548
  label?: string;
@@ -7461,6 +7557,7 @@ export interface UpdateDBObject {
7461
7557
  embeddingExpression?: string;
7462
7558
  metadata?: Record<string, unknown>;
7463
7559
  documentLayout?: DocumentLayout;
7560
+ hierarchical?: boolean;
7464
7561
  }
7465
7562
  /**
7466
7563
  * Data for upserting an object.
@@ -11449,6 +11546,10 @@ export declare class ObjectBuilder<TRecord extends Record<string, unknown> = {},
11449
11546
  * sub-folders and installable preset structures inside a record's drive.
11450
11547
  */
11451
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;
11452
11553
  /**
11453
11554
  * Build the final ObjectDefinition
11454
11555
  * @throws ValidationError if required fields are missing or invalid
@@ -12625,7 +12726,10 @@ export declare class GroupBuilder<const N extends string = string, const F exten
12625
12726
  attribute: string;
12626
12727
  }[]]>;
12627
12728
  description(description: string): GroupBuilder<N, F>;
12729
+ /** Every group folds already; this sets whether it starts folded. */
12628
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>;
12629
12733
  private presentation;
12630
12734
  build(): Omit<ContentFieldGroup, "name" | "fields"> & {
12631
12735
  name: N;
@@ -14252,8 +14356,8 @@ type AgentDataChunkOptions = {
14252
14356
  };
14253
14357
  export declare const providerNameSchema: z$2.ZodEnum<{
14254
14358
  cursor: "cursor";
14255
- openai: "openai";
14256
14359
  anthropic: "anthropic";
14360
+ openai: "openai";
14257
14361
  google: "google";
14258
14362
  spacexai: "spacexai";
14259
14363
  deepseek: "deepseek";
@@ -14283,8 +14387,8 @@ export declare const inferenceRoutingSchema: z$2.ZodEnum<{
14283
14387
  export declare const modelReferenceSchema: z$2.ZodObject<{
14284
14388
  provider: z$2.ZodEnum<{
14285
14389
  cursor: "cursor";
14286
- openai: "openai";
14287
14390
  anthropic: "anthropic";
14391
+ openai: "openai";
14288
14392
  google: "google";
14289
14393
  spacexai: "spacexai";
14290
14394
  deepseek: "deepseek";
@@ -14321,8 +14425,8 @@ export declare const agentSessionInferenceOverridesInputSchema: z$2.ZodObject<{
14321
14425
  model: z$2.ZodOptional<z$2.ZodObject<{
14322
14426
  provider: z$2.ZodEnum<{
14323
14427
  cursor: "cursor";
14324
- openai: "openai";
14325
14428
  anthropic: "anthropic";
14429
+ openai: "openai";
14326
14430
  google: "google";
14327
14431
  spacexai: "spacexai";
14328
14432
  deepseek: "deepseek";
@@ -14357,8 +14461,8 @@ export declare const agentSessionInferenceOverridesSchema: z$2.ZodObject<{
14357
14461
  model: z$2.ZodOptional<z$2.ZodObject<{
14358
14462
  provider: z$2.ZodEnum<{
14359
14463
  cursor: "cursor";
14360
- openai: "openai";
14361
14464
  anthropic: "anthropic";
14465
+ openai: "openai";
14362
14466
  google: "google";
14363
14467
  spacexai: "spacexai";
14364
14468
  deepseek: "deepseek";
@@ -14395,8 +14499,8 @@ export declare const sessionInferencePatchSchema: z$2.ZodObject<{
14395
14499
  model: z$2.ZodOptional<z$2.ZodNullable<z$2.ZodObject<{
14396
14500
  provider: z$2.ZodEnum<{
14397
14501
  cursor: "cursor";
14398
- openai: "openai";
14399
14502
  anthropic: "anthropic";
14503
+ openai: "openai";
14400
14504
  google: "google";
14401
14505
  spacexai: "spacexai";
14402
14506
  deepseek: "deepseek";
@@ -14455,10 +14559,10 @@ export declare const routedMessageInferenceSchema: z$2.ZodObject<{
14455
14559
  }>>;
14456
14560
  relation: z$2.ZodOptional<z$2.ZodEnum<{
14457
14561
  unknown: "unknown";
14458
- continue: "continue";
14459
14562
  aside: "aside";
14460
- modify: "modify";
14563
+ continue: "continue";
14461
14564
  new: "new";
14565
+ modify: "modify";
14462
14566
  }>>;
14463
14567
  anchorMessageId: z$2.ZodOptional<z$2.ZodString>;
14464
14568
  }, z$2.core.$strip>;
@@ -14502,6 +14606,20 @@ export declare const toolImpactSchema: z$2.ZodObject<{
14502
14606
  quoteTruncatedChars: z$2.ZodNumber;
14503
14607
  }, z$2.core.$strict>>;
14504
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>>>;
14505
14623
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14506
14624
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14507
14625
  }, z$2.core.$strict>;
@@ -14540,13 +14658,13 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
14540
14658
  }>>;
14541
14659
  state: z$2.ZodEnum<{
14542
14660
  error: "error";
14661
+ running: "running";
14543
14662
  completed: "completed";
14544
14663
  pending: "pending";
14545
- running: "running";
14546
- streaming: "streaming";
14547
14664
  "approval-requested": "approval-requested";
14548
14665
  "approval-responded": "approval-responded";
14549
14666
  "approval-dispatched": "approval-dispatched";
14667
+ streaming: "streaming";
14550
14668
  }>;
14551
14669
  durationMs: z$2.ZodOptional<z$2.ZodNumber>;
14552
14670
  approvalId: z$2.ZodOptional<z$2.ZodString>;
@@ -14589,6 +14707,20 @@ export declare const agentMessagePartSchema: z$2.ZodUnion<readonly [z$2.ZodObjec
14589
14707
  quoteTruncatedChars: z$2.ZodNumber;
14590
14708
  }, z$2.core.$strict>>;
14591
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>>>;
14592
14724
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14593
14725
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14594
14726
  }, z$2.core.$strict>>;
@@ -14655,8 +14787,8 @@ export declare const mentionReferenceSchema: z$2.ZodObject<{
14655
14787
  export declare const modelDefinitionSchema: z$2.ZodObject<{
14656
14788
  provider: z$2.ZodEnum<{
14657
14789
  cursor: "cursor";
14658
- openai: "openai";
14659
14790
  anthropic: "anthropic";
14791
+ openai: "openai";
14660
14792
  google: "google";
14661
14793
  spacexai: "spacexai";
14662
14794
  deepseek: "deepseek";
@@ -14718,13 +14850,13 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14718
14850
  }>>;
14719
14851
  state: z$2.ZodEnum<{
14720
14852
  error: "error";
14853
+ running: "running";
14721
14854
  completed: "completed";
14722
14855
  pending: "pending";
14723
- running: "running";
14724
- streaming: "streaming";
14725
14856
  "approval-requested": "approval-requested";
14726
14857
  "approval-responded": "approval-responded";
14727
14858
  "approval-dispatched": "approval-dispatched";
14859
+ streaming: "streaming";
14728
14860
  }>;
14729
14861
  durationMs: z$2.ZodOptional<z$2.ZodNumber>;
14730
14862
  approvalId: z$2.ZodOptional<z$2.ZodString>;
@@ -14767,6 +14899,20 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14767
14899
  quoteTruncatedChars: z$2.ZodNumber;
14768
14900
  }, z$2.core.$strict>>;
14769
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>>>;
14770
14916
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
14771
14917
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
14772
14918
  }, z$2.core.$strict>>;
@@ -14832,8 +14978,8 @@ export declare const agentSessionMessageSchema: z$2.ZodObject<{
14832
14978
  model: z$2.ZodOptional<z$2.ZodObject<{
14833
14979
  provider: z$2.ZodEnum<{
14834
14980
  cursor: "cursor";
14835
- openai: "openai";
14836
14981
  anthropic: "anthropic";
14982
+ openai: "openai";
14837
14983
  google: "google";
14838
14984
  spacexai: "spacexai";
14839
14985
  deepseek: "deepseek";
@@ -14946,6 +15092,10 @@ export declare const customDataChunkSchemas: {
14946
15092
  utilization: z$2.ZodNumber;
14947
15093
  costUsd: z$2.ZodOptional<z$2.ZodNumber>;
14948
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>;
14949
15099
  readonly "message-updated": z$2.ZodObject<{
14950
15100
  message: z$2.ZodObject<{
14951
15101
  id: z$2.ZodString;
@@ -14993,13 +15143,13 @@ export declare const customDataChunkSchemas: {
14993
15143
  }>>;
14994
15144
  state: z$2.ZodEnum<{
14995
15145
  error: "error";
15146
+ running: "running";
14996
15147
  completed: "completed";
14997
15148
  pending: "pending";
14998
- running: "running";
14999
- streaming: "streaming";
15000
15149
  "approval-requested": "approval-requested";
15001
15150
  "approval-responded": "approval-responded";
15002
15151
  "approval-dispatched": "approval-dispatched";
15152
+ streaming: "streaming";
15003
15153
  }>;
15004
15154
  durationMs: z$2.ZodOptional<z$2.ZodNumber>;
15005
15155
  approvalId: z$2.ZodOptional<z$2.ZodString>;
@@ -15042,6 +15192,20 @@ export declare const customDataChunkSchemas: {
15042
15192
  quoteTruncatedChars: z$2.ZodNumber;
15043
15193
  }, z$2.core.$strict>>;
15044
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>>>;
15045
15209
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
15046
15210
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
15047
15211
  }, z$2.core.$strict>>;
@@ -15107,8 +15271,8 @@ export declare const customDataChunkSchemas: {
15107
15271
  model: z$2.ZodOptional<z$2.ZodObject<{
15108
15272
  provider: z$2.ZodEnum<{
15109
15273
  cursor: "cursor";
15110
- openai: "openai";
15111
15274
  anthropic: "anthropic";
15275
+ openai: "openai";
15112
15276
  google: "google";
15113
15277
  spacexai: "spacexai";
15114
15278
  deepseek: "deepseek";
@@ -15173,6 +15337,20 @@ export declare const customDataChunkSchemas: {
15173
15337
  quoteTruncatedChars: z$2.ZodNumber;
15174
15338
  }, z$2.core.$strict>>;
15175
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>>>;
15176
15354
  counts: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodNumber>>;
15177
15355
  warnings: z$2.ZodOptional<z$2.ZodArray<z$2.ZodString>>;
15178
15356
  }, z$2.core.$strict>>;
@@ -15676,7 +15854,7 @@ export declare const agentTriggerBaseSchema: z$2.ZodObject<{
15676
15854
  })[];
15677
15855
  } | {
15678
15856
  family: "workflow";
15679
- actions: ("in_progress" | "requested" | "completed")[];
15857
+ actions: ("in_progress" | "completed" | "requested")[];
15680
15858
  repositories: string[];
15681
15859
  sender: GithubTriggerSender;
15682
15860
  conditions: ({
@@ -16114,7 +16292,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16114
16292
  })[];
16115
16293
  } | {
16116
16294
  family: "workflow";
16117
- actions: ("in_progress" | "requested" | "completed")[];
16295
+ actions: ("in_progress" | "completed" | "requested")[];
16118
16296
  repositories: string[];
16119
16297
  sender: GithubTriggerSender;
16120
16298
  conditions: ({
@@ -16392,7 +16570,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16392
16570
  })[];
16393
16571
  } | {
16394
16572
  family: "workflow";
16395
- actions: ("in_progress" | "requested" | "completed")[];
16573
+ actions: ("in_progress" | "completed" | "requested")[];
16396
16574
  repositories: string[];
16397
16575
  sender: GithubTriggerSender;
16398
16576
  conditions: ({
@@ -16671,7 +16849,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16671
16849
  })[];
16672
16850
  } | {
16673
16851
  family: "workflow";
16674
- actions: ("in_progress" | "requested" | "completed")[];
16852
+ actions: ("in_progress" | "completed" | "requested")[];
16675
16853
  repositories: string[];
16676
16854
  sender: GithubTriggerSender;
16677
16855
  conditions: ({
@@ -16948,7 +17126,7 @@ export declare const agentTriggerSchema: z$2.ZodPipe<z$2.ZodType<{
16948
17126
  })[];
16949
17127
  } | {
16950
17128
  family: "workflow";
16951
- actions: ("in_progress" | "requested" | "completed")[];
17129
+ actions: ("in_progress" | "completed" | "requested")[];
16952
17130
  repositories: string[];
16953
17131
  sender: GithubTriggerSender;
16954
17132
  conditions: ({
@@ -17373,7 +17551,7 @@ export declare const agentTriggerPatchSchema: z$2.ZodObject<{
17373
17551
  })[];
17374
17552
  } | {
17375
17553
  family: "workflow";
17376
- actions: ("in_progress" | "requested" | "completed")[];
17554
+ actions: ("in_progress" | "completed" | "requested")[];
17377
17555
  repositories: string[];
17378
17556
  sender: GithubTriggerSender;
17379
17557
  conditions: ({
@@ -17641,7 +17819,7 @@ export declare function parseMergedAgentTrigger(current: AgentTriggerInput, patc
17641
17819
  * yet is kept rather than refused.
17642
17820
  */
17643
17821
  export declare const modelIdentitySchema: z$2.ZodObject<{
17644
- 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">;
17645
17823
  model: z$2.ZodString;
17646
17824
  }, z$2.core.$strip>;
17647
17825
  //#endregion
@@ -17840,7 +18018,7 @@ export declare function judgePreferenceWrite(declarations: PreferenceDeclaration
17840
18018
  */
17841
18019
  export declare const CORE_PREFERENCES: readonly [PreferenceDeclaration<"workPosture", "manual" | "architect" | "auto">, PreferenceDeclaration<"chat.default", {
17842
18020
  model?: {
17843
- 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";
17844
18022
  model: string;
17845
18023
  } | undefined;
17846
18024
  routing?: "auto" | undefined;
@@ -17913,6 +18091,7 @@ declare const recordStep: z$2.ZodDiscriminatedUnion<[z$2.ZodObject<{
17913
18091
  base: z$2.ZodUnknown;
17914
18092
  props: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
17915
18093
  }, z$2.core.$strict>>;
18094
+ parentId: z$2.ZodOptional<z$2.ZodUUID>;
17916
18095
  }, z$2.core.$strict>>;
17917
18096
  }, z$2.core.$strict>, z$2.ZodObject<{
17918
18097
  kind: z$2.ZodLiteral<"record.delete">;
@@ -17964,6 +18143,7 @@ export declare const recordOperationSchema: z$2.ZodObject<{
17964
18143
  base: z$2.ZodUnknown;
17965
18144
  props: z$2.ZodOptional<z$2.ZodRecord<z$2.ZodString, z$2.ZodUnknown>>;
17966
18145
  }, z$2.core.$strict>>;
18146
+ parentId: z$2.ZodOptional<z$2.ZodUUID>;
17967
18147
  }, z$2.core.$strict>>;
17968
18148
  }, z$2.core.$strict>, z$2.ZodObject<{
17969
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
  /**