@opencode/protocol 2.0.26 → 2.0.28
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/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/groups/agent.d.ts +3 -1
- package/dist/groups/agent.js +1 -1
- package/dist/groups/command.d.ts +1 -1
- package/dist/groups/command.js +1 -1
- package/dist/groups/config.d.ts +1 -1
- package/dist/groups/config.js +1 -1
- package/dist/groups/credential.d.ts +1 -1
- package/dist/groups/credential.js +1 -1
- package/dist/groups/debug.d.ts +1 -1
- package/dist/groups/debug.js +1 -1
- package/dist/groups/event.d.ts +19 -14
- package/dist/groups/event.js +1 -1
- package/dist/groups/form.d.ts +1 -1
- package/dist/groups/form.js +1 -1
- package/dist/groups/fs.d.ts +2 -2
- package/dist/groups/fs.js +2 -1
- package/dist/groups/generate.d.ts +1 -1
- package/dist/groups/generate.js +1 -1
- package/dist/groups/integration.d.ts +1 -1
- package/dist/groups/integration.js +1 -1
- package/dist/groups/location.d.ts +1 -1
- package/dist/groups/location.js +1 -1
- package/dist/groups/mcp.d.ts +1 -1
- package/dist/groups/mcp.js +1 -1
- package/dist/groups/message.d.ts +39 -1
- package/dist/groups/message.js +1 -1
- package/dist/groups/migration.d.ts +1 -1
- package/dist/groups/migration.js +1 -1
- package/dist/groups/model.d.ts +13 -1
- package/dist/groups/model.js +1 -1
- package/dist/groups/permission.d.ts +1 -1
- package/dist/groups/permission.js +1 -1
- package/dist/groups/persistent-pty.d.ts +1 -1
- package/dist/groups/persistent-pty.js +1 -1
- package/dist/groups/plugin.d.ts +1 -1
- package/dist/groups/plugin.js +1 -1
- package/dist/groups/project.d.ts +6 -2
- package/dist/groups/project.js +8 -3
- package/dist/groups/provider.d.ts +39 -1
- package/dist/groups/provider.js +1 -1
- package/dist/groups/pty.d.ts +1 -1
- package/dist/groups/pty.js +1 -1
- package/dist/groups/reference.d.ts +1 -1
- package/dist/groups/reference.js +1 -1
- package/dist/groups/rpc.d.ts +1 -1
- package/dist/groups/rpc.js +1 -1
- package/dist/groups/server.d.ts +1 -1
- package/dist/groups/server.js +1 -1
- package/dist/groups/session.d.ts +145 -3
- package/dist/groups/session.js +12 -10
- package/dist/groups/shell.d.ts +1 -1
- package/dist/groups/shell.js +1 -1
- package/dist/groups/skill.d.ts +1 -1
- package/dist/groups/skill.js +1 -1
- package/dist/groups/vcs.d.ts +1 -1
- package/dist/groups/vcs.js +1 -1
- package/dist/groups/websearch.d.ts +1 -1
- package/dist/groups/websearch.js +1 -1
- package/dist/groups/worktree.d.ts +1 -1
- package/dist/groups/worktree.js +1 -1
- package/dist/middleware/authorization.d.ts +1 -1
- package/dist/middleware/authorization.js +1 -1
- package/dist/middleware/schema-error.d.ts +1 -1
- package/dist/middleware/schema-error.js +1 -1
- package/dist/simulation.d.ts +1 -1
- package/dist/simulation.js +1 -1
- package/package.json +3 -3
package/dist/api.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context } from "effect";
|
|
2
|
-
import { HttpApi, HttpApiGroup, HttpApiMiddleware } from "effect/
|
|
2
|
+
import { HttpApi, HttpApiGroup, HttpApiMiddleware } from "effect/http-api";
|
|
3
3
|
import { SchemaErrorMiddleware } from "./middleware/schema-error.js";
|
|
4
4
|
import { GenerateGroup } from "./groups/generate.js";
|
|
5
5
|
import { MessageGroup } from "./groups/message.js";
|
package/dist/api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context } from "effect";
|
|
2
|
-
import { HttpApi, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/
|
|
2
|
+
import { HttpApi, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/http-api";
|
|
3
3
|
import { SchemaErrorMiddleware } from "./middleware/schema-error.js";
|
|
4
4
|
import { GenerateGroup } from "./groups/generate.js";
|
|
5
5
|
import { MessageGroup } from "./groups/message.js";
|
package/dist/client.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LocationNotFoundError, InvalidRequestError, SessionNotFoundError } from "./errors.js";
|
|
2
2
|
import type { Api } from "./api.js";
|
|
3
3
|
import type { Context } from "effect";
|
|
4
|
-
import { HttpApiMiddleware } from "effect/
|
|
4
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
5
5
|
import type { EventGroup } from "./groups/event.js";
|
|
6
6
|
declare const LocationMiddleware_base: HttpApiMiddleware.ServiceClass<LocationMiddleware, "@opencode/client/LocationMiddleware", {
|
|
7
7
|
requires: never;
|
package/dist/client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LocationNotFoundError, InvalidRequestError, SessionNotFoundError } from "./errors.js";
|
|
2
2
|
import { makeDefaultApi } from "./api.js";
|
|
3
|
-
import { HttpApiMiddleware } from "effect/
|
|
3
|
+
import { HttpApiMiddleware } from "effect/http-api";
|
|
4
4
|
class LocationMiddleware extends HttpApiMiddleware.Service()("@opencode/client/LocationMiddleware", { error: [LocationNotFoundError] }) {
|
|
5
5
|
}
|
|
6
6
|
class SessionLocationMiddleware extends HttpApiMiddleware.Service()("@opencode/client/SessionLocationMiddleware", { error: [InvalidRequestError, SessionNotFoundError, LocationNotFoundError] }) {
|
package/dist/groups/agent.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Agent } from "@opencode/schema/agent";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
4
|
import { AgentNotFoundError } from "../errors.js";
|
|
5
5
|
export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpApiEndpoint.HttpApiEndpoint<"agent.list", "GET", "/api/agent", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
|
@@ -73,6 +73,7 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
|
|
|
73
73
|
readonly type: Schema.Literal<"native">;
|
|
74
74
|
}>]>>, never, never>;
|
|
75
75
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
76
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
76
77
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
77
78
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
78
79
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
|
@@ -183,6 +184,7 @@ export declare const AgentGroup: HttpApiGroup.HttpApiGroup<"server.agent", HttpA
|
|
|
183
184
|
readonly type: Schema.Literal<"native">;
|
|
184
185
|
}>]>>, never, never>;
|
|
185
186
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
187
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
186
188
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>;
|
|
187
189
|
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
188
190
|
readonly body: Schema.$Record<Schema.String, Schema.Any>;
|
package/dist/groups/agent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Agent } from "@opencode/schema/agent";
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
5
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
6
|
import { AgentNotFoundError } from "../errors.js";
|
|
7
7
|
export const AgentGroup = HttpApiGroup.make("server.agent")
|
package/dist/groups/command.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
export declare const CommandGroup: HttpApiGroup.HttpApiGroup<"server.command", HttpApiEndpoint.HttpApiEndpoint<"command.list", "GET", "/api/command", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
4
4
|
readonly location: Schema.optional<Schema.Struct<{
|
|
5
5
|
readonly directory: Schema.optional<Schema.String>;
|
package/dist/groups/command.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Command } from "@opencode/schema/command";
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
5
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
6
|
export const CommandGroup = HttpApiGroup.make("server.command")
|
|
7
7
|
.add(HttpApiEndpoint.get("command.list", "/api/command", {
|
package/dist/groups/config.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Config } from "@opencode/schema/config";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
4
|
export declare const ConfigGroup: HttpApiGroup.HttpApiGroup<"server.config", HttpApiEndpoint.HttpApiEndpoint<"config.get", "GET", "/api/config", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
6
6
|
readonly directory: Schema.optional<Schema.String>;
|
package/dist/groups/config.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Config } from "@opencode/schema/config";
|
|
2
2
|
import { ConfigShell } from "@opencode/schema/config/shell";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
6
|
export const ConfigGroup = HttpApiGroup.make("server.config")
|
|
7
7
|
.add(HttpApiEndpoint.get("config.get", "/api/config", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
3
3
|
import { ConflictError } from "../errors.js";
|
|
4
4
|
export declare const CredentialGroup: HttpApiGroup.HttpApiGroup<"server.credential", HttpApiEndpoint.HttpApiEndpoint<"credential.list", "GET", "/api/credential", never, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5
5
|
readonly data: Schema.$Array<Schema.Struct<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Credential } from "@opencode/schema/credential";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import { ConflictError } from "../errors.js";
|
|
5
5
|
export const CredentialGroup = HttpApiGroup.make("server.credential")
|
|
6
6
|
.add(HttpApiEndpoint.get("credential.list", "/api/credential", {
|
package/dist/groups/debug.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
3
3
|
export declare const DebugGroup: HttpApiGroup.HttpApiGroup<"server.debug", HttpApiEndpoint.HttpApiEndpoint<"debug.location", "GET", "/api/debug/location", never, never, never, never, Schema.toCodecJson<Schema.$Array<Schema.Struct<{
|
|
4
4
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
5
5
|
}>>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"debug.location.evict", "DELETE", "/api/debug/location", never, Schema.toCodecStringTree<Schema.Struct<{
|
package/dist/groups/debug.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Location } from "@opencode/schema/location";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
5
5
|
export const DebugGroup = HttpApiGroup.make("server.debug")
|
|
6
6
|
.add(HttpApiEndpoint.get("debug.location", "/api/debug/location", {
|
package/dist/groups/event.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Event } from "@opencode/schema/event";
|
|
2
2
|
import type { Definition } from "@opencode/schema/event";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
5
5
|
export declare const makeEventGroup: <const Definitions extends ReadonlyArray<Definition>>(definitions: Definitions) => HttpApiGroup.HttpApiGroup<"server.event", HttpApiEndpoint.HttpApiEndpoint<"event.subscribe", "GET", "/api/event", never, never, never, never, HttpApiSchema.StreamSse<HttpApiSchema.SseEventFromData<Schema.Union<readonly [...Definitions, Schema.Struct<{
|
|
6
6
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
7
7
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -4760,6 +4760,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
4760
4760
|
readonly created: Schema.Int;
|
|
4761
4761
|
readonly updated: Schema.Int;
|
|
4762
4762
|
readonly active: Schema.Int;
|
|
4763
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4763
4764
|
}>;
|
|
4764
4765
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4765
4766
|
}>;
|
|
@@ -4792,6 +4793,7 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
4792
4793
|
readonly created: Schema.Int;
|
|
4793
4794
|
readonly updated: Schema.Int;
|
|
4794
4795
|
readonly active: Schema.Int;
|
|
4796
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
4795
4797
|
}>;
|
|
4796
4798
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
4797
4799
|
}>;
|
|
@@ -6419,6 +6421,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6419
6421
|
readonly type: "string";
|
|
6420
6422
|
readonly key: string;
|
|
6421
6423
|
readonly required?: boolean | undefined;
|
|
6424
|
+
readonly options?: readonly {
|
|
6425
|
+
readonly value: string;
|
|
6426
|
+
readonly label: string;
|
|
6427
|
+
readonly description?: string | undefined;
|
|
6428
|
+
}[] | undefined;
|
|
6422
6429
|
readonly description?: string | undefined;
|
|
6423
6430
|
readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
|
|
6424
6431
|
readonly minLength?: number | undefined;
|
|
@@ -6426,11 +6433,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6426
6433
|
readonly pattern?: string | undefined;
|
|
6427
6434
|
readonly placeholder?: string | undefined;
|
|
6428
6435
|
readonly default?: string | undefined;
|
|
6429
|
-
readonly options?: readonly {
|
|
6430
|
-
readonly value: string;
|
|
6431
|
-
readonly label: string;
|
|
6432
|
-
readonly description?: string | undefined;
|
|
6433
|
-
}[] | undefined;
|
|
6434
6436
|
readonly custom?: boolean | undefined;
|
|
6435
6437
|
readonly title?: string | undefined;
|
|
6436
6438
|
readonly hidden?: boolean | undefined;
|
|
@@ -6484,12 +6486,12 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6484
6486
|
}[] | undefined;
|
|
6485
6487
|
} | {
|
|
6486
6488
|
readonly type: "multiselect";
|
|
6487
|
-
readonly key: string;
|
|
6488
6489
|
readonly options: readonly {
|
|
6489
6490
|
readonly value: string;
|
|
6490
6491
|
readonly label: string;
|
|
6491
6492
|
readonly description?: string | undefined;
|
|
6492
6493
|
}[];
|
|
6494
|
+
readonly key: string;
|
|
6493
6495
|
readonly required?: boolean | undefined;
|
|
6494
6496
|
readonly description?: string | undefined;
|
|
6495
6497
|
readonly default?: readonly string[] | undefined;
|
|
@@ -6513,6 +6515,11 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6513
6515
|
readonly type: "string";
|
|
6514
6516
|
readonly key: string;
|
|
6515
6517
|
readonly required?: boolean | undefined;
|
|
6518
|
+
readonly options?: readonly {
|
|
6519
|
+
readonly value: string;
|
|
6520
|
+
readonly label: string;
|
|
6521
|
+
readonly description?: string | undefined;
|
|
6522
|
+
}[] | undefined;
|
|
6516
6523
|
readonly description?: string | undefined;
|
|
6517
6524
|
readonly format?: "email" | "uri" | "date" | "date-time" | undefined;
|
|
6518
6525
|
readonly minLength?: number | undefined;
|
|
@@ -6520,11 +6527,6 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6520
6527
|
readonly pattern?: string | undefined;
|
|
6521
6528
|
readonly placeholder?: string | undefined;
|
|
6522
6529
|
readonly default?: string | undefined;
|
|
6523
|
-
readonly options?: readonly {
|
|
6524
|
-
readonly value: string;
|
|
6525
|
-
readonly label: string;
|
|
6526
|
-
readonly description?: string | undefined;
|
|
6527
|
-
}[] | undefined;
|
|
6528
6530
|
readonly custom?: boolean | undefined;
|
|
6529
6531
|
readonly title?: string | undefined;
|
|
6530
6532
|
readonly hidden?: boolean | undefined;
|
|
@@ -6578,12 +6580,12 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6578
6580
|
}[] | undefined;
|
|
6579
6581
|
} | {
|
|
6580
6582
|
readonly type: "multiselect";
|
|
6581
|
-
readonly key: string;
|
|
6582
6583
|
readonly options: readonly {
|
|
6583
6584
|
readonly value: string;
|
|
6584
6585
|
readonly label: string;
|
|
6585
6586
|
readonly description?: string | undefined;
|
|
6586
6587
|
}[];
|
|
6588
|
+
readonly key: string;
|
|
6587
6589
|
readonly required?: boolean | undefined;
|
|
6588
6590
|
readonly description?: string | undefined;
|
|
6589
6591
|
readonly default?: readonly string[] | undefined;
|
|
@@ -6778,8 +6780,9 @@ export declare const EventGroup: HttpApiGroup.HttpApiGroup<"server.event", HttpA
|
|
|
6778
6780
|
readonly canonical: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
6779
6781
|
readonly time: {
|
|
6780
6782
|
readonly created: number;
|
|
6781
|
-
readonly updated: number;
|
|
6782
6783
|
readonly active: number;
|
|
6784
|
+
readonly updated: number;
|
|
6785
|
+
readonly archived?: number | undefined;
|
|
6783
6786
|
};
|
|
6784
6787
|
readonly sandboxes: readonly string[];
|
|
6785
6788
|
readonly name?: string | undefined;
|
|
@@ -13394,6 +13397,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13394
13397
|
readonly created: Schema.Int;
|
|
13395
13398
|
readonly updated: Schema.Int;
|
|
13396
13399
|
readonly active: Schema.Int;
|
|
13400
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13397
13401
|
}>;
|
|
13398
13402
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
13399
13403
|
}>;
|
|
@@ -13426,6 +13430,7 @@ export declare const OpenCodeEvent: Schema.Union<readonly [Schema.Struct<{
|
|
|
13426
13430
|
readonly created: Schema.Int;
|
|
13427
13431
|
readonly updated: Schema.Int;
|
|
13428
13432
|
readonly active: Schema.Int;
|
|
13433
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
13429
13434
|
}>;
|
|
13430
13435
|
readonly sandboxes: Schema.$Array<Schema.String>;
|
|
13431
13436
|
}>;
|
package/dist/groups/event.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Event } from "@opencode/schema/event";
|
|
|
2
2
|
import { EventManifest } from "@opencode/schema/event-manifest";
|
|
3
3
|
import { Location } from "@opencode/schema/location";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
5
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
6
|
const fields = {
|
|
7
7
|
id: Event.ID,
|
|
8
8
|
metadata: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
package/dist/groups/form.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware } from "effect/http-api";
|
|
3
3
|
export declare const makeFormGroup: <LocationId extends HttpApiMiddleware.AnyId, LocationService>(locationMiddleware: Context.Key<LocationId, LocationService>) => HttpApiGroup.HttpApiGroup<"server.form", HttpApiEndpoint.HttpApiEndpoint<"form.list", "GET", "/api/form", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
4
4
|
readonly location: Schema.optional<Schema.Struct<{
|
|
5
5
|
readonly directory: Schema.optional<Schema.String>;
|
package/dist/groups/form.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Form } from "@opencode/schema/form";
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Context, Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, OpenApi } from "effect/http-api";
|
|
5
5
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
6
6
|
export const makeFormGroup = (locationMiddleware) => HttpApiGroup.make("server.form")
|
|
7
7
|
.add(HttpApiEndpoint.get("form.list", "/api/form", {
|
package/dist/groups/fs.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import { FileNotFoundError } from "../errors.js";
|
|
4
4
|
export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", HttpApiEndpoint.HttpApiEndpoint<"fs.read", "GET", "/api/fs/read/*", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
5
5
|
readonly location: Schema.optional<Schema.Struct<{
|
|
@@ -18,7 +18,7 @@ export declare const FileSystemGroup: HttpApiGroup.HttpApiGroup<"server.fs", Htt
|
|
|
18
18
|
readonly path: Schema.brand<Schema.String, "RelativePath">;
|
|
19
19
|
readonly type: Schema.Literals<readonly ["file", "directory"]>;
|
|
20
20
|
}>>;
|
|
21
|
-
}>>,
|
|
21
|
+
}>>, Schema.toCodecJson<typeof FileNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"fs.find", "GET", "/api/fs/find", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
22
22
|
readonly query: Schema.String;
|
|
23
23
|
readonly type: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["file", "directory"]>>>, Schema.optionalKey<Schema.Literals<readonly ["file", "directory"]>>, never, never>;
|
|
24
24
|
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
package/dist/groups/fs.js
CHANGED
|
@@ -2,7 +2,7 @@ import { FileSystem } from "@opencode/schema/filesystem";
|
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { PositiveInt } from "@opencode/schema/schema";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
5
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
6
|
import { FileNotFoundError } from "../errors.js";
|
|
7
7
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
8
8
|
const ListQuery = Schema.Struct({
|
|
@@ -38,6 +38,7 @@ export const FileSystemGroup = HttpApiGroup.make("server.fs")
|
|
|
38
38
|
.add(HttpApiEndpoint.get("fs.list", "/api/fs/list", {
|
|
39
39
|
query: ListQuery,
|
|
40
40
|
success: Location.response(Schema.Array(FileSystem.Entry)),
|
|
41
|
+
error: FileNotFoundError,
|
|
41
42
|
})
|
|
42
43
|
.annotateMerge(locationQueryOpenApi)
|
|
43
44
|
.annotateMerge(OpenApi.annotations({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import { LocationNotFoundError, InvalidRequestError, ServiceUnavailableError } from "../errors.js";
|
|
4
4
|
export declare const GenerateGroup: HttpApiGroup.HttpApiGroup<"server.generate", HttpApiEndpoint.HttpApiEndpoint<"generate.text", "POST", "/api/experimental/generate", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
5
5
|
readonly prompt: Schema.String;
|
package/dist/groups/generate.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from "@opencode/schema/model";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
4
4
|
import { LocationNotFoundError, InvalidRequestError, ServiceUnavailableError } from "../errors.js";
|
|
5
5
|
export const GenerateGroup = HttpApiGroup.make("server.generate")
|
|
6
6
|
.add(HttpApiEndpoint.post("generate.text", "/api/experimental/generate", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Integration } from "@opencode/schema/integration";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
4
|
import { IntegrationAttemptNotFoundError, IntegrationMethodNotFoundError, IntegrationNotFoundError, InvalidRequestError } from "../errors.js";
|
|
5
5
|
export declare const IntegrationGroup: HttpApiGroup.HttpApiGroup<"server.integration", HttpApiEndpoint.HttpApiEndpoint<"integration.list", "GET", "/api/integration", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
|
@@ -2,7 +2,7 @@ import { Integration } from "@opencode/schema/integration";
|
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Form } from "@opencode/schema/form";
|
|
4
4
|
import { Schema } from "effect";
|
|
5
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
5
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
6
6
|
import { IntegrationAttemptNotFoundError, IntegrationMethodNotFoundError, IntegrationNotFoundError, InvalidRequestError, } from "../errors.js";
|
|
7
7
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
8
8
|
export const IntegrationGroup = HttpApiGroup.make("server.integration")
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Context, Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/http-api";
|
|
3
3
|
import { ServiceUnavailableError } from "../errors.js";
|
|
4
4
|
export declare const LocationQuery: Schema.Struct<{
|
|
5
5
|
readonly location: Schema.optional<Schema.Struct<{
|
package/dist/groups/location.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Location } from "@opencode/schema/location";
|
|
2
2
|
import { Context, Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
4
4
|
import { ServiceUnavailableError } from "../errors.js";
|
|
5
5
|
export const LocationQuery = Schema.Struct({
|
|
6
6
|
location: Schema.optional(Schema.Struct({
|
package/dist/groups/mcp.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Mcp } from "@opencode/schema/mcp";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
4
4
|
import { McpServerNotFoundError } from "../errors.js";
|
|
5
5
|
export declare const McpGroup: HttpApiGroup.HttpApiGroup<"server.mcp", HttpApiEndpoint.HttpApiEndpoint<"mcp.list", "GET", "/api/mcp", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
package/dist/groups/mcp.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Mcp } from "@opencode/schema/mcp";
|
|
2
2
|
import { Location } from "@opencode/schema/location";
|
|
3
3
|
import { Schema } from "effect";
|
|
4
|
-
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/
|
|
4
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema, OpenApi } from "effect/http-api";
|
|
5
5
|
import { McpServerNotFoundError } from "../errors.js";
|
|
6
6
|
import { LocationQuery, locationQueryOpenApi } from "./location.js";
|
|
7
7
|
export const McpGroup = HttpApiGroup.make("server.mcp")
|
package/dist/groups/message.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
import { InvalidCursorError, SessionNotFoundError, UnknownError } from "../errors.js";
|
|
4
4
|
export declare const SessionMessagesQuery: Schema.Struct<{
|
|
5
5
|
readonly limit: Schema.optional<Schema.NumberFromString>;
|
|
@@ -717,6 +717,25 @@ export declare const PublicSessionMessage: Schema.Union<readonly [Schema.Struct<
|
|
|
717
717
|
}>]>, Schema.Struct<{
|
|
718
718
|
readonly type: Schema.tag<"idle">;
|
|
719
719
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
720
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
721
|
+
readonly type: Schema.String;
|
|
722
|
+
readonly message: Schema.String;
|
|
723
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
724
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
725
|
+
readonly body: Schema.String;
|
|
726
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
727
|
+
readonly body: Schema.String;
|
|
728
|
+
}>>, never, never>;
|
|
729
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
730
|
+
readonly type: Schema.String;
|
|
731
|
+
readonly message: Schema.String;
|
|
732
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
733
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
734
|
+
readonly body: Schema.String;
|
|
735
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
736
|
+
readonly body: Schema.String;
|
|
737
|
+
}>>, never, never>;
|
|
738
|
+
}>>, never, never>;
|
|
720
739
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
721
740
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
722
741
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1447,6 +1466,25 @@ export declare const MessageGroup: HttpApiGroup.HttpApiGroup<"server.message", H
|
|
|
1447
1466
|
}>]>, Schema.Struct<{
|
|
1448
1467
|
readonly type: Schema.tag<"idle">;
|
|
1449
1468
|
readonly outcome: Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>;
|
|
1469
|
+
readonly error: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1470
|
+
readonly type: Schema.String;
|
|
1471
|
+
readonly message: Schema.String;
|
|
1472
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1473
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1474
|
+
readonly body: Schema.String;
|
|
1475
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1476
|
+
readonly body: Schema.String;
|
|
1477
|
+
}>>, never, never>;
|
|
1478
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1479
|
+
readonly type: Schema.String;
|
|
1480
|
+
readonly message: Schema.String;
|
|
1481
|
+
readonly status: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
1482
|
+
readonly response: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1483
|
+
readonly body: Schema.String;
|
|
1484
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1485
|
+
readonly body: Schema.String;
|
|
1486
|
+
}>>, never, never>;
|
|
1487
|
+
}>>, never, never>;
|
|
1450
1488
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1451
1489
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1452
1490
|
fromEvent: (eventID: import("@opencode/schema/event").ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
package/dist/groups/message.js
CHANGED
|
@@ -2,7 +2,7 @@ import { Session } from "@opencode/schema/session";
|
|
|
2
2
|
import { SessionMessage } from "@opencode/schema/session-message";
|
|
3
3
|
import { Location } from "@opencode/schema/location";
|
|
4
4
|
import { Schema, Struct } from "effect";
|
|
5
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
5
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
6
6
|
import { InvalidCursorError, SessionNotFoundError, UnknownError } from "../errors.js";
|
|
7
7
|
export const SessionMessagesQuery = Schema.Struct({
|
|
8
8
|
limit: Schema.optional(Schema.NumberFromString.check(Schema.isInt(), Schema.isGreaterThanOrEqualTo(1), Schema.isLessThanOrEqualTo(200))).annotate({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
3
3
|
export declare const V1MigrationStatus: Schema.Union<readonly [Schema.Struct<{
|
|
4
4
|
readonly status: Schema.Literals<readonly ["required", "completed"]>;
|
|
5
5
|
}>, Schema.Struct<{
|
package/dist/groups/migration.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Schema } from "effect";
|
|
2
|
-
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/
|
|
2
|
+
import { HttpApiEndpoint, HttpApiGroup, OpenApi } from "effect/http-api";
|
|
3
3
|
const V1MigrationProgress = Schema.Struct({
|
|
4
4
|
label: Schema.String,
|
|
5
5
|
numerator: Schema.optional(Schema.Int.check(Schema.isGreaterThanOrEqualTo(0))),
|
package/dist/groups/model.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Model } from "@opencode/schema/model";
|
|
2
2
|
import { Schema } from "effect";
|
|
3
|
-
import { HttpApiEndpoint, HttpApiGroup } from "effect/
|
|
3
|
+
import { HttpApiEndpoint, HttpApiGroup } from "effect/http-api";
|
|
4
4
|
import { ServiceUnavailableError } from "../errors.js";
|
|
5
5
|
export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpApiEndpoint.HttpApiEndpoint<"model.list", "GET", "/api/model", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
6
6
|
readonly location: Schema.optional<Schema.Struct<{
|
|
@@ -33,6 +33,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
33
33
|
}>, Schema.Struct<{
|
|
34
34
|
readonly type: Schema.Literal<"native">;
|
|
35
35
|
}>]>>, never, never>;
|
|
36
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
36
37
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
37
38
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
38
39
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -43,6 +44,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
43
44
|
}>, Schema.Struct<{
|
|
44
45
|
readonly type: Schema.Literal<"native">;
|
|
45
46
|
}>]>>, never, never>;
|
|
47
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
46
48
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
47
49
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
48
50
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -91,6 +93,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
91
93
|
}>, Schema.Struct<{
|
|
92
94
|
readonly type: Schema.Literal<"native">;
|
|
93
95
|
}>]>>, never, never>;
|
|
96
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
94
97
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
95
98
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
96
99
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -101,6 +104,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
101
104
|
}>, Schema.Struct<{
|
|
102
105
|
readonly type: Schema.Literal<"native">;
|
|
103
106
|
}>]>>, never, never>;
|
|
107
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
104
108
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
105
109
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
106
110
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -153,6 +157,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
153
157
|
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
154
158
|
readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
155
159
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
160
|
+
readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
156
161
|
readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
157
162
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
158
163
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
@@ -162,6 +167,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
162
167
|
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
163
168
|
readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
164
169
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
170
|
+
readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
165
171
|
readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
166
172
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
167
173
|
}>>, never, never>;
|
|
@@ -221,6 +227,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
221
227
|
}>, Schema.Struct<{
|
|
222
228
|
readonly type: Schema.Literal<"native">;
|
|
223
229
|
}>]>>, never, never>;
|
|
230
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
224
231
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
225
232
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
226
233
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -231,6 +238,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
231
238
|
}>, Schema.Struct<{
|
|
232
239
|
readonly type: Schema.Literal<"native">;
|
|
233
240
|
}>]>>, never, never>;
|
|
241
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
234
242
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
235
243
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
236
244
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -279,6 +287,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
279
287
|
}>, Schema.Struct<{
|
|
280
288
|
readonly type: Schema.Literal<"native">;
|
|
281
289
|
}>]>>, never, never>;
|
|
290
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
282
291
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
283
292
|
readonly compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Struct<{
|
|
284
293
|
readonly type: Schema.Literal<"summary">;
|
|
@@ -289,6 +298,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
289
298
|
}>, Schema.Struct<{
|
|
290
299
|
readonly type: Schema.Literal<"native">;
|
|
291
300
|
}>]>>, never, never>;
|
|
301
|
+
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
292
302
|
}>, readonly [Schema.$Record<Schema.String, Schema.Any>]>>, never, never>;
|
|
293
303
|
readonly headers: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.String>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.String>>, never, never>;
|
|
294
304
|
readonly body: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Any>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Any>>, never, never>;
|
|
@@ -341,6 +351,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
341
351
|
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
342
352
|
readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
343
353
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
354
|
+
readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
344
355
|
readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
345
356
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
346
357
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
@@ -350,6 +361,7 @@ export declare const ModelGroup: HttpApiGroup.HttpApiGroup<"server.model", HttpA
|
|
|
350
361
|
readonly requireFinishReason: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
351
362
|
readonly requireAssistantAfterTool: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
352
363
|
readonly supportsPromptCacheKey: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
364
|
+
readonly cacheFormat: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["anthropic", "alibaba"]>>>, Schema.optionalKey<Schema.Literals<readonly ["anthropic", "alibaba"]>>, never, never>;
|
|
353
365
|
readonly supportsThinkingBlockBinding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
354
366
|
readonly supportsEffortUpdates: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
355
367
|
}>>, never, never>;
|