@ai-matrx/desktop-protocol 0.21.20 → 0.21.22
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/CHANGELOG.md +12 -0
- package/dist/client.cjs +137 -5
- package/dist/client.cjs.map +1 -1
- package/dist/client.d.cts +2 -2
- package/dist/client.d.ts +2 -2
- package/dist/client.js +137 -5
- package/dist/client.js.map +1 -1
- package/dist/index.cjs +214 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +335 -6
- package/dist/index.d.ts +335 -6
- package/dist/index.js +214 -10
- package/dist/index.js.map +1 -1
- package/dist/{models-Cx6q_tRu.d.cts → models-qdApKBdY.d.cts} +497 -2
- package/dist/{models-Cx6q_tRu.d.ts → models-qdApKBdY.d.ts} +497 -2
- package/dist/react.d.cts +206 -1
- package/dist/react.d.ts +206 -1
- package/generated/desktop-protocol.schema.json +717 -3
- package/package.json +2 -2
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;
|
|
@@ -3656,6 +3656,7 @@ declare const OPS: {
|
|
|
3656
3656
|
version: z.ZodNullable<z.ZodString>;
|
|
3657
3657
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
3658
3658
|
closed: z.ZodArray<z.ZodString>;
|
|
3659
|
+
closed_by_update: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3659
3660
|
}, z.core.$strict>;
|
|
3660
3661
|
readonly kind: "unary";
|
|
3661
3662
|
readonly since: "1.26";
|
|
@@ -3690,6 +3691,192 @@ declare const OPS: {
|
|
|
3690
3691
|
readonly since: "1.26";
|
|
3691
3692
|
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3692
3693
|
};
|
|
3694
|
+
readonly "browser.register": {
|
|
3695
|
+
readonly params: z.ZodObject<{
|
|
3696
|
+
client_instance: z.ZodString;
|
|
3697
|
+
client_label: z.ZodString;
|
|
3698
|
+
browser: z.ZodEnum<{
|
|
3699
|
+
other: "other";
|
|
3700
|
+
chrome: "chrome";
|
|
3701
|
+
edge: "edge";
|
|
3702
|
+
brave: "brave";
|
|
3703
|
+
arc: "arc";
|
|
3704
|
+
opera: "opera";
|
|
3705
|
+
vivaldi: "vivaldi";
|
|
3706
|
+
chromium: "chromium";
|
|
3707
|
+
firefox: "firefox";
|
|
3708
|
+
}>;
|
|
3709
|
+
extension_version: z.ZodString;
|
|
3710
|
+
account_token: z.ZodNullable<z.ZodString>;
|
|
3711
|
+
}, z.core.$strict>;
|
|
3712
|
+
readonly result: z.ZodObject<{
|
|
3713
|
+
session: z.ZodObject<{
|
|
3714
|
+
client_instance: z.ZodString;
|
|
3715
|
+
client_label: z.ZodString;
|
|
3716
|
+
browser: z.ZodEnum<{
|
|
3717
|
+
other: "other";
|
|
3718
|
+
chrome: "chrome";
|
|
3719
|
+
edge: "edge";
|
|
3720
|
+
brave: "brave";
|
|
3721
|
+
arc: "arc";
|
|
3722
|
+
opera: "opera";
|
|
3723
|
+
vivaldi: "vivaldi";
|
|
3724
|
+
chromium: "chromium";
|
|
3725
|
+
firefox: "firefox";
|
|
3726
|
+
}>;
|
|
3727
|
+
extension_version: z.ZodString;
|
|
3728
|
+
state: z.ZodEnum<{
|
|
3729
|
+
connected: "connected";
|
|
3730
|
+
different_account: "different_account";
|
|
3731
|
+
extension_signed_out: "extension_signed_out";
|
|
3732
|
+
device_signed_out: "device_signed_out";
|
|
3733
|
+
unverified: "unverified";
|
|
3734
|
+
}>;
|
|
3735
|
+
routable: z.ZodBoolean;
|
|
3736
|
+
account_email: z.ZodNullable<z.ZodString>;
|
|
3737
|
+
connected_at_ms: z.ZodInt;
|
|
3738
|
+
last_call_at_ms: z.ZodNullable<z.ZodInt>;
|
|
3739
|
+
calls: z.ZodInt;
|
|
3740
|
+
errors: z.ZodInt;
|
|
3741
|
+
p50_ms: z.ZodNullable<z.ZodInt>;
|
|
3742
|
+
p95_ms: z.ZodNullable<z.ZodInt>;
|
|
3743
|
+
awaiting_confirmation: z.ZodBoolean;
|
|
3744
|
+
}, z.core.$strict>;
|
|
3745
|
+
}, z.core.$strict>;
|
|
3746
|
+
readonly kind: "unary";
|
|
3747
|
+
readonly since: "1.28";
|
|
3748
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INVALID_PARAMS", "INTERNAL"];
|
|
3749
|
+
};
|
|
3750
|
+
readonly "browser.result": {
|
|
3751
|
+
readonly params: z.ZodObject<{
|
|
3752
|
+
call_id: z.ZodString;
|
|
3753
|
+
ok: z.ZodBoolean;
|
|
3754
|
+
result: z.ZodUnknown;
|
|
3755
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
3756
|
+
message: z.ZodString;
|
|
3757
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3758
|
+
}, z.core.$strict>>;
|
|
3759
|
+
}, z.core.$strict>;
|
|
3760
|
+
readonly result: z.ZodObject<{
|
|
3761
|
+
accepted: z.ZodBoolean;
|
|
3762
|
+
}, z.core.$strict>;
|
|
3763
|
+
readonly kind: "unary";
|
|
3764
|
+
readonly since: "1.28";
|
|
3765
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "PAYLOAD_TOO_LARGE"];
|
|
3766
|
+
};
|
|
3767
|
+
readonly "browser.progress": {
|
|
3768
|
+
readonly params: z.ZodObject<{
|
|
3769
|
+
call_id: z.ZodString;
|
|
3770
|
+
phase: z.ZodEnum<{
|
|
3771
|
+
running: "running";
|
|
3772
|
+
awaiting_confirmation: "awaiting_confirmation";
|
|
3773
|
+
}>;
|
|
3774
|
+
}, z.core.$strict>;
|
|
3775
|
+
readonly result: z.ZodObject<{
|
|
3776
|
+
accepted: z.ZodBoolean;
|
|
3777
|
+
}, z.core.$strict>;
|
|
3778
|
+
readonly kind: "unary";
|
|
3779
|
+
readonly since: "1.28";
|
|
3780
|
+
readonly errors: readonly ["AUTH_FORBIDDEN"];
|
|
3781
|
+
};
|
|
3782
|
+
readonly "browser.sessions": {
|
|
3783
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3784
|
+
readonly result: z.ZodObject<{
|
|
3785
|
+
enabled: z.ZodBoolean;
|
|
3786
|
+
owner_signed_in: z.ZodBoolean;
|
|
3787
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
3788
|
+
client_instance: z.ZodString;
|
|
3789
|
+
client_label: z.ZodString;
|
|
3790
|
+
browser: z.ZodEnum<{
|
|
3791
|
+
other: "other";
|
|
3792
|
+
chrome: "chrome";
|
|
3793
|
+
edge: "edge";
|
|
3794
|
+
brave: "brave";
|
|
3795
|
+
arc: "arc";
|
|
3796
|
+
opera: "opera";
|
|
3797
|
+
vivaldi: "vivaldi";
|
|
3798
|
+
chromium: "chromium";
|
|
3799
|
+
firefox: "firefox";
|
|
3800
|
+
}>;
|
|
3801
|
+
extension_version: z.ZodString;
|
|
3802
|
+
state: z.ZodEnum<{
|
|
3803
|
+
connected: "connected";
|
|
3804
|
+
different_account: "different_account";
|
|
3805
|
+
extension_signed_out: "extension_signed_out";
|
|
3806
|
+
device_signed_out: "device_signed_out";
|
|
3807
|
+
unverified: "unverified";
|
|
3808
|
+
}>;
|
|
3809
|
+
routable: z.ZodBoolean;
|
|
3810
|
+
account_email: z.ZodNullable<z.ZodString>;
|
|
3811
|
+
connected_at_ms: z.ZodInt;
|
|
3812
|
+
last_call_at_ms: z.ZodNullable<z.ZodInt>;
|
|
3813
|
+
calls: z.ZodInt;
|
|
3814
|
+
errors: z.ZodInt;
|
|
3815
|
+
p50_ms: z.ZodNullable<z.ZodInt>;
|
|
3816
|
+
p95_ms: z.ZodNullable<z.ZodInt>;
|
|
3817
|
+
awaiting_confirmation: z.ZodBoolean;
|
|
3818
|
+
}, z.core.$strict>>;
|
|
3819
|
+
}, z.core.$strict>;
|
|
3820
|
+
readonly kind: "unary";
|
|
3821
|
+
readonly since: "1.28";
|
|
3822
|
+
readonly errors: readonly ["INTERNAL"];
|
|
3823
|
+
};
|
|
3824
|
+
readonly "browser.disconnect": {
|
|
3825
|
+
readonly params: z.ZodObject<{
|
|
3826
|
+
client_instance: z.ZodString;
|
|
3827
|
+
}, z.core.$strict>;
|
|
3828
|
+
readonly result: z.ZodObject<{
|
|
3829
|
+
disconnected: z.ZodBoolean;
|
|
3830
|
+
}, z.core.$strict>;
|
|
3831
|
+
readonly kind: "unary";
|
|
3832
|
+
readonly since: "1.28";
|
|
3833
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN"];
|
|
3834
|
+
};
|
|
3835
|
+
readonly "browser.set_enabled": {
|
|
3836
|
+
readonly params: z.ZodObject<{
|
|
3837
|
+
enabled: z.ZodBoolean;
|
|
3838
|
+
}, z.core.$strict>;
|
|
3839
|
+
readonly result: z.ZodObject<{
|
|
3840
|
+
enabled: z.ZodBoolean;
|
|
3841
|
+
}, z.core.$strict>;
|
|
3842
|
+
readonly kind: "unary";
|
|
3843
|
+
readonly since: "1.28";
|
|
3844
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3845
|
+
};
|
|
3846
|
+
readonly "browser.pair_code": {
|
|
3847
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3848
|
+
readonly result: z.ZodObject<{
|
|
3849
|
+
code: z.ZodString;
|
|
3850
|
+
}, z.core.$strict>;
|
|
3851
|
+
readonly kind: "unary";
|
|
3852
|
+
readonly since: "1.28";
|
|
3853
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3854
|
+
};
|
|
3855
|
+
readonly "browser.pair_reset": {
|
|
3856
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3857
|
+
readonly result: z.ZodObject<{
|
|
3858
|
+
code: z.ZodString;
|
|
3859
|
+
}, z.core.$strict>;
|
|
3860
|
+
readonly kind: "unary";
|
|
3861
|
+
readonly since: "1.28";
|
|
3862
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3863
|
+
};
|
|
3864
|
+
readonly "browser.call": {
|
|
3865
|
+
readonly params: z.ZodObject<{
|
|
3866
|
+
tool: z.ZodString;
|
|
3867
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3868
|
+
client_instance: z.ZodOptional<z.ZodString>;
|
|
3869
|
+
timeout_ms: z.ZodOptional<z.ZodInt>;
|
|
3870
|
+
}, z.core.$strict>;
|
|
3871
|
+
readonly result: z.ZodObject<{
|
|
3872
|
+
client_instance: z.ZodString;
|
|
3873
|
+
result: z.ZodUnknown;
|
|
3874
|
+
duration_ms: z.ZodInt;
|
|
3875
|
+
}, z.core.$strict>;
|
|
3876
|
+
readonly kind: "unary";
|
|
3877
|
+
readonly since: "1.28";
|
|
3878
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RESOURCE_GONE", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
3879
|
+
};
|
|
3693
3880
|
};
|
|
3694
3881
|
type OpName = keyof typeof OPS;
|
|
3695
3882
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
|
@@ -3802,6 +3989,24 @@ declare const EVENTS: {
|
|
|
3802
3989
|
total_signatures: z.ZodInt;
|
|
3803
3990
|
waiting: z.ZodInt;
|
|
3804
3991
|
}, z.core.$strict>;
|
|
3992
|
+
readonly "browser.invoke": z.ZodObject<{
|
|
3993
|
+
call_id: z.ZodString;
|
|
3994
|
+
tool: z.ZodString;
|
|
3995
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3996
|
+
deadline_ms: z.ZodInt;
|
|
3997
|
+
}, z.core.$strict>;
|
|
3998
|
+
readonly "browser.sessions_changed": z.ZodObject<{
|
|
3999
|
+
count: z.ZodInt;
|
|
4000
|
+
enabled: z.ZodBoolean;
|
|
4001
|
+
}, z.core.$strict>;
|
|
4002
|
+
readonly "browser.progress": z.ZodObject<{
|
|
4003
|
+
call_id: z.ZodString;
|
|
4004
|
+
client_instance: z.ZodString;
|
|
4005
|
+
phase: z.ZodEnum<{
|
|
4006
|
+
running: "running";
|
|
4007
|
+
awaiting_confirmation: "awaiting_confirmation";
|
|
4008
|
+
}>;
|
|
4009
|
+
}, z.core.$strict>;
|
|
3805
4010
|
};
|
|
3806
4011
|
|
|
3807
4012
|
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;
|
|
@@ -3656,6 +3656,7 @@ declare const OPS: {
|
|
|
3656
3656
|
version: z.ZodNullable<z.ZodString>;
|
|
3657
3657
|
since_ms: z.ZodNullable<z.ZodInt>;
|
|
3658
3658
|
closed: z.ZodArray<z.ZodString>;
|
|
3659
|
+
closed_by_update: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3659
3660
|
}, z.core.$strict>;
|
|
3660
3661
|
readonly kind: "unary";
|
|
3661
3662
|
readonly since: "1.26";
|
|
@@ -3690,6 +3691,192 @@ declare const OPS: {
|
|
|
3690
3691
|
readonly since: "1.26";
|
|
3691
3692
|
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "TIMEOUT", "PLATFORM_UNSUPPORTED", "INTERNAL"];
|
|
3692
3693
|
};
|
|
3694
|
+
readonly "browser.register": {
|
|
3695
|
+
readonly params: z.ZodObject<{
|
|
3696
|
+
client_instance: z.ZodString;
|
|
3697
|
+
client_label: z.ZodString;
|
|
3698
|
+
browser: z.ZodEnum<{
|
|
3699
|
+
other: "other";
|
|
3700
|
+
chrome: "chrome";
|
|
3701
|
+
edge: "edge";
|
|
3702
|
+
brave: "brave";
|
|
3703
|
+
arc: "arc";
|
|
3704
|
+
opera: "opera";
|
|
3705
|
+
vivaldi: "vivaldi";
|
|
3706
|
+
chromium: "chromium";
|
|
3707
|
+
firefox: "firefox";
|
|
3708
|
+
}>;
|
|
3709
|
+
extension_version: z.ZodString;
|
|
3710
|
+
account_token: z.ZodNullable<z.ZodString>;
|
|
3711
|
+
}, z.core.$strict>;
|
|
3712
|
+
readonly result: z.ZodObject<{
|
|
3713
|
+
session: z.ZodObject<{
|
|
3714
|
+
client_instance: z.ZodString;
|
|
3715
|
+
client_label: z.ZodString;
|
|
3716
|
+
browser: z.ZodEnum<{
|
|
3717
|
+
other: "other";
|
|
3718
|
+
chrome: "chrome";
|
|
3719
|
+
edge: "edge";
|
|
3720
|
+
brave: "brave";
|
|
3721
|
+
arc: "arc";
|
|
3722
|
+
opera: "opera";
|
|
3723
|
+
vivaldi: "vivaldi";
|
|
3724
|
+
chromium: "chromium";
|
|
3725
|
+
firefox: "firefox";
|
|
3726
|
+
}>;
|
|
3727
|
+
extension_version: z.ZodString;
|
|
3728
|
+
state: z.ZodEnum<{
|
|
3729
|
+
connected: "connected";
|
|
3730
|
+
different_account: "different_account";
|
|
3731
|
+
extension_signed_out: "extension_signed_out";
|
|
3732
|
+
device_signed_out: "device_signed_out";
|
|
3733
|
+
unverified: "unverified";
|
|
3734
|
+
}>;
|
|
3735
|
+
routable: z.ZodBoolean;
|
|
3736
|
+
account_email: z.ZodNullable<z.ZodString>;
|
|
3737
|
+
connected_at_ms: z.ZodInt;
|
|
3738
|
+
last_call_at_ms: z.ZodNullable<z.ZodInt>;
|
|
3739
|
+
calls: z.ZodInt;
|
|
3740
|
+
errors: z.ZodInt;
|
|
3741
|
+
p50_ms: z.ZodNullable<z.ZodInt>;
|
|
3742
|
+
p95_ms: z.ZodNullable<z.ZodInt>;
|
|
3743
|
+
awaiting_confirmation: z.ZodBoolean;
|
|
3744
|
+
}, z.core.$strict>;
|
|
3745
|
+
}, z.core.$strict>;
|
|
3746
|
+
readonly kind: "unary";
|
|
3747
|
+
readonly since: "1.28";
|
|
3748
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INVALID_PARAMS", "INTERNAL"];
|
|
3749
|
+
};
|
|
3750
|
+
readonly "browser.result": {
|
|
3751
|
+
readonly params: z.ZodObject<{
|
|
3752
|
+
call_id: z.ZodString;
|
|
3753
|
+
ok: z.ZodBoolean;
|
|
3754
|
+
result: z.ZodUnknown;
|
|
3755
|
+
error: z.ZodNullable<z.ZodObject<{
|
|
3756
|
+
message: z.ZodString;
|
|
3757
|
+
code: z.ZodNullable<z.ZodString>;
|
|
3758
|
+
}, z.core.$strict>>;
|
|
3759
|
+
}, z.core.$strict>;
|
|
3760
|
+
readonly result: z.ZodObject<{
|
|
3761
|
+
accepted: z.ZodBoolean;
|
|
3762
|
+
}, z.core.$strict>;
|
|
3763
|
+
readonly kind: "unary";
|
|
3764
|
+
readonly since: "1.28";
|
|
3765
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "PAYLOAD_TOO_LARGE"];
|
|
3766
|
+
};
|
|
3767
|
+
readonly "browser.progress": {
|
|
3768
|
+
readonly params: z.ZodObject<{
|
|
3769
|
+
call_id: z.ZodString;
|
|
3770
|
+
phase: z.ZodEnum<{
|
|
3771
|
+
running: "running";
|
|
3772
|
+
awaiting_confirmation: "awaiting_confirmation";
|
|
3773
|
+
}>;
|
|
3774
|
+
}, z.core.$strict>;
|
|
3775
|
+
readonly result: z.ZodObject<{
|
|
3776
|
+
accepted: z.ZodBoolean;
|
|
3777
|
+
}, z.core.$strict>;
|
|
3778
|
+
readonly kind: "unary";
|
|
3779
|
+
readonly since: "1.28";
|
|
3780
|
+
readonly errors: readonly ["AUTH_FORBIDDEN"];
|
|
3781
|
+
};
|
|
3782
|
+
readonly "browser.sessions": {
|
|
3783
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3784
|
+
readonly result: z.ZodObject<{
|
|
3785
|
+
enabled: z.ZodBoolean;
|
|
3786
|
+
owner_signed_in: z.ZodBoolean;
|
|
3787
|
+
sessions: z.ZodArray<z.ZodObject<{
|
|
3788
|
+
client_instance: z.ZodString;
|
|
3789
|
+
client_label: z.ZodString;
|
|
3790
|
+
browser: z.ZodEnum<{
|
|
3791
|
+
other: "other";
|
|
3792
|
+
chrome: "chrome";
|
|
3793
|
+
edge: "edge";
|
|
3794
|
+
brave: "brave";
|
|
3795
|
+
arc: "arc";
|
|
3796
|
+
opera: "opera";
|
|
3797
|
+
vivaldi: "vivaldi";
|
|
3798
|
+
chromium: "chromium";
|
|
3799
|
+
firefox: "firefox";
|
|
3800
|
+
}>;
|
|
3801
|
+
extension_version: z.ZodString;
|
|
3802
|
+
state: z.ZodEnum<{
|
|
3803
|
+
connected: "connected";
|
|
3804
|
+
different_account: "different_account";
|
|
3805
|
+
extension_signed_out: "extension_signed_out";
|
|
3806
|
+
device_signed_out: "device_signed_out";
|
|
3807
|
+
unverified: "unverified";
|
|
3808
|
+
}>;
|
|
3809
|
+
routable: z.ZodBoolean;
|
|
3810
|
+
account_email: z.ZodNullable<z.ZodString>;
|
|
3811
|
+
connected_at_ms: z.ZodInt;
|
|
3812
|
+
last_call_at_ms: z.ZodNullable<z.ZodInt>;
|
|
3813
|
+
calls: z.ZodInt;
|
|
3814
|
+
errors: z.ZodInt;
|
|
3815
|
+
p50_ms: z.ZodNullable<z.ZodInt>;
|
|
3816
|
+
p95_ms: z.ZodNullable<z.ZodInt>;
|
|
3817
|
+
awaiting_confirmation: z.ZodBoolean;
|
|
3818
|
+
}, z.core.$strict>>;
|
|
3819
|
+
}, z.core.$strict>;
|
|
3820
|
+
readonly kind: "unary";
|
|
3821
|
+
readonly since: "1.28";
|
|
3822
|
+
readonly errors: readonly ["INTERNAL"];
|
|
3823
|
+
};
|
|
3824
|
+
readonly "browser.disconnect": {
|
|
3825
|
+
readonly params: z.ZodObject<{
|
|
3826
|
+
client_instance: z.ZodString;
|
|
3827
|
+
}, z.core.$strict>;
|
|
3828
|
+
readonly result: z.ZodObject<{
|
|
3829
|
+
disconnected: z.ZodBoolean;
|
|
3830
|
+
}, z.core.$strict>;
|
|
3831
|
+
readonly kind: "unary";
|
|
3832
|
+
readonly since: "1.28";
|
|
3833
|
+
readonly errors: readonly ["NOT_FOUND", "AUTH_FORBIDDEN"];
|
|
3834
|
+
};
|
|
3835
|
+
readonly "browser.set_enabled": {
|
|
3836
|
+
readonly params: z.ZodObject<{
|
|
3837
|
+
enabled: z.ZodBoolean;
|
|
3838
|
+
}, z.core.$strict>;
|
|
3839
|
+
readonly result: z.ZodObject<{
|
|
3840
|
+
enabled: z.ZodBoolean;
|
|
3841
|
+
}, z.core.$strict>;
|
|
3842
|
+
readonly kind: "unary";
|
|
3843
|
+
readonly since: "1.28";
|
|
3844
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3845
|
+
};
|
|
3846
|
+
readonly "browser.pair_code": {
|
|
3847
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3848
|
+
readonly result: z.ZodObject<{
|
|
3849
|
+
code: z.ZodString;
|
|
3850
|
+
}, z.core.$strict>;
|
|
3851
|
+
readonly kind: "unary";
|
|
3852
|
+
readonly since: "1.28";
|
|
3853
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3854
|
+
};
|
|
3855
|
+
readonly "browser.pair_reset": {
|
|
3856
|
+
readonly params: z.ZodObject<{}, z.core.$strict>;
|
|
3857
|
+
readonly result: z.ZodObject<{
|
|
3858
|
+
code: z.ZodString;
|
|
3859
|
+
}, z.core.$strict>;
|
|
3860
|
+
readonly kind: "unary";
|
|
3861
|
+
readonly since: "1.28";
|
|
3862
|
+
readonly errors: readonly ["AUTH_FORBIDDEN", "INTERNAL"];
|
|
3863
|
+
};
|
|
3864
|
+
readonly "browser.call": {
|
|
3865
|
+
readonly params: z.ZodObject<{
|
|
3866
|
+
tool: z.ZodString;
|
|
3867
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3868
|
+
client_instance: z.ZodOptional<z.ZodString>;
|
|
3869
|
+
timeout_ms: z.ZodOptional<z.ZodInt>;
|
|
3870
|
+
}, z.core.$strict>;
|
|
3871
|
+
readonly result: z.ZodObject<{
|
|
3872
|
+
client_instance: z.ZodString;
|
|
3873
|
+
result: z.ZodUnknown;
|
|
3874
|
+
duration_ms: z.ZodInt;
|
|
3875
|
+
}, z.core.$strict>;
|
|
3876
|
+
readonly kind: "unary";
|
|
3877
|
+
readonly since: "1.28";
|
|
3878
|
+
readonly errors: readonly ["NOT_FOUND", "CONFLICT", "AUTH_FORBIDDEN", "INVALID_PARAMS", "TIMEOUT", "CANCELLED", "RESOURCE_GONE", "PAYLOAD_TOO_LARGE", "INTERNAL"];
|
|
3879
|
+
};
|
|
3693
3880
|
};
|
|
3694
3881
|
type OpName = keyof typeof OPS;
|
|
3695
3882
|
type OpParams<N extends OpName> = z.input<(typeof OPS)[N]["params"]>;
|
|
@@ -3802,6 +3989,24 @@ declare const EVENTS: {
|
|
|
3802
3989
|
total_signatures: z.ZodInt;
|
|
3803
3990
|
waiting: z.ZodInt;
|
|
3804
3991
|
}, z.core.$strict>;
|
|
3992
|
+
readonly "browser.invoke": z.ZodObject<{
|
|
3993
|
+
call_id: z.ZodString;
|
|
3994
|
+
tool: z.ZodString;
|
|
3995
|
+
args: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
3996
|
+
deadline_ms: z.ZodInt;
|
|
3997
|
+
}, z.core.$strict>;
|
|
3998
|
+
readonly "browser.sessions_changed": z.ZodObject<{
|
|
3999
|
+
count: z.ZodInt;
|
|
4000
|
+
enabled: z.ZodBoolean;
|
|
4001
|
+
}, z.core.$strict>;
|
|
4002
|
+
readonly "browser.progress": z.ZodObject<{
|
|
4003
|
+
call_id: z.ZodString;
|
|
4004
|
+
client_instance: z.ZodString;
|
|
4005
|
+
phase: z.ZodEnum<{
|
|
4006
|
+
running: "running";
|
|
4007
|
+
awaiting_confirmation: "awaiting_confirmation";
|
|
4008
|
+
}>;
|
|
4009
|
+
}, z.core.$strict>;
|
|
3805
4010
|
};
|
|
3806
4011
|
|
|
3807
4012
|
type DesktopClientStatus =
|