@opencode/protocol 2.0.3 → 2.0.4
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 +4 -6
- package/dist/api.js +4 -8
- package/dist/client.d.ts +0 -2
- package/dist/client.js +0 -2
- package/dist/errors.d.ts +20 -0
- package/dist/errors.js +17 -0
- package/dist/groups/agent.d.ts +6 -5
- package/dist/groups/agent.js +2 -2
- package/dist/groups/command.d.ts +3 -3
- package/dist/groups/command.js +1 -1
- package/dist/groups/config.d.ts +5 -13
- package/dist/groups/config.js +11 -18
- package/dist/groups/credential.d.ts +3 -18
- package/dist/groups/credential.js +3 -10
- package/dist/groups/debug.d.ts +0 -8
- package/dist/groups/debug.js +3 -3
- package/dist/groups/event.d.ts +99 -74
- package/dist/groups/event.js +3 -3
- package/dist/groups/form.d.ts +6 -654
- package/dist/groups/form.js +6 -83
- package/dist/groups/fs.d.ts +6 -6
- package/dist/groups/fs.js +3 -3
- package/dist/groups/generate.d.ts +1 -1
- package/dist/groups/generate.js +2 -2
- package/dist/groups/integration.d.ts +27 -27
- package/dist/groups/integration.js +19 -16
- package/dist/groups/location.d.ts +10 -4
- package/dist/groups/location.js +2 -3
- package/dist/groups/mcp.d.ts +11 -13
- package/dist/groups/mcp.js +10 -10
- package/dist/groups/message.d.ts +698 -40
- package/dist/groups/message.js +26 -3
- package/dist/groups/migration.js +1 -1
- package/dist/groups/model.d.ts +12 -9
- package/dist/groups/model.js +2 -2
- package/dist/groups/permission.d.ts +9 -16
- package/dist/groups/permission.js +8 -20
- package/dist/groups/persistent-pty.js +1 -1
- package/dist/groups/plugin.d.ts +7 -12
- package/dist/groups/plugin.js +3 -13
- package/dist/groups/project.d.ts +1 -14
- package/dist/groups/project.js +2 -13
- package/dist/groups/provider.d.ts +8 -7
- package/dist/groups/provider.js +2 -2
- package/dist/groups/pty.d.ts +15 -12
- package/dist/groups/pty.js +8 -8
- package/dist/groups/reference.d.ts +8 -12
- package/dist/groups/reference.js +16 -3
- package/dist/groups/rpc.d.ts +0 -1
- package/dist/groups/rpc.js +1 -1
- package/dist/groups/server.d.ts +9 -1
- package/dist/groups/server.js +11 -5
- package/dist/groups/session.d.ts +1085 -793
- package/dist/groups/session.js +172 -94
- package/dist/groups/shell.d.ts +13 -43
- package/dist/groups/shell.js +6 -24
- package/dist/groups/skill.d.ts +4 -5
- package/dist/groups/skill.js +1 -1
- package/dist/groups/vcs.d.ts +17 -12
- package/dist/groups/vcs.js +6 -6
- package/dist/groups/websearch.d.ts +6 -5
- package/dist/groups/websearch.js +2 -2
- package/dist/groups/worktree.d.ts +17 -23
- package/dist/groups/worktree.js +21 -30
- package/package.json +2 -2
- package/dist/groups/health.d.ts +0 -15
- package/dist/groups/health.js +0 -20
- package/dist/groups/workspace.d.ts +0 -22
- package/dist/groups/workspace.js +0 -27
package/dist/groups/session.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { InstructionEntry } from "@opencode/schema/instruction-entry";
|
|
|
3
3
|
import { Event } from "@opencode/schema/event";
|
|
4
4
|
import { Context, Effect, Schema } from "effect";
|
|
5
5
|
import { HttpApiEndpoint, HttpApiGroup, HttpApiMiddleware, HttpApiSchema } from "effect/unstable/httpapi";
|
|
6
|
-
import { ConflictError, CommandExecutionError, CommandNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
6
|
+
import { ConflictError, CommandExecutionError, CommandNotFoundError, FormAlreadySettledError, FormInvalidAnswerError, FormNotFoundError, InvalidCursorError, InvalidRequestError, MessageNotFoundError, ServiceUnavailableError, SessionBusyError, SessionNotFoundError, SkillNotFoundError, UnknownError } from "../errors.js";
|
|
7
7
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
8
8
|
declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
9
9
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
@@ -13,10 +13,6 @@ declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
13
13
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
14
14
|
readonly search: Schema.optional<Schema.String>;
|
|
15
15
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
16
|
-
readonly workspace: Schema.optional<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
17
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
18
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
19
|
-
}>;
|
|
20
16
|
readonly anchor: Schema.Struct<{
|
|
21
17
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
22
18
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -36,10 +32,6 @@ declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
36
32
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
37
33
|
readonly search: Schema.optional<Schema.String>;
|
|
38
34
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
39
|
-
readonly workspace: Schema.optional<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
40
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
41
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
42
|
-
}>;
|
|
43
35
|
readonly anchor: Schema.Struct<{
|
|
44
36
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
45
37
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -55,10 +47,6 @@ declare const SessionsCursorInput: Schema.Union<readonly [Schema.Struct<{
|
|
|
55
47
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
56
48
|
readonly search: Schema.optional<Schema.String>;
|
|
57
49
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
58
|
-
readonly workspace: Schema.optional<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
59
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
60
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
61
|
-
}>;
|
|
62
50
|
readonly anchor: Schema.Struct<{
|
|
63
51
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
64
52
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -80,7 +68,6 @@ export declare const SessionsCursor: Schema.brand<Schema.String, "SessionsCursor
|
|
|
80
68
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
81
69
|
readonly search?: string | undefined;
|
|
82
70
|
readonly order?: "asc" | "desc" | undefined;
|
|
83
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
84
71
|
} | {
|
|
85
72
|
readonly project: string & import("effect/Brand").Brand<"Project.ID">;
|
|
86
73
|
readonly anchor: {
|
|
@@ -92,7 +79,6 @@ export declare const SessionsCursor: Schema.brand<Schema.String, "SessionsCursor
|
|
|
92
79
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
93
80
|
readonly search?: string | undefined;
|
|
94
81
|
readonly order?: "asc" | "desc" | undefined;
|
|
95
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
96
82
|
} | {
|
|
97
83
|
readonly anchor: {
|
|
98
84
|
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -102,7 +88,6 @@ export declare const SessionsCursor: Schema.brand<Schema.String, "SessionsCursor
|
|
|
102
88
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
103
89
|
readonly search?: string | undefined;
|
|
104
90
|
readonly order?: "asc" | "desc" | undefined;
|
|
105
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
106
91
|
}, "Invalid cursor", never>;
|
|
107
92
|
};
|
|
108
93
|
export type SessionsCursor = typeof SessionsCursor.Type;
|
|
@@ -113,10 +98,6 @@ export declare const SessionsQuery: Schema.Struct<{
|
|
|
113
98
|
}>;
|
|
114
99
|
readonly subpath: Schema.optional<Schema.brand<Schema.String, "RelativePath">>;
|
|
115
100
|
readonly cursor: Schema.optional<Schema.brand<Schema.String, "SessionsCursor">>;
|
|
116
|
-
readonly workspace: Schema.optional<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
117
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
118
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
119
|
-
}>;
|
|
120
101
|
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
|
121
102
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
122
103
|
readonly search: Schema.optional<Schema.String>;
|
|
@@ -125,17 +106,13 @@ export declare const SessionsQuery: Schema.Struct<{
|
|
|
125
106
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
126
107
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
127
108
|
}>;
|
|
128
|
-
export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(sessionLocationMiddleware: Context.Key<I, S>) => HttpApiGroup.HttpApiGroup<"server.session", HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
109
|
+
export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S, FormI extends HttpApiMiddleware.AnyId, FormS>(sessionLocationMiddleware: Context.Key<I, S>, formLocationMiddleware: Context.Key<FormI, FormS>) => HttpApiGroup.HttpApiGroup<"server.session", HttpApiEndpoint.HttpApiEndpoint<"session.list", "GET", "/api/session", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
129
110
|
readonly directory: Schema.optional<Schema.brand<Schema.String, "AbsolutePath">>;
|
|
130
111
|
readonly project: Schema.optional<Schema.brand<Schema.String, "Project.ID"> & {
|
|
131
112
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
132
113
|
}>;
|
|
133
114
|
readonly subpath: Schema.optional<Schema.brand<Schema.String, "RelativePath">>;
|
|
134
115
|
readonly cursor: Schema.optional<Schema.brand<Schema.String, "SessionsCursor">>;
|
|
135
|
-
readonly workspace: Schema.optional<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
136
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
137
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
138
|
-
}>;
|
|
139
116
|
readonly limit: Schema.optional<Schema.compose<Schema.Int, Schema.NumberFromString>>;
|
|
140
117
|
readonly order: Schema.optional<Schema.Union<readonly [Schema.Literal<"asc">, Schema.Literal<"desc">]>>;
|
|
141
118
|
readonly search: Schema.optional<Schema.String>;
|
|
@@ -145,58 +122,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
145
122
|
}, Schema.decodeTo<Schema.Null, Schema.Literal<"null">, never, never>]>>;
|
|
146
123
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
147
124
|
readonly data: Schema.$Array<Schema.Struct<{
|
|
125
|
+
readonly location: Schema.Struct<{
|
|
126
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
127
|
+
}>;
|
|
148
128
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
149
129
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
150
130
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
151
131
|
};
|
|
152
|
-
readonly
|
|
153
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
154
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
155
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
156
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
157
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
158
|
-
}>, never, never>;
|
|
159
|
-
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
160
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
161
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
162
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
163
|
-
};
|
|
164
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
165
|
-
readonly type: Schema.Literal<"before">;
|
|
166
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
167
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
168
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
169
|
-
};
|
|
170
|
-
}>, Schema.Struct<{
|
|
171
|
-
readonly type: Schema.Literal<"through">;
|
|
172
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
173
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
174
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
175
|
-
};
|
|
176
|
-
}>]>;
|
|
177
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
178
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
179
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
180
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
181
|
-
};
|
|
182
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
183
|
-
readonly type: Schema.Literal<"before">;
|
|
184
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
185
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
186
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
187
|
-
};
|
|
188
|
-
}>, Schema.Struct<{
|
|
189
|
-
readonly type: Schema.Literal<"through">;
|
|
190
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
191
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
192
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
193
|
-
};
|
|
194
|
-
}>]>;
|
|
195
|
-
}>>, never, never>;
|
|
132
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
196
133
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
197
134
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
198
135
|
};
|
|
199
|
-
readonly
|
|
136
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
137
|
+
readonly time: Schema.Struct<{
|
|
138
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
139
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
140
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
141
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
142
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
143
|
+
}>;
|
|
144
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
145
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
146
|
+
};
|
|
200
147
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
201
148
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
202
149
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -242,9 +189,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
242
189
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
243
190
|
};
|
|
244
191
|
}>, never, never>;
|
|
245
|
-
readonly
|
|
246
|
-
|
|
247
|
-
|
|
192
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
193
|
+
readonly action: Schema.String;
|
|
194
|
+
readonly resource: Schema.String;
|
|
195
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
196
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
197
|
+
readonly action: Schema.String;
|
|
198
|
+
readonly resource: Schema.String;
|
|
199
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
200
|
+
}>>>, never, never>;
|
|
201
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
202
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
248
203
|
readonly tokens: Schema.Struct<{
|
|
249
204
|
readonly input: Schema.Finite;
|
|
250
205
|
readonly output: Schema.Finite;
|
|
@@ -255,35 +210,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
255
210
|
}>;
|
|
256
211
|
}>;
|
|
257
212
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
258
|
-
readonly time: Schema.Struct<{
|
|
259
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
260
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
261
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
262
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
263
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
264
|
-
}>;
|
|
265
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
266
|
-
readonly location: Schema.Struct<{
|
|
267
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
268
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
269
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
270
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
271
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
272
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
273
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
274
|
-
}>, never, never>;
|
|
275
|
-
}>;
|
|
276
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
277
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
278
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
279
|
-
readonly action: Schema.String;
|
|
280
|
-
readonly resource: Schema.String;
|
|
281
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
282
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
283
|
-
readonly action: Schema.String;
|
|
284
|
-
readonly resource: Schema.String;
|
|
285
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
286
|
-
}>>>, never, never>;
|
|
287
213
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
288
214
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
289
215
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -325,6 +251,50 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
325
251
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
326
252
|
}>>>, never, never>;
|
|
327
253
|
}>>, never, never>;
|
|
254
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
255
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
256
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
257
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
258
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
259
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
260
|
+
}>, never, never>;
|
|
261
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
262
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
263
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
264
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
265
|
+
};
|
|
266
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
267
|
+
readonly type: Schema.Literal<"before">;
|
|
268
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
269
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
270
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
271
|
+
};
|
|
272
|
+
}>, Schema.Struct<{
|
|
273
|
+
readonly type: Schema.Literal<"through">;
|
|
274
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
275
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
276
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
277
|
+
};
|
|
278
|
+
}>]>;
|
|
279
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
280
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
281
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
282
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
283
|
+
};
|
|
284
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
285
|
+
readonly type: Schema.Literal<"before">;
|
|
286
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
287
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
288
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
289
|
+
};
|
|
290
|
+
}>, Schema.Struct<{
|
|
291
|
+
readonly type: Schema.Literal<"through">;
|
|
292
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
293
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
294
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
295
|
+
};
|
|
296
|
+
}>]>;
|
|
297
|
+
}>>, never, never>;
|
|
328
298
|
}>>;
|
|
329
299
|
readonly cursor: Schema.Struct<{
|
|
330
300
|
readonly previous: Schema.optional<Schema.brand<Schema.String, "SessionsCursor"> & {
|
|
@@ -339,7 +309,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
339
309
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
340
310
|
readonly search?: string | undefined;
|
|
341
311
|
readonly order?: "asc" | "desc" | undefined;
|
|
342
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
343
312
|
} | {
|
|
344
313
|
readonly project: string & import("effect/Brand").Brand<"Project.ID">;
|
|
345
314
|
readonly anchor: {
|
|
@@ -351,7 +320,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
351
320
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
352
321
|
readonly search?: string | undefined;
|
|
353
322
|
readonly order?: "asc" | "desc" | undefined;
|
|
354
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
355
323
|
} | {
|
|
356
324
|
readonly anchor: {
|
|
357
325
|
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -361,7 +329,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
361
329
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
362
330
|
readonly search?: string | undefined;
|
|
363
331
|
readonly order?: "asc" | "desc" | undefined;
|
|
364
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
365
332
|
}, "Invalid cursor", never>;
|
|
366
333
|
}>;
|
|
367
334
|
readonly next: Schema.optional<Schema.brand<Schema.String, "SessionsCursor"> & {
|
|
@@ -376,7 +343,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
376
343
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
377
344
|
readonly search?: string | undefined;
|
|
378
345
|
readonly order?: "asc" | "desc" | undefined;
|
|
379
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
380
346
|
} | {
|
|
381
347
|
readonly project: string & import("effect/Brand").Brand<"Project.ID">;
|
|
382
348
|
readonly anchor: {
|
|
@@ -388,7 +354,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
388
354
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
389
355
|
readonly search?: string | undefined;
|
|
390
356
|
readonly order?: "asc" | "desc" | undefined;
|
|
391
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
392
357
|
} | {
|
|
393
358
|
readonly anchor: {
|
|
394
359
|
readonly id: string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -398,11 +363,10 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
398
363
|
readonly parentID?: (string & import("effect/Brand").Brand<"SessionID">) | null | undefined;
|
|
399
364
|
readonly search?: string | undefined;
|
|
400
365
|
readonly order?: "asc" | "desc" | undefined;
|
|
401
|
-
readonly workspace?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
402
366
|
}, "Invalid cursor", never>;
|
|
403
367
|
}>;
|
|
404
368
|
}>;
|
|
405
|
-
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof InvalidCursorError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.stats", "GET", "/api/session/stats", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
369
|
+
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof InvalidCursorError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.stats", "GET", "/api/experimental/session/stats", never, Schema.toCodecStringTree<Schema.Struct<{
|
|
406
370
|
readonly from: Schema.optional<Schema.NumberFromString>;
|
|
407
371
|
readonly to: Schema.optional<Schema.NumberFromString>;
|
|
408
372
|
readonly project: Schema.optional<Schema.brand<Schema.String, "Project.ID"> & {
|
|
@@ -536,13 +500,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
536
500
|
}>;
|
|
537
501
|
readonly location: Schema.optional<Schema.Struct<{
|
|
538
502
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
539
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
540
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
541
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
542
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
543
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
544
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
545
|
-
}>, never, never>;
|
|
546
503
|
}>>;
|
|
547
504
|
readonly metadata: Schema.optional<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
548
505
|
readonly permissions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
@@ -552,58 +509,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
552
509
|
}>>>;
|
|
553
510
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
554
511
|
readonly data: Schema.Struct<{
|
|
512
|
+
readonly location: Schema.Struct<{
|
|
513
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
514
|
+
}>;
|
|
555
515
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
556
516
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
557
517
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
558
518
|
};
|
|
559
|
-
readonly
|
|
560
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
561
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
562
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
563
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
564
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
565
|
-
}>, never, never>;
|
|
566
|
-
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
567
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
568
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
569
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
570
|
-
};
|
|
571
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
572
|
-
readonly type: Schema.Literal<"before">;
|
|
573
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
574
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
575
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
576
|
-
};
|
|
577
|
-
}>, Schema.Struct<{
|
|
578
|
-
readonly type: Schema.Literal<"through">;
|
|
579
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
580
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
581
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
582
|
-
};
|
|
583
|
-
}>]>;
|
|
584
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
585
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
586
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
587
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
588
|
-
};
|
|
589
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
590
|
-
readonly type: Schema.Literal<"before">;
|
|
591
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
592
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
593
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
594
|
-
};
|
|
595
|
-
}>, Schema.Struct<{
|
|
596
|
-
readonly type: Schema.Literal<"through">;
|
|
597
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
598
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
599
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
600
|
-
};
|
|
601
|
-
}>]>;
|
|
602
|
-
}>>, never, never>;
|
|
519
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
603
520
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
604
521
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
605
522
|
};
|
|
606
|
-
readonly
|
|
523
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
524
|
+
readonly time: Schema.Struct<{
|
|
525
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
526
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
527
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
528
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
529
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
530
|
+
}>;
|
|
531
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
532
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
533
|
+
};
|
|
607
534
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
608
535
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
609
536
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -649,9 +576,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
649
576
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
650
577
|
};
|
|
651
578
|
}>, never, never>;
|
|
652
|
-
readonly
|
|
653
|
-
|
|
654
|
-
|
|
579
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
580
|
+
readonly action: Schema.String;
|
|
581
|
+
readonly resource: Schema.String;
|
|
582
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
583
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
584
|
+
readonly action: Schema.String;
|
|
585
|
+
readonly resource: Schema.String;
|
|
586
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
587
|
+
}>>>, never, never>;
|
|
588
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
589
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
655
590
|
readonly tokens: Schema.Struct<{
|
|
656
591
|
readonly input: Schema.Finite;
|
|
657
592
|
readonly output: Schema.Finite;
|
|
@@ -662,35 +597,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
662
597
|
}>;
|
|
663
598
|
}>;
|
|
664
599
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
665
|
-
readonly time: Schema.Struct<{
|
|
666
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
667
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
668
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
669
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
670
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
671
|
-
}>;
|
|
672
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
673
|
-
readonly location: Schema.Struct<{
|
|
674
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
675
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
676
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
677
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
678
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
679
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
680
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
681
|
-
}>, never, never>;
|
|
682
|
-
}>;
|
|
683
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
684
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
685
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
686
|
-
readonly action: Schema.String;
|
|
687
|
-
readonly resource: Schema.String;
|
|
688
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
689
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
690
|
-
readonly action: Schema.String;
|
|
691
|
-
readonly resource: Schema.String;
|
|
692
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
693
|
-
}>>>, never, never>;
|
|
694
600
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
695
601
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
696
602
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -732,23 +638,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
732
638
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
733
639
|
}>>>, never, never>;
|
|
734
640
|
}>>, never, never>;
|
|
735
|
-
}>;
|
|
736
|
-
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.import", "POST", "/api/session/import", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
737
|
-
readonly location: Schema.optional<Schema.Struct<{
|
|
738
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
739
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
740
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
741
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
742
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
743
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
744
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
745
|
-
}>, never, never>;
|
|
746
|
-
}>>;
|
|
747
|
-
readonly info: Schema.Struct<{
|
|
748
|
-
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
749
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
750
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
751
|
-
};
|
|
752
641
|
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
753
642
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
754
643
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -793,10 +682,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
793
682
|
};
|
|
794
683
|
}>]>;
|
|
795
684
|
}>>, never, never>;
|
|
685
|
+
}>;
|
|
686
|
+
}>>, never, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.import", "POST", "/api/experimental/session/import", never, never, Schema.toCodecJson<Schema.Struct<{
|
|
687
|
+
readonly location: Schema.optional<Schema.Struct<{
|
|
688
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
689
|
+
}>>;
|
|
690
|
+
readonly info: Schema.Struct<{
|
|
691
|
+
readonly location: Schema.Struct<{
|
|
692
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
693
|
+
}>;
|
|
694
|
+
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
695
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
696
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
697
|
+
};
|
|
698
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
796
699
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
797
700
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
798
701
|
};
|
|
799
|
-
readonly
|
|
702
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
703
|
+
readonly time: Schema.Struct<{
|
|
704
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
705
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
706
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
707
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
708
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
709
|
+
}>;
|
|
710
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
711
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
712
|
+
};
|
|
800
713
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
801
714
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
802
715
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -842,9 +755,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
842
755
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
843
756
|
};
|
|
844
757
|
}>, never, never>;
|
|
845
|
-
readonly
|
|
846
|
-
|
|
847
|
-
|
|
758
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
759
|
+
readonly action: Schema.String;
|
|
760
|
+
readonly resource: Schema.String;
|
|
761
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
762
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
763
|
+
readonly action: Schema.String;
|
|
764
|
+
readonly resource: Schema.String;
|
|
765
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
766
|
+
}>>>, never, never>;
|
|
767
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
768
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
848
769
|
readonly tokens: Schema.Struct<{
|
|
849
770
|
readonly input: Schema.Finite;
|
|
850
771
|
readonly output: Schema.Finite;
|
|
@@ -855,35 +776,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
855
776
|
}>;
|
|
856
777
|
}>;
|
|
857
778
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
858
|
-
readonly time: Schema.Struct<{
|
|
859
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
860
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
861
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
862
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
863
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
864
|
-
}>;
|
|
865
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
866
|
-
readonly location: Schema.Struct<{
|
|
867
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
868
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
869
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
870
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
871
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
872
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
873
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
874
|
-
}>, never, never>;
|
|
875
|
-
}>;
|
|
876
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
877
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
878
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
879
|
-
readonly action: Schema.String;
|
|
880
|
-
readonly resource: Schema.String;
|
|
881
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
882
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
883
|
-
readonly action: Schema.String;
|
|
884
|
-
readonly resource: Schema.String;
|
|
885
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
886
|
-
}>>>, never, never>;
|
|
887
779
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
888
780
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
889
781
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -909,21 +801,65 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
909
801
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
910
802
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
911
803
|
};
|
|
912
|
-
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
913
|
-
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
914
|
-
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
915
|
-
readonly file: Schema.String;
|
|
916
|
-
readonly patch: Schema.String;
|
|
917
|
-
readonly additions: Schema.Int;
|
|
918
|
-
readonly deletions: Schema.Int;
|
|
919
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
920
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
921
|
-
readonly file: Schema.String;
|
|
922
|
-
readonly patch: Schema.String;
|
|
923
|
-
readonly additions: Schema.Int;
|
|
924
|
-
readonly deletions: Schema.Int;
|
|
925
|
-
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
926
|
-
}>>>, never, never>;
|
|
804
|
+
readonly partID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
805
|
+
readonly snapshot: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Snapshot.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Snapshot.ID">>, never, never>;
|
|
806
|
+
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
807
|
+
readonly file: Schema.String;
|
|
808
|
+
readonly patch: Schema.String;
|
|
809
|
+
readonly additions: Schema.Int;
|
|
810
|
+
readonly deletions: Schema.Int;
|
|
811
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
812
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
813
|
+
readonly file: Schema.String;
|
|
814
|
+
readonly patch: Schema.String;
|
|
815
|
+
readonly additions: Schema.Int;
|
|
816
|
+
readonly deletions: Schema.Int;
|
|
817
|
+
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
818
|
+
}>>>, never, never>;
|
|
819
|
+
}>>, never, never>;
|
|
820
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
821
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
822
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
823
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
824
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
825
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
826
|
+
}>, never, never>;
|
|
827
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
828
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
829
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
830
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
831
|
+
};
|
|
832
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
833
|
+
readonly type: Schema.Literal<"before">;
|
|
834
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
835
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
836
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
837
|
+
};
|
|
838
|
+
}>, Schema.Struct<{
|
|
839
|
+
readonly type: Schema.Literal<"through">;
|
|
840
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
841
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
842
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
843
|
+
};
|
|
844
|
+
}>]>;
|
|
845
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
846
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
847
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
848
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
849
|
+
};
|
|
850
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
851
|
+
readonly type: Schema.Literal<"before">;
|
|
852
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
853
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
854
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
855
|
+
};
|
|
856
|
+
}>, Schema.Struct<{
|
|
857
|
+
readonly type: Schema.Literal<"through">;
|
|
858
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
859
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
860
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
861
|
+
};
|
|
862
|
+
}>]>;
|
|
927
863
|
}>>, never, never>;
|
|
928
864
|
}>;
|
|
929
865
|
readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1017,50 +953,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1017
953
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1018
954
|
}>;
|
|
1019
955
|
}>, Schema.Struct<{
|
|
1020
|
-
readonly type: Schema.tag<"location-switched">;
|
|
1021
956
|
readonly location: Schema.Struct<{
|
|
1022
957
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1023
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1024
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1025
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1026
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1027
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1028
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1029
|
-
}>, never, never>;
|
|
1030
958
|
}>;
|
|
1031
|
-
readonly
|
|
1032
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1033
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
1034
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1035
|
-
}>, never, never>;
|
|
1036
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1037
|
-
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1038
|
-
readonly location: Schema.Struct<{
|
|
1039
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1040
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1041
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1042
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1043
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1044
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1045
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1046
|
-
}>, never, never>;
|
|
1047
|
-
}>;
|
|
1048
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
1049
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1050
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
1051
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1052
|
-
}>, never, never>;
|
|
1053
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1054
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
959
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
1055
960
|
readonly location: Schema.Struct<{
|
|
1056
961
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1057
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1058
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1059
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1060
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1061
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1062
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1063
|
-
}>, never, never>;
|
|
1064
962
|
}>;
|
|
1065
963
|
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
1066
964
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -1068,15 +966,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1068
966
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1069
967
|
}>, never, never>;
|
|
1070
968
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1071
|
-
}
|
|
969
|
+
}>>;
|
|
1072
970
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1073
971
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1074
972
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1075
973
|
};
|
|
974
|
+
readonly type: Schema.tag<"location-switched">;
|
|
1076
975
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
976
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
977
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
978
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
979
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
980
|
+
}>, never, never>;
|
|
1077
981
|
readonly time: Schema.Struct<{
|
|
1078
982
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1079
983
|
}>;
|
|
984
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1080
985
|
}>, Schema.Struct<{
|
|
1081
986
|
readonly text: Schema.String;
|
|
1082
987
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
@@ -1648,58 +1553,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1648
1553
|
}>]>>;
|
|
1649
1554
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
1650
1555
|
readonly data: Schema.Struct<{
|
|
1556
|
+
readonly location: Schema.Struct<{
|
|
1557
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1558
|
+
}>;
|
|
1651
1559
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
1652
1560
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1653
1561
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1654
1562
|
};
|
|
1655
|
-
readonly
|
|
1656
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1657
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1658
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
1659
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1660
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1661
|
-
}>, never, never>;
|
|
1662
|
-
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1663
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1664
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1665
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1666
|
-
};
|
|
1667
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1668
|
-
readonly type: Schema.Literal<"before">;
|
|
1669
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1670
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1671
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1672
|
-
};
|
|
1673
|
-
}>, Schema.Struct<{
|
|
1674
|
-
readonly type: Schema.Literal<"through">;
|
|
1675
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1676
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1677
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1678
|
-
};
|
|
1679
|
-
}>]>;
|
|
1680
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1681
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1682
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1683
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1684
|
-
};
|
|
1685
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1686
|
-
readonly type: Schema.Literal<"before">;
|
|
1687
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1688
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1689
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1690
|
-
};
|
|
1691
|
-
}>, Schema.Struct<{
|
|
1692
|
-
readonly type: Schema.Literal<"through">;
|
|
1693
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1694
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1695
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1696
|
-
};
|
|
1697
|
-
}>]>;
|
|
1698
|
-
}>>, never, never>;
|
|
1563
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1699
1564
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
1700
1565
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1701
1566
|
};
|
|
1702
|
-
readonly
|
|
1567
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1568
|
+
readonly time: Schema.Struct<{
|
|
1569
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1570
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1571
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1572
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1573
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1574
|
+
}>;
|
|
1575
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1576
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1577
|
+
};
|
|
1703
1578
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1704
1579
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1705
1580
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -1745,9 +1620,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1745
1620
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1746
1621
|
};
|
|
1747
1622
|
}>, never, never>;
|
|
1748
|
-
readonly
|
|
1749
|
-
|
|
1750
|
-
|
|
1623
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1624
|
+
readonly action: Schema.String;
|
|
1625
|
+
readonly resource: Schema.String;
|
|
1626
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1627
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1628
|
+
readonly action: Schema.String;
|
|
1629
|
+
readonly resource: Schema.String;
|
|
1630
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1631
|
+
}>>>, never, never>;
|
|
1632
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
1633
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1751
1634
|
readonly tokens: Schema.Struct<{
|
|
1752
1635
|
readonly input: Schema.Finite;
|
|
1753
1636
|
readonly output: Schema.Finite;
|
|
@@ -1758,35 +1641,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1758
1641
|
}>;
|
|
1759
1642
|
}>;
|
|
1760
1643
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
1761
|
-
readonly time: Schema.Struct<{
|
|
1762
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1763
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1764
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1765
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1766
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1767
|
-
}>;
|
|
1768
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1769
|
-
readonly location: Schema.Struct<{
|
|
1770
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1771
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1772
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1773
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1774
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1775
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1776
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1777
|
-
}>, never, never>;
|
|
1778
|
-
}>;
|
|
1779
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1780
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1781
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1782
|
-
readonly action: Schema.String;
|
|
1783
|
-
readonly resource: Schema.String;
|
|
1784
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1785
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1786
|
-
readonly action: Schema.String;
|
|
1787
|
-
readonly resource: Schema.String;
|
|
1788
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1789
|
-
}>>>, never, never>;
|
|
1790
1644
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1791
1645
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1792
1646
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -1828,69 +1682,83 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1828
1682
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
1829
1683
|
}>>>, never, never>;
|
|
1830
1684
|
}>>, never, never>;
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
readonly data: Schema.Struct<{
|
|
1841
|
-
readonly info: Schema.Struct<{
|
|
1842
|
-
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
1685
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
1686
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1687
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1688
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
1689
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1690
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1691
|
+
}>, never, never>;
|
|
1692
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1693
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1843
1694
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1844
1695
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1845
1696
|
};
|
|
1846
|
-
readonly
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1697
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1698
|
+
readonly type: Schema.Literal<"before">;
|
|
1699
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1700
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1701
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1702
|
+
};
|
|
1703
|
+
}>, Schema.Struct<{
|
|
1704
|
+
readonly type: Schema.Literal<"through">;
|
|
1705
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1706
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1707
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1708
|
+
};
|
|
1709
|
+
}>]>;
|
|
1710
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1711
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1850
1712
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1851
1713
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1852
|
-
}
|
|
1853
|
-
readonly
|
|
1854
|
-
readonly
|
|
1855
|
-
|
|
1856
|
-
|
|
1714
|
+
};
|
|
1715
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1716
|
+
readonly type: Schema.Literal<"before">;
|
|
1717
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1718
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1719
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1857
1720
|
};
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
};
|
|
1864
|
-
}>, Schema.Struct<{
|
|
1865
|
-
readonly type: Schema.Literal<"through">;
|
|
1866
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1867
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1868
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1869
|
-
};
|
|
1870
|
-
}>]>;
|
|
1871
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1872
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1873
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1874
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1721
|
+
}>, Schema.Struct<{
|
|
1722
|
+
readonly type: Schema.Literal<"through">;
|
|
1723
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1724
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1725
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1875
1726
|
};
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1727
|
+
}>]>;
|
|
1728
|
+
}>>, never, never>;
|
|
1729
|
+
}>;
|
|
1730
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.export", "GET", "/api/experimental/session/:sessionID/export", Schema.toCodecStringTree<Schema.Struct<{
|
|
1731
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1732
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1733
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1734
|
+
};
|
|
1735
|
+
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
1736
|
+
readonly sanitize: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
1737
|
+
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
1738
|
+
readonly data: Schema.Struct<{
|
|
1739
|
+
readonly info: Schema.Struct<{
|
|
1740
|
+
readonly location: Schema.Struct<{
|
|
1741
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1742
|
+
}>;
|
|
1743
|
+
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
1744
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1745
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1746
|
+
};
|
|
1747
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1890
1748
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
1891
1749
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
1892
1750
|
};
|
|
1893
|
-
readonly
|
|
1751
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1752
|
+
readonly time: Schema.Struct<{
|
|
1753
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1754
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1755
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1756
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1757
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1758
|
+
}>;
|
|
1759
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
1760
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
1761
|
+
};
|
|
1894
1762
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1895
1763
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
1896
1764
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -1936,9 +1804,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1936
1804
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1937
1805
|
};
|
|
1938
1806
|
}>, never, never>;
|
|
1939
|
-
readonly
|
|
1940
|
-
|
|
1941
|
-
|
|
1807
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1808
|
+
readonly action: Schema.String;
|
|
1809
|
+
readonly resource: Schema.String;
|
|
1810
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1811
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1812
|
+
readonly action: Schema.String;
|
|
1813
|
+
readonly resource: Schema.String;
|
|
1814
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1815
|
+
}>>>, never, never>;
|
|
1816
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
1817
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1942
1818
|
readonly tokens: Schema.Struct<{
|
|
1943
1819
|
readonly input: Schema.Finite;
|
|
1944
1820
|
readonly output: Schema.Finite;
|
|
@@ -1949,35 +1825,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
1949
1825
|
}>;
|
|
1950
1826
|
}>;
|
|
1951
1827
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
1952
|
-
readonly time: Schema.Struct<{
|
|
1953
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1954
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
1955
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1956
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1957
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
1958
|
-
}>;
|
|
1959
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
1960
|
-
readonly location: Schema.Struct<{
|
|
1961
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
1962
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1963
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1964
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1965
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
1966
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1967
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
1968
|
-
}>, never, never>;
|
|
1969
|
-
}>;
|
|
1970
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
1971
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
1972
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
1973
|
-
readonly action: Schema.String;
|
|
1974
|
-
readonly resource: Schema.String;
|
|
1975
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1976
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1977
|
-
readonly action: Schema.String;
|
|
1978
|
-
readonly resource: Schema.String;
|
|
1979
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
1980
|
-
}>>>, never, never>;
|
|
1981
1828
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1982
1829
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1983
1830
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2019,6 +1866,50 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2019
1866
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
2020
1867
|
}>>>, never, never>;
|
|
2021
1868
|
}>>, never, never>;
|
|
1869
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
1870
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1871
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1872
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
1873
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1874
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1875
|
+
}>, never, never>;
|
|
1876
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
1877
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1878
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1879
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1880
|
+
};
|
|
1881
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1882
|
+
readonly type: Schema.Literal<"before">;
|
|
1883
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1884
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1885
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1886
|
+
};
|
|
1887
|
+
}>, Schema.Struct<{
|
|
1888
|
+
readonly type: Schema.Literal<"through">;
|
|
1889
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1890
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1891
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1892
|
+
};
|
|
1893
|
+
}>]>;
|
|
1894
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
1895
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
1896
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
1897
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
1898
|
+
};
|
|
1899
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
1900
|
+
readonly type: Schema.Literal<"before">;
|
|
1901
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1902
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1903
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1904
|
+
};
|
|
1905
|
+
}>, Schema.Struct<{
|
|
1906
|
+
readonly type: Schema.Literal<"through">;
|
|
1907
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
1908
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1909
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1910
|
+
};
|
|
1911
|
+
}>]>;
|
|
1912
|
+
}>>, never, never>;
|
|
2022
1913
|
}>;
|
|
2023
1914
|
readonly messages: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
2024
1915
|
readonly type: Schema.tag<"agent-switched">;
|
|
@@ -2111,50 +2002,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2111
2002
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2112
2003
|
}>;
|
|
2113
2004
|
}>, Schema.Struct<{
|
|
2114
|
-
readonly type: Schema.tag<"location-switched">;
|
|
2115
2005
|
readonly location: Schema.Struct<{
|
|
2116
2006
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2117
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2118
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2119
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2120
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2121
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2122
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2123
|
-
}>, never, never>;
|
|
2124
2007
|
}>;
|
|
2125
|
-
readonly
|
|
2126
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2127
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2128
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2129
|
-
}>, never, never>;
|
|
2130
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2131
|
-
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2132
|
-
readonly location: Schema.Struct<{
|
|
2133
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2134
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2135
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2136
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2137
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2138
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2139
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2140
|
-
}>, never, never>;
|
|
2141
|
-
}>;
|
|
2142
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2143
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2144
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2145
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2146
|
-
}>, never, never>;
|
|
2147
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2148
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2008
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
2149
2009
|
readonly location: Schema.Struct<{
|
|
2150
2010
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2151
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2152
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2153
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2154
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2155
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2156
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2157
|
-
}>, never, never>;
|
|
2158
2011
|
}>;
|
|
2159
2012
|
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2160
2013
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -2162,15 +2015,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2162
2015
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2163
2016
|
}>, never, never>;
|
|
2164
2017
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2165
|
-
}
|
|
2018
|
+
}>>;
|
|
2166
2019
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2167
2020
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2168
2021
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2169
2022
|
};
|
|
2023
|
+
readonly type: Schema.tag<"location-switched">;
|
|
2170
2024
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
2025
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2026
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2027
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
2028
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2029
|
+
}>, never, never>;
|
|
2171
2030
|
readonly time: Schema.Struct<{
|
|
2172
2031
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2173
2032
|
}>;
|
|
2033
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2174
2034
|
}>, Schema.Struct<{
|
|
2175
2035
|
readonly text: Schema.String;
|
|
2176
2036
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
@@ -2755,58 +2615,28 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2755
2615
|
};
|
|
2756
2616
|
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
2757
2617
|
readonly data: Schema.Struct<{
|
|
2618
|
+
readonly location: Schema.Struct<{
|
|
2619
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2620
|
+
}>;
|
|
2758
2621
|
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
2759
2622
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2760
2623
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2761
2624
|
};
|
|
2762
|
-
readonly
|
|
2763
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2764
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2765
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
2766
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2767
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2768
|
-
}>, never, never>;
|
|
2769
|
-
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2770
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2771
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2772
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2773
|
-
};
|
|
2774
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
2775
|
-
readonly type: Schema.Literal<"before">;
|
|
2776
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2777
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2778
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2779
|
-
};
|
|
2780
|
-
}>, Schema.Struct<{
|
|
2781
|
-
readonly type: Schema.Literal<"through">;
|
|
2782
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2783
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2784
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2785
|
-
};
|
|
2786
|
-
}>]>;
|
|
2787
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2788
|
-
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2789
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2790
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2791
|
-
};
|
|
2792
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
2793
|
-
readonly type: Schema.Literal<"before">;
|
|
2794
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2795
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2796
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2797
|
-
};
|
|
2798
|
-
}>, Schema.Struct<{
|
|
2799
|
-
readonly type: Schema.Literal<"through">;
|
|
2800
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2801
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2802
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2803
|
-
};
|
|
2804
|
-
}>]>;
|
|
2805
|
-
}>>, never, never>;
|
|
2625
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2806
2626
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
2807
2627
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
2808
2628
|
};
|
|
2809
|
-
readonly
|
|
2629
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2630
|
+
readonly time: Schema.Struct<{
|
|
2631
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2632
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2633
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2634
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2635
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2636
|
+
}>;
|
|
2637
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2638
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2639
|
+
};
|
|
2810
2640
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2811
2641
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
2812
2642
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -2842,49 +2672,16 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2842
2672
|
azure: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2843
2673
|
openrouter: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2844
2674
|
mistral: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2845
|
-
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2846
|
-
};
|
|
2847
|
-
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2848
|
-
}> & {
|
|
2849
|
-
parse: (input: string) => {
|
|
2850
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2851
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2852
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2853
|
-
};
|
|
2854
|
-
}>, never, never>;
|
|
2855
|
-
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2856
|
-
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2857
|
-
};
|
|
2858
|
-
readonly tokens: Schema.Struct<{
|
|
2859
|
-
readonly input: Schema.Finite;
|
|
2860
|
-
readonly output: Schema.Finite;
|
|
2861
|
-
readonly reasoning: Schema.Finite;
|
|
2862
|
-
readonly cache: Schema.Struct<{
|
|
2863
|
-
readonly read: Schema.Finite;
|
|
2864
|
-
readonly write: Schema.Finite;
|
|
2865
|
-
}>;
|
|
2866
|
-
}>;
|
|
2867
|
-
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
2868
|
-
readonly time: Schema.Struct<{
|
|
2869
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2870
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2871
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2872
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2873
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2874
|
-
}>;
|
|
2875
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2876
|
-
readonly location: Schema.Struct<{
|
|
2877
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2878
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2879
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2880
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2881
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
2882
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2883
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
2884
|
-
}>, never, never>;
|
|
2885
|
-
}>;
|
|
2886
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2887
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
2675
|
+
gitlab: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2676
|
+
};
|
|
2677
|
+
readonly variant: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Model.VariantID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Model.VariantID">>, never, never>;
|
|
2678
|
+
}> & {
|
|
2679
|
+
parse: (input: string) => {
|
|
2680
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2681
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2682
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2683
|
+
};
|
|
2684
|
+
}>, never, never>;
|
|
2888
2685
|
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2889
2686
|
readonly action: Schema.String;
|
|
2890
2687
|
readonly resource: Schema.String;
|
|
@@ -2894,6 +2691,18 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2894
2691
|
readonly resource: Schema.String;
|
|
2895
2692
|
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
2896
2693
|
}>>>, never, never>;
|
|
2694
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
2695
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
2696
|
+
readonly tokens: Schema.Struct<{
|
|
2697
|
+
readonly input: Schema.Finite;
|
|
2698
|
+
readonly output: Schema.Finite;
|
|
2699
|
+
readonly reasoning: Schema.Finite;
|
|
2700
|
+
readonly cache: Schema.Struct<{
|
|
2701
|
+
readonly read: Schema.Finite;
|
|
2702
|
+
readonly write: Schema.Finite;
|
|
2703
|
+
}>;
|
|
2704
|
+
}>;
|
|
2705
|
+
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
2897
2706
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2898
2707
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2899
2708
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -2935,33 +2744,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
2935
2744
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
2936
2745
|
}>>>, never, never>;
|
|
2937
2746
|
}>>, never, never>;
|
|
2938
|
-
}>;
|
|
2939
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.remove", "DELETE", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
|
|
2940
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2941
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2942
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2943
|
-
};
|
|
2944
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.fork", "POST", "/api/session/:sessionID/fork", Schema.toCodecStringTree<Schema.Struct<{
|
|
2945
|
-
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2946
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2947
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2948
|
-
};
|
|
2949
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2950
|
-
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
2951
|
-
readonly type: Schema.Literal<"before">;
|
|
2952
|
-
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2953
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2954
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2955
|
-
};
|
|
2956
|
-
}>, Schema.Struct<{
|
|
2957
|
-
readonly type: Schema.Literal<"through">;
|
|
2958
|
-
}>]>;
|
|
2959
|
-
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2960
|
-
readonly data: Schema.Struct<{
|
|
2961
|
-
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
2962
|
-
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2963
|
-
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2964
|
-
};
|
|
2965
2747
|
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
2966
2748
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2967
2749
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3006,10 +2788,46 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3006
2788
|
};
|
|
3007
2789
|
}>]>;
|
|
3008
2790
|
}>>, never, never>;
|
|
2791
|
+
}>;
|
|
2792
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.remove", "DELETE", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
|
|
2793
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2794
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2795
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2796
|
+
};
|
|
2797
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.fork", "POST", "/api/session/:sessionID/fork", Schema.toCodecStringTree<Schema.Struct<{
|
|
2798
|
+
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2799
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2800
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2801
|
+
};
|
|
2802
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2803
|
+
readonly before: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2804
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2805
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2806
|
+
}>;
|
|
2807
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
2808
|
+
readonly data: Schema.Struct<{
|
|
2809
|
+
readonly location: Schema.Struct<{
|
|
2810
|
+
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
2811
|
+
}>;
|
|
2812
|
+
readonly id: Schema.brand<Schema.String, "SessionID"> & {
|
|
2813
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2814
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2815
|
+
};
|
|
2816
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3009
2817
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
3010
2818
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3011
2819
|
};
|
|
3012
|
-
readonly
|
|
2820
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
2821
|
+
readonly time: Schema.Struct<{
|
|
2822
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2823
|
+
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
2824
|
+
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2825
|
+
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2826
|
+
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
2827
|
+
}>;
|
|
2828
|
+
readonly cost: Schema.brand<Schema.Finite, "Money.USD"> & {
|
|
2829
|
+
zero: number & import("effect/Brand").Brand<"Money.USD">;
|
|
2830
|
+
};
|
|
3013
2831
|
readonly model: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3014
2832
|
readonly id: Schema.brand<Schema.String, "Model.ID">;
|
|
3015
2833
|
readonly providerID: Schema.brand<Schema.String, "Provider.ID"> & {
|
|
@@ -3055,9 +2873,17 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3055
2873
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3056
2874
|
};
|
|
3057
2875
|
}>, never, never>;
|
|
3058
|
-
readonly
|
|
3059
|
-
|
|
3060
|
-
|
|
2876
|
+
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
2877
|
+
readonly action: Schema.String;
|
|
2878
|
+
readonly resource: Schema.String;
|
|
2879
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
2880
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
2881
|
+
readonly action: Schema.String;
|
|
2882
|
+
readonly resource: Schema.String;
|
|
2883
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
2884
|
+
}>>>, never, never>;
|
|
2885
|
+
readonly agent: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Agent.ID">>>, Schema.optionalKey<Schema.brand<Schema.String, "Agent.ID">>, never, never>;
|
|
2886
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3061
2887
|
readonly tokens: Schema.Struct<{
|
|
3062
2888
|
readonly input: Schema.Finite;
|
|
3063
2889
|
readonly output: Schema.Finite;
|
|
@@ -3068,35 +2894,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3068
2894
|
}>;
|
|
3069
2895
|
}>;
|
|
3070
2896
|
readonly outcome: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>>, Schema.optionalKey<Schema.Literals<readonly ["succeeded", "failed", "interrupted"]>>, never, never>;
|
|
3071
|
-
readonly time: Schema.Struct<{
|
|
3072
|
-
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3073
|
-
readonly updated: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3074
|
-
readonly idle: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
3075
|
-
readonly viewed: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
3076
|
-
readonly archived: Schema.decodeTo<Schema.optional<Schema.toType<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>>, Schema.optionalKey<Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>>, never, never>;
|
|
3077
|
-
}>;
|
|
3078
|
-
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
3079
|
-
readonly location: Schema.Struct<{
|
|
3080
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3081
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3082
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3083
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3084
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3085
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3086
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3087
|
-
}>, never, never>;
|
|
3088
|
-
}>;
|
|
3089
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3090
|
-
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>, never, never>;
|
|
3091
|
-
readonly permissions: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
3092
|
-
readonly action: Schema.String;
|
|
3093
|
-
readonly resource: Schema.String;
|
|
3094
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
3095
|
-
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
3096
|
-
readonly action: Schema.String;
|
|
3097
|
-
readonly resource: Schema.String;
|
|
3098
|
-
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
3099
|
-
}>>>, never, never>;
|
|
3100
2897
|
readonly revert: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3101
2898
|
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3102
2899
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
@@ -3138,6 +2935,50 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3138
2935
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
3139
2936
|
}>>>, never, never>;
|
|
3140
2937
|
}>>, never, never>;
|
|
2938
|
+
readonly parentID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "SessionID"> & {
|
|
2939
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2940
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2941
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "SessionID"> & {
|
|
2942
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2943
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2944
|
+
}>, never, never>;
|
|
2945
|
+
readonly fork: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
2946
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2947
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2948
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2949
|
+
};
|
|
2950
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
2951
|
+
readonly type: Schema.Literal<"before">;
|
|
2952
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2953
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2954
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2955
|
+
};
|
|
2956
|
+
}>, Schema.Struct<{
|
|
2957
|
+
readonly type: Schema.Literal<"through">;
|
|
2958
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2959
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2960
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2961
|
+
};
|
|
2962
|
+
}>]>;
|
|
2963
|
+
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
2964
|
+
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
2965
|
+
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
2966
|
+
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
2967
|
+
};
|
|
2968
|
+
readonly boundary: Schema.Union<readonly [Schema.Struct<{
|
|
2969
|
+
readonly type: Schema.Literal<"before">;
|
|
2970
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2971
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2972
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2973
|
+
};
|
|
2974
|
+
}>, Schema.Struct<{
|
|
2975
|
+
readonly type: Schema.Literal<"through">;
|
|
2976
|
+
readonly messageID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
2977
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2978
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2979
|
+
};
|
|
2980
|
+
}>]>;
|
|
2981
|
+
}>>, never, never>;
|
|
3141
2982
|
}>;
|
|
3142
2983
|
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.switchAgent", "POST", "/api/session/:sessionID/agent", Schema.toCodecStringTree<Schema.Struct<{
|
|
3143
2984
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3175,13 +3016,18 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3175
3016
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
3176
3017
|
};
|
|
3177
3018
|
};
|
|
3178
|
-
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
3019
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.update", "PATCH", "/api/session/:sessionID", Schema.toCodecStringTree<Schema.Struct<{
|
|
3179
3020
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3180
3021
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3181
3022
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3182
3023
|
};
|
|
3183
3024
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3184
|
-
readonly title: Schema.String
|
|
3025
|
+
readonly title: Schema.optional<Schema.String>;
|
|
3026
|
+
readonly permissions: Schema.optional<Schema.$Array<Schema.Struct<{
|
|
3027
|
+
readonly action: Schema.String;
|
|
3028
|
+
readonly resource: Schema.String;
|
|
3029
|
+
readonly effect: Schema.Literals<readonly ["allow", "deny", "ask"]>;
|
|
3030
|
+
}>>>;
|
|
3185
3031
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.move", "POST", "/api/session/:sessionID/move", Schema.toCodecStringTree<Schema.Struct<{
|
|
3186
3032
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3187
3033
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3190,13 +3036,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3190
3036
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3191
3037
|
readonly delivery: Schema.optional<Schema.Literals<readonly ["steer", "queue"]>>;
|
|
3192
3038
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3193
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3194
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3195
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3196
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3197
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3198
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3199
|
-
}>, never, never>;
|
|
3200
3039
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof InvalidRequestError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.prompt", "POST", "/api/session/:sessionID/prompt", Schema.toCodecStringTree<Schema.Struct<{
|
|
3201
3040
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3202
3041
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3449,7 +3288,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3449
3288
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3450
3289
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3451
3290
|
};
|
|
3452
|
-
readonly
|
|
3291
|
+
readonly time: Schema.Struct<{
|
|
3292
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3293
|
+
}>;
|
|
3453
3294
|
}>;
|
|
3454
3295
|
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.command", "POST", "/api/session/:sessionID/command", Schema.toCodecStringTree<Schema.Struct<{
|
|
3455
3296
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3554,18 +3395,14 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3554
3395
|
readonly text: Schema.String;
|
|
3555
3396
|
}>>, never, never>;
|
|
3556
3397
|
}>>>, never, never>;
|
|
3557
|
-
readonly
|
|
3558
|
-
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandExecutionError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/session/:sessionID/skill", Schema.toCodecStringTree<Schema.Struct<{
|
|
3398
|
+
readonly name: Schema.String;
|
|
3399
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof CommandNotFoundError | typeof CommandExecutionError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.skill", "POST", "/api/experimental/session/:sessionID/skill", Schema.toCodecStringTree<Schema.Struct<{
|
|
3559
3400
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3560
3401
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3561
3402
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3562
3403
|
};
|
|
3563
3404
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3564
|
-
readonly id: Schema.
|
|
3565
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3566
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3567
|
-
}>;
|
|
3568
|
-
readonly skill: Schema.brand<Schema.String, "Skill.ID">;
|
|
3405
|
+
readonly id: Schema.brand<Schema.String, "Skill.ID">;
|
|
3569
3406
|
readonly resume: Schema.optional<Schema.Boolean>;
|
|
3570
3407
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof SkillNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.synthetic", "POST", "/api/session/:sessionID/synthetic", Schema.toCodecStringTree<Schema.Struct<{
|
|
3571
3408
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3599,7 +3436,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3599
3436
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3600
3437
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3601
3438
|
};
|
|
3602
|
-
readonly
|
|
3439
|
+
readonly time: Schema.Struct<{
|
|
3440
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3441
|
+
}>;
|
|
3603
3442
|
}>;
|
|
3604
3443
|
}>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.shell", "POST", "/api/session/:sessionID/shell", Schema.toCodecStringTree<Schema.Struct<{
|
|
3605
3444
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
@@ -3607,8 +3446,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3607
3446
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3608
3447
|
};
|
|
3609
3448
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
3610
|
-
readonly id: Schema.optional<Schema.brand<Schema.String, "
|
|
3611
|
-
create: () => string & import("effect/Brand").Brand<"
|
|
3449
|
+
readonly id: Schema.optional<Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3450
|
+
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3451
|
+
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3612
3452
|
}>;
|
|
3613
3453
|
readonly command: Schema.String;
|
|
3614
3454
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.compact", "POST", "/api/session/:sessionID/compact", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -3635,9 +3475,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3635
3475
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3636
3476
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
3637
3477
|
};
|
|
3638
|
-
readonly
|
|
3478
|
+
readonly time: Schema.Struct<{
|
|
3479
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3480
|
+
}>;
|
|
3639
3481
|
}>;
|
|
3640
|
-
}>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.wait", "POST", "/api/session/:sessionID/wait", Schema.toCodecStringTree<Schema.Struct<{
|
|
3482
|
+
}>>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.wait", "POST", "/api/experimental/session/:sessionID/wait", Schema.toCodecStringTree<Schema.Struct<{
|
|
3641
3483
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3642
3484
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3643
3485
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3675,7 +3517,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3675
3517
|
readonly status: Schema.Literals<readonly ["added", "deleted", "modified"]>;
|
|
3676
3518
|
}>>>, never, never>;
|
|
3677
3519
|
}>;
|
|
3678
|
-
}>>, Schema.toCodecJson<typeof SessionBusyError | typeof UnknownError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.clear", "
|
|
3520
|
+
}>>, Schema.toCodecJson<typeof SessionBusyError | typeof UnknownError | typeof SessionNotFoundError | typeof MessageNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.revert.clear", "DELETE", "/api/session/:sessionID/revert", Schema.toCodecStringTree<Schema.Struct<{
|
|
3679
3521
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
3680
3522
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
3681
3523
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -3782,50 +3624,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3782
3624
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3783
3625
|
}>;
|
|
3784
3626
|
}>, Schema.Struct<{
|
|
3785
|
-
readonly type: Schema.tag<"location-switched">;
|
|
3786
3627
|
readonly location: Schema.Struct<{
|
|
3787
3628
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3788
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3789
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3790
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3791
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3792
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3793
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3794
|
-
}>, never, never>;
|
|
3795
3629
|
}>;
|
|
3796
|
-
readonly
|
|
3797
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3798
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3799
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3800
|
-
}>, never, never>;
|
|
3801
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3802
|
-
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
3803
|
-
readonly location: Schema.Struct<{
|
|
3804
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3805
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3806
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3807
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3808
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3809
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3810
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3811
|
-
}>, never, never>;
|
|
3812
|
-
}>;
|
|
3813
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3814
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3815
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3816
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3817
|
-
}>, never, never>;
|
|
3818
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3819
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
3630
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
3820
3631
|
readonly location: Schema.Struct<{
|
|
3821
3632
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
3822
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3823
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3824
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3825
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
3826
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3827
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
3828
|
-
}>, never, never>;
|
|
3829
3633
|
}>;
|
|
3830
3634
|
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3831
3635
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -3833,15 +3637,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
3833
3637
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3834
3638
|
}>, never, never>;
|
|
3835
3639
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3836
|
-
}
|
|
3640
|
+
}>>;
|
|
3837
3641
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
3838
3642
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3839
3643
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
3840
3644
|
};
|
|
3645
|
+
readonly type: Schema.tag<"location-switched">;
|
|
3841
3646
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
3647
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3648
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3649
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
3650
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
3651
|
+
}>, never, never>;
|
|
3842
3652
|
readonly time: Schema.Struct<{
|
|
3843
3653
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
3844
3654
|
}>;
|
|
3655
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
3845
3656
|
}>, Schema.Struct<{
|
|
3846
3657
|
readonly text: Schema.String;
|
|
3847
3658
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
@@ -4582,7 +4393,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4582
4393
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4583
4394
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4584
4395
|
};
|
|
4585
|
-
readonly
|
|
4396
|
+
readonly time: Schema.Struct<{
|
|
4397
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4398
|
+
}>;
|
|
4586
4399
|
}>, Schema.Struct<{
|
|
4587
4400
|
readonly type: Schema.tag<"synthetic">;
|
|
4588
4401
|
readonly payload: Schema.Struct<{
|
|
@@ -4599,7 +4412,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4599
4412
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4600
4413
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4601
4414
|
};
|
|
4602
|
-
readonly
|
|
4415
|
+
readonly time: Schema.Struct<{
|
|
4416
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4417
|
+
}>;
|
|
4603
4418
|
}>, Schema.Struct<{
|
|
4604
4419
|
readonly type: Schema.tag<"compaction">;
|
|
4605
4420
|
readonly payload: Schema.Struct<{}>;
|
|
@@ -4612,46 +4427,34 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4612
4427
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4613
4428
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4614
4429
|
};
|
|
4615
|
-
readonly
|
|
4430
|
+
readonly time: Schema.Struct<{
|
|
4431
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4432
|
+
}>;
|
|
4616
4433
|
}>, Schema.Struct<{
|
|
4617
|
-
readonly type: Schema.tag<"move">;
|
|
4618
4434
|
readonly payload: Schema.Struct<{
|
|
4619
4435
|
readonly location: Schema.Struct<{
|
|
4620
4436
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
4621
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4622
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4623
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4624
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
4625
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4626
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
4627
|
-
}>, never, never>;
|
|
4628
4437
|
}>;
|
|
4629
4438
|
readonly projectID: Schema.brand<Schema.String, "Project.ID"> & {
|
|
4630
4439
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
4631
4440
|
};
|
|
4632
4441
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
4633
4442
|
}>;
|
|
4634
|
-
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4635
4443
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4636
4444
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4637
4445
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4638
4446
|
};
|
|
4447
|
+
readonly type: Schema.tag<"move">;
|
|
4639
4448
|
readonly sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4640
4449
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4641
4450
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
4642
4451
|
};
|
|
4643
|
-
readonly
|
|
4644
|
-
|
|
4645
|
-
}
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
};
|
|
4650
|
-
inboxID: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
4651
|
-
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4652
|
-
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4653
|
-
};
|
|
4654
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.steer", "POST", "/api/session/:sessionID/inbox/:inboxID/steer", Schema.toCodecStringTree<Schema.Struct<{
|
|
4452
|
+
readonly time: Schema.Struct<{
|
|
4453
|
+
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
4454
|
+
}>;
|
|
4455
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4456
|
+
}>]>>;
|
|
4457
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.cancel", "DELETE", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
|
|
4655
4458
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4656
4459
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4657
4460
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4660,7 +4463,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4660
4463
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4661
4464
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4662
4465
|
};
|
|
4663
|
-
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof
|
|
4466
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.inbox.update", "PATCH", "/api/session/:sessionID/inbox/:inboxID", Schema.toCodecStringTree<Schema.Struct<{
|
|
4664
4467
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4665
4468
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4666
4469
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4669,7 +4472,9 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4669
4472
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4670
4473
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
4671
4474
|
};
|
|
4672
|
-
}>>, never,
|
|
4475
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4476
|
+
readonly delivery: Schema.Literals<readonly ["steer", "queue"]>;
|
|
4477
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof ConflictError | typeof SessionNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.list", "GET", "/api/experimental/session/:sessionID/instructions/entries", Schema.toCodecStringTree<Schema.Struct<{
|
|
4673
4478
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4674
4479
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4675
4480
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4679,7 +4484,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4679
4484
|
readonly key: Schema.String;
|
|
4680
4485
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
4681
4486
|
}>>;
|
|
4682
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.put", "PUT", "/api/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
|
|
4487
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.put", "PUT", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
|
|
4683
4488
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4684
4489
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4685
4490
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -4687,7 +4492,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
4687
4492
|
key: Schema.String;
|
|
4688
4493
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
4689
4494
|
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
4690
|
-
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof InstructionEntry.ValueTooLargeError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
|
|
4495
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof InstructionEntry.ValueTooLargeError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.instructions.entry.remove", "DELETE", "/api/experimental/session/:sessionID/instructions/entries/:key", Schema.toCodecStringTree<Schema.Struct<{
|
|
4691
4496
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
4692
4497
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
4693
4498
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -5298,7 +5103,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5298
5103
|
};
|
|
5299
5104
|
readonly created: Schema.Finite;
|
|
5300
5105
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
5301
|
-
readonly type: Schema.Literal<"session.permissions
|
|
5106
|
+
readonly type: Schema.Literal<"session.permissions">;
|
|
5302
5107
|
readonly durable: Schema.Struct<{
|
|
5303
5108
|
readonly aggregateID: Schema.String;
|
|
5304
5109
|
readonly seq: Schema.brand<Schema.Int, "Event.Seq">;
|
|
@@ -5335,7 +5140,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
5335
5140
|
};
|
|
5336
5141
|
}>;
|
|
5337
5142
|
}> & {
|
|
5338
|
-
type: "session.permissions
|
|
5143
|
+
type: "session.permissions";
|
|
5339
5144
|
durability: "durable";
|
|
5340
5145
|
durable: {
|
|
5341
5146
|
readonly version: number;
|
|
@@ -8887,7 +8692,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8887
8692
|
readonly seq: number & import("effect/Brand").Brand<"Event.Seq">;
|
|
8888
8693
|
readonly version: number & import("effect/Brand").Brand<"Event.Version">;
|
|
8889
8694
|
};
|
|
8890
|
-
readonly type: "session.permissions
|
|
8695
|
+
readonly type: "session.permissions";
|
|
8891
8696
|
readonly created: number;
|
|
8892
8697
|
readonly location?: {
|
|
8893
8698
|
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
@@ -8924,11 +8729,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8924
8729
|
readonly id: string;
|
|
8925
8730
|
readonly type: "tool";
|
|
8926
8731
|
readonly name: string;
|
|
8927
|
-
readonly time: {
|
|
8928
|
-
readonly created: number;
|
|
8929
|
-
readonly completed?: number | undefined;
|
|
8930
|
-
readonly ran?: number | undefined;
|
|
8931
|
-
};
|
|
8932
8732
|
readonly state: {
|
|
8933
8733
|
readonly status: "streaming";
|
|
8934
8734
|
readonly input: string;
|
|
@@ -8996,6 +8796,11 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
8996
8796
|
readonly name?: string | undefined;
|
|
8997
8797
|
})[]] | undefined;
|
|
8998
8798
|
};
|
|
8799
|
+
readonly time: {
|
|
8800
|
+
readonly created: number;
|
|
8801
|
+
readonly completed?: number | undefined;
|
|
8802
|
+
readonly ran?: number | undefined;
|
|
8803
|
+
};
|
|
8999
8804
|
readonly executed?: boolean | undefined;
|
|
9000
8805
|
readonly providerState?: {
|
|
9001
8806
|
readonly [x: string]: unknown;
|
|
@@ -9012,13 +8817,13 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
9012
8817
|
} | {
|
|
9013
8818
|
readonly type: "reasoning";
|
|
9014
8819
|
readonly text: string;
|
|
8820
|
+
readonly state?: {
|
|
8821
|
+
readonly [x: string]: unknown;
|
|
8822
|
+
} | undefined;
|
|
9015
8823
|
readonly time?: {
|
|
9016
8824
|
readonly created: number;
|
|
9017
8825
|
readonly completed?: number | undefined;
|
|
9018
8826
|
} | undefined;
|
|
9019
|
-
readonly state?: {
|
|
9020
|
-
readonly [x: string]: unknown;
|
|
9021
|
-
} | undefined;
|
|
9022
8827
|
})[];
|
|
9023
8828
|
readonly sessionID: string & import("effect/Brand").Brand<"SessionID">;
|
|
9024
8829
|
};
|
|
@@ -10105,7 +9910,7 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10105
9910
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10106
9911
|
};
|
|
10107
9912
|
}>>, Schema.toCodecStringTree<Schema.Struct<{
|
|
10108
|
-
|
|
9913
|
+
resume: Schema.optional<Schema.decodeTo<Schema.Boolean, Schema.Literals<readonly ["true", "false"]>, never, never>>;
|
|
10109
9914
|
}>>, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10110
9915
|
readonly interrupted: Schema.Boolean;
|
|
10111
9916
|
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, I, HttpApiMiddleware.Requires<I>> | HttpApiEndpoint.HttpApiEndpoint<"session.background", "POST", "/api/session/:sessionID/background", Schema.toCodecStringTree<Schema.Struct<{
|
|
@@ -10214,50 +10019,12 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10214
10019
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10215
10020
|
}>;
|
|
10216
10021
|
}>, Schema.Struct<{
|
|
10217
|
-
readonly type: Schema.tag<"location-switched">;
|
|
10218
10022
|
readonly location: Schema.Struct<{
|
|
10219
10023
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10220
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10221
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10222
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10223
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10224
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10225
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10226
|
-
}>, never, never>;
|
|
10227
10024
|
}>;
|
|
10228
|
-
readonly
|
|
10229
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10230
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10231
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10232
|
-
}>, never, never>;
|
|
10233
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
10234
|
-
readonly previous: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Struct<{
|
|
10235
|
-
readonly location: Schema.Struct<{
|
|
10236
|
-
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10237
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10238
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10239
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10240
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10241
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10242
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10243
|
-
}>, never, never>;
|
|
10244
|
-
}>;
|
|
10245
|
-
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10246
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10247
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10248
|
-
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10249
|
-
}>, never, never>;
|
|
10250
|
-
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
10251
|
-
}>>>, Schema.optionalKey<Schema.Struct<{
|
|
10025
|
+
readonly previous: Schema.optional<Schema.Struct<{
|
|
10252
10026
|
readonly location: Schema.Struct<{
|
|
10253
10027
|
readonly directory: Schema.brand<Schema.String, "AbsolutePath">;
|
|
10254
|
-
readonly workspaceID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10255
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10256
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10257
|
-
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Workspace.ID"> & {
|
|
10258
|
-
ascending: (id?: string) => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10259
|
-
create: () => string & import("effect/Brand").Brand<"Workspace.ID">;
|
|
10260
|
-
}>, never, never>;
|
|
10261
10028
|
}>;
|
|
10262
10029
|
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10263
10030
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
@@ -10265,15 +10032,22 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10265
10032
|
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10266
10033
|
}>, never, never>;
|
|
10267
10034
|
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
10268
|
-
}
|
|
10035
|
+
}>>;
|
|
10269
10036
|
readonly id: Schema.brand<Schema.String, "Session.Message.ID"> & {
|
|
10270
10037
|
create: () => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10271
10038
|
fromEvent: (eventID: Event.ID) => string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
10272
10039
|
};
|
|
10040
|
+
readonly type: Schema.tag<"location-switched">;
|
|
10273
10041
|
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10042
|
+
readonly projectID: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10043
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10044
|
+
}>>, Schema.optionalKey<Schema.brand<Schema.String, "Project.ID"> & {
|
|
10045
|
+
global: string & import("effect/Brand").Brand<"Project.ID">;
|
|
10046
|
+
}>, never, never>;
|
|
10274
10047
|
readonly time: Schema.Struct<{
|
|
10275
10048
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10276
10049
|
}>;
|
|
10050
|
+
readonly subpath: Schema.decodeTo<Schema.optional<Schema.toType<Schema.brand<Schema.String, "RelativePath">>>, Schema.optionalKey<Schema.brand<Schema.String, "RelativePath">>, never, never>;
|
|
10277
10051
|
}>, Schema.Struct<{
|
|
10278
10052
|
readonly text: Schema.String;
|
|
10279
10053
|
readonly files: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
@@ -10843,7 +10617,525 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10843
10617
|
readonly created: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10844
10618
|
}>;
|
|
10845
10619
|
}>]>;
|
|
10846
|
-
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.
|
|
10620
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof MessageNotFoundError>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"session.form.list", "GET", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
|
|
10621
|
+
sessionID: Schema.String;
|
|
10622
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10623
|
+
readonly data: Schema.$Array<Schema.Struct<{
|
|
10624
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10625
|
+
readonly type: Schema.Literal<"string">;
|
|
10626
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10627
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10628
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10629
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10630
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10631
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10632
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10633
|
+
readonly value: Schema.String;
|
|
10634
|
+
readonly label: Schema.String;
|
|
10635
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10636
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10637
|
+
readonly value: Schema.String;
|
|
10638
|
+
readonly label: Schema.String;
|
|
10639
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10640
|
+
}>>>, never, never>;
|
|
10641
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10642
|
+
readonly key: Schema.String;
|
|
10643
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10644
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10645
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10646
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10647
|
+
readonly key: Schema.String;
|
|
10648
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10649
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10650
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10651
|
+
readonly key: Schema.String;
|
|
10652
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10653
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10654
|
+
}>>>, never, never>;
|
|
10655
|
+
}>, Schema.Struct<{
|
|
10656
|
+
readonly type: Schema.Literal<"number">;
|
|
10657
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10658
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10659
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10660
|
+
readonly key: Schema.String;
|
|
10661
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10662
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10663
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10664
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10665
|
+
readonly key: Schema.String;
|
|
10666
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10667
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10668
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10669
|
+
readonly key: Schema.String;
|
|
10670
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10671
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10672
|
+
}>>>, never, never>;
|
|
10673
|
+
}>, Schema.Struct<{
|
|
10674
|
+
readonly type: Schema.Literal<"integer">;
|
|
10675
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10676
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10677
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10678
|
+
readonly key: Schema.String;
|
|
10679
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10680
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10681
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10682
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10683
|
+
readonly key: Schema.String;
|
|
10684
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10685
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10686
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10687
|
+
readonly key: Schema.String;
|
|
10688
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10689
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10690
|
+
}>>>, never, never>;
|
|
10691
|
+
}>, Schema.Struct<{
|
|
10692
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10693
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10694
|
+
readonly key: Schema.String;
|
|
10695
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10696
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10697
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10698
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10699
|
+
readonly key: Schema.String;
|
|
10700
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10701
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10702
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10703
|
+
readonly key: Schema.String;
|
|
10704
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10705
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10706
|
+
}>>>, never, never>;
|
|
10707
|
+
}>, Schema.Struct<{
|
|
10708
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10709
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10710
|
+
readonly value: Schema.String;
|
|
10711
|
+
readonly label: Schema.String;
|
|
10712
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10713
|
+
}>>;
|
|
10714
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10715
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10716
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10717
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10718
|
+
readonly key: Schema.String;
|
|
10719
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10720
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10721
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10722
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10723
|
+
readonly key: Schema.String;
|
|
10724
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10725
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10726
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10727
|
+
readonly key: Schema.String;
|
|
10728
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10729
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10730
|
+
}>>>, never, never>;
|
|
10731
|
+
}>, Schema.Struct<{
|
|
10732
|
+
readonly key: Schema.String;
|
|
10733
|
+
readonly type: Schema.Literal<"external">;
|
|
10734
|
+
readonly url: Schema.String;
|
|
10735
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10736
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10737
|
+
}>]>>;
|
|
10738
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10739
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10740
|
+
};
|
|
10741
|
+
readonly sessionID: Schema.String;
|
|
10742
|
+
readonly title: Schema.String;
|
|
10743
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10744
|
+
}>>;
|
|
10745
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.create", "POST", "/api/session/:sessionID/form", Schema.toCodecStringTree<Schema.Struct<{
|
|
10746
|
+
sessionID: Schema.String;
|
|
10747
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10748
|
+
readonly id: Schema.optional<Schema.brand<Schema.String, "Form.ID"> & {
|
|
10749
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10750
|
+
}>;
|
|
10751
|
+
readonly title: Schema.String;
|
|
10752
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10753
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10754
|
+
readonly type: Schema.Literal<"string">;
|
|
10755
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10756
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10757
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10758
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10759
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10760
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10761
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10762
|
+
readonly value: Schema.String;
|
|
10763
|
+
readonly label: Schema.String;
|
|
10764
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10765
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10766
|
+
readonly value: Schema.String;
|
|
10767
|
+
readonly label: Schema.String;
|
|
10768
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10769
|
+
}>>>, never, never>;
|
|
10770
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10771
|
+
readonly key: Schema.String;
|
|
10772
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10773
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10774
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10775
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10776
|
+
readonly key: Schema.String;
|
|
10777
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10778
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10779
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10780
|
+
readonly key: Schema.String;
|
|
10781
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10782
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10783
|
+
}>>>, never, never>;
|
|
10784
|
+
}>, Schema.Struct<{
|
|
10785
|
+
readonly type: Schema.Literal<"number">;
|
|
10786
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10787
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10788
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10789
|
+
readonly key: Schema.String;
|
|
10790
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10791
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10792
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10793
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10794
|
+
readonly key: Schema.String;
|
|
10795
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10796
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10797
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10798
|
+
readonly key: Schema.String;
|
|
10799
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10800
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10801
|
+
}>>>, never, never>;
|
|
10802
|
+
}>, Schema.Struct<{
|
|
10803
|
+
readonly type: Schema.Literal<"integer">;
|
|
10804
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10805
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10806
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10807
|
+
readonly key: Schema.String;
|
|
10808
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10809
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10810
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10811
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10812
|
+
readonly key: Schema.String;
|
|
10813
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10814
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10815
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10816
|
+
readonly key: Schema.String;
|
|
10817
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10818
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10819
|
+
}>>>, never, never>;
|
|
10820
|
+
}>, Schema.Struct<{
|
|
10821
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10822
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10823
|
+
readonly key: Schema.String;
|
|
10824
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10825
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10826
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10827
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10828
|
+
readonly key: Schema.String;
|
|
10829
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10830
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10831
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10832
|
+
readonly key: Schema.String;
|
|
10833
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10834
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10835
|
+
}>>>, never, never>;
|
|
10836
|
+
}>, Schema.Struct<{
|
|
10837
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10838
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10839
|
+
readonly value: Schema.String;
|
|
10840
|
+
readonly label: Schema.String;
|
|
10841
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10842
|
+
}>>;
|
|
10843
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10844
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10845
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10846
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10847
|
+
readonly key: Schema.String;
|
|
10848
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10849
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10850
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10851
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10852
|
+
readonly key: Schema.String;
|
|
10853
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10854
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10855
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10856
|
+
readonly key: Schema.String;
|
|
10857
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10858
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10859
|
+
}>>>, never, never>;
|
|
10860
|
+
}>, Schema.Struct<{
|
|
10861
|
+
readonly key: Schema.String;
|
|
10862
|
+
readonly type: Schema.Literal<"external">;
|
|
10863
|
+
readonly url: Schema.String;
|
|
10864
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10865
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10866
|
+
}>]>>;
|
|
10867
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10868
|
+
readonly data: Schema.Struct<{
|
|
10869
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
10870
|
+
readonly type: Schema.Literal<"string">;
|
|
10871
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
10872
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10873
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10874
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10875
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10876
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10877
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10878
|
+
readonly value: Schema.String;
|
|
10879
|
+
readonly label: Schema.String;
|
|
10880
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10881
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10882
|
+
readonly value: Schema.String;
|
|
10883
|
+
readonly label: Schema.String;
|
|
10884
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10885
|
+
}>>>, never, never>;
|
|
10886
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10887
|
+
readonly key: Schema.String;
|
|
10888
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10889
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10890
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10891
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10892
|
+
readonly key: Schema.String;
|
|
10893
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10894
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10895
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10896
|
+
readonly key: Schema.String;
|
|
10897
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10898
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10899
|
+
}>>>, never, never>;
|
|
10900
|
+
}>, Schema.Struct<{
|
|
10901
|
+
readonly type: Schema.Literal<"number">;
|
|
10902
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10903
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10904
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10905
|
+
readonly key: Schema.String;
|
|
10906
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10907
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10908
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10909
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10910
|
+
readonly key: Schema.String;
|
|
10911
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10912
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10913
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10914
|
+
readonly key: Schema.String;
|
|
10915
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10916
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10917
|
+
}>>>, never, never>;
|
|
10918
|
+
}>, Schema.Struct<{
|
|
10919
|
+
readonly type: Schema.Literal<"integer">;
|
|
10920
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10921
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10922
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
10923
|
+
readonly key: Schema.String;
|
|
10924
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10925
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10926
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10927
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10928
|
+
readonly key: Schema.String;
|
|
10929
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10930
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10931
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10932
|
+
readonly key: Schema.String;
|
|
10933
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10934
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10935
|
+
}>>>, never, never>;
|
|
10936
|
+
}>, Schema.Struct<{
|
|
10937
|
+
readonly type: Schema.Literal<"boolean">;
|
|
10938
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10939
|
+
readonly key: Schema.String;
|
|
10940
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10941
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10942
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10943
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10944
|
+
readonly key: Schema.String;
|
|
10945
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10946
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10947
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10948
|
+
readonly key: Schema.String;
|
|
10949
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10950
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10951
|
+
}>>>, never, never>;
|
|
10952
|
+
}>, Schema.Struct<{
|
|
10953
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
10954
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
10955
|
+
readonly value: Schema.String;
|
|
10956
|
+
readonly label: Schema.String;
|
|
10957
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10958
|
+
}>>;
|
|
10959
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10960
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
10961
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10962
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
10963
|
+
readonly key: Schema.String;
|
|
10964
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10965
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10966
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
10967
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
10968
|
+
readonly key: Schema.String;
|
|
10969
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10970
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10971
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
10972
|
+
readonly key: Schema.String;
|
|
10973
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
10974
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
10975
|
+
}>>>, never, never>;
|
|
10976
|
+
}>, Schema.Struct<{
|
|
10977
|
+
readonly key: Schema.String;
|
|
10978
|
+
readonly type: Schema.Literal<"external">;
|
|
10979
|
+
readonly url: Schema.String;
|
|
10980
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10981
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
10982
|
+
}>]>>;
|
|
10983
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10984
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10985
|
+
};
|
|
10986
|
+
readonly sessionID: Schema.String;
|
|
10987
|
+
readonly title: Schema.String;
|
|
10988
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
10989
|
+
}>;
|
|
10990
|
+
}>>, Schema.toCodecJson<typeof InvalidRequestError | typeof ConflictError | typeof SessionNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.get", "GET", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
|
|
10991
|
+
sessionID: Schema.String;
|
|
10992
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
10993
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
10994
|
+
};
|
|
10995
|
+
}>>, never, never, never, Schema.toCodecJson<Schema.Struct<{
|
|
10996
|
+
readonly data: Schema.Struct<{
|
|
10997
|
+
readonly state: Schema.Union<readonly [Schema.Struct<{
|
|
10998
|
+
readonly status: Schema.Literal<"pending">;
|
|
10999
|
+
}>, Schema.Struct<{
|
|
11000
|
+
readonly status: Schema.Literal<"answered">;
|
|
11001
|
+
readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
|
|
11002
|
+
}>, Schema.Struct<{
|
|
11003
|
+
readonly status: Schema.Literal<"cancelled">;
|
|
11004
|
+
}>]>;
|
|
11005
|
+
readonly fields: Schema.NonEmptyArray<Schema.Union<readonly [Schema.Struct<{
|
|
11006
|
+
readonly type: Schema.Literal<"string">;
|
|
11007
|
+
readonly format: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>>, Schema.optionalKey<Schema.Literals<readonly ["email", "uri", "date", "date-time"]>>, never, never>;
|
|
11008
|
+
readonly minLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11009
|
+
readonly maxLength: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11010
|
+
readonly pattern: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11011
|
+
readonly placeholder: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11012
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11013
|
+
readonly options: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11014
|
+
readonly value: Schema.String;
|
|
11015
|
+
readonly label: Schema.String;
|
|
11016
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11017
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11018
|
+
readonly value: Schema.String;
|
|
11019
|
+
readonly label: Schema.String;
|
|
11020
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11021
|
+
}>>>, never, never>;
|
|
11022
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11023
|
+
readonly key: Schema.String;
|
|
11024
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11025
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11026
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11027
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11028
|
+
readonly key: Schema.String;
|
|
11029
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11030
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11031
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11032
|
+
readonly key: Schema.String;
|
|
11033
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11034
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11035
|
+
}>>>, never, never>;
|
|
11036
|
+
}>, Schema.Struct<{
|
|
11037
|
+
readonly type: Schema.Literal<"number">;
|
|
11038
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11039
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11040
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11041
|
+
readonly key: Schema.String;
|
|
11042
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11043
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11044
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11045
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11046
|
+
readonly key: Schema.String;
|
|
11047
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11048
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11049
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11050
|
+
readonly key: Schema.String;
|
|
11051
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11052
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11053
|
+
}>>>, never, never>;
|
|
11054
|
+
}>, Schema.Struct<{
|
|
11055
|
+
readonly type: Schema.Literal<"integer">;
|
|
11056
|
+
readonly minimum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11057
|
+
readonly maximum: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11058
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Number>>, Schema.optionalKey<Schema.Number>, never, never>;
|
|
11059
|
+
readonly key: Schema.String;
|
|
11060
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11061
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11062
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11063
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11064
|
+
readonly key: Schema.String;
|
|
11065
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11066
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11067
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11068
|
+
readonly key: Schema.String;
|
|
11069
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11070
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11071
|
+
}>>>, never, never>;
|
|
11072
|
+
}>, Schema.Struct<{
|
|
11073
|
+
readonly type: Schema.Literal<"boolean">;
|
|
11074
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11075
|
+
readonly key: Schema.String;
|
|
11076
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11077
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11078
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11079
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11080
|
+
readonly key: Schema.String;
|
|
11081
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11082
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11083
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11084
|
+
readonly key: Schema.String;
|
|
11085
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11086
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11087
|
+
}>>>, never, never>;
|
|
11088
|
+
}>, Schema.Struct<{
|
|
11089
|
+
readonly type: Schema.Literal<"multiselect">;
|
|
11090
|
+
readonly options: Schema.$Array<Schema.Struct<{
|
|
11091
|
+
readonly value: Schema.String;
|
|
11092
|
+
readonly label: Schema.String;
|
|
11093
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11094
|
+
}>>;
|
|
11095
|
+
readonly minItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11096
|
+
readonly maxItems: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Int>>, Schema.optionalKey<Schema.Int>, never, never>;
|
|
11097
|
+
readonly custom: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11098
|
+
readonly default: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.String>>>, Schema.optionalKey<Schema.$Array<Schema.String>>, never, never>;
|
|
11099
|
+
readonly key: Schema.String;
|
|
11100
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11101
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11102
|
+
readonly required: Schema.decodeTo<Schema.optional<Schema.toType<Schema.Boolean>>, Schema.optionalKey<Schema.Boolean>, never, never>;
|
|
11103
|
+
readonly when: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Array<Schema.Struct<{
|
|
11104
|
+
readonly key: Schema.String;
|
|
11105
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11106
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11107
|
+
}>>>>, Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
11108
|
+
readonly key: Schema.String;
|
|
11109
|
+
readonly op: Schema.Literals<readonly ["eq", "neq"]>;
|
|
11110
|
+
readonly value: Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean]>;
|
|
11111
|
+
}>>>, never, never>;
|
|
11112
|
+
}>, Schema.Struct<{
|
|
11113
|
+
readonly key: Schema.String;
|
|
11114
|
+
readonly type: Schema.Literal<"external">;
|
|
11115
|
+
readonly url: Schema.String;
|
|
11116
|
+
readonly title: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11117
|
+
readonly description: Schema.decodeTo<Schema.optional<Schema.toType<Schema.String>>, Schema.optionalKey<Schema.String>, never, never>;
|
|
11118
|
+
}>]>>;
|
|
11119
|
+
readonly id: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11120
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11121
|
+
};
|
|
11122
|
+
readonly sessionID: Schema.String;
|
|
11123
|
+
readonly title: Schema.String;
|
|
11124
|
+
readonly metadata: Schema.decodeTo<Schema.optional<Schema.toType<Schema.$Record<Schema.String, Schema.Unknown>>>, Schema.optionalKey<Schema.$Record<Schema.String, Schema.Unknown>>, never, never>;
|
|
11125
|
+
}>;
|
|
11126
|
+
}>>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.reply", "POST", "/api/session/:sessionID/form/:formID/reply", Schema.toCodecStringTree<Schema.Struct<{
|
|
11127
|
+
sessionID: Schema.String;
|
|
11128
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11129
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11130
|
+
};
|
|
11131
|
+
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
11132
|
+
readonly answer: Schema.$Record<Schema.String, Schema.Union<readonly [Schema.String, Schema.Number, Schema.Boolean, Schema.$Array<Schema.String>]>>;
|
|
11133
|
+
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError | typeof FormInvalidAnswerError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.form.cancel", "DELETE", "/api/session/:sessionID/form/:formID", Schema.toCodecStringTree<Schema.Struct<{
|
|
11134
|
+
sessionID: Schema.String;
|
|
11135
|
+
formID: Schema.brand<Schema.String, "Form.ID"> & {
|
|
11136
|
+
create: (id?: string) => string & import("effect/Brand").Brand<"Form.ID">;
|
|
11137
|
+
};
|
|
11138
|
+
}>>, never, never, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError | typeof FormNotFoundError | typeof FormAlreadySettledError>, FormI, HttpApiMiddleware.Requires<FormI>> | HttpApiEndpoint.HttpApiEndpoint<"session.environment", "PUT", "/api/session/:sessionID/environment", Schema.toCodecStringTree<Schema.Struct<{
|
|
10847
11139
|
sessionID: Schema.brand<Schema.String, "SessionID"> & {
|
|
10848
11140
|
create: () => string & import("effect/Brand").Brand<"SessionID">;
|
|
10849
11141
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
@@ -10856,6 +11148,6 @@ export declare const makeSessionGroup: <I extends HttpApiMiddleware.AnyId, S>(se
|
|
|
10856
11148
|
descending: (id?: string) => string & import("effect/Brand").Brand<"SessionID">;
|
|
10857
11149
|
};
|
|
10858
11150
|
}>>, never, Schema.toCodecJson<Schema.Struct<{
|
|
10859
|
-
readonly idle: Schema.
|
|
11151
|
+
readonly idle: Schema.decodeTo<Schema.DateTimeUtc, Schema.Finite, never, never>;
|
|
10860
11152
|
}>>, never, Schema.toCodecJson<HttpApiSchema.NoContent>, Schema.toCodecJson<typeof SessionNotFoundError>, never, never>, false>;
|
|
10861
11153
|
export {};
|