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