@relayfx/sdk 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/dist/index.js +7437 -3239
  2. package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
  3. package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
  4. package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
  5. package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
  6. package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
  7. package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
  8. package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
  9. package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
  10. package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
  11. package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
  12. package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
  13. package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
  14. package/dist/types/ai/embedding-model/embedding-model-registration.d.ts +45 -0
  15. package/dist/types/ai/index.d.ts +1 -0
  16. package/dist/types/relay/client.d.ts +20 -4
  17. package/dist/types/relay/index.d.ts +3 -3
  18. package/dist/types/relay/operation.d.ts +242 -1
  19. package/dist/types/runtime/address/address-resolution-service.d.ts +15 -0
  20. package/dist/types/runtime/agent/agent-loop-service.d.ts +39 -5
  21. package/dist/types/runtime/agent/relay-approvals.d.ts +15 -3
  22. package/dist/types/runtime/agent/relay-compaction.d.ts +22 -0
  23. package/dist/types/runtime/agent/relay-instructions.d.ts +22 -0
  24. package/dist/types/runtime/agent/relay-permissions.d.ts +25 -0
  25. package/dist/types/runtime/agent/relay-steering.d.ts +17 -0
  26. package/dist/types/runtime/agent/relay-tool-executor.d.ts +3 -0
  27. package/dist/types/runtime/agent/relay-tool-output.d.ts +7 -0
  28. package/dist/types/runtime/child/spawn-child-run-tool.d.ts +209 -0
  29. package/dist/types/runtime/cluster/execution-entity.d.ts +101 -2
  30. package/dist/types/runtime/execution/event-log-service.d.ts +6 -0
  31. package/dist/types/runtime/execution/execution-service.d.ts +1 -0
  32. package/dist/types/runtime/index.d.ts +9 -0
  33. package/dist/types/runtime/memory/memory-service.d.ts +20 -0
  34. package/dist/types/runtime/model/embedding-model-service.d.ts +68 -0
  35. package/dist/types/runtime/model/model-call-policy.d.ts +30 -11
  36. package/dist/types/runtime/runner/runner-runtime-service.d.ts +41 -21
  37. package/dist/types/runtime/schedule/scheduler-service.d.ts +4 -4
  38. package/dist/types/runtime/session/session-store-service.d.ts +14 -0
  39. package/dist/types/runtime/skill/skill-registry-service.d.ts +44 -0
  40. package/dist/types/runtime/tool/tool-runtime-service.d.ts +5 -0
  41. package/dist/types/runtime/wait/wait-signal.d.ts +2 -1
  42. package/dist/types/runtime/workflow/execution-workflow.d.ts +73 -4
  43. package/dist/types/schema/agent-schema.d.ts +130 -0
  44. package/dist/types/schema/content-schema.d.ts +12 -0
  45. package/dist/types/schema/envelope-schema.d.ts +12 -0
  46. package/dist/types/schema/execution-schema.d.ts +32 -2
  47. package/dist/types/schema/ids-schema.d.ts +16 -0
  48. package/dist/types/schema/index.d.ts +1 -0
  49. package/dist/types/schema/schedule-schema.d.ts +6 -0
  50. package/dist/types/schema/skill-schema.d.ts +260 -0
  51. package/dist/types/schema/tool-schema.d.ts +2 -0
  52. package/dist/types/store-sql/child/child-execution-repository.d.ts +1 -0
  53. package/dist/types/store-sql/compaction/compaction-repository.d.ts +37 -0
  54. package/dist/types/store-sql/execution/execution-repository.d.ts +3 -0
  55. package/dist/types/store-sql/index.d.ts +7 -0
  56. package/dist/types/store-sql/memory/memory-repository.d.ts +50 -0
  57. package/dist/types/store-sql/permission/permission-rule-repository.d.ts +37 -0
  58. package/dist/types/store-sql/schema/relay-schema.d.ts +1039 -8
  59. package/dist/types/store-sql/session/context-epoch-repository.d.ts +33 -0
  60. package/dist/types/store-sql/session/session-repository.d.ts +138 -0
  61. package/dist/types/store-sql/skill/skill-definition-repository.d.ts +71 -0
  62. package/dist/types/store-sql/steering/steering-repository.d.ts +59 -0
  63. package/package.json +3 -3
