@opencode/schema 2.1.3 → 2.2.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/agent.d.ts +5 -0
- package/dist/config/experimental.d.ts +2 -0
- package/dist/config/experimental.js +6 -0
- package/dist/config/provider.d.ts +73 -7
- package/dist/config/provider.js +10 -15
- package/dist/event-manifest.d.ts +128 -366
- package/dist/file-diff.d.ts +2 -0
- package/dist/file-diff.js +2 -0
- package/dist/generate.d.ts +355 -0
- package/dist/generate.js +134 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp.d.ts +1 -0
- package/dist/mcp.js +2 -0
- package/dist/model-compatibility.d.ts +15 -4
- package/dist/model-compatibility.js +15 -4
- package/dist/model.d.ts +53 -2
- package/dist/model.js +9 -7
- package/dist/permission.d.ts +0 -9
- package/dist/persistent-pty.d.ts +0 -20
- package/dist/plugin.d.ts +15 -0
- package/dist/plugin.js +11 -1
- package/dist/prompt-input.d.ts +3 -36
- package/dist/prompt-input.js +2 -6
- package/dist/prompt.d.ts +96 -0
- package/dist/prompt.js +17 -1
- package/dist/provider.d.ts +40 -0
- package/dist/provider.js +14 -3
- package/dist/session-event.d.ts +320 -852
- package/dist/session-event.js +0 -7
- package/dist/session-fork.d.ts +2 -2
- package/dist/session-id.d.ts +0 -1
- package/dist/session-id.js +3 -7
- package/dist/session-inbox.d.ts +721 -101
- package/dist/session-inbox.js +10 -1
- package/dist/session-message.d.ts +998 -31
- package/dist/session-message.js +19 -2
- package/dist/session-revert.d.ts +64 -27
- package/dist/session-status-event.d.ts +0 -8
- package/dist/session-transfer.d.ts +23 -24
- package/dist/session.d.ts +12 -22
- package/dist/usage-limits.d.ts +227 -0
- package/dist/usage-limits.js +59 -0
- package/dist/v1/legacy-event.d.ts +0 -4
- package/dist/v1/permission.d.ts +0 -10
- package/dist/v1/session.d.ts +0 -177
- package/dist/vcs.d.ts +3 -0
- package/dist/vcs.js +2 -0
- package/dist/workspace-id.js +0 -2
- package/package.json +5 -3
package/dist/session-message.js
CHANGED
|
@@ -5,10 +5,9 @@ import { Content } from "./tool.js";
|
|
|
5
5
|
import { Location } from "./location.js";
|
|
6
6
|
import { Model } from "./model.js";
|
|
7
7
|
import { Project } from "./project.js";
|
|
8
|
-
import { Prompt } from "./prompt.js";
|
|
8
|
+
import { Attachment, Prompt } from "./prompt.js";
|
|
9
9
|
import { DateTimeUtcFromMillis, PositiveInt, RelativePath, statics } from "./schema.js";
|
|
10
10
|
import { ascending } from "./identifier.js";
|
|
11
|
-
import { Event } from "./event.js";
|
|
12
11
|
import { Shell as ShellSchema } from "./shell.js";
|
|
13
12
|
import { FinishReason } from "./llm.js";
|
|
14
13
|
import { SessionError } from "./session-error.js";
|
|
@@ -65,6 +64,10 @@ export const User = Schema.Struct({
|
|
|
65
64
|
skills: Prompt.fields.skills,
|
|
66
65
|
type: Schema.tag("user"),
|
|
67
66
|
}).annotate({ identifier: "Session.Message.User" });
|
|
67
|
+
export const MediaUser = Schema.Struct({
|
|
68
|
+
...User.fields,
|
|
69
|
+
files: Schema.Array(Attachment).pipe(optional),
|
|
70
|
+
}).annotate({ identifier: "Session.Message.MediaUser" });
|
|
68
71
|
export const Synthetic = Schema.Struct({
|
|
69
72
|
...Base,
|
|
70
73
|
text: Schema.String,
|
|
@@ -233,3 +236,17 @@ export const Info = Schema.Union([
|
|
|
233
236
|
Compaction,
|
|
234
237
|
Idle,
|
|
235
238
|
]).annotate({ identifier: "Session.Message.Info" });
|
|
239
|
+
/** {@link Info} with {@link MediaUser} for clients that opt into `experimental-media-uri`. */
|
|
240
|
+
export const MediaInfo = Schema.Union([
|
|
241
|
+
AgentSelected,
|
|
242
|
+
ModelSelected,
|
|
243
|
+
LocationSwitched,
|
|
244
|
+
MediaUser,
|
|
245
|
+
Synthetic,
|
|
246
|
+
System,
|
|
247
|
+
Skill,
|
|
248
|
+
Shell,
|
|
249
|
+
Assistant,
|
|
250
|
+
Compaction,
|
|
251
|
+
Idle,
|
|
252
|
+
]).annotate({ identifier: "Session.Message.MediaInfo" });
|
package/dist/session-revert.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export interface Revert extends Schema.Schema.Type<typeof Revert> {
|
|
|
4
4
|
export declare const Revert: Schema.Struct<{
|
|
5
5
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
6
6
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
7
|
-
fromEvent: (eventID:
|
|
7
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
8
8
|
};
|
|
9
9
|
/** Legacy V1 compatibility state. */
|
|
10
10
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -15,12 +15,14 @@ export declare const Revert: Schema.Struct<{
|
|
|
15
15
|
readonly additions: Schema.Int;
|
|
16
16
|
readonly deletions: Schema.Int;
|
|
17
17
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
18
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
18
19
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
19
20
|
readonly file: Schema.String;
|
|
20
21
|
readonly patch: Schema.String;
|
|
21
22
|
readonly additions: Schema.Int;
|
|
22
23
|
readonly deletions: Schema.Int;
|
|
23
24
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
25
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
24
26
|
}>>>, never, never>;
|
|
25
27
|
}>;
|
|
26
28
|
export interface RevertV1 extends Schema.Schema.Type<typeof RevertV1> {
|
|
@@ -28,7 +30,7 @@ export interface RevertV1 extends Schema.Schema.Type<typeof RevertV1> {
|
|
|
28
30
|
export declare const RevertV1: Schema.Struct<{
|
|
29
31
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
30
32
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
31
|
-
fromEvent: (eventID:
|
|
33
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
32
34
|
};
|
|
33
35
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
34
36
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -51,7 +53,7 @@ export declare const RevertV1: Schema.Struct<{
|
|
|
51
53
|
export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
52
54
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
53
55
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
54
|
-
fromEvent: (eventID:
|
|
56
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
55
57
|
};
|
|
56
58
|
/** Legacy V1 compatibility state. */
|
|
57
59
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -62,19 +64,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
62
64
|
readonly additions: Schema.Int;
|
|
63
65
|
readonly deletions: Schema.Int;
|
|
64
66
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
67
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
65
68
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
66
69
|
readonly file: Schema.String;
|
|
67
70
|
readonly patch: Schema.String;
|
|
68
71
|
readonly additions: Schema.Int;
|
|
69
72
|
readonly deletions: Schema.Int;
|
|
70
73
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
74
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
71
75
|
}>>>, never, never>;
|
|
72
76
|
}>>, Schema.Union<readonly [Schema.decodeTo<Schema.Struct<{
|
|
73
77
|
readonly source: Schema.tag<"current">;
|
|
74
78
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
75
79
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
76
80
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
77
|
-
fromEvent: (eventID:
|
|
81
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
78
82
|
};
|
|
79
83
|
/** Legacy V1 compatibility state. */
|
|
80
84
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -85,18 +89,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
85
89
|
readonly additions: Schema.Int;
|
|
86
90
|
readonly deletions: Schema.Int;
|
|
87
91
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
92
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
88
93
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
89
94
|
readonly file: Schema.String;
|
|
90
95
|
readonly patch: Schema.String;
|
|
91
96
|
readonly additions: Schema.Int;
|
|
92
97
|
readonly deletions: Schema.Int;
|
|
93
98
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
99
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
94
100
|
}>>>, never, never>;
|
|
95
101
|
}>>;
|
|
96
102
|
}>, Schema.Struct<{
|
|
97
103
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
98
104
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
99
|
-
fromEvent: (eventID:
|
|
105
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
100
106
|
};
|
|
101
107
|
/** Legacy V1 compatibility state. */
|
|
102
108
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -107,19 +113,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
107
113
|
readonly additions: Schema.Int;
|
|
108
114
|
readonly deletions: Schema.Int;
|
|
109
115
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
116
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
110
117
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
111
118
|
readonly file: Schema.String;
|
|
112
119
|
readonly patch: Schema.String;
|
|
113
120
|
readonly additions: Schema.Int;
|
|
114
121
|
readonly deletions: Schema.Int;
|
|
115
122
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
123
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
116
124
|
}>>>, never, never>;
|
|
117
125
|
}>, never, never>, Schema.decodeTo<Schema.Struct<{
|
|
118
126
|
readonly source: Schema.tag<"legacy">;
|
|
119
127
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
120
128
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
121
129
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
122
|
-
fromEvent: (eventID:
|
|
130
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
123
131
|
};
|
|
124
132
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
125
133
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -141,7 +149,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
141
149
|
}>, Schema.Struct<{
|
|
142
150
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
143
151
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
144
|
-
fromEvent: (eventID:
|
|
152
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
145
153
|
};
|
|
146
154
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
147
155
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -167,7 +175,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
167
175
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
168
176
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
169
177
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
170
|
-
fromEvent: (eventID:
|
|
178
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
171
179
|
};
|
|
172
180
|
/** Legacy V1 compatibility state. */
|
|
173
181
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -178,18 +186,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
178
186
|
readonly additions: Schema.Int;
|
|
179
187
|
readonly deletions: Schema.Int;
|
|
180
188
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
189
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
181
190
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
182
191
|
readonly file: Schema.String;
|
|
183
192
|
readonly patch: Schema.String;
|
|
184
193
|
readonly additions: Schema.Int;
|
|
185
194
|
readonly deletions: Schema.Int;
|
|
186
195
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
196
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
187
197
|
}>>>, never, never>;
|
|
188
198
|
}>>;
|
|
189
199
|
}>, Schema.Struct<{
|
|
190
200
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
191
201
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
192
|
-
fromEvent: (eventID:
|
|
202
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
193
203
|
};
|
|
194
204
|
/** Legacy V1 compatibility state. */
|
|
195
205
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -200,12 +210,14 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
200
210
|
readonly additions: Schema.Int;
|
|
201
211
|
readonly deletions: Schema.Int;
|
|
202
212
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
213
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
203
214
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
204
215
|
readonly file: Schema.String;
|
|
205
216
|
readonly patch: Schema.String;
|
|
206
217
|
readonly additions: Schema.Int;
|
|
207
218
|
readonly deletions: Schema.Int;
|
|
208
219
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
220
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
209
221
|
}>>>, never, never>;
|
|
210
222
|
}>, never, never>;
|
|
211
223
|
legacy: Schema.decodeTo<Schema.Struct<{
|
|
@@ -213,7 +225,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
213
225
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
214
226
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
215
227
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
216
|
-
fromEvent: (eventID:
|
|
228
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
217
229
|
};
|
|
218
230
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
219
231
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -235,7 +247,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
235
247
|
}>, Schema.Struct<{
|
|
236
248
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
237
249
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
238
|
-
fromEvent: (eventID:
|
|
250
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
239
251
|
};
|
|
240
252
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
241
253
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -267,6 +279,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
267
279
|
readonly additions: number;
|
|
268
280
|
readonly deletions: number;
|
|
269
281
|
readonly status: "added" | "deleted" | "modified";
|
|
282
|
+
readonly more?: true | undefined;
|
|
270
283
|
}[] | undefined;
|
|
271
284
|
};
|
|
272
285
|
} | {
|
|
@@ -296,6 +309,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
296
309
|
readonly additions: number;
|
|
297
310
|
readonly deletions: number;
|
|
298
311
|
readonly status: "added" | "deleted" | "modified";
|
|
312
|
+
readonly more?: true | undefined;
|
|
299
313
|
}[] | undefined;
|
|
300
314
|
};
|
|
301
315
|
}, {
|
|
@@ -331,6 +345,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
331
345
|
readonly additions: number;
|
|
332
346
|
readonly deletions: number;
|
|
333
347
|
readonly status: "added" | "deleted" | "modified";
|
|
348
|
+
readonly more?: true | undefined;
|
|
334
349
|
}[] | undefined;
|
|
335
350
|
};
|
|
336
351
|
};
|
|
@@ -357,7 +372,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
357
372
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
358
373
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
359
374
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
360
|
-
fromEvent: (eventID:
|
|
375
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
361
376
|
};
|
|
362
377
|
/** Legacy V1 compatibility state. */
|
|
363
378
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -368,18 +383,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
368
383
|
readonly additions: Schema.Int;
|
|
369
384
|
readonly deletions: Schema.Int;
|
|
370
385
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
386
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
371
387
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
372
388
|
readonly file: Schema.String;
|
|
373
389
|
readonly patch: Schema.String;
|
|
374
390
|
readonly additions: Schema.Int;
|
|
375
391
|
readonly deletions: Schema.Int;
|
|
376
392
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
393
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
377
394
|
}>>>, never, never>;
|
|
378
395
|
}>>;
|
|
379
396
|
}>, Schema.Struct<{
|
|
380
397
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
381
398
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
382
|
-
fromEvent: (eventID:
|
|
399
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
383
400
|
};
|
|
384
401
|
/** Legacy V1 compatibility state. */
|
|
385
402
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -390,19 +407,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
390
407
|
readonly additions: Schema.Int;
|
|
391
408
|
readonly deletions: Schema.Int;
|
|
392
409
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
410
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
393
411
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
394
412
|
readonly file: Schema.String;
|
|
395
413
|
readonly patch: Schema.String;
|
|
396
414
|
readonly additions: Schema.Int;
|
|
397
415
|
readonly deletions: Schema.Int;
|
|
398
416
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
417
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
399
418
|
}>>>, never, never>;
|
|
400
419
|
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
401
420
|
readonly source: Schema.tag<"legacy">;
|
|
402
421
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
403
422
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
404
423
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
405
|
-
fromEvent: (eventID:
|
|
424
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
406
425
|
};
|
|
407
426
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
408
427
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -424,7 +443,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
424
443
|
}>, Schema.Struct<{
|
|
425
444
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
426
445
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
427
|
-
fromEvent: (eventID:
|
|
446
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
428
447
|
};
|
|
429
448
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
430
449
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -454,6 +473,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
454
473
|
readonly additions: number;
|
|
455
474
|
readonly deletions: number;
|
|
456
475
|
readonly status: "added" | "deleted" | "modified";
|
|
476
|
+
readonly more?: true | undefined;
|
|
457
477
|
}[] | undefined;
|
|
458
478
|
};
|
|
459
479
|
} | {
|
|
@@ -477,7 +497,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
477
497
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
478
498
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
479
499
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
480
|
-
fromEvent: (eventID:
|
|
500
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
481
501
|
};
|
|
482
502
|
/** Legacy V1 compatibility state. */
|
|
483
503
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -488,18 +508,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
488
508
|
readonly additions: Schema.Int;
|
|
489
509
|
readonly deletions: Schema.Int;
|
|
490
510
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
511
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
491
512
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
492
513
|
readonly file: Schema.String;
|
|
493
514
|
readonly patch: Schema.String;
|
|
494
515
|
readonly additions: Schema.Int;
|
|
495
516
|
readonly deletions: Schema.Int;
|
|
496
517
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
518
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
497
519
|
}>>>, never, never>;
|
|
498
520
|
}>>;
|
|
499
521
|
}>, Schema.Struct<{
|
|
500
522
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
501
523
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
502
|
-
fromEvent: (eventID:
|
|
524
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
503
525
|
};
|
|
504
526
|
/** Legacy V1 compatibility state. */
|
|
505
527
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -510,19 +532,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
510
532
|
readonly additions: Schema.Int;
|
|
511
533
|
readonly deletions: Schema.Int;
|
|
512
534
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
535
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
513
536
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
514
537
|
readonly file: Schema.String;
|
|
515
538
|
readonly patch: Schema.String;
|
|
516
539
|
readonly additions: Schema.Int;
|
|
517
540
|
readonly deletions: Schema.Int;
|
|
518
541
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
542
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
519
543
|
}>>>, never, never>;
|
|
520
544
|
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
521
545
|
readonly source: Schema.tag<"legacy">;
|
|
522
546
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
523
547
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
524
548
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
525
|
-
fromEvent: (eventID:
|
|
549
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
526
550
|
};
|
|
527
551
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
528
552
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -544,7 +568,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
544
568
|
}>, Schema.Struct<{
|
|
545
569
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
546
570
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
547
|
-
fromEvent: (eventID:
|
|
571
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
548
572
|
};
|
|
549
573
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
550
574
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -574,6 +598,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
574
598
|
readonly additions: number;
|
|
575
599
|
readonly deletions: number;
|
|
576
600
|
readonly status: "added" | "deleted" | "modified";
|
|
601
|
+
readonly more?: true | undefined;
|
|
577
602
|
}[] | undefined;
|
|
578
603
|
};
|
|
579
604
|
} | {
|
|
@@ -599,7 +624,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
599
624
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
600
625
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
601
626
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
602
|
-
fromEvent: (eventID:
|
|
627
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
603
628
|
};
|
|
604
629
|
/** Legacy V1 compatibility state. */
|
|
605
630
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -610,18 +635,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
610
635
|
readonly additions: Schema.Int;
|
|
611
636
|
readonly deletions: Schema.Int;
|
|
612
637
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
638
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
613
639
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
614
640
|
readonly file: Schema.String;
|
|
615
641
|
readonly patch: Schema.String;
|
|
616
642
|
readonly additions: Schema.Int;
|
|
617
643
|
readonly deletions: Schema.Int;
|
|
618
644
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
645
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
619
646
|
}>>>, never, never>;
|
|
620
647
|
}>>;
|
|
621
648
|
}>, Schema.Struct<{
|
|
622
649
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
623
650
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
624
|
-
fromEvent: (eventID:
|
|
651
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
625
652
|
};
|
|
626
653
|
/** Legacy V1 compatibility state. */
|
|
627
654
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -632,19 +659,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
632
659
|
readonly additions: Schema.Int;
|
|
633
660
|
readonly deletions: Schema.Int;
|
|
634
661
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
662
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
635
663
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
636
664
|
readonly file: Schema.String;
|
|
637
665
|
readonly patch: Schema.String;
|
|
638
666
|
readonly additions: Schema.Int;
|
|
639
667
|
readonly deletions: Schema.Int;
|
|
640
668
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
669
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
641
670
|
}>>>, never, never>;
|
|
642
671
|
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
643
672
|
readonly source: Schema.tag<"legacy">;
|
|
644
673
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
645
674
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
646
675
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
647
|
-
fromEvent: (eventID:
|
|
676
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
648
677
|
};
|
|
649
678
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
650
679
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -666,7 +695,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
666
695
|
}>, Schema.Struct<{
|
|
667
696
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
668
697
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
669
|
-
fromEvent: (eventID:
|
|
698
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
670
699
|
};
|
|
671
700
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
672
701
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -696,6 +725,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
696
725
|
readonly additions: number;
|
|
697
726
|
readonly deletions: number;
|
|
698
727
|
readonly status: "added" | "deleted" | "modified";
|
|
728
|
+
readonly more?: true | undefined;
|
|
699
729
|
}[] | undefined;
|
|
700
730
|
};
|
|
701
731
|
} | {
|
|
@@ -725,6 +755,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
725
755
|
readonly additions: number;
|
|
726
756
|
readonly deletions: number;
|
|
727
757
|
readonly status: "added" | "deleted" | "modified";
|
|
758
|
+
readonly more?: true | undefined;
|
|
728
759
|
}[] | undefined;
|
|
729
760
|
};
|
|
730
761
|
} | {
|
|
@@ -748,7 +779,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
748
779
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
749
780
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
750
781
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
751
|
-
fromEvent: (eventID:
|
|
782
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
752
783
|
};
|
|
753
784
|
/** Legacy V1 compatibility state. */
|
|
754
785
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -759,18 +790,20 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
759
790
|
readonly additions: Schema.Int;
|
|
760
791
|
readonly deletions: Schema.Int;
|
|
761
792
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
793
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
762
794
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
763
795
|
readonly file: Schema.String;
|
|
764
796
|
readonly patch: Schema.String;
|
|
765
797
|
readonly additions: Schema.Int;
|
|
766
798
|
readonly deletions: Schema.Int;
|
|
767
799
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
800
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
768
801
|
}>>>, never, never>;
|
|
769
802
|
}>>;
|
|
770
803
|
}>, Schema.Struct<{
|
|
771
804
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
772
805
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
773
|
-
fromEvent: (eventID:
|
|
806
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
774
807
|
};
|
|
775
808
|
/** Legacy V1 compatibility state. */
|
|
776
809
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -781,19 +814,21 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
781
814
|
readonly additions: Schema.Int;
|
|
782
815
|
readonly deletions: Schema.Int;
|
|
783
816
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
817
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
784
818
|
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
785
819
|
readonly file: Schema.String;
|
|
786
820
|
readonly patch: Schema.String;
|
|
787
821
|
readonly additions: Schema.Int;
|
|
788
822
|
readonly deletions: Schema.Int;
|
|
789
823
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
824
|
+
readonly more: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literal<true>>>, Schema.optionalKey<Schema.Literal<true>>, never, never>;
|
|
790
825
|
}>>>, never, never>;
|
|
791
826
|
}>, never, never> | Schema.decodeTo<Schema.Struct<{
|
|
792
827
|
readonly source: Schema.tag<"legacy">;
|
|
793
828
|
readonly revert: Schema.toType<Schema.Struct<{
|
|
794
829
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
795
830
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
796
|
-
fromEvent: (eventID:
|
|
831
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
797
832
|
};
|
|
798
833
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
799
834
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -815,7 +850,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
815
850
|
}>, Schema.Struct<{
|
|
816
851
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
817
852
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
818
|
-
fromEvent: (eventID:
|
|
853
|
+
fromEvent: (eventID: string) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
819
854
|
};
|
|
820
855
|
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
821
856
|
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
@@ -845,6 +880,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
845
880
|
readonly additions: number;
|
|
846
881
|
readonly deletions: number;
|
|
847
882
|
readonly status: "added" | "deleted" | "modified";
|
|
883
|
+
readonly more?: true | undefined;
|
|
848
884
|
}[] | undefined;
|
|
849
885
|
};
|
|
850
886
|
} | {
|
|
@@ -874,6 +910,7 @@ export declare const PersistedRevert: Schema.decodeTo<Schema.toType<Schema.Struc
|
|
|
874
910
|
readonly additions: number;
|
|
875
911
|
readonly deletions: number;
|
|
876
912
|
readonly status: "added" | "deleted" | "modified";
|
|
913
|
+
readonly more?: true | undefined;
|
|
877
914
|
}[] | undefined;
|
|
878
915
|
};
|
|
879
916
|
} | {
|
|
@@ -55,7 +55,6 @@ export declare const Status: Schema.Struct<{
|
|
|
55
55
|
readonly data: Schema.Struct<{
|
|
56
56
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
57
57
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
58
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
59
58
|
};
|
|
60
59
|
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
61
60
|
readonly type: Schema.Literal<"idle">;
|
|
@@ -90,7 +89,6 @@ export declare const Status: Schema.Struct<{
|
|
|
90
89
|
data: Schema.Struct<{
|
|
91
90
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
92
91
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
93
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
94
92
|
};
|
|
95
93
|
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
96
94
|
readonly type: Schema.Literal<"idle">;
|
|
@@ -148,7 +146,6 @@ export declare const Idle: Schema.Struct<{
|
|
|
148
146
|
readonly data: Schema.Struct<{
|
|
149
147
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
150
148
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
151
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
152
149
|
};
|
|
153
150
|
}>;
|
|
154
151
|
}> & {
|
|
@@ -158,7 +155,6 @@ export declare const Idle: Schema.Struct<{
|
|
|
158
155
|
data: Schema.Struct<{
|
|
159
156
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
160
157
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
161
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
162
158
|
};
|
|
163
159
|
}>;
|
|
164
160
|
};
|
|
@@ -191,7 +187,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
191
187
|
readonly data: Schema.Struct<{
|
|
192
188
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
193
189
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
194
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
195
190
|
};
|
|
196
191
|
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
197
192
|
readonly type: Schema.Literal<"idle">;
|
|
@@ -226,7 +221,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
226
221
|
data: Schema.Struct<{
|
|
227
222
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
228
223
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
229
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
230
224
|
};
|
|
231
225
|
readonly status: Schema.Union<readonly [Schema.Struct<{
|
|
232
226
|
readonly type: Schema.Literal<"idle">;
|
|
@@ -283,7 +277,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
283
277
|
readonly data: Schema.Struct<{
|
|
284
278
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
285
279
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
286
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
287
280
|
};
|
|
288
281
|
}>;
|
|
289
282
|
}> & {
|
|
@@ -293,7 +286,6 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
293
286
|
data: Schema.Struct<{
|
|
294
287
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
295
288
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
296
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
297
289
|
};
|
|
298
290
|
}>;
|
|
299
291
|
}];
|