@panorama-ai/gateway 2.26.126 → 2.27.101
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 +2 -0
- package/dist/cli-providers/codex.d.ts.map +1 -1
- package/dist/cli-providers/codex.js +0 -1
- package/dist/cli-providers/codex.js.map +1 -1
- package/dist/database.types.d.ts +929 -231
- package/dist/database.types.d.ts.map +1 -1
- package/dist/database.types.js.map +1 -1
- package/dist/subagent-adapters/codex.d.ts.map +1 -1
- package/dist/subagent-adapters/codex.js +0 -1
- package/dist/subagent-adapters/codex.js.map +1 -1
- package/dist/subagent-adapters/types.d.ts +2 -1
- package/dist/subagent-adapters/types.d.ts.map +1 -1
- package/dist/subagent-adapters/types.js.map +1 -1
- package/package.json +4 -3
package/dist/database.types.d.ts
CHANGED
|
@@ -29,6 +29,132 @@ export type Database = {
|
|
|
29
29
|
};
|
|
30
30
|
public: {
|
|
31
31
|
Tables: {
|
|
32
|
+
agent_config: {
|
|
33
|
+
Row: {
|
|
34
|
+
agent_id: string;
|
|
35
|
+
context_token_count: number;
|
|
36
|
+
created_at: string;
|
|
37
|
+
log_lines_in_context: number;
|
|
38
|
+
max_daily_summaries: number;
|
|
39
|
+
max_hourly_summaries: number;
|
|
40
|
+
max_log_chars_in_context: number;
|
|
41
|
+
max_monthly_summaries: number;
|
|
42
|
+
max_requests_per_minute: number;
|
|
43
|
+
min_cycle_start_interval_seconds: number;
|
|
44
|
+
min_daily_summaries: number;
|
|
45
|
+
min_hourly_summaries: number;
|
|
46
|
+
min_log_chars_in_context: number;
|
|
47
|
+
rpm_bucket_level: number;
|
|
48
|
+
rpm_last_updated_at: string;
|
|
49
|
+
summary_chunk_chars: number;
|
|
50
|
+
updated_at: string;
|
|
51
|
+
};
|
|
52
|
+
Insert: {
|
|
53
|
+
agent_id: string;
|
|
54
|
+
context_token_count?: number;
|
|
55
|
+
created_at?: string;
|
|
56
|
+
log_lines_in_context?: number;
|
|
57
|
+
max_daily_summaries?: number;
|
|
58
|
+
max_hourly_summaries?: number;
|
|
59
|
+
max_log_chars_in_context?: number;
|
|
60
|
+
max_monthly_summaries?: number;
|
|
61
|
+
max_requests_per_minute?: number;
|
|
62
|
+
min_cycle_start_interval_seconds?: number;
|
|
63
|
+
min_daily_summaries?: number;
|
|
64
|
+
min_hourly_summaries?: number;
|
|
65
|
+
min_log_chars_in_context?: number;
|
|
66
|
+
rpm_bucket_level?: number;
|
|
67
|
+
rpm_last_updated_at?: string;
|
|
68
|
+
summary_chunk_chars?: number;
|
|
69
|
+
updated_at?: string;
|
|
70
|
+
};
|
|
71
|
+
Update: {
|
|
72
|
+
agent_id?: string;
|
|
73
|
+
context_token_count?: number;
|
|
74
|
+
created_at?: string;
|
|
75
|
+
log_lines_in_context?: number;
|
|
76
|
+
max_daily_summaries?: number;
|
|
77
|
+
max_hourly_summaries?: number;
|
|
78
|
+
max_log_chars_in_context?: number;
|
|
79
|
+
max_monthly_summaries?: number;
|
|
80
|
+
max_requests_per_minute?: number;
|
|
81
|
+
min_cycle_start_interval_seconds?: number;
|
|
82
|
+
min_daily_summaries?: number;
|
|
83
|
+
min_hourly_summaries?: number;
|
|
84
|
+
min_log_chars_in_context?: number;
|
|
85
|
+
rpm_bucket_level?: number;
|
|
86
|
+
rpm_last_updated_at?: string;
|
|
87
|
+
summary_chunk_chars?: number;
|
|
88
|
+
updated_at?: string;
|
|
89
|
+
};
|
|
90
|
+
Relationships: [
|
|
91
|
+
{
|
|
92
|
+
foreignKeyName: "agent_config_agent_id_fkey";
|
|
93
|
+
columns: ["agent_id"];
|
|
94
|
+
isOneToOne: true;
|
|
95
|
+
referencedRelation: "agent_full";
|
|
96
|
+
referencedColumns: ["id"];
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
foreignKeyName: "agent_config_agent_id_fkey";
|
|
100
|
+
columns: ["agent_id"];
|
|
101
|
+
isOneToOne: true;
|
|
102
|
+
referencedRelation: "agents";
|
|
103
|
+
referencedColumns: ["id"];
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
};
|
|
107
|
+
agent_content: {
|
|
108
|
+
Row: {
|
|
109
|
+
action_summary: string | null;
|
|
110
|
+
agent_id: string;
|
|
111
|
+
context: string;
|
|
112
|
+
created_at: string;
|
|
113
|
+
instructions: string | null;
|
|
114
|
+
objective: string | null;
|
|
115
|
+
plan: Json;
|
|
116
|
+
system_prompt: string;
|
|
117
|
+
updated_at: string;
|
|
118
|
+
};
|
|
119
|
+
Insert: {
|
|
120
|
+
action_summary?: string | null;
|
|
121
|
+
agent_id: string;
|
|
122
|
+
context?: string;
|
|
123
|
+
created_at?: string;
|
|
124
|
+
instructions?: string | null;
|
|
125
|
+
objective?: string | null;
|
|
126
|
+
plan?: Json;
|
|
127
|
+
system_prompt?: string;
|
|
128
|
+
updated_at?: string;
|
|
129
|
+
};
|
|
130
|
+
Update: {
|
|
131
|
+
action_summary?: string | null;
|
|
132
|
+
agent_id?: string;
|
|
133
|
+
context?: string;
|
|
134
|
+
created_at?: string;
|
|
135
|
+
instructions?: string | null;
|
|
136
|
+
objective?: string | null;
|
|
137
|
+
plan?: Json;
|
|
138
|
+
system_prompt?: string;
|
|
139
|
+
updated_at?: string;
|
|
140
|
+
};
|
|
141
|
+
Relationships: [
|
|
142
|
+
{
|
|
143
|
+
foreignKeyName: "agent_content_agent_id_fkey";
|
|
144
|
+
columns: ["agent_id"];
|
|
145
|
+
isOneToOne: true;
|
|
146
|
+
referencedRelation: "agent_full";
|
|
147
|
+
referencedColumns: ["id"];
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
foreignKeyName: "agent_content_agent_id_fkey";
|
|
151
|
+
columns: ["agent_id"];
|
|
152
|
+
isOneToOne: true;
|
|
153
|
+
referencedRelation: "agents";
|
|
154
|
+
referencedColumns: ["id"];
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
};
|
|
32
158
|
agent_creation_steps: {
|
|
33
159
|
Row: {
|
|
34
160
|
created_at: string;
|
|
@@ -123,6 +249,13 @@ export type Database = {
|
|
|
123
249
|
updated_at?: string;
|
|
124
250
|
};
|
|
125
251
|
Relationships: [
|
|
252
|
+
{
|
|
253
|
+
foreignKeyName: "agent_cycle_contexts_agent_id_fkey";
|
|
254
|
+
columns: ["agent_id"];
|
|
255
|
+
isOneToOne: false;
|
|
256
|
+
referencedRelation: "agent_full";
|
|
257
|
+
referencedColumns: ["id"];
|
|
258
|
+
},
|
|
126
259
|
{
|
|
127
260
|
foreignKeyName: "agent_cycle_contexts_agent_id_fkey";
|
|
128
261
|
columns: ["agent_id"];
|
|
@@ -180,6 +313,13 @@ export type Database = {
|
|
|
180
313
|
updated_at?: string;
|
|
181
314
|
};
|
|
182
315
|
Relationships: [
|
|
316
|
+
{
|
|
317
|
+
foreignKeyName: "agent_cycles_agent_id_fkey";
|
|
318
|
+
columns: ["agent_id"];
|
|
319
|
+
isOneToOne: false;
|
|
320
|
+
referencedRelation: "agent_full";
|
|
321
|
+
referencedColumns: ["id"];
|
|
322
|
+
},
|
|
183
323
|
{
|
|
184
324
|
foreignKeyName: "agent_cycles_agent_id_fkey";
|
|
185
325
|
columns: ["agent_id"];
|
|
@@ -218,6 +358,13 @@ export type Database = {
|
|
|
218
358
|
user_id?: string;
|
|
219
359
|
};
|
|
220
360
|
Relationships: [
|
|
361
|
+
{
|
|
362
|
+
foreignKeyName: "agent_file_locks_agent_id_agents_id_fk";
|
|
363
|
+
columns: ["agent_id"];
|
|
364
|
+
isOneToOne: false;
|
|
365
|
+
referencedRelation: "agent_full";
|
|
366
|
+
referencedColumns: ["id"];
|
|
367
|
+
},
|
|
221
368
|
{
|
|
222
369
|
foreignKeyName: "agent_file_locks_agent_id_agents_id_fk";
|
|
223
370
|
columns: ["agent_id"];
|
|
@@ -287,6 +434,13 @@ export type Database = {
|
|
|
287
434
|
version_id?: string;
|
|
288
435
|
};
|
|
289
436
|
Relationships: [
|
|
437
|
+
{
|
|
438
|
+
foreignKeyName: "agent_files_agent_id_agents_id_fk";
|
|
439
|
+
columns: ["agent_id"];
|
|
440
|
+
isOneToOne: false;
|
|
441
|
+
referencedRelation: "agent_full";
|
|
442
|
+
referencedColumns: ["id"];
|
|
443
|
+
},
|
|
290
444
|
{
|
|
291
445
|
foreignKeyName: "agent_files_agent_id_agents_id_fk";
|
|
292
446
|
columns: ["agent_id"];
|
|
@@ -303,6 +457,121 @@ export type Database = {
|
|
|
303
457
|
}
|
|
304
458
|
];
|
|
305
459
|
};
|
|
460
|
+
agent_model_settings: {
|
|
461
|
+
Row: {
|
|
462
|
+
agent_id: string;
|
|
463
|
+
auto_model_selection: boolean;
|
|
464
|
+
created_at: string;
|
|
465
|
+
fallback_lite_model_id: string | null;
|
|
466
|
+
fallback_main_model_id: string | null;
|
|
467
|
+
lite_model_id: string;
|
|
468
|
+
main_model_id: string;
|
|
469
|
+
search_provider_fallbacks: Json | null;
|
|
470
|
+
search_provider_id: string | null;
|
|
471
|
+
updated_at: string;
|
|
472
|
+
web_read_content_provider_fallbacks: Json | null;
|
|
473
|
+
web_read_content_provider_id: string | null;
|
|
474
|
+
web_read_html_provider_fallbacks: Json | null;
|
|
475
|
+
web_read_html_provider_id: string | null;
|
|
476
|
+
};
|
|
477
|
+
Insert: {
|
|
478
|
+
agent_id: string;
|
|
479
|
+
auto_model_selection?: boolean;
|
|
480
|
+
created_at?: string;
|
|
481
|
+
fallback_lite_model_id?: string | null;
|
|
482
|
+
fallback_main_model_id?: string | null;
|
|
483
|
+
lite_model_id: string;
|
|
484
|
+
main_model_id: string;
|
|
485
|
+
search_provider_fallbacks?: Json | null;
|
|
486
|
+
search_provider_id?: string | null;
|
|
487
|
+
updated_at?: string;
|
|
488
|
+
web_read_content_provider_fallbacks?: Json | null;
|
|
489
|
+
web_read_content_provider_id?: string | null;
|
|
490
|
+
web_read_html_provider_fallbacks?: Json | null;
|
|
491
|
+
web_read_html_provider_id?: string | null;
|
|
492
|
+
};
|
|
493
|
+
Update: {
|
|
494
|
+
agent_id?: string;
|
|
495
|
+
auto_model_selection?: boolean;
|
|
496
|
+
created_at?: string;
|
|
497
|
+
fallback_lite_model_id?: string | null;
|
|
498
|
+
fallback_main_model_id?: string | null;
|
|
499
|
+
lite_model_id?: string;
|
|
500
|
+
main_model_id?: string;
|
|
501
|
+
search_provider_fallbacks?: Json | null;
|
|
502
|
+
search_provider_id?: string | null;
|
|
503
|
+
updated_at?: string;
|
|
504
|
+
web_read_content_provider_fallbacks?: Json | null;
|
|
505
|
+
web_read_content_provider_id?: string | null;
|
|
506
|
+
web_read_html_provider_fallbacks?: Json | null;
|
|
507
|
+
web_read_html_provider_id?: string | null;
|
|
508
|
+
};
|
|
509
|
+
Relationships: [
|
|
510
|
+
{
|
|
511
|
+
foreignKeyName: "agent_model_settings_agent_id_fkey";
|
|
512
|
+
columns: ["agent_id"];
|
|
513
|
+
isOneToOne: true;
|
|
514
|
+
referencedRelation: "agent_full";
|
|
515
|
+
referencedColumns: ["id"];
|
|
516
|
+
},
|
|
517
|
+
{
|
|
518
|
+
foreignKeyName: "agent_model_settings_agent_id_fkey";
|
|
519
|
+
columns: ["agent_id"];
|
|
520
|
+
isOneToOne: true;
|
|
521
|
+
referencedRelation: "agents";
|
|
522
|
+
referencedColumns: ["id"];
|
|
523
|
+
},
|
|
524
|
+
{
|
|
525
|
+
foreignKeyName: "agent_model_settings_fallback_lite_model_id_fkey";
|
|
526
|
+
columns: ["fallback_lite_model_id"];
|
|
527
|
+
isOneToOne: false;
|
|
528
|
+
referencedRelation: "ai_model_routes";
|
|
529
|
+
referencedColumns: ["id"];
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
foreignKeyName: "agent_model_settings_fallback_main_model_id_fkey";
|
|
533
|
+
columns: ["fallback_main_model_id"];
|
|
534
|
+
isOneToOne: false;
|
|
535
|
+
referencedRelation: "ai_model_routes";
|
|
536
|
+
referencedColumns: ["id"];
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
foreignKeyName: "agent_model_settings_lite_model_id_fkey";
|
|
540
|
+
columns: ["lite_model_id"];
|
|
541
|
+
isOneToOne: false;
|
|
542
|
+
referencedRelation: "ai_model_routes";
|
|
543
|
+
referencedColumns: ["id"];
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
foreignKeyName: "agent_model_settings_main_model_id_fkey";
|
|
547
|
+
columns: ["main_model_id"];
|
|
548
|
+
isOneToOne: false;
|
|
549
|
+
referencedRelation: "ai_model_routes";
|
|
550
|
+
referencedColumns: ["id"];
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
foreignKeyName: "agent_model_settings_search_provider_id_fkey";
|
|
554
|
+
columns: ["search_provider_id"];
|
|
555
|
+
isOneToOne: false;
|
|
556
|
+
referencedRelation: "search_providers";
|
|
557
|
+
referencedColumns: ["id"];
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
foreignKeyName: "agent_model_settings_web_read_content_provider_id_fkey";
|
|
561
|
+
columns: ["web_read_content_provider_id"];
|
|
562
|
+
isOneToOne: false;
|
|
563
|
+
referencedRelation: "web_read_providers";
|
|
564
|
+
referencedColumns: ["id"];
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
foreignKeyName: "agent_model_settings_web_read_html_provider_id_fkey";
|
|
568
|
+
columns: ["web_read_html_provider_id"];
|
|
569
|
+
isOneToOne: false;
|
|
570
|
+
referencedRelation: "web_read_providers";
|
|
571
|
+
referencedColumns: ["id"];
|
|
572
|
+
}
|
|
573
|
+
];
|
|
574
|
+
};
|
|
306
575
|
agent_support_tickets: {
|
|
307
576
|
Row: {
|
|
308
577
|
agent_id: string;
|
|
@@ -350,6 +619,13 @@ export type Database = {
|
|
|
350
619
|
updated_at?: string;
|
|
351
620
|
};
|
|
352
621
|
Relationships: [
|
|
622
|
+
{
|
|
623
|
+
foreignKeyName: "agent_support_tickets_agent_id_fkey";
|
|
624
|
+
columns: ["agent_id"];
|
|
625
|
+
isOneToOne: false;
|
|
626
|
+
referencedRelation: "agent_full";
|
|
627
|
+
referencedColumns: ["id"];
|
|
628
|
+
},
|
|
353
629
|
{
|
|
354
630
|
foreignKeyName: "agent_support_tickets_agent_id_fkey";
|
|
355
631
|
columns: ["agent_id"];
|
|
@@ -462,6 +738,13 @@ export type Database = {
|
|
|
462
738
|
updated_at?: string;
|
|
463
739
|
};
|
|
464
740
|
Relationships: [
|
|
741
|
+
{
|
|
742
|
+
foreignKeyName: "agent_tools_agent_id_agents_id_fk";
|
|
743
|
+
columns: ["agent_id"];
|
|
744
|
+
isOneToOne: false;
|
|
745
|
+
referencedRelation: "agent_full";
|
|
746
|
+
referencedColumns: ["id"];
|
|
747
|
+
},
|
|
465
748
|
{
|
|
466
749
|
foreignKeyName: "agent_tools_agent_id_agents_id_fk";
|
|
467
750
|
columns: ["agent_id"];
|
|
@@ -524,6 +807,13 @@ export type Database = {
|
|
|
524
807
|
usage_type?: string;
|
|
525
808
|
};
|
|
526
809
|
Relationships: [
|
|
810
|
+
{
|
|
811
|
+
foreignKeyName: "agent_usage_agent_id_agents_id_fk";
|
|
812
|
+
columns: ["agent_id"];
|
|
813
|
+
isOneToOne: false;
|
|
814
|
+
referencedRelation: "agent_full";
|
|
815
|
+
referencedColumns: ["id"];
|
|
816
|
+
},
|
|
527
817
|
{
|
|
528
818
|
foreignKeyName: "agent_usage_agent_id_agents_id_fk";
|
|
529
819
|
columns: ["agent_id"];
|
|
@@ -542,184 +832,63 @@ export type Database = {
|
|
|
542
832
|
};
|
|
543
833
|
agents: {
|
|
544
834
|
Row: {
|
|
545
|
-
action_summary: string | null;
|
|
546
835
|
agent_state: string;
|
|
547
|
-
auto_model_selection: boolean;
|
|
548
|
-
context: string;
|
|
549
|
-
context_token_count: number;
|
|
550
836
|
created_at: string;
|
|
551
837
|
created_by: string;
|
|
552
838
|
creation_progress: Json | null;
|
|
553
839
|
deleted_at: string | null;
|
|
554
|
-
fallback_lite_model_id: string | null;
|
|
555
|
-
fallback_main_model_id: string | null;
|
|
556
840
|
id: string;
|
|
557
|
-
instructions: string | null;
|
|
558
841
|
job_state: string;
|
|
559
842
|
last_activity_at: string;
|
|
560
843
|
last_cycle_started_at: string | null;
|
|
561
844
|
last_interaction_at: string;
|
|
562
845
|
last_read_message_id: string | null;
|
|
563
|
-
lite_model_id: string;
|
|
564
|
-
log_lines_in_context: number;
|
|
565
|
-
main_model_id: string;
|
|
566
|
-
max_daily_summaries: number;
|
|
567
|
-
max_hourly_summaries: number;
|
|
568
|
-
max_log_chars_in_context: number;
|
|
569
|
-
max_monthly_summaries: number;
|
|
570
|
-
max_requests_per_minute: number;
|
|
571
|
-
min_cycle_start_interval_seconds: number;
|
|
572
|
-
min_daily_summaries: number;
|
|
573
|
-
min_hourly_summaries: number;
|
|
574
|
-
min_log_chars_in_context: number;
|
|
575
846
|
name: string;
|
|
576
|
-
objective: string | null;
|
|
577
847
|
pause_reason: string | null;
|
|
578
|
-
plan: Json;
|
|
579
|
-
rpm_bucket_level: number;
|
|
580
|
-
rpm_last_updated_at: string;
|
|
581
|
-
search_provider_fallbacks: Json | null;
|
|
582
|
-
search_provider_id: string | null;
|
|
583
|
-
summary_chunk_chars: number;
|
|
584
|
-
system_prompt: string;
|
|
585
848
|
system_template_slug: string | null;
|
|
586
849
|
team_id: string;
|
|
587
850
|
updated_at: string | null;
|
|
588
851
|
wake_generation: number;
|
|
589
|
-
web_read_content_provider_fallbacks: Json | null;
|
|
590
|
-
web_read_content_provider_id: string | null;
|
|
591
|
-
web_read_html_provider_fallbacks: Json | null;
|
|
592
|
-
web_read_html_provider_id: string | null;
|
|
593
852
|
};
|
|
594
853
|
Insert: {
|
|
595
|
-
action_summary?: string | null;
|
|
596
854
|
agent_state?: string;
|
|
597
|
-
auto_model_selection?: boolean;
|
|
598
|
-
context?: string;
|
|
599
|
-
context_token_count?: number;
|
|
600
855
|
created_at?: string;
|
|
601
856
|
created_by: string;
|
|
602
857
|
creation_progress?: Json | null;
|
|
603
858
|
deleted_at?: string | null;
|
|
604
|
-
fallback_lite_model_id?: string | null;
|
|
605
|
-
fallback_main_model_id?: string | null;
|
|
606
859
|
id?: string;
|
|
607
|
-
instructions?: string | null;
|
|
608
860
|
job_state?: string;
|
|
609
861
|
last_activity_at?: string;
|
|
610
862
|
last_cycle_started_at?: string | null;
|
|
611
863
|
last_interaction_at?: string;
|
|
612
864
|
last_read_message_id?: string | null;
|
|
613
|
-
lite_model_id: string;
|
|
614
|
-
log_lines_in_context?: number;
|
|
615
|
-
main_model_id: string;
|
|
616
|
-
max_daily_summaries?: number;
|
|
617
|
-
max_hourly_summaries?: number;
|
|
618
|
-
max_log_chars_in_context?: number;
|
|
619
|
-
max_monthly_summaries?: number;
|
|
620
|
-
max_requests_per_minute?: number;
|
|
621
|
-
min_cycle_start_interval_seconds?: number;
|
|
622
|
-
min_daily_summaries?: number;
|
|
623
|
-
min_hourly_summaries?: number;
|
|
624
|
-
min_log_chars_in_context?: number;
|
|
625
865
|
name: string;
|
|
626
|
-
objective?: string | null;
|
|
627
866
|
pause_reason?: string | null;
|
|
628
|
-
plan?: Json;
|
|
629
|
-
rpm_bucket_level?: number;
|
|
630
|
-
rpm_last_updated_at?: string;
|
|
631
|
-
search_provider_fallbacks?: Json | null;
|
|
632
|
-
search_provider_id?: string | null;
|
|
633
|
-
summary_chunk_chars?: number;
|
|
634
|
-
system_prompt?: string;
|
|
635
867
|
system_template_slug?: string | null;
|
|
636
868
|
team_id: string;
|
|
637
869
|
updated_at?: string | null;
|
|
638
870
|
wake_generation?: number;
|
|
639
|
-
web_read_content_provider_fallbacks?: Json | null;
|
|
640
|
-
web_read_content_provider_id?: string | null;
|
|
641
|
-
web_read_html_provider_fallbacks?: Json | null;
|
|
642
|
-
web_read_html_provider_id?: string | null;
|
|
643
871
|
};
|
|
644
872
|
Update: {
|
|
645
|
-
action_summary?: string | null;
|
|
646
873
|
agent_state?: string;
|
|
647
|
-
auto_model_selection?: boolean;
|
|
648
|
-
context?: string;
|
|
649
|
-
context_token_count?: number;
|
|
650
874
|
created_at?: string;
|
|
651
875
|
created_by?: string;
|
|
652
876
|
creation_progress?: Json | null;
|
|
653
877
|
deleted_at?: string | null;
|
|
654
|
-
fallback_lite_model_id?: string | null;
|
|
655
|
-
fallback_main_model_id?: string | null;
|
|
656
878
|
id?: string;
|
|
657
|
-
instructions?: string | null;
|
|
658
879
|
job_state?: string;
|
|
659
880
|
last_activity_at?: string;
|
|
660
881
|
last_cycle_started_at?: string | null;
|
|
661
882
|
last_interaction_at?: string;
|
|
662
883
|
last_read_message_id?: string | null;
|
|
663
|
-
lite_model_id?: string;
|
|
664
|
-
log_lines_in_context?: number;
|
|
665
|
-
main_model_id?: string;
|
|
666
|
-
max_daily_summaries?: number;
|
|
667
|
-
max_hourly_summaries?: number;
|
|
668
|
-
max_log_chars_in_context?: number;
|
|
669
|
-
max_monthly_summaries?: number;
|
|
670
|
-
max_requests_per_minute?: number;
|
|
671
|
-
min_cycle_start_interval_seconds?: number;
|
|
672
|
-
min_daily_summaries?: number;
|
|
673
|
-
min_hourly_summaries?: number;
|
|
674
|
-
min_log_chars_in_context?: number;
|
|
675
884
|
name?: string;
|
|
676
|
-
objective?: string | null;
|
|
677
885
|
pause_reason?: string | null;
|
|
678
|
-
plan?: Json;
|
|
679
|
-
rpm_bucket_level?: number;
|
|
680
|
-
rpm_last_updated_at?: string;
|
|
681
|
-
search_provider_fallbacks?: Json | null;
|
|
682
|
-
search_provider_id?: string | null;
|
|
683
|
-
summary_chunk_chars?: number;
|
|
684
|
-
system_prompt?: string;
|
|
685
886
|
system_template_slug?: string | null;
|
|
686
887
|
team_id?: string;
|
|
687
888
|
updated_at?: string | null;
|
|
688
889
|
wake_generation?: number;
|
|
689
|
-
web_read_content_provider_fallbacks?: Json | null;
|
|
690
|
-
web_read_content_provider_id?: string | null;
|
|
691
|
-
web_read_html_provider_fallbacks?: Json | null;
|
|
692
|
-
web_read_html_provider_id?: string | null;
|
|
693
890
|
};
|
|
694
891
|
Relationships: [
|
|
695
|
-
{
|
|
696
|
-
foreignKeyName: "agents_fallback_lite_model_id_fkey";
|
|
697
|
-
columns: ["fallback_lite_model_id"];
|
|
698
|
-
isOneToOne: false;
|
|
699
|
-
referencedRelation: "ai_model_routes";
|
|
700
|
-
referencedColumns: ["id"];
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
foreignKeyName: "agents_fallback_main_model_id_fkey";
|
|
704
|
-
columns: ["fallback_main_model_id"];
|
|
705
|
-
isOneToOne: false;
|
|
706
|
-
referencedRelation: "ai_model_routes";
|
|
707
|
-
referencedColumns: ["id"];
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
foreignKeyName: "agents_lite_model_id_fkey";
|
|
711
|
-
columns: ["lite_model_id"];
|
|
712
|
-
isOneToOne: false;
|
|
713
|
-
referencedRelation: "ai_model_routes";
|
|
714
|
-
referencedColumns: ["id"];
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
foreignKeyName: "agents_main_model_id_fkey";
|
|
718
|
-
columns: ["main_model_id"];
|
|
719
|
-
isOneToOne: false;
|
|
720
|
-
referencedRelation: "ai_model_routes";
|
|
721
|
-
referencedColumns: ["id"];
|
|
722
|
-
},
|
|
723
892
|
{
|
|
724
893
|
foreignKeyName: "agents_system_template_slug_fkey";
|
|
725
894
|
columns: ["system_template_slug"];
|
|
@@ -729,30 +898,9 @@ export type Database = {
|
|
|
729
898
|
},
|
|
730
899
|
{
|
|
731
900
|
foreignKeyName: "agents_team_id_teams_id_fk";
|
|
732
|
-
columns: ["team_id"];
|
|
733
|
-
isOneToOne: false;
|
|
734
|
-
referencedRelation: "teams";
|
|
735
|
-
referencedColumns: ["id"];
|
|
736
|
-
},
|
|
737
|
-
{
|
|
738
|
-
foreignKeyName: "fk_agents_search_provider";
|
|
739
|
-
columns: ["search_provider_id"];
|
|
740
|
-
isOneToOne: false;
|
|
741
|
-
referencedRelation: "search_providers";
|
|
742
|
-
referencedColumns: ["id"];
|
|
743
|
-
},
|
|
744
|
-
{
|
|
745
|
-
foreignKeyName: "fk_agents_web_read_content_provider";
|
|
746
|
-
columns: ["web_read_content_provider_id"];
|
|
747
|
-
isOneToOne: false;
|
|
748
|
-
referencedRelation: "web_read_providers";
|
|
749
|
-
referencedColumns: ["id"];
|
|
750
|
-
},
|
|
751
|
-
{
|
|
752
|
-
foreignKeyName: "fk_agents_web_read_html_provider";
|
|
753
|
-
columns: ["web_read_html_provider_id"];
|
|
901
|
+
columns: ["team_id"];
|
|
754
902
|
isOneToOne: false;
|
|
755
|
-
referencedRelation: "
|
|
903
|
+
referencedRelation: "teams";
|
|
756
904
|
referencedColumns: ["id"];
|
|
757
905
|
}
|
|
758
906
|
];
|
|
@@ -1027,6 +1175,13 @@ export type Database = {
|
|
|
1027
1175
|
token_count?: number;
|
|
1028
1176
|
};
|
|
1029
1177
|
Relationships: [
|
|
1178
|
+
{
|
|
1179
|
+
foreignKeyName: "context_summaries_agent_id_agents_id_fk";
|
|
1180
|
+
columns: ["agent_id"];
|
|
1181
|
+
isOneToOne: false;
|
|
1182
|
+
referencedRelation: "agent_full";
|
|
1183
|
+
referencedColumns: ["id"];
|
|
1184
|
+
},
|
|
1030
1185
|
{
|
|
1031
1186
|
foreignKeyName: "context_summaries_agent_id_agents_id_fk";
|
|
1032
1187
|
columns: ["agent_id"];
|
|
@@ -1056,6 +1211,13 @@ export type Database = {
|
|
|
1056
1211
|
queried_at?: string;
|
|
1057
1212
|
};
|
|
1058
1213
|
Relationships: [
|
|
1214
|
+
{
|
|
1215
|
+
foreignKeyName: "database_query_rate_limits_agent_id_fkey";
|
|
1216
|
+
columns: ["agent_id"];
|
|
1217
|
+
isOneToOne: false;
|
|
1218
|
+
referencedRelation: "agent_full";
|
|
1219
|
+
referencedColumns: ["id"];
|
|
1220
|
+
},
|
|
1059
1221
|
{
|
|
1060
1222
|
foreignKeyName: "database_query_rate_limits_agent_id_fkey";
|
|
1061
1223
|
columns: ["agent_id"];
|
|
@@ -1127,6 +1289,13 @@ export type Database = {
|
|
|
1127
1289
|
webhook_config?: Json | null;
|
|
1128
1290
|
};
|
|
1129
1291
|
Relationships: [
|
|
1292
|
+
{
|
|
1293
|
+
foreignKeyName: "external_connections_agent_id_fkey";
|
|
1294
|
+
columns: ["agent_id"];
|
|
1295
|
+
isOneToOne: false;
|
|
1296
|
+
referencedRelation: "agent_full";
|
|
1297
|
+
referencedColumns: ["id"];
|
|
1298
|
+
},
|
|
1130
1299
|
{
|
|
1131
1300
|
foreignKeyName: "external_connections_agent_id_fkey";
|
|
1132
1301
|
columns: ["agent_id"];
|
|
@@ -1190,6 +1359,13 @@ export type Database = {
|
|
|
1190
1359
|
updated_at?: string;
|
|
1191
1360
|
};
|
|
1192
1361
|
Relationships: [
|
|
1362
|
+
{
|
|
1363
|
+
foreignKeyName: "external_connections_public_agent_id_fkey";
|
|
1364
|
+
columns: ["agent_id"];
|
|
1365
|
+
isOneToOne: false;
|
|
1366
|
+
referencedRelation: "agent_full";
|
|
1367
|
+
referencedColumns: ["id"];
|
|
1368
|
+
},
|
|
1193
1369
|
{
|
|
1194
1370
|
foreignKeyName: "external_connections_public_agent_id_fkey";
|
|
1195
1371
|
columns: ["agent_id"];
|
|
@@ -1550,6 +1726,13 @@ export type Database = {
|
|
|
1550
1726
|
searchable_summary?: string;
|
|
1551
1727
|
};
|
|
1552
1728
|
Relationships: [
|
|
1729
|
+
{
|
|
1730
|
+
foreignKeyName: "log_embeddings_agent_id_fkey";
|
|
1731
|
+
columns: ["agent_id"];
|
|
1732
|
+
isOneToOne: false;
|
|
1733
|
+
referencedRelation: "agent_full";
|
|
1734
|
+
referencedColumns: ["id"];
|
|
1735
|
+
},
|
|
1553
1736
|
{
|
|
1554
1737
|
foreignKeyName: "log_embeddings_agent_id_fkey";
|
|
1555
1738
|
columns: ["agent_id"];
|
|
@@ -1630,6 +1813,13 @@ export type Database = {
|
|
|
1630
1813
|
user_id?: string | null;
|
|
1631
1814
|
};
|
|
1632
1815
|
Relationships: [
|
|
1816
|
+
{
|
|
1817
|
+
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
1818
|
+
columns: ["agent_id"];
|
|
1819
|
+
isOneToOne: false;
|
|
1820
|
+
referencedRelation: "agent_full";
|
|
1821
|
+
referencedColumns: ["id"];
|
|
1822
|
+
},
|
|
1633
1823
|
{
|
|
1634
1824
|
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
1635
1825
|
columns: ["agent_id"];
|
|
@@ -1738,6 +1928,13 @@ export type Database = {
|
|
|
1738
1928
|
type?: string;
|
|
1739
1929
|
};
|
|
1740
1930
|
Relationships: [
|
|
1931
|
+
{
|
|
1932
|
+
foreignKeyName: "messages_agent_id_fkey";
|
|
1933
|
+
columns: ["agent_id"];
|
|
1934
|
+
isOneToOne: false;
|
|
1935
|
+
referencedRelation: "agent_full";
|
|
1936
|
+
referencedColumns: ["id"];
|
|
1937
|
+
},
|
|
1741
1938
|
{
|
|
1742
1939
|
foreignKeyName: "messages_agent_id_fkey";
|
|
1743
1940
|
columns: ["agent_id"];
|
|
@@ -1834,6 +2031,13 @@ export type Database = {
|
|
|
1834
2031
|
user_id?: string;
|
|
1835
2032
|
};
|
|
1836
2033
|
Relationships: [
|
|
2034
|
+
{
|
|
2035
|
+
foreignKeyName: "oauth_states_agent_id_fkey";
|
|
2036
|
+
columns: ["agent_id"];
|
|
2037
|
+
isOneToOne: false;
|
|
2038
|
+
referencedRelation: "agent_full";
|
|
2039
|
+
referencedColumns: ["id"];
|
|
2040
|
+
},
|
|
1837
2041
|
{
|
|
1838
2042
|
foreignKeyName: "oauth_states_agent_id_fkey";
|
|
1839
2043
|
columns: ["agent_id"];
|
|
@@ -1850,6 +2054,39 @@ export type Database = {
|
|
|
1850
2054
|
}
|
|
1851
2055
|
];
|
|
1852
2056
|
};
|
|
2057
|
+
operation_idempotency_records: {
|
|
2058
|
+
Row: {
|
|
2059
|
+
created_at: string;
|
|
2060
|
+
function_name: string;
|
|
2061
|
+
id: string;
|
|
2062
|
+
operation_id: string;
|
|
2063
|
+
request_hash: string;
|
|
2064
|
+
response_payload: Json | null;
|
|
2065
|
+
updated_at: string;
|
|
2066
|
+
user_id: string;
|
|
2067
|
+
};
|
|
2068
|
+
Insert: {
|
|
2069
|
+
created_at?: string;
|
|
2070
|
+
function_name: string;
|
|
2071
|
+
id?: string;
|
|
2072
|
+
operation_id: string;
|
|
2073
|
+
request_hash: string;
|
|
2074
|
+
response_payload?: Json | null;
|
|
2075
|
+
updated_at?: string;
|
|
2076
|
+
user_id: string;
|
|
2077
|
+
};
|
|
2078
|
+
Update: {
|
|
2079
|
+
created_at?: string;
|
|
2080
|
+
function_name?: string;
|
|
2081
|
+
id?: string;
|
|
2082
|
+
operation_id?: string;
|
|
2083
|
+
request_hash?: string;
|
|
2084
|
+
response_payload?: Json | null;
|
|
2085
|
+
updated_at?: string;
|
|
2086
|
+
user_id?: string;
|
|
2087
|
+
};
|
|
2088
|
+
Relationships: [];
|
|
2089
|
+
};
|
|
1853
2090
|
plan_switch_audit: {
|
|
1854
2091
|
Row: {
|
|
1855
2092
|
from_monthly_cents: number | null;
|
|
@@ -2039,6 +2276,13 @@ export type Database = {
|
|
|
2039
2276
|
updated_at?: string;
|
|
2040
2277
|
};
|
|
2041
2278
|
Relationships: [
|
|
2279
|
+
{
|
|
2280
|
+
foreignKeyName: "scheduled_messages_agent_id_agents_id_fk";
|
|
2281
|
+
columns: ["agent_id"];
|
|
2282
|
+
isOneToOne: false;
|
|
2283
|
+
referencedRelation: "agent_full";
|
|
2284
|
+
referencedColumns: ["id"];
|
|
2285
|
+
},
|
|
2042
2286
|
{
|
|
2043
2287
|
foreignKeyName: "scheduled_messages_agent_id_agents_id_fk";
|
|
2044
2288
|
columns: ["agent_id"];
|
|
@@ -2125,6 +2369,13 @@ export type Database = {
|
|
|
2125
2369
|
results_count?: number;
|
|
2126
2370
|
};
|
|
2127
2371
|
Relationships: [
|
|
2372
|
+
{
|
|
2373
|
+
foreignKeyName: "search_usage_agent_id_fkey";
|
|
2374
|
+
columns: ["agent_id"];
|
|
2375
|
+
isOneToOne: false;
|
|
2376
|
+
referencedRelation: "agent_full";
|
|
2377
|
+
referencedColumns: ["id"];
|
|
2378
|
+
},
|
|
2128
2379
|
{
|
|
2129
2380
|
foreignKeyName: "search_usage_agent_id_fkey";
|
|
2130
2381
|
columns: ["agent_id"];
|
|
@@ -2406,6 +2657,13 @@ export type Database = {
|
|
|
2406
2657
|
updated_at?: string;
|
|
2407
2658
|
};
|
|
2408
2659
|
Relationships: [
|
|
2660
|
+
{
|
|
2661
|
+
foreignKeyName: "subagent_notification_deliveries_agent_id_fkey";
|
|
2662
|
+
columns: ["agent_id"];
|
|
2663
|
+
isOneToOne: false;
|
|
2664
|
+
referencedRelation: "agent_full";
|
|
2665
|
+
referencedColumns: ["id"];
|
|
2666
|
+
},
|
|
2409
2667
|
{
|
|
2410
2668
|
foreignKeyName: "subagent_notification_deliveries_agent_id_fkey";
|
|
2411
2669
|
columns: ["agent_id"];
|
|
@@ -2744,6 +3002,13 @@ export type Database = {
|
|
|
2744
3002
|
referencedRelation: "team_resources";
|
|
2745
3003
|
referencedColumns: ["id"];
|
|
2746
3004
|
},
|
|
3005
|
+
{
|
|
3006
|
+
foreignKeyName: "subagents_owner_agent_id_fkey";
|
|
3007
|
+
columns: ["owner_agent_id"];
|
|
3008
|
+
isOneToOne: false;
|
|
3009
|
+
referencedRelation: "agent_full";
|
|
3010
|
+
referencedColumns: ["id"];
|
|
3011
|
+
},
|
|
2747
3012
|
{
|
|
2748
3013
|
foreignKeyName: "subagents_owner_agent_id_fkey";
|
|
2749
3014
|
columns: ["owner_agent_id"];
|
|
@@ -3118,12 +3383,65 @@ export type Database = {
|
|
|
3118
3383
|
}
|
|
3119
3384
|
];
|
|
3120
3385
|
};
|
|
3386
|
+
team_resource_subscription_states: {
|
|
3387
|
+
Row: {
|
|
3388
|
+
created_at: string;
|
|
3389
|
+
id: string;
|
|
3390
|
+
last_error: string | null;
|
|
3391
|
+
source: string;
|
|
3392
|
+
source_event_id: string | null;
|
|
3393
|
+
source_log_id: string | null;
|
|
3394
|
+
state_payload: Json | null;
|
|
3395
|
+
state_updated_at: string | null;
|
|
3396
|
+
subscription_id: string;
|
|
3397
|
+
updated_at: string;
|
|
3398
|
+
};
|
|
3399
|
+
Insert: {
|
|
3400
|
+
created_at?: string;
|
|
3401
|
+
id?: string;
|
|
3402
|
+
last_error?: string | null;
|
|
3403
|
+
source?: string;
|
|
3404
|
+
source_event_id?: string | null;
|
|
3405
|
+
source_log_id?: string | null;
|
|
3406
|
+
state_payload?: Json | null;
|
|
3407
|
+
state_updated_at?: string | null;
|
|
3408
|
+
subscription_id: string;
|
|
3409
|
+
updated_at?: string;
|
|
3410
|
+
};
|
|
3411
|
+
Update: {
|
|
3412
|
+
created_at?: string;
|
|
3413
|
+
id?: string;
|
|
3414
|
+
last_error?: string | null;
|
|
3415
|
+
source?: string;
|
|
3416
|
+
source_event_id?: string | null;
|
|
3417
|
+
source_log_id?: string | null;
|
|
3418
|
+
state_payload?: Json | null;
|
|
3419
|
+
state_updated_at?: string | null;
|
|
3420
|
+
subscription_id?: string;
|
|
3421
|
+
updated_at?: string;
|
|
3422
|
+
};
|
|
3423
|
+
Relationships: [
|
|
3424
|
+
{
|
|
3425
|
+
foreignKeyName: "team_resource_subscription_states_subscription_id_fkey";
|
|
3426
|
+
columns: ["subscription_id"];
|
|
3427
|
+
isOneToOne: true;
|
|
3428
|
+
referencedRelation: "team_resource_subscriptions";
|
|
3429
|
+
referencedColumns: ["id"];
|
|
3430
|
+
}
|
|
3431
|
+
];
|
|
3432
|
+
};
|
|
3121
3433
|
team_resource_subscriptions: {
|
|
3122
3434
|
Row: {
|
|
3123
3435
|
agent_id: string;
|
|
3124
3436
|
created_at: string;
|
|
3125
3437
|
id: string;
|
|
3438
|
+
include_in_state: boolean;
|
|
3126
3439
|
poll_config: Json | null;
|
|
3440
|
+
poll_consecutive_failures: number | null;
|
|
3441
|
+
poll_disabled_at: string | null;
|
|
3442
|
+
poll_interval_seconds: number | null;
|
|
3443
|
+
poll_last_at: string | null;
|
|
3444
|
+
poll_next_at: string | null;
|
|
3127
3445
|
subscription_origin: string;
|
|
3128
3446
|
subscription_path: string;
|
|
3129
3447
|
team_resource_id: string;
|
|
@@ -3134,7 +3452,13 @@ export type Database = {
|
|
|
3134
3452
|
agent_id: string;
|
|
3135
3453
|
created_at?: string;
|
|
3136
3454
|
id?: string;
|
|
3455
|
+
include_in_state?: boolean;
|
|
3137
3456
|
poll_config?: Json | null;
|
|
3457
|
+
poll_consecutive_failures?: number | null;
|
|
3458
|
+
poll_disabled_at?: string | null;
|
|
3459
|
+
poll_interval_seconds?: number | null;
|
|
3460
|
+
poll_last_at?: string | null;
|
|
3461
|
+
poll_next_at?: string | null;
|
|
3138
3462
|
subscription_origin?: string;
|
|
3139
3463
|
subscription_path?: string;
|
|
3140
3464
|
team_resource_id: string;
|
|
@@ -3145,7 +3469,13 @@ export type Database = {
|
|
|
3145
3469
|
agent_id?: string;
|
|
3146
3470
|
created_at?: string;
|
|
3147
3471
|
id?: string;
|
|
3472
|
+
include_in_state?: boolean;
|
|
3148
3473
|
poll_config?: Json | null;
|
|
3474
|
+
poll_consecutive_failures?: number | null;
|
|
3475
|
+
poll_disabled_at?: string | null;
|
|
3476
|
+
poll_interval_seconds?: number | null;
|
|
3477
|
+
poll_last_at?: string | null;
|
|
3478
|
+
poll_next_at?: string | null;
|
|
3149
3479
|
subscription_origin?: string;
|
|
3150
3480
|
subscription_path?: string;
|
|
3151
3481
|
team_resource_id?: string;
|
|
@@ -3153,6 +3483,13 @@ export type Database = {
|
|
|
3153
3483
|
wake_on_update?: boolean;
|
|
3154
3484
|
};
|
|
3155
3485
|
Relationships: [
|
|
3486
|
+
{
|
|
3487
|
+
foreignKeyName: "team_resource_subscriptions_agent_id_fkey";
|
|
3488
|
+
columns: ["agent_id"];
|
|
3489
|
+
isOneToOne: false;
|
|
3490
|
+
referencedRelation: "agent_full";
|
|
3491
|
+
referencedColumns: ["id"];
|
|
3492
|
+
},
|
|
3156
3493
|
{
|
|
3157
3494
|
foreignKeyName: "team_resource_subscriptions_agent_id_fkey";
|
|
3158
3495
|
columns: ["agent_id"];
|
|
@@ -3223,6 +3560,13 @@ export type Database = {
|
|
|
3223
3560
|
referencedRelation: "external_connections";
|
|
3224
3561
|
referencedColumns: ["id"];
|
|
3225
3562
|
},
|
|
3563
|
+
{
|
|
3564
|
+
foreignKeyName: "team_resources_owner_agent_id_fkey";
|
|
3565
|
+
columns: ["owner_agent_id"];
|
|
3566
|
+
isOneToOne: false;
|
|
3567
|
+
referencedRelation: "agent_full";
|
|
3568
|
+
referencedColumns: ["id"];
|
|
3569
|
+
},
|
|
3226
3570
|
{
|
|
3227
3571
|
foreignKeyName: "team_resources_owner_agent_id_fkey";
|
|
3228
3572
|
columns: ["owner_agent_id"];
|
|
@@ -3472,6 +3816,13 @@ export type Database = {
|
|
|
3472
3816
|
tool_name?: string;
|
|
3473
3817
|
};
|
|
3474
3818
|
Relationships: [
|
|
3819
|
+
{
|
|
3820
|
+
foreignKeyName: "tool_calls_agent_id_agents_id_fk";
|
|
3821
|
+
columns: ["agent_id"];
|
|
3822
|
+
isOneToOne: false;
|
|
3823
|
+
referencedRelation: "agent_full";
|
|
3824
|
+
referencedColumns: ["id"];
|
|
3825
|
+
},
|
|
3475
3826
|
{
|
|
3476
3827
|
foreignKeyName: "tool_calls_agent_id_agents_id_fk";
|
|
3477
3828
|
columns: ["agent_id"];
|
|
@@ -3703,6 +4054,33 @@ export type Database = {
|
|
|
3703
4054
|
};
|
|
3704
4055
|
Relationships: [];
|
|
3705
4056
|
};
|
|
4057
|
+
user_action_rate_limits: {
|
|
4058
|
+
Row: {
|
|
4059
|
+
action_key: string;
|
|
4060
|
+
created_at: string;
|
|
4061
|
+
request_count: number;
|
|
4062
|
+
updated_at: string;
|
|
4063
|
+
user_id: string;
|
|
4064
|
+
window_started_at: string;
|
|
4065
|
+
};
|
|
4066
|
+
Insert: {
|
|
4067
|
+
action_key: string;
|
|
4068
|
+
created_at?: string;
|
|
4069
|
+
request_count?: number;
|
|
4070
|
+
updated_at?: string;
|
|
4071
|
+
user_id: string;
|
|
4072
|
+
window_started_at: string;
|
|
4073
|
+
};
|
|
4074
|
+
Update: {
|
|
4075
|
+
action_key?: string;
|
|
4076
|
+
created_at?: string;
|
|
4077
|
+
request_count?: number;
|
|
4078
|
+
updated_at?: string;
|
|
4079
|
+
user_id?: string;
|
|
4080
|
+
window_started_at?: string;
|
|
4081
|
+
};
|
|
4082
|
+
Relationships: [];
|
|
4083
|
+
};
|
|
3706
4084
|
user_agent_read_state: {
|
|
3707
4085
|
Row: {
|
|
3708
4086
|
agent_id: string;
|
|
@@ -3732,6 +4110,13 @@ export type Database = {
|
|
|
3732
4110
|
user_id?: string;
|
|
3733
4111
|
};
|
|
3734
4112
|
Relationships: [
|
|
4113
|
+
{
|
|
4114
|
+
foreignKeyName: "user_agent_read_state_agent_id_fkey";
|
|
4115
|
+
columns: ["agent_id"];
|
|
4116
|
+
isOneToOne: false;
|
|
4117
|
+
referencedRelation: "agent_full";
|
|
4118
|
+
referencedColumns: ["id"];
|
|
4119
|
+
},
|
|
3735
4120
|
{
|
|
3736
4121
|
foreignKeyName: "user_agent_read_state_agent_id_fkey";
|
|
3737
4122
|
columns: ["agent_id"];
|
|
@@ -3819,6 +4204,13 @@ export type Database = {
|
|
|
3819
4204
|
user_id?: string;
|
|
3820
4205
|
};
|
|
3821
4206
|
Relationships: [
|
|
4207
|
+
{
|
|
4208
|
+
foreignKeyName: "user_notification_deliveries_agent_id_fkey";
|
|
4209
|
+
columns: ["agent_id"];
|
|
4210
|
+
isOneToOne: false;
|
|
4211
|
+
referencedRelation: "agent_full";
|
|
4212
|
+
referencedColumns: ["id"];
|
|
4213
|
+
},
|
|
3822
4214
|
{
|
|
3823
4215
|
foreignKeyName: "user_notification_deliveries_agent_id_fkey";
|
|
3824
4216
|
columns: ["agent_id"];
|
|
@@ -4158,6 +4550,13 @@ export type Database = {
|
|
|
4158
4550
|
vendor: string | null;
|
|
4159
4551
|
};
|
|
4160
4552
|
Relationships: [
|
|
4553
|
+
{
|
|
4554
|
+
foreignKeyName: "agent_usage_agent_id_agents_id_fk";
|
|
4555
|
+
columns: ["agent_id"];
|
|
4556
|
+
isOneToOne: false;
|
|
4557
|
+
referencedRelation: "agent_full";
|
|
4558
|
+
referencedColumns: ["id"];
|
|
4559
|
+
},
|
|
4161
4560
|
{
|
|
4162
4561
|
foreignKeyName: "agent_usage_agent_id_agents_id_fk";
|
|
4163
4562
|
columns: ["agent_id"];
|
|
@@ -4195,10 +4594,134 @@ export type Database = {
|
|
|
4195
4594
|
};
|
|
4196
4595
|
Relationships: [
|
|
4197
4596
|
{
|
|
4198
|
-
foreignKeyName: "agent_files_agent_id_agents_id_fk";
|
|
4199
|
-
columns: ["agent_id"];
|
|
4597
|
+
foreignKeyName: "agent_files_agent_id_agents_id_fk";
|
|
4598
|
+
columns: ["agent_id"];
|
|
4599
|
+
isOneToOne: false;
|
|
4600
|
+
referencedRelation: "agent_full";
|
|
4601
|
+
referencedColumns: ["id"];
|
|
4602
|
+
},
|
|
4603
|
+
{
|
|
4604
|
+
foreignKeyName: "agent_files_agent_id_agents_id_fk";
|
|
4605
|
+
columns: ["agent_id"];
|
|
4606
|
+
isOneToOne: false;
|
|
4607
|
+
referencedRelation: "agents";
|
|
4608
|
+
referencedColumns: ["id"];
|
|
4609
|
+
}
|
|
4610
|
+
];
|
|
4611
|
+
};
|
|
4612
|
+
agent_full: {
|
|
4613
|
+
Row: {
|
|
4614
|
+
action_summary: string | null;
|
|
4615
|
+
agent_state: string | null;
|
|
4616
|
+
auto_model_selection: boolean | null;
|
|
4617
|
+
context: string | null;
|
|
4618
|
+
context_token_count: number | null;
|
|
4619
|
+
created_at: string | null;
|
|
4620
|
+
created_by: string | null;
|
|
4621
|
+
creation_progress: Json | null;
|
|
4622
|
+
deleted_at: string | null;
|
|
4623
|
+
fallback_lite_model_id: string | null;
|
|
4624
|
+
fallback_main_model_id: string | null;
|
|
4625
|
+
id: string | null;
|
|
4626
|
+
instructions: string | null;
|
|
4627
|
+
job_state: string | null;
|
|
4628
|
+
last_activity_at: string | null;
|
|
4629
|
+
last_cycle_started_at: string | null;
|
|
4630
|
+
last_interaction_at: string | null;
|
|
4631
|
+
last_read_message_id: string | null;
|
|
4632
|
+
lite_model_id: string | null;
|
|
4633
|
+
log_lines_in_context: number | null;
|
|
4634
|
+
main_model_id: string | null;
|
|
4635
|
+
max_daily_summaries: number | null;
|
|
4636
|
+
max_hourly_summaries: number | null;
|
|
4637
|
+
max_log_chars_in_context: number | null;
|
|
4638
|
+
max_monthly_summaries: number | null;
|
|
4639
|
+
max_requests_per_minute: number | null;
|
|
4640
|
+
min_cycle_start_interval_seconds: number | null;
|
|
4641
|
+
min_daily_summaries: number | null;
|
|
4642
|
+
min_hourly_summaries: number | null;
|
|
4643
|
+
min_log_chars_in_context: number | null;
|
|
4644
|
+
name: string | null;
|
|
4645
|
+
objective: string | null;
|
|
4646
|
+
pause_reason: string | null;
|
|
4647
|
+
plan: Json | null;
|
|
4648
|
+
rpm_bucket_level: number | null;
|
|
4649
|
+
rpm_last_updated_at: string | null;
|
|
4650
|
+
search_provider_fallbacks: Json | null;
|
|
4651
|
+
search_provider_id: string | null;
|
|
4652
|
+
summary_chunk_chars: number | null;
|
|
4653
|
+
system_prompt: string | null;
|
|
4654
|
+
system_template_slug: string | null;
|
|
4655
|
+
team_id: string | null;
|
|
4656
|
+
updated_at: string | null;
|
|
4657
|
+
wake_generation: number | null;
|
|
4658
|
+
web_read_content_provider_fallbacks: Json | null;
|
|
4659
|
+
web_read_content_provider_id: string | null;
|
|
4660
|
+
web_read_html_provider_fallbacks: Json | null;
|
|
4661
|
+
web_read_html_provider_id: string | null;
|
|
4662
|
+
};
|
|
4663
|
+
Relationships: [
|
|
4664
|
+
{
|
|
4665
|
+
foreignKeyName: "agent_model_settings_fallback_lite_model_id_fkey";
|
|
4666
|
+
columns: ["fallback_lite_model_id"];
|
|
4667
|
+
isOneToOne: false;
|
|
4668
|
+
referencedRelation: "ai_model_routes";
|
|
4669
|
+
referencedColumns: ["id"];
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
foreignKeyName: "agent_model_settings_fallback_main_model_id_fkey";
|
|
4673
|
+
columns: ["fallback_main_model_id"];
|
|
4674
|
+
isOneToOne: false;
|
|
4675
|
+
referencedRelation: "ai_model_routes";
|
|
4676
|
+
referencedColumns: ["id"];
|
|
4677
|
+
},
|
|
4678
|
+
{
|
|
4679
|
+
foreignKeyName: "agent_model_settings_lite_model_id_fkey";
|
|
4680
|
+
columns: ["lite_model_id"];
|
|
4681
|
+
isOneToOne: false;
|
|
4682
|
+
referencedRelation: "ai_model_routes";
|
|
4683
|
+
referencedColumns: ["id"];
|
|
4684
|
+
},
|
|
4685
|
+
{
|
|
4686
|
+
foreignKeyName: "agent_model_settings_main_model_id_fkey";
|
|
4687
|
+
columns: ["main_model_id"];
|
|
4688
|
+
isOneToOne: false;
|
|
4689
|
+
referencedRelation: "ai_model_routes";
|
|
4690
|
+
referencedColumns: ["id"];
|
|
4691
|
+
},
|
|
4692
|
+
{
|
|
4693
|
+
foreignKeyName: "agent_model_settings_search_provider_id_fkey";
|
|
4694
|
+
columns: ["search_provider_id"];
|
|
4695
|
+
isOneToOne: false;
|
|
4696
|
+
referencedRelation: "search_providers";
|
|
4697
|
+
referencedColumns: ["id"];
|
|
4698
|
+
},
|
|
4699
|
+
{
|
|
4700
|
+
foreignKeyName: "agent_model_settings_web_read_content_provider_id_fkey";
|
|
4701
|
+
columns: ["web_read_content_provider_id"];
|
|
4702
|
+
isOneToOne: false;
|
|
4703
|
+
referencedRelation: "web_read_providers";
|
|
4704
|
+
referencedColumns: ["id"];
|
|
4705
|
+
},
|
|
4706
|
+
{
|
|
4707
|
+
foreignKeyName: "agent_model_settings_web_read_html_provider_id_fkey";
|
|
4708
|
+
columns: ["web_read_html_provider_id"];
|
|
4200
4709
|
isOneToOne: false;
|
|
4201
|
-
referencedRelation: "
|
|
4710
|
+
referencedRelation: "web_read_providers";
|
|
4711
|
+
referencedColumns: ["id"];
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
foreignKeyName: "agents_system_template_slug_fkey";
|
|
4715
|
+
columns: ["system_template_slug"];
|
|
4716
|
+
isOneToOne: false;
|
|
4717
|
+
referencedRelation: "system_templates";
|
|
4718
|
+
referencedColumns: ["slug"];
|
|
4719
|
+
},
|
|
4720
|
+
{
|
|
4721
|
+
foreignKeyName: "agents_team_id_teams_id_fk";
|
|
4722
|
+
columns: ["team_id"];
|
|
4723
|
+
isOneToOne: false;
|
|
4724
|
+
referencedRelation: "teams";
|
|
4202
4725
|
referencedColumns: ["id"];
|
|
4203
4726
|
}
|
|
4204
4727
|
];
|
|
@@ -4234,6 +4757,13 @@ export type Database = {
|
|
|
4234
4757
|
referencedRelation: "teams";
|
|
4235
4758
|
referencedColumns: ["id"];
|
|
4236
4759
|
},
|
|
4760
|
+
{
|
|
4761
|
+
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
4762
|
+
columns: ["agent_id"];
|
|
4763
|
+
isOneToOne: false;
|
|
4764
|
+
referencedRelation: "agent_full";
|
|
4765
|
+
referencedColumns: ["id"];
|
|
4766
|
+
},
|
|
4237
4767
|
{
|
|
4238
4768
|
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
4239
4769
|
columns: ["agent_id"];
|
|
@@ -4308,6 +4838,13 @@ export type Database = {
|
|
|
4308
4838
|
type?: string | null;
|
|
4309
4839
|
};
|
|
4310
4840
|
Relationships: [
|
|
4841
|
+
{
|
|
4842
|
+
foreignKeyName: "messages_agent_id_fkey";
|
|
4843
|
+
columns: ["agent_id"];
|
|
4844
|
+
isOneToOne: false;
|
|
4845
|
+
referencedRelation: "agent_full";
|
|
4846
|
+
referencedColumns: ["id"];
|
|
4847
|
+
},
|
|
4311
4848
|
{
|
|
4312
4849
|
foreignKeyName: "messages_agent_id_fkey";
|
|
4313
4850
|
columns: ["agent_id"];
|
|
@@ -4331,6 +4868,46 @@ export type Database = {
|
|
|
4331
4868
|
}
|
|
4332
4869
|
];
|
|
4333
4870
|
};
|
|
4871
|
+
ops_agent_incident_timeline: {
|
|
4872
|
+
Row: {
|
|
4873
|
+
agent_id: string | null;
|
|
4874
|
+
agent_name: string | null;
|
|
4875
|
+
app_error_id: string | null;
|
|
4876
|
+
correlation_id: string | null;
|
|
4877
|
+
event_at: string | null;
|
|
4878
|
+
event_type: string | null;
|
|
4879
|
+
incident_id: string | null;
|
|
4880
|
+
incident_source: string | null;
|
|
4881
|
+
job_id: string | null;
|
|
4882
|
+
log_id: string | null;
|
|
4883
|
+
metadata: Json | null;
|
|
4884
|
+
model: string | null;
|
|
4885
|
+
request_id: string | null;
|
|
4886
|
+
severity: string | null;
|
|
4887
|
+
summary: string | null;
|
|
4888
|
+
team_id: string | null;
|
|
4889
|
+
team_name: string | null;
|
|
4890
|
+
trace_id: string | null;
|
|
4891
|
+
};
|
|
4892
|
+
Relationships: [];
|
|
4893
|
+
};
|
|
4894
|
+
ops_failing_agents_models: {
|
|
4895
|
+
Row: {
|
|
4896
|
+
agent_id: string | null;
|
|
4897
|
+
agent_name: string | null;
|
|
4898
|
+
bucket_start: string | null;
|
|
4899
|
+
event_type: string | null;
|
|
4900
|
+
failure_count: number | null;
|
|
4901
|
+
incident_source: string | null;
|
|
4902
|
+
latest_event_at: string | null;
|
|
4903
|
+
model: string | null;
|
|
4904
|
+
severity: string | null;
|
|
4905
|
+
team_id: string | null;
|
|
4906
|
+
team_name: string | null;
|
|
4907
|
+
unique_jobs: number | null;
|
|
4908
|
+
};
|
|
4909
|
+
Relationships: [];
|
|
4910
|
+
};
|
|
4334
4911
|
ops_failure_events: {
|
|
4335
4912
|
Row: {
|
|
4336
4913
|
agent_id: string | null;
|
|
@@ -4356,6 +4933,13 @@ export type Database = {
|
|
|
4356
4933
|
referencedRelation: "teams";
|
|
4357
4934
|
referencedColumns: ["id"];
|
|
4358
4935
|
},
|
|
4936
|
+
{
|
|
4937
|
+
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
4938
|
+
columns: ["agent_id"];
|
|
4939
|
+
isOneToOne: false;
|
|
4940
|
+
referencedRelation: "agent_full";
|
|
4941
|
+
referencedColumns: ["id"];
|
|
4942
|
+
},
|
|
4359
4943
|
{
|
|
4360
4944
|
foreignKeyName: "logs_agent_id_agents_id_fk";
|
|
4361
4945
|
columns: ["agent_id"];
|
|
@@ -4365,6 +4949,29 @@ export type Database = {
|
|
|
4365
4949
|
}
|
|
4366
4950
|
];
|
|
4367
4951
|
};
|
|
4952
|
+
ops_incident_events: {
|
|
4953
|
+
Row: {
|
|
4954
|
+
agent_id: string | null;
|
|
4955
|
+
agent_name: string | null;
|
|
4956
|
+
app_error_id: string | null;
|
|
4957
|
+
correlation_id: string | null;
|
|
4958
|
+
event_at: string | null;
|
|
4959
|
+
event_type: string | null;
|
|
4960
|
+
incident_id: string | null;
|
|
4961
|
+
incident_source: string | null;
|
|
4962
|
+
job_id: string | null;
|
|
4963
|
+
log_id: string | null;
|
|
4964
|
+
metadata: Json | null;
|
|
4965
|
+
model: string | null;
|
|
4966
|
+
request_id: string | null;
|
|
4967
|
+
severity: string | null;
|
|
4968
|
+
summary: string | null;
|
|
4969
|
+
team_id: string | null;
|
|
4970
|
+
team_name: string | null;
|
|
4971
|
+
trace_id: string | null;
|
|
4972
|
+
};
|
|
4973
|
+
Relationships: [];
|
|
4974
|
+
};
|
|
4368
4975
|
};
|
|
4369
4976
|
Functions: {
|
|
4370
4977
|
accept_team_invitation: {
|
|
@@ -4793,6 +5400,15 @@ export type Database = {
|
|
|
4793
5400
|
};
|
|
4794
5401
|
Returns: string;
|
|
4795
5402
|
};
|
|
5403
|
+
enforce_user_action_rate_limit: {
|
|
5404
|
+
Args: {
|
|
5405
|
+
p_action_key: string;
|
|
5406
|
+
p_limit: number;
|
|
5407
|
+
p_user_id: string;
|
|
5408
|
+
p_window_seconds?: number;
|
|
5409
|
+
};
|
|
5410
|
+
Returns: number;
|
|
5411
|
+
};
|
|
4796
5412
|
enqueue_configure_agent_job: {
|
|
4797
5413
|
Args: {
|
|
4798
5414
|
p_agent_id: string;
|
|
@@ -4932,31 +5548,6 @@ export type Database = {
|
|
|
4932
5548
|
isSetofReturn: true;
|
|
4933
5549
|
};
|
|
4934
5550
|
};
|
|
4935
|
-
get_available_tools: {
|
|
4936
|
-
Args: {
|
|
4937
|
-
p_agent_id: string;
|
|
4938
|
-
};
|
|
4939
|
-
Returns: {
|
|
4940
|
-
agent_enabled: boolean;
|
|
4941
|
-
category: string;
|
|
4942
|
-
category_description: string;
|
|
4943
|
-
color: string;
|
|
4944
|
-
description: string;
|
|
4945
|
-
disabled_reason: string;
|
|
4946
|
-
display_name: string;
|
|
4947
|
-
endpoint_url: string;
|
|
4948
|
-
execution_type: string;
|
|
4949
|
-
icon: string;
|
|
4950
|
-
id: string;
|
|
4951
|
-
input_schema: Json;
|
|
4952
|
-
is_critical: boolean;
|
|
4953
|
-
metadata: Json;
|
|
4954
|
-
name: string;
|
|
4955
|
-
short_description: string;
|
|
4956
|
-
type: string;
|
|
4957
|
-
version: string;
|
|
4958
|
-
}[];
|
|
4959
|
-
};
|
|
4960
5551
|
get_context_summaries_with_cutoff: {
|
|
4961
5552
|
Args: {
|
|
4962
5553
|
p_agent_id: string;
|
|
@@ -5078,6 +5669,26 @@ export type Database = {
|
|
|
5078
5669
|
metadata: Json;
|
|
5079
5670
|
}[];
|
|
5080
5671
|
};
|
|
5672
|
+
get_logs_for_gap_ranges: {
|
|
5673
|
+
Args: {
|
|
5674
|
+
p_agent_id: string;
|
|
5675
|
+
p_char_limit: number;
|
|
5676
|
+
p_max_ranges?: number;
|
|
5677
|
+
p_ranges: Json;
|
|
5678
|
+
};
|
|
5679
|
+
Returns: {
|
|
5680
|
+
actor: string;
|
|
5681
|
+
agent_id: string;
|
|
5682
|
+
content: string;
|
|
5683
|
+
date: string;
|
|
5684
|
+
formatted_content: string;
|
|
5685
|
+
id: string;
|
|
5686
|
+
log_type: string;
|
|
5687
|
+
summary: string;
|
|
5688
|
+
title: string;
|
|
5689
|
+
type: string;
|
|
5690
|
+
}[];
|
|
5691
|
+
};
|
|
5081
5692
|
get_messages_by_char_count: {
|
|
5082
5693
|
Args: {
|
|
5083
5694
|
p_agent_id: string;
|
|
@@ -5148,49 +5759,49 @@ export type Database = {
|
|
|
5148
5759
|
};
|
|
5149
5760
|
Returns: {
|
|
5150
5761
|
action_summary: string | null;
|
|
5151
|
-
agent_state: string;
|
|
5152
|
-
auto_model_selection: boolean;
|
|
5153
|
-
context: string;
|
|
5154
|
-
context_token_count: number;
|
|
5155
|
-
created_at: string;
|
|
5156
|
-
created_by: string;
|
|
5762
|
+
agent_state: string | null;
|
|
5763
|
+
auto_model_selection: boolean | null;
|
|
5764
|
+
context: string | null;
|
|
5765
|
+
context_token_count: number | null;
|
|
5766
|
+
created_at: string | null;
|
|
5767
|
+
created_by: string | null;
|
|
5157
5768
|
creation_progress: Json | null;
|
|
5158
5769
|
deleted_at: string | null;
|
|
5159
5770
|
fallback_lite_model_id: string | null;
|
|
5160
5771
|
fallback_main_model_id: string | null;
|
|
5161
|
-
id: string;
|
|
5772
|
+
id: string | null;
|
|
5162
5773
|
instructions: string | null;
|
|
5163
|
-
job_state: string;
|
|
5164
|
-
last_activity_at: string;
|
|
5774
|
+
job_state: string | null;
|
|
5775
|
+
last_activity_at: string | null;
|
|
5165
5776
|
last_cycle_started_at: string | null;
|
|
5166
|
-
last_interaction_at: string;
|
|
5777
|
+
last_interaction_at: string | null;
|
|
5167
5778
|
last_read_message_id: string | null;
|
|
5168
|
-
lite_model_id: string;
|
|
5169
|
-
log_lines_in_context: number;
|
|
5170
|
-
main_model_id: string;
|
|
5171
|
-
max_daily_summaries: number;
|
|
5172
|
-
max_hourly_summaries: number;
|
|
5173
|
-
max_log_chars_in_context: number;
|
|
5174
|
-
max_monthly_summaries: number;
|
|
5175
|
-
max_requests_per_minute: number;
|
|
5176
|
-
min_cycle_start_interval_seconds: number;
|
|
5177
|
-
min_daily_summaries: number;
|
|
5178
|
-
min_hourly_summaries: number;
|
|
5179
|
-
min_log_chars_in_context: number;
|
|
5180
|
-
name: string;
|
|
5779
|
+
lite_model_id: string | null;
|
|
5780
|
+
log_lines_in_context: number | null;
|
|
5781
|
+
main_model_id: string | null;
|
|
5782
|
+
max_daily_summaries: number | null;
|
|
5783
|
+
max_hourly_summaries: number | null;
|
|
5784
|
+
max_log_chars_in_context: number | null;
|
|
5785
|
+
max_monthly_summaries: number | null;
|
|
5786
|
+
max_requests_per_minute: number | null;
|
|
5787
|
+
min_cycle_start_interval_seconds: number | null;
|
|
5788
|
+
min_daily_summaries: number | null;
|
|
5789
|
+
min_hourly_summaries: number | null;
|
|
5790
|
+
min_log_chars_in_context: number | null;
|
|
5791
|
+
name: string | null;
|
|
5181
5792
|
objective: string | null;
|
|
5182
5793
|
pause_reason: string | null;
|
|
5183
|
-
plan: Json;
|
|
5184
|
-
rpm_bucket_level: number;
|
|
5185
|
-
rpm_last_updated_at: string;
|
|
5794
|
+
plan: Json | null;
|
|
5795
|
+
rpm_bucket_level: number | null;
|
|
5796
|
+
rpm_last_updated_at: string | null;
|
|
5186
5797
|
search_provider_fallbacks: Json | null;
|
|
5187
5798
|
search_provider_id: string | null;
|
|
5188
|
-
summary_chunk_chars: number;
|
|
5189
|
-
system_prompt: string;
|
|
5799
|
+
summary_chunk_chars: number | null;
|
|
5800
|
+
system_prompt: string | null;
|
|
5190
5801
|
system_template_slug: string | null;
|
|
5191
|
-
team_id: string;
|
|
5802
|
+
team_id: string | null;
|
|
5192
5803
|
updated_at: string | null;
|
|
5193
|
-
wake_generation: number;
|
|
5804
|
+
wake_generation: number | null;
|
|
5194
5805
|
web_read_content_provider_fallbacks: Json | null;
|
|
5195
5806
|
web_read_content_provider_id: string | null;
|
|
5196
5807
|
web_read_html_provider_fallbacks: Json | null;
|
|
@@ -5198,7 +5809,7 @@ export type Database = {
|
|
|
5198
5809
|
}[];
|
|
5199
5810
|
SetofOptions: {
|
|
5200
5811
|
from: "*";
|
|
5201
|
-
to: "
|
|
5812
|
+
to: "agent_full";
|
|
5202
5813
|
isOneToOne: false;
|
|
5203
5814
|
isSetofReturn: true;
|
|
5204
5815
|
};
|
|
@@ -5384,6 +5995,7 @@ export type Database = {
|
|
|
5384
5995
|
description: string;
|
|
5385
5996
|
disabled_reason: string;
|
|
5386
5997
|
display_name: string;
|
|
5998
|
+
examples: Json;
|
|
5387
5999
|
execution_type: string;
|
|
5388
6000
|
input_schema: Json;
|
|
5389
6001
|
is_critical: boolean;
|
|
@@ -5490,6 +6102,21 @@ export type Database = {
|
|
|
5490
6102
|
};
|
|
5491
6103
|
Returns: boolean;
|
|
5492
6104
|
};
|
|
6105
|
+
list_stale_operation_idempotency_records: {
|
|
6106
|
+
Args: {
|
|
6107
|
+
p_limit?: number;
|
|
6108
|
+
p_stale_after_seconds?: number;
|
|
6109
|
+
};
|
|
6110
|
+
Returns: {
|
|
6111
|
+
created_at: string;
|
|
6112
|
+
function_name: string;
|
|
6113
|
+
operation_id: string;
|
|
6114
|
+
request_hash: string;
|
|
6115
|
+
stale_for_seconds: number;
|
|
6116
|
+
updated_at: string;
|
|
6117
|
+
user_id: string;
|
|
6118
|
+
}[];
|
|
6119
|
+
};
|
|
5493
6120
|
log_agent_cycle_events: {
|
|
5494
6121
|
Args: {
|
|
5495
6122
|
p_agent_id: string;
|
|
@@ -5551,6 +6178,13 @@ export type Database = {
|
|
|
5551
6178
|
};
|
|
5552
6179
|
Returns: Json;
|
|
5553
6180
|
};
|
|
6181
|
+
match_subscription_path_glob: {
|
|
6182
|
+
Args: {
|
|
6183
|
+
p_resource_path: string;
|
|
6184
|
+
p_subscription_path: string;
|
|
6185
|
+
};
|
|
6186
|
+
Returns: boolean;
|
|
6187
|
+
};
|
|
5554
6188
|
notify_agent: {
|
|
5555
6189
|
Args: {
|
|
5556
6190
|
p_agent_id: string;
|
|
@@ -5560,6 +6194,34 @@ export type Database = {
|
|
|
5560
6194
|
};
|
|
5561
6195
|
Returns: boolean;
|
|
5562
6196
|
};
|
|
6197
|
+
polling_bulk_update_poll_config: {
|
|
6198
|
+
Args: {
|
|
6199
|
+
p_updates: Json;
|
|
6200
|
+
};
|
|
6201
|
+
Returns: number;
|
|
6202
|
+
};
|
|
6203
|
+
polling_select_due_subscriptions: {
|
|
6204
|
+
Args: {
|
|
6205
|
+
p_limit?: number;
|
|
6206
|
+
p_now?: string;
|
|
6207
|
+
p_require_connection?: boolean;
|
|
6208
|
+
p_resource_types: string[];
|
|
6209
|
+
};
|
|
6210
|
+
Returns: {
|
|
6211
|
+
agent_id: string;
|
|
6212
|
+
connection_id: string;
|
|
6213
|
+
include_in_state: boolean;
|
|
6214
|
+
poll_config: Json;
|
|
6215
|
+
resource_id: string;
|
|
6216
|
+
resource_type: string;
|
|
6217
|
+
subscription_id: string;
|
|
6218
|
+
subscription_path: string;
|
|
6219
|
+
team_id: string;
|
|
6220
|
+
team_resource_id: string;
|
|
6221
|
+
title: string;
|
|
6222
|
+
wake_on_update: boolean;
|
|
6223
|
+
}[];
|
|
6224
|
+
};
|
|
5563
6225
|
process_subagent_notification_event: {
|
|
5564
6226
|
Args: {
|
|
5565
6227
|
p_event_id: string;
|
|
@@ -5623,6 +6285,16 @@ export type Database = {
|
|
|
5623
6285
|
recovered_job_id: number;
|
|
5624
6286
|
}[];
|
|
5625
6287
|
};
|
|
6288
|
+
recover_stale_operation_idempotency_record: {
|
|
6289
|
+
Args: {
|
|
6290
|
+
p_expected_request_hash?: string;
|
|
6291
|
+
p_function_name: string;
|
|
6292
|
+
p_operation_id: string;
|
|
6293
|
+
p_stale_after_seconds?: number;
|
|
6294
|
+
p_user_id: string;
|
|
6295
|
+
};
|
|
6296
|
+
Returns: Json;
|
|
6297
|
+
};
|
|
5626
6298
|
recover_stuck_subagent_notification_events: {
|
|
5627
6299
|
Args: {
|
|
5628
6300
|
p_limit?: number;
|
|
@@ -5847,34 +6519,7 @@ export type Database = {
|
|
|
5847
6519
|
description: string;
|
|
5848
6520
|
disabled_reason: string;
|
|
5849
6521
|
display_name: string;
|
|
5850
|
-
|
|
5851
|
-
icon: string;
|
|
5852
|
-
id: string;
|
|
5853
|
-
input_schema: Json;
|
|
5854
|
-
is_critical: boolean;
|
|
5855
|
-
is_enabled: boolean;
|
|
5856
|
-
name: string;
|
|
5857
|
-
protocol_version: string;
|
|
5858
|
-
short_description: string;
|
|
5859
|
-
similarity: number;
|
|
5860
|
-
version: string;
|
|
5861
|
-
}[];
|
|
5862
|
-
};
|
|
5863
|
-
search_tools_semantic: {
|
|
5864
|
-
Args: {
|
|
5865
|
-
p_agent_id: string;
|
|
5866
|
-
p_include_disabled?: boolean;
|
|
5867
|
-
p_limit?: number;
|
|
5868
|
-
p_query_embedding: string;
|
|
5869
|
-
p_similarity_threshold?: number;
|
|
5870
|
-
};
|
|
5871
|
-
Returns: {
|
|
5872
|
-
category: string;
|
|
5873
|
-
category_description: string;
|
|
5874
|
-
color: string;
|
|
5875
|
-
description: string;
|
|
5876
|
-
disabled_reason: string;
|
|
5877
|
-
display_name: string;
|
|
6522
|
+
examples: Json;
|
|
5878
6523
|
execution_type: string;
|
|
5879
6524
|
icon: string;
|
|
5880
6525
|
id: string;
|
|
@@ -6006,6 +6651,24 @@ export type Database = {
|
|
|
6006
6651
|
};
|
|
6007
6652
|
Returns: Json;
|
|
6008
6653
|
};
|
|
6654
|
+
try_parse_poll_int: {
|
|
6655
|
+
Args: {
|
|
6656
|
+
p_value: string;
|
|
6657
|
+
};
|
|
6658
|
+
Returns: number;
|
|
6659
|
+
};
|
|
6660
|
+
try_parse_poll_timestamptz: {
|
|
6661
|
+
Args: {
|
|
6662
|
+
p_value: string;
|
|
6663
|
+
};
|
|
6664
|
+
Returns: string;
|
|
6665
|
+
};
|
|
6666
|
+
try_parse_poll_uuid: {
|
|
6667
|
+
Args: {
|
|
6668
|
+
p_value: string;
|
|
6669
|
+
};
|
|
6670
|
+
Returns: string;
|
|
6671
|
+
};
|
|
6009
6672
|
unignore_team_invitation: {
|
|
6010
6673
|
Args: {
|
|
6011
6674
|
p_token: string;
|
|
@@ -6067,6 +6730,31 @@ export type Database = {
|
|
|
6067
6730
|
};
|
|
6068
6731
|
Returns: Json;
|
|
6069
6732
|
};
|
|
6733
|
+
upsert_subscription_state_for_resource_event: {
|
|
6734
|
+
Args: {
|
|
6735
|
+
p_last_error?: string;
|
|
6736
|
+
p_source?: string;
|
|
6737
|
+
p_source_event_id?: string;
|
|
6738
|
+
p_source_log_id?: string;
|
|
6739
|
+
p_state_payload?: Json;
|
|
6740
|
+
p_state_updated_at?: string;
|
|
6741
|
+
p_subscription_path?: string;
|
|
6742
|
+
p_team_resource_id: string;
|
|
6743
|
+
};
|
|
6744
|
+
Returns: number;
|
|
6745
|
+
};
|
|
6746
|
+
upsert_team_resource_subscription_state: {
|
|
6747
|
+
Args: {
|
|
6748
|
+
p_last_error?: string;
|
|
6749
|
+
p_source?: string;
|
|
6750
|
+
p_source_event_id?: string;
|
|
6751
|
+
p_source_log_id?: string;
|
|
6752
|
+
p_state_payload?: Json;
|
|
6753
|
+
p_state_updated_at?: string;
|
|
6754
|
+
p_subscription_id: string;
|
|
6755
|
+
};
|
|
6756
|
+
Returns: undefined;
|
|
6757
|
+
};
|
|
6070
6758
|
user_can_admin_team: {
|
|
6071
6759
|
Args: {
|
|
6072
6760
|
p_team_id: string;
|
|
@@ -6086,6 +6774,16 @@ export type Database = {
|
|
|
6086
6774
|
};
|
|
6087
6775
|
Returns: boolean;
|
|
6088
6776
|
};
|
|
6777
|
+
verify_agent_access: {
|
|
6778
|
+
Args: {
|
|
6779
|
+
p_agent_id: string;
|
|
6780
|
+
p_user_id: string;
|
|
6781
|
+
};
|
|
6782
|
+
Returns: {
|
|
6783
|
+
agent: Json;
|
|
6784
|
+
team_role: string;
|
|
6785
|
+
}[];
|
|
6786
|
+
};
|
|
6089
6787
|
was_notification_recently_delivered: {
|
|
6090
6788
|
Args: {
|
|
6091
6789
|
p_ignore_delivery_methods?: string[];
|