@ai-matrx/desktop-protocol 0.21.44 → 0.21.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { z } from 'zod';
2
- import { O as OpName } from './models-CCRnwbz8.cjs';
3
- export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-CCRnwbz8.cjs';
2
+ import { O as OpName } from './models-DIsQe_Ef.cjs';
3
+ export { B as BEARER_PREFIX, g as CLOSE_RULES, h as CancelMsg, j as CatalogFile, k as CatalogModelEntry, l as ClientToCoreMsg, e as ClientType, m as CloseAction, n as CloseCode, o as CloseCodeValue, C as CloseOutcome, p as CloseRule, q as CoreToClientMsg, r as CreditMsg, D as DesktopProtocolError, s as DownloadKind, t as DownloadRow, d as EVENTS, u as EndMsg, E as EndReason, v as ErrorCode, w as ErrorCodeName, x as ErrorData, y as ErrorMsg, z as ErrorReason, A as ErrorReasonName, F as EventMsg, G as EventName, H as FsPatchEditFailure, I as HelloMsg, L as Limits, J as LlamaServerBuild, K as LlmRunning, N as LlmServerState, P as MlCatalogSetParams, Q as MlCatalogSetResult, R as MlInstallPhase, U as MlInstallProgress, f as MlProgress, V as MlRuntimeState, X as MlServiceState, Y as MlServiceStatus, Z as MlStatusParams, _ as MlStatusResult, $ as ModelKey, a0 as ModelsDownloadsCancelParams, a1 as ModelsDownloadsCancelResult, a2 as ModelsDownloadsListParams, a3 as ModelsDownloadsListResult, a4 as ModelsInstallParams, a5 as ModelsInstallResult, a6 as ModelsLlmInstallParams, a7 as ModelsLlmInstallResult, a8 as ModelsLlmStartParams, a9 as ModelsLlmStartResult, aa as ModelsLlmStatusParams, ab as ModelsLlmStatusResult, ac as ModelsLlmStopParams, ad as ModelsLlmStopResult, ae as ModelsProgressEvent, af as ModelsStatusParams, ag as ModelsStatusResult, ah as ModelsTranscribeParams, M as ModelsTranscribeResult, ai as NAMED_SCHEMAS, aj as NamedSchemaId, c as OPS, ak as OpDescriptor, a as OpParams, b as OpResult, al as OpSpec, am as PING_TEXT, an as PONG_TEXT, ao as ProtocolErrorBody, ap as RelayMsg, aq as RequestMsg, ar as ResponseMsg, as as SERVICES, at as SUBPROTOCOL, au as ServiceId, av as ServiceOpName, aw as ServiceOpSpec, ax as ServiceSpec, ay as Sha256Hex, S as StreamMeta, az as StreamMsg, aA as TextModelId, aB as TextModelInfo, aC as TranscriptSegment, T as TranscriptionModelId, aD as TranscriptionModelInfo, W as Welcome, aE as closeRule, i as isDesktopProtocolError, aF as isTerminalClose } from './models-DIsQe_Ef.cjs';
4
4
  export { BROADCAST_CID, DecodedFrame, FRAME_HEADER_BYTES, FRAME_STRUCT_FORMAT, FRAME_VERSION, FrameChannel, FrameChannelValue, FrameFlag, assertFrameHeader, connectionEndFrame, decodeFrame, encodeFrame, hasFlag, isConnectionEnd, readCid, stampCid } from './frame.cjs';
5
5
 
6
6
  /** @ai-matrx/desktop-protocol — version and primitive schemas. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. */
@@ -128,10 +128,14 @@ declare const PROTOCOL_MAJOR: 1;
128
128
  * hands the ml service the selected files to fetch (URL + SHA-256 each) and the
129
129
  * llama-server build. A 1.48 peer still refuses keys outside its enum; the catalog's
130
130
  * min_app_version keeps new keys away from it.
131
+ * 1.50 — a window's Remote Control (phone) setting: AppWindowInfo `remote_control` (setting,
132
+ * serving, pending) and apps.windows.set_remote_control (written while the window is
133
+ * closed, else queued for its next close). A 1.49 core omits the field and answers
134
+ * UNKNOWN_OPERATION.
131
135
  */
132
- declare const PROTOCOL_MINOR: 49;
136
+ declare const PROTOCOL_MINOR: 51;
133
137
  /** This package's version as the wire spells it ("major.minor"): hello, welcome, relay status. */
134
- declare const PROTOCOL_VERSION: "1.49";
138
+ declare const PROTOCOL_VERSION: "1.51";
135
139
  /** Internal building blocks — deliberately unnamed in $defs (inlined wherever used). */
136
140
  declare const u32: z.ZodInt;
137
141
  declare const nonNegInt: z.ZodInt;
@@ -2583,6 +2587,55 @@ type AppsProjectsCopyResult = z.output<typeof AppsProjectsCopyResult>;
2583
2587
  * scripts/check-schema-source.mjs.
2584
2588
  */
2585
2589
 
2590
+ /**
2591
+ * 1.50: the window's "Connect new sessions to Remote Control" setting (Claude: Settings > Claude Code,
2592
+ * `preferences.ccRemoteControlDefaultEnabled` in the profile's claude_desktop_config.json): new coding
2593
+ * chats in that account show up in the Claude phone app's Code tab. The app reads the file once at
2594
+ * launch and writes it back from memory, so a change to an open window waits for its next close.
2595
+ */
2596
+ declare const WindowRemoteControl: z.ZodObject<{
2597
+ setting: z.ZodEnum<{
2598
+ default: "default";
2599
+ on: "on";
2600
+ off: "off";
2601
+ }>;
2602
+ serving: z.ZodNullable<z.ZodBoolean>;
2603
+ pending: z.ZodNullable<z.ZodEnum<{
2604
+ on: "on";
2605
+ off: "off";
2606
+ }>>;
2607
+ }, z.core.$strict>;
2608
+ type WindowRemoteControl = z.output<typeof WindowRemoteControl>;
2609
+ /**
2610
+ * 1.50: turn a window's Remote Control setting on or off. A closed window's settings file is written
2611
+ * now; an open one's change is queued and written on its next close or Restart (as pins are).
2612
+ */
2613
+ declare const AppsWindowsSetRemoteControlParams: z.ZodObject<{
2614
+ app_key: z.ZodString;
2615
+ window: z.ZodString;
2616
+ enabled: z.ZodBoolean;
2617
+ }, z.core.$strict>;
2618
+ type AppsWindowsSetRemoteControlParams = z.output<typeof AppsWindowsSetRemoteControlParams>;
2619
+ declare const AppsWindowsSetRemoteControlResult: z.ZodObject<{
2620
+ message: z.ZodString;
2621
+ when: z.ZodEnum<{
2622
+ now: "now";
2623
+ next_close: "next_close";
2624
+ }>;
2625
+ remote_control: z.ZodObject<{
2626
+ setting: z.ZodEnum<{
2627
+ default: "default";
2628
+ on: "on";
2629
+ off: "off";
2630
+ }>;
2631
+ serving: z.ZodNullable<z.ZodBoolean>;
2632
+ pending: z.ZodNullable<z.ZodEnum<{
2633
+ on: "on";
2634
+ off: "off";
2635
+ }>>;
2636
+ }, z.core.$strict>;
2637
+ }, z.core.$strict>;
2638
+ type AppsWindowsSetRemoteControlResult = z.output<typeof AppsWindowsSetRemoteControlResult>;
2586
2639
  /** One window (profile) of the app on this device. */
2587
2640
  declare const AppWindowInfo: z.ZodObject<{
2588
2641
  key: z.ZodString;
@@ -2594,6 +2647,18 @@ declare const AppWindowInfo: z.ZodObject<{
2594
2647
  created: z.ZodBoolean;
2595
2648
  running: z.ZodBoolean;
2596
2649
  open_chats: z.ZodInt;
2650
+ remote_control: z.ZodOptional<z.ZodObject<{
2651
+ setting: z.ZodEnum<{
2652
+ default: "default";
2653
+ on: "on";
2654
+ off: "off";
2655
+ }>;
2656
+ serving: z.ZodNullable<z.ZodBoolean>;
2657
+ pending: z.ZodNullable<z.ZodEnum<{
2658
+ on: "on";
2659
+ off: "off";
2660
+ }>>;
2661
+ }, z.core.$strict>>;
2597
2662
  }, z.core.$strict>;
2598
2663
  type AppWindowInfo = z.output<typeof AppWindowInfo>;
2599
2664
  /** One account's plan usage, newest reading from any window (an account is matched to an org by vote). */
@@ -2647,6 +2712,18 @@ declare const AppsWindowsListResult: z.ZodObject<{
2647
2712
  created: z.ZodBoolean;
2648
2713
  running: z.ZodBoolean;
2649
2714
  open_chats: z.ZodInt;
2715
+ remote_control: z.ZodOptional<z.ZodObject<{
2716
+ setting: z.ZodEnum<{
2717
+ default: "default";
2718
+ on: "on";
2719
+ off: "off";
2720
+ }>;
2721
+ serving: z.ZodNullable<z.ZodBoolean>;
2722
+ pending: z.ZodNullable<z.ZodEnum<{
2723
+ on: "on";
2724
+ off: "off";
2725
+ }>>;
2726
+ }, z.core.$strict>>;
2650
2727
  }, z.core.$strict>>;
2651
2728
  }, z.core.$strict>;
2652
2729
  type AppsWindowsListResult = z.output<typeof AppsWindowsListResult>;
@@ -3640,8 +3717,14 @@ declare const AppAccount: z.ZodObject<{
3640
3717
  }>>;
3641
3718
  }, z.core.$strict>;
3642
3719
  type AppAccount = z.output<typeof AppAccount>;
3720
+ /**
3721
+ * 1.51: both lists answer at once from the core's last reading (kept across restarts) and read again
3722
+ * in the background; `fresh` waits for a new reading instead (a Refresh button). The answer says when
3723
+ * it was read (`as_of_ms`) and whether a newer reading is on its way (`refreshing`).
3724
+ */
3643
3725
  declare const AppsInstancesListParams: z.ZodObject<{
3644
3726
  app_key: z.ZodString;
3727
+ fresh: z.ZodOptional<z.ZodBoolean>;
3645
3728
  }, z.core.$strict>;
3646
3729
  type AppsInstancesListParams = z.output<typeof AppsInstancesListParams>;
3647
3730
  declare const AppsInstancesListResult: z.ZodObject<{
@@ -3676,10 +3759,13 @@ declare const AppsInstancesListResult: z.ZodObject<{
3676
3759
  first_launch_ms: z.ZodNullable<z.ZodInt>;
3677
3760
  }, z.core.$strict>>;
3678
3761
  problem: z.ZodOptional<z.ZodString>;
3762
+ as_of_ms: z.ZodOptional<z.ZodInt>;
3763
+ refreshing: z.ZodOptional<z.ZodBoolean>;
3679
3764
  }, z.core.$strict>;
3680
3765
  type AppsInstancesListResult = z.output<typeof AppsInstancesListResult>;
3681
3766
  declare const AppsAccountsListParams: z.ZodObject<{
3682
3767
  app_key: z.ZodString;
3768
+ fresh: z.ZodOptional<z.ZodBoolean>;
3683
3769
  }, z.core.$strict>;
3684
3770
  type AppsAccountsListParams = z.output<typeof AppsAccountsListParams>;
3685
3771
  declare const AppsAccountsListResult: z.ZodObject<{
@@ -3715,6 +3801,8 @@ declare const AppsAccountsListResult: z.ZodObject<{
3715
3801
  }>>;
3716
3802
  }, z.core.$strict>>;
3717
3803
  problem: z.ZodOptional<z.ZodString>;
3804
+ as_of_ms: z.ZodOptional<z.ZodInt>;
3805
+ refreshing: z.ZodOptional<z.ZodBoolean>;
3718
3806
  }, z.core.$strict>;
3719
3807
  type AppsAccountsListResult = z.output<typeof AppsAccountsListResult>;
3720
3808
 
@@ -3735,27 +3823,48 @@ type AppsAccountsListResult = z.output<typeof AppsAccountsListResult>;
3735
3823
 
3736
3824
  /** The largest frame either side accepts (16 MiB). */
3737
3825
  declare const SERVICE_MAX_FRAME_BYTES: 16777216;
3738
- /** SHA-256 (hex) of generated/desktop-protocol.schema.json: CONTRACT_SHA256 on both sides. */
3739
- declare const ContractHash: z.ZodString;
3740
- /** The per-launch secret: 32 random bytes, base64url (43 characters). Passed by environment, never argv. */
3741
- declare const ServiceToken: z.ZodString;
3742
- declare const ServiceHello: z.ZodObject<{
3826
+ /** Supervised Python services. */
3827
+ declare const ServiceName: z.ZodEnum<{
3828
+ ml: "ml";
3829
+ coding: "coding";
3830
+ tools: "tools";
3831
+ }>;
3832
+ type ServiceName = z.output<typeof ServiceName>;
3833
+ declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3743
3834
  type: z.ZodLiteral<"hello">;
3744
3835
  token: z.ZodString;
3745
3836
  contract: z.ZodString;
3746
- }, z.core.$strict>;
3747
- declare const ServiceRequest: z.ZodObject<{
3837
+ }, z.core.$strict>, z.ZodObject<{
3748
3838
  type: z.ZodLiteral<"request">;
3749
3839
  id: z.ZodInt;
3750
3840
  op: z.ZodString;
3751
3841
  params: z.ZodUnknown;
3752
- }, z.core.$strict>;
3753
- declare const ServiceResponse: z.ZodObject<{
3842
+ }, z.core.$strict>, z.ZodObject<{
3843
+ type: z.ZodLiteral<"cancel">;
3844
+ id: z.ZodInt;
3845
+ }, z.core.$strict>, z.ZodObject<{
3846
+ type: z.ZodLiteral<"ping">;
3847
+ id: z.ZodInt;
3848
+ }, z.core.$strict>, z.ZodObject<{
3849
+ type: z.ZodLiteral<"shutdown">;
3850
+ }, z.core.$strict>], "type">;
3851
+ type CoreToServiceMsg = z.output<typeof CoreToServiceMsg>;
3852
+ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3853
+ type: z.ZodLiteral<"welcome">;
3854
+ service: z.ZodEnum<{
3855
+ ml: "ml";
3856
+ coding: "coding";
3857
+ tools: "tools";
3858
+ }>;
3859
+ contract: z.ZodString;
3860
+ pid: z.ZodInt;
3861
+ python: z.ZodString;
3862
+ ops: z.ZodArray<z.ZodString>;
3863
+ }, z.core.$strict>, z.ZodObject<{
3754
3864
  type: z.ZodLiteral<"response">;
3755
3865
  id: z.ZodInt;
3756
3866
  result: z.ZodUnknown;
3757
- }, z.core.$strict>;
3758
- declare const ServiceErrorMsg: z.ZodObject<{
3867
+ }, z.core.$strict>, z.ZodObject<{
3759
3868
  type: z.ZodLiteral<"error">;
3760
3869
  id: z.ZodInt;
3761
3870
  error: z.ZodObject<{
@@ -3830,58 +3939,17 @@ declare const ServiceErrorMsg: z.ZodObject<{
3830
3939
  }, z.core.$strict>>;
3831
3940
  }, z.core.$strict>>;
3832
3941
  }, z.core.$strict>;
3833
- }, z.core.$strict>;
3834
- /** A running request's progress (validated against the service's progress schema). */
3835
- declare const ServiceProgressMsg: z.ZodObject<{
3942
+ }, z.core.$strict>, z.ZodObject<{
3836
3943
  type: z.ZodLiteral<"progress">;
3837
3944
  id: z.ZodInt;
3838
3945
  progress: z.ZodUnknown;
3839
- }, z.core.$strict>;
3840
- declare const ServiceCancel: z.ZodObject<{
3841
- type: z.ZodLiteral<"cancel">;
3842
- id: z.ZodInt;
3843
- }, z.core.$strict>;
3844
- /** Health check: the service answers `pong` at once from its event loop, even while it works. */
3845
- declare const ServicePing: z.ZodObject<{
3846
- type: z.ZodLiteral<"ping">;
3847
- id: z.ZodInt;
3848
- }, z.core.$strict>;
3849
- declare const ServicePong: z.ZodObject<{
3946
+ }, z.core.$strict>, z.ZodObject<{
3850
3947
  type: z.ZodLiteral<"pong">;
3851
3948
  id: z.ZodInt;
3852
3949
  busy: z.ZodInt;
3853
- }, z.core.$strict>;
3854
- /** Finish quickly: cancel running work, answer nothing more, exit 0. */
3855
- declare const ServiceShutdown: z.ZodObject<{
3856
- type: z.ZodLiteral<"shutdown">;
3857
- }, z.core.$strict>;
3858
- /** Supervised Python services. */
3859
- declare const ServiceName: z.ZodEnum<{
3860
- ml: "ml";
3861
- coding: "coding";
3862
- tools: "tools";
3863
- }>;
3864
- type ServiceName = z.output<typeof ServiceName>;
3865
- declare const CoreToServiceMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3866
- type: z.ZodLiteral<"hello">;
3867
- token: z.ZodString;
3868
- contract: z.ZodString;
3869
- }, z.core.$strict>, z.ZodObject<{
3870
- type: z.ZodLiteral<"request">;
3871
- id: z.ZodInt;
3872
- op: z.ZodString;
3873
- params: z.ZodUnknown;
3874
- }, z.core.$strict>, z.ZodObject<{
3875
- type: z.ZodLiteral<"cancel">;
3876
- id: z.ZodInt;
3877
- }, z.core.$strict>, z.ZodObject<{
3878
- type: z.ZodLiteral<"ping">;
3879
- id: z.ZodInt;
3880
- }, z.core.$strict>, z.ZodObject<{
3881
- type: z.ZodLiteral<"shutdown">;
3882
3950
  }, z.core.$strict>], "type">;
3883
- type CoreToServiceMsg = z.output<typeof CoreToServiceMsg>;
3884
- declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3951
+ type ServiceToCoreMsg = z.output<typeof ServiceToCoreMsg>;
3952
+ declare const ServiceWelcome: z.ZodObject<{
3885
3953
  type: z.ZodLiteral<"welcome">;
3886
3954
  service: z.ZodEnum<{
3887
3955
  ml: "ml";
@@ -3892,11 +3960,34 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3892
3960
  pid: z.ZodInt;
3893
3961
  python: z.ZodString;
3894
3962
  ops: z.ZodArray<z.ZodString>;
3895
- }, z.core.$strict>, z.ZodObject<{
3963
+ }, z.core.$strict>;
3964
+ type ServiceWelcome = z.output<typeof ServiceWelcome>;
3965
+ /** SHA-256 (hex) of generated/desktop-protocol.schema.json: CONTRACT_SHA256 on both sides. */
3966
+ declare const ContractHash: z.ZodString;
3967
+ type ContractHash = z.output<typeof ContractHash>;
3968
+ /** The per-launch secret: 32 random bytes, base64url (43 characters). Passed by environment, never argv. */
3969
+ declare const ServiceToken: z.ZodString;
3970
+ type ServiceToken = z.output<typeof ServiceToken>;
3971
+ declare const ServiceHello: z.ZodObject<{
3972
+ type: z.ZodLiteral<"hello">;
3973
+ token: z.ZodString;
3974
+ contract: z.ZodString;
3975
+ }, z.core.$strict>;
3976
+ type ServiceHello = z.output<typeof ServiceHello>;
3977
+ declare const ServiceRequest: z.ZodObject<{
3978
+ type: z.ZodLiteral<"request">;
3979
+ id: z.ZodInt;
3980
+ op: z.ZodString;
3981
+ params: z.ZodUnknown;
3982
+ }, z.core.$strict>;
3983
+ type ServiceRequest = z.output<typeof ServiceRequest>;
3984
+ declare const ServiceResponse: z.ZodObject<{
3896
3985
  type: z.ZodLiteral<"response">;
3897
3986
  id: z.ZodInt;
3898
3987
  result: z.ZodUnknown;
3899
- }, z.core.$strict>, z.ZodObject<{
3988
+ }, z.core.$strict>;
3989
+ type ServiceResponse = z.output<typeof ServiceResponse>;
3990
+ declare const ServiceErrorMsg: z.ZodObject<{
3900
3991
  type: z.ZodLiteral<"error">;
3901
3992
  id: z.ZodInt;
3902
3993
  error: z.ZodObject<{
@@ -3971,29 +4062,37 @@ declare const ServiceToCoreMsg: z.ZodDiscriminatedUnion<[z.ZodObject<{
3971
4062
  }, z.core.$strict>>;
3972
4063
  }, z.core.$strict>>;
3973
4064
  }, z.core.$strict>;
3974
- }, z.core.$strict>, z.ZodObject<{
4065
+ }, z.core.$strict>;
4066
+ type ServiceErrorMsg = z.output<typeof ServiceErrorMsg>;
4067
+ /** A running request's progress (validated against the service's progress schema). */
4068
+ declare const ServiceProgressMsg: z.ZodObject<{
3975
4069
  type: z.ZodLiteral<"progress">;
3976
4070
  id: z.ZodInt;
3977
4071
  progress: z.ZodUnknown;
3978
- }, z.core.$strict>, z.ZodObject<{
4072
+ }, z.core.$strict>;
4073
+ type ServiceProgressMsg = z.output<typeof ServiceProgressMsg>;
4074
+ declare const ServiceCancel: z.ZodObject<{
4075
+ type: z.ZodLiteral<"cancel">;
4076
+ id: z.ZodInt;
4077
+ }, z.core.$strict>;
4078
+ type ServiceCancel = z.output<typeof ServiceCancel>;
4079
+ /** Health check: the service answers `pong` at once from its event loop, even while it works. */
4080
+ declare const ServicePing: z.ZodObject<{
4081
+ type: z.ZodLiteral<"ping">;
4082
+ id: z.ZodInt;
4083
+ }, z.core.$strict>;
4084
+ type ServicePing = z.output<typeof ServicePing>;
4085
+ declare const ServicePong: z.ZodObject<{
3979
4086
  type: z.ZodLiteral<"pong">;
3980
4087
  id: z.ZodInt;
3981
4088
  busy: z.ZodInt;
3982
- }, z.core.$strict>], "type">;
3983
- type ServiceToCoreMsg = z.output<typeof ServiceToCoreMsg>;
3984
- declare const ServiceWelcome: z.ZodObject<{
3985
- type: z.ZodLiteral<"welcome">;
3986
- service: z.ZodEnum<{
3987
- ml: "ml";
3988
- coding: "coding";
3989
- tools: "tools";
3990
- }>;
3991
- contract: z.ZodString;
3992
- pid: z.ZodInt;
3993
- python: z.ZodString;
3994
- ops: z.ZodArray<z.ZodString>;
3995
4089
  }, z.core.$strict>;
3996
- type ServiceWelcome = z.output<typeof ServiceWelcome>;
4090
+ type ServicePong = z.output<typeof ServicePong>;
4091
+ /** Finish quickly: cancel running work, answer nothing more, exit 0. */
4092
+ declare const ServiceShutdown: z.ZodObject<{
4093
+ type: z.ZodLiteral<"shutdown">;
4094
+ }, z.core.$strict>;
4095
+ type ServiceShutdown = z.output<typeof ServiceShutdown>;
3997
4096
 
3998
4097
  /**
3999
4098
  * @ai-matrx/desktop-protocol — local tool proof records (SPEC §10). Schema source: lint-enforced
@@ -4113,12 +4212,6 @@ type ToolResultsFile = z.output<typeof ToolResultsFile>;
4113
4212
  * scripts/check-schema-source.mjs. Added in protocol 1.3.
4114
4213
  */
4115
4214
 
