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