@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/src/supabase.types.ts
CHANGED
|
@@ -58,6 +58,7 @@ export type Database = {
|
|
|
58
58
|
old_plan: Json | null
|
|
59
59
|
org_id: string
|
|
60
60
|
trace_id: string
|
|
61
|
+
type: string | null
|
|
61
62
|
}
|
|
62
63
|
Insert: {
|
|
63
64
|
created_at?: string
|
|
@@ -65,6 +66,7 @@ export type Database = {
|
|
|
65
66
|
old_plan?: Json | null
|
|
66
67
|
org_id: string
|
|
67
68
|
trace_id?: string
|
|
69
|
+
type?: string | null
|
|
68
70
|
}
|
|
69
71
|
Update: {
|
|
70
72
|
created_at?: string
|
|
@@ -72,6 +74,7 @@ export type Database = {
|
|
|
72
74
|
old_plan?: Json | null
|
|
73
75
|
org_id?: string
|
|
74
76
|
trace_id?: string
|
|
77
|
+
type?: string | null
|
|
75
78
|
}
|
|
76
79
|
Relationships: []
|
|
77
80
|
}
|
|
@@ -144,6 +147,33 @@ export type Database = {
|
|
|
144
147
|
}
|
|
145
148
|
Relationships: []
|
|
146
149
|
}
|
|
150
|
+
tbl_notification_events: {
|
|
151
|
+
Row: {
|
|
152
|
+
created_at: string
|
|
153
|
+
event: string
|
|
154
|
+
id: number
|
|
155
|
+
org_id: string
|
|
156
|
+
payload: Json
|
|
157
|
+
performed_at: string | null
|
|
158
|
+
}
|
|
159
|
+
Insert: {
|
|
160
|
+
created_at?: string
|
|
161
|
+
event: string
|
|
162
|
+
id?: number
|
|
163
|
+
org_id: string
|
|
164
|
+
payload: Json
|
|
165
|
+
performed_at?: string | null
|
|
166
|
+
}
|
|
167
|
+
Update: {
|
|
168
|
+
created_at?: string
|
|
169
|
+
event?: string
|
|
170
|
+
id?: number
|
|
171
|
+
org_id?: string
|
|
172
|
+
payload?: Json
|
|
173
|
+
performed_at?: string | null
|
|
174
|
+
}
|
|
175
|
+
Relationships: []
|
|
176
|
+
}
|
|
147
177
|
tbl_org_warmup: {
|
|
148
178
|
Row: {
|
|
149
179
|
created_at: string
|
|
@@ -207,10 +237,38 @@ export type Database = {
|
|
|
207
237
|
}
|
|
208
238
|
Relationships: []
|
|
209
239
|
}
|
|
240
|
+
tbl_trigger_events: {
|
|
241
|
+
Row: {
|
|
242
|
+
created_at: string
|
|
243
|
+
event: string
|
|
244
|
+
id: number
|
|
245
|
+
org_id: string
|
|
246
|
+
payload: Json
|
|
247
|
+
performed_at: string | null
|
|
248
|
+
}
|
|
249
|
+
Insert: {
|
|
250
|
+
created_at?: string
|
|
251
|
+
event: string
|
|
252
|
+
id?: number
|
|
253
|
+
org_id: string
|
|
254
|
+
payload: Json
|
|
255
|
+
performed_at?: string | null
|
|
256
|
+
}
|
|
257
|
+
Update: {
|
|
258
|
+
created_at?: string
|
|
259
|
+
event?: string
|
|
260
|
+
id?: number
|
|
261
|
+
org_id?: string
|
|
262
|
+
payload?: Json
|
|
263
|
+
performed_at?: string | null
|
|
264
|
+
}
|
|
265
|
+
Relationships: []
|
|
266
|
+
}
|
|
210
267
|
tbl_trigger_logs: {
|
|
211
268
|
Row: {
|
|
212
269
|
created_at: string
|
|
213
270
|
id: number
|
|
271
|
+
performed_by: string | null
|
|
214
272
|
request_body: Json
|
|
215
273
|
request_id: string
|
|
216
274
|
trace_id: string
|
|
@@ -219,6 +277,7 @@ export type Database = {
|
|
|
219
277
|
Insert: {
|
|
220
278
|
created_at?: string
|
|
221
279
|
id?: number
|
|
280
|
+
performed_by?: string | null
|
|
222
281
|
request_body: Json
|
|
223
282
|
request_id: string
|
|
224
283
|
trace_id?: string
|
|
@@ -227,6 +286,7 @@ export type Database = {
|
|
|
227
286
|
Update: {
|
|
228
287
|
created_at?: string
|
|
229
288
|
id?: number
|
|
289
|
+
performed_by?: string | null
|
|
230
290
|
request_body?: Json
|
|
231
291
|
request_id?: string
|
|
232
292
|
trace_id?: string
|
|
@@ -289,30 +349,65 @@ export type Database = {
|
|
|
289
349
|
Views: {
|
|
290
350
|
view_billing_updates: {
|
|
291
351
|
Row: {
|
|
292
|
-
change_arr: number | null
|
|
293
352
|
created_at: string | null
|
|
294
353
|
new_arr: number | null
|
|
295
354
|
new_discount: number | null
|
|
296
|
-
|
|
355
|
+
new_phone_limit: number | null
|
|
297
356
|
new_plan: Json | null
|
|
298
357
|
new_plan_id: string | null
|
|
299
358
|
new_plan_type: string | null
|
|
300
|
-
|
|
301
|
-
new_users: number | null
|
|
359
|
+
new_user_limit: number | null
|
|
302
360
|
old_arr: number | null
|
|
303
361
|
old_discount: number | null
|
|
304
|
-
|
|
362
|
+
old_phone_limit: number | null
|
|
305
363
|
old_plan: Json | null
|
|
306
364
|
old_plan_id: string | null
|
|
307
365
|
old_plan_type: string | null
|
|
308
|
-
|
|
309
|
-
old_users: number | null
|
|
310
|
-
org_alias: string | null
|
|
366
|
+
old_user_limit: number | null
|
|
311
367
|
org_id: string | null
|
|
312
|
-
org_name: string | null
|
|
313
368
|
trace_id: string | null
|
|
314
369
|
type: string | null
|
|
315
370
|
}
|
|
371
|
+
Insert: {
|
|
372
|
+
created_at?: string | null
|
|
373
|
+
new_arr?: never
|
|
374
|
+
new_discount?: never
|
|
375
|
+
new_phone_limit?: never
|
|
376
|
+
new_plan?: Json | null
|
|
377
|
+
new_plan_id?: never
|
|
378
|
+
new_plan_type?: never
|
|
379
|
+
new_user_limit?: never
|
|
380
|
+
old_arr?: never
|
|
381
|
+
old_discount?: never
|
|
382
|
+
old_phone_limit?: never
|
|
383
|
+
old_plan?: Json | null
|
|
384
|
+
old_plan_id?: never
|
|
385
|
+
old_plan_type?: never
|
|
386
|
+
old_user_limit?: never
|
|
387
|
+
org_id?: string | null
|
|
388
|
+
trace_id?: string | null
|
|
389
|
+
type?: never
|
|
390
|
+
}
|
|
391
|
+
Update: {
|
|
392
|
+
created_at?: string | null
|
|
393
|
+
new_arr?: never
|
|
394
|
+
new_discount?: never
|
|
395
|
+
new_phone_limit?: never
|
|
396
|
+
new_plan?: Json | null
|
|
397
|
+
new_plan_id?: never
|
|
398
|
+
new_plan_type?: never
|
|
399
|
+
new_user_limit?: never
|
|
400
|
+
old_arr?: never
|
|
401
|
+
old_discount?: never
|
|
402
|
+
old_phone_limit?: never
|
|
403
|
+
old_plan?: Json | null
|
|
404
|
+
old_plan_id?: never
|
|
405
|
+
old_plan_type?: never
|
|
406
|
+
old_user_limit?: never
|
|
407
|
+
org_id?: string | null
|
|
408
|
+
trace_id?: string | null
|
|
409
|
+
type?: never
|
|
410
|
+
}
|
|
316
411
|
Relationships: []
|
|
317
412
|
}
|
|
318
413
|
}
|
|
@@ -337,7 +432,6 @@ export type Database = {
|
|
|
337
432
|
created_at: string | null
|
|
338
433
|
document_id: string | null
|
|
339
434
|
embedding: string
|
|
340
|
-
is_active: boolean | null
|
|
341
435
|
metadata: Json | null
|
|
342
436
|
org_id: string
|
|
343
437
|
question: string
|
|
@@ -353,7 +447,6 @@ export type Database = {
|
|
|
353
447
|
created_at?: string | null
|
|
354
448
|
document_id?: string | null
|
|
355
449
|
embedding: string
|
|
356
|
-
is_active?: boolean | null
|
|
357
450
|
metadata?: Json | null
|
|
358
451
|
org_id: string
|
|
359
452
|
question: string
|
|
@@ -369,7 +462,6 @@ export type Database = {
|
|
|
369
462
|
created_at?: string | null
|
|
370
463
|
document_id?: string | null
|
|
371
464
|
embedding?: string
|
|
372
|
-
is_active?: boolean | null
|
|
373
465
|
metadata?: Json | null
|
|
374
466
|
org_id?: string
|
|
375
467
|
question?: string
|
|
@@ -379,51 +471,6 @@ export type Database = {
|
|
|
379
471
|
}
|
|
380
472
|
Relationships: []
|
|
381
473
|
}
|
|
382
|
-
tbl_ai_sessions: {
|
|
383
|
-
Row: {
|
|
384
|
-
chat_id: string
|
|
385
|
-
conversation_messages: Json | null
|
|
386
|
-
created_at: string
|
|
387
|
-
metadata: Json | null
|
|
388
|
-
org_id: string
|
|
389
|
-
org_phone: string
|
|
390
|
-
relevant_context: Json | null
|
|
391
|
-
session_id: string
|
|
392
|
-
status: string
|
|
393
|
-
tool_calls: Json | null
|
|
394
|
-
updated_at: string
|
|
395
|
-
usage_details: Json | null
|
|
396
|
-
}
|
|
397
|
-
Insert: {
|
|
398
|
-
chat_id: string
|
|
399
|
-
conversation_messages?: Json | null
|
|
400
|
-
created_at?: string
|
|
401
|
-
metadata?: Json | null
|
|
402
|
-
org_id: string
|
|
403
|
-
org_phone: string
|
|
404
|
-
relevant_context?: Json | null
|
|
405
|
-
session_id: string
|
|
406
|
-
status?: string
|
|
407
|
-
tool_calls?: Json | null
|
|
408
|
-
updated_at?: string
|
|
409
|
-
usage_details?: Json | null
|
|
410
|
-
}
|
|
411
|
-
Update: {
|
|
412
|
-
chat_id?: string
|
|
413
|
-
conversation_messages?: Json | null
|
|
414
|
-
created_at?: string
|
|
415
|
-
metadata?: Json | null
|
|
416
|
-
org_id?: string
|
|
417
|
-
org_phone?: string
|
|
418
|
-
relevant_context?: Json | null
|
|
419
|
-
session_id?: string
|
|
420
|
-
status?: string
|
|
421
|
-
tool_calls?: Json | null
|
|
422
|
-
updated_at?: string
|
|
423
|
-
usage_details?: Json | null
|
|
424
|
-
}
|
|
425
|
-
Relationships: []
|
|
426
|
-
}
|
|
427
474
|
tbl_api_logs: {
|
|
428
475
|
Row: {
|
|
429
476
|
org_id: string
|
|
@@ -776,7 +823,7 @@ export type Database = {
|
|
|
776
823
|
forwarding_score: number | null
|
|
777
824
|
from: string | null
|
|
778
825
|
from_me: boolean | null
|
|
779
|
-
fts: unknown
|
|
826
|
+
fts: unknown
|
|
780
827
|
has_media: boolean | null
|
|
781
828
|
has_quoted_msg: boolean | null
|
|
782
829
|
has_reaction: boolean | null
|
|
@@ -830,7 +877,7 @@ export type Database = {
|
|
|
830
877
|
forwarding_score?: number | null
|
|
831
878
|
from?: string | null
|
|
832
879
|
from_me?: boolean | null
|
|
833
|
-
fts?: unknown
|
|
880
|
+
fts?: unknown
|
|
834
881
|
has_media?: boolean | null
|
|
835
882
|
has_quoted_msg?: boolean | null
|
|
836
883
|
has_reaction?: boolean | null
|
|
@@ -884,7 +931,7 @@ export type Database = {
|
|
|
884
931
|
forwarding_score?: number | null
|
|
885
932
|
from?: string | null
|
|
886
933
|
from_me?: boolean | null
|
|
887
|
-
fts?: unknown
|
|
934
|
+
fts?: unknown
|
|
888
935
|
has_media?: boolean | null
|
|
889
936
|
has_quoted_msg?: boolean | null
|
|
890
937
|
has_reaction?: boolean | null
|
|
@@ -1218,6 +1265,7 @@ export type Database = {
|
|
|
1218
1265
|
last_updated_at: string
|
|
1219
1266
|
last_updated_by: string | null
|
|
1220
1267
|
org_id: string
|
|
1268
|
+
org_phone: string | null
|
|
1221
1269
|
priority: number | null
|
|
1222
1270
|
quoted_message_id: string | null
|
|
1223
1271
|
raised_by: string | null
|
|
@@ -1244,6 +1292,7 @@ export type Database = {
|
|
|
1244
1292
|
last_updated_at?: string
|
|
1245
1293
|
last_updated_by?: string | null
|
|
1246
1294
|
org_id: string
|
|
1295
|
+
org_phone?: string | null
|
|
1247
1296
|
priority?: number | null
|
|
1248
1297
|
quoted_message_id?: string | null
|
|
1249
1298
|
raised_by?: string | null
|
|
@@ -1272,6 +1321,7 @@ export type Database = {
|
|
|
1272
1321
|
last_updated_at?: string
|
|
1273
1322
|
last_updated_by?: string | null
|
|
1274
1323
|
org_id?: string
|
|
1324
|
+
org_phone?: string | null
|
|
1275
1325
|
priority?: number | null
|
|
1276
1326
|
quoted_message_id?: string | null
|
|
1277
1327
|
raised_by?: string | null
|
|
@@ -1886,7 +1936,7 @@ export type Database = {
|
|
|
1886
1936
|
is_online: boolean | null
|
|
1887
1937
|
is_owner: boolean | null
|
|
1888
1938
|
label_ids: string[] | null
|
|
1889
|
-
member_color:
|
|
1939
|
+
member_color: string
|
|
1890
1940
|
member_image: string | null
|
|
1891
1941
|
member_metadata: Json | null
|
|
1892
1942
|
member_name: string | null
|
|
@@ -1905,7 +1955,7 @@ export type Database = {
|
|
|
1905
1955
|
is_online?: boolean | null
|
|
1906
1956
|
is_owner?: boolean | null
|
|
1907
1957
|
label_ids?: string[] | null
|
|
1908
|
-
member_color?:
|
|
1958
|
+
member_color?: string
|
|
1909
1959
|
member_image?: string | null
|
|
1910
1960
|
member_metadata?: Json | null
|
|
1911
1961
|
member_name?: string | null
|
|
@@ -1924,7 +1974,7 @@ export type Database = {
|
|
|
1924
1974
|
is_online?: boolean | null
|
|
1925
1975
|
is_owner?: boolean | null
|
|
1926
1976
|
label_ids?: string[] | null
|
|
1927
|
-
member_color?:
|
|
1977
|
+
member_color?: string
|
|
1928
1978
|
member_image?: string | null
|
|
1929
1979
|
member_metadata?: Json | null
|
|
1930
1980
|
member_name?: string | null
|
|
@@ -3381,6 +3431,7 @@ export type Database = {
|
|
|
3381
3431
|
owner: string | null
|
|
3382
3432
|
owner_id: string | null
|
|
3383
3433
|
public: boolean | null
|
|
3434
|
+
type: Database["storage"]["Enums"]["buckettype"]
|
|
3384
3435
|
updated_at: string | null
|
|
3385
3436
|
}
|
|
3386
3437
|
Insert: {
|
|
@@ -3393,6 +3444,7 @@ export type Database = {
|
|
|
3393
3444
|
owner?: string | null
|
|
3394
3445
|
owner_id?: string | null
|
|
3395
3446
|
public?: boolean | null
|
|
3447
|
+
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3396
3448
|
updated_at?: string | null
|
|
3397
3449
|
}
|
|
3398
3450
|
Update: {
|
|
@@ -3405,10 +3457,112 @@ export type Database = {
|
|
|
3405
3457
|
owner?: string | null
|
|
3406
3458
|
owner_id?: string | null
|
|
3407
3459
|
public?: boolean | null
|
|
3460
|
+
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3408
3461
|
updated_at?: string | null
|
|
3409
3462
|
}
|
|
3410
3463
|
Relationships: []
|
|
3411
3464
|
}
|
|
3465
|
+
buckets_analytics: {
|
|
3466
|
+
Row: {
|
|
3467
|
+
created_at: string
|
|
3468
|
+
format: string
|
|
3469
|
+
id: string
|
|
3470
|
+
type: Database["storage"]["Enums"]["buckettype"]
|
|
3471
|
+
updated_at: string
|
|
3472
|
+
}
|
|
3473
|
+
Insert: {
|
|
3474
|
+
created_at?: string
|
|
3475
|
+
format?: string
|
|
3476
|
+
id: string
|
|
3477
|
+
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3478
|
+
updated_at?: string
|
|
3479
|
+
}
|
|
3480
|
+
Update: {
|
|
3481
|
+
created_at?: string
|
|
3482
|
+
format?: string
|
|
3483
|
+
id?: string
|
|
3484
|
+
type?: Database["storage"]["Enums"]["buckettype"]
|
|
3485
|
+
updated_at?: string
|
|
3486
|
+
}
|
|
3487
|
+
Relationships: []
|
|
3488
|
+
}
|
|
3489
|
+
iceberg_namespaces: {
|
|
3490
|
+
Row: {
|
|
3491
|
+
bucket_id: string
|
|
3492
|
+
created_at: string
|
|
3493
|
+
id: string
|
|
3494
|
+
name: string
|
|
3495
|
+
updated_at: string
|
|
3496
|
+
}
|
|
3497
|
+
Insert: {
|
|
3498
|
+
bucket_id: string
|
|
3499
|
+
created_at?: string
|
|
3500
|
+
id?: string
|
|
3501
|
+
name: string
|
|
3502
|
+
updated_at?: string
|
|
3503
|
+
}
|
|
3504
|
+
Update: {
|
|
3505
|
+
bucket_id?: string
|
|
3506
|
+
created_at?: string
|
|
3507
|
+
id?: string
|
|
3508
|
+
name?: string
|
|
3509
|
+
updated_at?: string
|
|
3510
|
+
}
|
|
3511
|
+
Relationships: [
|
|
3512
|
+
{
|
|
3513
|
+
foreignKeyName: "iceberg_namespaces_bucket_id_fkey"
|
|
3514
|
+
columns: ["bucket_id"]
|
|
3515
|
+
isOneToOne: false
|
|
3516
|
+
referencedRelation: "buckets_analytics"
|
|
3517
|
+
referencedColumns: ["id"]
|
|
3518
|
+
},
|
|
3519
|
+
]
|
|
3520
|
+
}
|
|
3521
|
+
iceberg_tables: {
|
|
3522
|
+
Row: {
|
|
3523
|
+
bucket_id: string
|
|
3524
|
+
created_at: string
|
|
3525
|
+
id: string
|
|
3526
|
+
location: string
|
|
3527
|
+
name: string
|
|
3528
|
+
namespace_id: string
|
|
3529
|
+
updated_at: string
|
|
3530
|
+
}
|
|
3531
|
+
Insert: {
|
|
3532
|
+
bucket_id: string
|
|
3533
|
+
created_at?: string
|
|
3534
|
+
id?: string
|
|
3535
|
+
location: string
|
|
3536
|
+
name: string
|
|
3537
|
+
namespace_id: string
|
|
3538
|
+
updated_at?: string
|
|
3539
|
+
}
|
|
3540
|
+
Update: {
|
|
3541
|
+
bucket_id?: string
|
|
3542
|
+
created_at?: string
|
|
3543
|
+
id?: string
|
|
3544
|
+
location?: string
|
|
3545
|
+
name?: string
|
|
3546
|
+
namespace_id?: string
|
|
3547
|
+
updated_at?: string
|
|
3548
|
+
}
|
|
3549
|
+
Relationships: [
|
|
3550
|
+
{
|
|
3551
|
+
foreignKeyName: "iceberg_tables_bucket_id_fkey"
|
|
3552
|
+
columns: ["bucket_id"]
|
|
3553
|
+
isOneToOne: false
|
|
3554
|
+
referencedRelation: "buckets_analytics"
|
|
3555
|
+
referencedColumns: ["id"]
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
foreignKeyName: "iceberg_tables_namespace_id_fkey"
|
|
3559
|
+
columns: ["namespace_id"]
|
|
3560
|
+
isOneToOne: false
|
|
3561
|
+
referencedRelation: "iceberg_namespaces"
|
|
3562
|
+
referencedColumns: ["id"]
|
|
3563
|
+
},
|
|
3564
|
+
]
|
|
3565
|
+
}
|
|
3412
3566
|
migrations: {
|
|
3413
3567
|
Row: {
|
|
3414
3568
|
executed_at: string | null
|
|
@@ -3436,6 +3590,7 @@ export type Database = {
|
|
|
3436
3590
|
created_at: string | null
|
|
3437
3591
|
id: string
|
|
3438
3592
|
last_accessed_at: string | null
|
|
3593
|
+
level: number | null
|
|
3439
3594
|
metadata: Json | null
|
|
3440
3595
|
name: string | null
|
|
3441
3596
|
owner: string | null
|
|
@@ -3450,6 +3605,7 @@ export type Database = {
|
|
|
3450
3605
|
created_at?: string | null
|
|
3451
3606
|
id?: string
|
|
3452
3607
|
last_accessed_at?: string | null
|
|
3608
|
+
level?: number | null
|
|
3453
3609
|
metadata?: Json | null
|
|
3454
3610
|
name?: string | null
|
|
3455
3611
|
owner?: string | null
|
|
@@ -3464,6 +3620,7 @@ export type Database = {
|
|
|
3464
3620
|
created_at?: string | null
|
|
3465
3621
|
id?: string
|
|
3466
3622
|
last_accessed_at?: string | null
|
|
3623
|
+
level?: number | null
|
|
3467
3624
|
metadata?: Json | null
|
|
3468
3625
|
name?: string | null
|
|
3469
3626
|
owner?: string | null
|
|
@@ -3483,6 +3640,38 @@ export type Database = {
|
|
|
3483
3640
|
},
|
|
3484
3641
|
]
|
|
3485
3642
|
}
|
|
3643
|
+
prefixes: {
|
|
3644
|
+
Row: {
|
|
3645
|
+
bucket_id: string
|
|
3646
|
+
created_at: string | null
|
|
3647
|
+
level: number
|
|
3648
|
+
name: string
|
|
3649
|
+
updated_at: string | null
|
|
3650
|
+
}
|
|
3651
|
+
Insert: {
|
|
3652
|
+
bucket_id: string
|
|
3653
|
+
created_at?: string | null
|
|
3654
|
+
level?: number
|
|
3655
|
+
name: string
|
|
3656
|
+
updated_at?: string | null
|
|
3657
|
+
}
|
|
3658
|
+
Update: {
|
|
3659
|
+
bucket_id?: string
|
|
3660
|
+
created_at?: string | null
|
|
3661
|
+
level?: number
|
|
3662
|
+
name?: string
|
|
3663
|
+
updated_at?: string | null
|
|
3664
|
+
}
|
|
3665
|
+
Relationships: [
|
|
3666
|
+
{
|
|
3667
|
+
foreignKeyName: "prefixes_bucketId_fkey"
|
|
3668
|
+
columns: ["bucket_id"]
|
|
3669
|
+
isOneToOne: false
|
|
3670
|
+
referencedRelation: "buckets"
|
|
3671
|
+
referencedColumns: ["id"]
|
|
3672
|
+
},
|
|
3673
|
+
]
|
|
3674
|
+
}
|
|
3486
3675
|
s3_multipart_uploads: {
|
|
3487
3676
|
Row: {
|
|
3488
3677
|
bucket_id: string
|
|
@@ -3586,87 +3775,155 @@ export type Database = {
|
|
|
3586
3775
|
[_ in never]: never
|
|
3587
3776
|
}
|
|
3588
3777
|
Functions: {
|
|
3589
|
-
|
|
3590
|
-
Args: {
|
|
3778
|
+
add_prefixes: {
|
|
3779
|
+
Args: { _bucket_id: string; _name: string }
|
|
3591
3780
|
Returns: undefined
|
|
3592
3781
|
}
|
|
3593
|
-
|
|
3594
|
-
Args: { name: string }
|
|
3595
|
-
Returns:
|
|
3782
|
+
can_insert_object: {
|
|
3783
|
+
Args: { bucketid: string; metadata: Json; name: string; owner: string }
|
|
3784
|
+
Returns: undefined
|
|
3596
3785
|
}
|
|
3597
|
-
|
|
3598
|
-
Args: {
|
|
3599
|
-
Returns:
|
|
3786
|
+
delete_leaf_prefixes: {
|
|
3787
|
+
Args: { bucket_ids: string[]; names: string[] }
|
|
3788
|
+
Returns: undefined
|
|
3600
3789
|
}
|
|
3601
|
-
|
|
3602
|
-
Args: {
|
|
3603
|
-
Returns:
|
|
3790
|
+
delete_prefix: {
|
|
3791
|
+
Args: { _bucket_id: string; _name: string }
|
|
3792
|
+
Returns: boolean
|
|
3604
3793
|
}
|
|
3794
|
+
extension: { Args: { name: string }; Returns: string }
|
|
3795
|
+
filename: { Args: { name: string }; Returns: string }
|
|
3796
|
+
foldername: { Args: { name: string }; Returns: string[] }
|
|
3797
|
+
get_level: { Args: { name: string }; Returns: number }
|
|
3798
|
+
get_prefix: { Args: { name: string }; Returns: string }
|
|
3799
|
+
get_prefixes: { Args: { name: string }; Returns: string[] }
|
|
3605
3800
|
get_size_by_bucket: {
|
|
3606
|
-
Args:
|
|
3801
|
+
Args: never
|
|
3607
3802
|
Returns: {
|
|
3608
|
-
size: number
|
|
3609
3803
|
bucket_id: string
|
|
3804
|
+
size: number
|
|
3610
3805
|
}[]
|
|
3611
3806
|
}
|
|
3612
3807
|
list_multipart_uploads_with_delimiter: {
|
|
3613
3808
|
Args: {
|
|
3614
3809
|
bucket_id: string
|
|
3615
|
-
prefix_param: string
|
|
3616
3810
|
delimiter_param: string
|
|
3617
3811
|
max_keys?: number
|
|
3618
3812
|
next_key_token?: string
|
|
3619
3813
|
next_upload_token?: string
|
|
3814
|
+
prefix_param: string
|
|
3620
3815
|
}
|
|
3621
3816
|
Returns: {
|
|
3622
|
-
key: string
|
|
3623
|
-
id: string
|
|
3624
3817
|
created_at: string
|
|
3818
|
+
id: string
|
|
3819
|
+
key: string
|
|
3625
3820
|
}[]
|
|
3626
3821
|
}
|
|
3627
3822
|
list_objects_with_delimiter: {
|
|
3628
3823
|
Args: {
|
|
3629
3824
|
bucket_id: string
|
|
3630
|
-
prefix_param: string
|
|
3631
3825
|
delimiter_param: string
|
|
3632
3826
|
max_keys?: number
|
|
3633
|
-
start_after?: string
|
|
3634
3827
|
next_token?: string
|
|
3828
|
+
prefix_param: string
|
|
3829
|
+
start_after?: string
|
|
3635
3830
|
}
|
|
3636
3831
|
Returns: {
|
|
3637
|
-
name: string
|
|
3638
3832
|
id: string
|
|
3639
3833
|
metadata: Json
|
|
3834
|
+
name: string
|
|
3640
3835
|
updated_at: string
|
|
3641
3836
|
}[]
|
|
3642
3837
|
}
|
|
3643
|
-
|
|
3644
|
-
Args:
|
|
3645
|
-
Returns:
|
|
3838
|
+
lock_top_prefixes: {
|
|
3839
|
+
Args: { bucket_ids: string[]; names: string[] }
|
|
3840
|
+
Returns: undefined
|
|
3646
3841
|
}
|
|
3842
|
+
operation: { Args: never; Returns: string }
|
|
3647
3843
|
search: {
|
|
3648
3844
|
Args: {
|
|
3649
|
-
prefix: string
|
|
3650
3845
|
bucketname: string
|
|
3846
|
+
levels?: number
|
|
3651
3847
|
limits?: number
|
|
3848
|
+
offsets?: number
|
|
3849
|
+
prefix: string
|
|
3850
|
+
search?: string
|
|
3851
|
+
sortcolumn?: string
|
|
3852
|
+
sortorder?: string
|
|
3853
|
+
}
|
|
3854
|
+
Returns: {
|
|
3855
|
+
created_at: string
|
|
3856
|
+
id: string
|
|
3857
|
+
last_accessed_at: string
|
|
3858
|
+
metadata: Json
|
|
3859
|
+
name: string
|
|
3860
|
+
updated_at: string
|
|
3861
|
+
}[]
|
|
3862
|
+
}
|
|
3863
|
+
search_legacy_v1: {
|
|
3864
|
+
Args: {
|
|
3865
|
+
bucketname: string
|
|
3652
3866
|
levels?: number
|
|
3867
|
+
limits?: number
|
|
3653
3868
|
offsets?: number
|
|
3869
|
+
prefix: string
|
|
3654
3870
|
search?: string
|
|
3655
3871
|
sortcolumn?: string
|
|
3656
3872
|
sortorder?: string
|
|
3657
3873
|
}
|
|
3658
3874
|
Returns: {
|
|
3875
|
+
created_at: string
|
|
3876
|
+
id: string
|
|
3877
|
+
last_accessed_at: string
|
|
3878
|
+
metadata: Json
|
|
3659
3879
|
name: string
|
|
3880
|
+
updated_at: string
|
|
3881
|
+
}[]
|
|
3882
|
+
}
|
|
3883
|
+
search_v1_optimised: {
|
|
3884
|
+
Args: {
|
|
3885
|
+
bucketname: string
|
|
3886
|
+
levels?: number
|
|
3887
|
+
limits?: number
|
|
3888
|
+
offsets?: number
|
|
3889
|
+
prefix: string
|
|
3890
|
+
search?: string
|
|
3891
|
+
sortcolumn?: string
|
|
3892
|
+
sortorder?: string
|
|
3893
|
+
}
|
|
3894
|
+
Returns: {
|
|
3895
|
+
created_at: string
|
|
3660
3896
|
id: string
|
|
3897
|
+
last_accessed_at: string
|
|
3898
|
+
metadata: Json
|
|
3899
|
+
name: string
|
|
3661
3900
|
updated_at: string
|
|
3901
|
+
}[]
|
|
3902
|
+
}
|
|
3903
|
+
search_v2: {
|
|
3904
|
+
Args: {
|
|
3905
|
+
bucket_name: string
|
|
3906
|
+
levels?: number
|
|
3907
|
+
limits?: number
|
|
3908
|
+
prefix: string
|
|
3909
|
+
sort_column?: string
|
|
3910
|
+
sort_column_after?: string
|
|
3911
|
+
sort_order?: string
|
|
3912
|
+
start_after?: string
|
|
3913
|
+
}
|
|
3914
|
+
Returns: {
|
|
3662
3915
|
created_at: string
|
|
3916
|
+
id: string
|
|
3917
|
+
key: string
|
|
3663
3918
|
last_accessed_at: string
|
|
3664
3919
|
metadata: Json
|
|
3920
|
+
name: string
|
|
3921
|
+
updated_at: string
|
|
3665
3922
|
}[]
|
|
3666
3923
|
}
|
|
3667
3924
|
}
|
|
3668
3925
|
Enums: {
|
|
3669
|
-
|
|
3926
|
+
buckettype: "STANDARD" | "ANALYTICS"
|
|
3670
3927
|
}
|
|
3671
3928
|
CompositeTypes: {
|
|
3672
3929
|
[_ in never]: never
|
|
@@ -3674,21 +3931,25 @@ export type Database = {
|
|
|
3674
3931
|
}
|
|
3675
3932
|
}
|
|
3676
3933
|
|
|
3677
|
-
type
|
|
3934
|
+
type DatabaseWithoutInternals = Omit<Database, "__InternalSupabase">
|
|
3935
|
+
|
|
3936
|
+
type DefaultSchema = DatabaseWithoutInternals[Extract<keyof Database, "public">]
|
|
3678
3937
|
|
|
3679
3938
|
export type Tables<
|
|
3680
3939
|
DefaultSchemaTableNameOrOptions extends
|
|
3681
3940
|
| keyof (DefaultSchema["Tables"] & DefaultSchema["Views"])
|
|
3682
|
-
| { schema: keyof
|
|
3941
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
3683
3942
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3684
|
-
schema: keyof
|
|
3943
|
+
schema: keyof DatabaseWithoutInternals
|
|
3685
3944
|
}
|
|
3686
|
-
? keyof (
|
|
3687
|
-
|
|
3945
|
+
? keyof (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3946
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])
|
|
3688
3947
|
: never = never,
|
|
3689
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3690
|
-
|
|
3691
|
-
|
|
3948
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
3949
|
+
schema: keyof DatabaseWithoutInternals
|
|
3950
|
+
}
|
|
3951
|
+
? (DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"] &
|
|
3952
|
+
DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Views"])[TableName] extends {
|
|
3692
3953
|
Row: infer R
|
|
3693
3954
|
}
|
|
3694
3955
|
? R
|
|
@@ -3706,14 +3967,16 @@ export type Tables<
|
|
|
3706
3967
|
export type TablesInsert<
|
|
3707
3968
|
DefaultSchemaTableNameOrOptions extends
|
|
3708
3969
|
| keyof DefaultSchema["Tables"]
|
|
3709
|
-
| { schema: keyof
|
|
3970
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
3710
3971
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3711
|
-
schema: keyof
|
|
3972
|
+
schema: keyof DatabaseWithoutInternals
|
|
3712
3973
|
}
|
|
3713
|
-
? keyof
|
|
3974
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3714
3975
|
: never = never,
|
|
3715
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3716
|
-
|
|
3976
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
3977
|
+
schema: keyof DatabaseWithoutInternals
|
|
3978
|
+
}
|
|
3979
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3717
3980
|
Insert: infer I
|
|
3718
3981
|
}
|
|
3719
3982
|
? I
|
|
@@ -3729,14 +3992,16 @@ export type TablesInsert<
|
|
|
3729
3992
|
export type TablesUpdate<
|
|
3730
3993
|
DefaultSchemaTableNameOrOptions extends
|
|
3731
3994
|
| keyof DefaultSchema["Tables"]
|
|
3732
|
-
| { schema: keyof
|
|
3995
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
3733
3996
|
TableName extends DefaultSchemaTableNameOrOptions extends {
|
|
3734
|
-
schema: keyof
|
|
3997
|
+
schema: keyof DatabaseWithoutInternals
|
|
3735
3998
|
}
|
|
3736
|
-
? keyof
|
|
3999
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"]
|
|
3737
4000
|
: never = never,
|
|
3738
|
-
> = DefaultSchemaTableNameOrOptions extends {
|
|
3739
|
-
|
|
4001
|
+
> = DefaultSchemaTableNameOrOptions extends {
|
|
4002
|
+
schema: keyof DatabaseWithoutInternals
|
|
4003
|
+
}
|
|
4004
|
+
? DatabaseWithoutInternals[DefaultSchemaTableNameOrOptions["schema"]]["Tables"][TableName] extends {
|
|
3740
4005
|
Update: infer U
|
|
3741
4006
|
}
|
|
3742
4007
|
? U
|
|
@@ -3752,28 +4017,33 @@ export type TablesUpdate<
|
|
|
3752
4017
|
export type Enums<
|
|
3753
4018
|
DefaultSchemaEnumNameOrOptions extends
|
|
3754
4019
|
| keyof DefaultSchema["Enums"]
|
|
3755
|
-
| { schema: keyof
|
|
4020
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
3756
4021
|
EnumName extends DefaultSchemaEnumNameOrOptions extends {
|
|
3757
|
-
schema: keyof
|
|
4022
|
+
schema: keyof DatabaseWithoutInternals
|
|
3758
4023
|
}
|
|
3759
|
-
? keyof
|
|
4024
|
+
? keyof DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"]
|
|
3760
4025
|
: never = never,
|
|
3761
|
-
> = DefaultSchemaEnumNameOrOptions extends {
|
|
3762
|
-
|
|
4026
|
+
> = DefaultSchemaEnumNameOrOptions extends {
|
|
4027
|
+
schema: keyof DatabaseWithoutInternals
|
|
4028
|
+
}
|
|
4029
|
+
? DatabaseWithoutInternals[DefaultSchemaEnumNameOrOptions["schema"]]["Enums"][EnumName]
|
|
3763
4030
|
: DefaultSchemaEnumNameOrOptions extends keyof DefaultSchema["Enums"]
|
|
3764
4031
|
? DefaultSchema["Enums"][DefaultSchemaEnumNameOrOptions]
|
|
3765
4032
|
: never
|
|
4033
|
+
|
|
3766
4034
|
export type CompositeTypes<
|
|
3767
4035
|
PublicCompositeTypeNameOrOptions extends
|
|
3768
4036
|
| keyof DefaultSchema["CompositeTypes"]
|
|
3769
|
-
| { schema: keyof
|
|
4037
|
+
| { schema: keyof DatabaseWithoutInternals },
|
|
3770
4038
|
CompositeTypeName extends PublicCompositeTypeNameOrOptions extends {
|
|
3771
|
-
schema: keyof
|
|
4039
|
+
schema: keyof DatabaseWithoutInternals
|
|
3772
4040
|
}
|
|
3773
|
-
? keyof
|
|
4041
|
+
? keyof DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"]
|
|
3774
4042
|
: never = never,
|
|
3775
|
-
> = PublicCompositeTypeNameOrOptions extends {
|
|
3776
|
-
|
|
4043
|
+
> = PublicCompositeTypeNameOrOptions extends {
|
|
4044
|
+
schema: keyof DatabaseWithoutInternals
|
|
4045
|
+
}
|
|
4046
|
+
? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName]
|
|
3777
4047
|
: PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"]
|
|
3778
4048
|
? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions]
|
|
3779
4049
|
: never
|
|
@@ -3848,13 +4118,17 @@ export const Constants = {
|
|
|
3848
4118
|
"jira",
|
|
3849
4119
|
"salesforce",
|
|
3850
4120
|
"zohodesk",
|
|
3851
|
-
"zohocrm",
|
|
3852
4121
|
"gsheets",
|
|
4122
|
+
"zohocrm",
|
|
3853
4123
|
],
|
|
3854
4124
|
enum_member_role: ["admin", "member"],
|
|
3855
4125
|
},
|
|
3856
4126
|
},
|
|
3857
4127
|
storage: {
|
|
3858
|
-
Enums: {
|
|
4128
|
+
Enums: {
|
|
4129
|
+
buckettype: ["STANDARD", "ANALYTICS"],
|
|
4130
|
+
},
|
|
3859
4131
|
},
|
|
3860
|
-
} as const
|
|
4132
|
+
} as const
|
|
4133
|
+
|
|
4134
|
+
|