@panorama-ai/gateway 2.28.50 → 2.29.14
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 +28 -9
- package/dist/child-process-startup.d.ts +4 -0
- package/dist/child-process-startup.d.ts.map +1 -0
- package/dist/child-process-startup.js +33 -0
- package/dist/child-process-startup.js.map +1 -0
- package/dist/cli-providers/codex.d.ts.map +1 -1
- package/dist/cli-providers/codex.js +1 -0
- 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 +12 -0
- package/dist/cli-providers/gemini.js.map +1 -1
- package/dist/database.types.d.ts +628 -0
- package/dist/database.types.d.ts.map +1 -1
- package/dist/database.types.js.map +1 -1
- package/dist/gateway-operational-status.d.ts +15 -0
- package/dist/gateway-operational-status.d.ts.map +1 -0
- package/dist/gateway-operational-status.js +31 -0
- package/dist/gateway-operational-status.js.map +1 -0
- package/dist/index.js +1897 -310
- package/dist/index.js.map +1 -1
- package/dist/job-queue.d.ts +23 -0
- package/dist/job-queue.d.ts.map +1 -0
- package/dist/job-queue.js +70 -0
- package/dist/job-queue.js.map +1 -0
- package/dist/remote-shell-resource.d.ts +19 -0
- package/dist/remote-shell-resource.d.ts.map +1 -0
- package/dist/remote-shell-resource.js +51 -0
- package/dist/remote-shell-resource.js.map +1 -0
- package/dist/stream-json-collector.d.ts +29 -0
- package/dist/stream-json-collector.d.ts.map +1 -0
- package/dist/stream-json-collector.js +79 -0
- package/dist/stream-json-collector.js.map +1 -0
- package/dist/subagent-adapters/claude-code.d.ts.map +1 -1
- package/dist/subagent-adapters/claude-code.js +54 -12
- package/dist/subagent-adapters/claude-code.js.map +1 -1
- package/dist/subagent-adapters/claude-support.d.ts +2 -0
- package/dist/subagent-adapters/claude-support.d.ts.map +1 -1
- package/dist/subagent-adapters/claude-support.js +4 -0
- package/dist/subagent-adapters/claude-support.js.map +1 -1
- package/dist/subagent-adapters/codex.d.ts.map +1 -1
- package/dist/subagent-adapters/codex.js +44 -14
- 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 +31 -3
- package/dist/subagent-adapters/gemini.js.map +1 -1
- package/dist/subagent-adapters/types.d.ts +1 -0
- package/dist/subagent-adapters/types.d.ts.map +1 -1
- package/dist/subagent-cancel-target.d.ts +15 -0
- package/dist/subagent-cancel-target.d.ts.map +1 -0
- package/dist/subagent-cancel-target.js +22 -0
- package/dist/subagent-cancel-target.js.map +1 -0
- package/dist/subagent-full-control.d.ts +7 -0
- package/dist/subagent-full-control.d.ts.map +1 -0
- package/dist/subagent-full-control.js +47 -0
- package/dist/subagent-full-control.js.map +1 -0
- package/dist/subagent-process-control.d.ts +9 -0
- package/dist/subagent-process-control.d.ts.map +1 -0
- package/dist/subagent-process-control.js +32 -0
- package/dist/subagent-process-control.js.map +1 -0
- package/package.json +5 -5
package/dist/database.types.d.ts
CHANGED
|
@@ -685,6 +685,7 @@ export type Database = {
|
|
|
685
685
|
created_at: string;
|
|
686
686
|
fallback_lite_model_id: string | null;
|
|
687
687
|
fallback_main_model_id: string | null;
|
|
688
|
+
gateway_id: string | null;
|
|
688
689
|
lite_model_id: string;
|
|
689
690
|
main_model_id: string;
|
|
690
691
|
search_provider_fallbacks: Json | null;
|
|
@@ -701,6 +702,7 @@ export type Database = {
|
|
|
701
702
|
created_at?: string;
|
|
702
703
|
fallback_lite_model_id?: string | null;
|
|
703
704
|
fallback_main_model_id?: string | null;
|
|
705
|
+
gateway_id?: string | null;
|
|
704
706
|
lite_model_id: string;
|
|
705
707
|
main_model_id: string;
|
|
706
708
|
search_provider_fallbacks?: Json | null;
|
|
@@ -717,6 +719,7 @@ export type Database = {
|
|
|
717
719
|
created_at?: string;
|
|
718
720
|
fallback_lite_model_id?: string | null;
|
|
719
721
|
fallback_main_model_id?: string | null;
|
|
722
|
+
gateway_id?: string | null;
|
|
720
723
|
lite_model_id?: string;
|
|
721
724
|
main_model_id?: string;
|
|
722
725
|
search_provider_fallbacks?: Json | null;
|
|
@@ -756,6 +759,13 @@ export type Database = {
|
|
|
756
759
|
referencedRelation: "ai_model_routes";
|
|
757
760
|
referencedColumns: ["id"];
|
|
758
761
|
},
|
|
762
|
+
{
|
|
763
|
+
foreignKeyName: "agent_model_settings_gateway_id_fkey";
|
|
764
|
+
columns: ["gateway_id"];
|
|
765
|
+
isOneToOne: false;
|
|
766
|
+
referencedRelation: "team_gateways";
|
|
767
|
+
referencedColumns: ["id"];
|
|
768
|
+
},
|
|
759
769
|
{
|
|
760
770
|
foreignKeyName: "agent_model_settings_lite_model_id_fkey";
|
|
761
771
|
columns: ["lite_model_id"];
|
|
@@ -3646,36 +3656,42 @@ export type Database = {
|
|
|
3646
3656
|
capabilities: Json;
|
|
3647
3657
|
created_at: string;
|
|
3648
3658
|
device_name: string | null;
|
|
3659
|
+
full_control_enabled: boolean;
|
|
3649
3660
|
id: string;
|
|
3650
3661
|
last_seen_at: string | null;
|
|
3651
3662
|
ready_at: string | null;
|
|
3652
3663
|
status: string;
|
|
3653
3664
|
team_id: string;
|
|
3654
3665
|
updated_at: string;
|
|
3666
|
+
vm_id: string | null;
|
|
3655
3667
|
};
|
|
3656
3668
|
Insert: {
|
|
3657
3669
|
auth_user_id: string;
|
|
3658
3670
|
capabilities?: Json;
|
|
3659
3671
|
created_at?: string;
|
|
3660
3672
|
device_name?: string | null;
|
|
3673
|
+
full_control_enabled?: boolean;
|
|
3661
3674
|
id?: string;
|
|
3662
3675
|
last_seen_at?: string | null;
|
|
3663
3676
|
ready_at?: string | null;
|
|
3664
3677
|
status?: string;
|
|
3665
3678
|
team_id: string;
|
|
3666
3679
|
updated_at?: string;
|
|
3680
|
+
vm_id?: string | null;
|
|
3667
3681
|
};
|
|
3668
3682
|
Update: {
|
|
3669
3683
|
auth_user_id?: string;
|
|
3670
3684
|
capabilities?: Json;
|
|
3671
3685
|
created_at?: string;
|
|
3672
3686
|
device_name?: string | null;
|
|
3687
|
+
full_control_enabled?: boolean;
|
|
3673
3688
|
id?: string;
|
|
3674
3689
|
last_seen_at?: string | null;
|
|
3675
3690
|
ready_at?: string | null;
|
|
3676
3691
|
status?: string;
|
|
3677
3692
|
team_id?: string;
|
|
3678
3693
|
updated_at?: string;
|
|
3694
|
+
vm_id?: string | null;
|
|
3679
3695
|
};
|
|
3680
3696
|
Relationships: [
|
|
3681
3697
|
{
|
|
@@ -3684,6 +3700,13 @@ export type Database = {
|
|
|
3684
3700
|
isOneToOne: false;
|
|
3685
3701
|
referencedRelation: "teams";
|
|
3686
3702
|
referencedColumns: ["id"];
|
|
3703
|
+
},
|
|
3704
|
+
{
|
|
3705
|
+
foreignKeyName: "team_gateways_vm_id_fkey";
|
|
3706
|
+
columns: ["vm_id"];
|
|
3707
|
+
isOneToOne: false;
|
|
3708
|
+
referencedRelation: "vm_instances";
|
|
3709
|
+
referencedColumns: ["id"];
|
|
3687
3710
|
}
|
|
3688
3711
|
];
|
|
3689
3712
|
};
|
|
@@ -4125,6 +4148,44 @@ export type Database = {
|
|
|
4125
4148
|
}
|
|
4126
4149
|
];
|
|
4127
4150
|
};
|
|
4151
|
+
team_usage_signals: {
|
|
4152
|
+
Row: {
|
|
4153
|
+
created_at: string;
|
|
4154
|
+
last_tool_usage_source: string | null;
|
|
4155
|
+
last_usage_source: string | null;
|
|
4156
|
+
team_id: string;
|
|
4157
|
+
tool_usage_version: number;
|
|
4158
|
+
updated_at: string;
|
|
4159
|
+
usage_version: number;
|
|
4160
|
+
};
|
|
4161
|
+
Insert: {
|
|
4162
|
+
created_at?: string;
|
|
4163
|
+
last_tool_usage_source?: string | null;
|
|
4164
|
+
last_usage_source?: string | null;
|
|
4165
|
+
team_id: string;
|
|
4166
|
+
tool_usage_version?: number;
|
|
4167
|
+
updated_at?: string;
|
|
4168
|
+
usage_version?: number;
|
|
4169
|
+
};
|
|
4170
|
+
Update: {
|
|
4171
|
+
created_at?: string;
|
|
4172
|
+
last_tool_usage_source?: string | null;
|
|
4173
|
+
last_usage_source?: string | null;
|
|
4174
|
+
team_id?: string;
|
|
4175
|
+
tool_usage_version?: number;
|
|
4176
|
+
updated_at?: string;
|
|
4177
|
+
usage_version?: number;
|
|
4178
|
+
};
|
|
4179
|
+
Relationships: [
|
|
4180
|
+
{
|
|
4181
|
+
foreignKeyName: "team_usage_signals_team_id_fkey";
|
|
4182
|
+
columns: ["team_id"];
|
|
4183
|
+
isOneToOne: true;
|
|
4184
|
+
referencedRelation: "teams";
|
|
4185
|
+
referencedColumns: ["id"];
|
|
4186
|
+
}
|
|
4187
|
+
];
|
|
4188
|
+
};
|
|
4128
4189
|
teams: {
|
|
4129
4190
|
Row: {
|
|
4130
4191
|
cost_bucket_level: number | null;
|
|
@@ -4659,6 +4720,388 @@ export type Database = {
|
|
|
4659
4720
|
}
|
|
4660
4721
|
];
|
|
4661
4722
|
};
|
|
4723
|
+
vm_billable_intervals: {
|
|
4724
|
+
Row: {
|
|
4725
|
+
created_at: string;
|
|
4726
|
+
ended_at: string | null;
|
|
4727
|
+
hourly_rate_usd: number;
|
|
4728
|
+
id: string;
|
|
4729
|
+
metered_until: string | null;
|
|
4730
|
+
started_at: string;
|
|
4731
|
+
team_id: string;
|
|
4732
|
+
updated_at: string;
|
|
4733
|
+
vm_id: string;
|
|
4734
|
+
};
|
|
4735
|
+
Insert: {
|
|
4736
|
+
created_at?: string;
|
|
4737
|
+
ended_at?: string | null;
|
|
4738
|
+
hourly_rate_usd: number;
|
|
4739
|
+
id?: string;
|
|
4740
|
+
metered_until?: string | null;
|
|
4741
|
+
started_at: string;
|
|
4742
|
+
team_id: string;
|
|
4743
|
+
updated_at?: string;
|
|
4744
|
+
vm_id: string;
|
|
4745
|
+
};
|
|
4746
|
+
Update: {
|
|
4747
|
+
created_at?: string;
|
|
4748
|
+
ended_at?: string | null;
|
|
4749
|
+
hourly_rate_usd?: number;
|
|
4750
|
+
id?: string;
|
|
4751
|
+
metered_until?: string | null;
|
|
4752
|
+
started_at?: string;
|
|
4753
|
+
team_id?: string;
|
|
4754
|
+
updated_at?: string;
|
|
4755
|
+
vm_id?: string;
|
|
4756
|
+
};
|
|
4757
|
+
Relationships: [];
|
|
4758
|
+
};
|
|
4759
|
+
vm_gateway_bootstrap_tokens: {
|
|
4760
|
+
Row: {
|
|
4761
|
+
created_at: string;
|
|
4762
|
+
device_name: string | null;
|
|
4763
|
+
expires_at: string;
|
|
4764
|
+
id: string;
|
|
4765
|
+
issued_by_operation_id: string | null;
|
|
4766
|
+
metadata: Json;
|
|
4767
|
+
revoked_at: string | null;
|
|
4768
|
+
team_id: string;
|
|
4769
|
+
token_hash: string;
|
|
4770
|
+
updated_at: string;
|
|
4771
|
+
used_at: string | null;
|
|
4772
|
+
used_gateway_id: string | null;
|
|
4773
|
+
vm_id: string;
|
|
4774
|
+
};
|
|
4775
|
+
Insert: {
|
|
4776
|
+
created_at?: string;
|
|
4777
|
+
device_name?: string | null;
|
|
4778
|
+
expires_at: string;
|
|
4779
|
+
id?: string;
|
|
4780
|
+
issued_by_operation_id?: string | null;
|
|
4781
|
+
metadata?: Json;
|
|
4782
|
+
revoked_at?: string | null;
|
|
4783
|
+
team_id: string;
|
|
4784
|
+
token_hash: string;
|
|
4785
|
+
updated_at?: string;
|
|
4786
|
+
used_at?: string | null;
|
|
4787
|
+
used_gateway_id?: string | null;
|
|
4788
|
+
vm_id: string;
|
|
4789
|
+
};
|
|
4790
|
+
Update: {
|
|
4791
|
+
created_at?: string;
|
|
4792
|
+
device_name?: string | null;
|
|
4793
|
+
expires_at?: string;
|
|
4794
|
+
id?: string;
|
|
4795
|
+
issued_by_operation_id?: string | null;
|
|
4796
|
+
metadata?: Json;
|
|
4797
|
+
revoked_at?: string | null;
|
|
4798
|
+
team_id?: string;
|
|
4799
|
+
token_hash?: string;
|
|
4800
|
+
updated_at?: string;
|
|
4801
|
+
used_at?: string | null;
|
|
4802
|
+
used_gateway_id?: string | null;
|
|
4803
|
+
vm_id?: string;
|
|
4804
|
+
};
|
|
4805
|
+
Relationships: [
|
|
4806
|
+
{
|
|
4807
|
+
foreignKeyName: "vm_gateway_bootstrap_tokens_issued_by_operation_id_fkey";
|
|
4808
|
+
columns: ["issued_by_operation_id"];
|
|
4809
|
+
isOneToOne: false;
|
|
4810
|
+
referencedRelation: "vm_operations";
|
|
4811
|
+
referencedColumns: ["id"];
|
|
4812
|
+
},
|
|
4813
|
+
{
|
|
4814
|
+
foreignKeyName: "vm_gateway_bootstrap_tokens_team_id_fkey";
|
|
4815
|
+
columns: ["team_id"];
|
|
4816
|
+
isOneToOne: false;
|
|
4817
|
+
referencedRelation: "teams";
|
|
4818
|
+
referencedColumns: ["id"];
|
|
4819
|
+
},
|
|
4820
|
+
{
|
|
4821
|
+
foreignKeyName: "vm_gateway_bootstrap_tokens_used_gateway_id_fkey";
|
|
4822
|
+
columns: ["used_gateway_id"];
|
|
4823
|
+
isOneToOne: false;
|
|
4824
|
+
referencedRelation: "team_gateways";
|
|
4825
|
+
referencedColumns: ["id"];
|
|
4826
|
+
},
|
|
4827
|
+
{
|
|
4828
|
+
foreignKeyName: "vm_gateway_bootstrap_tokens_vm_id_fkey";
|
|
4829
|
+
columns: ["vm_id"];
|
|
4830
|
+
isOneToOne: false;
|
|
4831
|
+
referencedRelation: "vm_instances";
|
|
4832
|
+
referencedColumns: ["id"];
|
|
4833
|
+
}
|
|
4834
|
+
];
|
|
4835
|
+
};
|
|
4836
|
+
vm_instances: {
|
|
4837
|
+
Row: {
|
|
4838
|
+
created_at: string;
|
|
4839
|
+
deleted_at: string | null;
|
|
4840
|
+
deletion_requested_at: string | null;
|
|
4841
|
+
deletion_state: string;
|
|
4842
|
+
gateway_version: string | null;
|
|
4843
|
+
health_state: string;
|
|
4844
|
+
id: string;
|
|
4845
|
+
last_heartbeat_at: string | null;
|
|
4846
|
+
metadata: Json;
|
|
4847
|
+
power_state: string;
|
|
4848
|
+
provider: string;
|
|
4849
|
+
provider_machine_id: string | null;
|
|
4850
|
+
provisioning_state: string;
|
|
4851
|
+
settings: Json;
|
|
4852
|
+
updated_at: string;
|
|
4853
|
+
};
|
|
4854
|
+
Insert: {
|
|
4855
|
+
created_at?: string;
|
|
4856
|
+
deleted_at?: string | null;
|
|
4857
|
+
deletion_requested_at?: string | null;
|
|
4858
|
+
deletion_state?: string;
|
|
4859
|
+
gateway_version?: string | null;
|
|
4860
|
+
health_state?: string;
|
|
4861
|
+
id: string;
|
|
4862
|
+
last_heartbeat_at?: string | null;
|
|
4863
|
+
metadata?: Json;
|
|
4864
|
+
power_state?: string;
|
|
4865
|
+
provider?: string;
|
|
4866
|
+
provider_machine_id?: string | null;
|
|
4867
|
+
provisioning_state?: string;
|
|
4868
|
+
settings?: Json;
|
|
4869
|
+
updated_at?: string;
|
|
4870
|
+
};
|
|
4871
|
+
Update: {
|
|
4872
|
+
created_at?: string;
|
|
4873
|
+
deleted_at?: string | null;
|
|
4874
|
+
deletion_requested_at?: string | null;
|
|
4875
|
+
deletion_state?: string;
|
|
4876
|
+
gateway_version?: string | null;
|
|
4877
|
+
health_state?: string;
|
|
4878
|
+
id?: string;
|
|
4879
|
+
last_heartbeat_at?: string | null;
|
|
4880
|
+
metadata?: Json;
|
|
4881
|
+
power_state?: string;
|
|
4882
|
+
provider?: string;
|
|
4883
|
+
provider_machine_id?: string | null;
|
|
4884
|
+
provisioning_state?: string;
|
|
4885
|
+
settings?: Json;
|
|
4886
|
+
updated_at?: string;
|
|
4887
|
+
};
|
|
4888
|
+
Relationships: [
|
|
4889
|
+
{
|
|
4890
|
+
foreignKeyName: "vm_instances_id_fkey";
|
|
4891
|
+
columns: ["id"];
|
|
4892
|
+
isOneToOne: true;
|
|
4893
|
+
referencedRelation: "team_resources";
|
|
4894
|
+
referencedColumns: ["id"];
|
|
4895
|
+
}
|
|
4896
|
+
];
|
|
4897
|
+
};
|
|
4898
|
+
vm_operations: {
|
|
4899
|
+
Row: {
|
|
4900
|
+
attempt_count: number;
|
|
4901
|
+
completed_at: string | null;
|
|
4902
|
+
created_at: string;
|
|
4903
|
+
error_code: string | null;
|
|
4904
|
+
error_message: string | null;
|
|
4905
|
+
id: string;
|
|
4906
|
+
idempotency_key: string;
|
|
4907
|
+
lease_expires_at: string | null;
|
|
4908
|
+
operation_type: string;
|
|
4909
|
+
request_payload: Json;
|
|
4910
|
+
requested_by_agent_id: string | null;
|
|
4911
|
+
result_payload: Json | null;
|
|
4912
|
+
started_at: string | null;
|
|
4913
|
+
status: string;
|
|
4914
|
+
updated_at: string;
|
|
4915
|
+
vm_id: string;
|
|
4916
|
+
};
|
|
4917
|
+
Insert: {
|
|
4918
|
+
attempt_count?: number;
|
|
4919
|
+
completed_at?: string | null;
|
|
4920
|
+
created_at?: string;
|
|
4921
|
+
error_code?: string | null;
|
|
4922
|
+
error_message?: string | null;
|
|
4923
|
+
id?: string;
|
|
4924
|
+
idempotency_key: string;
|
|
4925
|
+
lease_expires_at?: string | null;
|
|
4926
|
+
operation_type: string;
|
|
4927
|
+
request_payload?: Json;
|
|
4928
|
+
requested_by_agent_id?: string | null;
|
|
4929
|
+
result_payload?: Json | null;
|
|
4930
|
+
started_at?: string | null;
|
|
4931
|
+
status?: string;
|
|
4932
|
+
updated_at?: string;
|
|
4933
|
+
vm_id: string;
|
|
4934
|
+
};
|
|
4935
|
+
Update: {
|
|
4936
|
+
attempt_count?: number;
|
|
4937
|
+
completed_at?: string | null;
|
|
4938
|
+
created_at?: string;
|
|
4939
|
+
error_code?: string | null;
|
|
4940
|
+
error_message?: string | null;
|
|
4941
|
+
id?: string;
|
|
4942
|
+
idempotency_key?: string;
|
|
4943
|
+
lease_expires_at?: string | null;
|
|
4944
|
+
operation_type?: string;
|
|
4945
|
+
request_payload?: Json;
|
|
4946
|
+
requested_by_agent_id?: string | null;
|
|
4947
|
+
result_payload?: Json | null;
|
|
4948
|
+
started_at?: string | null;
|
|
4949
|
+
status?: string;
|
|
4950
|
+
updated_at?: string;
|
|
4951
|
+
vm_id?: string;
|
|
4952
|
+
};
|
|
4953
|
+
Relationships: [
|
|
4954
|
+
{
|
|
4955
|
+
foreignKeyName: "vm_operations_requested_by_agent_id_fkey";
|
|
4956
|
+
columns: ["requested_by_agent_id"];
|
|
4957
|
+
isOneToOne: false;
|
|
4958
|
+
referencedRelation: "agent_full";
|
|
4959
|
+
referencedColumns: ["id"];
|
|
4960
|
+
},
|
|
4961
|
+
{
|
|
4962
|
+
foreignKeyName: "vm_operations_requested_by_agent_id_fkey";
|
|
4963
|
+
columns: ["requested_by_agent_id"];
|
|
4964
|
+
isOneToOne: false;
|
|
4965
|
+
referencedRelation: "agents";
|
|
4966
|
+
referencedColumns: ["id"];
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
foreignKeyName: "vm_operations_vm_id_fkey";
|
|
4970
|
+
columns: ["vm_id"];
|
|
4971
|
+
isOneToOne: false;
|
|
4972
|
+
referencedRelation: "vm_instances";
|
|
4973
|
+
referencedColumns: ["id"];
|
|
4974
|
+
}
|
|
4975
|
+
];
|
|
4976
|
+
};
|
|
4977
|
+
vm_snapshots: {
|
|
4978
|
+
Row: {
|
|
4979
|
+
created_at: string;
|
|
4980
|
+
created_by_agent_id: string | null;
|
|
4981
|
+
id: string;
|
|
4982
|
+
metadata: Json;
|
|
4983
|
+
size_bytes: number | null;
|
|
4984
|
+
snapshot_backend: string;
|
|
4985
|
+
snapshot_name: string;
|
|
4986
|
+
snapshot_ref: string;
|
|
4987
|
+
source_operation_id: string | null;
|
|
4988
|
+
status: string;
|
|
4989
|
+
updated_at: string;
|
|
4990
|
+
vm_id: string;
|
|
4991
|
+
};
|
|
4992
|
+
Insert: {
|
|
4993
|
+
created_at?: string;
|
|
4994
|
+
created_by_agent_id?: string | null;
|
|
4995
|
+
id?: string;
|
|
4996
|
+
metadata?: Json;
|
|
4997
|
+
size_bytes?: number | null;
|
|
4998
|
+
snapshot_backend?: string;
|
|
4999
|
+
snapshot_name: string;
|
|
5000
|
+
snapshot_ref: string;
|
|
5001
|
+
source_operation_id?: string | null;
|
|
5002
|
+
status?: string;
|
|
5003
|
+
updated_at?: string;
|
|
5004
|
+
vm_id: string;
|
|
5005
|
+
};
|
|
5006
|
+
Update: {
|
|
5007
|
+
created_at?: string;
|
|
5008
|
+
created_by_agent_id?: string | null;
|
|
5009
|
+
id?: string;
|
|
5010
|
+
metadata?: Json;
|
|
5011
|
+
size_bytes?: number | null;
|
|
5012
|
+
snapshot_backend?: string;
|
|
5013
|
+
snapshot_name?: string;
|
|
5014
|
+
snapshot_ref?: string;
|
|
5015
|
+
source_operation_id?: string | null;
|
|
5016
|
+
status?: string;
|
|
5017
|
+
updated_at?: string;
|
|
5018
|
+
vm_id?: string;
|
|
5019
|
+
};
|
|
5020
|
+
Relationships: [
|
|
5021
|
+
{
|
|
5022
|
+
foreignKeyName: "vm_snapshots_created_by_agent_id_fkey";
|
|
5023
|
+
columns: ["created_by_agent_id"];
|
|
5024
|
+
isOneToOne: false;
|
|
5025
|
+
referencedRelation: "agent_full";
|
|
5026
|
+
referencedColumns: ["id"];
|
|
5027
|
+
},
|
|
5028
|
+
{
|
|
5029
|
+
foreignKeyName: "vm_snapshots_created_by_agent_id_fkey";
|
|
5030
|
+
columns: ["created_by_agent_id"];
|
|
5031
|
+
isOneToOne: false;
|
|
5032
|
+
referencedRelation: "agents";
|
|
5033
|
+
referencedColumns: ["id"];
|
|
5034
|
+
},
|
|
5035
|
+
{
|
|
5036
|
+
foreignKeyName: "vm_snapshots_source_operation_id_fkey";
|
|
5037
|
+
columns: ["source_operation_id"];
|
|
5038
|
+
isOneToOne: false;
|
|
5039
|
+
referencedRelation: "vm_operations";
|
|
5040
|
+
referencedColumns: ["id"];
|
|
5041
|
+
},
|
|
5042
|
+
{
|
|
5043
|
+
foreignKeyName: "vm_snapshots_vm_id_fkey";
|
|
5044
|
+
columns: ["vm_id"];
|
|
5045
|
+
isOneToOne: false;
|
|
5046
|
+
referencedRelation: "vm_instances";
|
|
5047
|
+
referencedColumns: ["id"];
|
|
5048
|
+
}
|
|
5049
|
+
];
|
|
5050
|
+
};
|
|
5051
|
+
vm_usage_windows: {
|
|
5052
|
+
Row: {
|
|
5053
|
+
charge_attempt_count: number;
|
|
5054
|
+
charge_error: string | null;
|
|
5055
|
+
charge_status: string;
|
|
5056
|
+
charged_at: string | null;
|
|
5057
|
+
cost_usd: number;
|
|
5058
|
+
created_at: string;
|
|
5059
|
+
duration_seconds: number;
|
|
5060
|
+
hourly_rate_usd: number;
|
|
5061
|
+
id: string;
|
|
5062
|
+
last_charge_attempt_at: string | null;
|
|
5063
|
+
team_id: string;
|
|
5064
|
+
updated_at: string;
|
|
5065
|
+
vm_id: string;
|
|
5066
|
+
window_end: string;
|
|
5067
|
+
window_start: string;
|
|
5068
|
+
};
|
|
5069
|
+
Insert: {
|
|
5070
|
+
charge_attempt_count?: number;
|
|
5071
|
+
charge_error?: string | null;
|
|
5072
|
+
charge_status?: string;
|
|
5073
|
+
charged_at?: string | null;
|
|
5074
|
+
cost_usd: number;
|
|
5075
|
+
created_at?: string;
|
|
5076
|
+
duration_seconds: number;
|
|
5077
|
+
hourly_rate_usd: number;
|
|
5078
|
+
id?: string;
|
|
5079
|
+
last_charge_attempt_at?: string | null;
|
|
5080
|
+
team_id: string;
|
|
5081
|
+
updated_at?: string;
|
|
5082
|
+
vm_id: string;
|
|
5083
|
+
window_end: string;
|
|
5084
|
+
window_start: string;
|
|
5085
|
+
};
|
|
5086
|
+
Update: {
|
|
5087
|
+
charge_attempt_count?: number;
|
|
5088
|
+
charge_error?: string | null;
|
|
5089
|
+
charge_status?: string;
|
|
5090
|
+
charged_at?: string | null;
|
|
5091
|
+
cost_usd?: number;
|
|
5092
|
+
created_at?: string;
|
|
5093
|
+
duration_seconds?: number;
|
|
5094
|
+
hourly_rate_usd?: number;
|
|
5095
|
+
id?: string;
|
|
5096
|
+
last_charge_attempt_at?: string | null;
|
|
5097
|
+
team_id?: string;
|
|
5098
|
+
updated_at?: string;
|
|
5099
|
+
vm_id?: string;
|
|
5100
|
+
window_end?: string;
|
|
5101
|
+
window_start?: string;
|
|
5102
|
+
};
|
|
5103
|
+
Relationships: [];
|
|
5104
|
+
};
|
|
4662
5105
|
web_read_providers: {
|
|
4663
5106
|
Row: {
|
|
4664
5107
|
config_version: string;
|
|
@@ -5014,6 +5457,7 @@ export type Database = {
|
|
|
5014
5457
|
deleted_at: string | null;
|
|
5015
5458
|
fallback_lite_model_id: string | null;
|
|
5016
5459
|
fallback_main_model_id: string | null;
|
|
5460
|
+
gateway_id: string | null;
|
|
5017
5461
|
id: string | null;
|
|
5018
5462
|
instructions: string | null;
|
|
5019
5463
|
job_state: string | null;
|
|
@@ -5067,6 +5511,13 @@ export type Database = {
|
|
|
5067
5511
|
referencedRelation: "ai_model_routes";
|
|
5068
5512
|
referencedColumns: ["id"];
|
|
5069
5513
|
},
|
|
5514
|
+
{
|
|
5515
|
+
foreignKeyName: "agent_model_settings_gateway_id_fkey";
|
|
5516
|
+
columns: ["gateway_id"];
|
|
5517
|
+
isOneToOne: false;
|
|
5518
|
+
referencedRelation: "team_gateways";
|
|
5519
|
+
referencedColumns: ["id"];
|
|
5520
|
+
},
|
|
5070
5521
|
{
|
|
5071
5522
|
foreignKeyName: "agent_model_settings_lite_model_id_fkey";
|
|
5072
5523
|
columns: ["lite_model_id"];
|
|
@@ -5390,6 +5841,28 @@ export type Database = {
|
|
|
5390
5841
|
};
|
|
5391
5842
|
Returns: Json;
|
|
5392
5843
|
};
|
|
5844
|
+
allocate_subagent_run_sequence: {
|
|
5845
|
+
Args: {
|
|
5846
|
+
p_subagent_id: string;
|
|
5847
|
+
};
|
|
5848
|
+
Returns: number;
|
|
5849
|
+
};
|
|
5850
|
+
build_vm_subscription_state: {
|
|
5851
|
+
Args: {
|
|
5852
|
+
p_vm_id: string;
|
|
5853
|
+
};
|
|
5854
|
+
Returns: Json;
|
|
5855
|
+
};
|
|
5856
|
+
bump_team_usage_signal: {
|
|
5857
|
+
Args: {
|
|
5858
|
+
p_team_id: string;
|
|
5859
|
+
p_tool_increment?: number;
|
|
5860
|
+
p_tool_source?: string;
|
|
5861
|
+
p_usage_increment?: number;
|
|
5862
|
+
p_usage_source?: string;
|
|
5863
|
+
};
|
|
5864
|
+
Returns: undefined;
|
|
5865
|
+
};
|
|
5393
5866
|
calculate_monthly_from_hourly: {
|
|
5394
5867
|
Args: {
|
|
5395
5868
|
hourly_rate: number;
|
|
@@ -5431,6 +5904,12 @@ export type Database = {
|
|
|
5431
5904
|
};
|
|
5432
5905
|
Returns: undefined;
|
|
5433
5906
|
};
|
|
5907
|
+
charge_vm_usage_window: {
|
|
5908
|
+
Args: {
|
|
5909
|
+
p_window_id: string;
|
|
5910
|
+
};
|
|
5911
|
+
Returns: Json;
|
|
5912
|
+
};
|
|
5434
5913
|
check_agent_error_alerts: {
|
|
5435
5914
|
Args: never;
|
|
5436
5915
|
Returns: {
|
|
@@ -5695,6 +6174,20 @@ export type Database = {
|
|
|
5695
6174
|
isSetofReturn: false;
|
|
5696
6175
|
};
|
|
5697
6176
|
};
|
|
6177
|
+
create_vm_resource: {
|
|
6178
|
+
Args: {
|
|
6179
|
+
p_idempotency_key?: string;
|
|
6180
|
+
p_metadata?: Json;
|
|
6181
|
+
p_name?: string;
|
|
6182
|
+
p_owner_agent_id?: string;
|
|
6183
|
+
p_request_payload?: Json;
|
|
6184
|
+
p_requested_by_user_id?: string;
|
|
6185
|
+
p_scope?: string;
|
|
6186
|
+
p_settings?: Json;
|
|
6187
|
+
p_team_id: string;
|
|
6188
|
+
};
|
|
6189
|
+
Returns: Json;
|
|
6190
|
+
};
|
|
5698
6191
|
create_wiki: {
|
|
5699
6192
|
Args: {
|
|
5700
6193
|
p_owner_agent_id?: string;
|
|
@@ -5870,6 +6363,19 @@ export type Database = {
|
|
|
5870
6363
|
};
|
|
5871
6364
|
Returns: string;
|
|
5872
6365
|
};
|
|
6366
|
+
finalize_vm_resource_removal: {
|
|
6367
|
+
Args: {
|
|
6368
|
+
p_operation_id?: string;
|
|
6369
|
+
p_vm_id: string;
|
|
6370
|
+
};
|
|
6371
|
+
Returns: Json;
|
|
6372
|
+
};
|
|
6373
|
+
gateway_can_access_vm: {
|
|
6374
|
+
Args: {
|
|
6375
|
+
p_vm_id: string;
|
|
6376
|
+
};
|
|
6377
|
+
Returns: boolean;
|
|
6378
|
+
};
|
|
5873
6379
|
generate_unique_agent_name: {
|
|
5874
6380
|
Args: {
|
|
5875
6381
|
p_team_id: string;
|
|
@@ -6033,6 +6539,7 @@ export type Database = {
|
|
|
6033
6539
|
Args: {
|
|
6034
6540
|
p_filter_column?: string;
|
|
6035
6541
|
p_filter_value?: string;
|
|
6542
|
+
p_filters?: Json;
|
|
6036
6543
|
p_limit?: number;
|
|
6037
6544
|
p_offset?: number;
|
|
6038
6545
|
p_schema_name: string;
|
|
@@ -6045,6 +6552,34 @@ export type Database = {
|
|
|
6045
6552
|
total_count: number;
|
|
6046
6553
|
}[];
|
|
6047
6554
|
};
|
|
6555
|
+
get_database_view_filter_options: {
|
|
6556
|
+
Args: {
|
|
6557
|
+
p_schema_name: string;
|
|
6558
|
+
p_value_limit?: number;
|
|
6559
|
+
};
|
|
6560
|
+
Returns: {
|
|
6561
|
+
column_name: string;
|
|
6562
|
+
is_null_option: boolean;
|
|
6563
|
+
option_count: number;
|
|
6564
|
+
option_value: string;
|
|
6565
|
+
view_name: string;
|
|
6566
|
+
}[];
|
|
6567
|
+
};
|
|
6568
|
+
get_database_view_filter_options_for_view: {
|
|
6569
|
+
Args: {
|
|
6570
|
+
p_filters?: Json;
|
|
6571
|
+
p_schema_name: string;
|
|
6572
|
+
p_value_limit?: number;
|
|
6573
|
+
p_view_name: string;
|
|
6574
|
+
};
|
|
6575
|
+
Returns: {
|
|
6576
|
+
column_name: string;
|
|
6577
|
+
is_null_option: boolean;
|
|
6578
|
+
option_count: number;
|
|
6579
|
+
option_value: string;
|
|
6580
|
+
view_name: string;
|
|
6581
|
+
}[];
|
|
6582
|
+
};
|
|
6048
6583
|
get_database_view_links: {
|
|
6049
6584
|
Args: {
|
|
6050
6585
|
p_schema_name: string;
|
|
@@ -6075,6 +6610,7 @@ export type Database = {
|
|
|
6075
6610
|
detail_enabled: boolean;
|
|
6076
6611
|
display_mode: string;
|
|
6077
6612
|
display_name: string;
|
|
6613
|
+
filter_columns: string[];
|
|
6078
6614
|
group_by_column: string;
|
|
6079
6615
|
icon: string;
|
|
6080
6616
|
image_column: string;
|
|
@@ -6216,6 +6752,30 @@ export type Database = {
|
|
|
6216
6752
|
total_chars: number;
|
|
6217
6753
|
}[];
|
|
6218
6754
|
};
|
|
6755
|
+
get_subagent_timeline_items: {
|
|
6756
|
+
Args: {
|
|
6757
|
+
p_cursor_run_sequence?: number;
|
|
6758
|
+
p_cursor_timeline_sort?: number;
|
|
6759
|
+
p_limit?: number;
|
|
6760
|
+
p_subagent_id: string;
|
|
6761
|
+
};
|
|
6762
|
+
Returns: {
|
|
6763
|
+
created_at: string;
|
|
6764
|
+
cursor: string;
|
|
6765
|
+
error: string;
|
|
6766
|
+
event_type: string;
|
|
6767
|
+
id: string;
|
|
6768
|
+
item_type: string;
|
|
6769
|
+
output: Json;
|
|
6770
|
+
payload: Json;
|
|
6771
|
+
prompt: string;
|
|
6772
|
+
run_id: string;
|
|
6773
|
+
run_sequence: number;
|
|
6774
|
+
status: string;
|
|
6775
|
+
subagent_id: string;
|
|
6776
|
+
timeline_sort: number;
|
|
6777
|
+
}[];
|
|
6778
|
+
};
|
|
6219
6779
|
get_team_activity_stats: {
|
|
6220
6780
|
Args: {
|
|
6221
6781
|
p_team_id: string;
|
|
@@ -6246,6 +6806,7 @@ export type Database = {
|
|
|
6246
6806
|
deleted_at: string | null;
|
|
6247
6807
|
fallback_lite_model_id: string | null;
|
|
6248
6808
|
fallback_main_model_id: string | null;
|
|
6809
|
+
gateway_id: string | null;
|
|
6249
6810
|
id: string | null;
|
|
6250
6811
|
instructions: string | null;
|
|
6251
6812
|
job_state: string | null;
|
|
@@ -6579,6 +7140,12 @@ export type Database = {
|
|
|
6579
7140
|
};
|
|
6580
7141
|
Returns: boolean;
|
|
6581
7142
|
};
|
|
7143
|
+
is_vm_billable_power_state: {
|
|
7144
|
+
Args: {
|
|
7145
|
+
p_power_state: string;
|
|
7146
|
+
};
|
|
7147
|
+
Returns: boolean;
|
|
7148
|
+
};
|
|
6582
7149
|
list_stale_operation_idempotency_records: {
|
|
6583
7150
|
Args: {
|
|
6584
7151
|
p_limit?: number;
|
|
@@ -6672,6 +7239,20 @@ export type Database = {
|
|
|
6672
7239
|
};
|
|
6673
7240
|
Returns: boolean;
|
|
6674
7241
|
};
|
|
7242
|
+
notify_vm_subscribers: {
|
|
7243
|
+
Args: {
|
|
7244
|
+
p_color?: string;
|
|
7245
|
+
p_content: string;
|
|
7246
|
+
p_date?: string;
|
|
7247
|
+
p_icon?: string;
|
|
7248
|
+
p_metadata?: Json;
|
|
7249
|
+
p_summary?: string;
|
|
7250
|
+
p_title: string;
|
|
7251
|
+
p_vm_event_type: string;
|
|
7252
|
+
p_vm_id: string;
|
|
7253
|
+
};
|
|
7254
|
+
Returns: number;
|
|
7255
|
+
};
|
|
6675
7256
|
polling_bulk_update_poll_config: {
|
|
6676
7257
|
Args: {
|
|
6677
7258
|
p_updates: Json;
|
|
@@ -6781,6 +7362,15 @@ export type Database = {
|
|
|
6781
7362
|
};
|
|
6782
7363
|
Returns: Json;
|
|
6783
7364
|
};
|
|
7365
|
+
refresh_vm_subscription_state: {
|
|
7366
|
+
Args: {
|
|
7367
|
+
p_last_error?: string;
|
|
7368
|
+
p_source?: string;
|
|
7369
|
+
p_state_updated_at?: string;
|
|
7370
|
+
p_vm_id: string;
|
|
7371
|
+
};
|
|
7372
|
+
Returns: number;
|
|
7373
|
+
};
|
|
6784
7374
|
register_ai_models: {
|
|
6785
7375
|
Args: {
|
|
6786
7376
|
p_models: Json;
|
|
@@ -6821,6 +7411,25 @@ export type Database = {
|
|
|
6821
7411
|
};
|
|
6822
7412
|
Returns: Json;
|
|
6823
7413
|
};
|
|
7414
|
+
request_vm_operation: {
|
|
7415
|
+
Args: {
|
|
7416
|
+
p_idempotency_key?: string;
|
|
7417
|
+
p_operation_type: string;
|
|
7418
|
+
p_request_payload?: Json;
|
|
7419
|
+
p_requested_by_agent_id?: string;
|
|
7420
|
+
p_vm_id: string;
|
|
7421
|
+
};
|
|
7422
|
+
Returns: Json;
|
|
7423
|
+
};
|
|
7424
|
+
request_vm_resource_deletion: {
|
|
7425
|
+
Args: {
|
|
7426
|
+
p_idempotency_key?: string;
|
|
7427
|
+
p_request_payload?: Json;
|
|
7428
|
+
p_requested_by_agent_id?: string;
|
|
7429
|
+
p_vm_id: string;
|
|
7430
|
+
};
|
|
7431
|
+
Returns: Json;
|
|
7432
|
+
};
|
|
6824
7433
|
resolve_subscription_lifecycle_state: {
|
|
6825
7434
|
Args: {
|
|
6826
7435
|
p_pending_change_at: string;
|
|
@@ -6829,6 +7438,13 @@ export type Database = {
|
|
|
6829
7438
|
};
|
|
6830
7439
|
Returns: string;
|
|
6831
7440
|
};
|
|
7441
|
+
resolve_vm_hourly_cost_usd: {
|
|
7442
|
+
Args: {
|
|
7443
|
+
p_metadata?: Json;
|
|
7444
|
+
p_settings?: Json;
|
|
7445
|
+
};
|
|
7446
|
+
Returns: number;
|
|
7447
|
+
};
|
|
6832
7448
|
restore_deleted_account: {
|
|
6833
7449
|
Args: {
|
|
6834
7450
|
p_user_id: string;
|
|
@@ -7110,6 +7726,12 @@ export type Database = {
|
|
|
7110
7726
|
};
|
|
7111
7727
|
Returns: boolean;
|
|
7112
7728
|
};
|
|
7729
|
+
touch_vm_team_resource_updated_at: {
|
|
7730
|
+
Args: {
|
|
7731
|
+
p_vm_id: string;
|
|
7732
|
+
};
|
|
7733
|
+
Returns: undefined;
|
|
7734
|
+
};
|
|
7113
7735
|
track_agent_usage: {
|
|
7114
7736
|
Args: {
|
|
7115
7737
|
p_agent_id: string;
|
|
@@ -7231,6 +7853,12 @@ export type Database = {
|
|
|
7231
7853
|
};
|
|
7232
7854
|
Returns: undefined;
|
|
7233
7855
|
};
|
|
7856
|
+
user_can_access_vm: {
|
|
7857
|
+
Args: {
|
|
7858
|
+
p_vm_id: string;
|
|
7859
|
+
};
|
|
7860
|
+
Returns: boolean;
|
|
7861
|
+
};
|
|
7234
7862
|
user_can_admin_team: {
|
|
7235
7863
|
Args: {
|
|
7236
7864
|
p_team_id: string;
|