@relayfx/sdk 0.0.49 → 0.1.0

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