@relayfx/sdk 0.0.29 → 0.0.30

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 (31) hide show
  1. package/dist/index.js +23 -5
  2. package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
  3. package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
  4. package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
  5. package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
  6. package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
  7. package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
  8. package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
  9. package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
  10. package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
  11. package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
  12. package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
  13. package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
  14. package/dist/migrations/20260705003847_nervous_banshee/migration.sql +11 -0
  15. package/dist/migrations/20260705003847_nervous_banshee/snapshot.json +2954 -0
  16. package/dist/migrations/20260705012626_common_stryfe/migration.sql +31 -0
  17. package/dist/migrations/20260705012626_common_stryfe/snapshot.json +3378 -0
  18. package/dist/migrations/20260705015420_sweet_captain_marvel/migration.sql +10 -0
  19. package/dist/migrations/20260705015420_sweet_captain_marvel/snapshot.json +3485 -0
  20. package/dist/migrations/20260705023041_chunky_scalphunter/migration.sql +22 -0
  21. package/dist/migrations/20260705023041_chunky_scalphunter/snapshot.json +3753 -0
  22. package/dist/migrations/20260705030344_short_patriot/migration.sql +11 -0
  23. package/dist/migrations/20260705030344_short_patriot/snapshot.json +3873 -0
  24. package/dist/migrations/20260705045546_heavy_ben_grimm/migration.sql +30 -0
  25. package/dist/migrations/20260705045546_heavy_ben_grimm/snapshot.json +4193 -0
  26. package/dist/migrations/20260706185931_regular_shadow_king/migration.sql +166 -0
  27. package/dist/migrations/20260706185931_regular_shadow_king/snapshot.json +4844 -0
  28. package/dist/migrations/20260706233300_equal_cyclops/migration.sql +3 -0
  29. package/dist/migrations/20260706233300_equal_cyclops/snapshot.json +4883 -0
  30. package/dist/types/runtime/runner/runner-runtime-service.d.ts +10 -9
  31. package/package.json +1 -1
