@periskope/types 0.6.413 → 0.6.415
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/supabase.types.d.ts +402 -55
- package/dist/supabase.types.d.ts.map +1 -1
- package/dist/supabase.types.js +4 -2
- package/mod_json_type.ps1 +108 -108
- package/mod_json_type.sh +22 -22
- package/package.json +19 -19
- package/src/index.ts +4 -4
- package/src/object.types.ts +109 -109
- package/src/rules.types.ts +3026 -3026
- package/src/supabase.types.ts +392 -70
- package/src/types.ts +1786 -1786
- package/src/workflows.types.ts +1296 -1296
- package/tsconfig.json +37 -37
- package/update_package.ps1 +21 -21
- package/tsconfig.tsbuildinfo +0 -1
package/dist/supabase.types.d.ts
CHANGED
|
@@ -59,6 +59,7 @@ export type Database = {
|
|
|
59
59
|
old_plan: Json | null;
|
|
60
60
|
org_id: string;
|
|
61
61
|
trace_id: string;
|
|
62
|
+
type: string | null;
|
|
62
63
|
};
|
|
63
64
|
Insert: {
|
|
64
65
|
created_at?: string;
|
|
@@ -66,6 +67,7 @@ export type Database = {
|
|
|
66
67
|
old_plan?: Json | null;
|
|
67
68
|
org_id: string;
|
|
68
69
|
trace_id?: string;
|
|
70
|
+
type?: string | null;
|
|
69
71
|
};
|
|
70
72
|
Update: {
|
|
71
73
|
created_at?: string;
|
|
@@ -73,6 +75,7 @@ export type Database = {
|
|
|
73
75
|
old_plan?: Json | null;
|
|
74
76
|
org_id?: string;
|
|
75
77
|
trace_id?: string;
|
|
78
|
+
type?: string | null;
|
|
76
79
|
};
|
|
77
80
|
Relationships: [];
|
|
78
81
|
};
|
|
@@ -145,6 +148,33 @@ export type Database = {
|
|
|
145
148
|
};
|
|
146
149
|
Relationships: [];
|
|
147
150
|
};
|
|
151
|
+
tbl_notification_events: {
|
|
152
|
+
Row: {
|
|
153
|
+
created_at: string;
|
|
154
|
+
event: string;
|
|
155
|
+
id: number;
|
|
156
|
+
org_id: string;
|
|
157
|
+
payload: Json;
|
|
158
|
+
performed_at: string | null;
|
|
159
|
+
};
|
|
160
|
+
Insert: {
|
|
161
|
+
created_at?: string;
|
|
162
|
+
event: string;
|
|
163
|
+
id?: number;
|
|
164
|
+
org_id: string;
|
|
165
|
+
payload: Json;
|
|
166
|
+
performed_at?: string | null;
|
|
167
|
+
};
|
|
168
|
+
Update: {
|
|
169
|
+
created_at?: string;
|
|
170
|
+
event?: string;
|
|
171
|
+
id?: number;
|
|
172
|
+
org_id?: string;
|
|
173
|
+
payload?: Json;
|
|
174
|
+
performed_at?: string | null;
|
|
175
|
+
};
|
|
176
|
+
Relationships: [];
|
|
177
|
+
};
|
|
148
178
|
tbl_org_warmup: {
|
|
149
179
|
Row: {
|
|
150
180
|
created_at: string;
|
|
@@ -208,10 +238,38 @@ export type Database = {
|
|
|
208
238
|
};
|
|
209
239
|
Relationships: [];
|
|
210
240
|
};
|
|
241
|
+
tbl_trigger_events: {
|
|
242
|
+
Row: {
|
|
243
|
+
created_at: string;
|
|
244
|
+
event: string;
|
|
245
|
+
id: number;
|
|
246
|
+
org_id: string;
|
|
247
|
+
payload: Json;
|
|
248
|
+
performed_at: string | null;
|
|
249
|
+
};
|
|
250
|
+
Insert: {
|
|
251
|
+
created_at?: string;
|
|
252
|
+
event: string;
|
|
253
|
+
id?: number;
|
|
254
|
+
org_id: string;
|
|
255
|
+
payload: Json;
|
|
256
|
+
performed_at?: string | null;
|
|
257
|
+
};
|
|
258
|
+
Update: {
|
|
259
|
+
created_at?: string;
|
|
260
|
+
event?: string;
|
|
261
|
+
id?: number;
|
|
262
|
+
org_id?: string;
|
|
263
|
+
payload?: Json;
|
|
264
|
+
performed_at?: string | null;
|
|
265
|
+
};
|
|
266
|
+
Relationships: [];
|
|
267
|
+
};
|
|
211
268
|
tbl_trigger_logs: {
|
|
212
269
|
Row: {
|
|
213
270
|
created_at: string;
|
|
214
271
|
id: number;
|
|
272
|
+
performed_by: string | null;
|
|
215
273
|
request_body: Json;
|
|
216
274
|
request_id: string;
|
|
217
275
|
trace_id: string;
|
|
@@ -220,6 +278,7 @@ export type Database = {
|
|
|
220
278
|
Insert: {
|
|
221
279
|
created_at?: string;
|
|
222
280
|
id?: number;
|
|
281
|
+
performed_by?: string | null;
|
|
223
282
|
request_body: Json;
|
|
224
283
|
request_id: string;
|
|
225
284
|
trace_id?: string;
|
|
@@ -228,6 +287,7 @@ export type Database = {
|
|
|
228
287
|
Update: {
|
|
229
288
|
created_at?: string;
|
|
230
289
|
id?: number;
|
|
290
|
+
performed_by?: string | null;
|
|
231
291
|
request_body?: Json;
|
|
232
292
|
request_id?: string;
|
|
233
293
|
trace_id?: string;
|
|
@@ -290,30 +350,65 @@ export type Database = {
|
|
|
290
350
|
Views: {
|
|
291
351
|
view_billing_updates: {
|
|
292
352
|
Row: {
|
|
293
|
-
change_arr: number | null;
|
|
294
353
|
created_at: string | null;
|
|
295
354
|
new_arr: number | null;
|
|
296
355
|
new_discount: number | null;
|
|
297
|
-
|
|
356
|
+
new_phone_limit: number | null;
|
|
298
357
|
new_plan: Json | null;
|
|
299
358
|
new_plan_id: string | null;
|
|
300
359
|
new_plan_type: string | null;
|
|
301
|
-
|
|
302
|
-
new_users: number | null;
|
|
360
|
+
new_user_limit: number | null;
|
|
303
361
|
old_arr: number | null;
|
|
304
362
|
old_discount: number | null;
|
|
305
|
-
|
|
363
|
+
old_phone_limit: number | null;
|
|
306
364
|
old_plan: Json | null;
|
|
307
365
|
old_plan_id: string | null;
|
|
308
366
|
old_plan_type: string | null;
|
|
309
|
-
|
|
310
|
-
old_users: number | null;
|
|
311
|
-
org_alias: string | null;
|
|
367
|
+
old_user_limit: number | null;
|
|
312
368
|
org_id: string | null;
|
|
313
|
-
org_name: string | null;
|
|
314
369
|
trace_id: string | null;
|
|
315
370
|
type: string | null;
|
|
316
371
|
};
|
|
372
|
+
Insert: {
|
|
373
|
+
created_at?: string | null;
|
|
374
|
+
new_arr?: never;
|
|
375
|
+
new_discount?: never;
|
|
376
|
+
new_phone_limit?: never;
|
|
377
|
+
new_plan?: Json | null;
|
|
378
|
+
new_plan_id?: never;
|
|
379
|
+
new_plan_type?: never;
|
|
380
|
+
new_user_limit?: never;
|
|
381
|
+
old_arr?: never;
|
|
382
|
+
old_discount?: never;
|
|
383
|
+
old_phone_limit?: never;
|
|
384
|
+
old_plan?: Json | null;
|
|
385
|
+
old_plan_id?: never;
|
|
386
|
+
old_plan_type?: never;
|
|
387
|
+
old_user_limit?: never;
|
|
388
|
+
org_id?: string | null;
|
|
389
|
+
trace_id?: string | null;
|
|
390
|
+
type?: never;
|
|
391
|
+
};
|
|
392
|
+
Update: {
|
|
393
|
+
created_at?: string | null;
|
|
394
|
+
new_arr?: never;
|
|
395
|
+
new_discount?: never;
|
|
396
|
+
new_phone_limit?: never;
|
|
397
|
+
new_plan?: Json | null;
|
|
398
|
+
new_plan_id?: never;
|
|
399
|
+
new_plan_type?: never;
|
|
400
|
+
new_user_limit?: never;
|
|
401
|
+
old_arr?: never;
|
|
402
|
+
old_discount?: never;
|
|
403
|
+
old_phone_limit?: never;
|
|
404
|
+
old_plan?: Json | null;
|
|
405
|
+
old_plan_id?: never;
|
|
406
|
+
old_plan_type?: never;
|
|
407
|
+
old_user_limit?: never;
|
|
408
|
+
org_id?: string | null;
|
|
409
|
+
trace_id?: string | null;
|
|
410
|
+
type?: never;
|
|
411
|
+
};
|
|
317
412
|
Relationships: [];
|
|
318
413
|
};
|
|
319
414
|
};
|
|
@@ -771,7 +866,7 @@ export type Database = {
|
|
|
771
866
|
forwarding_score: number | null;
|
|
772
867
|
from: string | null;
|
|
773
868
|
from_me: boolean | null;
|
|
774
|
-
fts: unknown
|
|
869
|
+
fts: unknown;
|
|
775
870
|
has_media: boolean | null;
|
|
776
871
|
has_quoted_msg: boolean | null;
|
|
777
872
|
has_reaction: boolean | null;
|
|
@@ -825,7 +920,7 @@ export type Database = {
|
|
|
825
920
|
forwarding_score?: number | null;
|
|
826
921
|
from?: string | null;
|
|
827
922
|
from_me?: boolean | null;
|
|
828
|
-
fts?: unknown
|
|
923
|
+
fts?: unknown;
|
|
829
924
|
has_media?: boolean | null;
|
|
830
925
|
has_quoted_msg?: boolean | null;
|
|
831
926
|
has_reaction?: boolean | null;
|
|
@@ -879,7 +974,7 @@ export type Database = {
|
|
|
879
974
|
forwarding_score?: number | null;
|
|
880
975
|
from?: string | null;
|
|
881
976
|
from_me?: boolean | null;
|
|
882
|
-
fts?: unknown
|
|
977
|
+
fts?: unknown;
|
|
883
978
|
has_media?: boolean | null;
|
|
884
979
|
has_quoted_msg?: boolean | null;
|
|
885
980
|
has_reaction?: boolean | null;
|
|
@@ -1213,6 +1308,7 @@ export type Database = {
|
|
|
1213
1308
|
last_updated_at: string;
|
|
1214
1309
|
last_updated_by: string | null;
|
|
1215
1310
|
org_id: string;
|
|
1311
|
+
org_phone: string | null;
|
|
1216
1312
|
priority: number | null;
|
|
1217
1313
|
quoted_message_id: string | null;
|
|
1218
1314
|
raised_by: string | null;
|
|
@@ -1239,6 +1335,7 @@ export type Database = {
|
|
|
1239
1335
|
last_updated_at?: string;
|
|
1240
1336
|
last_updated_by?: string | null;
|
|
1241
1337
|
org_id: string;
|
|
1338
|
+
org_phone?: string | null;
|
|
1242
1339
|
priority?: number | null;
|
|
1243
1340
|
quoted_message_id?: string | null;
|
|
1244
1341
|
raised_by?: string | null;
|
|
@@ -1265,6 +1362,7 @@ export type Database = {
|
|
|
1265
1362
|
last_updated_at?: string;
|
|
1266
1363
|
last_updated_by?: string | null;
|
|
1267
1364
|
org_id?: string;
|
|
1365
|
+
org_phone?: string | null;
|
|
1268
1366
|
priority?: number | null;
|
|
1269
1367
|
quoted_message_id?: string | null;
|
|
1270
1368
|
raised_by?: string | null;
|
|
@@ -1877,7 +1975,7 @@ export type Database = {
|
|
|
1877
1975
|
is_online: boolean | null;
|
|
1878
1976
|
is_owner: boolean | null;
|
|
1879
1977
|
label_ids: string[] | null;
|
|
1880
|
-
member_color:
|
|
1978
|
+
member_color: string;
|
|
1881
1979
|
member_image: string | null;
|
|
1882
1980
|
member_metadata: Json | null;
|
|
1883
1981
|
member_name: string | null;
|
|
@@ -1896,7 +1994,7 @@ export type Database = {
|
|
|
1896
1994
|
is_online?: boolean | null;
|
|
1897
1995
|
is_owner?: boolean | null;
|
|
1898
1996
|
label_ids?: string[] | null;
|
|
1899
|
-
member_color?:
|
|
1997
|
+
member_color?: string;
|
|
1900
1998
|
member_image?: string | null;
|
|
1901
1999
|
member_metadata?: Json | null;
|
|
1902
2000
|
member_name?: string | null;
|
|
@@ -1915,7 +2013,7 @@ export type Database = {
|
|
|
1915
2013
|
is_online?: boolean | null;
|
|
1916
2014
|
is_owner?: boolean | null;
|
|
1917
2015
|
label_ids?: string[] | null;
|
|
1918
|
-
member_color?:
|
|
2016
|
+
member_color?: string;
|
|
1919
2017
|
member_image?: string | null;
|
|
1920
2018
|
member_metadata?: Json | null;
|
|
1921
2019
|
member_name?: string | null;
|
|
@@ -3360,6 +3458,7 @@ export type Database = {
|
|
|
3360
3458
|
owner: string | null;
|
|
3361
3459
|
owner_id: string | null;
|
|
3362
3460
|
public: boolean | null;
|
|
3461
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3363
3462
|
updated_at: string | null;
|
|
3364
3463
|
};
|
|
3365
3464
|
Insert: {
|
|
@@ -3372,6 +3471,7 @@ export type Database = {
|
|
|
3372
3471
|
owner?: string | null;
|
|
3373
3472
|
owner_id?: string | null;
|
|
3374
3473
|
public?: boolean | null;
|
|
3474
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3375
3475
|
updated_at?: string | null;
|
|
3376
3476
|
};
|
|
3377
3477
|
Update: {
|
|
@@ -3384,10 +3484,112 @@ export type Database = {
|
|
|
3384
3484
|
owner?: string | null;
|
|
3385
3485
|
owner_id?: string | null;
|
|
3386
3486
|
public?: boolean | null;
|
|
3487
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3387
3488
|
updated_at?: string | null;
|
|
3388
3489
|
};
|
|
3389
3490
|
Relationships: [];
|
|
3390
3491
|
};
|
|
3492
|
+
buckets_analytics: {
|
|
3493
|
+
Row: {
|
|
3494
|
+
created_at: string;
|
|
3495
|
+
format: string;
|
|
3496
|
+
id: string;
|
|
3497
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3498
|
+
updated_at: string;
|
|
3499
|
+
};
|
|
3500
|
+
Insert: {
|
|
3501
|
+
created_at?: string;
|
|
3502
|
+
format?: string;
|
|
3503
|
+
id: string;
|
|
3504
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3505
|
+
updated_at?: string;
|
|
3506
|
+
};
|
|
3507
|
+
Update: {
|
|
3508
|
+
created_at?: string;
|
|
3509
|
+
format?: string;
|
|
3510
|
+
id?: string;
|
|
3511
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3512
|
+
updated_at?: string;
|
|
3513
|
+
};
|
|
3514
|
+
Relationships: [];
|
|
3515
|
+
};
|
|
3516
|
+
iceberg_namespaces: {
|
|
3517
|
+
Row: {
|
|
3518
|
+
bucket_id: string;
|
|
3519
|
+
created_at: string;
|
|
3520
|
+
id: string;
|
|
3521
|
+
name: string;
|
|
3522
|
+
updated_at: string;
|
|
3523
|
+
};
|
|
3524
|
+
Insert: {
|
|
3525
|
+
bucket_id: string;
|
|
3526
|
+
created_at?: string;
|
|
3527
|
+
id?: string;
|
|
3528
|
+
name: string;
|
|
3529
|
+
updated_at?: string;
|
|
3530
|
+
};
|
|
3531
|
+
Update: {
|
|
3532
|
+
bucket_id?: string;
|
|
3533
|
+
created_at?: string;
|
|
3534
|
+
id?: string;
|
|
3535
|
+
name?: string;
|
|
3536
|
+
updated_at?: string;
|
|
3537
|
+
};
|
|
3538
|
+
Relationships: [
|
|
3539
|
+
{
|
|
3540
|
+
foreignKeyName: "iceberg_namespaces_bucket_id_fkey";
|
|
3541
|
+
columns: ["bucket_id"];
|
|
3542
|
+
isOneToOne: false;
|
|
3543
|
+
referencedRelation: "buckets_analytics";
|
|
3544
|
+
referencedColumns: ["id"];
|
|
3545
|
+
}
|
|
3546
|
+
];
|
|
3547
|
+
};
|
|
3548
|
+
iceberg_tables: {
|
|
3549
|
+
Row: {
|
|
3550
|
+
bucket_id: string;
|
|
3551
|
+
created_at: string;
|
|
3552
|
+
id: string;
|
|
3553
|
+
location: string;
|
|
3554
|
+
name: string;
|
|
3555
|
+
namespace_id: string;
|
|
3556
|
+
updated_at: string;
|
|
3557
|
+
};
|
|
3558
|
+
Insert: {
|
|
3559
|
+
bucket_id: string;
|
|
3560
|
+
created_at?: string;
|
|
3561
|
+
id?: string;
|
|
3562
|
+
location: string;
|
|
3563
|
+
name: string;
|
|
3564
|
+
namespace_id: string;
|
|
3565
|
+
updated_at?: string;
|
|
3566
|
+
};
|
|
3567
|
+
Update: {
|
|
3568
|
+
bucket_id?: string;
|
|
3569
|
+
created_at?: string;
|
|
3570
|
+
id?: string;
|
|
3571
|
+
location?: string;
|
|
3572
|
+
name?: string;
|
|
3573
|
+
namespace_id?: string;
|
|
3574
|
+
updated_at?: string;
|
|
3575
|
+
};
|
|
3576
|
+
Relationships: [
|
|
3577
|
+
{
|
|
3578
|
+
foreignKeyName: "iceberg_tables_bucket_id_fkey";
|
|
3579
|
+
columns: ["bucket_id"];
|
|
3580
|
+
isOneToOne: false;
|
|
3581
|
+
referencedRelation: "buckets_analytics";
|
|
3582
|
+
referencedColumns: ["id"];
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey";
|
|
3586
|
+
columns: ["namespace_id"];
|
|
3587
|
+
isOneToOne: false;
|
|
3588
|
+
referencedRelation: "iceberg_namespaces";
|
|
3589
|
+
referencedColumns: ["id"];
|
|
3590
|
+
}
|
|
3591
|
+
];
|
|
3592
|
+
};
|
|
3391
3593
|
migrations: {
|
|
3392
3594
|
Row: {
|
|
3393
3595
|
executed_at: string | null;
|
|
@@ -3415,6 +3617,7 @@ export type Database = {
|
|
|
3415
3617
|
created_at: string | null;
|
|
3416
3618
|
id: string;
|
|
3417
3619
|
last_accessed_at: string | null;
|
|
3620
|
+
level: number | null;
|
|
3418
3621
|
metadata: Json | null;
|
|
3419
3622
|
name: string | null;
|
|
3420
3623
|
owner: string | null;
|
|
@@ -3429,6 +3632,7 @@ export type Database = {
|
|
|
3429
3632
|
created_at?: string | null;
|
|
3430
3633
|
id?: string;
|
|
3431
3634
|
last_accessed_at?: string | null;
|
|
3635
|
+
level?: number | null;
|
|
3432
3636
|
metadata?: Json | null;
|
|
3433
3637
|
name?: string | null;
|
|
3434
3638
|
owner?: string | null;
|
|
@@ -3443,6 +3647,7 @@ export type Database = {
|
|
|
3443
3647
|
created_at?: string | null;
|
|
3444
3648
|
id?: string;
|
|
3445
3649
|
last_accessed_at?: string | null;
|
|
3650
|
+
level?: number | null;
|
|
3446
3651
|
metadata?: Json | null;
|
|
3447
3652
|
name?: string | null;
|
|
3448
3653
|
owner?: string | null;
|
|
@@ -3462,6 +3667,38 @@ export type Database = {
|
|
|
3462
3667
|
}
|
|
3463
3668
|
];
|
|
3464
3669
|
};
|
|
3670
|
+
prefixes: {
|
|
3671
|
+
Row: {
|
|
3672
|
+
bucket_id: string;
|
|
3673
|
+
created_at: string | null;
|
|
3674
|
+
level: number;
|
|
3675
|
+
name: string;
|
|
3676
|
+
updated_at: string | null;
|
|
3677
|
+
};
|
|
3678
|
+
Insert: {
|
|
3679
|
+
bucket_id: string;
|
|
3680
|
+
created_at?: string | null;
|
|
3681
|
+
level?: number;
|
|
3682
|
+
name: string;
|
|
3683
|
+
updated_at?: string | null;
|
|
3684
|
+
};
|
|
3685
|
+
Update: {
|
|
3686
|
+
bucket_id?: string;
|
|
3687
|
+
created_at?: string | null;
|
|
3688
|
+
level?: number;
|
|
3689
|
+
name?: string;
|
|
3690
|
+
updated_at?: string | null;
|
|
3691
|
+
};
|
|
3692
|
+
Relationships: [
|
|
3693
|
+
{
|
|
3694
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3695
|
+
columns: ["bucket_id"];
|
|
3696
|
+
isOneToOne: false;
|
|
3697
|
+
referencedRelation: "buckets";
|
|
3698
|
+
referencedColumns: ["id"];
|
|
3699
|
+
}
|
|
3700
|
+
];
|
|
3701
|
+
};
|
|
3465
3702
|
s3_multipart_uploads: {
|
|
3466
3703
|
Row: {
|
|
3467
3704
|
bucket_id: string;
|
|
@@ -3565,15 +3802,36 @@ export type Database = {
|
|
|
3565
3802
|
[_ in never]: never;
|
|
3566
3803
|
};
|
|
3567
3804
|
Functions: {
|
|
3805
|
+
add_prefixes: {
|
|
3806
|
+
Args: {
|
|
3807
|
+
_bucket_id: string;
|
|
3808
|
+
_name: string;
|
|
3809
|
+
};
|
|
3810
|
+
Returns: undefined;
|
|
3811
|
+
};
|
|
3568
3812
|
can_insert_object: {
|
|
3569
3813
|
Args: {
|
|
3570
3814
|
bucketid: string;
|
|
3815
|
+
metadata: Json;
|
|
3571
3816
|
name: string;
|
|
3572
3817
|
owner: string;
|
|
3573
|
-
metadata: Json;
|
|
3574
3818
|
};
|
|
3575
3819
|
Returns: undefined;
|
|
3576
3820
|
};
|
|
3821
|
+
delete_leaf_prefixes: {
|
|
3822
|
+
Args: {
|
|
3823
|
+
bucket_ids: string[];
|
|
3824
|
+
names: string[];
|
|
3825
|
+
};
|
|
3826
|
+
Returns: undefined;
|
|
3827
|
+
};
|
|
3828
|
+
delete_prefix: {
|
|
3829
|
+
Args: {
|
|
3830
|
+
_bucket_id: string;
|
|
3831
|
+
_name: string;
|
|
3832
|
+
};
|
|
3833
|
+
Returns: boolean;
|
|
3834
|
+
};
|
|
3577
3835
|
extension: {
|
|
3578
3836
|
Args: {
|
|
3579
3837
|
name: string;
|
|
@@ -3592,125 +3850,212 @@ export type Database = {
|
|
|
3592
3850
|
};
|
|
3593
3851
|
Returns: string[];
|
|
3594
3852
|
};
|
|
3853
|
+
get_level: {
|
|
3854
|
+
Args: {
|
|
3855
|
+
name: string;
|
|
3856
|
+
};
|
|
3857
|
+
Returns: number;
|
|
3858
|
+
};
|
|
3859
|
+
get_prefix: {
|
|
3860
|
+
Args: {
|
|
3861
|
+
name: string;
|
|
3862
|
+
};
|
|
3863
|
+
Returns: string;
|
|
3864
|
+
};
|
|
3865
|
+
get_prefixes: {
|
|
3866
|
+
Args: {
|
|
3867
|
+
name: string;
|
|
3868
|
+
};
|
|
3869
|
+
Returns: string[];
|
|
3870
|
+
};
|
|
3595
3871
|
get_size_by_bucket: {
|
|
3596
|
-
Args:
|
|
3872
|
+
Args: never;
|
|
3597
3873
|
Returns: {
|
|
3598
|
-
size: number;
|
|
3599
3874
|
bucket_id: string;
|
|
3875
|
+
size: number;
|
|
3600
3876
|
}[];
|
|
3601
3877
|
};
|
|
3602
3878
|
list_multipart_uploads_with_delimiter: {
|
|
3603
3879
|
Args: {
|
|
3604
3880
|
bucket_id: string;
|
|
3605
|
-
prefix_param: string;
|
|
3606
3881
|
delimiter_param: string;
|
|
3607
3882
|
max_keys?: number;
|
|
3608
3883
|
next_key_token?: string;
|
|
3609
3884
|
next_upload_token?: string;
|
|
3885
|
+
prefix_param: string;
|
|
3610
3886
|
};
|
|
3611
3887
|
Returns: {
|
|
3612
|
-
key: string;
|
|
3613
|
-
id: string;
|
|
3614
3888
|
created_at: string;
|
|
3889
|
+
id: string;
|
|
3890
|
+
key: string;
|
|
3615
3891
|
}[];
|
|
3616
3892
|
};
|
|
3617
3893
|
list_objects_with_delimiter: {
|
|
3618
3894
|
Args: {
|
|
3619
3895
|
bucket_id: string;
|
|
3620
|
-
prefix_param: string;
|
|
3621
3896
|
delimiter_param: string;
|
|
3622
3897
|
max_keys?: number;
|
|
3623
|
-
start_after?: string;
|
|
3624
3898
|
next_token?: string;
|
|
3899
|
+
prefix_param: string;
|
|
3900
|
+
start_after?: string;
|
|
3625
3901
|
};
|
|
3626
3902
|
Returns: {
|
|
3627
|
-
name: string;
|
|
3628
3903
|
id: string;
|
|
3629
3904
|
metadata: Json;
|
|
3905
|
+
name: string;
|
|
3630
3906
|
updated_at: string;
|
|
3631
3907
|
}[];
|
|
3632
3908
|
};
|
|
3909
|
+
lock_top_prefixes: {
|
|
3910
|
+
Args: {
|
|
3911
|
+
bucket_ids: string[];
|
|
3912
|
+
names: string[];
|
|
3913
|
+
};
|
|
3914
|
+
Returns: undefined;
|
|
3915
|
+
};
|
|
3633
3916
|
operation: {
|
|
3634
|
-
Args:
|
|
3917
|
+
Args: never;
|
|
3635
3918
|
Returns: string;
|
|
3636
3919
|
};
|
|
3637
3920
|
search: {
|
|
3638
3921
|
Args: {
|
|
3639
|
-
prefix: string;
|
|
3640
3922
|
bucketname: string;
|
|
3923
|
+
levels?: number;
|
|
3641
3924
|
limits?: number;
|
|
3925
|
+
offsets?: number;
|
|
3926
|
+
prefix: string;
|
|
3927
|
+
search?: string;
|
|
3928
|
+
sortcolumn?: string;
|
|
3929
|
+
sortorder?: string;
|
|
3930
|
+
};
|
|
3931
|
+
Returns: {
|
|
3932
|
+
created_at: string;
|
|
3933
|
+
id: string;
|
|
3934
|
+
last_accessed_at: string;
|
|
3935
|
+
metadata: Json;
|
|
3936
|
+
name: string;
|
|
3937
|
+
updated_at: string;
|
|
3938
|
+
}[];
|
|
3939
|
+
};
|
|
3940
|
+
search_legacy_v1: {
|
|
3941
|
+
Args: {
|
|
3942
|
+
bucketname: string;
|
|
3642
3943
|
levels?: number;
|
|
3944
|
+
limits?: number;
|
|
3643
3945
|
offsets?: number;
|
|
3946
|
+
prefix: string;
|
|
3644
3947
|
search?: string;
|
|
3645
3948
|
sortcolumn?: string;
|
|
3646
3949
|
sortorder?: string;
|
|
3647
3950
|
};
|
|
3648
3951
|
Returns: {
|
|
3952
|
+
created_at: string;
|
|
3953
|
+
id: string;
|
|
3954
|
+
last_accessed_at: string;
|
|
3955
|
+
metadata: Json;
|
|
3649
3956
|
name: string;
|
|
3957
|
+
updated_at: string;
|
|
3958
|
+
}[];
|
|
3959
|
+
};
|
|
3960
|
+
search_v1_optimised: {
|
|
3961
|
+
Args: {
|
|
3962
|
+
bucketname: string;
|
|
3963
|
+
levels?: number;
|
|
3964
|
+
limits?: number;
|
|
3965
|
+
offsets?: number;
|
|
3966
|
+
prefix: string;
|
|
3967
|
+
search?: string;
|
|
3968
|
+
sortcolumn?: string;
|
|
3969
|
+
sortorder?: string;
|
|
3970
|
+
};
|
|
3971
|
+
Returns: {
|
|
3972
|
+
created_at: string;
|
|
3650
3973
|
id: string;
|
|
3974
|
+
last_accessed_at: string;
|
|
3975
|
+
metadata: Json;
|
|
3976
|
+
name: string;
|
|
3651
3977
|
updated_at: string;
|
|
3978
|
+
}[];
|
|
3979
|
+
};
|
|
3980
|
+
search_v2: {
|
|
3981
|
+
Args: {
|
|
3982
|
+
bucket_name: string;
|
|
3983
|
+
levels?: number;
|
|
3984
|
+
limits?: number;
|
|
3985
|
+
prefix: string;
|
|
3986
|
+
sort_column?: string;
|
|
3987
|
+
sort_column_after?: string;
|
|
3988
|
+
sort_order?: string;
|
|
3989
|
+
start_after?: string;
|
|
3990
|
+
};
|
|
3991
|
+
Returns: {
|
|
3652
3992
|
created_at: string;
|
|
3993
|
+
id: string;
|
|
3994
|
+
key: string;
|
|
3653
3995
|
last_accessed_at: string;
|
|
3654
3996
|
metadata: Json;
|
|
3997
|
+
name: string;
|
|
3998
|
+
updated_at: string;
|
|
3655
3999
|
}[];
|
|
3656
4000
|
};
|
|
3657
4001
|
};
|
|
3658
4002
|
Enums: {
|
|
3659
|
-
|
|
4003
|
+
buckettype: "STANDARD" | "ANALYTICS";
|
|
3660
4004
|
};
|
|
3661
4005
|
CompositeTypes: {
|
|
3662
4006
|
[_ in never]: never;
|
|
3663
4007
|
};
|
|
3664
4008
|
};
|
|
3665
4009
|
};
|
|
3666
|
-
type
|
|
4010
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
4011
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3667
4012
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3668
|
-
schema: keyof
|
|
4013
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3669
4014
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3670
|
-
schema: keyof
|
|
3671
|
-
} ? keyof (
|
|
3672
|
-
schema: keyof
|
|
3673
|
-
} ? (
|
|
4015
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4016
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
4017
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4018
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3674
4019
|
Row: infer R;
|
|
3675
4020
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3676
4021
|
Row: infer R;
|
|
3677
4022
|
} ? R : never : never;
|
|
3678
4023
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3679
|
-
schema: keyof
|
|
4024
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3680
4025
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3681
|
-
schema: keyof
|
|
3682
|
-
} ? keyof
|
|
3683
|
-
schema: keyof
|
|
3684
|
-
} ?
|
|
4026
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4027
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
4028
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4029
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3685
4030
|
Insert: infer I;
|
|
3686
4031
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3687
4032
|
Insert: infer I;
|
|
3688
4033
|
} ? I : never : never;
|
|
3689
4034
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3690
|
-
schema: keyof
|
|
4035
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3691
4036
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3692
|
-
schema: keyof
|
|
3693
|
-
} ? keyof
|
|
3694
|
-
schema: keyof
|
|
3695
|
-
} ?
|
|
4037
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4038
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
4039
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4040
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3696
4041
|
Update: infer U;
|
|
3697
4042
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3698
4043
|
Update: infer U;
|
|
3699
4044
|
} ? U : never : never;
|
|
3700
4045
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3701
|
-
schema: keyof
|
|
4046
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3702
4047
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3703
|
-
schema: keyof
|
|
3704
|
-
} ? keyof
|
|
3705
|
-
schema: keyof
|
|
3706
|
-
} ?
|
|
4048
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4049
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
4050
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4051
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3707
4052
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3708
|
-
schema: keyof
|
|
4053
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3709
4054
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3710
|
-
schema: keyof
|
|
3711
|
-
} ? keyof
|
|
3712
|
-
schema: keyof
|
|
3713
|
-
} ?
|
|
4055
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4056
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
4057
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4058
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3714
4059
|
export declare const Constants: {
|
|
3715
4060
|
readonly internal: {
|
|
3716
4061
|
readonly Enums: {};
|
|
@@ -3723,12 +4068,14 @@ export declare const Constants: {
|
|
|
3723
4068
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3724
4069
|
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3725
4070
|
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"];
|
|
3726
|
-
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "
|
|
4071
|
+
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"];
|
|
3727
4072
|
readonly enum_member_role: readonly ["admin", "member"];
|
|
3728
4073
|
};
|
|
3729
4074
|
};
|
|
3730
4075
|
readonly storage: {
|
|
3731
|
-
readonly Enums: {
|
|
4076
|
+
readonly Enums: {
|
|
4077
|
+
readonly buckettype: readonly ["STANDARD", "ANALYTICS"];
|
|
4078
|
+
};
|
|
3732
4079
|
};
|
|
3733
4080
|
};
|
|
3734
4081
|
export {};
|