@panorama-ai/gateway 2.26.40 → 2.26.113
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/README.md +17 -0
- package/dist/child-process-env.d.ts +8 -0
- package/dist/child-process-env.d.ts.map +1 -0
- package/dist/child-process-env.js +58 -0
- package/dist/child-process-env.js.map +1 -0
- package/dist/cli-providers/claude.d.ts.map +1 -1
- package/dist/cli-providers/claude.js +4 -6
- package/dist/cli-providers/claude.js.map +1 -1
- package/dist/cli-providers/codex.d.ts.map +1 -1
- package/dist/cli-providers/codex.js +2 -6
- package/dist/cli-providers/codex.js.map +1 -1
- package/dist/cli-providers/gemini.d.ts.map +1 -1
- package/dist/cli-providers/gemini.js +2 -5
- package/dist/cli-providers/gemini.js.map +1 -1
- package/dist/database.types.d.ts +265 -20
- package/dist/database.types.d.ts.map +1 -1
- package/dist/database.types.js.map +1 -1
- package/dist/debug-redaction.d.ts +2 -0
- package/dist/debug-redaction.d.ts.map +1 -0
- package/dist/debug-redaction.js +286 -0
- package/dist/debug-redaction.js.map +1 -0
- package/dist/index.js +78 -53
- package/dist/index.js.map +1 -1
- package/dist/local-security.d.ts +7 -0
- package/dist/local-security.d.ts.map +1 -0
- package/dist/local-security.js +57 -0
- package/dist/local-security.js.map +1 -0
- package/dist/subagent-adapters/codex.d.ts.map +1 -1
- package/dist/subagent-adapters/codex.js +2 -40
- package/dist/subagent-adapters/codex.js.map +1 -1
- package/dist/subagent-adapters/gemini.d.ts.map +1 -1
- package/dist/subagent-adapters/gemini.js +2 -40
- package/dist/subagent-adapters/gemini.js.map +1 -1
- package/dist/supabase-config.d.ts +26 -0
- package/dist/supabase-config.d.ts.map +1 -0
- package/dist/supabase-config.js +64 -0
- package/dist/supabase-config.js.map +1 -0
- package/package.json +2 -1
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;
|
|
@@ -357,10 +455,10 @@ export type Database = {
|
|
|
357
455
|
referencedColumns: ["id"];
|
|
358
456
|
},
|
|
359
457
|
{
|
|
360
|
-
foreignKeyName: "
|
|
361
|
-
columns: ["
|
|
458
|
+
foreignKeyName: "agent_usage_cycle_id_fkey";
|
|
459
|
+
columns: ["cycle_id"];
|
|
362
460
|
isOneToOne: false;
|
|
363
|
-
referencedRelation: "
|
|
461
|
+
referencedRelation: "agent_cycles";
|
|
364
462
|
referencedColumns: ["id"];
|
|
365
463
|
}
|
|
366
464
|
];
|
|
@@ -1391,17 +1489,20 @@ export type Database = {
|
|
|
1391
1489
|
character_count: number | null;
|
|
1392
1490
|
content: string;
|
|
1393
1491
|
cost: number | null;
|
|
1492
|
+
cycle_id: string | null;
|
|
1394
1493
|
date: string;
|
|
1395
1494
|
formatted_content: string | null;
|
|
1396
1495
|
full_context: string | null;
|
|
1397
1496
|
id: string;
|
|
1398
1497
|
is_expandable: boolean | null;
|
|
1399
1498
|
log_type: string | null;
|
|
1499
|
+
message_id: string | null;
|
|
1400
1500
|
metadata: Json | null;
|
|
1401
1501
|
performance_metrics: Json | null;
|
|
1402
1502
|
sequence_number: number | null;
|
|
1403
1503
|
summary: string | null;
|
|
1404
1504
|
title: string | null;
|
|
1505
|
+
tool_call_id: string | null;
|
|
1405
1506
|
type: string;
|
|
1406
1507
|
user_id: string | null;
|
|
1407
1508
|
};
|
|
@@ -1411,17 +1512,20 @@ export type Database = {
|
|
|
1411
1512
|
character_count?: number | null;
|
|
1412
1513
|
content: string;
|
|
1413
1514
|
cost?: number | null;
|
|
1515
|
+
cycle_id?: string | null;
|
|
1414
1516
|
date?: string;
|
|
1415
1517
|
formatted_content?: string | null;
|
|
1416
1518
|
full_context?: string | null;
|
|
1417
1519
|
id?: string;
|
|
1418
1520
|
is_expandable?: boolean | null;
|
|
1419
1521
|
log_type?: string | null;
|
|
1522
|
+
message_id?: string | null;
|
|
1420
1523
|
metadata?: Json | null;
|
|
1421
1524
|
performance_metrics?: Json | null;
|
|
1422
1525
|
sequence_number?: number | null;
|
|
1423
1526
|
summary?: string | null;
|
|
1424
1527
|
title?: string | null;
|
|
1528
|
+
tool_call_id?: string | null;
|
|
1425
1529
|
type?: string;
|
|
1426
1530
|
user_id?: string | null;
|
|
1427
1531
|
};
|
|
@@ -1431,17 +1535,20 @@ export type Database = {
|
|
|
1431
1535
|
character_count?: number | null;
|
|
1432
1536
|
content?: string;
|
|
1433
1537
|
cost?: number | null;
|
|
1538
|
+
cycle_id?: string | null;
|
|
1434
1539
|
date?: string;
|
|
1435
1540
|
formatted_content?: string | null;
|
|
1436
1541
|
full_context?: string | null;
|
|
1437
1542
|
id?: string;
|
|
1438
1543
|
is_expandable?: boolean | null;
|
|
1439
1544
|
log_type?: string | null;
|
|
1545
|
+
message_id?: string | null;
|
|
1440
1546
|
metadata?: Json | null;
|
|
1441
1547
|
performance_metrics?: Json | null;
|
|
1442
1548
|
sequence_number?: number | null;
|
|
1443
1549
|
summary?: string | null;
|
|
1444
1550
|
title?: string | null;
|
|
1551
|
+
tool_call_id?: string | null;
|
|
1445
1552
|
type?: string;
|
|
1446
1553
|
user_id?: string | null;
|
|
1447
1554
|
};
|
|
@@ -1454,10 +1561,31 @@ export type Database = {
|
|
|
1454
1561
|
referencedColumns: ["id"];
|
|
1455
1562
|
},
|
|
1456
1563
|
{
|
|
1457
|
-
foreignKeyName: "
|
|
1458
|
-
columns: ["
|
|
1564
|
+
foreignKeyName: "logs_cycle_id_fkey";
|
|
1565
|
+
columns: ["cycle_id"];
|
|
1459
1566
|
isOneToOne: false;
|
|
1460
|
-
referencedRelation: "
|
|
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";
|
|
1461
1589
|
referencedColumns: ["id"];
|
|
1462
1590
|
}
|
|
1463
1591
|
];
|
|
@@ -1467,6 +1595,7 @@ export type Database = {
|
|
|
1467
1595
|
agent_id: string;
|
|
1468
1596
|
attachments: Json | null;
|
|
1469
1597
|
content: string;
|
|
1598
|
+
cycle_id: string | null;
|
|
1470
1599
|
edited_at: string | null;
|
|
1471
1600
|
id: string;
|
|
1472
1601
|
local_id: string | null;
|
|
@@ -1489,6 +1618,7 @@ export type Database = {
|
|
|
1489
1618
|
agent_id: string;
|
|
1490
1619
|
attachments?: Json | null;
|
|
1491
1620
|
content: string;
|
|
1621
|
+
cycle_id?: string | null;
|
|
1492
1622
|
edited_at?: string | null;
|
|
1493
1623
|
id?: string;
|
|
1494
1624
|
local_id?: string | null;
|
|
@@ -1511,6 +1641,7 @@ export type Database = {
|
|
|
1511
1641
|
agent_id?: string;
|
|
1512
1642
|
attachments?: Json | null;
|
|
1513
1643
|
content?: string;
|
|
1644
|
+
cycle_id?: string | null;
|
|
1514
1645
|
edited_at?: string | null;
|
|
1515
1646
|
id?: string;
|
|
1516
1647
|
local_id?: string | null;
|
|
@@ -1537,6 +1668,13 @@ export type Database = {
|
|
|
1537
1668
|
referencedRelation: "agents";
|
|
1538
1669
|
referencedColumns: ["id"];
|
|
1539
1670
|
},
|
|
1671
|
+
{
|
|
1672
|
+
foreignKeyName: "messages_cycle_id_fkey";
|
|
1673
|
+
columns: ["cycle_id"];
|
|
1674
|
+
isOneToOne: false;
|
|
1675
|
+
referencedRelation: "agent_cycles";
|
|
1676
|
+
referencedColumns: ["id"];
|
|
1677
|
+
},
|
|
1540
1678
|
{
|
|
1541
1679
|
foreignKeyName: "messages_reply_to_id_fkey";
|
|
1542
1680
|
columns: ["reply_to_id"];
|
|
@@ -2897,6 +3035,72 @@ export type Database = {
|
|
|
2897
3035
|
}
|
|
2898
3036
|
];
|
|
2899
3037
|
};
|
|
3038
|
+
team_subscription_state_transitions: {
|
|
3039
|
+
Row: {
|
|
3040
|
+
changed_at: string;
|
|
3041
|
+
from_lifecycle_state: string | null;
|
|
3042
|
+
from_monthly_amount_cents: number | null;
|
|
3043
|
+
from_pending_change_at: string | null;
|
|
3044
|
+
from_pending_monthly_amount_cents: number | null;
|
|
3045
|
+
from_status: string | null;
|
|
3046
|
+
id: string;
|
|
3047
|
+
team_id: string;
|
|
3048
|
+
team_subscription_id: string;
|
|
3049
|
+
to_lifecycle_state: string;
|
|
3050
|
+
to_monthly_amount_cents: number;
|
|
3051
|
+
to_pending_change_at: string | null;
|
|
3052
|
+
to_pending_monthly_amount_cents: number | null;
|
|
3053
|
+
to_status: string;
|
|
3054
|
+
};
|
|
3055
|
+
Insert: {
|
|
3056
|
+
changed_at?: string;
|
|
3057
|
+
from_lifecycle_state?: string | null;
|
|
3058
|
+
from_monthly_amount_cents?: number | null;
|
|
3059
|
+
from_pending_change_at?: string | null;
|
|
3060
|
+
from_pending_monthly_amount_cents?: number | null;
|
|
3061
|
+
from_status?: string | null;
|
|
3062
|
+
id?: string;
|
|
3063
|
+
team_id: string;
|
|
3064
|
+
team_subscription_id: string;
|
|
3065
|
+
to_lifecycle_state: string;
|
|
3066
|
+
to_monthly_amount_cents: number;
|
|
3067
|
+
to_pending_change_at?: string | null;
|
|
3068
|
+
to_pending_monthly_amount_cents?: number | null;
|
|
3069
|
+
to_status: string;
|
|
3070
|
+
};
|
|
3071
|
+
Update: {
|
|
3072
|
+
changed_at?: string;
|
|
3073
|
+
from_lifecycle_state?: string | null;
|
|
3074
|
+
from_monthly_amount_cents?: number | null;
|
|
3075
|
+
from_pending_change_at?: string | null;
|
|
3076
|
+
from_pending_monthly_amount_cents?: number | null;
|
|
3077
|
+
from_status?: string | null;
|
|
3078
|
+
id?: string;
|
|
3079
|
+
team_id?: string;
|
|
3080
|
+
team_subscription_id?: string;
|
|
3081
|
+
to_lifecycle_state?: string;
|
|
3082
|
+
to_monthly_amount_cents?: number;
|
|
3083
|
+
to_pending_change_at?: string | null;
|
|
3084
|
+
to_pending_monthly_amount_cents?: number | null;
|
|
3085
|
+
to_status?: string;
|
|
3086
|
+
};
|
|
3087
|
+
Relationships: [
|
|
3088
|
+
{
|
|
3089
|
+
foreignKeyName: "team_subscription_state_transitions_subscription_fkey";
|
|
3090
|
+
columns: ["team_subscription_id"];
|
|
3091
|
+
isOneToOne: false;
|
|
3092
|
+
referencedRelation: "team_subscriptions";
|
|
3093
|
+
referencedColumns: ["id"];
|
|
3094
|
+
},
|
|
3095
|
+
{
|
|
3096
|
+
foreignKeyName: "team_subscription_state_transitions_team_fkey";
|
|
3097
|
+
columns: ["team_id"];
|
|
3098
|
+
isOneToOne: false;
|
|
3099
|
+
referencedRelation: "teams";
|
|
3100
|
+
referencedColumns: ["id"];
|
|
3101
|
+
}
|
|
3102
|
+
];
|
|
3103
|
+
};
|
|
2900
3104
|
team_subscriptions: {
|
|
2901
3105
|
Row: {
|
|
2902
3106
|
billing_provider: string | null;
|
|
@@ -3028,6 +3232,7 @@ export type Database = {
|
|
|
3028
3232
|
agent_id: string;
|
|
3029
3233
|
completed_at: string | null;
|
|
3030
3234
|
created_at: string;
|
|
3235
|
+
cycle_id: string | null;
|
|
3031
3236
|
id: string;
|
|
3032
3237
|
parameters: Json;
|
|
3033
3238
|
parent_tool_call_id: string | null;
|
|
@@ -3040,6 +3245,7 @@ export type Database = {
|
|
|
3040
3245
|
agent_id: string;
|
|
3041
3246
|
completed_at?: string | null;
|
|
3042
3247
|
created_at?: string;
|
|
3248
|
+
cycle_id?: string | null;
|
|
3043
3249
|
id?: string;
|
|
3044
3250
|
parameters: Json;
|
|
3045
3251
|
parent_tool_call_id?: string | null;
|
|
@@ -3052,6 +3258,7 @@ export type Database = {
|
|
|
3052
3258
|
agent_id?: string;
|
|
3053
3259
|
completed_at?: string | null;
|
|
3054
3260
|
created_at?: string;
|
|
3261
|
+
cycle_id?: string | null;
|
|
3055
3262
|
id?: string;
|
|
3056
3263
|
parameters?: Json;
|
|
3057
3264
|
parent_tool_call_id?: string | null;
|
|
@@ -3068,6 +3275,13 @@ export type Database = {
|
|
|
3068
3275
|
referencedRelation: "agents";
|
|
3069
3276
|
referencedColumns: ["id"];
|
|
3070
3277
|
},
|
|
3278
|
+
{
|
|
3279
|
+
foreignKeyName: "tool_calls_cycle_id_fkey";
|
|
3280
|
+
columns: ["cycle_id"];
|
|
3281
|
+
isOneToOne: false;
|
|
3282
|
+
referencedRelation: "agent_cycles";
|
|
3283
|
+
referencedColumns: ["id"];
|
|
3284
|
+
},
|
|
3071
3285
|
{
|
|
3072
3286
|
foreignKeyName: "tool_calls_parent_tool_call_id_fkey";
|
|
3073
3287
|
columns: ["parent_tool_call_id"];
|
|
@@ -3746,13 +3960,6 @@ export type Database = {
|
|
|
3746
3960
|
isOneToOne: false;
|
|
3747
3961
|
referencedRelation: "agents";
|
|
3748
3962
|
referencedColumns: ["id"];
|
|
3749
|
-
},
|
|
3750
|
-
{
|
|
3751
|
-
foreignKeyName: "agent_usage_agent_id_fkey";
|
|
3752
|
-
columns: ["agent_id"];
|
|
3753
|
-
isOneToOne: false;
|
|
3754
|
-
referencedRelation: "agents";
|
|
3755
|
-
referencedColumns: ["id"];
|
|
3756
3963
|
}
|
|
3757
3964
|
];
|
|
3758
3965
|
};
|
|
@@ -3829,13 +4036,6 @@ export type Database = {
|
|
|
3829
4036
|
isOneToOne: false;
|
|
3830
4037
|
referencedRelation: "agents";
|
|
3831
4038
|
referencedColumns: ["id"];
|
|
3832
|
-
},
|
|
3833
|
-
{
|
|
3834
|
-
foreignKeyName: "logs_agent_id_fkey";
|
|
3835
|
-
columns: ["agent_id"];
|
|
3836
|
-
isOneToOne: false;
|
|
3837
|
-
referencedRelation: "agents";
|
|
3838
|
-
referencedColumns: ["id"];
|
|
3839
4039
|
}
|
|
3840
4040
|
];
|
|
3841
4041
|
};
|
|
@@ -3927,6 +4127,40 @@ export type Database = {
|
|
|
3927
4127
|
}
|
|
3928
4128
|
];
|
|
3929
4129
|
};
|
|
4130
|
+
ops_failure_events: {
|
|
4131
|
+
Row: {
|
|
4132
|
+
agent_id: string | null;
|
|
4133
|
+
agent_name: string | null;
|
|
4134
|
+
event_at: string | null;
|
|
4135
|
+
event_type: string | null;
|
|
4136
|
+
failure_message: string | null;
|
|
4137
|
+
job_id: string | null;
|
|
4138
|
+
log_id: string | null;
|
|
4139
|
+
log_type: string | null;
|
|
4140
|
+
model: string | null;
|
|
4141
|
+
retry_count: number | null;
|
|
4142
|
+
stop_reason: string | null;
|
|
4143
|
+
team_id: string | null;
|
|
4144
|
+
team_name: string | null;
|
|
4145
|
+
workflow_failure_classification: string | null;
|
|
4146
|
+
};
|
|
4147
|
+
Relationships: [
|
|
4148
|
+
{
|
|
4149
|
+
foreignKeyName: "agents_team_id_teams_id_fk";
|
|
4150
|
+
columns: ["team_id"];
|
|
4151
|
+
isOneToOne: false;
|
|
4152
|
+
referencedRelation: "teams";
|
|
4153
|
+
referencedColumns: ["id"];
|
|
4154
|
+
},
|
|
4155
|
+
{
|
|
4156
|
+
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
4157
|
+
columns: ["agent_id"];
|
|
4158
|
+
isOneToOne: false;
|
|
4159
|
+
referencedRelation: "agents";
|
|
4160
|
+
referencedColumns: ["id"];
|
|
4161
|
+
}
|
|
4162
|
+
];
|
|
4163
|
+
};
|
|
3930
4164
|
};
|
|
3931
4165
|
Functions: {
|
|
3932
4166
|
accept_team_invitation: {
|
|
@@ -4101,6 +4335,7 @@ export type Database = {
|
|
|
4101
4335
|
p_estimated_cost?: number;
|
|
4102
4336
|
};
|
|
4103
4337
|
Returns: {
|
|
4338
|
+
block_reason: string;
|
|
4104
4339
|
can_proceed: boolean;
|
|
4105
4340
|
cooldown_only: boolean;
|
|
4106
4341
|
cost_budget_remaining: number;
|
|
@@ -4155,6 +4390,7 @@ export type Database = {
|
|
|
4155
4390
|
agent_id: string;
|
|
4156
4391
|
attachments: Json | null;
|
|
4157
4392
|
content: string;
|
|
4393
|
+
cycle_id: string | null;
|
|
4158
4394
|
edited_at: string | null;
|
|
4159
4395
|
id: string;
|
|
4160
4396
|
local_id: string | null;
|
|
@@ -4217,6 +4453,7 @@ export type Database = {
|
|
|
4217
4453
|
agent_id: string;
|
|
4218
4454
|
attachments: Json | null;
|
|
4219
4455
|
content: string;
|
|
4456
|
+
cycle_id: string | null;
|
|
4220
4457
|
edited_at: string | null;
|
|
4221
4458
|
id: string;
|
|
4222
4459
|
local_id: string | null;
|
|
@@ -5207,6 +5444,14 @@ export type Database = {
|
|
|
5207
5444
|
};
|
|
5208
5445
|
Returns: Json;
|
|
5209
5446
|
};
|
|
5447
|
+
resolve_subscription_lifecycle_state: {
|
|
5448
|
+
Args: {
|
|
5449
|
+
p_pending_change_at: string;
|
|
5450
|
+
p_pending_monthly_amount_cents: number;
|
|
5451
|
+
p_status: string;
|
|
5452
|
+
};
|
|
5453
|
+
Returns: string;
|
|
5454
|
+
};
|
|
5210
5455
|
restore_deleted_account: {
|
|
5211
5456
|
Args: {
|
|
5212
5457
|
p_user_id: string;
|