@relayfx/sdk 0.0.29 → 0.0.31

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,3873 @@
1
+ {
2
+ "version": "8",
3
+ "dialect": "postgres",
4
+ "id": "c377a83c-9075-409b-ac6b-98f83687f331",
5
+ "prevIds": ["2fdccd80-d3de-4dda-8792-bbba88be8f01"],
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_compactions",
22
+ "entityType": "tables",
23
+ "schema": "public"
24
+ },
25
+ {
26
+ "isRlsEnabled": false,
27
+ "name": "relay_agent_definition_revisions",
28
+ "entityType": "tables",
29
+ "schema": "public"
30
+ },
31
+ {
32
+ "isRlsEnabled": false,
33
+ "name": "relay_agent_definitions",
34
+ "entityType": "tables",
35
+ "schema": "public"
36
+ },
37
+ {
38
+ "isRlsEnabled": false,
39
+ "name": "relay_child_executions",
40
+ "entityType": "tables",
41
+ "schema": "public"
42
+ },
43
+ {
44
+ "isRlsEnabled": false,
45
+ "name": "relay_envelope_ready",
46
+ "entityType": "tables",
47
+ "schema": "public"
48
+ },
49
+ {
50
+ "isRlsEnabled": false,
51
+ "name": "relay_envelopes",
52
+ "entityType": "tables",
53
+ "schema": "public"
54
+ },
55
+ {
56
+ "isRlsEnabled": false,
57
+ "name": "relay_execution_context_epochs",
58
+ "entityType": "tables",
59
+ "schema": "public"
60
+ },
61
+ {
62
+ "isRlsEnabled": false,
63
+ "name": "relay_execution_events",
64
+ "entityType": "tables",
65
+ "schema": "public"
66
+ },
67
+ {
68
+ "isRlsEnabled": false,
69
+ "name": "relay_executions",
70
+ "entityType": "tables",
71
+ "schema": "public"
72
+ },
73
+ {
74
+ "isRlsEnabled": false,
75
+ "name": "relay_idempotency_keys",
76
+ "entityType": "tables",
77
+ "schema": "public"
78
+ },
79
+ {
80
+ "isRlsEnabled": false,
81
+ "name": "relay_memory_records",
82
+ "entityType": "tables",
83
+ "schema": "public"
84
+ },
85
+ {
86
+ "isRlsEnabled": false,
87
+ "name": "relay_permission_rules",
88
+ "entityType": "tables",
89
+ "schema": "public"
90
+ },
91
+ {
92
+ "isRlsEnabled": false,
93
+ "name": "relay_route_attempts",
94
+ "entityType": "tables",
95
+ "schema": "public"
96
+ },
97
+ {
98
+ "isRlsEnabled": false,
99
+ "name": "relay_schedules",
100
+ "entityType": "tables",
101
+ "schema": "public"
102
+ },
103
+ {
104
+ "isRlsEnabled": false,
105
+ "name": "relay_session_entries",
106
+ "entityType": "tables",
107
+ "schema": "public"
108
+ },
109
+ {
110
+ "isRlsEnabled": false,
111
+ "name": "relay_sessions",
112
+ "entityType": "tables",
113
+ "schema": "public"
114
+ },
115
+ {
116
+ "isRlsEnabled": false,
117
+ "name": "relay_steering_drains",
118
+ "entityType": "tables",
119
+ "schema": "public"
120
+ },
121
+ {
122
+ "isRlsEnabled": false,
123
+ "name": "relay_steering_messages",
124
+ "entityType": "tables",
125
+ "schema": "public"
126
+ },
127
+ {
128
+ "isRlsEnabled": false,
129
+ "name": "relay_tool_calls",
130
+ "entityType": "tables",
131
+ "schema": "public"
132
+ },
133
+ {
134
+ "isRlsEnabled": false,
135
+ "name": "relay_tool_results",
136
+ "entityType": "tables",
137
+ "schema": "public"
138
+ },
139
+ {
140
+ "isRlsEnabled": false,
141
+ "name": "relay_waits",
142
+ "entityType": "tables",
143
+ "schema": "public"
144
+ },
145
+ {
146
+ "isRlsEnabled": false,
147
+ "name": "relay_workspace_leases",
148
+ "entityType": "tables",
149
+ "schema": "public"
150
+ },
151
+ {
152
+ "isRlsEnabled": false,
153
+ "name": "relay_workspace_snapshots",
154
+ "entityType": "tables",
155
+ "schema": "public"
156
+ },
157
+ {
158
+ "type": "text",
159
+ "typeSchema": null,
160
+ "notNull": true,
161
+ "dimensions": 0,
162
+ "default": null,
163
+ "generated": null,
164
+ "identity": null,
165
+ "name": "id",
166
+ "entityType": "columns",
167
+ "schema": "public",
168
+ "table": "relay_address_book_entries"
169
+ },
170
+ {
171
+ "type": "text",
172
+ "typeSchema": null,
173
+ "notNull": true,
174
+ "dimensions": 0,
175
+ "default": null,
176
+ "generated": null,
177
+ "identity": null,
178
+ "name": "address_id",
179
+ "entityType": "columns",
180
+ "schema": "public",
181
+ "table": "relay_address_book_entries"
182
+ },
183
+ {
184
+ "type": "text",
185
+ "typeSchema": null,
186
+ "notNull": true,
187
+ "dimensions": 0,
188
+ "default": null,
189
+ "generated": null,
190
+ "identity": null,
191
+ "name": "route_kind",
192
+ "entityType": "columns",
193
+ "schema": "public",
194
+ "table": "relay_address_book_entries"
195
+ },
196
+ {
197
+ "type": "text",
198
+ "typeSchema": null,
199
+ "notNull": true,
200
+ "dimensions": 0,
201
+ "default": null,
202
+ "generated": null,
203
+ "identity": null,
204
+ "name": "route_key",
205
+ "entityType": "columns",
206
+ "schema": "public",
207
+ "table": "relay_address_book_entries"
208
+ },
209
+ {
210
+ "type": "jsonb",
211
+ "typeSchema": null,
212
+ "notNull": true,
213
+ "dimensions": 0,
214
+ "default": "'{}'",
215
+ "generated": null,
216
+ "identity": null,
217
+ "name": "metadata_json",
218
+ "entityType": "columns",
219
+ "schema": "public",
220
+ "table": "relay_address_book_entries"
221
+ },
222
+ {
223
+ "type": "timestamp with time zone",
224
+ "typeSchema": null,
225
+ "notNull": true,
226
+ "dimensions": 0,
227
+ "default": "now()",
228
+ "generated": null,
229
+ "identity": null,
230
+ "name": "created_at",
231
+ "entityType": "columns",
232
+ "schema": "public",
233
+ "table": "relay_address_book_entries"
234
+ },
235
+ {
236
+ "type": "timestamp with time zone",
237
+ "typeSchema": null,
238
+ "notNull": true,
239
+ "dimensions": 0,
240
+ "default": "now()",
241
+ "generated": null,
242
+ "identity": null,
243
+ "name": "updated_at",
244
+ "entityType": "columns",
245
+ "schema": "public",
246
+ "table": "relay_address_book_entries"
247
+ },
248
+ {
249
+ "type": "text",
250
+ "typeSchema": null,
251
+ "notNull": true,
252
+ "dimensions": 0,
253
+ "default": null,
254
+ "generated": null,
255
+ "identity": null,
256
+ "name": "execution_id",
257
+ "entityType": "columns",
258
+ "schema": "public",
259
+ "table": "relay_agent_chats"
260
+ },
261
+ {
262
+ "type": "jsonb",
263
+ "typeSchema": null,
264
+ "notNull": true,
265
+ "dimensions": 0,
266
+ "default": null,
267
+ "generated": null,
268
+ "identity": null,
269
+ "name": "export_json",
270
+ "entityType": "columns",
271
+ "schema": "public",
272
+ "table": "relay_agent_chats"
273
+ },
274
+ {
275
+ "type": "timestamp with time zone",
276
+ "typeSchema": null,
277
+ "notNull": true,
278
+ "dimensions": 0,
279
+ "default": "now()",
280
+ "generated": null,
281
+ "identity": null,
282
+ "name": "updated_at",
283
+ "entityType": "columns",
284
+ "schema": "public",
285
+ "table": "relay_agent_chats"
286
+ },
287
+ {
288
+ "type": "text",
289
+ "typeSchema": null,
290
+ "notNull": true,
291
+ "dimensions": 0,
292
+ "default": null,
293
+ "generated": null,
294
+ "identity": null,
295
+ "name": "execution_id",
296
+ "entityType": "columns",
297
+ "schema": "public",
298
+ "table": "relay_agent_compactions"
299
+ },
300
+ {
301
+ "type": "text",
302
+ "typeSchema": null,
303
+ "notNull": true,
304
+ "dimensions": 0,
305
+ "default": null,
306
+ "generated": null,
307
+ "identity": null,
308
+ "name": "checkpoint_id",
309
+ "entityType": "columns",
310
+ "schema": "public",
311
+ "table": "relay_agent_compactions"
312
+ },
313
+ {
314
+ "type": "text",
315
+ "typeSchema": null,
316
+ "notNull": true,
317
+ "dimensions": 0,
318
+ "default": null,
319
+ "generated": null,
320
+ "identity": null,
321
+ "name": "summary",
322
+ "entityType": "columns",
323
+ "schema": "public",
324
+ "table": "relay_agent_compactions"
325
+ },
326
+ {
327
+ "type": "text",
328
+ "typeSchema": null,
329
+ "notNull": true,
330
+ "dimensions": 0,
331
+ "default": null,
332
+ "generated": null,
333
+ "identity": null,
334
+ "name": "first_kept_entry_id",
335
+ "entityType": "columns",
336
+ "schema": "public",
337
+ "table": "relay_agent_compactions"
338
+ },
339
+ {
340
+ "type": "integer",
341
+ "typeSchema": null,
342
+ "notNull": true,
343
+ "dimensions": 0,
344
+ "default": null,
345
+ "generated": null,
346
+ "identity": null,
347
+ "name": "turn",
348
+ "entityType": "columns",
349
+ "schema": "public",
350
+ "table": "relay_agent_compactions"
351
+ },
352
+ {
353
+ "type": "timestamp with time zone",
354
+ "typeSchema": null,
355
+ "notNull": true,
356
+ "dimensions": 0,
357
+ "default": "now()",
358
+ "generated": null,
359
+ "identity": null,
360
+ "name": "created_at",
361
+ "entityType": "columns",
362
+ "schema": "public",
363
+ "table": "relay_agent_compactions"
364
+ },
365
+ {
366
+ "type": "text",
367
+ "typeSchema": null,
368
+ "notNull": true,
369
+ "dimensions": 0,
370
+ "default": null,
371
+ "generated": null,
372
+ "identity": null,
373
+ "name": "agent_definition_id",
374
+ "entityType": "columns",
375
+ "schema": "public",
376
+ "table": "relay_agent_definition_revisions"
377
+ },
378
+ {
379
+ "type": "integer",
380
+ "typeSchema": null,
381
+ "notNull": true,
382
+ "dimensions": 0,
383
+ "default": null,
384
+ "generated": null,
385
+ "identity": null,
386
+ "name": "revision",
387
+ "entityType": "columns",
388
+ "schema": "public",
389
+ "table": "relay_agent_definition_revisions"
390
+ },
391
+ {
392
+ "type": "text",
393
+ "typeSchema": null,
394
+ "notNull": true,
395
+ "dimensions": 0,
396
+ "default": null,
397
+ "generated": null,
398
+ "identity": null,
399
+ "name": "name",
400
+ "entityType": "columns",
401
+ "schema": "public",
402
+ "table": "relay_agent_definition_revisions"
403
+ },
404
+ {
405
+ "type": "jsonb",
406
+ "typeSchema": null,
407
+ "notNull": true,
408
+ "dimensions": 0,
409
+ "default": null,
410
+ "generated": null,
411
+ "identity": null,
412
+ "name": "definition_json",
413
+ "entityType": "columns",
414
+ "schema": "public",
415
+ "table": "relay_agent_definition_revisions"
416
+ },
417
+ {
418
+ "type": "timestamp with time zone",
419
+ "typeSchema": null,
420
+ "notNull": true,
421
+ "dimensions": 0,
422
+ "default": "now()",
423
+ "generated": null,
424
+ "identity": null,
425
+ "name": "created_at",
426
+ "entityType": "columns",
427
+ "schema": "public",
428
+ "table": "relay_agent_definition_revisions"
429
+ },
430
+ {
431
+ "type": "text",
432
+ "typeSchema": null,
433
+ "notNull": true,
434
+ "dimensions": 0,
435
+ "default": null,
436
+ "generated": null,
437
+ "identity": null,
438
+ "name": "id",
439
+ "entityType": "columns",
440
+ "schema": "public",
441
+ "table": "relay_agent_definitions"
442
+ },
443
+ {
444
+ "type": "text",
445
+ "typeSchema": null,
446
+ "notNull": true,
447
+ "dimensions": 0,
448
+ "default": null,
449
+ "generated": null,
450
+ "identity": null,
451
+ "name": "name",
452
+ "entityType": "columns",
453
+ "schema": "public",
454
+ "table": "relay_agent_definitions"
455
+ },
456
+ {
457
+ "type": "integer",
458
+ "typeSchema": null,
459
+ "notNull": true,
460
+ "dimensions": 0,
461
+ "default": null,
462
+ "generated": null,
463
+ "identity": null,
464
+ "name": "current_revision",
465
+ "entityType": "columns",
466
+ "schema": "public",
467
+ "table": "relay_agent_definitions"
468
+ },
469
+ {
470
+ "type": "jsonb",
471
+ "typeSchema": null,
472
+ "notNull": true,
473
+ "dimensions": 0,
474
+ "default": null,
475
+ "generated": null,
476
+ "identity": null,
477
+ "name": "definition_json",
478
+ "entityType": "columns",
479
+ "schema": "public",
480
+ "table": "relay_agent_definitions"
481
+ },
482
+ {
483
+ "type": "timestamp with time zone",
484
+ "typeSchema": null,
485
+ "notNull": true,
486
+ "dimensions": 0,
487
+ "default": "now()",
488
+ "generated": null,
489
+ "identity": null,
490
+ "name": "created_at",
491
+ "entityType": "columns",
492
+ "schema": "public",
493
+ "table": "relay_agent_definitions"
494
+ },
495
+ {
496
+ "type": "timestamp with time zone",
497
+ "typeSchema": null,
498
+ "notNull": true,
499
+ "dimensions": 0,
500
+ "default": "now()",
501
+ "generated": null,
502
+ "identity": null,
503
+ "name": "updated_at",
504
+ "entityType": "columns",
505
+ "schema": "public",
506
+ "table": "relay_agent_definitions"
507
+ },
508
+ {
509
+ "type": "text",
510
+ "typeSchema": null,
511
+ "notNull": true,
512
+ "dimensions": 0,
513
+ "default": null,
514
+ "generated": null,
515
+ "identity": null,
516
+ "name": "id",
517
+ "entityType": "columns",
518
+ "schema": "public",
519
+ "table": "relay_child_executions"
520
+ },
521
+ {
522
+ "type": "text",
523
+ "typeSchema": null,
524
+ "notNull": true,
525
+ "dimensions": 0,
526
+ "default": null,
527
+ "generated": null,
528
+ "identity": null,
529
+ "name": "execution_id",
530
+ "entityType": "columns",
531
+ "schema": "public",
532
+ "table": "relay_child_executions"
533
+ },
534
+ {
535
+ "type": "text",
536
+ "typeSchema": null,
537
+ "notNull": true,
538
+ "dimensions": 0,
539
+ "default": null,
540
+ "generated": null,
541
+ "identity": null,
542
+ "name": "address_id",
543
+ "entityType": "columns",
544
+ "schema": "public",
545
+ "table": "relay_child_executions"
546
+ },
547
+ {
548
+ "type": "text",
549
+ "typeSchema": null,
550
+ "notNull": true,
551
+ "dimensions": 0,
552
+ "default": null,
553
+ "generated": null,
554
+ "identity": null,
555
+ "name": "status",
556
+ "entityType": "columns",
557
+ "schema": "public",
558
+ "table": "relay_child_executions"
559
+ },
560
+ {
561
+ "type": "jsonb",
562
+ "typeSchema": null,
563
+ "notNull": true,
564
+ "dimensions": 0,
565
+ "default": "'{}'",
566
+ "generated": null,
567
+ "identity": null,
568
+ "name": "metadata_json",
569
+ "entityType": "columns",
570
+ "schema": "public",
571
+ "table": "relay_child_executions"
572
+ },
573
+ {
574
+ "type": "timestamp with time zone",
575
+ "typeSchema": null,
576
+ "notNull": true,
577
+ "dimensions": 0,
578
+ "default": "now()",
579
+ "generated": null,
580
+ "identity": null,
581
+ "name": "created_at",
582
+ "entityType": "columns",
583
+ "schema": "public",
584
+ "table": "relay_child_executions"
585
+ },
586
+ {
587
+ "type": "timestamp with time zone",
588
+ "typeSchema": null,
589
+ "notNull": true,
590
+ "dimensions": 0,
591
+ "default": "now()",
592
+ "generated": null,
593
+ "identity": null,
594
+ "name": "updated_at",
595
+ "entityType": "columns",
596
+ "schema": "public",
597
+ "table": "relay_child_executions"
598
+ },
599
+ {
600
+ "type": "text",
601
+ "typeSchema": null,
602
+ "notNull": true,
603
+ "dimensions": 0,
604
+ "default": null,
605
+ "generated": null,
606
+ "identity": null,
607
+ "name": "id",
608
+ "entityType": "columns",
609
+ "schema": "public",
610
+ "table": "relay_envelope_ready"
611
+ },
612
+ {
613
+ "type": "text",
614
+ "typeSchema": null,
615
+ "notNull": true,
616
+ "dimensions": 0,
617
+ "default": null,
618
+ "generated": null,
619
+ "identity": null,
620
+ "name": "envelope_id",
621
+ "entityType": "columns",
622
+ "schema": "public",
623
+ "table": "relay_envelope_ready"
624
+ },
625
+ {
626
+ "type": "text",
627
+ "typeSchema": null,
628
+ "notNull": true,
629
+ "dimensions": 0,
630
+ "default": null,
631
+ "generated": null,
632
+ "identity": null,
633
+ "name": "route_type",
634
+ "entityType": "columns",
635
+ "schema": "public",
636
+ "table": "relay_envelope_ready"
637
+ },
638
+ {
639
+ "type": "text",
640
+ "typeSchema": null,
641
+ "notNull": true,
642
+ "dimensions": 0,
643
+ "default": null,
644
+ "generated": null,
645
+ "identity": null,
646
+ "name": "route_key",
647
+ "entityType": "columns",
648
+ "schema": "public",
649
+ "table": "relay_envelope_ready"
650
+ },
651
+ {
652
+ "type": "text",
653
+ "typeSchema": null,
654
+ "notNull": true,
655
+ "dimensions": 0,
656
+ "default": "'ready'",
657
+ "generated": null,
658
+ "identity": null,
659
+ "name": "state",
660
+ "entityType": "columns",
661
+ "schema": "public",
662
+ "table": "relay_envelope_ready"
663
+ },
664
+ {
665
+ "type": "timestamp with time zone",
666
+ "typeSchema": null,
667
+ "notNull": true,
668
+ "dimensions": 0,
669
+ "default": "now()",
670
+ "generated": null,
671
+ "identity": null,
672
+ "name": "available_at",
673
+ "entityType": "columns",
674
+ "schema": "public",
675
+ "table": "relay_envelope_ready"
676
+ },
677
+ {
678
+ "type": "integer",
679
+ "typeSchema": null,
680
+ "notNull": true,
681
+ "dimensions": 0,
682
+ "default": "0",
683
+ "generated": null,
684
+ "identity": null,
685
+ "name": "attempt",
686
+ "entityType": "columns",
687
+ "schema": "public",
688
+ "table": "relay_envelope_ready"
689
+ },
690
+ {
691
+ "type": "text",
692
+ "typeSchema": null,
693
+ "notNull": false,
694
+ "dimensions": 0,
695
+ "default": null,
696
+ "generated": null,
697
+ "identity": null,
698
+ "name": "claim_owner",
699
+ "entityType": "columns",
700
+ "schema": "public",
701
+ "table": "relay_envelope_ready"
702
+ },
703
+ {
704
+ "type": "timestamp with time zone",
705
+ "typeSchema": null,
706
+ "notNull": false,
707
+ "dimensions": 0,
708
+ "default": null,
709
+ "generated": null,
710
+ "identity": null,
711
+ "name": "claim_expires_at",
712
+ "entityType": "columns",
713
+ "schema": "public",
714
+ "table": "relay_envelope_ready"
715
+ },
716
+ {
717
+ "type": "text",
718
+ "typeSchema": null,
719
+ "notNull": false,
720
+ "dimensions": 0,
721
+ "default": null,
722
+ "generated": null,
723
+ "identity": null,
724
+ "name": "last_error",
725
+ "entityType": "columns",
726
+ "schema": "public",
727
+ "table": "relay_envelope_ready"
728
+ },
729
+ {
730
+ "type": "text",
731
+ "typeSchema": null,
732
+ "notNull": false,
733
+ "dimensions": 0,
734
+ "default": null,
735
+ "generated": null,
736
+ "identity": null,
737
+ "name": "idempotency_key",
738
+ "entityType": "columns",
739
+ "schema": "public",
740
+ "table": "relay_envelope_ready"
741
+ },
742
+ {
743
+ "type": "jsonb",
744
+ "typeSchema": null,
745
+ "notNull": true,
746
+ "dimensions": 0,
747
+ "default": "'{}'",
748
+ "generated": null,
749
+ "identity": null,
750
+ "name": "metadata_json",
751
+ "entityType": "columns",
752
+ "schema": "public",
753
+ "table": "relay_envelope_ready"
754
+ },
755
+ {
756
+ "type": "timestamp with time zone",
757
+ "typeSchema": null,
758
+ "notNull": true,
759
+ "dimensions": 0,
760
+ "default": "now()",
761
+ "generated": null,
762
+ "identity": null,
763
+ "name": "created_at",
764
+ "entityType": "columns",
765
+ "schema": "public",
766
+ "table": "relay_envelope_ready"
767
+ },
768
+ {
769
+ "type": "timestamp with time zone",
770
+ "typeSchema": null,
771
+ "notNull": true,
772
+ "dimensions": 0,
773
+ "default": "now()",
774
+ "generated": null,
775
+ "identity": null,
776
+ "name": "updated_at",
777
+ "entityType": "columns",
778
+ "schema": "public",
779
+ "table": "relay_envelope_ready"
780
+ },
781
+ {
782
+ "type": "timestamp with time zone",
783
+ "typeSchema": null,
784
+ "notNull": false,
785
+ "dimensions": 0,
786
+ "default": null,
787
+ "generated": null,
788
+ "identity": null,
789
+ "name": "claimed_at",
790
+ "entityType": "columns",
791
+ "schema": "public",
792
+ "table": "relay_envelope_ready"
793
+ },
794
+ {
795
+ "type": "timestamp with time zone",
796
+ "typeSchema": null,
797
+ "notNull": false,
798
+ "dimensions": 0,
799
+ "default": null,
800
+ "generated": null,
801
+ "identity": null,
802
+ "name": "acknowledged_at",
803
+ "entityType": "columns",
804
+ "schema": "public",
805
+ "table": "relay_envelope_ready"
806
+ },
807
+ {
808
+ "type": "text",
809
+ "typeSchema": null,
810
+ "notNull": true,
811
+ "dimensions": 0,
812
+ "default": null,
813
+ "generated": null,
814
+ "identity": null,
815
+ "name": "id",
816
+ "entityType": "columns",
817
+ "schema": "public",
818
+ "table": "relay_envelopes"
819
+ },
820
+ {
821
+ "type": "text",
822
+ "typeSchema": null,
823
+ "notNull": true,
824
+ "dimensions": 0,
825
+ "default": null,
826
+ "generated": null,
827
+ "identity": null,
828
+ "name": "execution_id",
829
+ "entityType": "columns",
830
+ "schema": "public",
831
+ "table": "relay_envelopes"
832
+ },
833
+ {
834
+ "type": "text",
835
+ "typeSchema": null,
836
+ "notNull": true,
837
+ "dimensions": 0,
838
+ "default": null,
839
+ "generated": null,
840
+ "identity": null,
841
+ "name": "from_address_id",
842
+ "entityType": "columns",
843
+ "schema": "public",
844
+ "table": "relay_envelopes"
845
+ },
846
+ {
847
+ "type": "text",
848
+ "typeSchema": null,
849
+ "notNull": true,
850
+ "dimensions": 0,
851
+ "default": null,
852
+ "generated": null,
853
+ "identity": null,
854
+ "name": "to_address_id",
855
+ "entityType": "columns",
856
+ "schema": "public",
857
+ "table": "relay_envelopes"
858
+ },
859
+ {
860
+ "type": "jsonb",
861
+ "typeSchema": null,
862
+ "notNull": true,
863
+ "dimensions": 0,
864
+ "default": null,
865
+ "generated": null,
866
+ "identity": null,
867
+ "name": "content_json",
868
+ "entityType": "columns",
869
+ "schema": "public",
870
+ "table": "relay_envelopes"
871
+ },
872
+ {
873
+ "type": "jsonb",
874
+ "typeSchema": null,
875
+ "notNull": false,
876
+ "dimensions": 0,
877
+ "default": null,
878
+ "generated": null,
879
+ "identity": null,
880
+ "name": "wait_json",
881
+ "entityType": "columns",
882
+ "schema": "public",
883
+ "table": "relay_envelopes"
884
+ },
885
+ {
886
+ "type": "text",
887
+ "typeSchema": null,
888
+ "notNull": false,
889
+ "dimensions": 0,
890
+ "default": null,
891
+ "generated": null,
892
+ "identity": null,
893
+ "name": "correlation_key",
894
+ "entityType": "columns",
895
+ "schema": "public",
896
+ "table": "relay_envelopes"
897
+ },
898
+ {
899
+ "type": "jsonb",
900
+ "typeSchema": null,
901
+ "notNull": true,
902
+ "dimensions": 0,
903
+ "default": "'{}'",
904
+ "generated": null,
905
+ "identity": null,
906
+ "name": "metadata_json",
907
+ "entityType": "columns",
908
+ "schema": "public",
909
+ "table": "relay_envelopes"
910
+ },
911
+ {
912
+ "type": "timestamp with time zone",
913
+ "typeSchema": null,
914
+ "notNull": true,
915
+ "dimensions": 0,
916
+ "default": "now()",
917
+ "generated": null,
918
+ "identity": null,
919
+ "name": "created_at",
920
+ "entityType": "columns",
921
+ "schema": "public",
922
+ "table": "relay_envelopes"
923
+ },
924
+ {
925
+ "type": "text",
926
+ "typeSchema": null,
927
+ "notNull": true,
928
+ "dimensions": 0,
929
+ "default": null,
930
+ "generated": null,
931
+ "identity": null,
932
+ "name": "execution_id",
933
+ "entityType": "columns",
934
+ "schema": "public",
935
+ "table": "relay_execution_context_epochs"
936
+ },
937
+ {
938
+ "type": "text",
939
+ "typeSchema": null,
940
+ "notNull": true,
941
+ "dimensions": 0,
942
+ "default": null,
943
+ "generated": null,
944
+ "identity": null,
945
+ "name": "baseline",
946
+ "entityType": "columns",
947
+ "schema": "public",
948
+ "table": "relay_execution_context_epochs"
949
+ },
950
+ {
951
+ "type": "jsonb",
952
+ "typeSchema": null,
953
+ "notNull": true,
954
+ "dimensions": 0,
955
+ "default": "'[]'",
956
+ "generated": null,
957
+ "identity": null,
958
+ "name": "dynamic_source_ids_json",
959
+ "entityType": "columns",
960
+ "schema": "public",
961
+ "table": "relay_execution_context_epochs"
962
+ },
963
+ {
964
+ "type": "timestamp with time zone",
965
+ "typeSchema": null,
966
+ "notNull": true,
967
+ "dimensions": 0,
968
+ "default": "now()",
969
+ "generated": null,
970
+ "identity": null,
971
+ "name": "opened_at",
972
+ "entityType": "columns",
973
+ "schema": "public",
974
+ "table": "relay_execution_context_epochs"
975
+ },
976
+ {
977
+ "type": "text",
978
+ "typeSchema": null,
979
+ "notNull": true,
980
+ "dimensions": 0,
981
+ "default": null,
982
+ "generated": null,
983
+ "identity": null,
984
+ "name": "id",
985
+ "entityType": "columns",
986
+ "schema": "public",
987
+ "table": "relay_execution_events"
988
+ },
989
+ {
990
+ "type": "text",
991
+ "typeSchema": null,
992
+ "notNull": true,
993
+ "dimensions": 0,
994
+ "default": null,
995
+ "generated": null,
996
+ "identity": null,
997
+ "name": "execution_id",
998
+ "entityType": "columns",
999
+ "schema": "public",
1000
+ "table": "relay_execution_events"
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "typeSchema": null,
1005
+ "notNull": false,
1006
+ "dimensions": 0,
1007
+ "default": null,
1008
+ "generated": null,
1009
+ "identity": null,
1010
+ "name": "child_execution_id",
1011
+ "entityType": "columns",
1012
+ "schema": "public",
1013
+ "table": "relay_execution_events"
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "typeSchema": null,
1018
+ "notNull": true,
1019
+ "dimensions": 0,
1020
+ "default": null,
1021
+ "generated": null,
1022
+ "identity": null,
1023
+ "name": "type",
1024
+ "entityType": "columns",
1025
+ "schema": "public",
1026
+ "table": "relay_execution_events"
1027
+ },
1028
+ {
1029
+ "type": "integer",
1030
+ "typeSchema": null,
1031
+ "notNull": true,
1032
+ "dimensions": 0,
1033
+ "default": null,
1034
+ "generated": null,
1035
+ "identity": null,
1036
+ "name": "sequence",
1037
+ "entityType": "columns",
1038
+ "schema": "public",
1039
+ "table": "relay_execution_events"
1040
+ },
1041
+ {
1042
+ "type": "text",
1043
+ "typeSchema": null,
1044
+ "notNull": true,
1045
+ "dimensions": 0,
1046
+ "default": null,
1047
+ "generated": null,
1048
+ "identity": null,
1049
+ "name": "cursor",
1050
+ "entityType": "columns",
1051
+ "schema": "public",
1052
+ "table": "relay_execution_events"
1053
+ },
1054
+ {
1055
+ "type": "jsonb",
1056
+ "typeSchema": null,
1057
+ "notNull": false,
1058
+ "dimensions": 0,
1059
+ "default": null,
1060
+ "generated": null,
1061
+ "identity": null,
1062
+ "name": "content_json",
1063
+ "entityType": "columns",
1064
+ "schema": "public",
1065
+ "table": "relay_execution_events"
1066
+ },
1067
+ {
1068
+ "type": "jsonb",
1069
+ "typeSchema": null,
1070
+ "notNull": true,
1071
+ "dimensions": 0,
1072
+ "default": "'{}'",
1073
+ "generated": null,
1074
+ "identity": null,
1075
+ "name": "data_json",
1076
+ "entityType": "columns",
1077
+ "schema": "public",
1078
+ "table": "relay_execution_events"
1079
+ },
1080
+ {
1081
+ "type": "timestamp with time zone",
1082
+ "typeSchema": null,
1083
+ "notNull": true,
1084
+ "dimensions": 0,
1085
+ "default": "now()",
1086
+ "generated": null,
1087
+ "identity": null,
1088
+ "name": "created_at",
1089
+ "entityType": "columns",
1090
+ "schema": "public",
1091
+ "table": "relay_execution_events"
1092
+ },
1093
+ {
1094
+ "type": "text",
1095
+ "typeSchema": null,
1096
+ "notNull": true,
1097
+ "dimensions": 0,
1098
+ "default": null,
1099
+ "generated": null,
1100
+ "identity": null,
1101
+ "name": "id",
1102
+ "entityType": "columns",
1103
+ "schema": "public",
1104
+ "table": "relay_executions"
1105
+ },
1106
+ {
1107
+ "type": "text",
1108
+ "typeSchema": null,
1109
+ "notNull": true,
1110
+ "dimensions": 0,
1111
+ "default": null,
1112
+ "generated": null,
1113
+ "identity": null,
1114
+ "name": "root_address_id",
1115
+ "entityType": "columns",
1116
+ "schema": "public",
1117
+ "table": "relay_executions"
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "typeSchema": null,
1122
+ "notNull": false,
1123
+ "dimensions": 0,
1124
+ "default": null,
1125
+ "generated": null,
1126
+ "identity": null,
1127
+ "name": "session_id",
1128
+ "entityType": "columns",
1129
+ "schema": "public",
1130
+ "table": "relay_executions"
1131
+ },
1132
+ {
1133
+ "type": "text",
1134
+ "typeSchema": null,
1135
+ "notNull": true,
1136
+ "dimensions": 0,
1137
+ "default": null,
1138
+ "generated": null,
1139
+ "identity": null,
1140
+ "name": "status",
1141
+ "entityType": "columns",
1142
+ "schema": "public",
1143
+ "table": "relay_executions"
1144
+ },
1145
+ {
1146
+ "type": "text",
1147
+ "typeSchema": null,
1148
+ "notNull": false,
1149
+ "dimensions": 0,
1150
+ "default": null,
1151
+ "generated": null,
1152
+ "identity": null,
1153
+ "name": "agent_definition_id",
1154
+ "entityType": "columns",
1155
+ "schema": "public",
1156
+ "table": "relay_executions"
1157
+ },
1158
+ {
1159
+ "type": "integer",
1160
+ "typeSchema": null,
1161
+ "notNull": false,
1162
+ "dimensions": 0,
1163
+ "default": null,
1164
+ "generated": null,
1165
+ "identity": null,
1166
+ "name": "agent_definition_revision",
1167
+ "entityType": "columns",
1168
+ "schema": "public",
1169
+ "table": "relay_executions"
1170
+ },
1171
+ {
1172
+ "type": "jsonb",
1173
+ "typeSchema": null,
1174
+ "notNull": false,
1175
+ "dimensions": 0,
1176
+ "default": null,
1177
+ "generated": null,
1178
+ "identity": null,
1179
+ "name": "agent_definition_snapshot_json",
1180
+ "entityType": "columns",
1181
+ "schema": "public",
1182
+ "table": "relay_executions"
1183
+ },
1184
+ {
1185
+ "type": "jsonb",
1186
+ "typeSchema": null,
1187
+ "notNull": true,
1188
+ "dimensions": 0,
1189
+ "default": "'{}'",
1190
+ "generated": null,
1191
+ "identity": null,
1192
+ "name": "metadata_json",
1193
+ "entityType": "columns",
1194
+ "schema": "public",
1195
+ "table": "relay_executions"
1196
+ },
1197
+ {
1198
+ "type": "timestamp with time zone",
1199
+ "typeSchema": null,
1200
+ "notNull": true,
1201
+ "dimensions": 0,
1202
+ "default": "now()",
1203
+ "generated": null,
1204
+ "identity": null,
1205
+ "name": "created_at",
1206
+ "entityType": "columns",
1207
+ "schema": "public",
1208
+ "table": "relay_executions"
1209
+ },
1210
+ {
1211
+ "type": "timestamp with time zone",
1212
+ "typeSchema": null,
1213
+ "notNull": true,
1214
+ "dimensions": 0,
1215
+ "default": "now()",
1216
+ "generated": null,
1217
+ "identity": null,
1218
+ "name": "updated_at",
1219
+ "entityType": "columns",
1220
+ "schema": "public",
1221
+ "table": "relay_executions"
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "typeSchema": null,
1226
+ "notNull": true,
1227
+ "dimensions": 0,
1228
+ "default": null,
1229
+ "generated": null,
1230
+ "identity": null,
1231
+ "name": "id",
1232
+ "entityType": "columns",
1233
+ "schema": "public",
1234
+ "table": "relay_idempotency_keys"
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "typeSchema": null,
1239
+ "notNull": true,
1240
+ "dimensions": 0,
1241
+ "default": null,
1242
+ "generated": null,
1243
+ "identity": null,
1244
+ "name": "scope",
1245
+ "entityType": "columns",
1246
+ "schema": "public",
1247
+ "table": "relay_idempotency_keys"
1248
+ },
1249
+ {
1250
+ "type": "text",
1251
+ "typeSchema": null,
1252
+ "notNull": true,
1253
+ "dimensions": 0,
1254
+ "default": null,
1255
+ "generated": null,
1256
+ "identity": null,
1257
+ "name": "operation",
1258
+ "entityType": "columns",
1259
+ "schema": "public",
1260
+ "table": "relay_idempotency_keys"
1261
+ },
1262
+ {
1263
+ "type": "text",
1264
+ "typeSchema": null,
1265
+ "notNull": true,
1266
+ "dimensions": 0,
1267
+ "default": null,
1268
+ "generated": null,
1269
+ "identity": null,
1270
+ "name": "key",
1271
+ "entityType": "columns",
1272
+ "schema": "public",
1273
+ "table": "relay_idempotency_keys"
1274
+ },
1275
+ {
1276
+ "type": "jsonb",
1277
+ "typeSchema": null,
1278
+ "notNull": false,
1279
+ "dimensions": 0,
1280
+ "default": null,
1281
+ "generated": null,
1282
+ "identity": null,
1283
+ "name": "result_json",
1284
+ "entityType": "columns",
1285
+ "schema": "public",
1286
+ "table": "relay_idempotency_keys"
1287
+ },
1288
+ {
1289
+ "type": "jsonb",
1290
+ "typeSchema": null,
1291
+ "notNull": true,
1292
+ "dimensions": 0,
1293
+ "default": "'{}'",
1294
+ "generated": null,
1295
+ "identity": null,
1296
+ "name": "metadata_json",
1297
+ "entityType": "columns",
1298
+ "schema": "public",
1299
+ "table": "relay_idempotency_keys"
1300
+ },
1301
+ {
1302
+ "type": "timestamp with time zone",
1303
+ "typeSchema": null,
1304
+ "notNull": true,
1305
+ "dimensions": 0,
1306
+ "default": "now()",
1307
+ "generated": null,
1308
+ "identity": null,
1309
+ "name": "created_at",
1310
+ "entityType": "columns",
1311
+ "schema": "public",
1312
+ "table": "relay_idempotency_keys"
1313
+ },
1314
+ {
1315
+ "type": "timestamp with time zone",
1316
+ "typeSchema": null,
1317
+ "notNull": true,
1318
+ "dimensions": 0,
1319
+ "default": "now()",
1320
+ "generated": null,
1321
+ "identity": null,
1322
+ "name": "updated_at",
1323
+ "entityType": "columns",
1324
+ "schema": "public",
1325
+ "table": "relay_idempotency_keys"
1326
+ },
1327
+ {
1328
+ "type": "timestamp with time zone",
1329
+ "typeSchema": null,
1330
+ "notNull": false,
1331
+ "dimensions": 0,
1332
+ "default": null,
1333
+ "generated": null,
1334
+ "identity": null,
1335
+ "name": "expires_at",
1336
+ "entityType": "columns",
1337
+ "schema": "public",
1338
+ "table": "relay_idempotency_keys"
1339
+ },
1340
+ {
1341
+ "type": "text",
1342
+ "typeSchema": null,
1343
+ "notNull": true,
1344
+ "dimensions": 0,
1345
+ "default": null,
1346
+ "generated": null,
1347
+ "identity": null,
1348
+ "name": "id",
1349
+ "entityType": "columns",
1350
+ "schema": "public",
1351
+ "table": "relay_memory_records"
1352
+ },
1353
+ {
1354
+ "type": "text",
1355
+ "typeSchema": null,
1356
+ "notNull": true,
1357
+ "dimensions": 0,
1358
+ "default": null,
1359
+ "generated": null,
1360
+ "identity": null,
1361
+ "name": "agent",
1362
+ "entityType": "columns",
1363
+ "schema": "public",
1364
+ "table": "relay_memory_records"
1365
+ },
1366
+ {
1367
+ "type": "text",
1368
+ "typeSchema": null,
1369
+ "notNull": true,
1370
+ "dimensions": 0,
1371
+ "default": null,
1372
+ "generated": null,
1373
+ "identity": null,
1374
+ "name": "subject",
1375
+ "entityType": "columns",
1376
+ "schema": "public",
1377
+ "table": "relay_memory_records"
1378
+ },
1379
+ {
1380
+ "type": "double precision",
1381
+ "typeSchema": null,
1382
+ "notNull": true,
1383
+ "dimensions": 1,
1384
+ "default": null,
1385
+ "generated": null,
1386
+ "identity": null,
1387
+ "name": "embedding",
1388
+ "entityType": "columns",
1389
+ "schema": "public",
1390
+ "table": "relay_memory_records"
1391
+ },
1392
+ {
1393
+ "type": "jsonb",
1394
+ "typeSchema": null,
1395
+ "notNull": true,
1396
+ "dimensions": 0,
1397
+ "default": null,
1398
+ "generated": null,
1399
+ "identity": null,
1400
+ "name": "parts_json",
1401
+ "entityType": "columns",
1402
+ "schema": "public",
1403
+ "table": "relay_memory_records"
1404
+ },
1405
+ {
1406
+ "type": "jsonb",
1407
+ "typeSchema": null,
1408
+ "notNull": true,
1409
+ "dimensions": 0,
1410
+ "default": "'{}'",
1411
+ "generated": null,
1412
+ "identity": null,
1413
+ "name": "metadata_json",
1414
+ "entityType": "columns",
1415
+ "schema": "public",
1416
+ "table": "relay_memory_records"
1417
+ },
1418
+ {
1419
+ "type": "timestamp with time zone",
1420
+ "typeSchema": null,
1421
+ "notNull": true,
1422
+ "dimensions": 0,
1423
+ "default": "now()",
1424
+ "generated": null,
1425
+ "identity": null,
1426
+ "name": "created_at",
1427
+ "entityType": "columns",
1428
+ "schema": "public",
1429
+ "table": "relay_memory_records"
1430
+ },
1431
+ {
1432
+ "type": "text",
1433
+ "typeSchema": null,
1434
+ "notNull": true,
1435
+ "dimensions": 0,
1436
+ "default": null,
1437
+ "generated": null,
1438
+ "identity": null,
1439
+ "name": "agent",
1440
+ "entityType": "columns",
1441
+ "schema": "public",
1442
+ "table": "relay_permission_rules"
1443
+ },
1444
+ {
1445
+ "type": "text",
1446
+ "typeSchema": null,
1447
+ "notNull": true,
1448
+ "dimensions": 0,
1449
+ "default": null,
1450
+ "generated": null,
1451
+ "identity": null,
1452
+ "name": "scope",
1453
+ "entityType": "columns",
1454
+ "schema": "public",
1455
+ "table": "relay_permission_rules"
1456
+ },
1457
+ {
1458
+ "type": "text",
1459
+ "typeSchema": null,
1460
+ "notNull": true,
1461
+ "dimensions": 0,
1462
+ "default": null,
1463
+ "generated": null,
1464
+ "identity": null,
1465
+ "name": "pattern",
1466
+ "entityType": "columns",
1467
+ "schema": "public",
1468
+ "table": "relay_permission_rules"
1469
+ },
1470
+ {
1471
+ "type": "jsonb",
1472
+ "typeSchema": null,
1473
+ "notNull": true,
1474
+ "dimensions": 0,
1475
+ "default": null,
1476
+ "generated": null,
1477
+ "identity": null,
1478
+ "name": "rule_json",
1479
+ "entityType": "columns",
1480
+ "schema": "public",
1481
+ "table": "relay_permission_rules"
1482
+ },
1483
+ {
1484
+ "type": "timestamp with time zone",
1485
+ "typeSchema": null,
1486
+ "notNull": true,
1487
+ "dimensions": 0,
1488
+ "default": "now()",
1489
+ "generated": null,
1490
+ "identity": null,
1491
+ "name": "created_at",
1492
+ "entityType": "columns",
1493
+ "schema": "public",
1494
+ "table": "relay_permission_rules"
1495
+ },
1496
+ {
1497
+ "type": "text",
1498
+ "typeSchema": null,
1499
+ "notNull": true,
1500
+ "dimensions": 0,
1501
+ "default": null,
1502
+ "generated": null,
1503
+ "identity": null,
1504
+ "name": "id",
1505
+ "entityType": "columns",
1506
+ "schema": "public",
1507
+ "table": "relay_route_attempts"
1508
+ },
1509
+ {
1510
+ "type": "text",
1511
+ "typeSchema": null,
1512
+ "notNull": true,
1513
+ "dimensions": 0,
1514
+ "default": null,
1515
+ "generated": null,
1516
+ "identity": null,
1517
+ "name": "envelope_ready_id",
1518
+ "entityType": "columns",
1519
+ "schema": "public",
1520
+ "table": "relay_route_attempts"
1521
+ },
1522
+ {
1523
+ "type": "text",
1524
+ "typeSchema": null,
1525
+ "notNull": true,
1526
+ "dimensions": 0,
1527
+ "default": null,
1528
+ "generated": null,
1529
+ "identity": null,
1530
+ "name": "route_key",
1531
+ "entityType": "columns",
1532
+ "schema": "public",
1533
+ "table": "relay_route_attempts"
1534
+ },
1535
+ {
1536
+ "type": "text",
1537
+ "typeSchema": null,
1538
+ "notNull": true,
1539
+ "dimensions": 0,
1540
+ "default": null,
1541
+ "generated": null,
1542
+ "identity": null,
1543
+ "name": "state",
1544
+ "entityType": "columns",
1545
+ "schema": "public",
1546
+ "table": "relay_route_attempts"
1547
+ },
1548
+ {
1549
+ "type": "text",
1550
+ "typeSchema": null,
1551
+ "notNull": false,
1552
+ "dimensions": 0,
1553
+ "default": null,
1554
+ "generated": null,
1555
+ "identity": null,
1556
+ "name": "detail",
1557
+ "entityType": "columns",
1558
+ "schema": "public",
1559
+ "table": "relay_route_attempts"
1560
+ },
1561
+ {
1562
+ "type": "timestamp with time zone",
1563
+ "typeSchema": null,
1564
+ "notNull": true,
1565
+ "dimensions": 0,
1566
+ "default": "now()",
1567
+ "generated": null,
1568
+ "identity": null,
1569
+ "name": "created_at",
1570
+ "entityType": "columns",
1571
+ "schema": "public",
1572
+ "table": "relay_route_attempts"
1573
+ },
1574
+ {
1575
+ "type": "text",
1576
+ "typeSchema": null,
1577
+ "notNull": true,
1578
+ "dimensions": 0,
1579
+ "default": null,
1580
+ "generated": null,
1581
+ "identity": null,
1582
+ "name": "id",
1583
+ "entityType": "columns",
1584
+ "schema": "public",
1585
+ "table": "relay_schedules"
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "typeSchema": null,
1590
+ "notNull": true,
1591
+ "dimensions": 0,
1592
+ "default": null,
1593
+ "generated": null,
1594
+ "identity": null,
1595
+ "name": "kind",
1596
+ "entityType": "columns",
1597
+ "schema": "public",
1598
+ "table": "relay_schedules"
1599
+ },
1600
+ {
1601
+ "type": "text",
1602
+ "typeSchema": null,
1603
+ "notNull": true,
1604
+ "dimensions": 0,
1605
+ "default": null,
1606
+ "generated": null,
1607
+ "identity": null,
1608
+ "name": "target_kind",
1609
+ "entityType": "columns",
1610
+ "schema": "public",
1611
+ "table": "relay_schedules"
1612
+ },
1613
+ {
1614
+ "type": "text",
1615
+ "typeSchema": null,
1616
+ "notNull": false,
1617
+ "dimensions": 0,
1618
+ "default": null,
1619
+ "generated": null,
1620
+ "identity": null,
1621
+ "name": "address_id",
1622
+ "entityType": "columns",
1623
+ "schema": "public",
1624
+ "table": "relay_schedules"
1625
+ },
1626
+ {
1627
+ "type": "text",
1628
+ "typeSchema": null,
1629
+ "notNull": false,
1630
+ "dimensions": 0,
1631
+ "default": null,
1632
+ "generated": null,
1633
+ "identity": null,
1634
+ "name": "wait_id",
1635
+ "entityType": "columns",
1636
+ "schema": "public",
1637
+ "table": "relay_schedules"
1638
+ },
1639
+ {
1640
+ "type": "text",
1641
+ "typeSchema": null,
1642
+ "notNull": false,
1643
+ "dimensions": 0,
1644
+ "default": null,
1645
+ "generated": null,
1646
+ "identity": null,
1647
+ "name": "cron_expr",
1648
+ "entityType": "columns",
1649
+ "schema": "public",
1650
+ "table": "relay_schedules"
1651
+ },
1652
+ {
1653
+ "type": "jsonb",
1654
+ "typeSchema": null,
1655
+ "notNull": false,
1656
+ "dimensions": 0,
1657
+ "default": null,
1658
+ "generated": null,
1659
+ "identity": null,
1660
+ "name": "input_json",
1661
+ "entityType": "columns",
1662
+ "schema": "public",
1663
+ "table": "relay_schedules"
1664
+ },
1665
+ {
1666
+ "type": "text",
1667
+ "typeSchema": null,
1668
+ "notNull": true,
1669
+ "dimensions": 0,
1670
+ "default": "'active'",
1671
+ "generated": null,
1672
+ "identity": null,
1673
+ "name": "state",
1674
+ "entityType": "columns",
1675
+ "schema": "public",
1676
+ "table": "relay_schedules"
1677
+ },
1678
+ {
1679
+ "type": "timestamp with time zone",
1680
+ "typeSchema": null,
1681
+ "notNull": true,
1682
+ "dimensions": 0,
1683
+ "default": null,
1684
+ "generated": null,
1685
+ "identity": null,
1686
+ "name": "next_run_at",
1687
+ "entityType": "columns",
1688
+ "schema": "public",
1689
+ "table": "relay_schedules"
1690
+ },
1691
+ {
1692
+ "type": "integer",
1693
+ "typeSchema": null,
1694
+ "notNull": true,
1695
+ "dimensions": 0,
1696
+ "default": "0",
1697
+ "generated": null,
1698
+ "identity": null,
1699
+ "name": "attempt",
1700
+ "entityType": "columns",
1701
+ "schema": "public",
1702
+ "table": "relay_schedules"
1703
+ },
1704
+ {
1705
+ "type": "text",
1706
+ "typeSchema": null,
1707
+ "notNull": false,
1708
+ "dimensions": 0,
1709
+ "default": null,
1710
+ "generated": null,
1711
+ "identity": null,
1712
+ "name": "claim_owner",
1713
+ "entityType": "columns",
1714
+ "schema": "public",
1715
+ "table": "relay_schedules"
1716
+ },
1717
+ {
1718
+ "type": "timestamp with time zone",
1719
+ "typeSchema": null,
1720
+ "notNull": false,
1721
+ "dimensions": 0,
1722
+ "default": null,
1723
+ "generated": null,
1724
+ "identity": null,
1725
+ "name": "claim_expires_at",
1726
+ "entityType": "columns",
1727
+ "schema": "public",
1728
+ "table": "relay_schedules"
1729
+ },
1730
+ {
1731
+ "type": "text",
1732
+ "typeSchema": null,
1733
+ "notNull": false,
1734
+ "dimensions": 0,
1735
+ "default": null,
1736
+ "generated": null,
1737
+ "identity": null,
1738
+ "name": "last_error",
1739
+ "entityType": "columns",
1740
+ "schema": "public",
1741
+ "table": "relay_schedules"
1742
+ },
1743
+ {
1744
+ "type": "text",
1745
+ "typeSchema": null,
1746
+ "notNull": false,
1747
+ "dimensions": 0,
1748
+ "default": null,
1749
+ "generated": null,
1750
+ "identity": null,
1751
+ "name": "idempotency_key",
1752
+ "entityType": "columns",
1753
+ "schema": "public",
1754
+ "table": "relay_schedules"
1755
+ },
1756
+ {
1757
+ "type": "jsonb",
1758
+ "typeSchema": null,
1759
+ "notNull": true,
1760
+ "dimensions": 0,
1761
+ "default": "'{}'",
1762
+ "generated": null,
1763
+ "identity": null,
1764
+ "name": "metadata_json",
1765
+ "entityType": "columns",
1766
+ "schema": "public",
1767
+ "table": "relay_schedules"
1768
+ },
1769
+ {
1770
+ "type": "timestamp with time zone",
1771
+ "typeSchema": null,
1772
+ "notNull": true,
1773
+ "dimensions": 0,
1774
+ "default": "now()",
1775
+ "generated": null,
1776
+ "identity": null,
1777
+ "name": "created_at",
1778
+ "entityType": "columns",
1779
+ "schema": "public",
1780
+ "table": "relay_schedules"
1781
+ },
1782
+ {
1783
+ "type": "timestamp with time zone",
1784
+ "typeSchema": null,
1785
+ "notNull": true,
1786
+ "dimensions": 0,
1787
+ "default": "now()",
1788
+ "generated": null,
1789
+ "identity": null,
1790
+ "name": "updated_at",
1791
+ "entityType": "columns",
1792
+ "schema": "public",
1793
+ "table": "relay_schedules"
1794
+ },
1795
+ {
1796
+ "type": "text",
1797
+ "typeSchema": null,
1798
+ "notNull": true,
1799
+ "dimensions": 0,
1800
+ "default": null,
1801
+ "generated": null,
1802
+ "identity": null,
1803
+ "name": "id",
1804
+ "entityType": "columns",
1805
+ "schema": "public",
1806
+ "table": "relay_session_entries"
1807
+ },
1808
+ {
1809
+ "type": "text",
1810
+ "typeSchema": null,
1811
+ "notNull": true,
1812
+ "dimensions": 0,
1813
+ "default": null,
1814
+ "generated": null,
1815
+ "identity": null,
1816
+ "name": "session_id",
1817
+ "entityType": "columns",
1818
+ "schema": "public",
1819
+ "table": "relay_session_entries"
1820
+ },
1821
+ {
1822
+ "type": "text",
1823
+ "typeSchema": null,
1824
+ "notNull": false,
1825
+ "dimensions": 0,
1826
+ "default": null,
1827
+ "generated": null,
1828
+ "identity": null,
1829
+ "name": "parent_id",
1830
+ "entityType": "columns",
1831
+ "schema": "public",
1832
+ "table": "relay_session_entries"
1833
+ },
1834
+ {
1835
+ "type": "text",
1836
+ "typeSchema": null,
1837
+ "notNull": true,
1838
+ "dimensions": 0,
1839
+ "default": null,
1840
+ "generated": null,
1841
+ "identity": null,
1842
+ "name": "tag",
1843
+ "entityType": "columns",
1844
+ "schema": "public",
1845
+ "table": "relay_session_entries"
1846
+ },
1847
+ {
1848
+ "type": "jsonb",
1849
+ "typeSchema": null,
1850
+ "notNull": true,
1851
+ "dimensions": 0,
1852
+ "default": null,
1853
+ "generated": null,
1854
+ "identity": null,
1855
+ "name": "payload_json",
1856
+ "entityType": "columns",
1857
+ "schema": "public",
1858
+ "table": "relay_session_entries"
1859
+ },
1860
+ {
1861
+ "type": "timestamp with time zone",
1862
+ "typeSchema": null,
1863
+ "notNull": true,
1864
+ "dimensions": 0,
1865
+ "default": "now()",
1866
+ "generated": null,
1867
+ "identity": null,
1868
+ "name": "created_at",
1869
+ "entityType": "columns",
1870
+ "schema": "public",
1871
+ "table": "relay_session_entries"
1872
+ },
1873
+ {
1874
+ "type": "text",
1875
+ "typeSchema": null,
1876
+ "notNull": true,
1877
+ "dimensions": 0,
1878
+ "default": null,
1879
+ "generated": null,
1880
+ "identity": null,
1881
+ "name": "id",
1882
+ "entityType": "columns",
1883
+ "schema": "public",
1884
+ "table": "relay_sessions"
1885
+ },
1886
+ {
1887
+ "type": "text",
1888
+ "typeSchema": null,
1889
+ "notNull": true,
1890
+ "dimensions": 0,
1891
+ "default": null,
1892
+ "generated": null,
1893
+ "identity": null,
1894
+ "name": "root_address_id",
1895
+ "entityType": "columns",
1896
+ "schema": "public",
1897
+ "table": "relay_sessions"
1898
+ },
1899
+ {
1900
+ "type": "text",
1901
+ "typeSchema": null,
1902
+ "notNull": false,
1903
+ "dimensions": 0,
1904
+ "default": null,
1905
+ "generated": null,
1906
+ "identity": null,
1907
+ "name": "leaf_entry_id",
1908
+ "entityType": "columns",
1909
+ "schema": "public",
1910
+ "table": "relay_sessions"
1911
+ },
1912
+ {
1913
+ "type": "jsonb",
1914
+ "typeSchema": null,
1915
+ "notNull": true,
1916
+ "dimensions": 0,
1917
+ "default": "'{}'",
1918
+ "generated": null,
1919
+ "identity": null,
1920
+ "name": "metadata_json",
1921
+ "entityType": "columns",
1922
+ "schema": "public",
1923
+ "table": "relay_sessions"
1924
+ },
1925
+ {
1926
+ "type": "timestamp with time zone",
1927
+ "typeSchema": null,
1928
+ "notNull": true,
1929
+ "dimensions": 0,
1930
+ "default": "now()",
1931
+ "generated": null,
1932
+ "identity": null,
1933
+ "name": "created_at",
1934
+ "entityType": "columns",
1935
+ "schema": "public",
1936
+ "table": "relay_sessions"
1937
+ },
1938
+ {
1939
+ "type": "timestamp with time zone",
1940
+ "typeSchema": null,
1941
+ "notNull": true,
1942
+ "dimensions": 0,
1943
+ "default": "now()",
1944
+ "generated": null,
1945
+ "identity": null,
1946
+ "name": "updated_at",
1947
+ "entityType": "columns",
1948
+ "schema": "public",
1949
+ "table": "relay_sessions"
1950
+ },
1951
+ {
1952
+ "type": "text",
1953
+ "typeSchema": null,
1954
+ "notNull": true,
1955
+ "dimensions": 0,
1956
+ "default": null,
1957
+ "generated": null,
1958
+ "identity": null,
1959
+ "name": "execution_id",
1960
+ "entityType": "columns",
1961
+ "schema": "public",
1962
+ "table": "relay_steering_drains"
1963
+ },
1964
+ {
1965
+ "type": "text",
1966
+ "typeSchema": null,
1967
+ "notNull": true,
1968
+ "dimensions": 0,
1969
+ "default": null,
1970
+ "generated": null,
1971
+ "identity": null,
1972
+ "name": "kind",
1973
+ "entityType": "columns",
1974
+ "schema": "public",
1975
+ "table": "relay_steering_drains"
1976
+ },
1977
+ {
1978
+ "type": "text",
1979
+ "typeSchema": null,
1980
+ "notNull": true,
1981
+ "dimensions": 0,
1982
+ "default": null,
1983
+ "generated": null,
1984
+ "identity": null,
1985
+ "name": "drain_id",
1986
+ "entityType": "columns",
1987
+ "schema": "public",
1988
+ "table": "relay_steering_drains"
1989
+ },
1990
+ {
1991
+ "type": "jsonb",
1992
+ "typeSchema": null,
1993
+ "notNull": true,
1994
+ "dimensions": 0,
1995
+ "default": "'[]'",
1996
+ "generated": null,
1997
+ "identity": null,
1998
+ "name": "message_sequences_json",
1999
+ "entityType": "columns",
2000
+ "schema": "public",
2001
+ "table": "relay_steering_drains"
2002
+ },
2003
+ {
2004
+ "type": "timestamp with time zone",
2005
+ "typeSchema": null,
2006
+ "notNull": true,
2007
+ "dimensions": 0,
2008
+ "default": "now()",
2009
+ "generated": null,
2010
+ "identity": null,
2011
+ "name": "created_at",
2012
+ "entityType": "columns",
2013
+ "schema": "public",
2014
+ "table": "relay_steering_drains"
2015
+ },
2016
+ {
2017
+ "type": "text",
2018
+ "typeSchema": null,
2019
+ "notNull": true,
2020
+ "dimensions": 0,
2021
+ "default": null,
2022
+ "generated": null,
2023
+ "identity": null,
2024
+ "name": "execution_id",
2025
+ "entityType": "columns",
2026
+ "schema": "public",
2027
+ "table": "relay_steering_messages"
2028
+ },
2029
+ {
2030
+ "type": "text",
2031
+ "typeSchema": null,
2032
+ "notNull": true,
2033
+ "dimensions": 0,
2034
+ "default": null,
2035
+ "generated": null,
2036
+ "identity": null,
2037
+ "name": "kind",
2038
+ "entityType": "columns",
2039
+ "schema": "public",
2040
+ "table": "relay_steering_messages"
2041
+ },
2042
+ {
2043
+ "type": "integer",
2044
+ "typeSchema": null,
2045
+ "notNull": true,
2046
+ "dimensions": 0,
2047
+ "default": null,
2048
+ "generated": null,
2049
+ "identity": null,
2050
+ "name": "sequence",
2051
+ "entityType": "columns",
2052
+ "schema": "public",
2053
+ "table": "relay_steering_messages"
2054
+ },
2055
+ {
2056
+ "type": "jsonb",
2057
+ "typeSchema": null,
2058
+ "notNull": true,
2059
+ "dimensions": 0,
2060
+ "default": null,
2061
+ "generated": null,
2062
+ "identity": null,
2063
+ "name": "content_json",
2064
+ "entityType": "columns",
2065
+ "schema": "public",
2066
+ "table": "relay_steering_messages"
2067
+ },
2068
+ {
2069
+ "type": "text",
2070
+ "typeSchema": null,
2071
+ "notNull": false,
2072
+ "dimensions": 0,
2073
+ "default": null,
2074
+ "generated": null,
2075
+ "identity": null,
2076
+ "name": "drain_id",
2077
+ "entityType": "columns",
2078
+ "schema": "public",
2079
+ "table": "relay_steering_messages"
2080
+ },
2081
+ {
2082
+ "type": "timestamp with time zone",
2083
+ "typeSchema": null,
2084
+ "notNull": false,
2085
+ "dimensions": 0,
2086
+ "default": null,
2087
+ "generated": null,
2088
+ "identity": null,
2089
+ "name": "consumed_at",
2090
+ "entityType": "columns",
2091
+ "schema": "public",
2092
+ "table": "relay_steering_messages"
2093
+ },
2094
+ {
2095
+ "type": "timestamp with time zone",
2096
+ "typeSchema": null,
2097
+ "notNull": true,
2098
+ "dimensions": 0,
2099
+ "default": "now()",
2100
+ "generated": null,
2101
+ "identity": null,
2102
+ "name": "created_at",
2103
+ "entityType": "columns",
2104
+ "schema": "public",
2105
+ "table": "relay_steering_messages"
2106
+ },
2107
+ {
2108
+ "type": "text",
2109
+ "typeSchema": null,
2110
+ "notNull": true,
2111
+ "dimensions": 0,
2112
+ "default": null,
2113
+ "generated": null,
2114
+ "identity": null,
2115
+ "name": "id",
2116
+ "entityType": "columns",
2117
+ "schema": "public",
2118
+ "table": "relay_tool_calls"
2119
+ },
2120
+ {
2121
+ "type": "text",
2122
+ "typeSchema": null,
2123
+ "notNull": true,
2124
+ "dimensions": 0,
2125
+ "default": null,
2126
+ "generated": null,
2127
+ "identity": null,
2128
+ "name": "execution_id",
2129
+ "entityType": "columns",
2130
+ "schema": "public",
2131
+ "table": "relay_tool_calls"
2132
+ },
2133
+ {
2134
+ "type": "text",
2135
+ "typeSchema": null,
2136
+ "notNull": true,
2137
+ "dimensions": 0,
2138
+ "default": null,
2139
+ "generated": null,
2140
+ "identity": null,
2141
+ "name": "name",
2142
+ "entityType": "columns",
2143
+ "schema": "public",
2144
+ "table": "relay_tool_calls"
2145
+ },
2146
+ {
2147
+ "type": "jsonb",
2148
+ "typeSchema": null,
2149
+ "notNull": true,
2150
+ "dimensions": 0,
2151
+ "default": null,
2152
+ "generated": null,
2153
+ "identity": null,
2154
+ "name": "input_json",
2155
+ "entityType": "columns",
2156
+ "schema": "public",
2157
+ "table": "relay_tool_calls"
2158
+ },
2159
+ {
2160
+ "type": "jsonb",
2161
+ "typeSchema": null,
2162
+ "notNull": true,
2163
+ "dimensions": 0,
2164
+ "default": "'{}'",
2165
+ "generated": null,
2166
+ "identity": null,
2167
+ "name": "metadata_json",
2168
+ "entityType": "columns",
2169
+ "schema": "public",
2170
+ "table": "relay_tool_calls"
2171
+ },
2172
+ {
2173
+ "type": "timestamp with time zone",
2174
+ "typeSchema": null,
2175
+ "notNull": true,
2176
+ "dimensions": 0,
2177
+ "default": "now()",
2178
+ "generated": null,
2179
+ "identity": null,
2180
+ "name": "created_at",
2181
+ "entityType": "columns",
2182
+ "schema": "public",
2183
+ "table": "relay_tool_calls"
2184
+ },
2185
+ {
2186
+ "type": "text",
2187
+ "typeSchema": null,
2188
+ "notNull": true,
2189
+ "dimensions": 0,
2190
+ "default": null,
2191
+ "generated": null,
2192
+ "identity": null,
2193
+ "name": "tool_call_id",
2194
+ "entityType": "columns",
2195
+ "schema": "public",
2196
+ "table": "relay_tool_results"
2197
+ },
2198
+ {
2199
+ "type": "jsonb",
2200
+ "typeSchema": null,
2201
+ "notNull": true,
2202
+ "dimensions": 0,
2203
+ "default": null,
2204
+ "generated": null,
2205
+ "identity": null,
2206
+ "name": "output_json",
2207
+ "entityType": "columns",
2208
+ "schema": "public",
2209
+ "table": "relay_tool_results"
2210
+ },
2211
+ {
2212
+ "type": "text",
2213
+ "typeSchema": null,
2214
+ "notNull": false,
2215
+ "dimensions": 0,
2216
+ "default": null,
2217
+ "generated": null,
2218
+ "identity": null,
2219
+ "name": "error",
2220
+ "entityType": "columns",
2221
+ "schema": "public",
2222
+ "table": "relay_tool_results"
2223
+ },
2224
+ {
2225
+ "type": "jsonb",
2226
+ "typeSchema": null,
2227
+ "notNull": true,
2228
+ "dimensions": 0,
2229
+ "default": "'{}'",
2230
+ "generated": null,
2231
+ "identity": null,
2232
+ "name": "metadata_json",
2233
+ "entityType": "columns",
2234
+ "schema": "public",
2235
+ "table": "relay_tool_results"
2236
+ },
2237
+ {
2238
+ "type": "timestamp with time zone",
2239
+ "typeSchema": null,
2240
+ "notNull": true,
2241
+ "dimensions": 0,
2242
+ "default": "now()",
2243
+ "generated": null,
2244
+ "identity": null,
2245
+ "name": "created_at",
2246
+ "entityType": "columns",
2247
+ "schema": "public",
2248
+ "table": "relay_tool_results"
2249
+ },
2250
+ {
2251
+ "type": "text",
2252
+ "typeSchema": null,
2253
+ "notNull": true,
2254
+ "dimensions": 0,
2255
+ "default": null,
2256
+ "generated": null,
2257
+ "identity": null,
2258
+ "name": "id",
2259
+ "entityType": "columns",
2260
+ "schema": "public",
2261
+ "table": "relay_waits"
2262
+ },
2263
+ {
2264
+ "type": "text",
2265
+ "typeSchema": null,
2266
+ "notNull": true,
2267
+ "dimensions": 0,
2268
+ "default": null,
2269
+ "generated": null,
2270
+ "identity": null,
2271
+ "name": "execution_id",
2272
+ "entityType": "columns",
2273
+ "schema": "public",
2274
+ "table": "relay_waits"
2275
+ },
2276
+ {
2277
+ "type": "text",
2278
+ "typeSchema": null,
2279
+ "notNull": false,
2280
+ "dimensions": 0,
2281
+ "default": null,
2282
+ "generated": null,
2283
+ "identity": null,
2284
+ "name": "envelope_id",
2285
+ "entityType": "columns",
2286
+ "schema": "public",
2287
+ "table": "relay_waits"
2288
+ },
2289
+ {
2290
+ "type": "text",
2291
+ "typeSchema": null,
2292
+ "notNull": true,
2293
+ "dimensions": 0,
2294
+ "default": null,
2295
+ "generated": null,
2296
+ "identity": null,
2297
+ "name": "mode",
2298
+ "entityType": "columns",
2299
+ "schema": "public",
2300
+ "table": "relay_waits"
2301
+ },
2302
+ {
2303
+ "type": "text",
2304
+ "typeSchema": null,
2305
+ "notNull": false,
2306
+ "dimensions": 0,
2307
+ "default": null,
2308
+ "generated": null,
2309
+ "identity": null,
2310
+ "name": "correlation_key",
2311
+ "entityType": "columns",
2312
+ "schema": "public",
2313
+ "table": "relay_waits"
2314
+ },
2315
+ {
2316
+ "type": "text",
2317
+ "typeSchema": null,
2318
+ "notNull": true,
2319
+ "dimensions": 0,
2320
+ "default": "'open'",
2321
+ "generated": null,
2322
+ "identity": null,
2323
+ "name": "state",
2324
+ "entityType": "columns",
2325
+ "schema": "public",
2326
+ "table": "relay_waits"
2327
+ },
2328
+ {
2329
+ "type": "jsonb",
2330
+ "typeSchema": null,
2331
+ "notNull": true,
2332
+ "dimensions": 0,
2333
+ "default": "'{}'",
2334
+ "generated": null,
2335
+ "identity": null,
2336
+ "name": "metadata_json",
2337
+ "entityType": "columns",
2338
+ "schema": "public",
2339
+ "table": "relay_waits"
2340
+ },
2341
+ {
2342
+ "type": "timestamp with time zone",
2343
+ "typeSchema": null,
2344
+ "notNull": true,
2345
+ "dimensions": 0,
2346
+ "default": "now()",
2347
+ "generated": null,
2348
+ "identity": null,
2349
+ "name": "created_at",
2350
+ "entityType": "columns",
2351
+ "schema": "public",
2352
+ "table": "relay_waits"
2353
+ },
2354
+ {
2355
+ "type": "timestamp with time zone",
2356
+ "typeSchema": null,
2357
+ "notNull": false,
2358
+ "dimensions": 0,
2359
+ "default": null,
2360
+ "generated": null,
2361
+ "identity": null,
2362
+ "name": "resolved_at",
2363
+ "entityType": "columns",
2364
+ "schema": "public",
2365
+ "table": "relay_waits"
2366
+ },
2367
+ {
2368
+ "type": "text",
2369
+ "typeSchema": null,
2370
+ "notNull": true,
2371
+ "dimensions": 0,
2372
+ "default": null,
2373
+ "generated": null,
2374
+ "identity": null,
2375
+ "name": "id",
2376
+ "entityType": "columns",
2377
+ "schema": "public",
2378
+ "table": "relay_workspace_leases"
2379
+ },
2380
+ {
2381
+ "type": "text",
2382
+ "typeSchema": null,
2383
+ "notNull": true,
2384
+ "dimensions": 0,
2385
+ "default": null,
2386
+ "generated": null,
2387
+ "identity": null,
2388
+ "name": "execution_id",
2389
+ "entityType": "columns",
2390
+ "schema": "public",
2391
+ "table": "relay_workspace_leases"
2392
+ },
2393
+ {
2394
+ "type": "text",
2395
+ "typeSchema": null,
2396
+ "notNull": true,
2397
+ "dimensions": 0,
2398
+ "default": null,
2399
+ "generated": null,
2400
+ "identity": null,
2401
+ "name": "provider_key",
2402
+ "entityType": "columns",
2403
+ "schema": "public",
2404
+ "table": "relay_workspace_leases"
2405
+ },
2406
+ {
2407
+ "type": "text",
2408
+ "typeSchema": null,
2409
+ "notNull": false,
2410
+ "dimensions": 0,
2411
+ "default": null,
2412
+ "generated": null,
2413
+ "identity": null,
2414
+ "name": "sandbox_ref",
2415
+ "entityType": "columns",
2416
+ "schema": "public",
2417
+ "table": "relay_workspace_leases"
2418
+ },
2419
+ {
2420
+ "type": "text",
2421
+ "typeSchema": null,
2422
+ "notNull": false,
2423
+ "dimensions": 0,
2424
+ "default": null,
2425
+ "generated": null,
2426
+ "identity": null,
2427
+ "name": "latest_snapshot_ref",
2428
+ "entityType": "columns",
2429
+ "schema": "public",
2430
+ "table": "relay_workspace_leases"
2431
+ },
2432
+ {
2433
+ "type": "text",
2434
+ "typeSchema": null,
2435
+ "notNull": true,
2436
+ "dimensions": 0,
2437
+ "default": null,
2438
+ "generated": null,
2439
+ "identity": null,
2440
+ "name": "status",
2441
+ "entityType": "columns",
2442
+ "schema": "public",
2443
+ "table": "relay_workspace_leases"
2444
+ },
2445
+ {
2446
+ "type": "text",
2447
+ "typeSchema": null,
2448
+ "notNull": true,
2449
+ "dimensions": 0,
2450
+ "default": null,
2451
+ "generated": null,
2452
+ "identity": null,
2453
+ "name": "resume_strategy",
2454
+ "entityType": "columns",
2455
+ "schema": "public",
2456
+ "table": "relay_workspace_leases"
2457
+ },
2458
+ {
2459
+ "type": "text",
2460
+ "typeSchema": null,
2461
+ "notNull": false,
2462
+ "dimensions": 0,
2463
+ "default": null,
2464
+ "generated": null,
2465
+ "identity": null,
2466
+ "name": "region",
2467
+ "entityType": "columns",
2468
+ "schema": "public",
2469
+ "table": "relay_workspace_leases"
2470
+ },
2471
+ {
2472
+ "type": "jsonb",
2473
+ "typeSchema": null,
2474
+ "notNull": false,
2475
+ "dimensions": 0,
2476
+ "default": null,
2477
+ "generated": null,
2478
+ "identity": null,
2479
+ "name": "request_json",
2480
+ "entityType": "columns",
2481
+ "schema": "public",
2482
+ "table": "relay_workspace_leases"
2483
+ },
2484
+ {
2485
+ "type": "jsonb",
2486
+ "typeSchema": null,
2487
+ "notNull": true,
2488
+ "dimensions": 0,
2489
+ "default": "'{}'",
2490
+ "generated": null,
2491
+ "identity": null,
2492
+ "name": "metadata_json",
2493
+ "entityType": "columns",
2494
+ "schema": "public",
2495
+ "table": "relay_workspace_leases"
2496
+ },
2497
+ {
2498
+ "type": "timestamp with time zone",
2499
+ "typeSchema": null,
2500
+ "notNull": true,
2501
+ "dimensions": 0,
2502
+ "default": "now()",
2503
+ "generated": null,
2504
+ "identity": null,
2505
+ "name": "created_at",
2506
+ "entityType": "columns",
2507
+ "schema": "public",
2508
+ "table": "relay_workspace_leases"
2509
+ },
2510
+ {
2511
+ "type": "timestamp with time zone",
2512
+ "typeSchema": null,
2513
+ "notNull": true,
2514
+ "dimensions": 0,
2515
+ "default": "now()",
2516
+ "generated": null,
2517
+ "identity": null,
2518
+ "name": "updated_at",
2519
+ "entityType": "columns",
2520
+ "schema": "public",
2521
+ "table": "relay_workspace_leases"
2522
+ },
2523
+ {
2524
+ "type": "text",
2525
+ "typeSchema": null,
2526
+ "notNull": true,
2527
+ "dimensions": 0,
2528
+ "default": null,
2529
+ "generated": null,
2530
+ "identity": null,
2531
+ "name": "id",
2532
+ "entityType": "columns",
2533
+ "schema": "public",
2534
+ "table": "relay_workspace_snapshots"
2535
+ },
2536
+ {
2537
+ "type": "text",
2538
+ "typeSchema": null,
2539
+ "notNull": true,
2540
+ "dimensions": 0,
2541
+ "default": null,
2542
+ "generated": null,
2543
+ "identity": null,
2544
+ "name": "lease_id",
2545
+ "entityType": "columns",
2546
+ "schema": "public",
2547
+ "table": "relay_workspace_snapshots"
2548
+ },
2549
+ {
2550
+ "type": "text",
2551
+ "typeSchema": null,
2552
+ "notNull": true,
2553
+ "dimensions": 0,
2554
+ "default": null,
2555
+ "generated": null,
2556
+ "identity": null,
2557
+ "name": "execution_id",
2558
+ "entityType": "columns",
2559
+ "schema": "public",
2560
+ "table": "relay_workspace_snapshots"
2561
+ },
2562
+ {
2563
+ "type": "text",
2564
+ "typeSchema": null,
2565
+ "notNull": true,
2566
+ "dimensions": 0,
2567
+ "default": null,
2568
+ "generated": null,
2569
+ "identity": null,
2570
+ "name": "reason",
2571
+ "entityType": "columns",
2572
+ "schema": "public",
2573
+ "table": "relay_workspace_snapshots"
2574
+ },
2575
+ {
2576
+ "type": "text",
2577
+ "typeSchema": null,
2578
+ "notNull": true,
2579
+ "dimensions": 0,
2580
+ "default": null,
2581
+ "generated": null,
2582
+ "identity": null,
2583
+ "name": "snapshot_ref",
2584
+ "entityType": "columns",
2585
+ "schema": "public",
2586
+ "table": "relay_workspace_snapshots"
2587
+ },
2588
+ {
2589
+ "type": "jsonb",
2590
+ "typeSchema": null,
2591
+ "notNull": true,
2592
+ "dimensions": 0,
2593
+ "default": "'{}'",
2594
+ "generated": null,
2595
+ "identity": null,
2596
+ "name": "metadata_json",
2597
+ "entityType": "columns",
2598
+ "schema": "public",
2599
+ "table": "relay_workspace_snapshots"
2600
+ },
2601
+ {
2602
+ "type": "timestamp with time zone",
2603
+ "typeSchema": null,
2604
+ "notNull": true,
2605
+ "dimensions": 0,
2606
+ "default": "now()",
2607
+ "generated": null,
2608
+ "identity": null,
2609
+ "name": "created_at",
2610
+ "entityType": "columns",
2611
+ "schema": "public",
2612
+ "table": "relay_workspace_snapshots"
2613
+ },
2614
+ {
2615
+ "nameExplicit": true,
2616
+ "columns": [
2617
+ {
2618
+ "value": "address_id",
2619
+ "isExpression": false,
2620
+ "asc": true,
2621
+ "nullsFirst": false,
2622
+ "opclass": null
2623
+ }
2624
+ ],
2625
+ "isUnique": true,
2626
+ "where": null,
2627
+ "with": "",
2628
+ "method": "btree",
2629
+ "concurrently": false,
2630
+ "name": "uq_relay_address_book_address",
2631
+ "entityType": "indexes",
2632
+ "schema": "public",
2633
+ "table": "relay_address_book_entries"
2634
+ },
2635
+ {
2636
+ "nameExplicit": true,
2637
+ "columns": [
2638
+ {
2639
+ "value": "execution_id",
2640
+ "isExpression": false,
2641
+ "asc": true,
2642
+ "nullsFirst": false,
2643
+ "opclass": null
2644
+ },
2645
+ {
2646
+ "value": "turn",
2647
+ "isExpression": false,
2648
+ "asc": true,
2649
+ "nullsFirst": false,
2650
+ "opclass": null
2651
+ }
2652
+ ],
2653
+ "isUnique": false,
2654
+ "where": null,
2655
+ "with": "",
2656
+ "method": "btree",
2657
+ "concurrently": false,
2658
+ "name": "idx_relay_agent_compactions_execution_turn",
2659
+ "entityType": "indexes",
2660
+ "schema": "public",
2661
+ "table": "relay_agent_compactions"
2662
+ },
2663
+ {
2664
+ "nameExplicit": true,
2665
+ "columns": [
2666
+ {
2667
+ "value": "agent_definition_id",
2668
+ "isExpression": false,
2669
+ "asc": true,
2670
+ "nullsFirst": false,
2671
+ "opclass": null
2672
+ },
2673
+ {
2674
+ "value": "revision",
2675
+ "isExpression": false,
2676
+ "asc": true,
2677
+ "nullsFirst": false,
2678
+ "opclass": null
2679
+ }
2680
+ ],
2681
+ "isUnique": false,
2682
+ "where": null,
2683
+ "with": "",
2684
+ "method": "btree",
2685
+ "concurrently": false,
2686
+ "name": "idx_relay_agent_definition_revisions_definition",
2687
+ "entityType": "indexes",
2688
+ "schema": "public",
2689
+ "table": "relay_agent_definition_revisions"
2690
+ },
2691
+ {
2692
+ "nameExplicit": true,
2693
+ "columns": [
2694
+ {
2695
+ "value": "name",
2696
+ "isExpression": false,
2697
+ "asc": true,
2698
+ "nullsFirst": false,
2699
+ "opclass": null
2700
+ }
2701
+ ],
2702
+ "isUnique": false,
2703
+ "where": null,
2704
+ "with": "",
2705
+ "method": "btree",
2706
+ "concurrently": false,
2707
+ "name": "idx_relay_agent_definitions_name",
2708
+ "entityType": "indexes",
2709
+ "schema": "public",
2710
+ "table": "relay_agent_definitions"
2711
+ },
2712
+ {
2713
+ "nameExplicit": true,
2714
+ "columns": [
2715
+ {
2716
+ "value": "execution_id",
2717
+ "isExpression": false,
2718
+ "asc": true,
2719
+ "nullsFirst": false,
2720
+ "opclass": null
2721
+ }
2722
+ ],
2723
+ "isUnique": false,
2724
+ "where": null,
2725
+ "with": "",
2726
+ "method": "btree",
2727
+ "concurrently": false,
2728
+ "name": "idx_relay_child_executions_parent",
2729
+ "entityType": "indexes",
2730
+ "schema": "public",
2731
+ "table": "relay_child_executions"
2732
+ },
2733
+ {
2734
+ "nameExplicit": true,
2735
+ "columns": [
2736
+ {
2737
+ "value": "state",
2738
+ "isExpression": false,
2739
+ "asc": true,
2740
+ "nullsFirst": false,
2741
+ "opclass": null
2742
+ },
2743
+ {
2744
+ "value": "available_at",
2745
+ "isExpression": false,
2746
+ "asc": true,
2747
+ "nullsFirst": false,
2748
+ "opclass": null
2749
+ }
2750
+ ],
2751
+ "isUnique": false,
2752
+ "where": null,
2753
+ "with": "",
2754
+ "method": "btree",
2755
+ "concurrently": false,
2756
+ "name": "idx_relay_envelope_ready_state_available",
2757
+ "entityType": "indexes",
2758
+ "schema": "public",
2759
+ "table": "relay_envelope_ready"
2760
+ },
2761
+ {
2762
+ "nameExplicit": true,
2763
+ "columns": [
2764
+ {
2765
+ "value": "claim_expires_at",
2766
+ "isExpression": false,
2767
+ "asc": true,
2768
+ "nullsFirst": false,
2769
+ "opclass": null
2770
+ }
2771
+ ],
2772
+ "isUnique": false,
2773
+ "where": null,
2774
+ "with": "",
2775
+ "method": "btree",
2776
+ "concurrently": false,
2777
+ "name": "idx_relay_envelope_ready_claim_expires",
2778
+ "entityType": "indexes",
2779
+ "schema": "public",
2780
+ "table": "relay_envelope_ready"
2781
+ },
2782
+ {
2783
+ "nameExplicit": true,
2784
+ "columns": [
2785
+ {
2786
+ "value": "idempotency_key",
2787
+ "isExpression": false,
2788
+ "asc": true,
2789
+ "nullsFirst": false,
2790
+ "opclass": null
2791
+ }
2792
+ ],
2793
+ "isUnique": true,
2794
+ "where": null,
2795
+ "with": "",
2796
+ "method": "btree",
2797
+ "concurrently": false,
2798
+ "name": "uq_relay_envelope_ready_idempotency",
2799
+ "entityType": "indexes",
2800
+ "schema": "public",
2801
+ "table": "relay_envelope_ready"
2802
+ },
2803
+ {
2804
+ "nameExplicit": true,
2805
+ "columns": [
2806
+ {
2807
+ "value": "execution_id",
2808
+ "isExpression": false,
2809
+ "asc": true,
2810
+ "nullsFirst": false,
2811
+ "opclass": null
2812
+ },
2813
+ {
2814
+ "value": "created_at",
2815
+ "isExpression": false,
2816
+ "asc": true,
2817
+ "nullsFirst": false,
2818
+ "opclass": null
2819
+ }
2820
+ ],
2821
+ "isUnique": false,
2822
+ "where": null,
2823
+ "with": "",
2824
+ "method": "btree",
2825
+ "concurrently": false,
2826
+ "name": "idx_relay_envelopes_execution",
2827
+ "entityType": "indexes",
2828
+ "schema": "public",
2829
+ "table": "relay_envelopes"
2830
+ },
2831
+ {
2832
+ "nameExplicit": true,
2833
+ "columns": [
2834
+ {
2835
+ "value": "to_address_id",
2836
+ "isExpression": false,
2837
+ "asc": true,
2838
+ "nullsFirst": false,
2839
+ "opclass": null
2840
+ },
2841
+ {
2842
+ "value": "created_at",
2843
+ "isExpression": false,
2844
+ "asc": true,
2845
+ "nullsFirst": false,
2846
+ "opclass": null
2847
+ }
2848
+ ],
2849
+ "isUnique": false,
2850
+ "where": null,
2851
+ "with": "",
2852
+ "method": "btree",
2853
+ "concurrently": false,
2854
+ "name": "idx_relay_envelopes_to_address",
2855
+ "entityType": "indexes",
2856
+ "schema": "public",
2857
+ "table": "relay_envelopes"
2858
+ },
2859
+ {
2860
+ "nameExplicit": true,
2861
+ "columns": [
2862
+ {
2863
+ "value": "execution_id",
2864
+ "isExpression": false,
2865
+ "asc": true,
2866
+ "nullsFirst": false,
2867
+ "opclass": null
2868
+ },
2869
+ {
2870
+ "value": "created_at",
2871
+ "isExpression": false,
2872
+ "asc": true,
2873
+ "nullsFirst": false,
2874
+ "opclass": null
2875
+ }
2876
+ ],
2877
+ "isUnique": false,
2878
+ "where": null,
2879
+ "with": "",
2880
+ "method": "btree",
2881
+ "concurrently": false,
2882
+ "name": "idx_relay_execution_events_execution",
2883
+ "entityType": "indexes",
2884
+ "schema": "public",
2885
+ "table": "relay_execution_events"
2886
+ },
2887
+ {
2888
+ "nameExplicit": true,
2889
+ "columns": [
2890
+ {
2891
+ "value": "execution_id",
2892
+ "isExpression": false,
2893
+ "asc": true,
2894
+ "nullsFirst": false,
2895
+ "opclass": null
2896
+ },
2897
+ {
2898
+ "value": "sequence",
2899
+ "isExpression": false,
2900
+ "asc": true,
2901
+ "nullsFirst": false,
2902
+ "opclass": null
2903
+ }
2904
+ ],
2905
+ "isUnique": true,
2906
+ "where": null,
2907
+ "with": "",
2908
+ "method": "btree",
2909
+ "concurrently": false,
2910
+ "name": "uq_relay_execution_events_sequence",
2911
+ "entityType": "indexes",
2912
+ "schema": "public",
2913
+ "table": "relay_execution_events"
2914
+ },
2915
+ {
2916
+ "nameExplicit": true,
2917
+ "columns": [
2918
+ {
2919
+ "value": "cursor",
2920
+ "isExpression": false,
2921
+ "asc": true,
2922
+ "nullsFirst": false,
2923
+ "opclass": null
2924
+ }
2925
+ ],
2926
+ "isUnique": true,
2927
+ "where": null,
2928
+ "with": "",
2929
+ "method": "btree",
2930
+ "concurrently": false,
2931
+ "name": "uq_relay_execution_events_cursor",
2932
+ "entityType": "indexes",
2933
+ "schema": "public",
2934
+ "table": "relay_execution_events"
2935
+ },
2936
+ {
2937
+ "nameExplicit": true,
2938
+ "columns": [
2939
+ {
2940
+ "value": "root_address_id",
2941
+ "isExpression": false,
2942
+ "asc": true,
2943
+ "nullsFirst": false,
2944
+ "opclass": null
2945
+ },
2946
+ {
2947
+ "value": "status",
2948
+ "isExpression": false,
2949
+ "asc": true,
2950
+ "nullsFirst": false,
2951
+ "opclass": null
2952
+ }
2953
+ ],
2954
+ "isUnique": false,
2955
+ "where": null,
2956
+ "with": "",
2957
+ "method": "btree",
2958
+ "concurrently": false,
2959
+ "name": "idx_relay_executions_root_status",
2960
+ "entityType": "indexes",
2961
+ "schema": "public",
2962
+ "table": "relay_executions"
2963
+ },
2964
+ {
2965
+ "nameExplicit": true,
2966
+ "columns": [
2967
+ {
2968
+ "value": "session_id",
2969
+ "isExpression": false,
2970
+ "asc": true,
2971
+ "nullsFirst": false,
2972
+ "opclass": null
2973
+ },
2974
+ {
2975
+ "value": "updated_at",
2976
+ "isExpression": false,
2977
+ "asc": true,
2978
+ "nullsFirst": false,
2979
+ "opclass": null
2980
+ },
2981
+ {
2982
+ "value": "id",
2983
+ "isExpression": false,
2984
+ "asc": true,
2985
+ "nullsFirst": false,
2986
+ "opclass": null
2987
+ }
2988
+ ],
2989
+ "isUnique": false,
2990
+ "where": null,
2991
+ "with": "",
2992
+ "method": "btree",
2993
+ "concurrently": false,
2994
+ "name": "idx_relay_executions_session_updated_id",
2995
+ "entityType": "indexes",
2996
+ "schema": "public",
2997
+ "table": "relay_executions"
2998
+ },
2999
+ {
3000
+ "nameExplicit": true,
3001
+ "columns": [
3002
+ {
3003
+ "value": "updated_at",
3004
+ "isExpression": false,
3005
+ "asc": true,
3006
+ "nullsFirst": false,
3007
+ "opclass": null
3008
+ },
3009
+ {
3010
+ "value": "id",
3011
+ "isExpression": false,
3012
+ "asc": true,
3013
+ "nullsFirst": false,
3014
+ "opclass": null
3015
+ }
3016
+ ],
3017
+ "isUnique": false,
3018
+ "where": null,
3019
+ "with": "",
3020
+ "method": "btree",
3021
+ "concurrently": false,
3022
+ "name": "idx_relay_executions_updated_id",
3023
+ "entityType": "indexes",
3024
+ "schema": "public",
3025
+ "table": "relay_executions"
3026
+ },
3027
+ {
3028
+ "nameExplicit": true,
3029
+ "columns": [
3030
+ {
3031
+ "value": "root_address_id",
3032
+ "isExpression": false,
3033
+ "asc": true,
3034
+ "nullsFirst": false,
3035
+ "opclass": null
3036
+ },
3037
+ {
3038
+ "value": "status",
3039
+ "isExpression": false,
3040
+ "asc": true,
3041
+ "nullsFirst": false,
3042
+ "opclass": null
3043
+ },
3044
+ {
3045
+ "value": "updated_at",
3046
+ "isExpression": false,
3047
+ "asc": true,
3048
+ "nullsFirst": false,
3049
+ "opclass": null
3050
+ },
3051
+ {
3052
+ "value": "id",
3053
+ "isExpression": false,
3054
+ "asc": true,
3055
+ "nullsFirst": false,
3056
+ "opclass": null
3057
+ }
3058
+ ],
3059
+ "isUnique": false,
3060
+ "where": null,
3061
+ "with": "",
3062
+ "method": "btree",
3063
+ "concurrently": false,
3064
+ "name": "idx_relay_executions_root_status_updated_id",
3065
+ "entityType": "indexes",
3066
+ "schema": "public",
3067
+ "table": "relay_executions"
3068
+ },
3069
+ {
3070
+ "nameExplicit": true,
3071
+ "columns": [
3072
+ {
3073
+ "value": "scope",
3074
+ "isExpression": false,
3075
+ "asc": true,
3076
+ "nullsFirst": false,
3077
+ "opclass": null
3078
+ },
3079
+ {
3080
+ "value": "operation",
3081
+ "isExpression": false,
3082
+ "asc": true,
3083
+ "nullsFirst": false,
3084
+ "opclass": null
3085
+ },
3086
+ {
3087
+ "value": "key",
3088
+ "isExpression": false,
3089
+ "asc": true,
3090
+ "nullsFirst": false,
3091
+ "opclass": null
3092
+ }
3093
+ ],
3094
+ "isUnique": true,
3095
+ "where": null,
3096
+ "with": "",
3097
+ "method": "btree",
3098
+ "concurrently": false,
3099
+ "name": "uq_relay_idempotency_scope_operation_key",
3100
+ "entityType": "indexes",
3101
+ "schema": "public",
3102
+ "table": "relay_idempotency_keys"
3103
+ },
3104
+ {
3105
+ "nameExplicit": true,
3106
+ "columns": [
3107
+ {
3108
+ "value": "agent",
3109
+ "isExpression": false,
3110
+ "asc": true,
3111
+ "nullsFirst": false,
3112
+ "opclass": null
3113
+ },
3114
+ {
3115
+ "value": "subject",
3116
+ "isExpression": false,
3117
+ "asc": true,
3118
+ "nullsFirst": false,
3119
+ "opclass": null
3120
+ }
3121
+ ],
3122
+ "isUnique": false,
3123
+ "where": null,
3124
+ "with": "",
3125
+ "method": "btree",
3126
+ "concurrently": false,
3127
+ "name": "idx_relay_memory_records_agent_subject",
3128
+ "entityType": "indexes",
3129
+ "schema": "public",
3130
+ "table": "relay_memory_records"
3131
+ },
3132
+ {
3133
+ "nameExplicit": true,
3134
+ "columns": [
3135
+ {
3136
+ "value": "agent",
3137
+ "isExpression": false,
3138
+ "asc": true,
3139
+ "nullsFirst": false,
3140
+ "opclass": null
3141
+ },
3142
+ {
3143
+ "value": "scope",
3144
+ "isExpression": false,
3145
+ "asc": true,
3146
+ "nullsFirst": false,
3147
+ "opclass": null
3148
+ }
3149
+ ],
3150
+ "isUnique": false,
3151
+ "where": null,
3152
+ "with": "",
3153
+ "method": "btree",
3154
+ "concurrently": false,
3155
+ "name": "idx_relay_permission_rules_agent_scope",
3156
+ "entityType": "indexes",
3157
+ "schema": "public",
3158
+ "table": "relay_permission_rules"
3159
+ },
3160
+ {
3161
+ "nameExplicit": true,
3162
+ "columns": [
3163
+ {
3164
+ "value": "envelope_ready_id",
3165
+ "isExpression": false,
3166
+ "asc": true,
3167
+ "nullsFirst": false,
3168
+ "opclass": null
3169
+ },
3170
+ {
3171
+ "value": "created_at",
3172
+ "isExpression": false,
3173
+ "asc": true,
3174
+ "nullsFirst": false,
3175
+ "opclass": null
3176
+ }
3177
+ ],
3178
+ "isUnique": false,
3179
+ "where": null,
3180
+ "with": "",
3181
+ "method": "btree",
3182
+ "concurrently": false,
3183
+ "name": "idx_relay_route_attempts_ready",
3184
+ "entityType": "indexes",
3185
+ "schema": "public",
3186
+ "table": "relay_route_attempts"
3187
+ },
3188
+ {
3189
+ "nameExplicit": true,
3190
+ "columns": [
3191
+ {
3192
+ "value": "state",
3193
+ "isExpression": false,
3194
+ "asc": true,
3195
+ "nullsFirst": false,
3196
+ "opclass": null
3197
+ },
3198
+ {
3199
+ "value": "next_run_at",
3200
+ "isExpression": false,
3201
+ "asc": true,
3202
+ "nullsFirst": false,
3203
+ "opclass": null
3204
+ }
3205
+ ],
3206
+ "isUnique": false,
3207
+ "where": null,
3208
+ "with": "",
3209
+ "method": "btree",
3210
+ "concurrently": false,
3211
+ "name": "idx_relay_schedules_state_next_run",
3212
+ "entityType": "indexes",
3213
+ "schema": "public",
3214
+ "table": "relay_schedules"
3215
+ },
3216
+ {
3217
+ "nameExplicit": true,
3218
+ "columns": [
3219
+ {
3220
+ "value": "claim_expires_at",
3221
+ "isExpression": false,
3222
+ "asc": true,
3223
+ "nullsFirst": false,
3224
+ "opclass": null
3225
+ }
3226
+ ],
3227
+ "isUnique": false,
3228
+ "where": null,
3229
+ "with": "",
3230
+ "method": "btree",
3231
+ "concurrently": false,
3232
+ "name": "idx_relay_schedules_claim_expires",
3233
+ "entityType": "indexes",
3234
+ "schema": "public",
3235
+ "table": "relay_schedules"
3236
+ },
3237
+ {
3238
+ "nameExplicit": true,
3239
+ "columns": [
3240
+ {
3241
+ "value": "wait_id",
3242
+ "isExpression": false,
3243
+ "asc": true,
3244
+ "nullsFirst": false,
3245
+ "opclass": null
3246
+ }
3247
+ ],
3248
+ "isUnique": false,
3249
+ "where": null,
3250
+ "with": "",
3251
+ "method": "btree",
3252
+ "concurrently": false,
3253
+ "name": "idx_relay_schedules_wait",
3254
+ "entityType": "indexes",
3255
+ "schema": "public",
3256
+ "table": "relay_schedules"
3257
+ },
3258
+ {
3259
+ "nameExplicit": true,
3260
+ "columns": [
3261
+ {
3262
+ "value": "idempotency_key",
3263
+ "isExpression": false,
3264
+ "asc": true,
3265
+ "nullsFirst": false,
3266
+ "opclass": null
3267
+ }
3268
+ ],
3269
+ "isUnique": true,
3270
+ "where": null,
3271
+ "with": "",
3272
+ "method": "btree",
3273
+ "concurrently": false,
3274
+ "name": "uq_relay_schedules_idempotency",
3275
+ "entityType": "indexes",
3276
+ "schema": "public",
3277
+ "table": "relay_schedules"
3278
+ },
3279
+ {
3280
+ "nameExplicit": true,
3281
+ "columns": [
3282
+ {
3283
+ "value": "session_id",
3284
+ "isExpression": false,
3285
+ "asc": true,
3286
+ "nullsFirst": false,
3287
+ "opclass": null
3288
+ },
3289
+ {
3290
+ "value": "created_at",
3291
+ "isExpression": false,
3292
+ "asc": true,
3293
+ "nullsFirst": false,
3294
+ "opclass": null
3295
+ },
3296
+ {
3297
+ "value": "id",
3298
+ "isExpression": false,
3299
+ "asc": true,
3300
+ "nullsFirst": false,
3301
+ "opclass": null
3302
+ }
3303
+ ],
3304
+ "isUnique": false,
3305
+ "where": null,
3306
+ "with": "",
3307
+ "method": "btree",
3308
+ "concurrently": false,
3309
+ "name": "idx_relay_session_entries_session_created",
3310
+ "entityType": "indexes",
3311
+ "schema": "public",
3312
+ "table": "relay_session_entries"
3313
+ },
3314
+ {
3315
+ "nameExplicit": true,
3316
+ "columns": [
3317
+ {
3318
+ "value": "session_id",
3319
+ "isExpression": false,
3320
+ "asc": true,
3321
+ "nullsFirst": false,
3322
+ "opclass": null
3323
+ },
3324
+ {
3325
+ "value": "parent_id",
3326
+ "isExpression": false,
3327
+ "asc": true,
3328
+ "nullsFirst": false,
3329
+ "opclass": null
3330
+ }
3331
+ ],
3332
+ "isUnique": false,
3333
+ "where": null,
3334
+ "with": "",
3335
+ "method": "btree",
3336
+ "concurrently": false,
3337
+ "name": "idx_relay_session_entries_session_parent",
3338
+ "entityType": "indexes",
3339
+ "schema": "public",
3340
+ "table": "relay_session_entries"
3341
+ },
3342
+ {
3343
+ "nameExplicit": true,
3344
+ "columns": [
3345
+ {
3346
+ "value": "updated_at",
3347
+ "isExpression": false,
3348
+ "asc": true,
3349
+ "nullsFirst": false,
3350
+ "opclass": null
3351
+ },
3352
+ {
3353
+ "value": "id",
3354
+ "isExpression": false,
3355
+ "asc": true,
3356
+ "nullsFirst": false,
3357
+ "opclass": null
3358
+ }
3359
+ ],
3360
+ "isUnique": false,
3361
+ "where": null,
3362
+ "with": "",
3363
+ "method": "btree",
3364
+ "concurrently": false,
3365
+ "name": "idx_relay_sessions_updated_id",
3366
+ "entityType": "indexes",
3367
+ "schema": "public",
3368
+ "table": "relay_sessions"
3369
+ },
3370
+ {
3371
+ "nameExplicit": true,
3372
+ "columns": [
3373
+ {
3374
+ "value": "root_address_id",
3375
+ "isExpression": false,
3376
+ "asc": true,
3377
+ "nullsFirst": false,
3378
+ "opclass": null
3379
+ },
3380
+ {
3381
+ "value": "updated_at",
3382
+ "isExpression": false,
3383
+ "asc": true,
3384
+ "nullsFirst": false,
3385
+ "opclass": null
3386
+ },
3387
+ {
3388
+ "value": "id",
3389
+ "isExpression": false,
3390
+ "asc": true,
3391
+ "nullsFirst": false,
3392
+ "opclass": null
3393
+ }
3394
+ ],
3395
+ "isUnique": false,
3396
+ "where": null,
3397
+ "with": "",
3398
+ "method": "btree",
3399
+ "concurrently": false,
3400
+ "name": "idx_relay_sessions_root_updated_id",
3401
+ "entityType": "indexes",
3402
+ "schema": "public",
3403
+ "table": "relay_sessions"
3404
+ },
3405
+ {
3406
+ "nameExplicit": true,
3407
+ "columns": [
3408
+ {
3409
+ "value": "execution_id",
3410
+ "isExpression": false,
3411
+ "asc": true,
3412
+ "nullsFirst": false,
3413
+ "opclass": null
3414
+ },
3415
+ {
3416
+ "value": "kind",
3417
+ "isExpression": false,
3418
+ "asc": true,
3419
+ "nullsFirst": false,
3420
+ "opclass": null
3421
+ },
3422
+ {
3423
+ "value": "consumed_at",
3424
+ "isExpression": false,
3425
+ "asc": true,
3426
+ "nullsFirst": false,
3427
+ "opclass": null
3428
+ },
3429
+ {
3430
+ "value": "sequence",
3431
+ "isExpression": false,
3432
+ "asc": true,
3433
+ "nullsFirst": false,
3434
+ "opclass": null
3435
+ }
3436
+ ],
3437
+ "isUnique": false,
3438
+ "where": null,
3439
+ "with": "",
3440
+ "method": "btree",
3441
+ "concurrently": false,
3442
+ "name": "idx_relay_steering_messages_unconsumed",
3443
+ "entityType": "indexes",
3444
+ "schema": "public",
3445
+ "table": "relay_steering_messages"
3446
+ },
3447
+ {
3448
+ "nameExplicit": true,
3449
+ "columns": [
3450
+ {
3451
+ "value": "execution_id",
3452
+ "isExpression": false,
3453
+ "asc": true,
3454
+ "nullsFirst": false,
3455
+ "opclass": null
3456
+ },
3457
+ {
3458
+ "value": "kind",
3459
+ "isExpression": false,
3460
+ "asc": true,
3461
+ "nullsFirst": false,
3462
+ "opclass": null
3463
+ },
3464
+ {
3465
+ "value": "drain_id",
3466
+ "isExpression": false,
3467
+ "asc": true,
3468
+ "nullsFirst": false,
3469
+ "opclass": null
3470
+ },
3471
+ {
3472
+ "value": "sequence",
3473
+ "isExpression": false,
3474
+ "asc": true,
3475
+ "nullsFirst": false,
3476
+ "opclass": null
3477
+ }
3478
+ ],
3479
+ "isUnique": false,
3480
+ "where": null,
3481
+ "with": "",
3482
+ "method": "btree",
3483
+ "concurrently": false,
3484
+ "name": "idx_relay_steering_messages_drain",
3485
+ "entityType": "indexes",
3486
+ "schema": "public",
3487
+ "table": "relay_steering_messages"
3488
+ },
3489
+ {
3490
+ "nameExplicit": true,
3491
+ "columns": [
3492
+ {
3493
+ "value": "execution_id",
3494
+ "isExpression": false,
3495
+ "asc": true,
3496
+ "nullsFirst": false,
3497
+ "opclass": null
3498
+ },
3499
+ {
3500
+ "value": "created_at",
3501
+ "isExpression": false,
3502
+ "asc": true,
3503
+ "nullsFirst": false,
3504
+ "opclass": null
3505
+ }
3506
+ ],
3507
+ "isUnique": false,
3508
+ "where": null,
3509
+ "with": "",
3510
+ "method": "btree",
3511
+ "concurrently": false,
3512
+ "name": "idx_relay_tool_calls_execution",
3513
+ "entityType": "indexes",
3514
+ "schema": "public",
3515
+ "table": "relay_tool_calls"
3516
+ },
3517
+ {
3518
+ "nameExplicit": true,
3519
+ "columns": [
3520
+ {
3521
+ "value": "execution_id",
3522
+ "isExpression": false,
3523
+ "asc": true,
3524
+ "nullsFirst": false,
3525
+ "opclass": null
3526
+ },
3527
+ {
3528
+ "value": "state",
3529
+ "isExpression": false,
3530
+ "asc": true,
3531
+ "nullsFirst": false,
3532
+ "opclass": null
3533
+ }
3534
+ ],
3535
+ "isUnique": false,
3536
+ "where": null,
3537
+ "with": "",
3538
+ "method": "btree",
3539
+ "concurrently": false,
3540
+ "name": "idx_relay_waits_execution_state",
3541
+ "entityType": "indexes",
3542
+ "schema": "public",
3543
+ "table": "relay_waits"
3544
+ },
3545
+ {
3546
+ "nameExplicit": true,
3547
+ "columns": [
3548
+ {
3549
+ "value": "execution_id",
3550
+ "isExpression": false,
3551
+ "asc": true,
3552
+ "nullsFirst": false,
3553
+ "opclass": null
3554
+ }
3555
+ ],
3556
+ "isUnique": true,
3557
+ "where": "\"status\" not in ('released', 'failed')",
3558
+ "with": "",
3559
+ "method": "btree",
3560
+ "concurrently": false,
3561
+ "name": "uq_relay_workspace_leases_active_execution",
3562
+ "entityType": "indexes",
3563
+ "schema": "public",
3564
+ "table": "relay_workspace_leases"
3565
+ },
3566
+ {
3567
+ "nameExplicit": true,
3568
+ "columns": [
3569
+ {
3570
+ "value": "execution_id",
3571
+ "isExpression": false,
3572
+ "asc": true,
3573
+ "nullsFirst": false,
3574
+ "opclass": null
3575
+ }
3576
+ ],
3577
+ "isUnique": false,
3578
+ "where": null,
3579
+ "with": "",
3580
+ "method": "btree",
3581
+ "concurrently": false,
3582
+ "name": "idx_relay_workspace_leases_execution",
3583
+ "entityType": "indexes",
3584
+ "schema": "public",
3585
+ "table": "relay_workspace_leases"
3586
+ },
3587
+ {
3588
+ "nameExplicit": true,
3589
+ "columns": [
3590
+ {
3591
+ "value": "status",
3592
+ "isExpression": false,
3593
+ "asc": true,
3594
+ "nullsFirst": false,
3595
+ "opclass": null
3596
+ },
3597
+ {
3598
+ "value": "updated_at",
3599
+ "isExpression": false,
3600
+ "asc": true,
3601
+ "nullsFirst": false,
3602
+ "opclass": null
3603
+ }
3604
+ ],
3605
+ "isUnique": false,
3606
+ "where": null,
3607
+ "with": "",
3608
+ "method": "btree",
3609
+ "concurrently": false,
3610
+ "name": "idx_relay_workspace_leases_status_updated",
3611
+ "entityType": "indexes",
3612
+ "schema": "public",
3613
+ "table": "relay_workspace_leases"
3614
+ },
3615
+ {
3616
+ "nameExplicit": true,
3617
+ "columns": [
3618
+ {
3619
+ "value": "lease_id",
3620
+ "isExpression": false,
3621
+ "asc": true,
3622
+ "nullsFirst": false,
3623
+ "opclass": null
3624
+ },
3625
+ {
3626
+ "value": "created_at",
3627
+ "isExpression": false,
3628
+ "asc": true,
3629
+ "nullsFirst": false,
3630
+ "opclass": null
3631
+ }
3632
+ ],
3633
+ "isUnique": false,
3634
+ "where": null,
3635
+ "with": "",
3636
+ "method": "btree",
3637
+ "concurrently": false,
3638
+ "name": "idx_relay_workspace_snapshots_lease",
3639
+ "entityType": "indexes",
3640
+ "schema": "public",
3641
+ "table": "relay_workspace_snapshots"
3642
+ },
3643
+ {
3644
+ "nameExplicit": true,
3645
+ "columns": [
3646
+ {
3647
+ "value": "execution_id",
3648
+ "isExpression": false,
3649
+ "asc": true,
3650
+ "nullsFirst": false,
3651
+ "opclass": null
3652
+ },
3653
+ {
3654
+ "value": "created_at",
3655
+ "isExpression": false,
3656
+ "asc": true,
3657
+ "nullsFirst": false,
3658
+ "opclass": null
3659
+ }
3660
+ ],
3661
+ "isUnique": false,
3662
+ "where": null,
3663
+ "with": "",
3664
+ "method": "btree",
3665
+ "concurrently": false,
3666
+ "name": "idx_relay_workspace_snapshots_execution",
3667
+ "entityType": "indexes",
3668
+ "schema": "public",
3669
+ "table": "relay_workspace_snapshots"
3670
+ },
3671
+ {
3672
+ "columns": ["execution_id", "checkpoint_id"],
3673
+ "nameExplicit": true,
3674
+ "name": "pk_relay_agent_compactions",
3675
+ "entityType": "pks",
3676
+ "schema": "public",
3677
+ "table": "relay_agent_compactions"
3678
+ },
3679
+ {
3680
+ "columns": ["agent_definition_id", "revision"],
3681
+ "nameExplicit": true,
3682
+ "name": "pk_relay_agent_definition_revisions",
3683
+ "entityType": "pks",
3684
+ "schema": "public",
3685
+ "table": "relay_agent_definition_revisions"
3686
+ },
3687
+ {
3688
+ "columns": ["agent", "scope", "pattern"],
3689
+ "nameExplicit": true,
3690
+ "name": "pk_relay_permission_rules",
3691
+ "entityType": "pks",
3692
+ "schema": "public",
3693
+ "table": "relay_permission_rules"
3694
+ },
3695
+ {
3696
+ "columns": ["execution_id", "kind", "drain_id"],
3697
+ "nameExplicit": true,
3698
+ "name": "pk_relay_steering_drains",
3699
+ "entityType": "pks",
3700
+ "schema": "public",
3701
+ "table": "relay_steering_drains"
3702
+ },
3703
+ {
3704
+ "columns": ["execution_id", "kind", "sequence"],
3705
+ "nameExplicit": true,
3706
+ "name": "pk_relay_steering_messages",
3707
+ "entityType": "pks",
3708
+ "schema": "public",
3709
+ "table": "relay_steering_messages"
3710
+ },
3711
+ {
3712
+ "columns": ["id"],
3713
+ "nameExplicit": false,
3714
+ "name": "relay_address_book_entries_pkey",
3715
+ "schema": "public",
3716
+ "table": "relay_address_book_entries",
3717
+ "entityType": "pks"
3718
+ },
3719
+ {
3720
+ "columns": ["execution_id"],
3721
+ "nameExplicit": false,
3722
+ "name": "relay_agent_chats_pkey",
3723
+ "schema": "public",
3724
+ "table": "relay_agent_chats",
3725
+ "entityType": "pks"
3726
+ },
3727
+ {
3728
+ "columns": ["id"],
3729
+ "nameExplicit": false,
3730
+ "name": "relay_agent_definitions_pkey",
3731
+ "schema": "public",
3732
+ "table": "relay_agent_definitions",
3733
+ "entityType": "pks"
3734
+ },
3735
+ {
3736
+ "columns": ["id"],
3737
+ "nameExplicit": false,
3738
+ "name": "relay_child_executions_pkey",
3739
+ "schema": "public",
3740
+ "table": "relay_child_executions",
3741
+ "entityType": "pks"
3742
+ },
3743
+ {
3744
+ "columns": ["id"],
3745
+ "nameExplicit": false,
3746
+ "name": "relay_envelope_ready_pkey",
3747
+ "schema": "public",
3748
+ "table": "relay_envelope_ready",
3749
+ "entityType": "pks"
3750
+ },
3751
+ {
3752
+ "columns": ["id"],
3753
+ "nameExplicit": false,
3754
+ "name": "relay_envelopes_pkey",
3755
+ "schema": "public",
3756
+ "table": "relay_envelopes",
3757
+ "entityType": "pks"
3758
+ },
3759
+ {
3760
+ "columns": ["execution_id"],
3761
+ "nameExplicit": false,
3762
+ "name": "relay_execution_context_epochs_pkey",
3763
+ "schema": "public",
3764
+ "table": "relay_execution_context_epochs",
3765
+ "entityType": "pks"
3766
+ },
3767
+ {
3768
+ "columns": ["id"],
3769
+ "nameExplicit": false,
3770
+ "name": "relay_execution_events_pkey",
3771
+ "schema": "public",
3772
+ "table": "relay_execution_events",
3773
+ "entityType": "pks"
3774
+ },
3775
+ {
3776
+ "columns": ["id"],
3777
+ "nameExplicit": false,
3778
+ "name": "relay_executions_pkey",
3779
+ "schema": "public",
3780
+ "table": "relay_executions",
3781
+ "entityType": "pks"
3782
+ },
3783
+ {
3784
+ "columns": ["id"],
3785
+ "nameExplicit": false,
3786
+ "name": "relay_idempotency_keys_pkey",
3787
+ "schema": "public",
3788
+ "table": "relay_idempotency_keys",
3789
+ "entityType": "pks"
3790
+ },
3791
+ {
3792
+ "columns": ["id"],
3793
+ "nameExplicit": false,
3794
+ "name": "relay_memory_records_pkey",
3795
+ "schema": "public",
3796
+ "table": "relay_memory_records",
3797
+ "entityType": "pks"
3798
+ },
3799
+ {
3800
+ "columns": ["id"],
3801
+ "nameExplicit": false,
3802
+ "name": "relay_route_attempts_pkey",
3803
+ "schema": "public",
3804
+ "table": "relay_route_attempts",
3805
+ "entityType": "pks"
3806
+ },
3807
+ {
3808
+ "columns": ["id"],
3809
+ "nameExplicit": false,
3810
+ "name": "relay_schedules_pkey",
3811
+ "schema": "public",
3812
+ "table": "relay_schedules",
3813
+ "entityType": "pks"
3814
+ },
3815
+ {
3816
+ "columns": ["id"],
3817
+ "nameExplicit": false,
3818
+ "name": "relay_session_entries_pkey",
3819
+ "schema": "public",
3820
+ "table": "relay_session_entries",
3821
+ "entityType": "pks"
3822
+ },
3823
+ {
3824
+ "columns": ["id"],
3825
+ "nameExplicit": false,
3826
+ "name": "relay_sessions_pkey",
3827
+ "schema": "public",
3828
+ "table": "relay_sessions",
3829
+ "entityType": "pks"
3830
+ },
3831
+ {
3832
+ "columns": ["id"],
3833
+ "nameExplicit": false,
3834
+ "name": "relay_tool_calls_pkey",
3835
+ "schema": "public",
3836
+ "table": "relay_tool_calls",
3837
+ "entityType": "pks"
3838
+ },
3839
+ {
3840
+ "columns": ["tool_call_id"],
3841
+ "nameExplicit": false,
3842
+ "name": "relay_tool_results_pkey",
3843
+ "schema": "public",
3844
+ "table": "relay_tool_results",
3845
+ "entityType": "pks"
3846
+ },
3847
+ {
3848
+ "columns": ["id"],
3849
+ "nameExplicit": false,
3850
+ "name": "relay_waits_pkey",
3851
+ "schema": "public",
3852
+ "table": "relay_waits",
3853
+ "entityType": "pks"
3854
+ },
3855
+ {
3856
+ "columns": ["id"],
3857
+ "nameExplicit": false,
3858
+ "name": "relay_workspace_leases_pkey",
3859
+ "schema": "public",
3860
+ "table": "relay_workspace_leases",
3861
+ "entityType": "pks"
3862
+ },
3863
+ {
3864
+ "columns": ["id"],
3865
+ "nameExplicit": false,
3866
+ "name": "relay_workspace_snapshots_pkey",
3867
+ "schema": "public",
3868
+ "table": "relay_workspace_snapshots",
3869
+ "entityType": "pks"
3870
+ }
3871
+ ],
3872
+ "renames": []
3873
+ }