@opencode/protocol 0.0.0-dev-21163 → 0.0.0-dev-21164
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/errors.d.ts +6 -0
- package/dist/errors.js +5 -0
- package/dist/groups/permission.d.ts +29 -7
- package/dist/groups/permission.js +14 -1
- package/dist/groups/pty.d.ts +42 -42
- package/package.json +2 -2
package/dist/errors.d.ts
CHANGED
|
@@ -149,6 +149,12 @@ declare const PermissionNotFoundError_base: Schema.Class<PermissionNotFoundError
|
|
|
149
149
|
}>, import("effect/Cause").YieldableError>;
|
|
150
150
|
export declare class PermissionNotFoundError extends PermissionNotFoundError_base {
|
|
151
151
|
}
|
|
152
|
+
declare const PermissionSavedNotFoundError_base: Schema.Class<PermissionSavedNotFoundError, Schema.TaggedStruct<"PermissionSavedNotFoundError", {
|
|
153
|
+
readonly id: Schema.String;
|
|
154
|
+
readonly message: Schema.String;
|
|
155
|
+
}>, import("effect/Cause").YieldableError>;
|
|
156
|
+
export declare class PermissionSavedNotFoundError extends PermissionSavedNotFoundError_base {
|
|
157
|
+
}
|
|
152
158
|
declare const FormNotFoundError_base: Schema.Class<FormNotFoundError, Schema.TaggedStruct<"FormNotFoundError", {
|
|
153
159
|
readonly id: Schema.String;
|
|
154
160
|
readonly message: Schema.String;
|
package/dist/errors.js
CHANGED
|
@@ -118,6 +118,11 @@ export class PermissionNotFoundError extends Schema.TaggedError()("PermissionNot
|
|
|
118
118
|
message: Schema.String,
|
|
119
119
|
}, { httpApiStatus: 404 }) {
|
|
120
120
|
}
|
|
121
|
+
export class PermissionSavedNotFoundError extends Schema.TaggedError()("PermissionSavedNotFoundError", {
|
|
122
|
+
id: Schema.String,
|
|
123
|
+
message: Schema.String,
|
|
124
|
+
}, { httpApiStatus: 404 }) {
|
|
125
|
+
}
|
|
121
126
|
export class FormNotFoundError extends Schema.TaggedError()("FormNotFoundError", {
|
|
122
127
|
id: Schema.String,
|
|
123
128
|
message: Schema.String,
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Context, Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
|
|
3
|
-
import { LocationNotFoundError, PermissionNotFoundError, SessionNotFoundError } from "../errors.js";
|
|
4
|
-
export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.permission", HttpApiEndpoint.HttpApiEndpoint<"permission.
|
|
5
|
-
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
6
|
-
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
7
|
-
};
|
|
8
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
3
|
+
import { ConflictError, LocationNotFoundError, PermissionNotFoundError, PermissionSavedNotFoundError, SessionNotFoundError } from "../errors.js";
|
|
4
|
+
export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService, SessionLocationId extends HttpApiMiddleware.AnyId, SessionLocationService>(locationMiddleware: Context.Key<LocationId, LocationService>, sessionLocationMiddleware: Context.Key<SessionLocationId, SessionLocationService>) => HttpApiGroup.HttpApiGroup<"server.permission", HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
9
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
10
6
|
readonly directory: Schema.optional<Schema.String>;
|
|
11
7
|
}>>;
|
|
@@ -55,7 +51,33 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
55
51
|
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
56
52
|
}>;
|
|
57
53
|
}>>;
|
|
58
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"
|
|
54
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.saved.remove", "DELETE", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
59
|
+
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
60
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
61
|
+
};
|
|
62
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
63
|
+
readonly action: Schema.optional<Schema.String>;
|
|
64
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
65
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
66
|
+
readonly data: Schema.Struct<{
|
|
67
|
+
readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
68
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
69
|
+
};
|
|
70
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
71
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
72
|
+
};
|
|
73
|
+
readonly action: Schema.String;
|
|
74
|
+
readonly resource: Schema.String;
|
|
75
|
+
readonly time: Schema.Struct<{
|
|
76
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
77
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
78
|
+
}>;
|
|
79
|
+
}>;
|
|
80
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof PermissionSavedNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.create", "POST", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{
|
|
59
81
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
60
82
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
61
83
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -6,7 +6,7 @@ import { Project } from "@opencode/schema/project";
|
|
|
6
6
|
import { Session } from "@opencode/schema/session";
|
|
7
7
|
import { Context, Schema } from "effect";
|
|
8
8
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
9
|
-
import { LocationNotFoundError, PermissionNotFoundError, SessionNotFoundError } from "../errors.js";
|
|
9
|
+
import { ConflictError, LocationNotFoundError, PermissionNotFoundError, PermissionSavedNotFoundError, SessionNotFoundError, } from "../errors.js";
|
|
10
10
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
11
11
|
export const makePermissionGroup = (locationMiddleware, sessionLocationMiddleware) => HttpApiGroup.make("server.permission")
|
|
12
12
|
.add(HttpApiEndpoint.get("permission.request.list", "/api/permission/request", {
|
|
@@ -26,6 +26,19 @@ export const makePermissionGroup = (locationMiddleware, sessionLocationMiddlewar
|
|
|
26
26
|
identifier: "permission.saved.list",
|
|
27
27
|
summary: "List saved permissions",
|
|
28
28
|
description: "Retrieve saved permissions, optionally filtered by project.",
|
|
29
|
+
})))
|
|
30
|
+
.add(HttpApiEndpoint.patch("permission.saved.update", "/api/permission/saved/:id", {
|
|
31
|
+
params: { id: PermissionSaved.ID },
|
|
32
|
+
payload: Schema.Struct({
|
|
33
|
+
action: Schema.String.pipe(Schema.optional),
|
|
34
|
+
resource: Schema.String.pipe(Schema.optional),
|
|
35
|
+
}),
|
|
36
|
+
success: Schema.Struct({ data: PermissionSaved.Info }),
|
|
37
|
+
error: [PermissionSavedNotFoundError, ConflictError],
|
|
38
|
+
}).annotateMerge(OpenApi.annotations({
|
|
39
|
+
identifier: "permission.saved.update",
|
|
40
|
+
summary: "Update saved permission",
|
|
41
|
+
description: "Change the action or resource of a saved permission. Fails with a conflict when the project already has a saved permission with the same action and resource.",
|
|
29
42
|
})))
|
|
30
43
|
.add(HttpApiEndpoint.delete("permission.saved.remove", "/api/permission/saved/:id", {
|
|
31
44
|
params: { id: PermissionSaved.ID },
|
package/dist/groups/pty.d.ts
CHANGED
|
@@ -6,24 +6,21 @@ 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.
|
|
10
|
-
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
11
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
12
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
13
|
-
};
|
|
14
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
9
|
+
export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.pty", HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
15
10
|
readonly location: Schema.optional<Schema.Struct<{
|
|
16
11
|
readonly directory: Schema.optional<Schema.String>;
|
|
17
12
|
}>>;
|
|
18
|
-
}>>,
|
|
19
|
-
readonly
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
13
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
14
|
+
readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
15
|
+
readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
16
|
+
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
17
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
18
|
+
readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
19
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
23
20
|
readonly location: Schema.Struct<{
|
|
24
21
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
25
22
|
}>;
|
|
26
|
-
readonly data: Schema
|
|
23
|
+
readonly data: Schema.Struct<{
|
|
27
24
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
28
25
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
29
26
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -35,13 +32,8 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
35
32
|
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
36
33
|
readonly pid: Schema.Int;
|
|
37
34
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
38
|
-
}
|
|
39
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
40
|
-
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
41
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
42
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
43
|
-
};
|
|
44
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
35
|
+
}>;
|
|
36
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
45
37
|
readonly location: Schema.optional<Schema.Struct<{
|
|
46
38
|
readonly directory: Schema.optional<Schema.String>;
|
|
47
39
|
}>>;
|
|
@@ -49,7 +41,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
49
41
|
readonly location: Schema.Struct<{
|
|
50
42
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
51
43
|
}>;
|
|
52
|
-
readonly data: Schema.Struct<{
|
|
44
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
53
45
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
54
46
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
55
47
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -61,18 +53,17 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
61
53
|
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
62
54
|
readonly pid: Schema.Int;
|
|
63
55
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
64
|
-
}
|
|
65
|
-
}>>,
|
|
56
|
+
}>>;
|
|
57
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
58
|
+
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
59
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
60
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
61
|
+
};
|
|
62
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
66
63
|
readonly location: Schema.optional<Schema.Struct<{
|
|
67
64
|
readonly directory: Schema.optional<Schema.String>;
|
|
68
65
|
}>>;
|
|
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<{
|
|
66
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
76
67
|
readonly location: Schema.Struct<{
|
|
77
68
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
78
69
|
}>;
|
|
@@ -89,7 +80,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
89
80
|
readonly pid: Schema.Int;
|
|
90
81
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
91
82
|
}>;
|
|
92
|
-
}>>,
|
|
83
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
93
84
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
94
85
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
95
86
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -98,17 +89,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
98
89
|
readonly location: Schema.optional<Schema.Struct<{
|
|
99
90
|
readonly directory: Schema.optional<Schema.String>;
|
|
100
91
|
}>>;
|
|
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<{
|
|
92
|
+
}>>, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.update", "PUT", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
112
93
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
113
94
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
114
95
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -143,7 +124,26 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
143
124
|
readonly pid: Schema.Int;
|
|
144
125
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
145
126
|
}>;
|
|
146
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
127
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
|
|
128
|
+
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
129
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
130
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
131
|
+
};
|
|
132
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
133
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
134
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
135
|
+
}>>;
|
|
136
|
+
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
137
|
+
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
138
|
+
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
139
|
+
readonly location: Schema.Struct<{
|
|
140
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
141
|
+
}>;
|
|
142
|
+
readonly data: Schema.Struct<{
|
|
143
|
+
readonly ticket: Schema.String;
|
|
144
|
+
readonly expires_in: Schema.Int;
|
|
145
|
+
}>;
|
|
146
|
+
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connect", "GET", "/api/pty/:ptyID/connect", Schema.toCodecStringTree<Schema.Struct<{
|
|
147
147
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
148
148
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
149
149
|
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-21164",
|
|
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-21164",
|
|
37
37
|
"effect": "4.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|