@opencode/schema 2.2.5 → 2.2.7
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/agent.d.ts +14 -0
- package/dist/config/experimental.d.ts +13 -9
- package/dist/config/experimental.js +9 -14
- package/dist/config/flag.d.ts +18 -0
- package/dist/config/flag.js +17 -0
- package/dist/config/policy.d.ts +4 -3
- package/dist/config/policy.js +2 -0
- package/dist/config/provider.d.ts +112 -0
- package/dist/config/warming.d.ts +1 -1
- package/dist/config/warming.js +4 -2
- package/dist/config.d.ts +4 -4
- package/dist/credential.d.ts +24 -4
- package/dist/credential.js +2 -1
- package/dist/event-manifest.d.ts +24 -4
- package/dist/generate.d.ts +21 -0
- package/dist/generate.js +3 -0
- package/dist/integration.d.ts +2 -0
- package/dist/integration.js +2 -0
- package/dist/job.d.ts +113 -0
- package/dist/job.js +41 -0
- package/dist/mcp.d.ts +2 -0
- package/dist/mcp.js +6 -0
- package/dist/model.d.ts +70 -0
- package/dist/provider.d.ts +97 -0
- package/dist/provider.js +12 -0
- package/dist/session-event.d.ts +8 -8
- package/dist/session-event.js +1 -1
- package/dist/session-revert.d.ts +194 -302
- package/dist/tui-event.js +1 -1
- package/package.json +6 -6
package/dist/agent.d.ts
CHANGED
|
@@ -74,8 +74,22 @@ export declare const Info: Schema.Struct<{
|
|
|
74
74
|
}>]>>, never, never>;
|
|
75
75
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
76
76
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
77
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
78
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
79
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
80
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
81
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
82
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
83
|
+
}>]>>, never, never>;
|
|
77
84
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
78
85
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
86
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
87
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
88
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
89
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
90
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
91
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
92
|
+
}>]>>, never, never>;
|
|
79
93
|
}>>, never, never>;
|
|
80
94
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
81
95
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -2,9 +2,8 @@ export * as ConfigExperimental from "./experimental.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
4
4
|
readonly portable_shell_scanner: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5
|
-
readonly
|
|
6
|
-
readonly
|
|
7
|
-
readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
5
|
+
readonly all_flags: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
6
|
+
readonly part_rows: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
8
7
|
readonly image_generate: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
9
8
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.Struct<{
|
|
10
9
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID">;
|
|
@@ -42,27 +41,32 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
42
41
|
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
43
42
|
}>]>, never, never>>, never, never>;
|
|
44
43
|
}>]>>, never, never>;
|
|
45
|
-
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
46
|
-
readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
47
44
|
readonly subagent_depth: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
48
45
|
readonly location_idle_timeout: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.DurationFromString, Schema.Literal<false>]>>, never, never>;
|
|
49
46
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
50
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
47
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
51
48
|
readonly resource: Schema.String;
|
|
52
49
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
53
50
|
}>>, Schema.Struct<{
|
|
54
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
51
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
55
52
|
readonly resource: Schema.String;
|
|
56
53
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
57
54
|
}>, never, never>>>>, Schema.optionalKey<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
58
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
55
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
59
56
|
readonly resource: Schema.String;
|
|
60
57
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
61
58
|
}>>, Schema.Struct<{
|
|
62
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
59
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
63
60
|
readonly resource: Schema.String;
|
|
64
61
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
65
62
|
}>, never, never>>>, never, never>;
|
|
63
|
+
readonly artifacts: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
64
|
+
readonly background_compaction: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
65
|
+
readonly codemode_vm: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
66
|
+
readonly console_watches: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
67
|
+
readonly media_blob: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
68
|
+
readonly schedules: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
69
|
+
readonly todo: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
66
70
|
}>, {}>;
|
|
67
71
|
export declare class Info extends Info_base {
|
|
68
72
|
}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
export * as ConfigExperimental from "./experimental.js";
|
|
2
|
-
import { Schema } from "effect";
|
|
2
|
+
import { Record, Schema } from "effect";
|
|
3
3
|
import { NonNegativeInt, optional } from "../schema.js";
|
|
4
|
+
import { ConfigFlag } from "./flag.js";
|
|
4
5
|
import { ConfigModel } from "./model.js";
|
|
5
6
|
import { ConfigPolicy } from "./policy.js";
|
|
6
7
|
export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
7
8
|
portable_shell_scanner: Schema.Boolean.pipe(optional).annotate({
|
|
8
9
|
description: "Deprecated: the built-in shell permission scanner is now always enabled.",
|
|
9
10
|
}),
|
|
10
|
-
|
|
11
|
-
description: "
|
|
11
|
+
all_flags: Schema.Boolean.pipe(optional).annotate({
|
|
12
|
+
description: "Turn every feature flag on regardless of the build channel, like OPENCODE_FLAGS=all; explicit per-flag settings still win, and false is not a kill switch.",
|
|
12
13
|
}),
|
|
13
|
-
|
|
14
|
-
description:
|
|
15
|
-
}),
|
|
16
|
-
|
|
17
|
-
description: "
|
|
14
|
+
...Record.map(ConfigFlag.registry, (description) => Schema.Boolean.pipe(optional).annotate({
|
|
15
|
+
description: `${description} Defaults to on in local and dev builds and off in releases.`,
|
|
16
|
+
})),
|
|
17
|
+
part_rows: Schema.Boolean.pipe(optional).annotate({
|
|
18
|
+
description: "Write each assistant part as its own session_part row instead of rewriting the whole message on every event. Defaults to false.",
|
|
18
19
|
}),
|
|
19
20
|
image_generate: Schema.Union([
|
|
20
21
|
Schema.Boolean,
|
|
@@ -28,12 +29,6 @@ export class Info extends Schema.Class("ConfigExperimental.Info")({
|
|
|
28
29
|
.annotate({
|
|
29
30
|
description: "Settings for the experimental_image_generate tool, which is offered while a connected provider has an image model.",
|
|
30
31
|
}),
|
|
31
|
-
schedules: Schema.Boolean.pipe(optional).annotate({
|
|
32
|
-
description: "Enable experimental scheduled tasks that wake a session with a prompt. Defaults to false.",
|
|
33
|
-
}),
|
|
34
|
-
artifacts: Schema.Boolean.pipe(optional).annotate({
|
|
35
|
-
description: "Enable experimental artifacts backed by pluggable providers. Defaults to false.",
|
|
36
|
-
}),
|
|
37
32
|
subagent_depth: NonNegativeInt.pipe(optional).annotate({
|
|
38
33
|
description: "Maximum subagent nesting depth. Defaults to 1.",
|
|
39
34
|
}),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * as ConfigFlag from "./flag.js";
|
|
2
|
+
/** The `OPENCODE_FLAGS` entry that turns every flag on, as in `all,-media_blob`. It is not a flag key. */
|
|
3
|
+
export declare const wildcard = "all";
|
|
4
|
+
/**
|
|
5
|
+
* Every feature flag, by key, with what it turns on. A flag is on in local and dev builds and off in released ones;
|
|
6
|
+
* `experimental.<key>` in config and `OPENCODE_FLAGS` override that, and `OPENCODE_FLAGS=all` or
|
|
7
|
+
* `experimental.all_flags: true` turn every flag on. Read one with Core's `Flag.enabled("<key>")`.
|
|
8
|
+
*/
|
|
9
|
+
export declare const registry: {
|
|
10
|
+
readonly todo: "Enable the experimental todowrite tool.";
|
|
11
|
+
readonly background_compaction: "Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens.";
|
|
12
|
+
readonly media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.";
|
|
13
|
+
readonly schedules: "Enable experimental scheduled tasks that wake a session with a prompt.";
|
|
14
|
+
readonly artifacts: "Enable experimental artifacts backed by pluggable providers.";
|
|
15
|
+
readonly codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.";
|
|
16
|
+
readonly console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.";
|
|
17
|
+
};
|
|
18
|
+
export type Key = keyof typeof registry;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * as ConfigFlag from "./flag.js";
|
|
2
|
+
/** The `OPENCODE_FLAGS` entry that turns every flag on, as in `all,-media_blob`. It is not a flag key. */
|
|
3
|
+
export const wildcard = "all";
|
|
4
|
+
/**
|
|
5
|
+
* Every feature flag, by key, with what it turns on. A flag is on in local and dev builds and off in released ones;
|
|
6
|
+
* `experimental.<key>` in config and `OPENCODE_FLAGS` override that, and `OPENCODE_FLAGS=all` or
|
|
7
|
+
* `experimental.all_flags: true` turn every flag on. Read one with Core's `Flag.enabled("<key>")`.
|
|
8
|
+
*/
|
|
9
|
+
export const registry = {
|
|
10
|
+
todo: "Enable the experimental todowrite tool.",
|
|
11
|
+
background_compaction: "Enable experimental background compaction: summarize the conversation in the background as it nears the compaction threshold, so automatic compaction does not wait for the summary. Background summaries that are never used still cost tokens.",
|
|
12
|
+
media_blob: "Store new session media once in a deduplicated blob table instead of inline in every message row.",
|
|
13
|
+
schedules: "Enable experimental scheduled tasks that wake a session with a prompt.",
|
|
14
|
+
artifacts: "Enable experimental artifacts backed by pluggable providers.",
|
|
15
|
+
codemode_vm: "Run the Code Mode execute tool on the experimental bytecode VM instead of the legacy interpreter.",
|
|
16
|
+
console_watches: "Watch Slack threads, GitHub pull requests, issues, commits and Actions runs, and the workspace's MCP servers' events through OpenCode Console, and wake sessions when they change.",
|
|
17
|
+
};
|
package/dist/config/policy.d.ts
CHANGED
|
@@ -10,15 +10,16 @@ export type Effect = typeof Effect.Type;
|
|
|
10
10
|
* web search, MCP servers, or config an integration supplies come from no account (env keys, local config, the
|
|
11
11
|
* signed-out free tier).
|
|
12
12
|
* - `mcp.use`, `skill.use`, `plugin.use`: resource is an MCP server name, skill ID, or plugin target.
|
|
13
|
+
* - `websearch.use`: resource is a web search provider ID, such as `opencode` or `exa`.
|
|
13
14
|
*/
|
|
14
|
-
export declare const Action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
15
|
+
export declare const Action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
15
16
|
export type Action = typeof Action.Type;
|
|
16
17
|
export declare const Info: Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
17
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
18
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
18
19
|
readonly resource: Schema.String;
|
|
19
20
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
20
21
|
}>>, Schema.Struct<{
|
|
21
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
22
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
22
23
|
readonly resource: Schema.String;
|
|
23
24
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
24
25
|
}>, never, never>;
|
package/dist/config/policy.js
CHANGED
|
@@ -9,6 +9,7 @@ export const Effect = Schema.Literals(["allow", "deny"]);
|
|
|
9
9
|
* web search, MCP servers, or config an integration supplies come from no account (env keys, local config, the
|
|
10
10
|
* signed-out free tier).
|
|
11
11
|
* - `mcp.use`, `skill.use`, `plugin.use`: resource is an MCP server name, skill ID, or plugin target.
|
|
12
|
+
* - `websearch.use`: resource is a web search provider ID, such as `opencode` or `exa`.
|
|
12
13
|
*/
|
|
13
14
|
export const Action = Schema.Literals([
|
|
14
15
|
"provider.use",
|
|
@@ -18,6 +19,7 @@ export const Action = Schema.Literals([
|
|
|
18
19
|
"mcp.use",
|
|
19
20
|
"skill.use",
|
|
20
21
|
"plugin.use",
|
|
22
|
+
"websearch.use",
|
|
21
23
|
]);
|
|
22
24
|
const Statement = Schema.Struct({
|
|
23
25
|
action: Action,
|
|
@@ -16,8 +16,22 @@ export declare const Settings: Schema.StructWithRest<Schema.Struct<{
|
|
|
16
16
|
}>]>>, never, never>;
|
|
17
17
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
18
18
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
19
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
20
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
21
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
22
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
23
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
24
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
25
|
+
}>]>>, never, never>;
|
|
19
26
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
20
27
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
28
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
29
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
30
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
31
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
32
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
33
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
34
|
+
}>]>>, never, never>;
|
|
21
35
|
}>>, never, never>;
|
|
22
36
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
23
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>;
|
|
@@ -35,8 +49,22 @@ export declare const ModelSettings: Schema.StructWithRest<Schema.Struct<{
|
|
|
35
49
|
}>]>>, never, never>;
|
|
36
50
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
37
51
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
52
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
53
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
54
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
55
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
56
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
57
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
58
|
+
}>]>>, never, never>;
|
|
38
59
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
39
60
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
61
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
62
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
63
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
64
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
65
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
66
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
67
|
+
}>]>>, never, never>;
|
|
40
68
|
}>>, never, never>;
|
|
41
69
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
42
70
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>;
|
|
@@ -57,8 +85,22 @@ export declare const Overlays: {
|
|
|
57
85
|
}>]>>, never, never>;
|
|
58
86
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
59
87
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
88
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
89
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
90
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
91
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
92
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
93
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
94
|
+
}>]>>, never, never>;
|
|
60
95
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
61
96
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
97
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
98
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
99
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
100
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
101
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
102
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
103
|
+
}>]>>, never, never>;
|
|
62
104
|
}>>, never, never>;
|
|
63
105
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
64
106
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -77,8 +119,22 @@ export declare const Overlays: {
|
|
|
77
119
|
}>]>>, never, never>;
|
|
78
120
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
79
121
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
122
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
123
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
124
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
125
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
126
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
127
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
128
|
+
}>]>>, never, never>;
|
|
80
129
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
81
130
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
131
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
132
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
133
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
134
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
135
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
136
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
137
|
+
}>]>>, never, never>;
|
|
82
138
|
}>>, never, never>;
|
|
83
139
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
84
140
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -159,8 +215,22 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
|
|
|
159
215
|
}>]>>, never, never>;
|
|
160
216
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
161
217
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
218
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
219
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
220
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
221
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
222
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
223
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
224
|
+
}>]>>, never, never>;
|
|
162
225
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
163
226
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
227
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
228
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
229
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
230
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
231
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
232
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
233
|
+
}>]>>, never, never>;
|
|
164
234
|
}>>, never, never>;
|
|
165
235
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
166
236
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>>, Schema.optionalKey<Schema.StructWithRest<Schema.Struct<{
|
|
@@ -175,8 +245,22 @@ declare const ModelConfig_base: Schema.Class<ModelConfig, Schema.Struct<{
|
|
|
175
245
|
}>]>>, never, never>;
|
|
176
246
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
177
247
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
248
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
249
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
250
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
251
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
252
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
253
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
254
|
+
}>]>>, never, never>;
|
|
178
255
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
179
256
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
257
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
258
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
259
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
260
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
261
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
262
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
263
|
+
}>]>>, never, never>;
|
|
180
264
|
}>>, never, never>;
|
|
181
265
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
182
266
|
}>, readonly [Schema.$Record<Schema.String, Schema.UndefinedOr<Schema.Codec<Schema.Json, Schema.Json, never, never>>>]>>, never, never>;
|
|
@@ -355,8 +439,22 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
355
439
|
}>]>>, never, never>;
|
|
356
440
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
357
441
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
442
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
443
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
444
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
445
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
446
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
447
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
448
|
+
}>]>>, never, never>;
|
|
358
449
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
359
450
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
451
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
452
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
453
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
454
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
455
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
456
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
457
|
+
}>]>>, never, never>;
|
|
360
458
|
}>>, never, never>;
|
|
361
459
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
362
460
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
|
@@ -375,8 +473,22 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
375
473
|
}>]>>, never, never>;
|
|
376
474
|
readonly cache: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
377
475
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
476
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
477
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
478
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
479
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
480
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
481
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
482
|
+
}>]>>, never, never>;
|
|
378
483
|
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
379
484
|
readonly ttl: Schema.decodeTo<Schema.optional<Schema.toType<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>>, Schema.optionalKey<Schema.TemplateLiteral<readonly [Schema.Number, Schema.Literals<readonly ["ms", "s", "m", "h", "d"]>]>>, never, never>;
|
|
485
|
+
readonly warming: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
486
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
487
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
488
|
+
}>]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Boolean, Schema.Struct<{
|
|
489
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.String]>>, never, never>;
|
|
490
|
+
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
491
|
+
}>]>>, never, never>;
|
|
380
492
|
}>>, never, never>;
|
|
381
493
|
readonly transport: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["http", "websocket"]>>>, Schema.optionalKey<Schema.Literals<readonly ["http", "websocket"]>>, never, never>;
|
|
382
494
|
readonly encoding: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["zstd", "gzip", "none"]>>>, Schema.optionalKey<Schema.Literals<readonly ["zstd", "gzip", "none"]>>, never, never>;
|
package/dist/config/warming.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ export * as ConfigWarming from "./warming.js";
|
|
|
2
2
|
import { Schema } from "effect";
|
|
3
3
|
declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
4
4
|
readonly prompt: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
5
|
-
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.DurationFromString
|
|
5
|
+
readonly interval: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Union<readonly [Schema.Literal<"auto">, Schema.DurationFromString]>>>, Schema.optionalKey<Schema.Union<readonly [Schema.Literal<"auto">, Schema.DurationFromString]>>, never, never>;
|
|
6
6
|
readonly duration: Schema.decodeTo<Schema.optional<Schema.toType<Schema.DurationFromString>>, Schema.optionalKey<Schema.DurationFromString>, never, never>;
|
|
7
7
|
}>, {}>;
|
|
8
8
|
export declare class Info extends Info_base {
|
package/dist/config/warming.js
CHANGED
|
@@ -5,8 +5,10 @@ export class Info extends Schema.Class("Config.Warming")({
|
|
|
5
5
|
prompt: Schema.String.pipe(optional).annotate({
|
|
6
6
|
description: "Prompt sent for keep-alive requests",
|
|
7
7
|
}),
|
|
8
|
-
interval: Schema.
|
|
9
|
-
|
|
8
|
+
interval: Schema.Union([Schema.Literal("auto"), Schema.DurationFromString])
|
|
9
|
+
.pipe(optional)
|
|
10
|
+
.annotate({
|
|
11
|
+
description: 'Idle time between keep-alive requests (default: "auto"). "auto" uses 90% of the model\'s cache.ttl, or 4 minutes when it has none.',
|
|
10
12
|
}),
|
|
11
13
|
duration: Schema.DurationFromString.pipe(optional).annotate({
|
|
12
14
|
description: 'Time after the last active request to keep a session warm (default: "30 minutes")',
|
package/dist/config.d.ts
CHANGED
|
@@ -55,19 +55,19 @@ declare const Info_base: Schema.Class<Info, Schema.Struct<{
|
|
|
55
55
|
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
56
56
|
}>>>, never, never>;
|
|
57
57
|
readonly policies: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
58
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
58
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
59
59
|
readonly resource: Schema.String;
|
|
60
60
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
61
61
|
}>>, Schema.Struct<{
|
|
62
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
62
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
63
63
|
readonly resource: Schema.String;
|
|
64
64
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
65
65
|
}>, never, never>>>>, Schema.optionalKey<Schema.$Array<Schema.decodeTo<Schema.toType<Schema.Struct<{
|
|
66
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
66
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
67
67
|
readonly resource: Schema.String;
|
|
68
68
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
69
69
|
}>>, Schema.Struct<{
|
|
70
|
-
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use"]>;
|
|
70
|
+
readonly action: Schema.Literals<readonly ["provider.use", "tool.use", "integration.connect", "integration.use", "mcp.use", "skill.use", "plugin.use", "websearch.use"]>;
|
|
71
71
|
readonly resource: Schema.String;
|
|
72
72
|
readonly effect: Schema.Literals<readonly ["allow", "deny"]>;
|
|
73
73
|
}>, never, never>>>, never, never>;
|
package/dist/credential.d.ts
CHANGED
|
@@ -31,12 +31,22 @@ export declare const Event: {
|
|
|
31
31
|
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
32
32
|
}>, never, never>;
|
|
33
33
|
}>>, never, never>;
|
|
34
|
-
readonly data: Schema.Struct<{
|
|
34
|
+
readonly data: Schema.Struct<{
|
|
35
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
36
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
37
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
38
|
+
};
|
|
39
|
+
}>;
|
|
35
40
|
}> & {
|
|
36
41
|
type: "credential.updated";
|
|
37
42
|
durability: "ephemeral";
|
|
38
43
|
durable: undefined;
|
|
39
|
-
data: Schema.Struct<{
|
|
44
|
+
data: Schema.Struct<{
|
|
45
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
46
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
47
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
48
|
+
};
|
|
49
|
+
}>;
|
|
40
50
|
};
|
|
41
51
|
Switched: Schema.Struct<{
|
|
42
52
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
@@ -107,12 +117,22 @@ export declare const Event: {
|
|
|
107
117
|
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
108
118
|
}>, never, never>;
|
|
109
119
|
}>>, never, never>;
|
|
110
|
-
readonly data: Schema.Struct<{
|
|
120
|
+
readonly data: Schema.Struct<{
|
|
121
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
122
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
123
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
124
|
+
};
|
|
125
|
+
}>;
|
|
111
126
|
}> & {
|
|
112
127
|
type: "credential.updated";
|
|
113
128
|
durability: "ephemeral";
|
|
114
129
|
durable: undefined;
|
|
115
|
-
data: Schema.Struct<{
|
|
130
|
+
data: Schema.Struct<{
|
|
131
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
132
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
133
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
134
|
+
};
|
|
135
|
+
}>;
|
|
116
136
|
}, Schema.Struct<{
|
|
117
137
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
118
138
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
package/dist/credential.js
CHANGED
|
@@ -6,9 +6,10 @@ import { IntegrationID, IntegrationMethodID } from "./integration-id.js";
|
|
|
6
6
|
import { ascending } from "./identifier.js";
|
|
7
7
|
import { NonNegativeInt, statics } from "./schema.js";
|
|
8
8
|
export const ID = Schema.String.pipe(Schema.brand("Credential.ID"), Schema.annotate({ identifier: "Credential.ID" }), statics((schema) => ({ create: () => schema.make("cred_" + ascending()) })));
|
|
9
|
+
// A login was added, renamed or removed. Every change is to exactly one credential.
|
|
9
10
|
const Updated = ephemeral({
|
|
10
11
|
type: "credential.updated",
|
|
11
|
-
schema: {},
|
|
12
|
+
schema: { integrationID: IntegrationID, credentialID: ID },
|
|
12
13
|
});
|
|
13
14
|
const Switched = ephemeral({
|
|
14
15
|
type: "credential.switched",
|
package/dist/event-manifest.d.ts
CHANGED
|
@@ -92,12 +92,22 @@ export declare const ServerDefinitions: readonly [Schema.Struct<{
|
|
|
92
92
|
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
93
93
|
}>, never, never>;
|
|
94
94
|
}>>, never, never>;
|
|
95
|
-
readonly data: Schema.Struct<{
|
|
95
|
+
readonly data: Schema.Struct<{
|
|
96
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
97
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
98
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
99
|
+
};
|
|
100
|
+
}>;
|
|
96
101
|
}> & {
|
|
97
102
|
type: "credential.updated";
|
|
98
103
|
durability: "ephemeral";
|
|
99
104
|
durable: undefined;
|
|
100
|
-
data: Schema.Struct<{
|
|
105
|
+
data: Schema.Struct<{
|
|
106
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
107
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
108
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
109
|
+
};
|
|
110
|
+
}>;
|
|
101
111
|
}, Schema.Struct<{
|
|
102
112
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
103
113
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
@@ -6466,12 +6476,22 @@ export declare const Definitions: readonly [Schema.Struct<{
|
|
|
6466
6476
|
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
6467
6477
|
}>, never, never>;
|
|
6468
6478
|
}>>, never, never>;
|
|
6469
|
-
readonly data: Schema.Struct<{
|
|
6479
|
+
readonly data: Schema.Struct<{
|
|
6480
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
6481
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
6482
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
6483
|
+
};
|
|
6484
|
+
}>;
|
|
6470
6485
|
}> & {
|
|
6471
6486
|
type: "credential.updated";
|
|
6472
6487
|
durability: "ephemeral";
|
|
6473
6488
|
durable: undefined;
|
|
6474
|
-
data: Schema.Struct<{
|
|
6489
|
+
data: Schema.Struct<{
|
|
6490
|
+
readonly integrationID: Schema.brand<Schema.String, "Integration.ID">;
|
|
6491
|
+
readonly credentialID: Schema.brand<Schema.String, "Credential.ID"> & {
|
|
6492
|
+
create: () => string & import("effect/Brand").Brand<"Credential.ID">;
|
|
6493
|
+
};
|
|
6494
|
+
}>;
|
|
6475
6495
|
}, Schema.Struct<{
|
|
6476
6496
|
readonly id: Schema.brand<Schema.String, "Event.ID"> & {
|
|
6477
6497
|
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|