@relayfx/sdk 0.0.50 → 0.1.0
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/README.md +5 -0
- package/dist/ai.js +42 -17222
- package/dist/index-q0z11q9m.js +18726 -0
- package/dist/index-sms8x6cq.js +137 -0
- package/dist/index-vbf5hcw8.js +2156 -0
- package/dist/index.js +741 -18839
- package/dist/migrations/20260712120000_durable_inbox/migration.sql +9 -0
- package/dist/migrations/20260712140000_execution_state/migration.sql +5 -0
- package/dist/migrations/20260712150000_durable_entities/migration.sql +15 -0
- package/dist/migrations/20260712160000_ephemeral_presence/migration.sql +13 -0
- package/dist/migrations/20260712170000_topic_subscriptions/migration.sql +3 -0
- package/dist/migrations/mysql/0003_durable_inbox.sql +3 -0
- package/dist/migrations/mysql/0004_execution_state.sql +3 -0
- package/dist/migrations/mysql/0005_durable_entities.sql +13 -0
- package/dist/migrations/mysql/0006_ephemeral_presence.sql +12 -0
- package/dist/migrations/mysql/0007_topic_subscriptions.sql +1 -0
- package/dist/migrations/pg/20260712120000_durable_inbox/migration.sql +9 -0
- package/dist/migrations/pg/20260712140000_execution_state/migration.sql +5 -0
- package/dist/migrations/pg/20260712150000_durable_entities/migration.sql +15 -0
- package/dist/migrations/pg/20260712160000_ephemeral_presence/migration.sql +13 -0
- package/dist/migrations/pg/20260712170000_topic_subscriptions/migration.sql +3 -0
- package/dist/migrations/sqlite/0003_durable_inbox.sql +9 -0
- package/dist/migrations/sqlite/0004_execution_state.sql +3 -0
- package/dist/migrations/sqlite/0005_durable_entities.sql +15 -0
- package/dist/migrations/sqlite/0006_ephemeral_presence.sql +12 -0
- package/dist/migrations/sqlite/0007_topic_subscriptions.sql +3 -0
- package/dist/sqlite.js +688 -0
- package/dist/types/relay/client.d.ts +197 -17
- package/dist/types/relay/command.d.ts +41 -0
- package/dist/types/relay/database.d.ts +1 -0
- package/dist/types/relay/index.d.ts +3 -2
- package/dist/types/relay/operation.d.ts +520 -2
- package/dist/types/relay/sqlite-migrations.d.ts +39 -0
- package/dist/types/relay/sqlite-runtime.d.ts +5 -0
- package/dist/types/relay/sqlite.d.ts +27 -0
- package/dist/types/runtime/address/address-book-service.d.ts +4 -4
- package/dist/types/runtime/address/address-resolution-service.d.ts +1 -1
- package/dist/types/runtime/agent/agent-loop-service.d.ts +2 -2
- package/dist/types/runtime/agent/agent-registry-service.d.ts +1 -1
- package/dist/types/runtime/agent/relay-compaction.d.ts +1 -1
- package/dist/types/runtime/agent/relay-permissions.d.ts +1 -1
- package/dist/types/runtime/agent/relay-steering.d.ts +1 -1
- package/dist/types/runtime/child/child-run-service.d.ts +1 -1
- package/dist/types/runtime/child/parent-notifier-service.d.ts +1 -1
- package/dist/types/runtime/cluster/execution-entity.d.ts +1 -1
- package/dist/types/runtime/entity/entity-instance-service.d.ts +67 -0
- package/dist/types/runtime/entity/entity-registry-service.d.ts +35 -0
- package/dist/types/runtime/envelope/envelope-service.d.ts +7 -3
- package/dist/types/runtime/execution/event-log-service.d.ts +1 -1
- package/dist/types/runtime/execution/execution-service.d.ts +1 -1
- package/dist/types/runtime/execution/execution-watch-service.d.ts +32 -0
- package/dist/types/runtime/execution/session-stream-service.d.ts +33 -0
- package/dist/types/runtime/inbox/inbox-service.d.ts +76 -0
- package/dist/types/runtime/inbox/send-message-tool.d.ts +27 -0
- package/dist/types/runtime/inbox/wait-for-messages-tool.d.ts +34 -0
- package/dist/types/runtime/index.d.ts +13 -0
- package/dist/types/runtime/memory/memory-service.d.ts +1 -1
- package/dist/types/runtime/presence/presence-service.d.ts +30 -0
- package/dist/types/runtime/presence/presence-tool.d.ts +20 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +18 -18
- package/dist/types/runtime/schedule/scheduler-service.d.ts +1 -1
- package/dist/types/runtime/session/session-store-service.d.ts +1 -1
- package/dist/types/runtime/skill/skill-registry-service.d.ts +1 -1
- package/dist/types/runtime/state/execution-state-service.d.ts +57 -0
- package/dist/types/runtime/state/state-tools.d.ts +5 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +1 -1
- package/dist/types/runtime/topic/publish-to-topic-tool.d.ts +24 -0
- package/dist/types/runtime/topic/topic-service.d.ts +50 -0
- package/dist/types/runtime/wait/wait-service.d.ts +2 -1
- package/dist/types/runtime/wait/wait-signal.d.ts +1 -1
- package/dist/types/runtime/workflow/execution-workflow.d.ts +2 -2
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +1 -1
- package/dist/types/schema/address-schema.d.ts +6 -6
- package/dist/types/schema/entity-schema.d.ts +40 -0
- package/dist/types/schema/envelope-schema.d.ts +1 -0
- package/dist/types/schema/execution-schema.d.ts +2 -2
- package/dist/types/schema/ids-schema.d.ts +8 -0
- package/dist/types/schema/inbox-schema.d.ts +81 -0
- package/dist/types/schema/index.d.ts +4 -0
- package/dist/types/schema/presence-schema.d.ts +28 -0
- package/dist/types/schema/state-schema.d.ts +35 -0
- package/dist/types/store-sql/address/address-book-repository.d.ts +1 -1
- package/dist/types/store-sql/database/database-service.d.ts +4 -18
- package/dist/types/store-sql/database/notification-bus.d.ts +2 -0
- package/dist/types/store-sql/database/sql-dialect.d.ts +13 -0
- package/dist/types/store-sql/entity/entity-repository.d.ts +36 -0
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +1 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +2 -1
- package/dist/types/store-sql/execution/execution-repository.d.ts +12 -2
- package/dist/types/store-sql/inbox/inbox-repository.d.ts +56 -0
- package/dist/types/store-sql/index.d.ts +6 -0
- package/dist/types/store-sql/portable.d.ts +27 -0
- package/dist/types/store-sql/presence/presence-repository.d.ts +51 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +1352 -140
- package/dist/types/store-sql/state/execution-state-repository.d.ts +80 -0
- package/dist/types/store-sql/tenant/tenant-id.d.ts +0 -2
- package/dist/types/store-sql/topic/topic-repository.d.ts +44 -0
- package/package.json +26 -4
- package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +0 -1971
- package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +0 -2372
- package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +0 -2442
- package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +0 -2495
- package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +0 -2821
- package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +0 -2821
- package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +0 -2954
- package/dist/migrations/20260705012626_common_stryfe/snapshot.json +0 -3378
- package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +0 -3485
- package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +0 -3753
- package/dist/migrations/20260705030344_short_patriot/snapshot.json +0 -3873
- package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +0 -4193
- package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +0 -4844
- package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +0 -4883
- package/dist/migrations/20260709030349_agent_id_rename/snapshot.json +0 -4883
- package/dist/migrations/20260709214238_faithful_black_widow/snapshot.json +0 -5426
- package/dist/migrations/20260709220016_fearless_aaron_stack/snapshot.json +0 -5426
- package/dist/migrations/pg/20260701002839_sour_cerebro/snapshot.json +0 -1971
- package/dist/migrations/pg/20260701041134_acoustic_hulk/snapshot.json +0 -2372
- package/dist/migrations/pg/20260701160543_condemned_stryfe/snapshot.json +0 -2442
- package/dist/migrations/pg/20260701220315_heavy_gorgon/snapshot.json +0 -2495
- package/dist/migrations/pg/20260701225444_polite_lord_hawal/snapshot.json +0 -2821
- package/dist/migrations/pg/20260702030128_flaky_misty_knight/snapshot.json +0 -2821
- package/dist/migrations/pg/20260705003847_nervous_banshee/snapshot.json +0 -2954
- package/dist/migrations/pg/20260705012626_common_stryfe/snapshot.json +0 -3378
- package/dist/migrations/pg/20260705015420_sweet_captain_marvel/snapshot.json +0 -3485
- package/dist/migrations/pg/20260705023041_chunky_scalphunter/snapshot.json +0 -3753
- package/dist/migrations/pg/20260705030344_short_patriot/snapshot.json +0 -3873
- package/dist/migrations/pg/20260705045546_heavy_ben_grimm/snapshot.json +0 -4193
- package/dist/migrations/pg/20260706185931_regular_shadow_king/snapshot.json +0 -4844
- package/dist/migrations/pg/20260706233300_equal_cyclops/snapshot.json +0 -4883
- package/dist/migrations/pg/20260709030349_agent_id_rename/snapshot.json +0 -4883
- package/dist/migrations/pg/20260709214238_faithful_black_widow/snapshot.json +0 -5426
- package/dist/migrations/pg/20260709220016_fearless_aaron_stack/snapshot.json +0 -5426
|
@@ -153,6 +153,119 @@ export declare const StartExecutionResult: Schema.Struct<{
|
|
|
153
153
|
}>;
|
|
154
154
|
export interface StartExecutionResult extends Schema.Schema.Type<typeof StartExecutionResult> {
|
|
155
155
|
}
|
|
156
|
+
export declare const GetOrCreateEntityInput: Schema.Struct<{
|
|
157
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
158
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
159
|
+
};
|
|
160
|
+
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
161
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
162
|
+
};
|
|
163
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
164
|
+
readonly type: Schema.Literal<"text">;
|
|
165
|
+
readonly text: Schema.String;
|
|
166
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
167
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
168
|
+
}>, Schema.Struct<{
|
|
169
|
+
readonly type: Schema.Literal<"structured">;
|
|
170
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
171
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
172
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
173
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
174
|
+
}>, Schema.Struct<{
|
|
175
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
176
|
+
readonly uri: Schema.String;
|
|
177
|
+
readonly media_type: Schema.String;
|
|
178
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
179
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
180
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
181
|
+
}>, Schema.Struct<{
|
|
182
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
183
|
+
readonly artifact_id: Schema.String;
|
|
184
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
185
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
186
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
187
|
+
}>, Schema.Struct<{
|
|
188
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
189
|
+
readonly call: Schema.Struct<{
|
|
190
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
191
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
192
|
+
};
|
|
193
|
+
readonly name: Schema.String;
|
|
194
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
195
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
196
|
+
}>;
|
|
197
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
198
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
199
|
+
}>, Schema.Struct<{
|
|
200
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
201
|
+
readonly result: Schema.Struct<{
|
|
202
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
203
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
204
|
+
};
|
|
205
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
206
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
207
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
208
|
+
}>;
|
|
209
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
210
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
211
|
+
}>]>>>;
|
|
212
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
213
|
+
readonly created_at: Schema.Int;
|
|
214
|
+
}>;
|
|
215
|
+
export interface GetOrCreateEntityInput extends Schema.Schema.Type<typeof GetOrCreateEntityInput> {
|
|
216
|
+
}
|
|
217
|
+
export declare const GetEntityInput: Schema.Struct<{
|
|
218
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
219
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
220
|
+
};
|
|
221
|
+
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
222
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
223
|
+
};
|
|
224
|
+
}>;
|
|
225
|
+
export interface GetEntityInput extends Schema.Schema.Type<typeof GetEntityInput> {
|
|
226
|
+
}
|
|
227
|
+
export declare const DestroyEntityInput: Schema.Struct<{
|
|
228
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
229
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
230
|
+
};
|
|
231
|
+
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
232
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
233
|
+
};
|
|
234
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
235
|
+
readonly destroyed_at: Schema.Int;
|
|
236
|
+
}>;
|
|
237
|
+
export interface DestroyEntityInput extends Schema.Schema.Type<typeof DestroyEntityInput> {
|
|
238
|
+
}
|
|
239
|
+
export declare const ListEntitiesInput: Schema.Struct<{
|
|
240
|
+
readonly kind: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
241
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
242
|
+
}>;
|
|
243
|
+
readonly after_kind: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
244
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
245
|
+
}>;
|
|
246
|
+
readonly after_key: Schema.optionalKey<Schema.String>;
|
|
247
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
248
|
+
}>;
|
|
249
|
+
export interface ListEntitiesInput extends Schema.Schema.Type<typeof ListEntitiesInput> {
|
|
250
|
+
}
|
|
251
|
+
export declare const EntityInstance: Schema.Struct<{
|
|
252
|
+
readonly kind: Schema.brand<Schema.String, "Relay.EntityKindName"> & {
|
|
253
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKindName">;
|
|
254
|
+
};
|
|
255
|
+
readonly key: Schema.brand<Schema.String, "Relay.EntityKey"> & {
|
|
256
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EntityKey">;
|
|
257
|
+
};
|
|
258
|
+
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
259
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
260
|
+
};
|
|
261
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
262
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
263
|
+
};
|
|
264
|
+
readonly generation: Schema.Int;
|
|
265
|
+
readonly status: Schema.Literals<readonly ["active", "destroyed"]>;
|
|
266
|
+
readonly created_at: Schema.Int;
|
|
267
|
+
readonly destroyed_at: Schema.optionalKey<Schema.Int>;
|
|
268
|
+
}>;
|
|
156
269
|
export declare const StreamExecutionInput: Schema.Struct<{
|
|
157
270
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
158
271
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
@@ -162,8 +275,117 @@ export declare const StreamExecutionInput: Schema.Struct<{
|
|
|
162
275
|
}>;
|
|
163
276
|
export interface StreamExecutionInput extends Schema.Schema.Type<typeof StreamExecutionInput> {
|
|
164
277
|
}
|
|
278
|
+
export declare const GetEntityStateInput: Schema.Struct<{
|
|
279
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
280
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
281
|
+
};
|
|
282
|
+
readonly key: Schema.String;
|
|
283
|
+
}>;
|
|
284
|
+
export interface GetEntityStateInput extends Schema.Schema.Type<typeof GetEntityStateInput> {
|
|
285
|
+
}
|
|
286
|
+
export declare const PutEntityStateInput: Schema.Struct<{
|
|
287
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
288
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
289
|
+
};
|
|
290
|
+
readonly key: Schema.String;
|
|
291
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
292
|
+
readonly expected_version: Schema.optionalKey<Schema.Int>;
|
|
293
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
294
|
+
readonly updated_at: Schema.Int;
|
|
295
|
+
}>;
|
|
296
|
+
export interface PutEntityStateInput extends Schema.Schema.Type<typeof PutEntityStateInput> {
|
|
297
|
+
}
|
|
298
|
+
export declare const DeleteEntityStateInput: Schema.Struct<{
|
|
299
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
300
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
301
|
+
};
|
|
302
|
+
readonly key: Schema.String;
|
|
303
|
+
readonly expected_version: Schema.optionalKey<Schema.Int>;
|
|
304
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
305
|
+
readonly removed_at: Schema.Int;
|
|
306
|
+
}>;
|
|
307
|
+
export interface DeleteEntityStateInput extends Schema.Schema.Type<typeof DeleteEntityStateInput> {
|
|
308
|
+
}
|
|
309
|
+
export declare const ListEntityStateInput: Schema.Struct<{
|
|
310
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
311
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
312
|
+
};
|
|
313
|
+
readonly prefix: Schema.optionalKey<Schema.String>;
|
|
314
|
+
readonly after_key: Schema.optionalKey<Schema.String>;
|
|
315
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
316
|
+
}>;
|
|
317
|
+
export interface ListEntityStateInput extends Schema.Schema.Type<typeof ListEntityStateInput> {
|
|
318
|
+
}
|
|
165
319
|
export declare const WaitTerminalState: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
166
320
|
export type WaitTerminalState = typeof WaitTerminalState.Type;
|
|
321
|
+
export declare const AwaitWaitInput: Schema.Struct<{
|
|
322
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
323
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
324
|
+
};
|
|
325
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
326
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
327
|
+
};
|
|
328
|
+
}>;
|
|
329
|
+
export interface AwaitWaitInput extends Schema.Schema.Type<typeof AwaitWaitInput> {
|
|
330
|
+
}
|
|
331
|
+
export declare const WaitOutcome: Schema.Struct<{
|
|
332
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
333
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
334
|
+
};
|
|
335
|
+
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
336
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
337
|
+
readonly type: Schema.Literal<"text">;
|
|
338
|
+
readonly text: Schema.String;
|
|
339
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
340
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
341
|
+
}>, Schema.Struct<{
|
|
342
|
+
readonly type: Schema.Literal<"structured">;
|
|
343
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
344
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
345
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
346
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
347
|
+
}>, Schema.Struct<{
|
|
348
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
349
|
+
readonly uri: Schema.String;
|
|
350
|
+
readonly media_type: Schema.String;
|
|
351
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
352
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
353
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
354
|
+
}>, Schema.Struct<{
|
|
355
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
356
|
+
readonly artifact_id: Schema.String;
|
|
357
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
358
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
359
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
360
|
+
}>, Schema.Struct<{
|
|
361
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
362
|
+
readonly call: Schema.Struct<{
|
|
363
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
364
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
365
|
+
};
|
|
366
|
+
readonly name: Schema.String;
|
|
367
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
368
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
369
|
+
}>;
|
|
370
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
371
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
372
|
+
}>, Schema.Struct<{
|
|
373
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
374
|
+
readonly result: Schema.Struct<{
|
|
375
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
376
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
377
|
+
};
|
|
378
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
379
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
380
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
381
|
+
}>;
|
|
382
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
383
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
384
|
+
}>]>>>;
|
|
385
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
386
|
+
}>;
|
|
387
|
+
export interface WaitOutcome extends Schema.Schema.Type<typeof WaitOutcome> {
|
|
388
|
+
}
|
|
167
389
|
export declare const CancelExecutionInput: Schema.Struct<{
|
|
168
390
|
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
169
391
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
@@ -856,6 +1078,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
|
|
|
856
1078
|
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
857
1079
|
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
858
1080
|
}>]>>;
|
|
1081
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
859
1082
|
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
860
1083
|
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
861
1084
|
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
@@ -952,7 +1175,7 @@ export declare const SubmitInboundEnvelopeAccepted: Schema.Struct<{
|
|
|
952
1175
|
export interface SubmitInboundEnvelopeAccepted extends Schema.Schema.Type<typeof SubmitInboundEnvelopeAccepted> {
|
|
953
1176
|
}
|
|
954
1177
|
export declare const ClaimEnvelopeReadyInput: Schema.Struct<{
|
|
955
|
-
readonly route_type: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
|
|
1178
|
+
readonly route_type: Schema.Literals<readonly ["local-agent", "local-execution", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
|
|
956
1179
|
readonly route_key: Schema.optionalKey<Schema.String>;
|
|
957
1180
|
readonly worker_id: Schema.String;
|
|
958
1181
|
readonly now: Schema.Int;
|
|
@@ -1328,6 +1551,128 @@ export declare const ListExecutionsInput: Schema.Struct<{
|
|
|
1328
1551
|
}>;
|
|
1329
1552
|
export interface ListExecutionsInput extends Schema.Schema.Type<typeof ListExecutionsInput> {
|
|
1330
1553
|
}
|
|
1554
|
+
export declare const SubscribeTopicInput: Schema.Struct<{
|
|
1555
|
+
readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1556
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1557
|
+
};
|
|
1558
|
+
readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1559
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1560
|
+
};
|
|
1561
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1562
|
+
}>;
|
|
1563
|
+
export interface SubscribeTopicInput extends Schema.Schema.Type<typeof SubscribeTopicInput> {
|
|
1564
|
+
}
|
|
1565
|
+
export declare const TopicSubscription: Schema.Struct<{
|
|
1566
|
+
readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1567
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1568
|
+
};
|
|
1569
|
+
readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1570
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1571
|
+
};
|
|
1572
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1573
|
+
readonly created_at: Schema.Int;
|
|
1574
|
+
}>;
|
|
1575
|
+
export interface TopicSubscription extends Schema.Schema.Type<typeof TopicSubscription> {
|
|
1576
|
+
}
|
|
1577
|
+
export declare const PublishTopicInput: Schema.Struct<{
|
|
1578
|
+
readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1579
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1580
|
+
};
|
|
1581
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1582
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1583
|
+
};
|
|
1584
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1585
|
+
readonly type: Schema.Literal<"text">;
|
|
1586
|
+
readonly text: Schema.String;
|
|
1587
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1588
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1589
|
+
}>, Schema.Struct<{
|
|
1590
|
+
readonly type: Schema.Literal<"structured">;
|
|
1591
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1592
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
1593
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1594
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1595
|
+
}>, Schema.Struct<{
|
|
1596
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
1597
|
+
readonly uri: Schema.String;
|
|
1598
|
+
readonly media_type: Schema.String;
|
|
1599
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1600
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1601
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1602
|
+
}>, Schema.Struct<{
|
|
1603
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
1604
|
+
readonly artifact_id: Schema.String;
|
|
1605
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
1606
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1607
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1608
|
+
}>, Schema.Struct<{
|
|
1609
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
1610
|
+
readonly call: Schema.Struct<{
|
|
1611
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
1612
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
1613
|
+
};
|
|
1614
|
+
readonly name: Schema.String;
|
|
1615
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1616
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1617
|
+
}>;
|
|
1618
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1619
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1620
|
+
}>, Schema.Struct<{
|
|
1621
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1622
|
+
readonly result: Schema.Struct<{
|
|
1623
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
1624
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
1625
|
+
};
|
|
1626
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1627
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
1628
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1629
|
+
}>;
|
|
1630
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1631
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1632
|
+
}>]>>;
|
|
1633
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1634
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
1635
|
+
}>;
|
|
1636
|
+
export interface PublishTopicInput extends Schema.Schema.Type<typeof PublishTopicInput> {
|
|
1637
|
+
}
|
|
1638
|
+
export declare const TopicPublishAccepted: Schema.Struct<{
|
|
1639
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
1640
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
1641
|
+
};
|
|
1642
|
+
readonly subscriber_count: Schema.Int;
|
|
1643
|
+
}>;
|
|
1644
|
+
export interface TopicPublishAccepted extends Schema.Schema.Type<typeof TopicPublishAccepted> {
|
|
1645
|
+
}
|
|
1646
|
+
export declare const UnsubscribeTopicInput: Schema.Struct<{
|
|
1647
|
+
readonly topic_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1648
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1649
|
+
};
|
|
1650
|
+
readonly subscriber_execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1651
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1652
|
+
};
|
|
1653
|
+
}>;
|
|
1654
|
+
export interface UnsubscribeTopicInput extends Schema.Schema.Type<typeof UnsubscribeTopicInput> {
|
|
1655
|
+
}
|
|
1656
|
+
export declare const ListTopicSubscriptionsInput: Schema.Struct<{
|
|
1657
|
+
readonly topic_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1658
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1659
|
+
}>;
|
|
1660
|
+
readonly subscriber_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1661
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1662
|
+
}>;
|
|
1663
|
+
}>;
|
|
1664
|
+
export interface ListTopicSubscriptionsInput extends Schema.Schema.Type<typeof ListTopicSubscriptionsInput> {
|
|
1665
|
+
}
|
|
1666
|
+
export declare const ListInboxMessagesInput: Schema.Struct<{
|
|
1667
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1668
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1669
|
+
};
|
|
1670
|
+
readonly include_consumed: Schema.optionalKey<Schema.Boolean>;
|
|
1671
|
+
readonly after_sequence: Schema.optionalKey<Schema.Int>;
|
|
1672
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1673
|
+
}>;
|
|
1674
|
+
export interface ListInboxMessagesInput extends Schema.Schema.Type<typeof ListInboxMessagesInput> {
|
|
1675
|
+
}
|
|
1331
1676
|
export declare const ConversationKind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
1332
1677
|
export type ConversationKind = typeof ConversationKind.Type;
|
|
1333
1678
|
export declare const ConversationSummary: Schema.Struct<{
|
|
@@ -1351,6 +1696,178 @@ export declare const ConversationSummary: Schema.Struct<{
|
|
|
1351
1696
|
}>;
|
|
1352
1697
|
export interface ConversationSummary extends Schema.Schema.Type<typeof ConversationSummary> {
|
|
1353
1698
|
}
|
|
1699
|
+
export declare const ExecutionCursor: Schema.Struct<{
|
|
1700
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1701
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1702
|
+
};
|
|
1703
|
+
readonly after_cursor: Schema.optionalKey<Schema.String>;
|
|
1704
|
+
}>;
|
|
1705
|
+
export interface ExecutionCursor extends Schema.Schema.Type<typeof ExecutionCursor> {
|
|
1706
|
+
}
|
|
1707
|
+
declare const EventLogCursorNotFound_base: Schema.Class<EventLogCursorNotFound, Schema.TaggedStruct<"EventLogCursorNotFound", {
|
|
1708
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1709
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1710
|
+
};
|
|
1711
|
+
readonly cursor: Schema.String;
|
|
1712
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1713
|
+
export declare class EventLogCursorNotFound extends EventLogCursorNotFound_base {
|
|
1714
|
+
}
|
|
1715
|
+
export declare const StreamSessionInput: Schema.Struct<{
|
|
1716
|
+
readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
1717
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
1718
|
+
};
|
|
1719
|
+
readonly resume: Schema.optionalKey<Schema.$Array<Schema.Struct<{
|
|
1720
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1721
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1722
|
+
};
|
|
1723
|
+
readonly after_cursor: Schema.optionalKey<Schema.String>;
|
|
1724
|
+
}>>>;
|
|
1725
|
+
}>;
|
|
1726
|
+
export interface StreamSessionInput extends Schema.Schema.Type<typeof StreamSessionInput> {
|
|
1727
|
+
}
|
|
1728
|
+
export declare const SessionStreamItem: Schema.Union<readonly [Schema.TaggedStruct<"execution_joined", {
|
|
1729
|
+
readonly execution: Schema.Struct<{
|
|
1730
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1731
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1732
|
+
};
|
|
1733
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1734
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1735
|
+
};
|
|
1736
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
1737
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
1738
|
+
}>;
|
|
1739
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
1740
|
+
readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
1741
|
+
readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
1742
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
1743
|
+
}>;
|
|
1744
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1745
|
+
readonly created_at: Schema.Int;
|
|
1746
|
+
readonly updated_at: Schema.Int;
|
|
1747
|
+
}>;
|
|
1748
|
+
}>, Schema.TaggedStruct<"execution_event", {
|
|
1749
|
+
readonly event: Schema.Struct<{
|
|
1750
|
+
readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
1751
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
|
|
1752
|
+
};
|
|
1753
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1754
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1755
|
+
};
|
|
1756
|
+
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
1757
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
1758
|
+
}>;
|
|
1759
|
+
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
1760
|
+
readonly sequence: Schema.Int;
|
|
1761
|
+
readonly cursor: Schema.String;
|
|
1762
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
1763
|
+
readonly type: Schema.Literal<"text">;
|
|
1764
|
+
readonly text: Schema.String;
|
|
1765
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1766
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1767
|
+
}>, Schema.Struct<{
|
|
1768
|
+
readonly type: Schema.Literal<"structured">;
|
|
1769
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1770
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
1771
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1772
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1773
|
+
}>, Schema.Struct<{
|
|
1774
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
1775
|
+
readonly uri: Schema.String;
|
|
1776
|
+
readonly media_type: Schema.String;
|
|
1777
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
1778
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1779
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1780
|
+
}>, Schema.Struct<{
|
|
1781
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
1782
|
+
readonly artifact_id: Schema.String;
|
|
1783
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
1784
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1785
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1786
|
+
}>, Schema.Struct<{
|
|
1787
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
1788
|
+
readonly call: Schema.Struct<{
|
|
1789
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
1790
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
1791
|
+
};
|
|
1792
|
+
readonly name: Schema.String;
|
|
1793
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1794
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1795
|
+
}>;
|
|
1796
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1797
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1798
|
+
}>, Schema.Struct<{
|
|
1799
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
1800
|
+
readonly result: Schema.Struct<{
|
|
1801
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
1802
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
1803
|
+
};
|
|
1804
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
1805
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
1806
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1807
|
+
}>;
|
|
1808
|
+
readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1809
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1810
|
+
}>]>>>;
|
|
1811
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
1812
|
+
readonly created_at: Schema.Int;
|
|
1813
|
+
}>;
|
|
1814
|
+
}>]>;
|
|
1815
|
+
export type SessionStreamItem = typeof SessionStreamItem.Type;
|
|
1816
|
+
export declare const WatchExecutionsInput: Schema.Struct<{
|
|
1817
|
+
readonly root_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1818
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1819
|
+
}>;
|
|
1820
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
1821
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
1822
|
+
}>;
|
|
1823
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>>;
|
|
1824
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
1825
|
+
}>;
|
|
1826
|
+
export interface WatchExecutionsInput extends Schema.Schema.Type<typeof WatchExecutionsInput> {
|
|
1827
|
+
}
|
|
1828
|
+
export declare const ExecutionListChange: Schema.Union<readonly [Schema.TaggedStruct<"snapshot", {
|
|
1829
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
1830
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1831
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1832
|
+
};
|
|
1833
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1834
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1835
|
+
};
|
|
1836
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
1837
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
1838
|
+
}>;
|
|
1839
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
1840
|
+
readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
1841
|
+
readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
1842
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
1843
|
+
}>;
|
|
1844
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1845
|
+
readonly created_at: Schema.Int;
|
|
1846
|
+
readonly updated_at: Schema.Int;
|
|
1847
|
+
}>>;
|
|
1848
|
+
readonly next_cursor: Schema.optionalKey<Schema.String>;
|
|
1849
|
+
}>, Schema.TaggedStruct<"upsert", {
|
|
1850
|
+
readonly record: Schema.Struct<{
|
|
1851
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
1852
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
1853
|
+
};
|
|
1854
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
1855
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
1856
|
+
};
|
|
1857
|
+
readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
|
|
1858
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
|
|
1859
|
+
}>;
|
|
1860
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
1861
|
+
readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
1862
|
+
readonly agent_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentId"> & {
|
|
1863
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentId">;
|
|
1864
|
+
}>;
|
|
1865
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
1866
|
+
readonly created_at: Schema.Int;
|
|
1867
|
+
readonly updated_at: Schema.Int;
|
|
1868
|
+
}>;
|
|
1869
|
+
}>]>;
|
|
1870
|
+
export type ExecutionListChange = typeof ExecutionListChange.Type;
|
|
1354
1871
|
export declare const ToolCallSummary: Schema.Struct<{
|
|
1355
1872
|
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
1356
1873
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
@@ -1549,7 +2066,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
|
|
|
1549
2066
|
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
1550
2067
|
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
1551
2068
|
}>;
|
|
1552
|
-
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
2069
|
+
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.reasoning.delta", "model.output.completed", "model.usage.reported", "budget.exceeded", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "permission.ask.requested", "permission.ask.resolved", "steering.received", "state.updated", "state.deleted", "inbox.enqueued", "inbox.drained", "entity.created", "entity.destroyed", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
1553
2070
|
readonly sequence: Schema.Int;
|
|
1554
2071
|
readonly cursor: Schema.String;
|
|
1555
2072
|
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
@@ -1636,3 +2153,4 @@ export declare const RouteExecutionResult: Schema.Struct<{
|
|
|
1636
2153
|
}>;
|
|
1637
2154
|
export interface RouteExecutionResult extends Schema.Schema.Type<typeof RouteExecutionResult> {
|
|
1638
2155
|
}
|
|
2156
|
+
export {};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Effect } from "effect";
|
|
2
|
+
import { SqlClient } from "effect/unstable/sql/SqlClient";
|
|
3
|
+
export declare const migrations: readonly [{
|
|
4
|
+
readonly id: 1;
|
|
5
|
+
readonly name: "baseline";
|
|
6
|
+
readonly file: "0001_baseline.sql";
|
|
7
|
+
readonly source: string;
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: 2;
|
|
10
|
+
readonly name: "durable_tool_placement";
|
|
11
|
+
readonly file: "0002_durable_tool_placement.sql";
|
|
12
|
+
readonly source: string;
|
|
13
|
+
}, {
|
|
14
|
+
readonly id: 3;
|
|
15
|
+
readonly name: "durable_inbox";
|
|
16
|
+
readonly file: "0003_durable_inbox.sql";
|
|
17
|
+
readonly source: string;
|
|
18
|
+
}, {
|
|
19
|
+
readonly id: 4;
|
|
20
|
+
readonly name: "execution_state";
|
|
21
|
+
readonly file: "0004_execution_state.sql";
|
|
22
|
+
readonly source: string;
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: 5;
|
|
25
|
+
readonly name: "durable_entities";
|
|
26
|
+
readonly file: "0005_durable_entities.sql";
|
|
27
|
+
readonly source: string;
|
|
28
|
+
}, {
|
|
29
|
+
readonly id: 6;
|
|
30
|
+
readonly name: "ephemeral_presence";
|
|
31
|
+
readonly file: "0006_ephemeral_presence.sql";
|
|
32
|
+
readonly source: string;
|
|
33
|
+
}, {
|
|
34
|
+
readonly id: 7;
|
|
35
|
+
readonly name: "topic_subscriptions";
|
|
36
|
+
readonly file: "0007_topic_subscriptions.sql";
|
|
37
|
+
readonly source: string;
|
|
38
|
+
}];
|
|
39
|
+
export declare const loader: Effect.Effect<(readonly [1 | 2 | 6 | 3 | 4 | 7 | 5, "baseline" | "durable_tool_placement" | "durable_inbox" | "execution_state" | "durable_entities" | "ephemeral_presence" | "topic_subscriptions", Effect.Effect<Effect.Effect<void, import("effect/unstable/sql/SqlError").SqlError, SqlClient>, never, never>])[], never, never>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type SqliteClientConfig } from "@effect/sql-sqlite-bun/SqliteClient";
|
|
2
|
+
import { Layer } from "effect";
|
|
3
|
+
export declare const clientLayer: (options: SqliteClientConfig) => Layer.Layer<import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-bun/SqliteClient").SqliteClient, never, never>;
|
|
4
|
+
export declare const migrationsLayer: Layer.Layer<never, import("effect/unstable/sql/SqlError").SqlError | import("@effect/sql-sqlite-bun/SqliteMigrator").MigrationError, import("effect/unstable/sql/SqlClient").SqlClient>;
|
|
5
|
+
export declare const layer: (options: SqliteClientConfig) => Layer.Layer<import("effect/unstable/sql/SqlClient").SqlClient | import("@effect/sql-sqlite-bun/SqliteClient").SqliteClient, import("effect/unstable/sql/SqlError").SqlError | import("@effect/sql-sqlite-bun/SqliteMigrator").MigrationError, never>;
|