@capgo/cli 3.14.55 → 3.14.57
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 +13 -0
- package/bun.lockb +0 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/api/app.ts +41 -1
- package/src/api/channels.ts +2 -2
- package/src/app/list.ts +4 -4
- package/src/bundle/upload.ts +14 -6
- package/src/channel/list.ts +1 -1
- package/src/types/supabase.types.ts +228 -175
- package/src/utils.ts +102 -2
|
@@ -43,104 +43,12 @@ export interface Database {
|
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
}
|
|
46
|
-
app_live: {
|
|
47
|
-
Row: {
|
|
48
|
-
created_at: string | null
|
|
49
|
-
id: string
|
|
50
|
-
updated_at: string | null
|
|
51
|
-
url: string
|
|
52
|
-
}
|
|
53
|
-
Insert: {
|
|
54
|
-
created_at?: string | null
|
|
55
|
-
id: string
|
|
56
|
-
updated_at?: string | null
|
|
57
|
-
url: string
|
|
58
|
-
}
|
|
59
|
-
Update: {
|
|
60
|
-
created_at?: string | null
|
|
61
|
-
id?: string
|
|
62
|
-
updated_at?: string | null
|
|
63
|
-
url?: string
|
|
64
|
-
}
|
|
65
|
-
Relationships: [
|
|
66
|
-
{
|
|
67
|
-
foreignKeyName: "app_live_id_fkey"
|
|
68
|
-
columns: ["id"]
|
|
69
|
-
referencedRelation: "users"
|
|
70
|
-
referencedColumns: ["id"]
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
app_stats: {
|
|
75
|
-
Row: {
|
|
76
|
-
app_id: string
|
|
77
|
-
bandwidth: number
|
|
78
|
-
channels: number
|
|
79
|
-
created_at: string | null
|
|
80
|
-
date_id: string
|
|
81
|
-
devices: number
|
|
82
|
-
devices_real: number
|
|
83
|
-
mlu: number
|
|
84
|
-
mlu_real: number
|
|
85
|
-
shared: number
|
|
86
|
-
updated_at: string | null
|
|
87
|
-
user_id: string
|
|
88
|
-
version_size: number
|
|
89
|
-
versions: number
|
|
90
|
-
}
|
|
91
|
-
Insert: {
|
|
92
|
-
app_id: string
|
|
93
|
-
bandwidth?: number
|
|
94
|
-
channels?: number
|
|
95
|
-
created_at?: string | null
|
|
96
|
-
date_id?: string
|
|
97
|
-
devices?: number
|
|
98
|
-
devices_real?: number
|
|
99
|
-
mlu?: number
|
|
100
|
-
mlu_real?: number
|
|
101
|
-
shared?: number
|
|
102
|
-
updated_at?: string | null
|
|
103
|
-
user_id: string
|
|
104
|
-
version_size?: number
|
|
105
|
-
versions?: number
|
|
106
|
-
}
|
|
107
|
-
Update: {
|
|
108
|
-
app_id?: string
|
|
109
|
-
bandwidth?: number
|
|
110
|
-
channels?: number
|
|
111
|
-
created_at?: string | null
|
|
112
|
-
date_id?: string
|
|
113
|
-
devices?: number
|
|
114
|
-
devices_real?: number
|
|
115
|
-
mlu?: number
|
|
116
|
-
mlu_real?: number
|
|
117
|
-
shared?: number
|
|
118
|
-
updated_at?: string | null
|
|
119
|
-
user_id?: string
|
|
120
|
-
version_size?: number
|
|
121
|
-
versions?: number
|
|
122
|
-
}
|
|
123
|
-
Relationships: [
|
|
124
|
-
{
|
|
125
|
-
foreignKeyName: "app_stats_app_id_fkey"
|
|
126
|
-
columns: ["app_id"]
|
|
127
|
-
referencedRelation: "apps"
|
|
128
|
-
referencedColumns: ["app_id"]
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
foreignKeyName: "app_stats_user_id_fkey"
|
|
132
|
-
columns: ["user_id"]
|
|
133
|
-
referencedRelation: "users"
|
|
134
|
-
referencedColumns: ["id"]
|
|
135
|
-
}
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
46
|
app_usage: {
|
|
139
47
|
Row: {
|
|
140
48
|
app_id: string
|
|
141
49
|
bandwidth: number
|
|
142
50
|
date: string | null
|
|
143
|
-
|
|
51
|
+
fail: number
|
|
144
52
|
get: number
|
|
145
53
|
id: string
|
|
146
54
|
install: number
|
|
@@ -153,7 +61,7 @@ export interface Database {
|
|
|
153
61
|
app_id: string
|
|
154
62
|
bandwidth?: number
|
|
155
63
|
date?: string | null
|
|
156
|
-
|
|
64
|
+
fail?: number
|
|
157
65
|
get?: number
|
|
158
66
|
id?: string
|
|
159
67
|
install?: number
|
|
@@ -166,7 +74,7 @@ export interface Database {
|
|
|
166
74
|
app_id?: string
|
|
167
75
|
bandwidth?: number
|
|
168
76
|
date?: string | null
|
|
169
|
-
|
|
77
|
+
fail?: number
|
|
170
78
|
get?: number
|
|
171
79
|
id?: string
|
|
172
80
|
install?: number
|
|
@@ -457,7 +365,6 @@ export interface Database {
|
|
|
457
365
|
created_at: string
|
|
458
366
|
created_by: string
|
|
459
367
|
disableAutoUpdate: Database["public"]["Enums"]["disable_update"]
|
|
460
|
-
disableAutoUpdateToMajor: boolean
|
|
461
368
|
disableAutoUpdateUnderNative: boolean
|
|
462
369
|
enable_progressive_deploy: boolean
|
|
463
370
|
enableAbTesting: boolean
|
|
@@ -480,7 +387,6 @@ export interface Database {
|
|
|
480
387
|
created_at?: string
|
|
481
388
|
created_by: string
|
|
482
389
|
disableAutoUpdate?: Database["public"]["Enums"]["disable_update"]
|
|
483
|
-
disableAutoUpdateToMajor?: boolean
|
|
484
390
|
disableAutoUpdateUnderNative?: boolean
|
|
485
391
|
enable_progressive_deploy?: boolean
|
|
486
392
|
enableAbTesting?: boolean
|
|
@@ -503,7 +409,6 @@ export interface Database {
|
|
|
503
409
|
created_at?: string
|
|
504
410
|
created_by?: string
|
|
505
411
|
disableAutoUpdate?: Database["public"]["Enums"]["disable_update"]
|
|
506
|
-
disableAutoUpdateToMajor?: boolean
|
|
507
412
|
disableAutoUpdateUnderNative?: boolean
|
|
508
413
|
enable_progressive_deploy?: boolean
|
|
509
414
|
enableAbTesting?: boolean
|
|
@@ -551,7 +456,7 @@ export interface Database {
|
|
|
551
456
|
}
|
|
552
457
|
Insert: {
|
|
553
458
|
created_at?: string | null
|
|
554
|
-
email
|
|
459
|
+
email: string
|
|
555
460
|
id?: string
|
|
556
461
|
}
|
|
557
462
|
Update: {
|
|
@@ -694,6 +599,33 @@ export interface Database {
|
|
|
694
599
|
}
|
|
695
600
|
Relationships: []
|
|
696
601
|
}
|
|
602
|
+
job_queue: {
|
|
603
|
+
Row: {
|
|
604
|
+
created_at: string | null
|
|
605
|
+
function_name: string | null
|
|
606
|
+
function_type: string | null
|
|
607
|
+
job_id: number
|
|
608
|
+
job_type: string
|
|
609
|
+
payload: string
|
|
610
|
+
}
|
|
611
|
+
Insert: {
|
|
612
|
+
created_at?: string | null
|
|
613
|
+
function_name?: string | null
|
|
614
|
+
function_type?: string | null
|
|
615
|
+
job_id?: number
|
|
616
|
+
job_type: string
|
|
617
|
+
payload: string
|
|
618
|
+
}
|
|
619
|
+
Update: {
|
|
620
|
+
created_at?: string | null
|
|
621
|
+
function_name?: string | null
|
|
622
|
+
function_type?: string | null
|
|
623
|
+
job_id?: number
|
|
624
|
+
job_type?: string
|
|
625
|
+
payload?: string
|
|
626
|
+
}
|
|
627
|
+
Relationships: []
|
|
628
|
+
}
|
|
697
629
|
notifications: {
|
|
698
630
|
Row: {
|
|
699
631
|
created_at: string | null
|
|
@@ -811,7 +743,14 @@ export interface Database {
|
|
|
811
743
|
name?: string
|
|
812
744
|
updated_at?: string | null
|
|
813
745
|
}
|
|
814
|
-
Relationships: [
|
|
746
|
+
Relationships: [
|
|
747
|
+
{
|
|
748
|
+
foreignKeyName: "orgs_created_by_fkey"
|
|
749
|
+
columns: ["created_by"]
|
|
750
|
+
referencedRelation: "users"
|
|
751
|
+
referencedColumns: ["id"]
|
|
752
|
+
}
|
|
753
|
+
]
|
|
815
754
|
}
|
|
816
755
|
plans: {
|
|
817
756
|
Row: {
|
|
@@ -1148,18 +1087,31 @@ export interface Database {
|
|
|
1148
1087
|
}
|
|
1149
1088
|
]
|
|
1150
1089
|
}
|
|
1090
|
+
workers: {
|
|
1091
|
+
Row: {
|
|
1092
|
+
id: number
|
|
1093
|
+
locked: boolean
|
|
1094
|
+
}
|
|
1095
|
+
Insert: {
|
|
1096
|
+
id?: number
|
|
1097
|
+
locked?: boolean
|
|
1098
|
+
}
|
|
1099
|
+
Update: {
|
|
1100
|
+
id?: number
|
|
1101
|
+
locked?: boolean
|
|
1102
|
+
}
|
|
1103
|
+
Relationships: []
|
|
1104
|
+
}
|
|
1151
1105
|
}
|
|
1152
1106
|
Views: {
|
|
1153
1107
|
[_ in never]: never
|
|
1154
1108
|
}
|
|
1155
1109
|
Functions: {
|
|
1156
|
-
|
|
1157
|
-
Args:
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
Args: Record<PropertyKey, never>
|
|
1162
|
-
Returns: undefined
|
|
1110
|
+
accept_invitation_to_org: {
|
|
1111
|
+
Args: {
|
|
1112
|
+
org_id: string
|
|
1113
|
+
}
|
|
1114
|
+
Returns: string
|
|
1163
1115
|
}
|
|
1164
1116
|
check_min_rights:
|
|
1165
1117
|
| {
|
|
@@ -1243,24 +1195,10 @@ export interface Database {
|
|
|
1243
1195
|
Args: Record<PropertyKey, never>
|
|
1244
1196
|
Returns: number
|
|
1245
1197
|
}
|
|
1246
|
-
create_partitions: {
|
|
1247
|
-
Args: {
|
|
1248
|
-
start_date: string
|
|
1249
|
-
num_years: number
|
|
1250
|
-
}
|
|
1251
|
-
Returns: undefined
|
|
1252
|
-
}
|
|
1253
1198
|
delete_user: {
|
|
1254
1199
|
Args: Record<PropertyKey, never>
|
|
1255
1200
|
Returns: undefined
|
|
1256
1201
|
}
|
|
1257
|
-
exist_app: {
|
|
1258
|
-
Args: {
|
|
1259
|
-
appid: string
|
|
1260
|
-
apikey: string
|
|
1261
|
-
}
|
|
1262
|
-
Returns: boolean
|
|
1263
|
-
}
|
|
1264
1202
|
exist_app_v2: {
|
|
1265
1203
|
Args: {
|
|
1266
1204
|
appid: string
|
|
@@ -1369,25 +1307,13 @@ export interface Database {
|
|
|
1369
1307
|
Args: Record<PropertyKey, never>
|
|
1370
1308
|
Returns: string
|
|
1371
1309
|
}
|
|
1372
|
-
get_infos: {
|
|
1373
|
-
Args: {
|
|
1374
|
-
appid: string
|
|
1375
|
-
deviceid: string
|
|
1376
|
-
versionname: string
|
|
1377
|
-
}
|
|
1378
|
-
Returns: {
|
|
1379
|
-
current_version_id: number
|
|
1380
|
-
versiondata: Json
|
|
1381
|
-
channel: Json
|
|
1382
|
-
}[]
|
|
1383
|
-
}
|
|
1384
1310
|
get_max_plan:
|
|
1385
1311
|
| {
|
|
1386
1312
|
Args: Record<PropertyKey, never>
|
|
1387
1313
|
Returns: {
|
|
1388
1314
|
mau: number
|
|
1389
|
-
bandwidth: number
|
|
1390
1315
|
storage: number
|
|
1316
|
+
bandwidth: number
|
|
1391
1317
|
}[]
|
|
1392
1318
|
}
|
|
1393
1319
|
| {
|
|
@@ -1411,15 +1337,55 @@ export interface Database {
|
|
|
1411
1337
|
}
|
|
1412
1338
|
Returns: Database["public"]["CompositeTypes"]["stats_table"]
|
|
1413
1339
|
}
|
|
1340
|
+
get_org_members: {
|
|
1341
|
+
Args: {
|
|
1342
|
+
guild_id: string
|
|
1343
|
+
}
|
|
1344
|
+
Returns: {
|
|
1345
|
+
aid: number
|
|
1346
|
+
uid: string
|
|
1347
|
+
email: string
|
|
1348
|
+
image_url: string
|
|
1349
|
+
}[]
|
|
1350
|
+
}
|
|
1351
|
+
get_org_perm_for_apikey: {
|
|
1352
|
+
Args: {
|
|
1353
|
+
apikey: string
|
|
1354
|
+
app_id: string
|
|
1355
|
+
}
|
|
1356
|
+
Returns: string
|
|
1357
|
+
}
|
|
1358
|
+
get_orgs: {
|
|
1359
|
+
Args: {
|
|
1360
|
+
userid: string
|
|
1361
|
+
}
|
|
1362
|
+
Returns: {
|
|
1363
|
+
id: string
|
|
1364
|
+
logo: string
|
|
1365
|
+
name: string
|
|
1366
|
+
}[]
|
|
1367
|
+
}
|
|
1368
|
+
get_orgs_v2: {
|
|
1369
|
+
Args: {
|
|
1370
|
+
userid: string
|
|
1371
|
+
}
|
|
1372
|
+
Returns: {
|
|
1373
|
+
gid: string
|
|
1374
|
+
created_by: string
|
|
1375
|
+
logo: string
|
|
1376
|
+
name: string
|
|
1377
|
+
role: string
|
|
1378
|
+
}[]
|
|
1379
|
+
}
|
|
1414
1380
|
get_plan_usage_percent:
|
|
1415
1381
|
| {
|
|
1416
|
-
Args:
|
|
1417
|
-
userid: string
|
|
1418
|
-
}
|
|
1382
|
+
Args: Record<PropertyKey, never>
|
|
1419
1383
|
Returns: number
|
|
1420
1384
|
}
|
|
1421
1385
|
| {
|
|
1422
|
-
Args:
|
|
1386
|
+
Args: {
|
|
1387
|
+
userid: string
|
|
1388
|
+
}
|
|
1423
1389
|
Returns: number
|
|
1424
1390
|
}
|
|
1425
1391
|
get_total_stats_v2:
|
|
@@ -1446,7 +1412,9 @@ export interface Database {
|
|
|
1446
1412
|
}
|
|
1447
1413
|
get_total_stats_v3:
|
|
1448
1414
|
| {
|
|
1449
|
-
Args:
|
|
1415
|
+
Args: {
|
|
1416
|
+
userid: string
|
|
1417
|
+
}
|
|
1450
1418
|
Returns: {
|
|
1451
1419
|
mau: number
|
|
1452
1420
|
bandwidth: number
|
|
@@ -1454,9 +1422,7 @@ export interface Database {
|
|
|
1454
1422
|
}[]
|
|
1455
1423
|
}
|
|
1456
1424
|
| {
|
|
1457
|
-
Args:
|
|
1458
|
-
userid: string
|
|
1459
|
-
}
|
|
1425
|
+
Args: Record<PropertyKey, never>
|
|
1460
1426
|
Returns: {
|
|
1461
1427
|
mau: number
|
|
1462
1428
|
bandwidth: number
|
|
@@ -1466,7 +1432,7 @@ export interface Database {
|
|
|
1466
1432
|
get_total_storage_size:
|
|
1467
1433
|
| {
|
|
1468
1434
|
Args: {
|
|
1469
|
-
|
|
1435
|
+
userid: string
|
|
1470
1436
|
}
|
|
1471
1437
|
Returns: number
|
|
1472
1438
|
}
|
|
@@ -1483,7 +1449,7 @@ export interface Database {
|
|
|
1483
1449
|
}
|
|
1484
1450
|
| {
|
|
1485
1451
|
Args: {
|
|
1486
|
-
|
|
1452
|
+
app_id: string
|
|
1487
1453
|
}
|
|
1488
1454
|
Returns: number
|
|
1489
1455
|
}
|
|
@@ -1494,9 +1460,29 @@ export interface Database {
|
|
|
1494
1460
|
last_saved: string
|
|
1495
1461
|
}[]
|
|
1496
1462
|
}
|
|
1497
|
-
get_user_id:
|
|
1463
|
+
get_user_id:
|
|
1464
|
+
| {
|
|
1465
|
+
Args: {
|
|
1466
|
+
apikey: string
|
|
1467
|
+
}
|
|
1468
|
+
Returns: string
|
|
1469
|
+
}
|
|
1470
|
+
| {
|
|
1471
|
+
Args: {
|
|
1472
|
+
apikey: string
|
|
1473
|
+
app_id: string
|
|
1474
|
+
}
|
|
1475
|
+
Returns: string
|
|
1476
|
+
}
|
|
1477
|
+
get_user_main_org_id: {
|
|
1498
1478
|
Args: {
|
|
1499
|
-
|
|
1479
|
+
user_id: string
|
|
1480
|
+
}
|
|
1481
|
+
Returns: string
|
|
1482
|
+
}
|
|
1483
|
+
get_user_main_org_id_by_app_id: {
|
|
1484
|
+
Args: {
|
|
1485
|
+
app_id: string
|
|
1500
1486
|
}
|
|
1501
1487
|
Returns: string
|
|
1502
1488
|
}
|
|
@@ -1526,7 +1512,7 @@ export interface Database {
|
|
|
1526
1512
|
function_type: string
|
|
1527
1513
|
body: Json
|
|
1528
1514
|
}
|
|
1529
|
-
Returns:
|
|
1515
|
+
Returns: number
|
|
1530
1516
|
}
|
|
1531
1517
|
increment_store: {
|
|
1532
1518
|
Args: {
|
|
@@ -1535,6 +1521,14 @@ export interface Database {
|
|
|
1535
1521
|
}
|
|
1536
1522
|
Returns: undefined
|
|
1537
1523
|
}
|
|
1524
|
+
invite_user_to_org: {
|
|
1525
|
+
Args: {
|
|
1526
|
+
email: string
|
|
1527
|
+
org_id: string
|
|
1528
|
+
invite_type: Database["public"]["Enums"]["user_min_right"]
|
|
1529
|
+
}
|
|
1530
|
+
Returns: string
|
|
1531
|
+
}
|
|
1538
1532
|
is_admin:
|
|
1539
1533
|
| {
|
|
1540
1534
|
Args: Record<PropertyKey, never>
|
|
@@ -1560,6 +1554,13 @@ export interface Database {
|
|
|
1560
1554
|
}
|
|
1561
1555
|
Returns: boolean
|
|
1562
1556
|
}
|
|
1557
|
+
| {
|
|
1558
|
+
Args: {
|
|
1559
|
+
apikey: string
|
|
1560
|
+
appid: string
|
|
1561
|
+
}
|
|
1562
|
+
Returns: boolean
|
|
1563
|
+
}
|
|
1563
1564
|
is_allowed_action_user:
|
|
1564
1565
|
| {
|
|
1565
1566
|
Args: Record<PropertyKey, never>
|
|
@@ -1587,6 +1588,27 @@ export interface Database {
|
|
|
1587
1588
|
}
|
|
1588
1589
|
Returns: boolean
|
|
1589
1590
|
}
|
|
1591
|
+
| {
|
|
1592
|
+
Args: {
|
|
1593
|
+
apikey: string
|
|
1594
|
+
keymode: Database["public"]["Enums"]["key_mode"][]
|
|
1595
|
+
app_id: string
|
|
1596
|
+
right: Database["public"]["Enums"]["user_min_right"]
|
|
1597
|
+
user_id: string
|
|
1598
|
+
}
|
|
1599
|
+
Returns: boolean
|
|
1600
|
+
}
|
|
1601
|
+
| {
|
|
1602
|
+
Args: {
|
|
1603
|
+
apikey: string
|
|
1604
|
+
keymode: Database["public"]["Enums"]["key_mode"][]
|
|
1605
|
+
app_id: string
|
|
1606
|
+
channel_id: number
|
|
1607
|
+
right: Database["public"]["Enums"]["user_min_right"]
|
|
1608
|
+
user_id: string
|
|
1609
|
+
}
|
|
1610
|
+
Returns: boolean
|
|
1611
|
+
}
|
|
1590
1612
|
is_app_owner:
|
|
1591
1613
|
| {
|
|
1592
1614
|
Args: {
|
|
@@ -1669,7 +1691,7 @@ export interface Database {
|
|
|
1669
1691
|
is_in_channel:
|
|
1670
1692
|
| {
|
|
1671
1693
|
Args: {
|
|
1672
|
-
|
|
1694
|
+
userid: string
|
|
1673
1695
|
}
|
|
1674
1696
|
Returns: boolean
|
|
1675
1697
|
}
|
|
@@ -1680,29 +1702,30 @@ export interface Database {
|
|
|
1680
1702
|
}
|
|
1681
1703
|
Returns: boolean
|
|
1682
1704
|
}
|
|
1683
|
-
|
|
1705
|
+
is_member_of_org: {
|
|
1684
1706
|
Args: {
|
|
1685
|
-
|
|
1707
|
+
user_id: string
|
|
1708
|
+
org_id: string
|
|
1686
1709
|
}
|
|
1687
1710
|
Returns: boolean
|
|
1688
1711
|
}
|
|
1689
|
-
|
|
1712
|
+
is_not_deleted: {
|
|
1690
1713
|
Args: {
|
|
1691
1714
|
email_check: string
|
|
1692
1715
|
}
|
|
1693
1716
|
Returns: boolean
|
|
1694
1717
|
}
|
|
1695
1718
|
is_onboarded:
|
|
1696
|
-
| {
|
|
1697
|
-
Args: Record<PropertyKey, never>
|
|
1698
|
-
Returns: boolean
|
|
1699
|
-
}
|
|
1700
1719
|
| {
|
|
1701
1720
|
Args: {
|
|
1702
1721
|
userid: string
|
|
1703
1722
|
}
|
|
1704
1723
|
Returns: boolean
|
|
1705
1724
|
}
|
|
1725
|
+
| {
|
|
1726
|
+
Args: Record<PropertyKey, never>
|
|
1727
|
+
Returns: boolean
|
|
1728
|
+
}
|
|
1706
1729
|
is_onboarding_needed:
|
|
1707
1730
|
| {
|
|
1708
1731
|
Args: Record<PropertyKey, never>
|
|
@@ -1714,6 +1737,13 @@ export interface Database {
|
|
|
1714
1737
|
}
|
|
1715
1738
|
Returns: boolean
|
|
1716
1739
|
}
|
|
1740
|
+
is_owner_of_org: {
|
|
1741
|
+
Args: {
|
|
1742
|
+
user_id: string
|
|
1743
|
+
org_id: string
|
|
1744
|
+
}
|
|
1745
|
+
Returns: boolean
|
|
1746
|
+
}
|
|
1717
1747
|
is_paying:
|
|
1718
1748
|
| {
|
|
1719
1749
|
Args: Record<PropertyKey, never>
|
|
@@ -1726,16 +1756,16 @@ export interface Database {
|
|
|
1726
1756
|
Returns: boolean
|
|
1727
1757
|
}
|
|
1728
1758
|
is_paying_and_good_plan:
|
|
1729
|
-
| {
|
|
1730
|
-
Args: Record<PropertyKey, never>
|
|
1731
|
-
Returns: boolean
|
|
1732
|
-
}
|
|
1733
1759
|
| {
|
|
1734
1760
|
Args: {
|
|
1735
1761
|
userid: string
|
|
1736
1762
|
}
|
|
1737
1763
|
Returns: boolean
|
|
1738
1764
|
}
|
|
1765
|
+
| {
|
|
1766
|
+
Args: Record<PropertyKey, never>
|
|
1767
|
+
Returns: boolean
|
|
1768
|
+
}
|
|
1739
1769
|
is_trial:
|
|
1740
1770
|
| {
|
|
1741
1771
|
Args: Record<PropertyKey, never>
|
|
@@ -1765,23 +1795,25 @@ export interface Database {
|
|
|
1765
1795
|
Args: Record<PropertyKey, never>
|
|
1766
1796
|
Returns: string
|
|
1767
1797
|
}
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1798
|
+
process_current_jobs_if_unlocked: {
|
|
1799
|
+
Args: Record<PropertyKey, never>
|
|
1800
|
+
Returns: number[]
|
|
1801
|
+
}
|
|
1802
|
+
remove_enum_value: {
|
|
1803
|
+
Args: {
|
|
1804
|
+
enum_type: unknown
|
|
1805
|
+
enum_value: string
|
|
1806
|
+
}
|
|
1807
|
+
Returns: undefined
|
|
1808
|
+
}
|
|
1809
|
+
schedule_jobs: {
|
|
1810
|
+
Args: Record<PropertyKey, never>
|
|
1811
|
+
Returns: undefined
|
|
1812
|
+
}
|
|
1779
1813
|
}
|
|
1780
1814
|
Enums: {
|
|
1781
|
-
app_mode: "prod" | "dev" | "livereload"
|
|
1782
1815
|
disable_update: "major" | "minor" | "version_number" | "none"
|
|
1783
1816
|
key_mode: "read" | "write" | "all" | "upload"
|
|
1784
|
-
pay_as_you_go_type: "base" | "units"
|
|
1785
1817
|
platform_os: "ios" | "android"
|
|
1786
1818
|
stripe_status:
|
|
1787
1819
|
| "created"
|
|
@@ -1790,13 +1822,33 @@ export interface Database {
|
|
|
1790
1822
|
| "failed"
|
|
1791
1823
|
| "deleted"
|
|
1792
1824
|
| "canceled"
|
|
1793
|
-
usage_mode: "
|
|
1794
|
-
user_min_right:
|
|
1825
|
+
usage_mode: "last_saved" | "5min" | "day" | "cycle"
|
|
1826
|
+
user_min_right:
|
|
1827
|
+
| "invite_read"
|
|
1828
|
+
| "invite_upload"
|
|
1829
|
+
| "invite_write"
|
|
1830
|
+
| "invite_admin"
|
|
1831
|
+
| "read"
|
|
1832
|
+
| "upload"
|
|
1833
|
+
| "write"
|
|
1834
|
+
| "admin"
|
|
1795
1835
|
user_role: "read" | "upload" | "write" | "admin"
|
|
1796
1836
|
}
|
|
1797
1837
|
CompositeTypes: {
|
|
1798
|
-
|
|
1838
|
+
orgs_table: {
|
|
1839
|
+
id: string
|
|
1840
|
+
created_by: string
|
|
1841
|
+
created_at: string
|
|
1842
|
+
updated_at: string
|
|
1843
|
+
logo: string
|
|
1844
|
+
name: string
|
|
1845
|
+
}
|
|
1846
|
+
owned_orgs: {
|
|
1847
|
+
id: string
|
|
1848
|
+
created_by: string
|
|
1849
|
+
logo: string
|
|
1799
1850
|
name: string
|
|
1851
|
+
role: string
|
|
1800
1852
|
}
|
|
1801
1853
|
stats_table: {
|
|
1802
1854
|
mau: number
|
|
@@ -1806,3 +1858,4 @@ export interface Database {
|
|
|
1806
1858
|
}
|
|
1807
1859
|
}
|
|
1808
1860
|
}
|
|
1861
|
+
|