@roll-agent/relay-protocol 0.3.3 → 0.4.0
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/control.d.ts +73 -0
- package/dist/control.js +18 -0
- package/dist/index.d.ts +1971 -3
- package/dist/index.js +184 -4
- package/dist/schema/roll-relay-protocol-v1.2.schema.json +4436 -0
- package/fixtures/v1.2/invalid-approval-projection-raw-input-leak.json +19 -0
- package/fixtures/v1.2/invalid-authentication-local-only.json +12 -0
- package/fixtures/v1.2/invalid-file-picker-local-only.json +12 -0
- package/fixtures/v1.2/invalid-interaction-cancelled-reason-leak.json +10 -0
- package/fixtures/v1.2/invalid-interaction-resolved-result-leak.json +18 -0
- package/fixtures/v1.2/invalid-legacy-approval-candidate.json +7 -0
- package/fixtures/v1.2/invalid-legacy-approval-respond.json +7 -0
- package/fixtures/v1.2/invalid-n-minus-one-device-connect.json +6 -0
- package/fixtures/v1.2/invalid-non-normal-sensitivity.json +21 -0
- package/fixtures/v1.2/invalid-runtime-event-tool-input-leak.json +22 -0
- package/fixtures/v1.2/invalid-runtime-event-tool-output-leak.json +21 -0
- package/fixtures/v1.2/invalid-user-input-projection-secret-leak.json +22 -0
- package/fixtures/v1.2/manifest.json +479 -0
- package/fixtures/v1.2/valid-device-connect.json +6 -0
- package/fixtures/v1.2/valid-interaction-cancelled.json +9 -0
- package/fixtures/v1.2/valid-interaction-candidate-user-input.json +25 -0
- package/fixtures/v1.2/valid-interaction-request-approval.json +17 -0
- package/fixtures/v1.2/valid-interaction-request-user-input.json +40 -0
- package/fixtures/v1.2/valid-interaction-resolved.json +9 -0
- package/fixtures/v1.2/valid-runtime-ack.json +5 -0
- package/fixtures/v1.2/valid-runtime-encrypted-interaction.json +10 -0
- package/fixtures/v1.2/valid-runtime-event-runtime-n-minus-one.json +16 -0
- package/fixtures/v1.2/valid-runtime-event.json +16 -0
- package/fixtures/v1.2/valid-runtime-gap.json +7 -0
- package/fixtures/v1.2/valid-runtime-request.json +10 -0
- package/fixtures/v1.2/valid-runtime-response.json +8 -0
- package/package.json +5 -4
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { operationGetResultSchema, type JsonValue, type ThreadSnapshotV11 } from "@roll-agent/protocol";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
export declare const SUPPORTED_RELAY_PROTOCOL_VERSIONS: readonly ["1.1", "1.0"];
|
|
3
|
+
export declare const SUPPORTED_RELAY_PROTOCOL_VERSIONS: readonly ["1.2", "1.1", "1.0"];
|
|
4
4
|
export type RelayProtocolVersion = (typeof SUPPORTED_RELAY_PROTOCOL_VERSIONS)[number];
|
|
5
|
-
export declare const LATEST_RELAY_PROTOCOL_VERSION: "1.
|
|
5
|
+
export declare const LATEST_RELAY_PROTOCOL_VERSION: "1.2";
|
|
6
6
|
/** @deprecated Legacy generic Relay exports remain pinned to Wire 1.0. */
|
|
7
7
|
export declare const RELAY_PROTOCOL_VERSION: "1.0";
|
|
8
8
|
/** @deprecated The one-argument Companion connection API remains pinned to Wire 1.0. */
|
|
@@ -214,6 +214,7 @@ export declare function getRelayErrorRetryabilityV11(code: RelayErrorCodeV11): b
|
|
|
214
214
|
export declare const relayProtocolVersionSchema: z.ZodEnum<{
|
|
215
215
|
1.1: "1.1";
|
|
216
216
|
"1.0": "1.0";
|
|
217
|
+
1.2: "1.2";
|
|
217
218
|
}>;
|
|
218
219
|
export declare const deviceIdSchema: z.core.$ZodBranded<z.ZodString, "DeviceId">;
|
|
219
220
|
export declare const workspaceIdSchema: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
@@ -3505,7 +3506,1971 @@ export interface RelayProtocolRegistry {
|
|
|
3505
3506
|
readonly mutationMethods: readonly string[];
|
|
3506
3507
|
readonly localOnlyMethods: readonly string[];
|
|
3507
3508
|
}
|
|
3509
|
+
/** Wire 1.2 carries complete App results only through an explicit query. */
|
|
3510
|
+
export declare const RELAY_REQUEST_METHODS_V12: {
|
|
3511
|
+
readonly operationResultGet: "operation.result.get";
|
|
3512
|
+
readonly initialize: "initialize";
|
|
3513
|
+
readonly threadList: "thread.list";
|
|
3514
|
+
readonly threadCreate: "thread.create";
|
|
3515
|
+
readonly threadOpen: "thread.open";
|
|
3516
|
+
readonly threadSnapshot: "thread.snapshot";
|
|
3517
|
+
readonly threadRename: "thread.rename";
|
|
3518
|
+
readonly threadDelete: "thread.delete";
|
|
3519
|
+
readonly threadDetach: "thread.detach";
|
|
3520
|
+
readonly threadCapabilities: "thread.capabilities";
|
|
3521
|
+
readonly turnStart: "turn.start";
|
|
3522
|
+
readonly turnCancel: "turn.cancel";
|
|
3523
|
+
readonly operationGet: "operation.get";
|
|
3524
|
+
readonly interactionCandidate: "interaction.candidate";
|
|
3525
|
+
};
|
|
3526
|
+
export declare const RELAY_REQUEST_METHOD_VALUES_V12: readonly ["initialize", "thread.list", "thread.create", "thread.open", "thread.snapshot", "thread.rename", "thread.delete", "thread.detach", "thread.capabilities", "turn.start", "turn.cancel", "operation.get", "interaction.candidate", "operation.result.get"];
|
|
3527
|
+
export declare const RELAY_REQUEST_METHOD_DISPOSITIONS_V12: {
|
|
3528
|
+
readonly "operation.result.get": "query";
|
|
3529
|
+
readonly initialize: "local-only";
|
|
3530
|
+
readonly "thread.list": "query";
|
|
3531
|
+
readonly "thread.create": "mutation";
|
|
3532
|
+
readonly "thread.open": "query";
|
|
3533
|
+
readonly "thread.snapshot": "query";
|
|
3534
|
+
readonly "thread.rename": "mutation";
|
|
3535
|
+
readonly "thread.delete": "mutation";
|
|
3536
|
+
readonly "thread.detach": "mutation";
|
|
3537
|
+
readonly "thread.capabilities": "query";
|
|
3538
|
+
readonly "turn.start": "mutation";
|
|
3539
|
+
readonly "turn.cancel": "mutation";
|
|
3540
|
+
readonly "operation.get": "query";
|
|
3541
|
+
readonly "interaction.candidate": "mutation";
|
|
3542
|
+
};
|
|
3543
|
+
export declare const relayOperationViewSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
3544
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3545
|
+
sequence: z.ZodNumber;
|
|
3546
|
+
toolCallId: z.ZodString;
|
|
3547
|
+
agentName: z.ZodString;
|
|
3548
|
+
toolName: z.ZodString;
|
|
3549
|
+
createdAt: z.ZodString;
|
|
3550
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
3551
|
+
kind: z.ZodEnum<{
|
|
3552
|
+
success: "success";
|
|
3553
|
+
user_rejected: "user_rejected";
|
|
3554
|
+
policy_denied: "policy_denied";
|
|
3555
|
+
invalid_input: "invalid_input";
|
|
3556
|
+
cancelled: "cancelled";
|
|
3557
|
+
tool_failed: "tool_failed";
|
|
3558
|
+
}>;
|
|
3559
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3560
|
+
}, z.core.$strict>>;
|
|
3561
|
+
display: z.ZodJSONSchema;
|
|
3562
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3563
|
+
status: z.ZodLiteral<"rejected">;
|
|
3564
|
+
reason: z.ZodEnum<{
|
|
3565
|
+
credential_field: "credential_field";
|
|
3566
|
+
credential_value: "credential_value";
|
|
3567
|
+
}>;
|
|
3568
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3569
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3570
|
+
status: z.ZodLiteral<"available">;
|
|
3571
|
+
schemaId: z.ZodString;
|
|
3572
|
+
schemaVersion: z.ZodNumber;
|
|
3573
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3574
|
+
status: z.ZodEnum<{
|
|
3575
|
+
not_provided: "not_provided";
|
|
3576
|
+
invalid: "invalid";
|
|
3577
|
+
too_large: "too_large";
|
|
3578
|
+
expired: "expired";
|
|
3579
|
+
denied: "denied";
|
|
3580
|
+
}>;
|
|
3581
|
+
}, z.core.$strict>]>>>;
|
|
3582
|
+
}, z.core.$strict>>;
|
|
3583
|
+
export declare const relayThreadSnapshotSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
3584
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
3585
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3586
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3587
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3588
|
+
createdAt: z.ZodString;
|
|
3589
|
+
updatedAt: z.ZodString;
|
|
3590
|
+
messageCount: z.ZodNumber;
|
|
3591
|
+
}, z.core.$strict>>;
|
|
3592
|
+
messages: z.ZodReadonly<z.ZodObject<{
|
|
3593
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3594
|
+
sequence: z.ZodNumber;
|
|
3595
|
+
role: z.ZodEnum<{
|
|
3596
|
+
user: "user";
|
|
3597
|
+
assistant: "assistant";
|
|
3598
|
+
}>;
|
|
3599
|
+
createdAt: z.ZodString;
|
|
3600
|
+
parts: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3601
|
+
type: z.ZodLiteral<"text">;
|
|
3602
|
+
text: z.ZodString;
|
|
3603
|
+
}, z.core.$strict>>>;
|
|
3604
|
+
}, z.core.$strict>>>;
|
|
3605
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3606
|
+
}, z.core.$strict>>;
|
|
3607
|
+
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
3608
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3609
|
+
status: z.ZodEnum<{
|
|
3610
|
+
running: "running";
|
|
3611
|
+
cancelling: "cancelling";
|
|
3612
|
+
}>;
|
|
3613
|
+
startedAt: z.ZodString;
|
|
3614
|
+
}, z.core.$strict>>>;
|
|
3615
|
+
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3616
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
3617
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3618
|
+
agentName: z.ZodString;
|
|
3619
|
+
toolName: z.ZodString;
|
|
3620
|
+
preview: z.ZodJSONSchema;
|
|
3621
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3622
|
+
}, z.core.$strict>>>;
|
|
3623
|
+
transcriptCompleteness: z.ZodEnum<{
|
|
3624
|
+
complete: "complete";
|
|
3625
|
+
legacy_snapshot: "legacy_snapshot";
|
|
3626
|
+
}>;
|
|
3627
|
+
operations: z.ZodReadonly<z.ZodObject<{
|
|
3628
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3629
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3630
|
+
sequence: z.ZodNumber;
|
|
3631
|
+
toolCallId: z.ZodString;
|
|
3632
|
+
agentName: z.ZodString;
|
|
3633
|
+
toolName: z.ZodString;
|
|
3634
|
+
createdAt: z.ZodString;
|
|
3635
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
3636
|
+
kind: z.ZodEnum<{
|
|
3637
|
+
success: "success";
|
|
3638
|
+
user_rejected: "user_rejected";
|
|
3639
|
+
policy_denied: "policy_denied";
|
|
3640
|
+
invalid_input: "invalid_input";
|
|
3641
|
+
cancelled: "cancelled";
|
|
3642
|
+
tool_failed: "tool_failed";
|
|
3643
|
+
}>;
|
|
3644
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3645
|
+
}, z.core.$strict>>;
|
|
3646
|
+
display: z.ZodJSONSchema;
|
|
3647
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3648
|
+
status: z.ZodLiteral<"rejected">;
|
|
3649
|
+
reason: z.ZodEnum<{
|
|
3650
|
+
credential_field: "credential_field";
|
|
3651
|
+
credential_value: "credential_value";
|
|
3652
|
+
}>;
|
|
3653
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3654
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3655
|
+
status: z.ZodLiteral<"available">;
|
|
3656
|
+
schemaId: z.ZodString;
|
|
3657
|
+
schemaVersion: z.ZodNumber;
|
|
3658
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3659
|
+
status: z.ZodEnum<{
|
|
3660
|
+
not_provided: "not_provided";
|
|
3661
|
+
invalid: "invalid";
|
|
3662
|
+
too_large: "too_large";
|
|
3663
|
+
expired: "expired";
|
|
3664
|
+
denied: "denied";
|
|
3665
|
+
}>;
|
|
3666
|
+
}, z.core.$strict>]>>>;
|
|
3667
|
+
}, z.core.$strict>>>;
|
|
3668
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3669
|
+
}, z.core.$strict>>;
|
|
3670
|
+
}, z.core.$strict>>;
|
|
3671
|
+
export declare const relayRequestMethodSchemasV12: {
|
|
3672
|
+
readonly "thread.open": {
|
|
3673
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3674
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
3675
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3676
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3677
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3678
|
+
createdAt: z.ZodString;
|
|
3679
|
+
updatedAt: z.ZodString;
|
|
3680
|
+
messageCount: z.ZodNumber;
|
|
3681
|
+
}, z.core.$strict>>;
|
|
3682
|
+
messages: z.ZodReadonly<z.ZodObject<{
|
|
3683
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3684
|
+
sequence: z.ZodNumber;
|
|
3685
|
+
role: z.ZodEnum<{
|
|
3686
|
+
user: "user";
|
|
3687
|
+
assistant: "assistant";
|
|
3688
|
+
}>;
|
|
3689
|
+
createdAt: z.ZodString;
|
|
3690
|
+
parts: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3691
|
+
type: z.ZodLiteral<"text">;
|
|
3692
|
+
text: z.ZodString;
|
|
3693
|
+
}, z.core.$strict>>>;
|
|
3694
|
+
}, z.core.$strict>>>;
|
|
3695
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3696
|
+
}, z.core.$strict>>;
|
|
3697
|
+
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
3698
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3699
|
+
status: z.ZodEnum<{
|
|
3700
|
+
running: "running";
|
|
3701
|
+
cancelling: "cancelling";
|
|
3702
|
+
}>;
|
|
3703
|
+
startedAt: z.ZodString;
|
|
3704
|
+
}, z.core.$strict>>>;
|
|
3705
|
+
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3706
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
3707
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3708
|
+
agentName: z.ZodString;
|
|
3709
|
+
toolName: z.ZodString;
|
|
3710
|
+
preview: z.ZodJSONSchema;
|
|
3711
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3712
|
+
}, z.core.$strict>>>;
|
|
3713
|
+
transcriptCompleteness: z.ZodEnum<{
|
|
3714
|
+
complete: "complete";
|
|
3715
|
+
legacy_snapshot: "legacy_snapshot";
|
|
3716
|
+
}>;
|
|
3717
|
+
operations: z.ZodReadonly<z.ZodObject<{
|
|
3718
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3719
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3720
|
+
sequence: z.ZodNumber;
|
|
3721
|
+
toolCallId: z.ZodString;
|
|
3722
|
+
agentName: z.ZodString;
|
|
3723
|
+
toolName: z.ZodString;
|
|
3724
|
+
createdAt: z.ZodString;
|
|
3725
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
3726
|
+
kind: z.ZodEnum<{
|
|
3727
|
+
success: "success";
|
|
3728
|
+
user_rejected: "user_rejected";
|
|
3729
|
+
policy_denied: "policy_denied";
|
|
3730
|
+
invalid_input: "invalid_input";
|
|
3731
|
+
cancelled: "cancelled";
|
|
3732
|
+
tool_failed: "tool_failed";
|
|
3733
|
+
}>;
|
|
3734
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3735
|
+
}, z.core.$strict>>;
|
|
3736
|
+
display: z.ZodJSONSchema;
|
|
3737
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3738
|
+
status: z.ZodLiteral<"rejected">;
|
|
3739
|
+
reason: z.ZodEnum<{
|
|
3740
|
+
credential_field: "credential_field";
|
|
3741
|
+
credential_value: "credential_value";
|
|
3742
|
+
}>;
|
|
3743
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3744
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3745
|
+
status: z.ZodLiteral<"available">;
|
|
3746
|
+
schemaId: z.ZodString;
|
|
3747
|
+
schemaVersion: z.ZodNumber;
|
|
3748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3749
|
+
status: z.ZodEnum<{
|
|
3750
|
+
not_provided: "not_provided";
|
|
3751
|
+
invalid: "invalid";
|
|
3752
|
+
too_large: "too_large";
|
|
3753
|
+
expired: "expired";
|
|
3754
|
+
denied: "denied";
|
|
3755
|
+
}>;
|
|
3756
|
+
}, z.core.$strict>]>>>;
|
|
3757
|
+
}, z.core.$strict>>>;
|
|
3758
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3759
|
+
}, z.core.$strict>>;
|
|
3760
|
+
}, z.core.$strict>>;
|
|
3761
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3762
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3763
|
+
}, z.core.$strict>>;
|
|
3764
|
+
};
|
|
3765
|
+
readonly "thread.snapshot": {
|
|
3766
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3767
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
3768
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3769
|
+
title: z.ZodOptional<z.ZodString>;
|
|
3770
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3771
|
+
createdAt: z.ZodString;
|
|
3772
|
+
updatedAt: z.ZodString;
|
|
3773
|
+
messageCount: z.ZodNumber;
|
|
3774
|
+
}, z.core.$strict>>;
|
|
3775
|
+
messages: z.ZodReadonly<z.ZodObject<{
|
|
3776
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3777
|
+
sequence: z.ZodNumber;
|
|
3778
|
+
role: z.ZodEnum<{
|
|
3779
|
+
user: "user";
|
|
3780
|
+
assistant: "assistant";
|
|
3781
|
+
}>;
|
|
3782
|
+
createdAt: z.ZodString;
|
|
3783
|
+
parts: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3784
|
+
type: z.ZodLiteral<"text">;
|
|
3785
|
+
text: z.ZodString;
|
|
3786
|
+
}, z.core.$strict>>>;
|
|
3787
|
+
}, z.core.$strict>>>;
|
|
3788
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3789
|
+
}, z.core.$strict>>;
|
|
3790
|
+
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
3791
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3792
|
+
status: z.ZodEnum<{
|
|
3793
|
+
running: "running";
|
|
3794
|
+
cancelling: "cancelling";
|
|
3795
|
+
}>;
|
|
3796
|
+
startedAt: z.ZodString;
|
|
3797
|
+
}, z.core.$strict>>>;
|
|
3798
|
+
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3799
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
3800
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
3801
|
+
agentName: z.ZodString;
|
|
3802
|
+
toolName: z.ZodString;
|
|
3803
|
+
preview: z.ZodJSONSchema;
|
|
3804
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3805
|
+
}, z.core.$strict>>>;
|
|
3806
|
+
transcriptCompleteness: z.ZodEnum<{
|
|
3807
|
+
complete: "complete";
|
|
3808
|
+
legacy_snapshot: "legacy_snapshot";
|
|
3809
|
+
}>;
|
|
3810
|
+
operations: z.ZodReadonly<z.ZodObject<{
|
|
3811
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3812
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3813
|
+
sequence: z.ZodNumber;
|
|
3814
|
+
toolCallId: z.ZodString;
|
|
3815
|
+
agentName: z.ZodString;
|
|
3816
|
+
toolName: z.ZodString;
|
|
3817
|
+
createdAt: z.ZodString;
|
|
3818
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
3819
|
+
kind: z.ZodEnum<{
|
|
3820
|
+
success: "success";
|
|
3821
|
+
user_rejected: "user_rejected";
|
|
3822
|
+
policy_denied: "policy_denied";
|
|
3823
|
+
invalid_input: "invalid_input";
|
|
3824
|
+
cancelled: "cancelled";
|
|
3825
|
+
tool_failed: "tool_failed";
|
|
3826
|
+
}>;
|
|
3827
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3828
|
+
}, z.core.$strict>>;
|
|
3829
|
+
display: z.ZodJSONSchema;
|
|
3830
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3831
|
+
status: z.ZodLiteral<"rejected">;
|
|
3832
|
+
reason: z.ZodEnum<{
|
|
3833
|
+
credential_field: "credential_field";
|
|
3834
|
+
credential_value: "credential_value";
|
|
3835
|
+
}>;
|
|
3836
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3837
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3838
|
+
status: z.ZodLiteral<"available">;
|
|
3839
|
+
schemaId: z.ZodString;
|
|
3840
|
+
schemaVersion: z.ZodNumber;
|
|
3841
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3842
|
+
status: z.ZodEnum<{
|
|
3843
|
+
not_provided: "not_provided";
|
|
3844
|
+
invalid: "invalid";
|
|
3845
|
+
too_large: "too_large";
|
|
3846
|
+
expired: "expired";
|
|
3847
|
+
denied: "denied";
|
|
3848
|
+
}>;
|
|
3849
|
+
}, z.core.$strict>]>>>;
|
|
3850
|
+
}, z.core.$strict>>>;
|
|
3851
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
3852
|
+
}, z.core.$strict>>;
|
|
3853
|
+
}, z.core.$strict>>;
|
|
3854
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3855
|
+
messageBeforeSequence: z.ZodOptional<z.ZodNumber>;
|
|
3856
|
+
operationBeforeSequence: z.ZodOptional<z.ZodNumber>;
|
|
3857
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
3858
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3859
|
+
}, z.core.$strict>>;
|
|
3860
|
+
};
|
|
3861
|
+
readonly "thread.capabilities": {
|
|
3862
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3863
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3864
|
+
}, z.core.$strict>>;
|
|
3865
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3866
|
+
manifest: z.ZodJSONSchema;
|
|
3867
|
+
}, z.core.$strict>>;
|
|
3868
|
+
};
|
|
3869
|
+
readonly "operation.get": {
|
|
3870
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3871
|
+
operation: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
3872
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3873
|
+
sequence: z.ZodNumber;
|
|
3874
|
+
toolCallId: z.ZodString;
|
|
3875
|
+
agentName: z.ZodString;
|
|
3876
|
+
toolName: z.ZodString;
|
|
3877
|
+
createdAt: z.ZodString;
|
|
3878
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
3879
|
+
kind: z.ZodEnum<{
|
|
3880
|
+
success: "success";
|
|
3881
|
+
user_rejected: "user_rejected";
|
|
3882
|
+
policy_denied: "policy_denied";
|
|
3883
|
+
invalid_input: "invalid_input";
|
|
3884
|
+
cancelled: "cancelled";
|
|
3885
|
+
tool_failed: "tool_failed";
|
|
3886
|
+
}>;
|
|
3887
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3888
|
+
}, z.core.$strict>>;
|
|
3889
|
+
display: z.ZodJSONSchema;
|
|
3890
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3891
|
+
status: z.ZodLiteral<"rejected">;
|
|
3892
|
+
reason: z.ZodEnum<{
|
|
3893
|
+
credential_field: "credential_field";
|
|
3894
|
+
credential_value: "credential_value";
|
|
3895
|
+
}>;
|
|
3896
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3897
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3898
|
+
status: z.ZodLiteral<"available">;
|
|
3899
|
+
schemaId: z.ZodString;
|
|
3900
|
+
schemaVersion: z.ZodNumber;
|
|
3901
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3902
|
+
status: z.ZodEnum<{
|
|
3903
|
+
not_provided: "not_provided";
|
|
3904
|
+
invalid: "invalid";
|
|
3905
|
+
too_large: "too_large";
|
|
3906
|
+
expired: "expired";
|
|
3907
|
+
denied: "denied";
|
|
3908
|
+
}>;
|
|
3909
|
+
}, z.core.$strict>]>>>;
|
|
3910
|
+
}, z.core.$strict>>>;
|
|
3911
|
+
}, z.core.$strict>>;
|
|
3912
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3913
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3914
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3915
|
+
}, z.core.$strict>>;
|
|
3916
|
+
};
|
|
3917
|
+
readonly "operation.result.get": {
|
|
3918
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3919
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3920
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3921
|
+
}, z.core.$strict>>;
|
|
3922
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3923
|
+
result: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
3924
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
3925
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
3926
|
+
agentName: z.ZodString;
|
|
3927
|
+
toolName: z.ZodString;
|
|
3928
|
+
createdAt: z.ZodString;
|
|
3929
|
+
output: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
3930
|
+
status: z.ZodLiteral<"rejected">;
|
|
3931
|
+
reason: z.ZodEnum<{
|
|
3932
|
+
credential_field: "credential_field";
|
|
3933
|
+
credential_value: "credential_value";
|
|
3934
|
+
}>;
|
|
3935
|
+
field: z.ZodOptional<z.ZodString>;
|
|
3936
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
3937
|
+
status: z.ZodLiteral<"available">;
|
|
3938
|
+
schemaId: z.ZodString;
|
|
3939
|
+
schemaVersion: z.ZodNumber;
|
|
3940
|
+
remoteReadable: z.ZodBoolean;
|
|
3941
|
+
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
3942
|
+
fallbackText: z.ZodString;
|
|
3943
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
3944
|
+
status: z.ZodEnum<{
|
|
3945
|
+
not_provided: "not_provided";
|
|
3946
|
+
invalid: "invalid";
|
|
3947
|
+
too_large: "too_large";
|
|
3948
|
+
expired: "expired";
|
|
3949
|
+
denied: "denied";
|
|
3950
|
+
}>;
|
|
3951
|
+
}, z.core.$strict>]>>;
|
|
3952
|
+
}, z.core.$strict>>>;
|
|
3953
|
+
}, z.core.$strict>>;
|
|
3954
|
+
};
|
|
3955
|
+
readonly initialize: {
|
|
3956
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3957
|
+
protocolVersions: z.ZodArray<z.ZodString>;
|
|
3958
|
+
client: z.ZodReadonly<z.ZodObject<{
|
|
3959
|
+
name: z.ZodString;
|
|
3960
|
+
version: z.ZodString;
|
|
3961
|
+
}, z.core.$strict>>;
|
|
3962
|
+
}, z.core.$strict>>;
|
|
3963
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3964
|
+
limits: z.ZodReadonly<z.ZodObject<{
|
|
3965
|
+
maxFrameBytes: z.ZodNumber;
|
|
3966
|
+
maxPageSize: z.ZodNumber;
|
|
3967
|
+
eventReplay: z.ZodLiteral<false>;
|
|
3968
|
+
idempotencyCacheEntries: z.ZodNumber;
|
|
3969
|
+
}, z.core.$strict>>;
|
|
3970
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
3971
|
+
server: z.ZodReadonly<z.ZodObject<{
|
|
3972
|
+
runtimeVersion: z.ZodString;
|
|
3973
|
+
name: z.ZodString;
|
|
3974
|
+
version: z.ZodString;
|
|
3975
|
+
}, z.core.$strict>>;
|
|
3976
|
+
features: z.ZodArray<z.ZodEnum<{
|
|
3977
|
+
"thread-management": "thread-management";
|
|
3978
|
+
snapshots: "snapshots";
|
|
3979
|
+
turns: "turns";
|
|
3980
|
+
approvals: "approvals";
|
|
3981
|
+
"tool-streaming": "tool-streaming";
|
|
3982
|
+
"reasoning-summary": "reasoning-summary";
|
|
3983
|
+
"operation-projection": "operation-projection";
|
|
3984
|
+
"process-local-sequence": "process-local-sequence";
|
|
3985
|
+
}>>;
|
|
3986
|
+
protocolVersion: z.ZodEnum<{
|
|
3987
|
+
1.1: "1.1";
|
|
3988
|
+
"1.0": "1.0";
|
|
3989
|
+
}>;
|
|
3990
|
+
}, z.core.$strict>>;
|
|
3991
|
+
};
|
|
3992
|
+
readonly "thread.list": {
|
|
3993
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
3994
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
3995
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
3996
|
+
}, z.core.$strict>>;
|
|
3997
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
3998
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3999
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4000
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4001
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4002
|
+
createdAt: z.ZodString;
|
|
4003
|
+
updatedAt: z.ZodString;
|
|
4004
|
+
messageCount: z.ZodNumber;
|
|
4005
|
+
}, z.core.$strict>>>;
|
|
4006
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
4007
|
+
}, z.core.$strict>>;
|
|
4008
|
+
};
|
|
4009
|
+
readonly "thread.create": {
|
|
4010
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4011
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4012
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4013
|
+
}, z.core.$strict>>;
|
|
4014
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4015
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
4016
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4017
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4018
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4019
|
+
createdAt: z.ZodString;
|
|
4020
|
+
updatedAt: z.ZodString;
|
|
4021
|
+
messageCount: z.ZodNumber;
|
|
4022
|
+
}, z.core.$strict>>;
|
|
4023
|
+
}, z.core.$strict>>;
|
|
4024
|
+
};
|
|
4025
|
+
readonly "thread.rename": {
|
|
4026
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4027
|
+
title: z.ZodString;
|
|
4028
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4029
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4030
|
+
}, z.core.$strict>>;
|
|
4031
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4032
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
4033
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4034
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4035
|
+
model: z.ZodOptional<z.ZodString>;
|
|
4036
|
+
createdAt: z.ZodString;
|
|
4037
|
+
updatedAt: z.ZodString;
|
|
4038
|
+
messageCount: z.ZodNumber;
|
|
4039
|
+
}, z.core.$strict>>;
|
|
4040
|
+
}, z.core.$strict>>;
|
|
4041
|
+
};
|
|
4042
|
+
readonly "thread.delete": {
|
|
4043
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4044
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4045
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4046
|
+
}, z.core.$strict>>;
|
|
4047
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4048
|
+
deleted: z.ZodLiteral<true>;
|
|
4049
|
+
}, z.core.$strict>>;
|
|
4050
|
+
};
|
|
4051
|
+
readonly "thread.detach": {
|
|
4052
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4053
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4054
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4055
|
+
}, z.core.$strict>>;
|
|
4056
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4057
|
+
detached: z.ZodBoolean;
|
|
4058
|
+
}, z.core.$strict>>;
|
|
4059
|
+
};
|
|
4060
|
+
readonly "turn.start": {
|
|
4061
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4062
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4063
|
+
input: z.ZodReadonly<z.ZodObject<{
|
|
4064
|
+
text: z.ZodString;
|
|
4065
|
+
}, z.core.$strict>>;
|
|
4066
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4067
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4068
|
+
}, z.core.$strict>>;
|
|
4069
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4070
|
+
accepted: z.ZodLiteral<true>;
|
|
4071
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4072
|
+
}, z.core.$strict>>;
|
|
4073
|
+
};
|
|
4074
|
+
readonly "turn.cancel": {
|
|
4075
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
4076
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4077
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4078
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
4079
|
+
}, z.core.$strict>>;
|
|
4080
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4081
|
+
cancelling: z.ZodBoolean;
|
|
4082
|
+
}, z.core.$strict>>;
|
|
4083
|
+
};
|
|
4084
|
+
readonly "interaction.candidate": {
|
|
4085
|
+
readonly params: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4086
|
+
method: z.ZodLiteral<"approval.request">;
|
|
4087
|
+
candidate: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4088
|
+
decision: z.ZodLiteral<"approve">;
|
|
4089
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4090
|
+
decision: z.ZodLiteral<"reject">;
|
|
4091
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4092
|
+
}, z.core.$strict>>]>;
|
|
4093
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4094
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4095
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4096
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4097
|
+
method: z.ZodLiteral<"userInput.request">;
|
|
4098
|
+
candidate: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4099
|
+
status: z.ZodLiteral<"submitted">;
|
|
4100
|
+
values: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
4101
|
+
id: z.ZodString;
|
|
4102
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
4103
|
+
}, z.core.$strict>>>;
|
|
4104
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4105
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4106
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4107
|
+
}, z.core.$strict>>]>;
|
|
4108
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4109
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4110
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4111
|
+
}, z.core.$strict>>]>;
|
|
4112
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
4113
|
+
accepted: z.ZodLiteral<true>;
|
|
4114
|
+
}, z.core.$strict>>;
|
|
4115
|
+
};
|
|
4116
|
+
};
|
|
4117
|
+
export declare const relayToolCompletedSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
4118
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4119
|
+
toolCallId: z.ZodString;
|
|
4120
|
+
agentName: z.ZodString;
|
|
4121
|
+
toolName: z.ZodString;
|
|
4122
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4123
|
+
kind: z.ZodEnum<{
|
|
4124
|
+
success: "success";
|
|
4125
|
+
user_rejected: "user_rejected";
|
|
4126
|
+
policy_denied: "policy_denied";
|
|
4127
|
+
invalid_input: "invalid_input";
|
|
4128
|
+
cancelled: "cancelled";
|
|
4129
|
+
tool_failed: "tool_failed";
|
|
4130
|
+
}>;
|
|
4131
|
+
}, z.core.$strict>>>;
|
|
4132
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4133
|
+
status: z.ZodLiteral<"rejected">;
|
|
4134
|
+
reason: z.ZodEnum<{
|
|
4135
|
+
credential_field: "credential_field";
|
|
4136
|
+
credential_value: "credential_value";
|
|
4137
|
+
}>;
|
|
4138
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4139
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4140
|
+
status: z.ZodLiteral<"available">;
|
|
4141
|
+
schemaId: z.ZodString;
|
|
4142
|
+
schemaVersion: z.ZodNumber;
|
|
4143
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4144
|
+
status: z.ZodEnum<{
|
|
4145
|
+
not_provided: "not_provided";
|
|
4146
|
+
invalid: "invalid";
|
|
4147
|
+
too_large: "too_large";
|
|
4148
|
+
expired: "expired";
|
|
4149
|
+
denied: "denied";
|
|
4150
|
+
}>;
|
|
4151
|
+
}, z.core.$strict>]>>>;
|
|
4152
|
+
operationId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OperationId">>;
|
|
4153
|
+
}, z.core.$strict>>;
|
|
4154
|
+
export declare const relayRuntimeEventEnvelopeSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
4155
|
+
protocolVersion: z.ZodEnum<{
|
|
4156
|
+
1.1: "1.1";
|
|
4157
|
+
"1.0": "1.0";
|
|
4158
|
+
}>;
|
|
4159
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
4160
|
+
sequence: z.ZodNumber;
|
|
4161
|
+
timestamp: z.ZodString;
|
|
4162
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4163
|
+
turnId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TurnId">>;
|
|
4164
|
+
event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4165
|
+
type: z.ZodLiteral<"turn.started">;
|
|
4166
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4167
|
+
type: z.ZodLiteral<"message.started">;
|
|
4168
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4169
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4170
|
+
type: z.ZodLiteral<"message.delta">;
|
|
4171
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4172
|
+
delta: z.ZodString;
|
|
4173
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4174
|
+
type: z.ZodLiteral<"message.completed">;
|
|
4175
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4176
|
+
text: z.ZodString;
|
|
4177
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4178
|
+
type: z.ZodLiteral<"reasoning.summary.delta">;
|
|
4179
|
+
reasoningId: z.ZodString;
|
|
4180
|
+
delta: z.ZodString;
|
|
4181
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4182
|
+
type: z.ZodLiteral<"tool.started">;
|
|
4183
|
+
toolCallId: z.ZodString;
|
|
4184
|
+
agentName: z.ZodString;
|
|
4185
|
+
toolName: z.ZodString;
|
|
4186
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4187
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4188
|
+
toolCallId: z.ZodString;
|
|
4189
|
+
agentName: z.ZodString;
|
|
4190
|
+
toolName: z.ZodString;
|
|
4191
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4192
|
+
kind: z.ZodEnum<{
|
|
4193
|
+
success: "success";
|
|
4194
|
+
user_rejected: "user_rejected";
|
|
4195
|
+
policy_denied: "policy_denied";
|
|
4196
|
+
invalid_input: "invalid_input";
|
|
4197
|
+
cancelled: "cancelled";
|
|
4198
|
+
tool_failed: "tool_failed";
|
|
4199
|
+
}>;
|
|
4200
|
+
}, z.core.$strict>>>;
|
|
4201
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4202
|
+
type: z.ZodLiteral<"approval.required">;
|
|
4203
|
+
approval: z.ZodReadonly<z.ZodObject<{
|
|
4204
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4205
|
+
agentName: z.ZodString;
|
|
4206
|
+
toolName: z.ZodString;
|
|
4207
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4208
|
+
}, z.core.$strict>>;
|
|
4209
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4210
|
+
type: z.ZodLiteral<"approval.resolved">;
|
|
4211
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4212
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4213
|
+
status: z.ZodLiteral<"resolved">;
|
|
4214
|
+
decision: z.ZodEnum<{
|
|
4215
|
+
approve: "approve";
|
|
4216
|
+
reject: "reject";
|
|
4217
|
+
}>;
|
|
4218
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4219
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4220
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4221
|
+
status: z.ZodLiteral<"expired">;
|
|
4222
|
+
}, z.core.$strict>>]>;
|
|
4223
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4224
|
+
type: z.ZodLiteral<"turn.completed">;
|
|
4225
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4226
|
+
type: z.ZodLiteral<"turn.cancelled">;
|
|
4227
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4228
|
+
type: z.ZodLiteral<"turn.failed">;
|
|
4229
|
+
stage: z.ZodEnum<{
|
|
4230
|
+
bootstrap: "bootstrap";
|
|
4231
|
+
plan: "plan";
|
|
4232
|
+
execute: "execute";
|
|
4233
|
+
}>;
|
|
4234
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4235
|
+
type: z.ZodLiteral<"capabilities.changed">;
|
|
4236
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4237
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4238
|
+
toolCallId: z.ZodString;
|
|
4239
|
+
agentName: z.ZodString;
|
|
4240
|
+
toolName: z.ZodString;
|
|
4241
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4242
|
+
kind: z.ZodEnum<{
|
|
4243
|
+
success: "success";
|
|
4244
|
+
user_rejected: "user_rejected";
|
|
4245
|
+
policy_denied: "policy_denied";
|
|
4246
|
+
invalid_input: "invalid_input";
|
|
4247
|
+
cancelled: "cancelled";
|
|
4248
|
+
tool_failed: "tool_failed";
|
|
4249
|
+
}>;
|
|
4250
|
+
}, z.core.$strict>>>;
|
|
4251
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4252
|
+
status: z.ZodLiteral<"rejected">;
|
|
4253
|
+
reason: z.ZodEnum<{
|
|
4254
|
+
credential_field: "credential_field";
|
|
4255
|
+
credential_value: "credential_value";
|
|
4256
|
+
}>;
|
|
4257
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4258
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4259
|
+
status: z.ZodLiteral<"available">;
|
|
4260
|
+
schemaId: z.ZodString;
|
|
4261
|
+
schemaVersion: z.ZodNumber;
|
|
4262
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4263
|
+
status: z.ZodEnum<{
|
|
4264
|
+
not_provided: "not_provided";
|
|
4265
|
+
invalid: "invalid";
|
|
4266
|
+
too_large: "too_large";
|
|
4267
|
+
expired: "expired";
|
|
4268
|
+
denied: "denied";
|
|
4269
|
+
}>;
|
|
4270
|
+
}, z.core.$strict>]>>>;
|
|
4271
|
+
operationId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OperationId">>;
|
|
4272
|
+
}, z.core.$strict>>]>;
|
|
4273
|
+
}, z.core.$strict>>;
|
|
4274
|
+
export declare const relayDeviceConnectSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
4275
|
+
type: z.ZodLiteral<"device.connect">;
|
|
4276
|
+
deviceId: z.core.$ZodBranded<z.ZodString, "DeviceId">;
|
|
4277
|
+
pairingToken: z.ZodString;
|
|
4278
|
+
protocolVersion: z.ZodLiteral<"1.2">;
|
|
4279
|
+
}, z.core.$strict>>;
|
|
4280
|
+
export declare const relayRuntimeRequestSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
4281
|
+
type: z.ZodLiteral<"runtime.request">;
|
|
4282
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RelayRequestId">;
|
|
4283
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4284
|
+
params: z.ZodJSONSchema;
|
|
4285
|
+
method: z.ZodEnum<{
|
|
4286
|
+
"operation.result.get": "operation.result.get";
|
|
4287
|
+
initialize: "initialize";
|
|
4288
|
+
"thread.list": "thread.list";
|
|
4289
|
+
"thread.create": "thread.create";
|
|
4290
|
+
"thread.open": "thread.open";
|
|
4291
|
+
"thread.snapshot": "thread.snapshot";
|
|
4292
|
+
"thread.rename": "thread.rename";
|
|
4293
|
+
"thread.delete": "thread.delete";
|
|
4294
|
+
"thread.detach": "thread.detach";
|
|
4295
|
+
"thread.capabilities": "thread.capabilities";
|
|
4296
|
+
"turn.start": "turn.start";
|
|
4297
|
+
"turn.cancel": "turn.cancel";
|
|
4298
|
+
"operation.get": "operation.get";
|
|
4299
|
+
"interaction.candidate": "interaction.candidate";
|
|
4300
|
+
}>;
|
|
4301
|
+
}, z.core.$strict>>;
|
|
4302
|
+
export declare const relayRuntimeEventSchemaV12: z.ZodReadonly<z.ZodObject<{
|
|
4303
|
+
type: z.ZodLiteral<"runtime.event">;
|
|
4304
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4305
|
+
relaySequence: z.ZodNumber;
|
|
4306
|
+
event: z.ZodReadonly<z.ZodObject<{
|
|
4307
|
+
protocolVersion: z.ZodEnum<{
|
|
4308
|
+
1.1: "1.1";
|
|
4309
|
+
"1.0": "1.0";
|
|
4310
|
+
}>;
|
|
4311
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
4312
|
+
sequence: z.ZodNumber;
|
|
4313
|
+
timestamp: z.ZodString;
|
|
4314
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4315
|
+
turnId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TurnId">>;
|
|
4316
|
+
event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4317
|
+
type: z.ZodLiteral<"turn.started">;
|
|
4318
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4319
|
+
type: z.ZodLiteral<"message.started">;
|
|
4320
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4321
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4322
|
+
type: z.ZodLiteral<"message.delta">;
|
|
4323
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4324
|
+
delta: z.ZodString;
|
|
4325
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4326
|
+
type: z.ZodLiteral<"message.completed">;
|
|
4327
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4328
|
+
text: z.ZodString;
|
|
4329
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4330
|
+
type: z.ZodLiteral<"reasoning.summary.delta">;
|
|
4331
|
+
reasoningId: z.ZodString;
|
|
4332
|
+
delta: z.ZodString;
|
|
4333
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4334
|
+
type: z.ZodLiteral<"tool.started">;
|
|
4335
|
+
toolCallId: z.ZodString;
|
|
4336
|
+
agentName: z.ZodString;
|
|
4337
|
+
toolName: z.ZodString;
|
|
4338
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4339
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4340
|
+
toolCallId: z.ZodString;
|
|
4341
|
+
agentName: z.ZodString;
|
|
4342
|
+
toolName: z.ZodString;
|
|
4343
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4344
|
+
kind: z.ZodEnum<{
|
|
4345
|
+
success: "success";
|
|
4346
|
+
user_rejected: "user_rejected";
|
|
4347
|
+
policy_denied: "policy_denied";
|
|
4348
|
+
invalid_input: "invalid_input";
|
|
4349
|
+
cancelled: "cancelled";
|
|
4350
|
+
tool_failed: "tool_failed";
|
|
4351
|
+
}>;
|
|
4352
|
+
}, z.core.$strict>>>;
|
|
4353
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4354
|
+
type: z.ZodLiteral<"approval.required">;
|
|
4355
|
+
approval: z.ZodReadonly<z.ZodObject<{
|
|
4356
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4357
|
+
agentName: z.ZodString;
|
|
4358
|
+
toolName: z.ZodString;
|
|
4359
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4360
|
+
}, z.core.$strict>>;
|
|
4361
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4362
|
+
type: z.ZodLiteral<"approval.resolved">;
|
|
4363
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4364
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4365
|
+
status: z.ZodLiteral<"resolved">;
|
|
4366
|
+
decision: z.ZodEnum<{
|
|
4367
|
+
approve: "approve";
|
|
4368
|
+
reject: "reject";
|
|
4369
|
+
}>;
|
|
4370
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4371
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4372
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4373
|
+
status: z.ZodLiteral<"expired">;
|
|
4374
|
+
}, z.core.$strict>>]>;
|
|
4375
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4376
|
+
type: z.ZodLiteral<"turn.completed">;
|
|
4377
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4378
|
+
type: z.ZodLiteral<"turn.cancelled">;
|
|
4379
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4380
|
+
type: z.ZodLiteral<"turn.failed">;
|
|
4381
|
+
stage: z.ZodEnum<{
|
|
4382
|
+
bootstrap: "bootstrap";
|
|
4383
|
+
plan: "plan";
|
|
4384
|
+
execute: "execute";
|
|
4385
|
+
}>;
|
|
4386
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4387
|
+
type: z.ZodLiteral<"capabilities.changed">;
|
|
4388
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4389
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4390
|
+
toolCallId: z.ZodString;
|
|
4391
|
+
agentName: z.ZodString;
|
|
4392
|
+
toolName: z.ZodString;
|
|
4393
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4394
|
+
kind: z.ZodEnum<{
|
|
4395
|
+
success: "success";
|
|
4396
|
+
user_rejected: "user_rejected";
|
|
4397
|
+
policy_denied: "policy_denied";
|
|
4398
|
+
invalid_input: "invalid_input";
|
|
4399
|
+
cancelled: "cancelled";
|
|
4400
|
+
tool_failed: "tool_failed";
|
|
4401
|
+
}>;
|
|
4402
|
+
}, z.core.$strict>>>;
|
|
4403
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4404
|
+
status: z.ZodLiteral<"rejected">;
|
|
4405
|
+
reason: z.ZodEnum<{
|
|
4406
|
+
credential_field: "credential_field";
|
|
4407
|
+
credential_value: "credential_value";
|
|
4408
|
+
}>;
|
|
4409
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4410
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4411
|
+
status: z.ZodLiteral<"available">;
|
|
4412
|
+
schemaId: z.ZodString;
|
|
4413
|
+
schemaVersion: z.ZodNumber;
|
|
4414
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4415
|
+
status: z.ZodEnum<{
|
|
4416
|
+
not_provided: "not_provided";
|
|
4417
|
+
invalid: "invalid";
|
|
4418
|
+
too_large: "too_large";
|
|
4419
|
+
expired: "expired";
|
|
4420
|
+
denied: "denied";
|
|
4421
|
+
}>;
|
|
4422
|
+
}, z.core.$strict>]>>>;
|
|
4423
|
+
operationId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OperationId">>;
|
|
4424
|
+
}, z.core.$strict>>]>;
|
|
4425
|
+
}, z.core.$strict>>;
|
|
4426
|
+
}, z.core.$strict>>;
|
|
4427
|
+
export declare const relayMessageSchemaV12: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4428
|
+
type: z.ZodLiteral<"device.connect">;
|
|
4429
|
+
deviceId: z.core.$ZodBranded<z.ZodString, "DeviceId">;
|
|
4430
|
+
pairingToken: z.ZodString;
|
|
4431
|
+
protocolVersion: z.ZodLiteral<"1.2">;
|
|
4432
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4433
|
+
type: z.ZodLiteral<"runtime.request">;
|
|
4434
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RelayRequestId">;
|
|
4435
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4436
|
+
params: z.ZodJSONSchema;
|
|
4437
|
+
method: z.ZodEnum<{
|
|
4438
|
+
"operation.result.get": "operation.result.get";
|
|
4439
|
+
initialize: "initialize";
|
|
4440
|
+
"thread.list": "thread.list";
|
|
4441
|
+
"thread.create": "thread.create";
|
|
4442
|
+
"thread.open": "thread.open";
|
|
4443
|
+
"thread.snapshot": "thread.snapshot";
|
|
4444
|
+
"thread.rename": "thread.rename";
|
|
4445
|
+
"thread.delete": "thread.delete";
|
|
4446
|
+
"thread.detach": "thread.detach";
|
|
4447
|
+
"thread.capabilities": "thread.capabilities";
|
|
4448
|
+
"turn.start": "turn.start";
|
|
4449
|
+
"turn.cancel": "turn.cancel";
|
|
4450
|
+
"operation.get": "operation.get";
|
|
4451
|
+
"interaction.candidate": "interaction.candidate";
|
|
4452
|
+
}>;
|
|
4453
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4454
|
+
type: z.ZodLiteral<"runtime.response">;
|
|
4455
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RelayRequestId">;
|
|
4456
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4457
|
+
result: z.ZodOptional<z.ZodJSONSchema>;
|
|
4458
|
+
error: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4459
|
+
code: z.ZodString;
|
|
4460
|
+
message: z.ZodString;
|
|
4461
|
+
retryable: z.ZodBoolean;
|
|
4462
|
+
}, z.core.$strict>>>;
|
|
4463
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4464
|
+
type: z.ZodLiteral<"runtime.event">;
|
|
4465
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4466
|
+
relaySequence: z.ZodNumber;
|
|
4467
|
+
event: z.ZodReadonly<z.ZodObject<{
|
|
4468
|
+
protocolVersion: z.ZodEnum<{
|
|
4469
|
+
1.1: "1.1";
|
|
4470
|
+
"1.0": "1.0";
|
|
4471
|
+
}>;
|
|
4472
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
4473
|
+
sequence: z.ZodNumber;
|
|
4474
|
+
timestamp: z.ZodString;
|
|
4475
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4476
|
+
turnId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TurnId">>;
|
|
4477
|
+
event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4478
|
+
type: z.ZodLiteral<"turn.started">;
|
|
4479
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4480
|
+
type: z.ZodLiteral<"message.started">;
|
|
4481
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4482
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4483
|
+
type: z.ZodLiteral<"message.delta">;
|
|
4484
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4485
|
+
delta: z.ZodString;
|
|
4486
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4487
|
+
type: z.ZodLiteral<"message.completed">;
|
|
4488
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4489
|
+
text: z.ZodString;
|
|
4490
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4491
|
+
type: z.ZodLiteral<"reasoning.summary.delta">;
|
|
4492
|
+
reasoningId: z.ZodString;
|
|
4493
|
+
delta: z.ZodString;
|
|
4494
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4495
|
+
type: z.ZodLiteral<"tool.started">;
|
|
4496
|
+
toolCallId: z.ZodString;
|
|
4497
|
+
agentName: z.ZodString;
|
|
4498
|
+
toolName: z.ZodString;
|
|
4499
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4500
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4501
|
+
toolCallId: z.ZodString;
|
|
4502
|
+
agentName: z.ZodString;
|
|
4503
|
+
toolName: z.ZodString;
|
|
4504
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4505
|
+
kind: z.ZodEnum<{
|
|
4506
|
+
success: "success";
|
|
4507
|
+
user_rejected: "user_rejected";
|
|
4508
|
+
policy_denied: "policy_denied";
|
|
4509
|
+
invalid_input: "invalid_input";
|
|
4510
|
+
cancelled: "cancelled";
|
|
4511
|
+
tool_failed: "tool_failed";
|
|
4512
|
+
}>;
|
|
4513
|
+
}, z.core.$strict>>>;
|
|
4514
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4515
|
+
type: z.ZodLiteral<"approval.required">;
|
|
4516
|
+
approval: z.ZodReadonly<z.ZodObject<{
|
|
4517
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4518
|
+
agentName: z.ZodString;
|
|
4519
|
+
toolName: z.ZodString;
|
|
4520
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4521
|
+
}, z.core.$strict>>;
|
|
4522
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4523
|
+
type: z.ZodLiteral<"approval.resolved">;
|
|
4524
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4525
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4526
|
+
status: z.ZodLiteral<"resolved">;
|
|
4527
|
+
decision: z.ZodEnum<{
|
|
4528
|
+
approve: "approve";
|
|
4529
|
+
reject: "reject";
|
|
4530
|
+
}>;
|
|
4531
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4532
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4533
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4534
|
+
status: z.ZodLiteral<"expired">;
|
|
4535
|
+
}, z.core.$strict>>]>;
|
|
4536
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4537
|
+
type: z.ZodLiteral<"turn.completed">;
|
|
4538
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4539
|
+
type: z.ZodLiteral<"turn.cancelled">;
|
|
4540
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4541
|
+
type: z.ZodLiteral<"turn.failed">;
|
|
4542
|
+
stage: z.ZodEnum<{
|
|
4543
|
+
bootstrap: "bootstrap";
|
|
4544
|
+
plan: "plan";
|
|
4545
|
+
execute: "execute";
|
|
4546
|
+
}>;
|
|
4547
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4548
|
+
type: z.ZodLiteral<"capabilities.changed">;
|
|
4549
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4550
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4551
|
+
toolCallId: z.ZodString;
|
|
4552
|
+
agentName: z.ZodString;
|
|
4553
|
+
toolName: z.ZodString;
|
|
4554
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4555
|
+
kind: z.ZodEnum<{
|
|
4556
|
+
success: "success";
|
|
4557
|
+
user_rejected: "user_rejected";
|
|
4558
|
+
policy_denied: "policy_denied";
|
|
4559
|
+
invalid_input: "invalid_input";
|
|
4560
|
+
cancelled: "cancelled";
|
|
4561
|
+
tool_failed: "tool_failed";
|
|
4562
|
+
}>;
|
|
4563
|
+
}, z.core.$strict>>>;
|
|
4564
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4565
|
+
status: z.ZodLiteral<"rejected">;
|
|
4566
|
+
reason: z.ZodEnum<{
|
|
4567
|
+
credential_field: "credential_field";
|
|
4568
|
+
credential_value: "credential_value";
|
|
4569
|
+
}>;
|
|
4570
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4571
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4572
|
+
status: z.ZodLiteral<"available">;
|
|
4573
|
+
schemaId: z.ZodString;
|
|
4574
|
+
schemaVersion: z.ZodNumber;
|
|
4575
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4576
|
+
status: z.ZodEnum<{
|
|
4577
|
+
not_provided: "not_provided";
|
|
4578
|
+
invalid: "invalid";
|
|
4579
|
+
too_large: "too_large";
|
|
4580
|
+
expired: "expired";
|
|
4581
|
+
denied: "denied";
|
|
4582
|
+
}>;
|
|
4583
|
+
}, z.core.$strict>]>>>;
|
|
4584
|
+
operationId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OperationId">>;
|
|
4585
|
+
}, z.core.$strict>>]>;
|
|
4586
|
+
}, z.core.$strict>>;
|
|
4587
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4588
|
+
type: z.ZodLiteral<"runtime.ack">;
|
|
4589
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4590
|
+
throughRelaySequence: z.ZodNumber;
|
|
4591
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4592
|
+
type: z.ZodLiteral<"runtime.gap">;
|
|
4593
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4594
|
+
fromRelaySequence: z.ZodNumber;
|
|
4595
|
+
throughRelaySequence: z.ZodNumber;
|
|
4596
|
+
recovery: z.ZodLiteral<"thread.snapshot">;
|
|
4597
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4598
|
+
type: z.ZodLiteral<"runtime.encrypted">;
|
|
4599
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4600
|
+
envelopeId: z.ZodString;
|
|
4601
|
+
payloadKind: z.ZodEnum<{
|
|
4602
|
+
interaction: "interaction";
|
|
4603
|
+
event: "event";
|
|
4604
|
+
request: "request";
|
|
4605
|
+
response: "response";
|
|
4606
|
+
}>;
|
|
4607
|
+
requestId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RelayRequestId">>;
|
|
4608
|
+
relaySequence: z.ZodOptional<z.ZodNumber>;
|
|
4609
|
+
algorithm: z.ZodString;
|
|
4610
|
+
nonce: z.ZodString;
|
|
4611
|
+
ciphertext: z.ZodString;
|
|
4612
|
+
}, z.core.$strict>>, z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4613
|
+
method: z.ZodLiteral<"approval.request">;
|
|
4614
|
+
projection: z.ZodReadonly<z.ZodObject<{
|
|
4615
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4616
|
+
agentName: z.ZodString;
|
|
4617
|
+
toolName: z.ZodString;
|
|
4618
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4619
|
+
}, z.core.$strict>>;
|
|
4620
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4621
|
+
relaySequence: z.ZodNumber;
|
|
4622
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4623
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4624
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4625
|
+
expiresAt: z.ZodString;
|
|
4626
|
+
sensitivity: z.ZodLiteral<"normal">;
|
|
4627
|
+
type: z.ZodLiteral<"interaction.request">;
|
|
4628
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4629
|
+
method: z.ZodLiteral<"userInput.request">;
|
|
4630
|
+
projection: z.ZodReadonly<z.ZodObject<{
|
|
4631
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4632
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4633
|
+
controls: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4634
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
4635
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4636
|
+
id: z.ZodString;
|
|
4637
|
+
label: z.ZodString;
|
|
4638
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4639
|
+
required: z.ZodBoolean;
|
|
4640
|
+
type: z.ZodLiteral<"text">;
|
|
4641
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4642
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
4643
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4644
|
+
id: z.ZodString;
|
|
4645
|
+
label: z.ZodString;
|
|
4646
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4647
|
+
required: z.ZodBoolean;
|
|
4648
|
+
type: z.ZodLiteral<"multiline">;
|
|
4649
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4650
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
4651
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
4652
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
4653
|
+
id: z.ZodString;
|
|
4654
|
+
label: z.ZodString;
|
|
4655
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4656
|
+
required: z.ZodBoolean;
|
|
4657
|
+
type: z.ZodLiteral<"number">;
|
|
4658
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4659
|
+
id: z.ZodString;
|
|
4660
|
+
label: z.ZodString;
|
|
4661
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4662
|
+
required: z.ZodBoolean;
|
|
4663
|
+
type: z.ZodLiteral<"boolean">;
|
|
4664
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4665
|
+
multiple: z.ZodBoolean;
|
|
4666
|
+
options: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
4667
|
+
id: z.ZodString;
|
|
4668
|
+
label: z.ZodString;
|
|
4669
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4670
|
+
}, z.core.$strict>>>;
|
|
4671
|
+
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
4672
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
4673
|
+
id: z.ZodString;
|
|
4674
|
+
label: z.ZodString;
|
|
4675
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4676
|
+
required: z.ZodBoolean;
|
|
4677
|
+
type: z.ZodLiteral<"choice">;
|
|
4678
|
+
}, z.core.$strict>>]>>;
|
|
4679
|
+
}, z.core.$strict>>;
|
|
4680
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4681
|
+
relaySequence: z.ZodNumber;
|
|
4682
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4683
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4684
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4685
|
+
expiresAt: z.ZodString;
|
|
4686
|
+
sensitivity: z.ZodLiteral<"normal">;
|
|
4687
|
+
type: z.ZodLiteral<"interaction.request">;
|
|
4688
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4689
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4690
|
+
relaySequence: z.ZodNumber;
|
|
4691
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4692
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4693
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4694
|
+
method: z.ZodEnum<{
|
|
4695
|
+
"approval.request": "approval.request";
|
|
4696
|
+
"userInput.request": "userInput.request";
|
|
4697
|
+
}>;
|
|
4698
|
+
type: z.ZodLiteral<"interaction.resolved">;
|
|
4699
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4700
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4701
|
+
relaySequence: z.ZodNumber;
|
|
4702
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4703
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4704
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4705
|
+
method: z.ZodEnum<{
|
|
4706
|
+
"approval.request": "approval.request";
|
|
4707
|
+
"userInput.request": "userInput.request";
|
|
4708
|
+
}>;
|
|
4709
|
+
type: z.ZodLiteral<"interaction.cancelled">;
|
|
4710
|
+
}, z.core.$strict>>]>;
|
|
4711
|
+
export type RelayMessageV12 = z.output<typeof relayMessageSchemaV12>;
|
|
4712
|
+
export type RelayRuntimeRequestV12 = z.output<typeof relayRuntimeRequestSchemaV12>;
|
|
4713
|
+
export type RelayRuntimeEventV12 = z.output<typeof relayRuntimeEventSchemaV12>;
|
|
4714
|
+
export type RelayRuntimeEventEnvelopeV12 = z.output<typeof relayRuntimeEventEnvelopeSchemaV12>;
|
|
4715
|
+
export type RelayRequestMethodV12 = (typeof RELAY_REQUEST_METHOD_VALUES_V12)[number];
|
|
4716
|
+
export declare function projectRelayThreadSnapshotV12(value: unknown): z.output<typeof relayThreadSnapshotSchemaV12>;
|
|
4717
|
+
export declare function projectRelayOperationGetResultV12(value: unknown): z.output<(typeof relayRequestMethodSchemasV12)["operation.get"]["result"]>;
|
|
4718
|
+
export declare function projectRuntimeEventEnvelopeForRelayV12(value: unknown): RelayRuntimeEventEnvelopeV12 | undefined;
|
|
4719
|
+
/** Downgrade before delivery to a 1.1 browser; never leaks new descriptor fields. */
|
|
4720
|
+
export declare function projectRelayMessageV12ToV11(message: RelayMessageV12): RelayMessageV11;
|
|
3508
4721
|
export declare const RELAY_PROTOCOL_REGISTRY: {
|
|
4722
|
+
readonly "1.2": {
|
|
4723
|
+
readonly messageTypes: readonly ["device.connect", "runtime.request", "runtime.response", "runtime.event", "runtime.ack", "runtime.gap", "runtime.encrypted", "interaction.request", "interaction.resolved", "interaction.cancelled"];
|
|
4724
|
+
readonly messageSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4725
|
+
type: z.ZodLiteral<"device.connect">;
|
|
4726
|
+
deviceId: z.core.$ZodBranded<z.ZodString, "DeviceId">;
|
|
4727
|
+
pairingToken: z.ZodString;
|
|
4728
|
+
protocolVersion: z.ZodLiteral<"1.2">;
|
|
4729
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4730
|
+
type: z.ZodLiteral<"runtime.request">;
|
|
4731
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RelayRequestId">;
|
|
4732
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4733
|
+
params: z.ZodJSONSchema;
|
|
4734
|
+
method: z.ZodEnum<{
|
|
4735
|
+
"operation.result.get": "operation.result.get";
|
|
4736
|
+
initialize: "initialize";
|
|
4737
|
+
"thread.list": "thread.list";
|
|
4738
|
+
"thread.create": "thread.create";
|
|
4739
|
+
"thread.open": "thread.open";
|
|
4740
|
+
"thread.snapshot": "thread.snapshot";
|
|
4741
|
+
"thread.rename": "thread.rename";
|
|
4742
|
+
"thread.delete": "thread.delete";
|
|
4743
|
+
"thread.detach": "thread.detach";
|
|
4744
|
+
"thread.capabilities": "thread.capabilities";
|
|
4745
|
+
"turn.start": "turn.start";
|
|
4746
|
+
"turn.cancel": "turn.cancel";
|
|
4747
|
+
"operation.get": "operation.get";
|
|
4748
|
+
"interaction.candidate": "interaction.candidate";
|
|
4749
|
+
}>;
|
|
4750
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4751
|
+
type: z.ZodLiteral<"runtime.response">;
|
|
4752
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RelayRequestId">;
|
|
4753
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4754
|
+
result: z.ZodOptional<z.ZodJSONSchema>;
|
|
4755
|
+
error: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4756
|
+
code: z.ZodString;
|
|
4757
|
+
message: z.ZodString;
|
|
4758
|
+
retryable: z.ZodBoolean;
|
|
4759
|
+
}, z.core.$strict>>>;
|
|
4760
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4761
|
+
type: z.ZodLiteral<"runtime.event">;
|
|
4762
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4763
|
+
relaySequence: z.ZodNumber;
|
|
4764
|
+
event: z.ZodReadonly<z.ZodObject<{
|
|
4765
|
+
protocolVersion: z.ZodEnum<{
|
|
4766
|
+
1.1: "1.1";
|
|
4767
|
+
"1.0": "1.0";
|
|
4768
|
+
}>;
|
|
4769
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
4770
|
+
sequence: z.ZodNumber;
|
|
4771
|
+
timestamp: z.ZodString;
|
|
4772
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4773
|
+
turnId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "TurnId">>;
|
|
4774
|
+
event: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4775
|
+
type: z.ZodLiteral<"turn.started">;
|
|
4776
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4777
|
+
type: z.ZodLiteral<"message.started">;
|
|
4778
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4779
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4780
|
+
type: z.ZodLiteral<"message.delta">;
|
|
4781
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4782
|
+
delta: z.ZodString;
|
|
4783
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4784
|
+
type: z.ZodLiteral<"message.completed">;
|
|
4785
|
+
streamId: z.core.$ZodBranded<z.ZodString, "StreamId">;
|
|
4786
|
+
text: z.ZodString;
|
|
4787
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4788
|
+
type: z.ZodLiteral<"reasoning.summary.delta">;
|
|
4789
|
+
reasoningId: z.ZodString;
|
|
4790
|
+
delta: z.ZodString;
|
|
4791
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4792
|
+
type: z.ZodLiteral<"tool.started">;
|
|
4793
|
+
toolCallId: z.ZodString;
|
|
4794
|
+
agentName: z.ZodString;
|
|
4795
|
+
toolName: z.ZodString;
|
|
4796
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4797
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4798
|
+
toolCallId: z.ZodString;
|
|
4799
|
+
agentName: z.ZodString;
|
|
4800
|
+
toolName: z.ZodString;
|
|
4801
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4802
|
+
kind: z.ZodEnum<{
|
|
4803
|
+
success: "success";
|
|
4804
|
+
user_rejected: "user_rejected";
|
|
4805
|
+
policy_denied: "policy_denied";
|
|
4806
|
+
invalid_input: "invalid_input";
|
|
4807
|
+
cancelled: "cancelled";
|
|
4808
|
+
tool_failed: "tool_failed";
|
|
4809
|
+
}>;
|
|
4810
|
+
}, z.core.$strict>>>;
|
|
4811
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4812
|
+
type: z.ZodLiteral<"approval.required">;
|
|
4813
|
+
approval: z.ZodReadonly<z.ZodObject<{
|
|
4814
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4815
|
+
agentName: z.ZodString;
|
|
4816
|
+
toolName: z.ZodString;
|
|
4817
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4818
|
+
}, z.core.$strict>>;
|
|
4819
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4820
|
+
type: z.ZodLiteral<"approval.resolved">;
|
|
4821
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4822
|
+
resolution: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4823
|
+
status: z.ZodLiteral<"resolved">;
|
|
4824
|
+
decision: z.ZodEnum<{
|
|
4825
|
+
approve: "approve";
|
|
4826
|
+
reject: "reject";
|
|
4827
|
+
}>;
|
|
4828
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4829
|
+
status: z.ZodLiteral<"cancelled">;
|
|
4830
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4831
|
+
status: z.ZodLiteral<"expired">;
|
|
4832
|
+
}, z.core.$strict>>]>;
|
|
4833
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4834
|
+
type: z.ZodLiteral<"turn.completed">;
|
|
4835
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4836
|
+
type: z.ZodLiteral<"turn.cancelled">;
|
|
4837
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4838
|
+
type: z.ZodLiteral<"turn.failed">;
|
|
4839
|
+
stage: z.ZodEnum<{
|
|
4840
|
+
bootstrap: "bootstrap";
|
|
4841
|
+
plan: "plan";
|
|
4842
|
+
execute: "execute";
|
|
4843
|
+
}>;
|
|
4844
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4845
|
+
type: z.ZodLiteral<"capabilities.changed">;
|
|
4846
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4847
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
4848
|
+
toolCallId: z.ZodString;
|
|
4849
|
+
agentName: z.ZodString;
|
|
4850
|
+
toolName: z.ZodString;
|
|
4851
|
+
outcome: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4852
|
+
kind: z.ZodEnum<{
|
|
4853
|
+
success: "success";
|
|
4854
|
+
user_rejected: "user_rejected";
|
|
4855
|
+
policy_denied: "policy_denied";
|
|
4856
|
+
invalid_input: "invalid_input";
|
|
4857
|
+
cancelled: "cancelled";
|
|
4858
|
+
tool_failed: "tool_failed";
|
|
4859
|
+
}>;
|
|
4860
|
+
}, z.core.$strict>>>;
|
|
4861
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4862
|
+
status: z.ZodLiteral<"rejected">;
|
|
4863
|
+
reason: z.ZodEnum<{
|
|
4864
|
+
credential_field: "credential_field";
|
|
4865
|
+
credential_value: "credential_value";
|
|
4866
|
+
}>;
|
|
4867
|
+
field: z.ZodOptional<z.ZodString>;
|
|
4868
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
4869
|
+
status: z.ZodLiteral<"available">;
|
|
4870
|
+
schemaId: z.ZodString;
|
|
4871
|
+
schemaVersion: z.ZodNumber;
|
|
4872
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
4873
|
+
status: z.ZodEnum<{
|
|
4874
|
+
not_provided: "not_provided";
|
|
4875
|
+
invalid: "invalid";
|
|
4876
|
+
too_large: "too_large";
|
|
4877
|
+
expired: "expired";
|
|
4878
|
+
denied: "denied";
|
|
4879
|
+
}>;
|
|
4880
|
+
}, z.core.$strict>]>>>;
|
|
4881
|
+
operationId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "OperationId">>;
|
|
4882
|
+
}, z.core.$strict>>]>;
|
|
4883
|
+
}, z.core.$strict>>;
|
|
4884
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4885
|
+
type: z.ZodLiteral<"runtime.ack">;
|
|
4886
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4887
|
+
throughRelaySequence: z.ZodNumber;
|
|
4888
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4889
|
+
type: z.ZodLiteral<"runtime.gap">;
|
|
4890
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4891
|
+
fromRelaySequence: z.ZodNumber;
|
|
4892
|
+
throughRelaySequence: z.ZodNumber;
|
|
4893
|
+
recovery: z.ZodLiteral<"thread.snapshot">;
|
|
4894
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4895
|
+
type: z.ZodLiteral<"runtime.encrypted">;
|
|
4896
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4897
|
+
envelopeId: z.ZodString;
|
|
4898
|
+
payloadKind: z.ZodEnum<{
|
|
4899
|
+
interaction: "interaction";
|
|
4900
|
+
event: "event";
|
|
4901
|
+
request: "request";
|
|
4902
|
+
response: "response";
|
|
4903
|
+
}>;
|
|
4904
|
+
requestId: z.ZodOptional<z.core.$ZodBranded<z.ZodString, "RelayRequestId">>;
|
|
4905
|
+
relaySequence: z.ZodOptional<z.ZodNumber>;
|
|
4906
|
+
algorithm: z.ZodString;
|
|
4907
|
+
nonce: z.ZodString;
|
|
4908
|
+
ciphertext: z.ZodString;
|
|
4909
|
+
}, z.core.$strict>>, z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4910
|
+
method: z.ZodLiteral<"approval.request">;
|
|
4911
|
+
projection: z.ZodReadonly<z.ZodObject<{
|
|
4912
|
+
approvalId: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
4913
|
+
agentName: z.ZodString;
|
|
4914
|
+
toolName: z.ZodString;
|
|
4915
|
+
explanation: z.ZodOptional<z.ZodString>;
|
|
4916
|
+
}, z.core.$strict>>;
|
|
4917
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4918
|
+
relaySequence: z.ZodNumber;
|
|
4919
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4920
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4921
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4922
|
+
expiresAt: z.ZodString;
|
|
4923
|
+
sensitivity: z.ZodLiteral<"normal">;
|
|
4924
|
+
type: z.ZodLiteral<"interaction.request">;
|
|
4925
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4926
|
+
method: z.ZodLiteral<"userInput.request">;
|
|
4927
|
+
projection: z.ZodReadonly<z.ZodObject<{
|
|
4928
|
+
title: z.ZodOptional<z.ZodString>;
|
|
4929
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4930
|
+
controls: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
4931
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
4932
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4933
|
+
id: z.ZodString;
|
|
4934
|
+
label: z.ZodString;
|
|
4935
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4936
|
+
required: z.ZodBoolean;
|
|
4937
|
+
type: z.ZodLiteral<"text">;
|
|
4938
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4939
|
+
minLength: z.ZodOptional<z.ZodNumber>;
|
|
4940
|
+
maxLength: z.ZodOptional<z.ZodNumber>;
|
|
4941
|
+
id: z.ZodString;
|
|
4942
|
+
label: z.ZodString;
|
|
4943
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4944
|
+
required: z.ZodBoolean;
|
|
4945
|
+
type: z.ZodLiteral<"multiline">;
|
|
4946
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4947
|
+
min: z.ZodOptional<z.ZodNumber>;
|
|
4948
|
+
max: z.ZodOptional<z.ZodNumber>;
|
|
4949
|
+
integer: z.ZodOptional<z.ZodBoolean>;
|
|
4950
|
+
id: z.ZodString;
|
|
4951
|
+
label: z.ZodString;
|
|
4952
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4953
|
+
required: z.ZodBoolean;
|
|
4954
|
+
type: z.ZodLiteral<"number">;
|
|
4955
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4956
|
+
id: z.ZodString;
|
|
4957
|
+
label: z.ZodString;
|
|
4958
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4959
|
+
required: z.ZodBoolean;
|
|
4960
|
+
type: z.ZodLiteral<"boolean">;
|
|
4961
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4962
|
+
multiple: z.ZodBoolean;
|
|
4963
|
+
options: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
4964
|
+
id: z.ZodString;
|
|
4965
|
+
label: z.ZodString;
|
|
4966
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4967
|
+
}, z.core.$strict>>>;
|
|
4968
|
+
minSelections: z.ZodOptional<z.ZodNumber>;
|
|
4969
|
+
maxSelections: z.ZodOptional<z.ZodNumber>;
|
|
4970
|
+
id: z.ZodString;
|
|
4971
|
+
label: z.ZodString;
|
|
4972
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4973
|
+
required: z.ZodBoolean;
|
|
4974
|
+
type: z.ZodLiteral<"choice">;
|
|
4975
|
+
}, z.core.$strict>>]>>;
|
|
4976
|
+
}, z.core.$strict>>;
|
|
4977
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4978
|
+
relaySequence: z.ZodNumber;
|
|
4979
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4980
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4981
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4982
|
+
expiresAt: z.ZodString;
|
|
4983
|
+
sensitivity: z.ZodLiteral<"normal">;
|
|
4984
|
+
type: z.ZodLiteral<"interaction.request">;
|
|
4985
|
+
}, z.core.$strict>>]>, z.ZodReadonly<z.ZodObject<{
|
|
4986
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4987
|
+
relaySequence: z.ZodNumber;
|
|
4988
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
4989
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
4990
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
4991
|
+
method: z.ZodEnum<{
|
|
4992
|
+
"approval.request": "approval.request";
|
|
4993
|
+
"userInput.request": "userInput.request";
|
|
4994
|
+
}>;
|
|
4995
|
+
type: z.ZodLiteral<"interaction.resolved">;
|
|
4996
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
4997
|
+
workspaceId: z.core.$ZodBranded<z.ZodString, "WorkspaceId">;
|
|
4998
|
+
relaySequence: z.ZodNumber;
|
|
4999
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
5000
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5001
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5002
|
+
method: z.ZodEnum<{
|
|
5003
|
+
"approval.request": "approval.request";
|
|
5004
|
+
"userInput.request": "userInput.request";
|
|
5005
|
+
}>;
|
|
5006
|
+
type: z.ZodLiteral<"interaction.cancelled">;
|
|
5007
|
+
}, z.core.$strict>>]>;
|
|
5008
|
+
readonly requestMethods: readonly ["initialize", "thread.list", "thread.create", "thread.open", "thread.snapshot", "thread.rename", "thread.delete", "thread.detach", "thread.capabilities", "turn.start", "turn.cancel", "operation.get", "interaction.candidate", "operation.result.get"];
|
|
5009
|
+
readonly requestMethodSchemas: {
|
|
5010
|
+
readonly "thread.open": {
|
|
5011
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5012
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
5013
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5014
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5015
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5016
|
+
createdAt: z.ZodString;
|
|
5017
|
+
updatedAt: z.ZodString;
|
|
5018
|
+
messageCount: z.ZodNumber;
|
|
5019
|
+
}, z.core.$strict>>;
|
|
5020
|
+
messages: z.ZodReadonly<z.ZodObject<{
|
|
5021
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5022
|
+
sequence: z.ZodNumber;
|
|
5023
|
+
role: z.ZodEnum<{
|
|
5024
|
+
user: "user";
|
|
5025
|
+
assistant: "assistant";
|
|
5026
|
+
}>;
|
|
5027
|
+
createdAt: z.ZodString;
|
|
5028
|
+
parts: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5029
|
+
type: z.ZodLiteral<"text">;
|
|
5030
|
+
text: z.ZodString;
|
|
5031
|
+
}, z.core.$strict>>>;
|
|
5032
|
+
}, z.core.$strict>>>;
|
|
5033
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
5034
|
+
}, z.core.$strict>>;
|
|
5035
|
+
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
5036
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5037
|
+
status: z.ZodEnum<{
|
|
5038
|
+
running: "running";
|
|
5039
|
+
cancelling: "cancelling";
|
|
5040
|
+
}>;
|
|
5041
|
+
startedAt: z.ZodString;
|
|
5042
|
+
}, z.core.$strict>>>;
|
|
5043
|
+
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5044
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
5045
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5046
|
+
agentName: z.ZodString;
|
|
5047
|
+
toolName: z.ZodString;
|
|
5048
|
+
preview: z.ZodJSONSchema;
|
|
5049
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5050
|
+
}, z.core.$strict>>>;
|
|
5051
|
+
transcriptCompleteness: z.ZodEnum<{
|
|
5052
|
+
complete: "complete";
|
|
5053
|
+
legacy_snapshot: "legacy_snapshot";
|
|
5054
|
+
}>;
|
|
5055
|
+
operations: z.ZodReadonly<z.ZodObject<{
|
|
5056
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5057
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5058
|
+
sequence: z.ZodNumber;
|
|
5059
|
+
toolCallId: z.ZodString;
|
|
5060
|
+
agentName: z.ZodString;
|
|
5061
|
+
toolName: z.ZodString;
|
|
5062
|
+
createdAt: z.ZodString;
|
|
5063
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
5064
|
+
kind: z.ZodEnum<{
|
|
5065
|
+
success: "success";
|
|
5066
|
+
user_rejected: "user_rejected";
|
|
5067
|
+
policy_denied: "policy_denied";
|
|
5068
|
+
invalid_input: "invalid_input";
|
|
5069
|
+
cancelled: "cancelled";
|
|
5070
|
+
tool_failed: "tool_failed";
|
|
5071
|
+
}>;
|
|
5072
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5073
|
+
}, z.core.$strict>>;
|
|
5074
|
+
display: z.ZodJSONSchema;
|
|
5075
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5076
|
+
status: z.ZodLiteral<"rejected">;
|
|
5077
|
+
reason: z.ZodEnum<{
|
|
5078
|
+
credential_field: "credential_field";
|
|
5079
|
+
credential_value: "credential_value";
|
|
5080
|
+
}>;
|
|
5081
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5082
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
5083
|
+
status: z.ZodLiteral<"available">;
|
|
5084
|
+
schemaId: z.ZodString;
|
|
5085
|
+
schemaVersion: z.ZodNumber;
|
|
5086
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5087
|
+
status: z.ZodEnum<{
|
|
5088
|
+
not_provided: "not_provided";
|
|
5089
|
+
invalid: "invalid";
|
|
5090
|
+
too_large: "too_large";
|
|
5091
|
+
expired: "expired";
|
|
5092
|
+
denied: "denied";
|
|
5093
|
+
}>;
|
|
5094
|
+
}, z.core.$strict>]>>>;
|
|
5095
|
+
}, z.core.$strict>>>;
|
|
5096
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
5097
|
+
}, z.core.$strict>>;
|
|
5098
|
+
}, z.core.$strict>>;
|
|
5099
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5100
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5101
|
+
}, z.core.$strict>>;
|
|
5102
|
+
};
|
|
5103
|
+
readonly "thread.snapshot": {
|
|
5104
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5105
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
5106
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5107
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5108
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5109
|
+
createdAt: z.ZodString;
|
|
5110
|
+
updatedAt: z.ZodString;
|
|
5111
|
+
messageCount: z.ZodNumber;
|
|
5112
|
+
}, z.core.$strict>>;
|
|
5113
|
+
messages: z.ZodReadonly<z.ZodObject<{
|
|
5114
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5115
|
+
sequence: z.ZodNumber;
|
|
5116
|
+
role: z.ZodEnum<{
|
|
5117
|
+
user: "user";
|
|
5118
|
+
assistant: "assistant";
|
|
5119
|
+
}>;
|
|
5120
|
+
createdAt: z.ZodString;
|
|
5121
|
+
parts: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5122
|
+
type: z.ZodLiteral<"text">;
|
|
5123
|
+
text: z.ZodString;
|
|
5124
|
+
}, z.core.$strict>>>;
|
|
5125
|
+
}, z.core.$strict>>>;
|
|
5126
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
5127
|
+
}, z.core.$strict>>;
|
|
5128
|
+
activeTurn: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
5129
|
+
id: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5130
|
+
status: z.ZodEnum<{
|
|
5131
|
+
running: "running";
|
|
5132
|
+
cancelling: "cancelling";
|
|
5133
|
+
}>;
|
|
5134
|
+
startedAt: z.ZodString;
|
|
5135
|
+
}, z.core.$strict>>>;
|
|
5136
|
+
pendingApprovals: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5137
|
+
id: z.core.$ZodBranded<z.ZodString, "ApprovalId">;
|
|
5138
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5139
|
+
agentName: z.ZodString;
|
|
5140
|
+
toolName: z.ZodString;
|
|
5141
|
+
preview: z.ZodJSONSchema;
|
|
5142
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5143
|
+
}, z.core.$strict>>>;
|
|
5144
|
+
transcriptCompleteness: z.ZodEnum<{
|
|
5145
|
+
complete: "complete";
|
|
5146
|
+
legacy_snapshot: "legacy_snapshot";
|
|
5147
|
+
}>;
|
|
5148
|
+
operations: z.ZodReadonly<z.ZodObject<{
|
|
5149
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5150
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5151
|
+
sequence: z.ZodNumber;
|
|
5152
|
+
toolCallId: z.ZodString;
|
|
5153
|
+
agentName: z.ZodString;
|
|
5154
|
+
toolName: z.ZodString;
|
|
5155
|
+
createdAt: z.ZodString;
|
|
5156
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
5157
|
+
kind: z.ZodEnum<{
|
|
5158
|
+
success: "success";
|
|
5159
|
+
user_rejected: "user_rejected";
|
|
5160
|
+
policy_denied: "policy_denied";
|
|
5161
|
+
invalid_input: "invalid_input";
|
|
5162
|
+
cancelled: "cancelled";
|
|
5163
|
+
tool_failed: "tool_failed";
|
|
5164
|
+
}>;
|
|
5165
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5166
|
+
}, z.core.$strict>>;
|
|
5167
|
+
display: z.ZodJSONSchema;
|
|
5168
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5169
|
+
status: z.ZodLiteral<"rejected">;
|
|
5170
|
+
reason: z.ZodEnum<{
|
|
5171
|
+
credential_field: "credential_field";
|
|
5172
|
+
credential_value: "credential_value";
|
|
5173
|
+
}>;
|
|
5174
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5175
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
5176
|
+
status: z.ZodLiteral<"available">;
|
|
5177
|
+
schemaId: z.ZodString;
|
|
5178
|
+
schemaVersion: z.ZodNumber;
|
|
5179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5180
|
+
status: z.ZodEnum<{
|
|
5181
|
+
not_provided: "not_provided";
|
|
5182
|
+
invalid: "invalid";
|
|
5183
|
+
too_large: "too_large";
|
|
5184
|
+
expired: "expired";
|
|
5185
|
+
denied: "denied";
|
|
5186
|
+
}>;
|
|
5187
|
+
}, z.core.$strict>]>>>;
|
|
5188
|
+
}, z.core.$strict>>>;
|
|
5189
|
+
nextBeforeSequence: z.ZodNullable<z.ZodNumber>;
|
|
5190
|
+
}, z.core.$strict>>;
|
|
5191
|
+
}, z.core.$strict>>;
|
|
5192
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5193
|
+
messageBeforeSequence: z.ZodOptional<z.ZodNumber>;
|
|
5194
|
+
operationBeforeSequence: z.ZodOptional<z.ZodNumber>;
|
|
5195
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
5196
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5197
|
+
}, z.core.$strict>>;
|
|
5198
|
+
};
|
|
5199
|
+
readonly "thread.capabilities": {
|
|
5200
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5201
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5202
|
+
}, z.core.$strict>>;
|
|
5203
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5204
|
+
manifest: z.ZodJSONSchema;
|
|
5205
|
+
}, z.core.$strict>>;
|
|
5206
|
+
};
|
|
5207
|
+
readonly "operation.get": {
|
|
5208
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5209
|
+
operation: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
5210
|
+
id: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5211
|
+
sequence: z.ZodNumber;
|
|
5212
|
+
toolCallId: z.ZodString;
|
|
5213
|
+
agentName: z.ZodString;
|
|
5214
|
+
toolName: z.ZodString;
|
|
5215
|
+
createdAt: z.ZodString;
|
|
5216
|
+
outcome: z.ZodReadonly<z.ZodObject<{
|
|
5217
|
+
kind: z.ZodEnum<{
|
|
5218
|
+
success: "success";
|
|
5219
|
+
user_rejected: "user_rejected";
|
|
5220
|
+
policy_denied: "policy_denied";
|
|
5221
|
+
invalid_input: "invalid_input";
|
|
5222
|
+
cancelled: "cancelled";
|
|
5223
|
+
tool_failed: "tool_failed";
|
|
5224
|
+
}>;
|
|
5225
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5226
|
+
}, z.core.$strict>>;
|
|
5227
|
+
display: z.ZodJSONSchema;
|
|
5228
|
+
appOutput: z.ZodOptional<z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5229
|
+
status: z.ZodLiteral<"rejected">;
|
|
5230
|
+
reason: z.ZodEnum<{
|
|
5231
|
+
credential_field: "credential_field";
|
|
5232
|
+
credential_value: "credential_value";
|
|
5233
|
+
}>;
|
|
5234
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5235
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
5236
|
+
status: z.ZodLiteral<"available">;
|
|
5237
|
+
schemaId: z.ZodString;
|
|
5238
|
+
schemaVersion: z.ZodNumber;
|
|
5239
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5240
|
+
status: z.ZodEnum<{
|
|
5241
|
+
not_provided: "not_provided";
|
|
5242
|
+
invalid: "invalid";
|
|
5243
|
+
too_large: "too_large";
|
|
5244
|
+
expired: "expired";
|
|
5245
|
+
denied: "denied";
|
|
5246
|
+
}>;
|
|
5247
|
+
}, z.core.$strict>]>>>;
|
|
5248
|
+
}, z.core.$strict>>>;
|
|
5249
|
+
}, z.core.$strict>>;
|
|
5250
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5251
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5252
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5253
|
+
}, z.core.$strict>>;
|
|
5254
|
+
};
|
|
5255
|
+
readonly "operation.result.get": {
|
|
5256
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5257
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5258
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5259
|
+
}, z.core.$strict>>;
|
|
5260
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5261
|
+
result: z.ZodNullable<z.ZodReadonly<z.ZodObject<{
|
|
5262
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5263
|
+
operationId: z.core.$ZodBranded<z.ZodString, "OperationId">;
|
|
5264
|
+
agentName: z.ZodString;
|
|
5265
|
+
toolName: z.ZodString;
|
|
5266
|
+
createdAt: z.ZodString;
|
|
5267
|
+
output: z.ZodReadonly<z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5268
|
+
status: z.ZodLiteral<"rejected">;
|
|
5269
|
+
reason: z.ZodEnum<{
|
|
5270
|
+
credential_field: "credential_field";
|
|
5271
|
+
credential_value: "credential_value";
|
|
5272
|
+
}>;
|
|
5273
|
+
field: z.ZodOptional<z.ZodString>;
|
|
5274
|
+
}, z.core.$strict>>, z.ZodObject<{
|
|
5275
|
+
status: z.ZodLiteral<"available">;
|
|
5276
|
+
schemaId: z.ZodString;
|
|
5277
|
+
schemaVersion: z.ZodNumber;
|
|
5278
|
+
remoteReadable: z.ZodBoolean;
|
|
5279
|
+
data: z.ZodRecord<z.ZodString, z.ZodJSONSchema>;
|
|
5280
|
+
fallbackText: z.ZodString;
|
|
5281
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
5282
|
+
status: z.ZodEnum<{
|
|
5283
|
+
not_provided: "not_provided";
|
|
5284
|
+
invalid: "invalid";
|
|
5285
|
+
too_large: "too_large";
|
|
5286
|
+
expired: "expired";
|
|
5287
|
+
denied: "denied";
|
|
5288
|
+
}>;
|
|
5289
|
+
}, z.core.$strict>]>>;
|
|
5290
|
+
}, z.core.$strict>>>;
|
|
5291
|
+
}, z.core.$strict>>;
|
|
5292
|
+
};
|
|
5293
|
+
readonly initialize: {
|
|
5294
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5295
|
+
protocolVersions: z.ZodArray<z.ZodString>;
|
|
5296
|
+
client: z.ZodReadonly<z.ZodObject<{
|
|
5297
|
+
name: z.ZodString;
|
|
5298
|
+
version: z.ZodString;
|
|
5299
|
+
}, z.core.$strict>>;
|
|
5300
|
+
}, z.core.$strict>>;
|
|
5301
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5302
|
+
limits: z.ZodReadonly<z.ZodObject<{
|
|
5303
|
+
maxFrameBytes: z.ZodNumber;
|
|
5304
|
+
maxPageSize: z.ZodNumber;
|
|
5305
|
+
eventReplay: z.ZodLiteral<false>;
|
|
5306
|
+
idempotencyCacheEntries: z.ZodNumber;
|
|
5307
|
+
}, z.core.$strict>>;
|
|
5308
|
+
runtimeInstanceId: z.core.$ZodBranded<z.ZodString, "RuntimeInstanceId">;
|
|
5309
|
+
server: z.ZodReadonly<z.ZodObject<{
|
|
5310
|
+
runtimeVersion: z.ZodString;
|
|
5311
|
+
name: z.ZodString;
|
|
5312
|
+
version: z.ZodString;
|
|
5313
|
+
}, z.core.$strict>>;
|
|
5314
|
+
features: z.ZodArray<z.ZodEnum<{
|
|
5315
|
+
"thread-management": "thread-management";
|
|
5316
|
+
snapshots: "snapshots";
|
|
5317
|
+
turns: "turns";
|
|
5318
|
+
approvals: "approvals";
|
|
5319
|
+
"tool-streaming": "tool-streaming";
|
|
5320
|
+
"reasoning-summary": "reasoning-summary";
|
|
5321
|
+
"operation-projection": "operation-projection";
|
|
5322
|
+
"process-local-sequence": "process-local-sequence";
|
|
5323
|
+
}>>;
|
|
5324
|
+
protocolVersion: z.ZodEnum<{
|
|
5325
|
+
1.1: "1.1";
|
|
5326
|
+
"1.0": "1.0";
|
|
5327
|
+
}>;
|
|
5328
|
+
}, z.core.$strict>>;
|
|
5329
|
+
};
|
|
5330
|
+
readonly "thread.list": {
|
|
5331
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5332
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5333
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
5334
|
+
}, z.core.$strict>>;
|
|
5335
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5336
|
+
items: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5337
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5338
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5339
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5340
|
+
createdAt: z.ZodString;
|
|
5341
|
+
updatedAt: z.ZodString;
|
|
5342
|
+
messageCount: z.ZodNumber;
|
|
5343
|
+
}, z.core.$strict>>>;
|
|
5344
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
5345
|
+
}, z.core.$strict>>;
|
|
5346
|
+
};
|
|
5347
|
+
readonly "thread.create": {
|
|
5348
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5349
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5350
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5351
|
+
}, z.core.$strict>>;
|
|
5352
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5353
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
5354
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5355
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5356
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5357
|
+
createdAt: z.ZodString;
|
|
5358
|
+
updatedAt: z.ZodString;
|
|
5359
|
+
messageCount: z.ZodNumber;
|
|
5360
|
+
}, z.core.$strict>>;
|
|
5361
|
+
}, z.core.$strict>>;
|
|
5362
|
+
};
|
|
5363
|
+
readonly "thread.rename": {
|
|
5364
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5365
|
+
title: z.ZodString;
|
|
5366
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5367
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5368
|
+
}, z.core.$strict>>;
|
|
5369
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5370
|
+
thread: z.ZodReadonly<z.ZodObject<{
|
|
5371
|
+
id: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5372
|
+
title: z.ZodOptional<z.ZodString>;
|
|
5373
|
+
model: z.ZodOptional<z.ZodString>;
|
|
5374
|
+
createdAt: z.ZodString;
|
|
5375
|
+
updatedAt: z.ZodString;
|
|
5376
|
+
messageCount: z.ZodNumber;
|
|
5377
|
+
}, z.core.$strict>>;
|
|
5378
|
+
}, z.core.$strict>>;
|
|
5379
|
+
};
|
|
5380
|
+
readonly "thread.delete": {
|
|
5381
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5382
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5383
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5384
|
+
}, z.core.$strict>>;
|
|
5385
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5386
|
+
deleted: z.ZodLiteral<true>;
|
|
5387
|
+
}, z.core.$strict>>;
|
|
5388
|
+
};
|
|
5389
|
+
readonly "thread.detach": {
|
|
5390
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5391
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5392
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5393
|
+
}, z.core.$strict>>;
|
|
5394
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5395
|
+
detached: z.ZodBoolean;
|
|
5396
|
+
}, z.core.$strict>>;
|
|
5397
|
+
};
|
|
5398
|
+
readonly "turn.start": {
|
|
5399
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5400
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5401
|
+
input: z.ZodReadonly<z.ZodObject<{
|
|
5402
|
+
text: z.ZodString;
|
|
5403
|
+
}, z.core.$strict>>;
|
|
5404
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5405
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5406
|
+
}, z.core.$strict>>;
|
|
5407
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5408
|
+
accepted: z.ZodLiteral<true>;
|
|
5409
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5410
|
+
}, z.core.$strict>>;
|
|
5411
|
+
};
|
|
5412
|
+
readonly "turn.cancel": {
|
|
5413
|
+
readonly params: z.ZodReadonly<z.ZodObject<{
|
|
5414
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5415
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5416
|
+
requestId: z.core.$ZodBranded<z.ZodString, "RequestId">;
|
|
5417
|
+
}, z.core.$strict>>;
|
|
5418
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5419
|
+
cancelling: z.ZodBoolean;
|
|
5420
|
+
}, z.core.$strict>>;
|
|
5421
|
+
};
|
|
5422
|
+
readonly "interaction.candidate": {
|
|
5423
|
+
readonly params: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5424
|
+
method: z.ZodLiteral<"approval.request">;
|
|
5425
|
+
candidate: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5426
|
+
decision: z.ZodLiteral<"approve">;
|
|
5427
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
5428
|
+
decision: z.ZodLiteral<"reject">;
|
|
5429
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5430
|
+
}, z.core.$strict>>]>;
|
|
5431
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
5432
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5433
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5434
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
5435
|
+
method: z.ZodLiteral<"userInput.request">;
|
|
5436
|
+
candidate: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
5437
|
+
status: z.ZodLiteral<"submitted">;
|
|
5438
|
+
values: z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
5439
|
+
id: z.ZodString;
|
|
5440
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodString>]>;
|
|
5441
|
+
}, z.core.$strict>>>;
|
|
5442
|
+
}, z.core.$strict>>, z.ZodReadonly<z.ZodObject<{
|
|
5443
|
+
status: z.ZodLiteral<"cancelled">;
|
|
5444
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
5445
|
+
}, z.core.$strict>>]>;
|
|
5446
|
+
interactionId: z.core.$ZodBranded<z.ZodString, "InteractionId">;
|
|
5447
|
+
threadId: z.core.$ZodBranded<z.ZodString, "ThreadId">;
|
|
5448
|
+
turnId: z.core.$ZodBranded<z.ZodString, "TurnId">;
|
|
5449
|
+
}, z.core.$strict>>]>;
|
|
5450
|
+
readonly result: z.ZodReadonly<z.ZodObject<{
|
|
5451
|
+
accepted: z.ZodLiteral<true>;
|
|
5452
|
+
}, z.core.$strict>>;
|
|
5453
|
+
};
|
|
5454
|
+
};
|
|
5455
|
+
readonly requestMethodDispositions: {
|
|
5456
|
+
readonly "operation.result.get": "query";
|
|
5457
|
+
readonly initialize: "local-only";
|
|
5458
|
+
readonly "thread.list": "query";
|
|
5459
|
+
readonly "thread.create": "mutation";
|
|
5460
|
+
readonly "thread.open": "query";
|
|
5461
|
+
readonly "thread.snapshot": "query";
|
|
5462
|
+
readonly "thread.rename": "mutation";
|
|
5463
|
+
readonly "thread.delete": "mutation";
|
|
5464
|
+
readonly "thread.detach": "mutation";
|
|
5465
|
+
readonly "thread.capabilities": "query";
|
|
5466
|
+
readonly "turn.start": "mutation";
|
|
5467
|
+
readonly "turn.cancel": "mutation";
|
|
5468
|
+
readonly "operation.get": "query";
|
|
5469
|
+
readonly "interaction.candidate": "mutation";
|
|
5470
|
+
};
|
|
5471
|
+
readonly mutationMethods: readonly ["thread.create", "thread.rename", "thread.delete", "thread.detach", "turn.start", "turn.cancel", "interaction.candidate"];
|
|
5472
|
+
readonly localOnlyMethods: readonly ["initialize"];
|
|
5473
|
+
};
|
|
3509
5474
|
readonly "1.1": {
|
|
3510
5475
|
readonly messageTypes: readonly ["device.connect", "runtime.request", "runtime.response", "runtime.event", "runtime.ack", "runtime.gap", "runtime.encrypted", "interaction.request", "interaction.resolved", "interaction.cancelled"];
|
|
3511
5476
|
readonly messageSchema: z.ZodDiscriminatedUnion<[z.ZodReadonly<z.ZodObject<{
|
|
@@ -4671,7 +6636,7 @@ type RelaySchemaResult<TDefinition> = TDefinition extends {
|
|
|
4671
6636
|
readonly result: infer TSchema extends z.ZodType;
|
|
4672
6637
|
} ? TSchema : never;
|
|
4673
6638
|
export type RelayMessageForVersion<TVersion extends RelayProtocolVersion> = z.output<RelayProtocolRegistryMap[TVersion]["messageSchema"]>;
|
|
4674
|
-
export type RelayRequestMethodForVersion<TVersion extends RelayProtocolVersion> = Extract<keyof RelayProtocolRegistryMap[TVersion]["requestMethodSchemas"], string
|
|
6639
|
+
export type RelayRequestMethodForVersion<TVersion extends RelayProtocolVersion> = TVersion extends RelayProtocolVersion ? Extract<keyof RelayProtocolRegistryMap[TVersion]["requestMethodSchemas"], string> : never;
|
|
4675
6640
|
type RelayRequestMethodDefinitionForVersion<TVersion extends RelayProtocolVersion, TMethod extends RelayRequestMethodForVersion<TVersion>> = TMethod extends keyof RelayProtocolRegistryMap[TVersion]["requestMethodSchemas"] ? RelayProtocolRegistryMap[TVersion]["requestMethodSchemas"][TMethod] : never;
|
|
4676
6641
|
export type RelayRequestParamsForVersion<TVersion extends RelayProtocolVersion, TMethod extends RelayRequestMethodForVersion<TVersion>> = z.output<RelaySchemaParams<RelayRequestMethodDefinitionForVersion<TVersion, TMethod>>>;
|
|
4677
6642
|
export type RelayRequestResultForVersion<TVersion extends RelayProtocolVersion, TMethod extends RelayRequestMethodForVersion<TVersion>> = z.output<RelaySchemaResult<RelayRequestMethodDefinitionForVersion<TVersion, TMethod>>>;
|
|
@@ -4751,4 +6716,7 @@ export type RelayRuntimeEvent = z.infer<typeof relayRuntimeEventSchema>;
|
|
|
4751
6716
|
export type RelayGap = z.infer<typeof relayGapSchema>;
|
|
4752
6717
|
/** @deprecated Legacy generic Relay types remain pinned to Wire 1.0. */
|
|
4753
6718
|
export type RelayEncryptedMessage = z.infer<typeof relayEncryptedMessageSchema>;
|
|
6719
|
+
export type RelaySupportedMessage = RelayMessageV11 | RelayMessageV12;
|
|
6720
|
+
/** Keep legacy capability payloads free of unsupported App-output claims. */
|
|
6721
|
+
export declare function projectRelayCapabilitiesV11(value: unknown): JsonValue;
|
|
4754
6722
|
export {};
|