@@ -6,25 +6,32 @@ export declare const StartExecutionInput: Schema.Struct<{
6
6
  readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
7
7
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
8
8
  };
9
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
10
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
11
+ }>;
9
12
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
10
13
  readonly type: Schema.Literal<"text">;
11
14
  readonly text: Schema.String;
15
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
12
16
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
13
17
  }>, Schema.Struct<{
14
18
  readonly type: Schema.Literal<"structured">;
15
19
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
16
20
  readonly schema_ref: Schema.optionalKey<Schema.String>;
21
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
17
22
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
18
23
  }>, Schema.Struct<{
19
24
  readonly type: Schema.Literal<"blob-reference">;
20
25
  readonly uri: Schema.String;
21
26
  readonly media_type: Schema.String;
22
27
  readonly filename: Schema.optionalKey<Schema.String>;
28
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
23
29
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
24
30
  }>, Schema.Struct<{
25
31
  readonly type: Schema.Literal<"artifact-reference">;
26
32
  readonly artifact_id: Schema.String;
27
33
  readonly media_type: Schema.optionalKey<Schema.String>;
34
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
28
35
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
29
36
  }>, Schema.Struct<{
30
37
  readonly type: Schema.Literal<"tool-call">;
@@ -36,6 +43,7 @@ export declare const StartExecutionInput: Schema.Struct<{
36
43
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
37
44
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
38
45
  }>;
46
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
39
47
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
40
48
  }>, Schema.Struct<{
41
49
  readonly type: Schema.Literal<"tool-result">;
@@ -47,6 +55,7 @@ export declare const StartExecutionInput: Schema.Struct<{
47
55
  readonly error: Schema.optionalKey<Schema.String>;
48
56
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
49
57
  }>;
58
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
50
59
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
51
60
  }>]>>>;
52
61
  readonly event_sequence: Schema.Int;
@@ -72,6 +81,17 @@ export declare const StartExecutionInput: Schema.Struct<{
72
81
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
73
82
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
74
83
  }>>;
84
+ readonly skill_definition_ids: Schema.optionalKey<Schema.$Array<Schema.brand<Schema.String, "Relay.SkillDefinitionId"> & {
85
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SkillDefinitionId">;
86
+ }>>;
87
+ readonly permission_rules: Schema.optionalKey<Schema.Struct<{
88
+ readonly rules: Schema.$Array<Schema.Struct<{
89
+ readonly pattern: Schema.String;
90
+ readonly level: Schema.Literals<readonly ["allow", "deny", "ask"]>;
91
+ readonly reason: Schema.optionalKey<Schema.String>;
92
+ }>>;
93
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["allow", "deny", "ask"]>>;
94
+ }>>;
75
95
  readonly max_tool_turns: Schema.optionalKey<Schema.Int>;
76
96
  readonly max_wait_turns: Schema.optionalKey<Schema.Int>;
77
97
  readonly token_budget: Schema.optionalKey<Schema.Int>;
@@ -93,6 +113,10 @@ export declare const StartExecutionInput: Schema.Struct<{
93
113
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
94
114
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
95
115
  }>>>;
116
+ readonly handoff_targets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
117
+ readonly name: Schema.String;
118
+ readonly preset_name: Schema.String;
119
+ }>>>;
96
120
  readonly output_schema_ref: Schema.optionalKey<Schema.String>;
97
121
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
98
122
  }>>;
@@ -140,6 +164,75 @@ export declare const CancelExecutionAccepted: Schema.Struct<{
140
164
  }>;
141
165
  export interface CancelExecutionAccepted extends Schema.Schema.Type<typeof CancelExecutionAccepted> {
142
166
  }
