@opencode-ai/protocol 0.0.0-next-15016 → 0.0.0-next-15017
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/groups/event.d.ts +541 -222
- package/dist/groups/message.d.ts +23 -16
- package/dist/groups/session.d.ts +413 -143
- package/package.json +2 -2
package/dist/groups/session.d.ts
CHANGED
|
@@ -1709,13 +1709,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1709
1709
|
}>;
|
|
1710
1710
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1711
1711
|
readonly type: Schema.Literal<"text">;
|
|
1712
|
-
readonly id: Schema.String;
|
|
1713
1712
|
readonly text: Schema.String;
|
|
1714
1713
|
}>, Schema.Struct<{
|
|
1715
1714
|
readonly type: Schema.Literal<"reasoning">;
|
|
1716
|
-
readonly id: Schema.String;
|
|
1717
1715
|
readonly text: Schema.String;
|
|
1718
|
-
readonly
|
|
1716
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1719
1717
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1720
1718
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1721
1719
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
@@ -1727,15 +1725,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1727
1725
|
readonly type: Schema.Literal<"tool">;
|
|
1728
1726
|
readonly id: Schema.String;
|
|
1729
1727
|
readonly name: Schema.String;
|
|
1730
|
-
readonly
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
1734
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1735
|
-
readonly executed: Schema.Boolean;
|
|
1736
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
1737
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
1738
|
-
}>>, never, never>;
|
|
1728
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1729
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1730
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1739
1731
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1740
1732
|
readonly status: Schema.Literal<"pending">;
|
|
1741
1733
|
readonly input: Schema.String;
|
|
@@ -1858,7 +1850,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1858
1850
|
}>]>>;
|
|
1859
1851
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
1860
1852
|
readonly error: Schema.Struct<{
|
|
1861
|
-
readonly type: Schema.
|
|
1853
|
+
readonly type: Schema.String;
|
|
1862
1854
|
readonly message: Schema.String;
|
|
1863
1855
|
}>;
|
|
1864
1856
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
@@ -1879,7 +1871,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1879
1871
|
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1880
1872
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
1881
1873
|
}>>, never, never>;
|
|
1882
|
-
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
1874
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1883
1875
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
1884
1876
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1885
1877
|
readonly input: Schema.Finite;
|
|
@@ -1899,12 +1891,27 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1899
1891
|
}>;
|
|
1900
1892
|
}>>, never, never>;
|
|
1901
1893
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1902
|
-
readonly type: Schema.
|
|
1894
|
+
readonly type: Schema.String;
|
|
1903
1895
|
readonly message: Schema.String;
|
|
1904
1896
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1905
|
-
readonly type: Schema.
|
|
1897
|
+
readonly type: Schema.String;
|
|
1906
1898
|
readonly message: Schema.String;
|
|
1907
1899
|
}>>, never, never>;
|
|
1900
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1901
|
+
readonly attempt: Schema.Int;
|
|
1902
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1903
|
+
readonly error: Schema.Struct<{
|
|
1904
|
+
readonly type: Schema.String;
|
|
1905
|
+
readonly message: Schema.String;
|
|
1906
|
+
}>;
|
|
1907
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1908
|
+
readonly attempt: Schema.Int;
|
|
1909
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1910
|
+
readonly error: Schema.Struct<{
|
|
1911
|
+
readonly type: Schema.String;
|
|
1912
|
+
readonly message: Schema.String;
|
|
1913
|
+
}>;
|
|
1914
|
+
}>>, never, never>;
|
|
1908
1915
|
readonly time: Schema.Struct<{
|
|
1909
1916
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1910
1917
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
@@ -2730,6 +2737,216 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2730
2737
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2731
2738
|
};
|
|
2732
2739
|
}>;
|
|
2740
|
+
}) | (Schema.Struct<{
|
|
2741
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2742
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2743
|
+
};
|
|
2744
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2745
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2746
|
+
readonly type: Schema.Literal<"session.execution.started">;
|
|
2747
|
+
readonly durable: Schema.Struct<{
|
|
2748
|
+
readonly aggregateID: Schema.String;
|
|
2749
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2750
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2751
|
+
}>;
|
|
2752
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2753
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2754
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2755
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2756
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2757
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2758
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2759
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2760
|
+
}>, never, never>;
|
|
2761
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2762
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2763
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2764
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2765
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2766
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2767
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2768
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2769
|
+
}>, never, never>;
|
|
2770
|
+
}>>, never, never>;
|
|
2771
|
+
readonly data: Schema.Struct<{
|
|
2772
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2773
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2774
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2775
|
+
};
|
|
2776
|
+
}>;
|
|
2777
|
+
}> & {
|
|
2778
|
+
type: "session.execution.started";
|
|
2779
|
+
durability: "durable";
|
|
2780
|
+
durable: {
|
|
2781
|
+
readonly version: number;
|
|
2782
|
+
readonly aggregate: string;
|
|
2783
|
+
};
|
|
2784
|
+
data: Schema.Struct<{
|
|
2785
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2786
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2787
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2788
|
+
};
|
|
2789
|
+
}>;
|
|
2790
|
+
}) | (Schema.Struct<{
|
|
2791
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2792
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2793
|
+
};
|
|
2794
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2795
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2796
|
+
readonly type: Schema.Literal<"session.execution.succeeded">;
|
|
2797
|
+
readonly durable: Schema.Struct<{
|
|
2798
|
+
readonly aggregateID: Schema.String;
|
|
2799
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2800
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2801
|
+
}>;
|
|
2802
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2803
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2804
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2805
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2806
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2807
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2808
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2809
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2810
|
+
}>, never, never>;
|
|
2811
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2812
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2813
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2814
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2815
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2816
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2817
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2818
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2819
|
+
}>, never, never>;
|
|
2820
|
+
}>>, never, never>;
|
|
2821
|
+
readonly data: Schema.Struct<{
|
|
2822
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2823
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2824
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2825
|
+
};
|
|
2826
|
+
}>;
|
|
2827
|
+
}> & {
|
|
2828
|
+
type: "session.execution.succeeded";
|
|
2829
|
+
durability: "durable";
|
|
2830
|
+
durable: {
|
|
2831
|
+
readonly version: number;
|
|
2832
|
+
readonly aggregate: string;
|
|
2833
|
+
};
|
|
2834
|
+
data: Schema.Struct<{
|
|
2835
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2836
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2837
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2838
|
+
};
|
|
2839
|
+
}>;
|
|
2840
|
+
}) | (Schema.Struct<{
|
|
2841
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2842
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2843
|
+
};
|
|
2844
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2845
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2846
|
+
readonly type: Schema.Literal<"session.execution.failed">;
|
|
2847
|
+
readonly durable: Schema.Struct<{
|
|
2848
|
+
readonly aggregateID: Schema.String;
|
|
2849
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2850
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2851
|
+
}>;
|
|
2852
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2853
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2854
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2855
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2856
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2857
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2858
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2859
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2860
|
+
}>, never, never>;
|
|
2861
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2862
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2863
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2864
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2865
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2866
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2867
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2868
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2869
|
+
}>, never, never>;
|
|
2870
|
+
}>>, never, never>;
|
|
2871
|
+
readonly data: Schema.Struct<{
|
|
2872
|
+
readonly error: Schema.Struct<{
|
|
2873
|
+
readonly type: Schema.String;
|
|
2874
|
+
readonly message: Schema.String;
|
|
2875
|
+
}>;
|
|
2876
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2877
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2878
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2879
|
+
};
|
|
2880
|
+
}>;
|
|
2881
|
+
}> & {
|
|
2882
|
+
type: "session.execution.failed";
|
|
2883
|
+
durability: "durable";
|
|
2884
|
+
durable: {
|
|
2885
|
+
readonly version: number;
|
|
2886
|
+
readonly aggregate: string;
|
|
2887
|
+
};
|
|
2888
|
+
data: Schema.Struct<{
|
|
2889
|
+
readonly error: Schema.Struct<{
|
|
2890
|
+
readonly type: Schema.String;
|
|
2891
|
+
readonly message: Schema.String;
|
|
2892
|
+
}>;
|
|
2893
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2894
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2895
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2896
|
+
};
|
|
2897
|
+
}>;
|
|
2898
|
+
}) | (Schema.Struct<{
|
|
2899
|
+
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2900
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
2901
|
+
};
|
|
2902
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2903
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2904
|
+
readonly type: Schema.Literal<"session.execution.interrupted">;
|
|
2905
|
+
readonly durable: Schema.Struct<{
|
|
2906
|
+
readonly aggregateID: Schema.String;
|
|
2907
|
+
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
2908
|
+
readonly version: Schema.brand<Schema.Int, "Event.Version">;
|
|
2909
|
+
}>;
|
|
2910
|
+
readonly location: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2911
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2912
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2913
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2914
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2915
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2916
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2917
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2918
|
+
}>, never, never>;
|
|
2919
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2920
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2921
|
+
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2922
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2923
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2924
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "WorkspaceV2.ID"> & {
|
|
2925
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2926
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
2927
|
+
}>, never, never>;
|
|
2928
|
+
}>>, never, never>;
|
|
2929
|
+
readonly data: Schema.Struct<{
|
|
2930
|
+
readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded"]>;
|
|
2931
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2932
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2933
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2934
|
+
};
|
|
2935
|
+
}>;
|
|
2936
|
+
}> & {
|
|
2937
|
+
type: "session.execution.interrupted";
|
|
2938
|
+
durability: "durable";
|
|
2939
|
+
durable: {
|
|
2940
|
+
readonly version: number;
|
|
2941
|
+
readonly aggregate: string;
|
|
2942
|
+
};
|
|
2943
|
+
data: Schema.Struct<{
|
|
2944
|
+
readonly reason: Schema.Literals<readonly ["user", "shutdown", "superseded"]>;
|
|
2945
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2946
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2947
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2948
|
+
};
|
|
2949
|
+
}>;
|
|
2733
2950
|
}) | (Schema.Struct<{
|
|
2734
2951
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
2735
2952
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -3208,7 +3425,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3208
3425
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3209
3426
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3210
3427
|
};
|
|
3211
|
-
readonly finish: Schema.
|
|
3428
|
+
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
3212
3429
|
readonly cost: Schema.Finite;
|
|
3213
3430
|
readonly tokens: Schema.Struct<{
|
|
3214
3431
|
readonly input: Schema.Finite;
|
|
@@ -3238,7 +3455,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3238
3455
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3239
3456
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3240
3457
|
};
|
|
3241
|
-
readonly finish: Schema.
|
|
3458
|
+
readonly finish: Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>;
|
|
3242
3459
|
readonly cost: Schema.Finite;
|
|
3243
3460
|
readonly tokens: Schema.Struct<{
|
|
3244
3461
|
readonly input: Schema.Finite;
|
|
@@ -3293,7 +3510,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3293
3510
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3294
3511
|
};
|
|
3295
3512
|
readonly error: Schema.Struct<{
|
|
3296
|
-
readonly type: Schema.
|
|
3513
|
+
readonly type: Schema.String;
|
|
3297
3514
|
readonly message: Schema.String;
|
|
3298
3515
|
}>;
|
|
3299
3516
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3314,7 +3531,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3314
3531
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3315
3532
|
};
|
|
3316
3533
|
readonly error: Schema.Struct<{
|
|
3317
|
-
readonly type: Schema.
|
|
3534
|
+
readonly type: Schema.String;
|
|
3318
3535
|
readonly message: Schema.String;
|
|
3319
3536
|
}>;
|
|
3320
3537
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3358,7 +3575,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3358
3575
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3359
3576
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3360
3577
|
};
|
|
3361
|
-
readonly
|
|
3578
|
+
readonly ordinal: Schema.Int;
|
|
3362
3579
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3363
3580
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3364
3581
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3376,7 +3593,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3376
3593
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3377
3594
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3378
3595
|
};
|
|
3379
|
-
readonly
|
|
3596
|
+
readonly ordinal: Schema.Int;
|
|
3380
3597
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3381
3598
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3382
3599
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3418,7 +3635,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3418
3635
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3419
3636
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3420
3637
|
};
|
|
3421
|
-
readonly
|
|
3638
|
+
readonly ordinal: Schema.Int;
|
|
3422
3639
|
readonly text: Schema.String;
|
|
3423
3640
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3424
3641
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3437,7 +3654,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3437
3654
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3438
3655
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3439
3656
|
};
|
|
3440
|
-
readonly
|
|
3657
|
+
readonly ordinal: Schema.Int;
|
|
3441
3658
|
readonly text: Schema.String;
|
|
3442
3659
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3443
3660
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3480,8 +3697,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3480
3697
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3481
3698
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3482
3699
|
};
|
|
3483
|
-
readonly
|
|
3484
|
-
readonly
|
|
3700
|
+
readonly ordinal: Schema.Int;
|
|
3701
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3485
3702
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3486
3703
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3487
3704
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3499,8 +3716,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3499
3716
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3500
3717
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3501
3718
|
};
|
|
3502
|
-
readonly
|
|
3503
|
-
readonly
|
|
3719
|
+
readonly ordinal: Schema.Int;
|
|
3720
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3504
3721
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3505
3722
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3506
3723
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3542,9 +3759,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3542
3759
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3543
3760
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3544
3761
|
};
|
|
3545
|
-
readonly
|
|
3762
|
+
readonly ordinal: Schema.Int;
|
|
3546
3763
|
readonly text: Schema.String;
|
|
3547
|
-
readonly
|
|
3764
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3548
3765
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3549
3766
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3550
3767
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3562,9 +3779,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3562
3779
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3563
3780
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3564
3781
|
};
|
|
3565
|
-
readonly
|
|
3782
|
+
readonly ordinal: Schema.Int;
|
|
3566
3783
|
readonly text: Schema.String;
|
|
3567
|
-
readonly
|
|
3784
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3568
3785
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3569
3786
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3570
3787
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3726,12 +3943,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3726
3943
|
}>, never, never>;
|
|
3727
3944
|
}>>, never, never>;
|
|
3728
3945
|
readonly data: Schema.Struct<{
|
|
3729
|
-
readonly tool: Schema.String;
|
|
3730
3946
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3731
|
-
readonly
|
|
3732
|
-
|
|
3733
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
3734
|
-
}>;
|
|
3947
|
+
readonly executed: Schema.Boolean;
|
|
3948
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3735
3949
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3736
3950
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3737
3951
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3750,12 +3964,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3750
3964
|
readonly aggregate: string;
|
|
3751
3965
|
};
|
|
3752
3966
|
data: Schema.Struct<{
|
|
3753
|
-
readonly tool: Schema.String;
|
|
3754
3967
|
readonly input: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
3755
|
-
readonly
|
|
3756
|
-
|
|
3757
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
3758
|
-
}>;
|
|
3968
|
+
readonly executed: Schema.Boolean;
|
|
3969
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3759
3970
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3760
3971
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3761
3972
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3890,10 +4101,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3890
4101
|
}>]>>;
|
|
3891
4102
|
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3892
4103
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3893
|
-
readonly
|
|
3894
|
-
|
|
3895
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
3896
|
-
}>;
|
|
4104
|
+
readonly executed: Schema.Boolean;
|
|
4105
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3897
4106
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3898
4107
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3899
4108
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3924,10 +4133,8 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3924
4133
|
}>]>>;
|
|
3925
4134
|
readonly outputPaths: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
3926
4135
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3927
|
-
readonly
|
|
3928
|
-
|
|
3929
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
3930
|
-
}>;
|
|
4136
|
+
readonly executed: Schema.Boolean;
|
|
4137
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3931
4138
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3932
4139
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3933
4140
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3971,14 +4178,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3971
4178
|
}>>, never, never>;
|
|
3972
4179
|
readonly data: Schema.Struct<{
|
|
3973
4180
|
readonly error: Schema.Struct<{
|
|
3974
|
-
readonly type: Schema.
|
|
4181
|
+
readonly type: Schema.String;
|
|
3975
4182
|
readonly message: Schema.String;
|
|
3976
4183
|
}>;
|
|
3977
4184
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
3978
|
-
readonly
|
|
3979
|
-
|
|
3980
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
3981
|
-
}>;
|
|
4185
|
+
readonly executed: Schema.Boolean;
|
|
4186
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3982
4187
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3983
4188
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3984
4189
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3998,14 +4203,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3998
4203
|
};
|
|
3999
4204
|
data: Schema.Struct<{
|
|
4000
4205
|
readonly error: Schema.Struct<{
|
|
4001
|
-
readonly type: Schema.
|
|
4206
|
+
readonly type: Schema.String;
|
|
4002
4207
|
readonly message: Schema.String;
|
|
4003
4208
|
}>;
|
|
4004
4209
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
4005
|
-
readonly
|
|
4006
|
-
|
|
4007
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
4008
|
-
}>;
|
|
4210
|
+
readonly executed: Schema.Boolean;
|
|
4211
|
+
readonly resultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4009
4212
|
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4010
4213
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4011
4214
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -4022,7 +4225,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4022
4225
|
};
|
|
4023
4226
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4024
4227
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
4025
|
-
readonly type: Schema.Literal<"session.
|
|
4228
|
+
readonly type: Schema.Literal<"session.retry.scheduled">;
|
|
4026
4229
|
readonly durable: Schema.Struct<{
|
|
4027
4230
|
readonly aggregateID: Schema.String;
|
|
4028
4231
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -4048,14 +4251,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4048
4251
|
}>, never, never>;
|
|
4049
4252
|
}>>, never, never>;
|
|
4050
4253
|
readonly data: Schema.Struct<{
|
|
4051
|
-
readonly
|
|
4254
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4255
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4256
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4257
|
+
};
|
|
4258
|
+
readonly attempt: Schema.Int;
|
|
4259
|
+
readonly at: Schema.Int;
|
|
4052
4260
|
readonly error: Schema.Struct<{
|
|
4261
|
+
readonly type: Schema.String;
|
|
4053
4262
|
readonly message: Schema.String;
|
|
4054
|
-
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
4055
|
-
readonly isRetryable: Schema.Boolean;
|
|
4056
|
-
readonly responseHeaders: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4057
|
-
readonly responseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4058
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4059
4263
|
}>;
|
|
4060
4264
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4061
4265
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4063,21 +4267,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4063
4267
|
};
|
|
4064
4268
|
}>;
|
|
4065
4269
|
}> & {
|
|
4066
|
-
type: "session.
|
|
4270
|
+
type: "session.retry.scheduled";
|
|
4067
4271
|
durability: "durable";
|
|
4068
4272
|
durable: {
|
|
4069
4273
|
readonly version: number;
|
|
4070
4274
|
readonly aggregate: string;
|
|
4071
4275
|
};
|
|
4072
4276
|
data: Schema.Struct<{
|
|
4073
|
-
readonly
|
|
4277
|
+
readonly assistantMessageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4278
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4279
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4280
|
+
};
|
|
4281
|
+
readonly attempt: Schema.Int;
|
|
4282
|
+
readonly at: Schema.Int;
|
|
4074
4283
|
readonly error: Schema.Struct<{
|
|
4284
|
+
readonly type: Schema.String;
|
|
4075
4285
|
readonly message: Schema.String;
|
|
4076
|
-
readonly statusCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
4077
|
-
readonly isRetryable: Schema.Boolean;
|
|
4078
|
-
readonly responseHeaders: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4079
|
-
readonly responseBody: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
4080
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
4081
4286
|
}>;
|
|
4082
4287
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4083
4288
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4368,7 +4573,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4368
4573
|
}>, never, never>;
|
|
4369
4574
|
}>>, never, never>;
|
|
4370
4575
|
readonly data: Schema.Struct<{
|
|
4371
|
-
readonly
|
|
4576
|
+
readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4372
4577
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4373
4578
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4374
4579
|
};
|
|
@@ -4385,7 +4590,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4385
4590
|
readonly aggregate: string;
|
|
4386
4591
|
};
|
|
4387
4592
|
data: Schema.Struct<{
|
|
4388
|
-
readonly
|
|
4593
|
+
readonly to: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4389
4594
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4390
4595
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4391
4596
|
};
|
|
@@ -4576,6 +4781,87 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4576
4781
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
4577
4782
|
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4578
4783
|
} | undefined;
|
|
4784
|
+
} | {
|
|
4785
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4786
|
+
readonly created: import("effect/DateTime").Utc;
|
|
4787
|
+
readonly type: "session.execution.started";
|
|
4788
|
+
readonly durable: {
|
|
4789
|
+
readonly aggregateID: string;
|
|
4790
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
4791
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4792
|
+
};
|
|
4793
|
+
readonly data: {
|
|
4794
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4795
|
+
};
|
|
4796
|
+
readonly metadata?: {
|
|
4797
|
+
readonly [x: string]: unknown;
|
|
4798
|
+
} | undefined;
|
|
4799
|
+
readonly location?: {
|
|
4800
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
4801
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4802
|
+
} | undefined;
|
|
4803
|
+
} | {
|
|
4804
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4805
|
+
readonly created: import("effect/DateTime").Utc;
|
|
4806
|
+
readonly type: "session.execution.succeeded";
|
|
4807
|
+
readonly durable: {
|
|
4808
|
+
readonly aggregateID: string;
|
|
4809
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
4810
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4811
|
+
};
|
|
4812
|
+
readonly data: {
|
|
4813
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4814
|
+
};
|
|
4815
|
+
readonly metadata?: {
|
|
4816
|
+
readonly [x: string]: unknown;
|
|
4817
|
+
} | undefined;
|
|
4818
|
+
readonly location?: {
|
|
4819
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
4820
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4821
|
+
} | undefined;
|
|
4822
|
+
} | {
|
|
4823
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4824
|
+
readonly created: import("effect/DateTime").Utc;
|
|
4825
|
+
readonly type: "session.execution.failed";
|
|
4826
|
+
readonly durable: {
|
|
4827
|
+
readonly aggregateID: string;
|
|
4828
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
4829
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4830
|
+
};
|
|
4831
|
+
readonly data: {
|
|
4832
|
+
readonly error: {
|
|
4833
|
+
readonly type: string;
|
|
4834
|
+
readonly message: string;
|
|
4835
|
+
};
|
|
4836
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4837
|
+
};
|
|
4838
|
+
readonly metadata?: {
|
|
4839
|
+
readonly [x: string]: unknown;
|
|
4840
|
+
} | undefined;
|
|
4841
|
+
readonly location?: {
|
|
4842
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
4843
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4844
|
+
} | undefined;
|
|
4845
|
+
} | {
|
|
4846
|
+
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4847
|
+
readonly created: import("effect/DateTime").Utc;
|
|
4848
|
+
readonly type: "session.execution.interrupted";
|
|
4849
|
+
readonly durable: {
|
|
4850
|
+
readonly aggregateID: string;
|
|
4851
|
+
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
4852
|
+
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4853
|
+
};
|
|
4854
|
+
readonly data: {
|
|
4855
|
+
readonly reason: "user" | "shutdown" | "superseded";
|
|
4856
|
+
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4857
|
+
};
|
|
4858
|
+
readonly metadata?: {
|
|
4859
|
+
readonly [x: string]: unknown;
|
|
4860
|
+
} | undefined;
|
|
4861
|
+
readonly location?: {
|
|
4862
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
4863
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"WorkspaceV2.ID">) | undefined;
|
|
4864
|
+
} | undefined;
|
|
4579
4865
|
} | {
|
|
4580
4866
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
4581
4867
|
readonly created: import("effect/DateTime").Utc;
|
|
@@ -4757,7 +5043,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4757
5043
|
};
|
|
4758
5044
|
readonly data: {
|
|
4759
5045
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4760
|
-
readonly finish:
|
|
5046
|
+
readonly finish: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown";
|
|
4761
5047
|
readonly cost: number;
|
|
4762
5048
|
readonly tokens: {
|
|
4763
5049
|
readonly input: number;
|
|
@@ -4791,7 +5077,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4791
5077
|
readonly data: {
|
|
4792
5078
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4793
5079
|
readonly error: {
|
|
4794
|
-
readonly type:
|
|
5080
|
+
readonly type: string;
|
|
4795
5081
|
readonly message: string;
|
|
4796
5082
|
};
|
|
4797
5083
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4814,7 +5100,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4814
5100
|
};
|
|
4815
5101
|
readonly data: {
|
|
4816
5102
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4817
|
-
readonly
|
|
5103
|
+
readonly ordinal: number;
|
|
4818
5104
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4819
5105
|
};
|
|
4820
5106
|
readonly metadata?: {
|
|
@@ -4835,7 +5121,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4835
5121
|
};
|
|
4836
5122
|
readonly data: {
|
|
4837
5123
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4838
|
-
readonly
|
|
5124
|
+
readonly ordinal: number;
|
|
4839
5125
|
readonly text: string;
|
|
4840
5126
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4841
5127
|
};
|
|
@@ -4857,12 +5143,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4857
5143
|
};
|
|
4858
5144
|
readonly data: {
|
|
4859
5145
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4860
|
-
readonly
|
|
5146
|
+
readonly ordinal: number;
|
|
4861
5147
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4862
|
-
readonly
|
|
4863
|
-
readonly [x: string]:
|
|
4864
|
-
readonly [x: string]: unknown;
|
|
4865
|
-
};
|
|
5148
|
+
readonly state?: {
|
|
5149
|
+
readonly [x: string]: unknown;
|
|
4866
5150
|
} | undefined;
|
|
4867
5151
|
};
|
|
4868
5152
|
readonly metadata?: {
|
|
@@ -4883,13 +5167,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4883
5167
|
};
|
|
4884
5168
|
readonly data: {
|
|
4885
5169
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4886
|
-
readonly
|
|
5170
|
+
readonly ordinal: number;
|
|
4887
5171
|
readonly text: string;
|
|
4888
5172
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
4889
|
-
readonly
|
|
4890
|
-
readonly [x: string]:
|
|
4891
|
-
readonly [x: string]: unknown;
|
|
4892
|
-
};
|
|
5173
|
+
readonly state?: {
|
|
5174
|
+
readonly [x: string]: unknown;
|
|
4893
5175
|
} | undefined;
|
|
4894
5176
|
};
|
|
4895
5177
|
readonly metadata?: {
|
|
@@ -4953,21 +5235,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4953
5235
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
4954
5236
|
};
|
|
4955
5237
|
readonly data: {
|
|
4956
|
-
readonly tool: string;
|
|
4957
5238
|
readonly input: {
|
|
4958
5239
|
readonly [x: string]: unknown;
|
|
4959
5240
|
};
|
|
4960
|
-
readonly
|
|
4961
|
-
readonly executed: boolean;
|
|
4962
|
-
readonly metadata?: {
|
|
4963
|
-
readonly [x: string]: {
|
|
4964
|
-
readonly [x: string]: unknown;
|
|
4965
|
-
};
|
|
4966
|
-
} | undefined;
|
|
4967
|
-
};
|
|
5241
|
+
readonly executed: boolean;
|
|
4968
5242
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4969
5243
|
readonly callID: string;
|
|
4970
5244
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5245
|
+
readonly state?: {
|
|
5246
|
+
readonly [x: string]: unknown;
|
|
5247
|
+
} | undefined;
|
|
4971
5248
|
};
|
|
4972
5249
|
readonly metadata?: {
|
|
4973
5250
|
readonly [x: string]: unknown;
|
|
@@ -5031,19 +5308,15 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5031
5308
|
readonly mime: string;
|
|
5032
5309
|
readonly name?: string | undefined;
|
|
5033
5310
|
})[];
|
|
5034
|
-
readonly
|
|
5035
|
-
readonly executed: boolean;
|
|
5036
|
-
readonly metadata?: {
|
|
5037
|
-
readonly [x: string]: {
|
|
5038
|
-
readonly [x: string]: unknown;
|
|
5039
|
-
};
|
|
5040
|
-
} | undefined;
|
|
5041
|
-
};
|
|
5311
|
+
readonly executed: boolean;
|
|
5042
5312
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5043
5313
|
readonly callID: string;
|
|
5044
5314
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5045
5315
|
readonly outputPaths?: readonly string[] | undefined;
|
|
5046
5316
|
readonly result?: unknown;
|
|
5317
|
+
readonly resultState?: {
|
|
5318
|
+
readonly [x: string]: unknown;
|
|
5319
|
+
} | undefined;
|
|
5047
5320
|
};
|
|
5048
5321
|
readonly metadata?: {
|
|
5049
5322
|
readonly [x: string]: unknown;
|
|
@@ -5063,21 +5336,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5063
5336
|
};
|
|
5064
5337
|
readonly data: {
|
|
5065
5338
|
readonly error: {
|
|
5066
|
-
readonly type:
|
|
5339
|
+
readonly type: string;
|
|
5067
5340
|
readonly message: string;
|
|
5068
5341
|
};
|
|
5069
|
-
readonly
|
|
5070
|
-
readonly executed: boolean;
|
|
5071
|
-
readonly metadata?: {
|
|
5072
|
-
readonly [x: string]: {
|
|
5073
|
-
readonly [x: string]: unknown;
|
|
5074
|
-
};
|
|
5075
|
-
} | undefined;
|
|
5076
|
-
};
|
|
5342
|
+
readonly executed: boolean;
|
|
5077
5343
|
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5078
5344
|
readonly callID: string;
|
|
5079
5345
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5080
5346
|
readonly result?: unknown;
|
|
5347
|
+
readonly resultState?: {
|
|
5348
|
+
readonly [x: string]: unknown;
|
|
5349
|
+
} | undefined;
|
|
5081
5350
|
};
|
|
5082
5351
|
readonly metadata?: {
|
|
5083
5352
|
readonly [x: string]: unknown;
|
|
@@ -5089,25 +5358,19 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5089
5358
|
} | {
|
|
5090
5359
|
readonly id: string & import("effect/Brand").Brand<"Event.ID">;
|
|
5091
5360
|
readonly created: import("effect/DateTime").Utc;
|
|
5092
|
-
readonly type: "session.
|
|
5361
|
+
readonly type: "session.retry.scheduled";
|
|
5093
5362
|
readonly durable: {
|
|
5094
5363
|
readonly aggregateID: string;
|
|
5095
5364
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
5096
5365
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5097
5366
|
};
|
|
5098
5367
|
readonly data: {
|
|
5368
|
+
readonly assistantMessageID: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5099
5369
|
readonly attempt: number;
|
|
5370
|
+
readonly at: number;
|
|
5100
5371
|
readonly error: {
|
|
5372
|
+
readonly type: string;
|
|
5101
5373
|
readonly message: string;
|
|
5102
|
-
readonly isRetryable: boolean;
|
|
5103
|
-
readonly statusCode?: number | undefined;
|
|
5104
|
-
readonly responseHeaders?: {
|
|
5105
|
-
readonly [x: string]: string;
|
|
5106
|
-
} | undefined;
|
|
5107
|
-
readonly responseBody?: string | undefined;
|
|
5108
|
-
readonly metadata?: {
|
|
5109
|
-
readonly [x: string]: string;
|
|
5110
|
-
} | undefined;
|
|
5111
5374
|
};
|
|
5112
5375
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5113
5376
|
};
|
|
@@ -5221,7 +5484,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5221
5484
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
5222
5485
|
};
|
|
5223
5486
|
readonly data: {
|
|
5224
|
-
readonly
|
|
5487
|
+
readonly to: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
5225
5488
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
5226
5489
|
};
|
|
5227
5490
|
readonly metadata?: {
|
|
@@ -5538,13 +5801,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5538
5801
|
}>;
|
|
5539
5802
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
5540
5803
|
readonly type: Schema.Literal<"text">;
|
|
5541
|
-
readonly id: Schema.String;
|
|
5542
5804
|
readonly text: Schema.String;
|
|
5543
5805
|
}>, Schema.Struct<{
|
|
5544
5806
|
readonly type: Schema.Literal<"reasoning">;
|
|
5545
|
-
readonly id: Schema.String;
|
|
5546
5807
|
readonly text: Schema.String;
|
|
5547
|
-
readonly
|
|
5808
|
+
readonly state: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5548
5809
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5549
5810
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5550
5811
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
@@ -5556,15 +5817,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5556
5817
|
readonly type: Schema.Literal<"tool">;
|
|
5557
5818
|
readonly id: Schema.String;
|
|
5558
5819
|
readonly name: Schema.String;
|
|
5559
|
-
readonly
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
5563
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5564
|
-
readonly executed: Schema.Boolean;
|
|
5565
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
5566
|
-
readonly resultMetadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.$Record<Schema.String, Schema.Unknown>>>, never, never>;
|
|
5567
|
-
}>>, never, never>;
|
|
5820
|
+
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5821
|
+
readonly providerState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5822
|
+
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5568
5823
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
5569
5824
|
readonly status: Schema.Literal<"pending">;
|
|
5570
5825
|
readonly input: Schema.String;
|
|
@@ -5687,7 +5942,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5687
5942
|
}>]>>;
|
|
5688
5943
|
readonly structured: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
5689
5944
|
readonly error: Schema.Struct<{
|
|
5690
|
-
readonly type: Schema.
|
|
5945
|
+
readonly type: Schema.String;
|
|
5691
5946
|
readonly message: Schema.String;
|
|
5692
5947
|
}>;
|
|
5693
5948
|
readonly result: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Unknown>>, Schema.optionalKey<Schema.Unknown>, never, never>;
|
|
@@ -5708,7 +5963,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5708
5963
|
readonly end: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5709
5964
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>>, Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "RelativePath">>>, never, never>;
|
|
5710
5965
|
}>>, never, never>;
|
|
5711
|
-
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.
|
|
5966
|
+
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
5712
5967
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Finite>>, Schema.optionalKey<Schema.Finite>, never, never>;
|
|
5713
5968
|
readonly tokens: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5714
5969
|
readonly input: Schema.Finite;
|
|
@@ -5728,12 +5983,27 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5728
5983
|
}>;
|
|
5729
5984
|
}>>, never, never>;
|
|
5730
5985
|
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5731
|
-
readonly type: Schema.
|
|
5986
|
+
readonly type: Schema.String;
|
|
5732
5987
|
readonly message: Schema.String;
|
|
5733
5988
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
5734
|
-
readonly type: Schema.
|
|
5989
|
+
readonly type: Schema.String;
|
|
5735
5990
|
readonly message: Schema.String;
|
|
5736
5991
|
}>>, never, never>;
|
|
5992
|
+
readonly retry: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
5993
|
+
readonly attempt: Schema.Int;
|
|
5994
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5995
|
+
readonly error: Schema.Struct<{
|
|
5996
|
+
readonly type: Schema.String;
|
|
5997
|
+
readonly message: Schema.String;
|
|
5998
|
+
}>;
|
|
5999
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
6000
|
+
readonly attempt: Schema.Int;
|
|
6001
|
+
readonly at: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
6002
|
+
readonly error: Schema.Struct<{
|
|
6003
|
+
readonly type: Schema.String;
|
|
6004
|
+
readonly message: Schema.String;
|
|
6005
|
+
}>;
|
|
6006
|
+
}>>, never, never>;
|
|
5737
6007
|
readonly time: Schema.Struct<{
|
|
5738
6008
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
5739
6009
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|