4116
- declare const ProcSort: z.ZodEnum<{
4117
- name: "name";
4118
- cpu: "cpu";
4119
- memory: "memory";
4120
- pid: "pid";
4121
- }>;
4122
4215
  declare const ProcListParams: z.ZodObject<{
4123
4216
  name: z.ZodOptional<z.ZodString>;
4124
4217
  sort: z.ZodDefault<z.ZodEnum<{
@@ -4196,13 +4289,19 @@ declare const ProcKillResult: z.ZodObject<{
4196
4289
  exited: z.ZodBoolean;
4197
4290
  }, z.core.$strict>;
4198
4291
  type ProcKillResult = z.output<typeof ProcKillResult>;
4292
+ declare const ProcSort: z.ZodEnum<{
4293
+ name: "name";
4294
+ cpu: "cpu";
4295
+ memory: "memory";
4296
+ pid: "pid";
4297
+ }>;
4298
+ type ProcSort = z.output<typeof ProcSort>;
4199
4299
 
4200
4300
  /**
4201
4301
  * @ai-matrx/desktop-protocol — cap clipboard (SPEC §6): the system clipboard's text. Schema source:
4202
4302
  * lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.3.
4203
4303
  */
4204
4304
 
4205
- declare const ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
4206
4305
  declare const ClipboardReadResult: z.ZodObject<{
4207
4306
  text: z.ZodString;
4208
4307
  truncated: z.ZodBoolean;
@@ -4216,6 +4315,8 @@ declare const ClipboardWriteResult: z.ZodObject<{
4216
4315
  bytes: z.ZodInt;
4217
4316
  }, z.core.$strict>;
4218
4317
  type ClipboardWriteResult = z.output<typeof ClipboardWriteResult>;
4318
+ declare const ClipboardReadParams: z.ZodObject<{}, z.core.$strict>;
4319
+ type ClipboardReadParams = z.output<typeof ClipboardReadParams>;
4219
4320
 
4220
4321
  /**
4221
4322
  * @ai-matrx/desktop-protocol — cap git (SPEC §6): git operations for agents on the person's own
@@ -4363,28 +4464,6 @@ type GitCloneParams = z.output<typeof GitCloneParams>;
4363
4464
 
4364
4465
  /** The most text any web op returns per page; longer text is cut and says so (`truncated`). */
4365
4466
  declare const WEB_MAX_TEXT_CHARS: 524288;
4366
- declare const WebRuntimeParams: z.ZodObject<{}, z.core.$strict>;
4367
- declare const WebOutboxListParams: z.ZodObject<{}, z.core.$strict>;
4368
- declare const WebOutboxRetryParams: z.ZodObject<{
4369
- outbox_id: z.ZodOptional<z.ZodString>;
4370
- }, z.core.$strict>;
4371
- declare const WebOutboxDiscardParams: z.ZodObject<{
4372
- outbox_id: z.ZodString;
4373
- }, z.core.$strict>;
4374
- declare const WebOutboxDiscardResult: z.ZodObject<{
4375
- discarded: z.ZodBoolean;
4376
- }, z.core.$strict>;
4377
- declare const WebLogListParams: z.ZodObject<{
4378
- since_ms: z.ZodOptional<z.ZodInt>;
4379
- limit: z.ZodDefault<z.ZodInt>;
4380
- }, z.core.$strict>;
4381
- declare const WebLogClearParams: z.ZodObject<{}, z.core.$strict>;
4382
- declare const WebLogClearResult: z.ZodObject<{
4383
- cleared: z.ZodInt;
4384
- }, z.core.$strict>;
4385
- declare const WebResearchQueueParams: z.ZodObject<{
4386
- topic_id: z.ZodOptional<z.ZodString>;
4387
- }, z.core.$strict>;
4388
4467
  declare const WebHeader: z.ZodObject<{
4389
4468
  name: z.ZodString;
4390
4469
  value: z.ZodString;
@@ -5147,6 +5226,37 @@ declare const WebResearchFetchResult: z.ZodObject<{
5147
5226
  cannot_edit: z.ZodInt;
5148
5227
  }, z.core.$strict>;
5149
5228
  type WebResearchFetchResult = z.output<typeof WebResearchFetchResult>;
5229
+ declare const WebRuntimeParams: z.ZodObject<{}, z.core.$strict>;
5230
+ type WebRuntimeParams = z.output<typeof WebRuntimeParams>;
5231
+ declare const WebOutboxListParams: z.ZodObject<{}, z.core.$strict>;
5232
+ type WebOutboxListParams = z.output<typeof WebOutboxListParams>;
5233
+ declare const WebOutboxRetryParams: z.ZodObject<{
5234
+ outbox_id: z.ZodOptional<z.ZodString>;
5235
+ }, z.core.$strict>;
5236
+ type WebOutboxRetryParams = z.output<typeof WebOutboxRetryParams>;
5237
+ declare const WebOutboxDiscardParams: z.ZodObject<{
5238
+ outbox_id: z.ZodString;
5239
+ }, z.core.$strict>;
5240
+ type WebOutboxDiscardParams = z.output<typeof WebOutboxDiscardParams>;
5241
+ declare const WebOutboxDiscardResult: z.ZodObject<{
5242
+ discarded: z.ZodBoolean;
5243
+ }, z.core.$strict>;
5244
+ type WebOutboxDiscardResult = z.output<typeof WebOutboxDiscardResult>;
5245
+ declare const WebLogListParams: z.ZodObject<{
5246
+ since_ms: z.ZodOptional<z.ZodInt>;
5247
+ limit: z.ZodDefault<z.ZodInt>;
5248
+ }, z.core.$strict>;
5249
+ type WebLogListParams = z.output<typeof WebLogListParams>;
5250
+ declare const WebLogClearParams: z.ZodObject<{}, z.core.$strict>;
5251
+ type WebLogClearParams = z.output<typeof WebLogClearParams>;
5252
+ declare const WebLogClearResult: z.ZodObject<{
5253
+ cleared: z.ZodInt;
5254
+ }, z.core.$strict>;
5255
+ type WebLogClearResult = z.output<typeof WebLogClearResult>;
5256
+ declare const WebResearchQueueParams: z.ZodObject<{
5257
+ topic_id: z.ZodOptional<z.ZodString>;
5258
+ }, z.core.$strict>;
5259
+ type WebResearchQueueParams = z.output<typeof WebResearchQueueParams>;
5150
5260
 
5151
5261
  /**
5152
5262
  * @ai-matrx/desktop-protocol — cap system (SPEC §6): open a link or a file the way the person's
@@ -5288,7 +5398,6 @@ type SystemNotifyResult = z.output<typeof SystemNotifyResult>;
5288
5398
  * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
5289
5399
  */
5290
5400
 
5291
- declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
5292
5401
  declare const ScreenDisplay: z.ZodObject<{
5293
5402
  id: z.ZodInt;
5294
5403
  name: z.ZodString;
@@ -5341,6 +5450,8 @@ declare const ScreenCaptureResult: z.ZodObject<{
5341
5450
  data_base64: z.ZodString;
5342
5451
  }, z.core.$strict>;
5343
5452
  type ScreenCaptureResult = z.output<typeof ScreenCaptureResult>;
5453
+ declare const ScreenListParams: z.ZodObject<{}, z.core.$strict>;
5454
+ type ScreenListParams = z.output<typeof ScreenListParams>;
5344
5455
 
5345
5456
  /**
5346
5457
  * @ai-matrx/desktop-protocol — cap window (SPEC §6): the windows on the person's screen; focus,
@@ -5763,7 +5874,6 @@ type InputMouseClickResult = z.output<typeof InputMouseClickResult>;
5763
5874
  * Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
5764
5875
  */
5765
5876
 
5766
- declare const PowerStatusParams: z.ZodObject<{}, z.core.$strict>;
5767
5877
  declare const PowerStatusResult: z.ZodObject<{
5768
5878
  has_battery: z.ZodBoolean;
5769
5879
  percent: z.ZodNullable<z.ZodNumber>;
@@ -5818,6 +5928,8 @@ declare const PowerPreventSleepResult: z.ZodObject<{
5818
5928
  awake_until_ms: z.ZodNullable<z.ZodInt>;
5819
5929
  }, z.core.$strict>;
5820
5930
  type PowerPreventSleepResult = z.output<typeof PowerPreventSleepResult>;
5931
+ declare const PowerStatusParams: z.ZodObject<{}, z.core.$strict>;
5932
+ type PowerStatusParams = z.output<typeof PowerStatusParams>;
5821
5933
 
5822
5934
  /**
5823
5935
  * @ai-matrx/desktop-protocol — cap diag (SPEC §3.12): the device's error ledger. Every process's
@@ -6004,8 +6116,6 @@ type DiagErrorsChangedEvent = z.output<typeof DiagErrorsChangedEvent>;
6004
6116
  * Added in protocol 1.4.
6005
6117
  */
6006
6118
 
6007
- declare const ResourcesSnapshotParams: z.ZodObject<{}, z.core.$strict>;
6008
- declare const ResourcesActivityParams: z.ZodObject<{}, z.core.$strict>;
6009
6119
  declare const ResourcesDisk: z.ZodObject<{
6010
6120
  mount: z.ZodString;
6011
6121
  name: z.ZodOptional<z.ZodString>;
@@ -6282,6 +6392,10 @@ declare const ResourcesSnapshotResult: z.ZodObject<{
6282
6392
  uptime_seconds: z.ZodInt;
6283
6393
  }, z.core.$strict>;
6284
6394
  type ResourcesSnapshotResult = z.output<typeof ResourcesSnapshotResult>;
6395
+ declare const ResourcesSnapshotParams: z.ZodObject<{}, z.core.$strict>;
6396
+ type ResourcesSnapshotParams = z.output<typeof ResourcesSnapshotParams>;
6397
+ declare const ResourcesActivityParams: z.ZodObject<{}, z.core.$strict>;
6398
+ type ResourcesActivityParams = z.output<typeof ResourcesActivityParams>;
6285
6399
 
6286
6400
  /**
6287
6401
  * @ai-matrx/desktop-protocol — cap stack (SPEC §6): the local AI Matrx servers on this computer
@@ -6290,19 +6404,6 @@ type ResourcesSnapshotResult = z.output<typeof ResourcesSnapshotResult>;
6290
6404
  * happened. Schema source: lint-enforced rules in scripts/check-schema-source.mjs. Added in 1.16.
6291
6405
  */
6292
6406
 
6293
- declare const StackStateParams: z.ZodObject<{}, z.core.$strict>;
6294
- declare const StackStartParams: z.ZodObject<{}, z.core.$strict>;
6295
- declare const StackStopParams: z.ZodObject<{}, z.core.$strict>;
6296
- /** The request was accepted; the outcome lands in the history (action-done / action-failed). */
6297
- declare const StackRunResult: z.ZodObject<{
6298
- accepted: z.ZodBoolean;
6299
- }, z.core.$strict>;
6300
- declare const StackServerActionResult: z.ZodObject<{
6301
- message: z.ZodString;
6302
- }, z.core.$strict>;
6303
- declare const StackErrorsParams: z.ZodObject<{
6304
- window_minutes: z.ZodDefault<z.ZodInt>;
6305
- }, z.core.$strict>;
6306
6407
  /** A server's name as the stack's config declares it ("aidream", "scraper"). */
6307
6408
  declare const StackServerName: z.ZodString;
6308
6409
  type StackServerName = z.output<typeof StackServerName>;
@@ -6421,6 +6522,25 @@ declare const StackErrorsResult: z.ZodObject<{
6421
6522
  window_minutes: z.ZodInt;
6422
6523
  }, z.core.$strict>;
6423
6524
  type StackErrorsResult = z.output<typeof StackErrorsResult>;
6525
+ declare const StackStateParams: z.ZodObject<{}, z.core.$strict>;
6526
+ type StackStateParams = z.output<typeof StackStateParams>;
6527
+ declare const StackStartParams: z.ZodObject<{}, z.core.$strict>;
6528
+ type StackStartParams = z.output<typeof StackStartParams>;
6529
+ declare const StackStopParams: z.ZodObject<{}, z.core.$strict>;
6530
+ type StackStopParams = z.output<typeof StackStopParams>;
6531
+ /** The request was accepted; the outcome lands in the history (action-done / action-failed). */
6532
+ declare const StackRunResult: z.ZodObject<{
6533
+ accepted: z.ZodBoolean;
6534
+ }, z.core.$strict>;
6535
+ type StackRunResult = z.output<typeof StackRunResult>;
6536
+ declare const StackServerActionResult: z.ZodObject<{
6537
+ message: z.ZodString;
6538
+ }, z.core.$strict>;
6539
+ type StackServerActionResult = z.output<typeof StackServerActionResult>;
6540
+ declare const StackErrorsParams: z.ZodObject<{
6541
+ window_minutes: z.ZodDefault<z.ZodInt>;
6542
+ }, z.core.$strict>;
6543
+ type StackErrorsParams = z.output<typeof StackErrorsParams>;
6424
6544
 
6425
6545
  /**
6426
6546
  * @ai-matrx/desktop-protocol — cap audio (SPEC §6): the person's microphones and speakers; record a
@@ -6428,7 +6548,6 @@ type StackErrorsResult = z.output<typeof StackErrorsResult>;
6428
6548
  * rules in scripts/check-schema-source.mjs. Added in protocol 1.6.
6429
6549
  */
6430
6550
 
6431
- declare const AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
6432
6551
  declare const AudioDevice: z.ZodObject<{
6433
6552
  id: z.ZodString;
6434
6553
  name: z.ZodString;
@@ -6491,6 +6610,8 @@ declare const AudioPlayResult: z.ZodObject<{
6491
6610
  seconds: z.ZodNumber;
6492
6611
  }, z.core.$strict>;
6493
6612
  type AudioPlayResult = z.output<typeof AudioPlayResult>;
6613
+ declare const AudioDevicesParams: z.ZodObject<{}, z.core.$strict>;
6614
+ type AudioDevicesParams = z.output<typeof AudioDevicesParams>;
6494
6615
 
6495
6616
  /**
6496
6617
  * @ai-matrx/desktop-protocol — cap fs, polled watches (SPEC §6): watch a folder and read what
@@ -6554,7 +6675,6 @@ type FsWatchStopResult = z.output<typeof FsWatchStopResult>;
6554
6675
  * lint-enforced rules in scripts/check-schema-source.mjs. Added in protocol 1.4.
6555
6676
  */
6556
6677
 
6557
- declare const ExecJobListParams: z.ZodObject<{}, z.core.$strict>;
6558
6678
  declare const ExecJobId: z.ZodString;
6559
6679
  type ExecJobId = z.output<typeof ExecJobId>;
6560
6680
  declare const ExecJobStartParams: z.ZodObject<{
@@ -6619,6 +6739,8 @@ declare const ExecJobListResult: z.ZodObject<{
6619
6739
  }, z.core.$strict>>;
6620
6740
  }, z.core.$strict>;
6621
6741
  type ExecJobListResult = z.output<typeof ExecJobListResult>;
6742
+ declare const ExecJobListParams: z.ZodObject<{}, z.core.$strict>;
6743
+ type ExecJobListParams = z.output<typeof ExecJobListParams>;
6622
6744
 
6623
6745
  /**
6624
6746
  * @ai-matrx/desktop-protocol — the `coding` capability's Claude Code history (SPEC §6 `coding`):
@@ -6634,32 +6756,6 @@ type ExecJobListResult = z.output<typeof ExecJobListResult>;
6634
6756
  * a fresh access token, so a long run never outlives its credential.
6635
6757
  */
6636
6758
 
6637
- declare const CodingHistoryFailure: z.ZodObject<{
6638
- session_id: z.ZodString;
6639
- reason: z.ZodString;
6640
- }, z.core.$strict>;
6641
- /**
6642
- * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
6643
- * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
6644
- * its own line, so every sentence the person reads comes from one place.
6645
- */
6646
- declare const CodingPlanMissingParams: z.ZodObject<{
6647
- credentials: z.ZodNullable<z.ZodObject<{
6648
- access_token: z.ZodString;
6649
- user_id: z.ZodString;
6650
- server_url: z.ZodString;
6651
- }, z.core.$strict>>;
6652
- }, z.core.$strict>;
6653
- /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
6654
- declare const CodingImportNextParams: z.ZodObject<{
6655
- plan_id: z.ZodString;
6656
- credentials: z.ZodNullable<z.ZodObject<{
6657
- access_token: z.ZodString;
6658
- user_id: z.ZodString;
6659
- server_url: z.ZodString;
6660
- }, z.core.$strict>>;
6661
- }, z.core.$strict>;
6662
- declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
6663
6759
  /** What the core adds to every coding service op from its own sign-in (never sent by a client). */
6664
6760
  declare const CodingServiceCredentials: z.ZodObject<{
6665
6761
  access_token: z.ZodString;
@@ -6789,6 +6885,36 @@ declare const CodingHistoryProgressEvent: z.ZodObject<{
6789
6885
  failed: z.ZodInt;
6790
6886
  }, z.core.$strict>;
6791
6887
  type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
6888
+ declare const CodingHistoryFailure: z.ZodObject<{
6889
+ session_id: z.ZodString;
6890
+ reason: z.ZodString;
6891
+ }, z.core.$strict>;
6892
+ type CodingHistoryFailure = z.output<typeof CodingHistoryFailure>;
6893
+ /**
6894
+ * Service op `coding.plan_missing`: read the cloud's list and this computer's history (stat only).
6895
+ * `credentials` is null when nobody is signed in: the service answers `blocked: signed_out` with
6896
+ * its own line, so every sentence the person reads comes from one place.
6897
+ */
6898
+ declare const CodingPlanMissingParams: z.ZodObject<{
6899
+ credentials: z.ZodNullable<z.ZodObject<{
6900
+ access_token: z.ZodString;
6901
+ user_id: z.ZodString;
6902
+ server_url: z.ZodString;
6903
+ }, z.core.$strict>>;
6904
+ }, z.core.$strict>;
6905
+ type CodingPlanMissingParams = z.output<typeof CodingPlanMissingParams>;
6906
+ /** Service op `coding.import_next`: import the plan's next bounded batch (null credentials: as above). */
6907
+ declare const CodingImportNextParams: z.ZodObject<{
6908
+ plan_id: z.ZodString;
6909
+ credentials: z.ZodNullable<z.ZodObject<{
6910
+ access_token: z.ZodString;
6911
+ user_id: z.ZodString;
6912
+ server_url: z.ZodString;
6913
+ }, z.core.$strict>>;
6914
+ }, z.core.$strict>;
6915
+ type CodingImportNextParams = z.output<typeof CodingImportNextParams>;
6916
+ declare const CodingHistoryImportMissingParams: z.ZodObject<{}, z.core.$strict>;
6917
+ type CodingHistoryImportMissingParams = z.output<typeof CodingHistoryImportMissingParams>;
6792
6918
 
6793
6919
  /**
6794
6920
  * @ai-matrx/desktop-protocol — the `coding` capability's sessions (SPEC §6 `coding`, "code from
@@ -6810,163 +6936,181 @@ type CodingHistoryProgressEvent = z.output<typeof CodingHistoryProgressEvent>;
6810
6936
  * agent catalogue reads (a web client reads the catalogue directly as the same person).
6811
6937
  */
6812
6938
 
6813
- /** Exactly-once sends (the core keeps these ids 10 minutes). */
6814
- declare const CodingClientRequestId: z.ZodString;
6815
- declare const CodingSessionAgentPart: z.ZodObject<{
6816
- part: z.ZodEnum<{
6817
- tools: "tools";
6818
- instructions: "instructions";
6819
- skills: "skills";
6820
- }>;
6821
- loaded: z.ZodInt;
6822
- total: z.ZodInt;
6939
+ declare const CodingHistoryResult: z.ZodObject<{
6940
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6941
+ kind: z.ZodLiteral<"user">;
6942
+ id: z.ZodString;
6943
+ text: z.ZodString;
6944
+ at: z.ZodNullable<z.ZodString>;
6945
+ }, z.core.$strict>, z.ZodObject<{
6946
+ kind: z.ZodLiteral<"text">;
6947
+ id: z.ZodString;
6948
+ text: z.ZodString;
6949
+ }, z.core.$strict>, z.ZodObject<{
6950
+ kind: z.ZodLiteral<"text-delta">;
6951
+ id: z.ZodString;
6952
+ text: z.ZodString;
6953
+ }, z.core.$strict>, z.ZodObject<{
6954
+ kind: z.ZodLiteral<"reasoning">;
6955
+ id: z.ZodString;
6956
+ text: z.ZodString;
6957
+ }, z.core.$strict>, z.ZodObject<{
6958
+ kind: z.ZodLiteral<"tool-call">;
6959
+ id: z.ZodString;
6960
+ name: z.ZodString;
6961
+ input: z.ZodUnknown;
6962
+ }, z.core.$strict>, z.ZodObject<{
6963
+ kind: z.ZodLiteral<"tool-result">;
6964
+ id: z.ZodString;
6965
+ output: z.ZodString;
6966
+ isError: z.ZodBoolean;
6967
+ fullBytes: z.ZodOptional<z.ZodInt>;
6968
+ }, z.core.$strict>, z.ZodObject<{
6969
+ kind: z.ZodLiteral<"usage">;
6970
+ usage: z.ZodObject<{
6971
+ inputTokens: z.ZodInt;
6972
+ outputTokens: z.ZodInt;
6973
+ cachedInputTokens: z.ZodInt;
6974
+ }, z.core.$strict>;
6975
+ costUsd: z.ZodNullable<z.ZodNumber>;
6976
+ }, z.core.$strict>, z.ZodObject<{
6977
+ kind: z.ZodLiteral<"notice">;
6978
+ id: z.ZodString;
6979
+ level: z.ZodEnum<{
6980
+ warning: "warning";
6981
+ info: "info";
6982
+ }>;
6983
+ text: z.ZodString;
6984
+ }, z.core.$strict>, z.ZodObject<{
6985
+ kind: z.ZodLiteral<"error">;
6986
+ id: z.ZodString;
6987
+ text: z.ZodString;
6988
+ }, z.core.$strict>], "kind">>;
6989
+ truncated: z.ZodBoolean;
6990
+ unavailable: z.ZodNullable<z.ZodString>;
6991
+ seq: z.ZodInt;
6823
6992
  }, z.core.$strict>;
6824
- declare const CodingQuotaWindow: z.ZodObject<{
6825
- label: z.ZodString;
6826
- usedPercent: z.ZodNullable<z.ZodNumber>;
6827
- resetsAt: z.ZodNullable<z.ZodString>;
6828
- valueLabel: z.ZodNullable<z.ZodString>;
6993
+ declare const CodingTranscriptReadResult: z.ZodObject<{
6994
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
6995
+ kind: z.ZodLiteral<"user">;
6996
+ id: z.ZodString;
6997
+ text: z.ZodString;
6998
+ at: z.ZodNullable<z.ZodString>;
6999
+ }, z.core.$strict>, z.ZodObject<{
7000
+ kind: z.ZodLiteral<"text">;
7001
+ id: z.ZodString;
7002
+ text: z.ZodString;
7003
+ }, z.core.$strict>, z.ZodObject<{
7004
+ kind: z.ZodLiteral<"text-delta">;
7005
+ id: z.ZodString;
7006
+ text: z.ZodString;
7007
+ }, z.core.$strict>, z.ZodObject<{
7008
+ kind: z.ZodLiteral<"reasoning">;
7009
+ id: z.ZodString;
7010
+ text: z.ZodString;
7011
+ }, z.core.$strict>, z.ZodObject<{
7012
+ kind: z.ZodLiteral<"tool-call">;
7013
+ id: z.ZodString;
7014
+ name: z.ZodString;
7015
+ input: z.ZodUnknown;
7016
+ }, z.core.$strict>, z.ZodObject<{
7017
+ kind: z.ZodLiteral<"tool-result">;
7018
+ id: z.ZodString;
7019
+ output: z.ZodString;
7020
+ isError: z.ZodBoolean;
7021
+ fullBytes: z.ZodOptional<z.ZodInt>;
7022
+ }, z.core.$strict>, z.ZodObject<{
7023
+ kind: z.ZodLiteral<"usage">;
7024
+ usage: z.ZodObject<{
7025
+ inputTokens: z.ZodInt;
7026
+ outputTokens: z.ZodInt;
7027
+ cachedInputTokens: z.ZodInt;
7028
+ }, z.core.$strict>;
7029
+ costUsd: z.ZodNullable<z.ZodNumber>;
7030
+ }, z.core.$strict>, z.ZodObject<{
7031
+ kind: z.ZodLiteral<"notice">;
7032
+ id: z.ZodString;
7033
+ level: z.ZodEnum<{
7034
+ warning: "warning";
7035
+ info: "info";
7036
+ }>;
7037
+ text: z.ZodString;
7038
+ }, z.core.$strict>, z.ZodObject<{
7039
+ kind: z.ZodLiteral<"error">;
7040
+ id: z.ZodString;
7041
+ text: z.ZodString;
7042
+ }, z.core.$strict>], "kind">>;
7043
+ truncated: z.ZodBoolean;
7044
+ unavailable: z.ZodNullable<z.ZodString>;
7045
+ seq: z.ZodInt;
6829
7046
  }, z.core.$strict>;
6830
- declare const CodingProviderProblem: z.ZodObject<{
6831
- kind: z.ZodEnum<{
6832
- "usage-limit": "usage-limit";
6833
- "signed-out": "signed-out";
6834
- }>;
6835
- message: z.ZodString;
6836
- until: z.ZodNullable<z.ZodString>;
6837
- at: z.ZodString;
7047
+ declare const CodingFoldersCheckResult: z.ZodObject<{
7048
+ path: z.ZodString;
7049
+ exists: z.ZodBoolean;
7050
+ isDirectory: z.ZodBoolean;
6838
7051
  }, z.core.$strict>;
6839
- declare const CodingProviderBinary: z.ZodObject<{
7052
+ declare const CodingFoldersCreateResult: z.ZodObject<{
6840
7053
  path: z.ZodString;
6841
- version: z.ZodNullable<z.ZodString>;
6842
- source: z.ZodEnum<{
6843
- path: "path";
6844
- "desktop-app": "desktop-app";
6845
- "npm-global": "npm-global";
6846
- configured: "configured";
6847
- }>;
6848
- sourceLabel: z.ZodString;
6849
- newer: z.ZodNullable<z.ZodObject<{
6850
- path: z.ZodString;
6851
- version: z.ZodString;
6852
- sourceLabel: z.ZodString;
6853
- }, z.core.$strict>>;
7054
+ exists: z.ZodBoolean;
7055
+ isDirectory: z.ZodBoolean;
6854
7056
  }, z.core.$strict>;
6855
- declare const CodingProvidersParams: z.ZodObject<{}, z.core.$strict>;
6856
- declare const CodingProvidersResult: z.ZodObject<{
6857
- providers: z.ZodArray<z.ZodObject<{
7057
+ declare const CodingStartResult: z.ZodObject<{
7058
+ session: z.ZodObject<{
7059
+ id: z.ZodString;
6858
7060
  provider: z.ZodEnum<{
6859
7061
  claude: "claude";
6860
7062
  codex: "codex";
6861
7063
  }>;
6862
- label: z.ZodString;
6863
- installed: z.ZodBoolean;
6864
- version: z.ZodNullable<z.ZodString>;
6865
- loggedIn: z.ZodBoolean;
6866
- billing: z.ZodEnum<{
6867
- unknown: "unknown";
6868
- subscription: "subscription";
6869
- api: "api";
7064
+ providerSessionId: z.ZodNullable<z.ZodString>;
7065
+ cwd: z.ZodString;
7066
+ title: z.ZodString;
7067
+ model: z.ZodNullable<z.ZodString>;
7068
+ effort: z.ZodNullable<z.ZodString>;
7069
+ origin: z.ZodEnum<{
7070
+ started: "started";
7071
+ takeover: "takeover";
6870
7072
  }>;
6871
- plan: z.ZodNullable<z.ZodString>;
6872
- account: z.ZodNullable<z.ZodString>;
6873
- problem: z.ZodNullable<z.ZodString>;
6874
- fix: z.ZodNullable<z.ZodString>;
6875
- ready: z.ZodBoolean;
6876
- lastProblem: z.ZodNullable<z.ZodObject<{
6877
- kind: z.ZodEnum<{
6878
- "usage-limit": "usage-limit";
6879
- "signed-out": "signed-out";
6880
- }>;
6881
- message: z.ZodString;
6882
- until: z.ZodNullable<z.ZodString>;
6883
- at: z.ZodString;
6884
- }, z.core.$strict>>;
6885
- quota: z.ZodArray<z.ZodObject<{
6886
- label: z.ZodString;
6887
- usedPercent: z.ZodNullable<z.ZodNumber>;
6888
- resetsAt: z.ZodNullable<z.ZodString>;
6889
- valueLabel: z.ZodNullable<z.ZodString>;
6890
- }, z.core.$strict>>;
6891
- models: z.ZodArray<z.ZodObject<{
6892
- id: z.ZodString;
6893
- label: z.ZodString;
6894
- }, z.core.$strict>>;
6895
- efforts: z.ZodArray<z.ZodString>;
6896
- defaultModel: z.ZodNullable<z.ZodObject<{
6897
- id: z.ZodString;
6898
- source: z.ZodEnum<{
6899
- settings: "settings";
6900
- driver: "driver";
6901
- }>;
6902
- }, z.core.$strict>>;
6903
- defaultEffort: z.ZodNullable<z.ZodString>;
6904
- binary: z.ZodNullable<z.ZodObject<{
6905
- path: z.ZodString;
6906
- version: z.ZodNullable<z.ZodString>;
6907
- source: z.ZodEnum<{
6908
- path: "path";
6909
- "desktop-app": "desktop-app";
6910
- "npm-global": "npm-global";
6911
- configured: "configured";
6912
- }>;
6913
- sourceLabel: z.ZodString;
6914
- newer: z.ZodNullable<z.ZodObject<{
6915
- path: z.ZodString;
6916
- version: z.ZodString;
6917
- sourceLabel: z.ZodString;
6918
- }, z.core.$strict>>;
6919
- }, z.core.$strict>>;
6920
- }, z.core.$strict>>;
6921
- }, z.core.$strict>;
6922
- declare const CodingSessionsListParams: z.ZodObject<{}, z.core.$strict>;
6923
- declare const CodingDiscoverParams: z.ZodObject<{
6924
- limit: z.ZodOptional<z.ZodInt>;
6925
- }, z.core.$strict>;
6926
- declare const CodingDiscoverResult: z.ZodObject<{
6927
- chats: z.ZodArray<z.ZodObject<{
6928
- provider: z.ZodEnum<{
6929
- claude: "claude";
6930
- codex: "codex";
6931
- }>;
6932
- providerSessionId: z.ZodString;
6933
- cwd: z.ZodNullable<z.ZodString>;
6934
- title: z.ZodString;
6935
- titleSource: z.ZodOptional<z.ZodEnum<{
6936
- unknown: "unknown";
6937
- app: "app";
6938
- "app-remembered": "app-remembered";
6939
- "custom-title": "custom-title";
6940
- "ai-title": "ai-title";
6941
- "agent-name": "agent-name";
6942
- summary: "summary";
6943
- "first-prompt": "first-prompt";
6944
- "last-prompt": "last-prompt";
6945
- }>>;
6946
- titlePending: z.ZodOptional<z.ZodBoolean>;
6947
- archived: z.ZodOptional<z.ZodBoolean>;
6948
- scheduled: z.ZodOptional<z.ZodBoolean>;
6949
- unlisted: z.ZodOptional<z.ZodBoolean>;
6950
- unavailable: z.ZodNullable<z.ZodString>;
7073
+ createdAt: z.ZodString;
6951
7074
  updatedAt: z.ZodString;
6952
- source: z.ZodNullable<z.ZodString>;
6953
- activeElsewhere: z.ZodNullable<z.ZodObject<{
6954
- reason: z.ZodEnum<{
6955
- open: "open";
6956
- process: "process";
6957
- "recent-write": "recent-write";
6958
- "open-tool-call": "open-tool-call";
6959
- }>;
6960
- message: z.ZodString;
6961
- pid: z.ZodNullable<z.ZodInt>;
7075
+ lastRunId: z.ZodNullable<z.ZodString>;
7076
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7077
+ completed: "completed";
7078
+ running: "running";
7079
+ failed: "failed";
7080
+ stopped: "stopped";
7081
+ starting: "starting";
7082
+ }>>;
7083
+ queued: z.ZodArray<z.ZodString>;
7084
+ agent: z.ZodNullable<z.ZodObject<{
7085
+ agentId: z.ZodString;
7086
+ versionId: z.ZodNullable<z.ZodString>;
7087
+ versionNumber: z.ZodNullable<z.ZodInt>;
7088
+ name: z.ZodString;
7089
+ definitionHash: z.ZodString;
7090
+ loaded: z.ZodArray<z.ZodObject<{
7091
+ part: z.ZodEnum<{
7092
+ tools: "tools";
7093
+ instructions: "instructions";
7094
+ skills: "skills";
7095
+ }>;
7096
+ loaded: z.ZodInt;
7097
+ total: z.ZodInt;
7098
+ }, z.core.$strict>>;
7099
+ unavailable: z.ZodArray<z.ZodObject<{
7100
+ kind: z.ZodString;
7101
+ name: z.ZodString;
7102
+ reason: z.ZodString;
7103
+ }, z.core.$strict>>;
7104
+ skills: z.ZodArray<z.ZodString>;
7105
+ tools: z.ZodArray<z.ZodString>;
7106
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7107
+ blockDue: z.ZodBoolean;
7108
+ deliveredAt: z.ZodNullable<z.ZodString>;
7109
+ replaces: z.ZodNullable<z.ZodString>;
6962
7110
  }, z.core.$strict>>;
6963
- }, z.core.$strict>>;
6964
- }, z.core.$strict>;
6965
- declare const CodingRunsListParams: z.ZodObject<{
6966
- session_id: z.ZodString;
6967
- }, z.core.$strict>;
6968
- declare const CodingRunsListResult: z.ZodObject<{
6969
- runs: z.ZodArray<z.ZodObject<{
7111
+ agentRemovedDue: z.ZodBoolean;
7112
+ }, z.core.$strict>;
7113
+ run: z.ZodNullable<z.ZodObject<{
6970
7114
  runId: z.ZodString;
6971
7115
  sessionId: z.ZodString;
6972
7116
  provider: z.ZodEnum<{
@@ -7008,90 +7152,299 @@ declare const CodingRunsListResult: z.ZodObject<{
7008
7152
  label: z.ZodString;
7009
7153
  }, z.core.$strict>>;
7010
7154
  }, z.core.$strict>>;
7155
+ queued: z.ZodBoolean;
7011
7156
  }, z.core.$strict>;
7012
- /** A first page defaults to the device's config (256 KB); "Show earlier" asks for more. */
7013
- declare const CodingHistoryParams: z.ZodObject<{
7014
- session_id: z.ZodString;
7015
- max_bytes: z.ZodOptional<z.ZodInt>;
7157
+ declare const CodingTitlesStatusResult: z.ZodObject<{
7158
+ owner: z.ZodBoolean;
7159
+ pending: z.ZodBoolean;
7160
+ problem: z.ZodNullable<z.ZodString>;
7161
+ renames: z.ZodNullable<z.ZodString>;
7016
7162
  }, z.core.$strict>;
7017
- declare const CodingHistoryResult: z.ZodObject<{
7018
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7019
- kind: z.ZodLiteral<"user">;
7020
- id: z.ZodString;
7021
- text: z.ZodString;
7022
- at: z.ZodNullable<z.ZodString>;
7023
- }, z.core.$strict>, z.ZodObject<{
7024
- kind: z.ZodLiteral<"text">;
7025
- id: z.ZodString;
7026
- text: z.ZodString;
7027
- }, z.core.$strict>, z.ZodObject<{
7028
- kind: z.ZodLiteral<"text-delta">;
7029
- id: z.ZodString;
7030
- text: z.ZodString;
7031
- }, z.core.$strict>, z.ZodObject<{
7032
- kind: z.ZodLiteral<"reasoning">;
7033
- id: z.ZodString;
7034
- text: z.ZodString;
7035
- }, z.core.$strict>, z.ZodObject<{
7036
- kind: z.ZodLiteral<"tool-call">;
7037
- id: z.ZodString;
7038
- name: z.ZodString;
7039
- input: z.ZodUnknown;
7040
- }, z.core.$strict>, z.ZodObject<{
7041
- kind: z.ZodLiteral<"tool-result">;
7042
- id: z.ZodString;
7043
- output: z.ZodString;
7044
- isError: z.ZodBoolean;
7045
- fullBytes: z.ZodOptional<z.ZodInt>;
7046
- }, z.core.$strict>, z.ZodObject<{
7047
- kind: z.ZodLiteral<"usage">;
7048
- usage: z.ZodObject<{
7049
- inputTokens: z.ZodInt;
7050
- outputTokens: z.ZodInt;
7051
- cachedInputTokens: z.ZodInt;
7052
- }, z.core.$strict>;
7053
- costUsd: z.ZodNullable<z.ZodNumber>;
7054
- }, z.core.$strict>, z.ZodObject<{
7055
- kind: z.ZodLiteral<"notice">;
7056
- id: z.ZodString;
7057
- level: z.ZodEnum<{
7058
- warning: "warning";
7059
- info: "info";
7060
- }>;
7061
- text: z.ZodString;
7062
- }, z.core.$strict>, z.ZodObject<{
7063
- kind: z.ZodLiteral<"error">;
7064
- id: z.ZodString;
7065
- text: z.ZodString;
7066
- }, z.core.$strict>], "kind">>;
7067
- truncated: z.ZodBoolean;
7068
- unavailable: z.ZodNullable<z.ZodString>;
7069
- seq: z.ZodInt;
7163
+ declare const CodingPrefsSetResult: z.ZodObject<{
7164
+ preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7165
+ title: z.ZodNullable<z.ZodString>;
7166
+ pinned: z.ZodBoolean;
7167
+ hidden: z.ZodBoolean;
7168
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7169
+ updatedAt: z.ZodNullable<z.ZodString>;
7170
+ }, z.core.$strict>>;
7070
7171
  }, z.core.$strict>;
7071
- declare const CodingTranscriptReadParams: z.ZodObject<{
7172
+ declare const CodingProviderName: z.ZodEnum<{
7173
+ claude: "claude";
7174
+ codex: "codex";
7175
+ }>;
7176
+ type CodingProviderName = z.output<typeof CodingProviderName>;
7177
+ declare const CodingRunStatus: z.ZodEnum<{
7178
+ completed: "completed";
7179
+ running: "running";
7180
+ failed: "failed";
7181
+ stopped: "stopped";
7182
+ starting: "starting";
7183
+ }>;
7184
+ type CodingRunStatus = z.output<typeof CodingRunStatus>;
7185
+ declare const CodingRunUsage: z.ZodObject<{
7186
+ inputTokens: z.ZodInt;
7187
+ outputTokens: z.ZodInt;
7188
+ cachedInputTokens: z.ZodInt;
7189
+ }, z.core.$strict>;
7190
+ type CodingRunUsage = z.output<typeof CodingRunUsage>;
7191
+ /**
7192
+ * Who started a run, stamped by the core from the connection (never from call arguments):
7193
+ * "This Mac", "iPhone", "Safari on Mac", "An agent".
7194
+ */
7195
+ declare const CodingStartedBy: z.ZodObject<{
7196
+ kind: z.ZodEnum<{
7197
+ web: "web";
7198
+ agent: "agent";
7199
+ other: "other";
7200
+ this_computer: "this_computer";
7201
+ phone: "phone";
7202
+ }>;
7203
+ label: z.ZodString;
7204
+ }, z.core.$strict>;
7205
+ type CodingStartedBy = z.output<typeof CodingStartedBy>;
7206
+ declare const CodingRunRecord: z.ZodObject<{
7207
+ runId: z.ZodString;
7208
+ sessionId: z.ZodString;
7072
7209
  provider: z.ZodEnum<{
7073
7210
  claude: "claude";
7074
7211
  codex: "codex";
7075
7212
  }>;
7076
- provider_session_id: z.ZodString;
7077
- max_bytes: z.ZodOptional<z.ZodInt>;
7078
- }, z.core.$strict>;
7079
- declare const CodingTranscriptReadResult: z.ZodObject<{
7080
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7081
- kind: z.ZodLiteral<"user">;
7082
- id: z.ZodString;
7083
- text: z.ZodString;
7084
- at: z.ZodNullable<z.ZodString>;
7085
- }, z.core.$strict>, z.ZodObject<{
7086
- kind: z.ZodLiteral<"text">;
7087
- id: z.ZodString;
7088
- text: z.ZodString;
7089
- }, z.core.$strict>, z.ZodObject<{
7090
- kind: z.ZodLiteral<"text-delta">;
7091
- id: z.ZodString;
7092
- text: z.ZodString;
7093
- }, z.core.$strict>, z.ZodObject<{
7094
- kind: z.ZodLiteral<"reasoning">;
7213
+ cwd: z.ZodString;
7214
+ prompt: z.ZodString;
7215
+ model: z.ZodNullable<z.ZodString>;
7216
+ status: z.ZodEnum<{
7217
+ completed: "completed";
7218
+ running: "running";
7219
+ failed: "failed";
7220
+ stopped: "stopped";
7221
+ starting: "starting";
7222
+ }>;
7223
+ startedAt: z.ZodString;
7224
+ endedAt: z.ZodNullable<z.ZodString>;
7225
+ error: z.ZodNullable<z.ZodString>;
7226
+ usage: z.ZodNullable<z.ZodObject<{
7227
+ inputTokens: z.ZodInt;
7228
+ outputTokens: z.ZodInt;
7229
+ cachedInputTokens: z.ZodInt;
7230
+ }, z.core.$strict>>;
7231
+ costUsd: z.ZodNullable<z.ZodNumber>;
7232
+ billing: z.ZodNullable<z.ZodEnum<{
7233
+ unknown: "unknown";
7234
+ subscription: "subscription";
7235
+ api: "api";
7236
+ }>>;
7237
+ startedBy: z.ZodNullable<z.ZodObject<{
7238
+ kind: z.ZodEnum<{
7239
+ web: "web";
7240
+ agent: "agent";
7241
+ other: "other";
7242
+ this_computer: "this_computer";
7243
+ phone: "phone";
7244
+ }>;
7245
+ label: z.ZodString;
7246
+ }, z.core.$strict>>;
7247
+ }, z.core.$strict>;
7248
+ type CodingRunRecord = z.output<typeof CodingRunRecord>;
7249
+ declare const CodingSessionAgent: z.ZodObject<{
7250
+ agentId: z.ZodString;
7251
+ versionId: z.ZodNullable<z.ZodString>;
7252
+ versionNumber: z.ZodNullable<z.ZodInt>;
7253
+ name: z.ZodString;
7254
+ definitionHash: z.ZodString;
7255
+ loaded: z.ZodArray<z.ZodObject<{
7256
+ part: z.ZodEnum<{
7257
+ tools: "tools";
7258
+ instructions: "instructions";
7259
+ skills: "skills";
7260
+ }>;
7261
+ loaded: z.ZodInt;
7262
+ total: z.ZodInt;
7263
+ }, z.core.$strict>>;
7264
+ unavailable: z.ZodArray<z.ZodObject<{
7265
+ kind: z.ZodString;
7266
+ name: z.ZodString;
7267
+ reason: z.ZodString;
7268
+ }, z.core.$strict>>;
7269
+ skills: z.ZodArray<z.ZodString>;
7270
+ tools: z.ZodArray<z.ZodString>;
7271
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7272
+ blockDue: z.ZodBoolean;
7273
+ deliveredAt: z.ZodNullable<z.ZodString>;
7274
+ replaces: z.ZodNullable<z.ZodString>;
7275
+ }, z.core.$strict>;
7276
+ type CodingSessionAgent = z.output<typeof CodingSessionAgent>;
7277
+ declare const CodingSessionRecord: z.ZodObject<{
7278
+ id: z.ZodString;
7279
+ provider: z.ZodEnum<{
7280
+ claude: "claude";
7281
+ codex: "codex";
7282
+ }>;
7283
+ providerSessionId: z.ZodNullable<z.ZodString>;
7284
+ cwd: z.ZodString;
7285
+ title: z.ZodString;
7286
+ model: z.ZodNullable<z.ZodString>;
7287
+ effort: z.ZodNullable<z.ZodString>;
7288
+ origin: z.ZodEnum<{
7289
+ started: "started";
7290
+ takeover: "takeover";
7291
+ }>;
7292
+ createdAt: z.ZodString;
7293
+ updatedAt: z.ZodString;
7294
+ lastRunId: z.ZodNullable<z.ZodString>;
7295
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
7296
+ completed: "completed";
7297
+ running: "running";
7298
+ failed: "failed";
7299
+ stopped: "stopped";
7300
+ starting: "starting";
7301
+ }>>;
7302
+ queued: z.ZodArray<z.ZodString>;
7303
+ agent: z.ZodNullable<z.ZodObject<{
7304
+ agentId: z.ZodString;
7305
+ versionId: z.ZodNullable<z.ZodString>;
7306
+ versionNumber: z.ZodNullable<z.ZodInt>;
7307
+ name: z.ZodString;
7308
+ definitionHash: z.ZodString;
7309
+ loaded: z.ZodArray<z.ZodObject<{
7310
+ part: z.ZodEnum<{
7311
+ tools: "tools";
7312
+ instructions: "instructions";
7313
+ skills: "skills";
7314
+ }>;
7315
+ loaded: z.ZodInt;
7316
+ total: z.ZodInt;
7317
+ }, z.core.$strict>>;
7318
+ unavailable: z.ZodArray<z.ZodObject<{
7319
+ kind: z.ZodString;
7320
+ name: z.ZodString;
7321
+ reason: z.ZodString;
7322
+ }, z.core.$strict>>;
7323
+ skills: z.ZodArray<z.ZodString>;
7324
+ tools: z.ZodArray<z.ZodString>;
7325
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7326
+ blockDue: z.ZodBoolean;
7327
+ deliveredAt: z.ZodNullable<z.ZodString>;
7328
+ replaces: z.ZodNullable<z.ZodString>;
7329
+ }, z.core.$strict>>;
7330
+ agentRemovedDue: z.ZodBoolean;
7331
+ }, z.core.$strict>;
7332
+ type CodingSessionRecord = z.output<typeof CodingSessionRecord>;
7333
+ declare const CodingActiveElsewhere: z.ZodObject<{
7334
+ reason: z.ZodEnum<{
7335
+ open: "open";
7336
+ process: "process";
7337
+ "recent-write": "recent-write";
7338
+ "open-tool-call": "open-tool-call";
7339
+ }>;
7340
+ message: z.ZodString;
7341
+ pid: z.ZodNullable<z.ZodInt>;
7342
+ }, z.core.$strict>;
7343
+ type CodingActiveElsewhere = z.output<typeof CodingActiveElsewhere>;
7344
+ declare const CodingDiscoveredChat: z.ZodObject<{
7345
+ provider: z.ZodEnum<{
7346
+ claude: "claude";
7347
+ codex: "codex";
7348
+ }>;
7349
+ providerSessionId: z.ZodString;
7350
+ cwd: z.ZodNullable<z.ZodString>;
7351
+ title: z.ZodString;
7352
+ titleSource: z.ZodOptional<z.ZodEnum<{
7353
+ unknown: "unknown";
7354
+ app: "app";
7355
+ "app-remembered": "app-remembered";
7356
+ "custom-title": "custom-title";
7357
+ "ai-title": "ai-title";
7358
+ "agent-name": "agent-name";
7359
+ summary: "summary";
7360
+ "first-prompt": "first-prompt";
7361
+ "last-prompt": "last-prompt";
7362
+ }>>;
7363
+ titlePending: z.ZodOptional<z.ZodBoolean>;
7364
+ archived: z.ZodOptional<z.ZodBoolean>;
7365
+ scheduled: z.ZodOptional<z.ZodBoolean>;
7366
+ unlisted: z.ZodOptional<z.ZodBoolean>;
7367
+ unavailable: z.ZodNullable<z.ZodString>;
7368
+ updatedAt: z.ZodString;
7369
+ source: z.ZodNullable<z.ZodString>;
7370
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
7371
+ reason: z.ZodEnum<{
7372
+ open: "open";
7373
+ process: "process";
7374
+ "recent-write": "recent-write";
7375
+ "open-tool-call": "open-tool-call";
7376
+ }>;
7377
+ message: z.ZodString;
7378
+ pid: z.ZodNullable<z.ZodInt>;
7379
+ }, z.core.$strict>>;
7380
+ }, z.core.$strict>;
7381
+ type CodingDiscoveredChat = z.output<typeof CodingDiscoveredChat>;
7382
+ declare const CodingTranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7383
+ kind: z.ZodLiteral<"user">;
7384
+ id: z.ZodString;
7385
+ text: z.ZodString;
7386
+ at: z.ZodNullable<z.ZodString>;
7387
+ }, z.core.$strict>, z.ZodObject<{
7388
+ kind: z.ZodLiteral<"text">;
7389
+ id: z.ZodString;
7390
+ text: z.ZodString;
7391
+ }, z.core.$strict>, z.ZodObject<{
7392
+ kind: z.ZodLiteral<"text-delta">;
7393
+ id: z.ZodString;
7394
+ text: z.ZodString;
7395
+ }, z.core.$strict>, z.ZodObject<{
7396
+ kind: z.ZodLiteral<"reasoning">;
7397
+ id: z.ZodString;
7398
+ text: z.ZodString;
7399
+ }, z.core.$strict>, z.ZodObject<{
7400
+ kind: z.ZodLiteral<"tool-call">;
7401
+ id: z.ZodString;
7402
+ name: z.ZodString;
7403
+ input: z.ZodUnknown;
7404
+ }, z.core.$strict>, z.ZodObject<{
7405
+ kind: z.ZodLiteral<"tool-result">;
7406
+ id: z.ZodString;
7407
+ output: z.ZodString;
7408
+ isError: z.ZodBoolean;
7409
+ fullBytes: z.ZodOptional<z.ZodInt>;
7410
+ }, z.core.$strict>, z.ZodObject<{
7411
+ kind: z.ZodLiteral<"usage">;
7412
+ usage: z.ZodObject<{
7413
+ inputTokens: z.ZodInt;
7414
+ outputTokens: z.ZodInt;
7415
+ cachedInputTokens: z.ZodInt;
7416
+ }, z.core.$strict>;
7417
+ costUsd: z.ZodNullable<z.ZodNumber>;
7418
+ }, z.core.$strict>, z.ZodObject<{
7419
+ kind: z.ZodLiteral<"notice">;
7420
+ id: z.ZodString;
7421
+ level: z.ZodEnum<{
7422
+ warning: "warning";
7423
+ info: "info";
7424
+ }>;
7425
+ text: z.ZodString;
7426
+ }, z.core.$strict>, z.ZodObject<{
7427
+ kind: z.ZodLiteral<"error">;
7428
+ id: z.ZodString;
7429
+ text: z.ZodString;
7430
+ }, z.core.$strict>], "kind">;
7431
+ type CodingTranscriptItem = z.output<typeof CodingTranscriptItem>;
7432
+ declare const CodingHistoryRecord: z.ZodObject<{
7433
+ items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
7434
+ kind: z.ZodLiteral<"user">;
7435
+ id: z.ZodString;
7436
+ text: z.ZodString;
7437
+ at: z.ZodNullable<z.ZodString>;
7438
+ }, z.core.$strict>, z.ZodObject<{
7439
+ kind: z.ZodLiteral<"text">;
7440
+ id: z.ZodString;
7441
+ text: z.ZodString;
7442
+ }, z.core.$strict>, z.ZodObject<{
7443
+ kind: z.ZodLiteral<"text-delta">;
7444
+ id: z.ZodString;
7445
+ text: z.ZodString;
7446
+ }, z.core.$strict>, z.ZodObject<{
7447
+ kind: z.ZodLiteral<"reasoning">;
7095
7448
  id: z.ZodString;
7096
7449
  text: z.ZodString;
7097
7450
  }, z.core.$strict>, z.ZodObject<{
@@ -7130,63 +7483,146 @@ declare const CodingTranscriptReadResult: z.ZodObject<{
7130
7483
  unavailable: z.ZodNullable<z.ZodString>;
7131
7484
  seq: z.ZodInt;
7132
7485
  }, z.core.$strict>;
7133
- /** The whole of one tool output the transcript carried only the start of. */
7134
- declare const CodingItemFullParams: z.ZodObject<{
7135
- provider: z.ZodEnum<{
7136
- claude: "claude";
7137
- codex: "codex";
7138
- }>;
7139
- provider_session_id: z.ZodString;
7140
- item_id: z.ZodString;
7141
- }, z.core.$strict>;
7142
- declare const CodingItemFullResult: z.ZodObject<{
7143
- output: z.ZodString;
7144
- bytes: z.ZodInt;
7145
- }, z.core.$strict>;
7146
- declare const CodingActivityParams: z.ZodObject<{
7486
+ type CodingHistoryRecord = z.output<typeof CodingHistoryRecord>;
7487
+ declare const CodingProviderStatus: z.ZodObject<{
7147
7488
  provider: z.ZodEnum<{
7148
7489
  claude: "claude";
7149
7490
  codex: "codex";
7150
7491
  }>;
7151
- provider_session_id: z.ZodString;
7152
- }, z.core.$strict>;
7153
- declare const CodingActivityResult: z.ZodObject<{
7154
- active: z.ZodNullable<z.ZodObject<{
7155
- reason: z.ZodEnum<{
7156
- open: "open";
7157
- process: "process";
7158
- "recent-write": "recent-write";
7159
- "open-tool-call": "open-tool-call";
7492
+ label: z.ZodString;
7493
+ installed: z.ZodBoolean;
7494
+ version: z.ZodNullable<z.ZodString>;
7495
+ loggedIn: z.ZodBoolean;
7496
+ billing: z.ZodEnum<{
7497
+ unknown: "unknown";
7498
+ subscription: "subscription";
7499
+ api: "api";
7500
+ }>;
7501
+ plan: z.ZodNullable<z.ZodString>;
7502
+ account: z.ZodNullable<z.ZodString>;
7503
+ problem: z.ZodNullable<z.ZodString>;
7504
+ fix: z.ZodNullable<z.ZodString>;
7505
+ ready: z.ZodBoolean;
7506
+ lastProblem: z.ZodNullable<z.ZodObject<{
7507
+ kind: z.ZodEnum<{
7508
+ "usage-limit": "usage-limit";
7509
+ "signed-out": "signed-out";
7160
7510
  }>;
7161
7511
  message: z.ZodString;
7162
- pid: z.ZodNullable<z.ZodInt>;
7512
+ until: z.ZodNullable<z.ZodString>;
7513
+ at: z.ZodString;
7163
7514
  }, z.core.$strict>>;
7164
- }, z.core.$strict>;
7165
- declare const CodingFoldersRecentParams: z.ZodObject<{}, z.core.$strict>;
7166
- declare const CodingFoldersRecentResult: z.ZodObject<{
7167
- folders: z.ZodArray<z.ZodObject<{
7515
+ quota: z.ZodArray<z.ZodObject<{
7516
+ label: z.ZodString;
7517
+ usedPercent: z.ZodNullable<z.ZodNumber>;
7518
+ resetsAt: z.ZodNullable<z.ZodString>;
7519
+ valueLabel: z.ZodNullable<z.ZodString>;
7520
+ }, z.core.$strict>>;
7521
+ models: z.ZodArray<z.ZodObject<{
7522
+ id: z.ZodString;
7523
+ label: z.ZodString;
7524
+ }, z.core.$strict>>;
7525
+ efforts: z.ZodArray<z.ZodString>;
7526
+ defaultModel: z.ZodNullable<z.ZodObject<{
7527
+ id: z.ZodString;
7528
+ source: z.ZodEnum<{
7529
+ settings: "settings";
7530
+ driver: "driver";
7531
+ }>;
7532
+ }, z.core.$strict>>;
7533
+ defaultEffort: z.ZodNullable<z.ZodString>;
7534
+ binary: z.ZodNullable<z.ZodObject<{
7168
7535
  path: z.ZodString;
7169
- lastUsedAt: z.ZodString;
7170
- exists: z.ZodBoolean;
7536
+ version: z.ZodNullable<z.ZodString>;
7537
+ source: z.ZodEnum<{
7538
+ path: "path";
7539
+ "desktop-app": "desktop-app";
7540
+ "npm-global": "npm-global";
7541
+ configured: "configured";
7542
+ }>;
7543
+ sourceLabel: z.ZodString;
7544
+ newer: z.ZodNullable<z.ZodObject<{
7545
+ path: z.ZodString;
7546
+ version: z.ZodString;
7547
+ sourceLabel: z.ZodString;
7548
+ }, z.core.$strict>>;
7171
7549
  }, z.core.$strict>>;
7172
7550
  }, z.core.$strict>;
7173
- declare const CodingFoldersCheckParams: z.ZodObject<{
7174
- path: z.ZodString;
7551
+ type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
7552
+ /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
7553
+ declare const CodingChatPreference: z.ZodObject<{
7554
+ title: z.ZodNullable<z.ZodString>;
7555
+ pinned: z.ZodBoolean;
7556
+ hidden: z.ZodBoolean;
7557
+ lastSeenAt: z.ZodNullable<z.ZodString>;
7558
+ updatedAt: z.ZodNullable<z.ZodString>;
7175
7559
  }, z.core.$strict>;
7176
- declare const CodingFoldersCheckResult: z.ZodObject<{
7560
+ type CodingChatPreference = z.output<typeof CodingChatPreference>;
7561
+ declare const CodingTitleStatus: z.ZodObject<{
7562
+ owner: z.ZodBoolean;
7563
+ pending: z.ZodBoolean;
7564
+ problem: z.ZodNullable<z.ZodString>;
7565
+ renames: z.ZodNullable<z.ZodString>;
7566
+ }, z.core.$strict>;
7567
+ type CodingTitleStatus = z.output<typeof CodingTitleStatus>;
7568
+ /**
7569
+ * One row of THE recent coding chats (the Mac's Code › Recent and the phone's Sessions list draw
7570
+ * exactly these): the chats driven here and the coding apps' own chats, newest first, each with
7571
+ * the Mac's dot. `state`: running (amber "Running"), needs_attention (amber: failed or
7572
+ * interrupted since the person last looked), new_output (blue), elsewhere (amber "Running in
7573
+ * <app>"), idle (no dot).
7574
+ */
7575
+ declare const CodingRecentRow: z.ZodObject<{
7576
+ target: z.ZodString;
7577
+ title: z.ZodString;
7578
+ provider: z.ZodEnum<{
7579
+ claude: "claude";
7580
+ codex: "codex";
7581
+ }>;
7582
+ sessionId: z.ZodNullable<z.ZodString>;
7583
+ providerSessionId: z.ZodNullable<z.ZodString>;
7584
+ cwd: z.ZodNullable<z.ZodString>;
7585
+ updatedAt: z.ZodString;
7586
+ state: z.ZodEnum<{
7587
+ running: "running";
7588
+ idle: "idle";
7589
+ needs_attention: "needs_attention";
7590
+ new_output: "new_output";
7591
+ elsewhere: "elsewhere";
7592
+ }>;
7593
+ stateLabel: z.ZodNullable<z.ZodString>;
7594
+ pinned: z.ZodBoolean;
7595
+ startedBy: z.ZodNullable<z.ZodObject<{
7596
+ kind: z.ZodEnum<{
7597
+ web: "web";
7598
+ agent: "agent";
7599
+ other: "other";
7600
+ this_computer: "this_computer";
7601
+ phone: "phone";
7602
+ }>;
7603
+ label: z.ZodString;
7604
+ }, z.core.$strict>>;
7605
+ }, z.core.$strict>;
7606
+ type CodingRecentRow = z.output<typeof CodingRecentRow>;
7607
+ declare const CodingFolderCheck: z.ZodObject<{
7177
7608
  path: z.ZodString;
7178
7609
  exists: z.ZodBoolean;
7179
7610
  isDirectory: z.ZodBoolean;
7180
7611
  }, z.core.$strict>;
7181
- declare const CodingFoldersCreateParams: z.ZodObject<{
7182
- path: z.ZodString;
7183
- }, z.core.$strict>;
7184
- declare const CodingFoldersCreateResult: z.ZodObject<{
7612
+ type CodingFolderCheck = z.output<typeof CodingFolderCheck>;
7613
+ declare const CodingRecentFolder: z.ZodObject<{
7185
7614
  path: z.ZodString;
7615
+ lastUsedAt: z.ZodString;
7186
7616
  exists: z.ZodBoolean;
7187
- isDirectory: z.ZodBoolean;
7188
7617
  }, z.core.$strict>;
7189
- declare const CodingStartResult: z.ZodObject<{
7618
+ type CodingRecentFolder = z.output<typeof CodingRecentFolder>;
7619
+ declare const CodingAgentSelectionParams: z.ZodObject<{
7620
+ agent_id: z.ZodString;
7621
+ version_id: z.ZodOptional<z.ZodString>;
7622
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7623
+ }, z.core.$strict>;
7624
+ type CodingAgentSelectionParams = z.output<typeof CodingAgentSelectionParams>;
7625
+ declare const CodingSendResult: z.ZodObject<{
7190
7626
  session: z.ZodObject<{
7191
7627
  id: z.ZodString;
7192
7628
  provider: z.ZodEnum<{
@@ -7286,8 +7722,9 @@ declare const CodingStartResult: z.ZodObject<{
7286
7722
  }, z.core.$strict>>;
7287
7723
  queued: z.ZodBoolean;
7288
7724
  }, z.core.$strict>;
7289
- declare const CodingTakeoverResult: z.ZodObject<{
7290
- session: z.ZodObject<{
7725
+ type CodingSendResult = z.output<typeof CodingSendResult>;
7726
+ declare const CodingSessionsListResult: z.ZodObject<{
7727
+ sessions: z.ZodArray<z.ZodObject<{
7291
7728
  id: z.ZodString;
7292
7729
  provider: z.ZodEnum<{
7293
7730
  claude: "claude";
@@ -7341,18 +7778,8 @@ declare const CodingTakeoverResult: z.ZodObject<{
7341
7778
  replaces: z.ZodNullable<z.ZodString>;
7342
7779
  }, z.core.$strict>>;
7343
7780
  agentRemovedDue: z.ZodBoolean;
7344
- }, z.core.$strict>;
7345
- }, z.core.$strict>;
7346
- declare const CodingSendParams: z.ZodObject<{
7347
- session_id: z.ZodString;
7348
- prompt: z.ZodString;
7349
- client_request_id: z.ZodString;
7350
- }, z.core.$strict>;
7351
- declare const CodingStopParams: z.ZodObject<{
7352
- run_id: z.ZodString;
7353
- }, z.core.$strict>;
7354
- declare const CodingStopResult: z.ZodObject<{
7355
- run: z.ZodNullable<z.ZodObject<{
7781
+ }, z.core.$strict>>;
7782
+ runs: z.ZodRecord<z.ZodString, z.ZodObject<{
7356
7783
  runId: z.ZodString;
7357
7784
  sessionId: z.ZodString;
7358
7785
  provider: z.ZodEnum<{
@@ -7394,30 +7821,78 @@ declare const CodingStopResult: z.ZodObject<{
7394
7821
  label: z.ZodString;
7395
7822
  }, z.core.$strict>>;
7396
7823
  }, z.core.$strict>>;
7824
+ recent: z.ZodArray<z.ZodObject<{
7825
+ target: z.ZodString;
7826
+ title: z.ZodString;
7827
+ provider: z.ZodEnum<{
7828
+ claude: "claude";
7829
+ codex: "codex";
7830
+ }>;
7831
+ sessionId: z.ZodNullable<z.ZodString>;
7832
+ providerSessionId: z.ZodNullable<z.ZodString>;
7833
+ cwd: z.ZodNullable<z.ZodString>;
7834
+ updatedAt: z.ZodString;
7835
+ state: z.ZodEnum<{
7836
+ running: "running";
7837
+ idle: "idle";
7838
+ needs_attention: "needs_attention";
7839
+ new_output: "new_output";
7840
+ elsewhere: "elsewhere";
7841
+ }>;
7842
+ stateLabel: z.ZodNullable<z.ZodString>;
7843
+ pinned: z.ZodBoolean;
7844
+ startedBy: z.ZodNullable<z.ZodObject<{
7845
+ kind: z.ZodEnum<{
7846
+ web: "web";
7847
+ agent: "agent";
7848
+ other: "other";
7849
+ this_computer: "this_computer";
7850
+ phone: "phone";
7851
+ }>;
7852
+ label: z.ZodString;
7853
+ }, z.core.$strict>>;
7854
+ }, z.core.$strict>>;
7855
+ title_status: z.ZodObject<{
7856
+ owner: z.ZodBoolean;
7857
+ pending: z.ZodBoolean;
7858
+ problem: z.ZodNullable<z.ZodString>;
7859
+ renames: z.ZodNullable<z.ZodString>;
7860
+ }, z.core.$strict>;
7397
7861
  }, z.core.$strict>;
7398
- /**
7399
- * Stop a chat running in another app: the process is re-read at stop time and refused with a
7400
- * sentence when it is gone or is now something else (a reused pid).
7401
- */
7402
- declare const CodingStopElsewhereParams: z.ZodObject<{
7403
- provider: z.ZodEnum<{
7404
- claude: "claude";
7405
- codex: "codex";
7406
- }>;
7407
- provider_session_id: z.ZodString;
7408
- pid: z.ZodInt;
7409
- }, z.core.$strict>;
7410
- declare const CodingStopElsewhereResult: z.ZodObject<{
7411
- stopped: z.ZodBoolean;
7412
- message: z.ZodString;
7862
+ type CodingSessionsListResult = z.output<typeof CodingSessionsListResult>;
7863
+ declare const CodingSearchResult: z.ZodObject<{
7864
+ query: z.ZodString;
7865
+ hits: z.ZodArray<z.ZodObject<{
7866
+ provider: z.ZodEnum<{
7867
+ claude: "claude";
7868
+ codex: "codex";
7869
+ }>;
7870
+ providerSessionId: z.ZodString;
7871
+ title: z.ZodString;
7872
+ cwd: z.ZodNullable<z.ZodString>;
7873
+ updatedAt: z.ZodString;
7874
+ where: z.ZodEnum<{
7875
+ content: "content";
7876
+ title: "title";
7877
+ }>;
7878
+ snippet: z.ZodNullable<z.ZodString>;
7879
+ }, z.core.$strict>>;
7880
+ scanned: z.ZodInt;
7881
+ total: z.ZodInt;
7882
+ nextCursor: z.ZodNullable<z.ZodInt>;
7413
7883
  }, z.core.$strict>;
7414
- /** The next run's model or effort; "" = the provider's own default. */
7415
- declare const CodingOptionsSetParams: z.ZodObject<{
7416
- session_id: z.ZodString;
7417
- model: z.ZodOptional<z.ZodString>;
7418
- effort: z.ZodOptional<z.ZodString>;
7884
+ type CodingSearchResult = z.output<typeof CodingSearchResult>;
7885
+ declare const CodingTranscriptRawResult: z.ZodObject<{
7886
+ available: z.ZodBoolean;
7887
+ reason: z.ZodNullable<z.ZodString>;
7888
+ file_name: z.ZodNullable<z.ZodString>;
7889
+ bytes: z.ZodInt;
7890
+ backup_refreshed: z.ZodBoolean;
7891
+ subagents: z.ZodInt;
7419
7892
  }, z.core.$strict>;
7420
- declare const CodingOptionsSetResult: z.ZodObject<{
7893
+ type CodingTranscriptRawResult = z.output<typeof CodingTranscriptRawResult>;
7894
+ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
7895
+ kind: z.ZodLiteral<"session">;
7421
7896
  session: z.ZodObject<{
7422
7897
  id: z.ZodString;
7423
7898
  provider: z.ZodEnum<{
@@ -7473,107 +7948,52 @@ declare const CodingOptionsSetResult: z.ZodObject<{
7473
7948
  }, z.core.$strict>>;
7474
7949
  agentRemovedDue: z.ZodBoolean;
7475
7950
  }, z.core.$strict>;
7476
- }, z.core.$strict>;
7477
- /** Load a different agent from the next message on; absent `agent` removes it. */
7478
- declare const CodingAgentSetParams: z.ZodObject<{
7479
- session_id: z.ZodString;
7480
- agent: z.ZodOptional<z.ZodObject<{
7481
- agent_id: z.ZodString;
7482
- version_id: z.ZodOptional<z.ZodString>;
7483
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
7484
- }, z.core.$strict>>;
7485
- }, z.core.$strict>;
7486
- declare const CodingAgentSetResult: z.ZodObject<{
7487
- session: z.ZodObject<{
7488
- id: z.ZodString;
7951
+ }, z.core.$strict>, z.ZodObject<{
7952
+ kind: z.ZodLiteral<"run">;
7953
+ run: z.ZodObject<{
7954
+ runId: z.ZodString;
7955
+ sessionId: z.ZodString;
7489
7956
  provider: z.ZodEnum<{
7490
7957
  claude: "claude";
7491
7958
  codex: "codex";
7492
7959
  }>;
7493
- providerSessionId: z.ZodNullable<z.ZodString>;
7494
7960
  cwd: z.ZodString;
7495
- title: z.ZodString;
7961
+ prompt: z.ZodString;
7496
7962
  model: z.ZodNullable<z.ZodString>;
7497
- effort: z.ZodNullable<z.ZodString>;
7498
- origin: z.ZodEnum<{
7499
- started: "started";
7500
- takeover: "takeover";
7501
- }>;
7502
- createdAt: z.ZodString;
7503
- updatedAt: z.ZodString;
7504
- lastRunId: z.ZodNullable<z.ZodString>;
7505
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
7963
+ status: z.ZodEnum<{
7506
7964
  completed: "completed";
7507
7965
  running: "running";
7508
7966
  failed: "failed";
7509
7967
  stopped: "stopped";
7510
7968
  starting: "starting";
7969
+ }>;
7970
+ startedAt: z.ZodString;
7971
+ endedAt: z.ZodNullable<z.ZodString>;
7972
+ error: z.ZodNullable<z.ZodString>;
7973
+ usage: z.ZodNullable<z.ZodObject<{
7974
+ inputTokens: z.ZodInt;
7975
+ outputTokens: z.ZodInt;
7976
+ cachedInputTokens: z.ZodInt;
7977
+ }, z.core.$strict>>;
7978
+ costUsd: z.ZodNullable<z.ZodNumber>;
7979
+ billing: z.ZodNullable<z.ZodEnum<{
7980
+ unknown: "unknown";
7981
+ subscription: "subscription";
7982
+ api: "api";
7511
7983
  }>>;
7512
- queued: z.ZodArray<z.ZodString>;
7513
- agent: z.ZodNullable<z.ZodObject<{
7514
- agentId: z.ZodString;
7515
- versionId: z.ZodNullable<z.ZodString>;
7516
- versionNumber: z.ZodNullable<z.ZodInt>;
7517
- name: z.ZodString;
7518
- definitionHash: z.ZodString;
7519
- loaded: z.ZodArray<z.ZodObject<{
7520
- part: z.ZodEnum<{
7521
- tools: "tools";
7522
- instructions: "instructions";
7523
- skills: "skills";
7524
- }>;
7525
- loaded: z.ZodInt;
7526
- total: z.ZodInt;
7527
- }, z.core.$strict>>;
7528
- unavailable: z.ZodArray<z.ZodObject<{
7529
- kind: z.ZodString;
7530
- name: z.ZodString;
7531
- reason: z.ZodString;
7532
- }, z.core.$strict>>;
7533
- skills: z.ZodArray<z.ZodString>;
7534
- tools: z.ZodArray<z.ZodString>;
7535
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7536
- blockDue: z.ZodBoolean;
7537
- deliveredAt: z.ZodNullable<z.ZodString>;
7538
- replaces: z.ZodNullable<z.ZodString>;
7984
+ startedBy: z.ZodNullable<z.ZodObject<{
7985
+ kind: z.ZodEnum<{
7986
+ web: "web";
7987
+ agent: "agent";
7988
+ other: "other";
7989
+ this_computer: "this_computer";
7990
+ phone: "phone";
7991
+ }>;
7992
+ label: z.ZodString;
7539
7993
  }, z.core.$strict>>;
7540
- agentRemovedDue: z.ZodBoolean;
7541
7994
  }, z.core.$strict>;
7542
- }, z.core.$strict>;
7543
- /** Whether this computer is signed in to AI Matrx, so an agent can load into a session. */
7544
- declare const CodingAgentsAccessParams: z.ZodObject<{}, z.core.$strict>;
7545
- declare const CodingAgentsAccessResult: z.ZodObject<{
7546
- signedIn: z.ZodBoolean;
7547
- userId: z.ZodNullable<z.ZodString>;
7548
- organizationId: z.ZodNullable<z.ZodString>;
7549
- configured: z.ZodBoolean;
7550
- }, z.core.$strict>;
7551
- declare const CodingTitlesStatusParams: z.ZodObject<{}, z.core.$strict>;
7552
- declare const CodingTitlesStatusResult: z.ZodObject<{
7553
- owner: z.ZodBoolean;
7554
- pending: z.ZodBoolean;
7555
- problem: z.ZodNullable<z.ZodString>;
7556
- renames: z.ZodNullable<z.ZodString>;
7557
- }, z.core.$strict>;
7558
- declare const CodingPrefsListParams: z.ZodObject<{}, z.core.$strict>;
7559
- declare const CodingPrefsListResult: z.ZodObject<{
7560
- preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7561
- title: z.ZodNullable<z.ZodString>;
7562
- pinned: z.ZodBoolean;
7563
- hidden: z.ZodBoolean;
7564
- lastSeenAt: z.ZodNullable<z.ZodString>;
7565
- updatedAt: z.ZodNullable<z.ZodString>;
7566
- }, z.core.$strict>>;
7567
- }, z.core.$strict>;
7568
- /** Rename (`title`; `clear_title` restores the chat's own), pin, hide. */
7569
- declare const CodingPrefsSetParams: z.ZodObject<{
7570
- key: z.ZodString;
7571
- title: z.ZodOptional<z.ZodString>;
7572
- clear_title: z.ZodOptional<z.ZodBoolean>;
7573
- pinned: z.ZodOptional<z.ZodBoolean>;
7574
- hidden: z.ZodOptional<z.ZodBoolean>;
7575
- }, z.core.$strict>;
7576
- declare const CodingPrefsSetResult: z.ZodObject<{
7995
+ }, z.core.$strict>, z.ZodObject<{
7996
+ kind: z.ZodLiteral<"preferences">;
7577
7997
  preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
7578
7998
  title: z.ZodNullable<z.ZodString>;
7579
7999
  pinned: z.ZodBoolean;
@@ -7581,12 +8001,10 @@ declare const CodingPrefsSetResult: z.ZodObject<{
7581
8001
  lastSeenAt: z.ZodNullable<z.ZodString>;
7582
8002
  updatedAt: z.ZodNullable<z.ZodString>;
7583
8003
  }, z.core.$strict>>;
7584
- }, z.core.$strict>;
7585
- /** The person opened this chat (on any screen): its "New output" dot clears everywhere. */
7586
- declare const CodingRecentSeenParams: z.ZodObject<{
7587
- target: z.ZodString;
7588
- }, z.core.$strict>;
7589
- declare const CodingRecentSeenResult: z.ZodObject<{
8004
+ }, z.core.$strict>, z.ZodObject<{
8005
+ kind: z.ZodLiteral<"titles">;
8006
+ }, z.core.$strict>, z.ZodObject<{
8007
+ kind: z.ZodLiteral<"recent">;
7590
8008
  recent: z.ZodArray<z.ZodObject<{
7591
8009
  target: z.ZodString;
7592
8010
  title: z.ZodString;
@@ -7618,325 +8036,20 @@ declare const CodingRecentSeenResult: z.ZodObject<{
7618
8036
  label: z.ZodString;
7619
8037
  }, z.core.$strict>>;
7620
8038
  }, z.core.$strict>>;
7621
- }, z.core.$strict>;
7622
- declare const CodingSearchParams: z.ZodObject<{
7623
- query: z.ZodString;
7624
- cursor: z.ZodOptional<z.ZodInt>;
7625
- limit: z.ZodOptional<z.ZodInt>;
7626
- }, z.core.$strict>;
7627
- /**
7628
- * "Ask the desktop app to reconcile this conversation" (the web's sync panel): deliver this one
7629
- * chat's missing entries to AI Matrx through the shared importer. Progress arrives as
7630
- * coding.history.progress for this request.
7631
- */
7632
- declare const CodingReconcileParams: z.ZodObject<{
7633
- provider: z.ZodEnum<{
7634
- claude: "claude";
7635
- codex: "codex";
7636
- }>;
7637
- provider_session_id: z.ZodString;
7638
- }, z.core.$strict>;
7639
- /**
7640
- * FULL DOWNLOAD over any transport: the provider's own complete transcript file, byte for byte,
7641
- * on the op's stream. It also refreshes the person's opt-in cloud backup and counts the chat's
7642
- * subagent transcripts. `available: false` says why (the stream then carries nothing).
7643
- */
7644
- declare const CodingTranscriptRawParams: z.ZodObject<{
7645
- provider: z.ZodEnum<{
7646
- claude: "claude";
7647
- codex: "codex";
7648
- }>;
7649
- provider_session_id: z.ZodString;
7650
- }, z.core.$strict>;
7651
- /** Live changes to the sessions, runs, preferences, titles and recent rows (coding.changed). */
7652
- declare const CodingWatchParams: z.ZodObject<{}, z.core.$strict>;
7653
- declare const CodingWatchResult: z.ZodObject<{
7654
- resource_id: z.ZodString;
7655
- }, z.core.$strict>;
7656
- /**
7657
- * One chat's live items (coding.item), replayed from `since_seq` when it is still in the device's
7658
- * ring; older than the ring → coding.gap first, and the client reads history again.
7659
- */
7660
- declare const CodingSessionWatchParams: z.ZodObject<{
7661
- session_id: z.ZodString;
7662
- since_seq: z.ZodOptional<z.ZodInt>;
7663
- }, z.core.$strict>;
7664
- declare const CodingSessionWatchResult: z.ZodObject<{
7665
- resource_id: z.ZodString;
7666
- seq: z.ZodInt;
7667
- }, z.core.$strict>;
7668
- /**
7669
- * Sent once after hello by a client that knows the core is 1.38+ (an older core answers
7670
- * UNKNOWN_OPERATION; a new hello field would have made every older core refuse the hello).
7671
- */
7672
- declare const SessionIdentifyParams: z.ZodObject<{
7673
- label: z.ZodString;
7674
- }, z.core.$strict>;
7675
- declare const SessionIdentifyResult: z.ZodObject<{
7676
- label: z.ZodString;
7677
- }, z.core.$strict>;
7678
- declare const CodingProviderName: z.ZodEnum<{
7679
- claude: "claude";
7680
- codex: "codex";
7681
- }>;
7682
- type CodingProviderName = z.output<typeof CodingProviderName>;
7683
- declare const CodingRunStatus: z.ZodEnum<{
7684
- completed: "completed";
7685
- running: "running";
7686
- failed: "failed";
7687
- stopped: "stopped";
7688
- starting: "starting";
7689
- }>;
7690
- type CodingRunStatus = z.output<typeof CodingRunStatus>;
7691
- declare const CodingRunUsage: z.ZodObject<{
7692
- inputTokens: z.ZodInt;
7693
- outputTokens: z.ZodInt;
7694
- cachedInputTokens: z.ZodInt;
7695
- }, z.core.$strict>;
7696
- type CodingRunUsage = z.output<typeof CodingRunUsage>;
7697
- /**
7698
- * Who started a run, stamped by the core from the connection (never from call arguments):
7699
- * "This Mac", "iPhone", "Safari on Mac", "An agent".
7700
- */
7701
- declare const CodingStartedBy: z.ZodObject<{
7702
- kind: z.ZodEnum<{
7703
- web: "web";
7704
- agent: "agent";
7705
- other: "other";
7706
- this_computer: "this_computer";
7707
- phone: "phone";
7708
- }>;
7709
- label: z.ZodString;
7710
- }, z.core.$strict>;
7711
- type CodingStartedBy = z.output<typeof CodingStartedBy>;
7712
- declare const CodingRunRecord: z.ZodObject<{
7713
- runId: z.ZodString;
7714
- sessionId: z.ZodString;
7715
- provider: z.ZodEnum<{
7716
- claude: "claude";
7717
- codex: "codex";
7718
- }>;
7719
- cwd: z.ZodString;
7720
- prompt: z.ZodString;
7721
- model: z.ZodNullable<z.ZodString>;
7722
- status: z.ZodEnum<{
7723
- completed: "completed";
7724
- running: "running";
7725
- failed: "failed";
7726
- stopped: "stopped";
7727
- starting: "starting";
7728
- }>;
7729
- startedAt: z.ZodString;
7730
- endedAt: z.ZodNullable<z.ZodString>;
7731
- error: z.ZodNullable<z.ZodString>;
7732
- usage: z.ZodNullable<z.ZodObject<{
7733
- inputTokens: z.ZodInt;
7734
- outputTokens: z.ZodInt;
7735
- cachedInputTokens: z.ZodInt;
7736
- }, z.core.$strict>>;
7737
- costUsd: z.ZodNullable<z.ZodNumber>;
7738
- billing: z.ZodNullable<z.ZodEnum<{
7739
- unknown: "unknown";
7740
- subscription: "subscription";
7741
- api: "api";
7742
- }>>;
7743
- startedBy: z.ZodNullable<z.ZodObject<{
7744
- kind: z.ZodEnum<{
7745
- web: "web";
7746
- agent: "agent";
7747
- other: "other";
7748
- this_computer: "this_computer";
7749
- phone: "phone";
7750
- }>;
7751
- label: z.ZodString;
7752
- }, z.core.$strict>>;
7753
- }, z.core.$strict>;
7754
- type CodingRunRecord = z.output<typeof CodingRunRecord>;
7755
- declare const CodingSessionAgent: z.ZodObject<{
7756
- agentId: z.ZodString;
7757
- versionId: z.ZodNullable<z.ZodString>;
7758
- versionNumber: z.ZodNullable<z.ZodInt>;
7759
- name: z.ZodString;
7760
- definitionHash: z.ZodString;
7761
- loaded: z.ZodArray<z.ZodObject<{
7762
- part: z.ZodEnum<{
7763
- tools: "tools";
7764
- instructions: "instructions";
7765
- skills: "skills";
7766
- }>;
7767
- loaded: z.ZodInt;
7768
- total: z.ZodInt;
7769
- }, z.core.$strict>>;
7770
- unavailable: z.ZodArray<z.ZodObject<{
7771
- kind: z.ZodString;
7772
- name: z.ZodString;
7773
- reason: z.ZodString;
7774
- }, z.core.$strict>>;
7775
- skills: z.ZodArray<z.ZodString>;
7776
- tools: z.ZodArray<z.ZodString>;
7777
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7778
- blockDue: z.ZodBoolean;
7779
- deliveredAt: z.ZodNullable<z.ZodString>;
7780
- replaces: z.ZodNullable<z.ZodString>;
7781
- }, z.core.$strict>;
7782
- type CodingSessionAgent = z.output<typeof CodingSessionAgent>;
7783
- declare const CodingSessionRecord: z.ZodObject<{
7784
- id: z.ZodString;
7785
- provider: z.ZodEnum<{
7786
- claude: "claude";
7787
- codex: "codex";
7788
- }>;
7789
- providerSessionId: z.ZodNullable<z.ZodString>;
7790
- cwd: z.ZodString;
7791
- title: z.ZodString;
7792
- model: z.ZodNullable<z.ZodString>;
7793
- effort: z.ZodNullable<z.ZodString>;
7794
- origin: z.ZodEnum<{
7795
- started: "started";
7796
- takeover: "takeover";
7797
- }>;
7798
- createdAt: z.ZodString;
7799
- updatedAt: z.ZodString;
7800
- lastRunId: z.ZodNullable<z.ZodString>;
7801
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
7802
- completed: "completed";
7803
- running: "running";
7804
- failed: "failed";
7805
- stopped: "stopped";
7806
- starting: "starting";
7807
- }>>;
7808
- queued: z.ZodArray<z.ZodString>;
7809
- agent: z.ZodNullable<z.ZodObject<{
7810
- agentId: z.ZodString;
7811
- versionId: z.ZodNullable<z.ZodString>;
7812
- versionNumber: z.ZodNullable<z.ZodInt>;
7813
- name: z.ZodString;
7814
- definitionHash: z.ZodString;
7815
- loaded: z.ZodArray<z.ZodObject<{
7816
- part: z.ZodEnum<{
7817
- tools: "tools";
7818
- instructions: "instructions";
7819
- skills: "skills";
7820
- }>;
7821
- loaded: z.ZodInt;
7822
- total: z.ZodInt;
7823
- }, z.core.$strict>>;
7824
- unavailable: z.ZodArray<z.ZodObject<{
7825
- kind: z.ZodString;
7826
- name: z.ZodString;
7827
- reason: z.ZodString;
7828
- }, z.core.$strict>>;
7829
- skills: z.ZodArray<z.ZodString>;
7830
- tools: z.ZodArray<z.ZodString>;
7831
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7832
- blockDue: z.ZodBoolean;
7833
- deliveredAt: z.ZodNullable<z.ZodString>;
7834
- replaces: z.ZodNullable<z.ZodString>;
7835
- }, z.core.$strict>>;
7836
- agentRemovedDue: z.ZodBoolean;
7837
- }, z.core.$strict>;
7838
- type CodingSessionRecord = z.output<typeof CodingSessionRecord>;
7839
- declare const CodingActiveElsewhere: z.ZodObject<{
7840
- reason: z.ZodEnum<{
7841
- open: "open";
7842
- process: "process";
7843
- "recent-write": "recent-write";
7844
- "open-tool-call": "open-tool-call";
7845
- }>;
7846
- message: z.ZodString;
7847
- pid: z.ZodNullable<z.ZodInt>;
7848
- }, z.core.$strict>;
7849
- type CodingActiveElsewhere = z.output<typeof CodingActiveElsewhere>;
7850
- declare const CodingDiscoveredChat: z.ZodObject<{
7851
- provider: z.ZodEnum<{
7852
- claude: "claude";
7853
- codex: "codex";
7854
- }>;
7855
- providerSessionId: z.ZodString;
7856
- cwd: z.ZodNullable<z.ZodString>;
7857
- title: z.ZodString;
7858
- titleSource: z.ZodOptional<z.ZodEnum<{
7859
- unknown: "unknown";
7860
- app: "app";
7861
- "app-remembered": "app-remembered";
7862
- "custom-title": "custom-title";
7863
- "ai-title": "ai-title";
7864
- "agent-name": "agent-name";
7865
- summary: "summary";
7866
- "first-prompt": "first-prompt";
7867
- "last-prompt": "last-prompt";
7868
- }>>;
7869
- titlePending: z.ZodOptional<z.ZodBoolean>;
7870
- archived: z.ZodOptional<z.ZodBoolean>;
7871
- scheduled: z.ZodOptional<z.ZodBoolean>;
7872
- unlisted: z.ZodOptional<z.ZodBoolean>;
7873
- unavailable: z.ZodNullable<z.ZodString>;
7874
- updatedAt: z.ZodString;
7875
- source: z.ZodNullable<z.ZodString>;
7876
- activeElsewhere: z.ZodNullable<z.ZodObject<{
7877
- reason: z.ZodEnum<{
7878
- open: "open";
7879
- process: "process";
7880
- "recent-write": "recent-write";
7881
- "open-tool-call": "open-tool-call";
7882
- }>;
7883
- message: z.ZodString;
7884
- pid: z.ZodNullable<z.ZodInt>;
7885
- }, z.core.$strict>>;
7886
- }, z.core.$strict>;
7887
- type CodingDiscoveredChat = z.output<typeof CodingDiscoveredChat>;
7888
- declare const CodingTranscriptItem: z.ZodDiscriminatedUnion<[z.ZodObject<{
7889
- kind: z.ZodLiteral<"user">;
7890
- id: z.ZodString;
7891
- text: z.ZodString;
7892
- at: z.ZodNullable<z.ZodString>;
7893
- }, z.core.$strict>, z.ZodObject<{
7894
- kind: z.ZodLiteral<"text">;
7895
- id: z.ZodString;
7896
- text: z.ZodString;
7897
- }, z.core.$strict>, z.ZodObject<{
7898
- kind: z.ZodLiteral<"text-delta">;
7899
- id: z.ZodString;
7900
- text: z.ZodString;
7901
- }, z.core.$strict>, z.ZodObject<{
7902
- kind: z.ZodLiteral<"reasoning">;
7903
- id: z.ZodString;
7904
- text: z.ZodString;
7905
- }, z.core.$strict>, z.ZodObject<{
7906
- kind: z.ZodLiteral<"tool-call">;
7907
- id: z.ZodString;
7908
- name: z.ZodString;
7909
- input: z.ZodUnknown;
7910
- }, z.core.$strict>, z.ZodObject<{
7911
- kind: z.ZodLiteral<"tool-result">;
7912
- id: z.ZodString;
7913
- output: z.ZodString;
7914
- isError: z.ZodBoolean;
7915
- fullBytes: z.ZodOptional<z.ZodInt>;
7916
- }, z.core.$strict>, z.ZodObject<{
7917
- kind: z.ZodLiteral<"usage">;
7918
- usage: z.ZodObject<{
7919
- inputTokens: z.ZodInt;
7920
- outputTokens: z.ZodInt;
7921
- cachedInputTokens: z.ZodInt;
7922
- }, z.core.$strict>;
7923
- costUsd: z.ZodNullable<z.ZodNumber>;
7924
- }, z.core.$strict>, z.ZodObject<{
7925
- kind: z.ZodLiteral<"notice">;
7926
- id: z.ZodString;
7927
- level: z.ZodEnum<{
7928
- warning: "warning";
7929
- info: "info";
7930
- }>;
7931
- text: z.ZodString;
7932
- }, z.core.$strict>, z.ZodObject<{
7933
- kind: z.ZodLiteral<"error">;
7934
- id: z.ZodString;
7935
- text: z.ZodString;
7936
8039
  }, z.core.$strict>], "kind">;
7937
- type CodingTranscriptItem = z.output<typeof CodingTranscriptItem>;
7938
- declare const CodingHistoryRecord: z.ZodObject<{
7939
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
8040
+ type CodingChangedEvent = z.output<typeof CodingChangedEvent>;
8041
+ /** Repeated every heartbeat: a watcher that hears nothing for 2.5× the beat says "Not live". */
8042
+ declare const CodingWatchStateEvent: z.ZodObject<{
8043
+ live: z.ZodBoolean;
8044
+ reason: z.ZodNullable<z.ZodString>;
8045
+ beat_ms: z.ZodInt;
8046
+ }, z.core.$strict>;
8047
+ type CodingWatchStateEvent = z.output<typeof CodingWatchStateEvent>;
8048
+ declare const CodingItemEvent: z.ZodObject<{
8049
+ session_id: z.ZodString;
8050
+ run_id: z.ZodString;
8051
+ seq: z.ZodInt;
8052
+ item: z.ZodDiscriminatedUnion<[z.ZodObject<{
7940
8053
  kind: z.ZodLiteral<"user">;
7941
8054
  id: z.ZodString;
7942
8055
  text: z.ZodString;
@@ -7984,207 +8097,231 @@ declare const CodingHistoryRecord: z.ZodObject<{
7984
8097
  kind: z.ZodLiteral<"error">;
7985
8098
  id: z.ZodString;
7986
8099
  text: z.ZodString;
7987
- }, z.core.$strict>], "kind">>;
7988
- truncated: z.ZodBoolean;
7989
- unavailable: z.ZodNullable<z.ZodString>;
8100
+ }, z.core.$strict>], "kind">;
8101
+ }, z.core.$strict>;
8102
+ type CodingItemEvent = z.output<typeof CodingItemEvent>;
8103
+ /** Items between `since_seq` and `seq` are no longer held: read history again. */
8104
+ declare const CodingGapEvent: z.ZodObject<{
8105
+ session_id: z.ZodString;
8106
+ since_seq: z.ZodInt;
7990
8107
  seq: z.ZodInt;
7991
8108
  }, z.core.$strict>;
7992
- type CodingHistoryRecord = z.output<typeof CodingHistoryRecord>;
7993
- declare const CodingProviderStatus: z.ZodObject<{
8109
+ type CodingGapEvent = z.output<typeof CodingGapEvent>;
8110
+ declare const CodingStartParams: z.ZodObject<{
7994
8111
  provider: z.ZodEnum<{
7995
8112
  claude: "claude";
7996
8113
  codex: "codex";
7997
8114
  }>;
7998
- label: z.ZodString;
7999
- installed: z.ZodBoolean;
8000
- version: z.ZodNullable<z.ZodString>;
8001
- loggedIn: z.ZodBoolean;
8002
- billing: z.ZodEnum<{
8003
- unknown: "unknown";
8004
- subscription: "subscription";
8005
- api: "api";
8006
- }>;
8007
- plan: z.ZodNullable<z.ZodString>;
8008
- account: z.ZodNullable<z.ZodString>;
8009
- problem: z.ZodNullable<z.ZodString>;
8010
- fix: z.ZodNullable<z.ZodString>;
8011
- ready: z.ZodBoolean;
8012
- lastProblem: z.ZodNullable<z.ZodObject<{
8013
- kind: z.ZodEnum<{
8014
- "usage-limit": "usage-limit";
8015
- "signed-out": "signed-out";
8016
- }>;
8017
- message: z.ZodString;
8018
- until: z.ZodNullable<z.ZodString>;
8019
- at: z.ZodString;
8020
- }, z.core.$strict>>;
8021
- quota: z.ZodArray<z.ZodObject<{
8022
- label: z.ZodString;
8023
- usedPercent: z.ZodNullable<z.ZodNumber>;
8024
- resetsAt: z.ZodNullable<z.ZodString>;
8025
- valueLabel: z.ZodNullable<z.ZodString>;
8026
- }, z.core.$strict>>;
8027
- models: z.ZodArray<z.ZodObject<{
8028
- id: z.ZodString;
8029
- label: z.ZodString;
8030
- }, z.core.$strict>>;
8031
- efforts: z.ZodArray<z.ZodString>;
8032
- defaultModel: z.ZodNullable<z.ZodObject<{
8033
- id: z.ZodString;
8034
- source: z.ZodEnum<{
8035
- settings: "settings";
8036
- driver: "driver";
8037
- }>;
8038
- }, z.core.$strict>>;
8039
- defaultEffort: z.ZodNullable<z.ZodString>;
8040
- binary: z.ZodNullable<z.ZodObject<{
8041
- path: z.ZodString;
8042
- version: z.ZodNullable<z.ZodString>;
8043
- source: z.ZodEnum<{
8044
- path: "path";
8045
- "desktop-app": "desktop-app";
8046
- "npm-global": "npm-global";
8047
- configured: "configured";
8048
- }>;
8049
- sourceLabel: z.ZodString;
8050
- newer: z.ZodNullable<z.ZodObject<{
8051
- path: z.ZodString;
8052
- version: z.ZodString;
8053
- sourceLabel: z.ZodString;
8054
- }, z.core.$strict>>;
8115
+ cwd: z.ZodString;
8116
+ prompt: z.ZodString;
8117
+ model: z.ZodOptional<z.ZodString>;
8118
+ effort: z.ZodOptional<z.ZodString>;
8119
+ agent: z.ZodOptional<z.ZodObject<{
8120
+ agent_id: z.ZodString;
8121
+ version_id: z.ZodOptional<z.ZodString>;
8122
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8055
8123
  }, z.core.$strict>>;
8124
+ account_profile_id: z.ZodOptional<z.ZodString>;
8125
+ client_request_id: z.ZodString;
8056
8126
  }, z.core.$strict>;
8057
- type CodingProviderStatus = z.output<typeof CodingProviderStatus>;
8058
- /** The person's rename, pin, hide and "last looked at" for one chat, by the engine's chat key. */
8059
- declare const CodingChatPreference: z.ZodObject<{
8060
- title: z.ZodNullable<z.ZodString>;
8061
- pinned: z.ZodBoolean;
8062
- hidden: z.ZodBoolean;
8063
- lastSeenAt: z.ZodNullable<z.ZodString>;
8064
- updatedAt: z.ZodNullable<z.ZodString>;
8065
- }, z.core.$strict>;
8066
- type CodingChatPreference = z.output<typeof CodingChatPreference>;
8067
- declare const CodingTitleStatus: z.ZodObject<{
8068
- owner: z.ZodBoolean;
8069
- pending: z.ZodBoolean;
8070
- problem: z.ZodNullable<z.ZodString>;
8071
- renames: z.ZodNullable<z.ZodString>;
8072
- }, z.core.$strict>;
8073
- type CodingTitleStatus = z.output<typeof CodingTitleStatus>;
8127
+ type CodingStartParams = z.output<typeof CodingStartParams>;
8074
8128
  /**
8075
- * One row of THE recent coding chats (the Mac's Code › Recent and the phone's Sessions list draw
8076
- * exactly these): the chats driven here and the coding apps' own chats, newest first, each with
8077
- * the Mac's dot. `state`: running (amber "Running"), needs_attention (amber: failed or
8078
- * interrupted since the person last looked), new_output (blue), elsewhere (amber "Running in
8079
- * <app>"), idle (no dot).
8129
+ * Continue a chat from another app here. When it is live elsewhere the core refuses with
8130
+ * RESOURCE_BUSY carrying the sentence, unless `confirm_elsewhere` (the person saw the warning).
8080
8131
  */
8081
- declare const CodingRecentRow: z.ZodObject<{
8082
- target: z.ZodString;
8083
- title: z.ZodString;
8132
+ declare const CodingTakeoverParams: z.ZodObject<{
8084
8133
  provider: z.ZodEnum<{
8085
8134
  claude: "claude";
8086
8135
  codex: "codex";
8087
8136
  }>;
8088
- sessionId: z.ZodNullable<z.ZodString>;
8089
- providerSessionId: z.ZodNullable<z.ZodString>;
8090
- cwd: z.ZodNullable<z.ZodString>;
8091
- updatedAt: z.ZodString;
8137
+ provider_session_id: z.ZodString;
8138
+ cwd: z.ZodString;
8139
+ title: z.ZodOptional<z.ZodString>;
8140
+ agent: z.ZodOptional<z.ZodObject<{
8141
+ agent_id: z.ZodString;
8142
+ version_id: z.ZodOptional<z.ZodString>;
8143
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8144
+ }, z.core.$strict>>;
8145
+ confirm_elsewhere: z.ZodOptional<z.ZodBoolean>;
8146
+ }, z.core.$strict>;
8147
+ type CodingTakeoverParams = z.output<typeof CodingTakeoverParams>;
8148
+ declare const CodingReconcileResult: z.ZodObject<{
8092
8149
  state: z.ZodEnum<{
8093
- running: "running";
8094
- idle: "idle";
8095
- needs_attention: "needs_attention";
8096
- new_output: "new_output";
8097
- elsewhere: "elsewhere";
8150
+ blocked: "blocked";
8151
+ done: "done";
8152
+ nothing_to_do: "nothing_to_do";
8098
8153
  }>;
8099
- stateLabel: z.ZodNullable<z.ZodString>;
8100
- pinned: z.ZodBoolean;
8101
- startedBy: z.ZodNullable<z.ZodObject<{
8102
- kind: z.ZodEnum<{
8103
- web: "web";
8104
- agent: "agent";
8105
- other: "other";
8106
- this_computer: "this_computer";
8107
- phone: "phone";
8154
+ summary: z.ZodString;
8155
+ }, z.core.$strict>;
8156
+ type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8157
+ /** Exactly-once sends (the core keeps these ids 10 minutes). */
8158
+ declare const CodingClientRequestId: z.ZodString;
8159
+ type CodingClientRequestId = z.output<typeof CodingClientRequestId>;
8160
+ declare const CodingSessionAgentPart: z.ZodObject<{
8161
+ part: z.ZodEnum<{
8162
+ tools: "tools";
8163
+ instructions: "instructions";
8164
+ skills: "skills";
8165
+ }>;
8166
+ loaded: z.ZodInt;
8167
+ total: z.ZodInt;
8168
+ }, z.core.$strict>;
8169
+ type CodingSessionAgentPart = z.output<typeof CodingSessionAgentPart>;
8170
+ declare const CodingQuotaWindow: z.ZodObject<{
8171
+ label: z.ZodString;
8172
+ usedPercent: z.ZodNullable<z.ZodNumber>;
8173
+ resetsAt: z.ZodNullable<z.ZodString>;
8174
+ valueLabel: z.ZodNullable<z.ZodString>;
8175
+ }, z.core.$strict>;
8176
+ type CodingQuotaWindow = z.output<typeof CodingQuotaWindow>;
8177
+ declare const CodingProviderProblem: z.ZodObject<{
8178
+ kind: z.ZodEnum<{
8179
+ "usage-limit": "usage-limit";
8180
+ "signed-out": "signed-out";
8181
+ }>;
8182
+ message: z.ZodString;
8183
+ until: z.ZodNullable<z.ZodString>;
8184
+ at: z.ZodString;
8185
+ }, z.core.$strict>;
8186
+ type CodingProviderProblem = z.output<typeof CodingProviderProblem>;
8187
+ declare const CodingProviderBinary: z.ZodObject<{
8188
+ path: z.ZodString;
8189
+ version: z.ZodNullable<z.ZodString>;
8190
+ source: z.ZodEnum<{
8191
+ path: "path";
8192
+ "desktop-app": "desktop-app";
8193
+ "npm-global": "npm-global";
8194
+ configured: "configured";
8195
+ }>;
8196
+ sourceLabel: z.ZodString;
8197
+ newer: z.ZodNullable<z.ZodObject<{
8198
+ path: z.ZodString;
8199
+ version: z.ZodString;
8200
+ sourceLabel: z.ZodString;
8201
+ }, z.core.$strict>>;
8202
+ }, z.core.$strict>;
8203
+ type CodingProviderBinary = z.output<typeof CodingProviderBinary>;
8204
+ declare const CodingProvidersParams: z.ZodObject<{}, z.core.$strict>;
8205
+ type CodingProvidersParams = z.output<typeof CodingProvidersParams>;
8206
+ declare const CodingProvidersResult: z.ZodObject<{
8207
+ providers: z.ZodArray<z.ZodObject<{
8208
+ provider: z.ZodEnum<{
8209
+ claude: "claude";
8210
+ codex: "codex";
8108
8211
  }>;
8109
8212
  label: z.ZodString;
8213
+ installed: z.ZodBoolean;
8214
+ version: z.ZodNullable<z.ZodString>;
8215
+ loggedIn: z.ZodBoolean;
8216
+ billing: z.ZodEnum<{
8217
+ unknown: "unknown";
8218
+ subscription: "subscription";
8219
+ api: "api";
8220
+ }>;
8221
+ plan: z.ZodNullable<z.ZodString>;
8222
+ account: z.ZodNullable<z.ZodString>;
8223
+ problem: z.ZodNullable<z.ZodString>;
8224
+ fix: z.ZodNullable<z.ZodString>;
8225
+ ready: z.ZodBoolean;
8226
+ lastProblem: z.ZodNullable<z.ZodObject<{
8227
+ kind: z.ZodEnum<{
8228
+ "usage-limit": "usage-limit";
8229
+ "signed-out": "signed-out";
8230
+ }>;
8231
+ message: z.ZodString;
8232
+ until: z.ZodNullable<z.ZodString>;
8233
+ at: z.ZodString;
8234
+ }, z.core.$strict>>;
8235
+ quota: z.ZodArray<z.ZodObject<{
8236
+ label: z.ZodString;
8237
+ usedPercent: z.ZodNullable<z.ZodNumber>;
8238
+ resetsAt: z.ZodNullable<z.ZodString>;
8239
+ valueLabel: z.ZodNullable<z.ZodString>;
8240
+ }, z.core.$strict>>;
8241
+ models: z.ZodArray<z.ZodObject<{
8242
+ id: z.ZodString;
8243
+ label: z.ZodString;
8244
+ }, z.core.$strict>>;
8245
+ efforts: z.ZodArray<z.ZodString>;
8246
+ defaultModel: z.ZodNullable<z.ZodObject<{
8247
+ id: z.ZodString;
8248
+ source: z.ZodEnum<{
8249
+ settings: "settings";
8250
+ driver: "driver";
8251
+ }>;
8252
+ }, z.core.$strict>>;
8253
+ defaultEffort: z.ZodNullable<z.ZodString>;
8254
+ binary: z.ZodNullable<z.ZodObject<{
8255
+ path: z.ZodString;
8256
+ version: z.ZodNullable<z.ZodString>;
8257
+ source: z.ZodEnum<{
8258
+ path: "path";
8259
+ "desktop-app": "desktop-app";
8260
+ "npm-global": "npm-global";
8261
+ configured: "configured";
8262
+ }>;
8263
+ sourceLabel: z.ZodString;
8264
+ newer: z.ZodNullable<z.ZodObject<{
8265
+ path: z.ZodString;
8266
+ version: z.ZodString;
8267
+ sourceLabel: z.ZodString;
8268
+ }, z.core.$strict>>;
8269
+ }, z.core.$strict>>;
8110
8270
  }, z.core.$strict>>;
8111
8271
  }, z.core.$strict>;
8112
- type CodingRecentRow = z.output<typeof CodingRecentRow>;
8113
- declare const CodingFolderCheck: z.ZodObject<{
8114
- path: z.ZodString;
8115
- exists: z.ZodBoolean;
8116
- isDirectory: z.ZodBoolean;
8117
- }, z.core.$strict>;
8118
- type CodingFolderCheck = z.output<typeof CodingFolderCheck>;
8119
- declare const CodingRecentFolder: z.ZodObject<{
8120
- path: z.ZodString;
8121
- lastUsedAt: z.ZodString;
8122
- exists: z.ZodBoolean;
8123
- }, z.core.$strict>;
8124
- type CodingRecentFolder = z.output<typeof CodingRecentFolder>;
8125
- declare const CodingAgentSelectionParams: z.ZodObject<{
8126
- agent_id: z.ZodString;
8127
- version_id: z.ZodOptional<z.ZodString>;
8128
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8272
+ type CodingProvidersResult = z.output<typeof CodingProvidersResult>;
8273
+ declare const CodingSessionsListParams: z.ZodObject<{}, z.core.$strict>;
8274
+ type CodingSessionsListParams = z.output<typeof CodingSessionsListParams>;
8275
+ declare const CodingDiscoverParams: z.ZodObject<{
8276
+ limit: z.ZodOptional<z.ZodInt>;
8129
8277
  }, z.core.$strict>;
8130
- type CodingAgentSelectionParams = z.output<typeof CodingAgentSelectionParams>;
8131
- declare const CodingSendResult: z.ZodObject<{
8132
- session: z.ZodObject<{
8133
- id: z.ZodString;
8278
+ type CodingDiscoverParams = z.output<typeof CodingDiscoverParams>;
8279
+ declare const CodingDiscoverResult: z.ZodObject<{
8280
+ chats: z.ZodArray<z.ZodObject<{
8134
8281
  provider: z.ZodEnum<{
8135
8282
  claude: "claude";
8136
8283
  codex: "codex";
8137
8284
  }>;
8138
- providerSessionId: z.ZodNullable<z.ZodString>;
8139
- cwd: z.ZodString;
8285
+ providerSessionId: z.ZodString;
8286
+ cwd: z.ZodNullable<z.ZodString>;
8140
8287
  title: z.ZodString;
8141
- model: z.ZodNullable<z.ZodString>;
8142
- effort: z.ZodNullable<z.ZodString>;
8143
- origin: z.ZodEnum<{
8144
- started: "started";
8145
- takeover: "takeover";
8146
- }>;
8147
- createdAt: z.ZodString;
8148
- updatedAt: z.ZodString;
8149
- lastRunId: z.ZodNullable<z.ZodString>;
8150
- lastRunStatus: z.ZodNullable<z.ZodEnum<{
8151
- completed: "completed";
8152
- running: "running";
8153
- failed: "failed";
8154
- stopped: "stopped";
8155
- starting: "starting";
8288
+ titleSource: z.ZodOptional<z.ZodEnum<{
8289
+ unknown: "unknown";
8290
+ app: "app";
8291
+ "app-remembered": "app-remembered";
8292
+ "custom-title": "custom-title";
8293
+ "ai-title": "ai-title";
8294
+ "agent-name": "agent-name";
8295
+ summary: "summary";
8296
+ "first-prompt": "first-prompt";
8297
+ "last-prompt": "last-prompt";
8156
8298
  }>>;
8157
- queued: z.ZodArray<z.ZodString>;
8158
- agent: z.ZodNullable<z.ZodObject<{
8159
- agentId: z.ZodString;
8160
- versionId: z.ZodNullable<z.ZodString>;
8161
- versionNumber: z.ZodNullable<z.ZodInt>;
8162
- name: z.ZodString;
8163
- definitionHash: z.ZodString;
8164
- loaded: z.ZodArray<z.ZodObject<{
8165
- part: z.ZodEnum<{
8166
- tools: "tools";
8167
- instructions: "instructions";
8168
- skills: "skills";
8169
- }>;
8170
- loaded: z.ZodInt;
8171
- total: z.ZodInt;
8172
- }, z.core.$strict>>;
8173
- unavailable: z.ZodArray<z.ZodObject<{
8174
- kind: z.ZodString;
8175
- name: z.ZodString;
8176
- reason: z.ZodString;
8177
- }, z.core.$strict>>;
8178
- skills: z.ZodArray<z.ZodString>;
8179
- tools: z.ZodArray<z.ZodString>;
8180
- variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8181
- blockDue: z.ZodBoolean;
8182
- deliveredAt: z.ZodNullable<z.ZodString>;
8183
- replaces: z.ZodNullable<z.ZodString>;
8299
+ titlePending: z.ZodOptional<z.ZodBoolean>;
8300
+ archived: z.ZodOptional<z.ZodBoolean>;
8301
+ scheduled: z.ZodOptional<z.ZodBoolean>;
8302
+ unlisted: z.ZodOptional<z.ZodBoolean>;
8303
+ unavailable: z.ZodNullable<z.ZodString>;
8304
+ updatedAt: z.ZodString;
8305
+ source: z.ZodNullable<z.ZodString>;
8306
+ activeElsewhere: z.ZodNullable<z.ZodObject<{
8307
+ reason: z.ZodEnum<{
8308
+ open: "open";
8309
+ process: "process";
8310
+ "recent-write": "recent-write";
8311
+ "open-tool-call": "open-tool-call";
8312
+ }>;
8313
+ message: z.ZodString;
8314
+ pid: z.ZodNullable<z.ZodInt>;
8184
8315
  }, z.core.$strict>>;
8185
- agentRemovedDue: z.ZodBoolean;
8186
- }, z.core.$strict>;
8187
- run: z.ZodNullable<z.ZodObject<{
8316
+ }, z.core.$strict>>;
8317
+ }, z.core.$strict>;
8318
+ type CodingDiscoverResult = z.output<typeof CodingDiscoverResult>;
8319
+ declare const CodingRunsListParams: z.ZodObject<{
8320
+ session_id: z.ZodString;
8321
+ }, z.core.$strict>;
8322
+ type CodingRunsListParams = z.output<typeof CodingRunsListParams>;
8323
+ declare const CodingRunsListResult: z.ZodObject<{
8324
+ runs: z.ZodArray<z.ZodObject<{
8188
8325
  runId: z.ZodString;
8189
8326
  sessionId: z.ZodString;
8190
8327
  provider: z.ZodEnum<{
@@ -8226,11 +8363,79 @@ declare const CodingSendResult: z.ZodObject<{
8226
8363
  label: z.ZodString;
8227
8364
  }, z.core.$strict>>;
8228
8365
  }, z.core.$strict>>;
8229
- queued: z.ZodBoolean;
8230
8366
  }, z.core.$strict>;
8231
- type CodingSendResult = z.output<typeof CodingSendResult>;
8232
- declare const CodingSessionsListResult: z.ZodObject<{
8233
- sessions: z.ZodArray<z.ZodObject<{
8367
+ type CodingRunsListResult = z.output<typeof CodingRunsListResult>;
8368
+ /** A first page defaults to the device's config (256 KB); "Show earlier" asks for more. */
8369
+ declare const CodingHistoryParams: z.ZodObject<{
8370
+ session_id: z.ZodString;
8371
+ max_bytes: z.ZodOptional<z.ZodInt>;
8372
+ }, z.core.$strict>;
8373
+ type CodingHistoryParams = z.output<typeof CodingHistoryParams>;
8374
+ declare const CodingTranscriptReadParams: z.ZodObject<{
8375
+ provider: z.ZodEnum<{
8376
+ claude: "claude";
8377
+ codex: "codex";
8378
+ }>;
8379
+ provider_session_id: z.ZodString;
8380
+ max_bytes: z.ZodOptional<z.ZodInt>;
8381
+ }, z.core.$strict>;
8382
+ type CodingTranscriptReadParams = z.output<typeof CodingTranscriptReadParams>;
8383
+ /** The whole of one tool output the transcript carried only the start of. */
8384
+ declare const CodingItemFullParams: z.ZodObject<{
8385
+ provider: z.ZodEnum<{
8386
+ claude: "claude";
8387
+ codex: "codex";
8388
+ }>;
8389
+ provider_session_id: z.ZodString;
8390
+ item_id: z.ZodString;
8391
+ }, z.core.$strict>;
8392
+ type CodingItemFullParams = z.output<typeof CodingItemFullParams>;
8393
+ declare const CodingItemFullResult: z.ZodObject<{
8394
+ output: z.ZodString;
8395
+ bytes: z.ZodInt;
8396
+ }, z.core.$strict>;
8397
+ type CodingItemFullResult = z.output<typeof CodingItemFullResult>;
8398
+ declare const CodingActivityParams: z.ZodObject<{
8399
+ provider: z.ZodEnum<{
8400
+ claude: "claude";
8401
+ codex: "codex";
8402
+ }>;
8403
+ provider_session_id: z.ZodString;
8404
+ }, z.core.$strict>;
8405
+ type CodingActivityParams = z.output<typeof CodingActivityParams>;
8406
+ declare const CodingActivityResult: z.ZodObject<{
8407
+ active: z.ZodNullable<z.ZodObject<{
8408
+ reason: z.ZodEnum<{
8409
+ open: "open";
8410
+ process: "process";
8411
+ "recent-write": "recent-write";
8412
+ "open-tool-call": "open-tool-call";
8413
+ }>;
8414
+ message: z.ZodString;
8415
+ pid: z.ZodNullable<z.ZodInt>;
8416
+ }, z.core.$strict>>;
8417
+ }, z.core.$strict>;
8418
+ type CodingActivityResult = z.output<typeof CodingActivityResult>;
8419
+ declare const CodingFoldersRecentParams: z.ZodObject<{}, z.core.$strict>;
8420
+ type CodingFoldersRecentParams = z.output<typeof CodingFoldersRecentParams>;
8421
+ declare const CodingFoldersRecentResult: z.ZodObject<{
8422
+ folders: z.ZodArray<z.ZodObject<{
8423
+ path: z.ZodString;
8424
+ lastUsedAt: z.ZodString;
8425
+ exists: z.ZodBoolean;
8426
+ }, z.core.$strict>>;
8427
+ }, z.core.$strict>;
8428
+ type CodingFoldersRecentResult = z.output<typeof CodingFoldersRecentResult>;
8429
+ declare const CodingFoldersCheckParams: z.ZodObject<{
8430
+ path: z.ZodString;
8431
+ }, z.core.$strict>;
8432
+ type CodingFoldersCheckParams = z.output<typeof CodingFoldersCheckParams>;
8433
+ declare const CodingFoldersCreateParams: z.ZodObject<{
8434
+ path: z.ZodString;
8435
+ }, z.core.$strict>;
8436
+ type CodingFoldersCreateParams = z.output<typeof CodingFoldersCreateParams>;
8437
+ declare const CodingTakeoverResult: z.ZodObject<{
8438
+ session: z.ZodObject<{
8234
8439
  id: z.ZodString;
8235
8440
  provider: z.ZodEnum<{
8236
8441
  claude: "claude";
@@ -8284,8 +8489,21 @@ declare const CodingSessionsListResult: z.ZodObject<{
8284
8489
  replaces: z.ZodNullable<z.ZodString>;
8285
8490
  }, z.core.$strict>>;
8286
8491
  agentRemovedDue: z.ZodBoolean;
8287
- }, z.core.$strict>>;
8288
- runs: z.ZodRecord<z.ZodString, z.ZodObject<{
8492
+ }, z.core.$strict>;
8493
+ }, z.core.$strict>;
8494
+ type CodingTakeoverResult = z.output<typeof CodingTakeoverResult>;
8495
+ declare const CodingSendParams: z.ZodObject<{
8496
+ session_id: z.ZodString;
8497
+ prompt: z.ZodString;
8498
+ client_request_id: z.ZodString;
8499
+ }, z.core.$strict>;
8500
+ type CodingSendParams = z.output<typeof CodingSendParams>;
8501
+ declare const CodingStopParams: z.ZodObject<{
8502
+ run_id: z.ZodString;
8503
+ }, z.core.$strict>;
8504
+ type CodingStopParams = z.output<typeof CodingStopParams>;
8505
+ declare const CodingStopResult: z.ZodObject<{
8506
+ run: z.ZodNullable<z.ZodObject<{
8289
8507
  runId: z.ZodString;
8290
8508
  sessionId: z.ZodString;
8291
8509
  provider: z.ZodEnum<{
@@ -8327,78 +8545,34 @@ declare const CodingSessionsListResult: z.ZodObject<{
8327
8545
  label: z.ZodString;
8328
8546
  }, z.core.$strict>>;
8329
8547
  }, z.core.$strict>>;
8330
- recent: z.ZodArray<z.ZodObject<{
8331
- target: z.ZodString;
8332
- title: z.ZodString;
8333
- provider: z.ZodEnum<{
8334
- claude: "claude";
8335
- codex: "codex";
8336
- }>;
8337
- sessionId: z.ZodNullable<z.ZodString>;
8338
- providerSessionId: z.ZodNullable<z.ZodString>;
8339
- cwd: z.ZodNullable<z.ZodString>;
8340
- updatedAt: z.ZodString;
8341
- state: z.ZodEnum<{
8342
- running: "running";
8343
- idle: "idle";
8344
- needs_attention: "needs_attention";
8345
- new_output: "new_output";
8346
- elsewhere: "elsewhere";
8347
- }>;
8348
- stateLabel: z.ZodNullable<z.ZodString>;
8349
- pinned: z.ZodBoolean;
8350
- startedBy: z.ZodNullable<z.ZodObject<{
8351
- kind: z.ZodEnum<{
8352
- web: "web";
8353
- agent: "agent";
8354
- other: "other";
8355
- this_computer: "this_computer";
8356
- phone: "phone";
8357
- }>;
8358
- label: z.ZodString;
8359
- }, z.core.$strict>>;
8360
- }, z.core.$strict>>;
8361
- title_status: z.ZodObject<{
8362
- owner: z.ZodBoolean;
8363
- pending: z.ZodBoolean;
8364
- problem: z.ZodNullable<z.ZodString>;
8365
- renames: z.ZodNullable<z.ZodString>;
8366
- }, z.core.$strict>;
8367
8548
  }, z.core.$strict>;
8368
- type CodingSessionsListResult = z.output<typeof CodingSessionsListResult>;
8369
- declare const CodingSearchResult: z.ZodObject<{
8370
- query: z.ZodString;
8371
- hits: z.ZodArray<z.ZodObject<{
8372
- provider: z.ZodEnum<{
8373
- claude: "claude";
8374
- codex: "codex";
8375
- }>;
8376
- providerSessionId: z.ZodString;
8377
- title: z.ZodString;
8378
- cwd: z.ZodNullable<z.ZodString>;
8379
- updatedAt: z.ZodString;
8380
- where: z.ZodEnum<{
8381
- content: "content";
8382
- title: "title";
8383
- }>;
8384
- snippet: z.ZodNullable<z.ZodString>;
8385
- }, z.core.$strict>>;
8386
- scanned: z.ZodInt;
8387
- total: z.ZodInt;
8388
- nextCursor: z.ZodNullable<z.ZodInt>;
8549
+ type CodingStopResult = z.output<typeof CodingStopResult>;
8550
+ /**
8551
+ * Stop a chat running in another app: the process is re-read at stop time and refused with a
8552
+ * sentence when it is gone or is now something else (a reused pid).
8553
+ */
8554
+ declare const CodingStopElsewhereParams: z.ZodObject<{
8555
+ provider: z.ZodEnum<{
8556
+ claude: "claude";
8557
+ codex: "codex";
8558
+ }>;
8559
+ provider_session_id: z.ZodString;
8560
+ pid: z.ZodInt;
8389
8561
  }, z.core.$strict>;
8390
- type CodingSearchResult = z.output<typeof CodingSearchResult>;
8391
- declare const CodingTranscriptRawResult: z.ZodObject<{
8392
- available: z.ZodBoolean;
8393
- reason: z.ZodNullable<z.ZodString>;
8394
- file_name: z.ZodNullable<z.ZodString>;
8395
- bytes: z.ZodInt;
8396
- backup_refreshed: z.ZodBoolean;
8397
- subagents: z.ZodInt;
8562
+ type CodingStopElsewhereParams = z.output<typeof CodingStopElsewhereParams>;
8563
+ declare const CodingStopElsewhereResult: z.ZodObject<{
8564
+ stopped: z.ZodBoolean;
8565
+ message: z.ZodString;
8398
8566
  }, z.core.$strict>;
8399
- type CodingTranscriptRawResult = z.output<typeof CodingTranscriptRawResult>;
8400
- declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8401
- kind: z.ZodLiteral<"session">;
8567
+ type CodingStopElsewhereResult = z.output<typeof CodingStopElsewhereResult>;
8568
+ /** The next run's model or effort; "" = the provider's own default. */
8569
+ declare const CodingOptionsSetParams: z.ZodObject<{
8570
+ session_id: z.ZodString;
8571
+ model: z.ZodOptional<z.ZodString>;
8572
+ effort: z.ZodOptional<z.ZodString>;
8573
+ }, z.core.$strict>;
8574
+ type CodingOptionsSetParams = z.output<typeof CodingOptionsSetParams>;
8575
+ declare const CodingOptionsSetResult: z.ZodObject<{
8402
8576
  session: z.ZodObject<{
8403
8577
  id: z.ZodString;
8404
8578
  provider: z.ZodEnum<{
@@ -8454,52 +8628,91 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8454
8628
  }, z.core.$strict>>;
8455
8629
  agentRemovedDue: z.ZodBoolean;
8456
8630
  }, z.core.$strict>;
8457
- }, z.core.$strict>, z.ZodObject<{
8458
- kind: z.ZodLiteral<"run">;
8459
- run: z.ZodObject<{
8460
- runId: z.ZodString;
8461
- sessionId: z.ZodString;
8631
+ }, z.core.$strict>;
8632
+ type CodingOptionsSetResult = z.output<typeof CodingOptionsSetResult>;
8633
+ /** Load a different agent from the next message on; absent `agent` removes it. */
8634
+ declare const CodingAgentSetParams: z.ZodObject<{
8635
+ session_id: z.ZodString;
8636
+ agent: z.ZodOptional<z.ZodObject<{
8637
+ agent_id: z.ZodString;
8638
+ version_id: z.ZodOptional<z.ZodString>;
8639
+ variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8640
+ }, z.core.$strict>>;
8641
+ }, z.core.$strict>;
8642
+ type CodingAgentSetParams = z.output<typeof CodingAgentSetParams>;
8643
+ declare const CodingAgentSetResult: z.ZodObject<{
8644
+ session: z.ZodObject<{
8645
+ id: z.ZodString;
8462
8646
  provider: z.ZodEnum<{
8463
8647
  claude: "claude";
8464
8648
  codex: "codex";
8465
8649
  }>;
8650
+ providerSessionId: z.ZodNullable<z.ZodString>;
8466
8651
  cwd: z.ZodString;
8467
- prompt: z.ZodString;
8652
+ title: z.ZodString;
8468
8653
  model: z.ZodNullable<z.ZodString>;
8469
- status: z.ZodEnum<{
8654
+ effort: z.ZodNullable<z.ZodString>;
8655
+ origin: z.ZodEnum<{
8656
+ started: "started";
8657
+ takeover: "takeover";
8658
+ }>;
8659
+ createdAt: z.ZodString;
8660
+ updatedAt: z.ZodString;
8661
+ lastRunId: z.ZodNullable<z.ZodString>;
8662
+ lastRunStatus: z.ZodNullable<z.ZodEnum<{
8470
8663
  completed: "completed";
8471
8664
  running: "running";
8472
8665
  failed: "failed";
8473
8666
  stopped: "stopped";
8474
8667
  starting: "starting";
8475
- }>;
8476
- startedAt: z.ZodString;
8477
- endedAt: z.ZodNullable<z.ZodString>;
8478
- error: z.ZodNullable<z.ZodString>;
8479
- usage: z.ZodNullable<z.ZodObject<{
8480
- inputTokens: z.ZodInt;
8481
- outputTokens: z.ZodInt;
8482
- cachedInputTokens: z.ZodInt;
8483
- }, z.core.$strict>>;
8484
- costUsd: z.ZodNullable<z.ZodNumber>;
8485
- billing: z.ZodNullable<z.ZodEnum<{
8486
- unknown: "unknown";
8487
- subscription: "subscription";
8488
- api: "api";
8489
8668
  }>>;
8490
- startedBy: z.ZodNullable<z.ZodObject<{
8491
- kind: z.ZodEnum<{
8492
- web: "web";
8493
- agent: "agent";
8494
- other: "other";
8495
- this_computer: "this_computer";
8496
- phone: "phone";
8497
- }>;
8498
- label: z.ZodString;
8669
+ queued: z.ZodArray<z.ZodString>;
8670
+ agent: z.ZodNullable<z.ZodObject<{
8671
+ agentId: z.ZodString;
8672
+ versionId: z.ZodNullable<z.ZodString>;
8673
+ versionNumber: z.ZodNullable<z.ZodInt>;
8674
+ name: z.ZodString;
8675
+ definitionHash: z.ZodString;
8676
+ loaded: z.ZodArray<z.ZodObject<{
8677
+ part: z.ZodEnum<{
8678
+ tools: "tools";
8679
+ instructions: "instructions";
8680
+ skills: "skills";
8681
+ }>;
8682
+ loaded: z.ZodInt;
8683
+ total: z.ZodInt;
8684
+ }, z.core.$strict>>;
8685
+ unavailable: z.ZodArray<z.ZodObject<{
8686
+ kind: z.ZodString;
8687
+ name: z.ZodString;
8688
+ reason: z.ZodString;
8689
+ }, z.core.$strict>>;
8690
+ skills: z.ZodArray<z.ZodString>;
8691
+ tools: z.ZodArray<z.ZodString>;
8692
+ variables: z.ZodRecord<z.ZodString, z.ZodUnknown>;
8693
+ blockDue: z.ZodBoolean;
8694
+ deliveredAt: z.ZodNullable<z.ZodString>;
8695
+ replaces: z.ZodNullable<z.ZodString>;
8499
8696
  }, z.core.$strict>>;
8697
+ agentRemovedDue: z.ZodBoolean;
8500
8698
  }, z.core.$strict>;
8501
- }, z.core.$strict>, z.ZodObject<{
8502
- kind: z.ZodLiteral<"preferences">;
8699
+ }, z.core.$strict>;
8700
+ type CodingAgentSetResult = z.output<typeof CodingAgentSetResult>;
8701
+ /** Whether this computer is signed in to AI Matrx, so an agent can load into a session. */
8702
+ declare const CodingAgentsAccessParams: z.ZodObject<{}, z.core.$strict>;
8703
+ type CodingAgentsAccessParams = z.output<typeof CodingAgentsAccessParams>;
8704
+ declare const CodingAgentsAccessResult: z.ZodObject<{
8705
+ signedIn: z.ZodBoolean;
8706
+ userId: z.ZodNullable<z.ZodString>;
8707
+ organizationId: z.ZodNullable<z.ZodString>;
8708
+ configured: z.ZodBoolean;
8709
+ }, z.core.$strict>;
8710
+ type CodingAgentsAccessResult = z.output<typeof CodingAgentsAccessResult>;
8711
+ declare const CodingTitlesStatusParams: z.ZodObject<{}, z.core.$strict>;
8712
+ type CodingTitlesStatusParams = z.output<typeof CodingTitlesStatusParams>;
8713
+ declare const CodingPrefsListParams: z.ZodObject<{}, z.core.$strict>;
8714
+ type CodingPrefsListParams = z.output<typeof CodingPrefsListParams>;
8715
+ declare const CodingPrefsListResult: z.ZodObject<{
8503
8716
  preferences: z.ZodRecord<z.ZodString, z.ZodObject<{
8504
8717
  title: z.ZodNullable<z.ZodString>;
8505
8718
  pinned: z.ZodBoolean;
@@ -8507,10 +8720,23 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8507
8720
  lastSeenAt: z.ZodNullable<z.ZodString>;
8508
8721
  updatedAt: z.ZodNullable<z.ZodString>;
8509
8722
  }, z.core.$strict>>;
8510
- }, z.core.$strict>, z.ZodObject<{
8511
- kind: z.ZodLiteral<"titles">;
8512
- }, z.core.$strict>, z.ZodObject<{
8513
- kind: z.ZodLiteral<"recent">;
8723
+ }, z.core.$strict>;
8724
+ type CodingPrefsListResult = z.output<typeof CodingPrefsListResult>;
8725
+ /** Rename (`title`; `clear_title` restores the chat's own), pin, hide. */
8726
+ declare const CodingPrefsSetParams: z.ZodObject<{
8727
+ key: z.ZodString;
8728
+ title: z.ZodOptional<z.ZodString>;
8729
+ clear_title: z.ZodOptional<z.ZodBoolean>;
8730
+ pinned: z.ZodOptional<z.ZodBoolean>;
8731
+ hidden: z.ZodOptional<z.ZodBoolean>;
8732
+ }, z.core.$strict>;
8733
+ type CodingPrefsSetParams = z.output<typeof CodingPrefsSetParams>;
8734
+ /** The person opened this chat (on any screen): its "New output" dot clears everywhere. */
8735
+ declare const CodingRecentSeenParams: z.ZodObject<{
8736
+ target: z.ZodString;
8737
+ }, z.core.$strict>;
8738
+ type CodingRecentSeenParams = z.output<typeof CodingRecentSeenParams>;
8739
+ declare const CodingRecentSeenResult: z.ZodObject<{
8514
8740
  recent: z.ZodArray<z.ZodObject<{
8515
8741
  target: z.ZodString;
8516
8742
  title: z.ZodString;
@@ -8542,124 +8768,73 @@ declare const CodingChangedEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
8542
8768
  label: z.ZodString;
8543
8769
  }, z.core.$strict>>;
8544
8770
  }, z.core.$strict>>;
8545
- }, z.core.$strict>], "kind">;
8546
- type CodingChangedEvent = z.output<typeof CodingChangedEvent>;
8547
- /** Repeated every heartbeat: a watcher that hears nothing for 2.5× the beat says "Not live". */
8548
- declare const CodingWatchStateEvent: z.ZodObject<{
8549
- live: z.ZodBoolean;
8550
- reason: z.ZodNullable<z.ZodString>;
8551
- beat_ms: z.ZodInt;
8552
8771
  }, z.core.$strict>;
8553
- type CodingWatchStateEvent = z.output<typeof CodingWatchStateEvent>;
8554
- declare const CodingItemEvent: z.ZodObject<{
8555
- session_id: z.ZodString;
8556
- run_id: z.ZodString;
8557
- seq: z.ZodInt;
8558
- item: z.ZodDiscriminatedUnion<[z.ZodObject<{
8559
- kind: z.ZodLiteral<"user">;
8560
- id: z.ZodString;
8561
- text: z.ZodString;
8562
- at: z.ZodNullable<z.ZodString>;
8563
- }, z.core.$strict>, z.ZodObject<{
8564
- kind: z.ZodLiteral<"text">;
8565
- id: z.ZodString;
8566
- text: z.ZodString;
8567
- }, z.core.$strict>, z.ZodObject<{
8568
- kind: z.ZodLiteral<"text-delta">;
8569
- id: z.ZodString;
8570
- text: z.ZodString;
8571
- }, z.core.$strict>, z.ZodObject<{
8572
- kind: z.ZodLiteral<"reasoning">;
8573
- id: z.ZodString;
8574
- text: z.ZodString;
8575
- }, z.core.$strict>, z.ZodObject<{
8576
- kind: z.ZodLiteral<"tool-call">;
8577
- id: z.ZodString;
8578
- name: z.ZodString;
8579
- input: z.ZodUnknown;
8580
- }, z.core.$strict>, z.ZodObject<{
8581
- kind: z.ZodLiteral<"tool-result">;
8582
- id: z.ZodString;
8583
- output: z.ZodString;
8584
- isError: z.ZodBoolean;
8585
- fullBytes: z.ZodOptional<z.ZodInt>;
8586
- }, z.core.$strict>, z.ZodObject<{
8587
- kind: z.ZodLiteral<"usage">;
8588
- usage: z.ZodObject<{
8589
- inputTokens: z.ZodInt;
8590
- outputTokens: z.ZodInt;
8591
- cachedInputTokens: z.ZodInt;
8592
- }, z.core.$strict>;
8593
- costUsd: z.ZodNullable<z.ZodNumber>;
8594
- }, z.core.$strict>, z.ZodObject<{
8595
- kind: z.ZodLiteral<"notice">;
8596
- id: z.ZodString;
8597
- level: z.ZodEnum<{
8598
- warning: "warning";
8599
- info: "info";
8600
- }>;
8601
- text: z.ZodString;
8602
- }, z.core.$strict>, z.ZodObject<{
8603
- kind: z.ZodLiteral<"error">;
8604
- id: z.ZodString;
8605
- text: z.ZodString;
8606
- }, z.core.$strict>], "kind">;
8772
+ type CodingRecentSeenResult = z.output<typeof CodingRecentSeenResult>;
8773
+ declare const CodingSearchParams: z.ZodObject<{
8774
+ query: z.ZodString;
8775
+ cursor: z.ZodOptional<z.ZodInt>;
8776
+ limit: z.ZodOptional<z.ZodInt>;
8607
8777
  }, z.core.$strict>;
8608
- type CodingItemEvent = z.output<typeof CodingItemEvent>;
8609
- /** Items between `since_seq` and `seq` are no longer held: read history again. */
8610
- declare const CodingGapEvent: z.ZodObject<{
8611
- session_id: z.ZodString;
8612
- since_seq: z.ZodInt;
8613
- seq: z.ZodInt;
8778
+ type CodingSearchParams = z.output<typeof CodingSearchParams>;
8779
+ /**
8780
+ * "Ask the desktop app to reconcile this conversation" (the web's sync panel): deliver this one
8781
+ * chat's missing entries to AI Matrx through the shared importer. Progress arrives as
8782
+ * coding.history.progress for this request.
8783
+ */
8784
+ declare const CodingReconcileParams: z.ZodObject<{
8785
+ provider: z.ZodEnum<{
8786
+ claude: "claude";
8787
+ codex: "codex";
8788
+ }>;
8789
+ provider_session_id: z.ZodString;
8614
8790
  }, z.core.$strict>;
8615
- type CodingGapEvent = z.output<typeof CodingGapEvent>;
8616
- declare const CodingStartParams: z.ZodObject<{
8791
+ type CodingReconcileParams = z.output<typeof CodingReconcileParams>;
8792
+ /**
8793
+ * FULL DOWNLOAD over any transport: the provider's own complete transcript file, byte for byte,
8794
+ * on the op's stream. It also refreshes the person's opt-in cloud backup and counts the chat's
8795
+ * subagent transcripts. `available: false` says why (the stream then carries nothing).
8796
+ */
8797
+ declare const CodingTranscriptRawParams: z.ZodObject<{
8617
8798
  provider: z.ZodEnum<{
8618
8799
  claude: "claude";
8619
8800
  codex: "codex";
8620
8801
  }>;
8621
- cwd: z.ZodString;
8622
- prompt: z.ZodString;
8623
- model: z.ZodOptional<z.ZodString>;
8624
- effort: z.ZodOptional<z.ZodString>;
8625
- agent: z.ZodOptional<z.ZodObject<{
8626
- agent_id: z.ZodString;
8627
- version_id: z.ZodOptional<z.ZodString>;
8628
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8629
- }, z.core.$strict>>;
8630
- account_profile_id: z.ZodOptional<z.ZodString>;
8631
- client_request_id: z.ZodString;
8802
+ provider_session_id: z.ZodString;
8803
+ }, z.core.$strict>;
8804
+ type CodingTranscriptRawParams = z.output<typeof CodingTranscriptRawParams>;
8805
+ /** Live changes to the sessions, runs, preferences, titles and recent rows (coding.changed). */
8806
+ declare const CodingWatchParams: z.ZodObject<{}, z.core.$strict>;
8807
+ type CodingWatchParams = z.output<typeof CodingWatchParams>;
8808
+ declare const CodingWatchResult: z.ZodObject<{
8809
+ resource_id: z.ZodString;
8810
+ }, z.core.$strict>;
8811
+ type CodingWatchResult = z.output<typeof CodingWatchResult>;
8812
+ /**
8813
+ * One chat's live items (coding.item), replayed from `since_seq` when it is still in the device's
8814
+ * ring; older than the ring → coding.gap first, and the client reads history again.
8815
+ */
8816
+ declare const CodingSessionWatchParams: z.ZodObject<{
8817
+ session_id: z.ZodString;
8818
+ since_seq: z.ZodOptional<z.ZodInt>;
8819
+ }, z.core.$strict>;
8820
+ type CodingSessionWatchParams = z.output<typeof CodingSessionWatchParams>;
8821
+ declare const CodingSessionWatchResult: z.ZodObject<{
8822
+ resource_id: z.ZodString;
8823
+ seq: z.ZodInt;
8632
8824
  }, z.core.$strict>;
8633
- type CodingStartParams = z.output<typeof CodingStartParams>;
8825
+ type CodingSessionWatchResult = z.output<typeof CodingSessionWatchResult>;
8634
8826
  /**
8635
- * Continue a chat from another app here. When it is live elsewhere the core refuses with
8636
- * RESOURCE_BUSY carrying the sentence, unless `confirm_elsewhere` (the person saw the warning).
8827
+ * Sent once after hello by a client that knows the core is 1.38+ (an older core answers
8828
+ * UNKNOWN_OPERATION; a new hello field would have made every older core refuse the hello).
8637
8829
  */
8638
- declare const CodingTakeoverParams: z.ZodObject<{
8639
- provider: z.ZodEnum<{
8640
- claude: "claude";
8641
- codex: "codex";
8642
- }>;
8643
- provider_session_id: z.ZodString;
8644
- cwd: z.ZodString;
8645
- title: z.ZodOptional<z.ZodString>;
8646
- agent: z.ZodOptional<z.ZodObject<{
8647
- agent_id: z.ZodString;
8648
- version_id: z.ZodOptional<z.ZodString>;
8649
- variables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
8650
- }, z.core.$strict>>;
8651
- confirm_elsewhere: z.ZodOptional<z.ZodBoolean>;
8830
+ declare const SessionIdentifyParams: z.ZodObject<{
8831
+ label: z.ZodString;
8652
8832
  }, z.core.$strict>;
8653
- type CodingTakeoverParams = z.output<typeof CodingTakeoverParams>;
8654
- declare const CodingReconcileResult: z.ZodObject<{
8655
- state: z.ZodEnum<{
8656
- blocked: "blocked";
8657
- done: "done";
8658
- nothing_to_do: "nothing_to_do";
8659
- }>;
8660
- summary: z.ZodString;
8833
+ type SessionIdentifyParams = z.output<typeof SessionIdentifyParams>;
8834
+ declare const SessionIdentifyResult: z.ZodObject<{
8835
+ label: z.ZodString;
8661
8836
  }, z.core.$strict>;
8662
- type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8837
+ type SessionIdentifyResult = z.output<typeof SessionIdentifyResult>;
8663
8838
 
8664
8839
  /**
8665
8840
  * @ai-matrx/desktop-protocol — cap browser (protocol 1.28): the AI Matrx browser extension as a
@@ -8676,107 +8851,6 @@ type CodingReconcileResult = z.output<typeof CodingReconcileResult>;
8676
8851
  * and may say `browser.progress` while a person confirms the action in Chrome.
8677
8852
  */
8678
8853
 
8679
- /** Stable per Chrome profile (the extension mints it once): one session per instance. */
8680
- declare const BrowserClientInstance: z.ZodString;
8681
- declare const BrowserRegisterResult: z.ZodObject<{
8682
- session: z.ZodObject<{
8683
- client_instance: z.ZodString;
8684
- client_label: z.ZodString;
8685
- browser: z.ZodEnum<{
8686
- other: "other";
8687
- chrome: "chrome";
8688
- edge: "edge";
8689
- brave: "brave";
8690
- arc: "arc";
8691
- opera: "opera";
8692
- vivaldi: "vivaldi";
8693
- chromium: "chromium";
8694
- firefox: "firefox";
8695
- }>;
8696
- extension_version: z.ZodString;
8697
- state: z.ZodEnum<{
8698
- connected: "connected";
8699
- different_account: "different_account";
8700
- extension_signed_out: "extension_signed_out";
8701
- device_signed_out: "device_signed_out";
8702
- unverified: "unverified";
8703
- }>;
8704
- routable: z.ZodBoolean;
8705
- account_email: z.ZodNullable<z.ZodString>;
8706
- connected_at_ms: z.ZodInt;
8707
- last_call_at_ms: z.ZodNullable<z.ZodInt>;
8708
- calls: z.ZodInt;
8709
- errors: z.ZodInt;
8710
- p50_ms: z.ZodNullable<z.ZodInt>;
8711
- p95_ms: z.ZodNullable<z.ZodInt>;
8712
- awaiting_confirmation: z.ZodBoolean;
8713
- }, z.core.$strict>;
8714
- }, z.core.$strict>;
8715
- declare const BrowserCallError: z.ZodObject<{
8716
- message: z.ZodString;
8717
- code: z.ZodNullable<z.ZodString>;
8718
- }, z.core.$strict>;
8719
- declare const BrowserResultResult: z.ZodObject<{
8720
- accepted: z.ZodBoolean;
8721
- }, z.core.$strict>;
8722
- /** The extension says where a call stands (the person is being asked to confirm it). */
8723
- declare const BrowserProgressParams: z.ZodObject<{
8724
- call_id: z.ZodString;
8725
- phase: z.ZodEnum<{
8726
- awaiting_confirmation: "awaiting_confirmation";
8727
- running: "running";
8728
- }>;
8729
- }, z.core.$strict>;
8730
- declare const BrowserProgressResult: z.ZodObject<{
8731
- accepted: z.ZodBoolean;
8732
- }, z.core.$strict>;
8733
- declare const BrowserSessionsParams: z.ZodObject<{}, z.core.$strict>;
8734
- declare const BrowserDisconnectParams: z.ZodObject<{
8735
- client_instance: z.ZodString;
8736
- }, z.core.$strict>;
8737
- declare const BrowserDisconnectResult: z.ZodObject<{
8738
- disconnected: z.ZodBoolean;
8739
- }, z.core.$strict>;
8740
- declare const BrowserSetEnabledParams: z.ZodObject<{
8741
- enabled: z.ZodBoolean;
8742
- }, z.core.$strict>;
8743
- declare const BrowserSetEnabledResult: z.ZodObject<{
8744
- enabled: z.ZodBoolean;
8745
- }, z.core.$strict>;
8746
- /** The pairing code a browser on another computer types in (screen clients on this computer only). */
8747
- declare const BrowserPairCodeParams: z.ZodObject<{}, z.core.$strict>;
8748
- declare const BrowserPairCodeResult: z.ZodObject<{
8749
- code: z.ZodString;
8750
- }, z.core.$strict>;
8751
- declare const BrowserPairResetParams: z.ZodObject<{}, z.core.$strict>;
8752
- declare const BrowserToolMetricsParams: z.ZodObject<{
8753
- client_instance: z.ZodString;
8754
- }, z.core.$strict>;
8755
- declare const BrowserResetCountersParams: z.ZodObject<{
8756
- client_instance: z.ZodString;
8757
- }, z.core.$strict>;
8758
- /** `reset` false: that browser is not connected (its numbers by tool were cleared all the same). */
8759
- declare const BrowserResetCountersResult: z.ZodObject<{
8760
- reset: z.ZodBoolean;
8761
- }, z.core.$strict>;
8762
- /** Core → the app's screens: the session list changed (re-read browser.sessions). */
8763
- declare const BrowserSessionsChangedEvent: z.ZodObject<{
8764
- count: z.ZodInt;
8765
- enabled: z.ZodBoolean;
8766
- }, z.core.$strict>;
8767
- /** Core → the caller of a browser.call: where it stands. */
8768
- declare const BrowserProgressEvent: z.ZodObject<{
8769
- call_id: z.ZodString;
8770
- client_instance: z.ZodString;
8771
- phase: z.ZodEnum<{
8772
- awaiting_confirmation: "awaiting_confirmation";
8773
- running: "running";
8774
- }>;
8775
- }, z.core.$strict>;
8776
- /** `POST /v1/pair` body. */
8777
- declare const BrowserPairRequest: z.ZodObject<{
8778
- client_instance: z.ZodString;
8779
- }, z.core.$strict>;
8780
8854
  /**
8781
8855
  * The extension IDs allowed to pair (Origin `chrome-extension://<id>`): the Chrome Web Store build
8782
8856
  * and the keyed development build. matrx-extend's src/config/identity.ts names the same IDs; this
@@ -8958,8 +9032,8 @@ declare const DesktopHealth: z.ZodObject<{
8958
9032
  ws_path: z.ZodLiteral<"/v1/connect">;
8959
9033
  device_id: z.ZodString;
8960
9034
  browser_connection: z.ZodEnum<{
8961
- off: "off";
8962
9035
  on: "on";
9036
+ off: "off";
8963
9037
  }>;
8964
9038
  }, z.core.$strict>;
8965
9039
  type DesktopHealth = z.output<typeof DesktopHealth>;
@@ -8995,57 +9069,178 @@ declare const BrowserLogMessage: z.ZodObject<{
8995
9069
  from_browser: "from_browser";
8996
9070
  }>;
8997
9071
  client_instance: z.ZodString;
8998
- kind: z.ZodEnum<{
8999
- result: "result";
9000
- timeout: "timeout";
9001
- progress: "progress";
9002
- closed: "closed";
9003
- register: "register";
9004
- invoke: "invoke";
9005
- }>;
9006
- tool: z.ZodNullable<z.ZodString>;
9007
- call_id: z.ZodNullable<z.ZodString>;
9008
- ok: z.ZodNullable<z.ZodBoolean>;
9009
- detail: z.ZodString;
9072
+ kind: z.ZodEnum<{
9073
+ result: "result";
9074
+ timeout: "timeout";
9075
+ progress: "progress";
9076
+ closed: "closed";
9077
+ register: "register";
9078
+ invoke: "invoke";
9079
+ }>;
9080
+ tool: z.ZodNullable<z.ZodString>;
9081
+ call_id: z.ZodNullable<z.ZodString>;
9082
+ ok: z.ZodNullable<z.ZodBoolean>;
9083
+ detail: z.ZodString;
9084
+ }, z.core.$strict>;
9085
+ type BrowserLogMessage = z.output<typeof BrowserLogMessage>;
9086
+ declare const BrowserLogParams: z.ZodObject<{
9087
+ after_seq: z.ZodDefault<z.ZodInt>;
9088
+ limit: z.ZodDefault<z.ZodInt>;
9089
+ }, z.core.$strict>;
9090
+ type BrowserLogParams = z.output<typeof BrowserLogParams>;
9091
+ declare const BrowserLogResult: z.ZodObject<{
9092
+ messages: z.ZodArray<z.ZodObject<{
9093
+ seq: z.ZodInt;
9094
+ at_ms: z.ZodInt;
9095
+ direction: z.ZodEnum<{
9096
+ core: "core";
9097
+ to_browser: "to_browser";
9098
+ from_browser: "from_browser";
9099
+ }>;
9100
+ client_instance: z.ZodString;
9101
+ kind: z.ZodEnum<{
9102
+ result: "result";
9103
+ timeout: "timeout";
9104
+ progress: "progress";
9105
+ closed: "closed";
9106
+ register: "register";
9107
+ invoke: "invoke";
9108
+ }>;
9109
+ tool: z.ZodNullable<z.ZodString>;
9110
+ call_id: z.ZodNullable<z.ZodString>;
9111
+ ok: z.ZodNullable<z.ZodBoolean>;
9112
+ detail: z.ZodString;
9113
+ }, z.core.$strict>>;
9114
+ last_seq: z.ZodInt;
9115
+ }, z.core.$strict>;
9116
+ type BrowserLogResult = z.output<typeof BrowserLogResult>;
9117
+ /** `POST /v1/pair` answer: the token rides `bearer.<pair_token>` on /v1/connect. */
9118
+ declare const BrowserPairResult: z.ZodObject<{
9119
+ pair_token: z.ZodString;
9120
+ ws_path: z.ZodLiteral<"/v1/connect">;
9121
+ }, z.core.$strict>;
9122
+ type BrowserPairResult = z.output<typeof BrowserPairResult>;
9123
+ /** Stable per Chrome profile (the extension mints it once): one session per instance. */
9124
+ declare const BrowserClientInstance: z.ZodString;
9125
+ type BrowserClientInstance = z.output<typeof BrowserClientInstance>;
9126
+ declare const BrowserRegisterResult: z.ZodObject<{
9127
+ session: z.ZodObject<{
9128
+ client_instance: z.ZodString;
9129
+ client_label: z.ZodString;
9130
+ browser: z.ZodEnum<{
9131
+ other: "other";
9132
+ chrome: "chrome";
9133
+ edge: "edge";
9134
+ brave: "brave";
9135
+ arc: "arc";
9136
+ opera: "opera";
9137
+ vivaldi: "vivaldi";
9138
+ chromium: "chromium";
9139
+ firefox: "firefox";
9140
+ }>;
9141
+ extension_version: z.ZodString;
9142
+ state: z.ZodEnum<{
9143
+ connected: "connected";
9144
+ different_account: "different_account";
9145
+ extension_signed_out: "extension_signed_out";
9146
+ device_signed_out: "device_signed_out";
9147
+ unverified: "unverified";
9148
+ }>;
9149
+ routable: z.ZodBoolean;
9150
+ account_email: z.ZodNullable<z.ZodString>;
9151
+ connected_at_ms: z.ZodInt;
9152
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
9153
+ calls: z.ZodInt;
9154
+ errors: z.ZodInt;
9155
+ p50_ms: z.ZodNullable<z.ZodInt>;
9156
+ p95_ms: z.ZodNullable<z.ZodInt>;
9157
+ awaiting_confirmation: z.ZodBoolean;
9158
+ }, z.core.$strict>;
9159
+ }, z.core.$strict>;
9160
+ type BrowserRegisterResult = z.output<typeof BrowserRegisterResult>;
9161
+ declare const BrowserCallError: z.ZodObject<{
9162
+ message: z.ZodString;
9163
+ code: z.ZodNullable<z.ZodString>;
9164
+ }, z.core.$strict>;
9165
+ type BrowserCallError = z.output<typeof BrowserCallError>;
9166
+ declare const BrowserResultResult: z.ZodObject<{
9167
+ accepted: z.ZodBoolean;
9168
+ }, z.core.$strict>;
9169
+ type BrowserResultResult = z.output<typeof BrowserResultResult>;
9170
+ /** The extension says where a call stands (the person is being asked to confirm it). */
9171
+ declare const BrowserProgressParams: z.ZodObject<{
9172
+ call_id: z.ZodString;
9173
+ phase: z.ZodEnum<{
9174
+ awaiting_confirmation: "awaiting_confirmation";
9175
+ running: "running";
9176
+ }>;
9177
+ }, z.core.$strict>;
9178
+ type BrowserProgressParams = z.output<typeof BrowserProgressParams>;
9179
+ declare const BrowserProgressResult: z.ZodObject<{
9180
+ accepted: z.ZodBoolean;
9181
+ }, z.core.$strict>;
9182
+ type BrowserProgressResult = z.output<typeof BrowserProgressResult>;
9183
+ declare const BrowserSessionsParams: z.ZodObject<{}, z.core.$strict>;
9184
+ type BrowserSessionsParams = z.output<typeof BrowserSessionsParams>;
9185
+ declare const BrowserDisconnectParams: z.ZodObject<{
9186
+ client_instance: z.ZodString;
9187
+ }, z.core.$strict>;
9188
+ type BrowserDisconnectParams = z.output<typeof BrowserDisconnectParams>;
9189
+ declare const BrowserDisconnectResult: z.ZodObject<{
9190
+ disconnected: z.ZodBoolean;
9191
+ }, z.core.$strict>;
9192
+ type BrowserDisconnectResult = z.output<typeof BrowserDisconnectResult>;
9193
+ declare const BrowserSetEnabledParams: z.ZodObject<{
9194
+ enabled: z.ZodBoolean;
9195
+ }, z.core.$strict>;
9196
+ type BrowserSetEnabledParams = z.output<typeof BrowserSetEnabledParams>;
9197
+ declare const BrowserSetEnabledResult: z.ZodObject<{
9198
+ enabled: z.ZodBoolean;
9199
+ }, z.core.$strict>;
9200
+ type BrowserSetEnabledResult = z.output<typeof BrowserSetEnabledResult>;
9201
+ /** The pairing code a browser on another computer types in (screen clients on this computer only). */
9202
+ declare const BrowserPairCodeParams: z.ZodObject<{}, z.core.$strict>;
9203
+ type BrowserPairCodeParams = z.output<typeof BrowserPairCodeParams>;
9204
+ declare const BrowserPairCodeResult: z.ZodObject<{
9205
+ code: z.ZodString;
9206
+ }, z.core.$strict>;
9207
+ type BrowserPairCodeResult = z.output<typeof BrowserPairCodeResult>;
9208
+ declare const BrowserPairResetParams: z.ZodObject<{}, z.core.$strict>;
9209
+ type BrowserPairResetParams = z.output<typeof BrowserPairResetParams>;
9210
+ declare const BrowserToolMetricsParams: z.ZodObject<{
9211
+ client_instance: z.ZodString;
9010
9212
  }, z.core.$strict>;
9011
- type BrowserLogMessage = z.output<typeof BrowserLogMessage>;
9012
- declare const BrowserLogParams: z.ZodObject<{
9013
- after_seq: z.ZodDefault<z.ZodInt>;
9014
- limit: z.ZodDefault<z.ZodInt>;
9213
+ type BrowserToolMetricsParams = z.output<typeof BrowserToolMetricsParams>;
9214
+ declare const BrowserResetCountersParams: z.ZodObject<{
9215
+ client_instance: z.ZodString;
9015
9216
  }, z.core.$strict>;
9016
- type BrowserLogParams = z.output<typeof BrowserLogParams>;
9017
- declare const BrowserLogResult: z.ZodObject<{
9018
- messages: z.ZodArray<z.ZodObject<{
9019
- seq: z.ZodInt;
9020
- at_ms: z.ZodInt;
9021
- direction: z.ZodEnum<{
9022
- core: "core";
9023
- to_browser: "to_browser";
9024
- from_browser: "from_browser";
9025
- }>;
9026
- client_instance: z.ZodString;
9027
- kind: z.ZodEnum<{
9028
- result: "result";
9029
- timeout: "timeout";
9030
- progress: "progress";
9031
- closed: "closed";
9032
- register: "register";
9033
- invoke: "invoke";
9034
- }>;
9035
- tool: z.ZodNullable<z.ZodString>;
9036
- call_id: z.ZodNullable<z.ZodString>;
9037
- ok: z.ZodNullable<z.ZodBoolean>;
9038
- detail: z.ZodString;
9039
- }, z.core.$strict>>;
9040
- last_seq: z.ZodInt;
9217
+ type BrowserResetCountersParams = z.output<typeof BrowserResetCountersParams>;
9218
+ /** `reset` false: that browser is not connected (its numbers by tool were cleared all the same). */
9219
+ declare const BrowserResetCountersResult: z.ZodObject<{
9220
+ reset: z.ZodBoolean;
9041
9221
  }, z.core.$strict>;
9042
- type BrowserLogResult = z.output<typeof BrowserLogResult>;
9043
- /** `POST /v1/pair` answer: the token rides `bearer.<pair_token>` on /v1/connect. */
9044
- declare const BrowserPairResult: z.ZodObject<{
9045
- pair_token: z.ZodString;
9046
- ws_path: z.ZodLiteral<"/v1/connect">;
9222
+ type BrowserResetCountersResult = z.output<typeof BrowserResetCountersResult>;
9223
+ /** Core → the app's screens: the session list changed (re-read browser.sessions). */
9224
+ declare const BrowserSessionsChangedEvent: z.ZodObject<{
9225
+ count: z.ZodInt;
9226
+ enabled: z.ZodBoolean;
9047
9227
  }, z.core.$strict>;
9048
- type BrowserPairResult = z.output<typeof BrowserPairResult>;
9228
+ type BrowserSessionsChangedEvent = z.output<typeof BrowserSessionsChangedEvent>;
9229
+ /** Core → the caller of a browser.call: where it stands. */
9230
+ declare const BrowserProgressEvent: z.ZodObject<{
9231
+ call_id: z.ZodString;
9232
+ client_instance: z.ZodString;
9233
+ phase: z.ZodEnum<{
9234
+ awaiting_confirmation: "awaiting_confirmation";
9235
+ running: "running";
9236
+ }>;
9237
+ }, z.core.$strict>;
9238
+ type BrowserProgressEvent = z.output<typeof BrowserProgressEvent>;
9239
+ /** `POST /v1/pair` body. */
9240
+ declare const BrowserPairRequest: z.ZodObject<{
9241
+ client_instance: z.ZodString;
9242
+ }, z.core.$strict>;
9243
+ type BrowserPairRequest = z.output<typeof BrowserPairRequest>;
9049
9244
 
9050
9245
  /**
9051
9246
  * @ai-matrx/desktop-protocol — cap net (SPEC §6, §10 desktop_net): the computer's own network as it
@@ -9230,94 +9425,6 @@ type NetDownloadResult = z.output<typeof NetDownloadResult>;
9230
9425
  * scripts/check-schema-source.mjs. Added in protocol 1.37.
9231
9426
  */
9232
9427
 
9233
- declare const OutlookStatusParams: z.ZodObject<{}, z.core.$strict>;
9234
- declare const OutlookAccount: z.ZodObject<{
9235
- name: z.ZodString;
9236
- email: z.ZodNullable<z.ZodString>;
9237
- }, z.core.$strict>;
9238
- declare const OutlookStatusResult: z.ZodObject<{
9239
- client: z.ZodEnum<{
9240
- mac: "mac";
9241
- classic_windows: "classic_windows";
9242
- new_windows: "new_windows";
9243
- none: "none";
9244
- }>;
9245
- scriptable: z.ZodBoolean;
9246
- version: z.ZodNullable<z.ZodString>;
9247
- accounts: z.ZodArray<z.ZodObject<{
9248
- name: z.ZodString;
9249
- email: z.ZodNullable<z.ZodString>;
9250
- }, z.core.$strict>>;
9251
- reason: z.ZodNullable<z.ZodString>;
9252
- }, z.core.$strict>;
9253
- declare const OutlookDraftParams: z.ZodObject<{
9254
- to: z.ZodDefault<z.ZodArray<z.ZodString>>;
9255
- cc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9256
- bcc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9257
- subject: z.ZodDefault<z.ZodString>;
9258
- body: z.ZodDefault<z.ZodString>;
9259
- body_format: z.ZodDefault<z.ZodEnum<{
9260
- text: "text";
9261
- html: "html";
9262
- }>>;
9263
- attachments: z.ZodDefault<z.ZodArray<z.ZodString>>;
9264
- account: z.ZodOptional<z.ZodString>;
9265
- display: z.ZodDefault<z.ZodBoolean>;
9266
- }, z.core.$strict>;
9267
- declare const OutlookDraftResult: z.ZodObject<{
9268
- id: z.ZodString;
9269
- account: z.ZodNullable<z.ZodString>;
9270
- folder: z.ZodString;
9271
- attachments: z.ZodInt;
9272
- displayed: z.ZodBoolean;
9273
- }, z.core.$strict>;
9274
- declare const OutlookListParams: z.ZodObject<{
9275
- folder: z.ZodDefault<z.ZodEnum<{
9276
- sent: "sent";
9277
- inbox: "inbox";
9278
- drafts: "drafts";
9279
- }>>;
9280
- account: z.ZodOptional<z.ZodString>;
9281
- unread_only: z.ZodDefault<z.ZodBoolean>;
9282
- limit: z.ZodDefault<z.ZodInt>;
9283
- }, z.core.$strict>;
9284
- declare const OutlookMessage: z.ZodObject<{
9285
- id: z.ZodString;
9286
- subject: z.ZodString;
9287
- sender: z.ZodString;
9288
- received_at_ms: z.ZodNullable<z.ZodInt>;
9289
- read: z.ZodBoolean;
9290
- has_attachments: z.ZodBoolean;
9291
- preview: z.ZodString;
9292
- }, z.core.$strict>;
9293
- declare const OutlookListResult: z.ZodObject<{
9294
- folder: z.ZodString;
9295
- messages: z.ZodArray<z.ZodObject<{
9296
- id: z.ZodString;
9297
- subject: z.ZodString;
9298
- sender: z.ZodString;
9299
- received_at_ms: z.ZodNullable<z.ZodInt>;
9300
- read: z.ZodBoolean;
9301
- has_attachments: z.ZodBoolean;
9302
- preview: z.ZodString;
9303
- }, z.core.$strict>>;
9304
- }, z.core.$strict>;
9305
- declare const OutlookReadParams: z.ZodObject<{
9306
- id: z.ZodString;
9307
- }, z.core.$strict>;
9308
- declare const OutlookReadResult: z.ZodObject<{
9309
- id: z.ZodString;
9310
- subject: z.ZodString;
9311
- sender: z.ZodString;
9312
- to: z.ZodArray<z.ZodString>;
9313
- cc: z.ZodArray<z.ZodString>;
9314
- received_at_ms: z.ZodNullable<z.ZodInt>;
9315
- body: z.ZodString;
9316
- attachments: z.ZodArray<z.ZodObject<{
9317
- name: z.ZodString;
9318
- size: z.ZodInt;
9319
- }, z.core.$strict>>;
9320
- }, z.core.$strict>;
9321
9428
  declare const AutomationScriptParams: z.ZodObject<{
9322
9429
  language: z.ZodEnum<{
9323
9430
  applescript: "applescript";
@@ -9694,6 +9801,104 @@ declare const LocationGetResult: z.ZodObject<{
9694
9801
  }>;
9695
9802
  }, z.core.$strict>;
9696
9803
  type LocationGetResult = z.output<typeof LocationGetResult>;
9804
+ declare const OutlookStatusParams: z.ZodObject<{}, z.core.$strict>;
9805
+ type OutlookStatusParams = z.output<typeof OutlookStatusParams>;
9806
+ declare const OutlookAccount: z.ZodObject<{
9807
+ name: z.ZodString;
9808
+ email: z.ZodNullable<z.ZodString>;
9809
+ }, z.core.$strict>;
9810
+ type OutlookAccount = z.output<typeof OutlookAccount>;
9811
+ declare const OutlookStatusResult: z.ZodObject<{
9812
+ client: z.ZodEnum<{
9813
+ mac: "mac";
9814
+ classic_windows: "classic_windows";
9815
+ new_windows: "new_windows";
9816
+ none: "none";
9817
+ }>;
9818
+ scriptable: z.ZodBoolean;
9819
+ version: z.ZodNullable<z.ZodString>;
9820
+ accounts: z.ZodArray<z.ZodObject<{
9821
+ name: z.ZodString;
9822
+ email: z.ZodNullable<z.ZodString>;
9823
+ }, z.core.$strict>>;
9824
+ reason: z.ZodNullable<z.ZodString>;
9825
+ }, z.core.$strict>;
9826
+ type OutlookStatusResult = z.output<typeof OutlookStatusResult>;
9827
+ declare const OutlookDraftParams: z.ZodObject<{
9828
+ to: z.ZodDefault<z.ZodArray<z.ZodString>>;
9829
+ cc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9830
+ bcc: z.ZodDefault<z.ZodArray<z.ZodString>>;
9831
+ subject: z.ZodDefault<z.ZodString>;
9832
+ body: z.ZodDefault<z.ZodString>;
9833
+ body_format: z.ZodDefault<z.ZodEnum<{
9834
+ text: "text";
9835
+ html: "html";
9836
+ }>>;
9837
+ attachments: z.ZodDefault<z.ZodArray<z.ZodString>>;
9838
+ account: z.ZodOptional<z.ZodString>;
9839
+ display: z.ZodDefault<z.ZodBoolean>;
9840
+ }, z.core.$strict>;
9841
+ type OutlookDraftParams = z.output<typeof OutlookDraftParams>;
9842
+ declare const OutlookDraftResult: z.ZodObject<{
9843
+ id: z.ZodString;
9844
+ account: z.ZodNullable<z.ZodString>;
9845
+ folder: z.ZodString;
9846
+ attachments: z.ZodInt;
9847
+ displayed: z.ZodBoolean;
9848
+ }, z.core.$strict>;
9849
+ type OutlookDraftResult = z.output<typeof OutlookDraftResult>;
9850
+ declare const OutlookListParams: z.ZodObject<{
9851
+ folder: z.ZodDefault<z.ZodEnum<{
9852
+ sent: "sent";
9853
+ inbox: "inbox";
9854
+ drafts: "drafts";
9855
+ }>>;
9856
+ account: z.ZodOptional<z.ZodString>;
9857
+ unread_only: z.ZodDefault<z.ZodBoolean>;
9858
+ limit: z.ZodDefault<z.ZodInt>;
9859
+ }, z.core.$strict>;
9860
+ type OutlookListParams = z.output<typeof OutlookListParams>;
9861
+ declare const OutlookMessage: z.ZodObject<{
9862
+ id: z.ZodString;
9863
+ subject: z.ZodString;
9864
+ sender: z.ZodString;
9865
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9866
+ read: z.ZodBoolean;
9867
+ has_attachments: z.ZodBoolean;
9868
+ preview: z.ZodString;
9869
+ }, z.core.$strict>;
9870
+ type OutlookMessage = z.output<typeof OutlookMessage>;
9871
+ declare const OutlookListResult: z.ZodObject<{
9872
+ folder: z.ZodString;
9873
+ messages: z.ZodArray<z.ZodObject<{
9874
+ id: z.ZodString;
9875
+ subject: z.ZodString;
9876
+ sender: z.ZodString;
9877
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9878
+ read: z.ZodBoolean;
9879
+ has_attachments: z.ZodBoolean;
9880
+ preview: z.ZodString;
9881
+ }, z.core.$strict>>;
9882
+ }, z.core.$strict>;
9883
+ type OutlookListResult = z.output<typeof OutlookListResult>;
9884
+ declare const OutlookReadParams: z.ZodObject<{
9885
+ id: z.ZodString;
9886
+ }, z.core.$strict>;
9887
+ type OutlookReadParams = z.output<typeof OutlookReadParams>;
9888
+ declare const OutlookReadResult: z.ZodObject<{
9889
+ id: z.ZodString;
9890
+ subject: z.ZodString;
9891
+ sender: z.ZodString;
9892
+ to: z.ZodArray<z.ZodString>;
9893
+ cc: z.ZodArray<z.ZodString>;
9894
+ received_at_ms: z.ZodNullable<z.ZodInt>;
9895
+ body: z.ZodString;
9896
+ attachments: z.ZodArray<z.ZodObject<{
9897
+ name: z.ZodString;
9898
+ size: z.ZodInt;
9899
+ }, z.core.$strict>>;
9900
+ }, z.core.$strict>;
9901
+ type OutlookReadResult = z.output<typeof OutlookReadResult>;
9697
9902
 
9698
9903
  /**
9699
9904
  * @ai-matrx/desktop-protocol — cap windows (SPEC §10 desktop_windows_admin): Windows
@@ -10346,6 +10551,23 @@ declare const FIELDS_SINCE: {
10346
10551
  readonly app: "1.7";
10347
10552
  readonly pid: "1.7";
10348
10553
  };
10554
+ readonly AppWindowInfo: {
10555
+ readonly remote_control: "1.50";
10556
+ };
10557
+ readonly AppsInstancesListParams: {
10558
+ readonly fresh: "1.51";
10559
+ };
10560
+ readonly AppsInstancesListResult: {
10561
+ readonly as_of_ms: "1.51";
10562
+ readonly refreshing: "1.51";
10563
+ };
10564
+ readonly AppsAccountsListParams: {
10565
+ readonly fresh: "1.51";
10566
+ };
10567
+ readonly AppsAccountsListResult: {
10568
+ readonly as_of_ms: "1.51";
10569
+ readonly refreshing: "1.51";
10570
+ };
10349
10571
  readonly AppsChatsListResult: {
10350
10572
  readonly updating: "1.9";
10351
10573
  readonly live: "1.9";
@@ -10521,7 +10743,7 @@ declare function forPeer(op: OpName | null, part: "error", value: unknown, versi
10521
10743
  declare const VERSIONED_RESULT_OPS: readonly OpName[];
10522
10744
 
10523
10745
  /** SHA-256 of generated/desktop-protocol.schema.json: the contract both sides of a service connection were built from. */
10524
- declare const CONTRACT_SHA256: "783487638685c921a761d27c5c6dca3103d1d6d5ae0ec38ffd59086b68a2207a";
10746
+ declare const CONTRACT_SHA256: "17a170d7662db6a201d4787ac19ce9bbd34696faba04cabedb9d26ba14d15ff4";
10525
10747
 
10526
10748
  /**
10527
10749
  * The local tool catalog (SPEC §10): every tool a platform agent calls on a person's computer, the
@@ -10666,4 +10888,4 @@ declare function toolsSending(op: string): string[];
10666
10888
  */
10667
10889
  declare function sharedOpsBlocking(tool: string, disabledTools: readonly string[]): string[];
10668
10890
 
10669
- export { AbsPath, AccountAgent, AccountAgentDetail, AccountAgentRun, AccountAgentRunSort, AccountAgentRunStatus, AccountAgentVariable, AccountAgentsFavoriteParams, AccountAgentsFavoriteResult, AccountAgentsGetParams, AccountAgentsGetResult, AccountAgentsListParams, AccountAgentsListResult, AccountAgentsRunsParams, AccountAgentsRunsResult, AccountGap, AccountReadState, AccountReset, AccountResetSource, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppAccount, AppFeatureStatus, AppInfo, AppInstall, AppInstance, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsListParams, AppsAccountsListResult, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsInstancesListParams, AppsInstancesListResult, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsGroupsParams, AppsWindowsGroupsResult, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingActiveElsewhere, CodingActivityParams, CodingActivityResult, CodingAgentSelectionParams, CodingAgentSetParams, CodingAgentSetResult, CodingAgentsAccessParams, CodingAgentsAccessResult, CodingChangedEvent, CodingChatPreference, CodingClientRequestId, CodingDiscoverParams, CodingDiscoverResult, CodingDiscoveredChat, CodingFolderCheck, CodingFoldersCheckParams, CodingFoldersCheckResult, CodingFoldersCreateParams, CodingFoldersCreateResult, CodingFoldersRecentParams, CodingFoldersRecentResult, CodingGapEvent, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryParams, CodingHistoryProgressEvent, CodingHistoryRecord, CodingHistoryResult, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingItemEvent, CodingItemFullParams, CodingItemFullResult, CodingOptionsSetParams, CodingOptionsSetResult, CodingPlanMissingParams, CodingPrefsListParams, CodingPrefsListResult, CodingPrefsSetParams, CodingPrefsSetResult, CodingProviderBinary, CodingProviderName, CodingProviderProblem, CodingProviderStatus, CodingProvidersParams, CodingProvidersResult, CodingQuotaWindow, CodingRecentFolder, CodingRecentRow, CodingRecentSeenParams, CodingRecentSeenResult, CodingReconcileParams, CodingReconcileResult, CodingRunRecord, CodingRunStatus, CodingRunUsage, CodingRunsListParams, CodingRunsListResult, CodingSearchParams, CodingSearchResult, CodingSendParams, CodingSendResult, CodingServiceCredentials, CodingServiceProgress, CodingSessionAgent, CodingSessionAgentPart, CodingSessionRecord, CodingSessionWatchParams, CodingSessionWatchResult, CodingSessionsListParams, CodingSessionsListResult, CodingStartParams, CodingStartResult, CodingStartedBy, CodingStopElsewhereParams, CodingStopElsewhereResult, CodingStopParams, CodingStopResult, CodingTakeoverParams, CodingTakeoverResult, CodingTitleStatus, CodingTitlesStatusParams, CodingTitlesStatusResult, CodingTranscriptItem, CodingTranscriptRawParams, CodingTranscriptRawResult, CodingTranscriptReadParams, CodingTranscriptReadResult, CodingWatchParams, CodingWatchResult, CodingWatchStateEvent, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, InstanceStatus, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsGrantState, OsPermissionName, OsRequirementName, OutlookAccount, OutlookDraftParams, OutlookDraftResult, OutlookListParams, OutlookListResult, OutlookMessage, OutlookReadParams, OutlookReadResult, OutlookStatusParams, OutlookStatusResult, PERMISSIONS_SINCE, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveOutcome, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionIdentifyParams, SessionIdentifyResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoGraphicsAdapter, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsParseFile, ToolsServiceProgress, ToolsWebBrowserFetchParams, ToolsWebBrowserFetchResult, ToolsWebScrapePage, ToolsWebScrapeParams, ToolsWebScrapeResult, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebAttachTarget, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebLand, WebLogCaller, WebLogClearParams, WebLogClearResult, WebLogEntry, WebLogListParams, WebLogListResult, WebLogResult, WebLogVia, WebNotSavedReason, WebOutboxDiscardParams, WebOutboxDiscardResult, WebOutboxItem, WebOutboxListParams, WebOutboxListResult, WebOutboxRetryParams, WebOutboxRetryResult, WebProgressEvent, WebResearchFetchParams, WebResearchFetchResult, WebResearchItem, WebResearchItemState, WebResearchQueueParams, WebResearchQueueResult, WebRuntimeParams, WebRuntimeState, WebRuntimeStateName, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WebSourceNotice, WebSourceState, WindowFocusParams, WindowFocusResult, WindowGroup, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, isInconclusive, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };
10891
+ export { AbsPath, AccountAgent, AccountAgentDetail, AccountAgentRun, AccountAgentRunSort, AccountAgentRunStatus, AccountAgentVariable, AccountAgentsFavoriteParams, AccountAgentsFavoriteResult, AccountAgentsGetParams, AccountAgentsGetResult, AccountAgentsListParams, AccountAgentsListResult, AccountAgentsRunsParams, AccountAgentsRunsResult, AccountGap, AccountReadState, AccountReset, AccountResetSource, AccountRowId, AccountUsage, AccountVaultCopyParams, AccountVaultCopyResult, AccountVaultListParams, AccountVaultListResult, AppAccount, AppFeatureStatus, AppInfo, AppInstall, AppInstance, AppKey, AppProfile, AppProfileId, AppProfileLocator, AppSupport, AppUsageReading, AppWindowInfo, AppsAccountsListParams, AppsAccountsListResult, AppsAccountsResetsParams, AppsAccountsResetsResult, AppsAccountsUsageParams, AppsAccountsUsageResult, AppsChatsChangedEvent, AppsChatsColdParams, AppsChatsColdResult, AppsChatsListParams, AppsChatsListResult, AppsChatsOpenParams, AppsChatsPlaceParams, AppsChatsPlaceResult, AppsChatsStarParams, AppsChatsStarResult, AppsChatsTitlesCheckParams, AppsChatsTitlesCheckResult, AppsChatsTitlesPushParams, AppsChatsTitlesPushResult, AppsChatsWatchParams, AppsChatsWatchResult, AppsChatsWatchStateEvent, AppsInstancesListParams, AppsInstancesListResult, AppsListParams, AppsListResult, AppsOpenParams, AppsOpenResult, AppsProfilesListParams, AppsProfilesListResult, AppsProfilesRemoveParams, AppsProfilesRemoveResult, AppsProfilesSaveParams, AppsProfilesSaveResult, AppsProjectsCopyParams, AppsProjectsCopyResult, AppsProjectsCreateParams, AppsProjectsCreateResult, AppsProjectsFileManyParams, AppsProjectsFileManyResult, AppsProjectsFileParams, AppsProjectsFileResult, AppsProjectsImportPinsParams, AppsProjectsImportPinsResult, AppsProjectsMoveParams, AppsProjectsMoveResult, AppsProjectsToWindowParams, AppsProjectsToWindowResult, AppsProjectsUnfileParams, AppsProjectsUnfileResult, AppsProjectsUpdateParams, AppsProjectsUpdateResult, AppsSpendParams, AppsSpendResult, AppsSyncRunParams, AppsSyncStatusParams, AppsSyncStatusResult, AppsWindowActionResult, AppsWindowsAddParams, AppsWindowsGroupsParams, AppsWindowsGroupsResult, AppsWindowsListParams, AppsWindowsListResult, AppsWindowsOpenParams, AppsWindowsProcessesParams, AppsWindowsProcessesResult, AppsWindowsRefreshUsageParams, AppsWindowsReloadParams, AppsWindowsReopenParams, AppsWindowsReopenResult, AppsWindowsRestartParams, AppsWindowsSaveNamesParams, AppsWindowsSetRemoteControlParams, AppsWindowsSetRemoteControlResult, AppsWindowsShownParams, AppsWindowsShownResult, AppsWindowsUpdateAndReopenParams, AppsWindowsUpdateAndReopenResult, AppsWindowsUpdateStateParams, AppsWindowsUpdateStateResult, AudioDevice, AudioDevicesParams, AudioDevicesResult, AudioLevelsParams, AudioLevelsResult, AudioPlayParams, AudioPlayResult, AudioRecordParams, AudioRecordResult, AudioSetLevelsParams, AutomationScriptParams, AutomationScriptResult, BrowserCallError, BrowserCallParams, BrowserCallPhase, BrowserCallResult, BrowserClientInstance, BrowserDisconnectParams, BrowserDisconnectResult, BrowserInvokeEvent, BrowserKind, BrowserLogMessage, BrowserLogParams, BrowserLogResult, BrowserPairCodeParams, BrowserPairCodeResult, BrowserPairRequest, BrowserPairResetParams, BrowserPairResult, BrowserProgressEvent, BrowserProgressParams, BrowserProgressResult, BrowserRegisterParams, BrowserRegisterResult, BrowserResetCountersParams, BrowserResetCountersResult, BrowserResultParams, BrowserResultResult, BrowserSession, BrowserSessionState, BrowserSessionsChangedEvent, BrowserSessionsParams, BrowserSessionsResult, BrowserSetEnabledParams, BrowserSetEnabledResult, BrowserToolMetric, BrowserToolMetricsParams, BrowserToolMetricsResult, CONTRACT_SHA256, CalendarCreateParams, CalendarCreateResult, CalendarEvent, CalendarListParams, CalendarListResult, type CatalogTool, type CellState, ChatAppProject, ChatFamily, ChatHidden, ChatId, ChatLastUse, ChatPin, ChatPlace, ChatProject, ChatProjectId, ChatRow, ChatRunning, ChatWindow, ClipboardReadParams, ClipboardReadResult, ClipboardWriteParams, ClipboardWriteResult, CodingActiveElsewhere, CodingActivityParams, CodingActivityResult, CodingAgentSelectionParams, CodingAgentSetParams, CodingAgentSetResult, CodingAgentsAccessParams, CodingAgentsAccessResult, CodingChangedEvent, CodingChatPreference, CodingClientRequestId, CodingDiscoverParams, CodingDiscoverResult, CodingDiscoveredChat, CodingFolderCheck, CodingFoldersCheckParams, CodingFoldersCheckResult, CodingFoldersCreateParams, CodingFoldersCreateResult, CodingFoldersRecentParams, CodingFoldersRecentResult, CodingGapEvent, CodingHistoryBlocked, CodingHistoryFailure, CodingHistoryImportMissingParams, CodingHistoryImportMissingResult, CodingHistoryParams, CodingHistoryProgressEvent, CodingHistoryRecord, CodingHistoryResult, CodingHistoryRun, CodingHistoryStep, CodingImportNextParams, CodingItemEvent, CodingItemFullParams, CodingItemFullResult, CodingOptionsSetParams, CodingOptionsSetResult, CodingPlanMissingParams, CodingPrefsListParams, CodingPrefsListResult, CodingPrefsSetParams, CodingPrefsSetResult, CodingProviderBinary, CodingProviderName, CodingProviderProblem, CodingProviderStatus, CodingProvidersParams, CodingProvidersResult, CodingQuotaWindow, CodingRecentFolder, CodingRecentRow, CodingRecentSeenParams, CodingRecentSeenResult, CodingReconcileParams, CodingReconcileResult, CodingRunRecord, CodingRunStatus, CodingRunUsage, CodingRunsListParams, CodingRunsListResult, CodingSearchParams, CodingSearchResult, CodingSendParams, CodingSendResult, CodingServiceCredentials, CodingServiceProgress, CodingSessionAgent, CodingSessionAgentPart, CodingSessionRecord, CodingSessionWatchParams, CodingSessionWatchResult, CodingSessionsListParams, CodingSessionsListResult, CodingStartParams, CodingStartResult, CodingStartedBy, CodingStopElsewhereParams, CodingStopElsewhereResult, CodingStopParams, CodingStopResult, CodingTakeoverParams, CodingTakeoverResult, CodingTitleStatus, CodingTitlesStatusParams, CodingTitlesStatusResult, CodingTranscriptItem, CodingTranscriptRawParams, CodingTranscriptRawResult, CodingTranscriptReadParams, CodingTranscriptReadResult, CodingWatchParams, CodingWatchResult, CodingWatchStateEvent, ColdChat, ContactDetail, ContactLabeled, ContactSummary, ContactsGetParams, ContactsGetResult, ContactsSearchParams, ContactsSearchResult, ContractHash, CoreToServiceMsg, DEFAULT_MAX_FRAME_PAYLOAD_BYTES, DEFAULT_MAX_MESSAGE_BYTES, DEFAULT_WINDOW_BYTES, DISCOVERY_FILE, DOCUMENTS_MAX_TEXT_CHARS, DesktopHealth, DeviceId, DiagErrorEntry, DiagErrorKind, DiagErrorStatus, DiagErrorsChangedEvent, DiagErrorsListParams, DiagErrorsListResult, DiagErrorsReportParams, DiagErrorsReportResult, DiagProcess, DocumentsImageResizeParams, DocumentsImageResizeResult, DocumentsOcrLine, DocumentsOcrParams, DocumentsOcrResult, DocumentsOfficeGenerateParams, DocumentsOfficeGenerateResult, DocumentsParagraph, DocumentsPdfPage, DocumentsPdfTextParams, DocumentsPdfTextResult, DocumentsSheet, EXCLUDED_TOOLS, EntitiesNerParams, EntitiesNerResult, EntitiesPiiParams, EntitiesPiiResult, EntitySpan, ExecCwdEvent, ExecExitedEvent, ExecJobId, ExecJobInfo, ExecJobListParams, ExecJobListResult, ExecJobOutputParams, ExecJobOutputResult, ExecJobStartParams, ExecJobStartResult, ExecJobStopParams, ExecJobStopResult, ExecListParams, ExecListResult, ExecPtyKillParams, ExecPtyKillResult, ExecPtyResizeParams, ExecPtyResizeResult, ExecPtySignalParams, ExecPtySignalResult, ExecPtyStartParams, ExecPtyStartResult, ExecPtyWriteParams, ExecPtyWriteResult, ExecRunParams, ExecRunResult, ExecTitleEvent, FIELDS_SINCE, type FieldsSincePath, FrameHeader, FsChange, FsChangedEvent, FsCopyParams, FsCopyResult, FsDeleteParams, FsDeleteResult, FsEncoding, FsEntry, FsInfoParams, FsInfoResult, FsKind, FsListParams, FsListResult, FsMkdirParams, FsMkdirResult, FsMoveParams, FsMoveResult, FsPatchEditApplied, FsPatchParams, FsPatchResult, FsReadParams, FsReadResult, FsReadStreamParams, FsReadStreamResult, FsSearchContentParams, FsSearchContentResult, FsSearchIndexParams, FsSearchIndexResult, FsSearchPathsParams, FsSearchPathsResult, FsStatParams, FsStatResult, FsWatchEventsParams, FsWatchEventsResult, FsWatchId, FsWatchParams, FsWatchResult, FsWatchStartParams, FsWatchStartResult, FsWatchStopParams, FsWatchStopResult, FsWriteParams, FsWriteResult, GIT_MAX_OUTPUT_CHARS, GitAddParams, GitBranchParams, GitBranchResult, GitCloneParams, GitCommitParams, GitCommitResult, GitDiffParams, GitDiffResult, GitLogCommit, GitLogParams, GitLogResult, GitOutputResult, GitPullParams, GitPushParams, GitStashParams, GitStatusFile, GitStatusParams, GitStatusResult, InputHotkeyParams, InputHotkeyResult, InputKey, InputKeyboardSettingsParams, InputKeyboardSettingsResult, InputMouseClickParams, InputMouseClickResult, InputMouseMoveParams, InputMouseMoveResult, InputPoint, InputSetKeyboardSettingsParams, InputTypeTextParams, InputTypeTextResult, InstanceStatus, LEGACY_ACTIONS, LEGACY_DISPATCHERS, type LegacyDisposition, LocationGetParams, LocationGetResult, MATRX_EXTENSION_IDS, MailAccount, MailAccountsParams, MailAccountsResult, MailListParams, MailListResult, MailMessage, MailSendParams, MailSendResult, MessagesChat, MessagesChatsParams, MessagesChatsResult, MessagesListParams, MessagesListResult, MessagesMessage, MessagesSendParams, MessagesSendResult, NULL_SINCE, NetAddress, NetBluetoothDevice, NetBluetoothParams, NetBluetoothResult, NetDevice, NetDevicesParams, NetDevicesResult, NetDownloadParams, NetDownloadResult, NetInfoParams, NetInfoResult, NetInterface, NetMdnsParams, NetMdnsResult, NetMdnsService, NetScanParams, NetScanResult, NetWifiNetwork, NetWifiParams, NetWifiResult, NoteEntry, NotesFolder, NotesFoldersParams, NotesFoldersResult, NotesListParams, NotesListResult, NotesMatch, NotesReadParams, NotesReadResult, NotesSearchParams, NotesSearchResult, NotesWriteParams, NotesWriteResult, OpName, OsGrantState, OsPermissionName, OsRequirementName, OutlookAccount, OutlookDraftParams, OutlookDraftResult, OutlookListParams, OutlookListResult, OutlookMessage, OutlookReadParams, OutlookReadResult, OutlookStatusParams, OutlookStatusResult, PERMISSIONS_SINCE, PROTOCOL_MAJOR, PROTOCOL_MINOR, PROTOCOL_VERSION, Photo, PhotosGetParams, PhotosGetResult, PhotosSearchParams, PhotosSearchResult, PiiKind, PowerEnergy, PowerHistoryParams, PowerHistoryPoint, PowerHistoryResult, PowerPreventSleepParams, PowerPreventSleepResult, PowerStatusParams, PowerStatusResult, ProcInfo, ProcKillParams, ProcKillResult, ProcListParams, ProcListResult, ProcPort, ProcPortsParams, ProcPortsResult, ProcSort, ProjectMoveChat, ProjectMoveGroup, ProjectMoveOutcome, ProjectMovePin, ProjectMoveSkip, ProtocolVersion, PtyInfo, REASONS_SINCE, RELAY_CALL_HELLO_ID, RELAY_CALL_REQUEST_ID, RELAY_CALL_VERSION_HEADER, RegistryValue, RegistryValueType, RelayAuthExpiringEvent, RelayCallEnvelope, RelayCallHello, RelayCallRequest, RelayCallResponse, RelayDeviceStatusEvent, RelayHopConnectionEnd, RelayHopEnvelopeHeader, RelayStatusResponse, Reminder, RemindersCreateParams, RemindersCreateResult, RemindersListParams, RemindersListResult, RequestId, ResourceId, ResourceInfo, ResourcesActivityParams, ResourcesActivityResult, ResourcesDisk, ResourcesIncident, ResourcesIncidentsParams, ResourcesIncidentsResult, ResourcesJob, ResourcesJobKind, ResourcesPressure, ResourcesProcess, ResourcesSample, ResourcesSnapshotParams, ResourcesSnapshotResult, ResourcesStopJobParams, ResourcesStopJobResult, ResourcesStrain, ResourcesVerdict, SERVICE_MAX_FRAME_BYTES, ScheduleCancelParams, ScheduleCancelResult, ScheduleCreateParams, ScheduleCreateResult, ScheduleListParams, ScheduleListResult, ScheduleRun, ScheduledTask, ScreenCaptureParams, ScreenCaptureResult, ScreenDisplay, ScreenListParams, ScreenListResult, ServiceCancel, ServiceErrorMsg, ServiceHello, ServiceName, ServicePing, ServicePong, ServiceProgressMsg, ServiceRequest, ServiceResponse, ServiceShutdown, ServiceToCoreMsg, ServiceToken, ServiceWelcome, SessionAttachParams, SessionAttachResult, SessionControlChangedEvent, SessionDetachParams, SessionDetachResult, SessionIdentifyParams, SessionIdentifyResult, SessionListParams, SessionListResult, SessionReleaseParams, SessionReleaseResult, ShownSection, Signal, SpendAccount, SpendChat, SpendDay, SpendHelper, SpendIdle, SpendIdleScope, SpendLive, SpendModel, SpendScopes, SpendSplit, SpendStart, StackErrorsParams, StackErrorsResult, StackEvent, StackLogsParams, StackLogsResult, StackRunResult, StackServer, StackServerActionParams, StackServerActionResult, StackServerName, StackStartParams, StackStateParams, StackStateResult, StackStopParams, StackTone, StaleTitleWindow, type StatusCell, type StatusEvidence, type StatusRow, SysinfoGetParams, SysinfoGetResult, SysinfoGraphicsAdapter, SysinfoHardwareParams, SysinfoHardwareResult, SystemNotifyParams, SystemNotifyResult, SystemOpenPathParams, SystemOpenPathResult, SystemOpenSettingsParams, SystemOpenSettingsResult, SystemOpenUrlParams, SystemOpenUrlResult, SystemSettingsPane, TOOL_CATALOG, TOOL_GROUPS, TOOL_LEVELS, TOOL_PLATFORMS, TitleCopies, TitleMismatch, type ToolGroup, type ToolGroupId, ToolLevel, ToolLevelResult, ToolName, ToolOutcome, type ToolPath, ToolPlatform, ToolResultsFile, type ToolState, type ToolStatus, ToolTransport, ToolsParseFile, ToolsServiceProgress, ToolsWebBrowserFetchParams, ToolsWebBrowserFetchResult, ToolsWebScrapePage, ToolsWebScrapeParams, ToolsWebScrapeResult, ToolsWebSearchParams, VERSIONED_RESULT_OPS, VaultFieldSummary, VaultItemKind, VaultItemSummary, WEB_MAX_TEXT_CHARS, WebAttachTarget, WebBrowserFetchParams, WebBrowserFetchResult, WebFetchParams, WebFetchResult, WebHeader, WebLand, WebLogCaller, WebLogClearParams, WebLogClearResult, WebLogEntry, WebLogListParams, WebLogListResult, WebLogResult, WebLogVia, WebNotSavedReason, WebOutboxDiscardParams, WebOutboxDiscardResult, WebOutboxItem, WebOutboxListParams, WebOutboxListResult, WebOutboxRetryParams, WebOutboxRetryResult, WebProgressEvent, WebResearchFetchParams, WebResearchFetchResult, WebResearchItem, WebResearchItemState, WebResearchQueueParams, WebResearchQueueResult, WebRuntimeParams, WebRuntimeState, WebRuntimeStateName, WebScrapePage, WebScrapeParams, WebScrapeResult, WebSearchHit, WebSearchParams, WebSearchQueryResult, WebSearchResult, WebSourceNotice, WebSourceState, WindowFocusParams, WindowFocusResult, WindowGroup, WindowInfo, WindowListParams, WindowListResult, WindowMinimizeParams, WindowMinimizeResult, WindowMoveParams, WindowMoveResult, WindowRemoteControl, WindowsEvent, WindowsEventLogParams, WindowsEventLogResult, WindowsFeature, WindowsFeaturesParams, WindowsFeaturesResult, WindowsRegistryReadParams, WindowsRegistryReadResult, WindowsRegistryWriteParams, WindowsRegistryWriteResult, WindowsService, WindowsServiceControlParams, WindowsServiceControlResult, WindowsServicesParams, WindowsServicesResult, announcedVersion, buildToolStatus, builtOps, compareVersions, epochMs, forPeer, isInconclusive, knows, negotiate, nonNegInt, refusedOps, renderToolStatusMarkdown, sharedOpsBlocking, statusForPeer, toolsSending, u32, versionSubprotocol };