@opencode-ai/schema 0.0.0-next-16884 → 0.0.0-next-16892
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/durable-event-manifest.d.ts +190 -0
- package/dist/durable-event-manifest.js +1 -2
- package/dist/event-manifest.d.ts +2439 -7086
- package/dist/event-manifest.js +3 -8
- package/dist/session-event.d.ts +1039 -87
- package/dist/session-event.js +17 -1
- package/package.json +1 -1
|
@@ -4,6 +4,196 @@ import { SessionEvent } from "./session-event.js";
|
|
|
4
4
|
export declare const SessionDurable: {
|
|
5
5
|
readonly definitions: ReadonlyMap<string, Event.DurableDefinition<string, import("effect/Schema").Codec<unknown, unknown, never, never>>>;
|
|
6
6
|
readonly schema: import("effect/Schema").Union<readonly [...((import("effect/Schema").Struct<{
|
|
7
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
8
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9
|
+
};
|
|
10
|
+
readonly created: import("effect/Schema").decodeTo<import("effect/Schema").DateTimeUtc, import("effect/Schema").Finite, never, never>;
|
|
11
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
12
|
+
readonly type: import("effect/Schema").Literal<"session.created">;
|
|
13
|
+
readonly durable: import("effect/Schema").Struct<{
|
|
14
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
15
|
+
readonly seq: import("effect/Schema").brand<import("effect/Schema").Int, "Event.Seq">;
|
|
16
|
+
readonly version: import("effect/Schema").decodeTo<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").Int, "Event.Version">>, import("effect/Schema").Literal<number>, never, never>;
|
|
17
|
+
}>;
|
|
18
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
21
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
22
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
23
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
24
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
25
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
26
|
+
}>, never, never>;
|
|
27
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
28
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
29
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
30
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
32
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
33
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
34
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
35
|
+
}>, never, never>;
|
|
36
|
+
}>>, never, never>;
|
|
37
|
+
readonly data: import("effect/Schema").Struct<{
|
|
38
|
+
readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
|
|
39
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
40
|
+
};
|
|
41
|
+
readonly location: import("effect/Schema").Struct<{
|
|
42
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
43
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
44
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
45
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
46
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
47
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
48
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
49
|
+
}>, never, never>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
|
|
52
|
+
readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
53
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
54
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
55
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
56
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
57
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
58
|
+
}>, never, never>;
|
|
59
|
+
readonly slug: import("effect/Schema").String;
|
|
60
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
61
|
+
readonly agent: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
|
|
62
|
+
readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
63
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
|
|
64
|
+
readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
|
|
65
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
66
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
67
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
68
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
69
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
70
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
71
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
72
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
73
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
74
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
75
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
76
|
+
};
|
|
77
|
+
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
78
|
+
}> & {
|
|
79
|
+
parse: (input: string) => {
|
|
80
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
81
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
82
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
83
|
+
};
|
|
84
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
85
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
|
|
86
|
+
readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
|
|
87
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
88
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
89
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
90
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
91
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
92
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
93
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
94
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
95
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
96
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
97
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
98
|
+
};
|
|
99
|
+
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
100
|
+
}> & {
|
|
101
|
+
parse: (input: string) => {
|
|
102
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
103
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
104
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
105
|
+
};
|
|
106
|
+
}>, never, never>;
|
|
107
|
+
readonly version: import("effect/Schema").String;
|
|
108
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
109
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
110
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
111
|
+
};
|
|
112
|
+
}>;
|
|
113
|
+
}> & {
|
|
114
|
+
type: "session.created";
|
|
115
|
+
durability: "durable";
|
|
116
|
+
durable: {
|
|
117
|
+
readonly version: number;
|
|
118
|
+
readonly aggregate: string;
|
|
119
|
+
};
|
|
120
|
+
data: import("effect/Schema").Struct<{
|
|
121
|
+
readonly projectID: import("effect/Schema").brand<import("effect/Schema").String, "Project.ID"> & {
|
|
122
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
123
|
+
};
|
|
124
|
+
readonly location: import("effect/Schema").Struct<{
|
|
125
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
126
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
127
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
128
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
129
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Workspace.ID"> & {
|
|
130
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
131
|
+
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
132
|
+
}>, never, never>;
|
|
133
|
+
}>;
|
|
134
|
+
readonly subpath: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "RelativePath">>, never, never>;
|
|
135
|
+
readonly parentID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
136
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
137
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
138
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
139
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
140
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
141
|
+
}>, never, never>;
|
|
142
|
+
readonly slug: import("effect/Schema").String;
|
|
143
|
+
readonly title: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").String>>, import("effect/Schema").optionalKey<import("effect/Schema").String>, never, never>;
|
|
144
|
+
readonly agent: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Agent.ID">>, never, never>;
|
|
145
|
+
readonly model: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
146
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
|
|
147
|
+
readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
|
|
148
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
149
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
150
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
151
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
152
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
153
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
154
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
155
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
156
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
157
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
158
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
159
|
+
};
|
|
160
|
+
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
161
|
+
}> & {
|
|
162
|
+
parse: (input: string) => {
|
|
163
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
164
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
165
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
166
|
+
};
|
|
167
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
168
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Model.ID">;
|
|
169
|
+
readonly providerID: import("effect/Schema").brand<import("effect/Schema").String, "Provider.ID"> & {
|
|
170
|
+
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
171
|
+
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
172
|
+
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
173
|
+
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
174
|
+
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
175
|
+
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
176
|
+
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
177
|
+
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
178
|
+
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
179
|
+
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
180
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
181
|
+
};
|
|
182
|
+
readonly variant: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "Model.VariantID">>, never, never>;
|
|
183
|
+
}> & {
|
|
184
|
+
parse: (input: string) => {
|
|
185
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
186
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
187
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
188
|
+
};
|
|
189
|
+
}>, never, never>;
|
|
190
|
+
readonly version: import("effect/Schema").String;
|
|
191
|
+
readonly sessionID: import("effect/Schema").brand<import("effect/Schema").String, "SessionID"> & {
|
|
192
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
193
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
194
|
+
};
|
|
195
|
+
}>;
|
|
196
|
+
}) | (import("effect/Schema").Struct<{
|
|
7
197
|
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
8
198
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
9
199
|
};
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export * as DurableEventManifest from "./durable-event-manifest.js";
|
|
2
2
|
import { Event } from "./event.js";
|
|
3
3
|
import { SessionEvent } from "./session-event.js";
|
|
4
|
-
import { SessionV1 } from "./session-v1.js";
|
|
5
4
|
export const SessionDurable = {
|
|
6
5
|
definitions: Event.durableMap(SessionEvent.DurableDefinitions),
|
|
7
6
|
schema: SessionEvent.Durable,
|
|
8
7
|
};
|
|
9
|
-
export const Durable = Event.durableMap(
|
|
8
|
+
export const Durable = Event.durableMap(SessionEvent.DurableDefinitions);
|