@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,1971 +0,0 @@
1
- {
2
- "version": "8",
3
- "dialect": "postgres",
4
- "id": "44af63ad-1bbf-412d-9b45-fb60d55a1dff",
5
- "prevIds": ["00000000-0000-0000-0000-000000000000"],
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_definition_revisions",
16
- "entityType": "tables",
17
- "schema": "public"
18
- },
19
- {
20
- "isRlsEnabled": false,
21
- "name": "relay_agent_definitions",
22
- "entityType": "tables",
23
- "schema": "public"
24
- },
25
- {
26
- "isRlsEnabled": false,
27
- "name": "relay_child_executions",
28
- "entityType": "tables",
29
- "schema": "public"
30
- },
31
- {
32
- "isRlsEnabled": false,
33
- "name": "relay_envelope_ready",
34
- "entityType": "tables",
35
- "schema": "public"
36
- },
37
- {
38
- "isRlsEnabled": false,
39
- "name": "relay_envelopes",
40
- "entityType": "tables",
41
- "schema": "public"
42
- },
43
- {
44
- "isRlsEnabled": false,
45
- "name": "relay_execution_events",
46
- "entityType": "tables",
47
- "schema": "public"
48
- },
49
- {
50
- "isRlsEnabled": false,
51
- "name": "relay_executions",
52
- "entityType": "tables",
53
- "schema": "public"
54
- },
55
- {
56
- "isRlsEnabled": false,
57
- "name": "relay_idempotency_keys",
58
- "entityType": "tables",
59
- "schema": "public"
60
- },
61
- {
62
- "isRlsEnabled": false,
63
- "name": "relay_route_attempts",
64
- "entityType": "tables",
65
- "schema": "public"
66
- },
67
- {
68
- "isRlsEnabled": false,
69
- "name": "relay_tool_calls",
70
- "entityType": "tables",
71
- "schema": "public"
72
- },
73
- {
74
- "isRlsEnabled": false,
75
- "name": "relay_tool_results",
76
- "entityType": "tables",
77
- "schema": "public"
78
- },
79
- {
80
- "isRlsEnabled": false,
81
- "name": "relay_waits",
82
- "entityType": "tables",
83
- "schema": "public"
84
- },
85
- {
86
- "type": "text",
87
- "typeSchema": null,
88
- "notNull": true,
89
- "dimensions": 0,
90
- "default": null,
91
- "generated": null,
92
- "identity": null,
93
- "name": "id",
94
- "entityType": "columns",
95
- "schema": "public",
96
- "table": "relay_address_book_entries"
97
- },
98
- {
99
- "type": "text",
100
- "typeSchema": null,
101
- "notNull": true,
102
- "dimensions": 0,
103
- "default": null,
104
- "generated": null,
105
- "identity": null,
106
- "name": "address_id",
107
- "entityType": "columns",
108
- "schema": "public",
109
- "table": "relay_address_book_entries"
110
- },
111
- {
112
- "type": "text",
113
- "typeSchema": null,
114
- "notNull": true,
115
- "dimensions": 0,
116
- "default": null,
117
- "generated": null,
118
- "identity": null,
119
- "name": "route_kind",
120
- "entityType": "columns",
121
- "schema": "public",
122
- "table": "relay_address_book_entries"
123
- },
124
- {
125
- "type": "text",
126
- "typeSchema": null,
127
- "notNull": true,
128
- "dimensions": 0,
129
- "default": null,
130
- "generated": null,
131
- "identity": null,
132
- "name": "route_key",
133
- "entityType": "columns",
134
- "schema": "public",
135
- "table": "relay_address_book_entries"
136
- },
137
- {
138
- "type": "jsonb",
139
- "typeSchema": null,
140
- "notNull": true,
141
- "dimensions": 0,
142
- "default": "'{}'",
143
- "generated": null,
144
- "identity": null,
145
- "name": "metadata_json",
146
- "entityType": "columns",
147
- "schema": "public",
148
- "table": "relay_address_book_entries"
149
- },
150
- {
151
- "type": "timestamp with time zone",
152
- "typeSchema": null,
153
- "notNull": true,
154
- "dimensions": 0,
155
- "default": "now()",
156
- "generated": null,
157
- "identity": null,
158
- "name": "created_at",
159
- "entityType": "columns",
160
- "schema": "public",
161
- "table": "relay_address_book_entries"
162
- },
163
- {
164
- "type": "timestamp with time zone",
165
- "typeSchema": null,
166
- "notNull": true,
167
- "dimensions": 0,
168
- "default": "now()",
169
- "generated": null,
170
- "identity": null,
171
- "name": "updated_at",
172
- "entityType": "columns",
173
- "schema": "public",
174
- "table": "relay_address_book_entries"
175
- },
176
- {
177
- "type": "text",
178
- "typeSchema": null,
179
- "notNull": true,
180
- "dimensions": 0,
181
- "default": null,
182
- "generated": null,
183
- "identity": null,
184
- "name": "agent_definition_id",
185
- "entityType": "columns",
186
- "schema": "public",
187
- "table": "relay_agent_definition_revisions"
188
- },
189
- {
190
- "type": "integer",
191
- "typeSchema": null,
192
- "notNull": true,
193
- "dimensions": 0,
194
- "default": null,
195
- "generated": null,
196
- "identity": null,
197
- "name": "revision",
198
- "entityType": "columns",
199
- "schema": "public",
200
- "table": "relay_agent_definition_revisions"
201
- },
202
- {
203
- "type": "text",
204
- "typeSchema": null,
205
- "notNull": true,
206
- "dimensions": 0,
207
- "default": null,
208
- "generated": null,
209
- "identity": null,
210
- "name": "name",
211
- "entityType": "columns",
212
- "schema": "public",
213
- "table": "relay_agent_definition_revisions"
214
- },
215
- {
216
- "type": "jsonb",
217
- "typeSchema": null,
218
- "notNull": true,
219
- "dimensions": 0,
220
- "default": null,
221
- "generated": null,
222
- "identity": null,
223
- "name": "definition_json",
224
- "entityType": "columns",
225
- "schema": "public",
226
- "table": "relay_agent_definition_revisions"
227
- },
228
- {
229
- "type": "timestamp with time zone",
230
- "typeSchema": null,
231
- "notNull": true,
232
- "dimensions": 0,
233
- "default": "now()",
234
- "generated": null,
235
- "identity": null,
236
- "name": "created_at",
237
- "entityType": "columns",
238
- "schema": "public",
239
- "table": "relay_agent_definition_revisions"
240
- },
241
- {
242
- "type": "text",
243
- "typeSchema": null,
244
- "notNull": true,
245
- "dimensions": 0,
246
- "default": null,
247
- "generated": null,
248
- "identity": null,
249
- "name": "id",
250
- "entityType": "columns",
251
- "schema": "public",
252
- "table": "relay_agent_definitions"
253
- },
254
- {
255
- "type": "text",
256
- "typeSchema": null,
257
- "notNull": true,
258
- "dimensions": 0,
259
- "default": null,
260
- "generated": null,
261
- "identity": null,
262
- "name": "name",
263
- "entityType": "columns",
264
- "schema": "public",
265
- "table": "relay_agent_definitions"
266
- },
267
- {
268
- "type": "integer",
269
- "typeSchema": null,
270
- "notNull": true,
271
- "dimensions": 0,
272
- "default": null,
273
- "generated": null,
274
- "identity": null,
275
- "name": "current_revision",
276
- "entityType": "columns",
277
- "schema": "public",
278
- "table": "relay_agent_definitions"
279
- },
280
- {
281
- "type": "jsonb",
282
- "typeSchema": null,
283
- "notNull": true,
284
- "dimensions": 0,
285
- "default": null,
286
- "generated": null,
287
- "identity": null,
288
- "name": "definition_json",
289
- "entityType": "columns",
290
- "schema": "public",
291
- "table": "relay_agent_definitions"
292
- },
293
- {
294
- "type": "timestamp with time zone",
295
- "typeSchema": null,
296
- "notNull": true,
297
- "dimensions": 0,
298
- "default": "now()",
299
- "generated": null,
300
- "identity": null,
301
- "name": "created_at",
302
- "entityType": "columns",
303
- "schema": "public",
304
- "table": "relay_agent_definitions"
305
- },
306
- {
307
- "type": "timestamp with time zone",
308
- "typeSchema": null,
309
- "notNull": true,
310
- "dimensions": 0,
311
- "default": "now()",
312
- "generated": null,
313
- "identity": null,
314
- "name": "updated_at",
315
- "entityType": "columns",
316
- "schema": "public",
317
- "table": "relay_agent_definitions"
318
- },
319
- {
320
- "type": "text",
321
- "typeSchema": null,
322
- "notNull": true,
323
- "dimensions": 0,
324
- "default": null,
325
- "generated": null,
326
- "identity": null,
327
- "name": "id",
328
- "entityType": "columns",
329
- "schema": "public",
330
- "table": "relay_child_executions"
331
- },
332
- {
333
- "type": "text",
334
- "typeSchema": null,
335
- "notNull": true,
336
- "dimensions": 0,
337
- "default": null,
338
- "generated": null,
339
- "identity": null,
340
- "name": "execution_id",
341
- "entityType": "columns",
342
- "schema": "public",
343
- "table": "relay_child_executions"
344
- },
345
- {
346
- "type": "text",
347
- "typeSchema": null,
348
- "notNull": true,
349
- "dimensions": 0,
350
- "default": null,
351
- "generated": null,
352
- "identity": null,
353
- "name": "address_id",
354
- "entityType": "columns",
355
- "schema": "public",
356
- "table": "relay_child_executions"
357
- },
358
- {
359
- "type": "text",
360
- "typeSchema": null,
361
- "notNull": true,
362
- "dimensions": 0,
363
- "default": null,
364
- "generated": null,
365
- "identity": null,
366
- "name": "status",
367
- "entityType": "columns",
368
- "schema": "public",
369
- "table": "relay_child_executions"
370
- },
371
- {
372
- "type": "jsonb",
373
- "typeSchema": null,
374
- "notNull": true,
375
- "dimensions": 0,
376
- "default": "'{}'",
377
- "generated": null,
378
- "identity": null,
379
- "name": "metadata_json",
380
- "entityType": "columns",
381
- "schema": "public",
382
- "table": "relay_child_executions"
383
- },
384
- {
385
- "type": "timestamp with time zone",
386
- "typeSchema": null,
387
- "notNull": true,
388
- "dimensions": 0,
389
- "default": "now()",
390
- "generated": null,
391
- "identity": null,
392
- "name": "created_at",
393
- "entityType": "columns",
394
- "schema": "public",
395
- "table": "relay_child_executions"
396
- },
397
- {
398
- "type": "timestamp with time zone",
399
- "typeSchema": null,
400
- "notNull": true,
401
- "dimensions": 0,
402
- "default": "now()",
403
- "generated": null,
404
- "identity": null,
405
- "name": "updated_at",
406
- "entityType": "columns",
407
- "schema": "public",
408
- "table": "relay_child_executions"
409
- },
410
- {
411
- "type": "text",
412
- "typeSchema": null,
413
- "notNull": true,
414
- "dimensions": 0,
415
- "default": null,
416
- "generated": null,
417
- "identity": null,
418
- "name": "id",
419
- "entityType": "columns",
420
- "schema": "public",
421
- "table": "relay_envelope_ready"
422
- },
423
- {
424
- "type": "text",
425
- "typeSchema": null,
426
- "notNull": true,
427
- "dimensions": 0,
428
- "default": null,
429
- "generated": null,
430
- "identity": null,
431
- "name": "envelope_id",
432
- "entityType": "columns",
433
- "schema": "public",
434
- "table": "relay_envelope_ready"
435
- },
436
- {
437
- "type": "text",
438
- "typeSchema": null,
439
- "notNull": true,
440
- "dimensions": 0,
441
- "default": null,
442
- "generated": null,
443
- "identity": null,
444
- "name": "route_type",
445
- "entityType": "columns",
446
- "schema": "public",
447
- "table": "relay_envelope_ready"
448
- },
449
- {
450
- "type": "text",
451
- "typeSchema": null,
452
- "notNull": true,
453
- "dimensions": 0,
454
- "default": null,
455
- "generated": null,
456
- "identity": null,
457
- "name": "route_key",
458
- "entityType": "columns",
459
- "schema": "public",
460
- "table": "relay_envelope_ready"
461
- },
462
- {
463
- "type": "text",
464
- "typeSchema": null,
465
- "notNull": true,
466
- "dimensions": 0,
467
- "default": "'ready'",
468
- "generated": null,
469
- "identity": null,
470
- "name": "state",
471
- "entityType": "columns",
472
- "schema": "public",
473
- "table": "relay_envelope_ready"
474
- },
475
- {
476
- "type": "timestamp with time zone",
477
- "typeSchema": null,
478
- "notNull": true,
479
- "dimensions": 0,
480
- "default": "now()",
481
- "generated": null,
482
- "identity": null,
483
- "name": "available_at",
484
- "entityType": "columns",
485
- "schema": "public",
486
- "table": "relay_envelope_ready"
487
- },
488
- {
489
- "type": "integer",
490
- "typeSchema": null,
491
- "notNull": true,
492
- "dimensions": 0,
493
- "default": "0",
494
- "generated": null,
495
- "identity": null,
496
- "name": "attempt",
497
- "entityType": "columns",
498
- "schema": "public",
499
- "table": "relay_envelope_ready"
500
- },
501
- {
502
- "type": "text",
503
- "typeSchema": null,
504
- "notNull": false,
505
- "dimensions": 0,
506
- "default": null,
507
- "generated": null,
508
- "identity": null,
509
- "name": "claim_owner",
510
- "entityType": "columns",
511
- "schema": "public",
512
- "table": "relay_envelope_ready"
513
- },
514
- {
515
- "type": "timestamp with time zone",
516
- "typeSchema": null,
517
- "notNull": false,
518
- "dimensions": 0,
519
- "default": null,
520
- "generated": null,
521
- "identity": null,
522
- "name": "claim_expires_at",
523
- "entityType": "columns",
524
- "schema": "public",
525
- "table": "relay_envelope_ready"
526
- },
527
- {
528
- "type": "text",
529
- "typeSchema": null,
530
- "notNull": false,
531
- "dimensions": 0,
532
- "default": null,
533
- "generated": null,
534
- "identity": null,
535
- "name": "last_error",
536
- "entityType": "columns",
537
- "schema": "public",
538
- "table": "relay_envelope_ready"
539
- },
540
- {
541
- "type": "text",
542
- "typeSchema": null,
543
- "notNull": false,
544
- "dimensions": 0,
545
- "default": null,
546
- "generated": null,
547
- "identity": null,
548
- "name": "idempotency_key",
549
- "entityType": "columns",
550
- "schema": "public",
551
- "table": "relay_envelope_ready"
552
- },
553
- {
554
- "type": "jsonb",
555
- "typeSchema": null,
556
- "notNull": true,
557
- "dimensions": 0,
558
- "default": "'{}'",
559
- "generated": null,
560
- "identity": null,
561
- "name": "metadata_json",
562
- "entityType": "columns",
563
- "schema": "public",
564
- "table": "relay_envelope_ready"
565
- },
566
- {
567
- "type": "timestamp with time zone",
568
- "typeSchema": null,
569
- "notNull": true,
570
- "dimensions": 0,
571
- "default": "now()",
572
- "generated": null,
573
- "identity": null,
574
- "name": "created_at",
575
- "entityType": "columns",
576
- "schema": "public",
577
- "table": "relay_envelope_ready"
578
- },
579
- {
580
- "type": "timestamp with time zone",
581
- "typeSchema": null,
582
- "notNull": true,
583
- "dimensions": 0,
584
- "default": "now()",
585
- "generated": null,
586
- "identity": null,
587
- "name": "updated_at",
588
- "entityType": "columns",
589
- "schema": "public",
590
- "table": "relay_envelope_ready"
591
- },
592
- {
593
- "type": "timestamp with time zone",
594
- "typeSchema": null,
595
- "notNull": false,
596
- "dimensions": 0,
597
- "default": null,
598
- "generated": null,
599
- "identity": null,
600
- "name": "claimed_at",
601
- "entityType": "columns",
602
- "schema": "public",
603
- "table": "relay_envelope_ready"
604
- },
605
- {
606
- "type": "timestamp with time zone",
607
- "typeSchema": null,
608
- "notNull": false,
609
- "dimensions": 0,
610
- "default": null,
611
- "generated": null,
612
- "identity": null,
613
- "name": "acknowledged_at",
614
- "entityType": "columns",
615
- "schema": "public",
616
- "table": "relay_envelope_ready"
617
- },
618
- {
619
- "type": "text",
620
- "typeSchema": null,
621
- "notNull": true,
622
- "dimensions": 0,
623
- "default": null,
624
- "generated": null,
625
- "identity": null,
626
- "name": "id",
627
- "entityType": "columns",
628
- "schema": "public",
629
- "table": "relay_envelopes"
630
- },
631
- {
632
- "type": "text",
633
- "typeSchema": null,
634
- "notNull": true,
635
- "dimensions": 0,
636
- "default": null,
637
- "generated": null,
638
- "identity": null,
639
- "name": "execution_id",
640
- "entityType": "columns",
641
- "schema": "public",
642
- "table": "relay_envelopes"
643
- },
644
- {
645
- "type": "text",
646
- "typeSchema": null,
647
- "notNull": true,
648
- "dimensions": 0,
649
- "default": null,
650
- "generated": null,
651
- "identity": null,
652
- "name": "from_address_id",
653
- "entityType": "columns",
654
- "schema": "public",
655
- "table": "relay_envelopes"
656
- },
657
- {
658
- "type": "text",
659
- "typeSchema": null,
660
- "notNull": true,
661
- "dimensions": 0,
662
- "default": null,
663
- "generated": null,
664
- "identity": null,
665
- "name": "to_address_id",
666
- "entityType": "columns",
667
- "schema": "public",
668
- "table": "relay_envelopes"
669
- },
670
- {
671
- "type": "jsonb",
672
- "typeSchema": null,
673
- "notNull": true,
674
- "dimensions": 0,
675
- "default": null,
676
- "generated": null,
677
- "identity": null,
678
- "name": "content_json",
679
- "entityType": "columns",
680
- "schema": "public",
681
- "table": "relay_envelopes"
682
- },
683
- {
684
- "type": "jsonb",
685
- "typeSchema": null,
686
- "notNull": false,
687
- "dimensions": 0,
688
- "default": null,
689
- "generated": null,
690
- "identity": null,
691
- "name": "wait_json",
692
- "entityType": "columns",
693
- "schema": "public",
694
- "table": "relay_envelopes"
695
- },
696
- {
697
- "type": "text",
698
- "typeSchema": null,
699
- "notNull": false,
700
- "dimensions": 0,
701
- "default": null,
702
- "generated": null,
703
- "identity": null,
704
- "name": "correlation_key",
705
- "entityType": "columns",
706
- "schema": "public",
707
- "table": "relay_envelopes"
708
- },
709
- {
710
- "type": "jsonb",
711
- "typeSchema": null,
712
- "notNull": true,
713
- "dimensions": 0,
714
- "default": "'{}'",
715
- "generated": null,
716
- "identity": null,
717
- "name": "metadata_json",
718
- "entityType": "columns",
719
- "schema": "public",
720
- "table": "relay_envelopes"
721
- },
722
- {
723
- "type": "timestamp with time zone",
724
- "typeSchema": null,
725
- "notNull": true,
726
- "dimensions": 0,
727
- "default": "now()",
728
- "generated": null,
729
- "identity": null,
730
- "name": "created_at",
731
- "entityType": "columns",
732
- "schema": "public",
733
- "table": "relay_envelopes"
734
- },
735
- {
736
- "type": "text",
737
- "typeSchema": null,
738
- "notNull": true,
739
- "dimensions": 0,
740
- "default": null,
741
- "generated": null,
742
- "identity": null,
743
- "name": "id",
744
- "entityType": "columns",
745
- "schema": "public",
746
- "table": "relay_execution_events"
747
- },
748
- {
749
- "type": "text",
750
- "typeSchema": null,
751
- "notNull": true,
752
- "dimensions": 0,
753
- "default": null,
754
- "generated": null,
755
- "identity": null,
756
- "name": "execution_id",
757
- "entityType": "columns",
758
- "schema": "public",
759
- "table": "relay_execution_events"
760
- },
761
- {
762
- "type": "text",
763
- "typeSchema": null,
764
- "notNull": false,
765
- "dimensions": 0,
766
- "default": null,
767
- "generated": null,
768
- "identity": null,
769
- "name": "child_execution_id",
770
- "entityType": "columns",
771
- "schema": "public",
772
- "table": "relay_execution_events"
773
- },
774
- {
775
- "type": "text",
776
- "typeSchema": null,
777
- "notNull": true,
778
- "dimensions": 0,
779
- "default": null,
780
- "generated": null,
781
- "identity": null,
782
- "name": "type",
783
- "entityType": "columns",
784
- "schema": "public",
785
- "table": "relay_execution_events"
786
- },
787
- {
788
- "type": "integer",
789
- "typeSchema": null,
790
- "notNull": true,
791
- "dimensions": 0,
792
- "default": null,
793
- "generated": null,
794
- "identity": null,
795
- "name": "sequence",
796
- "entityType": "columns",
797
- "schema": "public",
798
- "table": "relay_execution_events"
799
- },
800
- {
801
- "type": "text",
802
- "typeSchema": null,
803
- "notNull": true,
804
- "dimensions": 0,
805
- "default": null,
806
- "generated": null,
807
- "identity": null,
808
- "name": "cursor",
809
- "entityType": "columns",
810
- "schema": "public",
811
- "table": "relay_execution_events"
812
- },
813
- {
814
- "type": "jsonb",
815
- "typeSchema": null,
816
- "notNull": false,
817
- "dimensions": 0,
818
- "default": null,
819
- "generated": null,
820
- "identity": null,
821
- "name": "content_json",
822
- "entityType": "columns",
823
- "schema": "public",
824
- "table": "relay_execution_events"
825
- },
826
- {
827
- "type": "jsonb",
828
- "typeSchema": null,
829
- "notNull": true,
830
- "dimensions": 0,
831
- "default": "'{}'",
832
- "generated": null,
833
- "identity": null,
834
- "name": "data_json",
835
- "entityType": "columns",
836
- "schema": "public",
837
- "table": "relay_execution_events"
838
- },
839
- {
840
- "type": "timestamp with time zone",
841
- "typeSchema": null,
842
- "notNull": true,
843
- "dimensions": 0,
844
- "default": "now()",
845
- "generated": null,
846
- "identity": null,
847
- "name": "created_at",
848
- "entityType": "columns",
849
- "schema": "public",
850
- "table": "relay_execution_events"
851
- },
852
- {
853
- "type": "text",
854
- "typeSchema": null,
855
- "notNull": true,
856
- "dimensions": 0,
857
- "default": null,
858
- "generated": null,
859
- "identity": null,
860
- "name": "id",
861
- "entityType": "columns",
862
- "schema": "public",
863
- "table": "relay_executions"
864
- },
865
- {
866
- "type": "text",
867
- "typeSchema": null,
868
- "notNull": true,
869
- "dimensions": 0,
870
- "default": null,
871
- "generated": null,
872
- "identity": null,
873
- "name": "root_address_id",
874
- "entityType": "columns",
875
- "schema": "public",
876
- "table": "relay_executions"
877
- },
878
- {
879
- "type": "text",
880
- "typeSchema": null,
881
- "notNull": true,
882
- "dimensions": 0,
883
- "default": null,
884
- "generated": null,
885
- "identity": null,
886
- "name": "status",
887
- "entityType": "columns",
888
- "schema": "public",
889
- "table": "relay_executions"
890
- },
891
- {
892
- "type": "text",
893
- "typeSchema": null,
894
- "notNull": false,
895
- "dimensions": 0,
896
- "default": null,
897
- "generated": null,
898
- "identity": null,
899
- "name": "agent_definition_id",
900
- "entityType": "columns",
901
- "schema": "public",
902
- "table": "relay_executions"
903
- },
904
- {
905
- "type": "integer",
906
- "typeSchema": null,
907
- "notNull": false,
908
- "dimensions": 0,
909
- "default": null,
910
- "generated": null,
911
- "identity": null,
912
- "name": "agent_definition_revision",
913
- "entityType": "columns",
914
- "schema": "public",
915
- "table": "relay_executions"
916
- },
917
- {
918
- "type": "jsonb",
919
- "typeSchema": null,
920
- "notNull": false,
921
- "dimensions": 0,
922
- "default": null,
923
- "generated": null,
924
- "identity": null,
925
- "name": "agent_definition_snapshot_json",
926
- "entityType": "columns",
927
- "schema": "public",
928
- "table": "relay_executions"
929
- },
930
- {
931
- "type": "jsonb",
932
- "typeSchema": null,
933
- "notNull": true,
934
- "dimensions": 0,
935
- "default": "'{}'",
936
- "generated": null,
937
- "identity": null,
938
- "name": "metadata_json",
939
- "entityType": "columns",
940
- "schema": "public",
941
- "table": "relay_executions"
942
- },
943
- {
944
- "type": "timestamp with time zone",
945
- "typeSchema": null,
946
- "notNull": true,
947
- "dimensions": 0,
948
- "default": "now()",
949
- "generated": null,
950
- "identity": null,
951
- "name": "created_at",
952
- "entityType": "columns",
953
- "schema": "public",
954
- "table": "relay_executions"
955
- },
956
- {
957
- "type": "timestamp with time zone",
958
- "typeSchema": null,
959
- "notNull": true,
960
- "dimensions": 0,
961
- "default": "now()",
962
- "generated": null,
963
- "identity": null,
964
- "name": "updated_at",
965
- "entityType": "columns",
966
- "schema": "public",
967
- "table": "relay_executions"
968
- },
969
- {
970
- "type": "text",
971
- "typeSchema": null,
972
- "notNull": true,
973
- "dimensions": 0,
974
- "default": null,
975
- "generated": null,
976
- "identity": null,
977
- "name": "id",
978
- "entityType": "columns",
979
- "schema": "public",
980
- "table": "relay_idempotency_keys"
981
- },
982
- {
983
- "type": "text",
984
- "typeSchema": null,
985
- "notNull": true,
986
- "dimensions": 0,
987
- "default": null,
988
- "generated": null,
989
- "identity": null,
990
- "name": "scope",
991
- "entityType": "columns",
992
- "schema": "public",
993
- "table": "relay_idempotency_keys"
994
- },
995
- {
996
- "type": "text",
997
- "typeSchema": null,
998
- "notNull": true,
999
- "dimensions": 0,
1000
- "default": null,
1001
- "generated": null,
1002
- "identity": null,
1003
- "name": "operation",
1004
- "entityType": "columns",
1005
- "schema": "public",
1006
- "table": "relay_idempotency_keys"
1007
- },
1008
- {
1009
- "type": "text",
1010
- "typeSchema": null,
1011
- "notNull": true,
1012
- "dimensions": 0,
1013
- "default": null,
1014
- "generated": null,
1015
- "identity": null,
1016
- "name": "key",
1017
- "entityType": "columns",
1018
- "schema": "public",
1019
- "table": "relay_idempotency_keys"
1020
- },
1021
- {
1022
- "type": "jsonb",
1023
- "typeSchema": null,
1024
- "notNull": false,
1025
- "dimensions": 0,
1026
- "default": null,
1027
- "generated": null,
1028
- "identity": null,
1029
- "name": "result_json",
1030
- "entityType": "columns",
1031
- "schema": "public",
1032
- "table": "relay_idempotency_keys"
1033
- },
1034
- {
1035
- "type": "jsonb",
1036
- "typeSchema": null,
1037
- "notNull": true,
1038
- "dimensions": 0,
1039
- "default": "'{}'",
1040
- "generated": null,
1041
- "identity": null,
1042
- "name": "metadata_json",
1043
- "entityType": "columns",
1044
- "schema": "public",
1045
- "table": "relay_idempotency_keys"
1046
- },
1047
- {
1048
- "type": "timestamp with time zone",
1049
- "typeSchema": null,
1050
- "notNull": true,
1051
- "dimensions": 0,
1052
- "default": "now()",
1053
- "generated": null,
1054
- "identity": null,
1055
- "name": "created_at",
1056
- "entityType": "columns",
1057
- "schema": "public",
1058
- "table": "relay_idempotency_keys"
1059
- },
1060
- {
1061
- "type": "timestamp with time zone",
1062
- "typeSchema": null,
1063
- "notNull": true,
1064
- "dimensions": 0,
1065
- "default": "now()",
1066
- "generated": null,
1067
- "identity": null,
1068
- "name": "updated_at",
1069
- "entityType": "columns",
1070
- "schema": "public",
1071
- "table": "relay_idempotency_keys"
1072
- },
1073
- {
1074
- "type": "timestamp with time zone",
1075
- "typeSchema": null,
1076
- "notNull": false,
1077
- "dimensions": 0,
1078
- "default": null,
1079
- "generated": null,
1080
- "identity": null,
1081
- "name": "expires_at",
1082
- "entityType": "columns",
1083
- "schema": "public",
1084
- "table": "relay_idempotency_keys"
1085
- },
1086
- {
1087
- "type": "text",
1088
- "typeSchema": null,
1089
- "notNull": true,
1090
- "dimensions": 0,
1091
- "default": null,
1092
- "generated": null,
1093
- "identity": null,
1094
- "name": "id",
1095
- "entityType": "columns",
1096
- "schema": "public",
1097
- "table": "relay_route_attempts"
1098
- },
1099
- {
1100
- "type": "text",
1101
- "typeSchema": null,
1102
- "notNull": true,
1103
- "dimensions": 0,
1104
- "default": null,
1105
- "generated": null,
1106
- "identity": null,
1107
- "name": "envelope_ready_id",
1108
- "entityType": "columns",
1109
- "schema": "public",
1110
- "table": "relay_route_attempts"
1111
- },
1112
- {
1113
- "type": "text",
1114
- "typeSchema": null,
1115
- "notNull": true,
1116
- "dimensions": 0,
1117
- "default": null,
1118
- "generated": null,
1119
- "identity": null,
1120
- "name": "route_key",
1121
- "entityType": "columns",
1122
- "schema": "public",
1123
- "table": "relay_route_attempts"
1124
- },
1125
- {
1126
- "type": "text",
1127
- "typeSchema": null,
1128
- "notNull": true,
1129
- "dimensions": 0,
1130
- "default": null,
1131
- "generated": null,
1132
- "identity": null,
1133
- "name": "state",
1134
- "entityType": "columns",
1135
- "schema": "public",
1136
- "table": "relay_route_attempts"
1137
- },
1138
- {
1139
- "type": "text",
1140
- "typeSchema": null,
1141
- "notNull": false,
1142
- "dimensions": 0,
1143
- "default": null,
1144
- "generated": null,
1145
- "identity": null,
1146
- "name": "detail",
1147
- "entityType": "columns",
1148
- "schema": "public",
1149
- "table": "relay_route_attempts"
1150
- },
1151
- {
1152
- "type": "timestamp with time zone",
1153
- "typeSchema": null,
1154
- "notNull": true,
1155
- "dimensions": 0,
1156
- "default": "now()",
1157
- "generated": null,
1158
- "identity": null,
1159
- "name": "created_at",
1160
- "entityType": "columns",
1161
- "schema": "public",
1162
- "table": "relay_route_attempts"
1163
- },
1164
- {
1165
- "type": "text",
1166
- "typeSchema": null,
1167
- "notNull": true,
1168
- "dimensions": 0,
1169
- "default": null,
1170
- "generated": null,
1171
- "identity": null,
1172
- "name": "id",
1173
- "entityType": "columns",
1174
- "schema": "public",
1175
- "table": "relay_tool_calls"
1176
- },
1177
- {
1178
- "type": "text",
1179
- "typeSchema": null,
1180
- "notNull": true,
1181
- "dimensions": 0,
1182
- "default": null,
1183
- "generated": null,
1184
- "identity": null,
1185
- "name": "execution_id",
1186
- "entityType": "columns",
1187
- "schema": "public",
1188
- "table": "relay_tool_calls"
1189
- },
1190
- {
1191
- "type": "text",
1192
- "typeSchema": null,
1193
- "notNull": true,
1194
- "dimensions": 0,
1195
- "default": null,
1196
- "generated": null,
1197
- "identity": null,
1198
- "name": "name",
1199
- "entityType": "columns",
1200
- "schema": "public",
1201
- "table": "relay_tool_calls"
1202
- },
1203
- {
1204
- "type": "jsonb",
1205
- "typeSchema": null,
1206
- "notNull": true,
1207
- "dimensions": 0,
1208
- "default": null,
1209
- "generated": null,
1210
- "identity": null,
1211
- "name": "input_json",
1212
- "entityType": "columns",
1213
- "schema": "public",
1214
- "table": "relay_tool_calls"
1215
- },
1216
- {
1217
- "type": "jsonb",
1218
- "typeSchema": null,
1219
- "notNull": true,
1220
- "dimensions": 0,
1221
- "default": "'{}'",
1222
- "generated": null,
1223
- "identity": null,
1224
- "name": "metadata_json",
1225
- "entityType": "columns",
1226
- "schema": "public",
1227
- "table": "relay_tool_calls"
1228
- },
1229
- {
1230
- "type": "timestamp with time zone",
1231
- "typeSchema": null,
1232
- "notNull": true,
1233
- "dimensions": 0,
1234
- "default": "now()",
1235
- "generated": null,
1236
- "identity": null,
1237
- "name": "created_at",
1238
- "entityType": "columns",
1239
- "schema": "public",
1240
- "table": "relay_tool_calls"
1241
- },
1242
- {
1243
- "type": "text",
1244
- "typeSchema": null,
1245
- "notNull": true,
1246
- "dimensions": 0,
1247
- "default": null,
1248
- "generated": null,
1249
- "identity": null,
1250
- "name": "tool_call_id",
1251
- "entityType": "columns",
1252
- "schema": "public",
1253
- "table": "relay_tool_results"
1254
- },
1255
- {
1256
- "type": "jsonb",
1257
- "typeSchema": null,
1258
- "notNull": true,
1259
- "dimensions": 0,
1260
- "default": null,
1261
- "generated": null,
1262
- "identity": null,
1263
- "name": "output_json",
1264
- "entityType": "columns",
1265
- "schema": "public",
1266
- "table": "relay_tool_results"
1267
- },
1268
- {
1269
- "type": "text",
1270
- "typeSchema": null,
1271
- "notNull": false,
1272
- "dimensions": 0,
1273
- "default": null,
1274
- "generated": null,
1275
- "identity": null,
1276
- "name": "error",
1277
- "entityType": "columns",
1278
- "schema": "public",
1279
- "table": "relay_tool_results"
1280
- },
1281
- {
1282
- "type": "jsonb",
1283
- "typeSchema": null,
1284
- "notNull": true,
1285
- "dimensions": 0,
1286
- "default": "'{}'",
1287
- "generated": null,
1288
- "identity": null,
1289
- "name": "metadata_json",
1290
- "entityType": "columns",
1291
- "schema": "public",
1292
- "table": "relay_tool_results"
1293
- },
1294
- {
1295
- "type": "timestamp with time zone",
1296
- "typeSchema": null,
1297
- "notNull": true,
1298
- "dimensions": 0,
1299
- "default": "now()",
1300
- "generated": null,
1301
- "identity": null,
1302
- "name": "created_at",
1303
- "entityType": "columns",
1304
- "schema": "public",
1305
- "table": "relay_tool_results"
1306
- },
1307
- {
1308
- "type": "text",
1309
- "typeSchema": null,
1310
- "notNull": true,
1311
- "dimensions": 0,
1312
- "default": null,
1313
- "generated": null,
1314
- "identity": null,
1315
- "name": "id",
1316
- "entityType": "columns",
1317
- "schema": "public",
1318
- "table": "relay_waits"
1319
- },
1320
- {
1321
- "type": "text",
1322
- "typeSchema": null,
1323
- "notNull": true,
1324
- "dimensions": 0,
1325
- "default": null,
1326
- "generated": null,
1327
- "identity": null,
1328
- "name": "execution_id",
1329
- "entityType": "columns",
1330
- "schema": "public",
1331
- "table": "relay_waits"
1332
- },
1333
- {
1334
- "type": "text",
1335
- "typeSchema": null,
1336
- "notNull": true,
1337
- "dimensions": 0,
1338
- "default": null,
1339
- "generated": null,
1340
- "identity": null,
1341
- "name": "envelope_id",
1342
- "entityType": "columns",
1343
- "schema": "public",
1344
- "table": "relay_waits"
1345
- },
1346
- {
1347
- "type": "text",
1348
- "typeSchema": null,
1349
- "notNull": true,
1350
- "dimensions": 0,
1351
- "default": null,
1352
- "generated": null,
1353
- "identity": null,
1354
- "name": "mode",
1355
- "entityType": "columns",
1356
- "schema": "public",
1357
- "table": "relay_waits"
1358
- },
1359
- {
1360
- "type": "text",
1361
- "typeSchema": null,
1362
- "notNull": false,
1363
- "dimensions": 0,
1364
- "default": null,
1365
- "generated": null,
1366
- "identity": null,
1367
- "name": "correlation_key",
1368
- "entityType": "columns",
1369
- "schema": "public",
1370
- "table": "relay_waits"
1371
- },
1372
- {
1373
- "type": "text",
1374
- "typeSchema": null,
1375
- "notNull": true,
1376
- "dimensions": 0,
1377
- "default": "'open'",
1378
- "generated": null,
1379
- "identity": null,
1380
- "name": "state",
1381
- "entityType": "columns",
1382
- "schema": "public",
1383
- "table": "relay_waits"
1384
- },
1385
- {
1386
- "type": "jsonb",
1387
- "typeSchema": null,
1388
- "notNull": true,
1389
- "dimensions": 0,
1390
- "default": "'{}'",
1391
- "generated": null,
1392
- "identity": null,
1393
- "name": "metadata_json",
1394
- "entityType": "columns",
1395
- "schema": "public",
1396
- "table": "relay_waits"
1397
- },
1398
- {
1399
- "type": "timestamp with time zone",
1400
- "typeSchema": null,
1401
- "notNull": true,
1402
- "dimensions": 0,
1403
- "default": "now()",
1404
- "generated": null,
1405
- "identity": null,
1406
- "name": "created_at",
1407
- "entityType": "columns",
1408
- "schema": "public",
1409
- "table": "relay_waits"
1410
- },
1411
- {
1412
- "type": "timestamp with time zone",
1413
- "typeSchema": null,
1414
- "notNull": false,
1415
- "dimensions": 0,
1416
- "default": null,
1417
- "generated": null,
1418
- "identity": null,
1419
- "name": "resolved_at",
1420
- "entityType": "columns",
1421
- "schema": "public",
1422
- "table": "relay_waits"
1423
- },
1424
- {
1425
- "nameExplicit": true,
1426
- "columns": [
1427
- {
1428
- "value": "address_id",
1429
- "isExpression": false,
1430
- "asc": true,
1431
- "nullsFirst": false,
1432
- "opclass": null
1433
- }
1434
- ],
1435
- "isUnique": true,
1436
- "where": null,
1437
- "with": "",
1438
- "method": "btree",
1439
- "concurrently": false,
1440
- "name": "uq_relay_address_book_address",
1441
- "entityType": "indexes",
1442
- "schema": "public",
1443
- "table": "relay_address_book_entries"
1444
- },
1445
- {
1446
- "nameExplicit": true,
1447
- "columns": [
1448
- {
1449
- "value": "agent_definition_id",
1450
- "isExpression": false,
1451
- "asc": true,
1452
- "nullsFirst": false,
1453
- "opclass": null
1454
- },
1455
- {
1456
- "value": "revision",
1457
- "isExpression": false,
1458
- "asc": true,
1459
- "nullsFirst": false,
1460
- "opclass": null
1461
- }
1462
- ],
1463
- "isUnique": false,
1464
- "where": null,
1465
- "with": "",
1466
- "method": "btree",
1467
- "concurrently": false,
1468
- "name": "idx_relay_agent_definition_revisions_definition",
1469
- "entityType": "indexes",
1470
- "schema": "public",
1471
- "table": "relay_agent_definition_revisions"
1472
- },
1473
- {
1474
- "nameExplicit": true,
1475
- "columns": [
1476
- {
1477
- "value": "name",
1478
- "isExpression": false,
1479
- "asc": true,
1480
- "nullsFirst": false,
1481
- "opclass": null
1482
- }
1483
- ],
1484
- "isUnique": false,
1485
- "where": null,
1486
- "with": "",
1487
- "method": "btree",
1488
- "concurrently": false,
1489
- "name": "idx_relay_agent_definitions_name",
1490
- "entityType": "indexes",
1491
- "schema": "public",
1492
- "table": "relay_agent_definitions"
1493
- },
1494
- {
1495
- "nameExplicit": true,
1496
- "columns": [
1497
- {
1498
- "value": "execution_id",
1499
- "isExpression": false,
1500
- "asc": true,
1501
- "nullsFirst": false,
1502
- "opclass": null
1503
- }
1504
- ],
1505
- "isUnique": false,
1506
- "where": null,
1507
- "with": "",
1508
- "method": "btree",
1509
- "concurrently": false,
1510
- "name": "idx_relay_child_executions_parent",
1511
- "entityType": "indexes",
1512
- "schema": "public",
1513
- "table": "relay_child_executions"
1514
- },
1515
- {
1516
- "nameExplicit": true,
1517
- "columns": [
1518
- {
1519
- "value": "state",
1520
- "isExpression": false,
1521
- "asc": true,
1522
- "nullsFirst": false,
1523
- "opclass": null
1524
- },
1525
- {
1526
- "value": "available_at",
1527
- "isExpression": false,
1528
- "asc": true,
1529
- "nullsFirst": false,
1530
- "opclass": null
1531
- }
1532
- ],
1533
- "isUnique": false,
1534
- "where": null,
1535
- "with": "",
1536
- "method": "btree",
1537
- "concurrently": false,
1538
- "name": "idx_relay_envelope_ready_state_available",
1539
- "entityType": "indexes",
1540
- "schema": "public",
1541
- "table": "relay_envelope_ready"
1542
- },
1543
- {
1544
- "nameExplicit": true,
1545
- "columns": [
1546
- {
1547
- "value": "claim_expires_at",
1548
- "isExpression": false,
1549
- "asc": true,
1550
- "nullsFirst": false,
1551
- "opclass": null
1552
- }
1553
- ],
1554
- "isUnique": false,
1555
- "where": null,
1556
- "with": "",
1557
- "method": "btree",
1558
- "concurrently": false,
1559
- "name": "idx_relay_envelope_ready_claim_expires",
1560
- "entityType": "indexes",
1561
- "schema": "public",
1562
- "table": "relay_envelope_ready"
1563
- },
1564
- {
1565
- "nameExplicit": true,
1566
- "columns": [
1567
- {
1568
- "value": "idempotency_key",
1569
- "isExpression": false,
1570
- "asc": true,
1571
- "nullsFirst": false,
1572
- "opclass": null
1573
- }
1574
- ],
1575
- "isUnique": true,
1576
- "where": null,
1577
- "with": "",
1578
- "method": "btree",
1579
- "concurrently": false,
1580
- "name": "uq_relay_envelope_ready_idempotency",
1581
- "entityType": "indexes",
1582
- "schema": "public",
1583
- "table": "relay_envelope_ready"
1584
- },
1585
- {
1586
- "nameExplicit": true,
1587
- "columns": [
1588
- {
1589
- "value": "execution_id",
1590
- "isExpression": false,
1591
- "asc": true,
1592
- "nullsFirst": false,
1593
- "opclass": null
1594
- },
1595
- {
1596
- "value": "created_at",
1597
- "isExpression": false,
1598
- "asc": true,
1599
- "nullsFirst": false,
1600
- "opclass": null
1601
- }
1602
- ],
1603
- "isUnique": false,
1604
- "where": null,
1605
- "with": "",
1606
- "method": "btree",
1607
- "concurrently": false,
1608
- "name": "idx_relay_envelopes_execution",
1609
- "entityType": "indexes",
1610
- "schema": "public",
1611
- "table": "relay_envelopes"
1612
- },
1613
- {
1614
- "nameExplicit": true,
1615
- "columns": [
1616
- {
1617
- "value": "to_address_id",
1618
- "isExpression": false,
1619
- "asc": true,
1620
- "nullsFirst": false,
1621
- "opclass": null
1622
- },
1623
- {
1624
- "value": "created_at",
1625
- "isExpression": false,
1626
- "asc": true,
1627
- "nullsFirst": false,
1628
- "opclass": null
1629
- }
1630
- ],
1631
- "isUnique": false,
1632
- "where": null,
1633
- "with": "",
1634
- "method": "btree",
1635
- "concurrently": false,
1636
- "name": "idx_relay_envelopes_to_address",
1637
- "entityType": "indexes",
1638
- "schema": "public",
1639
- "table": "relay_envelopes"
1640
- },
1641
- {
1642
- "nameExplicit": true,
1643
- "columns": [
1644
- {
1645
- "value": "execution_id",
1646
- "isExpression": false,
1647
- "asc": true,
1648
- "nullsFirst": false,
1649
- "opclass": null
1650
- },
1651
- {
1652
- "value": "created_at",
1653
- "isExpression": false,
1654
- "asc": true,
1655
- "nullsFirst": false,
1656
- "opclass": null
1657
- }
1658
- ],
1659
- "isUnique": false,
1660
- "where": null,
1661
- "with": "",
1662
- "method": "btree",
1663
- "concurrently": false,
1664
- "name": "idx_relay_execution_events_execution",
1665
- "entityType": "indexes",
1666
- "schema": "public",
1667
- "table": "relay_execution_events"
1668
- },
1669
- {
1670
- "nameExplicit": true,
1671
- "columns": [
1672
- {
1673
- "value": "execution_id",
1674
- "isExpression": false,
1675
- "asc": true,
1676
- "nullsFirst": false,
1677
- "opclass": null
1678
- },
1679
- {
1680
- "value": "sequence",
1681
- "isExpression": false,
1682
- "asc": true,
1683
- "nullsFirst": false,
1684
- "opclass": null
1685
- }
1686
- ],
1687
- "isUnique": true,
1688
- "where": null,
1689
- "with": "",
1690
- "method": "btree",
1691
- "concurrently": false,
1692
- "name": "uq_relay_execution_events_sequence",
1693
- "entityType": "indexes",
1694
- "schema": "public",
1695
- "table": "relay_execution_events"
1696
- },
1697
- {
1698
- "nameExplicit": true,
1699
- "columns": [
1700
- {
1701
- "value": "cursor",
1702
- "isExpression": false,
1703
- "asc": true,
1704
- "nullsFirst": false,
1705
- "opclass": null
1706
- }
1707
- ],
1708
- "isUnique": true,
1709
- "where": null,
1710
- "with": "",
1711
- "method": "btree",
1712
- "concurrently": false,
1713
- "name": "uq_relay_execution_events_cursor",
1714
- "entityType": "indexes",
1715
- "schema": "public",
1716
- "table": "relay_execution_events"
1717
- },
1718
- {
1719
- "nameExplicit": true,
1720
- "columns": [
1721
- {
1722
- "value": "root_address_id",
1723
- "isExpression": false,
1724
- "asc": true,
1725
- "nullsFirst": false,
1726
- "opclass": null
1727
- },
1728
- {
1729
- "value": "status",
1730
- "isExpression": false,
1731
- "asc": true,
1732
- "nullsFirst": false,
1733
- "opclass": null
1734
- }
1735
- ],
1736
- "isUnique": false,
1737
- "where": null,
1738
- "with": "",
1739
- "method": "btree",
1740
- "concurrently": false,
1741
- "name": "idx_relay_executions_root_status",
1742
- "entityType": "indexes",
1743
- "schema": "public",
1744
- "table": "relay_executions"
1745
- },
1746
- {
1747
- "nameExplicit": true,
1748
- "columns": [
1749
- {
1750
- "value": "scope",
1751
- "isExpression": false,
1752
- "asc": true,
1753
- "nullsFirst": false,
1754
- "opclass": null
1755
- },
1756
- {
1757
- "value": "operation",
1758
- "isExpression": false,
1759
- "asc": true,
1760
- "nullsFirst": false,
1761
- "opclass": null
1762
- },
1763
- {
1764
- "value": "key",
1765
- "isExpression": false,
1766
- "asc": true,
1767
- "nullsFirst": false,
1768
- "opclass": null
1769
- }
1770
- ],
1771
- "isUnique": true,
1772
- "where": null,
1773
- "with": "",
1774
- "method": "btree",
1775
- "concurrently": false,
1776
- "name": "uq_relay_idempotency_scope_operation_key",
1777
- "entityType": "indexes",
1778
- "schema": "public",
1779
- "table": "relay_idempotency_keys"
1780
- },
1781
- {
1782
- "nameExplicit": true,
1783
- "columns": [
1784
- {
1785
- "value": "envelope_ready_id",
1786
- "isExpression": false,
1787
- "asc": true,
1788
- "nullsFirst": false,
1789
- "opclass": null
1790
- },
1791
- {
1792
- "value": "created_at",
1793
- "isExpression": false,
1794
- "asc": true,
1795
- "nullsFirst": false,
1796
- "opclass": null
1797
- }
1798
- ],
1799
- "isUnique": false,
1800
- "where": null,
1801
- "with": "",
1802
- "method": "btree",
1803
- "concurrently": false,
1804
- "name": "idx_relay_route_attempts_ready",
1805
- "entityType": "indexes",
1806
- "schema": "public",
1807
- "table": "relay_route_attempts"
1808
- },
1809
- {
1810
- "nameExplicit": true,
1811
- "columns": [
1812
- {
1813
- "value": "execution_id",
1814
- "isExpression": false,
1815
- "asc": true,
1816
- "nullsFirst": false,
1817
- "opclass": null
1818
- },
1819
- {
1820
- "value": "created_at",
1821
- "isExpression": false,
1822
- "asc": true,
1823
- "nullsFirst": false,
1824
- "opclass": null
1825
- }
1826
- ],
1827
- "isUnique": false,
1828
- "where": null,
1829
- "with": "",
1830
- "method": "btree",
1831
- "concurrently": false,
1832
- "name": "idx_relay_tool_calls_execution",
1833
- "entityType": "indexes",
1834
- "schema": "public",
1835
- "table": "relay_tool_calls"
1836
- },
1837
- {
1838
- "nameExplicit": true,
1839
- "columns": [
1840
- {
1841
- "value": "execution_id",
1842
- "isExpression": false,
1843
- "asc": true,
1844
- "nullsFirst": false,
1845
- "opclass": null
1846
- },
1847
- {
1848
- "value": "state",
1849
- "isExpression": false,
1850
- "asc": true,
1851
- "nullsFirst": false,
1852
- "opclass": null
1853
- }
1854
- ],
1855
- "isUnique": false,
1856
- "where": null,
1857
- "with": "",
1858
- "method": "btree",
1859
- "concurrently": false,
1860
- "name": "idx_relay_waits_execution_state",
1861
- "entityType": "indexes",
1862
- "schema": "public",
1863
- "table": "relay_waits"
1864
- },
1865
- {
1866
- "columns": ["agent_definition_id", "revision"],
1867
- "nameExplicit": true,
1868
- "name": "pk_relay_agent_definition_revisions",
1869
- "entityType": "pks",
1870
- "schema": "public",
1871
- "table": "relay_agent_definition_revisions"
1872
- },
1873
- {
1874
- "columns": ["id"],
1875
- "nameExplicit": false,
1876
- "name": "relay_address_book_entries_pkey",
1877
- "schema": "public",
1878
- "table": "relay_address_book_entries",
1879
- "entityType": "pks"
1880
- },
1881
- {
1882
- "columns": ["id"],
1883
- "nameExplicit": false,
1884
- "name": "relay_agent_definitions_pkey",
1885
- "schema": "public",
1886
- "table": "relay_agent_definitions",
1887
- "entityType": "pks"
1888
- },
1889
- {
1890
- "columns": ["id"],
1891
- "nameExplicit": false,
1892
- "name": "relay_child_executions_pkey",
1893
- "schema": "public",
1894
- "table": "relay_child_executions",
1895
- "entityType": "pks"
1896
- },
1897
- {
1898
- "columns": ["id"],
1899
- "nameExplicit": false,
1900
- "name": "relay_envelope_ready_pkey",
1901
- "schema": "public",
1902
- "table": "relay_envelope_ready",
1903
- "entityType": "pks"
1904
- },
1905
- {
1906
- "columns": ["id"],
1907
- "nameExplicit": false,
1908
- "name": "relay_envelopes_pkey",
1909
- "schema": "public",
1910
- "table": "relay_envelopes",
1911
- "entityType": "pks"
1912
- },
1913
- {
1914
- "columns": ["id"],
1915
- "nameExplicit": false,
1916
- "name": "relay_execution_events_pkey",
1917
- "schema": "public",
1918
- "table": "relay_execution_events",
1919
- "entityType": "pks"
1920
- },
1921
- {
1922
- "columns": ["id"],
1923
- "nameExplicit": false,
1924
- "name": "relay_executions_pkey",
1925
- "schema": "public",
1926
- "table": "relay_executions",
1927
- "entityType": "pks"
1928
- },
1929
- {
1930
- "columns": ["id"],
1931
- "nameExplicit": false,
1932
- "name": "relay_idempotency_keys_pkey",
1933
- "schema": "public",
1934
- "table": "relay_idempotency_keys",
1935
- "entityType": "pks"
1936
- },
1937
- {
1938
- "columns": ["id"],
1939
- "nameExplicit": false,
1940
- "name": "relay_route_attempts_pkey",
1941
- "schema": "public",
1942
- "table": "relay_route_attempts",
1943
- "entityType": "pks"
1944
- },
1945
- {
1946
- "columns": ["id"],
1947
- "nameExplicit": false,
1948
- "name": "relay_tool_calls_pkey",
1949
- "schema": "public",
1950
- "table": "relay_tool_calls",
1951
- "entityType": "pks"
1952
- },
1953
- {
1954
- "columns": ["tool_call_id"],
1955
- "nameExplicit": false,
1956
- "name": "relay_tool_results_pkey",
1957
- "schema": "public",
1958
- "table": "relay_tool_results",
1959
- "entityType": "pks"
1960
- },
1961
- {
1962
- "columns": ["id"],
1963
- "nameExplicit": false,
1964
- "name": "relay_waits_pkey",
1965
- "schema": "public",
1966
- "table": "relay_waits",
1967
- "entityType": "pks"
1968
- }
1969
- ],
1970
- "renames": []
1971
- }