@periskope/types 0.6.465 → 0.6.466
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/dist/billing.types.d.ts +10 -0
- package/dist/billing.types.d.ts.map +1 -1
- package/dist/rules.types.d.ts +7 -3
- package/dist/rules.types.d.ts.map +1 -1
- package/dist/rules.types.js +16 -0
- package/dist/supabase.types.d.ts +208 -133
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +0 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/billing.types.ts +13 -0
- package/src/rules.types.ts +17 -0
- package/src/supabase.types.ts +222 -154
- package/src/types.ts +1 -0
- package/tsconfig.tsbuildinfo +0 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -832,6 +832,73 @@ export type Database = {
|
|
|
832
832
|
};
|
|
833
833
|
Relationships: [];
|
|
834
834
|
};
|
|
835
|
+
tbl_api_tokens: {
|
|
836
|
+
Row: {
|
|
837
|
+
exp: string;
|
|
838
|
+
iat: string;
|
|
839
|
+
id: string;
|
|
840
|
+
is_revealed: boolean;
|
|
841
|
+
name: string;
|
|
842
|
+
org_id: string;
|
|
843
|
+
refresh_token_hash: string | null;
|
|
844
|
+
role: string;
|
|
845
|
+
token: string;
|
|
846
|
+
token_hash: string;
|
|
847
|
+
token_metadata: Json;
|
|
848
|
+
type: string;
|
|
849
|
+
};
|
|
850
|
+
Insert: {
|
|
851
|
+
exp: string;
|
|
852
|
+
iat: string;
|
|
853
|
+
id: string;
|
|
854
|
+
is_revealed?: boolean;
|
|
855
|
+
name: string;
|
|
856
|
+
org_id: string;
|
|
857
|
+
refresh_token_hash?: string | null;
|
|
858
|
+
role: string;
|
|
859
|
+
token: string;
|
|
860
|
+
token_hash: string;
|
|
861
|
+
token_metadata?: Json;
|
|
862
|
+
type: string;
|
|
863
|
+
};
|
|
864
|
+
Update: {
|
|
865
|
+
exp?: string;
|
|
866
|
+
iat?: string;
|
|
867
|
+
id?: string;
|
|
868
|
+
is_revealed?: boolean;
|
|
869
|
+
name?: string;
|
|
870
|
+
org_id?: string;
|
|
871
|
+
refresh_token_hash?: string | null;
|
|
872
|
+
role?: string;
|
|
873
|
+
token?: string;
|
|
874
|
+
token_hash?: string;
|
|
875
|
+
token_metadata?: Json;
|
|
876
|
+
type?: string;
|
|
877
|
+
};
|
|
878
|
+
Relationships: [
|
|
879
|
+
{
|
|
880
|
+
foreignKeyName: "tbl_api_tokens_org_id_fkey";
|
|
881
|
+
columns: ["org_id"];
|
|
882
|
+
isOneToOne: false;
|
|
883
|
+
referencedRelation: "tbl_org";
|
|
884
|
+
referencedColumns: ["org_id"];
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
foreignKeyName: "tbl_api_tokens_org_id_fkey";
|
|
888
|
+
columns: ["org_id"];
|
|
889
|
+
isOneToOne: false;
|
|
890
|
+
referencedRelation: "view_org";
|
|
891
|
+
referencedColumns: ["org_id"];
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
foreignKeyName: "tbl_api_tokens_org_id_fkey";
|
|
895
|
+
columns: ["org_id"];
|
|
896
|
+
isOneToOne: false;
|
|
897
|
+
referencedRelation: "view_org_all";
|
|
898
|
+
referencedColumns: ["org_id"];
|
|
899
|
+
}
|
|
900
|
+
];
|
|
901
|
+
};
|
|
835
902
|
tbl_automation_rules: {
|
|
836
903
|
Row: {
|
|
837
904
|
actions: Json;
|
|
@@ -897,29 +964,29 @@ export type Database = {
|
|
|
897
964
|
Row: {
|
|
898
965
|
chat_ids: string[];
|
|
899
966
|
created_at: string;
|
|
900
|
-
updated_at: string | null;
|
|
901
967
|
created_by: string | null;
|
|
902
968
|
org_id: string;
|
|
903
969
|
template_id: string;
|
|
904
970
|
template_name: string;
|
|
971
|
+
updated_at: string | null;
|
|
905
972
|
};
|
|
906
973
|
Insert: {
|
|
907
974
|
chat_ids?: string[];
|
|
908
975
|
created_at?: string;
|
|
909
|
-
updated_at?: string | null;
|
|
910
976
|
created_by?: string | null;
|
|
911
977
|
org_id: string;
|
|
912
978
|
template_id?: string;
|
|
913
979
|
template_name: string;
|
|
980
|
+
updated_at?: string | null;
|
|
914
981
|
};
|
|
915
982
|
Update: {
|
|
916
983
|
chat_ids?: string[];
|
|
917
984
|
created_at?: string;
|
|
918
|
-
updated_at?: string | null;
|
|
919
985
|
created_by?: string | null;
|
|
920
986
|
org_id?: string;
|
|
921
987
|
template_id?: string;
|
|
922
988
|
template_name?: string;
|
|
989
|
+
updated_at?: string | null;
|
|
923
990
|
};
|
|
924
991
|
Relationships: [
|
|
925
992
|
{
|
|
@@ -958,9 +1025,9 @@ export type Database = {
|
|
|
958
1025
|
message_id: string | null;
|
|
959
1026
|
org_id: string;
|
|
960
1027
|
org_phone: string | null;
|
|
1028
|
+
poll_results: Json | null;
|
|
961
1029
|
read_count: number | null;
|
|
962
1030
|
remarks: string | null;
|
|
963
|
-
poll_results: Json | null;
|
|
964
1031
|
};
|
|
965
1032
|
Insert: {
|
|
966
1033
|
broadcast_id: string;
|
|
@@ -974,9 +1041,9 @@ export type Database = {
|
|
|
974
1041
|
message_id?: string | null;
|
|
975
1042
|
org_id: string;
|
|
976
1043
|
org_phone?: string | null;
|
|
1044
|
+
poll_results?: Json | null;
|
|
977
1045
|
read_count?: number | null;
|
|
978
1046
|
remarks?: string | null;
|
|
979
|
-
poll_results?: Json | null;
|
|
980
1047
|
};
|
|
981
1048
|
Update: {
|
|
982
1049
|
broadcast_id?: string;
|
|
@@ -990,9 +1057,9 @@ export type Database = {
|
|
|
990
1057
|
message_id?: string | null;
|
|
991
1058
|
org_id?: string;
|
|
992
1059
|
org_phone?: string | null;
|
|
1060
|
+
poll_results?: Json | null;
|
|
993
1061
|
read_count?: number | null;
|
|
994
1062
|
remarks?: string | null;
|
|
995
|
-
poll_results?: Json | null;
|
|
996
1063
|
};
|
|
997
1064
|
Relationships: [
|
|
998
1065
|
{
|
|
@@ -1163,6 +1230,42 @@ export type Database = {
|
|
|
1163
1230
|
}
|
|
1164
1231
|
];
|
|
1165
1232
|
};
|
|
1233
|
+
tbl_chat_audit_logs: {
|
|
1234
|
+
Row: {
|
|
1235
|
+
action: string | null;
|
|
1236
|
+
chat_id: string | null;
|
|
1237
|
+
log_id: string;
|
|
1238
|
+
new_record: Json | null;
|
|
1239
|
+
old_record: Json | null;
|
|
1240
|
+
org_id: string | null;
|
|
1241
|
+
performed_by: string | null;
|
|
1242
|
+
timestamp: string;
|
|
1243
|
+
type: string | null;
|
|
1244
|
+
};
|
|
1245
|
+
Insert: {
|
|
1246
|
+
action?: string | null;
|
|
1247
|
+
chat_id?: string | null;
|
|
1248
|
+
log_id?: string;
|
|
1249
|
+
new_record?: Json | null;
|
|
1250
|
+
old_record?: Json | null;
|
|
1251
|
+
org_id?: string | null;
|
|
1252
|
+
performed_by?: string | null;
|
|
1253
|
+
timestamp?: string;
|
|
1254
|
+
type?: string | null;
|
|
1255
|
+
};
|
|
1256
|
+
Update: {
|
|
1257
|
+
action?: string | null;
|
|
1258
|
+
chat_id?: string | null;
|
|
1259
|
+
log_id?: string;
|
|
1260
|
+
new_record?: Json | null;
|
|
1261
|
+
old_record?: Json | null;
|
|
1262
|
+
org_id?: string | null;
|
|
1263
|
+
performed_by?: string | null;
|
|
1264
|
+
timestamp?: string;
|
|
1265
|
+
type?: string | null;
|
|
1266
|
+
};
|
|
1267
|
+
Relationships: [];
|
|
1268
|
+
};
|
|
1166
1269
|
tbl_chat_logs: {
|
|
1167
1270
|
Row: {
|
|
1168
1271
|
action: string | null;
|
|
@@ -1803,6 +1906,7 @@ export type Database = {
|
|
|
1803
1906
|
is_read_only: boolean | null;
|
|
1804
1907
|
latest_mention_at: string | null;
|
|
1805
1908
|
latest_message: Json | null;
|
|
1909
|
+
latest_message_timestamp: string | null;
|
|
1806
1910
|
member_count: number | null;
|
|
1807
1911
|
member_unread_count: Json | null;
|
|
1808
1912
|
mute_expiration: number | null;
|
|
@@ -1834,6 +1938,7 @@ export type Database = {
|
|
|
1834
1938
|
is_read_only?: boolean | null;
|
|
1835
1939
|
latest_mention_at?: string | null;
|
|
1836
1940
|
latest_message?: Json | null;
|
|
1941
|
+
latest_message_timestamp?: string | null;
|
|
1837
1942
|
member_count?: number | null;
|
|
1838
1943
|
member_unread_count?: Json | null;
|
|
1839
1944
|
mute_expiration?: number | null;
|
|
@@ -1865,6 +1970,7 @@ export type Database = {
|
|
|
1865
1970
|
is_read_only?: boolean | null;
|
|
1866
1971
|
latest_mention_at?: string | null;
|
|
1867
1972
|
latest_message?: Json | null;
|
|
1973
|
+
latest_message_timestamp?: string | null;
|
|
1868
1974
|
member_count?: number | null;
|
|
1869
1975
|
member_unread_count?: Json | null;
|
|
1870
1976
|
mute_expiration?: number | null;
|
|
@@ -2241,59 +2347,6 @@ export type Database = {
|
|
|
2241
2347
|
}
|
|
2242
2348
|
];
|
|
2243
2349
|
};
|
|
2244
|
-
tbl_api_tokens: {
|
|
2245
|
-
Row: {
|
|
2246
|
-
exp: string;
|
|
2247
|
-
iat: string;
|
|
2248
|
-
id: string;
|
|
2249
|
-
is_revealed: boolean;
|
|
2250
|
-
name: string;
|
|
2251
|
-
org_id: string;
|
|
2252
|
-
refresh_token_hash: string | null;
|
|
2253
|
-
role: string;
|
|
2254
|
-
token: string;
|
|
2255
|
-
token_hash: string;
|
|
2256
|
-
token_metadata: Json;
|
|
2257
|
-
type: string;
|
|
2258
|
-
};
|
|
2259
|
-
Insert: {
|
|
2260
|
-
exp: string;
|
|
2261
|
-
iat: string;
|
|
2262
|
-
id: string;
|
|
2263
|
-
is_revealed?: boolean;
|
|
2264
|
-
name: string;
|
|
2265
|
-
org_id: string;
|
|
2266
|
-
refresh_token_hash?: string | null;
|
|
2267
|
-
role: string;
|
|
2268
|
-
token: string;
|
|
2269
|
-
token_hash: string;
|
|
2270
|
-
token_metadata?: Json;
|
|
2271
|
-
type: string;
|
|
2272
|
-
};
|
|
2273
|
-
Update: {
|
|
2274
|
-
exp?: string;
|
|
2275
|
-
iat?: string;
|
|
2276
|
-
id?: string;
|
|
2277
|
-
is_revealed?: boolean;
|
|
2278
|
-
name?: string;
|
|
2279
|
-
org_id?: string;
|
|
2280
|
-
refresh_token_hash?: string | null;
|
|
2281
|
-
role?: string;
|
|
2282
|
-
token?: string;
|
|
2283
|
-
token_hash?: string;
|
|
2284
|
-
token_metadata?: Json;
|
|
2285
|
-
type?: string;
|
|
2286
|
-
};
|
|
2287
|
-
Relationships: [
|
|
2288
|
-
{
|
|
2289
|
-
foreignKeyName: "tbl_api_tokens_org_id_fkey";
|
|
2290
|
-
columns: ["org_id"];
|
|
2291
|
-
isOneToOne: false;
|
|
2292
|
-
referencedRelation: "tbl_org";
|
|
2293
|
-
referencedColumns: ["org_id"];
|
|
2294
|
-
}
|
|
2295
|
-
];
|
|
2296
|
-
};
|
|
2297
2350
|
tbl_integration_tokens: {
|
|
2298
2351
|
Row: {
|
|
2299
2352
|
exp: string;
|
|
@@ -2373,51 +2426,6 @@ export type Database = {
|
|
|
2373
2426
|
};
|
|
2374
2427
|
Relationships: [];
|
|
2375
2428
|
};
|
|
2376
|
-
tbl_mcp_tokens: {
|
|
2377
|
-
Row: {
|
|
2378
|
-
access_token_expires_at: string;
|
|
2379
|
-
access_token_hash: string;
|
|
2380
|
-
client_id: string;
|
|
2381
|
-
client_name: string | null;
|
|
2382
|
-
created_at: string;
|
|
2383
|
-
id: string;
|
|
2384
|
-
integration_token_id: string;
|
|
2385
|
-
org_id: string;
|
|
2386
|
-
phone_scopes: string[] | null;
|
|
2387
|
-
refresh_token_expires_at: string;
|
|
2388
|
-
refresh_token_hash: string;
|
|
2389
|
-
revoked_at: string | null;
|
|
2390
|
-
};
|
|
2391
|
-
Insert: {
|
|
2392
|
-
access_token_expires_at: string;
|
|
2393
|
-
access_token_hash: string;
|
|
2394
|
-
client_id: string;
|
|
2395
|
-
client_name?: string | null;
|
|
2396
|
-
created_at?: string;
|
|
2397
|
-
id?: string;
|
|
2398
|
-
integration_token_id: string;
|
|
2399
|
-
org_id: string;
|
|
2400
|
-
phone_scopes?: string[] | null;
|
|
2401
|
-
refresh_token_expires_at: string;
|
|
2402
|
-
refresh_token_hash: string;
|
|
2403
|
-
revoked_at?: string | null;
|
|
2404
|
-
};
|
|
2405
|
-
Update: {
|
|
2406
|
-
access_token_expires_at?: string;
|
|
2407
|
-
access_token_hash?: string;
|
|
2408
|
-
client_id?: string;
|
|
2409
|
-
client_name?: string | null;
|
|
2410
|
-
created_at?: string;
|
|
2411
|
-
id?: string;
|
|
2412
|
-
integration_token_id?: string;
|
|
2413
|
-
org_id?: string;
|
|
2414
|
-
phone_scopes?: string[] | null;
|
|
2415
|
-
refresh_token_expires_at?: string;
|
|
2416
|
-
refresh_token_hash?: string;
|
|
2417
|
-
revoked_at?: string | null;
|
|
2418
|
-
};
|
|
2419
|
-
Relationships: [];
|
|
2420
|
-
};
|
|
2421
2429
|
tbl_org: {
|
|
2422
2430
|
Row: {
|
|
2423
2431
|
ai_settings: Json | null;
|
|
@@ -2620,6 +2628,8 @@ export type Database = {
|
|
|
2620
2628
|
library: string | null;
|
|
2621
2629
|
org_id: string;
|
|
2622
2630
|
org_phone: string | null;
|
|
2631
|
+
passkey_code: string | null;
|
|
2632
|
+
passkey_request: Json | null;
|
|
2623
2633
|
phone_id: string;
|
|
2624
2634
|
phone_image: string | null;
|
|
2625
2635
|
phone_name: string | null;
|
|
@@ -2645,6 +2655,8 @@ export type Database = {
|
|
|
2645
2655
|
library?: string | null;
|
|
2646
2656
|
org_id: string;
|
|
2647
2657
|
org_phone?: string | null;
|
|
2658
|
+
passkey_code?: string | null;
|
|
2659
|
+
passkey_request?: Json | null;
|
|
2648
2660
|
phone_id?: string;
|
|
2649
2661
|
phone_image?: string | null;
|
|
2650
2662
|
phone_name?: string | null;
|
|
@@ -2670,6 +2682,8 @@ export type Database = {
|
|
|
2670
2682
|
library?: string | null;
|
|
2671
2683
|
org_id?: string;
|
|
2672
2684
|
org_phone?: string | null;
|
|
2685
|
+
passkey_code?: string | null;
|
|
2686
|
+
passkey_request?: Json | null;
|
|
2673
2687
|
phone_id?: string;
|
|
2674
2688
|
phone_image?: string | null;
|
|
2675
2689
|
phone_name?: string | null;
|
|
@@ -2988,7 +3002,6 @@ export type Database = {
|
|
|
2988
3002
|
chat_ids: string[];
|
|
2989
3003
|
created_at: string;
|
|
2990
3004
|
delay: number | null;
|
|
2991
|
-
scheduled_id: string;
|
|
2992
3005
|
is_active: boolean;
|
|
2993
3006
|
message_payload: Json;
|
|
2994
3007
|
next_occurrence_at: string;
|
|
@@ -2997,6 +3010,7 @@ export type Database = {
|
|
|
2997
3010
|
org_phones: string[] | null;
|
|
2998
3011
|
performed_by: string | null;
|
|
2999
3012
|
repeat_config: Json;
|
|
3013
|
+
scheduled_id: string;
|
|
3000
3014
|
updated_at: string;
|
|
3001
3015
|
variables: Json | null;
|
|
3002
3016
|
};
|
|
@@ -3004,7 +3018,6 @@ export type Database = {
|
|
|
3004
3018
|
chat_ids: string[];
|
|
3005
3019
|
created_at?: string;
|
|
3006
3020
|
delay?: number | null;
|
|
3007
|
-
scheduled_id?: string;
|
|
3008
3021
|
is_active?: boolean;
|
|
3009
3022
|
message_payload: Json;
|
|
3010
3023
|
next_occurrence_at: string;
|
|
@@ -3013,6 +3026,7 @@ export type Database = {
|
|
|
3013
3026
|
org_phones?: string[] | null;
|
|
3014
3027
|
performed_by?: string | null;
|
|
3015
3028
|
repeat_config: Json;
|
|
3029
|
+
scheduled_id?: string;
|
|
3016
3030
|
updated_at?: string;
|
|
3017
3031
|
variables?: Json | null;
|
|
3018
3032
|
};
|
|
@@ -3020,7 +3034,6 @@ export type Database = {
|
|
|
3020
3034
|
chat_ids?: string[];
|
|
3021
3035
|
created_at?: string;
|
|
3022
3036
|
delay?: number | null;
|
|
3023
|
-
scheduled_id?: string;
|
|
3024
3037
|
is_active?: boolean;
|
|
3025
3038
|
message_payload?: Json;
|
|
3026
3039
|
next_occurrence_at?: string;
|
|
@@ -3029,6 +3042,7 @@ export type Database = {
|
|
|
3029
3042
|
org_phones?: string[] | null;
|
|
3030
3043
|
performed_by?: string | null;
|
|
3031
3044
|
repeat_config?: Json;
|
|
3045
|
+
scheduled_id?: string;
|
|
3032
3046
|
updated_at?: string;
|
|
3033
3047
|
variables?: Json | null;
|
|
3034
3048
|
};
|
|
@@ -3039,6 +3053,20 @@ export type Database = {
|
|
|
3039
3053
|
isOneToOne: false;
|
|
3040
3054
|
referencedRelation: "tbl_org";
|
|
3041
3055
|
referencedColumns: ["org_id"];
|
|
3056
|
+
},
|
|
3057
|
+
{
|
|
3058
|
+
foreignKeyName: "tbl_recurring_broadcasts_org_id_fkey";
|
|
3059
|
+
columns: ["org_id"];
|
|
3060
|
+
isOneToOne: false;
|
|
3061
|
+
referencedRelation: "view_org";
|
|
3062
|
+
referencedColumns: ["org_id"];
|
|
3063
|
+
},
|
|
3064
|
+
{
|
|
3065
|
+
foreignKeyName: "tbl_recurring_broadcasts_org_id_fkey";
|
|
3066
|
+
columns: ["org_id"];
|
|
3067
|
+
isOneToOne: false;
|
|
3068
|
+
referencedRelation: "view_org_all";
|
|
3069
|
+
referencedColumns: ["org_id"];
|
|
3042
3070
|
}
|
|
3043
3071
|
];
|
|
3044
3072
|
};
|
|
@@ -3394,6 +3422,39 @@ export type Database = {
|
|
|
3394
3422
|
}
|
|
3395
3423
|
];
|
|
3396
3424
|
};
|
|
3425
|
+
tbl_usage_records: {
|
|
3426
|
+
Row: {
|
|
3427
|
+
amount: number;
|
|
3428
|
+
created_at: string;
|
|
3429
|
+
id: string;
|
|
3430
|
+
metadata: Json | null;
|
|
3431
|
+
org_id: string;
|
|
3432
|
+
source: string;
|
|
3433
|
+
transaction_type: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
3434
|
+
unit_type: string;
|
|
3435
|
+
};
|
|
3436
|
+
Insert: {
|
|
3437
|
+
amount?: number;
|
|
3438
|
+
created_at?: string;
|
|
3439
|
+
id?: string;
|
|
3440
|
+
metadata?: Json | null;
|
|
3441
|
+
org_id: string;
|
|
3442
|
+
source: string;
|
|
3443
|
+
transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
3444
|
+
unit_type?: string;
|
|
3445
|
+
};
|
|
3446
|
+
Update: {
|
|
3447
|
+
amount?: number;
|
|
3448
|
+
created_at?: string;
|
|
3449
|
+
id?: string;
|
|
3450
|
+
metadata?: Json | null;
|
|
3451
|
+
org_id?: string;
|
|
3452
|
+
source?: string;
|
|
3453
|
+
transaction_type?: Database["public"]["Enums"]["enum_credit_transaction_type"];
|
|
3454
|
+
unit_type?: string;
|
|
3455
|
+
};
|
|
3456
|
+
Relationships: [];
|
|
3457
|
+
};
|
|
3397
3458
|
};
|
|
3398
3459
|
Views: {
|
|
3399
3460
|
view_broadcast_logs: {
|
|
@@ -3402,8 +3463,12 @@ export type Database = {
|
|
|
3402
3463
|
broadcast_status: Database["public"]["Enums"]["enum_broadcast_status"] | null;
|
|
3403
3464
|
created_at: string | null;
|
|
3404
3465
|
delivered_percentage: number | null;
|
|
3466
|
+
due_at: string | null;
|
|
3405
3467
|
failed_chats: number | null;
|
|
3468
|
+
is_active: boolean | null;
|
|
3406
3469
|
message_payload: Json | null;
|
|
3470
|
+
next_occurrence_at: string | null;
|
|
3471
|
+
occurrence_count: number | null;
|
|
3407
3472
|
org_id: string | null;
|
|
3408
3473
|
parent_broadcast_id: string | null;
|
|
3409
3474
|
pending_chats: number | null;
|
|
@@ -3411,18 +3476,14 @@ export type Database = {
|
|
|
3411
3476
|
performed_by: string | null;
|
|
3412
3477
|
previous_retries: Json | null;
|
|
3413
3478
|
read_percentage: number | null;
|
|
3479
|
+
repeat_config: Json | null;
|
|
3414
3480
|
retry_count: number | null;
|
|
3415
3481
|
scheduled_at: string | null;
|
|
3416
3482
|
sent_chats: number | null;
|
|
3417
|
-
is_active: boolean | null;
|
|
3418
|
-
next_occurrence_at: string | null;
|
|
3419
|
-
occurrence_count: number | null;
|
|
3420
|
-
repeat_config: Json | null;
|
|
3421
3483
|
total_chats: number | null;
|
|
3422
3484
|
total_delivered_count: number | null;
|
|
3423
3485
|
total_member_count: number | null;
|
|
3424
3486
|
total_read_count: number | null;
|
|
3425
|
-
due_at: string | null;
|
|
3426
3487
|
};
|
|
3427
3488
|
Relationships: [
|
|
3428
3489
|
{
|
|
@@ -3512,9 +3573,11 @@ export type Database = {
|
|
|
3512
3573
|
is_archived: boolean | null;
|
|
3513
3574
|
is_exited: boolean | null;
|
|
3514
3575
|
is_muted: boolean | null;
|
|
3576
|
+
join_approval_mode: boolean | null;
|
|
3515
3577
|
label_ids: Json | null;
|
|
3516
3578
|
latest_mention_at: string | null;
|
|
3517
3579
|
latest_message: Json | null;
|
|
3580
|
+
latest_message_timestamp: string | null;
|
|
3518
3581
|
member_closed_at: Json | null;
|
|
3519
3582
|
member_count: number | null;
|
|
3520
3583
|
member_unread_count: Json | null;
|
|
@@ -3798,12 +3861,6 @@ export type Database = {
|
|
|
3798
3861
|
};
|
|
3799
3862
|
Returns: Json[];
|
|
3800
3863
|
};
|
|
3801
|
-
get_mcp_connections: {
|
|
3802
|
-
Args: {
|
|
3803
|
-
org_id_input: string;
|
|
3804
|
-
};
|
|
3805
|
-
Returns: Json;
|
|
3806
|
-
};
|
|
3807
3864
|
get_chat_properties_by_chat_ids: {
|
|
3808
3865
|
Args: {
|
|
3809
3866
|
chat_id_input?: string[];
|
|
@@ -3871,12 +3928,23 @@ export type Database = {
|
|
|
3871
3928
|
get_counts: {
|
|
3872
3929
|
Args: {
|
|
3873
3930
|
org_id_input: string;
|
|
3874
|
-
sync_wa_unread_count?: boolean;
|
|
3875
3931
|
org_phone_input?: string[];
|
|
3932
|
+
sync_wa_unread_count?: boolean;
|
|
3876
3933
|
};
|
|
3877
3934
|
Returns: Json;
|
|
3878
3935
|
};
|
|
3879
3936
|
get_export_chats_data: {
|
|
3937
|
+
Args: {
|
|
3938
|
+
chat_id_input?: string[];
|
|
3939
|
+
chat_type_input?: string;
|
|
3940
|
+
end_date_input?: string;
|
|
3941
|
+
limit_input?: number;
|
|
3942
|
+
offset_input?: number;
|
|
3943
|
+
org_id_input: string;
|
|
3944
|
+
start_date_input?: string;
|
|
3945
|
+
};
|
|
3946
|
+
Returns: Json;
|
|
3947
|
+
} | {
|
|
3880
3948
|
Args: {
|
|
3881
3949
|
chat_id_input?: string[];
|
|
3882
3950
|
chat_type_input?: string;
|
|
@@ -3926,38 +3994,44 @@ export type Database = {
|
|
|
3926
3994
|
};
|
|
3927
3995
|
Returns: Json;
|
|
3928
3996
|
};
|
|
3929
|
-
|
|
3997
|
+
get_integration_data: {
|
|
3930
3998
|
Args: {
|
|
3931
|
-
|
|
3932
|
-
message_id_input: string;
|
|
3933
|
-
org_id_input: string;
|
|
3934
|
-
org_phone_input: string;
|
|
3935
|
-
sender_id_input: string;
|
|
3999
|
+
org_id_input?: string;
|
|
3936
4000
|
};
|
|
3937
4001
|
Returns: Json;
|
|
3938
4002
|
};
|
|
3939
|
-
|
|
4003
|
+
get_mcp_connections: {
|
|
3940
4004
|
Args: {
|
|
3941
|
-
org_id_input
|
|
4005
|
+
org_id_input: string;
|
|
3942
4006
|
};
|
|
3943
4007
|
Returns: Json;
|
|
3944
4008
|
};
|
|
3945
4009
|
get_media_library: {
|
|
3946
4010
|
Args: {
|
|
3947
|
-
org_id_input: string;
|
|
3948
|
-
type_input: string;
|
|
3949
|
-
search_query?: string;
|
|
3950
4011
|
limit_input?: number;
|
|
3951
4012
|
offset_input?: number;
|
|
4013
|
+
org_id_input: string;
|
|
4014
|
+
search_query?: string;
|
|
4015
|
+
type_input: string;
|
|
3952
4016
|
};
|
|
3953
4017
|
Returns: {
|
|
4018
|
+
created_at: string;
|
|
3954
4019
|
id: string;
|
|
4020
|
+
metadata: Json;
|
|
3955
4021
|
name: string;
|
|
3956
|
-
created_at: string;
|
|
3957
4022
|
updated_at: string;
|
|
3958
|
-
metadata: Json;
|
|
3959
4023
|
}[];
|
|
3960
4024
|
};
|
|
4025
|
+
get_message_rule_info: {
|
|
4026
|
+
Args: {
|
|
4027
|
+
chat_id_input: string;
|
|
4028
|
+
message_id_input: string;
|
|
4029
|
+
org_id_input: string;
|
|
4030
|
+
org_phone_input: string;
|
|
4031
|
+
sender_id_input: string;
|
|
4032
|
+
};
|
|
4033
|
+
Returns: Json;
|
|
4034
|
+
};
|
|
3961
4035
|
get_message_workflow_info: {
|
|
3962
4036
|
Args: {
|
|
3963
4037
|
chat_id_input: string;
|
|
@@ -4182,6 +4256,7 @@ export type Database = {
|
|
|
4182
4256
|
is_read_only: boolean | null;
|
|
4183
4257
|
latest_mention_at: string | null;
|
|
4184
4258
|
latest_message: Json | null;
|
|
4259
|
+
latest_message_timestamp: string | null;
|
|
4185
4260
|
member_count: number | null;
|
|
4186
4261
|
member_unread_count: Json | null;
|
|
4187
4262
|
mute_expiration: number | null;
|
|
@@ -4416,7 +4491,7 @@ export declare const Constants: {
|
|
|
4416
4491
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
4417
4492
|
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
4418
4493
|
readonly enum_integration_name: readonly ["org.created", "org.updated", "org.member.created", "org.member.updated", "org.subscription.trial_will_end", "chat.created", "chat.updated", "chat.notification.created", "message.created", "message.updated", "message.deleted", "message.ack.updated", "reaction.created", "reaction.updated", "ticket.created", "ticket.updated", "ticket.deleted", "org.integrations.updated", "message.flagged", "message.unflagged", "chat.label.updated", "reaction.added", "message.ticket.attached", "org.phone.created", "org.phone.connected", "org.phone.disconnected", "org.phone.qr", "org.phone.updated", "note.created", "chat.custom_properties.updated"];
|
|
4419
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"
|
|
4494
|
+
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"];
|
|
4420
4495
|
readonly enum_member_role: readonly ["admin", "member"];
|
|
4421
4496
|
};
|
|
4422
4497
|
};
|