@capgo/cli 7.95.3 → 7.95.5
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/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +3921 -437
- package/dist/src/api/versions.d.ts +2 -0
- package/dist/src/app/list.d.ts +10 -2
- package/dist/src/bundle/list.d.ts +1 -0
- package/dist/src/channel/add.d.ts +2 -0
- package/dist/src/organization/add.d.ts +6 -0
- package/dist/src/organization/list.d.ts +8 -0
- package/dist/src/sdk.js +1 -1
- package/dist/src/types/supabase.types.d.ts +2029 -238
- package/dist/src/utils.d.ts +1987 -245
- package/package.json +1 -1
|
@@ -2,8 +2,30 @@ export type Json = string | number | boolean | null | {
|
|
|
2
2
|
[key: string]: Json | undefined;
|
|
3
3
|
} | Json[];
|
|
4
4
|
export type Database = {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
graphql_public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
[_ in never]: never;
|
|
8
|
+
};
|
|
9
|
+
Views: {
|
|
10
|
+
[_ in never]: never;
|
|
11
|
+
};
|
|
12
|
+
Functions: {
|
|
13
|
+
graphql: {
|
|
14
|
+
Args: {
|
|
15
|
+
extensions?: Json;
|
|
16
|
+
operationName?: string;
|
|
17
|
+
query?: string;
|
|
18
|
+
variables?: Json;
|
|
19
|
+
};
|
|
20
|
+
Returns: Json;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
Enums: {
|
|
24
|
+
[_ in never]: never;
|
|
25
|
+
};
|
|
26
|
+
CompositeTypes: {
|
|
27
|
+
[_ in never]: never;
|
|
28
|
+
};
|
|
7
29
|
};
|
|
8
30
|
public: {
|
|
9
31
|
Tables: {
|
|
@@ -18,6 +40,7 @@ export type Database = {
|
|
|
18
40
|
limited_to_orgs: string[] | null;
|
|
19
41
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
20
42
|
name: string;
|
|
43
|
+
rbac_id: string;
|
|
21
44
|
updated_at: string | null;
|
|
22
45
|
user_id: string;
|
|
23
46
|
};
|
|
@@ -31,6 +54,7 @@ export type Database = {
|
|
|
31
54
|
limited_to_orgs?: string[] | null;
|
|
32
55
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
33
56
|
name: string;
|
|
57
|
+
rbac_id?: string;
|
|
34
58
|
updated_at?: string | null;
|
|
35
59
|
user_id: string;
|
|
36
60
|
};
|
|
@@ -44,6 +68,7 @@ export type Database = {
|
|
|
44
68
|
limited_to_orgs?: string[] | null;
|
|
45
69
|
mode?: Database["public"]["Enums"]["key_mode"];
|
|
46
70
|
name?: string;
|
|
71
|
+
rbac_id?: string;
|
|
47
72
|
updated_at?: string | null;
|
|
48
73
|
user_id?: string;
|
|
49
74
|
};
|
|
@@ -100,6 +125,7 @@ export type Database = {
|
|
|
100
125
|
comment: string | null;
|
|
101
126
|
created_at: string | null;
|
|
102
127
|
deleted: boolean;
|
|
128
|
+
deleted_at: string | null;
|
|
103
129
|
external_url: string | null;
|
|
104
130
|
id: number;
|
|
105
131
|
key_id: string | null;
|
|
@@ -123,6 +149,7 @@ export type Database = {
|
|
|
123
149
|
comment?: string | null;
|
|
124
150
|
created_at?: string | null;
|
|
125
151
|
deleted?: boolean;
|
|
152
|
+
deleted_at?: string | null;
|
|
126
153
|
external_url?: string | null;
|
|
127
154
|
id?: number;
|
|
128
155
|
key_id?: string | null;
|
|
@@ -146,6 +173,7 @@ export type Database = {
|
|
|
146
173
|
comment?: string | null;
|
|
147
174
|
created_at?: string | null;
|
|
148
175
|
deleted?: boolean;
|
|
176
|
+
deleted_at?: string | null;
|
|
149
177
|
external_url?: string | null;
|
|
150
178
|
id?: number;
|
|
151
179
|
key_id?: string | null;
|
|
@@ -233,6 +261,8 @@ export type Database = {
|
|
|
233
261
|
};
|
|
234
262
|
apps: {
|
|
235
263
|
Row: {
|
|
264
|
+
allow_device_custom_id: boolean;
|
|
265
|
+
allow_preview: boolean;
|
|
236
266
|
android_store_url: string | null;
|
|
237
267
|
app_id: string;
|
|
238
268
|
channel_device_count: number;
|
|
@@ -245,15 +275,19 @@ export type Database = {
|
|
|
245
275
|
ios_store_url: string | null;
|
|
246
276
|
last_version: string | null;
|
|
247
277
|
manifest_bundle_count: number;
|
|
248
|
-
need_onboarding: boolean;
|
|
249
278
|
name: string | null;
|
|
279
|
+
need_onboarding: boolean;
|
|
250
280
|
owner_org: string;
|
|
251
281
|
retention: number;
|
|
282
|
+
stats_refresh_requested_at: string | null;
|
|
283
|
+
stats_updated_at: string | null;
|
|
252
284
|
transfer_history: Json[] | null;
|
|
253
285
|
updated_at: string | null;
|
|
254
286
|
user_id: string | null;
|
|
255
287
|
};
|
|
256
288
|
Insert: {
|
|
289
|
+
allow_device_custom_id?: boolean;
|
|
290
|
+
allow_preview?: boolean;
|
|
257
291
|
android_store_url?: string | null;
|
|
258
292
|
app_id: string;
|
|
259
293
|
channel_device_count?: number;
|
|
@@ -266,15 +300,19 @@ export type Database = {
|
|
|
266
300
|
ios_store_url?: string | null;
|
|
267
301
|
last_version?: string | null;
|
|
268
302
|
manifest_bundle_count?: number;
|
|
269
|
-
need_onboarding?: boolean;
|
|
270
303
|
name?: string | null;
|
|
304
|
+
need_onboarding?: boolean;
|
|
271
305
|
owner_org: string;
|
|
272
306
|
retention?: number;
|
|
307
|
+
stats_refresh_requested_at?: string | null;
|
|
308
|
+
stats_updated_at?: string | null;
|
|
273
309
|
transfer_history?: Json[] | null;
|
|
274
310
|
updated_at?: string | null;
|
|
275
311
|
user_id?: string | null;
|
|
276
312
|
};
|
|
277
313
|
Update: {
|
|
314
|
+
allow_device_custom_id?: boolean;
|
|
315
|
+
allow_preview?: boolean;
|
|
278
316
|
android_store_url?: string | null;
|
|
279
317
|
app_id?: string;
|
|
280
318
|
channel_device_count?: number;
|
|
@@ -287,10 +325,12 @@ export type Database = {
|
|
|
287
325
|
ios_store_url?: string | null;
|
|
288
326
|
last_version?: string | null;
|
|
289
327
|
manifest_bundle_count?: number;
|
|
290
|
-
need_onboarding?: boolean;
|
|
291
328
|
name?: string | null;
|
|
329
|
+
need_onboarding?: boolean;
|
|
292
330
|
owner_org?: string;
|
|
293
331
|
retention?: number;
|
|
332
|
+
stats_refresh_requested_at?: string | null;
|
|
333
|
+
stats_updated_at?: string | null;
|
|
294
334
|
transfer_history?: Json[] | null;
|
|
295
335
|
updated_at?: string | null;
|
|
296
336
|
user_id?: string | null;
|
|
@@ -392,6 +432,7 @@ export type Database = {
|
|
|
392
432
|
};
|
|
393
433
|
build_logs: {
|
|
394
434
|
Row: {
|
|
435
|
+
app_id: string | null;
|
|
395
436
|
billable_seconds: number;
|
|
396
437
|
build_id: string;
|
|
397
438
|
build_time_unit: number;
|
|
@@ -402,6 +443,7 @@ export type Database = {
|
|
|
402
443
|
user_id: string | null;
|
|
403
444
|
};
|
|
404
445
|
Insert: {
|
|
446
|
+
app_id?: string | null;
|
|
405
447
|
billable_seconds: number;
|
|
406
448
|
build_id: string;
|
|
407
449
|
build_time_unit: number;
|
|
@@ -412,6 +454,7 @@ export type Database = {
|
|
|
412
454
|
user_id?: string | null;
|
|
413
455
|
};
|
|
414
456
|
Update: {
|
|
457
|
+
app_id?: string | null;
|
|
415
458
|
billable_seconds?: number;
|
|
416
459
|
build_id?: string;
|
|
417
460
|
build_time_unit?: number;
|
|
@@ -423,11 +466,11 @@ export type Database = {
|
|
|
423
466
|
};
|
|
424
467
|
Relationships: [
|
|
425
468
|
{
|
|
426
|
-
foreignKeyName: "
|
|
427
|
-
columns: ["
|
|
469
|
+
foreignKeyName: "build_logs_app_id_fkey";
|
|
470
|
+
columns: ["app_id"];
|
|
428
471
|
isOneToOne: false;
|
|
429
|
-
referencedRelation: "
|
|
430
|
-
referencedColumns: ["
|
|
472
|
+
referencedRelation: "apps";
|
|
473
|
+
referencedColumns: ["app_id"];
|
|
431
474
|
}
|
|
432
475
|
];
|
|
433
476
|
};
|
|
@@ -599,6 +642,51 @@ export type Database = {
|
|
|
599
642
|
}
|
|
600
643
|
];
|
|
601
644
|
};
|
|
645
|
+
channel_permission_overrides: {
|
|
646
|
+
Row: {
|
|
647
|
+
channel_id: number;
|
|
648
|
+
created_at: string;
|
|
649
|
+
id: string;
|
|
650
|
+
is_allowed: boolean;
|
|
651
|
+
permission_key: string;
|
|
652
|
+
principal_id: string;
|
|
653
|
+
principal_type: string;
|
|
654
|
+
};
|
|
655
|
+
Insert: {
|
|
656
|
+
channel_id: number;
|
|
657
|
+
created_at?: string;
|
|
658
|
+
id?: string;
|
|
659
|
+
is_allowed: boolean;
|
|
660
|
+
permission_key: string;
|
|
661
|
+
principal_id: string;
|
|
662
|
+
principal_type: string;
|
|
663
|
+
};
|
|
664
|
+
Update: {
|
|
665
|
+
channel_id?: number;
|
|
666
|
+
created_at?: string;
|
|
667
|
+
id?: string;
|
|
668
|
+
is_allowed?: boolean;
|
|
669
|
+
permission_key?: string;
|
|
670
|
+
principal_id?: string;
|
|
671
|
+
principal_type?: string;
|
|
672
|
+
};
|
|
673
|
+
Relationships: [
|
|
674
|
+
{
|
|
675
|
+
foreignKeyName: "channel_permission_overrides_channel_id_fkey";
|
|
676
|
+
columns: ["channel_id"];
|
|
677
|
+
isOneToOne: false;
|
|
678
|
+
referencedRelation: "channels";
|
|
679
|
+
referencedColumns: ["id"];
|
|
680
|
+
},
|
|
681
|
+
{
|
|
682
|
+
foreignKeyName: "channel_permission_overrides_permission_key_fkey";
|
|
683
|
+
columns: ["permission_key"];
|
|
684
|
+
isOneToOne: false;
|
|
685
|
+
referencedRelation: "permissions";
|
|
686
|
+
referencedColumns: ["key"];
|
|
687
|
+
}
|
|
688
|
+
];
|
|
689
|
+
};
|
|
602
690
|
channels: {
|
|
603
691
|
Row: {
|
|
604
692
|
allow_dev: boolean;
|
|
@@ -612,11 +700,13 @@ export type Database = {
|
|
|
612
700
|
created_by: string;
|
|
613
701
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
614
702
|
disable_auto_update_under_native: boolean;
|
|
703
|
+
electron: boolean;
|
|
615
704
|
id: number;
|
|
616
705
|
ios: boolean;
|
|
617
706
|
name: string;
|
|
618
707
|
owner_org: string;
|
|
619
708
|
public: boolean;
|
|
709
|
+
rbac_id: string;
|
|
620
710
|
updated_at: string;
|
|
621
711
|
version: number;
|
|
622
712
|
};
|
|
@@ -632,11 +722,13 @@ export type Database = {
|
|
|
632
722
|
created_by: string;
|
|
633
723
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
634
724
|
disable_auto_update_under_native?: boolean;
|
|
725
|
+
electron?: boolean;
|
|
635
726
|
id?: number;
|
|
636
727
|
ios?: boolean;
|
|
637
728
|
name: string;
|
|
638
729
|
owner_org: string;
|
|
639
730
|
public?: boolean;
|
|
731
|
+
rbac_id?: string;
|
|
640
732
|
updated_at?: string;
|
|
641
733
|
version: number;
|
|
642
734
|
};
|
|
@@ -652,11 +744,13 @@ export type Database = {
|
|
|
652
744
|
created_by?: string;
|
|
653
745
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
654
746
|
disable_auto_update_under_native?: boolean;
|
|
747
|
+
electron?: boolean;
|
|
655
748
|
id?: number;
|
|
656
749
|
ios?: boolean;
|
|
657
750
|
name?: string;
|
|
658
751
|
owner_org?: string;
|
|
659
752
|
public?: boolean;
|
|
753
|
+
rbac_id?: string;
|
|
660
754
|
updated_at?: string;
|
|
661
755
|
version?: number;
|
|
662
756
|
};
|
|
@@ -818,6 +912,42 @@ export type Database = {
|
|
|
818
912
|
};
|
|
819
913
|
Relationships: [];
|
|
820
914
|
};
|
|
915
|
+
daily_revenue_metrics: {
|
|
916
|
+
Row: {
|
|
917
|
+
churn_mrr: number;
|
|
918
|
+
contraction_mrr: number;
|
|
919
|
+
created_at: string;
|
|
920
|
+
customer_id: string;
|
|
921
|
+
date_id: string;
|
|
922
|
+
expansion_mrr: number;
|
|
923
|
+
new_business_mrr: number;
|
|
924
|
+
opening_mrr: number;
|
|
925
|
+
updated_at: string;
|
|
926
|
+
};
|
|
927
|
+
Insert: {
|
|
928
|
+
churn_mrr?: number;
|
|
929
|
+
contraction_mrr?: number;
|
|
930
|
+
created_at?: string;
|
|
931
|
+
customer_id: string;
|
|
932
|
+
date_id: string;
|
|
933
|
+
expansion_mrr?: number;
|
|
934
|
+
new_business_mrr?: number;
|
|
935
|
+
opening_mrr?: number;
|
|
936
|
+
updated_at?: string;
|
|
937
|
+
};
|
|
938
|
+
Update: {
|
|
939
|
+
churn_mrr?: number;
|
|
940
|
+
contraction_mrr?: number;
|
|
941
|
+
created_at?: string;
|
|
942
|
+
customer_id?: string;
|
|
943
|
+
date_id?: string;
|
|
944
|
+
expansion_mrr?: number;
|
|
945
|
+
new_business_mrr?: number;
|
|
946
|
+
opening_mrr?: number;
|
|
947
|
+
updated_at?: string;
|
|
948
|
+
};
|
|
949
|
+
Relationships: [];
|
|
950
|
+
};
|
|
821
951
|
daily_storage: {
|
|
822
952
|
Row: {
|
|
823
953
|
app_id: string;
|
|
@@ -847,7 +977,8 @@ export type Database = {
|
|
|
847
977
|
get: number | null;
|
|
848
978
|
install: number | null;
|
|
849
979
|
uninstall: number | null;
|
|
850
|
-
version_id: number;
|
|
980
|
+
version_id: number | null;
|
|
981
|
+
version_name: string;
|
|
851
982
|
};
|
|
852
983
|
Insert: {
|
|
853
984
|
app_id: string;
|
|
@@ -856,7 +987,8 @@ export type Database = {
|
|
|
856
987
|
get?: number | null;
|
|
857
988
|
install?: number | null;
|
|
858
989
|
uninstall?: number | null;
|
|
859
|
-
version_id
|
|
990
|
+
version_id?: number | null;
|
|
991
|
+
version_name: string;
|
|
860
992
|
};
|
|
861
993
|
Update: {
|
|
862
994
|
app_id?: string;
|
|
@@ -865,7 +997,8 @@ export type Database = {
|
|
|
865
997
|
get?: number | null;
|
|
866
998
|
install?: number | null;
|
|
867
999
|
uninstall?: number | null;
|
|
868
|
-
version_id?: number;
|
|
1000
|
+
version_id?: number | null;
|
|
1001
|
+
version_name?: string;
|
|
869
1002
|
};
|
|
870
1003
|
Relationships: [];
|
|
871
1004
|
};
|
|
@@ -1061,22 +1194,43 @@ export type Database = {
|
|
|
1061
1194
|
Row: {
|
|
1062
1195
|
apps: number;
|
|
1063
1196
|
apps_active: number | null;
|
|
1197
|
+
build_avg_seconds_day_android: number;
|
|
1198
|
+
build_avg_seconds_day_ios: number;
|
|
1199
|
+
build_count_day_android: number;
|
|
1200
|
+
build_count_day_ios: number;
|
|
1201
|
+
build_total_seconds_day_android: number;
|
|
1202
|
+
build_total_seconds_day_ios: number;
|
|
1203
|
+
builds_android: number | null;
|
|
1204
|
+
builds_ios: number | null;
|
|
1205
|
+
builds_last_month: number | null;
|
|
1206
|
+
builds_last_month_android: number | null;
|
|
1207
|
+
builds_last_month_ios: number | null;
|
|
1208
|
+
builds_success_android: number | null;
|
|
1209
|
+
builds_success_ios: number | null;
|
|
1210
|
+
builds_success_total: number | null;
|
|
1211
|
+
builds_total: number | null;
|
|
1064
1212
|
bundle_storage_gb: number;
|
|
1065
1213
|
canceled_orgs: number;
|
|
1214
|
+
churn_revenue: number;
|
|
1066
1215
|
created_at: string | null;
|
|
1067
1216
|
credits_bought: number;
|
|
1068
1217
|
credits_consumed: number;
|
|
1069
1218
|
date_id: string;
|
|
1219
|
+
demo_apps_created: number;
|
|
1070
1220
|
devices_last_month: number | null;
|
|
1221
|
+
devices_last_month_android: number | null;
|
|
1222
|
+
devices_last_month_ios: number | null;
|
|
1071
1223
|
mrr: number;
|
|
1072
1224
|
need_upgrade: number | null;
|
|
1073
1225
|
new_paying_orgs: number;
|
|
1074
1226
|
not_paying: number | null;
|
|
1227
|
+
nrr: number;
|
|
1075
1228
|
onboarded: number | null;
|
|
1229
|
+
org_conversion_rate: number;
|
|
1076
1230
|
paying: number | null;
|
|
1077
1231
|
paying_monthly: number | null;
|
|
1078
1232
|
paying_yearly: number | null;
|
|
1079
|
-
plan_enterprise: number
|
|
1233
|
+
plan_enterprise: number;
|
|
1080
1234
|
plan_enterprise_monthly: number;
|
|
1081
1235
|
plan_enterprise_yearly: number;
|
|
1082
1236
|
plan_maker: number | null;
|
|
@@ -1088,6 +1242,8 @@ export type Database = {
|
|
|
1088
1242
|
plan_team: number | null;
|
|
1089
1243
|
plan_team_monthly: number;
|
|
1090
1244
|
plan_team_yearly: number;
|
|
1245
|
+
plugin_major_breakdown: Json;
|
|
1246
|
+
plugin_version_breakdown: Json;
|
|
1091
1247
|
registers_today: number;
|
|
1092
1248
|
revenue_enterprise: number;
|
|
1093
1249
|
revenue_maker: number;
|
|
@@ -1100,28 +1256,50 @@ export type Database = {
|
|
|
1100
1256
|
updates: number;
|
|
1101
1257
|
updates_external: number | null;
|
|
1102
1258
|
updates_last_month: number | null;
|
|
1259
|
+
upgraded_orgs: number;
|
|
1103
1260
|
users: number | null;
|
|
1104
1261
|
users_active: number | null;
|
|
1105
1262
|
};
|
|
1106
1263
|
Insert: {
|
|
1107
1264
|
apps: number;
|
|
1108
1265
|
apps_active?: number | null;
|
|
1266
|
+
build_avg_seconds_day_android?: number;
|
|
1267
|
+
build_avg_seconds_day_ios?: number;
|
|
1268
|
+
build_count_day_android?: number;
|
|
1269
|
+
build_count_day_ios?: number;
|
|
1270
|
+
build_total_seconds_day_android?: number;
|
|
1271
|
+
build_total_seconds_day_ios?: number;
|
|
1272
|
+
builds_android?: number | null;
|
|
1273
|
+
builds_ios?: number | null;
|
|
1274
|
+
builds_last_month?: number | null;
|
|
1275
|
+
builds_last_month_android?: number | null;
|
|
1276
|
+
builds_last_month_ios?: number | null;
|
|
1277
|
+
builds_success_android?: number | null;
|
|
1278
|
+
builds_success_ios?: number | null;
|
|
1279
|
+
builds_success_total?: number | null;
|
|
1280
|
+
builds_total?: number | null;
|
|
1109
1281
|
bundle_storage_gb?: number;
|
|
1110
1282
|
canceled_orgs?: number;
|
|
1283
|
+
churn_revenue?: number;
|
|
1111
1284
|
created_at?: string | null;
|
|
1112
1285
|
credits_bought?: number;
|
|
1113
1286
|
credits_consumed?: number;
|
|
1114
1287
|
date_id: string;
|
|
1288
|
+
demo_apps_created?: number;
|
|
1115
1289
|
devices_last_month?: number | null;
|
|
1290
|
+
devices_last_month_android?: number | null;
|
|
1291
|
+
devices_last_month_ios?: number | null;
|
|
1116
1292
|
mrr?: number;
|
|
1117
1293
|
need_upgrade?: number | null;
|
|
1118
1294
|
new_paying_orgs?: number;
|
|
1119
1295
|
not_paying?: number | null;
|
|
1296
|
+
nrr?: number;
|
|
1120
1297
|
onboarded?: number | null;
|
|
1298
|
+
org_conversion_rate?: number;
|
|
1121
1299
|
paying?: number | null;
|
|
1122
1300
|
paying_monthly?: number | null;
|
|
1123
1301
|
paying_yearly?: number | null;
|
|
1124
|
-
plan_enterprise?: number
|
|
1302
|
+
plan_enterprise?: number;
|
|
1125
1303
|
plan_enterprise_monthly?: number;
|
|
1126
1304
|
plan_enterprise_yearly?: number;
|
|
1127
1305
|
plan_maker?: number | null;
|
|
@@ -1133,6 +1311,8 @@ export type Database = {
|
|
|
1133
1311
|
plan_team?: number | null;
|
|
1134
1312
|
plan_team_monthly?: number;
|
|
1135
1313
|
plan_team_yearly?: number;
|
|
1314
|
+
plugin_major_breakdown?: Json;
|
|
1315
|
+
plugin_version_breakdown?: Json;
|
|
1136
1316
|
registers_today?: number;
|
|
1137
1317
|
revenue_enterprise?: number;
|
|
1138
1318
|
revenue_maker?: number;
|
|
@@ -1145,28 +1325,50 @@ export type Database = {
|
|
|
1145
1325
|
updates: number;
|
|
1146
1326
|
updates_external?: number | null;
|
|
1147
1327
|
updates_last_month?: number | null;
|
|
1328
|
+
upgraded_orgs?: number;
|
|
1148
1329
|
users?: number | null;
|
|
1149
1330
|
users_active?: number | null;
|
|
1150
1331
|
};
|
|
1151
1332
|
Update: {
|
|
1152
1333
|
apps?: number;
|
|
1153
1334
|
apps_active?: number | null;
|
|
1335
|
+
build_avg_seconds_day_android?: number;
|
|
1336
|
+
build_avg_seconds_day_ios?: number;
|
|
1337
|
+
build_count_day_android?: number;
|
|
1338
|
+
build_count_day_ios?: number;
|
|
1339
|
+
build_total_seconds_day_android?: number;
|
|
1340
|
+
build_total_seconds_day_ios?: number;
|
|
1341
|
+
builds_android?: number | null;
|
|
1342
|
+
builds_ios?: number | null;
|
|
1343
|
+
builds_last_month?: number | null;
|
|
1344
|
+
builds_last_month_android?: number | null;
|
|
1345
|
+
builds_last_month_ios?: number | null;
|
|
1346
|
+
builds_success_android?: number | null;
|
|
1347
|
+
builds_success_ios?: number | null;
|
|
1348
|
+
builds_success_total?: number | null;
|
|
1349
|
+
builds_total?: number | null;
|
|
1154
1350
|
bundle_storage_gb?: number;
|
|
1155
1351
|
canceled_orgs?: number;
|
|
1352
|
+
churn_revenue?: number;
|
|
1156
1353
|
created_at?: string | null;
|
|
1157
1354
|
credits_bought?: number;
|
|
1158
1355
|
credits_consumed?: number;
|
|
1159
1356
|
date_id?: string;
|
|
1357
|
+
demo_apps_created?: number;
|
|
1160
1358
|
devices_last_month?: number | null;
|
|
1359
|
+
devices_last_month_android?: number | null;
|
|
1360
|
+
devices_last_month_ios?: number | null;
|
|
1161
1361
|
mrr?: number;
|
|
1162
1362
|
need_upgrade?: number | null;
|
|
1163
1363
|
new_paying_orgs?: number;
|
|
1164
1364
|
not_paying?: number | null;
|
|
1365
|
+
nrr?: number;
|
|
1165
1366
|
onboarded?: number | null;
|
|
1367
|
+
org_conversion_rate?: number;
|
|
1166
1368
|
paying?: number | null;
|
|
1167
1369
|
paying_monthly?: number | null;
|
|
1168
1370
|
paying_yearly?: number | null;
|
|
1169
|
-
plan_enterprise?: number
|
|
1371
|
+
plan_enterprise?: number;
|
|
1170
1372
|
plan_enterprise_monthly?: number;
|
|
1171
1373
|
plan_enterprise_yearly?: number;
|
|
1172
1374
|
plan_maker?: number | null;
|
|
@@ -1178,6 +1380,8 @@ export type Database = {
|
|
|
1178
1380
|
plan_team?: number | null;
|
|
1179
1381
|
plan_team_monthly?: number;
|
|
1180
1382
|
plan_team_yearly?: number;
|
|
1383
|
+
plugin_major_breakdown?: Json;
|
|
1384
|
+
plugin_version_breakdown?: Json;
|
|
1181
1385
|
registers_today?: number;
|
|
1182
1386
|
revenue_enterprise?: number;
|
|
1183
1387
|
revenue_maker?: number;
|
|
@@ -1190,11 +1394,86 @@ export type Database = {
|
|
|
1190
1394
|
updates?: number;
|
|
1191
1395
|
updates_external?: number | null;
|
|
1192
1396
|
updates_last_month?: number | null;
|
|
1397
|
+
upgraded_orgs?: number;
|
|
1193
1398
|
users?: number | null;
|
|
1194
1399
|
users_active?: number | null;
|
|
1195
1400
|
};
|
|
1196
1401
|
Relationships: [];
|
|
1197
1402
|
};
|
|
1403
|
+
group_members: {
|
|
1404
|
+
Row: {
|
|
1405
|
+
added_at: string;
|
|
1406
|
+
added_by: string | null;
|
|
1407
|
+
group_id: string;
|
|
1408
|
+
user_id: string;
|
|
1409
|
+
};
|
|
1410
|
+
Insert: {
|
|
1411
|
+
added_at?: string;
|
|
1412
|
+
added_by?: string | null;
|
|
1413
|
+
group_id: string;
|
|
1414
|
+
user_id: string;
|
|
1415
|
+
};
|
|
1416
|
+
Update: {
|
|
1417
|
+
added_at?: string;
|
|
1418
|
+
added_by?: string | null;
|
|
1419
|
+
group_id?: string;
|
|
1420
|
+
user_id?: string;
|
|
1421
|
+
};
|
|
1422
|
+
Relationships: [
|
|
1423
|
+
{
|
|
1424
|
+
foreignKeyName: "group_members_group_id_fkey";
|
|
1425
|
+
columns: ["group_id"];
|
|
1426
|
+
isOneToOne: false;
|
|
1427
|
+
referencedRelation: "groups";
|
|
1428
|
+
referencedColumns: ["id"];
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
foreignKeyName: "group_members_user_id_fkey";
|
|
1432
|
+
columns: ["user_id"];
|
|
1433
|
+
isOneToOne: false;
|
|
1434
|
+
referencedRelation: "users";
|
|
1435
|
+
referencedColumns: ["id"];
|
|
1436
|
+
}
|
|
1437
|
+
];
|
|
1438
|
+
};
|
|
1439
|
+
groups: {
|
|
1440
|
+
Row: {
|
|
1441
|
+
created_at: string;
|
|
1442
|
+
created_by: string | null;
|
|
1443
|
+
description: string | null;
|
|
1444
|
+
id: string;
|
|
1445
|
+
is_system: boolean;
|
|
1446
|
+
name: string;
|
|
1447
|
+
org_id: string;
|
|
1448
|
+
};
|
|
1449
|
+
Insert: {
|
|
1450
|
+
created_at?: string;
|
|
1451
|
+
created_by?: string | null;
|
|
1452
|
+
description?: string | null;
|
|
1453
|
+
id?: string;
|
|
1454
|
+
is_system?: boolean;
|
|
1455
|
+
name: string;
|
|
1456
|
+
org_id: string;
|
|
1457
|
+
};
|
|
1458
|
+
Update: {
|
|
1459
|
+
created_at?: string;
|
|
1460
|
+
created_by?: string | null;
|
|
1461
|
+
description?: string | null;
|
|
1462
|
+
id?: string;
|
|
1463
|
+
is_system?: boolean;
|
|
1464
|
+
name?: string;
|
|
1465
|
+
org_id?: string;
|
|
1466
|
+
};
|
|
1467
|
+
Relationships: [
|
|
1468
|
+
{
|
|
1469
|
+
foreignKeyName: "groups_org_id_fkey";
|
|
1470
|
+
columns: ["org_id"];
|
|
1471
|
+
isOneToOne: false;
|
|
1472
|
+
referencedRelation: "orgs";
|
|
1473
|
+
referencedColumns: ["id"];
|
|
1474
|
+
}
|
|
1475
|
+
];
|
|
1476
|
+
};
|
|
1198
1477
|
manifest: {
|
|
1199
1478
|
Row: {
|
|
1200
1479
|
app_version_id: number;
|
|
@@ -1268,6 +1547,59 @@ export type Database = {
|
|
|
1268
1547
|
}
|
|
1269
1548
|
];
|
|
1270
1549
|
};
|
|
1550
|
+
org_metrics_cache: {
|
|
1551
|
+
Row: {
|
|
1552
|
+
bandwidth: number;
|
|
1553
|
+
build_time_unit: number;
|
|
1554
|
+
cached_at: string;
|
|
1555
|
+
end_date: string;
|
|
1556
|
+
fail: number;
|
|
1557
|
+
get: number;
|
|
1558
|
+
install: number;
|
|
1559
|
+
mau: number;
|
|
1560
|
+
org_id: string;
|
|
1561
|
+
start_date: string;
|
|
1562
|
+
storage: number;
|
|
1563
|
+
uninstall: number;
|
|
1564
|
+
};
|
|
1565
|
+
Insert: {
|
|
1566
|
+
bandwidth: number;
|
|
1567
|
+
build_time_unit: number;
|
|
1568
|
+
cached_at?: string;
|
|
1569
|
+
end_date: string;
|
|
1570
|
+
fail: number;
|
|
1571
|
+
get: number;
|
|
1572
|
+
install: number;
|
|
1573
|
+
mau: number;
|
|
1574
|
+
org_id: string;
|
|
1575
|
+
start_date: string;
|
|
1576
|
+
storage: number;
|
|
1577
|
+
uninstall: number;
|
|
1578
|
+
};
|
|
1579
|
+
Update: {
|
|
1580
|
+
bandwidth?: number;
|
|
1581
|
+
build_time_unit?: number;
|
|
1582
|
+
cached_at?: string;
|
|
1583
|
+
end_date?: string;
|
|
1584
|
+
fail?: number;
|
|
1585
|
+
get?: number;
|
|
1586
|
+
install?: number;
|
|
1587
|
+
mau?: number;
|
|
1588
|
+
org_id?: string;
|
|
1589
|
+
start_date?: string;
|
|
1590
|
+
storage?: number;
|
|
1591
|
+
uninstall?: number;
|
|
1592
|
+
};
|
|
1593
|
+
Relationships: [
|
|
1594
|
+
{
|
|
1595
|
+
foreignKeyName: "org_metrics_cache_org_id_fkey";
|
|
1596
|
+
columns: ["org_id"];
|
|
1597
|
+
isOneToOne: true;
|
|
1598
|
+
referencedRelation: "orgs";
|
|
1599
|
+
referencedColumns: ["id"];
|
|
1600
|
+
}
|
|
1601
|
+
];
|
|
1602
|
+
};
|
|
1271
1603
|
org_users: {
|
|
1272
1604
|
Row: {
|
|
1273
1605
|
app_id: string | null;
|
|
@@ -1275,6 +1607,7 @@ export type Database = {
|
|
|
1275
1607
|
created_at: string | null;
|
|
1276
1608
|
id: number;
|
|
1277
1609
|
org_id: string;
|
|
1610
|
+
rbac_role_name: string | null;
|
|
1278
1611
|
updated_at: string | null;
|
|
1279
1612
|
user_id: string;
|
|
1280
1613
|
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1285,6 +1618,7 @@ export type Database = {
|
|
|
1285
1618
|
created_at?: string | null;
|
|
1286
1619
|
id?: number;
|
|
1287
1620
|
org_id: string;
|
|
1621
|
+
rbac_role_name?: string | null;
|
|
1288
1622
|
updated_at?: string | null;
|
|
1289
1623
|
user_id: string;
|
|
1290
1624
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1295,6 +1629,7 @@ export type Database = {
|
|
|
1295
1629
|
created_at?: string | null;
|
|
1296
1630
|
id?: number;
|
|
1297
1631
|
org_id?: string;
|
|
1632
|
+
rbac_role_name?: string | null;
|
|
1298
1633
|
updated_at?: string | null;
|
|
1299
1634
|
user_id?: string;
|
|
1300
1635
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1336,8 +1671,10 @@ export type Database = {
|
|
|
1336
1671
|
created_by: string;
|
|
1337
1672
|
customer_id: string | null;
|
|
1338
1673
|
email_preferences: Json;
|
|
1674
|
+
enforce_encrypted_bundles: boolean;
|
|
1339
1675
|
enforce_hashed_api_keys: boolean;
|
|
1340
1676
|
enforcing_2fa: boolean;
|
|
1677
|
+
has_usage_credits: boolean;
|
|
1341
1678
|
id: string;
|
|
1342
1679
|
last_stats_updated_at: string | null;
|
|
1343
1680
|
logo: string | null;
|
|
@@ -1346,16 +1683,22 @@ export type Database = {
|
|
|
1346
1683
|
name: string;
|
|
1347
1684
|
password_policy_config: Json | null;
|
|
1348
1685
|
require_apikey_expiration: boolean;
|
|
1686
|
+
required_encryption_key: string | null;
|
|
1687
|
+
stats_refresh_requested_at: string | null;
|
|
1349
1688
|
stats_updated_at: string | null;
|
|
1350
1689
|
updated_at: string | null;
|
|
1690
|
+
use_new_rbac: boolean;
|
|
1691
|
+
website: string | null;
|
|
1351
1692
|
};
|
|
1352
1693
|
Insert: {
|
|
1353
1694
|
created_at?: string | null;
|
|
1354
1695
|
created_by: string;
|
|
1355
1696
|
customer_id?: string | null;
|
|
1356
1697
|
email_preferences?: Json;
|
|
1698
|
+
enforce_encrypted_bundles?: boolean;
|
|
1357
1699
|
enforce_hashed_api_keys?: boolean;
|
|
1358
1700
|
enforcing_2fa?: boolean;
|
|
1701
|
+
has_usage_credits?: boolean;
|
|
1359
1702
|
id?: string;
|
|
1360
1703
|
last_stats_updated_at?: string | null;
|
|
1361
1704
|
logo?: string | null;
|
|
@@ -1364,16 +1707,22 @@ export type Database = {
|
|
|
1364
1707
|
name: string;
|
|
1365
1708
|
password_policy_config?: Json | null;
|
|
1366
1709
|
require_apikey_expiration?: boolean;
|
|
1710
|
+
required_encryption_key?: string | null;
|
|
1711
|
+
stats_refresh_requested_at?: string | null;
|
|
1367
1712
|
stats_updated_at?: string | null;
|
|
1368
1713
|
updated_at?: string | null;
|
|
1714
|
+
use_new_rbac?: boolean;
|
|
1715
|
+
website?: string | null;
|
|
1369
1716
|
};
|
|
1370
1717
|
Update: {
|
|
1371
1718
|
created_at?: string | null;
|
|
1372
1719
|
created_by?: string;
|
|
1373
1720
|
customer_id?: string | null;
|
|
1374
1721
|
email_preferences?: Json;
|
|
1722
|
+
enforce_encrypted_bundles?: boolean;
|
|
1375
1723
|
enforce_hashed_api_keys?: boolean;
|
|
1376
1724
|
enforcing_2fa?: boolean;
|
|
1725
|
+
has_usage_credits?: boolean;
|
|
1377
1726
|
id?: string;
|
|
1378
1727
|
last_stats_updated_at?: string | null;
|
|
1379
1728
|
logo?: string | null;
|
|
@@ -1382,8 +1731,12 @@ export type Database = {
|
|
|
1382
1731
|
name?: string;
|
|
1383
1732
|
password_policy_config?: Json | null;
|
|
1384
1733
|
require_apikey_expiration?: boolean;
|
|
1734
|
+
required_encryption_key?: string | null;
|
|
1735
|
+
stats_refresh_requested_at?: string | null;
|
|
1385
1736
|
stats_updated_at?: string | null;
|
|
1386
1737
|
updated_at?: string | null;
|
|
1738
|
+
use_new_rbac?: boolean;
|
|
1739
|
+
website?: string | null;
|
|
1387
1740
|
};
|
|
1388
1741
|
Relationships: [
|
|
1389
1742
|
{
|
|
@@ -1402,6 +1755,41 @@ export type Database = {
|
|
|
1402
1755
|
}
|
|
1403
1756
|
];
|
|
1404
1757
|
};
|
|
1758
|
+
permissions: {
|
|
1759
|
+
Row: {
|
|
1760
|
+
bundle_id: number | null;
|
|
1761
|
+
created_at: string;
|
|
1762
|
+
description: string | null;
|
|
1763
|
+
id: string;
|
|
1764
|
+
key: string;
|
|
1765
|
+
scope_type: string;
|
|
1766
|
+
};
|
|
1767
|
+
Insert: {
|
|
1768
|
+
bundle_id?: number | null;
|
|
1769
|
+
created_at?: string;
|
|
1770
|
+
description?: string | null;
|
|
1771
|
+
id?: string;
|
|
1772
|
+
key: string;
|
|
1773
|
+
scope_type: string;
|
|
1774
|
+
};
|
|
1775
|
+
Update: {
|
|
1776
|
+
bundle_id?: number | null;
|
|
1777
|
+
created_at?: string;
|
|
1778
|
+
description?: string | null;
|
|
1779
|
+
id?: string;
|
|
1780
|
+
key?: string;
|
|
1781
|
+
scope_type?: string;
|
|
1782
|
+
};
|
|
1783
|
+
Relationships: [
|
|
1784
|
+
{
|
|
1785
|
+
foreignKeyName: "permissions_bundle_id_fkey";
|
|
1786
|
+
columns: ["bundle_id"];
|
|
1787
|
+
isOneToOne: false;
|
|
1788
|
+
referencedRelation: "app_versions";
|
|
1789
|
+
referencedColumns: ["id"];
|
|
1790
|
+
}
|
|
1791
|
+
];
|
|
1792
|
+
};
|
|
1405
1793
|
plans: {
|
|
1406
1794
|
Row: {
|
|
1407
1795
|
bandwidth: number;
|
|
@@ -1459,51 +1847,305 @@ export type Database = {
|
|
|
1459
1847
|
};
|
|
1460
1848
|
Relationships: [];
|
|
1461
1849
|
};
|
|
1462
|
-
|
|
1850
|
+
processed_stripe_events: {
|
|
1463
1851
|
Row: {
|
|
1464
|
-
action: Database["public"]["Enums"]["stats_action"];
|
|
1465
|
-
app_id: string;
|
|
1466
1852
|
created_at: string;
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1853
|
+
customer_id: string;
|
|
1854
|
+
date_id: string;
|
|
1855
|
+
event_id: string;
|
|
1470
1856
|
};
|
|
1471
1857
|
Insert: {
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
id?: never;
|
|
1477
|
-
version_name?: string;
|
|
1858
|
+
created_at?: string;
|
|
1859
|
+
customer_id: string;
|
|
1860
|
+
date_id: string;
|
|
1861
|
+
event_id: string;
|
|
1478
1862
|
};
|
|
1479
1863
|
Update: {
|
|
1480
|
-
action?: Database["public"]["Enums"]["stats_action"];
|
|
1481
|
-
app_id?: string;
|
|
1482
1864
|
created_at?: string;
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1865
|
+
customer_id?: string;
|
|
1866
|
+
date_id?: string;
|
|
1867
|
+
event_id?: string;
|
|
1486
1868
|
};
|
|
1487
1869
|
Relationships: [];
|
|
1488
1870
|
};
|
|
1489
|
-
|
|
1871
|
+
role_bindings: {
|
|
1490
1872
|
Row: {
|
|
1491
|
-
app_id: string;
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1873
|
+
app_id: string | null;
|
|
1874
|
+
bundle_id: number | null;
|
|
1875
|
+
channel_id: string | null;
|
|
1876
|
+
expires_at: string | null;
|
|
1877
|
+
granted_at: string;
|
|
1878
|
+
granted_by: string;
|
|
1879
|
+
id: string;
|
|
1880
|
+
is_direct: boolean;
|
|
1881
|
+
org_id: string | null;
|
|
1882
|
+
principal_id: string;
|
|
1883
|
+
principal_type: string;
|
|
1884
|
+
reason: string | null;
|
|
1885
|
+
role_id: string;
|
|
1886
|
+
scope_type: string;
|
|
1496
1887
|
};
|
|
1497
1888
|
Insert: {
|
|
1498
|
-
app_id
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1889
|
+
app_id?: string | null;
|
|
1890
|
+
bundle_id?: number | null;
|
|
1891
|
+
channel_id?: string | null;
|
|
1892
|
+
expires_at?: string | null;
|
|
1893
|
+
granted_at?: string;
|
|
1894
|
+
granted_by: string;
|
|
1895
|
+
id?: string;
|
|
1896
|
+
is_direct?: boolean;
|
|
1897
|
+
org_id?: string | null;
|
|
1898
|
+
principal_id: string;
|
|
1899
|
+
principal_type: string;
|
|
1900
|
+
reason?: string | null;
|
|
1901
|
+
role_id: string;
|
|
1902
|
+
scope_type: string;
|
|
1903
|
+
};
|
|
1904
|
+
Update: {
|
|
1905
|
+
app_id?: string | null;
|
|
1906
|
+
bundle_id?: number | null;
|
|
1907
|
+
channel_id?: string | null;
|
|
1908
|
+
expires_at?: string | null;
|
|
1909
|
+
granted_at?: string;
|
|
1910
|
+
granted_by?: string;
|
|
1911
|
+
id?: string;
|
|
1912
|
+
is_direct?: boolean;
|
|
1913
|
+
org_id?: string | null;
|
|
1914
|
+
principal_id?: string;
|
|
1915
|
+
principal_type?: string;
|
|
1916
|
+
reason?: string | null;
|
|
1917
|
+
role_id?: string;
|
|
1918
|
+
scope_type?: string;
|
|
1919
|
+
};
|
|
1920
|
+
Relationships: [
|
|
1921
|
+
{
|
|
1922
|
+
foreignKeyName: "role_bindings_app_id_fkey";
|
|
1923
|
+
columns: ["app_id"];
|
|
1924
|
+
isOneToOne: false;
|
|
1925
|
+
referencedRelation: "apps";
|
|
1926
|
+
referencedColumns: ["id"];
|
|
1927
|
+
},
|
|
1928
|
+
{
|
|
1929
|
+
foreignKeyName: "role_bindings_bundle_id_fkey";
|
|
1930
|
+
columns: ["bundle_id"];
|
|
1931
|
+
isOneToOne: false;
|
|
1932
|
+
referencedRelation: "app_versions";
|
|
1933
|
+
referencedColumns: ["id"];
|
|
1934
|
+
},
|
|
1935
|
+
{
|
|
1936
|
+
foreignKeyName: "role_bindings_channel_id_fkey";
|
|
1937
|
+
columns: ["channel_id"];
|
|
1938
|
+
isOneToOne: false;
|
|
1939
|
+
referencedRelation: "channels";
|
|
1940
|
+
referencedColumns: ["rbac_id"];
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
foreignKeyName: "role_bindings_org_id_fkey";
|
|
1944
|
+
columns: ["org_id"];
|
|
1945
|
+
isOneToOne: false;
|
|
1946
|
+
referencedRelation: "orgs";
|
|
1947
|
+
referencedColumns: ["id"];
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
foreignKeyName: "role_bindings_role_id_fkey";
|
|
1951
|
+
columns: ["role_id"];
|
|
1952
|
+
isOneToOne: false;
|
|
1953
|
+
referencedRelation: "roles";
|
|
1954
|
+
referencedColumns: ["id"];
|
|
1955
|
+
}
|
|
1956
|
+
];
|
|
1957
|
+
};
|
|
1958
|
+
role_hierarchy: {
|
|
1959
|
+
Row: {
|
|
1960
|
+
child_role_id: string;
|
|
1961
|
+
parent_role_id: string;
|
|
1962
|
+
};
|
|
1963
|
+
Insert: {
|
|
1964
|
+
child_role_id: string;
|
|
1965
|
+
parent_role_id: string;
|
|
1966
|
+
};
|
|
1967
|
+
Update: {
|
|
1968
|
+
child_role_id?: string;
|
|
1969
|
+
parent_role_id?: string;
|
|
1970
|
+
};
|
|
1971
|
+
Relationships: [
|
|
1972
|
+
{
|
|
1973
|
+
foreignKeyName: "role_hierarchy_child_role_id_fkey";
|
|
1974
|
+
columns: ["child_role_id"];
|
|
1975
|
+
isOneToOne: false;
|
|
1976
|
+
referencedRelation: "roles";
|
|
1977
|
+
referencedColumns: ["id"];
|
|
1978
|
+
},
|
|
1979
|
+
{
|
|
1980
|
+
foreignKeyName: "role_hierarchy_parent_role_id_fkey";
|
|
1981
|
+
columns: ["parent_role_id"];
|
|
1982
|
+
isOneToOne: false;
|
|
1983
|
+
referencedRelation: "roles";
|
|
1984
|
+
referencedColumns: ["id"];
|
|
1985
|
+
}
|
|
1986
|
+
];
|
|
1987
|
+
};
|
|
1988
|
+
role_permissions: {
|
|
1989
|
+
Row: {
|
|
1990
|
+
permission_id: string;
|
|
1991
|
+
role_id: string;
|
|
1992
|
+
};
|
|
1993
|
+
Insert: {
|
|
1994
|
+
permission_id: string;
|
|
1995
|
+
role_id: string;
|
|
1996
|
+
};
|
|
1997
|
+
Update: {
|
|
1998
|
+
permission_id?: string;
|
|
1999
|
+
role_id?: string;
|
|
2000
|
+
};
|
|
2001
|
+
Relationships: [
|
|
2002
|
+
{
|
|
2003
|
+
foreignKeyName: "role_permissions_permission_id_fkey";
|
|
2004
|
+
columns: ["permission_id"];
|
|
2005
|
+
isOneToOne: false;
|
|
2006
|
+
referencedRelation: "permissions";
|
|
2007
|
+
referencedColumns: ["id"];
|
|
2008
|
+
},
|
|
2009
|
+
{
|
|
2010
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
2011
|
+
columns: ["role_id"];
|
|
2012
|
+
isOneToOne: false;
|
|
2013
|
+
referencedRelation: "roles";
|
|
2014
|
+
referencedColumns: ["id"];
|
|
2015
|
+
}
|
|
2016
|
+
];
|
|
2017
|
+
};
|
|
2018
|
+
roles: {
|
|
2019
|
+
Row: {
|
|
2020
|
+
created_at: string;
|
|
2021
|
+
created_by: string | null;
|
|
2022
|
+
description: string | null;
|
|
2023
|
+
id: string;
|
|
2024
|
+
is_assignable: boolean;
|
|
2025
|
+
name: string;
|
|
2026
|
+
priority_rank: number;
|
|
2027
|
+
scope_type: string;
|
|
2028
|
+
};
|
|
2029
|
+
Insert: {
|
|
2030
|
+
created_at?: string;
|
|
2031
|
+
created_by?: string | null;
|
|
2032
|
+
description?: string | null;
|
|
2033
|
+
id?: string;
|
|
2034
|
+
is_assignable?: boolean;
|
|
2035
|
+
name: string;
|
|
2036
|
+
priority_rank?: number;
|
|
2037
|
+
scope_type: string;
|
|
2038
|
+
};
|
|
2039
|
+
Update: {
|
|
2040
|
+
created_at?: string;
|
|
2041
|
+
created_by?: string | null;
|
|
2042
|
+
description?: string | null;
|
|
2043
|
+
id?: string;
|
|
2044
|
+
is_assignable?: boolean;
|
|
2045
|
+
name?: string;
|
|
2046
|
+
priority_rank?: number;
|
|
2047
|
+
scope_type?: string;
|
|
2048
|
+
};
|
|
2049
|
+
Relationships: [];
|
|
2050
|
+
};
|
|
2051
|
+
sso_providers: {
|
|
2052
|
+
Row: {
|
|
2053
|
+
attribute_mapping: Json | null;
|
|
2054
|
+
created_at: string;
|
|
2055
|
+
dns_verification_token: string;
|
|
2056
|
+
dns_verified_at: string | null;
|
|
2057
|
+
domain: string;
|
|
2058
|
+
enforce_sso: boolean;
|
|
2059
|
+
id: string;
|
|
2060
|
+
metadata_url: string | null;
|
|
2061
|
+
org_id: string;
|
|
2062
|
+
provider_id: string | null;
|
|
2063
|
+
status: string;
|
|
2064
|
+
updated_at: string;
|
|
2065
|
+
};
|
|
2066
|
+
Insert: {
|
|
2067
|
+
attribute_mapping?: Json | null;
|
|
2068
|
+
created_at?: string;
|
|
2069
|
+
dns_verification_token: string;
|
|
2070
|
+
dns_verified_at?: string | null;
|
|
2071
|
+
domain: string;
|
|
2072
|
+
enforce_sso?: boolean;
|
|
2073
|
+
id?: string;
|
|
2074
|
+
metadata_url?: string | null;
|
|
2075
|
+
org_id: string;
|
|
2076
|
+
provider_id?: string | null;
|
|
2077
|
+
status?: string;
|
|
2078
|
+
updated_at?: string;
|
|
2079
|
+
};
|
|
2080
|
+
Update: {
|
|
2081
|
+
attribute_mapping?: Json | null;
|
|
2082
|
+
created_at?: string;
|
|
2083
|
+
dns_verification_token?: string;
|
|
2084
|
+
dns_verified_at?: string | null;
|
|
2085
|
+
domain?: string;
|
|
2086
|
+
enforce_sso?: boolean;
|
|
2087
|
+
id?: string;
|
|
2088
|
+
metadata_url?: string | null;
|
|
2089
|
+
org_id?: string;
|
|
2090
|
+
provider_id?: string | null;
|
|
2091
|
+
status?: string;
|
|
2092
|
+
updated_at?: string;
|
|
2093
|
+
};
|
|
2094
|
+
Relationships: [
|
|
2095
|
+
{
|
|
2096
|
+
foreignKeyName: "sso_providers_org_id_fkey";
|
|
2097
|
+
columns: ["org_id"];
|
|
2098
|
+
isOneToOne: false;
|
|
2099
|
+
referencedRelation: "orgs";
|
|
2100
|
+
referencedColumns: ["id"];
|
|
2101
|
+
}
|
|
2102
|
+
];
|
|
2103
|
+
};
|
|
2104
|
+
stats: {
|
|
2105
|
+
Row: {
|
|
2106
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2107
|
+
app_id: string;
|
|
2108
|
+
created_at: string;
|
|
2109
|
+
device_id: string;
|
|
2110
|
+
id: number;
|
|
2111
|
+
version_name: string;
|
|
2112
|
+
};
|
|
2113
|
+
Insert: {
|
|
2114
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2115
|
+
app_id: string;
|
|
2116
|
+
created_at: string;
|
|
2117
|
+
device_id: string;
|
|
2118
|
+
id?: never;
|
|
2119
|
+
version_name?: string;
|
|
2120
|
+
};
|
|
2121
|
+
Update: {
|
|
2122
|
+
action?: Database["public"]["Enums"]["stats_action"];
|
|
2123
|
+
app_id?: string;
|
|
2124
|
+
created_at?: string;
|
|
2125
|
+
device_id?: string;
|
|
2126
|
+
id?: never;
|
|
2127
|
+
version_name?: string;
|
|
2128
|
+
};
|
|
2129
|
+
Relationships: [];
|
|
2130
|
+
};
|
|
2131
|
+
storage_usage: {
|
|
2132
|
+
Row: {
|
|
2133
|
+
app_id: string;
|
|
2134
|
+
device_id: string;
|
|
2135
|
+
file_size: number;
|
|
2136
|
+
id: number;
|
|
2137
|
+
timestamp: string;
|
|
2138
|
+
};
|
|
2139
|
+
Insert: {
|
|
2140
|
+
app_id: string;
|
|
2141
|
+
device_id: string;
|
|
2142
|
+
file_size: number;
|
|
2143
|
+
id?: number;
|
|
2144
|
+
timestamp?: string;
|
|
2145
|
+
};
|
|
2146
|
+
Update: {
|
|
2147
|
+
app_id?: string;
|
|
2148
|
+
device_id?: string;
|
|
1507
2149
|
file_size?: number;
|
|
1508
2150
|
id?: number;
|
|
1509
2151
|
timestamp?: string;
|
|
@@ -1516,10 +2158,13 @@ export type Database = {
|
|
|
1516
2158
|
build_time_exceeded: boolean | null;
|
|
1517
2159
|
canceled_at: string | null;
|
|
1518
2160
|
created_at: string;
|
|
2161
|
+
customer_country: string | null;
|
|
1519
2162
|
customer_id: string;
|
|
1520
2163
|
id: number;
|
|
1521
2164
|
is_good_plan: boolean | null;
|
|
2165
|
+
last_stripe_event_at: string | null;
|
|
1522
2166
|
mau_exceeded: boolean | null;
|
|
2167
|
+
paid_at: string | null;
|
|
1523
2168
|
plan_calculated_at: string | null;
|
|
1524
2169
|
plan_usage: number | null;
|
|
1525
2170
|
price_id: string | null;
|
|
@@ -1529,19 +2174,22 @@ export type Database = {
|
|
|
1529
2174
|
subscription_anchor_end: string;
|
|
1530
2175
|
subscription_anchor_start: string;
|
|
1531
2176
|
subscription_id: string | null;
|
|
1532
|
-
subscription_metered: Json;
|
|
1533
2177
|
trial_at: string;
|
|
1534
2178
|
updated_at: string;
|
|
2179
|
+
upgraded_at: string | null;
|
|
1535
2180
|
};
|
|
1536
2181
|
Insert: {
|
|
1537
2182
|
bandwidth_exceeded?: boolean | null;
|
|
1538
2183
|
build_time_exceeded?: boolean | null;
|
|
1539
2184
|
canceled_at?: string | null;
|
|
1540
2185
|
created_at?: string;
|
|
2186
|
+
customer_country?: string | null;
|
|
1541
2187
|
customer_id: string;
|
|
1542
2188
|
id?: number;
|
|
1543
2189
|
is_good_plan?: boolean | null;
|
|
2190
|
+
last_stripe_event_at?: string | null;
|
|
1544
2191
|
mau_exceeded?: boolean | null;
|
|
2192
|
+
paid_at?: string | null;
|
|
1545
2193
|
plan_calculated_at?: string | null;
|
|
1546
2194
|
plan_usage?: number | null;
|
|
1547
2195
|
price_id?: string | null;
|
|
@@ -1551,19 +2199,22 @@ export type Database = {
|
|
|
1551
2199
|
subscription_anchor_end?: string;
|
|
1552
2200
|
subscription_anchor_start?: string;
|
|
1553
2201
|
subscription_id?: string | null;
|
|
1554
|
-
subscription_metered?: Json;
|
|
1555
2202
|
trial_at?: string;
|
|
1556
2203
|
updated_at?: string;
|
|
2204
|
+
upgraded_at?: string | null;
|
|
1557
2205
|
};
|
|
1558
2206
|
Update: {
|
|
1559
2207
|
bandwidth_exceeded?: boolean | null;
|
|
1560
2208
|
build_time_exceeded?: boolean | null;
|
|
1561
2209
|
canceled_at?: string | null;
|
|
1562
2210
|
created_at?: string;
|
|
2211
|
+
customer_country?: string | null;
|
|
1563
2212
|
customer_id?: string;
|
|
1564
2213
|
id?: number;
|
|
1565
2214
|
is_good_plan?: boolean | null;
|
|
2215
|
+
last_stripe_event_at?: string | null;
|
|
1566
2216
|
mau_exceeded?: boolean | null;
|
|
2217
|
+
paid_at?: string | null;
|
|
1567
2218
|
plan_calculated_at?: string | null;
|
|
1568
2219
|
plan_usage?: number | null;
|
|
1569
2220
|
price_id?: string | null;
|
|
@@ -1573,9 +2224,9 @@ export type Database = {
|
|
|
1573
2224
|
subscription_anchor_end?: string;
|
|
1574
2225
|
subscription_anchor_start?: string;
|
|
1575
2226
|
subscription_id?: string | null;
|
|
1576
|
-
subscription_metered?: Json;
|
|
1577
2227
|
trial_at?: string;
|
|
1578
2228
|
updated_at?: string;
|
|
2229
|
+
upgraded_at?: string | null;
|
|
1579
2230
|
};
|
|
1580
2231
|
Relationships: [
|
|
1581
2232
|
{
|
|
@@ -1598,6 +2249,7 @@ export type Database = {
|
|
|
1598
2249
|
invite_magic_string: string;
|
|
1599
2250
|
last_name: string;
|
|
1600
2251
|
org_id: string;
|
|
2252
|
+
rbac_role_name: string | null;
|
|
1601
2253
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1602
2254
|
updated_at: string;
|
|
1603
2255
|
};
|
|
@@ -1611,6 +2263,7 @@ export type Database = {
|
|
|
1611
2263
|
invite_magic_string?: string;
|
|
1612
2264
|
last_name: string;
|
|
1613
2265
|
org_id: string;
|
|
2266
|
+
rbac_role_name?: string | null;
|
|
1614
2267
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1615
2268
|
updated_at?: string;
|
|
1616
2269
|
};
|
|
@@ -1624,6 +2277,7 @@ export type Database = {
|
|
|
1624
2277
|
invite_magic_string?: string;
|
|
1625
2278
|
last_name?: string;
|
|
1626
2279
|
org_id?: string;
|
|
2280
|
+
rbac_role_name?: string | null;
|
|
1627
2281
|
role?: Database["public"]["Enums"]["user_min_right"];
|
|
1628
2282
|
updated_at?: string;
|
|
1629
2283
|
};
|
|
@@ -1911,11 +2565,33 @@ export type Database = {
|
|
|
1911
2565
|
}
|
|
1912
2566
|
];
|
|
1913
2567
|
};
|
|
2568
|
+
user_security: {
|
|
2569
|
+
Row: {
|
|
2570
|
+
created_at: string;
|
|
2571
|
+
email_otp_verified_at: string | null;
|
|
2572
|
+
updated_at: string;
|
|
2573
|
+
user_id: string;
|
|
2574
|
+
};
|
|
2575
|
+
Insert: {
|
|
2576
|
+
created_at?: string;
|
|
2577
|
+
email_otp_verified_at?: string | null;
|
|
2578
|
+
updated_at?: string;
|
|
2579
|
+
user_id: string;
|
|
2580
|
+
};
|
|
2581
|
+
Update: {
|
|
2582
|
+
created_at?: string;
|
|
2583
|
+
email_otp_verified_at?: string | null;
|
|
2584
|
+
updated_at?: string;
|
|
2585
|
+
user_id?: string;
|
|
2586
|
+
};
|
|
2587
|
+
Relationships: [];
|
|
2588
|
+
};
|
|
1914
2589
|
users: {
|
|
1915
2590
|
Row: {
|
|
1916
2591
|
ban_time: string | null;
|
|
1917
2592
|
country: string | null;
|
|
1918
2593
|
created_at: string | null;
|
|
2594
|
+
created_via_invite: boolean;
|
|
1919
2595
|
email: string;
|
|
1920
2596
|
email_preferences: Json;
|
|
1921
2597
|
enable_notifications: boolean;
|
|
@@ -1930,6 +2606,7 @@ export type Database = {
|
|
|
1930
2606
|
ban_time?: string | null;
|
|
1931
2607
|
country?: string | null;
|
|
1932
2608
|
created_at?: string | null;
|
|
2609
|
+
created_via_invite?: boolean;
|
|
1933
2610
|
email: string;
|
|
1934
2611
|
email_preferences?: Json;
|
|
1935
2612
|
enable_notifications?: boolean;
|
|
@@ -1944,6 +2621,7 @@ export type Database = {
|
|
|
1944
2621
|
ban_time?: string | null;
|
|
1945
2622
|
country?: string | null;
|
|
1946
2623
|
created_at?: string | null;
|
|
2624
|
+
created_via_invite?: boolean;
|
|
1947
2625
|
email?: string;
|
|
1948
2626
|
email_preferences?: Json;
|
|
1949
2627
|
enable_notifications?: boolean;
|
|
@@ -1982,19 +2660,22 @@ export type Database = {
|
|
|
1982
2660
|
action: Database["public"]["Enums"]["version_action"];
|
|
1983
2661
|
app_id: string;
|
|
1984
2662
|
timestamp: string;
|
|
1985
|
-
version_id: number;
|
|
2663
|
+
version_id: number | null;
|
|
2664
|
+
version_name: string | null;
|
|
1986
2665
|
};
|
|
1987
2666
|
Insert: {
|
|
1988
2667
|
action: Database["public"]["Enums"]["version_action"];
|
|
1989
2668
|
app_id: string;
|
|
1990
2669
|
timestamp?: string;
|
|
1991
|
-
version_id
|
|
2670
|
+
version_id?: number | null;
|
|
2671
|
+
version_name?: string | null;
|
|
1992
2672
|
};
|
|
1993
2673
|
Update: {
|
|
1994
2674
|
action?: Database["public"]["Enums"]["version_action"];
|
|
1995
2675
|
app_id?: string;
|
|
1996
2676
|
timestamp?: string;
|
|
1997
|
-
version_id?: number;
|
|
2677
|
+
version_id?: number | null;
|
|
2678
|
+
version_name?: string | null;
|
|
1998
2679
|
};
|
|
1999
2680
|
Relationships: [];
|
|
2000
2681
|
};
|
|
@@ -2191,6 +2872,10 @@ export type Database = {
|
|
|
2191
2872
|
overage_unpaid: number;
|
|
2192
2873
|
}[];
|
|
2193
2874
|
};
|
|
2875
|
+
audit_logs_allowed_orgs: {
|
|
2876
|
+
Args: never;
|
|
2877
|
+
Returns: string[];
|
|
2878
|
+
};
|
|
2194
2879
|
calculate_credit_cost: {
|
|
2195
2880
|
Args: {
|
|
2196
2881
|
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
@@ -2202,6 +2887,49 @@ export type Database = {
|
|
|
2202
2887
|
credits_required: number;
|
|
2203
2888
|
}[];
|
|
2204
2889
|
};
|
|
2890
|
+
calculate_org_metrics_cache_entry: {
|
|
2891
|
+
Args: {
|
|
2892
|
+
p_end_date: string;
|
|
2893
|
+
p_org_id: string;
|
|
2894
|
+
p_start_date: string;
|
|
2895
|
+
};
|
|
2896
|
+
Returns: {
|
|
2897
|
+
bandwidth: number;
|
|
2898
|
+
build_time_unit: number;
|
|
2899
|
+
cached_at: string;
|
|
2900
|
+
end_date: string;
|
|
2901
|
+
fail: number;
|
|
2902
|
+
get: number;
|
|
2903
|
+
install: number;
|
|
2904
|
+
mau: number;
|
|
2905
|
+
org_id: string;
|
|
2906
|
+
start_date: string;
|
|
2907
|
+
storage: number;
|
|
2908
|
+
uninstall: number;
|
|
2909
|
+
};
|
|
2910
|
+
SetofOptions: {
|
|
2911
|
+
from: "*";
|
|
2912
|
+
to: "org_metrics_cache";
|
|
2913
|
+
isOneToOne: true;
|
|
2914
|
+
isSetofReturn: false;
|
|
2915
|
+
};
|
|
2916
|
+
};
|
|
2917
|
+
check_apikey_hashed_key_enforcement: {
|
|
2918
|
+
Args: {
|
|
2919
|
+
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
2920
|
+
};
|
|
2921
|
+
Returns: boolean;
|
|
2922
|
+
};
|
|
2923
|
+
check_domain_sso: {
|
|
2924
|
+
Args: {
|
|
2925
|
+
p_domain: string;
|
|
2926
|
+
};
|
|
2927
|
+
Returns: {
|
|
2928
|
+
has_sso: boolean;
|
|
2929
|
+
org_id: string;
|
|
2930
|
+
provider_id: string;
|
|
2931
|
+
}[];
|
|
2932
|
+
};
|
|
2205
2933
|
check_min_rights: {
|
|
2206
2934
|
Args: {
|
|
2207
2935
|
app_id: string;
|
|
@@ -2220,6 +2948,33 @@ export type Database = {
|
|
|
2220
2948
|
};
|
|
2221
2949
|
Returns: boolean;
|
|
2222
2950
|
};
|
|
2951
|
+
check_min_rights_legacy: {
|
|
2952
|
+
Args: {
|
|
2953
|
+
app_id: string;
|
|
2954
|
+
channel_id: number;
|
|
2955
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2956
|
+
org_id: string;
|
|
2957
|
+
user_id: string;
|
|
2958
|
+
};
|
|
2959
|
+
Returns: boolean;
|
|
2960
|
+
};
|
|
2961
|
+
check_min_rights_legacy_no_password_policy: {
|
|
2962
|
+
Args: {
|
|
2963
|
+
app_id: string;
|
|
2964
|
+
channel_id: number;
|
|
2965
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2966
|
+
org_id: string;
|
|
2967
|
+
user_id: string;
|
|
2968
|
+
};
|
|
2969
|
+
Returns: boolean;
|
|
2970
|
+
};
|
|
2971
|
+
check_org_encrypted_bundle_enforcement: {
|
|
2972
|
+
Args: {
|
|
2973
|
+
org_id: string;
|
|
2974
|
+
session_key: string;
|
|
2975
|
+
};
|
|
2976
|
+
Returns: boolean;
|
|
2977
|
+
};
|
|
2223
2978
|
check_org_hashed_key_enforcement: {
|
|
2224
2979
|
Args: {
|
|
2225
2980
|
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
@@ -2258,7 +3013,11 @@ export type Database = {
|
|
|
2258
3013
|
Args: never;
|
|
2259
3014
|
Returns: undefined;
|
|
2260
3015
|
};
|
|
2261
|
-
|
|
3016
|
+
cleanup_expired_demo_apps: {
|
|
3017
|
+
Args: never;
|
|
3018
|
+
Returns: undefined;
|
|
3019
|
+
};
|
|
3020
|
+
cleanup_frequent_job_details: {
|
|
2262
3021
|
Args: never;
|
|
2263
3022
|
Returns: undefined;
|
|
2264
3023
|
};
|
|
@@ -2270,14 +3029,38 @@ export type Database = {
|
|
|
2270
3029
|
Args: never;
|
|
2271
3030
|
Returns: undefined;
|
|
2272
3031
|
};
|
|
3032
|
+
cleanup_old_channel_devices: {
|
|
3033
|
+
Args: never;
|
|
3034
|
+
Returns: undefined;
|
|
3035
|
+
};
|
|
2273
3036
|
cleanup_queue_messages: {
|
|
2274
3037
|
Args: never;
|
|
2275
3038
|
Returns: undefined;
|
|
2276
3039
|
};
|
|
3040
|
+
cleanup_tmp_users: {
|
|
3041
|
+
Args: never;
|
|
3042
|
+
Returns: undefined;
|
|
3043
|
+
};
|
|
2277
3044
|
cleanup_webhook_deliveries: {
|
|
2278
3045
|
Args: never;
|
|
2279
3046
|
Returns: undefined;
|
|
2280
3047
|
};
|
|
3048
|
+
clear_onboarding_app_data: {
|
|
3049
|
+
Args: {
|
|
3050
|
+
p_app_uuid: string;
|
|
3051
|
+
};
|
|
3052
|
+
Returns: undefined;
|
|
3053
|
+
};
|
|
3054
|
+
cli_check_permission: {
|
|
3055
|
+
Args: {
|
|
3056
|
+
apikey: string;
|
|
3057
|
+
app_id?: string;
|
|
3058
|
+
channel_id?: number;
|
|
3059
|
+
org_id?: string;
|
|
3060
|
+
permission_key: string;
|
|
3061
|
+
};
|
|
3062
|
+
Returns: boolean;
|
|
3063
|
+
};
|
|
2281
3064
|
convert_bytes_to_gb: {
|
|
2282
3065
|
Args: {
|
|
2283
3066
|
bytes_value: number;
|
|
@@ -2330,6 +3113,80 @@ export type Database = {
|
|
|
2330
3113
|
plan_name: string;
|
|
2331
3114
|
}[];
|
|
2332
3115
|
};
|
|
3116
|
+
count_non_compliant_bundles: {
|
|
3117
|
+
Args: {
|
|
3118
|
+
org_id: string;
|
|
3119
|
+
required_key?: string;
|
|
3120
|
+
};
|
|
3121
|
+
Returns: {
|
|
3122
|
+
non_encrypted_count: number;
|
|
3123
|
+
total_non_compliant: number;
|
|
3124
|
+
wrong_key_count: number;
|
|
3125
|
+
}[];
|
|
3126
|
+
};
|
|
3127
|
+
create_hashed_apikey: {
|
|
3128
|
+
Args: {
|
|
3129
|
+
p_expires_at: string;
|
|
3130
|
+
p_limited_to_apps: string[];
|
|
3131
|
+
p_limited_to_orgs: string[];
|
|
3132
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3133
|
+
p_name: string;
|
|
3134
|
+
};
|
|
3135
|
+
Returns: {
|
|
3136
|
+
created_at: string | null;
|
|
3137
|
+
expires_at: string | null;
|
|
3138
|
+
id: number;
|
|
3139
|
+
key: string | null;
|
|
3140
|
+
key_hash: string | null;
|
|
3141
|
+
limited_to_apps: string[] | null;
|
|
3142
|
+
limited_to_orgs: string[] | null;
|
|
3143
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3144
|
+
name: string;
|
|
3145
|
+
rbac_id: string;
|
|
3146
|
+
updated_at: string | null;
|
|
3147
|
+
user_id: string;
|
|
3148
|
+
};
|
|
3149
|
+
SetofOptions: {
|
|
3150
|
+
from: "*";
|
|
3151
|
+
to: "apikeys";
|
|
3152
|
+
isOneToOne: true;
|
|
3153
|
+
isSetofReturn: false;
|
|
3154
|
+
};
|
|
3155
|
+
};
|
|
3156
|
+
create_hashed_apikey_for_user: {
|
|
3157
|
+
Args: {
|
|
3158
|
+
p_expires_at: string;
|
|
3159
|
+
p_limited_to_apps: string[];
|
|
3160
|
+
p_limited_to_orgs: string[];
|
|
3161
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3162
|
+
p_name: string;
|
|
3163
|
+
p_user_id: string;
|
|
3164
|
+
};
|
|
3165
|
+
Returns: {
|
|
3166
|
+
created_at: string | null;
|
|
3167
|
+
expires_at: string | null;
|
|
3168
|
+
id: number;
|
|
3169
|
+
key: string | null;
|
|
3170
|
+
key_hash: string | null;
|
|
3171
|
+
limited_to_apps: string[] | null;
|
|
3172
|
+
limited_to_orgs: string[] | null;
|
|
3173
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3174
|
+
name: string;
|
|
3175
|
+
rbac_id: string;
|
|
3176
|
+
updated_at: string | null;
|
|
3177
|
+
user_id: string;
|
|
3178
|
+
};
|
|
3179
|
+
SetofOptions: {
|
|
3180
|
+
from: "*";
|
|
3181
|
+
to: "apikeys";
|
|
3182
|
+
isOneToOne: true;
|
|
3183
|
+
isSetofReturn: false;
|
|
3184
|
+
};
|
|
3185
|
+
};
|
|
3186
|
+
current_request_role: {
|
|
3187
|
+
Args: never;
|
|
3188
|
+
Returns: string;
|
|
3189
|
+
};
|
|
2333
3190
|
delete_accounts_marked_for_deletion: {
|
|
2334
3191
|
Args: never;
|
|
2335
3192
|
Returns: {
|
|
@@ -2337,16 +3194,40 @@ export type Database = {
|
|
|
2337
3194
|
deleted_user_ids: string[];
|
|
2338
3195
|
}[];
|
|
2339
3196
|
};
|
|
3197
|
+
delete_group_with_bindings: {
|
|
3198
|
+
Args: {
|
|
3199
|
+
group_id: string;
|
|
3200
|
+
};
|
|
3201
|
+
Returns: undefined;
|
|
3202
|
+
};
|
|
2340
3203
|
delete_http_response: {
|
|
2341
3204
|
Args: {
|
|
2342
3205
|
request_id: number;
|
|
2343
3206
|
};
|
|
2344
3207
|
Returns: undefined;
|
|
2345
3208
|
};
|
|
3209
|
+
delete_non_compliant_bundles: {
|
|
3210
|
+
Args: {
|
|
3211
|
+
org_id: string;
|
|
3212
|
+
required_key?: string;
|
|
3213
|
+
};
|
|
3214
|
+
Returns: number;
|
|
3215
|
+
};
|
|
2346
3216
|
delete_old_deleted_apps: {
|
|
2347
3217
|
Args: never;
|
|
2348
3218
|
Returns: undefined;
|
|
2349
3219
|
};
|
|
3220
|
+
delete_old_deleted_versions: {
|
|
3221
|
+
Args: never;
|
|
3222
|
+
Returns: undefined;
|
|
3223
|
+
};
|
|
3224
|
+
delete_org_member_role: {
|
|
3225
|
+
Args: {
|
|
3226
|
+
p_org_id: string;
|
|
3227
|
+
p_user_id: string;
|
|
3228
|
+
};
|
|
3229
|
+
Returns: string;
|
|
3230
|
+
};
|
|
2350
3231
|
delete_user: {
|
|
2351
3232
|
Args: never;
|
|
2352
3233
|
Returns: undefined;
|
|
@@ -2389,6 +3270,7 @@ export type Database = {
|
|
|
2389
3270
|
limited_to_orgs: string[] | null;
|
|
2390
3271
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
2391
3272
|
name: string;
|
|
3273
|
+
rbac_id: string;
|
|
2392
3274
|
updated_at: string | null;
|
|
2393
3275
|
user_id: string;
|
|
2394
3276
|
}[];
|
|
@@ -2419,10 +3301,44 @@ export type Database = {
|
|
|
2419
3301
|
name: string;
|
|
2420
3302
|
}[];
|
|
2421
3303
|
};
|
|
2422
|
-
|
|
3304
|
+
get_accessible_apps_for_apikey_v2: {
|
|
2423
3305
|
Args: {
|
|
2424
|
-
|
|
3306
|
+
apikey: string;
|
|
3307
|
+
};
|
|
3308
|
+
Returns: {
|
|
3309
|
+
allow_device_custom_id: boolean;
|
|
3310
|
+
allow_preview: boolean;
|
|
3311
|
+
android_store_url: string | null;
|
|
3312
|
+
app_id: string;
|
|
3313
|
+
channel_device_count: number;
|
|
3314
|
+
created_at: string | null;
|
|
3315
|
+
default_upload_channel: string;
|
|
3316
|
+
existing_app: boolean;
|
|
3317
|
+
expose_metadata: boolean;
|
|
3318
|
+
icon_url: string;
|
|
3319
|
+
id: string | null;
|
|
3320
|
+
ios_store_url: string | null;
|
|
3321
|
+
last_version: string | null;
|
|
3322
|
+
manifest_bundle_count: number;
|
|
3323
|
+
name: string | null;
|
|
3324
|
+
need_onboarding: boolean;
|
|
3325
|
+
owner_org: string;
|
|
3326
|
+
retention: number;
|
|
3327
|
+
stats_refresh_requested_at: string | null;
|
|
3328
|
+
stats_updated_at: string | null;
|
|
3329
|
+
transfer_history: Json[] | null;
|
|
3330
|
+
updated_at: string | null;
|
|
3331
|
+
user_id: string | null;
|
|
3332
|
+
}[];
|
|
3333
|
+
SetofOptions: {
|
|
3334
|
+
from: "*";
|
|
3335
|
+
to: "apps";
|
|
3336
|
+
isOneToOne: false;
|
|
3337
|
+
isSetofReturn: true;
|
|
2425
3338
|
};
|
|
3339
|
+
};
|
|
3340
|
+
get_account_removal_date: {
|
|
3341
|
+
Args: never;
|
|
2426
3342
|
Returns: string;
|
|
2427
3343
|
};
|
|
2428
3344
|
get_apikey: {
|
|
@@ -2433,6 +3349,25 @@ export type Database = {
|
|
|
2433
3349
|
Args: never;
|
|
2434
3350
|
Returns: string;
|
|
2435
3351
|
};
|
|
3352
|
+
get_app_access_rbac: {
|
|
3353
|
+
Args: {
|
|
3354
|
+
p_app_id: string;
|
|
3355
|
+
};
|
|
3356
|
+
Returns: {
|
|
3357
|
+
expires_at: string;
|
|
3358
|
+
granted_at: string;
|
|
3359
|
+
granted_by: string;
|
|
3360
|
+
id: string;
|
|
3361
|
+
is_direct: boolean;
|
|
3362
|
+
principal_id: string;
|
|
3363
|
+
principal_name: string;
|
|
3364
|
+
principal_type: string;
|
|
3365
|
+
reason: string;
|
|
3366
|
+
role_description: string;
|
|
3367
|
+
role_id: string;
|
|
3368
|
+
role_name: string;
|
|
3369
|
+
}[];
|
|
3370
|
+
};
|
|
2436
3371
|
get_app_metrics: {
|
|
2437
3372
|
Args: {
|
|
2438
3373
|
org_id: string;
|
|
@@ -2467,6 +3402,25 @@ export type Database = {
|
|
|
2467
3402
|
storage: number;
|
|
2468
3403
|
uninstall: number;
|
|
2469
3404
|
}[];
|
|
3405
|
+
} | {
|
|
3406
|
+
Args: {
|
|
3407
|
+
p_app_id: string;
|
|
3408
|
+
p_end_date: string;
|
|
3409
|
+
p_org_id: string;
|
|
3410
|
+
p_start_date: string;
|
|
3411
|
+
};
|
|
3412
|
+
Returns: {
|
|
3413
|
+
app_id: string;
|
|
3414
|
+
bandwidth: number;
|
|
3415
|
+
build_time_unit: number;
|
|
3416
|
+
date: string;
|
|
3417
|
+
fail: number;
|
|
3418
|
+
get: number;
|
|
3419
|
+
install: number;
|
|
3420
|
+
mau: number;
|
|
3421
|
+
storage: number;
|
|
3422
|
+
uninstall: number;
|
|
3423
|
+
}[];
|
|
2470
3424
|
};
|
|
2471
3425
|
get_app_versions: {
|
|
2472
3426
|
Args: {
|
|
@@ -2567,6 +3521,13 @@ export type Database = {
|
|
|
2567
3521
|
};
|
|
2568
3522
|
Returns: string;
|
|
2569
3523
|
};
|
|
3524
|
+
get_identity_org_allowed_apikey_only: {
|
|
3525
|
+
Args: {
|
|
3526
|
+
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3527
|
+
org_id: string;
|
|
3528
|
+
};
|
|
3529
|
+
Returns: string;
|
|
3530
|
+
};
|
|
2570
3531
|
get_identity_org_appid: {
|
|
2571
3532
|
Args: {
|
|
2572
3533
|
app_id: string;
|
|
@@ -2582,29 +3543,12 @@ export type Database = {
|
|
|
2582
3543
|
Returns: {
|
|
2583
3544
|
org_logo: string;
|
|
2584
3545
|
org_name: string;
|
|
2585
|
-
role:
|
|
3546
|
+
role: string;
|
|
2586
3547
|
}[];
|
|
2587
3548
|
};
|
|
2588
|
-
|
|
3549
|
+
get_mfa_email_otp_enforced_at: {
|
|
2589
3550
|
Args: never;
|
|
2590
|
-
Returns:
|
|
2591
|
-
SetofOptions: {
|
|
2592
|
-
from: "*";
|
|
2593
|
-
to: "stats_table";
|
|
2594
|
-
isOneToOne: true;
|
|
2595
|
-
isSetofReturn: false;
|
|
2596
|
-
};
|
|
2597
|
-
} | {
|
|
2598
|
-
Args: {
|
|
2599
|
-
orgid: string;
|
|
2600
|
-
};
|
|
2601
|
-
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
2602
|
-
SetofOptions: {
|
|
2603
|
-
from: "*";
|
|
2604
|
-
to: "stats_table";
|
|
2605
|
-
isOneToOne: true;
|
|
2606
|
-
isSetofReturn: false;
|
|
2607
|
-
};
|
|
3551
|
+
Returns: string;
|
|
2608
3552
|
};
|
|
2609
3553
|
get_next_cron_time: {
|
|
2610
3554
|
Args: {
|
|
@@ -2627,6 +3571,23 @@ export type Database = {
|
|
|
2627
3571
|
};
|
|
2628
3572
|
Returns: string;
|
|
2629
3573
|
};
|
|
3574
|
+
get_org_apikeys: {
|
|
3575
|
+
Args: {
|
|
3576
|
+
p_org_id: string;
|
|
3577
|
+
};
|
|
3578
|
+
Returns: {
|
|
3579
|
+
created_at: string;
|
|
3580
|
+
expires_at: string;
|
|
3581
|
+
id: number;
|
|
3582
|
+
limited_to_apps: string[];
|
|
3583
|
+
limited_to_orgs: string[];
|
|
3584
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3585
|
+
name: string;
|
|
3586
|
+
owner_email: string;
|
|
3587
|
+
rbac_id: string;
|
|
3588
|
+
user_id: string;
|
|
3589
|
+
}[];
|
|
3590
|
+
};
|
|
2630
3591
|
get_org_build_time_unit: {
|
|
2631
3592
|
Args: {
|
|
2632
3593
|
p_end_date: string;
|
|
@@ -2664,6 +3625,23 @@ export type Database = {
|
|
|
2664
3625
|
uid: string;
|
|
2665
3626
|
}[];
|
|
2666
3627
|
};
|
|
3628
|
+
get_org_members_rbac: {
|
|
3629
|
+
Args: {
|
|
3630
|
+
p_org_id: string;
|
|
3631
|
+
};
|
|
3632
|
+
Returns: {
|
|
3633
|
+
binding_id: string;
|
|
3634
|
+
email: string;
|
|
3635
|
+
granted_at: string;
|
|
3636
|
+
image_url: string;
|
|
3637
|
+
is_invite: boolean;
|
|
3638
|
+
is_tmp: boolean;
|
|
3639
|
+
org_user_id: number;
|
|
3640
|
+
role_id: string;
|
|
3641
|
+
role_name: string;
|
|
3642
|
+
user_id: string;
|
|
3643
|
+
}[];
|
|
3644
|
+
};
|
|
2667
3645
|
get_org_owner_id: {
|
|
2668
3646
|
Args: {
|
|
2669
3647
|
apikey: string;
|
|
@@ -2678,6 +3656,39 @@ export type Database = {
|
|
|
2678
3656
|
};
|
|
2679
3657
|
Returns: string;
|
|
2680
3658
|
};
|
|
3659
|
+
get_org_perm_for_apikey_v2: {
|
|
3660
|
+
Args: {
|
|
3661
|
+
apikey: string;
|
|
3662
|
+
app_id: string;
|
|
3663
|
+
};
|
|
3664
|
+
Returns: string;
|
|
3665
|
+
};
|
|
3666
|
+
get_org_user_access_rbac: {
|
|
3667
|
+
Args: {
|
|
3668
|
+
p_org_id: string;
|
|
3669
|
+
p_user_id: string;
|
|
3670
|
+
};
|
|
3671
|
+
Returns: {
|
|
3672
|
+
app_id: string;
|
|
3673
|
+
channel_id: string;
|
|
3674
|
+
expires_at: string;
|
|
3675
|
+
granted_at: string;
|
|
3676
|
+
granted_by: string;
|
|
3677
|
+
group_name: string;
|
|
3678
|
+
id: string;
|
|
3679
|
+
is_direct: boolean;
|
|
3680
|
+
org_id: string;
|
|
3681
|
+
principal_id: string;
|
|
3682
|
+
principal_name: string;
|
|
3683
|
+
principal_type: string;
|
|
3684
|
+
reason: string;
|
|
3685
|
+
role_description: string;
|
|
3686
|
+
role_id: string;
|
|
3687
|
+
role_name: string;
|
|
3688
|
+
scope_type: string;
|
|
3689
|
+
user_email: string;
|
|
3690
|
+
}[];
|
|
3691
|
+
};
|
|
2681
3692
|
get_organization_cli_warnings: {
|
|
2682
3693
|
Args: {
|
|
2683
3694
|
cli_version: string;
|
|
@@ -2744,10 +3755,12 @@ export type Database = {
|
|
|
2744
3755
|
"2fa_has_access": boolean;
|
|
2745
3756
|
app_count: number;
|
|
2746
3757
|
can_use_more: boolean;
|
|
3758
|
+
created_at: string;
|
|
2747
3759
|
created_by: string;
|
|
2748
3760
|
credit_available: number;
|
|
2749
3761
|
credit_next_expiration: string;
|
|
2750
3762
|
credit_total: number;
|
|
3763
|
+
enforce_encrypted_bundles: boolean;
|
|
2751
3764
|
enforce_hashed_api_keys: boolean;
|
|
2752
3765
|
enforcing_2fa: boolean;
|
|
2753
3766
|
gid: string;
|
|
@@ -2755,16 +3768,22 @@ export type Database = {
|
|
|
2755
3768
|
is_yearly: boolean;
|
|
2756
3769
|
logo: string;
|
|
2757
3770
|
management_email: string;
|
|
3771
|
+
max_apikey_expiration_days: number;
|
|
2758
3772
|
name: string;
|
|
2759
3773
|
next_stats_update_at: string;
|
|
2760
3774
|
password_has_access: boolean;
|
|
2761
3775
|
password_policy_config: Json;
|
|
2762
3776
|
paying: boolean;
|
|
3777
|
+
require_apikey_expiration: boolean;
|
|
3778
|
+
required_encryption_key: string;
|
|
2763
3779
|
role: string;
|
|
3780
|
+
stats_refresh_requested_at: string;
|
|
2764
3781
|
stats_updated_at: string;
|
|
2765
3782
|
subscription_end: string;
|
|
2766
3783
|
subscription_start: string;
|
|
2767
3784
|
trial_left: number;
|
|
3785
|
+
use_new_rbac: boolean;
|
|
3786
|
+
website: string;
|
|
2768
3787
|
}[];
|
|
2769
3788
|
} | {
|
|
2770
3789
|
Args: {
|
|
@@ -2774,10 +3793,12 @@ export type Database = {
|
|
|
2774
3793
|
"2fa_has_access": boolean;
|
|
2775
3794
|
app_count: number;
|
|
2776
3795
|
can_use_more: boolean;
|
|
3796
|
+
created_at: string;
|
|
2777
3797
|
created_by: string;
|
|
2778
3798
|
credit_available: number;
|
|
2779
3799
|
credit_next_expiration: string;
|
|
2780
3800
|
credit_total: number;
|
|
3801
|
+
enforce_encrypted_bundles: boolean;
|
|
2781
3802
|
enforce_hashed_api_keys: boolean;
|
|
2782
3803
|
enforcing_2fa: boolean;
|
|
2783
3804
|
gid: string;
|
|
@@ -2785,16 +3806,22 @@ export type Database = {
|
|
|
2785
3806
|
is_yearly: boolean;
|
|
2786
3807
|
logo: string;
|
|
2787
3808
|
management_email: string;
|
|
3809
|
+
max_apikey_expiration_days: number;
|
|
2788
3810
|
name: string;
|
|
2789
3811
|
next_stats_update_at: string;
|
|
2790
3812
|
password_has_access: boolean;
|
|
2791
3813
|
password_policy_config: Json;
|
|
2792
3814
|
paying: boolean;
|
|
3815
|
+
require_apikey_expiration: boolean;
|
|
3816
|
+
required_encryption_key: string;
|
|
2793
3817
|
role: string;
|
|
3818
|
+
stats_refresh_requested_at: string;
|
|
2794
3819
|
stats_updated_at: string;
|
|
2795
3820
|
subscription_end: string;
|
|
2796
3821
|
subscription_start: string;
|
|
2797
3822
|
trial_left: number;
|
|
3823
|
+
use_new_rbac: boolean;
|
|
3824
|
+
website: string;
|
|
2798
3825
|
}[];
|
|
2799
3826
|
};
|
|
2800
3827
|
get_password_policy_hash: {
|
|
@@ -2803,6 +3830,32 @@ export type Database = {
|
|
|
2803
3830
|
};
|
|
2804
3831
|
Returns: string;
|
|
2805
3832
|
};
|
|
3833
|
+
get_plan_usage_and_fit: {
|
|
3834
|
+
Args: {
|
|
3835
|
+
orgid: string;
|
|
3836
|
+
};
|
|
3837
|
+
Returns: {
|
|
3838
|
+
bandwidth_percent: number;
|
|
3839
|
+
build_time_percent: number;
|
|
3840
|
+
is_good_plan: boolean;
|
|
3841
|
+
mau_percent: number;
|
|
3842
|
+
storage_percent: number;
|
|
3843
|
+
total_percent: number;
|
|
3844
|
+
}[];
|
|
3845
|
+
};
|
|
3846
|
+
get_plan_usage_and_fit_uncached: {
|
|
3847
|
+
Args: {
|
|
3848
|
+
orgid: string;
|
|
3849
|
+
};
|
|
3850
|
+
Returns: {
|
|
3851
|
+
bandwidth_percent: number;
|
|
3852
|
+
build_time_percent: number;
|
|
3853
|
+
is_good_plan: boolean;
|
|
3854
|
+
mau_percent: number;
|
|
3855
|
+
storage_percent: number;
|
|
3856
|
+
total_percent: number;
|
|
3857
|
+
}[];
|
|
3858
|
+
};
|
|
2806
3859
|
get_plan_usage_percent_detailed: {
|
|
2807
3860
|
Args: {
|
|
2808
3861
|
orgid: string;
|
|
@@ -2828,6 +3881,15 @@ export type Database = {
|
|
|
2828
3881
|
total_percent: number;
|
|
2829
3882
|
}[];
|
|
2830
3883
|
};
|
|
3884
|
+
get_sso_enforcement_by_domain: {
|
|
3885
|
+
Args: {
|
|
3886
|
+
p_domain: string;
|
|
3887
|
+
};
|
|
3888
|
+
Returns: {
|
|
3889
|
+
enforce_sso: boolean;
|
|
3890
|
+
org_id: string;
|
|
3891
|
+
}[];
|
|
3892
|
+
};
|
|
2831
3893
|
get_total_app_storage_size_orgs: {
|
|
2832
3894
|
Args: {
|
|
2833
3895
|
app_id: string;
|
|
@@ -2836,9 +3898,21 @@ export type Database = {
|
|
|
2836
3898
|
Returns: number;
|
|
2837
3899
|
};
|
|
2838
3900
|
get_total_metrics: {
|
|
2839
|
-
Args:
|
|
2840
|
-
|
|
2841
|
-
|
|
3901
|
+
Args: never;
|
|
3902
|
+
Returns: {
|
|
3903
|
+
bandwidth: number;
|
|
3904
|
+
build_time_unit: number;
|
|
3905
|
+
fail: number;
|
|
3906
|
+
get: number;
|
|
3907
|
+
install: number;
|
|
3908
|
+
mau: number;
|
|
3909
|
+
storage: number;
|
|
3910
|
+
uninstall: number;
|
|
3911
|
+
}[];
|
|
3912
|
+
} | {
|
|
3913
|
+
Args: {
|
|
3914
|
+
org_id: string;
|
|
3915
|
+
};
|
|
2842
3916
|
Returns: {
|
|
2843
3917
|
bandwidth: number;
|
|
2844
3918
|
build_time_unit: number;
|
|
@@ -2907,6 +3981,12 @@ export type Database = {
|
|
|
2907
3981
|
};
|
|
2908
3982
|
Returns: string;
|
|
2909
3983
|
};
|
|
3984
|
+
get_user_org_ids: {
|
|
3985
|
+
Args: never;
|
|
3986
|
+
Returns: {
|
|
3987
|
+
org_id: string;
|
|
3988
|
+
}[];
|
|
3989
|
+
};
|
|
2910
3990
|
get_versions_with_no_metadata: {
|
|
2911
3991
|
Args: never;
|
|
2912
3992
|
Returns: {
|
|
@@ -2916,6 +3996,7 @@ export type Database = {
|
|
|
2916
3996
|
comment: string | null;
|
|
2917
3997
|
created_at: string | null;
|
|
2918
3998
|
deleted: boolean;
|
|
3999
|
+
deleted_at: string | null;
|
|
2919
4000
|
external_url: string | null;
|
|
2920
4001
|
id: number;
|
|
2921
4002
|
key_id: string | null;
|
|
@@ -2982,6 +4063,20 @@ export type Database = {
|
|
|
2982
4063
|
};
|
|
2983
4064
|
Returns: boolean;
|
|
2984
4065
|
};
|
|
4066
|
+
has_seeded_demo_data: {
|
|
4067
|
+
Args: {
|
|
4068
|
+
p_app_id: string;
|
|
4069
|
+
};
|
|
4070
|
+
Returns: boolean;
|
|
4071
|
+
};
|
|
4072
|
+
internal_request_db_user_names: {
|
|
4073
|
+
Args: never;
|
|
4074
|
+
Returns: string[];
|
|
4075
|
+
};
|
|
4076
|
+
internal_request_role_names: {
|
|
4077
|
+
Args: never;
|
|
4078
|
+
Returns: string[];
|
|
4079
|
+
};
|
|
2985
4080
|
invite_user_to_org: {
|
|
2986
4081
|
Args: {
|
|
2987
4082
|
email: string;
|
|
@@ -2990,18 +4085,17 @@ export type Database = {
|
|
|
2990
4085
|
};
|
|
2991
4086
|
Returns: string;
|
|
2992
4087
|
};
|
|
2993
|
-
|
|
4088
|
+
invite_user_to_org_rbac: {
|
|
2994
4089
|
Args: {
|
|
2995
|
-
|
|
4090
|
+
email: string;
|
|
4091
|
+
org_id: string;
|
|
4092
|
+
role_name: string;
|
|
2996
4093
|
};
|
|
2997
|
-
Returns:
|
|
4094
|
+
Returns: string;
|
|
2998
4095
|
};
|
|
2999
|
-
|
|
3000
|
-
Args: never;
|
|
3001
|
-
Returns: boolean;
|
|
3002
|
-
} | {
|
|
4096
|
+
is_account_disabled: {
|
|
3003
4097
|
Args: {
|
|
3004
|
-
|
|
4098
|
+
user_id: string;
|
|
3005
4099
|
};
|
|
3006
4100
|
Returns: boolean;
|
|
3007
4101
|
};
|
|
@@ -3075,6 +4169,12 @@ export type Database = {
|
|
|
3075
4169
|
};
|
|
3076
4170
|
Returns: boolean;
|
|
3077
4171
|
};
|
|
4172
|
+
is_bundle_encrypted: {
|
|
4173
|
+
Args: {
|
|
4174
|
+
session_key: string;
|
|
4175
|
+
};
|
|
4176
|
+
Returns: boolean;
|
|
4177
|
+
};
|
|
3078
4178
|
is_canceled_org: {
|
|
3079
4179
|
Args: {
|
|
3080
4180
|
orgid: string;
|
|
@@ -3087,6 +4187,12 @@ export type Database = {
|
|
|
3087
4187
|
};
|
|
3088
4188
|
Returns: boolean;
|
|
3089
4189
|
};
|
|
4190
|
+
is_internal_request_role: {
|
|
4191
|
+
Args: {
|
|
4192
|
+
caller_role: string;
|
|
4193
|
+
};
|
|
4194
|
+
Returns: boolean;
|
|
4195
|
+
};
|
|
3090
4196
|
is_mau_exceeded_by_org: {
|
|
3091
4197
|
Args: {
|
|
3092
4198
|
org_id: string;
|
|
@@ -3149,6 +4255,25 @@ export type Database = {
|
|
|
3149
4255
|
};
|
|
3150
4256
|
Returns: boolean;
|
|
3151
4257
|
};
|
|
4258
|
+
is_platform_admin: {
|
|
4259
|
+
Args: never;
|
|
4260
|
+
Returns: boolean;
|
|
4261
|
+
} | {
|
|
4262
|
+
Args: {
|
|
4263
|
+
userid: string;
|
|
4264
|
+
};
|
|
4265
|
+
Returns: boolean;
|
|
4266
|
+
};
|
|
4267
|
+
is_rbac_enabled_globally: {
|
|
4268
|
+
Args: never;
|
|
4269
|
+
Returns: boolean;
|
|
4270
|
+
};
|
|
4271
|
+
is_recent_email_otp_verified: {
|
|
4272
|
+
Args: {
|
|
4273
|
+
p_user_id: string;
|
|
4274
|
+
};
|
|
4275
|
+
Returns: boolean;
|
|
4276
|
+
};
|
|
3152
4277
|
is_storage_exceeded_by_org: {
|
|
3153
4278
|
Args: {
|
|
3154
4279
|
org_id: string;
|
|
@@ -3161,6 +4286,26 @@ export type Database = {
|
|
|
3161
4286
|
};
|
|
3162
4287
|
Returns: number;
|
|
3163
4288
|
};
|
|
4289
|
+
is_user_app_admin: {
|
|
4290
|
+
Args: {
|
|
4291
|
+
p_app_id: string;
|
|
4292
|
+
p_user_id: string;
|
|
4293
|
+
};
|
|
4294
|
+
Returns: boolean;
|
|
4295
|
+
};
|
|
4296
|
+
is_user_org_admin: {
|
|
4297
|
+
Args: {
|
|
4298
|
+
p_org_id: string;
|
|
4299
|
+
p_user_id: string;
|
|
4300
|
+
};
|
|
4301
|
+
Returns: boolean;
|
|
4302
|
+
};
|
|
4303
|
+
mark_app_stats_refreshed: {
|
|
4304
|
+
Args: {
|
|
4305
|
+
p_app_id: string;
|
|
4306
|
+
};
|
|
4307
|
+
Returns: string;
|
|
4308
|
+
};
|
|
3164
4309
|
mass_edit_queue_messages_cf_ids: {
|
|
3165
4310
|
Args: {
|
|
3166
4311
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -3226,6 +4371,10 @@ export type Database = {
|
|
|
3226
4371
|
Args: never;
|
|
3227
4372
|
Returns: undefined;
|
|
3228
4373
|
};
|
|
4374
|
+
process_daily_fail_ratio_email: {
|
|
4375
|
+
Args: never;
|
|
4376
|
+
Returns: undefined;
|
|
4377
|
+
};
|
|
3229
4378
|
process_deploy_install_stats_email: {
|
|
3230
4379
|
Args: never;
|
|
3231
4380
|
Returns: undefined;
|
|
@@ -3263,212 +4412,851 @@ export type Database = {
|
|
|
3263
4412
|
Args: never;
|
|
3264
4413
|
Returns: undefined;
|
|
3265
4414
|
};
|
|
3266
|
-
|
|
3267
|
-
Args: {
|
|
3268
|
-
customer_id: string;
|
|
3269
|
-
org_id: string;
|
|
3270
|
-
};
|
|
3271
|
-
Returns: undefined;
|
|
3272
|
-
};
|
|
3273
|
-
read_bandwidth_usage: {
|
|
4415
|
+
queue_cron_stat_app_for_app: {
|
|
3274
4416
|
Args: {
|
|
3275
4417
|
p_app_id: string;
|
|
3276
|
-
|
|
3277
|
-
p_period_start: string;
|
|
4418
|
+
p_org_id?: string;
|
|
3278
4419
|
};
|
|
3279
|
-
Returns:
|
|
3280
|
-
app_id: string;
|
|
3281
|
-
bandwidth: number;
|
|
3282
|
-
date: string;
|
|
3283
|
-
}[];
|
|
4420
|
+
Returns: undefined;
|
|
3284
4421
|
};
|
|
3285
|
-
|
|
4422
|
+
queue_cron_stat_org_for_org: {
|
|
3286
4423
|
Args: {
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
p_period_start: string;
|
|
4424
|
+
customer_id: string;
|
|
4425
|
+
org_id: string;
|
|
3290
4426
|
};
|
|
3291
|
-
Returns:
|
|
3292
|
-
app_id: string;
|
|
3293
|
-
date: string;
|
|
3294
|
-
mau: number;
|
|
3295
|
-
}[];
|
|
4427
|
+
Returns: undefined;
|
|
3296
4428
|
};
|
|
3297
|
-
|
|
4429
|
+
rbac_check_permission: {
|
|
3298
4430
|
Args: {
|
|
3299
|
-
p_app_id
|
|
3300
|
-
|
|
3301
|
-
|
|
4431
|
+
p_app_id?: string;
|
|
4432
|
+
p_channel_id?: number;
|
|
4433
|
+
p_org_id?: string;
|
|
4434
|
+
p_permission_key: string;
|
|
3302
4435
|
};
|
|
3303
|
-
Returns:
|
|
3304
|
-
app_id: string;
|
|
3305
|
-
date: string;
|
|
3306
|
-
storage: number;
|
|
3307
|
-
}[];
|
|
4436
|
+
Returns: boolean;
|
|
3308
4437
|
};
|
|
3309
|
-
|
|
4438
|
+
rbac_check_permission_direct: {
|
|
3310
4439
|
Args: {
|
|
4440
|
+
p_apikey?: string;
|
|
3311
4441
|
p_app_id: string;
|
|
3312
|
-
|
|
3313
|
-
p_period_start: string;
|
|
3314
|
-
};
|
|
3315
|
-
Returns: {
|
|
3316
|
-
app_id: string;
|
|
3317
|
-
date: string;
|
|
3318
|
-
fail: number;
|
|
3319
|
-
get: number;
|
|
3320
|
-
install: number;
|
|
3321
|
-
uninstall: number;
|
|
3322
|
-
version_id: number;
|
|
3323
|
-
}[];
|
|
3324
|
-
};
|
|
3325
|
-
record_build_time: {
|
|
3326
|
-
Args: {
|
|
3327
|
-
p_build_id: string;
|
|
3328
|
-
p_build_time_unit: number;
|
|
4442
|
+
p_channel_id: number;
|
|
3329
4443
|
p_org_id: string;
|
|
3330
|
-
|
|
4444
|
+
p_permission_key: string;
|
|
3331
4445
|
p_user_id: string;
|
|
3332
4446
|
};
|
|
3333
|
-
Returns: string;
|
|
3334
|
-
};
|
|
3335
|
-
reject_access_due_to_2fa: {
|
|
3336
|
-
Args: {
|
|
3337
|
-
org_id: string;
|
|
3338
|
-
user_id: string;
|
|
3339
|
-
};
|
|
3340
4447
|
Returns: boolean;
|
|
3341
4448
|
};
|
|
3342
|
-
|
|
4449
|
+
rbac_check_permission_direct_no_password_policy: {
|
|
3343
4450
|
Args: {
|
|
3344
|
-
|
|
4451
|
+
p_apikey?: string;
|
|
4452
|
+
p_app_id: string;
|
|
4453
|
+
p_channel_id: number;
|
|
4454
|
+
p_org_id: string;
|
|
4455
|
+
p_permission_key: string;
|
|
4456
|
+
p_user_id: string;
|
|
3345
4457
|
};
|
|
3346
4458
|
Returns: boolean;
|
|
3347
4459
|
};
|
|
3348
|
-
|
|
4460
|
+
rbac_check_permission_no_password_policy: {
|
|
3349
4461
|
Args: {
|
|
3350
|
-
|
|
4462
|
+
p_app_id?: string;
|
|
4463
|
+
p_channel_id?: number;
|
|
4464
|
+
p_org_id?: string;
|
|
4465
|
+
p_permission_key: string;
|
|
3351
4466
|
};
|
|
3352
4467
|
Returns: boolean;
|
|
3353
4468
|
};
|
|
3354
|
-
|
|
4469
|
+
rbac_check_permission_request: {
|
|
3355
4470
|
Args: {
|
|
3356
|
-
|
|
3357
|
-
|
|
4471
|
+
p_app_id?: string;
|
|
4472
|
+
p_channel_id?: number;
|
|
4473
|
+
p_org_id?: string;
|
|
4474
|
+
p_permission_key: string;
|
|
3358
4475
|
};
|
|
3359
4476
|
Returns: boolean;
|
|
3360
4477
|
};
|
|
3361
|
-
|
|
3362
|
-
Args: never;
|
|
3363
|
-
Returns: undefined;
|
|
3364
|
-
};
|
|
3365
|
-
rescind_invitation: {
|
|
4478
|
+
rbac_enable_for_org: {
|
|
3366
4479
|
Args: {
|
|
3367
|
-
|
|
3368
|
-
|
|
4480
|
+
p_granted_by?: string;
|
|
4481
|
+
p_org_id: string;
|
|
3369
4482
|
};
|
|
3370
|
-
Returns:
|
|
4483
|
+
Returns: Json;
|
|
3371
4484
|
};
|
|
3372
|
-
|
|
4485
|
+
rbac_has_permission: {
|
|
3373
4486
|
Args: {
|
|
3374
|
-
|
|
4487
|
+
p_app_id: string;
|
|
4488
|
+
p_channel_id: number;
|
|
3375
4489
|
p_org_id: string;
|
|
3376
|
-
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
cached_at: string;
|
|
3380
|
-
end_date: string;
|
|
3381
|
-
id: number;
|
|
3382
|
-
org_id: string;
|
|
3383
|
-
response: Json;
|
|
3384
|
-
start_date: string;
|
|
3385
|
-
};
|
|
3386
|
-
SetofOptions: {
|
|
3387
|
-
from: "*";
|
|
3388
|
-
to: "app_metrics_cache";
|
|
3389
|
-
isOneToOne: true;
|
|
3390
|
-
isSetofReturn: false;
|
|
4490
|
+
p_permission_key: string;
|
|
4491
|
+
p_principal_id: string;
|
|
4492
|
+
p_principal_type: string;
|
|
3391
4493
|
};
|
|
4494
|
+
Returns: boolean;
|
|
3392
4495
|
};
|
|
3393
|
-
|
|
4496
|
+
rbac_is_enabled_for_org: {
|
|
3394
4497
|
Args: {
|
|
3395
|
-
|
|
3396
|
-
org_id: string;
|
|
4498
|
+
p_org_id: string;
|
|
3397
4499
|
};
|
|
3398
|
-
Returns:
|
|
4500
|
+
Returns: boolean;
|
|
3399
4501
|
};
|
|
3400
|
-
|
|
4502
|
+
rbac_legacy_right_for_org_role: {
|
|
3401
4503
|
Args: {
|
|
3402
|
-
|
|
3403
|
-
org_id: string;
|
|
4504
|
+
p_role_name: string;
|
|
3404
4505
|
};
|
|
3405
|
-
Returns:
|
|
4506
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3406
4507
|
};
|
|
3407
|
-
|
|
4508
|
+
rbac_legacy_right_for_permission: {
|
|
3408
4509
|
Args: {
|
|
3409
|
-
|
|
3410
|
-
org_id: string;
|
|
4510
|
+
p_permission_key: string;
|
|
3411
4511
|
};
|
|
3412
|
-
Returns:
|
|
4512
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3413
4513
|
};
|
|
3414
|
-
|
|
4514
|
+
rbac_legacy_role_hint: {
|
|
3415
4515
|
Args: {
|
|
3416
|
-
|
|
3417
|
-
|
|
4516
|
+
p_app_id: string;
|
|
4517
|
+
p_channel_id: number;
|
|
4518
|
+
p_user_right: Database["public"]["Enums"]["user_min_right"];
|
|
3418
4519
|
};
|
|
3419
|
-
Returns:
|
|
4520
|
+
Returns: string;
|
|
3420
4521
|
};
|
|
3421
|
-
|
|
4522
|
+
rbac_migrate_org_users_to_bindings: {
|
|
3422
4523
|
Args: {
|
|
3423
|
-
|
|
3424
|
-
p_expires_at?: string;
|
|
3425
|
-
p_notes?: string;
|
|
4524
|
+
p_granted_by?: string;
|
|
3426
4525
|
p_org_id: string;
|
|
3427
|
-
p_source?: string;
|
|
3428
|
-
p_source_ref?: Json;
|
|
3429
4526
|
};
|
|
3430
|
-
Returns:
|
|
3431
|
-
available_credits: number;
|
|
3432
|
-
grant_id: string;
|
|
3433
|
-
next_expiration: string;
|
|
3434
|
-
total_credits: number;
|
|
3435
|
-
transaction_id: number;
|
|
3436
|
-
}[];
|
|
4527
|
+
Returns: Json;
|
|
3437
4528
|
};
|
|
3438
|
-
|
|
4529
|
+
rbac_perm_app_build_native: {
|
|
3439
4530
|
Args: never;
|
|
3440
|
-
Returns:
|
|
4531
|
+
Returns: string;
|
|
3441
4532
|
};
|
|
3442
|
-
|
|
3443
|
-
Args:
|
|
3444
|
-
|
|
3445
|
-
p_new_org_id: string;
|
|
3446
|
-
};
|
|
3447
|
-
Returns: undefined;
|
|
4533
|
+
rbac_perm_app_create_channel: {
|
|
4534
|
+
Args: never;
|
|
4535
|
+
Returns: string;
|
|
3448
4536
|
};
|
|
3449
|
-
|
|
3450
|
-
Args:
|
|
3451
|
-
|
|
3452
|
-
};
|
|
3453
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4537
|
+
rbac_perm_app_delete: {
|
|
4538
|
+
Args: never;
|
|
4539
|
+
Returns: string;
|
|
3454
4540
|
};
|
|
3455
|
-
|
|
3456
|
-
Args:
|
|
3457
|
-
|
|
3458
|
-
};
|
|
3459
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4541
|
+
rbac_perm_app_manage_devices: {
|
|
4542
|
+
Args: never;
|
|
4543
|
+
Returns: string;
|
|
3460
4544
|
};
|
|
3461
|
-
|
|
4545
|
+
rbac_perm_app_read: {
|
|
3462
4546
|
Args: never;
|
|
3463
|
-
Returns:
|
|
4547
|
+
Returns: string;
|
|
3464
4548
|
};
|
|
3465
|
-
|
|
3466
|
-
Args:
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
Returns:
|
|
4549
|
+
rbac_perm_app_read_audit: {
|
|
4550
|
+
Args: never;
|
|
4551
|
+
Returns: string;
|
|
4552
|
+
};
|
|
4553
|
+
rbac_perm_app_read_bundles: {
|
|
4554
|
+
Args: never;
|
|
4555
|
+
Returns: string;
|
|
4556
|
+
};
|
|
4557
|
+
rbac_perm_app_read_channels: {
|
|
4558
|
+
Args: never;
|
|
4559
|
+
Returns: string;
|
|
4560
|
+
};
|
|
4561
|
+
rbac_perm_app_read_devices: {
|
|
4562
|
+
Args: never;
|
|
4563
|
+
Returns: string;
|
|
4564
|
+
};
|
|
4565
|
+
rbac_perm_app_read_logs: {
|
|
4566
|
+
Args: never;
|
|
4567
|
+
Returns: string;
|
|
4568
|
+
};
|
|
4569
|
+
rbac_perm_app_transfer: {
|
|
4570
|
+
Args: never;
|
|
4571
|
+
Returns: string;
|
|
4572
|
+
};
|
|
4573
|
+
rbac_perm_app_update_settings: {
|
|
4574
|
+
Args: never;
|
|
4575
|
+
Returns: string;
|
|
4576
|
+
};
|
|
4577
|
+
rbac_perm_app_update_user_roles: {
|
|
4578
|
+
Args: never;
|
|
4579
|
+
Returns: string;
|
|
4580
|
+
};
|
|
4581
|
+
rbac_perm_app_upload_bundle: {
|
|
4582
|
+
Args: never;
|
|
4583
|
+
Returns: string;
|
|
4584
|
+
};
|
|
4585
|
+
rbac_perm_bundle_delete: {
|
|
4586
|
+
Args: never;
|
|
4587
|
+
Returns: string;
|
|
4588
|
+
};
|
|
4589
|
+
rbac_perm_bundle_read: {
|
|
4590
|
+
Args: never;
|
|
4591
|
+
Returns: string;
|
|
4592
|
+
};
|
|
4593
|
+
rbac_perm_bundle_update: {
|
|
4594
|
+
Args: never;
|
|
4595
|
+
Returns: string;
|
|
4596
|
+
};
|
|
4597
|
+
rbac_perm_channel_delete: {
|
|
4598
|
+
Args: never;
|
|
4599
|
+
Returns: string;
|
|
4600
|
+
};
|
|
4601
|
+
rbac_perm_channel_manage_forced_devices: {
|
|
4602
|
+
Args: never;
|
|
4603
|
+
Returns: string;
|
|
4604
|
+
};
|
|
4605
|
+
rbac_perm_channel_promote_bundle: {
|
|
4606
|
+
Args: never;
|
|
4607
|
+
Returns: string;
|
|
4608
|
+
};
|
|
4609
|
+
rbac_perm_channel_read: {
|
|
4610
|
+
Args: never;
|
|
4611
|
+
Returns: string;
|
|
4612
|
+
};
|
|
4613
|
+
rbac_perm_channel_read_audit: {
|
|
4614
|
+
Args: never;
|
|
4615
|
+
Returns: string;
|
|
4616
|
+
};
|
|
4617
|
+
rbac_perm_channel_read_forced_devices: {
|
|
4618
|
+
Args: never;
|
|
4619
|
+
Returns: string;
|
|
4620
|
+
};
|
|
4621
|
+
rbac_perm_channel_read_history: {
|
|
4622
|
+
Args: never;
|
|
4623
|
+
Returns: string;
|
|
4624
|
+
};
|
|
4625
|
+
rbac_perm_channel_rollback_bundle: {
|
|
4626
|
+
Args: never;
|
|
4627
|
+
Returns: string;
|
|
4628
|
+
};
|
|
4629
|
+
rbac_perm_channel_update_settings: {
|
|
4630
|
+
Args: never;
|
|
4631
|
+
Returns: string;
|
|
4632
|
+
};
|
|
4633
|
+
rbac_perm_org_create_app: {
|
|
4634
|
+
Args: never;
|
|
4635
|
+
Returns: string;
|
|
4636
|
+
};
|
|
4637
|
+
rbac_perm_org_delete: {
|
|
4638
|
+
Args: never;
|
|
4639
|
+
Returns: string;
|
|
4640
|
+
};
|
|
4641
|
+
rbac_perm_org_invite_user: {
|
|
4642
|
+
Args: never;
|
|
4643
|
+
Returns: string;
|
|
4644
|
+
};
|
|
4645
|
+
rbac_perm_org_read: {
|
|
4646
|
+
Args: never;
|
|
4647
|
+
Returns: string;
|
|
4648
|
+
};
|
|
4649
|
+
rbac_perm_org_read_audit: {
|
|
4650
|
+
Args: never;
|
|
4651
|
+
Returns: string;
|
|
4652
|
+
};
|
|
4653
|
+
rbac_perm_org_read_billing: {
|
|
4654
|
+
Args: never;
|
|
4655
|
+
Returns: string;
|
|
4656
|
+
};
|
|
4657
|
+
rbac_perm_org_read_billing_audit: {
|
|
4658
|
+
Args: never;
|
|
4659
|
+
Returns: string;
|
|
4660
|
+
};
|
|
4661
|
+
rbac_perm_org_read_invoices: {
|
|
4662
|
+
Args: never;
|
|
4663
|
+
Returns: string;
|
|
4664
|
+
};
|
|
4665
|
+
rbac_perm_org_read_members: {
|
|
4666
|
+
Args: never;
|
|
4667
|
+
Returns: string;
|
|
4668
|
+
};
|
|
4669
|
+
rbac_perm_org_update_billing: {
|
|
4670
|
+
Args: never;
|
|
4671
|
+
Returns: string;
|
|
4672
|
+
};
|
|
4673
|
+
rbac_perm_org_update_settings: {
|
|
4674
|
+
Args: never;
|
|
4675
|
+
Returns: string;
|
|
4676
|
+
};
|
|
4677
|
+
rbac_perm_org_update_user_roles: {
|
|
4678
|
+
Args: never;
|
|
4679
|
+
Returns: string;
|
|
4680
|
+
};
|
|
4681
|
+
rbac_perm_platform_db_break_glass: {
|
|
4682
|
+
Args: never;
|
|
4683
|
+
Returns: string;
|
|
4684
|
+
};
|
|
4685
|
+
rbac_perm_platform_delete_orphan_users: {
|
|
4686
|
+
Args: never;
|
|
4687
|
+
Returns: string;
|
|
4688
|
+
};
|
|
4689
|
+
rbac_perm_platform_impersonate_user: {
|
|
4690
|
+
Args: never;
|
|
4691
|
+
Returns: string;
|
|
4692
|
+
};
|
|
4693
|
+
rbac_perm_platform_manage_apps_any: {
|
|
4694
|
+
Args: never;
|
|
4695
|
+
Returns: string;
|
|
4696
|
+
};
|
|
4697
|
+
rbac_perm_platform_manage_channels_any: {
|
|
4698
|
+
Args: never;
|
|
4699
|
+
Returns: string;
|
|
4700
|
+
};
|
|
4701
|
+
rbac_perm_platform_manage_orgs_any: {
|
|
4702
|
+
Args: never;
|
|
4703
|
+
Returns: string;
|
|
4704
|
+
};
|
|
4705
|
+
rbac_perm_platform_read_all_audit: {
|
|
4706
|
+
Args: never;
|
|
4707
|
+
Returns: string;
|
|
4708
|
+
};
|
|
4709
|
+
rbac_perm_platform_run_maintenance_jobs: {
|
|
4710
|
+
Args: never;
|
|
4711
|
+
Returns: string;
|
|
4712
|
+
};
|
|
4713
|
+
rbac_permission_for_legacy: {
|
|
4714
|
+
Args: {
|
|
4715
|
+
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
4716
|
+
p_scope: string;
|
|
4717
|
+
};
|
|
4718
|
+
Returns: string;
|
|
4719
|
+
};
|
|
4720
|
+
rbac_preview_migration: {
|
|
4721
|
+
Args: {
|
|
4722
|
+
p_org_id: string;
|
|
4723
|
+
};
|
|
4724
|
+
Returns: {
|
|
4725
|
+
app_id: string;
|
|
4726
|
+
channel_id: number;
|
|
4727
|
+
org_user_id: number;
|
|
4728
|
+
scope_type: string;
|
|
4729
|
+
skip_reason: string;
|
|
4730
|
+
suggested_role: string;
|
|
4731
|
+
user_id: string;
|
|
4732
|
+
user_right: string;
|
|
4733
|
+
will_migrate: boolean;
|
|
4734
|
+
}[];
|
|
4735
|
+
};
|
|
4736
|
+
rbac_principal_apikey: {
|
|
4737
|
+
Args: never;
|
|
4738
|
+
Returns: string;
|
|
4739
|
+
};
|
|
4740
|
+
rbac_principal_group: {
|
|
4741
|
+
Args: never;
|
|
4742
|
+
Returns: string;
|
|
4743
|
+
};
|
|
4744
|
+
rbac_principal_user: {
|
|
4745
|
+
Args: never;
|
|
4746
|
+
Returns: string;
|
|
4747
|
+
};
|
|
4748
|
+
rbac_right_admin: {
|
|
4749
|
+
Args: never;
|
|
4750
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4751
|
+
};
|
|
4752
|
+
rbac_right_invite_admin: {
|
|
4753
|
+
Args: never;
|
|
4754
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4755
|
+
};
|
|
4756
|
+
rbac_right_invite_super_admin: {
|
|
4757
|
+
Args: never;
|
|
4758
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4759
|
+
};
|
|
4760
|
+
rbac_right_invite_upload: {
|
|
4761
|
+
Args: never;
|
|
4762
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4763
|
+
};
|
|
4764
|
+
rbac_right_invite_write: {
|
|
4765
|
+
Args: never;
|
|
4766
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4767
|
+
};
|
|
4768
|
+
rbac_right_read: {
|
|
4769
|
+
Args: never;
|
|
4770
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4771
|
+
};
|
|
4772
|
+
rbac_right_super_admin: {
|
|
4773
|
+
Args: never;
|
|
4774
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4775
|
+
};
|
|
4776
|
+
rbac_right_upload: {
|
|
4777
|
+
Args: never;
|
|
4778
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4779
|
+
};
|
|
4780
|
+
rbac_right_write: {
|
|
4781
|
+
Args: never;
|
|
4782
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4783
|
+
};
|
|
4784
|
+
rbac_role_app_admin: {
|
|
4785
|
+
Args: never;
|
|
4786
|
+
Returns: string;
|
|
4787
|
+
};
|
|
4788
|
+
rbac_role_app_developer: {
|
|
4789
|
+
Args: never;
|
|
4790
|
+
Returns: string;
|
|
4791
|
+
};
|
|
4792
|
+
rbac_role_app_reader: {
|
|
4793
|
+
Args: never;
|
|
4794
|
+
Returns: string;
|
|
4795
|
+
};
|
|
4796
|
+
rbac_role_app_uploader: {
|
|
4797
|
+
Args: never;
|
|
4798
|
+
Returns: string;
|
|
4799
|
+
};
|
|
4800
|
+
rbac_role_bundle_admin: {
|
|
4801
|
+
Args: never;
|
|
4802
|
+
Returns: string;
|
|
4803
|
+
};
|
|
4804
|
+
rbac_role_bundle_reader: {
|
|
4805
|
+
Args: never;
|
|
4806
|
+
Returns: string;
|
|
4807
|
+
};
|
|
4808
|
+
rbac_role_channel_admin: {
|
|
4809
|
+
Args: never;
|
|
4810
|
+
Returns: string;
|
|
4811
|
+
};
|
|
4812
|
+
rbac_role_channel_reader: {
|
|
4813
|
+
Args: never;
|
|
4814
|
+
Returns: string;
|
|
4815
|
+
};
|
|
4816
|
+
rbac_role_org_admin: {
|
|
4817
|
+
Args: never;
|
|
4818
|
+
Returns: string;
|
|
4819
|
+
};
|
|
4820
|
+
rbac_role_org_billing_admin: {
|
|
4821
|
+
Args: never;
|
|
4822
|
+
Returns: string;
|
|
4823
|
+
};
|
|
4824
|
+
rbac_role_org_member: {
|
|
4825
|
+
Args: never;
|
|
4826
|
+
Returns: string;
|
|
4827
|
+
};
|
|
4828
|
+
rbac_role_org_super_admin: {
|
|
4829
|
+
Args: never;
|
|
4830
|
+
Returns: string;
|
|
4831
|
+
};
|
|
4832
|
+
rbac_role_platform_super_admin: {
|
|
4833
|
+
Args: never;
|
|
4834
|
+
Returns: string;
|
|
4835
|
+
};
|
|
4836
|
+
rbac_rollback_org: {
|
|
4837
|
+
Args: {
|
|
4838
|
+
p_org_id: string;
|
|
4839
|
+
};
|
|
4840
|
+
Returns: Json;
|
|
4841
|
+
};
|
|
4842
|
+
rbac_scope_app: {
|
|
4843
|
+
Args: never;
|
|
4844
|
+
Returns: string;
|
|
4845
|
+
};
|
|
4846
|
+
rbac_scope_bundle: {
|
|
4847
|
+
Args: never;
|
|
4848
|
+
Returns: string;
|
|
4849
|
+
};
|
|
4850
|
+
rbac_scope_channel: {
|
|
4851
|
+
Args: never;
|
|
4852
|
+
Returns: string;
|
|
4853
|
+
};
|
|
4854
|
+
rbac_scope_org: {
|
|
4855
|
+
Args: never;
|
|
4856
|
+
Returns: string;
|
|
4857
|
+
};
|
|
4858
|
+
rbac_scope_platform: {
|
|
4859
|
+
Args: never;
|
|
4860
|
+
Returns: string;
|
|
4861
|
+
};
|
|
4862
|
+
read_bandwidth_usage: {
|
|
4863
|
+
Args: {
|
|
4864
|
+
p_app_id: string;
|
|
4865
|
+
p_period_end: string;
|
|
4866
|
+
p_period_start: string;
|
|
4867
|
+
};
|
|
4868
|
+
Returns: {
|
|
4869
|
+
app_id: string;
|
|
4870
|
+
bandwidth: number;
|
|
4871
|
+
date: string;
|
|
4872
|
+
}[];
|
|
4873
|
+
};
|
|
4874
|
+
read_device_usage: {
|
|
4875
|
+
Args: {
|
|
4876
|
+
p_app_id: string;
|
|
4877
|
+
p_period_end: string;
|
|
4878
|
+
p_period_start: string;
|
|
4879
|
+
};
|
|
4880
|
+
Returns: {
|
|
4881
|
+
app_id: string;
|
|
4882
|
+
date: string;
|
|
4883
|
+
mau: number;
|
|
4884
|
+
}[];
|
|
4885
|
+
};
|
|
4886
|
+
read_storage_usage: {
|
|
4887
|
+
Args: {
|
|
4888
|
+
p_app_id: string;
|
|
4889
|
+
p_period_end: string;
|
|
4890
|
+
p_period_start: string;
|
|
4891
|
+
};
|
|
4892
|
+
Returns: {
|
|
4893
|
+
app_id: string;
|
|
4894
|
+
date: string;
|
|
4895
|
+
storage: number;
|
|
4896
|
+
}[];
|
|
4897
|
+
};
|
|
4898
|
+
read_version_usage: {
|
|
4899
|
+
Args: {
|
|
4900
|
+
p_app_id: string;
|
|
4901
|
+
p_period_end: string;
|
|
4902
|
+
p_period_start: string;
|
|
4903
|
+
};
|
|
4904
|
+
Returns: {
|
|
4905
|
+
app_id: string;
|
|
4906
|
+
date: string;
|
|
4907
|
+
fail: number;
|
|
4908
|
+
get: number;
|
|
4909
|
+
install: number;
|
|
4910
|
+
uninstall: number;
|
|
4911
|
+
version_name: string;
|
|
4912
|
+
}[];
|
|
4913
|
+
};
|
|
4914
|
+
record_build_time: {
|
|
4915
|
+
Args: {
|
|
4916
|
+
p_app_id: string;
|
|
4917
|
+
p_build_id: string;
|
|
4918
|
+
p_build_time_unit: number;
|
|
4919
|
+
p_org_id: string;
|
|
4920
|
+
p_platform: string;
|
|
4921
|
+
p_user_id: string;
|
|
4922
|
+
};
|
|
4923
|
+
Returns: string;
|
|
4924
|
+
};
|
|
4925
|
+
record_email_otp_verified: {
|
|
4926
|
+
Args: {
|
|
4927
|
+
p_user_id: string;
|
|
4928
|
+
};
|
|
4929
|
+
Returns: string;
|
|
4930
|
+
};
|
|
4931
|
+
refresh_orgs_has_usage_credits: {
|
|
4932
|
+
Args: never;
|
|
4933
|
+
Returns: undefined;
|
|
4934
|
+
};
|
|
4935
|
+
regenerate_hashed_apikey: {
|
|
4936
|
+
Args: {
|
|
4937
|
+
p_apikey_id: number;
|
|
4938
|
+
};
|
|
4939
|
+
Returns: {
|
|
4940
|
+
created_at: string | null;
|
|
4941
|
+
expires_at: string | null;
|
|
4942
|
+
id: number;
|
|
4943
|
+
key: string | null;
|
|
4944
|
+
key_hash: string | null;
|
|
4945
|
+
limited_to_apps: string[] | null;
|
|
4946
|
+
limited_to_orgs: string[] | null;
|
|
4947
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4948
|
+
name: string;
|
|
4949
|
+
rbac_id: string;
|
|
4950
|
+
updated_at: string | null;
|
|
4951
|
+
user_id: string;
|
|
4952
|
+
};
|
|
4953
|
+
SetofOptions: {
|
|
4954
|
+
from: "*";
|
|
4955
|
+
to: "apikeys";
|
|
4956
|
+
isOneToOne: true;
|
|
4957
|
+
isSetofReturn: false;
|
|
4958
|
+
};
|
|
4959
|
+
};
|
|
4960
|
+
regenerate_hashed_apikey_for_user: {
|
|
4961
|
+
Args: {
|
|
4962
|
+
p_apikey_id: number;
|
|
4963
|
+
p_user_id: string;
|
|
4964
|
+
};
|
|
4965
|
+
Returns: {
|
|
4966
|
+
created_at: string | null;
|
|
4967
|
+
expires_at: string | null;
|
|
4968
|
+
id: number;
|
|
4969
|
+
key: string | null;
|
|
4970
|
+
key_hash: string | null;
|
|
4971
|
+
limited_to_apps: string[] | null;
|
|
4972
|
+
limited_to_orgs: string[] | null;
|
|
4973
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4974
|
+
name: string;
|
|
4975
|
+
rbac_id: string;
|
|
4976
|
+
updated_at: string | null;
|
|
4977
|
+
user_id: string;
|
|
4978
|
+
};
|
|
4979
|
+
SetofOptions: {
|
|
4980
|
+
from: "*";
|
|
4981
|
+
to: "apikeys";
|
|
4982
|
+
isOneToOne: true;
|
|
4983
|
+
isSetofReturn: false;
|
|
4984
|
+
};
|
|
4985
|
+
};
|
|
4986
|
+
reject_access_due_to_2fa: {
|
|
4987
|
+
Args: {
|
|
4988
|
+
org_id: string;
|
|
4989
|
+
user_id: string;
|
|
4990
|
+
};
|
|
4991
|
+
Returns: boolean;
|
|
4992
|
+
};
|
|
4993
|
+
reject_access_due_to_2fa_for_app: {
|
|
4994
|
+
Args: {
|
|
4995
|
+
app_id: string;
|
|
4996
|
+
};
|
|
4997
|
+
Returns: boolean;
|
|
4998
|
+
};
|
|
4999
|
+
reject_access_due_to_2fa_for_org: {
|
|
5000
|
+
Args: {
|
|
5001
|
+
org_id: string;
|
|
5002
|
+
};
|
|
5003
|
+
Returns: boolean;
|
|
5004
|
+
};
|
|
5005
|
+
reject_access_due_to_password_policy: {
|
|
5006
|
+
Args: {
|
|
5007
|
+
org_id: string;
|
|
5008
|
+
user_id: string;
|
|
5009
|
+
};
|
|
5010
|
+
Returns: boolean;
|
|
5011
|
+
};
|
|
5012
|
+
remove_old_jobs: {
|
|
5013
|
+
Args: never;
|
|
5014
|
+
Returns: undefined;
|
|
5015
|
+
};
|
|
5016
|
+
request_app_chart_refresh: {
|
|
5017
|
+
Args: {
|
|
5018
|
+
app_id: string;
|
|
5019
|
+
};
|
|
5020
|
+
Returns: {
|
|
5021
|
+
queued_app_ids: string[];
|
|
5022
|
+
queued_count: number;
|
|
5023
|
+
requested_at: string;
|
|
5024
|
+
skipped_count: number;
|
|
5025
|
+
}[];
|
|
5026
|
+
};
|
|
5027
|
+
request_has_app_read_access: {
|
|
5028
|
+
Args: {
|
|
5029
|
+
appid: string;
|
|
5030
|
+
orgid: string;
|
|
5031
|
+
};
|
|
5032
|
+
Returns: boolean;
|
|
5033
|
+
};
|
|
5034
|
+
request_has_org_read_access: {
|
|
5035
|
+
Args: {
|
|
5036
|
+
orgid: string;
|
|
5037
|
+
};
|
|
5038
|
+
Returns: boolean;
|
|
5039
|
+
};
|
|
5040
|
+
request_org_chart_refresh: {
|
|
5041
|
+
Args: {
|
|
5042
|
+
org_id: string;
|
|
5043
|
+
};
|
|
5044
|
+
Returns: {
|
|
5045
|
+
queued_app_ids: string[];
|
|
5046
|
+
queued_count: number;
|
|
5047
|
+
requested_at: string;
|
|
5048
|
+
skipped_count: number;
|
|
5049
|
+
}[];
|
|
5050
|
+
};
|
|
5051
|
+
request_read_key_modes: {
|
|
5052
|
+
Args: never;
|
|
5053
|
+
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5054
|
+
};
|
|
5055
|
+
rescind_invitation: {
|
|
5056
|
+
Args: {
|
|
5057
|
+
email: string;
|
|
5058
|
+
org_id: string;
|
|
5059
|
+
};
|
|
5060
|
+
Returns: string;
|
|
5061
|
+
};
|
|
5062
|
+
reset_and_seed_app_data: {
|
|
5063
|
+
Args: {
|
|
5064
|
+
p_admin_user_id?: string;
|
|
5065
|
+
p_app_id: string;
|
|
5066
|
+
p_org_id?: string;
|
|
5067
|
+
p_plan_product_id?: string;
|
|
5068
|
+
p_stripe_customer_id?: string;
|
|
5069
|
+
p_user_id?: string;
|
|
5070
|
+
};
|
|
5071
|
+
Returns: undefined;
|
|
5072
|
+
};
|
|
5073
|
+
reset_and_seed_app_stats_data: {
|
|
5074
|
+
Args: {
|
|
5075
|
+
p_app_id: string;
|
|
5076
|
+
};
|
|
5077
|
+
Returns: undefined;
|
|
5078
|
+
};
|
|
5079
|
+
reset_and_seed_data: {
|
|
5080
|
+
Args: never;
|
|
5081
|
+
Returns: undefined;
|
|
5082
|
+
};
|
|
5083
|
+
reset_and_seed_stats_data: {
|
|
5084
|
+
Args: never;
|
|
5085
|
+
Returns: undefined;
|
|
5086
|
+
};
|
|
5087
|
+
reset_app_data: {
|
|
5088
|
+
Args: {
|
|
5089
|
+
p_app_id: string;
|
|
5090
|
+
};
|
|
5091
|
+
Returns: undefined;
|
|
5092
|
+
};
|
|
5093
|
+
reset_app_stats_data: {
|
|
5094
|
+
Args: {
|
|
5095
|
+
p_app_id: string;
|
|
5096
|
+
};
|
|
5097
|
+
Returns: undefined;
|
|
5098
|
+
};
|
|
5099
|
+
restore_deleted_account: {
|
|
5100
|
+
Args: never;
|
|
5101
|
+
Returns: undefined;
|
|
5102
|
+
};
|
|
5103
|
+
resync_org_user_role_bindings: {
|
|
5104
|
+
Args: {
|
|
5105
|
+
p_org_id: string;
|
|
5106
|
+
p_user_id: string;
|
|
5107
|
+
};
|
|
5108
|
+
Returns: undefined;
|
|
5109
|
+
};
|
|
5110
|
+
seed_get_app_metrics_caches: {
|
|
5111
|
+
Args: {
|
|
5112
|
+
p_end_date: string;
|
|
5113
|
+
p_org_id: string;
|
|
5114
|
+
p_start_date: string;
|
|
5115
|
+
};
|
|
5116
|
+
Returns: {
|
|
5117
|
+
cached_at: string;
|
|
5118
|
+
end_date: string;
|
|
5119
|
+
id: number;
|
|
5120
|
+
org_id: string;
|
|
5121
|
+
response: Json;
|
|
5122
|
+
start_date: string;
|
|
5123
|
+
};
|
|
5124
|
+
SetofOptions: {
|
|
5125
|
+
from: "*";
|
|
5126
|
+
to: "app_metrics_cache";
|
|
5127
|
+
isOneToOne: true;
|
|
5128
|
+
isSetofReturn: false;
|
|
5129
|
+
};
|
|
5130
|
+
};
|
|
5131
|
+
seed_org_metrics_cache: {
|
|
5132
|
+
Args: {
|
|
5133
|
+
p_end_date: string;
|
|
5134
|
+
p_org_id: string;
|
|
5135
|
+
p_start_date: string;
|
|
5136
|
+
};
|
|
5137
|
+
Returns: {
|
|
5138
|
+
bandwidth: number;
|
|
5139
|
+
build_time_unit: number;
|
|
5140
|
+
cached_at: string;
|
|
5141
|
+
end_date: string;
|
|
5142
|
+
fail: number;
|
|
5143
|
+
get: number;
|
|
5144
|
+
install: number;
|
|
5145
|
+
mau: number;
|
|
5146
|
+
org_id: string;
|
|
5147
|
+
start_date: string;
|
|
5148
|
+
storage: number;
|
|
5149
|
+
uninstall: number;
|
|
5150
|
+
};
|
|
5151
|
+
SetofOptions: {
|
|
5152
|
+
from: "*";
|
|
5153
|
+
to: "org_metrics_cache";
|
|
5154
|
+
isOneToOne: true;
|
|
5155
|
+
isSetofReturn: false;
|
|
5156
|
+
};
|
|
5157
|
+
};
|
|
5158
|
+
set_build_time_exceeded_by_org: {
|
|
5159
|
+
Args: {
|
|
5160
|
+
disabled: boolean;
|
|
5161
|
+
org_id: string;
|
|
5162
|
+
};
|
|
5163
|
+
Returns: undefined;
|
|
5164
|
+
};
|
|
5165
|
+
strip_html: {
|
|
5166
|
+
Args: {
|
|
5167
|
+
input: string;
|
|
5168
|
+
};
|
|
5169
|
+
Returns: string;
|
|
5170
|
+
};
|
|
5171
|
+
top_up_usage_credits: {
|
|
5172
|
+
Args: {
|
|
5173
|
+
p_amount: number;
|
|
5174
|
+
p_expires_at?: string;
|
|
5175
|
+
p_notes?: string;
|
|
5176
|
+
p_org_id: string;
|
|
5177
|
+
p_source?: string;
|
|
5178
|
+
p_source_ref?: Json;
|
|
5179
|
+
};
|
|
5180
|
+
Returns: {
|
|
5181
|
+
available_credits: number;
|
|
5182
|
+
grant_id: string;
|
|
5183
|
+
next_expiration: string;
|
|
5184
|
+
total_credits: number;
|
|
5185
|
+
transaction_id: number;
|
|
5186
|
+
}[];
|
|
5187
|
+
};
|
|
5188
|
+
total_bundle_storage_bytes: {
|
|
5189
|
+
Args: never;
|
|
5190
|
+
Returns: number;
|
|
5191
|
+
};
|
|
5192
|
+
transfer_app: {
|
|
5193
|
+
Args: {
|
|
5194
|
+
p_app_id: string;
|
|
5195
|
+
p_new_org_id: string;
|
|
5196
|
+
};
|
|
5197
|
+
Returns: undefined;
|
|
5198
|
+
};
|
|
5199
|
+
transform_role_to_invite: {
|
|
5200
|
+
Args: {
|
|
5201
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5202
|
+
};
|
|
5203
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5204
|
+
};
|
|
5205
|
+
transform_role_to_non_invite: {
|
|
5206
|
+
Args: {
|
|
5207
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5208
|
+
};
|
|
5209
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5210
|
+
};
|
|
5211
|
+
update_app_versions_retention: {
|
|
5212
|
+
Args: never;
|
|
5213
|
+
Returns: undefined;
|
|
5214
|
+
};
|
|
5215
|
+
update_org_invite_role_rbac: {
|
|
5216
|
+
Args: {
|
|
5217
|
+
p_new_role_name: string;
|
|
5218
|
+
p_org_id: string;
|
|
5219
|
+
p_user_id: string;
|
|
5220
|
+
};
|
|
5221
|
+
Returns: string;
|
|
5222
|
+
};
|
|
5223
|
+
update_org_member_role: {
|
|
5224
|
+
Args: {
|
|
5225
|
+
p_new_role_name: string;
|
|
5226
|
+
p_org_id: string;
|
|
5227
|
+
p_user_id: string;
|
|
5228
|
+
};
|
|
5229
|
+
Returns: string;
|
|
5230
|
+
};
|
|
5231
|
+
update_tmp_invite_role_rbac: {
|
|
5232
|
+
Args: {
|
|
5233
|
+
p_email: string;
|
|
5234
|
+
p_new_role_name: string;
|
|
5235
|
+
p_org_id: string;
|
|
5236
|
+
};
|
|
5237
|
+
Returns: string;
|
|
5238
|
+
};
|
|
5239
|
+
upsert_version_meta: {
|
|
5240
|
+
Args: {
|
|
5241
|
+
p_app_id: string;
|
|
5242
|
+
p_size: number;
|
|
5243
|
+
p_version_id: number;
|
|
5244
|
+
};
|
|
5245
|
+
Returns: boolean;
|
|
5246
|
+
};
|
|
5247
|
+
user_has_app_update_user_roles: {
|
|
5248
|
+
Args: {
|
|
5249
|
+
p_app_id: string;
|
|
5250
|
+
p_user_id: string;
|
|
5251
|
+
};
|
|
5252
|
+
Returns: boolean;
|
|
5253
|
+
};
|
|
5254
|
+
user_has_role_in_app: {
|
|
5255
|
+
Args: {
|
|
5256
|
+
p_app_id: string;
|
|
5257
|
+
p_user_id: string;
|
|
5258
|
+
};
|
|
5259
|
+
Returns: boolean;
|
|
3472
5260
|
};
|
|
3473
5261
|
user_meets_password_policy: {
|
|
3474
5262
|
Args: {
|
|
@@ -3496,8 +5284,8 @@ export type Database = {
|
|
|
3496
5284
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
3497
5285
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
3498
5286
|
key_mode: "read" | "write" | "all" | "upload";
|
|
3499
|
-
platform_os: "ios" | "android";
|
|
3500
|
-
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "
|
|
5287
|
+
platform_os: "ios" | "android" | "electron";
|
|
5288
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableProdBuild" | "disableEmulator" | "disableDevice" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disablePlatformElectron" | "customIdBlocked";
|
|
3501
5289
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
3502
5290
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
3503
5291
|
user_role: "read" | "upload" | "write" | "admin";
|
|
@@ -3587,6 +5375,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
|
|
|
3587
5375
|
schema: keyof DatabaseWithoutInternals;
|
|
3588
5376
|
} ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
|
|
3589
5377
|
export declare const Constants: {
|
|
5378
|
+
readonly graphql_public: {
|
|
5379
|
+
readonly Enums: {};
|
|
5380
|
+
};
|
|
3590
5381
|
readonly public: {
|
|
3591
5382
|
readonly Enums: {
|
|
3592
5383
|
readonly action_type: readonly ["mau", "storage", "bandwidth", "build_time"];
|
|
@@ -3595,8 +5386,8 @@ export declare const Constants: {
|
|
|
3595
5386
|
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
|
3596
5387
|
readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
|
|
3597
5388
|
readonly key_mode: readonly ["read", "write", "all", "upload"];
|
|
3598
|
-
readonly platform_os: readonly ["ios", "android"];
|
|
3599
|
-
readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableEmulator", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "
|
|
5389
|
+
readonly platform_os: readonly ["ios", "android", "electron"];
|
|
5390
|
+
readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableProdBuild", "disableEmulator", "disableDevice", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "disablePlatformElectron", "customIdBlocked"];
|
|
3600
5391
|
readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
|
|
3601
5392
|
readonly user_min_right: readonly ["invite_read", "invite_upload", "invite_write", "invite_admin", "invite_super_admin", "read", "upload", "write", "admin", "super_admin"];
|
|
3602
5393
|
readonly user_role: readonly ["read", "upload", "write", "admin"];
|