@capgo/cli 4.0.12 → 4.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/bun.lockb +0 -0
- package/capacitor.config.ts +2 -2
- package/dist/index.js +654 -658
- package/eslint.config.js +3 -0
- package/package.json +3 -2
- package/src/api/app.ts +32 -39
- package/src/api/channels.ts +53 -49
- package/src/api/crypto.ts +83 -80
- package/src/api/devices_override.ts +12 -13
- package/src/api/update.ts +10 -10
- package/src/api/versions.ts +43 -42
- package/src/app/add.ts +61 -53
- package/src/app/debug.ts +153 -151
- package/src/app/delete.ts +61 -59
- package/src/app/info.ts +74 -77
- package/src/app/list.ts +33 -31
- package/src/app/set.ts +85 -82
- package/src/bundle/check.ts +30 -32
- package/src/bundle/cleanup.ts +71 -74
- package/src/bundle/compatibility.ts +52 -55
- package/src/bundle/decrypt.ts +21 -19
- package/src/bundle/delete.ts +27 -25
- package/src/bundle/encrypt.ts +23 -21
- package/src/bundle/list.ts +42 -40
- package/src/bundle/unlink.ts +69 -60
- package/src/bundle/upload.ts +170 -149
- package/src/bundle/zip.ts +122 -118
- package/src/channel/add.ts +62 -60
- package/src/channel/currentBundle.ts +56 -56
- package/src/channel/delete.ts +46 -43
- package/src/channel/list.ts +23 -21
- package/src/channel/set.ts +76 -68
- package/src/index.ts +55 -57
- package/src/init.ts +254 -252
- package/src/key.ts +56 -52
- package/src/login.ts +30 -28
- package/src/types/capacitor__cli.d.ts +2 -3
- package/src/types/supabase.types.ts +505 -505
- package/src/utils.ts +560 -571
- package/.eslintrc +0 -71
|
@@ -6,7 +6,7 @@ export type Json =
|
|
|
6
6
|
| { [key: string]: Json | undefined }
|
|
7
7
|
| Json[]
|
|
8
8
|
|
|
9
|
-
export
|
|
9
|
+
export interface Database {
|
|
10
10
|
public: {
|
|
11
11
|
Tables: {
|
|
12
12
|
apikeys: {
|
|
@@ -14,7 +14,7 @@ export type Database = {
|
|
|
14
14
|
created_at: string | null
|
|
15
15
|
id: number
|
|
16
16
|
key: string
|
|
17
|
-
mode: Database[
|
|
17
|
+
mode: Database['public']['Enums']['key_mode']
|
|
18
18
|
updated_at: string | null
|
|
19
19
|
user_id: string
|
|
20
20
|
}
|
|
@@ -22,7 +22,7 @@ export type Database = {
|
|
|
22
22
|
created_at?: string | null
|
|
23
23
|
id?: number
|
|
24
24
|
key: string
|
|
25
|
-
mode: Database[
|
|
25
|
+
mode: Database['public']['Enums']['key_mode']
|
|
26
26
|
updated_at?: string | null
|
|
27
27
|
user_id: string
|
|
28
28
|
}
|
|
@@ -30,18 +30,18 @@ export type Database = {
|
|
|
30
30
|
created_at?: string | null
|
|
31
31
|
id?: number
|
|
32
32
|
key?: string
|
|
33
|
-
mode?: Database[
|
|
33
|
+
mode?: Database['public']['Enums']['key_mode']
|
|
34
34
|
updated_at?: string | null
|
|
35
35
|
user_id?: string
|
|
36
36
|
}
|
|
37
37
|
Relationships: [
|
|
38
38
|
{
|
|
39
|
-
foreignKeyName:
|
|
40
|
-
columns: [
|
|
39
|
+
foreignKeyName: 'apikeys_user_id_fkey'
|
|
40
|
+
columns: ['user_id']
|
|
41
41
|
isOneToOne: false
|
|
42
|
-
referencedRelation:
|
|
43
|
-
referencedColumns: [
|
|
44
|
-
}
|
|
42
|
+
referencedRelation: 'users'
|
|
43
|
+
referencedColumns: ['id']
|
|
44
|
+
},
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
app_stats: {
|
|
@@ -95,19 +95,19 @@ export type Database = {
|
|
|
95
95
|
}
|
|
96
96
|
Relationships: [
|
|
97
97
|
{
|
|
98
|
-
foreignKeyName:
|
|
99
|
-
columns: [
|
|
98
|
+
foreignKeyName: 'app_stats_app_id_fkey'
|
|
99
|
+
columns: ['app_id']
|
|
100
100
|
isOneToOne: false
|
|
101
|
-
referencedRelation:
|
|
102
|
-
referencedColumns: [
|
|
101
|
+
referencedRelation: 'apps'
|
|
102
|
+
referencedColumns: ['app_id']
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
|
-
foreignKeyName:
|
|
106
|
-
columns: [
|
|
105
|
+
foreignKeyName: 'app_stats_user_id_fkey'
|
|
106
|
+
columns: ['user_id']
|
|
107
107
|
isOneToOne: false
|
|
108
|
-
referencedRelation:
|
|
109
|
-
referencedColumns: [
|
|
110
|
-
}
|
|
108
|
+
referencedRelation: 'users'
|
|
109
|
+
referencedColumns: ['id']
|
|
110
|
+
},
|
|
111
111
|
]
|
|
112
112
|
}
|
|
113
113
|
app_usage: {
|
|
@@ -203,19 +203,19 @@ export type Database = {
|
|
|
203
203
|
}
|
|
204
204
|
Relationships: [
|
|
205
205
|
{
|
|
206
|
-
foreignKeyName:
|
|
207
|
-
columns: [
|
|
206
|
+
foreignKeyName: 'app_versions_app_id_fkey'
|
|
207
|
+
columns: ['app_id']
|
|
208
208
|
isOneToOne: false
|
|
209
|
-
referencedRelation:
|
|
210
|
-
referencedColumns: [
|
|
209
|
+
referencedRelation: 'apps'
|
|
210
|
+
referencedColumns: ['app_id']
|
|
211
211
|
},
|
|
212
212
|
{
|
|
213
|
-
foreignKeyName:
|
|
214
|
-
columns: [
|
|
213
|
+
foreignKeyName: 'app_versions_user_id_fkey'
|
|
214
|
+
columns: ['user_id']
|
|
215
215
|
isOneToOne: false
|
|
216
|
-
referencedRelation:
|
|
217
|
-
referencedColumns: [
|
|
218
|
-
}
|
|
216
|
+
referencedRelation: 'users'
|
|
217
|
+
referencedColumns: ['id']
|
|
218
|
+
},
|
|
219
219
|
]
|
|
220
220
|
}
|
|
221
221
|
app_versions_meta: {
|
|
@@ -260,26 +260,26 @@ export type Database = {
|
|
|
260
260
|
}
|
|
261
261
|
Relationships: [
|
|
262
262
|
{
|
|
263
|
-
foreignKeyName:
|
|
264
|
-
columns: [
|
|
263
|
+
foreignKeyName: 'app_versions_meta_app_id_fkey'
|
|
264
|
+
columns: ['app_id']
|
|
265
265
|
isOneToOne: false
|
|
266
|
-
referencedRelation:
|
|
267
|
-
referencedColumns: [
|
|
266
|
+
referencedRelation: 'apps'
|
|
267
|
+
referencedColumns: ['app_id']
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
|
-
foreignKeyName:
|
|
271
|
-
columns: [
|
|
270
|
+
foreignKeyName: 'app_versions_meta_id_fkey'
|
|
271
|
+
columns: ['id']
|
|
272
272
|
isOneToOne: true
|
|
273
|
-
referencedRelation:
|
|
274
|
-
referencedColumns: [
|
|
273
|
+
referencedRelation: 'app_versions'
|
|
274
|
+
referencedColumns: ['id']
|
|
275
275
|
},
|
|
276
276
|
{
|
|
277
|
-
foreignKeyName:
|
|
278
|
-
columns: [
|
|
277
|
+
foreignKeyName: 'app_versions_meta_user_id_fkey'
|
|
278
|
+
columns: ['user_id']
|
|
279
279
|
isOneToOne: false
|
|
280
|
-
referencedRelation:
|
|
281
|
-
referencedColumns: [
|
|
282
|
-
}
|
|
280
|
+
referencedRelation: 'users'
|
|
281
|
+
referencedColumns: ['id']
|
|
282
|
+
},
|
|
283
283
|
]
|
|
284
284
|
}
|
|
285
285
|
apps: {
|
|
@@ -318,12 +318,12 @@ export type Database = {
|
|
|
318
318
|
}
|
|
319
319
|
Relationships: [
|
|
320
320
|
{
|
|
321
|
-
foreignKeyName:
|
|
322
|
-
columns: [
|
|
321
|
+
foreignKeyName: 'apps_user_id_fkey'
|
|
322
|
+
columns: ['user_id']
|
|
323
323
|
isOneToOne: false
|
|
324
|
-
referencedRelation:
|
|
325
|
-
referencedColumns: [
|
|
326
|
-
}
|
|
324
|
+
referencedRelation: 'users'
|
|
325
|
+
referencedColumns: ['id']
|
|
326
|
+
},
|
|
327
327
|
]
|
|
328
328
|
}
|
|
329
329
|
channel_devices: {
|
|
@@ -356,26 +356,26 @@ export type Database = {
|
|
|
356
356
|
}
|
|
357
357
|
Relationships: [
|
|
358
358
|
{
|
|
359
|
-
foreignKeyName:
|
|
360
|
-
columns: [
|
|
359
|
+
foreignKeyName: 'channel_devices_app_id_fkey'
|
|
360
|
+
columns: ['app_id']
|
|
361
361
|
isOneToOne: false
|
|
362
|
-
referencedRelation:
|
|
363
|
-
referencedColumns: [
|
|
362
|
+
referencedRelation: 'apps'
|
|
363
|
+
referencedColumns: ['app_id']
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
foreignKeyName:
|
|
367
|
-
columns: [
|
|
366
|
+
foreignKeyName: 'channel_devices_channel_id_fkey'
|
|
367
|
+
columns: ['channel_id']
|
|
368
368
|
isOneToOne: false
|
|
369
|
-
referencedRelation:
|
|
370
|
-
referencedColumns: [
|
|
369
|
+
referencedRelation: 'channels'
|
|
370
|
+
referencedColumns: ['id']
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
|
-
foreignKeyName:
|
|
374
|
-
columns: [
|
|
373
|
+
foreignKeyName: 'channel_devices_created_by_fkey'
|
|
374
|
+
columns: ['created_by']
|
|
375
375
|
isOneToOne: false
|
|
376
|
-
referencedRelation:
|
|
377
|
-
referencedColumns: [
|
|
378
|
-
}
|
|
376
|
+
referencedRelation: 'users'
|
|
377
|
+
referencedColumns: ['id']
|
|
378
|
+
},
|
|
379
379
|
]
|
|
380
380
|
}
|
|
381
381
|
channels: {
|
|
@@ -388,7 +388,7 @@ export type Database = {
|
|
|
388
388
|
beta: boolean
|
|
389
389
|
created_at: string
|
|
390
390
|
created_by: string
|
|
391
|
-
disableAutoUpdate: Database[
|
|
391
|
+
disableAutoUpdate: Database['public']['Enums']['disable_update']
|
|
392
392
|
disableAutoUpdateUnderNative: boolean
|
|
393
393
|
enable_progressive_deploy: boolean
|
|
394
394
|
enableAbTesting: boolean
|
|
@@ -410,7 +410,7 @@ export type Database = {
|
|
|
410
410
|
beta?: boolean
|
|
411
411
|
created_at?: string
|
|
412
412
|
created_by: string
|
|
413
|
-
disableAutoUpdate?: Database[
|
|
413
|
+
disableAutoUpdate?: Database['public']['Enums']['disable_update']
|
|
414
414
|
disableAutoUpdateUnderNative?: boolean
|
|
415
415
|
enable_progressive_deploy?: boolean
|
|
416
416
|
enableAbTesting?: boolean
|
|
@@ -432,7 +432,7 @@ export type Database = {
|
|
|
432
432
|
beta?: boolean
|
|
433
433
|
created_at?: string
|
|
434
434
|
created_by?: string
|
|
435
|
-
disableAutoUpdate?: Database[
|
|
435
|
+
disableAutoUpdate?: Database['public']['Enums']['disable_update']
|
|
436
436
|
disableAutoUpdateUnderNative?: boolean
|
|
437
437
|
enable_progressive_deploy?: boolean
|
|
438
438
|
enableAbTesting?: boolean
|
|
@@ -447,33 +447,33 @@ export type Database = {
|
|
|
447
447
|
}
|
|
448
448
|
Relationships: [
|
|
449
449
|
{
|
|
450
|
-
foreignKeyName:
|
|
451
|
-
columns: [
|
|
450
|
+
foreignKeyName: 'channels_app_id_fkey'
|
|
451
|
+
columns: ['app_id']
|
|
452
452
|
isOneToOne: false
|
|
453
|
-
referencedRelation:
|
|
454
|
-
referencedColumns: [
|
|
453
|
+
referencedRelation: 'apps'
|
|
454
|
+
referencedColumns: ['app_id']
|
|
455
455
|
},
|
|
456
456
|
{
|
|
457
|
-
foreignKeyName:
|
|
458
|
-
columns: [
|
|
457
|
+
foreignKeyName: 'channels_created_by_fkey'
|
|
458
|
+
columns: ['created_by']
|
|
459
459
|
isOneToOne: false
|
|
460
|
-
referencedRelation:
|
|
461
|
-
referencedColumns: [
|
|
460
|
+
referencedRelation: 'users'
|
|
461
|
+
referencedColumns: ['id']
|
|
462
462
|
},
|
|
463
463
|
{
|
|
464
|
-
foreignKeyName:
|
|
465
|
-
columns: [
|
|
464
|
+
foreignKeyName: 'channels_secondVersion_fkey'
|
|
465
|
+
columns: ['secondVersion']
|
|
466
466
|
isOneToOne: false
|
|
467
|
-
referencedRelation:
|
|
468
|
-
referencedColumns: [
|
|
467
|
+
referencedRelation: 'app_versions'
|
|
468
|
+
referencedColumns: ['id']
|
|
469
469
|
},
|
|
470
470
|
{
|
|
471
|
-
foreignKeyName:
|
|
472
|
-
columns: [
|
|
471
|
+
foreignKeyName: 'channels_version_fkey'
|
|
472
|
+
columns: ['version']
|
|
473
473
|
isOneToOne: false
|
|
474
|
-
referencedRelation:
|
|
475
|
-
referencedColumns: [
|
|
476
|
-
}
|
|
474
|
+
referencedRelation: 'app_versions'
|
|
475
|
+
referencedColumns: ['id']
|
|
476
|
+
},
|
|
477
477
|
]
|
|
478
478
|
}
|
|
479
479
|
clickhouse_app_usage: {
|
|
@@ -557,7 +557,7 @@ export type Database = {
|
|
|
557
557
|
is_emulator: boolean | null
|
|
558
558
|
is_prod: boolean | null
|
|
559
559
|
os_version: string | null
|
|
560
|
-
platform: Database[
|
|
560
|
+
platform: Database['public']['Enums']['platform_os'] | null
|
|
561
561
|
plugin_version: string
|
|
562
562
|
updated_at: string
|
|
563
563
|
version: number
|
|
@@ -571,7 +571,7 @@ export type Database = {
|
|
|
571
571
|
is_emulator?: boolean | null
|
|
572
572
|
is_prod?: boolean | null
|
|
573
573
|
os_version?: string | null
|
|
574
|
-
platform?: Database[
|
|
574
|
+
platform?: Database['public']['Enums']['platform_os'] | null
|
|
575
575
|
plugin_version?: string
|
|
576
576
|
updated_at: string
|
|
577
577
|
version: number
|
|
@@ -585,7 +585,7 @@ export type Database = {
|
|
|
585
585
|
is_emulator?: boolean | null
|
|
586
586
|
is_prod?: boolean | null
|
|
587
587
|
os_version?: string | null
|
|
588
|
-
platform?: Database[
|
|
588
|
+
platform?: Database['public']['Enums']['platform_os'] | null
|
|
589
589
|
plugin_version?: string
|
|
590
590
|
updated_at?: string
|
|
591
591
|
version?: number
|
|
@@ -623,26 +623,26 @@ export type Database = {
|
|
|
623
623
|
}
|
|
624
624
|
Relationships: [
|
|
625
625
|
{
|
|
626
|
-
foreignKeyName:
|
|
627
|
-
columns: [
|
|
626
|
+
foreignKeyName: 'devices_override_app_id_fkey'
|
|
627
|
+
columns: ['app_id']
|
|
628
628
|
isOneToOne: false
|
|
629
|
-
referencedRelation:
|
|
630
|
-
referencedColumns: [
|
|
629
|
+
referencedRelation: 'apps'
|
|
630
|
+
referencedColumns: ['app_id']
|
|
631
631
|
},
|
|
632
632
|
{
|
|
633
|
-
foreignKeyName:
|
|
634
|
-
columns: [
|
|
633
|
+
foreignKeyName: 'devices_override_created_by_fkey'
|
|
634
|
+
columns: ['created_by']
|
|
635
635
|
isOneToOne: false
|
|
636
|
-
referencedRelation:
|
|
637
|
-
referencedColumns: [
|
|
636
|
+
referencedRelation: 'users'
|
|
637
|
+
referencedColumns: ['id']
|
|
638
638
|
},
|
|
639
639
|
{
|
|
640
|
-
foreignKeyName:
|
|
641
|
-
columns: [
|
|
640
|
+
foreignKeyName: 'devices_override_version_fkey'
|
|
641
|
+
columns: ['version']
|
|
642
642
|
isOneToOne: false
|
|
643
|
-
referencedRelation:
|
|
644
|
-
referencedColumns: [
|
|
645
|
-
}
|
|
643
|
+
referencedRelation: 'app_versions'
|
|
644
|
+
referencedColumns: ['id']
|
|
645
|
+
},
|
|
646
646
|
]
|
|
647
647
|
}
|
|
648
648
|
global_stats: {
|
|
@@ -697,7 +697,7 @@ export type Database = {
|
|
|
697
697
|
job_type: string
|
|
698
698
|
payload: string
|
|
699
699
|
request_id: number | null
|
|
700
|
-
status: Database[
|
|
700
|
+
status: Database['public']['Enums']['queue_job_status']
|
|
701
701
|
}
|
|
702
702
|
Insert: {
|
|
703
703
|
created_at?: string | null
|
|
@@ -708,7 +708,7 @@ export type Database = {
|
|
|
708
708
|
job_type: string
|
|
709
709
|
payload: string
|
|
710
710
|
request_id?: number | null
|
|
711
|
-
status?: Database[
|
|
711
|
+
status?: Database['public']['Enums']['queue_job_status']
|
|
712
712
|
}
|
|
713
713
|
Update: {
|
|
714
714
|
created_at?: string | null
|
|
@@ -719,7 +719,7 @@ export type Database = {
|
|
|
719
719
|
job_type?: string
|
|
720
720
|
payload?: string
|
|
721
721
|
request_id?: number | null
|
|
722
|
-
status?: Database[
|
|
722
|
+
status?: Database['public']['Enums']['queue_job_status']
|
|
723
723
|
}
|
|
724
724
|
Relationships: []
|
|
725
725
|
}
|
|
@@ -750,12 +750,12 @@ export type Database = {
|
|
|
750
750
|
}
|
|
751
751
|
Relationships: [
|
|
752
752
|
{
|
|
753
|
-
foreignKeyName:
|
|
754
|
-
columns: [
|
|
753
|
+
foreignKeyName: 'notifications_user_id_fkey'
|
|
754
|
+
columns: ['user_id']
|
|
755
755
|
isOneToOne: false
|
|
756
|
-
referencedRelation:
|
|
757
|
-
referencedColumns: [
|
|
758
|
-
}
|
|
756
|
+
referencedRelation: 'users'
|
|
757
|
+
referencedColumns: ['id']
|
|
758
|
+
},
|
|
759
759
|
]
|
|
760
760
|
}
|
|
761
761
|
org_users: {
|
|
@@ -767,7 +767,7 @@ export type Database = {
|
|
|
767
767
|
org_id: string
|
|
768
768
|
updated_at: string | null
|
|
769
769
|
user_id: string
|
|
770
|
-
user_right: Database[
|
|
770
|
+
user_right: Database['public']['Enums']['user_min_right'] | null
|
|
771
771
|
}
|
|
772
772
|
Insert: {
|
|
773
773
|
app_id?: string | null
|
|
@@ -777,7 +777,7 @@ export type Database = {
|
|
|
777
777
|
org_id: string
|
|
778
778
|
updated_at?: string | null
|
|
779
779
|
user_id: string
|
|
780
|
-
user_right?: Database[
|
|
780
|
+
user_right?: Database['public']['Enums']['user_min_right'] | null
|
|
781
781
|
}
|
|
782
782
|
Update: {
|
|
783
783
|
app_id?: string | null
|
|
@@ -787,37 +787,37 @@ export type Database = {
|
|
|
787
787
|
org_id?: string
|
|
788
788
|
updated_at?: string | null
|
|
789
789
|
user_id?: string
|
|
790
|
-
user_right?: Database[
|
|
790
|
+
user_right?: Database['public']['Enums']['user_min_right'] | null
|
|
791
791
|
}
|
|
792
792
|
Relationships: [
|
|
793
793
|
{
|
|
794
|
-
foreignKeyName:
|
|
795
|
-
columns: [
|
|
794
|
+
foreignKeyName: 'org_users_app_id_fkey'
|
|
795
|
+
columns: ['app_id']
|
|
796
796
|
isOneToOne: false
|
|
797
|
-
referencedRelation:
|
|
798
|
-
referencedColumns: [
|
|
797
|
+
referencedRelation: 'apps'
|
|
798
|
+
referencedColumns: ['app_id']
|
|
799
799
|
},
|
|
800
800
|
{
|
|
801
|
-
foreignKeyName:
|
|
802
|
-
columns: [
|
|
801
|
+
foreignKeyName: 'org_users_channel_id_fkey'
|
|
802
|
+
columns: ['channel_id']
|
|
803
803
|
isOneToOne: false
|
|
804
|
-
referencedRelation:
|
|
805
|
-
referencedColumns: [
|
|
804
|
+
referencedRelation: 'channels'
|
|
805
|
+
referencedColumns: ['id']
|
|
806
806
|
},
|
|
807
807
|
{
|
|
808
|
-
foreignKeyName:
|
|
809
|
-
columns: [
|
|
808
|
+
foreignKeyName: 'org_users_org_id_fkey'
|
|
809
|
+
columns: ['org_id']
|
|
810
810
|
isOneToOne: false
|
|
811
|
-
referencedRelation:
|
|
812
|
-
referencedColumns: [
|
|
811
|
+
referencedRelation: 'orgs'
|
|
812
|
+
referencedColumns: ['id']
|
|
813
813
|
},
|
|
814
814
|
{
|
|
815
|
-
foreignKeyName:
|
|
816
|
-
columns: [
|
|
815
|
+
foreignKeyName: 'org_users_user_id_fkey'
|
|
816
|
+
columns: ['user_id']
|
|
817
817
|
isOneToOne: false
|
|
818
|
-
referencedRelation:
|
|
819
|
-
referencedColumns: [
|
|
820
|
-
}
|
|
818
|
+
referencedRelation: 'users'
|
|
819
|
+
referencedColumns: ['id']
|
|
820
|
+
},
|
|
821
821
|
]
|
|
822
822
|
}
|
|
823
823
|
orgs: {
|
|
@@ -847,12 +847,12 @@ export type Database = {
|
|
|
847
847
|
}
|
|
848
848
|
Relationships: [
|
|
849
849
|
{
|
|
850
|
-
foreignKeyName:
|
|
851
|
-
columns: [
|
|
850
|
+
foreignKeyName: 'orgs_created_by_fkey'
|
|
851
|
+
columns: ['created_by']
|
|
852
852
|
isOneToOne: false
|
|
853
|
-
referencedRelation:
|
|
854
|
-
referencedColumns: [
|
|
855
|
-
}
|
|
853
|
+
referencedRelation: 'users'
|
|
854
|
+
referencedColumns: ['id']
|
|
855
|
+
},
|
|
856
856
|
]
|
|
857
857
|
}
|
|
858
858
|
plans: {
|
|
@@ -930,7 +930,7 @@ export type Database = {
|
|
|
930
930
|
app_id: string
|
|
931
931
|
created_at: string
|
|
932
932
|
device_id: string
|
|
933
|
-
platform: Database[
|
|
933
|
+
platform: Database['public']['Enums']['platform_os']
|
|
934
934
|
version: number
|
|
935
935
|
version_build: string
|
|
936
936
|
}
|
|
@@ -939,7 +939,7 @@ export type Database = {
|
|
|
939
939
|
app_id: string
|
|
940
940
|
created_at: string
|
|
941
941
|
device_id: string
|
|
942
|
-
platform: Database[
|
|
942
|
+
platform: Database['public']['Enums']['platform_os']
|
|
943
943
|
version: number
|
|
944
944
|
version_build: string
|
|
945
945
|
}
|
|
@@ -948,7 +948,7 @@ export type Database = {
|
|
|
948
948
|
app_id?: string
|
|
949
949
|
created_at?: string
|
|
950
950
|
device_id?: string
|
|
951
|
-
platform?: Database[
|
|
951
|
+
platform?: Database['public']['Enums']['platform_os']
|
|
952
952
|
version?: number
|
|
953
953
|
version_build?: string
|
|
954
954
|
}
|
|
@@ -1061,7 +1061,7 @@ export type Database = {
|
|
|
1061
1061
|
plan_usage: number | null
|
|
1062
1062
|
price_id: string | null
|
|
1063
1063
|
product_id: string
|
|
1064
|
-
status: Database[
|
|
1064
|
+
status: Database['public']['Enums']['stripe_status'] | null
|
|
1065
1065
|
subscription_anchor_end: string
|
|
1066
1066
|
subscription_anchor_start: string
|
|
1067
1067
|
subscription_id: string | null
|
|
@@ -1076,7 +1076,7 @@ export type Database = {
|
|
|
1076
1076
|
plan_usage?: number | null
|
|
1077
1077
|
price_id?: string | null
|
|
1078
1078
|
product_id?: string
|
|
1079
|
-
status?: Database[
|
|
1079
|
+
status?: Database['public']['Enums']['stripe_status'] | null
|
|
1080
1080
|
subscription_anchor_end?: string
|
|
1081
1081
|
subscription_anchor_start?: string
|
|
1082
1082
|
subscription_id?: string | null
|
|
@@ -1091,7 +1091,7 @@ export type Database = {
|
|
|
1091
1091
|
plan_usage?: number | null
|
|
1092
1092
|
price_id?: string | null
|
|
1093
1093
|
product_id?: string
|
|
1094
|
-
status?: Database[
|
|
1094
|
+
status?: Database['public']['Enums']['stripe_status'] | null
|
|
1095
1095
|
subscription_anchor_end?: string
|
|
1096
1096
|
subscription_anchor_start?: string
|
|
1097
1097
|
subscription_id?: string | null
|
|
@@ -1101,12 +1101,12 @@ export type Database = {
|
|
|
1101
1101
|
}
|
|
1102
1102
|
Relationships: [
|
|
1103
1103
|
{
|
|
1104
|
-
foreignKeyName:
|
|
1105
|
-
columns: [
|
|
1104
|
+
foreignKeyName: 'stripe_info_product_id_fkey'
|
|
1105
|
+
columns: ['product_id']
|
|
1106
1106
|
isOneToOne: false
|
|
1107
|
-
referencedRelation:
|
|
1108
|
-
referencedColumns: [
|
|
1109
|
-
}
|
|
1107
|
+
referencedRelation: 'plans'
|
|
1108
|
+
referencedColumns: ['stripe_id']
|
|
1109
|
+
},
|
|
1110
1110
|
]
|
|
1111
1111
|
}
|
|
1112
1112
|
users: {
|
|
@@ -1157,19 +1157,19 @@ export type Database = {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
Relationships: [
|
|
1159
1159
|
{
|
|
1160
|
-
foreignKeyName:
|
|
1161
|
-
columns: [
|
|
1160
|
+
foreignKeyName: 'users_customer_id_fkey'
|
|
1161
|
+
columns: ['customer_id']
|
|
1162
1162
|
isOneToOne: true
|
|
1163
|
-
referencedRelation:
|
|
1164
|
-
referencedColumns: [
|
|
1163
|
+
referencedRelation: 'stripe_info'
|
|
1164
|
+
referencedColumns: ['customer_id']
|
|
1165
1165
|
},
|
|
1166
1166
|
{
|
|
1167
|
-
foreignKeyName:
|
|
1168
|
-
columns: [
|
|
1167
|
+
foreignKeyName: 'users_id_fkey'
|
|
1168
|
+
columns: ['id']
|
|
1169
1169
|
isOneToOne: true
|
|
1170
|
-
referencedRelation:
|
|
1171
|
-
referencedColumns: [
|
|
1172
|
-
}
|
|
1170
|
+
referencedRelation: 'users'
|
|
1171
|
+
referencedColumns: ['id']
|
|
1172
|
+
},
|
|
1173
1173
|
]
|
|
1174
1174
|
}
|
|
1175
1175
|
workers: {
|
|
@@ -1208,24 +1208,24 @@ export type Database = {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
check_min_rights:
|
|
1210
1210
|
| {
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
}
|
|
1217
|
-
Returns: boolean
|
|
1211
|
+
Args: {
|
|
1212
|
+
min_right: Database['public']['Enums']['user_min_right']
|
|
1213
|
+
org_id: string
|
|
1214
|
+
app_id: string
|
|
1215
|
+
channel_id: number
|
|
1218
1216
|
}
|
|
1217
|
+
Returns: boolean
|
|
1218
|
+
}
|
|
1219
1219
|
| {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
}
|
|
1227
|
-
Returns: boolean
|
|
1220
|
+
Args: {
|
|
1221
|
+
min_right: Database['public']['Enums']['user_min_right']
|
|
1222
|
+
user_id: string
|
|
1223
|
+
org_id: string
|
|
1224
|
+
app_id: string
|
|
1225
|
+
channel_id: number
|
|
1228
1226
|
}
|
|
1227
|
+
Returns: boolean
|
|
1228
|
+
}
|
|
1229
1229
|
convert_bytes_to_gb: {
|
|
1230
1230
|
Args: {
|
|
1231
1231
|
byt: number
|
|
@@ -1358,47 +1358,47 @@ export type Database = {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
get_current_plan_max:
|
|
1360
1360
|
| {
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1361
|
+
Args: Record<PropertyKey, never>
|
|
1362
|
+
Returns: string
|
|
1363
|
+
}
|
|
1364
1364
|
| {
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
}
|
|
1368
|
-
Returns: {
|
|
1369
|
-
mau: number
|
|
1370
|
-
bandwidth: number
|
|
1371
|
-
storage: number
|
|
1372
|
-
}[]
|
|
1365
|
+
Args: {
|
|
1366
|
+
userid: string
|
|
1373
1367
|
}
|
|
1368
|
+
Returns: {
|
|
1369
|
+
mau: number
|
|
1370
|
+
bandwidth: number
|
|
1371
|
+
storage: number
|
|
1372
|
+
}[]
|
|
1373
|
+
}
|
|
1374
1374
|
get_current_plan_name:
|
|
1375
1375
|
| {
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1376
|
+
Args: Record<PropertyKey, never>
|
|
1377
|
+
Returns: string
|
|
1378
|
+
}
|
|
1379
1379
|
| {
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
}
|
|
1383
|
-
Returns: string
|
|
1380
|
+
Args: {
|
|
1381
|
+
userid: string
|
|
1384
1382
|
}
|
|
1383
|
+
Returns: string
|
|
1384
|
+
}
|
|
1385
1385
|
get_cycle_info:
|
|
1386
1386
|
| {
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1387
|
+
Args: Record<PropertyKey, never>
|
|
1388
|
+
Returns: {
|
|
1389
|
+
subscription_anchor_start: string
|
|
1390
|
+
subscription_anchor_end: string
|
|
1391
|
+
}[]
|
|
1392
|
+
}
|
|
1393
1393
|
| {
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
}
|
|
1397
|
-
Returns: {
|
|
1398
|
-
subscription_anchor_start: string
|
|
1399
|
-
subscription_anchor_end: string
|
|
1400
|
-
}[]
|
|
1394
|
+
Args: {
|
|
1395
|
+
userid: string
|
|
1401
1396
|
}
|
|
1397
|
+
Returns: {
|
|
1398
|
+
subscription_anchor_start: string
|
|
1399
|
+
subscription_anchor_end: string
|
|
1400
|
+
}[]
|
|
1401
|
+
}
|
|
1402
1402
|
get_db_url: {
|
|
1403
1403
|
Args: Record<PropertyKey, never>
|
|
1404
1404
|
Returns: string
|
|
@@ -1428,34 +1428,34 @@ export type Database = {
|
|
|
1428
1428
|
}
|
|
1429
1429
|
get_max_plan:
|
|
1430
1430
|
| {
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1431
|
+
Args: Record<PropertyKey, never>
|
|
1432
|
+
Returns: {
|
|
1433
|
+
mau: number
|
|
1434
|
+
bandwidth: number
|
|
1435
|
+
storage: number
|
|
1436
|
+
}[]
|
|
1437
|
+
}
|
|
1438
1438
|
| {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
}
|
|
1442
|
-
Returns: {
|
|
1443
|
-
mau: number
|
|
1444
|
-
storage: number
|
|
1445
|
-
bandwidth: number
|
|
1446
|
-
}[]
|
|
1439
|
+
Args: {
|
|
1440
|
+
userid: string
|
|
1447
1441
|
}
|
|
1442
|
+
Returns: {
|
|
1443
|
+
mau: number
|
|
1444
|
+
storage: number
|
|
1445
|
+
bandwidth: number
|
|
1446
|
+
}[]
|
|
1447
|
+
}
|
|
1448
1448
|
get_metered_usage:
|
|
1449
1449
|
| {
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1450
|
+
Args: Record<PropertyKey, never>
|
|
1451
|
+
Returns: number
|
|
1452
|
+
}
|
|
1453
1453
|
| {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
}
|
|
1457
|
-
Returns: Database["public"]["CompositeTypes"]["stats_table"]
|
|
1454
|
+
Args: {
|
|
1455
|
+
userid: string
|
|
1458
1456
|
}
|
|
1457
|
+
Returns: Database['public']['CompositeTypes']['stats_table']
|
|
1458
|
+
}
|
|
1459
1459
|
get_org_members: {
|
|
1460
1460
|
Args: {
|
|
1461
1461
|
guild_id: string
|
|
@@ -1514,70 +1514,70 @@ export type Database = {
|
|
|
1514
1514
|
}
|
|
1515
1515
|
get_plan_usage_percent:
|
|
1516
1516
|
| {
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1517
|
+
Args: Record<PropertyKey, never>
|
|
1518
|
+
Returns: number
|
|
1519
|
+
}
|
|
1520
1520
|
| {
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
}
|
|
1524
|
-
Returns: number
|
|
1521
|
+
Args: {
|
|
1522
|
+
userid: string
|
|
1525
1523
|
}
|
|
1524
|
+
Returns: number
|
|
1525
|
+
}
|
|
1526
1526
|
get_total_app_storage_size:
|
|
1527
1527
|
| {
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
}
|
|
1531
|
-
Returns: number
|
|
1528
|
+
Args: {
|
|
1529
|
+
appid: string
|
|
1532
1530
|
}
|
|
1531
|
+
Returns: number
|
|
1532
|
+
}
|
|
1533
1533
|
| {
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
}
|
|
1538
|
-
Returns: number
|
|
1534
|
+
Args: {
|
|
1535
|
+
userid: string
|
|
1536
|
+
appid: string
|
|
1539
1537
|
}
|
|
1538
|
+
Returns: number
|
|
1539
|
+
}
|
|
1540
1540
|
get_total_stats_v2:
|
|
1541
1541
|
| {
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
}
|
|
1545
|
-
Returns: {
|
|
1546
|
-
mau: number
|
|
1547
|
-
bandwidth: number
|
|
1548
|
-
storage: number
|
|
1549
|
-
}[]
|
|
1542
|
+
Args: {
|
|
1543
|
+
dateid: string
|
|
1550
1544
|
}
|
|
1545
|
+
Returns: {
|
|
1546
|
+
mau: number
|
|
1547
|
+
bandwidth: number
|
|
1548
|
+
storage: number
|
|
1549
|
+
}[]
|
|
1550
|
+
}
|
|
1551
1551
|
| {
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
}
|
|
1556
|
-
Returns: {
|
|
1557
|
-
mau: number
|
|
1558
|
-
bandwidth: number
|
|
1559
|
-
storage: number
|
|
1560
|
-
}[]
|
|
1552
|
+
Args: {
|
|
1553
|
+
userid: string
|
|
1554
|
+
dateid: string
|
|
1561
1555
|
}
|
|
1556
|
+
Returns: {
|
|
1557
|
+
mau: number
|
|
1558
|
+
bandwidth: number
|
|
1559
|
+
storage: number
|
|
1560
|
+
}[]
|
|
1561
|
+
}
|
|
1562
1562
|
get_total_stats_v3:
|
|
1563
1563
|
| {
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1564
|
+
Args: Record<PropertyKey, never>
|
|
1565
|
+
Returns: {
|
|
1566
|
+
mau: number
|
|
1567
|
+
bandwidth: number
|
|
1568
|
+
storage: number
|
|
1569
|
+
}[]
|
|
1570
|
+
}
|
|
1571
1571
|
| {
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
}
|
|
1575
|
-
Returns: {
|
|
1576
|
-
mau: number
|
|
1577
|
-
bandwidth: number
|
|
1578
|
-
storage: number
|
|
1579
|
-
}[]
|
|
1572
|
+
Args: {
|
|
1573
|
+
userid: string
|
|
1580
1574
|
}
|
|
1575
|
+
Returns: {
|
|
1576
|
+
mau: number
|
|
1577
|
+
bandwidth: number
|
|
1578
|
+
storage: number
|
|
1579
|
+
}[]
|
|
1580
|
+
}
|
|
1581
1581
|
get_total_stats_v4: {
|
|
1582
1582
|
Args: {
|
|
1583
1583
|
userid: string
|
|
@@ -1600,49 +1600,49 @@ export type Database = {
|
|
|
1600
1600
|
}
|
|
1601
1601
|
get_total_storage_size:
|
|
1602
1602
|
| {
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1603
|
+
Args: Record<PropertyKey, never>
|
|
1604
|
+
Returns: number
|
|
1605
|
+
}
|
|
1606
1606
|
| {
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
}
|
|
1610
|
-
Returns: number
|
|
1607
|
+
Args: {
|
|
1608
|
+
appid: string
|
|
1611
1609
|
}
|
|
1610
|
+
Returns: number
|
|
1611
|
+
}
|
|
1612
1612
|
| {
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
}
|
|
1616
|
-
Returns: number
|
|
1613
|
+
Args: {
|
|
1614
|
+
userid: string
|
|
1617
1615
|
}
|
|
1616
|
+
Returns: number
|
|
1617
|
+
}
|
|
1618
1618
|
| {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
}
|
|
1623
|
-
Returns: number
|
|
1619
|
+
Args: {
|
|
1620
|
+
userid: string
|
|
1621
|
+
appid: string
|
|
1624
1622
|
}
|
|
1623
|
+
Returns: number
|
|
1624
|
+
}
|
|
1625
1625
|
get_usage_mode_and_last_saved: {
|
|
1626
1626
|
Args: Record<PropertyKey, never>
|
|
1627
1627
|
Returns: {
|
|
1628
|
-
usage_mode: Database[
|
|
1628
|
+
usage_mode: Database['public']['Enums']['usage_mode']
|
|
1629
1629
|
last_saved: string
|
|
1630
1630
|
}[]
|
|
1631
1631
|
}
|
|
1632
1632
|
get_user_id:
|
|
1633
1633
|
| {
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
}
|
|
1637
|
-
Returns: string
|
|
1634
|
+
Args: {
|
|
1635
|
+
apikey: string
|
|
1638
1636
|
}
|
|
1637
|
+
Returns: string
|
|
1638
|
+
}
|
|
1639
1639
|
| {
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
}
|
|
1644
|
-
Returns: string
|
|
1640
|
+
Args: {
|
|
1641
|
+
apikey: string
|
|
1642
|
+
app_id: string
|
|
1645
1643
|
}
|
|
1644
|
+
Returns: string
|
|
1645
|
+
}
|
|
1646
1646
|
get_user_main_org_id: {
|
|
1647
1647
|
Args: {
|
|
1648
1648
|
user_id: string
|
|
@@ -1668,7 +1668,7 @@ export type Database = {
|
|
|
1668
1668
|
has_app_right: {
|
|
1669
1669
|
Args: {
|
|
1670
1670
|
appid: string
|
|
1671
|
-
right: Database[
|
|
1671
|
+
right: Database['public']['Enums']['user_min_right']
|
|
1672
1672
|
}
|
|
1673
1673
|
Returns: boolean
|
|
1674
1674
|
}
|
|
@@ -1676,7 +1676,7 @@ export type Database = {
|
|
|
1676
1676
|
Args: {
|
|
1677
1677
|
_userid: string
|
|
1678
1678
|
_orgid: string
|
|
1679
|
-
_right: Database[
|
|
1679
|
+
_right: Database['public']['Enums']['user_min_right']
|
|
1680
1680
|
_appid?: string
|
|
1681
1681
|
_channelid?: number
|
|
1682
1682
|
}
|
|
@@ -1707,148 +1707,148 @@ export type Database = {
|
|
|
1707
1707
|
Args: {
|
|
1708
1708
|
email: string
|
|
1709
1709
|
org_id: string
|
|
1710
|
-
invite_type: Database[
|
|
1710
|
+
invite_type: Database['public']['Enums']['user_min_right']
|
|
1711
1711
|
}
|
|
1712
1712
|
Returns: string
|
|
1713
1713
|
}
|
|
1714
1714
|
is_admin:
|
|
1715
1715
|
| {
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1716
|
+
Args: Record<PropertyKey, never>
|
|
1717
|
+
Returns: boolean
|
|
1718
|
+
}
|
|
1719
1719
|
| {
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
}
|
|
1723
|
-
Returns: boolean
|
|
1720
|
+
Args: {
|
|
1721
|
+
userid: string
|
|
1724
1722
|
}
|
|
1723
|
+
Returns: boolean
|
|
1724
|
+
}
|
|
1725
1725
|
is_allowed_action:
|
|
1726
1726
|
| {
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1730
|
-
Returns: boolean
|
|
1727
|
+
Args: {
|
|
1728
|
+
apikey: string
|
|
1731
1729
|
}
|
|
1730
|
+
Returns: boolean
|
|
1731
|
+
}
|
|
1732
1732
|
| {
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
}
|
|
1737
|
-
Returns: boolean
|
|
1733
|
+
Args: {
|
|
1734
|
+
apikey: string
|
|
1735
|
+
appid: string
|
|
1738
1736
|
}
|
|
1737
|
+
Returns: boolean
|
|
1738
|
+
}
|
|
1739
1739
|
is_allowed_action_user:
|
|
1740
1740
|
| {
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1741
|
+
Args: Record<PropertyKey, never>
|
|
1742
|
+
Returns: boolean
|
|
1743
|
+
}
|
|
1744
1744
|
| {
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
}
|
|
1748
|
-
Returns: boolean
|
|
1745
|
+
Args: {
|
|
1746
|
+
userid: string
|
|
1749
1747
|
}
|
|
1748
|
+
Returns: boolean
|
|
1749
|
+
}
|
|
1750
1750
|
is_allowed_capgkey:
|
|
1751
1751
|
| {
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
}
|
|
1756
|
-
Returns: boolean
|
|
1752
|
+
Args: {
|
|
1753
|
+
apikey: string
|
|
1754
|
+
keymode: Database['public']['Enums']['key_mode'][]
|
|
1757
1755
|
}
|
|
1756
|
+
Returns: boolean
|
|
1757
|
+
}
|
|
1758
1758
|
| {
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
}
|
|
1764
|
-
Returns: boolean
|
|
1759
|
+
Args: {
|
|
1760
|
+
apikey: string
|
|
1761
|
+
keymode: Database['public']['Enums']['key_mode'][]
|
|
1762
|
+
app_id: string
|
|
1765
1763
|
}
|
|
1764
|
+
Returns: boolean
|
|
1765
|
+
}
|
|
1766
1766
|
| {
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
}
|
|
1775
|
-
Returns: boolean
|
|
1767
|
+
Args: {
|
|
1768
|
+
apikey: string
|
|
1769
|
+
keymode: Database['public']['Enums']['key_mode'][]
|
|
1770
|
+
app_id: string
|
|
1771
|
+
channel_id: number
|
|
1772
|
+
right: Database['public']['Enums']['user_min_right']
|
|
1773
|
+
user_id: string
|
|
1776
1774
|
}
|
|
1775
|
+
Returns: boolean
|
|
1776
|
+
}
|
|
1777
1777
|
| {
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
}
|
|
1785
|
-
Returns: boolean
|
|
1778
|
+
Args: {
|
|
1779
|
+
apikey: string
|
|
1780
|
+
keymode: Database['public']['Enums']['key_mode'][]
|
|
1781
|
+
app_id: string
|
|
1782
|
+
right: Database['public']['Enums']['user_min_right']
|
|
1783
|
+
user_id: string
|
|
1786
1784
|
}
|
|
1785
|
+
Returns: boolean
|
|
1786
|
+
}
|
|
1787
1787
|
is_app_owner:
|
|
1788
1788
|
| {
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
}
|
|
1793
|
-
Returns: boolean
|
|
1789
|
+
Args: {
|
|
1790
|
+
apikey: string
|
|
1791
|
+
appid: string
|
|
1794
1792
|
}
|
|
1793
|
+
Returns: boolean
|
|
1794
|
+
}
|
|
1795
1795
|
| {
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
}
|
|
1799
|
-
Returns: boolean
|
|
1796
|
+
Args: {
|
|
1797
|
+
appid: string
|
|
1800
1798
|
}
|
|
1799
|
+
Returns: boolean
|
|
1800
|
+
}
|
|
1801
1801
|
| {
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
}
|
|
1806
|
-
Returns: boolean
|
|
1802
|
+
Args: {
|
|
1803
|
+
userid: string
|
|
1804
|
+
appid: string
|
|
1807
1805
|
}
|
|
1806
|
+
Returns: boolean
|
|
1807
|
+
}
|
|
1808
1808
|
is_canceled:
|
|
1809
1809
|
| {
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1810
|
+
Args: Record<PropertyKey, never>
|
|
1811
|
+
Returns: boolean
|
|
1812
|
+
}
|
|
1813
1813
|
| {
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
}
|
|
1817
|
-
Returns: boolean
|
|
1814
|
+
Args: {
|
|
1815
|
+
userid: string
|
|
1818
1816
|
}
|
|
1817
|
+
Returns: boolean
|
|
1818
|
+
}
|
|
1819
1819
|
is_free_usage:
|
|
1820
1820
|
| {
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1821
|
+
Args: Record<PropertyKey, never>
|
|
1822
|
+
Returns: boolean
|
|
1823
|
+
}
|
|
1824
1824
|
| {
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
}
|
|
1828
|
-
Returns: boolean
|
|
1825
|
+
Args: {
|
|
1826
|
+
userid: string
|
|
1829
1827
|
}
|
|
1828
|
+
Returns: boolean
|
|
1829
|
+
}
|
|
1830
1830
|
is_good_plan_v3:
|
|
1831
1831
|
| {
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1832
|
+
Args: Record<PropertyKey, never>
|
|
1833
|
+
Returns: boolean
|
|
1834
|
+
}
|
|
1835
1835
|
| {
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
}
|
|
1839
|
-
Returns: boolean
|
|
1836
|
+
Args: {
|
|
1837
|
+
userid: string
|
|
1840
1838
|
}
|
|
1839
|
+
Returns: boolean
|
|
1840
|
+
}
|
|
1841
1841
|
is_good_plan_v4:
|
|
1842
1842
|
| {
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1843
|
+
Args: Record<PropertyKey, never>
|
|
1844
|
+
Returns: boolean
|
|
1845
|
+
}
|
|
1846
1846
|
| {
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
}
|
|
1850
|
-
Returns: boolean
|
|
1847
|
+
Args: {
|
|
1848
|
+
userid: string
|
|
1851
1849
|
}
|
|
1850
|
+
Returns: boolean
|
|
1851
|
+
}
|
|
1852
1852
|
is_member_of_org: {
|
|
1853
1853
|
Args: {
|
|
1854
1854
|
user_id: string
|
|
@@ -1870,26 +1870,26 @@ export type Database = {
|
|
|
1870
1870
|
}
|
|
1871
1871
|
is_onboarded:
|
|
1872
1872
|
| {
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1873
|
+
Args: Record<PropertyKey, never>
|
|
1874
|
+
Returns: boolean
|
|
1875
|
+
}
|
|
1876
1876
|
| {
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
}
|
|
1880
|
-
Returns: boolean
|
|
1877
|
+
Args: {
|
|
1878
|
+
userid: string
|
|
1881
1879
|
}
|
|
1880
|
+
Returns: boolean
|
|
1881
|
+
}
|
|
1882
1882
|
is_onboarding_needed:
|
|
1883
1883
|
| {
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1884
|
+
Args: Record<PropertyKey, never>
|
|
1885
|
+
Returns: boolean
|
|
1886
|
+
}
|
|
1887
1887
|
| {
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
}
|
|
1891
|
-
Returns: boolean
|
|
1888
|
+
Args: {
|
|
1889
|
+
userid: string
|
|
1892
1890
|
}
|
|
1891
|
+
Returns: boolean
|
|
1892
|
+
}
|
|
1893
1893
|
is_owner_of_org: {
|
|
1894
1894
|
Args: {
|
|
1895
1895
|
user_id: string
|
|
@@ -1899,55 +1899,55 @@ export type Database = {
|
|
|
1899
1899
|
}
|
|
1900
1900
|
is_paying:
|
|
1901
1901
|
| {
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1902
|
+
Args: Record<PropertyKey, never>
|
|
1903
|
+
Returns: boolean
|
|
1904
|
+
}
|
|
1905
1905
|
| {
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
}
|
|
1909
|
-
Returns: boolean
|
|
1906
|
+
Args: {
|
|
1907
|
+
userid: string
|
|
1910
1908
|
}
|
|
1909
|
+
Returns: boolean
|
|
1910
|
+
}
|
|
1911
1911
|
is_paying_and_good_plan:
|
|
1912
1912
|
| {
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1913
|
+
Args: Record<PropertyKey, never>
|
|
1914
|
+
Returns: boolean
|
|
1915
|
+
}
|
|
1916
1916
|
| {
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
}
|
|
1920
|
-
Returns: boolean
|
|
1917
|
+
Args: {
|
|
1918
|
+
userid: string
|
|
1921
1919
|
}
|
|
1920
|
+
Returns: boolean
|
|
1921
|
+
}
|
|
1922
1922
|
is_trial:
|
|
1923
1923
|
| {
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1924
|
+
Args: Record<PropertyKey, never>
|
|
1925
|
+
Returns: number
|
|
1926
|
+
}
|
|
1927
1927
|
| {
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
}
|
|
1931
|
-
Returns: number
|
|
1928
|
+
Args: {
|
|
1929
|
+
userid: string
|
|
1932
1930
|
}
|
|
1931
|
+
Returns: number
|
|
1932
|
+
}
|
|
1933
1933
|
one_month_ahead: {
|
|
1934
1934
|
Args: Record<PropertyKey, never>
|
|
1935
1935
|
Returns: string
|
|
1936
1936
|
}
|
|
1937
1937
|
post_replication_sql:
|
|
1938
1938
|
| {
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
}
|
|
1942
|
-
Returns: undefined
|
|
1939
|
+
Args: {
|
|
1940
|
+
sql_query: string
|
|
1943
1941
|
}
|
|
1942
|
+
Returns: undefined
|
|
1943
|
+
}
|
|
1944
1944
|
| {
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
}
|
|
1949
|
-
Returns: undefined
|
|
1945
|
+
Args: {
|
|
1946
|
+
sql_query: string
|
|
1947
|
+
params: string[]
|
|
1950
1948
|
}
|
|
1949
|
+
Returns: undefined
|
|
1950
|
+
}
|
|
1951
1951
|
process_current_jobs_if_unlocked: {
|
|
1952
1952
|
Args: Record<PropertyKey, never>
|
|
1953
1953
|
Returns: number[]
|
|
@@ -1970,45 +1970,45 @@ export type Database = {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
update_app_usage:
|
|
1972
1972
|
| {
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1973
|
+
Args: Record<PropertyKey, never>
|
|
1974
|
+
Returns: undefined
|
|
1975
|
+
}
|
|
1976
1976
|
| {
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
}
|
|
1980
|
-
Returns: undefined
|
|
1977
|
+
Args: {
|
|
1978
|
+
minutes_interval: number
|
|
1981
1979
|
}
|
|
1980
|
+
Returns: undefined
|
|
1981
|
+
}
|
|
1982
1982
|
verify_mfa: {
|
|
1983
1983
|
Args: Record<PropertyKey, never>
|
|
1984
1984
|
Returns: boolean
|
|
1985
1985
|
}
|
|
1986
1986
|
}
|
|
1987
1987
|
Enums: {
|
|
1988
|
-
app_mode:
|
|
1989
|
-
disable_update:
|
|
1990
|
-
key_mode:
|
|
1991
|
-
pay_as_you_go_type:
|
|
1992
|
-
platform_os:
|
|
1993
|
-
queue_job_status:
|
|
1988
|
+
app_mode: 'prod' | 'dev' | 'livereload'
|
|
1989
|
+
disable_update: 'major' | 'minor' | 'version_number' | 'none'
|
|
1990
|
+
key_mode: 'read' | 'write' | 'all' | 'upload'
|
|
1991
|
+
pay_as_you_go_type: 'base' | 'units'
|
|
1992
|
+
platform_os: 'ios' | 'android'
|
|
1993
|
+
queue_job_status: 'inserted' | 'requested' | 'failed'
|
|
1994
1994
|
stripe_status:
|
|
1995
|
-
|
|
|
1996
|
-
|
|
|
1997
|
-
|
|
|
1998
|
-
|
|
|
1999
|
-
|
|
|
2000
|
-
|
|
|
2001
|
-
usage_mode:
|
|
1995
|
+
| 'created'
|
|
1996
|
+
| 'succeeded'
|
|
1997
|
+
| 'updated'
|
|
1998
|
+
| 'failed'
|
|
1999
|
+
| 'deleted'
|
|
2000
|
+
| 'canceled'
|
|
2001
|
+
usage_mode: '5min' | 'day' | 'month' | 'cycle' | 'last_saved'
|
|
2002
2002
|
user_min_right:
|
|
2003
|
-
|
|
|
2004
|
-
|
|
|
2005
|
-
|
|
|
2006
|
-
|
|
|
2007
|
-
|
|
|
2008
|
-
|
|
|
2009
|
-
|
|
|
2010
|
-
|
|
|
2011
|
-
user_role:
|
|
2003
|
+
| 'invite_read'
|
|
2004
|
+
| 'invite_upload'
|
|
2005
|
+
| 'invite_write'
|
|
2006
|
+
| 'invite_admin'
|
|
2007
|
+
| 'read'
|
|
2008
|
+
| 'upload'
|
|
2009
|
+
| 'write'
|
|
2010
|
+
| 'admin'
|
|
2011
|
+
user_role: 'read' | 'upload' | 'write' | 'admin'
|
|
2012
2012
|
}
|
|
2013
2013
|
CompositeTypes: {
|
|
2014
2014
|
match_plan: {
|
|
@@ -2040,80 +2040,80 @@ export type Database = {
|
|
|
2040
2040
|
|
|
2041
2041
|
export type Tables<
|
|
2042
2042
|
PublicTableNameOrOptions extends
|
|
2043
|
-
|
|
2044
|
-
|
|
2043
|
+
| keyof (Database['public']['Tables'] & Database['public']['Views'])
|
|
2044
|
+
| { schema: keyof Database },
|
|
2045
2045
|
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2046
|
-
? keyof (Database[PublicTableNameOrOptions[
|
|
2047
|
-
|
|
2048
|
-
: never = never
|
|
2046
|
+
? keyof (Database[PublicTableNameOrOptions['schema']]['Tables'] &
|
|
2047
|
+
Database[PublicTableNameOrOptions['schema']]['Views'])
|
|
2048
|
+
: never = never,
|
|
2049
2049
|
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2050
|
-
? (Database[PublicTableNameOrOptions[
|
|
2051
|
-
|
|
2050
|
+
? (Database[PublicTableNameOrOptions['schema']]['Tables'] &
|
|
2051
|
+
Database[PublicTableNameOrOptions['schema']]['Views'])[TableName] extends {
|
|
2052
2052
|
Row: infer R
|
|
2053
2053
|
}
|
|
2054
|
-
|
|
2054
|
+
? R
|
|
2055
|
+
: never
|
|
2056
|
+
: PublicTableNameOrOptions extends keyof (Database['public']['Tables'] &
|
|
2057
|
+
Database['public']['Views'])
|
|
2058
|
+
? (Database['public']['Tables'] &
|
|
2059
|
+
Database['public']['Views'])[PublicTableNameOrOptions] extends {
|
|
2060
|
+
Row: infer R
|
|
2061
|
+
}
|
|
2062
|
+
? R
|
|
2063
|
+
: never
|
|
2055
2064
|
: never
|
|
2056
|
-
: PublicTableNameOrOptions extends keyof (Database["public"]["Tables"] &
|
|
2057
|
-
Database["public"]["Views"])
|
|
2058
|
-
? (Database["public"]["Tables"] &
|
|
2059
|
-
Database["public"]["Views"])[PublicTableNameOrOptions] extends {
|
|
2060
|
-
Row: infer R
|
|
2061
|
-
}
|
|
2062
|
-
? R
|
|
2063
|
-
: never
|
|
2064
|
-
: never
|
|
2065
2065
|
|
|
2066
2066
|
export type TablesInsert<
|
|
2067
2067
|
PublicTableNameOrOptions extends
|
|
2068
|
-
|
|
2069
|
-
|
|
2068
|
+
| keyof Database['public']['Tables']
|
|
2069
|
+
| { schema: keyof Database },
|
|
2070
2070
|
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2071
|
-
? keyof Database[PublicTableNameOrOptions[
|
|
2072
|
-
: never = never
|
|
2071
|
+
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
|
|
2072
|
+
: never = never,
|
|
2073
2073
|
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2074
|
-
? Database[PublicTableNameOrOptions[
|
|
2075
|
-
|
|
2076
|
-
|
|
2074
|
+
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2075
|
+
Insert: infer I
|
|
2076
|
+
}
|
|
2077
2077
|
? I
|
|
2078
2078
|
: never
|
|
2079
|
-
: PublicTableNameOrOptions extends keyof Database[
|
|
2080
|
-
|
|
2079
|
+
: PublicTableNameOrOptions extends keyof Database['public']['Tables']
|
|
2080
|
+
? Database['public']['Tables'][PublicTableNameOrOptions] extends {
|
|
2081
2081
|
Insert: infer I
|
|
2082
2082
|
}
|
|
2083
|
-
|
|
2083
|
+
? I
|
|
2084
|
+
: never
|
|
2084
2085
|
: never
|
|
2085
|
-
: never
|
|
2086
2086
|
|
|
2087
2087
|
export type TablesUpdate<
|
|
2088
2088
|
PublicTableNameOrOptions extends
|
|
2089
|
-
|
|
2090
|
-
|
|
2089
|
+
| keyof Database['public']['Tables']
|
|
2090
|
+
| { schema: keyof Database },
|
|
2091
2091
|
TableName extends PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2092
|
-
? keyof Database[PublicTableNameOrOptions[
|
|
2093
|
-
: never = never
|
|
2092
|
+
? keyof Database[PublicTableNameOrOptions['schema']]['Tables']
|
|
2093
|
+
: never = never,
|
|
2094
2094
|
> = PublicTableNameOrOptions extends { schema: keyof Database }
|
|
2095
|
-
? Database[PublicTableNameOrOptions[
|
|
2096
|
-
|
|
2097
|
-
|
|
2095
|
+
? Database[PublicTableNameOrOptions['schema']]['Tables'][TableName] extends {
|
|
2096
|
+
Update: infer U
|
|
2097
|
+
}
|
|
2098
2098
|
? U
|
|
2099
2099
|
: never
|
|
2100
|
-
: PublicTableNameOrOptions extends keyof Database[
|
|
2101
|
-
|
|
2100
|
+
: PublicTableNameOrOptions extends keyof Database['public']['Tables']
|
|
2101
|
+
? Database['public']['Tables'][PublicTableNameOrOptions] extends {
|
|
2102
2102
|
Update: infer U
|
|
2103
2103
|
}
|
|
2104
|
-
|
|
2104
|
+
? U
|
|
2105
|
+
: never
|
|
2105
2106
|
: never
|
|
2106
|
-
: never
|
|
2107
2107
|
|
|
2108
2108
|
export type Enums<
|
|
2109
2109
|
PublicEnumNameOrOptions extends
|
|
2110
|
-
|
|
2111
|
-
|
|
2110
|
+
| keyof Database['public']['Enums']
|
|
2111
|
+
| { schema: keyof Database },
|
|
2112
2112
|
EnumName extends PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
2113
|
-
? keyof Database[PublicEnumNameOrOptions[
|
|
2114
|
-
: never = never
|
|
2113
|
+
? keyof Database[PublicEnumNameOrOptions['schema']]['Enums']
|
|
2114
|
+
: never = never,
|
|
2115
2115
|
> = PublicEnumNameOrOptions extends { schema: keyof Database }
|
|
2116
|
-
? Database[PublicEnumNameOrOptions[
|
|
2117
|
-
: PublicEnumNameOrOptions extends keyof Database[
|
|
2118
|
-
|
|
2119
|
-
|
|
2116
|
+
? Database[PublicEnumNameOrOptions['schema']]['Enums'][EnumName]
|
|
2117
|
+
: PublicEnumNameOrOptions extends keyof Database['public']['Enums']
|
|
2118
|
+
? Database['public']['Enums'][PublicEnumNameOrOptions]
|
|
2119
|
+
: never
|