@opencode/schema 0.0.0-dev-19575 → 0.0.0-dev-19579
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/session-fork.d.ts +0 -10
- package/dist/session-fork.js +0 -4
- package/dist/session.d.ts +0 -10
- package/dist/session.js +0 -1
- package/dist/websearch.js +3 -1
- package/package.json +1 -1
package/dist/session-fork.d.ts
CHANGED
|
@@ -14,13 +14,3 @@ export declare const Boundary: Schema.Union<readonly [Schema.Struct<{
|
|
|
14
14
|
};
|
|
15
15
|
}>]>;
|
|
16
16
|
export type Boundary = typeof Boundary.Type;
|
|
17
|
-
export declare const RequestBoundary: Schema.Union<readonly [Schema.Struct<{
|
|
18
|
-
readonly type: Schema.Literal<"before">;
|
|
19
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
20
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
21
|
-
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
22
|
-
};
|
|
23
|
-
}>, Schema.Struct<{
|
|
24
|
-
readonly type: Schema.Literal<"through">;
|
|
25
|
-
}>]>;
|
|
26
|
-
export type RequestBoundary = typeof RequestBoundary.Type;
|
package/dist/session-fork.js
CHANGED
|
@@ -5,7 +5,3 @@ export const Boundary = Schema.Union([
|
|
|
5
5
|
Schema.Struct({ type: Schema.Literal("before"), messageID: SessionMessage.ID }),
|
|
6
6
|
Schema.Struct({ type: Schema.Literal("through"), messageID: SessionMessage.ID }),
|
|
7
7
|
]).annotate({ identifier: "Session.ForkBoundary" });
|
|
8
|
-
export const RequestBoundary = Schema.Union([
|
|
9
|
-
Schema.Struct({ type: Schema.Literal("before"), messageID: SessionMessage.ID }),
|
|
10
|
-
Schema.Struct({ type: Schema.Literal("through") }),
|
|
11
|
-
]).annotate({ identifier: "Session.ForkRequestBoundary" });
|
package/dist/session.d.ts
CHANGED
|
@@ -28,16 +28,6 @@ export declare const ForkBoundary: Schema.Union<readonly [Schema.Struct<{
|
|
|
28
28
|
};
|
|
29
29
|
}>]>;
|
|
30
30
|
export type ForkBoundary = SessionFork.Boundary;
|
|
31
|
-
export declare const ForkRequestBoundary: Schema.Union<readonly [Schema.Struct<{
|
|
32
|
-
readonly type: Schema.Literal<"before">;
|
|
33
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
34
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
35
|
-
fromEvent: (eventID: import("./event.js").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
36
|
-
};
|
|
37
|
-
}>, Schema.Struct<{
|
|
38
|
-
readonly type: Schema.Literal<"through">;
|
|
39
|
-
}>]>;
|
|
40
|
-
export type ForkRequestBoundary = SessionFork.RequestBoundary;
|
|
41
31
|
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
42
32
|
}
|
|
43
33
|
export declare const Info: Schema.Struct<{
|
package/dist/session.js
CHANGED
|
@@ -18,7 +18,6 @@ export const Metadata = SessionMetadata;
|
|
|
18
18
|
export const Event = SessionEvent;
|
|
19
19
|
export { Revert };
|
|
20
20
|
export const ForkBoundary = SessionFork.Boundary;
|
|
21
|
-
export const ForkRequestBoundary = SessionFork.RequestBoundary;
|
|
22
21
|
export const Info = Schema.Struct({
|
|
23
22
|
id: ID,
|
|
24
23
|
parentID: ID.pipe(optional),
|
package/dist/websearch.js
CHANGED
|
@@ -16,7 +16,9 @@ export const Result = Schema.Struct({
|
|
|
16
16
|
title: Schema.String.pipe(optional),
|
|
17
17
|
content: Schema.String.pipe(optional),
|
|
18
18
|
time: Schema.Struct({
|
|
19
|
-
published: Schema.Finite.pipe(optional)
|
|
19
|
+
published: Schema.Finite.pipe(optional).annotate({
|
|
20
|
+
description: "Publication time in milliseconds since the Unix epoch",
|
|
21
|
+
}),
|
|
20
22
|
}),
|
|
21
23
|
}).annotate({ identifier: "WebSearch.Result" });
|
|
22
24
|
export class Response extends Schema.Class("WebSearch.Response")({
|