@panorama-ai/gateway 2.26.101 → 2.26.120
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.
package/dist/database.types.d.ts
CHANGED
|
@@ -94,6 +94,101 @@ export type Database = {
|
|
|
94
94
|
};
|
|
95
95
|
Relationships: [];
|
|
96
96
|
};
|
|
97
|
+
agent_cycle_contexts: {
|
|
98
|
+
Row: {
|
|
99
|
+
agent_id: string;
|
|
100
|
+
context_char_count: number;
|
|
101
|
+
context_hash: string | null;
|
|
102
|
+
created_at: string;
|
|
103
|
+
cycle_id: string;
|
|
104
|
+
full_context: string;
|
|
105
|
+
updated_at: string;
|
|
106
|
+
};
|
|
107
|
+
Insert: {
|
|
108
|
+
agent_id: string;
|
|
109
|
+
context_char_count: number;
|
|
110
|
+
context_hash?: string | null;
|
|
111
|
+
created_at?: string;
|
|
112
|
+
cycle_id: string;
|
|
113
|
+
full_context: string;
|
|
114
|
+
updated_at?: string;
|
|
115
|
+
};
|
|
116
|
+
Update: {
|
|
117
|
+
agent_id?: string;
|
|
118
|
+
context_char_count?: number;
|
|
119
|
+
context_hash?: string | null;
|
|
120
|
+
created_at?: string;
|
|
121
|
+
cycle_id?: string;
|
|
122
|
+
full_context?: string;
|
|
123
|
+
updated_at?: string;
|
|
124
|
+
};
|
|
125
|
+
Relationships: [
|
|
126
|
+
{
|
|
127
|
+
foreignKeyName: "agent_cycle_contexts_agent_id_fkey";
|
|
128
|
+
columns: ["agent_id"];
|
|
129
|
+
isOneToOne: false;
|
|
130
|
+
referencedRelation: "agents";
|
|
131
|
+
referencedColumns: ["id"];
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
foreignKeyName: "agent_cycle_contexts_cycle_id_fkey";
|
|
135
|
+
columns: ["cycle_id"];
|
|
136
|
+
isOneToOne: true;
|
|
137
|
+
referencedRelation: "agent_cycles";
|
|
138
|
+
referencedColumns: ["id"];
|
|
139
|
+
}
|
|
140
|
+
];
|
|
141
|
+
};
|
|
142
|
+
agent_cycles: {
|
|
143
|
+
Row: {
|
|
144
|
+
agent_id: string;
|
|
145
|
+
completed_at: string | null;
|
|
146
|
+
correlation_id: string | null;
|
|
147
|
+
created_at: string;
|
|
148
|
+
events_persisted_at: string | null;
|
|
149
|
+
id: string;
|
|
150
|
+
job_id: string;
|
|
151
|
+
metadata: Json;
|
|
152
|
+
started_at: string;
|
|
153
|
+
total_cycle_cost: number | null;
|
|
154
|
+
updated_at: string;
|
|
155
|
+
};
|
|
156
|
+
Insert: {
|
|
157
|
+
agent_id: string;
|
|
158
|
+
completed_at?: string | null;
|
|
159
|
+
correlation_id?: string | null;
|
|
160
|
+
created_at?: string;
|
|
161
|
+
events_persisted_at?: string | null;
|
|
162
|
+
id?: string;
|
|
163
|
+
job_id: string;
|
|
164
|
+
metadata?: Json;
|
|
165
|
+
started_at?: string;
|
|
166
|
+
total_cycle_cost?: number | null;
|
|
167
|
+
updated_at?: string;
|
|
168
|
+
};
|
|
169
|
+
Update: {
|
|
170
|
+
agent_id?: string;
|
|
171
|
+
completed_at?: string | null;
|
|
172
|
+
correlation_id?: string | null;
|
|
173
|
+
created_at?: string;
|
|
174
|
+
events_persisted_at?: string | null;
|
|
175
|
+
id?: string;
|
|
176
|
+
job_id?: string;
|
|
177
|
+
metadata?: Json;
|
|
178
|
+
started_at?: string;
|
|
179
|
+
total_cycle_cost?: number | null;
|
|
180
|
+
updated_at?: string;
|
|
181
|
+
};
|
|
182
|
+
Relationships: [
|
|
183
|
+
{
|
|
184
|
+
foreignKeyName: "agent_cycles_agent_id_fkey";
|
|
185
|
+
columns: ["agent_id"];
|
|
186
|
+
isOneToOne: false;
|
|
187
|
+
referencedRelation: "agents";
|
|
188
|
+
referencedColumns: ["id"];
|
|
189
|
+
}
|
|
190
|
+
];
|
|
191
|
+
};
|
|
97
192
|
agent_file_locks: {
|
|
98
193
|
Row: {
|
|
99
194
|
agent_id: string | null;
|
|
@@ -303,6 +398,7 @@ export type Database = {
|
|
|
303
398
|
Row: {
|
|
304
399
|
agent_id: string;
|
|
305
400
|
currency: string;
|
|
401
|
+
cycle_id: string | null;
|
|
306
402
|
id: string;
|
|
307
403
|
metadata: Json | null;
|
|
308
404
|
provider: string;
|
|
@@ -319,6 +415,7 @@ export type Database = {
|
|
|
319
415
|
Insert: {
|
|
320
416
|
agent_id: string;
|
|
321
417
|
currency?: string;
|
|
418
|
+
cycle_id?: string | null;
|
|
322
419
|
id?: string;
|
|
323
420
|
metadata?: Json | null;
|
|
324
421
|
provider: string;
|
|
@@ -335,6 +432,7 @@ export type Database = {
|
|
|
335
432
|
Update: {
|
|
336
433
|
agent_id?: string;
|
|
337
434
|
currency?: string;
|
|
435
|
+
cycle_id?: string | null;
|
|
338
436
|
id?: string;
|
|
339
437
|
metadata?: Json | null;
|
|
340
438
|
provider?: string;
|
|
@@ -355,6 +453,13 @@ export type Database = {
|
|
|
355
453
|
isOneToOne: false;
|
|
356
454
|
referencedRelation: "agents";
|
|
357
455
|
referencedColumns: ["id"];
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
foreignKeyName: "agent_usage_cycle_id_fkey";
|
|
459
|
+
columns: ["cycle_id"];
|
|
460
|
+
isOneToOne: false;
|
|
461
|
+
referencedRelation: "agent_cycles";
|
|
462
|
+
referencedColumns: ["id"];
|
|
358
463
|
}
|
|
359
464
|
];
|
|
360
465
|
};
|
|
@@ -1384,17 +1489,20 @@ export type Database = {
|
|
|
1384
1489
|
character_count: number | null;
|
|
1385
1490
|
content: string;
|
|
1386
1491
|
cost: number | null;
|
|
1492
|
+
cycle_id: string | null;
|
|
1387
1493
|
date: string;
|
|
1388
1494
|
formatted_content: string | null;
|
|
1389
1495
|
full_context: string | null;
|
|
1390
1496
|
id: string;
|
|
1391
1497
|
is_expandable: boolean | null;
|
|
1392
1498
|
log_type: string | null;
|
|
1499
|
+
message_id: string | null;
|
|
1393
1500
|
metadata: Json | null;
|
|
1394
1501
|
performance_metrics: Json | null;
|
|
1395
1502
|
sequence_number: number | null;
|
|
1396
1503
|
summary: string | null;
|
|
1397
1504
|
title: string | null;
|
|
1505
|
+
tool_call_id: string | null;
|
|
1398
1506
|
type: string;
|
|
1399
1507
|
user_id: string | null;
|
|
1400
1508
|
};
|
|
@@ -1404,17 +1512,20 @@ export type Database = {
|
|
|
1404
1512
|
character_count?: number | null;
|
|
1405
1513
|
content: string;
|
|
1406
1514
|
cost?: number | null;
|
|
1515
|
+
cycle_id?: string | null;
|
|
1407
1516
|
date?: string;
|
|
1408
1517
|
formatted_content?: string | null;
|
|
1409
1518
|
full_context?: string | null;
|
|
1410
1519
|
id?: string;
|
|
1411
1520
|
is_expandable?: boolean | null;
|
|
1412
1521
|
log_type?: string | null;
|
|
1522
|
+
message_id?: string | null;
|
|
1413
1523
|
metadata?: Json | null;
|
|
1414
1524
|
performance_metrics?: Json | null;
|
|
1415
1525
|
sequence_number?: number | null;
|
|
1416
1526
|
summary?: string | null;
|
|
1417
1527
|
title?: string | null;
|
|
1528
|
+
tool_call_id?: string | null;
|
|
1418
1529
|
type?: string;
|
|
1419
1530
|
user_id?: string | null;
|
|
1420
1531
|
};
|
|
@@ -1424,17 +1535,20 @@ export type Database = {
|
|
|
1424
1535
|
character_count?: number | null;
|
|
1425
1536
|
content?: string;
|
|
1426
1537
|
cost?: number | null;
|
|
1538
|
+
cycle_id?: string | null;
|
|
1427
1539
|
date?: string;
|
|
1428
1540
|
formatted_content?: string | null;
|
|
1429
1541
|
full_context?: string | null;
|
|
1430
1542
|
id?: string;
|
|
1431
1543
|
is_expandable?: boolean | null;
|
|
1432
1544
|
log_type?: string | null;
|
|
1545
|
+
message_id?: string | null;
|
|
1433
1546
|
metadata?: Json | null;
|
|
1434
1547
|
performance_metrics?: Json | null;
|
|
1435
1548
|
sequence_number?: number | null;
|
|
1436
1549
|
summary?: string | null;
|
|
1437
1550
|
title?: string | null;
|
|
1551
|
+
tool_call_id?: string | null;
|
|
1438
1552
|
type?: string;
|
|
1439
1553
|
user_id?: string | null;
|
|
1440
1554
|
};
|
|
@@ -1445,6 +1559,34 @@ export type Database = {
|
|
|
1445
1559
|
isOneToOne: false;
|
|
1446
1560
|
referencedRelation: "agents";
|
|
1447
1561
|
referencedColumns: ["id"];
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
foreignKeyName: "logs_cycle_id_fkey";
|
|
1565
|
+
columns: ["cycle_id"];
|
|
1566
|
+
isOneToOne: false;
|
|
1567
|
+
referencedRelation: "agent_cycles";
|
|
1568
|
+
referencedColumns: ["id"];
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
foreignKeyName: "logs_message_id_fkey";
|
|
1572
|
+
columns: ["message_id"];
|
|
1573
|
+
isOneToOne: false;
|
|
1574
|
+
referencedRelation: "messages";
|
|
1575
|
+
referencedColumns: ["id"];
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
foreignKeyName: "logs_message_id_fkey";
|
|
1579
|
+
columns: ["message_id"];
|
|
1580
|
+
isOneToOne: false;
|
|
1581
|
+
referencedRelation: "messages_for_current_user";
|
|
1582
|
+
referencedColumns: ["id"];
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
foreignKeyName: "logs_tool_call_id_fkey";
|
|
1586
|
+
columns: ["tool_call_id"];
|
|
1587
|
+
isOneToOne: false;
|
|
1588
|
+
referencedRelation: "tool_calls";
|
|
1589
|
+
referencedColumns: ["id"];
|
|
1448
1590
|
}
|
|
1449
1591
|
];
|
|
1450
1592
|
};
|
|
@@ -1453,6 +1595,7 @@ export type Database = {
|
|
|
1453
1595
|
agent_id: string;
|
|
1454
1596
|
attachments: Json | null;
|
|
1455
1597
|
content: string;
|
|
1598
|
+
cycle_id: string | null;
|
|
1456
1599
|
edited_at: string | null;
|
|
1457
1600
|
id: string;
|
|
1458
1601
|
local_id: string | null;
|
|
@@ -1475,6 +1618,7 @@ export type Database = {
|
|
|
1475
1618
|
agent_id: string;
|
|
1476
1619
|
attachments?: Json | null;
|
|
1477
1620
|
content: string;
|
|
1621
|
+
cycle_id?: string | null;
|
|
1478
1622
|
edited_at?: string | null;
|
|
1479
1623
|
id?: string;
|
|
1480
1624
|
local_id?: string | null;
|
|
@@ -1497,6 +1641,7 @@ export type Database = {
|
|
|
1497
1641
|
agent_id?: string;
|
|
1498
1642
|
attachments?: Json | null;
|
|
1499
1643
|
content?: string;
|
|
1644
|
+
cycle_id?: string | null;
|
|
1500
1645
|
edited_at?: string | null;
|
|
1501
1646
|
id?: string;
|
|
1502
1647
|
local_id?: string | null;
|
|
@@ -1523,6 +1668,13 @@ export type Database = {
|
|
|
1523
1668
|
referencedRelation: "agents";
|
|
1524
1669
|
referencedColumns: ["id"];
|
|
1525
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
foreignKeyName: "messages_cycle_id_fkey";
|
|
1673
|
+
columns: ["cycle_id"];
|
|
1674
|
+
isOneToOne: false;
|
|
1675
|
+
referencedRelation: "agent_cycles";
|
|
1676
|
+
referencedColumns: ["id"];
|
|
1677
|
+
},
|
|
1526
1678
|
{
|
|
1527
1679
|
foreignKeyName: "messages_reply_to_id_fkey";
|
|
1528
1680
|
columns: ["reply_to_id"];
|
|
@@ -2142,6 +2294,133 @@ export type Database = {
|
|
|
2142
2294
|
}
|
|
2143
2295
|
];
|
|
2144
2296
|
};
|
|
2297
|
+
subagent_notification_deliveries: {
|
|
2298
|
+
Row: {
|
|
2299
|
+
agent_id: string;
|
|
2300
|
+
created_at: string;
|
|
2301
|
+
delivered_at: string | null;
|
|
2302
|
+
delivery_status: string;
|
|
2303
|
+
error: string | null;
|
|
2304
|
+
event_id: string;
|
|
2305
|
+
id: string;
|
|
2306
|
+
subscription_id: string;
|
|
2307
|
+
updated_at: string;
|
|
2308
|
+
};
|
|
2309
|
+
Insert: {
|
|
2310
|
+
agent_id: string;
|
|
2311
|
+
created_at?: string;
|
|
2312
|
+
delivered_at?: string | null;
|
|
2313
|
+
delivery_status: string;
|
|
2314
|
+
error?: string | null;
|
|
2315
|
+
event_id: string;
|
|
2316
|
+
id?: string;
|
|
2317
|
+
subscription_id: string;
|
|
2318
|
+
updated_at?: string;
|
|
2319
|
+
};
|
|
2320
|
+
Update: {
|
|
2321
|
+
agent_id?: string;
|
|
2322
|
+
created_at?: string;
|
|
2323
|
+
delivered_at?: string | null;
|
|
2324
|
+
delivery_status?: string;
|
|
2325
|
+
error?: string | null;
|
|
2326
|
+
event_id?: string;
|
|
2327
|
+
id?: string;
|
|
2328
|
+
subscription_id?: string;
|
|
2329
|
+
updated_at?: string;
|
|
2330
|
+
};
|
|
2331
|
+
Relationships: [
|
|
2332
|
+
{
|
|
2333
|
+
foreignKeyName: "subagent_notification_deliveries_agent_id_fkey";
|
|
2334
|
+
columns: ["agent_id"];
|
|
2335
|
+
isOneToOne: false;
|
|
2336
|
+
referencedRelation: "agents";
|
|
2337
|
+
referencedColumns: ["id"];
|
|
2338
|
+
},
|
|
2339
|
+
{
|
|
2340
|
+
foreignKeyName: "subagent_notification_deliveries_event_id_fkey";
|
|
2341
|
+
columns: ["event_id"];
|
|
2342
|
+
isOneToOne: false;
|
|
2343
|
+
referencedRelation: "subagent_notification_events";
|
|
2344
|
+
referencedColumns: ["id"];
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
foreignKeyName: "subagent_notification_deliveries_subscription_id_fkey";
|
|
2348
|
+
columns: ["subscription_id"];
|
|
2349
|
+
isOneToOne: false;
|
|
2350
|
+
referencedRelation: "team_resource_subscriptions";
|
|
2351
|
+
referencedColumns: ["id"];
|
|
2352
|
+
}
|
|
2353
|
+
];
|
|
2354
|
+
};
|
|
2355
|
+
subagent_notification_events: {
|
|
2356
|
+
Row: {
|
|
2357
|
+
affected_subscriptions: string[];
|
|
2358
|
+
content: string;
|
|
2359
|
+
created_at: string;
|
|
2360
|
+
error: string | null;
|
|
2361
|
+
event_key: string;
|
|
2362
|
+
event_type: string;
|
|
2363
|
+
id: string;
|
|
2364
|
+
metadata: Json;
|
|
2365
|
+
processed_at: string | null;
|
|
2366
|
+
processing_started_at: string | null;
|
|
2367
|
+
retry_count: number;
|
|
2368
|
+
status: string;
|
|
2369
|
+
subagent_id: string;
|
|
2370
|
+
summary: string | null;
|
|
2371
|
+
team_id: string;
|
|
2372
|
+
};
|
|
2373
|
+
Insert: {
|
|
2374
|
+
affected_subscriptions?: string[];
|
|
2375
|
+
content: string;
|
|
2376
|
+
created_at?: string;
|
|
2377
|
+
error?: string | null;
|
|
2378
|
+
event_key: string;
|
|
2379
|
+
event_type: string;
|
|
2380
|
+
id?: string;
|
|
2381
|
+
metadata?: Json;
|
|
2382
|
+
processed_at?: string | null;
|
|
2383
|
+
processing_started_at?: string | null;
|
|
2384
|
+
retry_count?: number;
|
|
2385
|
+
status?: string;
|
|
2386
|
+
subagent_id: string;
|
|
2387
|
+
summary?: string | null;
|
|
2388
|
+
team_id: string;
|
|
2389
|
+
};
|
|
2390
|
+
Update: {
|
|
2391
|
+
affected_subscriptions?: string[];
|
|
2392
|
+
content?: string;
|
|
2393
|
+
created_at?: string;
|
|
2394
|
+
error?: string | null;
|
|
2395
|
+
event_key?: string;
|
|
2396
|
+
event_type?: string;
|
|
2397
|
+
id?: string;
|
|
2398
|
+
metadata?: Json;
|
|
2399
|
+
processed_at?: string | null;
|
|
2400
|
+
processing_started_at?: string | null;
|
|
2401
|
+
retry_count?: number;
|
|
2402
|
+
status?: string;
|
|
2403
|
+
subagent_id?: string;
|
|
2404
|
+
summary?: string | null;
|
|
2405
|
+
team_id?: string;
|
|
2406
|
+
};
|
|
2407
|
+
Relationships: [
|
|
2408
|
+
{
|
|
2409
|
+
foreignKeyName: "subagent_notification_events_subagent_id_fkey";
|
|
2410
|
+
columns: ["subagent_id"];
|
|
2411
|
+
isOneToOne: false;
|
|
2412
|
+
referencedRelation: "subagents";
|
|
2413
|
+
referencedColumns: ["id"];
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
foreignKeyName: "subagent_notification_events_team_id_fkey";
|
|
2417
|
+
columns: ["team_id"];
|
|
2418
|
+
isOneToOne: false;
|
|
2419
|
+
referencedRelation: "teams";
|
|
2420
|
+
referencedColumns: ["id"];
|
|
2421
|
+
}
|
|
2422
|
+
];
|
|
2423
|
+
};
|
|
2145
2424
|
subagent_run_events: {
|
|
2146
2425
|
Row: {
|
|
2147
2426
|
created_at: string;
|
|
@@ -2883,6 +3162,72 @@ export type Database = {
|
|
|
2883
3162
|
}
|
|
2884
3163
|
];
|
|
2885
3164
|
};
|
|
3165
|
+
team_subscription_state_transitions: {
|
|
3166
|
+
Row: {
|
|
3167
|
+
changed_at: string;
|
|
3168
|
+
from_lifecycle_state: string | null;
|
|
3169
|
+
from_monthly_amount_cents: number | null;
|
|
3170
|
+
from_pending_change_at: string | null;
|
|
3171
|
+
from_pending_monthly_amount_cents: number | null;
|
|
3172
|
+
from_status: string | null;
|
|
3173
|
+
id: string;
|
|
3174
|
+
team_id: string;
|
|
3175
|
+
team_subscription_id: string;
|
|
3176
|
+
to_lifecycle_state: string;
|
|
3177
|
+
to_monthly_amount_cents: number;
|
|
3178
|
+
to_pending_change_at: string | null;
|
|
3179
|
+
to_pending_monthly_amount_cents: number | null;
|
|
3180
|
+
to_status: string;
|
|
3181
|
+
};
|
|
3182
|
+
Insert: {
|
|
3183
|
+
changed_at?: string;
|
|
3184
|
+
from_lifecycle_state?: string | null;
|
|
3185
|
+
from_monthly_amount_cents?: number | null;
|
|
3186
|
+
from_pending_change_at?: string | null;
|
|
3187
|
+
from_pending_monthly_amount_cents?: number | null;
|
|
3188
|
+
from_status?: string | null;
|
|
3189
|
+
id?: string;
|
|
3190
|
+
team_id: string;
|
|
3191
|
+
team_subscription_id: string;
|
|
3192
|
+
to_lifecycle_state: string;
|
|
3193
|
+
to_monthly_amount_cents: number;
|
|
3194
|
+
to_pending_change_at?: string | null;
|
|
3195
|
+
to_pending_monthly_amount_cents?: number | null;
|
|
3196
|
+
to_status: string;
|
|
3197
|
+
};
|
|
3198
|
+
Update: {
|
|
3199
|
+
changed_at?: string;
|
|
3200
|
+
from_lifecycle_state?: string | null;
|
|
3201
|
+
from_monthly_amount_cents?: number | null;
|
|
3202
|
+
from_pending_change_at?: string | null;
|
|
3203
|
+
from_pending_monthly_amount_cents?: number | null;
|
|
3204
|
+
from_status?: string | null;
|
|
3205
|
+
id?: string;
|
|
3206
|
+
team_id?: string;
|
|
3207
|
+
team_subscription_id?: string;
|
|
3208
|
+
to_lifecycle_state?: string;
|
|
3209
|
+
to_monthly_amount_cents?: number;
|
|
3210
|
+
to_pending_change_at?: string | null;
|
|
3211
|
+
to_pending_monthly_amount_cents?: number | null;
|
|
3212
|
+
to_status?: string;
|
|
3213
|
+
};
|
|
3214
|
+
Relationships: [
|
|
3215
|
+
{
|
|
3216
|
+
foreignKeyName: "team_subscription_state_transitions_subscription_fkey";
|
|
3217
|
+
columns: ["team_subscription_id"];
|
|
3218
|
+
isOneToOne: false;
|
|
3219
|
+
referencedRelation: "team_subscriptions";
|
|
3220
|
+
referencedColumns: ["id"];
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
foreignKeyName: "team_subscription_state_transitions_team_fkey";
|
|
3224
|
+
columns: ["team_id"];
|
|
3225
|
+
isOneToOne: false;
|
|
3226
|
+
referencedRelation: "teams";
|
|
3227
|
+
referencedColumns: ["id"];
|
|
3228
|
+
}
|
|
3229
|
+
];
|
|
3230
|
+
};
|
|
2886
3231
|
team_subscriptions: {
|
|
2887
3232
|
Row: {
|
|
2888
3233
|
billing_provider: string | null;
|
|
@@ -3014,6 +3359,7 @@ export type Database = {
|
|
|
3014
3359
|
agent_id: string;
|
|
3015
3360
|
completed_at: string | null;
|
|
3016
3361
|
created_at: string;
|
|
3362
|
+
cycle_id: string | null;
|
|
3017
3363
|
id: string;
|
|
3018
3364
|
parameters: Json;
|
|
3019
3365
|
parent_tool_call_id: string | null;
|
|
@@ -3026,6 +3372,7 @@ export type Database = {
|
|
|
3026
3372
|
agent_id: string;
|
|
3027
3373
|
completed_at?: string | null;
|
|
3028
3374
|
created_at?: string;
|
|
3375
|
+
cycle_id?: string | null;
|
|
3029
3376
|
id?: string;
|
|
3030
3377
|
parameters: Json;
|
|
3031
3378
|
parent_tool_call_id?: string | null;
|
|
@@ -3038,6 +3385,7 @@ export type Database = {
|
|
|
3038
3385
|
agent_id?: string;
|
|
3039
3386
|
completed_at?: string | null;
|
|
3040
3387
|
created_at?: string;
|
|
3388
|
+
cycle_id?: string | null;
|
|
3041
3389
|
id?: string;
|
|
3042
3390
|
parameters?: Json;
|
|
3043
3391
|
parent_tool_call_id?: string | null;
|
|
@@ -3054,6 +3402,13 @@ export type Database = {
|
|
|
3054
3402
|
referencedRelation: "agents";
|
|
3055
3403
|
referencedColumns: ["id"];
|
|
3056
3404
|
},
|
|
3405
|
+
{
|
|
3406
|
+
foreignKeyName: "tool_calls_cycle_id_fkey";
|
|
3407
|
+
columns: ["cycle_id"];
|
|
3408
|
+
isOneToOne: false;
|
|
3409
|
+
referencedRelation: "agent_cycles";
|
|
3410
|
+
referencedColumns: ["id"];
|
|
3411
|
+
},
|
|
3057
3412
|
{
|
|
3058
3413
|
foreignKeyName: "tool_calls_parent_tool_call_id_fkey";
|
|
3059
3414
|
columns: ["parent_tool_call_id"];
|
|
@@ -4162,6 +4517,7 @@ export type Database = {
|
|
|
4162
4517
|
agent_id: string;
|
|
4163
4518
|
attachments: Json | null;
|
|
4164
4519
|
content: string;
|
|
4520
|
+
cycle_id: string | null;
|
|
4165
4521
|
edited_at: string | null;
|
|
4166
4522
|
id: string;
|
|
4167
4523
|
local_id: string | null;
|
|
@@ -4224,6 +4580,7 @@ export type Database = {
|
|
|
4224
4580
|
agent_id: string;
|
|
4225
4581
|
attachments: Json | null;
|
|
4226
4582
|
content: string;
|
|
4583
|
+
cycle_id: string | null;
|
|
4227
4584
|
edited_at: string | null;
|
|
4228
4585
|
id: string;
|
|
4229
4586
|
local_id: string | null;
|
|
@@ -4390,6 +4747,13 @@ export type Database = {
|
|
|
4390
4747
|
};
|
|
4391
4748
|
Returns: undefined;
|
|
4392
4749
|
};
|
|
4750
|
+
enqueue_subagent_notification_event_job: {
|
|
4751
|
+
Args: {
|
|
4752
|
+
p_delay_seconds?: number;
|
|
4753
|
+
p_event_id: string;
|
|
4754
|
+
};
|
|
4755
|
+
Returns: undefined;
|
|
4756
|
+
};
|
|
4393
4757
|
ensure_health_alert_resources: {
|
|
4394
4758
|
Args: {
|
|
4395
4759
|
p_team_id: string;
|
|
@@ -5119,6 +5483,14 @@ export type Database = {
|
|
|
5119
5483
|
};
|
|
5120
5484
|
Returns: boolean;
|
|
5121
5485
|
};
|
|
5486
|
+
process_subagent_notification_event: {
|
|
5487
|
+
Args: {
|
|
5488
|
+
p_event_id: string;
|
|
5489
|
+
p_max_retries?: number;
|
|
5490
|
+
p_retry_delay_seconds?: number;
|
|
5491
|
+
};
|
|
5492
|
+
Returns: Json;
|
|
5493
|
+
};
|
|
5122
5494
|
record_health_alert: {
|
|
5123
5495
|
Args: {
|
|
5124
5496
|
p_alert_type: string;
|
|
@@ -5174,6 +5546,14 @@ export type Database = {
|
|
|
5174
5546
|
recovered_job_id: number;
|
|
5175
5547
|
}[];
|
|
5176
5548
|
};
|
|
5549
|
+
recover_stuck_subagent_notification_events: {
|
|
5550
|
+
Args: {
|
|
5551
|
+
p_limit?: number;
|
|
5552
|
+
p_max_retries?: number;
|
|
5553
|
+
p_stuck_minutes?: number;
|
|
5554
|
+
};
|
|
5555
|
+
Returns: Json;
|
|
5556
|
+
};
|
|
5177
5557
|
register_ai_models: {
|
|
5178
5558
|
Args: {
|
|
5179
5559
|
p_models: Json;
|
|
@@ -5214,6 +5594,14 @@ export type Database = {
|
|
|
5214
5594
|
};
|
|
5215
5595
|
Returns: Json;
|
|
5216
5596
|
};
|
|
5597
|
+
resolve_subscription_lifecycle_state: {
|
|
5598
|
+
Args: {
|
|
5599
|
+
p_pending_change_at: string;
|
|
5600
|
+
p_pending_monthly_amount_cents: number;
|
|
5601
|
+
p_status: string;
|
|
5602
|
+
};
|
|
5603
|
+
Returns: string;
|
|
5604
|
+
};
|
|
5217
5605
|
restore_deleted_account: {
|
|
5218
5606
|
Args: {
|
|
5219
5607
|
p_user_id: string;
|