@opencode-ai/schema 0.0.0-dev-18112 → 0.0.0-dev-18122
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/workspace.d.ts +7 -1
- package/dist/workspace.js +9 -0
- package/package.json +1 -1
package/dist/workspace.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
export * as Workspace from "./workspace.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
2
3
|
import { WorkspaceEvent } from "./workspace-event.js";
|
|
3
4
|
import { WorkspaceID } from "./workspace-id.js";
|
|
4
|
-
export declare const ID:
|
|
5
|
+
export declare const ID: Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
5
6
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6
7
|
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
7
8
|
};
|
|
8
9
|
export type ID = WorkspaceID;
|
|
10
|
+
export declare const DestroyResult: Schema.Struct<{
|
|
11
|
+
readonly destroyed: Schema.Boolean;
|
|
12
|
+
}>;
|
|
13
|
+
export interface DestroyResult extends Schema.Schema.Type<typeof DestroyResult> {
|
|
14
|
+
}
|
|
9
15
|
export declare const Event: typeof WorkspaceEvent;
|
package/dist/workspace.js
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
export * as Workspace from "./workspace.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
2
3
|
import { WorkspaceEvent } from "./workspace-event.js";
|
|
3
4
|
import { WorkspaceID } from "./workspace-id.js";
|
|
4
5
|
export const ID = WorkspaceID;
|
|
6
|
+
export const DestroyResult = Schema.Struct({
|
|
7
|
+
destroyed: Schema.Boolean.annotate({
|
|
8
|
+
description: "True when this request transitioned the workspace from existing to destroyed.",
|
|
9
|
+
}),
|
|
10
|
+
}).annotate({
|
|
11
|
+
identifier: "WorkspaceDestroyResult",
|
|
12
|
+
description: "Reports whether this request destroyed an existing workspace.",
|
|
13
|
+
});
|
|
5
14
|
export const Event = WorkspaceEvent;
|