@panorama-ai/gateway 2.30.181 → 2.30.199

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.
@@ -1106,14 +1106,19 @@ export type Database = {
1106
1106
  ai_model_routes: {
1107
1107
  Row: {
1108
1108
  billing_mode: string;
1109
+ cache_support: Json | null;
1109
1110
  created_at: string;
1110
1111
  id: string;
1111
1112
  model_id: string;
1113
+ openrouter_provider: Json | null;
1114
+ privacy_policy: Json | null;
1115
+ production_status: string | null;
1112
1116
  provider_model_id: string;
1113
1117
  requires_inline_schemas: boolean | null;
1114
1118
  requires_key: string | null;
1115
1119
  requires_tool_binding: boolean | null;
1116
1120
  route: string;
1121
+ route_certification: Json | null;
1117
1122
  supports_strict_mode: boolean | null;
1118
1123
  thinking_enabled: boolean | null;
1119
1124
  tool_binding_mode: string | null;
@@ -1123,14 +1128,19 @@ export type Database = {
1123
1128
  };
1124
1129
  Insert: {
1125
1130
  billing_mode: string;
1131
+ cache_support?: Json | null;
1126
1132
  created_at?: string;
1127
1133
  id: string;
1128
1134
  model_id: string;
1135
+ openrouter_provider?: Json | null;
1136
+ privacy_policy?: Json | null;
1137
+ production_status?: string | null;
1129
1138
  provider_model_id: string;
1130
1139
  requires_inline_schemas?: boolean | null;
1131
1140
  requires_key?: string | null;
1132
1141
  requires_tool_binding?: boolean | null;
1133
1142
  route: string;
1143
+ route_certification?: Json | null;
1134
1144
  supports_strict_mode?: boolean | null;
1135
1145
  thinking_enabled?: boolean | null;
1136
1146
  tool_binding_mode?: string | null;
@@ -1140,14 +1150,19 @@ export type Database = {
1140
1150
  };
1141
1151
  Update: {
1142
1152
  billing_mode?: string;
1153
+ cache_support?: Json | null;
1143
1154
  created_at?: string;
1144
1155
  id?: string;
1145
1156
  model_id?: string;
1157
+ openrouter_provider?: Json | null;
1158
+ privacy_policy?: Json | null;
1159
+ production_status?: string | null;
1146
1160
  provider_model_id?: string;
1147
1161
  requires_inline_schemas?: boolean | null;
1148
1162
  requires_key?: string | null;
1149
1163
  requires_tool_binding?: boolean | null;
1150
1164
  route?: string;
1165
+ route_certification?: Json | null;
1151
1166
  supports_strict_mode?: boolean | null;
1152
1167
  thinking_enabled?: boolean | null;
1153
1168
  tool_binding_mode?: string | null;
@@ -3067,6 +3082,78 @@ export type Database = {
3067
3082
  }
3068
3083
  ];
3069
3084
  };
3085
+ model_cache_entries: {
3086
+ Row: {
3087
+ agent_id: string;
3088
+ cache_strategy: string;
3089
+ created_at: string;
3090
+ expires_at: string | null;
3091
+ id: string;
3092
+ last_used_at: string;
3093
+ metadata: Json;
3094
+ model_id: string;
3095
+ prefix_chars: number;
3096
+ prefix_hash: string;
3097
+ prefix_tokens_estimate: number | null;
3098
+ provider_cache_name: string;
3099
+ provider_model_id: string;
3100
+ purpose: string;
3101
+ tools_hash: string;
3102
+ updated_at: string;
3103
+ };
3104
+ Insert: {
3105
+ agent_id: string;
3106
+ cache_strategy: string;
3107
+ created_at?: string;
3108
+ expires_at?: string | null;
3109
+ id?: string;
3110
+ last_used_at?: string;
3111
+ metadata?: Json;
3112
+ model_id: string;
3113
+ prefix_chars: number;
3114
+ prefix_hash: string;
3115
+ prefix_tokens_estimate?: number | null;
3116
+ provider_cache_name: string;
3117
+ provider_model_id: string;
3118
+ purpose: string;
3119
+ tools_hash?: string;
3120
+ updated_at?: string;
3121
+ };
3122
+ Update: {
3123
+ agent_id?: string;
3124
+ cache_strategy?: string;
3125
+ created_at?: string;
3126
+ expires_at?: string | null;
3127
+ id?: string;
3128
+ last_used_at?: string;
3129
+ metadata?: Json;
3130
+ model_id?: string;
3131
+ prefix_chars?: number;
3132
+ prefix_hash?: string;
3133
+ prefix_tokens_estimate?: number | null;
3134
+ provider_cache_name?: string;
3135
+ provider_model_id?: string;
3136
+ purpose?: string;
3137
+ tools_hash?: string;
3138
+ updated_at?: string;
3139
+ };
3140
+ Relationships: [
3141
+ {
3142
+ foreignKeyName: "model_cache_entries_agent_id_fkey";
3143
+ columns: ["agent_id"];
3144
+ isOneToOne: false;
3145
+ referencedRelation: "agent_full";
3146
+ referencedColumns: ["id"];
3147
+ },
3148
+ {
3149
+ foreignKeyName: "model_cache_entries_agent_id_fkey";
3150
+ columns: ["agent_id"];
3151
+ isOneToOne: false;
3152
+ referencedRelation: "agents";
3153
+ referencedColumns: ["id"];
3154
+ }
3155
+ ];
3156
+ };
3070
3157
  model_registry_versions: {
3071
3158
  Row: {
3072
3159
  is_current: boolean;
@@ -6764,8 +6851,16 @@ export type Database = {
6764
6851
  billing_mode: string | null;
6765
6852
  cache_applied: boolean | null;
6766
6853
  cache_decision: string | null;
6854
+ cache_effective_hit_rate: number | null;
6855
+ cache_effective_outcome: string | null;
6856
+ cache_effective_reliability: string | null;
6857
+ cache_effective_savings_usd: number | null;
6767
6858
  cache_eligible: boolean | null;
6768
6859
  cache_min_prompt_tokens: number | null;
6860
+ cache_observed_source: string | null;
6861
+ cache_observed_status: string | null;
6862
+ cache_plan_decision: string | null;
6863
+ cache_plan_reason: string | null;
6769
6864
  cache_prefix_chars: number | null;
6770
6865
  cache_prefix_ratio: number | null;
6771
6866
  cache_read_cost_usd: number | null;
@@ -6796,6 +6891,9 @@ export type Database = {
6796
6891
  provider_name: string | null;
6797
6892
  reasoning_tokens: number | null;
6798
6893
  route: string | null;
6894
+ route_certified_provider: string | null;
6895
+ route_privacy_posture: string | null;
6896
+ route_production_status: string | null;
6799
6897
  timestamp: string | null;
6800
6898
  total_cost_usd: number | null;
6801
6899
  total_tokens: number | null;
@@ -6995,6 +7093,8 @@ export type Database = {
6995
7093
  blocked_at: string | null;
6996
7094
  blocked_on: string | null;
6997
7095
  cache_decision: string | null;
7096
+ cache_effective_outcome: string | null;
7097
+ cache_observed_status: string | null;
6998
7098
  cache_reason: string | null;
6999
7099
  cache_strategy: string | null;
7000
7100
  cached_prompt_tokens: number | null;
@@ -7025,6 +7125,8 @@ export type Database = {
7025
7125
  provider_model_id: string | null;
7026
7126
  reasoning_tokens: number | null;
7027
7127
  route: string | null;
7128
+ route_privacy_posture: string | null;
7129
+ route_production_status: string | null;
7028
7130
  run_id: string | null;
7029
7131
  run_last_error: string | null;
7030
7132
  run_state: string | null;
@@ -7699,6 +7801,21 @@ export type Database = {
7699
7801
  };
7700
7802
  Returns: Json;
7701
7803
  };
7804
+ build_wiki_page_subscription_snapshot: {
7805
+ Args: {
7806
+ p_content_limit?: number;
7807
+ p_page_id: string;
7808
+ p_wiki_id: string;
7809
+ };
7810
+ Returns: Json;
7811
+ };
7812
+ build_wiki_root_subscription_snapshot: {
7813
+ Args: {
7814
+ p_page_limit?: number;
7815
+ p_wiki_id: string;
7816
+ };
7817
+ Returns: Json;
7818
+ };
7702
7819
  bump_team_usage_signal: {
7703
7820
  Args: {
7704
7821
  p_team_id: string;
@@ -10481,6 +10598,15 @@ export type Database = {
10481
10598
  };
10482
10599
  Returns: number;
10483
10600
  };
10601
+ refresh_wiki_subscription_state: {
10602
+ Args: {
10603
+ p_changed_page_ids?: string[];
10604
+ p_observed_at?: string;
10605
+ p_source?: string;
10606
+ p_wiki_id: string;
10607
+ };
10608
+ Returns: number;
10609
+ };
10484
10610
  register_ai_models: {
10485
10611
  Args: {
10486
10612
  p_models: Json;
@@ -11323,6 +11449,12 @@ export type Database = {
11323
11449
  };
11324
11450
  Returns: boolean;
11325
11451
  };
11452
+ wiki_page_id_from_subscription_path: {
11453
+ Args: {
11454
+ p_subscription_path: string;
11455
+ };
11456
+ Returns: string;
11457
+ };
11326
11458
  write_drive_file: {
11327
11459
  Args: {
11328
11460
  p_content_base64?: string;