@opencode/protocol 2.0.32 → 2.1.1
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/agent.d.ts +9 -9
- package/dist/groups/credential.d.ts +35 -38
- package/dist/groups/event.d.ts +2414 -2386
- 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 +82 -182
- package/dist/groups/message.js +15 -12
- package/dist/groups/model.d.ts +112 -108
- package/dist/groups/permission.d.ts +34 -12
- package/dist/groups/permission.js +14 -1
- package/dist/groups/persistent-pty.d.ts +122 -122
- package/dist/groups/plugin.d.ts +7 -7
- package/dist/groups/provider.d.ts +24 -20
- package/dist/groups/pty.d.ts +41 -41
- package/dist/groups/reference.d.ts +5 -5
- package/dist/groups/server.d.ts +6 -6
- package/dist/groups/session.d.ts +5772 -5819
- package/dist/groups/session.js +27 -70
- 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
|
@@ -9,17 +9,17 @@ export declare const ReferenceGroup: HttpApiGroup.HttpApiGroup<"server.reference
|
|
|
9
9
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10
10
|
}>;
|
|
11
11
|
readonly data: Schema.$Array<Schema.Struct<{
|
|
12
|
+
readonly name: Schema.String;
|
|
13
|
+
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
14
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
15
|
+
readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
12
16
|
readonly source: Schema.Union<readonly [Schema.Struct<{
|
|
13
17
|
readonly type: Schema.Literal<"local">;
|
|
14
18
|
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
15
19
|
}>, Schema.Struct<{
|
|
16
20
|
readonly type: Schema.Literal<"git">;
|
|
17
|
-
readonly branch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
18
21
|
readonly repository: Schema.String;
|
|
22
|
+
readonly branch: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
19
23
|
}>]>;
|
|
20
|
-
readonly path: Schema.brand<Schema.String, "AbsolutePath">;
|
|
21
|
-
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
22
|
-
readonly name: Schema.String;
|
|
23
|
-
readonly hidden: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
24
24
|
}>>;
|
|
25
25
|
}>>, never, never, never>, false>;
|
package/dist/groups/server.d.ts
CHANGED
|
@@ -24,7 +24,11 @@ export declare const PairingSession: Schema.Struct<{
|
|
|
24
24
|
export type PairingSession = typeof PairingSession.Type;
|
|
25
25
|
export declare const PAIRING_CONNECT_PATH = "/auth/connect/:code";
|
|
26
26
|
export declare function isPairingConnectURL(url: URL): boolean;
|
|
27
|
-
export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.
|
|
27
|
+
export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", HttpApiEndpoint.HttpApiEndpoint<"server.connect", "GET", "/auth/connect/:code", Schema.toCodecStringTree<Schema.Struct<{
|
|
28
|
+
code: Schema.String;
|
|
29
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
30
|
+
readonly token: Schema.String;
|
|
31
|
+
}>>, Schema.toCodecJson<typeof UnauthorizedError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"server.info", "GET", "/api/info", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
28
32
|
readonly version: Schema.String;
|
|
29
33
|
readonly pid: Schema.Int;
|
|
30
34
|
readonly urls: Schema.$Array<Schema.String>;
|
|
@@ -37,8 +41,4 @@ export declare const ServerGroup: HttpApiGroup.HttpApiGroup<"server.server", Htt
|
|
|
37
41
|
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"server.pair", "POST", "/api/pair", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
38
42
|
readonly code: Schema.String;
|
|
39
43
|
readonly expires_in: Schema.Int;
|
|
40
|
-
}>>, never, never, never
|
|
41
|
-
code: Schema.String;
|
|
42
|
-
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
43
|
-
readonly token: Schema.String;
|
|
44
|
-
}>>, Schema.toCodecJson<typeof UnauthorizedError>, never, never>, false>;
|
|
44
|
+
}>>, never, never, never>, false>;
|