@periskope/types 0.6.413 → 0.6.414
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 -103
- 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 -118
- 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
|
};
|
|
@@ -338,7 +433,6 @@ export type Database = {
|
|
|
338
433
|
created_at: string | null;
|
|
339
434
|
document_id: string | null;
|
|
340
435
|
embedding: string;
|
|
341
|
-
is_active: boolean | null;
|
|
342
436
|
metadata: Json | null;
|
|
343
437
|
org_id: string;
|
|
344
438
|
question: string;
|
|
@@ -354,7 +448,6 @@ export type Database = {
|
|
|
354
448
|
created_at?: string | null;
|
|
355
449
|
document_id?: string | null;
|
|
356
450
|
embedding: string;
|
|
357
|
-
is_active?: boolean | null;
|
|
358
451
|
metadata?: Json | null;
|
|
359
452
|
org_id: string;
|
|
360
453
|
question: string;
|
|
@@ -370,7 +463,6 @@ export type Database = {
|
|
|
370
463
|
created_at?: string | null;
|
|
371
464
|
document_id?: string | null;
|
|
372
465
|
embedding?: string;
|
|
373
|
-
is_active?: boolean | null;
|
|
374
466
|
metadata?: Json | null;
|
|
375
467
|
org_id?: string;
|
|
376
468
|
question?: string;
|
|
@@ -380,51 +472,6 @@ export type Database = {
|
|
|
380
472
|
};
|
|
381
473
|
Relationships: [];
|
|
382
474
|
};
|
|
383
|
-
tbl_ai_sessions: {
|
|
384
|
-
Row: {
|
|
385
|
-
chat_id: string;
|
|
386
|
-
conversation_messages: Json | null;
|
|
387
|
-
created_at: string;
|
|
388
|
-
metadata: Json | null;
|
|
389
|
-
org_id: string;
|
|
390
|
-
org_phone: string;
|
|
391
|
-
relevant_context: Json | null;
|
|
392
|
-
session_id: string;
|
|
393
|
-
status: string;
|
|
394
|
-
tool_calls: Json | null;
|
|
395
|
-
updated_at: string;
|
|
396
|
-
usage_details: Json | null;
|
|
397
|
-
};
|
|
398
|
-
Insert: {
|
|
399
|
-
chat_id: string;
|
|
400
|
-
conversation_messages?: Json | null;
|
|
401
|
-
created_at?: string;
|
|
402
|
-
metadata?: Json | null;
|
|
403
|
-
org_id: string;
|
|
404
|
-
org_phone: string;
|
|
405
|
-
relevant_context?: Json | null;
|
|
406
|
-
session_id: string;
|
|
407
|
-
status?: string;
|
|
408
|
-
tool_calls?: Json | null;
|
|
409
|
-
updated_at?: string;
|
|
410
|
-
usage_details?: Json | null;
|
|
411
|
-
};
|
|
412
|
-
Update: {
|
|
413
|
-
chat_id?: string;
|
|
414
|
-
conversation_messages?: Json | null;
|
|
415
|
-
created_at?: string;
|
|
416
|
-
metadata?: Json | null;
|
|
417
|
-
org_id?: string;
|
|
418
|
-
org_phone?: string;
|
|
419
|
-
relevant_context?: Json | null;
|
|
420
|
-
session_id?: string;
|
|
421
|
-
status?: string;
|
|
422
|
-
tool_calls?: Json | null;
|
|
423
|
-
updated_at?: string;
|
|
424
|
-
usage_details?: Json | null;
|
|
425
|
-
};
|
|
426
|
-
Relationships: [];
|
|
427
|
-
};
|
|
428
475
|
tbl_api_logs: {
|
|
429
476
|
Row: {
|
|
430
477
|
org_id: string;
|
|
@@ -771,7 +818,7 @@ export type Database = {
|
|
|
771
818
|
forwarding_score: number | null;
|
|
772
819
|
from: string | null;
|
|
773
820
|
from_me: boolean | null;
|
|
774
|
-
fts: unknown
|
|
821
|
+
fts: unknown;
|
|
775
822
|
has_media: boolean | null;
|
|
776
823
|
has_quoted_msg: boolean | null;
|
|
777
824
|
has_reaction: boolean | null;
|
|
@@ -825,7 +872,7 @@ export type Database = {
|
|
|
825
872
|
forwarding_score?: number | null;
|
|
826
873
|
from?: string | null;
|
|
827
874
|
from_me?: boolean | null;
|
|
828
|
-
fts?: unknown
|
|
875
|
+
fts?: unknown;
|
|
829
876
|
has_media?: boolean | null;
|
|
830
877
|
has_quoted_msg?: boolean | null;
|
|
831
878
|
has_reaction?: boolean | null;
|
|
@@ -879,7 +926,7 @@ export type Database = {
|
|
|
879
926
|
forwarding_score?: number | null;
|
|
880
927
|
from?: string | null;
|
|
881
928
|
from_me?: boolean | null;
|
|
882
|
-
fts?: unknown
|
|
929
|
+
fts?: unknown;
|
|
883
930
|
has_media?: boolean | null;
|
|
884
931
|
has_quoted_msg?: boolean | null;
|
|
885
932
|
has_reaction?: boolean | null;
|
|
@@ -1213,6 +1260,7 @@ export type Database = {
|
|
|
1213
1260
|
last_updated_at: string;
|
|
1214
1261
|
last_updated_by: string | null;
|
|
1215
1262
|
org_id: string;
|
|
1263
|
+
org_phone: string | null;
|
|
1216
1264
|
priority: number | null;
|
|
1217
1265
|
quoted_message_id: string | null;
|
|
1218
1266
|
raised_by: string | null;
|
|
@@ -1239,6 +1287,7 @@ export type Database = {
|
|
|
1239
1287
|
last_updated_at?: string;
|
|
1240
1288
|
last_updated_by?: string | null;
|
|
1241
1289
|
org_id: string;
|
|
1290
|
+
org_phone?: string | null;
|
|
1242
1291
|
priority?: number | null;
|
|
1243
1292
|
quoted_message_id?: string | null;
|
|
1244
1293
|
raised_by?: string | null;
|
|
@@ -1265,6 +1314,7 @@ export type Database = {
|
|
|
1265
1314
|
last_updated_at?: string;
|
|
1266
1315
|
last_updated_by?: string | null;
|
|
1267
1316
|
org_id?: string;
|
|
1317
|
+
org_phone?: string | null;
|
|
1268
1318
|
priority?: number | null;
|
|
1269
1319
|
quoted_message_id?: string | null;
|
|
1270
1320
|
raised_by?: string | null;
|
|
@@ -1877,7 +1927,7 @@ export type Database = {
|
|
|
1877
1927
|
is_online: boolean | null;
|
|
1878
1928
|
is_owner: boolean | null;
|
|
1879
1929
|
label_ids: string[] | null;
|
|
1880
|
-
member_color:
|
|
1930
|
+
member_color: string;
|
|
1881
1931
|
member_image: string | null;
|
|
1882
1932
|
member_metadata: Json | null;
|
|
1883
1933
|
member_name: string | null;
|
|
@@ -1896,7 +1946,7 @@ export type Database = {
|
|
|
1896
1946
|
is_online?: boolean | null;
|
|
1897
1947
|
is_owner?: boolean | null;
|
|
1898
1948
|
label_ids?: string[] | null;
|
|
1899
|
-
member_color?:
|
|
1949
|
+
member_color?: string;
|
|
1900
1950
|
member_image?: string | null;
|
|
1901
1951
|
member_metadata?: Json | null;
|
|
1902
1952
|
member_name?: string | null;
|
|
@@ -1915,7 +1965,7 @@ export type Database = {
|
|
|
1915
1965
|
is_online?: boolean | null;
|
|
1916
1966
|
is_owner?: boolean | null;
|
|
1917
1967
|
label_ids?: string[] | null;
|
|
1918
|
-
member_color?:
|
|
1968
|
+
member_color?: string;
|
|
1919
1969
|
member_image?: string | null;
|
|
1920
1970
|
member_metadata?: Json | null;
|
|
1921
1971
|
member_name?: string | null;
|
|
@@ -3360,6 +3410,7 @@ export type Database = {
|
|
|
3360
3410
|
owner: string | null;
|
|
3361
3411
|
owner_id: string | null;
|
|
3362
3412
|
public: boolean | null;
|
|
3413
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3363
3414
|
updated_at: string | null;
|
|
3364
3415
|
};
|
|
3365
3416
|
Insert: {
|
|
@@ -3372,6 +3423,7 @@ export type Database = {
|
|
|
3372
3423
|
owner?: string | null;
|
|
3373
3424
|
owner_id?: string | null;
|
|
3374
3425
|
public?: boolean | null;
|
|
3426
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3375
3427
|
updated_at?: string | null;
|
|
3376
3428
|
};
|
|
3377
3429
|
Update: {
|
|
@@ -3384,10 +3436,112 @@ export type Database = {
|
|
|
3384
3436
|
owner?: string | null;
|
|
3385
3437
|
owner_id?: string | null;
|
|
3386
3438
|
public?: boolean | null;
|
|
3439
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3387
3440
|
updated_at?: string | null;
|
|
3388
3441
|
};
|
|
3389
3442
|
Relationships: [];
|
|
3390
3443
|
};
|
|
3444
|
+
buckets_analytics: {
|
|
3445
|
+
Row: {
|
|
3446
|
+
created_at: string;
|
|
3447
|
+
format: string;
|
|
3448
|
+
id: string;
|
|
3449
|
+
type: Database["storage"]["Enums"]["buckettype"];
|
|
3450
|
+
updated_at: string;
|
|
3451
|
+
};
|
|
3452
|
+
Insert: {
|
|
3453
|
+
created_at?: string;
|
|
3454
|
+
format?: string;
|
|
3455
|
+
id: string;
|
|
3456
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3457
|
+
updated_at?: string;
|
|
3458
|
+
};
|
|
3459
|
+
Update: {
|
|
3460
|
+
created_at?: string;
|
|
3461
|
+
format?: string;
|
|
3462
|
+
id?: string;
|
|
3463
|
+
type?: Database["storage"]["Enums"]["buckettype"];
|
|
3464
|
+
updated_at?: string;
|
|
3465
|
+
};
|
|
3466
|
+
Relationships: [];
|
|
3467
|
+
};
|
|
3468
|
+
iceberg_namespaces: {
|
|
3469
|
+
Row: {
|
|
3470
|
+
bucket_id: string;
|
|
3471
|
+
created_at: string;
|
|
3472
|
+
id: string;
|
|
3473
|
+
name: string;
|
|
3474
|
+
updated_at: string;
|
|
3475
|
+
};
|
|
3476
|
+
Insert: {
|
|
3477
|
+
bucket_id: string;
|
|
3478
|
+
created_at?: string;
|
|
3479
|
+
id?: string;
|
|
3480
|
+
name: string;
|
|
3481
|
+
updated_at?: string;
|
|
3482
|
+
};
|
|
3483
|
+
Update: {
|
|
3484
|
+
bucket_id?: string;
|
|
3485
|
+
created_at?: string;
|
|
3486
|
+
id?: string;
|
|
3487
|
+
name?: string;
|
|
3488
|
+
updated_at?: string;
|
|
3489
|
+
};
|
|
3490
|
+
Relationships: [
|
|
3491
|
+
{
|
|
3492
|
+
foreignKeyName: "iceberg_namespaces_bucket_id_fkey";
|
|
3493
|
+
columns: ["bucket_id"];
|
|
3494
|
+
isOneToOne: false;
|
|
3495
|
+
referencedRelation: "buckets_analytics";
|
|
3496
|
+
referencedColumns: ["id"];
|
|
3497
|
+
}
|
|
3498
|
+
];
|
|
3499
|
+
};
|
|
3500
|
+
iceberg_tables: {
|
|
3501
|
+
Row: {
|
|
3502
|
+
bucket_id: string;
|
|
3503
|
+
created_at: string;
|
|
3504
|
+
id: string;
|
|
3505
|
+
location: string;
|
|
3506
|
+
name: string;
|
|
3507
|
+
namespace_id: string;
|
|
3508
|
+
updated_at: string;
|
|
3509
|
+
};
|
|
3510
|
+
Insert: {
|
|
3511
|
+
bucket_id: string;
|
|
3512
|
+
created_at?: string;
|
|
3513
|
+
id?: string;
|
|
3514
|
+
location: string;
|
|
3515
|
+
name: string;
|
|
3516
|
+
namespace_id: string;
|
|
3517
|
+
updated_at?: string;
|
|
3518
|
+
};
|
|
3519
|
+
Update: {
|
|
3520
|
+
bucket_id?: string;
|
|
3521
|
+
created_at?: string;
|
|
3522
|
+
id?: string;
|
|
3523
|
+
location?: string;
|
|
3524
|
+
name?: string;
|
|
3525
|
+
namespace_id?: string;
|
|
3526
|
+
updated_at?: string;
|
|
3527
|
+
};
|
|
3528
|
+
Relationships: [
|
|
3529
|
+
{
|
|
3530
|
+
foreignKeyName: "iceberg_tables_bucket_id_fkey";
|
|
3531
|
+
columns: ["bucket_id"];
|
|
3532
|
+
isOneToOne: false;
|
|
3533
|
+
referencedRelation: "buckets_analytics";
|
|
3534
|
+
referencedColumns: ["id"];
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey";
|
|
3538
|
+
columns: ["namespace_id"];
|
|
3539
|
+
isOneToOne: false;
|
|
3540
|
+
referencedRelation: "iceberg_namespaces";
|
|
3541
|
+
referencedColumns: ["id"];
|
|
3542
|
+
}
|
|
3543
|
+
];
|
|
3544
|
+
};
|
|
3391
3545
|
migrations: {
|
|
3392
3546
|
Row: {
|
|
3393
3547
|
executed_at: string | null;
|
|
@@ -3415,6 +3569,7 @@ export type Database = {
|
|
|
3415
3569
|
created_at: string | null;
|
|
3416
3570
|
id: string;
|
|
3417
3571
|
last_accessed_at: string | null;
|
|
3572
|
+
level: number | null;
|
|
3418
3573
|
metadata: Json | null;
|
|
3419
3574
|
name: string | null;
|
|
3420
3575
|
owner: string | null;
|
|
@@ -3429,6 +3584,7 @@ export type Database = {
|
|
|
3429
3584
|
created_at?: string | null;
|
|
3430
3585
|
id?: string;
|
|
3431
3586
|
last_accessed_at?: string | null;
|
|
3587
|
+
level?: number | null;
|
|
3432
3588
|
metadata?: Json | null;
|
|
3433
3589
|
name?: string | null;
|
|
3434
3590
|
owner?: string | null;
|
|
@@ -3443,6 +3599,7 @@ export type Database = {
|
|
|
3443
3599
|
created_at?: string | null;
|
|
3444
3600
|
id?: string;
|
|
3445
3601
|
last_accessed_at?: string | null;
|
|
3602
|
+
level?: number | null;
|
|
3446
3603
|
metadata?: Json | null;
|
|
3447
3604
|
name?: string | null;
|
|
3448
3605
|
owner?: string | null;
|
|
@@ -3462,6 +3619,38 @@ export type Database = {
|
|
|
3462
3619
|
}
|
|
3463
3620
|
];
|
|
3464
3621
|
};
|
|
3622
|
+
prefixes: {
|
|
3623
|
+
Row: {
|
|
3624
|
+
bucket_id: string;
|
|
3625
|
+
created_at: string | null;
|
|
3626
|
+
level: number;
|
|
3627
|
+
name: string;
|
|
3628
|
+
updated_at: string | null;
|
|
3629
|
+
};
|
|
3630
|
+
Insert: {
|
|
3631
|
+
bucket_id: string;
|
|
3632
|
+
created_at?: string | null;
|
|
3633
|
+
level?: number;
|
|
3634
|
+
name: string;
|
|
3635
|
+
updated_at?: string | null;
|
|
3636
|
+
};
|
|
3637
|
+
Update: {
|
|
3638
|
+
bucket_id?: string;
|
|
3639
|
+
created_at?: string | null;
|
|
3640
|
+
level?: number;
|
|
3641
|
+
name?: string;
|
|
3642
|
+
updated_at?: string | null;
|
|
3643
|
+
};
|
|
3644
|
+
Relationships: [
|
|
3645
|
+
{
|
|
3646
|
+
foreignKeyName: "prefixes_bucketId_fkey";
|
|
3647
|
+
columns: ["bucket_id"];
|
|
3648
|
+
isOneToOne: false;
|
|
3649
|
+
referencedRelation: "buckets";
|
|
3650
|
+
referencedColumns: ["id"];
|
|
3651
|
+
}
|
|
3652
|
+
];
|
|
3653
|
+
};
|
|
3465
3654
|
s3_multipart_uploads: {
|
|
3466
3655
|
Row: {
|
|
3467
3656
|
bucket_id: string;
|
|
@@ -3565,15 +3754,36 @@ export type Database = {
|
|
|
3565
3754
|
[_ in never]: never;
|
|
3566
3755
|
};
|
|
3567
3756
|
Functions: {
|
|
3757
|
+
add_prefixes: {
|
|
3758
|
+
Args: {
|
|
3759
|
+
_bucket_id: string;
|
|
3760
|
+
_name: string;
|
|
3761
|
+
};
|
|
3762
|
+
Returns: undefined;
|
|
3763
|
+
};
|
|
3568
3764
|
can_insert_object: {
|
|
3569
3765
|
Args: {
|
|
3570
3766
|
bucketid: string;
|
|
3767
|
+
metadata: Json;
|
|
3571
3768
|
name: string;
|
|
3572
3769
|
owner: string;
|
|
3573
|
-
metadata: Json;
|
|
3574
3770
|
};
|
|
3575
3771
|
Returns: undefined;
|
|
3576
3772
|
};
|
|
3773
|
+
delete_leaf_prefixes: {
|
|
3774
|
+
Args: {
|
|
3775
|
+
bucket_ids: string[];
|
|
3776
|
+
names: string[];
|
|
3777
|
+
};
|
|
3778
|
+
Returns: undefined;
|
|
3779
|
+
};
|
|
3780
|
+
delete_prefix: {
|
|
3781
|
+
Args: {
|
|
3782
|
+
_bucket_id: string;
|
|
3783
|
+
_name: string;
|
|
3784
|
+
};
|
|
3785
|
+
Returns: boolean;
|
|
3786
|
+
};
|
|
3577
3787
|
extension: {
|
|
3578
3788
|
Args: {
|
|
3579
3789
|
name: string;
|
|
@@ -3592,125 +3802,212 @@ export type Database = {
|
|
|
3592
3802
|
};
|
|
3593
3803
|
Returns: string[];
|
|
3594
3804
|
};
|
|
3805
|
+
get_level: {
|
|
3806
|
+
Args: {
|
|
3807
|
+
name: string;
|
|
3808
|
+
};
|
|
3809
|
+
Returns: number;
|
|
3810
|
+
};
|
|
3811
|
+
get_prefix: {
|
|
3812
|
+
Args: {
|
|
3813
|
+
name: string;
|
|
3814
|
+
};
|
|
3815
|
+
Returns: string;
|
|
3816
|
+
};
|
|
3817
|
+
get_prefixes: {
|
|
3818
|
+
Args: {
|
|
3819
|
+
name: string;
|
|
3820
|
+
};
|
|
3821
|
+
Returns: string[];
|
|
3822
|
+
};
|
|
3595
3823
|
get_size_by_bucket: {
|
|
3596
|
-
Args:
|
|
3824
|
+
Args: never;
|
|
3597
3825
|
Returns: {
|
|
3598
|
-
size: number;
|
|
3599
3826
|
bucket_id: string;
|
|
3827
|
+
size: number;
|
|
3600
3828
|
}[];
|
|
3601
3829
|
};
|
|
3602
3830
|
list_multipart_uploads_with_delimiter: {
|
|
3603
3831
|
Args: {
|
|
3604
3832
|
bucket_id: string;
|
|
3605
|
-
prefix_param: string;
|
|
3606
3833
|
delimiter_param: string;
|
|
3607
3834
|
max_keys?: number;
|
|
3608
3835
|
next_key_token?: string;
|
|
3609
3836
|
next_upload_token?: string;
|
|
3837
|
+
prefix_param: string;
|
|
3610
3838
|
};
|
|
3611
3839
|
Returns: {
|
|
3612
|
-
key: string;
|
|
3613
|
-
id: string;
|
|
3614
3840
|
created_at: string;
|
|
3841
|
+
id: string;
|
|
3842
|
+
key: string;
|
|
3615
3843
|
}[];
|
|
3616
3844
|
};
|
|
3617
3845
|
list_objects_with_delimiter: {
|
|
3618
3846
|
Args: {
|
|
3619
3847
|
bucket_id: string;
|
|
3620
|
-
prefix_param: string;
|
|
3621
3848
|
delimiter_param: string;
|
|
3622
3849
|
max_keys?: number;
|
|
3623
|
-
start_after?: string;
|
|
3624
3850
|
next_token?: string;
|
|
3851
|
+
prefix_param: string;
|
|
3852
|
+
start_after?: string;
|
|
3625
3853
|
};
|
|
3626
3854
|
Returns: {
|
|
3627
|
-
name: string;
|
|
3628
3855
|
id: string;
|
|
3629
3856
|
metadata: Json;
|
|
3857
|
+
name: string;
|
|
3630
3858
|
updated_at: string;
|
|
3631
3859
|
}[];
|
|
3632
3860
|
};
|
|
3861
|
+
lock_top_prefixes: {
|
|
3862
|
+
Args: {
|
|
3863
|
+
bucket_ids: string[];
|
|
3864
|
+
names: string[];
|
|
3865
|
+
};
|
|
3866
|
+
Returns: undefined;
|
|
3867
|
+
};
|
|
3633
3868
|
operation: {
|
|
3634
|
-
Args:
|
|
3869
|
+
Args: never;
|
|
3635
3870
|
Returns: string;
|
|
3636
3871
|
};
|
|
3637
3872
|
search: {
|
|
3638
3873
|
Args: {
|
|
3639
|
-
prefix: string;
|
|
3640
3874
|
bucketname: string;
|
|
3875
|
+
levels?: number;
|
|
3641
3876
|
limits?: number;
|
|
3877
|
+
offsets?: number;
|
|
3878
|
+
prefix: string;
|
|
3879
|
+
search?: string;
|
|
3880
|
+
sortcolumn?: string;
|
|
3881
|
+
sortorder?: string;
|
|
3882
|
+
};
|
|
3883
|
+
Returns: {
|
|
3884
|
+
created_at: string;
|
|
3885
|
+
id: string;
|
|
3886
|
+
last_accessed_at: string;
|
|
3887
|
+
metadata: Json;
|
|
3888
|
+
name: string;
|
|
3889
|
+
updated_at: string;
|
|
3890
|
+
}[];
|
|
3891
|
+
};
|
|
3892
|
+
search_legacy_v1: {
|
|
3893
|
+
Args: {
|
|
3894
|
+
bucketname: string;
|
|
3642
3895
|
levels?: number;
|
|
3896
|
+
limits?: number;
|
|
3643
3897
|
offsets?: number;
|
|
3898
|
+
prefix: string;
|
|
3644
3899
|
search?: string;
|
|
3645
3900
|
sortcolumn?: string;
|
|
3646
3901
|
sortorder?: string;
|
|
3647
3902
|
};
|
|
3648
3903
|
Returns: {
|
|
3904
|
+
created_at: string;
|
|
3905
|
+
id: string;
|
|
3906
|
+
last_accessed_at: string;
|
|
3907
|
+
metadata: Json;
|
|
3649
3908
|
name: string;
|
|
3909
|
+
updated_at: string;
|
|
3910
|
+
}[];
|
|
3911
|
+
};
|
|
3912
|
+
search_v1_optimised: {
|
|
3913
|
+
Args: {
|
|
3914
|
+
bucketname: string;
|
|
3915
|
+
levels?: number;
|
|
3916
|
+
limits?: number;
|
|
3917
|
+
offsets?: number;
|
|
3918
|
+
prefix: string;
|
|
3919
|
+
search?: string;
|
|
3920
|
+
sortcolumn?: string;
|
|
3921
|
+
sortorder?: string;
|
|
3922
|
+
};
|
|
3923
|
+
Returns: {
|
|
3924
|
+
created_at: string;
|
|
3650
3925
|
id: string;
|
|
3926
|
+
last_accessed_at: string;
|
|
3927
|
+
metadata: Json;
|
|
3928
|
+
name: string;
|
|
3651
3929
|
updated_at: string;
|
|
3930
|
+
}[];
|
|
3931
|
+
};
|
|
3932
|
+
search_v2: {
|
|
3933
|
+
Args: {
|
|
3934
|
+
bucket_name: string;
|
|
3935
|
+
levels?: number;
|
|
3936
|
+
limits?: number;
|
|
3937
|
+
prefix: string;
|
|
3938
|
+
sort_column?: string;
|
|
3939
|
+
sort_column_after?: string;
|
|
3940
|
+
sort_order?: string;
|
|
3941
|
+
start_after?: string;
|
|
3942
|
+
};
|
|
3943
|
+
Returns: {
|
|
3652
3944
|
created_at: string;
|
|
3945
|
+
id: string;
|
|
3946
|
+
key: string;
|
|
3653
3947
|
last_accessed_at: string;
|
|
3654
3948
|
metadata: Json;
|
|
3949
|
+
name: string;
|
|
3950
|
+
updated_at: string;
|
|
3655
3951
|
}[];
|
|
3656
3952
|
};
|
|
3657
3953
|
};
|
|
3658
3954
|
Enums: {
|
|
3659
|
-
|
|
3955
|
+
buckettype: "STANDARD" | "ANALYTICS";
|
|
3660
3956
|
};
|
|
3661
3957
|
CompositeTypes: {
|
|
3662
3958
|
[_ in never]: never;
|
|
3663
3959
|
};
|
|
3664
3960
|
};
|
|
3665
3961
|
};
|
|
3666
|
-
type
|
|
3962
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">;
|
|
3963
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">];
|
|
3667
3964
|
export type Tables<DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) | {
|
|
3668
|
-
schema: keyof
|
|
3965
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3669
3966
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3670
|
-
schema: keyof
|
|
3671
|
-
} ? keyof (
|
|
3672
|
-
schema: keyof
|
|
3673
|
-
} ? (
|
|
3967
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3968
|
+
} ? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"]) : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3969
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3970
|
+
} ? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] & DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3674
3971
|
Row: infer R;
|
|
3675
3972
|
} ? R : never : DefaultSchemaTableNameOrOptions extends keyof (DefaultSchema["Tables"] & DefaultSchema["Views"]) ? (DefaultSchema["Tables"] & DefaultSchema["Views"])[DefaultSchemaTableNameOrOptions] extends {
|
|
3676
3973
|
Row: infer R;
|
|
3677
3974
|
} ? R : never : never;
|
|
3678
3975
|
export type TablesInsert<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3679
|
-
schema: keyof
|
|
3976
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3680
3977
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3681
|
-
schema: keyof
|
|
3682
|
-
} ? keyof
|
|
3683
|
-
schema: keyof
|
|
3684
|
-
} ?
|
|
3978
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3979
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3980
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3981
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3685
3982
|
Insert: infer I;
|
|
3686
3983
|
} ? I : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3687
3984
|
Insert: infer I;
|
|
3688
3985
|
} ? I : never : never;
|
|
3689
3986
|
export type TablesUpdate<DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] | {
|
|
3690
|
-
schema: keyof
|
|
3987
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3691
3988
|
}, TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3692
|
-
schema: keyof
|
|
3693
|
-
} ? keyof
|
|
3694
|
-
schema: keyof
|
|
3695
|
-
} ?
|
|
3989
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3990
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] : never = never> = DefaultSchemaTableNameOrOptions extends {
|
|
3991
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3992
|
+
} ? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3696
3993
|
Update: infer U;
|
|
3697
3994
|
} ? U : never : DefaultSchemaTableNameOrOptions extends keyof DefaultSchema["Tables"] ? DefaultSchema["Tables"][DefaultSchemaTableNameOrOptions] extends {
|
|
3698
3995
|
Update: infer U;
|
|
3699
3996
|
} ? U : never : never;
|
|
3700
3997
|
export type Enums<DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] | {
|
|
3701
|
-
schema: keyof
|
|
3998
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3702
3999
|
}, EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3703
|
-
schema: keyof
|
|
3704
|
-
} ? keyof
|
|
3705
|
-
schema: keyof
|
|
3706
|
-
} ?
|
|
4000
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4001
|
+
} ? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"] : never = never> = DefaultSchemaEnumNameOrOptions extends {
|
|
4002
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4003
|
+
} ? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName] : DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"] ? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions] : never;
|
|
3707
4004
|
export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] | {
|
|
3708
|
-
schema: keyof
|
|
4005
|
+
schema: keyof DatabaseWithoutInternals;
|
|
3709
4006
|
}, CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3710
|
-
schema: keyof
|
|
3711
|
-
} ? keyof
|
|
3712
|
-
schema: keyof
|
|
3713
|
-
} ?
|
|
4007
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4008
|
+
} ? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"] : never = never> = PublicCompositeTypeNameOrOptions extends {
|
|
4009
|
+
schema: keyof DatabaseWithoutInternals;
|
|
4010
|
+
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3714
4011
|
export declare const Constants: {
|
|
3715
4012
|
readonly internal: {
|
|
3716
4013
|
readonly Enums: {};
|
|
@@ -3723,12 +4020,14 @@ export declare const Constants: {
|
|
|
3723
4020
|
readonly enum_chat_tickets_status: readonly ["open", "inprogress", "closed", "archived"];
|
|
3724
4021
|
readonly enum_credit_transaction_type: readonly ["credit", "debit"];
|
|
3725
4022
|
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", "
|
|
4023
|
+
readonly enum_integration_type: readonly ["zapier", "pabbly", "api", "webhook", "hubspot", "freshdesk", "slack", "jira", "salesforce", "zohodesk", "gsheets", "zohocrm"];
|
|
3727
4024
|
readonly enum_member_role: readonly ["admin", "member"];
|
|
3728
4025
|
};
|
|
3729
4026
|
};
|
|
3730
4027
|
readonly storage: {
|
|
3731
|
-
readonly Enums: {
|
|
4028
|
+
readonly Enums: {
|
|
4029
|
+
readonly buckettype: readonly ["STANDARD", "ANALYTICS"];
|
|
4030
|
+
};
|
|
3732
4031
|
};
|
|
3733
4032
|
};
|
|
3734
4033
|
export {};
|