@@ -0,0 +1,2954 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "d0814cf7-eb1d-41c1-8870-4b2292e42060",
5
+ "prevIds": ["473e16d1-ad20-40bc-a5a6-881479d76b32"],
6
+ "ddl": [
7
+ {
8
+ "isRlsEnabled": false,
9
+ "name": "relay_address_book_entries",
10
+ "entityType": "tables",
11
+ "schema": "public"
12
+ },
13
+ {
14
+ "isRlsEnabled": false,
15
+ "name": "relay_agent_chats",
16
+ "entityType": "tables",
17
+ "schema": "public"
18
+ },
19
+ {
20
+ "isRlsEnabled": false,
21
+ "name": "relay_agent_definition_revisions",
22
+ "entityType": "tables",
23
+ "schema": "public"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "relay_agent_definitions",
28
+ "entityType": "tables",
29
+ "schema": "public"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "relay_child_executions",
34
+ "entityType": "tables",
35
+ "schema": "public"
36
+ },
37
+ {
38
+ "isRlsEnabled": false,
39
+ "name": "relay_envelope_ready",
40
+ "entityType": "tables",
41
+ "schema": "public"
42
+ },
43
+ {
44
+ "isRlsEnabled": false,
45
+ "name": "relay_envelopes",
46
+ "entityType": "tables",
47
+ "schema": "public"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "relay_execution_events",
52
+ "entityType": "tables",
53
+ "schema": "public"
54
+ },
55
+ {
56
+ "isRlsEnabled": false,
57
+ "name": "relay_executions",
58
+ "entityType": "tables",
59
+ "schema": "public"
60
+ },
61
+ {
62
+ "isRlsEnabled": false,
63
+ "name": "relay_idempotency_keys",
64
+ "entityType": "tables",
65
+ "schema": "public"
66
+ },
67
+ {
68
+ "isRlsEnabled": false,
69
+ "name": "relay_memory_records",
70
+ "entityType": "tables",
71
+ "schema": "public"
72
+ },
73
+ {
74
+ "isRlsEnabled": false,
75
+ "name": "relay_route_attempts",
76
+ "entityType": "tables",
77
+ "schema": "public"
78
+ },
79
+ {
80
+ "isRlsEnabled": false,
81
+ "name": "relay_schedules",
82
+ "entityType": "tables",
83
+ "schema": "public"
84
+ },
85
+ {
86
+ "isRlsEnabled": false,
87
+ "name": "relay_tool_calls",
88
+ "entityType": "tables",
89
+ "schema": "public"
90
+ },
91
+ {
92
+ "isRlsEnabled": false,
93
+ "name": "relay_tool_results",
94
+ "entityType": "tables",
95
+ "schema": "public"
96
+ },
97
+ {
98
+ "isRlsEnabled": false,
99
+ "name": "relay_waits",
100
+ "entityType": "tables",
101
+ "schema": "public"
102
+ },
103
+ {
104
+ "isRlsEnabled": false,
105
+ "name": "relay_workspace_leases",
106
+ "entityType": "tables",
107
+ "schema": "public"
108
+ },
109
+ {
110
+ "isRlsEnabled": false,
111
+ "name": "relay_workspace_snapshots",
112
+ "entityType": "tables",
113
+ "schema": "public"
114
+ },
115
+ {
116
+ "type": "text",
117
+ "typeSchema": null,
118
+ "notNull": true,
119
+ "dimensions": 0,
120
+ "default": null,
121
+ "generated": null,
122
+ "identity": null,
123
+ "name": "id",
124
+ "entityType": "columns",
125
+ "schema": "public",
126
+ "table": "relay_address_book_entries"
127
+ },
128
+ {
129
+ "type": "text",
130
+ "typeSchema": null,
131
+ "notNull": true,
132
+ "dimensions": 0,
133
+ "default": null,
134
+ "generated": null,
135
+ "identity": null,
136
+ "name": "address_id",
137
+ "entityType": "columns",
138
+ "schema": "public",
139
+ "table": "relay_address_book_entries"
140
+ },
141
+ {
142
+ "type": "text",
143
+ "typeSchema": null,
144
+ "notNull": true,
145
+ "dimensions": 0,
146
+ "default": null,
147
+ "generated": null,
148
+ "identity": null,
149
+ "name": "route_kind",
150
+ "entityType": "columns",
151
+ "schema": "public",
152
+ "table": "relay_address_book_entries"
153
+ },
154
+ {
155
+ "type": "text",
156
+ "typeSchema": null,
157
+ "notNull": true,
158
+ "dimensions": 0,
159
+ "default": null,
160
+ "generated": null,
161
+ "identity": null,
162
+ "name": "route_key",
163
+ "entityType": "columns",
164
+ "schema": "public",
165
+ "table": "relay_address_book_entries"
166
+ },
167
+ {
168
+ "type": "jsonb",
169
+ "typeSchema": null,
170
+ "notNull": true,
171
+ "dimensions": 0,
172
+ "default": "'{}'",
173
+ "generated": null,
174
+ "identity": null,
175
+ "name": "metadata_json",
176
+ "entityType": "columns",
177
+ "schema": "public",
178
+ "table": "relay_address_book_entries"
179
+ },
180
+ {
181
+ "type": "timestamp with time zone",
182
+ "typeSchema": null,
183
+ "notNull": true,
184
+ "dimensions": 0,
185
+ "default": "now()",
186
+ "generated": null,
187
+ "identity": null,
188
+ "name": "created_at",
189
+ "entityType": "columns",
190
+ "schema": "public",
191
+ "table": "relay_address_book_entries"
192
+ },
193
+ {
194
+ "type": "timestamp with time zone",
195
+ "typeSchema": null,
196
+ "notNull": true,
197
+ "dimensions": 0,
198
+ "default": "now()",
199
+ "generated": null,
200
+ "identity": null,
201
+ "name": "updated_at",
202
+ "entityType": "columns",
203
+ "schema": "public",
204
+ "table": "relay_address_book_entries"
205
+ },
206
+ {
207
+ "type": "text",
208
+ "typeSchema": null,
209
+ "notNull": true,
210
+ "dimensions": 0,
211
+ "default": null,
212
+ "generated": null,
213
+ "identity": null,
214
+ "name": "execution_id",
215
+ "entityType": "columns",
216
+ "schema": "public",
217
+ "table": "relay_agent_chats"
218
+ },
219
+ {
220
+ "type": "jsonb",
221
+ "typeSchema": null,
222
+ "notNull": true,
223
+ "dimensions": 0,
224
+ "default": null,
225
+ "generated": null,
226
+ "identity": null,
227
+ "name": "export_json",
228
+ "entityType": "columns",
229
+ "schema": "public",
230
+ "table": "relay_agent_chats"
231
+ },
232
+ {
233
+ "type": "timestamp with time zone",
234
+ "typeSchema": null,
235
+ "notNull": true,
236
+ "dimensions": 0,
237
+ "default": "now()",
238
+ "generated": null,
239
+ "identity": null,
240
+ "name": "updated_at",
241
+ "entityType": "columns",
242
+ "schema": "public",
243
+ "table": "relay_agent_chats"
244
+ },
245
+ {
246
+ "type": "text",
247
+ "typeSchema": null,
248
+ "notNull": true,
249
+ "dimensions": 0,
250
+ "default": null,
251
+ "generated": null,
252
+ "identity": null,
253
+ "name": "agent_definition_id",
254
+ "entityType": "columns",
255
+ "schema": "public",
256
+ "table": "relay_agent_definition_revisions"
257
+ },
258
+ {
259
+ "type": "integer",
260
+ "typeSchema": null,
261
+ "notNull": true,
262
+ "dimensions": 0,
263
+ "default": null,
264
+ "generated": null,
265
+ "identity": null,
266
+ "name": "revision",
267
+ "entityType": "columns",
268
+ "schema": "public",
269
+ "table": "relay_agent_definition_revisions"
270
+ },
271
+ {
272
+ "type": "text",
273
+ "typeSchema": null,
274
+ "notNull": true,
275
+ "dimensions": 0,
276
+ "default": null,
277
+ "generated": null,
278
+ "identity": null,
279
+ "name": "name",
280
+ "entityType": "columns",
281
+ "schema": "public",
282
+ "table": "relay_agent_definition_revisions"
283
+ },
284
+ {
285
+ "type": "jsonb",
286
+ "typeSchema": null,
287
+ "notNull": true,
288
+ "dimensions": 0,
289
+ "default": null,
290
+ "generated": null,
291
+ "identity": null,
292
+ "name": "definition_json",
293
+ "entityType": "columns",
294
+ "schema": "public",
295
+ "table": "relay_agent_definition_revisions"
296
+ },
297
+ {
298
+ "type": "timestamp with time zone",
299
+ "typeSchema": null,
300
+ "notNull": true,
301
+ "dimensions": 0,
302
+ "default": "now()",
303
+ "generated": null,
304
+ "identity": null,
305
+ "name": "created_at",
306
+ "entityType": "columns",
307
+ "schema": "public",
308
+ "table": "relay_agent_definition_revisions"
309
+ },
310
+ {
311
+ "type": "text",
312
+ "typeSchema": null,
313
+ "notNull": true,
314
+ "dimensions": 0,
315
+ "default": null,
316
+ "generated": null,
317
+ "identity": null,
318
+ "name": "id",
319
+ "entityType": "columns",
320
+ "schema": "public",
321
+ "table": "relay_agent_definitions"
322
+ },
323
+ {
324
+ "type": "text",
325
+ "typeSchema": null,
326
+ "notNull": true,
327
+ "dimensions": 0,
328
+ "default": null,
329
+ "generated": null,
330
+ "identity": null,
331
+ "name": "name",
332
+ "entityType": "columns",
333
+ "schema": "public",
334
+ "table": "relay_agent_definitions"
335
+ },
336
+ {
337
+ "type": "integer",
338
+ "typeSchema": null,
339
+ "notNull": true,
340
+ "dimensions": 0,
341
+ "default": null,
342
+ "generated": null,
343
+ "identity": null,
344
+ "name": "current_revision",
345
+ "entityType": "columns",
346
+ "schema": "public",
347
+ "table": "relay_agent_definitions"
348
+ },
349
+ {
350
+ "type": "jsonb",
351
+ "typeSchema": null,
352
+ "notNull": true,
353
+ "dimensions": 0,
354
+ "default": null,
355
+ "generated": null,
356
+ "identity": null,
357
+ "name": "definition_json",
358
+ "entityType": "columns",
359
+ "schema": "public",
360
+ "table": "relay_agent_definitions"
361
+ },
362
+ {
363
+ "type": "timestamp with time zone",
364
+ "typeSchema": null,
365
+ "notNull": true,
366
+ "dimensions": 0,
367
+ "default": "now()",
368
+ "generated": null,
369
+ "identity": null,
370
+ "name": "created_at",
371
+ "entityType": "columns",
372
+ "schema": "public",
373
+ "table": "relay_agent_definitions"
374
+ },
375
+ {
376
+ "type": "timestamp with time zone",
377
+ "typeSchema": null,
378
+ "notNull": true,
379
+ "dimensions": 0,
380
+ "default": "now()",
381
+ "generated": null,
382
+ "identity": null,
383
+ "name": "updated_at",
384
+ "entityType": "columns",
385
+ "schema": "public",
386
+ "table": "relay_agent_definitions"
387
+ },
388
+ {
389
+ "type": "text",
390
+ "typeSchema": null,
391
+ "notNull": true,
392
+ "dimensions": 0,
393
+ "default": null,
394
+ "generated": null,
395
+ "identity": null,
396
+ "name": "id",
397
+ "entityType": "columns",
398
+ "schema": "public",
399
+ "table": "relay_child_executions"
400
+ },
401
+ {
402
+ "type": "text",
403
+ "typeSchema": null,
404
+ "notNull": true,
405
+ "dimensions": 0,
406
+ "default": null,
407
+ "generated": null,
408
+ "identity": null,
409
+ "name": "execution_id",
410
+ "entityType": "columns",
411
+ "schema": "public",
412
+ "table": "relay_child_executions"
413
+ },
414
+ {
415
+ "type": "text",
416
+ "typeSchema": null,
417
+ "notNull": true,
418
+ "dimensions": 0,
419
+ "default": null,
420
+ "generated": null,
421
+ "identity": null,
422
+ "name": "address_id",
423
+ "entityType": "columns",
424
+ "schema": "public",
425
+ "table": "relay_child_executions"
426
+ },
427
+ {
428
+ "type": "text",
429
+ "typeSchema": null,
430
+ "notNull": true,
431
+ "dimensions": 0,
432
+ "default": null,
433
+ "generated": null,
434
+ "identity": null,
435
+ "name": "status",
436
+ "entityType": "columns",
437
+ "schema": "public",
438
+ "table": "relay_child_executions"
439
+ },
440
+ {
441
+ "type": "jsonb",
442
+ "typeSchema": null,
443
+ "notNull": true,
444
+ "dimensions": 0,
445
+ "default": "'{}'",
446
+ "generated": null,
447
+ "identity": null,
448
+ "name": "metadata_json",
449
+ "entityType": "columns",
450
+ "schema": "public",
451
+ "table": "relay_child_executions"
452
+ },
453
+ {
454
+ "type": "timestamp with time zone",
455
+ "typeSchema": null,
456
+ "notNull": true,
457
+ "dimensions": 0,
458
+ "default": "now()",
459
+ "generated": null,
460
+ "identity": null,
461
+ "name": "created_at",
462
+ "entityType": "columns",
463
+ "schema": "public",
464
+ "table": "relay_child_executions"
465
+ },
466
+ {
467
+ "type": "timestamp with time zone",
468
+ "typeSchema": null,
469
+ "notNull": true,
470
+ "dimensions": 0,
471
+ "default": "now()",
472
+ "generated": null,
473
+ "identity": null,
474
+ "name": "updated_at",
475
+ "entityType": "columns",
476
+ "schema": "public",
477
+ "table": "relay_child_executions"
478
+ },
479
+ {
480
+ "type": "text",
481
+ "typeSchema": null,
482
+ "notNull": true,
483
+ "dimensions": 0,
484
+ "default": null,
485
+ "generated": null,
486
+ "identity": null,
487
+ "name": "id",
488
+ "entityType": "columns",
489
+ "schema": "public",
490
+ "table": "relay_envelope_ready"
491
+ },
492
+ {
493
+ "type": "text",
494
+ "typeSchema": null,
495
+ "notNull": true,
496
+ "dimensions": 0,
497
+ "default": null,
498
+ "generated": null,
499
+ "identity": null,
500
+ "name": "envelope_id",
501
+ "entityType": "columns",
502
+ "schema": "public",
503
+ "table": "relay_envelope_ready"
504
+ },
505
+ {
506
+ "type": "text",
507
+ "typeSchema": null,
508
+ "notNull": true,
509
+ "dimensions": 0,
510
+ "default": null,
511
+ "generated": null,
512
+ "identity": null,
513
+ "name": "route_type",
514
+ "entityType": "columns",
515
+ "schema": "public",
516
+ "table": "relay_envelope_ready"
517
+ },
518
+ {
519
+ "type": "text",
520
+ "typeSchema": null,
521
+ "notNull": true,
522
+ "dimensions": 0,
523
+ "default": null,
524
+ "generated": null,
525
+ "identity": null,
526
+ "name": "route_key",
527
+ "entityType": "columns",
528
+ "schema": "public",
529
+ "table": "relay_envelope_ready"
530
+ },
531
+ {
532
+ "type": "text",
533
+ "typeSchema": null,
534
+ "notNull": true,
535
+ "dimensions": 0,
536
+ "default": "'ready'",
537
+ "generated": null,
538
+ "identity": null,
539
+ "name": "state",
540
+ "entityType": "columns",
541
+ "schema": "public",
542
+ "table": "relay_envelope_ready"
543
+ },
544
+ {
545
+ "type": "timestamp with time zone",
546
+ "typeSchema": null,
547
+ "notNull": true,
548
+ "dimensions": 0,
549
+ "default": "now()",
550
+ "generated": null,
551
+ "identity": null,
552
+ "name": "available_at",
553
+ "entityType": "columns",
554
+ "schema": "public",
555
+ "table": "relay_envelope_ready"
556
+ },
557
+ {
558
+ "type": "integer",
559
+ "typeSchema": null,
560
+ "notNull": true,
561
+ "dimensions": 0,
562
+ "default": "0",
563
+ "generated": null,
564
+ "identity": null,
565
+ "name": "attempt",
566
+ "entityType": "columns",
567
+ "schema": "public",
568
+ "table": "relay_envelope_ready"
569
+ },
570
+ {
571
+ "type": "text",
572
+ "typeSchema": null,
573
+ "notNull": false,
574
+ "dimensions": 0,
575
+ "default": null,
576
+ "generated": null,
577
+ "identity": null,
578
+ "name": "claim_owner",
579
+ "entityType": "columns",
580
+ "schema": "public",
581
+ "table": "relay_envelope_ready"
582
+ },
583
+ {
584
+ "type": "timestamp with time zone",
585
+ "typeSchema": null,
586
+ "notNull": false,
587
+ "dimensions": 0,
588
+ "default": null,
589
+ "generated": null,
590
+ "identity": null,
591
+ "name": "claim_expires_at",
592
+ "entityType": "columns",
593
+ "schema": "public",
594
+ "table": "relay_envelope_ready"
595
+ },
596
+ {
597
+ "type": "text",
598
+ "typeSchema": null,
599
+ "notNull": false,
600
+ "dimensions": 0,
601
+ "default": null,
602
+ "generated": null,
603
+ "identity": null,
604
+ "name": "last_error",
605
+ "entityType": "columns",
606
+ "schema": "public",
607
+ "table": "relay_envelope_ready"
608
+ },
609
+ {
610
+ "type": "text",
611
+ "typeSchema": null,
612
+ "notNull": false,
613
+ "dimensions": 0,
614
+ "default": null,
615
+ "generated": null,
616
+ "identity": null,
617
+ "name": "idempotency_key",
618
+ "entityType": "columns",
619
+ "schema": "public",
620
+ "table": "relay_envelope_ready"
621
+ },
622
+ {
623
+ "type": "jsonb",
624
+ "typeSchema": null,
625
+ "notNull": true,
626
+ "dimensions": 0,
627
+ "default": "'{}'",
628
+ "generated": null,
629
+ "identity": null,
630
+ "name": "metadata_json",
631
+ "entityType": "columns",
632
+ "schema": "public",
633
+ "table": "relay_envelope_ready"
634
+ },
635
+ {
636
+ "type": "timestamp with time zone",
637
+ "typeSchema": null,
638
+ "notNull": true,
639
+ "dimensions": 0,
640
+ "default": "now()",
641
+ "generated": null,
642
+ "identity": null,
643
+ "name": "created_at",
644
+ "entityType": "columns",
645
+ "schema": "public",
646
+ "table": "relay_envelope_ready"
647
+ },
648
+ {
649
+ "type": "timestamp with time zone",
650
+ "typeSchema": null,
651
+ "notNull": true,
652
+ "dimensions": 0,
653
+ "default": "now()",
654
+ "generated": null,
655
+ "identity": null,
656
+ "name": "updated_at",
657
+ "entityType": "columns",
658
+ "schema": "public",
659
+ "table": "relay_envelope_ready"
660
+ },
661
+ {
662
+ "type": "timestamp with time zone",
663
+ "typeSchema": null,
664
+ "notNull": false,
665
+ "dimensions": 0,
666
+ "default": null,
667
+ "generated": null,
668
+ "identity": null,
669
+ "name": "claimed_at",
670
+ "entityType": "columns",
671
+ "schema": "public",
672
+ "table": "relay_envelope_ready"
673
+ },
674
+ {
675
+ "type": "timestamp with time zone",
676
+ "typeSchema": null,
677
+ "notNull": false,
678
+ "dimensions": 0,
679
+ "default": null,
680
+ "generated": null,
681
+ "identity": null,
682
+ "name": "acknowledged_at",
683
+ "entityType": "columns",
684
+ "schema": "public",
685
+ "table": "relay_envelope_ready"
686
+ },
687
+ {
688
+ "type": "text",
689
+ "typeSchema": null,
690
+ "notNull": true,
691
+ "dimensions": 0,
692
+ "default": null,
693
+ "generated": null,
694
+ "identity": null,
695
+ "name": "id",
696
+ "entityType": "columns",
697
+ "schema": "public",
698
+ "table": "relay_envelopes"
699
+ },
700
+ {
701
+ "type": "text",
702
+ "typeSchema": null,
703
+ "notNull": true,
704
+ "dimensions": 0,
705
+ "default": null,
706
+ "generated": null,
707
+ "identity": null,
708
+ "name": "execution_id",
709
+ "entityType": "columns",
710
+ "schema": "public",
711
+ "table": "relay_envelopes"
712
+ },
713
+ {
714
+ "type": "text",
715
+ "typeSchema": null,
716
+ "notNull": true,
717
+ "dimensions": 0,
718
+ "default": null,
719
+ "generated": null,
720
+ "identity": null,
721
+ "name": "from_address_id",
722
+ "entityType": "columns",
723
+ "schema": "public",
724
+ "table": "relay_envelopes"
725
+ },
726
+ {
727
+ "type": "text",
728
+ "typeSchema": null,
729
+ "notNull": true,
730
+ "dimensions": 0,
731
+ "default": null,
732
+ "generated": null,
733
+ "identity": null,
734
+ "name": "to_address_id",
735
+ "entityType": "columns",
736
+ "schema": "public",
737
+ "table": "relay_envelopes"
738
+ },
739
+ {
740
+ "type": "jsonb",
741
+ "typeSchema": null,
742
+ "notNull": true,
743
+ "dimensions": 0,
744
+ "default": null,
745
+ "generated": null,
746
+ "identity": null,
747
+ "name": "content_json",
748
+ "entityType": "columns",
749
+ "schema": "public",
750
+ "table": "relay_envelopes"
751
+ },
752
+ {
753
+ "type": "jsonb",
754
+ "typeSchema": null,
755
+ "notNull": false,
756
+ "dimensions": 0,
757
+ "default": null,
758
+ "generated": null,
759
+ "identity": null,
760
+ "name": "wait_json",
761
+ "entityType": "columns",
762
+ "schema": "public",
763
+ "table": "relay_envelopes"
764
+ },
765
+ {
766
+ "type": "text",
767
+ "typeSchema": null,
768
+ "notNull": false,
769
+ "dimensions": 0,
770
+ "default": null,
771
+ "generated": null,
772
+ "identity": null,
773
+ "name": "correlation_key",
774
+ "entityType": "columns",
775
+ "schema": "public",
776
+ "table": "relay_envelopes"
777
+ },
778
+ {
779
+ "type": "jsonb",
780
+ "typeSchema": null,
781
+ "notNull": true,
782
+ "dimensions": 0,
783
+ "default": "'{}'",
784
+ "generated": null,
785
+ "identity": null,
786
+ "name": "metadata_json",
787
+ "entityType": "columns",
788
+ "schema": "public",
789
+ "table": "relay_envelopes"
790
+ },
791
+ {
792
+ "type": "timestamp with time zone",
793
+ "typeSchema": null,
794
+ "notNull": true,
795
+ "dimensions": 0,
796
+ "default": "now()",
797
+ "generated": null,
798
+ "identity": null,
799
+ "name": "created_at",
800
+ "entityType": "columns",
801
+ "schema": "public",
802
+ "table": "relay_envelopes"
803
+ },
804
+ {
805
+ "type": "text",
806
+ "typeSchema": null,
807
+ "notNull": true,
808
+ "dimensions": 0,
809
+ "default": null,
810
+ "generated": null,
811
+ "identity": null,
812
+ "name": "id",
813
+ "entityType": "columns",
814
+ "schema": "public",
815
+ "table": "relay_execution_events"
816
+ },
817
+ {
818
+ "type": "text",
819
+ "typeSchema": null,
820
+ "notNull": true,
821
+ "dimensions": 0,
822
+ "default": null,
823
+ "generated": null,
824
+ "identity": null,
825
+ "name": "execution_id",
826
+ "entityType": "columns",
827
+ "schema": "public",
828
+ "table": "relay_execution_events"
829
+ },
830
+ {
831
+ "type": "text",
832
+ "typeSchema": null,
833
+ "notNull": false,
834
+ "dimensions": 0,
835
+ "default": null,
836
+ "generated": null,
837
+ "identity": null,
838
+ "name": "child_execution_id",
839
+ "entityType": "columns",
840
+ "schema": "public",
841
+ "table": "relay_execution_events"
842
+ },
843
+ {
844
+ "type": "text",
845
+ "typeSchema": null,
846
+ "notNull": true,
847
+ "dimensions": 0,
848
+ "default": null,
849
+ "generated": null,
850
+ "identity": null,
851
+ "name": "type",
852
+ "entityType": "columns",
853
+ "schema": "public",
854
+ "table": "relay_execution_events"
855
+ },
856
+ {
857
+ "type": "integer",
858
+ "typeSchema": null,
859
+ "notNull": true,
860
+ "dimensions": 0,
861
+ "default": null,
862
+ "generated": null,
863
+ "identity": null,
864
+ "name": "sequence",
865
+ "entityType": "columns",
866
+ "schema": "public",
867
+ "table": "relay_execution_events"
868
+ },
869
+ {
870
+ "type": "text",
871
+ "typeSchema": null,
872
+ "notNull": true,
873
+ "dimensions": 0,
874
+ "default": null,
875
+ "generated": null,
876
+ "identity": null,
877
+ "name": "cursor",
878
+ "entityType": "columns",
879
+ "schema": "public",
880
+ "table": "relay_execution_events"
881
+ },
882
+ {
883
+ "type": "jsonb",
884
+ "typeSchema": null,
885
+ "notNull": false,
886
+ "dimensions": 0,
887
+ "default": null,
888
+ "generated": null,
889
+ "identity": null,
890
+ "name": "content_json",
891
+ "entityType": "columns",
892
+ "schema": "public",
893
+ "table": "relay_execution_events"
894
+ },
895
+ {
896
+ "type": "jsonb",
897
+ "typeSchema": null,
898
+ "notNull": true,
899
+ "dimensions": 0,
900
+ "default": "'{}'",
901
+ "generated": null,
902
+ "identity": null,
903
+ "name": "data_json",
904
+ "entityType": "columns",
905
+ "schema": "public",
906
+ "table": "relay_execution_events"
907
+ },
908
+ {
909
+ "type": "timestamp with time zone",
910
+ "typeSchema": null,
911
+ "notNull": true,
912
+ "dimensions": 0,
913
+ "default": "now()",
914
+ "generated": null,
915
+ "identity": null,
916
+ "name": "created_at",
917
+ "entityType": "columns",
918
+ "schema": "public",
919
+ "table": "relay_execution_events"
920
+ },
921
+ {
922
+ "type": "text",
923
+ "typeSchema": null,
924
+ "notNull": true,
925
+ "dimensions": 0,
926
+ "default": null,
927
+ "generated": null,
928
+ "identity": null,
929
+ "name": "id",
930
+ "entityType": "columns",
931
+ "schema": "public",
932
+ "table": "relay_executions"
933
+ },
934
+ {
935
+ "type": "text",
936
+ "typeSchema": null,
937
+ "notNull": true,
938
+ "dimensions": 0,
939
+ "default": null,
940
+ "generated": null,
941
+ "identity": null,
942
+ "name": "root_address_id",
943
+ "entityType": "columns",
944
+ "schema": "public",
945
+ "table": "relay_executions"
946
+ },
947
+ {
948
+ "type": "text",
949
+ "typeSchema": null,
950
+ "notNull": true,
951
+ "dimensions": 0,
952
+ "default": null,
953
+ "generated": null,
954
+ "identity": null,
955
+ "name": "status",
956
+ "entityType": "columns",
957
+ "schema": "public",
958
+ "table": "relay_executions"
959
+ },
960
+ {
961
+ "type": "text",
962
+ "typeSchema": null,
963
+ "notNull": false,
964
+ "dimensions": 0,
965
+ "default": null,
966
+ "generated": null,
967
+ "identity": null,
968
+ "name": "agent_definition_id",
969
+ "entityType": "columns",
970
+ "schema": "public",
971
+ "table": "relay_executions"
972
+ },
973
+ {
974
+ "type": "integer",
975
+ "typeSchema": null,
976
+ "notNull": false,
977
+ "dimensions": 0,
978
+ "default": null,
979
+ "generated": null,
980
+ "identity": null,
981
+ "name": "agent_definition_revision",
982
+ "entityType": "columns",
983
+ "schema": "public",
984
+ "table": "relay_executions"
985
+ },
986
+ {
987
+ "type": "jsonb",
988
+ "typeSchema": null,
989
+ "notNull": false,
990
+ "dimensions": 0,
991
+ "default": null,
992
+ "generated": null,
993
+ "identity": null,
994
+ "name": "agent_definition_snapshot_json",
995
+ "entityType": "columns",
996
+ "schema": "public",
997
+ "table": "relay_executions"
998
+ },
999
+ {
1000
+ "type": "jsonb",
1001
+ "typeSchema": null,
1002
+ "notNull": true,
1003
+ "dimensions": 0,
1004
+ "default": "'{}'",
1005
+ "generated": null,
1006
+ "identity": null,
1007
+ "name": "metadata_json",
1008
+ "entityType": "columns",
1009
+ "schema": "public",
1010
+ "table": "relay_executions"
1011
+ },
1012
+ {
1013
+ "type": "timestamp with time zone",
1014
+ "typeSchema": null,
1015
+ "notNull": true,
1016
+ "dimensions": 0,
1017
+ "default": "now()",
1018
+ "generated": null,
1019
+ "identity": null,
1020
+ "name": "created_at",
1021
+ "entityType": "columns",
1022
+ "schema": "public",
1023
+ "table": "relay_executions"
1024
+ },
1025
+ {
1026
+ "type": "timestamp with time zone",
1027
+ "typeSchema": null,
1028
+ "notNull": true,
1029
+ "dimensions": 0,
1030
+ "default": "now()",
1031
+ "generated": null,
1032
+ "identity": null,
1033
+ "name": "updated_at",
1034
+ "entityType": "columns",
1035
+ "schema": "public",
1036
+ "table": "relay_executions"
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "typeSchema": null,
1041
+ "notNull": true,
1042
+ "dimensions": 0,
1043
+ "default": null,
1044
+ "generated": null,
1045
+ "identity": null,
1046
+ "name": "id",
1047
+ "entityType": "columns",
1048
+ "schema": "public",
1049
+ "table": "relay_idempotency_keys"
1050
+ },
1051
+ {
1052
+ "type": "text",
1053
+ "typeSchema": null,
1054
+ "notNull": true,
1055
+ "dimensions": 0,
1056
+ "default": null,
1057
+ "generated": null,
1058
+ "identity": null,
1059
+ "name": "scope",
1060
+ "entityType": "columns",
1061
+ "schema": "public",
1062
+ "table": "relay_idempotency_keys"
1063
+ },
1064
+ {
1065
+ "type": "text",
1066
+ "typeSchema": null,
1067
+ "notNull": true,
1068
+ "dimensions": 0,
1069
+ "default": null,
1070
+ "generated": null,
1071
+ "identity": null,
1072
+ "name": "operation",
1073
+ "entityType": "columns",
1074
+ "schema": "public",
1075
+ "table": "relay_idempotency_keys"
1076
+ },
1077
+ {
1078
+ "type": "text",
1079
+ "typeSchema": null,
1080
+ "notNull": true,
1081
+ "dimensions": 0,
1082
+ "default": null,
1083
+ "generated": null,
1084
+ "identity": null,
1085
+ "name": "key",
1086
+ "entityType": "columns",
1087
+ "schema": "public",
1088
+ "table": "relay_idempotency_keys"
1089
+ },
1090
+ {
1091
+ "type": "jsonb",
1092
+ "typeSchema": null,
1093
+ "notNull": false,
1094
+ "dimensions": 0,
1095
+ "default": null,
1096
+ "generated": null,
1097
+ "identity": null,
1098
+ "name": "result_json",
1099
+ "entityType": "columns",
1100
+ "schema": "public",
1101
+ "table": "relay_idempotency_keys"
1102
+ },
1103
+ {
1104
+ "type": "jsonb",
1105
+ "typeSchema": null,
1106
+ "notNull": true,
1107
+ "dimensions": 0,
1108
+ "default": "'{}'",
1109
+ "generated": null,
1110
+ "identity": null,
1111
+ "name": "metadata_json",
1112
+ "entityType": "columns",
1113
+ "schema": "public",
1114
+ "table": "relay_idempotency_keys"
1115
+ },
1116
+ {
1117
+ "type": "timestamp with time zone",
1118
+ "typeSchema": null,
1119
+ "notNull": true,
1120
+ "dimensions": 0,
1121
+ "default": "now()",
1122
+ "generated": null,
1123
+ "identity": null,
1124
+ "name": "created_at",
1125
+ "entityType": "columns",
1126
+ "schema": "public",
1127
+ "table": "relay_idempotency_keys"
1128
+ },
1129
+ {
1130
+ "type": "timestamp with time zone",
1131
+ "typeSchema": null,
1132
+ "notNull": true,
1133
+ "dimensions": 0,
1134
+ "default": "now()",
1135
+ "generated": null,
1136
+ "identity": null,
1137
+ "name": "updated_at",
1138
+ "entityType": "columns",
1139
+ "schema": "public",
1140
+ "table": "relay_idempotency_keys"
1141
+ },
1142
+ {
1143
+ "type": "timestamp with time zone",
1144
+ "typeSchema": null,
1145
+ "notNull": false,
1146
+ "dimensions": 0,
1147
+ "default": null,
1148
+ "generated": null,
1149
+ "identity": null,
1150
+ "name": "expires_at",
1151
+ "entityType": "columns",
1152
+ "schema": "public",
1153
+ "table": "relay_idempotency_keys"
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "typeSchema": null,
1158
+ "notNull": true,
1159
+ "dimensions": 0,
1160
+ "default": null,
1161
+ "generated": null,
1162
+ "identity": null,
1163
+ "name": "id",
1164
+ "entityType": "columns",
1165
+ "schema": "public",
1166
+ "table": "relay_memory_records"
1167
+ },
1168
+ {
1169
+ "type": "text",
1170
+ "typeSchema": null,
1171
+ "notNull": true,
1172
+ "dimensions": 0,
1173
+ "default": null,
1174
+ "generated": null,
1175
+ "identity": null,
1176
+ "name": "agent",
1177
+ "entityType": "columns",
1178
+ "schema": "public",
1179
+ "table": "relay_memory_records"
1180
+ },
1181
+ {
1182
+ "type": "text",
1183
+ "typeSchema": null,
1184
+ "notNull": true,
1185
+ "dimensions": 0,
1186
+ "default": null,
1187
+ "generated": null,
1188
+ "identity": null,
1189
+ "name": "subject",
1190
+ "entityType": "columns",
1191
+ "schema": "public",
1192
+ "table": "relay_memory_records"
1193
+ },
1194
+ {
1195
+ "type": "double precision",
1196
+ "typeSchema": null,
1197
+ "notNull": true,
1198
+ "dimensions": 1,
1199
+ "default": null,
1200
+ "generated": null,
1201
+ "identity": null,
1202
+ "name": "embedding",
1203
+ "entityType": "columns",
1204
+ "schema": "public",
1205
+ "table": "relay_memory_records"
1206
+ },
1207
+ {
1208
+ "type": "jsonb",
1209
+ "typeSchema": null,
1210
+ "notNull": true,
1211
+ "dimensions": 0,
1212
+ "default": null,
1213
+ "generated": null,
1214
+ "identity": null,
1215
+ "name": "parts_json",
1216
+ "entityType": "columns",
1217
+ "schema": "public",
1218
+ "table": "relay_memory_records"
1219
+ },
1220
+ {
1221
+ "type": "jsonb",
1222
+ "typeSchema": null,
1223
+ "notNull": true,
1224
+ "dimensions": 0,
1225
+ "default": "'{}'",
1226
+ "generated": null,
1227
+ "identity": null,
1228
+ "name": "metadata_json",
1229
+ "entityType": "columns",
1230
+ "schema": "public",
1231
+ "table": "relay_memory_records"
1232
+ },
1233
+ {
1234
+ "type": "timestamp with time zone",
1235
+ "typeSchema": null,
1236
+ "notNull": true,
1237
+ "dimensions": 0,
1238
+ "default": "now()",
1239
+ "generated": null,
1240
+ "identity": null,
1241
+ "name": "created_at",
1242
+ "entityType": "columns",
1243
+ "schema": "public",
1244
+ "table": "relay_memory_records"
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "typeSchema": null,
1249
+ "notNull": true,
1250
+ "dimensions": 0,
1251
+ "default": null,
1252
+ "generated": null,
1253
+ "identity": null,
1254
+ "name": "id",
1255
+ "entityType": "columns",
1256
+ "schema": "public",
1257
+ "table": "relay_route_attempts"
1258
+ },
1259
+ {
1260
+ "type": "text",
1261
+ "typeSchema": null,
1262
+ "notNull": true,
1263
+ "dimensions": 0,
1264
+ "default": null,
1265
+ "generated": null,
1266
+ "identity": null,
1267
+ "name": "envelope_ready_id",
1268
+ "entityType": "columns",
1269
+ "schema": "public",
1270
+ "table": "relay_route_attempts"
1271
+ },
1272
+ {
1273
+ "type": "text",
1274
+ "typeSchema": null,
1275
+ "notNull": true,
1276
+ "dimensions": 0,
1277
+ "default": null,
1278
+ "generated": null,
1279
+ "identity": null,
1280
+ "name": "route_key",
1281
+ "entityType": "columns",
1282
+ "schema": "public",
1283
+ "table": "relay_route_attempts"
1284
+ },
1285
+ {
1286
+ "type": "text",
1287
+ "typeSchema": null,
1288
+ "notNull": true,
1289
+ "dimensions": 0,
1290
+ "default": null,
1291
+ "generated": null,
1292
+ "identity": null,
1293
+ "name": "state",
1294
+ "entityType": "columns",
1295
+ "schema": "public",
1296
+ "table": "relay_route_attempts"
1297
+ },
1298
+ {
1299
+ "type": "text",
1300
+ "typeSchema": null,
1301
+ "notNull": false,
1302
+ "dimensions": 0,
1303
+ "default": null,
1304
+ "generated": null,
1305
+ "identity": null,
1306
+ "name": "detail",
1307
+ "entityType": "columns",
1308
+ "schema": "public",
1309
+ "table": "relay_route_attempts"
1310
+ },
1311
+ {
1312
+ "type": "timestamp with time zone",
1313
+ "typeSchema": null,
1314
+ "notNull": true,
1315
+ "dimensions": 0,
1316
+ "default": "now()",
1317
+ "generated": null,
1318
+ "identity": null,
1319
+ "name": "created_at",
1320
+ "entityType": "columns",
1321
+ "schema": "public",
1322
+ "table": "relay_route_attempts"
1323
+ },
1324
+ {
1325
+ "type": "text",
1326
+ "typeSchema": null,
1327
+ "notNull": true,
1328
+ "dimensions": 0,
1329
+ "default": null,
1330
+ "generated": null,
1331
+ "identity": null,
1332
+ "name": "id",
1333
+ "entityType": "columns",
1334
+ "schema": "public",
1335
+ "table": "relay_schedules"
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "typeSchema": null,
1340
+ "notNull": true,
1341
+ "dimensions": 0,
1342
+ "default": null,
1343
+ "generated": null,
1344
+ "identity": null,
1345
+ "name": "kind",
1346
+ "entityType": "columns",
1347
+ "schema": "public",
1348
+ "table": "relay_schedules"
1349
+ },
1350
+ {
1351
+ "type": "text",
1352
+ "typeSchema": null,
1353
+ "notNull": true,
1354
+ "dimensions": 0,
1355
+ "default": null,
1356
+ "generated": null,
1357
+ "identity": null,
1358
+ "name": "target_kind",
1359
+ "entityType": "columns",
1360
+ "schema": "public",
1361
+ "table": "relay_schedules"
1362
+ },
1363
+ {
1364
+ "type": "text",
1365
+ "typeSchema": null,
1366
+ "notNull": false,
1367
+ "dimensions": 0,
1368
+ "default": null,
1369
+ "generated": null,
1370
+ "identity": null,
1371
+ "name": "address_id",
1372
+ "entityType": "columns",
1373
+ "schema": "public",
1374
+ "table": "relay_schedules"
1375
+ },
1376
+ {
1377
+ "type": "text",
1378
+ "typeSchema": null,
1379
+ "notNull": false,
1380
+ "dimensions": 0,
1381
+ "default": null,
1382
+ "generated": null,
1383
+ "identity": null,
1384
+ "name": "wait_id",
1385
+ "entityType": "columns",
1386
+ "schema": "public",
1387
+ "table": "relay_schedules"
1388
+ },
1389
+ {
1390
+ "type": "text",
1391
+ "typeSchema": null,
1392
+ "notNull": false,
1393
+ "dimensions": 0,
1394
+ "default": null,
1395
+ "generated": null,
1396
+ "identity": null,
1397
+ "name": "cron_expr",
1398
+ "entityType": "columns",
1399
+ "schema": "public",
1400
+ "table": "relay_schedules"
1401
+ },
1402
+ {
1403
+ "type": "jsonb",
1404
+ "typeSchema": null,
1405
+ "notNull": false,
1406
+ "dimensions": 0,
1407
+ "default": null,
1408
+ "generated": null,
1409
+ "identity": null,
1410
+ "name": "input_json",
1411
+ "entityType": "columns",
1412
+ "schema": "public",
1413
+ "table": "relay_schedules"
1414
+ },
1415
+ {
1416
+ "type": "text",
1417
+ "typeSchema": null,
1418
+ "notNull": true,
1419
+ "dimensions": 0,
1420
+ "default": "'active'",
1421
+ "generated": null,
1422
+ "identity": null,
1423
+ "name": "state",
1424
+ "entityType": "columns",
1425
+ "schema": "public",
1426
+ "table": "relay_schedules"
1427
+ },
1428
+ {
1429
+ "type": "timestamp with time zone",
1430
+ "typeSchema": null,
1431
+ "notNull": true,
1432
+ "dimensions": 0,
1433
+ "default": null,
1434
+ "generated": null,
1435
+ "identity": null,
1436
+ "name": "next_run_at",
1437
+ "entityType": "columns",
1438
+ "schema": "public",
1439
+ "table": "relay_schedules"
1440
+ },
1441
+ {
1442
+ "type": "integer",
1443
+ "typeSchema": null,
1444
+ "notNull": true,
1445
+ "dimensions": 0,
1446
+ "default": "0",
1447
+ "generated": null,
1448
+ "identity": null,
1449
+ "name": "attempt",
1450
+ "entityType": "columns",
1451
+ "schema": "public",
1452
+ "table": "relay_schedules"
1453
+ },
1454
+ {
1455
+ "type": "text",
1456
+ "typeSchema": null,
1457
+ "notNull": false,
1458
+ "dimensions": 0,
1459
+ "default": null,
1460
+ "generated": null,
1461
+ "identity": null,
1462
+ "name": "claim_owner",
1463
+ "entityType": "columns",
1464
+ "schema": "public",
1465
+ "table": "relay_schedules"
1466
+ },
1467
+ {
1468
+ "type": "timestamp with time zone",
1469
+ "typeSchema": null,
1470
+ "notNull": false,
1471
+ "dimensions": 0,
1472
+ "default": null,
1473
+ "generated": null,
1474
+ "identity": null,
1475
+ "name": "claim_expires_at",
1476
+ "entityType": "columns",
1477
+ "schema": "public",
1478
+ "table": "relay_schedules"
1479
+ },
1480
+ {
1481
+ "type": "text",
1482
+ "typeSchema": null,
1483
+ "notNull": false,
1484
+ "dimensions": 0,
1485
+ "default": null,
1486
+ "generated": null,
1487
+ "identity": null,
1488
+ "name": "last_error",
1489
+ "entityType": "columns",
1490
+ "schema": "public",
1491
+ "table": "relay_schedules"
1492
+ },
1493
+ {
1494
+ "type": "text",
1495
+ "typeSchema": null,
1496
+ "notNull": false,
1497
+ "dimensions": 0,
1498
+ "default": null,
1499
+ "generated": null,
1500
+ "identity": null,
1501
+ "name": "idempotency_key",
1502
+ "entityType": "columns",
1503
+ "schema": "public",
1504
+ "table": "relay_schedules"
1505
+ },
1506
+ {
1507
+ "type": "jsonb",
1508
+ "typeSchema": null,
1509
+ "notNull": true,
1510
+ "dimensions": 0,
1511
+ "default": "'{}'",
1512
+ "generated": null,
1513
+ "identity": null,
1514
+ "name": "metadata_json",
1515
+ "entityType": "columns",
1516
+ "schema": "public",
1517
+ "table": "relay_schedules"
1518
+ },
1519
+ {
1520
+ "type": "timestamp with time zone",
1521
+ "typeSchema": null,
1522
+ "notNull": true,
1523
+ "dimensions": 0,
1524
+ "default": "now()",
1525
+ "generated": null,
1526
+ "identity": null,
1527
+ "name": "created_at",
1528
+ "entityType": "columns",
1529
+ "schema": "public",
1530
+ "table": "relay_schedules"
1531
+ },
1532
+ {
1533
+ "type": "timestamp with time zone",
1534
+ "typeSchema": null,
1535
+ "notNull": true,
1536
+ "dimensions": 0,
1537
+ "default": "now()",
1538
+ "generated": null,
1539
+ "identity": null,
1540
+ "name": "updated_at",
1541
+ "entityType": "columns",
1542
+ "schema": "public",
1543
+ "table": "relay_schedules"
1544
+ },
1545
+ {
1546
+ "type": "text",
1547
+ "typeSchema": null,
1548
+ "notNull": true,
1549
+ "dimensions": 0,
1550
+ "default": null,
1551
+ "generated": null,
1552
+ "identity": null,
1553
+ "name": "id",
1554
+ "entityType": "columns",
1555
+ "schema": "public",
1556
+ "table": "relay_tool_calls"
1557
+ },
1558
+ {
1559
+ "type": "text",
1560
+ "typeSchema": null,
1561
+ "notNull": true,
1562
+ "dimensions": 0,
1563
+ "default": null,
1564
+ "generated": null,
1565
+ "identity": null,
1566
+ "name": "execution_id",
1567
+ "entityType": "columns",
1568
+ "schema": "public",
1569
+ "table": "relay_tool_calls"
1570
+ },
1571
+ {
1572
+ "type": "text",
1573
+ "typeSchema": null,
1574
+ "notNull": true,
1575
+ "dimensions": 0,
1576
+ "default": null,
1577
+ "generated": null,
1578
+ "identity": null,
1579
+ "name": "name",
1580
+ "entityType": "columns",
1581
+ "schema": "public",
1582
+ "table": "relay_tool_calls"
1583
+ },
1584
+ {
1585
+ "type": "jsonb",
1586
+ "typeSchema": null,
1587
+ "notNull": true,
1588
+ "dimensions": 0,
1589
+ "default": null,
1590
+ "generated": null,
1591
+ "identity": null,
1592
+ "name": "input_json",
1593
+ "entityType": "columns",
1594
+ "schema": "public",
1595
+ "table": "relay_tool_calls"
1596
+ },
1597
+ {
1598
+ "type": "jsonb",
1599
+ "typeSchema": null,
1600
+ "notNull": true,
1601
+ "dimensions": 0,
1602
+ "default": "'{}'",
1603
+ "generated": null,
1604
+ "identity": null,
1605
+ "name": "metadata_json",
1606
+ "entityType": "columns",
1607
+ "schema": "public",
1608
+ "table": "relay_tool_calls"
1609
+ },
1610
+ {
1611
+ "type": "timestamp with time zone",
1612
+ "typeSchema": null,
1613
+ "notNull": true,
1614
+ "dimensions": 0,
1615
+ "default": "now()",
1616
+ "generated": null,
1617
+ "identity": null,
1618
+ "name": "created_at",
1619
+ "entityType": "columns",
1620
+ "schema": "public",
1621
+ "table": "relay_tool_calls"
1622
+ },
1623
+ {
1624
+ "type": "text",
1625
+ "typeSchema": null,
1626
+ "notNull": true,
1627
+ "dimensions": 0,
1628
+ "default": null,
1629
+ "generated": null,
1630
+ "identity": null,
1631
+ "name": "tool_call_id",
1632
+ "entityType": "columns",
1633
+ "schema": "public",
1634
+ "table": "relay_tool_results"
1635
+ },
1636
+ {
1637
+ "type": "jsonb",
1638
+ "typeSchema": null,
1639
+ "notNull": true,
1640
+ "dimensions": 0,
1641
+ "default": null,
1642
+ "generated": null,
1643
+ "identity": null,
1644
+ "name": "output_json",
1645
+ "entityType": "columns",
1646
+ "schema": "public",
1647
+ "table": "relay_tool_results"
1648
+ },
1649
+ {
1650
+ "type": "text",
1651
+ "typeSchema": null,
1652
+ "notNull": false,
1653
+ "dimensions": 0,
1654
+ "default": null,
1655
+ "generated": null,
1656
+ "identity": null,
1657
+ "name": "error",
1658
+ "entityType": "columns",
1659
+ "schema": "public",
1660
+ "table": "relay_tool_results"
1661
+ },
1662
+ {
1663
+ "type": "jsonb",
1664
+ "typeSchema": null,
1665
+ "notNull": true,
1666
+ "dimensions": 0,
1667
+ "default": "'{}'",
1668
+ "generated": null,
1669
+ "identity": null,
1670
+ "name": "metadata_json",
1671
+ "entityType": "columns",
1672
+ "schema": "public",
1673
+ "table": "relay_tool_results"
1674
+ },
1675
+ {
1676
+ "type": "timestamp with time zone",
1677
+ "typeSchema": null,
1678
+ "notNull": true,
1679
+ "dimensions": 0,
1680
+ "default": "now()",
1681
+ "generated": null,
1682
+ "identity": null,
1683
+ "name": "created_at",
1684
+ "entityType": "columns",
1685
+ "schema": "public",
1686
+ "table": "relay_tool_results"
1687
+ },
1688
+ {
1689
+ "type": "text",
1690
+ "typeSchema": null,
1691
+ "notNull": true,
1692
+ "dimensions": 0,
1693
+ "default": null,
1694
+ "generated": null,
1695
+ "identity": null,
1696
+ "name": "id",
1697
+ "entityType": "columns",
1698
+ "schema": "public",
1699
+ "table": "relay_waits"
1700
+ },
1701
+ {
1702
+ "type": "text",
1703
+ "typeSchema": null,
1704
+ "notNull": true,
1705
+ "dimensions": 0,
1706
+ "default": null,
1707
+ "generated": null,
1708
+ "identity": null,
1709
+ "name": "execution_id",
1710
+ "entityType": "columns",
1711
+ "schema": "public",
1712
+ "table": "relay_waits"
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "typeSchema": null,
1717
+ "notNull": false,
1718
+ "dimensions": 0,
1719
+ "default": null,
1720
+ "generated": null,
1721
+ "identity": null,
1722
+ "name": "envelope_id",
1723
+ "entityType": "columns",
1724
+ "schema": "public",
1725
+ "table": "relay_waits"
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "typeSchema": null,
1730
+ "notNull": true,
1731
+ "dimensions": 0,
1732
+ "default": null,
1733
+ "generated": null,
1734
+ "identity": null,
1735
+ "name": "mode",
1736
+ "entityType": "columns",
1737
+ "schema": "public",
1738
+ "table": "relay_waits"
1739
+ },
1740
+ {
1741
+ "type": "text",
1742
+ "typeSchema": null,
1743
+ "notNull": false,
1744
+ "dimensions": 0,
1745
+ "default": null,
1746
+ "generated": null,
1747
+ "identity": null,
1748
+ "name": "correlation_key",
1749
+ "entityType": "columns",
1750
+ "schema": "public",
1751
+ "table": "relay_waits"
1752
+ },
1753
+ {
1754
+ "type": "text",
1755
+ "typeSchema": null,
1756
+ "notNull": true,
1757
+ "dimensions": 0,
1758
+ "default": "'open'",
1759
+ "generated": null,
1760
+ "identity": null,
1761
+ "name": "state",
1762
+ "entityType": "columns",
1763
+ "schema": "public",
1764
+ "table": "relay_waits"
1765
+ },
1766
+ {
1767
+ "type": "jsonb",
1768
+ "typeSchema": null,
1769
+ "notNull": true,
1770
+ "dimensions": 0,
1771
+ "default": "'{}'",
1772
+ "generated": null,
1773
+ "identity": null,
1774
+ "name": "metadata_json",
1775
+ "entityType": "columns",
1776
+ "schema": "public",
1777
+ "table": "relay_waits"
1778
+ },
1779
+ {
1780
+ "type": "timestamp with time zone",
1781
+ "typeSchema": null,
1782
+ "notNull": true,
1783
+ "dimensions": 0,
1784
+ "default": "now()",
1785
+ "generated": null,
1786
+ "identity": null,
1787
+ "name": "created_at",
1788
+ "entityType": "columns",
1789
+ "schema": "public",
1790
+ "table": "relay_waits"
1791
+ },
1792
+ {
1793
+ "type": "timestamp with time zone",
1794
+ "typeSchema": null,
1795
+ "notNull": false,
1796
+ "dimensions": 0,
1797
+ "default": null,
1798
+ "generated": null,
1799
+ "identity": null,
1800
+ "name": "resolved_at",
1801
+ "entityType": "columns",
1802
+ "schema": "public",
1803
+ "table": "relay_waits"
1804
+ },
1805
+ {
1806
+ "type": "text",
1807
+ "typeSchema": null,
1808
+ "notNull": true,
1809
+ "dimensions": 0,
1810
+ "default": null,
1811
+ "generated": null,
1812
+ "identity": null,
1813
+ "name": "id",
1814
+ "entityType": "columns",
1815
+ "schema": "public",
1816
+ "table": "relay_workspace_leases"
1817
+ },
1818
+ {
1819
+ "type": "text",
1820
+ "typeSchema": null,
1821
+ "notNull": true,
1822
+ "dimensions": 0,
1823
+ "default": null,
1824
+ "generated": null,
1825
+ "identity": null,
1826
+ "name": "execution_id",
1827
+ "entityType": "columns",
1828
+ "schema": "public",
1829
+ "table": "relay_workspace_leases"
1830
+ },
1831
+ {
1832
+ "type": "text",
1833
+ "typeSchema": null,
1834
+ "notNull": true,
1835
+ "dimensions": 0,
1836
+ "default": null,
1837
+ "generated": null,
1838
+ "identity": null,
1839
+ "name": "provider_key",
1840
+ "entityType": "columns",
1841
+ "schema": "public",
1842
+ "table": "relay_workspace_leases"
1843
+ },
1844
+ {
1845
+ "type": "text",
1846
+ "typeSchema": null,
1847
+ "notNull": false,
1848
+ "dimensions": 0,
1849
+ "default": null,
1850
+ "generated": null,
1851
+ "identity": null,
1852
+ "name": "sandbox_ref",
1853
+ "entityType": "columns",
1854
+ "schema": "public",
1855
+ "table": "relay_workspace_leases"
1856
+ },
1857
+ {
1858
+ "type": "text",
1859
+ "typeSchema": null,
1860
+ "notNull": false,
1861
+ "dimensions": 0,
1862
+ "default": null,
1863
+ "generated": null,
1864
+ "identity": null,
1865
+ "name": "latest_snapshot_ref",
1866
+ "entityType": "columns",
1867
+ "schema": "public",
1868
+ "table": "relay_workspace_leases"
1869
+ },
1870
+ {
1871
+ "type": "text",
1872
+ "typeSchema": null,
1873
+ "notNull": true,
1874
+ "dimensions": 0,
1875
+ "default": null,
1876
+ "generated": null,
1877
+ "identity": null,
1878
+ "name": "status",
1879
+ "entityType": "columns",
1880
+ "schema": "public",
1881
+ "table": "relay_workspace_leases"
1882
+ },
1883
+ {
1884
+ "type": "text",
1885
+ "typeSchema": null,
1886
+ "notNull": true,
1887
+ "dimensions": 0,
1888
+ "default": null,
1889
+ "generated": null,
1890
+ "identity": null,
1891
+ "name": "resume_strategy",
1892
+ "entityType": "columns",
1893
+ "schema": "public",
1894
+ "table": "relay_workspace_leases"
1895
+ },
1896
+ {
1897
+ "type": "text",
1898
+ "typeSchema": null,
1899
+ "notNull": false,
1900
+ "dimensions": 0,
1901
+ "default": null,
1902
+ "generated": null,
1903
+ "identity": null,
1904
+ "name": "region",
1905
+ "entityType": "columns",
1906
+ "schema": "public",
1907
+ "table": "relay_workspace_leases"
1908
+ },
1909
+ {
1910
+ "type": "jsonb",
1911
+ "typeSchema": null,
1912
+ "notNull": false,
1913
+ "dimensions": 0,
1914
+ "default": null,
1915
+ "generated": null,
1916
+ "identity": null,
1917
+ "name": "request_json",
1918
+ "entityType": "columns",
1919
+ "schema": "public",
1920
+ "table": "relay_workspace_leases"
1921
+ },
1922
+ {
1923
+ "type": "jsonb",
1924
+ "typeSchema": null,
1925
+ "notNull": true,
1926
+ "dimensions": 0,
1927
+ "default": "'{}'",
1928
+ "generated": null,
1929
+ "identity": null,
1930
+ "name": "metadata_json",
1931
+ "entityType": "columns",
1932
+ "schema": "public",
1933
+ "table": "relay_workspace_leases"
1934
+ },
1935
+ {
1936
+ "type": "timestamp with time zone",
1937
+ "typeSchema": null,
1938
+ "notNull": true,
1939
+ "dimensions": 0,
1940
+ "default": "now()",
1941
+ "generated": null,
1942
+ "identity": null,
1943
+ "name": "created_at",
1944
+ "entityType": "columns",
1945
+ "schema": "public",
1946
+ "table": "relay_workspace_leases"
1947
+ },
1948
+ {
1949
+ "type": "timestamp with time zone",
1950
+ "typeSchema": null,
1951
+ "notNull": true,
1952
+ "dimensions": 0,
1953
+ "default": "now()",
1954
+ "generated": null,
1955
+ "identity": null,
1956
+ "name": "updated_at",
1957
+ "entityType": "columns",
1958
+ "schema": "public",
1959
+ "table": "relay_workspace_leases"
1960
+ },
1961
+ {
1962
+ "type": "text",
1963
+ "typeSchema": null,
1964
+ "notNull": true,
1965
+ "dimensions": 0,
1966
+ "default": null,
1967
+ "generated": null,
1968
+ "identity": null,
1969
+ "name": "id",
1970
+ "entityType": "columns",
1971
+ "schema": "public",
1972
+ "table": "relay_workspace_snapshots"
1973
+ },
1974
+ {
1975
+ "type": "text",
1976
+ "typeSchema": null,
1977
+ "notNull": true,
1978
+ "dimensions": 0,
1979
+ "default": null,
1980
+ "generated": null,
1981
+ "identity": null,
1982
+ "name": "lease_id",
1983
+ "entityType": "columns",
1984
+ "schema": "public",
1985
+ "table": "relay_workspace_snapshots"
1986
+ },
1987
+ {
1988
+ "type": "text",
1989
+ "typeSchema": null,
1990
+ "notNull": true,
1991
+ "dimensions": 0,
1992
+ "default": null,
1993
+ "generated": null,
1994
+ "identity": null,
1995
+ "name": "execution_id",
1996
+ "entityType": "columns",
1997
+ "schema": "public",
1998
+ "table": "relay_workspace_snapshots"
1999
+ },
2000
+ {
2001
+ "type": "text",
2002
+ "typeSchema": null,
2003
+ "notNull": true,
2004
+ "dimensions": 0,
2005
+ "default": null,
2006
+ "generated": null,
2007
+ "identity": null,
2008
+ "name": "reason",
2009
+ "entityType": "columns",
2010
+ "schema": "public",
2011
+ "table": "relay_workspace_snapshots"
2012
+ },
2013
+ {
2014
+ "type": "text",
2015
+ "typeSchema": null,
2016
+ "notNull": true,
2017
+ "dimensions": 0,
2018
+ "default": null,
2019
+ "generated": null,
2020
+ "identity": null,
2021
+ "name": "snapshot_ref",
2022
+ "entityType": "columns",
2023
+ "schema": "public",
2024
+ "table": "relay_workspace_snapshots"
2025
+ },
2026
+ {
2027
+ "type": "jsonb",
2028
+ "typeSchema": null,
2029
+ "notNull": true,
2030
+ "dimensions": 0,
2031
+ "default": "'{}'",
2032
+ "generated": null,
2033
+ "identity": null,
2034
+ "name": "metadata_json",
2035
+ "entityType": "columns",
2036
+ "schema": "public",
2037
+ "table": "relay_workspace_snapshots"
2038
+ },
2039
+ {
2040
+ "type": "timestamp with time zone",
2041
+ "typeSchema": null,
2042
+ "notNull": true,
2043
+ "dimensions": 0,
2044
+ "default": "now()",
2045
+ "generated": null,
2046
+ "identity": null,
2047
+ "name": "created_at",
2048
+ "entityType": "columns",
2049
+ "schema": "public",
2050
+ "table": "relay_workspace_snapshots"
2051
+ },
2052
+ {
2053
+ "nameExplicit": true,
2054
+ "columns": [
2055
+ {
2056
+ "value": "address_id",
2057
+ "isExpression": false,
2058
+ "asc": true,
2059
+ "nullsFirst": false,
2060
+ "opclass": null
2061
+ }
2062
+ ],
2063
+ "isUnique": true,
2064
+ "where": null,
2065
+ "with": "",
2066
+ "method": "btree",
2067
+ "concurrently": false,
2068
+ "name": "uq_relay_address_book_address",
2069
+ "entityType": "indexes",
2070
+ "schema": "public",
2071
+ "table": "relay_address_book_entries"
2072
+ },
2073
+ {
2074
+ "nameExplicit": true,
2075
+ "columns": [
2076
+ {
2077
+ "value": "agent_definition_id",
2078
+ "isExpression": false,
2079
+ "asc": true,
2080
+ "nullsFirst": false,
2081
+ "opclass": null
2082
+ },
2083
+ {
2084
+ "value": "revision",
2085
+ "isExpression": false,
2086
+ "asc": true,
2087
+ "nullsFirst": false,
2088
+ "opclass": null
2089
+ }
2090
+ ],
2091
+ "isUnique": false,
2092
+ "where": null,
2093
+ "with": "",
2094
+ "method": "btree",
2095
+ "concurrently": false,
2096
+ "name": "idx_relay_agent_definition_revisions_definition",
2097
+ "entityType": "indexes",
2098
+ "schema": "public",
2099
+ "table": "relay_agent_definition_revisions"
2100
+ },
2101
+ {
2102
+ "nameExplicit": true,
2103
+ "columns": [
2104
+ {
2105
+ "value": "name",
2106
+ "isExpression": false,
2107
+ "asc": true,
2108
+ "nullsFirst": false,
2109
+ "opclass": null
2110
+ }
2111
+ ],
2112
+ "isUnique": false,
2113
+ "where": null,
2114
+ "with": "",
2115
+ "method": "btree",
2116
+ "concurrently": false,
2117
+ "name": "idx_relay_agent_definitions_name",
2118
+ "entityType": "indexes",
2119
+ "schema": "public",
2120
+ "table": "relay_agent_definitions"
2121
+ },
2122
+ {
2123
+ "nameExplicit": true,
2124
+ "columns": [
2125
+ {
2126
+ "value": "execution_id",
2127
+ "isExpression": false,
2128
+ "asc": true,
2129
+ "nullsFirst": false,
2130
+ "opclass": null
2131
+ }
2132
+ ],
2133
+ "isUnique": false,
2134
+ "where": null,
2135
+ "with": "",
2136
+ "method": "btree",
2137
+ "concurrently": false,
2138
+ "name": "idx_relay_child_executions_parent",
2139
+ "entityType": "indexes",
2140
+ "schema": "public",
2141
+ "table": "relay_child_executions"
2142
+ },
2143
+ {
2144
+ "nameExplicit": true,
2145
+ "columns": [
2146
+ {
2147
+ "value": "state",
2148
+ "isExpression": false,
2149
+ "asc": true,
2150
+ "nullsFirst": false,
2151
+ "opclass": null
2152
+ },
2153
+ {
2154
+ "value": "available_at",
2155
+ "isExpression": false,
2156
+ "asc": true,
2157
+ "nullsFirst": false,
2158
+ "opclass": null
2159
+ }
2160
+ ],
2161
+ "isUnique": false,
2162
+ "where": null,
2163
+ "with": "",
2164
+ "method": "btree",
2165
+ "concurrently": false,
2166
+ "name": "idx_relay_envelope_ready_state_available",
2167
+ "entityType": "indexes",
2168
+ "schema": "public",
2169
+ "table": "relay_envelope_ready"
2170
+ },
2171
+ {
2172
+ "nameExplicit": true,
2173
+ "columns": [
2174
+ {
2175
+ "value": "claim_expires_at",
2176
+ "isExpression": false,
2177
+ "asc": true,
2178
+ "nullsFirst": false,
2179
+ "opclass": null
2180
+ }
2181
+ ],
2182
+ "isUnique": false,
2183
+ "where": null,
2184
+ "with": "",
2185
+ "method": "btree",
2186
+ "concurrently": false,
2187
+ "name": "idx_relay_envelope_ready_claim_expires",
2188
+ "entityType": "indexes",
2189
+ "schema": "public",
2190
+ "table": "relay_envelope_ready"
2191
+ },
2192
+ {
2193
+ "nameExplicit": true,
2194
+ "columns": [
2195
+ {
2196
+ "value": "idempotency_key",
2197
+ "isExpression": false,
2198
+ "asc": true,
2199
+ "nullsFirst": false,
2200
+ "opclass": null
2201
+ }
2202
+ ],
2203
+ "isUnique": true,
2204
+ "where": null,
2205
+ "with": "",
2206
+ "method": "btree",
2207
+ "concurrently": false,
2208
+ "name": "uq_relay_envelope_ready_idempotency",
2209
+ "entityType": "indexes",
2210
+ "schema": "public",
2211
+ "table": "relay_envelope_ready"
2212
+ },
2213
+ {
2214
+ "nameExplicit": true,
2215
+ "columns": [
2216
+ {
2217
+ "value": "execution_id",
2218
+ "isExpression": false,
2219
+ "asc": true,
2220
+ "nullsFirst": false,
2221
+ "opclass": null
2222
+ },
2223
+ {
2224
+ "value": "created_at",
2225
+ "isExpression": false,
2226
+ "asc": true,
2227
+ "nullsFirst": false,
2228
+ "opclass": null
2229
+ }
2230
+ ],
2231
+ "isUnique": false,
2232
+ "where": null,
2233
+ "with": "",
2234
+ "method": "btree",
2235
+ "concurrently": false,
2236
+ "name": "idx_relay_envelopes_execution",
2237
+ "entityType": "indexes",
2238
+ "schema": "public",
2239
+ "table": "relay_envelopes"
2240
+ },
2241
+ {
2242
+ "nameExplicit": true,
2243
+ "columns": [
2244
+ {
2245
+ "value": "to_address_id",
2246
+ "isExpression": false,
2247
+ "asc": true,
2248
+ "nullsFirst": false,
2249
+ "opclass": null
2250
+ },
2251
+ {
2252
+ "value": "created_at",
2253
+ "isExpression": false,
2254
+ "asc": true,
2255
+ "nullsFirst": false,
2256
+ "opclass": null
2257
+ }
2258
+ ],
2259
+ "isUnique": false,
2260
+ "where": null,
2261
+ "with": "",
2262
+ "method": "btree",
2263
+ "concurrently": false,
2264
+ "name": "idx_relay_envelopes_to_address",
2265
+ "entityType": "indexes",
2266
+ "schema": "public",
2267
+ "table": "relay_envelopes"
2268
+ },
2269
+ {
2270
+ "nameExplicit": true,
2271
+ "columns": [
2272
+ {
2273
+ "value": "execution_id",
2274
+ "isExpression": false,
2275
+ "asc": true,
2276
+ "nullsFirst": false,
2277
+ "opclass": null
2278
+ },
2279
+ {
2280
+ "value": "created_at",
2281
+ "isExpression": false,
2282
+ "asc": true,
2283
+ "nullsFirst": false,
2284
+ "opclass": null
2285
+ }
2286
+ ],
2287
+ "isUnique": false,
2288
+ "where": null,
2289
+ "with": "",
2290
+ "method": "btree",
2291
+ "concurrently": false,
2292
+ "name": "idx_relay_execution_events_execution",
2293
+ "entityType": "indexes",
2294
+ "schema": "public",
2295
+ "table": "relay_execution_events"
2296
+ },
2297
+ {
2298
+ "nameExplicit": true,
2299
+ "columns": [
2300
+ {
2301
+ "value": "execution_id",
2302
+ "isExpression": false,
2303
+ "asc": true,
2304
+ "nullsFirst": false,
2305
+ "opclass": null
2306
+ },
2307
+ {
2308
+ "value": "sequence",
2309
+ "isExpression": false,
2310
+ "asc": true,
2311
+ "nullsFirst": false,
2312
+ "opclass": null
2313
+ }
2314
+ ],
2315
+ "isUnique": true,
2316
+ "where": null,
2317
+ "with": "",
2318
+ "method": "btree",
2319
+ "concurrently": false,
2320
+ "name": "uq_relay_execution_events_sequence",
2321
+ "entityType": "indexes",
2322
+ "schema": "public",
2323
+ "table": "relay_execution_events"
2324
+ },
2325
+ {
2326
+ "nameExplicit": true,
2327
+ "columns": [
2328
+ {
2329
+ "value": "cursor",
2330
+ "isExpression": false,
2331
+ "asc": true,
2332
+ "nullsFirst": false,
2333
+ "opclass": null
2334
+ }
2335
+ ],
2336
+ "isUnique": true,
2337
+ "where": null,
2338
+ "with": "",
2339
+ "method": "btree",
2340
+ "concurrently": false,
2341
+ "name": "uq_relay_execution_events_cursor",
2342
+ "entityType": "indexes",
2343
+ "schema": "public",
2344
+ "table": "relay_execution_events"
2345
+ },
2346
+ {
2347
+ "nameExplicit": true,
2348
+ "columns": [
2349
+ {
2350
+ "value": "root_address_id",
2351
+ "isExpression": false,
2352
+ "asc": true,
2353
+ "nullsFirst": false,
2354
+ "opclass": null
2355
+ },
2356
+ {
2357
+ "value": "status",
2358
+ "isExpression": false,
2359
+ "asc": true,
2360
+ "nullsFirst": false,
2361
+ "opclass": null
2362
+ }
2363
+ ],
2364
+ "isUnique": false,
2365
+ "where": null,
2366
+ "with": "",
2367
+ "method": "btree",
2368
+ "concurrently": false,
2369
+ "name": "idx_relay_executions_root_status",
2370
+ "entityType": "indexes",
2371
+ "schema": "public",
2372
+ "table": "relay_executions"
2373
+ },
2374
+ {
2375
+ "nameExplicit": true,
2376
+ "columns": [
2377
+ {
2378
+ "value": "updated_at",
2379
+ "isExpression": false,
2380
+ "asc": true,
2381
+ "nullsFirst": false,
2382
+ "opclass": null
2383
+ },
2384
+ {
2385
+ "value": "id",
2386
+ "isExpression": false,
2387
+ "asc": true,
2388
+ "nullsFirst": false,
2389
+ "opclass": null
2390
+ }
2391
+ ],
2392
+ "isUnique": false,
2393
+ "where": null,
2394
+ "with": "",
2395
+ "method": "btree",
2396
+ "concurrently": false,
2397
+ "name": "idx_relay_executions_updated_id",
2398
+ "entityType": "indexes",
2399
+ "schema": "public",
2400
+ "table": "relay_executions"
2401
+ },
2402
+ {
2403
+ "nameExplicit": true,
2404
+ "columns": [
2405
+ {
2406
+ "value": "root_address_id",
2407
+ "isExpression": false,
2408
+ "asc": true,
2409
+ "nullsFirst": false,
2410
+ "opclass": null
2411
+ },
2412
+ {
2413
+ "value": "status",
2414
+ "isExpression": false,
2415
+ "asc": true,
2416
+ "nullsFirst": false,
2417
+ "opclass": null
2418
+ },
2419
+ {
2420
+ "value": "updated_at",
2421
+ "isExpression": false,
2422
+ "asc": true,
2423
+ "nullsFirst": false,
2424
+ "opclass": null
2425
+ },
2426
+ {
2427
+ "value": "id",
2428
+ "isExpression": false,
2429
+ "asc": true,
2430
+ "nullsFirst": false,
2431
+ "opclass": null
2432
+ }
2433
+ ],
2434
+ "isUnique": false,
2435
+ "where": null,
2436
+ "with": "",
2437
+ "method": "btree",
2438
+ "concurrently": false,
2439
+ "name": "idx_relay_executions_root_status_updated_id",
2440
+ "entityType": "indexes",
2441
+ "schema": "public",
2442
+ "table": "relay_executions"
2443
+ },
2444
+ {
2445
+ "nameExplicit": true,
2446
+ "columns": [
2447
+ {
2448
+ "value": "scope",
2449
+ "isExpression": false,
2450
+ "asc": true,
2451
+ "nullsFirst": false,
2452
+ "opclass": null
2453
+ },
2454
+ {
2455
+ "value": "operation",
2456
+ "isExpression": false,
2457
+ "asc": true,
2458
+ "nullsFirst": false,
2459
+ "opclass": null
2460
+ },
2461
+ {
2462
+ "value": "key",
2463
+ "isExpression": false,
2464
+ "asc": true,
2465
+ "nullsFirst": false,
2466
+ "opclass": null
2467
+ }
2468
+ ],
2469
+ "isUnique": true,
2470
+ "where": null,
2471
+ "with": "",
2472
+ "method": "btree",
2473
+ "concurrently": false,
2474
+ "name": "uq_relay_idempotency_scope_operation_key",
2475
+ "entityType": "indexes",
2476
+ "schema": "public",
2477
+ "table": "relay_idempotency_keys"
2478
+ },
2479
+ {
2480
+ "nameExplicit": true,
2481
+ "columns": [
2482
+ {
2483
+ "value": "agent",
2484
+ "isExpression": false,
2485
+ "asc": true,
2486
+ "nullsFirst": false,
2487
+ "opclass": null
2488
+ },
2489
+ {
2490
+ "value": "subject",
2491
+ "isExpression": false,
2492
+ "asc": true,
2493
+ "nullsFirst": false,
2494
+ "opclass": null
2495
+ }
2496
+ ],
2497
+ "isUnique": false,
2498
+ "where": null,
2499
+ "with": "",
2500
+ "method": "btree",
2501
+ "concurrently": false,
2502
+ "name": "idx_relay_memory_records_agent_subject",
2503
+ "entityType": "indexes",
2504
+ "schema": "public",
2505
+ "table": "relay_memory_records"
2506
+ },
2507
+ {
2508
+ "nameExplicit": true,
2509
+ "columns": [
2510
+ {
2511
+ "value": "envelope_ready_id",
2512
+ "isExpression": false,
2513
+ "asc": true,
2514
+ "nullsFirst": false,
2515
+ "opclass": null
2516
+ },
2517
+ {
2518
+ "value": "created_at",
2519
+ "isExpression": false,
2520
+ "asc": true,
2521
+ "nullsFirst": false,
2522
+ "opclass": null
2523
+ }
2524
+ ],
2525
+ "isUnique": false,
2526
+ "where": null,
2527
+ "with": "",
2528
+ "method": "btree",
2529
+ "concurrently": false,
2530
+ "name": "idx_relay_route_attempts_ready",
2531
+ "entityType": "indexes",
2532
+ "schema": "public",
2533
+ "table": "relay_route_attempts"
2534
+ },
2535
+ {
2536
+ "nameExplicit": true,
2537
+ "columns": [
2538
+ {
2539
+ "value": "state",
2540
+ "isExpression": false,
2541
+ "asc": true,
2542
+ "nullsFirst": false,
2543
+ "opclass": null
2544
+ },
2545
+ {
2546
+ "value": "next_run_at",
2547
+ "isExpression": false,
2548
+ "asc": true,
2549
+ "nullsFirst": false,
2550
+ "opclass": null
2551
+ }
2552
+ ],
2553
+ "isUnique": false,
2554
+ "where": null,
2555
+ "with": "",
2556
+ "method": "btree",
2557
+ "concurrently": false,
2558
+ "name": "idx_relay_schedules_state_next_run",
2559
+ "entityType": "indexes",
2560
+ "schema": "public",
2561
+ "table": "relay_schedules"
2562
+ },
2563
+ {
2564
+ "nameExplicit": true,
2565
+ "columns": [
2566
+ {
2567
+ "value": "claim_expires_at",
2568
+ "isExpression": false,
2569
+ "asc": true,
2570
+ "nullsFirst": false,
2571
+ "opclass": null
2572
+ }
2573
+ ],
2574
+ "isUnique": false,
2575
+ "where": null,
2576
+ "with": "",
2577
+ "method": "btree",
2578
+ "concurrently": false,
2579
+ "name": "idx_relay_schedules_claim_expires",
2580
+ "entityType": "indexes",
2581
+ "schema": "public",
2582
+ "table": "relay_schedules"
2583
+ },
2584
+ {
2585
+ "nameExplicit": true,
2586
+ "columns": [
2587
+ {
2588
+ "value": "wait_id",
2589
+ "isExpression": false,
2590
+ "asc": true,
2591
+ "nullsFirst": false,
2592
+ "opclass": null
2593
+ }
2594
+ ],
2595
+ "isUnique": false,
2596
+ "where": null,
2597
+ "with": "",
2598
+ "method": "btree",
2599
+ "concurrently": false,
2600
+ "name": "idx_relay_schedules_wait",
2601
+ "entityType": "indexes",
2602
+ "schema": "public",
2603
+ "table": "relay_schedules"
2604
+ },
2605
+ {
2606
+ "nameExplicit": true,
2607
+ "columns": [
2608
+ {
2609
+ "value": "idempotency_key",
2610
+ "isExpression": false,
2611
+ "asc": true,
2612
+ "nullsFirst": false,
2613
+ "opclass": null
2614
+ }
2615
+ ],
2616
+ "isUnique": true,
2617
+ "where": null,
2618
+ "with": "",
2619
+ "method": "btree",
2620
+ "concurrently": false,
2621
+ "name": "uq_relay_schedules_idempotency",
2622
+ "entityType": "indexes",
2623
+ "schema": "public",
2624
+ "table": "relay_schedules"
2625
+ },
2626
+ {
2627
+ "nameExplicit": true,
2628
+ "columns": [
2629
+ {
2630
+ "value": "execution_id",
2631
+ "isExpression": false,
2632
+ "asc": true,
2633
+ "nullsFirst": false,
2634
+ "opclass": null
2635
+ },
2636
+ {
2637
+ "value": "created_at",
2638
+ "isExpression": false,
2639
+ "asc": true,
2640
+ "nullsFirst": false,
2641
+ "opclass": null
2642
+ }
2643
+ ],
2644
+ "isUnique": false,
2645
+ "where": null,
2646
+ "with": "",
2647
+ "method": "btree",
2648
+ "concurrently": false,
2649
+ "name": "idx_relay_tool_calls_execution",
2650
+ "entityType": "indexes",
2651
+ "schema": "public",
2652
+ "table": "relay_tool_calls"
2653
+ },
2654
+ {
2655
+ "nameExplicit": true,
2656
+ "columns": [
2657
+ {
2658
+ "value": "execution_id",
2659
+ "isExpression": false,
2660
+ "asc": true,
2661
+ "nullsFirst": false,
2662
+ "opclass": null
2663
+ },
2664
+ {
2665
+ "value": "state",
2666
+ "isExpression": false,
2667
+ "asc": true,
2668
+ "nullsFirst": false,
2669
+ "opclass": null
2670
+ }
2671
+ ],
2672
+ "isUnique": false,
2673
+ "where": null,
2674
+ "with": "",
2675
+ "method": "btree",
2676
+ "concurrently": false,
2677
+ "name": "idx_relay_waits_execution_state",
2678
+ "entityType": "indexes",
2679
+ "schema": "public",
2680
+ "table": "relay_waits"
2681
+ },
2682
+ {
2683
+ "nameExplicit": true,
2684
+ "columns": [
2685
+ {
2686
+ "value": "execution_id",
2687
+ "isExpression": false,
2688
+ "asc": true,
2689
+ "nullsFirst": false,
2690
+ "opclass": null
2691
+ }
2692
+ ],
2693
+ "isUnique": true,
2694
+ "where": "\"status\" not in ('released', 'failed')",
2695
+ "with": "",
2696
+ "method": "btree",
2697
+ "concurrently": false,
2698
+ "name": "uq_relay_workspace_leases_active_execution",
2699
+ "entityType": "indexes",
2700
+ "schema": "public",
2701
+ "table": "relay_workspace_leases"
2702
+ },
2703
+ {
2704
+ "nameExplicit": true,
2705
+ "columns": [
2706
+ {
2707
+ "value": "execution_id",
2708
+ "isExpression": false,
2709
+ "asc": true,
2710
+ "nullsFirst": false,
2711
+ "opclass": null
2712
+ }
2713
+ ],
2714
+ "isUnique": false,
2715
+ "where": null,
2716
+ "with": "",
2717
+ "method": "btree",
2718
+ "concurrently": false,
2719
+ "name": "idx_relay_workspace_leases_execution",
2720
+ "entityType": "indexes",
2721
+ "schema": "public",
2722
+ "table": "relay_workspace_leases"
2723
+ },
2724
+ {
2725
+ "nameExplicit": true,
2726
+ "columns": [
2727
+ {
2728
+ "value": "status",
2729
+ "isExpression": false,
2730
+ "asc": true,
2731
+ "nullsFirst": false,
2732
+ "opclass": null
2733
+ },
2734
+ {
2735
+ "value": "updated_at",
2736
+ "isExpression": false,
2737
+ "asc": true,
2738
+ "nullsFirst": false,
2739
+ "opclass": null
2740
+ }
2741
+ ],
2742
+ "isUnique": false,
2743
+ "where": null,
2744
+ "with": "",
2745
+ "method": "btree",
2746
+ "concurrently": false,
2747
+ "name": "idx_relay_workspace_leases_status_updated",
2748
+ "entityType": "indexes",
2749
+ "schema": "public",
2750
+ "table": "relay_workspace_leases"
2751
+ },
2752
+ {
2753
+ "nameExplicit": true,
2754
+ "columns": [
2755
+ {
2756
+ "value": "lease_id",
2757
+ "isExpression": false,
2758
+ "asc": true,
2759
+ "nullsFirst": false,
2760
+ "opclass": null
2761
+ },
2762
+ {
2763
+ "value": "created_at",
2764
+ "isExpression": false,
2765
+ "asc": true,
2766
+ "nullsFirst": false,
2767
+ "opclass": null
2768
+ }
2769
+ ],
2770
+ "isUnique": false,
2771
+ "where": null,
2772
+ "with": "",
2773
+ "method": "btree",
2774
+ "concurrently": false,
2775
+ "name": "idx_relay_workspace_snapshots_lease",
2776
+ "entityType": "indexes",
2777
+ "schema": "public",
2778
+ "table": "relay_workspace_snapshots"
2779
+ },
2780
+ {
2781
+ "nameExplicit": true,
2782
+ "columns": [
2783
+ {
2784
+ "value": "execution_id",
2785
+ "isExpression": false,
2786
+ "asc": true,
2787
+ "nullsFirst": false,
2788
+ "opclass": null
2789
+ },
2790
+ {
2791
+ "value": "created_at",
2792
+ "isExpression": false,
2793
+ "asc": true,
2794
+ "nullsFirst": false,
2795
+ "opclass": null
2796
+ }
2797
+ ],
2798
+ "isUnique": false,
2799
+ "where": null,
2800
+ "with": "",
2801
+ "method": "btree",
2802
+ "concurrently": false,
2803
+ "name": "idx_relay_workspace_snapshots_execution",
2804
+ "entityType": "indexes",
2805
+ "schema": "public",
2806
+ "table": "relay_workspace_snapshots"
2807
+ },
2808
+ {
2809
+ "columns": ["agent_definition_id", "revision"],
2810
+ "nameExplicit": true,
2811
+ "name": "pk_relay_agent_definition_revisions",
2812
+ "entityType": "pks",
2813
+ "schema": "public",
2814
+ "table": "relay_agent_definition_revisions"
2815
+ },
2816
+ {
2817
+ "columns": ["id"],
2818
+ "nameExplicit": false,
2819
+ "name": "relay_address_book_entries_pkey",
2820
+ "schema": "public",
2821
+ "table": "relay_address_book_entries",
2822
+ "entityType": "pks"
2823
+ },
2824
+ {
2825
+ "columns": ["execution_id"],
2826
+ "nameExplicit": false,
2827
+ "name": "relay_agent_chats_pkey",
2828
+ "schema": "public",
2829
+ "table": "relay_agent_chats",
2830
+ "entityType": "pks"
2831
+ },
2832
+ {
2833
+ "columns": ["id"],
2834
+ "nameExplicit": false,
2835
+ "name": "relay_agent_definitions_pkey",
2836
+ "schema": "public",
2837
+ "table": "relay_agent_definitions",
2838
+ "entityType": "pks"
2839
+ },
2840
+ {
2841
+ "columns": ["id"],
2842
+ "nameExplicit": false,
2843
+ "name": "relay_child_executions_pkey",
2844
+ "schema": "public",
2845
+ "table": "relay_child_executions",
2846
+ "entityType": "pks"
2847
+ },
2848
+ {
2849
+ "columns": ["id"],
2850
+ "nameExplicit": false,
2851
+ "name": "relay_envelope_ready_pkey",
2852
+ "schema": "public",
2853
+ "table": "relay_envelope_ready",
2854
+ "entityType": "pks"
2855
+ },
2856
+ {
2857
+ "columns": ["id"],
2858
+ "nameExplicit": false,
2859
+ "name": "relay_envelopes_pkey",
2860
+ "schema": "public",
2861
+ "table": "relay_envelopes",
2862
+ "entityType": "pks"
2863
+ },
2864
+ {
2865
+ "columns": ["id"],
2866
+ "nameExplicit": false,
2867
+ "name": "relay_execution_events_pkey",
2868
+ "schema": "public",
2869
+ "table": "relay_execution_events",
2870
+ "entityType": "pks"
2871
+ },
2872
+ {
2873
+ "columns": ["id"],
2874
+ "nameExplicit": false,
2875
+ "name": "relay_executions_pkey",
2876
+ "schema": "public",
2877
+ "table": "relay_executions",
2878
+ "entityType": "pks"
2879
+ },
2880
+ {
2881
+ "columns": ["id"],
2882
+ "nameExplicit": false,
2883
+ "name": "relay_idempotency_keys_pkey",
2884
+ "schema": "public",
2885
+ "table": "relay_idempotency_keys",
2886
+ "entityType": "pks"
2887
+ },
2888
+ {
2889
+ "columns": ["id"],
2890
+ "nameExplicit": false,
2891
+ "name": "relay_memory_records_pkey",
2892
+ "schema": "public",
2893
+ "table": "relay_memory_records",
2894
+ "entityType": "pks"
2895
+ },
2896
+ {
2897
+ "columns": ["id"],
2898
+ "nameExplicit": false,
2899
+ "name": "relay_route_attempts_pkey",
2900
+ "schema": "public",
2901
+ "table": "relay_route_attempts",
2902
+ "entityType": "pks"
2903
+ },
2904
+ {
2905
+ "columns": ["id"],
2906
+ "nameExplicit": false,
2907
+ "name": "relay_schedules_pkey",
2908
+ "schema": "public",
2909
+ "table": "relay_schedules",
2910
+ "entityType": "pks"
2911
+ },
2912
+ {
2913
+ "columns": ["id"],
2914
+ "nameExplicit": false,
2915
+ "name": "relay_tool_calls_pkey",
2916
+ "schema": "public",
2917
+ "table": "relay_tool_calls",
2918
+ "entityType": "pks"
2919
+ },
2920
+ {
2921
+ "columns": ["tool_call_id"],
2922
+ "nameExplicit": false,
2923
+ "name": "relay_tool_results_pkey",
2924
+ "schema": "public",
2925
+ "table": "relay_tool_results",
2926
+ "entityType": "pks"
2927
+ },
2928
+ {
2929
+ "columns": ["id"],
2930
+ "nameExplicit": false,
2931
+ "name": "relay_waits_pkey",
2932
+ "schema": "public",
2933
+ "table": "relay_waits",
2934
+ "entityType": "pks"
2935
+ },
2936
+ {
2937
+ "columns": ["id"],
2938
+ "nameExplicit": false,
2939
+ "name": "relay_workspace_leases_pkey",
2940
+ "schema": "public",
2941
+ "table": "relay_workspace_leases",
2942
+ "entityType": "pks"
2943
+ },
2944
+ {
2945
+ "columns": ["id"],
2946
+ "nameExplicit": false,
2947
+ "name": "relay_workspace_snapshots_pkey",
2948
+ "schema": "public",
2949
+ "table": "relay_workspace_snapshots",
2950
+ "entityType": "pks"
2951
+ }
2952
+ ],
2953
+ "renames": []
2954
+ }