167
+ export declare const SteeringKind: Schema.Literals<readonly ["steering", "follow_up"]>;
168
+ export type SteeringKind = typeof SteeringKind.Type;
169
+ export declare const SteerInput: Schema.Struct<{
170
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
171
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
172
+ };
173
+ readonly kind: Schema.Literals<readonly ["steering", "follow_up"]>;
174
+ readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
175
+ readonly type: Schema.Literal<"text">;
176
+ readonly text: Schema.String;
177
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
178
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
179
+ }>, Schema.Struct<{
180
+ readonly type: Schema.Literal<"structured">;
181
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
182
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
183
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
184
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
185
+ }>, Schema.Struct<{
186
+ readonly type: Schema.Literal<"blob-reference">;
187
+ readonly uri: Schema.String;
188
+ readonly media_type: Schema.String;
189
+ readonly filename: Schema.optionalKey<Schema.String>;
190
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
191
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
192
+ }>, Schema.Struct<{
193
+ readonly type: Schema.Literal<"artifact-reference">;
194
+ readonly artifact_id: Schema.String;
195
+ readonly media_type: Schema.optionalKey<Schema.String>;
196
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
197
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
198
+ }>, Schema.Struct<{
199
+ readonly type: Schema.Literal<"tool-call">;
200
+ readonly call: Schema.Struct<{
201
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
202
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
203
+ };
204
+ readonly name: Schema.String;
205
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
206
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
207
+ }>;
208
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
209
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
210
+ }>, Schema.Struct<{
211
+ readonly type: Schema.Literal<"tool-result">;
212
+ readonly result: Schema.Struct<{
213
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
214
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
215
+ };
216
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
217
+ readonly error: Schema.optionalKey<Schema.String>;
218
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
219
+ }>;
220
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
221
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
222
+ }>]>>;
223
+ readonly created_at: Schema.Int;
224
+ }>;
225
+ export interface SteerInput extends Schema.Schema.Type<typeof SteerInput> {
226
+ }
227
+ export declare const SteerAccepted: Schema.Struct<{
228
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
229
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
230
+ };
231
+ readonly kind: Schema.Literals<readonly ["steering", "follow_up"]>;
232
+ readonly sequence: Schema.Int;
233
+ }>;
234
+ export interface SteerAccepted extends Schema.Schema.Type<typeof SteerAccepted> {
235
+ }
143
236
  export declare const WakeInput: Schema.Struct<{
144
237
  readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
145
238
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
@@ -152,22 +245,26 @@ export declare const WakeInput: Schema.Struct<{
152
245
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
153
246
  readonly type: Schema.Literal<"text">;
154
247
  readonly text: Schema.String;
248
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
155
249
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
156
250
  }>, Schema.Struct<{
157
251
  readonly type: Schema.Literal<"structured">;
158
252
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
159
253
  readonly schema_ref: Schema.optionalKey<Schema.String>;
254
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
160
255
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
161
256
  }>, Schema.Struct<{
162
257
  readonly type: Schema.Literal<"blob-reference">;
163
258
  readonly uri: Schema.String;
164
259
  readonly media_type: Schema.String;
165
260
  readonly filename: Schema.optionalKey<Schema.String>;
261
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
166
262
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
167
263
  }>, Schema.Struct<{
168
264
  readonly type: Schema.Literal<"artifact-reference">;
169
265
  readonly artifact_id: Schema.String;
170
266
  readonly media_type: Schema.optionalKey<Schema.String>;
267
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
171
268
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
172
269
  }>, Schema.Struct<{
173
270
  readonly type: Schema.Literal<"tool-call">;
@@ -179,6 +276,7 @@ export declare const WakeInput: Schema.Struct<{
179
276
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
180
277
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
181
278
  }>;
279
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
182
280
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
183
281
  }>, Schema.Struct<{
184
282
  readonly type: Schema.Literal<"tool-result">;
@@ -190,6 +288,7 @@ export declare const WakeInput: Schema.Struct<{
190
288
  readonly error: Schema.optionalKey<Schema.String>;
191
289
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
192
290
  }>;
291
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
193
292
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
194
293
  }>]>>>;
195
294
  readonly correlation_key: Schema.optionalKey<Schema.String>;
@@ -287,6 +386,18 @@ export declare const ResolveToolApprovalInput: Schema.Struct<{
287
386
  }>;
288
387
  export interface ResolveToolApprovalInput extends Schema.Schema.Type<typeof ResolveToolApprovalInput> {
289
388
  }
