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