@opencode/protocol 0.0.0-dev-21382 → 0.0.0-dev-21387
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/groups/permission.d.ts +6 -6
- package/dist/groups/pty.d.ts +27 -27
- package/package.json +2 -2
|
@@ -51,11 +51,7 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
51
51
|
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
52
52
|
}>;
|
|
53
53
|
}>>;
|
|
54
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.
|
|
55
|
-
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
56
|
-
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
57
|
-
};
|
|
58
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.update", "PATCH", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
54
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.update", "PATCH", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
59
55
|
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
60
56
|
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
61
57
|
};
|
|
@@ -77,7 +73,11 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
77
73
|
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
78
74
|
}>;
|
|
79
75
|
}>;
|
|
80
|
-
}>>, Schema.toCodecJson<typeof ConflictError | typeof PermissionSavedNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
76
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof PermissionSavedNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.remove", "DELETE", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
77
|
+
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
78
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
79
|
+
};
|
|
80
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.create", "POST", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{
|
|
81
81
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
82
82
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
83
83
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
package/dist/groups/pty.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const PTY_CONNECT_TOKEN_HEADER = "x-opencode-ticket";
|
|
|
6
6
|
export declare const PTY_CONNECT_TOKEN_HEADER_VALUE = "1";
|
|
7
7
|
export declare const PTY_CONNECT_PATH = "/api/pty/:ptyID/connect";
|
|
8
8
|
export declare function hasPtyConnectTicketURL(url: URL): boolean;
|
|
9
|
-
export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
9
|
+
export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
10
10
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
11
11
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
12
12
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -15,31 +15,15 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
15
15
|
readonly location: Schema.optional<Schema.Struct<{
|
|
16
16
|
readonly directory: Schema.optional<Schema.String>;
|
|
17
17
|
}>>;
|
|
18
|
-
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
19
|
-
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
20
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
21
|
-
readonly location: Schema.Struct<{
|
|
22
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
23
|
-
}>;
|
|
24
|
-
readonly data: Schema.Struct<{
|
|
25
|
-
readonly ticket: Schema.String;
|
|
26
|
-
readonly expires_in: Schema.Int;
|
|
27
|
-
}>;
|
|
28
|
-
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
18
|
+
}>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
29
19
|
readonly location: Schema.optional<Schema.Struct<{
|
|
30
20
|
readonly directory: Schema.optional<Schema.String>;
|
|
31
21
|
}>>;
|
|
32
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
33
|
-
readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
34
|
-
readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
35
|
-
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
36
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
37
|
-
readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
38
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
22
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
39
23
|
readonly location: Schema.Struct<{
|
|
40
24
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
41
25
|
}>;
|
|
42
|
-
readonly data: Schema.Struct<{
|
|
26
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
43
27
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
44
28
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
45
29
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -51,7 +35,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
51
35
|
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
52
36
|
readonly pid: Schema.Int;
|
|
53
37
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
54
|
-
}
|
|
38
|
+
}>>;
|
|
55
39
|
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
56
40
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
57
41
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -78,15 +62,21 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
78
62
|
readonly pid: Schema.Int;
|
|
79
63
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
80
64
|
}>;
|
|
81
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
65
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
82
66
|
readonly location: Schema.optional<Schema.Struct<{
|
|
83
67
|
readonly directory: Schema.optional<Schema.String>;
|
|
84
68
|
}>>;
|
|
85
|
-
}>>,
|
|
69
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
70
|
+
readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
71
|
+
readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
72
|
+
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
73
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
74
|
+
readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
75
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
86
76
|
readonly location: Schema.Struct<{
|
|
87
77
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
88
78
|
}>;
|
|
89
|
-
readonly data: Schema
|
|
79
|
+
readonly data: Schema.Struct<{
|
|
90
80
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
91
81
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
92
82
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -98,8 +88,8 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
98
88
|
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
99
89
|
readonly pid: Schema.Int;
|
|
100
90
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
101
|
-
}
|
|
102
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
91
|
+
}>;
|
|
92
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
|
|
103
93
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
104
94
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
105
95
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -108,7 +98,17 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
108
98
|
readonly location: Schema.optional<Schema.Struct<{
|
|
109
99
|
readonly directory: Schema.optional<Schema.String>;
|
|
110
100
|
}>>;
|
|
111
|
-
}>>, never,
|
|
101
|
+
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
102
|
+
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
103
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
104
|
+
readonly location: Schema.Struct<{
|
|
105
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
106
|
+
}>;
|
|
107
|
+
readonly data: Schema.Struct<{
|
|
108
|
+
readonly ticket: Schema.String;
|
|
109
|
+
readonly expires_in: Schema.Int;
|
|
110
|
+
}>;
|
|
111
|
+
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
112
112
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
113
113
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
114
114
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode/protocol",
|
|
4
|
-
"version": "0.0.0-dev-
|
|
4
|
+
"version": "0.0.0-dev-21387",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typecheck": "tsc --noEmit"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@opencode/schema": "0.0.0-dev-
|
|
36
|
+
"@opencode/schema": "0.0.0-dev-21387",
|
|
37
37
|
"effect": "4.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|