@opencode/protocol 0.0.0-dev-21269 → 0.0.0-dev-21286
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/credential.d.ts +0 -3
- package/dist/groups/event.d.ts +751 -961
- package/dist/groups/message.d.ts +10 -110
- package/dist/groups/permission.d.ts +24 -24
- package/dist/groups/pty.d.ts +24 -24
- package/dist/groups/session.d.ts +58 -375
- package/dist/groups/session.js +13 -2
- package/package.json +2 -2
package/dist/groups/message.d.ts
CHANGED
|
@@ -365,11 +365,11 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
365
365
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
366
366
|
readonly type: Schema.tag<"text">;
|
|
367
367
|
readonly text: Schema.String;
|
|
368
|
-
readonly
|
|
368
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
369
369
|
}>, Schema.Struct<{
|
|
370
370
|
readonly type: Schema.tag<"reasoning">;
|
|
371
371
|
readonly text: Schema.String;
|
|
372
|
-
readonly
|
|
372
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
373
373
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
374
374
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
375
375
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
@@ -382,8 +382,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
382
382
|
readonly id: Schema.String;
|
|
383
383
|
readonly name: Schema.String;
|
|
384
384
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
385
|
-
readonly
|
|
386
|
-
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
385
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
387
386
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
388
387
|
readonly status: Schema.tag<"streaming">;
|
|
389
388
|
readonly input: Schema.String;
|
|
@@ -453,7 +452,7 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
453
452
|
}>>, never, never>;
|
|
454
453
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
455
454
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
456
|
-
readonly
|
|
455
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
457
456
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
458
457
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
459
458
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -540,7 +539,6 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
540
539
|
readonly status: Schema.tag<"running">;
|
|
541
540
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
542
541
|
readonly summary: Schema.String;
|
|
543
|
-
readonly recent: Schema.String;
|
|
544
542
|
}>, Schema.Struct<{
|
|
545
543
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
546
544
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -620,56 +618,8 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
620
618
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
621
619
|
};
|
|
622
620
|
}>, never, never>;
|
|
623
|
-
readonly
|
|
621
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
624
622
|
readonly summary: Schema.String;
|
|
625
|
-
readonly recent: Schema.String;
|
|
626
|
-
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
627
|
-
readonly version: Schema.Literal<1>;
|
|
628
|
-
readonly provenance: Schema.Struct<{
|
|
629
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
630
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
631
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
632
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
633
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
634
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
635
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
636
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
637
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
638
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
639
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
640
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
641
|
-
};
|
|
642
|
-
readonly provider: Schema.String;
|
|
643
|
-
readonly modelID: Schema.String;
|
|
644
|
-
readonly route: Schema.String;
|
|
645
|
-
readonly protocol: Schema.String;
|
|
646
|
-
readonly endpoint: Schema.String;
|
|
647
|
-
}>;
|
|
648
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
649
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
650
|
-
readonly version: Schema.Literal<1>;
|
|
651
|
-
readonly provenance: Schema.Struct<{
|
|
652
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
653
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
654
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
655
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
656
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
657
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
658
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
659
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
660
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
661
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
662
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
663
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
664
|
-
};
|
|
665
|
-
readonly provider: Schema.String;
|
|
666
|
-
readonly modelID: Schema.String;
|
|
667
|
-
readonly route: Schema.String;
|
|
668
|
-
readonly protocol: Schema.String;
|
|
669
|
-
readonly endpoint: Schema.String;
|
|
670
|
-
}>;
|
|
671
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
672
|
-
}>>, never, never>;
|
|
673
623
|
}>, Schema.Struct<{
|
|
674
624
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
675
625
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1114,11 +1064,11 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1114
1064
|
readonly content: Schema.$Array<Schema.toTaggedUnion<"type", readonly [Schema.Struct<{
|
|
1115
1065
|
readonly type: Schema.tag<"text">;
|
|
1116
1066
|
readonly text: Schema.String;
|
|
1117
|
-
readonly
|
|
1067
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1118
1068
|
}>, Schema.Struct<{
|
|
1119
1069
|
readonly type: Schema.tag<"reasoning">;
|
|
1120
1070
|
readonly text: Schema.String;
|
|
1121
|
-
readonly
|
|
1071
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1122
1072
|
readonly time: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1123
1073
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1124
1074
|
readonly completed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
@@ -1131,8 +1081,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1131
1081
|
readonly id: Schema.String;
|
|
1132
1082
|
readonly name: Schema.String;
|
|
1133
1083
|
readonly executed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
1134
|
-
readonly
|
|
1135
|
-
readonly providerResultState: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1084
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1136
1085
|
readonly state: Schema.toTaggedUnion<"status", readonly [Schema.Struct<{
|
|
1137
1086
|
readonly status: Schema.tag<"streaming">;
|
|
1138
1087
|
readonly input: Schema.String;
|
|
@@ -1202,7 +1151,7 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1202
1151
|
}>>, never, never>;
|
|
1203
1152
|
readonly finish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>>, Schema.optionalKey<Schema.Literals<readonly ["stop", "length", "tool-calls", "content-filter", "error", "unknown"]>>, never, never>;
|
|
1204
1153
|
readonly rawFinish: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1205
|
-
readonly
|
|
1154
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1206
1155
|
readonly cost: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1207
1156
|
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1208
1157
|
}>>, Schema.optionalKey<Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
@@ -1289,7 +1238,6 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1289
1238
|
readonly status: Schema.tag<"running">;
|
|
1290
1239
|
readonly reason: Schema.Literals<readonly ["auto", "manual"]>;
|
|
1291
1240
|
readonly summary: Schema.String;
|
|
1292
|
-
readonly recent: Schema.String;
|
|
1293
1241
|
}>, Schema.Struct<{
|
|
1294
1242
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1295
1243
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1369,56 +1317,8 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1369
1317
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1370
1318
|
};
|
|
1371
1319
|
}>, never, never>;
|
|
1372
|
-
readonly
|
|
1320
|
+
readonly native: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
1373
1321
|
readonly summary: Schema.String;
|
|
1374
|
-
readonly recent: Schema.String;
|
|
1375
|
-
readonly providerContext: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1376
|
-
readonly version: Schema.Literal<1>;
|
|
1377
|
-
readonly provenance: Schema.Struct<{
|
|
1378
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1379
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1380
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1381
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1382
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1383
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1384
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1385
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1386
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1387
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1388
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1389
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1390
|
-
};
|
|
1391
|
-
readonly provider: Schema.String;
|
|
1392
|
-
readonly modelID: Schema.String;
|
|
1393
|
-
readonly route: Schema.String;
|
|
1394
|
-
readonly protocol: Schema.String;
|
|
1395
|
-
readonly endpoint: Schema.String;
|
|
1396
|
-
}>;
|
|
1397
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1398
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1399
|
-
readonly version: Schema.Literal<1>;
|
|
1400
|
-
readonly provenance: Schema.Struct<{
|
|
1401
|
-
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
1402
|
-
opencode: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1403
|
-
anthropic: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1404
|
-
openai: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1405
|
-
google: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1406
|
-
googleVertex: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1407
|
-
githubCopilot: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1408
|
-
amazonBedrock: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1409
|
-
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1410
|
-
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1411
|
-
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1412
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1413
|
-
};
|
|
1414
|
-
readonly provider: Schema.String;
|
|
1415
|
-
readonly modelID: Schema.String;
|
|
1416
|
-
readonly route: Schema.String;
|
|
1417
|
-
readonly protocol: Schema.String;
|
|
1418
|
-
readonly endpoint: Schema.String;
|
|
1419
|
-
}>;
|
|
1420
|
-
readonly messages: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1421
|
-
}>>, never, never>;
|
|
1422
1322
|
}>, Schema.Struct<{
|
|
1423
1323
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1424
1324
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -5,7 +5,29 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
5
5
|
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
6
6
|
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
7
7
|
};
|
|
8
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.
|
|
8
|
+
}>>, 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<{
|
|
9
|
+
id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
10
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
11
|
+
};
|
|
12
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
13
|
+
readonly action: Schema.optional<Schema.String>;
|
|
14
|
+
readonly resource: Schema.optional<Schema.String>;
|
|
15
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
16
|
+
readonly data: Schema.Struct<{
|
|
17
|
+
readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
18
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
19
|
+
};
|
|
20
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
21
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
22
|
+
};
|
|
23
|
+
readonly action: Schema.String;
|
|
24
|
+
readonly resource: Schema.String;
|
|
25
|
+
readonly time: Schema.Struct<{
|
|
26
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
27
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
28
|
+
}>;
|
|
29
|
+
}>;
|
|
30
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof PermissionSavedNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.request.list", "GET", "/api/permission/request", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
9
31
|
readonly location: Schema.optional<Schema.Struct<{
|
|
10
32
|
readonly directory: Schema.optional<Schema.String>;
|
|
11
33
|
}>>;
|
|
@@ -55,29 +77,7 @@ export declare const makePermissionGroup: <LocationId extends HttpApiMiddleware.
|
|
|
55
77
|
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
56
78
|
}>;
|
|
57
79
|
}>>;
|
|
58
|
-
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"permission.
|
|
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<{
|
|
80
|
+
}>>, 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,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,22 +32,16 @@ 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.
|
|
35
|
+
}>;
|
|
36
|
+
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.list", "GET", "/api/pty", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
40
37
|
readonly location: Schema.optional<Schema.Struct<{
|
|
41
38
|
readonly directory: Schema.optional<Schema.String>;
|
|
42
39
|
}>>;
|
|
43
|
-
}>>, Schema.toCodecJson<Schema.Struct<{
|
|
44
|
-
readonly command: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
45
|
-
readonly args: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
46
|
-
readonly cwd: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
47
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
48
|
-
readonly env: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
49
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
40
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
50
41
|
readonly location: Schema.Struct<{
|
|
51
42
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
52
43
|
}>;
|
|
53
|
-
readonly data: Schema.Struct<{
|
|
44
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
54
45
|
readonly id: Schema.brand<Schema.String, "PtyID"> & {
|
|
55
46
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
56
47
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -62,7 +53,7 @@ export declare const makePtyGroup: <LocationId extends HttpApiMiddleware.AnyId,
|
|
|
62
53
|
readonly status: Schema.Literals<readonly ["running", "exited"]>;
|
|
63
54
|
readonly pid: Schema.Int;
|
|
64
55
|
readonly exitCode: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
65
|
-
}
|
|
56
|
+
}>>;
|
|
66
57
|
}>>, never, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.get", "GET", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
67
58
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
68
59
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
@@ -89,7 +80,16 @@ 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
|
-
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.
|
|
83
|
+
}>>, Schema.toCodecJson<typeof PtyNotFoundError>, LocationId, HttpApiMiddleware.Requires<LocationId>> | HttpApiEndpoint.HttpApiEndpoint<"pty.remove", "DELETE", "/api/pty/:ptyID", Schema.toCodecStringTree<Schema.Struct<{
|
|
84
|
+
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
85
|
+
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
86
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|
|
87
|
+
};
|
|
88
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
89
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
90
|
+
readonly directory: Schema.optional<Schema.String>;
|
|
91
|
+
}>>;
|
|
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<{
|
|
93
93
|
ptyID: Schema.brand<Schema.String, "PtyID"> & {
|
|
94
94
|
create: () => string & import("effect/Brand").Brand<"PtyID">;
|
|
95
95
|
ascending: (id?: string) => string & import("effect/Brand").Brand<"PtyID">;
|