@opencode/schema 0.0.0-dev-19555 → 0.0.0-dev-19559

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.
@@ -4543,7 +4543,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4543
4543
  readonly time: Schema.Struct<{
4544
4544
  readonly created: Schema.Int;
4545
4545
  readonly updated: Schema.Int;
4546
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
4547
4546
  }>;
4548
4547
  readonly sandboxes: Schema.$Array<Schema.String>;
4549
4548
  }>;
@@ -4575,7 +4574,6 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
4575
4574
  readonly time: Schema.Struct<{
4576
4575
  readonly created: Schema.Int;
4577
4576
  readonly updated: Schema.Int;
4578
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
4579
4577
  }>;
4580
4578
  readonly sandboxes: Schema.$Array<Schema.String>;
4581
4579
  }>;
@@ -10767,7 +10765,6 @@ export declare const Definitions: readonly [Schema.Struct<{
10767
10765
  readonly time: Schema.Struct<{
10768
10766
  readonly created: Schema.Int;
10769
10767
  readonly updated: Schema.Int;
10770
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
10771
10768
  }>;
10772
10769
  readonly sandboxes: Schema.$Array<Schema.String>;
10773
10770
  }>;
@@ -10799,7 +10796,6 @@ export declare const Definitions: readonly [Schema.Struct<{
10799
10796
  readonly time: Schema.Struct<{
10800
10797
  readonly created: Schema.Int;
10801
10798
  readonly updated: Schema.Int;
10802
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
10803
10799
  }>;
10804
10800
  readonly sandboxes: Schema.$Array<Schema.String>;
10805
10801
  }>;
@@ -12,6 +12,11 @@ export declare const Ref: Schema.Struct<{
12
12
  create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
13
13
  }>, never, never>;
14
14
  }>;
15
+ export declare const PublicRef: Schema.Struct<{
16
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17
+ }>;
18
+ export interface PublicRef extends Schema.Schema.Type<typeof PublicRef> {
19
+ }
15
20
  declare const Info_base: Schema.Class<Info, Schema.Struct<{
16
21
  readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
17
22
  readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
@@ -31,7 +36,21 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
31
36
  }>, {}>;
32
37
  export declare class Info extends Info_base {
33
38
  }
39
+ export declare const PublicInfo: Schema.Struct<{
40
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
41
+ readonly project: Schema.Struct<{
42
+ readonly id: Schema.brand<Schema.String, "Project.ID"> & {
43
+ global: string & import("effect/Brand").Brand<"Project.ID">;
44
+ };
45
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
46
+ readonly canonical: Schema.brand<Schema.String, "AbsolutePath">;
47
+ }>;
48
+ }>;
49
+ export interface PublicInfo extends Schema.Schema.Type<typeof PublicInfo> {
50
+ }
34
51
  export declare function response<S extends Schema.Top>(data: S): Schema.Struct<{
35
- readonly location: typeof Info;
52
+ readonly location: Schema.Struct<{
53
+ readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
54
+ }>;
36
55
  readonly data: S;
37
56
  }>;
package/dist/location.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * as Location from "./location.js";
2
- import { Schema } from "effect";
2
+ import { Schema, Struct } from "effect";
3
3
  import { AbsolutePath, optional } from "./schema.js";
4
4
  import { ProjectID } from "./project-id.js";
5
5
  import { WorkspaceID } from "./workspace-id.js";
@@ -7,6 +7,9 @@ export const Ref = Schema.Struct({
7
7
  directory: AbsolutePath,
8
8
  workspaceID: optional(WorkspaceID),
9
9
  }).annotate({ identifier: "Location.Ref" });
10
+ export const PublicRef = Schema.Struct(Struct.omit(Ref.fields, ["workspaceID"])).annotate({
11
+ identifier: "Location.PublicRef",
12
+ });
10
13
  export class Info extends Schema.Class("Location.Info")({
11
14
  directory: AbsolutePath,
12
15
  workspaceID: optional(WorkspaceID),
@@ -17,6 +20,9 @@ export class Info extends Schema.Class("Location.Info")({
17
20
  }),
18
21
  }) {
19
22
  }
23
+ export const PublicInfo = Schema.Struct(Struct.omit(Info.fields, ["workspaceID"])).annotate({
24
+ identifier: "Location.PublicInfo",
25
+ });
20
26
  export function response(data) {
21
- return Schema.Struct({ location: Info, data });
27
+ return Schema.Struct({ location: PublicRef, data });
22
28
  }
package/dist/project.d.ts CHANGED
@@ -29,7 +29,6 @@ export interface Commands extends Schema.Schema.Type<typeof Commands> {
29
29
  export declare const Time: Schema.Struct<{
30
30
  readonly created: Schema.Int;
31
31
  readonly updated: Schema.Int;
32
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
33
32
  }>;
34
33
  export interface Time extends Schema.Schema.Type<typeof Time> {
35
34
  }
@@ -57,7 +56,6 @@ export declare const Info: Schema.Struct<{
57
56
  readonly time: Schema.Struct<{
58
57
  readonly created: Schema.Int;
59
58
  readonly updated: Schema.Int;
60
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
61
59
  }>;
62
60
  readonly sandboxes: Schema.$Array<Schema.String>;
63
61
  }>;
@@ -137,7 +135,6 @@ export declare const Event: {
137
135
  readonly time: Schema.Struct<{
138
136
  readonly created: Schema.Int;
139
137
  readonly updated: Schema.Int;
140
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
141
138
  }>;
142
139
  readonly sandboxes: Schema.$Array<Schema.String>;
143
140
  }>;
@@ -169,7 +166,6 @@ export declare const Event: {
169
166
  readonly time: Schema.Struct<{
170
167
  readonly created: Schema.Int;
171
168
  readonly updated: Schema.Int;
172
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
173
169
  }>;
174
170
  readonly sandboxes: Schema.$Array<Schema.String>;
175
171
  }>;
@@ -224,7 +220,6 @@ export declare const Event: {
224
220
  readonly time: Schema.Struct<{
225
221
  readonly created: Schema.Int;
226
222
  readonly updated: Schema.Int;
227
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
228
223
  }>;
229
224
  readonly sandboxes: Schema.$Array<Schema.String>;
230
225
  }>;
@@ -256,7 +251,6 @@ export declare const Event: {
256
251
  readonly time: Schema.Struct<{
257
252
  readonly created: Schema.Int;
258
253
  readonly updated: Schema.Int;
259
- readonly initialized: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
260
254
  }>;
261
255
  readonly sandboxes: Schema.$Array<Schema.String>;
262
256
  }>;
package/dist/project.js CHANGED
@@ -23,7 +23,6 @@ export const Commands = Schema.Struct({
23
23
  export const Time = Schema.Struct({
24
24
  created: NonNegativeInt,
25
25
  updated: NonNegativeInt,
26
- initialized: optional(NonNegativeInt),
27
26
  }).annotate({ identifier: "Project.Time" });
28
27
  export const Info = Schema.Struct({
29
28
  id: ID,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode/schema",
4
- "version": "0.0.0-dev-19555",
4
+ "version": "0.0.0-dev-19559",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "repository": {