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