@opencode-ai/schema 0.0.0-next-14659
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 +175 -0
- package/dist/agent.js +43 -0
- package/dist/catalog.d.ts +89 -0
- package/dist/catalog.js +4 -0
- package/dist/command.d.ts +44 -0
- package/dist/command.js +12 -0
- package/dist/connection.d.ts +28 -0
- package/dist/connection.js +15 -0
- package/dist/credential.d.ts +36 -0
- package/dist/credential.js +23 -0
- package/dist/durable-event-manifest.d.ts +10626 -0
- package/dist/durable-event-manifest.js +12 -0
- package/dist/event-manifest.d.ts +15309 -0
- package/dist/event-manifest.js +43 -0
- package/dist/event.d.ts +82 -0
- package/dist/event.js +73 -0
- package/dist/file-diff.d.ts +11 -0
- package/dist/file-diff.js +10 -0
- package/dist/filesystem-watcher.d.ts +102 -0
- package/dist/filesystem-watcher.js +11 -0
- package/dist/filesystem.d.ts +134 -0
- package/dist/filesystem.js +32 -0
- package/dist/ide-event.d.ts +96 -0
- package/dist/ide-event.js +10 -0
- package/dist/identifier.d.ts +3 -0
- package/dist/identifier.js +24 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +29 -0
- package/dist/installation-event.d.ts +189 -0
- package/dist/installation-event.js +16 -0
- package/dist/integration-id.d.ts +5 -0
- package/dist/integration-id.js +3 -0
- package/dist/integration.d.ts +572 -0
- package/dist/integration.js +93 -0
- package/dist/legacy-event.d.ts +1 -0
- package/dist/legacy-event.js +1 -0
- package/dist/llm.d.ts +28 -0
- package/dist/llm.js +19 -0
- package/dist/location.d.ts +36 -0
- package/dist/location.js +21 -0
- package/dist/lsp-event.d.ts +87 -0
- package/dist/lsp-event.js +4 -0
- package/dist/mcp-event.d.ts +286 -0
- package/dist/mcp-event.js +25 -0
- package/dist/mcp.d.ts +39 -0
- package/dist/mcp.js +38 -0
- package/dist/model.d.ts +205 -0
- package/dist/model.js +86 -0
- package/dist/models-dev.d.ts +89 -0
- package/dist/models-dev.js +7 -0
- package/dist/permission-saved.d.ts +18 -0
- package/dist/permission-saved.js +12 -0
- package/dist/permission-v1.d.ts +1 -0
- package/dist/permission-v1.js +1 -0
- package/dist/permission.d.ts +346 -0
- package/dist/permission.js +45 -0
- package/dist/plugin.d.ts +105 -0
- package/dist/plugin.js +12 -0
- package/dist/project-copy.d.ts +29 -0
- package/dist/project-copy.js +21 -0
- package/dist/project-directories.d.ts +105 -0
- package/dist/project-directories.js +8 -0
- package/dist/project-id.d.ts +5 -0
- package/dist/project-id.js +3 -0
- package/dist/project.d.ts +278 -0
- package/dist/project.js +44 -0
- package/dist/prompt-input.d.ts +106 -0
- package/dist/prompt-input.js +19 -0
- package/dist/prompt.d.ts +177 -0
- package/dist/prompt.js +43 -0
- package/dist/provider.d.ts +111 -0
- package/dist/provider.js +53 -0
- package/dist/pty-ticket.d.ts +8 -0
- package/dist/pty-ticket.js +7 -0
- package/dist/pty.d.ts +542 -0
- package/dist/pty.js +43 -0
- package/dist/question-v1.d.ts +1 -0
- package/dist/question-v1.js +1 -0
- package/dist/question.d.ts +516 -0
- package/dist/question.js +64 -0
- package/dist/reference.d.ts +140 -0
- package/dist/reference.js +31 -0
- package/dist/revert.d.ts +34 -0
- package/dist/revert.js +19 -0
- package/dist/schema.d.ts +10 -0
- package/dist/schema.js +14 -0
- package/dist/server-event.d.ts +172 -0
- package/dist/server-event.js +5 -0
- package/dist/session-compaction-event.d.ts +107 -0
- package/dist/session-compaction-event.js +10 -0
- package/dist/session-delivery.d.ts +4 -0
- package/dist/session-delivery.js +3 -0
- package/dist/session-event.d.ts +14225 -0
- package/dist/session-event.js +421 -0
- package/dist/session-id.d.ts +6 -0
- package/dist/session-id.js +10 -0
- package/dist/session-input.d.ts +145 -0
- package/dist/session-input.js +18 -0
- package/dist/session-message.d.ts +1318 -0
- package/dist/session-message.js +171 -0
- package/dist/session-status-event.d.ts +339 -0
- package/dist/session-status-event.js +43 -0
- package/dist/session-todo.d.ts +137 -0
- package/dist/session-todo.js +21 -0
- package/dist/session-v1.d.ts +1 -0
- package/dist/session-v1.js +1 -0
- package/dist/session.d.ts +140 -0
- package/dist/session.js +43 -0
- package/dist/shell.d.ts +441 -0
- package/dist/shell.js +58 -0
- package/dist/skill.d.ts +146 -0
- package/dist/skill.js +45 -0
- package/dist/tui-event.d.ts +387 -0
- package/dist/tui-event.js +53 -0
- package/dist/v1/legacy-event.d.ts +128 -0
- package/dist/v1/legacy-event.js +15 -0
- package/dist/v1/permission.d.ts +356 -0
- package/dist/v1/permission.js +41 -0
- package/dist/v1/question.d.ts +504 -0
- package/dist/v1/question.js +57 -0
- package/dist/v1/session.d.ts +7775 -0
- package/dist/v1/session.js +535 -0
- package/dist/vcs-event.d.ts +96 -0
- package/dist/vcs-event.js +11 -0
- package/dist/workspace-event.d.ts +307 -0
- package/dist/workspace-event.js +25 -0
- package/dist/workspace-id.d.ts +6 -0
- package/dist/workspace-id.js +16 -0
- package/dist/workspace.d.ts +9 -0
- package/dist/workspace.js +5 -0
- package/dist/worktree-event.d.ts +193 -0
- package/dist/worktree-event.js +18 -0
- package/package.json +41 -0
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
export * as Model from "./model.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { Provider } from "./provider.js";
|
|
4
|
+
export declare const ID: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
5
|
+
export type ID = typeof ID.Type;
|
|
6
|
+
export declare const VariantID: Schema.brand<Schema.String, "VariantID">;
|
|
7
|
+
export type VariantID = typeof VariantID.Type;
|
|
8
|
+
export declare const Ref: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
10
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
11
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
12
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
13
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
14
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
15
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
16
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
17
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
18
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
19
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
20
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
21
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
22
|
+
};
|
|
23
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "VariantID">>, never, never>;
|
|
24
|
+
}>;
|
|
25
|
+
export interface Ref extends Schema.Schema.Type<typeof Ref> {
|
|
26
|
+
}
|
|
27
|
+
export declare const Family: Schema.brand<Schema.String, "Family">;
|
|
28
|
+
export type Family = typeof Family.Type;
|
|
29
|
+
export interface Capabilities extends Schema.Schema.Type<typeof Capabilities> {
|
|
30
|
+
}
|
|
31
|
+
export declare const Capabilities: Schema.Struct<{
|
|
32
|
+
readonly tools: Schema.Boolean;
|
|
33
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
34
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
35
|
+
}>;
|
|
36
|
+
export interface Cost extends Schema.Schema.Type<typeof Cost> {
|
|
37
|
+
}
|
|
38
|
+
export declare const Cost: Schema.Struct<{
|
|
39
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
40
|
+
readonly type: Schema.Literal<"context">;
|
|
41
|
+
readonly size: Schema.Int;
|
|
42
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
43
|
+
readonly type: Schema.Literal<"context">;
|
|
44
|
+
readonly size: Schema.Int;
|
|
45
|
+
}>>, never, never>;
|
|
46
|
+
readonly input: Schema.Finite;
|
|
47
|
+
readonly output: Schema.Finite;
|
|
48
|
+
readonly cache: Schema.Struct<{
|
|
49
|
+
readonly read: Schema.Finite;
|
|
50
|
+
readonly write: Schema.Finite;
|
|
51
|
+
}>;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const Api: Schema.Union<readonly [Schema.Struct<{
|
|
54
|
+
readonly type: Schema.Literal<"aisdk">;
|
|
55
|
+
readonly package: Schema.String;
|
|
56
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
57
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
58
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
59
|
+
}>, Schema.Struct<{
|
|
60
|
+
readonly type: Schema.Literal<"native">;
|
|
61
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
62
|
+
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
63
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
64
|
+
}>]>;
|
|
65
|
+
export type Api = typeof Api.Type;
|
|
66
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
67
|
+
}
|
|
68
|
+
export declare const Info: Schema.Struct<{
|
|
69
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
70
|
+
readonly providerID: Schema.brand<Schema.String, "ProviderV2.ID"> & {
|
|
71
|
+
opencode: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
72
|
+
anthropic: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
73
|
+
openai: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
74
|
+
google: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
75
|
+
googleVertex: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
76
|
+
githubCopilot: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
77
|
+
amazonBedrock: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
78
|
+
azure: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
79
|
+
openrouter: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
80
|
+
mistral: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
81
|
+
gitlab: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
82
|
+
};
|
|
83
|
+
readonly family: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Family">>>, Schema.optionalKey<Schema.brand<Schema.String, "Family">>, never, never>;
|
|
84
|
+
readonly name: Schema.String;
|
|
85
|
+
readonly api: Schema.Union<readonly [Schema.Struct<{
|
|
86
|
+
readonly type: Schema.Literal<"aisdk">;
|
|
87
|
+
readonly package: Schema.String;
|
|
88
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
89
|
+
readonly settings: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
90
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
91
|
+
}>, Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"native">;
|
|
93
|
+
readonly url: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
94
|
+
readonly settings: Schema.$Record<Schema.String, Schema.Unknown>;
|
|
95
|
+
readonly id: Schema.brand<Schema.String, "ModelV2.ID">;
|
|
96
|
+
}>]>;
|
|
97
|
+
readonly capabilities: Schema.Struct<{
|
|
98
|
+
readonly tools: Schema.Boolean;
|
|
99
|
+
readonly input: Schema.$Array<Schema.String>;
|
|
100
|
+
readonly output: Schema.$Array<Schema.String>;
|
|
101
|
+
}>;
|
|
102
|
+
readonly request: Schema.Struct<{
|
|
103
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
104
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
105
|
+
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
106
|
+
}>;
|
|
107
|
+
readonly variants: Schema.$Array<Schema.Struct<{
|
|
108
|
+
readonly headers: Schema.$Record<Schema.String, Schema.String>;
|
|
109
|
+
readonly body: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
110
|
+
readonly id: Schema.brand<Schema.String, "VariantID">;
|
|
111
|
+
}>>;
|
|
112
|
+
readonly time: Schema.Struct<{
|
|
113
|
+
readonly released: Schema.Finite;
|
|
114
|
+
}>;
|
|
115
|
+
readonly cost: Schema.$Array<Schema.Struct<{
|
|
116
|
+
readonly tier: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
117
|
+
readonly type: Schema.Literal<"context">;
|
|
118
|
+
readonly size: Schema.Int;
|
|
119
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
120
|
+
readonly type: Schema.Literal<"context">;
|
|
121
|
+
readonly size: Schema.Int;
|
|
122
|
+
}>>, never, never>;
|
|
123
|
+
readonly input: Schema.Finite;
|
|
124
|
+
readonly output: Schema.Finite;
|
|
125
|
+
readonly cache: Schema.Struct<{
|
|
126
|
+
readonly read: Schema.Finite;
|
|
127
|
+
readonly write: Schema.Finite;
|
|
128
|
+
}>;
|
|
129
|
+
}>>;
|
|
130
|
+
readonly status: Schema.Literals<readonly ["alpha", "beta", "deprecated", "active"]>;
|
|
131
|
+
readonly enabled: Schema.Boolean;
|
|
132
|
+
readonly limit: Schema.Struct<{
|
|
133
|
+
readonly context: Schema.Int;
|
|
134
|
+
readonly input: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
135
|
+
readonly output: Schema.Int;
|
|
136
|
+
}>;
|
|
137
|
+
}> & {
|
|
138
|
+
empty: (providerID: Provider.ID, modelID: ID) => {
|
|
139
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
140
|
+
readonly providerID: string & import("effect/Brand").Brand<"ProviderV2.ID">;
|
|
141
|
+
readonly name: string;
|
|
142
|
+
readonly api: {
|
|
143
|
+
readonly type: "aisdk";
|
|
144
|
+
readonly package: string;
|
|
145
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
146
|
+
readonly url?: string | undefined;
|
|
147
|
+
readonly settings?: {
|
|
148
|
+
readonly [x: string]: unknown;
|
|
149
|
+
} | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
readonly type: "native";
|
|
152
|
+
readonly settings: {
|
|
153
|
+
readonly [x: string]: unknown;
|
|
154
|
+
};
|
|
155
|
+
readonly id: string & import("effect/Brand").Brand<"ModelV2.ID">;
|
|
156
|
+
readonly url?: string | undefined;
|
|
157
|
+
};
|
|
158
|
+
readonly capabilities: {
|
|
159
|
+
readonly tools: boolean;
|
|
160
|
+
readonly input: readonly string[];
|
|
161
|
+
readonly output: readonly string[];
|
|
162
|
+
};
|
|
163
|
+
readonly request: {
|
|
164
|
+
readonly headers: {
|
|
165
|
+
readonly [x: string]: string;
|
|
166
|
+
};
|
|
167
|
+
readonly body: {
|
|
168
|
+
readonly [x: string]: Schema.Json;
|
|
169
|
+
};
|
|
170
|
+
readonly variant?: string | undefined;
|
|
171
|
+
};
|
|
172
|
+
readonly variants: readonly {
|
|
173
|
+
readonly headers: {
|
|
174
|
+
readonly [x: string]: string;
|
|
175
|
+
};
|
|
176
|
+
readonly body: {
|
|
177
|
+
readonly [x: string]: Schema.Json;
|
|
178
|
+
};
|
|
179
|
+
readonly id: string & import("effect/Brand").Brand<"VariantID">;
|
|
180
|
+
}[];
|
|
181
|
+
readonly time: {
|
|
182
|
+
readonly released: number;
|
|
183
|
+
};
|
|
184
|
+
readonly cost: readonly {
|
|
185
|
+
readonly input: number;
|
|
186
|
+
readonly output: number;
|
|
187
|
+
readonly cache: {
|
|
188
|
+
readonly read: number;
|
|
189
|
+
readonly write: number;
|
|
190
|
+
};
|
|
191
|
+
readonly tier?: {
|
|
192
|
+
readonly type: "context";
|
|
193
|
+
readonly size: number;
|
|
194
|
+
} | undefined;
|
|
195
|
+
}[];
|
|
196
|
+
readonly status: "alpha" | "beta" | "deprecated" | "active";
|
|
197
|
+
readonly enabled: boolean;
|
|
198
|
+
readonly limit: {
|
|
199
|
+
readonly context: number;
|
|
200
|
+
readonly output: number;
|
|
201
|
+
readonly input?: number | undefined;
|
|
202
|
+
};
|
|
203
|
+
readonly family?: (string & import("effect/Brand").Brand<"Family">) | undefined;
|
|
204
|
+
};
|
|
205
|
+
};
|
package/dist/model.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
export * as Model from "./model.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { optional } from "./schema.js";
|
|
4
|
+
import { Provider } from "./provider.js";
|
|
5
|
+
import { statics } from "./schema.js";
|
|
6
|
+
export const ID = Schema.String.pipe(Schema.brand("ModelV2.ID"));
|
|
7
|
+
export const VariantID = Schema.String.pipe(Schema.brand("VariantID"));
|
|
8
|
+
export const Ref = Schema.Struct({
|
|
9
|
+
id: ID,
|
|
10
|
+
providerID: Provider.ID,
|
|
11
|
+
variant: VariantID.pipe(optional),
|
|
12
|
+
}).annotate({ identifier: "Model.Ref" });
|
|
13
|
+
export const Family = Schema.String.pipe(Schema.brand("Family"));
|
|
14
|
+
export const Capabilities = Schema.Struct({
|
|
15
|
+
tools: Schema.Boolean,
|
|
16
|
+
input: Schema.Array(Schema.String),
|
|
17
|
+
output: Schema.Array(Schema.String),
|
|
18
|
+
}).annotate({ identifier: "Model.Capabilities" });
|
|
19
|
+
export const Cost = Schema.Struct({
|
|
20
|
+
tier: Schema.Struct({
|
|
21
|
+
type: Schema.Literal("context"),
|
|
22
|
+
size: Schema.Int,
|
|
23
|
+
}).pipe(optional),
|
|
24
|
+
input: Schema.Finite,
|
|
25
|
+
output: Schema.Finite,
|
|
26
|
+
cache: Schema.Struct({
|
|
27
|
+
read: Schema.Finite,
|
|
28
|
+
write: Schema.Finite,
|
|
29
|
+
}),
|
|
30
|
+
}).annotate({ identifier: "Model.Cost" });
|
|
31
|
+
export const Api = Schema.Union([
|
|
32
|
+
Schema.Struct({
|
|
33
|
+
id: ID,
|
|
34
|
+
...Provider.AISDK.fields,
|
|
35
|
+
}),
|
|
36
|
+
Schema.Struct({
|
|
37
|
+
id: ID,
|
|
38
|
+
...Provider.Native.fields,
|
|
39
|
+
}),
|
|
40
|
+
])
|
|
41
|
+
.pipe(Schema.toTaggedUnion("type"))
|
|
42
|
+
.annotate({ identifier: "Model.Api" });
|
|
43
|
+
export const Info = Schema.Struct({
|
|
44
|
+
id: ID,
|
|
45
|
+
providerID: Provider.ID,
|
|
46
|
+
family: Family.pipe(optional),
|
|
47
|
+
name: Schema.String,
|
|
48
|
+
api: Api,
|
|
49
|
+
capabilities: Capabilities,
|
|
50
|
+
request: Schema.Struct({
|
|
51
|
+
...Provider.Request.fields,
|
|
52
|
+
variant: Schema.String.pipe(optional),
|
|
53
|
+
}),
|
|
54
|
+
variants: Schema.Struct({
|
|
55
|
+
id: VariantID,
|
|
56
|
+
...Provider.Request.fields,
|
|
57
|
+
}).pipe(Schema.Array),
|
|
58
|
+
time: Schema.Struct({
|
|
59
|
+
released: Schema.Finite,
|
|
60
|
+
}),
|
|
61
|
+
cost: Schema.Array(Cost),
|
|
62
|
+
status: Schema.Literals(["alpha", "beta", "deprecated", "active"]),
|
|
63
|
+
enabled: Schema.Boolean,
|
|
64
|
+
limit: Schema.Struct({
|
|
65
|
+
context: Schema.Int,
|
|
66
|
+
input: Schema.Int.pipe(optional),
|
|
67
|
+
output: Schema.Int,
|
|
68
|
+
}),
|
|
69
|
+
})
|
|
70
|
+
.annotate({ identifier: "ModelV2.Info" })
|
|
71
|
+
.pipe(statics((schema) => ({
|
|
72
|
+
empty: (providerID, modelID) => schema.make({
|
|
73
|
+
id: modelID,
|
|
74
|
+
providerID,
|
|
75
|
+
name: modelID,
|
|
76
|
+
api: { id: modelID, type: "native", settings: {} },
|
|
77
|
+
capabilities: { tools: false, input: [], output: [] },
|
|
78
|
+
request: { headers: {}, body: {} },
|
|
79
|
+
variants: [],
|
|
80
|
+
time: { released: 0 },
|
|
81
|
+
cost: [],
|
|
82
|
+
status: "active",
|
|
83
|
+
enabled: true,
|
|
84
|
+
limit: { context: 0, output: 0 },
|
|
85
|
+
}),
|
|
86
|
+
})));
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
export * as ModelsDev from "./models-dev.js";
|
|
2
|
+
export declare const Event: {
|
|
3
|
+
Refreshed: import("effect/Schema").Struct<{
|
|
4
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
5
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
6
|
+
};
|
|
7
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
8
|
+
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
9
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
10
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
11
|
+
readonly seq: import("effect/Schema").Int;
|
|
12
|
+
readonly version: import("effect/Schema").Int;
|
|
13
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
14
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
15
|
+
readonly seq: import("effect/Schema").Int;
|
|
16
|
+
readonly version: import("effect/Schema").Int;
|
|
17
|
+
}>>, never, never>;
|
|
18
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
19
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
20
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
21
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
22
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
23
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
24
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
25
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
26
|
+
}>, never, never>;
|
|
27
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
28
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
29
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
30
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
31
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
32
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
33
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
34
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
35
|
+
}>, never, never>;
|
|
36
|
+
}>>, never, never>;
|
|
37
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
38
|
+
}> & {
|
|
39
|
+
data: import("effect/Schema").Struct<{}>;
|
|
40
|
+
durable?: {
|
|
41
|
+
readonly version: number;
|
|
42
|
+
readonly aggregate: string;
|
|
43
|
+
} | undefined;
|
|
44
|
+
type: "models-dev.refreshed";
|
|
45
|
+
};
|
|
46
|
+
Definitions: readonly [import("effect/Schema").Struct<{
|
|
47
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "Event.ID"> & {
|
|
48
|
+
create: () => string & import("effect/Brand").Brand<"Event.ID">;
|
|
49
|
+
};
|
|
50
|
+
readonly metadata: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>>, import("effect/Schema").optionalKey<import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>>, never, never>;
|
|
51
|
+
readonly type: import("effect/Schema").Literal<"models-dev.refreshed">;
|
|
52
|
+
readonly durable: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
53
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
54
|
+
readonly seq: import("effect/Schema").Int;
|
|
55
|
+
readonly version: import("effect/Schema").Int;
|
|
56
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
57
|
+
readonly aggregateID: import("effect/Schema").String;
|
|
58
|
+
readonly seq: import("effect/Schema").Int;
|
|
59
|
+
readonly version: import("effect/Schema").Int;
|
|
60
|
+
}>>, never, never>;
|
|
61
|
+
readonly location: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").Struct<{
|
|
62
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
63
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
64
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
65
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
66
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
67
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
68
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
69
|
+
}>, never, never>;
|
|
70
|
+
}>>>, import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
71
|
+
readonly directory: import("effect/Schema").brand<import("effect/Schema").String, "AbsolutePath">;
|
|
72
|
+
readonly workspaceID: import("effect/Schema").decodeTo<import("effect/Schema").optional<import("effect/Schema").toType<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
73
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
74
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
75
|
+
}>>, import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "WorkspaceV2.ID"> & {
|
|
76
|
+
ascending: (id?: string) => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
77
|
+
create: () => string & import("effect/Brand").Brand<"WorkspaceV2.ID">;
|
|
78
|
+
}>, never, never>;
|
|
79
|
+
}>>, never, never>;
|
|
80
|
+
readonly data: import("effect/Schema").Struct<{}>;
|
|
81
|
+
}> & {
|
|
82
|
+
data: import("effect/Schema").Struct<{}>;
|
|
83
|
+
durable?: {
|
|
84
|
+
readonly version: number;
|
|
85
|
+
readonly aggregate: string;
|
|
86
|
+
} | undefined;
|
|
87
|
+
type: "models-dev.refreshed";
|
|
88
|
+
}];
|
|
89
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * as PermissionSaved from "./permission-saved.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
export declare const ID: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
4
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
5
|
+
};
|
|
6
|
+
export type ID = typeof ID.Type;
|
|
7
|
+
export declare const Info: Schema.Struct<{
|
|
8
|
+
readonly id: Schema.brand<Schema.String, "PermissionSaved.ID"> & {
|
|
9
|
+
create: () => string & import("effect/Brand").Brand<"PermissionSaved.ID">;
|
|
10
|
+
};
|
|
11
|
+
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
12
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
13
|
+
};
|
|
14
|
+
readonly action: Schema.String;
|
|
15
|
+
readonly resource: Schema.String;
|
|
16
|
+
}>;
|
|
17
|
+
export interface Info extends Schema.Schema.Type<typeof Info> {
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * as PermissionSaved from "./permission-saved.js";
|
|
2
|
+
import { Schema } from "effect";
|
|
3
|
+
import { ascending } from "./identifier.js";
|
|
4
|
+
import { ProjectID } from "./project-id.js";
|
|
5
|
+
import { statics } from "./schema.js";
|
|
6
|
+
export const ID = Schema.String.pipe(Schema.brand("PermissionSaved.ID"), statics((schema) => ({ create: () => schema.make("psv_" + ascending()) })));
|
|
7
|
+
export const Info = Schema.Struct({
|
|
8
|
+
id: ID,
|
|
9
|
+
projectID: ProjectID,
|
|
10
|
+
action: Schema.String,
|
|
11
|
+
resource: Schema.String,
|
|
12
|
+
}).annotate({ identifier: "PermissionSaved.Info" });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./v1/permission.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./v1/permission.js";
|