389
+ export declare const PermissionAnswer: Schema.Literals<readonly ["Approved", "Denied", "Always"]>;
390
+ export type PermissionAnswer = typeof PermissionAnswer.Type;
391
+ export declare const ResolvePermissionInput: Schema.Struct<{
392
+ readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
393
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
394
+ };
395
+ readonly answer: Schema.Literals<readonly ["Approved", "Denied", "Always"]>;
396
+ readonly reason: Schema.optionalKey<Schema.String>;
397
+ readonly resolved_at: Schema.Int;
398
+ }>;
399
+ export interface ResolvePermissionInput extends Schema.Schema.Type<typeof ResolvePermissionInput> {
400
+ }
290
401
  export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
291
402
  readonly envelope: Schema.Struct<{
292
403
  readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
@@ -298,22 +409,26 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
298
409
  readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
299
410
  readonly type: Schema.Literal<"text">;
300
411
  readonly text: Schema.String;
412
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
301
413
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
302
414
  }>, Schema.Struct<{
303
415
  readonly type: Schema.Literal<"structured">;
304
416
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
305
417
  readonly schema_ref: Schema.optionalKey<Schema.String>;
418
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
306
419
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
307
420
  }>, Schema.Struct<{
308
421
  readonly type: Schema.Literal<"blob-reference">;
309
422
  readonly uri: Schema.String;
310
423
  readonly media_type: Schema.String;
311
424
  readonly filename: Schema.optionalKey<Schema.String>;
425
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
312
426
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
313
427
  }>, Schema.Struct<{
314
428
  readonly type: Schema.Literal<"artifact-reference">;
315
429
  readonly artifact_id: Schema.String;
316
430
  readonly media_type: Schema.optionalKey<Schema.String>;
431
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
317
432
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
318
433
  }>, Schema.Struct<{
319
434
  readonly type: Schema.Literal<"tool-call">;
@@ -325,6 +440,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
325
440
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
326
441
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
327
442
  }>;
443
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
328
444
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
329
445
  }>, Schema.Struct<{
330
446
  readonly type: Schema.Literal<"tool-result">;
@@ -336,6 +452,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
336
452
  readonly error: Schema.optionalKey<Schema.String>;
337
453
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
338
454
  }>;
455
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
339
456
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
340
457
  }>]>>;
341
458
  readonly wait: Schema.optionalKey<Schema.Struct<{
@@ -359,22 +476,26 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
359
476
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
360
477
  readonly type: Schema.Literal<"text">;
361
478
  readonly text: Schema.String;
479
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
362
480
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
363
481
  }>, Schema.Struct<{
364
482
  readonly type: Schema.Literal<"structured">;
365
483
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
366
484
  readonly schema_ref: Schema.optionalKey<Schema.String>;
485
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
367
486
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
368
487
  }>, Schema.Struct<{
369
488
  readonly type: Schema.Literal<"blob-reference">;
370
489
  readonly uri: Schema.String;
371
490
  readonly media_type: Schema.String;
372
491
  readonly filename: Schema.optionalKey<Schema.String>;
492
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
373
493
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
374
494
  }>, Schema.Struct<{
375
495
  readonly type: Schema.Literal<"artifact-reference">;
376
496
  readonly artifact_id: Schema.String;
377
497
  readonly media_type: Schema.optionalKey<Schema.String>;
498
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
378
499
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
379
500
  }>, Schema.Struct<{
380
501
  readonly type: Schema.Literal<"tool-call">;
@@ -386,6 +507,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
386
507
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
387
508
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
388
509
  }>;
510
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
389
511
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
390
512
  }>, Schema.Struct<{
391
513
  readonly type: Schema.Literal<"tool-result">;
@@ -397,6 +519,7 @@ export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
397
519
  readonly error: Schema.optionalKey<Schema.String>;
398
520
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
399
521
  }>;
522
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
400
523
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
401
524
  }>]>>>;
402
525
  readonly correlation_key: Schema.optionalKey<Schema.String>;
