@ai-matrx/data 0.29.1 → 0.29.3
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/CHANGELOG.md +12 -0
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +580 -0
- package/dist/types.d.ts +580 -0
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -2637,6 +2637,13 @@ type Database = {
|
|
|
2637
2637
|
isOneToOne: false;
|
|
2638
2638
|
referencedRelation: "model_public";
|
|
2639
2639
|
referencedColumns: ["id"];
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
foreignKeyName: "model_alias_model_id_fkey";
|
|
2643
|
+
columns: ["model_id"];
|
|
2644
|
+
isOneToOne: false;
|
|
2645
|
+
referencedRelation: "test_model_candidates";
|
|
2646
|
+
referencedColumns: ["model_id"];
|
|
2640
2647
|
}
|
|
2641
2648
|
];
|
|
2642
2649
|
};
|
|
@@ -2787,6 +2794,13 @@ type Database = {
|
|
|
2787
2794
|
referencedRelation: "model_public";
|
|
2788
2795
|
referencedColumns: ["id"];
|
|
2789
2796
|
},
|
|
2797
|
+
{
|
|
2798
|
+
foreignKeyName: "ai_model_guest_fallback_id_fkey";
|
|
2799
|
+
columns: ["guest_fallback_id"];
|
|
2800
|
+
isOneToOne: false;
|
|
2801
|
+
referencedRelation: "test_model_candidates";
|
|
2802
|
+
referencedColumns: ["model_id"];
|
|
2803
|
+
},
|
|
2790
2804
|
{
|
|
2791
2805
|
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
2792
2806
|
columns: ["mid_fallback_id"];
|
|
@@ -2815,6 +2829,13 @@ type Database = {
|
|
|
2815
2829
|
referencedRelation: "model_public";
|
|
2816
2830
|
referencedColumns: ["id"];
|
|
2817
2831
|
},
|
|
2832
|
+
{
|
|
2833
|
+
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
2834
|
+
columns: ["mid_fallback_id"];
|
|
2835
|
+
isOneToOne: false;
|
|
2836
|
+
referencedRelation: "test_model_candidates";
|
|
2837
|
+
referencedColumns: ["model_id"];
|
|
2838
|
+
},
|
|
2818
2839
|
{
|
|
2819
2840
|
foreignKeyName: "ai_model_model_provider_fkey";
|
|
2820
2841
|
columns: ["provider_id"];
|
|
@@ -2850,6 +2871,13 @@ type Database = {
|
|
|
2850
2871
|
referencedRelation: "model_public";
|
|
2851
2872
|
referencedColumns: ["id"];
|
|
2852
2873
|
},
|
|
2874
|
+
{
|
|
2875
|
+
foreignKeyName: "model_definition_retry_fallback_id_fkey";
|
|
2876
|
+
columns: ["retry_fallback_id"];
|
|
2877
|
+
isOneToOne: false;
|
|
2878
|
+
referencedRelation: "test_model_candidates";
|
|
2879
|
+
referencedColumns: ["model_id"];
|
|
2880
|
+
},
|
|
2853
2881
|
{
|
|
2854
2882
|
foreignKeyName: "model_definition_successor_id_fkey";
|
|
2855
2883
|
columns: ["successor_id"];
|
|
@@ -2877,6 +2905,13 @@ type Database = {
|
|
|
2877
2905
|
isOneToOne: false;
|
|
2878
2906
|
referencedRelation: "model_public";
|
|
2879
2907
|
referencedColumns: ["id"];
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
foreignKeyName: "model_definition_successor_id_fkey";
|
|
2911
|
+
columns: ["successor_id"];
|
|
2912
|
+
isOneToOne: false;
|
|
2913
|
+
referencedRelation: "test_model_candidates";
|
|
2914
|
+
referencedColumns: ["model_id"];
|
|
2880
2915
|
}
|
|
2881
2916
|
];
|
|
2882
2917
|
};
|
|
@@ -3027,6 +3062,13 @@ type Database = {
|
|
|
3027
3062
|
referencedRelation: "model_public";
|
|
3028
3063
|
referencedColumns: ["id"];
|
|
3029
3064
|
},
|
|
3065
|
+
{
|
|
3066
|
+
foreignKeyName: "offering_model_id_fkey";
|
|
3067
|
+
columns: ["model_id"];
|
|
3068
|
+
isOneToOne: false;
|
|
3069
|
+
referencedRelation: "test_model_candidates";
|
|
3070
|
+
referencedColumns: ["model_id"];
|
|
3071
|
+
},
|
|
3030
3072
|
{
|
|
3031
3073
|
foreignKeyName: "offering_setting_profile_fkey";
|
|
3032
3074
|
columns: ["setting_profile_id", "api_id"];
|
|
@@ -3550,6 +3592,13 @@ type Database = {
|
|
|
3550
3592
|
referencedRelation: "model_public";
|
|
3551
3593
|
referencedColumns: ["id"];
|
|
3552
3594
|
},
|
|
3595
|
+
{
|
|
3596
|
+
foreignKeyName: "ai_model_guest_fallback_id_fkey";
|
|
3597
|
+
columns: ["guest_fallback_id"];
|
|
3598
|
+
isOneToOne: false;
|
|
3599
|
+
referencedRelation: "test_model_candidates";
|
|
3600
|
+
referencedColumns: ["model_id"];
|
|
3601
|
+
},
|
|
3553
3602
|
{
|
|
3554
3603
|
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
3555
3604
|
columns: ["mid_fallback_id"];
|
|
@@ -3578,6 +3627,13 @@ type Database = {
|
|
|
3578
3627
|
referencedRelation: "model_public";
|
|
3579
3628
|
referencedColumns: ["id"];
|
|
3580
3629
|
},
|
|
3630
|
+
{
|
|
3631
|
+
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
3632
|
+
columns: ["mid_fallback_id"];
|
|
3633
|
+
isOneToOne: false;
|
|
3634
|
+
referencedRelation: "test_model_candidates";
|
|
3635
|
+
referencedColumns: ["model_id"];
|
|
3636
|
+
},
|
|
3581
3637
|
{
|
|
3582
3638
|
foreignKeyName: "ai_model_model_provider_fkey";
|
|
3583
3639
|
columns: ["provider_id"];
|
|
@@ -3613,6 +3669,13 @@ type Database = {
|
|
|
3613
3669
|
referencedRelation: "model_public";
|
|
3614
3670
|
referencedColumns: ["id"];
|
|
3615
3671
|
},
|
|
3672
|
+
{
|
|
3673
|
+
foreignKeyName: "model_definition_retry_fallback_id_fkey";
|
|
3674
|
+
columns: ["retry_fallback_id"];
|
|
3675
|
+
isOneToOne: false;
|
|
3676
|
+
referencedRelation: "test_model_candidates";
|
|
3677
|
+
referencedColumns: ["model_id"];
|
|
3678
|
+
},
|
|
3616
3679
|
{
|
|
3617
3680
|
foreignKeyName: "model_definition_successor_id_fkey";
|
|
3618
3681
|
columns: ["successor_id"];
|
|
@@ -3641,6 +3704,13 @@ type Database = {
|
|
|
3641
3704
|
referencedRelation: "model_public";
|
|
3642
3705
|
referencedColumns: ["id"];
|
|
3643
3706
|
},
|
|
3707
|
+
{
|
|
3708
|
+
foreignKeyName: "model_definition_successor_id_fkey";
|
|
3709
|
+
columns: ["successor_id"];
|
|
3710
|
+
isOneToOne: false;
|
|
3711
|
+
referencedRelation: "test_model_candidates";
|
|
3712
|
+
referencedColumns: ["model_id"];
|
|
3713
|
+
},
|
|
3644
3714
|
{
|
|
3645
3715
|
foreignKeyName: "offering_api_id_fkey";
|
|
3646
3716
|
columns: ["api_id"];
|
|
@@ -3711,6 +3781,13 @@ type Database = {
|
|
|
3711
3781
|
isOneToOne: false;
|
|
3712
3782
|
referencedRelation: "model_public";
|
|
3713
3783
|
referencedColumns: ["id"];
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
foreignKeyName: "model_definition_successor_id_fkey";
|
|
3787
|
+
columns: ["successor_id"];
|
|
3788
|
+
isOneToOne: false;
|
|
3789
|
+
referencedRelation: "test_model_candidates";
|
|
3790
|
+
referencedColumns: ["model_id"];
|
|
3714
3791
|
}
|
|
3715
3792
|
];
|
|
3716
3793
|
};
|
|
@@ -3760,6 +3837,13 @@ type Database = {
|
|
|
3760
3837
|
isOneToOne: false;
|
|
3761
3838
|
referencedRelation: "model_public";
|
|
3762
3839
|
referencedColumns: ["id"];
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
foreignKeyName: "offering_model_id_fkey";
|
|
3843
|
+
columns: ["model_id"];
|
|
3844
|
+
isOneToOne: false;
|
|
3845
|
+
referencedRelation: "test_model_candidates";
|
|
3846
|
+
referencedColumns: ["model_id"];
|
|
3763
3847
|
}
|
|
3764
3848
|
];
|
|
3765
3849
|
};
|
|
@@ -3834,6 +3918,13 @@ type Database = {
|
|
|
3834
3918
|
isOneToOne: false;
|
|
3835
3919
|
referencedRelation: "model_public";
|
|
3836
3920
|
referencedColumns: ["id"];
|
|
3921
|
+
},
|
|
3922
|
+
{
|
|
3923
|
+
foreignKeyName: "offering_model_id_fkey";
|
|
3924
|
+
columns: ["model_id"];
|
|
3925
|
+
isOneToOne: false;
|
|
3926
|
+
referencedRelation: "test_model_candidates";
|
|
3927
|
+
referencedColumns: ["model_id"];
|
|
3837
3928
|
}
|
|
3838
3929
|
];
|
|
3839
3930
|
};
|
|
@@ -3893,6 +3984,13 @@ type Database = {
|
|
|
3893
3984
|
referencedRelation: "model_public";
|
|
3894
3985
|
referencedColumns: ["id"];
|
|
3895
3986
|
},
|
|
3987
|
+
{
|
|
3988
|
+
foreignKeyName: "ai_model_guest_fallback_id_fkey";
|
|
3989
|
+
columns: ["guest_fallback_id"];
|
|
3990
|
+
isOneToOne: false;
|
|
3991
|
+
referencedRelation: "test_model_candidates";
|
|
3992
|
+
referencedColumns: ["model_id"];
|
|
3993
|
+
},
|
|
3896
3994
|
{
|
|
3897
3995
|
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
3898
3996
|
columns: ["mid_fallback_id"];
|
|
@@ -3921,6 +4019,13 @@ type Database = {
|
|
|
3921
4019
|
referencedRelation: "model_public";
|
|
3922
4020
|
referencedColumns: ["id"];
|
|
3923
4021
|
},
|
|
4022
|
+
{
|
|
4023
|
+
foreignKeyName: "ai_model_mid_fallback_id_fkey";
|
|
4024
|
+
columns: ["mid_fallback_id"];
|
|
4025
|
+
isOneToOne: false;
|
|
4026
|
+
referencedRelation: "test_model_candidates";
|
|
4027
|
+
referencedColumns: ["model_id"];
|
|
4028
|
+
},
|
|
3924
4029
|
{
|
|
3925
4030
|
foreignKeyName: "model_definition_successor_id_fkey";
|
|
3926
4031
|
columns: ["successor_id"];
|
|
@@ -3948,6 +4053,13 @@ type Database = {
|
|
|
3948
4053
|
isOneToOne: false;
|
|
3949
4054
|
referencedRelation: "model_public";
|
|
3950
4055
|
referencedColumns: ["id"];
|
|
4056
|
+
},
|
|
4057
|
+
{
|
|
4058
|
+
foreignKeyName: "model_definition_successor_id_fkey";
|
|
4059
|
+
columns: ["successor_id"];
|
|
4060
|
+
isOneToOne: false;
|
|
4061
|
+
referencedRelation: "test_model_candidates";
|
|
4062
|
+
referencedColumns: ["model_id"];
|
|
3951
4063
|
}
|
|
3952
4064
|
];
|
|
3953
4065
|
};
|
|
@@ -4004,6 +4116,20 @@ type Database = {
|
|
|
4004
4116
|
};
|
|
4005
4117
|
Relationships: [];
|
|
4006
4118
|
};
|
|
4119
|
+
test_model_candidates: {
|
|
4120
|
+
Row: {
|
|
4121
|
+
common_name: string | null;
|
|
4122
|
+
cost_rating: number | null;
|
|
4123
|
+
has_tools: boolean | null;
|
|
4124
|
+
model_id: string | null;
|
|
4125
|
+
model_name: string | null;
|
|
4126
|
+
price_in: number | null;
|
|
4127
|
+
price_out: number | null;
|
|
4128
|
+
provider: string | null;
|
|
4129
|
+
served_via: string | null;
|
|
4130
|
+
};
|
|
4131
|
+
Relationships: [];
|
|
4132
|
+
};
|
|
4007
4133
|
ui_enum_drift: {
|
|
4008
4134
|
Row: {
|
|
4009
4135
|
category: string | null;
|
|
@@ -4195,6 +4321,13 @@ type Database = {
|
|
|
4195
4321
|
};
|
|
4196
4322
|
Returns: undefined;
|
|
4197
4323
|
};
|
|
4324
|
+
test_model_choice: {
|
|
4325
|
+
Args: {
|
|
4326
|
+
provider?: string;
|
|
4327
|
+
purpose: string;
|
|
4328
|
+
};
|
|
4329
|
+
Returns: Json;
|
|
4330
|
+
};
|
|
4198
4331
|
translation_evidence_proven: {
|
|
4199
4332
|
Args: {
|
|
4200
4333
|
p_evidence: Json;
|
|
@@ -15438,6 +15571,27 @@ type Database = {
|
|
|
15438
15571
|
}
|
|
15439
15572
|
];
|
|
15440
15573
|
};
|
|
15574
|
+
access_setup: {
|
|
15575
|
+
Row: {
|
|
15576
|
+
declared_by: string;
|
|
15577
|
+
entity_type: string;
|
|
15578
|
+
setup: Json;
|
|
15579
|
+
updated_at: string;
|
|
15580
|
+
};
|
|
15581
|
+
Insert: {
|
|
15582
|
+
declared_by: string;
|
|
15583
|
+
entity_type: string;
|
|
15584
|
+
setup: Json;
|
|
15585
|
+
updated_at?: string;
|
|
15586
|
+
};
|
|
15587
|
+
Update: {
|
|
15588
|
+
declared_by?: string;
|
|
15589
|
+
entity_type?: string;
|
|
15590
|
+
setup?: Json;
|
|
15591
|
+
updated_at?: string;
|
|
15592
|
+
};
|
|
15593
|
+
Relationships: [];
|
|
15594
|
+
};
|
|
15441
15595
|
access_shadow_log: {
|
|
15442
15596
|
Row: {
|
|
15443
15597
|
at: string;
|
|
@@ -16882,6 +17036,112 @@ type Database = {
|
|
|
16882
17036
|
};
|
|
16883
17037
|
Relationships: [];
|
|
16884
17038
|
};
|
|
17039
|
+
record_seat_change: {
|
|
17040
|
+
Row: {
|
|
17041
|
+
archived_by: string | null;
|
|
17042
|
+
change: string;
|
|
17043
|
+
changed_at: string;
|
|
17044
|
+
changed_by: string | null;
|
|
17045
|
+
created_at: string;
|
|
17046
|
+
created_by: string | null;
|
|
17047
|
+
deleted_at: string | null;
|
|
17048
|
+
entity_type: string;
|
|
17049
|
+
id: string;
|
|
17050
|
+
metadata: Json;
|
|
17051
|
+
organization_id: string;
|
|
17052
|
+
reason: string | null;
|
|
17053
|
+
record_id: string;
|
|
17054
|
+
seat_key: string;
|
|
17055
|
+
updated_at: string;
|
|
17056
|
+
updated_by: string | null;
|
|
17057
|
+
user_id: string;
|
|
17058
|
+
version: number;
|
|
17059
|
+
};
|
|
17060
|
+
Insert: {
|
|
17061
|
+
archived_by?: string | null;
|
|
17062
|
+
change: string;
|
|
17063
|
+
changed_at?: string;
|
|
17064
|
+
changed_by?: string | null;
|
|
17065
|
+
created_at?: string;
|
|
17066
|
+
created_by?: string | null;
|
|
17067
|
+
deleted_at?: string | null;
|
|
17068
|
+
entity_type: string;
|
|
17069
|
+
id?: string;
|
|
17070
|
+
metadata?: Json;
|
|
17071
|
+
organization_id: string;
|
|
17072
|
+
reason?: string | null;
|
|
17073
|
+
record_id: string;
|
|
17074
|
+
seat_key: string;
|
|
17075
|
+
updated_at?: string;
|
|
17076
|
+
updated_by?: string | null;
|
|
17077
|
+
user_id: string;
|
|
17078
|
+
version?: number;
|
|
17079
|
+
};
|
|
17080
|
+
Update: {
|
|
17081
|
+
archived_by?: string | null;
|
|
17082
|
+
change?: string;
|
|
17083
|
+
changed_at?: string;
|
|
17084
|
+
changed_by?: string | null;
|
|
17085
|
+
created_at?: string;
|
|
17086
|
+
created_by?: string | null;
|
|
17087
|
+
deleted_at?: string | null;
|
|
17088
|
+
entity_type?: string;
|
|
17089
|
+
id?: string;
|
|
17090
|
+
metadata?: Json;
|
|
17091
|
+
organization_id?: string;
|
|
17092
|
+
reason?: string | null;
|
|
17093
|
+
record_id?: string;
|
|
17094
|
+
seat_key?: string;
|
|
17095
|
+
updated_at?: string;
|
|
17096
|
+
updated_by?: string | null;
|
|
17097
|
+
user_id?: string;
|
|
17098
|
+
version?: number;
|
|
17099
|
+
};
|
|
17100
|
+
Relationships: [
|
|
17101
|
+
{
|
|
17102
|
+
foreignKeyName: "record_seat_change_archived_by_fkey";
|
|
17103
|
+
columns: ["archived_by"];
|
|
17104
|
+
isOneToOne: false;
|
|
17105
|
+
referencedRelation: "users";
|
|
17106
|
+
referencedColumns: ["id"];
|
|
17107
|
+
},
|
|
17108
|
+
{
|
|
17109
|
+
foreignKeyName: "record_seat_change_changed_by_fkey";
|
|
17110
|
+
columns: ["changed_by"];
|
|
17111
|
+
isOneToOne: false;
|
|
17112
|
+
referencedRelation: "users";
|
|
17113
|
+
referencedColumns: ["id"];
|
|
17114
|
+
},
|
|
17115
|
+
{
|
|
17116
|
+
foreignKeyName: "record_seat_change_created_by_fkey";
|
|
17117
|
+
columns: ["created_by"];
|
|
17118
|
+
isOneToOne: false;
|
|
17119
|
+
referencedRelation: "users";
|
|
17120
|
+
referencedColumns: ["id"];
|
|
17121
|
+
},
|
|
17122
|
+
{
|
|
17123
|
+
foreignKeyName: "record_seat_change_organization_id_fkey";
|
|
17124
|
+
columns: ["organization_id"];
|
|
17125
|
+
isOneToOne: false;
|
|
17126
|
+
referencedRelation: "organizations";
|
|
17127
|
+
referencedColumns: ["id"];
|
|
17128
|
+
},
|
|
17129
|
+
{
|
|
17130
|
+
foreignKeyName: "record_seat_change_updated_by_fkey";
|
|
17131
|
+
columns: ["updated_by"];
|
|
17132
|
+
isOneToOne: false;
|
|
17133
|
+
referencedRelation: "users";
|
|
17134
|
+
referencedColumns: ["id"];
|
|
17135
|
+
},
|
|
17136
|
+
{
|
|
17137
|
+
foreignKeyName: "record_seat_change_user_id_fkey";
|
|
17138
|
+
columns: ["user_id"];
|
|
17139
|
+
isOneToOne: false;
|
|
17140
|
+
referencedRelation: "users";
|
|
17141
|
+
referencedColumns: ["id"];
|
|
17142
|
+
}
|
|
17143
|
+
];
|
|
17144
|
+
};
|
|
16885
17145
|
superseded_policy: {
|
|
16886
17146
|
Row: {
|
|
16887
17147
|
id: string;
|
|
@@ -17219,6 +17479,55 @@ type Database = {
|
|
|
17219
17479
|
};
|
|
17220
17480
|
};
|
|
17221
17481
|
Functions: {
|
|
17482
|
+
_access_setup_call_uuid: {
|
|
17483
|
+
Args: {
|
|
17484
|
+
p_fn: string;
|
|
17485
|
+
p_id: string;
|
|
17486
|
+
};
|
|
17487
|
+
Returns: Json;
|
|
17488
|
+
};
|
|
17489
|
+
_access_setup_facts: {
|
|
17490
|
+
Args: {
|
|
17491
|
+
p_id: string;
|
|
17492
|
+
p_setup: Json;
|
|
17493
|
+
p_token: string;
|
|
17494
|
+
};
|
|
17495
|
+
Returns: Json;
|
|
17496
|
+
};
|
|
17497
|
+
_access_setup_head_org: {
|
|
17498
|
+
Args: {
|
|
17499
|
+
p_id: string;
|
|
17500
|
+
p_type: string;
|
|
17501
|
+
};
|
|
17502
|
+
Returns: string;
|
|
17503
|
+
};
|
|
17504
|
+
_access_setup_of: {
|
|
17505
|
+
Args: {
|
|
17506
|
+
p_type: string;
|
|
17507
|
+
};
|
|
17508
|
+
Returns: Json;
|
|
17509
|
+
};
|
|
17510
|
+
_access_setup_problems: {
|
|
17511
|
+
Args: {
|
|
17512
|
+
p_type: string;
|
|
17513
|
+
s: Json;
|
|
17514
|
+
};
|
|
17515
|
+
Returns: string[];
|
|
17516
|
+
};
|
|
17517
|
+
_access_setup_stage_reached: {
|
|
17518
|
+
Args: {
|
|
17519
|
+
p_from: Json;
|
|
17520
|
+
p_stages: string[];
|
|
17521
|
+
};
|
|
17522
|
+
Returns: boolean;
|
|
17523
|
+
};
|
|
17524
|
+
_access_setup_stages: {
|
|
17525
|
+
Args: {
|
|
17526
|
+
p_id: string;
|
|
17527
|
+
p_setup: Json;
|
|
17528
|
+
};
|
|
17529
|
+
Returns: string[];
|
|
17530
|
+
};
|
|
17222
17531
|
_agent_open_to_every_member: {
|
|
17223
17532
|
Args: {
|
|
17224
17533
|
p_agent_id: string;
|
|
@@ -17251,6 +17560,23 @@ type Database = {
|
|
|
17251
17560
|
};
|
|
17252
17561
|
Returns: Json;
|
|
17253
17562
|
};
|
|
17563
|
+
_cells_for: {
|
|
17564
|
+
Args: {
|
|
17565
|
+
p_id: string;
|
|
17566
|
+
p_part: string;
|
|
17567
|
+
p_person: string;
|
|
17568
|
+
p_type: string;
|
|
17569
|
+
};
|
|
17570
|
+
Returns: {
|
|
17571
|
+
borrowed: boolean;
|
|
17572
|
+
from_stage: Json;
|
|
17573
|
+
level: Database["public"]["Enums"]["permission_level"];
|
|
17574
|
+
names: string;
|
|
17575
|
+
reached: boolean;
|
|
17576
|
+
rows_rule: string;
|
|
17577
|
+
seat: string;
|
|
17578
|
+
}[];
|
|
17579
|
+
};
|
|
17254
17580
|
_client_grant_column_list: {
|
|
17255
17581
|
Args: {
|
|
17256
17582
|
p_excluded: string[];
|
|
@@ -17529,6 +17855,18 @@ type Database = {
|
|
|
17529
17855
|
};
|
|
17530
17856
|
Returns: undefined;
|
|
17531
17857
|
};
|
|
17858
|
+
_seat_table: {
|
|
17859
|
+
Args: {
|
|
17860
|
+
p_id: string;
|
|
17861
|
+
p_type: string;
|
|
17862
|
+
};
|
|
17863
|
+
Returns: {
|
|
17864
|
+
removable: boolean;
|
|
17865
|
+
seat: string;
|
|
17866
|
+
source: string;
|
|
17867
|
+
user_id: string;
|
|
17868
|
+
}[];
|
|
17869
|
+
};
|
|
17532
17870
|
_share_with_audience: {
|
|
17533
17871
|
Args: {
|
|
17534
17872
|
p_actor: string;
|
|
@@ -17626,6 +17964,12 @@ type Database = {
|
|
|
17626
17964
|
token: string;
|
|
17627
17965
|
}[];
|
|
17628
17966
|
};
|
|
17967
|
+
access_setup_check: {
|
|
17968
|
+
Args: {
|
|
17969
|
+
p_type: string;
|
|
17970
|
+
};
|
|
17971
|
+
Returns: Json;
|
|
17972
|
+
};
|
|
17629
17973
|
access_shadow_status: {
|
|
17630
17974
|
Args: never;
|
|
17631
17975
|
Returns: Json;
|
|
@@ -18521,6 +18865,15 @@ type Database = {
|
|
|
18521
18865
|
};
|
|
18522
18866
|
Returns: string;
|
|
18523
18867
|
};
|
|
18868
|
+
may_act: {
|
|
18869
|
+
Args: {
|
|
18870
|
+
p_action: string;
|
|
18871
|
+
p_id: string;
|
|
18872
|
+
p_person: string;
|
|
18873
|
+
p_type: string;
|
|
18874
|
+
};
|
|
18875
|
+
Returns: boolean;
|
|
18876
|
+
};
|
|
18524
18877
|
may_address_user_in_org: {
|
|
18525
18878
|
Args: {
|
|
18526
18879
|
p_org: string;
|
|
@@ -18777,6 +19130,31 @@ type Database = {
|
|
|
18777
19130
|
};
|
|
18778
19131
|
Returns: string;
|
|
18779
19132
|
};
|
|
19133
|
+
part_level: {
|
|
19134
|
+
Args: {
|
|
19135
|
+
p_id: string;
|
|
19136
|
+
p_part: string;
|
|
19137
|
+
p_person: string;
|
|
19138
|
+
p_row_id?: string;
|
|
19139
|
+
p_row_token?: string;
|
|
19140
|
+
p_type: string;
|
|
19141
|
+
};
|
|
19142
|
+
Returns: Database["public"]["Enums"]["permission_level"];
|
|
19143
|
+
};
|
|
19144
|
+
parts_for: {
|
|
19145
|
+
Args: {
|
|
19146
|
+
p_id: string;
|
|
19147
|
+
p_person: string;
|
|
19148
|
+
p_type: string;
|
|
19149
|
+
};
|
|
19150
|
+
Returns: {
|
|
19151
|
+
level: Database["public"]["Enums"]["permission_level"];
|
|
19152
|
+
names: string;
|
|
19153
|
+
opens_at_stage: Json;
|
|
19154
|
+
part: string;
|
|
19155
|
+
rows_rule: string;
|
|
19156
|
+
}[];
|
|
19157
|
+
};
|
|
18780
19158
|
people_lists_a_non_member_can_read: {
|
|
18781
19159
|
Args: never;
|
|
18782
19160
|
Returns: {
|
|
@@ -19040,6 +19418,17 @@ type Database = {
|
|
|
19040
19418
|
why: string;
|
|
19041
19419
|
}[];
|
|
19042
19420
|
};
|
|
19421
|
+
record_seat_set: {
|
|
19422
|
+
Args: {
|
|
19423
|
+
p_change: string;
|
|
19424
|
+
p_id: string;
|
|
19425
|
+
p_reason?: string;
|
|
19426
|
+
p_seat: string;
|
|
19427
|
+
p_type: string;
|
|
19428
|
+
p_user: string;
|
|
19429
|
+
};
|
|
19430
|
+
Returns: Json;
|
|
19431
|
+
};
|
|
19043
19432
|
record_transfer_refusal: {
|
|
19044
19433
|
Args: {
|
|
19045
19434
|
p_refusal: Json;
|
|
@@ -19057,6 +19446,23 @@ type Database = {
|
|
|
19057
19446
|
};
|
|
19058
19447
|
Returns: boolean;
|
|
19059
19448
|
};
|
|
19449
|
+
records_where_seated: {
|
|
19450
|
+
Args: {
|
|
19451
|
+
p_org_filter?: string;
|
|
19452
|
+
p_person: string;
|
|
19453
|
+
p_type: string;
|
|
19454
|
+
};
|
|
19455
|
+
Returns: string[];
|
|
19456
|
+
};
|
|
19457
|
+
redact_by_parts: {
|
|
19458
|
+
Args: {
|
|
19459
|
+
p_id: string;
|
|
19460
|
+
p_json: Json;
|
|
19461
|
+
p_person: string;
|
|
19462
|
+
p_type: string;
|
|
19463
|
+
};
|
|
19464
|
+
Returns: Json;
|
|
19465
|
+
};
|
|
19060
19466
|
refuse_unreadable_policies: {
|
|
19061
19467
|
Args: {
|
|
19062
19468
|
p_tbl: unknown;
|
|
@@ -19215,6 +19621,26 @@ type Database = {
|
|
|
19215
19621
|
};
|
|
19216
19622
|
Returns: boolean;
|
|
19217
19623
|
};
|
|
19624
|
+
seat_holders: {
|
|
19625
|
+
Args: {
|
|
19626
|
+
p_id: string;
|
|
19627
|
+
p_type: string;
|
|
19628
|
+
};
|
|
19629
|
+
Returns: {
|
|
19630
|
+
removable: boolean;
|
|
19631
|
+
seat: string;
|
|
19632
|
+
source: string;
|
|
19633
|
+
user_id: string;
|
|
19634
|
+
}[];
|
|
19635
|
+
};
|
|
19636
|
+
seats_of: {
|
|
19637
|
+
Args: {
|
|
19638
|
+
p_id: string;
|
|
19639
|
+
p_person: string;
|
|
19640
|
+
p_type: string;
|
|
19641
|
+
};
|
|
19642
|
+
Returns: string[];
|
|
19643
|
+
};
|
|
19218
19644
|
share_with_person: {
|
|
19219
19645
|
Args: {
|
|
19220
19646
|
p_actor: string;
|
|
@@ -22235,7 +22661,11 @@ type Database = {
|
|
|
22235
22661
|
agent_id: string | null;
|
|
22236
22662
|
cache_outcome: Json;
|
|
22237
22663
|
client_prep_ms: number | null;
|
|
22664
|
+
client_render_ms: number | null;
|
|
22665
|
+
client_reported_at: string | null;
|
|
22238
22666
|
client_sent_at: string | null;
|
|
22667
|
+
client_total_ms: number | null;
|
|
22668
|
+
client_wait_ms: number | null;
|
|
22239
22669
|
conversation_id: string | null;
|
|
22240
22670
|
created_at: string;
|
|
22241
22671
|
created_by: string | null;
|
|
@@ -22246,10 +22676,17 @@ type Database = {
|
|
|
22246
22676
|
organization_id: string;
|
|
22247
22677
|
prep_blocks: Json;
|
|
22248
22678
|
prep_s: number | null;
|
|
22679
|
+
provider_call_started_at: string | null;
|
|
22680
|
+
provider_first_response_at: string | null;
|
|
22681
|
+
provider_first_response_kind: string | null;
|
|
22249
22682
|
provider_ttft_ms: number | null;
|
|
22683
|
+
provider_wait_ms: number | null;
|
|
22250
22684
|
request_id: string;
|
|
22251
22685
|
route: string;
|
|
22252
22686
|
server_arrived_at: string;
|
|
22687
|
+
server_first_emit_at: string | null;
|
|
22688
|
+
server_prep_ms: number | null;
|
|
22689
|
+
server_relay_ms: number | null;
|
|
22253
22690
|
server_task_id: string | null;
|
|
22254
22691
|
stage: string;
|
|
22255
22692
|
status: string | null;
|
|
@@ -22263,7 +22700,11 @@ type Database = {
|
|
|
22263
22700
|
agent_id?: string | null;
|
|
22264
22701
|
cache_outcome?: Json;
|
|
22265
22702
|
client_prep_ms?: number | null;
|
|
22703
|
+
client_render_ms?: number | null;
|
|
22704
|
+
client_reported_at?: string | null;
|
|
22266
22705
|
client_sent_at?: string | null;
|
|
22706
|
+
client_total_ms?: number | null;
|
|
22707
|
+
client_wait_ms?: number | null;
|
|
22267
22708
|
conversation_id?: string | null;
|
|
22268
22709
|
created_at?: string;
|
|
22269
22710
|
created_by?: string | null;
|
|
@@ -22274,10 +22715,17 @@ type Database = {
|
|
|
22274
22715
|
organization_id: string;
|
|
22275
22716
|
prep_blocks?: Json;
|
|
22276
22717
|
prep_s?: number | null;
|
|
22718
|
+
provider_call_started_at?: string | null;
|
|
22719
|
+
provider_first_response_at?: string | null;
|
|
22720
|
+
provider_first_response_kind?: string | null;
|
|
22277
22721
|
provider_ttft_ms?: number | null;
|
|
22722
|
+
provider_wait_ms?: number | null;
|
|
22278
22723
|
request_id: string;
|
|
22279
22724
|
route: string;
|
|
22280
22725
|
server_arrived_at: string;
|
|
22726
|
+
server_first_emit_at?: string | null;
|
|
22727
|
+
server_prep_ms?: number | null;
|
|
22728
|
+
server_relay_ms?: number | null;
|
|
22281
22729
|
server_task_id?: string | null;
|
|
22282
22730
|
stage?: string;
|
|
22283
22731
|
status?: string | null;
|
|
@@ -22291,7 +22739,11 @@ type Database = {
|
|
|
22291
22739
|
agent_id?: string | null;
|
|
22292
22740
|
cache_outcome?: Json;
|
|
22293
22741
|
client_prep_ms?: number | null;
|
|
22742
|
+
client_render_ms?: number | null;
|
|
22743
|
+
client_reported_at?: string | null;
|
|
22294
22744
|
client_sent_at?: string | null;
|
|
22745
|
+
client_total_ms?: number | null;
|
|
22746
|
+
client_wait_ms?: number | null;
|
|
22295
22747
|
conversation_id?: string | null;
|
|
22296
22748
|
created_at?: string;
|
|
22297
22749
|
created_by?: string | null;
|
|
@@ -22302,10 +22754,17 @@ type Database = {
|
|
|
22302
22754
|
organization_id?: string;
|
|
22303
22755
|
prep_blocks?: Json;
|
|
22304
22756
|
prep_s?: number | null;
|
|
22757
|
+
provider_call_started_at?: string | null;
|
|
22758
|
+
provider_first_response_at?: string | null;
|
|
22759
|
+
provider_first_response_kind?: string | null;
|
|
22305
22760
|
provider_ttft_ms?: number | null;
|
|
22761
|
+
provider_wait_ms?: number | null;
|
|
22306
22762
|
request_id?: string;
|
|
22307
22763
|
route?: string;
|
|
22308
22764
|
server_arrived_at?: string;
|
|
22765
|
+
server_first_emit_at?: string | null;
|
|
22766
|
+
server_prep_ms?: number | null;
|
|
22767
|
+
server_relay_ms?: number | null;
|
|
22309
22768
|
server_task_id?: string | null;
|
|
22310
22769
|
stage?: string;
|
|
22311
22770
|
status?: string | null;
|
|
@@ -31143,6 +31602,15 @@ type Database = {
|
|
|
31143
31602
|
route: string;
|
|
31144
31603
|
}[];
|
|
31145
31604
|
};
|
|
31605
|
+
ai_latency_round_trip_ms: {
|
|
31606
|
+
Args: {
|
|
31607
|
+
p_client_wait_ms: number;
|
|
31608
|
+
p_provider_wait_ms: number;
|
|
31609
|
+
p_server_prep_ms: number;
|
|
31610
|
+
p_server_relay_ms: number;
|
|
31611
|
+
};
|
|
31612
|
+
Returns: number;
|
|
31613
|
+
};
|
|
31146
31614
|
ai_latency_route_pattern: {
|
|
31147
31615
|
Args: {
|
|
31148
31616
|
p_route: string;
|
|
@@ -32680,6 +33148,7 @@ type Database = {
|
|
|
32680
33148
|
run_count: number;
|
|
32681
33149
|
success_count: number;
|
|
32682
33150
|
total_cost: number;
|
|
33151
|
+
warning_count: number;
|
|
32683
33152
|
}[];
|
|
32684
33153
|
};
|
|
32685
33154
|
extensibility_knob: {
|
|
@@ -33310,6 +33779,13 @@ type Database = {
|
|
|
33310
33779
|
isSetofReturn: true;
|
|
33311
33780
|
};
|
|
33312
33781
|
};
|
|
33782
|
+
list_rpc_once: {
|
|
33783
|
+
Args: {
|
|
33784
|
+
p_args?: Json;
|
|
33785
|
+
p_fn: string;
|
|
33786
|
+
};
|
|
33787
|
+
Returns: Json;
|
|
33788
|
+
};
|
|
33313
33789
|
log_activity: {
|
|
33314
33790
|
Args: {
|
|
33315
33791
|
p_action: string;
|
|
@@ -34048,6 +34524,22 @@ type Database = {
|
|
|
34048
34524
|
};
|
|
34049
34525
|
Returns: number;
|
|
34050
34526
|
};
|
|
34527
|
+
record_store_kind: {
|
|
34528
|
+
Args: {
|
|
34529
|
+
p_token: string;
|
|
34530
|
+
};
|
|
34531
|
+
Returns: {
|
|
34532
|
+
refusal: string;
|
|
34533
|
+
schema_name: string;
|
|
34534
|
+
table_name: string;
|
|
34535
|
+
}[];
|
|
34536
|
+
};
|
|
34537
|
+
record_store_refusal: {
|
|
34538
|
+
Args: {
|
|
34539
|
+
p_token: string;
|
|
34540
|
+
};
|
|
34541
|
+
Returns: string;
|
|
34542
|
+
};
|
|
34051
34543
|
record_view: {
|
|
34052
34544
|
Args: {
|
|
34053
34545
|
p_entity_id: string;
|
|
@@ -48490,6 +48982,7 @@ type Database = {
|
|
|
48490
48982
|
updated_at: string;
|
|
48491
48983
|
version: number;
|
|
48492
48984
|
visibility: string;
|
|
48985
|
+
warning_count: number;
|
|
48493
48986
|
workflow_type: string;
|
|
48494
48987
|
}[];
|
|
48495
48988
|
};
|
|
@@ -48600,6 +49093,7 @@ type Database = {
|
|
|
48600
49093
|
cadence: string;
|
|
48601
49094
|
created_at: string;
|
|
48602
49095
|
enabled: boolean;
|
|
49096
|
+
guardrails: Json;
|
|
48603
49097
|
id: string;
|
|
48604
49098
|
instructions_path: string;
|
|
48605
49099
|
notes: string | null;
|
|
@@ -48614,6 +49108,7 @@ type Database = {
|
|
|
48614
49108
|
cadence: string;
|
|
48615
49109
|
created_at?: string;
|
|
48616
49110
|
enabled?: boolean;
|
|
49111
|
+
guardrails?: Json;
|
|
48617
49112
|
id?: string;
|
|
48618
49113
|
instructions_path: string;
|
|
48619
49114
|
notes?: string | null;
|
|
@@ -48628,6 +49123,7 @@ type Database = {
|
|
|
48628
49123
|
cadence?: string;
|
|
48629
49124
|
created_at?: string;
|
|
48630
49125
|
enabled?: boolean;
|
|
49126
|
+
guardrails?: Json;
|
|
48631
49127
|
id?: string;
|
|
48632
49128
|
instructions_path?: string;
|
|
48633
49129
|
notes?: string | null;
|
|
@@ -48643,33 +49139,45 @@ type Database = {
|
|
|
48643
49139
|
claimed_at: string;
|
|
48644
49140
|
claimed_by: string;
|
|
48645
49141
|
completed_at: string | null;
|
|
49142
|
+
cost_usd: number | null;
|
|
49143
|
+
guardrail: Json | null;
|
|
48646
49144
|
id: string;
|
|
48647
49145
|
machine: string | null;
|
|
49146
|
+
minutes: number | null;
|
|
48648
49147
|
result_note: string | null;
|
|
48649
49148
|
status: string;
|
|
48650
49149
|
task_key: string;
|
|
49150
|
+
turns: number | null;
|
|
48651
49151
|
window_key: string;
|
|
48652
49152
|
};
|
|
48653
49153
|
Insert: {
|
|
48654
49154
|
claimed_at?: string;
|
|
48655
49155
|
claimed_by: string;
|
|
48656
49156
|
completed_at?: string | null;
|
|
49157
|
+
cost_usd?: number | null;
|
|
49158
|
+
guardrail?: Json | null;
|
|
48657
49159
|
id?: string;
|
|
48658
49160
|
machine?: string | null;
|
|
49161
|
+
minutes?: number | null;
|
|
48659
49162
|
result_note?: string | null;
|
|
48660
49163
|
status?: string;
|
|
48661
49164
|
task_key: string;
|
|
49165
|
+
turns?: number | null;
|
|
48662
49166
|
window_key: string;
|
|
48663
49167
|
};
|
|
48664
49168
|
Update: {
|
|
48665
49169
|
claimed_at?: string;
|
|
48666
49170
|
claimed_by?: string;
|
|
48667
49171
|
completed_at?: string | null;
|
|
49172
|
+
cost_usd?: number | null;
|
|
49173
|
+
guardrail?: Json | null;
|
|
48668
49174
|
id?: string;
|
|
48669
49175
|
machine?: string | null;
|
|
49176
|
+
minutes?: number | null;
|
|
48670
49177
|
result_note?: string | null;
|
|
48671
49178
|
status?: string;
|
|
48672
49179
|
task_key?: string;
|
|
49180
|
+
turns?: number | null;
|
|
48673
49181
|
window_key?: string;
|
|
48674
49182
|
};
|
|
48675
49183
|
Relationships: [
|
|
@@ -48846,6 +49354,7 @@ type Database = {
|
|
|
48846
49354
|
description: string | null;
|
|
48847
49355
|
enabled: boolean;
|
|
48848
49356
|
expires_at: string | null;
|
|
49357
|
+
guardrails: Json;
|
|
48849
49358
|
id: string;
|
|
48850
49359
|
kind: string;
|
|
48851
49360
|
last_run_at: string | null;
|
|
@@ -48875,6 +49384,7 @@ type Database = {
|
|
|
48875
49384
|
description?: string | null;
|
|
48876
49385
|
enabled?: boolean;
|
|
48877
49386
|
expires_at?: string | null;
|
|
49387
|
+
guardrails?: Json;
|
|
48878
49388
|
id?: string;
|
|
48879
49389
|
kind: string;
|
|
48880
49390
|
last_run_at?: string | null;
|
|
@@ -48904,6 +49414,7 @@ type Database = {
|
|
|
48904
49414
|
description?: string | null;
|
|
48905
49415
|
enabled?: boolean;
|
|
48906
49416
|
expires_at?: string | null;
|
|
49417
|
+
guardrails?: Json;
|
|
48907
49418
|
id?: string;
|
|
48908
49419
|
kind?: string;
|
|
48909
49420
|
last_run_at?: string | null;
|
|
@@ -49022,6 +49533,12 @@ type Database = {
|
|
|
49022
49533
|
workflow_run_id: string;
|
|
49023
49534
|
}[];
|
|
49024
49535
|
};
|
|
49536
|
+
_is_guardrail_stop: {
|
|
49537
|
+
Args: {
|
|
49538
|
+
p_error: string;
|
|
49539
|
+
};
|
|
49540
|
+
Returns: boolean;
|
|
49541
|
+
};
|
|
49025
49542
|
_is_premium_model: {
|
|
49026
49543
|
Args: {
|
|
49027
49544
|
p_name: string;
|
|
@@ -49042,6 +49559,16 @@ type Database = {
|
|
|
49042
49559
|
};
|
|
49043
49560
|
Returns: Json;
|
|
49044
49561
|
};
|
|
49562
|
+
agent_schedule_record_completion: {
|
|
49563
|
+
Args: {
|
|
49564
|
+
p_claim_id: string;
|
|
49565
|
+
p_cost_usd: number;
|
|
49566
|
+
p_guardrail?: Json;
|
|
49567
|
+
p_minutes: number;
|
|
49568
|
+
p_turns: number;
|
|
49569
|
+
};
|
|
49570
|
+
Returns: undefined;
|
|
49571
|
+
};
|
|
49045
49572
|
automation_cost_rollup: {
|
|
49046
49573
|
Args: {
|
|
49047
49574
|
p_days?: number;
|
|
@@ -49104,6 +49631,59 @@ type Database = {
|
|
|
49104
49631
|
workflow_run_id: string;
|
|
49105
49632
|
}[];
|
|
49106
49633
|
};
|
|
49634
|
+
automation_guardrail_defaults: {
|
|
49635
|
+
Args: {
|
|
49636
|
+
p_organization_id?: string;
|
|
49637
|
+
p_user_id?: string;
|
|
49638
|
+
};
|
|
49639
|
+
Returns: Json;
|
|
49640
|
+
};
|
|
49641
|
+
automation_guardrail_keys: {
|
|
49642
|
+
Args: never;
|
|
49643
|
+
Returns: string[];
|
|
49644
|
+
};
|
|
49645
|
+
automation_guardrail_pause: {
|
|
49646
|
+
Args: {
|
|
49647
|
+
p_breach: string;
|
|
49648
|
+
p_detail?: Json;
|
|
49649
|
+
p_id: string;
|
|
49650
|
+
p_kind: string;
|
|
49651
|
+
p_reason: string;
|
|
49652
|
+
p_run_id?: string;
|
|
49653
|
+
};
|
|
49654
|
+
Returns: boolean;
|
|
49655
|
+
};
|
|
49656
|
+
automation_guardrail_resume: {
|
|
49657
|
+
Args: {
|
|
49658
|
+
p_id: string;
|
|
49659
|
+
p_kind: string;
|
|
49660
|
+
};
|
|
49661
|
+
Returns: boolean;
|
|
49662
|
+
};
|
|
49663
|
+
automation_guardrail_status: {
|
|
49664
|
+
Args: {
|
|
49665
|
+
p_id: string;
|
|
49666
|
+
p_kind: string;
|
|
49667
|
+
};
|
|
49668
|
+
Returns: Json;
|
|
49669
|
+
};
|
|
49670
|
+
automation_guardrails_filled: {
|
|
49671
|
+
Args: {
|
|
49672
|
+
p_guardrails: Json;
|
|
49673
|
+
p_organization_id: string;
|
|
49674
|
+
p_user_id: string;
|
|
49675
|
+
};
|
|
49676
|
+
Returns: Json;
|
|
49677
|
+
};
|
|
49678
|
+
automation_repeat_runs_24h: {
|
|
49679
|
+
Args: {
|
|
49680
|
+
p_id: string;
|
|
49681
|
+
p_inputs?: Json;
|
|
49682
|
+
p_kind: string;
|
|
49683
|
+
p_trigger_id?: string;
|
|
49684
|
+
};
|
|
49685
|
+
Returns: Json;
|
|
49686
|
+
};
|
|
49107
49687
|
realtime_topic_admits: {
|
|
49108
49688
|
Args: {
|
|
49109
49689
|
p_topic: string;
|