@opencode/protocol 0.0.0-dev-21344 → 0.0.0-dev-21353
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 +21 -21
- package/package.json +2 -2
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
import { Context, Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
|
|
3
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.
|
|
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<{
|
|
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,11 @@ 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<"permission.saved.
|
|
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
59
|
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
60
60
|
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
61
61
|
};
|
package/dist/groups/pty.d.ts
CHANGED
|
@@ -62,26 +62,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
62
62
|
readonly pid: Schema.Int;
|
|
63
63
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
64
64
|
}>;
|
|
65
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
66
|
-
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
67
|
-
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
68
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
69
|
-
};
|
|
70
|
-
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
71
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
72
|
-
readonly directory: Schema.optional<Schema.String>;
|
|
73
|
-
}>>;
|
|
74
|
-
}>>, never, Schema.toCodecStringTree<Schema.Struct<{
|
|
75
|
-
readonly "x-opencode-ticket": Schema.optional<Schema.String>;
|
|
76
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
77
|
-
readonly location: Schema.Struct<{
|
|
78
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
79
|
-
}>;
|
|
80
|
-
readonly data: Schema.Struct<{
|
|
81
|
-
readonly ticket: Schema.String;
|
|
82
|
-
readonly expires_in: Schema.Int;
|
|
83
|
-
}>;
|
|
84
|
-
}>>, Schema.toCodecJson<typeof ForbiddenError | typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
65
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.create", "POST", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
85
66
|
readonly location: Schema.optional<Schema.Struct<{
|
|
86
67
|
readonly directory: Schema.optional<Schema.String>;
|
|
87
68
|
}>>;
|
|
@@ -108,7 +89,26 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
108
89
|
readonly pid: Schema.Int;
|
|
109
90
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
110
91
|
}>;
|
|
111
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
92
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.connectToken", "POST", "/api/pty/:ptyID/connect-token", Schema.toCodecStringTree<Schema.Struct<{
|
|
93
|
+
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
94
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
95
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
96
|
+
};
|
|
97
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
98
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
99
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
100
|
+
}>>;
|
|
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-21353",
|
|
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-21353",
|
|
37
37
|
"effect": "4.0.1"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|