@@ -507,22 +630,26 @@ export declare const CreateScheduleInput: Schema.Struct<{
507
630
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
508
631
  readonly type: Schema.Literal<"text">;
509
632
  readonly text: Schema.String;
633
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
510
634
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
511
635
  }>, Schema.Struct<{
512
636
  readonly type: Schema.Literal<"structured">;
513
637
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
514
638
  readonly schema_ref: Schema.optionalKey<Schema.String>;
639
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
515
640
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
516
641
  }>, Schema.Struct<{
517
642
  readonly type: Schema.Literal<"blob-reference">;
518
643
  readonly uri: Schema.String;
519
644
  readonly media_type: Schema.String;
520
645
  readonly filename: Schema.optionalKey<Schema.String>;
646
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
521
647
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
522
648
  }>, Schema.Struct<{
523
649
  readonly type: Schema.Literal<"artifact-reference">;
524
650
  readonly artifact_id: Schema.String;
525
651
  readonly media_type: Schema.optionalKey<Schema.String>;
652
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
526
653
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
527
654
  }>, Schema.Struct<{
528
655
  readonly type: Schema.Literal<"tool-call">;
@@ -534,6 +661,7 @@ export declare const CreateScheduleInput: Schema.Struct<{
534
661
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
535
662
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
536
663
  }>;
664
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
537
665
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
538
666
  }>, Schema.Struct<{
539
667
  readonly type: Schema.Literal<"tool-result">;
@@ -545,6 +673,7 @@ export declare const CreateScheduleInput: Schema.Struct<{
545
673
  readonly error: Schema.optionalKey<Schema.String>;
546
674
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
547
675
  }>;
676
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
548
677
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
549
678
  }>]>>>;
550
679
  readonly next_run_at: Schema.Int;
@@ -570,22 +699,26 @@ export declare const CreateScheduleResult: Schema.Struct<{
570
699
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
571
700
  readonly type: Schema.Literal<"text">;
572
701
  readonly text: Schema.String;
702
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
573
703
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
574
704
  }>, Schema.Struct<{
575
705
  readonly type: Schema.Literal<"structured">;
576
706
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
577
707
  readonly schema_ref: Schema.optionalKey<Schema.String>;
708
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
578
709
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
579
710
  }>, Schema.Struct<{
580
711
  readonly type: Schema.Literal<"blob-reference">;
581
712
  readonly uri: Schema.String;
582
713
  readonly media_type: Schema.String;
583
714
  readonly filename: Schema.optionalKey<Schema.String>;
715
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
584
716
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
585
717
  }>, Schema.Struct<{
586
718
  readonly type: Schema.Literal<"artifact-reference">;
587
719
  readonly artifact_id: Schema.String;
588
720
  readonly media_type: Schema.optionalKey<Schema.String>;
721
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
589
722
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
590
723
  }>, Schema.Struct<{
591
724
  readonly type: Schema.Literal<"tool-call">;
@@ -597,6 +730,7 @@ export declare const CreateScheduleResult: Schema.Struct<{
597
730
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
598
731
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
599
732
  }>;
733
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
600
734
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
601
735
  }>, Schema.Struct<{
602
736
  readonly type: Schema.Literal<"tool-result">;
@@ -608,6 +742,7 @@ export declare const CreateScheduleResult: Schema.Struct<{
608
742
  readonly error: Schema.optionalKey<Schema.String>;
609
743
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
610
744
  }>;
745
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
611
746
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
612
747
  }>]>>>;
613
748
  readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
@@ -646,22 +781,26 @@ export declare const CancelScheduleResult: Schema.Struct<{
646
781
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
647
782
  readonly type: Schema.Literal<"text">;
648
783
  readonly text: Schema.String;
784
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
649
785
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
650
786
  }>, Schema.Struct<{
651
787
  readonly type: Schema.Literal<"structured">;
652
788
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
653
789
  readonly schema_ref: Schema.optionalKey<Schema.String>;
790
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
654
791
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
655
792
  }>, Schema.Struct<{
656
793
  readonly type: Schema.Literal<"blob-reference">;
657
794
  readonly uri: Schema.String;
658
795
  readonly media_type: Schema.String;
659
796
  readonly filename: Schema.optionalKey<Schema.String>;
797
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
660
798
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
661
799
  }>, Schema.Struct<{
662
800
  readonly type: Schema.Literal<"artifact-reference">;
663
801
  readonly artifact_id: Schema.String;
664
802
  readonly media_type: Schema.optionalKey<Schema.String>;
803
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
665
804
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
666
805
  }>, Schema.Struct<{
667
806
  readonly type: Schema.Literal<"tool-call">;
@@ -673,6 +812,7 @@ export declare const CancelScheduleResult: Schema.Struct<{
673
812
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
674
813
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
675
814
  }>;
815
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
676
816
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
677
817
  }>, Schema.Struct<{
678
818
  readonly type: Schema.Literal<"tool-result">;
@@ -684,6 +824,7 @@ export declare const CancelScheduleResult: Schema.Struct<{
684
824
  readonly error: Schema.optionalKey<Schema.String>;
685
825
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
686
826
  }>;
827
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
687
828
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
688
829
  }>]>>>;
