@opencode/protocol 0.0.0-dev-21106 → 0.0.0-dev-21107
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/agent.d.ts +9 -9
- package/dist/groups/credential.d.ts +36 -36
- package/dist/groups/event.d.ts +2202 -2202
- package/dist/groups/form.d.ts +24 -24
- package/dist/groups/fs.d.ts +12 -12
- package/dist/groups/integration.d.ts +278 -278
- package/dist/groups/mcp.d.ts +22 -22
- package/dist/groups/message.d.ts +72 -72
- package/dist/groups/model.d.ts +108 -108
- package/dist/groups/permission.d.ts +16 -16
- package/dist/groups/persistent-pty.d.ts +122 -122
- package/dist/groups/plugin.d.ts +7 -7
- package/dist/groups/provider.d.ts +20 -20
- package/dist/groups/pty.d.ts +11 -11
- package/dist/groups/reference.d.ts +5 -5
- package/dist/groups/server.d.ts +6 -6
- package/dist/groups/session.d.ts +6256 -6256
- package/dist/groups/shell.d.ts +20 -20
- package/dist/groups/vcs.d.ts +30 -30
- package/dist/groups/worktree.d.ts +11 -11
- package/dist/simulation.d.ts +237 -237
- package/package.json +5 -5
package/dist/groups/model.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Model } from "@opencode/schema/model";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
4
|
import { ServiceUnavailableError } from "../errors.js";
|
|
5
|
-
export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.
|
|
5
|
+
export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
|
7
7
|
readonly directory: Schema.optional<Schema.String>;
|
|
8
8
|
}>>;
|
|
@@ -10,80 +10,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
10
10
|
readonly location: Schema.Struct<{
|
|
11
11
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
12
12
|
}>;
|
|
13
|
-
readonly data: Schema
|
|
14
|
-
readonly capabilities: Schema.Struct<{
|
|
15
|
-
readonly tools: Schema.Boolean;
|
|
16
|
-
readonly input: Schema.$Array<Schema.String>;
|
|
17
|
-
readonly output: Schema.$Array<Schema.String>;
|
|
18
|
-
readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
19
|
-
}> & {
|
|
20
|
-
default: () => {
|
|
21
|
-
tools: true;
|
|
22
|
-
input: string[];
|
|
23
|
-
output: string[];
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
readonly variants: Schema.$Array<Schema.Struct<{
|
|
27
|
-
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
28
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
29
|
-
readonly type: Schema.Literal<"summary">;
|
|
30
|
-
}>, Schema.Struct<{
|
|
31
|
-
readonly type: Schema.Literal<"native">;
|
|
32
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
33
|
-
readonly type: Schema.Literal<"summary">;
|
|
34
|
-
}>, Schema.Struct<{
|
|
35
|
-
readonly type: Schema.Literal<"native">;
|
|
36
|
-
}>]>>, never, never>;
|
|
37
|
-
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
38
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
39
|
-
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
40
|
-
readonly type: Schema.Literal<"summary">;
|
|
41
|
-
}>, Schema.Struct<{
|
|
42
|
-
readonly type: Schema.Literal<"native">;
|
|
43
|
-
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
44
|
-
readonly type: Schema.Literal<"summary">;
|
|
45
|
-
}>, Schema.Struct<{
|
|
46
|
-
readonly type: Schema.Literal<"native">;
|
|
47
|
-
}>]>>, never, never>;
|
|
48
|
-
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
49
|
-
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
50
|
-
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
51
|
-
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
52
|
-
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
53
|
-
}>>;
|
|
54
|
-
readonly time: Schema.Struct<{
|
|
55
|
-
readonly released: Schema.Finite;
|
|
56
|
-
}>;
|
|
57
|
-
readonly cost: Schema.$Array<Schema.Struct<{
|
|
58
|
-
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
59
|
-
readonly type: Schema.tag<"context">;
|
|
60
|
-
readonly size: Schema.Int;
|
|
61
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
62
|
-
readonly type: Schema.tag<"context">;
|
|
63
|
-
readonly size: Schema.Int;
|
|
64
|
-
}>>, never, never>;
|
|
65
|
-
readonly input: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
66
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
67
|
-
};
|
|
68
|
-
readonly output: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
69
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
70
|
-
};
|
|
71
|
-
readonly cache: Schema.Struct<{
|
|
72
|
-
readonly read: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
73
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
74
|
-
};
|
|
75
|
-
readonly write: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
76
|
-
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
77
|
-
};
|
|
78
|
-
}>;
|
|
79
|
-
}>>;
|
|
80
|
-
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
81
|
-
readonly enabled: Schema.Boolean;
|
|
82
|
-
readonly limit: Schema.Struct<{
|
|
83
|
-
readonly context: Schema.Int;
|
|
84
|
-
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
85
|
-
readonly output: Schema.Int;
|
|
86
|
-
}>;
|
|
13
|
+
readonly data: Schema.UndefinedOr<Schema.Struct<{
|
|
87
14
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
88
15
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
89
16
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -173,39 +100,6 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
173
100
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
174
101
|
}>>, never, never>;
|
|
175
102
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
176
|
-
}> & {
|
|
177
|
-
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
178
|
-
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
179
|
-
modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
180
|
-
providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
181
|
-
name: string & import("effect/Brand").Brand<"Model.ID">;
|
|
182
|
-
capabilities: {
|
|
183
|
-
tools: true;
|
|
184
|
-
input: string[];
|
|
185
|
-
output: string[];
|
|
186
|
-
};
|
|
187
|
-
variants: never[];
|
|
188
|
-
time: {
|
|
189
|
-
released: number;
|
|
190
|
-
};
|
|
191
|
-
cost: never[];
|
|
192
|
-
status: "active";
|
|
193
|
-
enabled: true;
|
|
194
|
-
limit: {
|
|
195
|
-
context: number;
|
|
196
|
-
output: number;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
}>;
|
|
200
|
-
}>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.default", "GET", "/api/model/default", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
201
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
202
|
-
readonly directory: Schema.optional<Schema.String>;
|
|
203
|
-
}>>;
|
|
204
|
-
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
205
|
-
readonly location: Schema.Struct<{
|
|
206
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
207
|
-
}>;
|
|
208
|
-
readonly data: Schema.UndefinedOr<Schema.Struct<{
|
|
209
103
|
readonly capabilities: Schema.Struct<{
|
|
210
104
|
readonly tools: Schema.Boolean;
|
|
211
105
|
readonly input: Schema.$Array<Schema.String>;
|
|
@@ -279,6 +173,39 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
279
173
|
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
280
174
|
readonly output: Schema.Int;
|
|
281
175
|
}>;
|
|
176
|
+
}> & {
|
|
177
|
+
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
178
|
+
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
179
|
+
modelID: string & import("effect/Brand").Brand<"Model.ID">;
|
|
180
|
+
providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
181
|
+
name: string & import("effect/Brand").Brand<"Model.ID">;
|
|
182
|
+
capabilities: {
|
|
183
|
+
tools: true;
|
|
184
|
+
input: string[];
|
|
185
|
+
output: string[];
|
|
186
|
+
};
|
|
187
|
+
variants: never[];
|
|
188
|
+
time: {
|
|
189
|
+
released: number;
|
|
190
|
+
};
|
|
191
|
+
cost: never[];
|
|
192
|
+
status: "active";
|
|
193
|
+
enabled: true;
|
|
194
|
+
limit: {
|
|
195
|
+
context: number;
|
|
196
|
+
output: number;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
}>;
|
|
200
|
+
}>>, Schema.toCodecJson<typeof ServiceUnavailableError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
201
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
202
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
203
|
+
}>>;
|
|
204
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
205
|
+
readonly location: Schema.Struct<{
|
|
206
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
207
|
+
}>;
|
|
208
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
282
209
|
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
283
210
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
284
211
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -368,6 +295,79 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
368
295
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
369
296
|
}>>, never, never>;
|
|
370
297
|
readonly package: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
298
|
+
readonly capabilities: Schema.Struct<{
|
|
299
|
+
readonly tools: Schema.Boolean;
|
|
300
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
301
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
302
|
+
readonly temperature: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
303
|
+
}> & {
|
|
304
|
+
default: () => {
|
|
305
|
+
tools: true;
|
|
306
|
+
input: string[];
|
|
307
|
+
output: string[];
|
|
308
|
+
};
|
|
309
|
+
};
|
|
310
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
311
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.StructWithRest<Schema.Struct<{
|
|
312
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
313
|
+
readonly type: Schema.Literal<"summary">;
|
|
314
|
+
}>, Schema.Struct<{
|
|
315
|
+
readonly type: Schema.Literal<"native">;
|
|
316
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
317
|
+
readonly type: Schema.Literal<"summary">;
|
|
318
|
+
}>, Schema.Struct<{
|
|
319
|
+
readonly type: Schema.Literal<"native">;
|
|
320
|
+
}>]>>, never, never>;
|
|
321
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
322
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
323
|
+
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
324
|
+
readonly type: Schema.Literal<"summary">;
|
|
325
|
+
}>, Schema.Struct<{
|
|
326
|
+
readonly type: Schema.Literal<"native">;
|
|
327
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Struct<{
|
|
328
|
+
readonly type: Schema.Literal<"summary">;
|
|
329
|
+
}>, Schema.Struct<{
|
|
330
|
+
readonly type: Schema.Literal<"native">;
|
|
331
|
+
}>]>>, never, never>;
|
|
332
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
333
|
+
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
334
|
+
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
335
|
+
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
336
|
+
readonly id: Schema.brand<Schema.String, "Model.VariantID">;
|
|
337
|
+
}>>;
|
|
338
|
+
readonly time: Schema.Struct<{
|
|
339
|
+
readonly released: Schema.Finite;
|
|
340
|
+
}>;
|
|
341
|
+
readonly cost: Schema.$Array<Schema.Struct<{
|
|
342
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
343
|
+
readonly type: Schema.tag<"context">;
|
|
344
|
+
readonly size: Schema.Int;
|
|
345
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
346
|
+
readonly type: Schema.tag<"context">;
|
|
347
|
+
readonly size: Schema.Int;
|
|
348
|
+
}>>, never, never>;
|
|
349
|
+
readonly input: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
350
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
351
|
+
};
|
|
352
|
+
readonly output: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
353
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
354
|
+
};
|
|
355
|
+
readonly cache: Schema.Struct<{
|
|
356
|
+
readonly read: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
357
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
358
|
+
};
|
|
359
|
+
readonly write: Schema.brand<Schema.Finite, "Money.USDPerMillionTokens"> & {
|
|
360
|
+
zero: number & import("effect/Brand").Brand<"Money.USDPerMillionTokens">;
|
|
361
|
+
};
|
|
362
|
+
}>;
|
|
363
|
+
}>>;
|
|
364
|
+
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
365
|
+
readonly enabled: Schema.Boolean;
|
|
366
|
+
readonly limit: Schema.Struct<{
|
|
367
|
+
readonly context: Schema.Int;
|
|
368
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
369
|
+
readonly output: Schema.Int;
|
|
370
|
+
}>;
|
|
371
371
|
}> & {
|
|
372
372
|
default: (providerID: import("@opencode/schema/provider").ID, id: Model.ID) => {
|
|
373
373
|
id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Context, Schema } from "effect";
|
|
2
2
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
|
|
3
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.
|
|
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.saved.remove", "DELETE", "/api/permission/saved/:id", Schema.toCodecStringTree<Schema.Struct<{
|
|
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<{
|
|
5
9
|
readonly location: Schema.optional<Schema.Struct<{
|
|
6
10
|
readonly directory: Schema.optional<Schema.String>;
|
|
7
11
|
}>>;
|
|
@@ -51,11 +55,7 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
51
55
|
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
52
56
|
}>;
|
|
53
57
|
}>>;
|
|
54
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.
|
|
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<"session.permission.create", "POST", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{
|
|
58
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.create", "POST", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{
|
|
59
59
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
60
60
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
61
61
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -85,13 +85,16 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
85
85
|
};
|
|
86
86
|
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
87
87
|
}>;
|
|
88
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.
|
|
88
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.get", "GET", "/api/session/:sessionID/permission/:requestID", Schema.toCodecStringTree<Schema.Struct<{
|
|
89
89
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
90
90
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
91
91
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
92
92
|
};
|
|
93
|
+
requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
94
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
95
|
+
};
|
|
93
96
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
94
|
-
readonly data: Schema
|
|
97
|
+
readonly data: Schema.Struct<{
|
|
95
98
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
96
99
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
97
100
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -113,17 +116,14 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
113
116
|
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
114
117
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
115
118
|
};
|
|
116
|
-
}
|
|
117
|
-
}>>, Schema.toCodecJson<typeof
|
|
119
|
+
}>;
|
|
120
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof PermissionNotFoundError>, SessionLocationId, HttpApiMiddleware.Requires<SessionLocationId>> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.list", "GET", "/api/session/:sessionID/permission", Schema.toCodecStringTree<Schema.Struct<{
|
|
118
121
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
119
122
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
120
123
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
121
124
|
};
|
|
122
|
-
requestID: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
123
|
-
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
124
|
-
};
|
|
125
125
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
126
|
-
readonly data: Schema.Struct<{
|
|
126
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
127
127
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
128
128
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
129
129
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -145,8 +145,8 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
145
145
|
readonly id: Schema.brand<Schema.String, "Permission.ID"> & {
|
|
146
146
|
create: (id?: string) => string & import("effect/Brand").Brand<"Permission.ID">;
|
|
147
147
|
};
|
|
148
|
-
}
|
|
149
|
-
}>>, Schema.toCodecJson<typeof
|
|
148
|
+
}>>;
|
|
149
|
+
}>>, Schema.toCodecJson<typeof LocationNotFoundError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.permission.reply", "POST", "/api/session/:sessionID/permission/:requestID/reply", Schema.toCodecStringTree<Schema.Struct<{
|
|
150
150
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
151
151
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
152
152
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|