@ai-matrx/desktop-protocol 0.21.21 → 0.21.23

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/react.d.cts CHANGED
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  * never drift (see the `_assert*` lines there).
8
8
  */
9
9
  type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
10
- type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed";
10
+ type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation";
11
11
  interface ErrorData {
12
12
  reason?: ErrorReasonName | undefined;
13
13
  cap?: string | undefined;
@@ -1896,6 +1896,62 @@ declare const OPS: {
1896
1896
  readonly since: "1.11";
1897
1897
  readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1898
1898
  };
1899
+ readonly "apps.chats.titles_check": {
1900
+ readonly params: z.ZodObject<{
1901
+ app_key: z.ZodString;
1902
+ }, z.core.$strict>;
1903
+ readonly result: z.ZodObject<{
1904
+ app_key: z.ZodString;
1905
+ chats_total: z.ZodInt;
1906
+ chats_in_several_windows: z.ZodInt;
1907
+ chats_with_a_different_name: z.ZodInt;
1908
+ copies_to_write: z.ZodInt;
1909
+ chats: z.ZodArray<z.ZodObject<{
1910
+ chat_id: z.ZodString;
1911
+ title: z.ZodString;
1912
+ title_source: z.ZodEnum<{
1913
+ user: "user";
1914
+ auto: "auto";
1915
+ }>;
1916
+ decided_from: z.ZodString;
1917
+ kind: z.ZodEnum<{
1918
+ user_vs_auto: "user_vs_auto";
1919
+ user_vs_user: "user_vs_user";
1920
+ auto_vs_auto: "auto_vs_auto";
1921
+ source_only: "source_only";
1922
+ }>;
1923
+ windows: z.ZodArray<z.ZodString>;
1924
+ differs_in: z.ZodArray<z.ZodObject<{
1925
+ window: z.ZodString;
1926
+ copies: z.ZodInt;
1927
+ titles: z.ZodArray<z.ZodObject<{
1928
+ title: z.ZodString;
1929
+ source: z.ZodString;
1930
+ }, z.core.$strict>>;
1931
+ }, z.core.$strict>>;
1932
+ }, z.core.$strict>>;
1933
+ }, z.core.$strict>;
1934
+ readonly kind: "unary";
1935
+ readonly since: "1.29";
1936
+ readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1937
+ };
1938
+ readonly "apps.chats.titles_push": {
1939
+ readonly params: z.ZodObject<{
1940
+ app_key: z.ZodString;
1941
+ chat_id: z.ZodOptional<z.ZodString>;
1942
+ dry_run: z.ZodOptional<z.ZodBoolean>;
1943
+ }, z.core.$strict>;
1944
+ readonly result: z.ZodObject<{
1945
+ app_key: z.ZodString;
1946
+ written: z.ZodInt;
1947
+ chats_fixed: z.ZodInt;
1948
+ failed: z.ZodInt;
1949
+ chats_with_a_different_name: z.ZodInt;
1950
+ }, z.core.$strict>;
1951
+ readonly kind: "unary";
1952
+ readonly since: "1.29";
1953
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1954
+ };
1899
1955
  readonly "apps.spend": {
1900
1956
  readonly params: z.ZodObject<{
1901
1957
  app_key: z.ZodString;
@@ -3691,6 +3747,192 @@ declare const OPS: {
3691
3747
  readonly since: "1.26";
3692
3748
  readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
3693
3749
  };
3750
+ readonly "browser.register": {
3751
+ readonly params: z.ZodObject<{
3752
+ client_instance: z.ZodString;
3753
+ client_label: z.ZodString;
3754
+ browser: z.ZodEnum<{
3755
+ other: "other";
3756
+ chrome: "chrome";
3757
+ edge: "edge";
3758
+ brave: "brave";
3759
+ arc: "arc";
3760
+ opera: "opera";
3761
+ vivaldi: "vivaldi";
3762
+ chromium: "chromium";
3763
+ firefox: "firefox";
3764
+ }>;
3765
+ extension_version: z.ZodString;
3766
+ account_token: z.ZodNullable<z.ZodString>;
3767
+ }, z.core.$strict>;
3768
+ readonly result: z.ZodObject<{
3769
+ session: z.ZodObject<{
3770
+ client_instance: z.ZodString;
3771
+ client_label: z.ZodString;
3772
+ browser: z.ZodEnum<{
3773
+ other: "other";
3774
+ chrome: "chrome";
3775
+ edge: "edge";
3776
+ brave: "brave";
3777
+ arc: "arc";
3778
+ opera: "opera";
3779
+ vivaldi: "vivaldi";
3780
+ chromium: "chromium";
3781
+ firefox: "firefox";
3782
+ }>;
3783
+ extension_version: z.ZodString;
3784
+ state: z.ZodEnum<{
3785
+ connected: "connected";
3786
+ different_account: "different_account";
3787
+ extension_signed_out: "extension_signed_out";
3788
+ device_signed_out: "device_signed_out";
3789
+ unverified: "unverified";
3790
+ }>;
3791
+ routable: z.ZodBoolean;
3792
+ account_email: z.ZodNullable<z.ZodString>;
3793
+ connected_at_ms: z.ZodInt;
3794
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
3795
+ calls: z.ZodInt;
3796
+ errors: z.ZodInt;
3797
+ p50_ms: z.ZodNullable<z.ZodInt>;
3798
+ p95_ms: z.ZodNullable<z.ZodInt>;
3799
+ awaiting_confirmation: z.ZodBoolean;
3800
+ }, z.core.$strict>;
3801
+ }, z.core.$strict>;
3802
+ readonly kind: "unary";
3803
+ readonly since: "1.28";
3804
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INVALID_PARAMS", "INTERNAL"];
3805
+ };
3806
+ readonly "browser.result": {
3807
+ readonly params: z.ZodObject<{
3808
+ call_id: z.ZodString;
3809
+ ok: z.ZodBoolean;
3810
+ result: z.ZodUnknown;
3811
+ error: z.ZodNullable<z.ZodObject<{
3812
+ message: z.ZodString;
3813
+ code: z.ZodNullable<z.ZodString>;
3814
+ }, z.core.$strict>>;
3815
+ }, z.core.$strict>;
3816
+ readonly result: z.ZodObject<{
3817
+ accepted: z.ZodBoolean;
3818
+ }, z.core.$strict>;
3819
+ readonly kind: "unary";
3820
+ readonly since: "1.28";
3821
+ readonly errors: readonly ["AUTH_FORBIDDEN", "PAYLOAD_TOO_LARGE"];
3822
+ };
3823
+ readonly "browser.progress": {
3824
+ readonly params: z.ZodObject<{
3825
+ call_id: z.ZodString;
3826
+ phase: z.ZodEnum<{
3827
+ running: "running";
3828
+ awaiting_confirmation: "awaiting_confirmation";
3829
+ }>;
3830
+ }, z.core.$strict>;
3831
+ readonly result: z.ZodObject<{
3832
+ accepted: z.ZodBoolean;
3833
+ }, z.core.$strict>;
3834
+ readonly kind: "unary";
3835
+ readonly since: "1.28";
3836
+ readonly errors: readonly ["AUTH_FORBIDDEN"];
3837
+ };
3838
+ readonly "browser.sessions": {
3839
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3840
+ readonly result: z.ZodObject<{
3841
+ enabled: z.ZodBoolean;
3842
+ owner_signed_in: z.ZodBoolean;
3843
+ sessions: z.ZodArray<z.ZodObject<{
3844
+ client_instance: z.ZodString;
3845
+ client_label: z.ZodString;
3846
+ browser: z.ZodEnum<{
3847
+ other: "other";
3848
+ chrome: "chrome";
3849
+ edge: "edge";
3850
+ brave: "brave";
3851
+ arc: "arc";
3852
+ opera: "opera";
3853
+ vivaldi: "vivaldi";
3854
+ chromium: "chromium";
3855
+ firefox: "firefox";
3856
+ }>;
3857
+ extension_version: z.ZodString;
3858
+ state: z.ZodEnum<{
3859
+ connected: "connected";
3860
+ different_account: "different_account";
3861
+ extension_signed_out: "extension_signed_out";
3862
+ device_signed_out: "device_signed_out";
3863
+ unverified: "unverified";
3864
+ }>;
3865
+ routable: z.ZodBoolean;
3866
+ account_email: z.ZodNullable<z.ZodString>;
3867
+ connected_at_ms: z.ZodInt;
3868
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
3869
+ calls: z.ZodInt;
3870
+ errors: z.ZodInt;
3871
+ p50_ms: z.ZodNullable<z.ZodInt>;
3872
+ p95_ms: z.ZodNullable<z.ZodInt>;
3873
+ awaiting_confirmation: z.ZodBoolean;
3874
+ }, z.core.$strict>>;
3875
+ }, z.core.$strict>;
3876
+ readonly kind: "unary";
3877
+ readonly since: "1.28";
3878
+ readonly errors: readonly ["INTERNAL"];
3879
+ };
3880
+ readonly "browser.disconnect": {
3881
+ readonly params: z.ZodObject<{
3882
+ client_instance: z.ZodString;
3883
+ }, z.core.$strict>;
3884
+ readonly result: z.ZodObject<{
3885
+ disconnected: z.ZodBoolean;
3886
+ }, z.core.$strict>;
3887
+ readonly kind: "unary";
3888
+ readonly since: "1.28";
3889
+ readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN"];
3890
+ };
3891
+ readonly "browser.set_enabled": {
3892
+ readonly params: z.ZodObject<{
3893
+ enabled: z.ZodBoolean;
3894
+ }, z.core.$strict>;
3895
+ readonly result: z.ZodObject<{
3896
+ enabled: z.ZodBoolean;
3897
+ }, z.core.$strict>;
3898
+ readonly kind: "unary";
3899
+ readonly since: "1.28";
3900
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3901
+ };
3902
+ readonly "browser.pair_code": {
3903
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3904
+ readonly result: z.ZodObject<{
3905
+ code: z.ZodString;
3906
+ }, z.core.$strict>;
3907
+ readonly kind: "unary";
3908
+ readonly since: "1.28";
3909
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3910
+ };
3911
+ readonly "browser.pair_reset": {
3912
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3913
+ readonly result: z.ZodObject<{
3914
+ code: z.ZodString;
3915
+ }, z.core.$strict>;
3916
+ readonly kind: "unary";
3917
+ readonly since: "1.28";
3918
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3919
+ };
3920
+ readonly "browser.call": {
3921
+ readonly params: z.ZodObject<{
3922
+ tool: z.ZodString;
3923
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3924
+ client_instance: z.ZodOptional<z.ZodString>;
3925
+ timeout_ms: z.ZodOptional<z.ZodInt>;
3926
+ }, z.core.$strict>;
3927
+ readonly result: z.ZodObject<{
3928
+ client_instance: z.ZodString;
3929
+ result: z.ZodUnknown;
3930
+ duration_ms: z.ZodInt;
3931
+ }, z.core.$strict>;
3932
+ readonly kind: "unary";
3933
+ readonly since: "1.28";
3934
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RESOURCE_GONE", "PAYLOAD_TOO_LARGE", "INTERNAL"];
3935
+ };
3694
3936
  };
3695
3937
  type OpName = keyof typeof OPS;
3696
3938
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
@@ -3803,6 +4045,24 @@ declare const EVENTS: {
3803
4045
  total_signatures: z.ZodInt;
3804
4046
  waiting: z.ZodInt;
3805
4047
  }, z.core.$strict>;
4048
+ readonly "browser.invoke": z.ZodObject<{
4049
+ call_id: z.ZodString;
4050
+ tool: z.ZodString;
4051
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4052
+ deadline_ms: z.ZodInt;
4053
+ }, z.core.$strict>;
4054
+ readonly "browser.sessions_changed": z.ZodObject<{
4055
+ count: z.ZodInt;
4056
+ enabled: z.ZodBoolean;
4057
+ }, z.core.$strict>;
4058
+ readonly "browser.progress": z.ZodObject<{
4059
+ call_id: z.ZodString;
4060
+ client_instance: z.ZodString;
4061
+ phase: z.ZodEnum<{
4062
+ running: "running";
4063
+ awaiting_confirmation: "awaiting_confirmation";
4064
+ }>;
4065
+ }, z.core.$strict>;
3806
4066
  };
3807
4067
 
3808
4068
  type DesktopClientStatus =
package/dist/react.d.ts CHANGED
@@ -7,7 +7,7 @@ import { z } from 'zod';
7
7
  * never drift (see the `_assert*` lines there).
8
8
  */
9
9
  type ErrorCodeName = "AUTH_REQUIRED" | "AUTH_INVALID" | "AUTH_EXPIRED" | "AUTH_FORBIDDEN" | "AUTH_DEVICE_REVOKED" | "PERMISSION_DENIED_OS" | "NOT_FOUND" | "CONFLICT" | "INVALID_PARAMS" | "RESOURCE_BUSY" | "RESOURCE_GONE" | "CANCELLED" | "TIMEOUT" | "PLATFORM_UNSUPPORTED" | "RATE_LIMITED" | "INTERNAL" | "PROTOCOL_VERSION_UNSUPPORTED" | "PROTOCOL_ERROR" | "UNKNOWN_OPERATION" | "DEVICE_OFFLINE" | "PAYLOAD_TOO_LARGE";
10
- type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed";
10
+ type ErrorReasonName = "not_a_directory" | "is_a_directory" | "directory_not_empty" | "already_exists" | "stale_write" | "binary_content" | "not_utf8_boundary" | "patch_no_match" | "patch_ambiguous" | "resource_exited" | "resource_expired" | "control_taken" | "window_exhausted" | "runtime_not_installed" | "model_not_installed" | "unsupported_media" | "download_failed" | "service_starting" | "service_restarted" | "service_failed" | "browser_not_connected" | "browser_ambiguous" | "browser_account_mismatch" | "browser_connection_off" | "awaiting_confirmation";
11
11
  interface ErrorData {
12
12
  reason?: ErrorReasonName | undefined;
13
13
  cap?: string | undefined;
@@ -1896,6 +1896,62 @@ declare const OPS: {
1896
1896
  readonly since: "1.11";
1897
1897
  readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1898
1898
  };
1899
+ readonly "apps.chats.titles_check": {
1900
+ readonly params: z.ZodObject<{
1901
+ app_key: z.ZodString;
1902
+ }, z.core.$strict>;
1903
+ readonly result: z.ZodObject<{
1904
+ app_key: z.ZodString;
1905
+ chats_total: z.ZodInt;
1906
+ chats_in_several_windows: z.ZodInt;
1907
+ chats_with_a_different_name: z.ZodInt;
1908
+ copies_to_write: z.ZodInt;
1909
+ chats: z.ZodArray<z.ZodObject<{
1910
+ chat_id: z.ZodString;
1911
+ title: z.ZodString;
1912
+ title_source: z.ZodEnum<{
1913
+ user: "user";
1914
+ auto: "auto";
1915
+ }>;
1916
+ decided_from: z.ZodString;
1917
+ kind: z.ZodEnum<{
1918
+ user_vs_auto: "user_vs_auto";
1919
+ user_vs_user: "user_vs_user";
1920
+ auto_vs_auto: "auto_vs_auto";
1921
+ source_only: "source_only";
1922
+ }>;
1923
+ windows: z.ZodArray<z.ZodString>;
1924
+ differs_in: z.ZodArray<z.ZodObject<{
1925
+ window: z.ZodString;
1926
+ copies: z.ZodInt;
1927
+ titles: z.ZodArray<z.ZodObject<{
1928
+ title: z.ZodString;
1929
+ source: z.ZodString;
1930
+ }, z.core.$strict>>;
1931
+ }, z.core.$strict>>;
1932
+ }, z.core.$strict>>;
1933
+ }, z.core.$strict>;
1934
+ readonly kind: "unary";
1935
+ readonly since: "1.29";
1936
+ readonly errors: readonly ["NOT_FOUND", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1937
+ };
1938
+ readonly "apps.chats.titles_push": {
1939
+ readonly params: z.ZodObject<{
1940
+ app_key: z.ZodString;
1941
+ chat_id: z.ZodOptional<z.ZodString>;
1942
+ dry_run: z.ZodOptional<z.ZodBoolean>;
1943
+ }, z.core.$strict>;
1944
+ readonly result: z.ZodObject<{
1945
+ app_key: z.ZodString;
1946
+ written: z.ZodInt;
1947
+ chats_fixed: z.ZodInt;
1948
+ failed: z.ZodInt;
1949
+ chats_with_a_different_name: z.ZodInt;
1950
+ }, z.core.$strict>;
1951
+ readonly kind: "unary";
1952
+ readonly since: "1.29";
1953
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
1954
+ };
1899
1955
  readonly "apps.spend": {
1900
1956
  readonly params: z.ZodObject<{
1901
1957
  app_key: z.ZodString;
@@ -3691,6 +3747,192 @@ declare const OPS: {
3691
3747
  readonly since: "1.26";
3692
3748
  readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
3693
3749
  };
3750
+ readonly "browser.register": {
3751
+ readonly params: z.ZodObject<{
3752
+ client_instance: z.ZodString;
3753
+ client_label: z.ZodString;
3754
+ browser: z.ZodEnum<{
3755
+ other: "other";
3756
+ chrome: "chrome";
3757
+ edge: "edge";
3758
+ brave: "brave";
3759
+ arc: "arc";
3760
+ opera: "opera";
3761
+ vivaldi: "vivaldi";
3762
+ chromium: "chromium";
3763
+ firefox: "firefox";
3764
+ }>;
3765
+ extension_version: z.ZodString;
3766
+ account_token: z.ZodNullable<z.ZodString>;
3767
+ }, z.core.$strict>;
3768
+ readonly result: z.ZodObject<{
3769
+ session: z.ZodObject<{
3770
+ client_instance: z.ZodString;
3771
+ client_label: z.ZodString;
3772
+ browser: z.ZodEnum<{
3773
+ other: "other";
3774
+ chrome: "chrome";
3775
+ edge: "edge";
3776
+ brave: "brave";
3777
+ arc: "arc";
3778
+ opera: "opera";
3779
+ vivaldi: "vivaldi";
3780
+ chromium: "chromium";
3781
+ firefox: "firefox";
3782
+ }>;
3783
+ extension_version: z.ZodString;
3784
+ state: z.ZodEnum<{
3785
+ connected: "connected";
3786
+ different_account: "different_account";
3787
+ extension_signed_out: "extension_signed_out";
3788
+ device_signed_out: "device_signed_out";
3789
+ unverified: "unverified";
3790
+ }>;
3791
+ routable: z.ZodBoolean;
3792
+ account_email: z.ZodNullable<z.ZodString>;
3793
+ connected_at_ms: z.ZodInt;
3794
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
3795
+ calls: z.ZodInt;
3796
+ errors: z.ZodInt;
3797
+ p50_ms: z.ZodNullable<z.ZodInt>;
3798
+ p95_ms: z.ZodNullable<z.ZodInt>;
3799
+ awaiting_confirmation: z.ZodBoolean;
3800
+ }, z.core.$strict>;
3801
+ }, z.core.$strict>;
3802
+ readonly kind: "unary";
3803
+ readonly since: "1.28";
3804
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INVALID_PARAMS", "INTERNAL"];
3805
+ };
3806
+ readonly "browser.result": {
3807
+ readonly params: z.ZodObject<{
3808
+ call_id: z.ZodString;
3809
+ ok: z.ZodBoolean;
3810
+ result: z.ZodUnknown;
3811
+ error: z.ZodNullable<z.ZodObject<{
3812
+ message: z.ZodString;
3813
+ code: z.ZodNullable<z.ZodString>;
3814
+ }, z.core.$strict>>;
3815
+ }, z.core.$strict>;
3816
+ readonly result: z.ZodObject<{
3817
+ accepted: z.ZodBoolean;
3818
+ }, z.core.$strict>;
3819
+ readonly kind: "unary";
3820
+ readonly since: "1.28";
3821
+ readonly errors: readonly ["AUTH_FORBIDDEN", "PAYLOAD_TOO_LARGE"];
3822
+ };
3823
+ readonly "browser.progress": {
3824
+ readonly params: z.ZodObject<{
3825
+ call_id: z.ZodString;
3826
+ phase: z.ZodEnum<{
3827
+ running: "running";
3828
+ awaiting_confirmation: "awaiting_confirmation";
3829
+ }>;
3830
+ }, z.core.$strict>;
3831
+ readonly result: z.ZodObject<{
3832
+ accepted: z.ZodBoolean;
3833
+ }, z.core.$strict>;
3834
+ readonly kind: "unary";
3835
+ readonly since: "1.28";
3836
+ readonly errors: readonly ["AUTH_FORBIDDEN"];
3837
+ };
3838
+ readonly "browser.sessions": {
3839
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3840
+ readonly result: z.ZodObject<{
3841
+ enabled: z.ZodBoolean;
3842
+ owner_signed_in: z.ZodBoolean;
3843
+ sessions: z.ZodArray<z.ZodObject<{
3844
+ client_instance: z.ZodString;
3845
+ client_label: z.ZodString;
3846
+ browser: z.ZodEnum<{
3847
+ other: "other";
3848
+ chrome: "chrome";
3849
+ edge: "edge";
3850
+ brave: "brave";
3851
+ arc: "arc";
3852
+ opera: "opera";
3853
+ vivaldi: "vivaldi";
3854
+ chromium: "chromium";
3855
+ firefox: "firefox";
3856
+ }>;
3857
+ extension_version: z.ZodString;
3858
+ state: z.ZodEnum<{
3859
+ connected: "connected";
3860
+ different_account: "different_account";
3861
+ extension_signed_out: "extension_signed_out";
3862
+ device_signed_out: "device_signed_out";
3863
+ unverified: "unverified";
3864
+ }>;
3865
+ routable: z.ZodBoolean;
3866
+ account_email: z.ZodNullable<z.ZodString>;
3867
+ connected_at_ms: z.ZodInt;
3868
+ last_call_at_ms: z.ZodNullable<z.ZodInt>;
3869
+ calls: z.ZodInt;
3870
+ errors: z.ZodInt;
3871
+ p50_ms: z.ZodNullable<z.ZodInt>;
3872
+ p95_ms: z.ZodNullable<z.ZodInt>;
3873
+ awaiting_confirmation: z.ZodBoolean;
3874
+ }, z.core.$strict>>;
3875
+ }, z.core.$strict>;
3876
+ readonly kind: "unary";
3877
+ readonly since: "1.28";
3878
+ readonly errors: readonly ["INTERNAL"];
3879
+ };
3880
+ readonly "browser.disconnect": {
3881
+ readonly params: z.ZodObject<{
3882
+ client_instance: z.ZodString;
3883
+ }, z.core.$strict>;
3884
+ readonly result: z.ZodObject<{
3885
+ disconnected: z.ZodBoolean;
3886
+ }, z.core.$strict>;
3887
+ readonly kind: "unary";
3888
+ readonly since: "1.28";
3889
+ readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN"];
3890
+ };
3891
+ readonly "browser.set_enabled": {
3892
+ readonly params: z.ZodObject<{
3893
+ enabled: z.ZodBoolean;
3894
+ }, z.core.$strict>;
3895
+ readonly result: z.ZodObject<{
3896
+ enabled: z.ZodBoolean;
3897
+ }, z.core.$strict>;
3898
+ readonly kind: "unary";
3899
+ readonly since: "1.28";
3900
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3901
+ };
3902
+ readonly "browser.pair_code": {
3903
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3904
+ readonly result: z.ZodObject<{
3905
+ code: z.ZodString;
3906
+ }, z.core.$strict>;
3907
+ readonly kind: "unary";
3908
+ readonly since: "1.28";
3909
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3910
+ };
3911
+ readonly "browser.pair_reset": {
3912
+ readonly params: z.ZodObject<{}, z.core.$strict>;
3913
+ readonly result: z.ZodObject<{
3914
+ code: z.ZodString;
3915
+ }, z.core.$strict>;
3916
+ readonly kind: "unary";
3917
+ readonly since: "1.28";
3918
+ readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
3919
+ };
3920
+ readonly "browser.call": {
3921
+ readonly params: z.ZodObject<{
3922
+ tool: z.ZodString;
3923
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3924
+ client_instance: z.ZodOptional<z.ZodString>;
3925
+ timeout_ms: z.ZodOptional<z.ZodInt>;
3926
+ }, z.core.$strict>;
3927
+ readonly result: z.ZodObject<{
3928
+ client_instance: z.ZodString;
3929
+ result: z.ZodUnknown;
3930
+ duration_ms: z.ZodInt;
3931
+ }, z.core.$strict>;
3932
+ readonly kind: "unary";
3933
+ readonly since: "1.28";
3934
+ readonly errors: readonly ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RESOURCE_GONE", "PAYLOAD_TOO_LARGE", "INTERNAL"];
3935
+ };
3694
3936
  };
3695
3937
  type OpName = keyof typeof OPS;
3696
3938
  type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
@@ -3803,6 +4045,24 @@ declare const EVENTS: {
3803
4045
  total_signatures: z.ZodInt;
3804
4046
  waiting: z.ZodInt;
3805
4047
  }, z.core.$strict>;
4048
+ readonly "browser.invoke": z.ZodObject<{
4049
+ call_id: z.ZodString;
4050
+ tool: z.ZodString;
4051
+ args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
4052
+ deadline_ms: z.ZodInt;
4053
+ }, z.core.$strict>;
4054
+ readonly "browser.sessions_changed": z.ZodObject<{
4055
+ count: z.ZodInt;
4056
+ enabled: z.ZodBoolean;
4057
+ }, z.core.$strict>;
4058
+ readonly "browser.progress": z.ZodObject<{
4059
+ call_id: z.ZodString;
4060
+ client_instance: z.ZodString;
4061
+ phase: z.ZodEnum<{
4062
+ running: "running";
4063
+ awaiting_confirmation: "awaiting_confirmation";
4064
+ }>;
4065
+ }, z.core.$strict>;
3806
4066
  };
3807
4067
 
3808
4068
  type DesktopClientStatus =