689
830
  readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
@@ -719,22 +860,26 @@ export declare const ListSchedulesResult: Schema.Struct<{
719
860
  readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
720
861
  readonly type: Schema.Literal<"text">;
721
862
  readonly text: Schema.String;
863
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
722
864
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
723
865
  }>, Schema.Struct<{
724
866
  readonly type: Schema.Literal<"structured">;
725
867
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
726
868
  readonly schema_ref: Schema.optionalKey<Schema.String>;
869
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
727
870
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
728
871
  }>, Schema.Struct<{
729
872
  readonly type: Schema.Literal<"blob-reference">;
730
873
  readonly uri: Schema.String;
731
874
  readonly media_type: Schema.String;
732
875
  readonly filename: Schema.optionalKey<Schema.String>;
876
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
733
877
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
734
878
  }>, Schema.Struct<{
735
879
  readonly type: Schema.Literal<"artifact-reference">;
736
880
  readonly artifact_id: Schema.String;
737
881
  readonly media_type: Schema.optionalKey<Schema.String>;
882
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
738
883
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
739
884
  }>, Schema.Struct<{
740
885
  readonly type: Schema.Literal<"tool-call">;
@@ -746,6 +891,7 @@ export declare const ListSchedulesResult: Schema.Struct<{
746
891
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
747
892
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
748
893
  }>;
894
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
749
895
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
750
896
  }>, Schema.Struct<{
751
897
  readonly type: Schema.Literal<"tool-result">;
@@ -757,6 +903,7 @@ export declare const ListSchedulesResult: Schema.Struct<{
757
903
  readonly error: Schema.optionalKey<Schema.String>;
758
904
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
759
905
  }>;
906
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
760
907
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
761
908
  }>]>>>;
762
909
  readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
@@ -789,6 +936,9 @@ export declare const ConversationSummary: Schema.Struct<{
789
936
  readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
790
937
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
791
938
  };
939
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
940
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
941
+ }>;
792
942
  readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
793
943
  readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
794
944
  readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
@@ -808,6 +958,9 @@ export declare const ListExecutionsResult: Schema.Struct<{
808
958
  readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
809
959
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
810
960
  };
961
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
962
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
963
+ }>;
811
964
  readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
812
965
  readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
813
966
  readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
@@ -821,6 +974,88 @@ export declare const ListExecutionsResult: Schema.Struct<{
821
974
  }>;
822
975
  export interface ListExecutionsResult extends Schema.Schema.Type<typeof ListExecutionsResult> {
823
976
  }
977
+ export declare const ListSessionsInput: Schema.Struct<{
978
+ readonly root_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
979
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
980
+ }>;
981
+ readonly limit: Schema.optionalKey<Schema.Int>;
982
+ readonly cursor: Schema.optionalKey<Schema.String>;
983
+ }>;
984
+ export interface ListSessionsInput extends Schema.Schema.Type<typeof ListSessionsInput> {
985
+ }
986
+ export declare const SessionSummary: Schema.Struct<{
987
+ readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
988
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
989
+ };
990
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
991
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
992
+ };
993
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
994
+ readonly created_at: Schema.Int;
995
+ readonly updated_at: Schema.Int;
996
+ }>;
997
+ export interface SessionSummary extends Schema.Schema.Type<typeof SessionSummary> {
998
+ }
999
+ export declare const ListSessionsResult: Schema.Struct<{
1000
+ readonly records: Schema.$Array<Schema.Struct<{
1001
+ readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
1002
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
1003
+ };
1004
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1005
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1006
+ };
1007
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1008
+ readonly created_at: Schema.Int;
1009
+ readonly updated_at: Schema.Int;
1010
+ }>>;
1011
+ readonly next_cursor: Schema.optionalKey<Schema.String>;
1012
+ }>;
1013
+ export interface ListSessionsResult extends Schema.Schema.Type<typeof ListSessionsResult> {
1014
+ }
1015
+ export declare const GetSessionInput: Schema.Struct<{
1016
+ readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
1017
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
1018
+ };
1019
+ readonly limit: Schema.optionalKey<Schema.Int>;
1020
+ readonly cursor: Schema.optionalKey<Schema.String>;
1021
+ }>;
1022
+ export interface GetSessionInput extends Schema.Schema.Type<typeof GetSessionInput> {
1023
+ }
1024
+ export declare const GetSessionResult: Schema.Struct<{
1025
+ readonly session: Schema.Struct<{
1026
+ readonly session_id: Schema.brand<Schema.String, "Relay.SessionId"> & {
1027
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
1028
+ };
1029
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1030
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1031
+ };
1032
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1033
+ readonly created_at: Schema.Int;
1034
+ readonly updated_at: Schema.Int;
1035
+ }>;
1036
+ readonly executions: Schema.$Array<Schema.Struct<{
1037
+ readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
1038
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
1039
+ };
1040
+ readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
1041
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
1042
+ };
1043
+ readonly session_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.SessionId"> & {
1044
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SessionId">;
1045
+ }>;
1046
+ readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
1047
+ readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
1048
+ readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
1049
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
1050
+ }>;
1051
+ readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
1052
+ readonly created_at: Schema.Int;
1053
+ readonly updated_at: Schema.Int;
1054
+ }>>;
1055
+ readonly next_cursor: Schema.optionalKey<Schema.String>;
1056
+ }>;
1057
+ export interface GetSessionResult extends Schema.Schema.Type<typeof GetSessionResult> {
1058
+ }
824
1059
  export declare const ReplayExecutionInput: Schema.Struct<{
825
1060
  readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
826
1061
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
@@ -841,28 +1076,32 @@ export declare const ReplayExecutionResult: Schema.Struct<{
841
1076
  readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
842
1077
  make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
843
1078
  }>;
844
- readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "model.usage.reported", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "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"]>;
1079
+ 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", "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"]>;
845
1080
  readonly sequence: Schema.Int;
846
1081
  readonly cursor: Schema.String;
847
1082
  readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
848
1083
  readonly type: Schema.Literal<"text">;
849
1084
  readonly text: Schema.String;
1085
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
850
1086
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
851
1087
  }>, Schema.Struct<{
852
1088
  readonly type: Schema.Literal<"structured">;
853
1089
  readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
854
1090
  readonly schema_ref: Schema.optionalKey<Schema.String>;
1091
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
855
1092
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
856
1093
  }>, Schema.Struct<{
857
1094
  readonly type: Schema.Literal<"blob-reference">;
858
1095
  readonly uri: Schema.String;
859
1096
  readonly media_type: Schema.String;
860
1097
  readonly filename: Schema.optionalKey<Schema.String>;
1098
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
861
1099
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
862
1100
  }>, Schema.Struct<{
863
1101
  readonly type: Schema.Literal<"artifact-reference">;
864
1102
  readonly artifact_id: Schema.String;
865
1103
  readonly media_type: Schema.optionalKey<Schema.String>;
1104
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
866
1105
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
867
1106
  }>, Schema.Struct<{
868
1107
  readonly type: Schema.Literal<"tool-call">;
@@ -874,6 +1113,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
874
1113
  readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
875
1114
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
876
1115
  }>;
1116
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
877
1117
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
878
1118
  }>, Schema.Struct<{
879
1119
  readonly type: Schema.Literal<"tool-result">;
@@ -885,6 +1125,7 @@ export declare const ReplayExecutionResult: Schema.Struct<{
885
1125
  readonly error: Schema.optionalKey<Schema.String>;
886
1126
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
887
1127
  }>;
1128
+ readonly provider_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
888
1129
  readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
889
1130
  }>]>>>;
890
1131
  readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;