@capgo/cli 7.95.4 → 7.95.6
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 +171 -171
- package/dist/package.json +11 -11
- package/dist/src/api/channels.d.ts +3920 -522
- 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 +133 -133
- package/dist/src/types/supabase.types.d.ts +1965 -241
- package/dist/src/utils.d.ts +1951 -252
- package/package.json +11 -11
package/dist/src/utils.d.ts
CHANGED
|
@@ -153,6 +153,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
153
153
|
limited_to_orgs: string[] | null;
|
|
154
154
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
155
155
|
name: string;
|
|
156
|
+
rbac_id: string;
|
|
156
157
|
updated_at: string | null;
|
|
157
158
|
user_id: string;
|
|
158
159
|
};
|
|
@@ -166,6 +167,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
166
167
|
limited_to_orgs?: string[] | null;
|
|
167
168
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
168
169
|
name: string;
|
|
170
|
+
rbac_id?: string;
|
|
169
171
|
updated_at?: string | null;
|
|
170
172
|
user_id: string;
|
|
171
173
|
};
|
|
@@ -179,6 +181,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
179
181
|
limited_to_orgs?: string[] | null;
|
|
180
182
|
mode?: Database["public"]["Enums"]["key_mode"];
|
|
181
183
|
name?: string;
|
|
184
|
+
rbac_id?: string;
|
|
182
185
|
updated_at?: string | null;
|
|
183
186
|
user_id?: string;
|
|
184
187
|
};
|
|
@@ -231,6 +234,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
231
234
|
comment: string | null;
|
|
232
235
|
created_at: string | null;
|
|
233
236
|
deleted: boolean;
|
|
237
|
+
deleted_at: string | null;
|
|
234
238
|
external_url: string | null;
|
|
235
239
|
id: number;
|
|
236
240
|
key_id: string | null;
|
|
@@ -254,6 +258,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
254
258
|
comment?: string | null;
|
|
255
259
|
created_at?: string | null;
|
|
256
260
|
deleted?: boolean;
|
|
261
|
+
deleted_at?: string | null;
|
|
257
262
|
external_url?: string | null;
|
|
258
263
|
id?: number;
|
|
259
264
|
key_id?: string | null;
|
|
@@ -277,6 +282,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
277
282
|
comment?: string | null;
|
|
278
283
|
created_at?: string | null;
|
|
279
284
|
deleted?: boolean;
|
|
285
|
+
deleted_at?: string | null;
|
|
280
286
|
external_url?: string | null;
|
|
281
287
|
id?: number;
|
|
282
288
|
key_id?: string | null;
|
|
@@ -357,6 +363,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
357
363
|
};
|
|
358
364
|
apps: {
|
|
359
365
|
Row: {
|
|
366
|
+
allow_device_custom_id: boolean;
|
|
367
|
+
allow_preview: boolean;
|
|
360
368
|
android_store_url: string | null;
|
|
361
369
|
app_id: string;
|
|
362
370
|
channel_device_count: number;
|
|
@@ -369,15 +377,19 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
369
377
|
ios_store_url: string | null;
|
|
370
378
|
last_version: string | null;
|
|
371
379
|
manifest_bundle_count: number;
|
|
372
|
-
need_onboarding: boolean;
|
|
373
380
|
name: string | null;
|
|
381
|
+
need_onboarding: boolean;
|
|
374
382
|
owner_org: string;
|
|
375
383
|
retention: number;
|
|
384
|
+
stats_refresh_requested_at: string | null;
|
|
385
|
+
stats_updated_at: string | null;
|
|
376
386
|
transfer_history: import("./types/supabase.types").Json[] | null;
|
|
377
387
|
updated_at: string | null;
|
|
378
388
|
user_id: string | null;
|
|
379
389
|
};
|
|
380
390
|
Insert: {
|
|
391
|
+
allow_device_custom_id?: boolean;
|
|
392
|
+
allow_preview?: boolean;
|
|
381
393
|
android_store_url?: string | null;
|
|
382
394
|
app_id: string;
|
|
383
395
|
channel_device_count?: number;
|
|
@@ -390,15 +402,19 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
390
402
|
ios_store_url?: string | null;
|
|
391
403
|
last_version?: string | null;
|
|
392
404
|
manifest_bundle_count?: number;
|
|
393
|
-
need_onboarding?: boolean;
|
|
394
405
|
name?: string | null;
|
|
406
|
+
need_onboarding?: boolean;
|
|
395
407
|
owner_org: string;
|
|
396
408
|
retention?: number;
|
|
409
|
+
stats_refresh_requested_at?: string | null;
|
|
410
|
+
stats_updated_at?: string | null;
|
|
397
411
|
transfer_history?: import("./types/supabase.types").Json[] | null;
|
|
398
412
|
updated_at?: string | null;
|
|
399
413
|
user_id?: string | null;
|
|
400
414
|
};
|
|
401
415
|
Update: {
|
|
416
|
+
allow_device_custom_id?: boolean;
|
|
417
|
+
allow_preview?: boolean;
|
|
402
418
|
android_store_url?: string | null;
|
|
403
419
|
app_id?: string;
|
|
404
420
|
channel_device_count?: number;
|
|
@@ -411,10 +427,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
411
427
|
ios_store_url?: string | null;
|
|
412
428
|
last_version?: string | null;
|
|
413
429
|
manifest_bundle_count?: number;
|
|
414
|
-
need_onboarding?: boolean;
|
|
415
430
|
name?: string | null;
|
|
431
|
+
need_onboarding?: boolean;
|
|
416
432
|
owner_org?: string;
|
|
417
433
|
retention?: number;
|
|
434
|
+
stats_refresh_requested_at?: string | null;
|
|
435
|
+
stats_updated_at?: string | null;
|
|
418
436
|
transfer_history?: import("./types/supabase.types").Json[] | null;
|
|
419
437
|
updated_at?: string | null;
|
|
420
438
|
user_id?: string | null;
|
|
@@ -510,6 +528,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
510
528
|
};
|
|
511
529
|
build_logs: {
|
|
512
530
|
Row: {
|
|
531
|
+
app_id: string | null;
|
|
513
532
|
billable_seconds: number;
|
|
514
533
|
build_id: string;
|
|
515
534
|
build_time_unit: number;
|
|
@@ -520,6 +539,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
520
539
|
user_id: string | null;
|
|
521
540
|
};
|
|
522
541
|
Insert: {
|
|
542
|
+
app_id?: string | null;
|
|
523
543
|
billable_seconds: number;
|
|
524
544
|
build_id: string;
|
|
525
545
|
build_time_unit: number;
|
|
@@ -530,6 +550,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
530
550
|
user_id?: string | null;
|
|
531
551
|
};
|
|
532
552
|
Update: {
|
|
553
|
+
app_id?: string | null;
|
|
533
554
|
billable_seconds?: number;
|
|
534
555
|
build_id?: string;
|
|
535
556
|
build_time_unit?: number;
|
|
@@ -540,6 +561,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
540
561
|
user_id?: string | null;
|
|
541
562
|
};
|
|
542
563
|
Relationships: [{
|
|
564
|
+
foreignKeyName: "build_logs_app_id_fkey";
|
|
565
|
+
columns: ["app_id"];
|
|
566
|
+
isOneToOne: false;
|
|
567
|
+
referencedRelation: "apps";
|
|
568
|
+
referencedColumns: ["app_id"];
|
|
569
|
+
}, {
|
|
543
570
|
foreignKeyName: "build_logs_org_id_fkey";
|
|
544
571
|
columns: ["org_id"];
|
|
545
572
|
isOneToOne: false;
|
|
@@ -706,6 +733,48 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
706
733
|
referencedColumns: ["id"];
|
|
707
734
|
}];
|
|
708
735
|
};
|
|
736
|
+
channel_permission_overrides: {
|
|
737
|
+
Row: {
|
|
738
|
+
channel_id: number;
|
|
739
|
+
created_at: string;
|
|
740
|
+
id: string;
|
|
741
|
+
is_allowed: boolean;
|
|
742
|
+
permission_key: string;
|
|
743
|
+
principal_id: string;
|
|
744
|
+
principal_type: string;
|
|
745
|
+
};
|
|
746
|
+
Insert: {
|
|
747
|
+
channel_id: number;
|
|
748
|
+
created_at?: string;
|
|
749
|
+
id?: string;
|
|
750
|
+
is_allowed: boolean;
|
|
751
|
+
permission_key: string;
|
|
752
|
+
principal_id: string;
|
|
753
|
+
principal_type: string;
|
|
754
|
+
};
|
|
755
|
+
Update: {
|
|
756
|
+
channel_id?: number;
|
|
757
|
+
created_at?: string;
|
|
758
|
+
id?: string;
|
|
759
|
+
is_allowed?: boolean;
|
|
760
|
+
permission_key?: string;
|
|
761
|
+
principal_id?: string;
|
|
762
|
+
principal_type?: string;
|
|
763
|
+
};
|
|
764
|
+
Relationships: [{
|
|
765
|
+
foreignKeyName: "channel_permission_overrides_channel_id_fkey";
|
|
766
|
+
columns: ["channel_id"];
|
|
767
|
+
isOneToOne: false;
|
|
768
|
+
referencedRelation: "channels";
|
|
769
|
+
referencedColumns: ["id"];
|
|
770
|
+
}, {
|
|
771
|
+
foreignKeyName: "channel_permission_overrides_permission_key_fkey";
|
|
772
|
+
columns: ["permission_key"];
|
|
773
|
+
isOneToOne: false;
|
|
774
|
+
referencedRelation: "permissions";
|
|
775
|
+
referencedColumns: ["key"];
|
|
776
|
+
}];
|
|
777
|
+
};
|
|
709
778
|
channels: {
|
|
710
779
|
Row: {
|
|
711
780
|
allow_dev: boolean;
|
|
@@ -719,11 +788,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
719
788
|
created_by: string;
|
|
720
789
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
721
790
|
disable_auto_update_under_native: boolean;
|
|
791
|
+
electron: boolean;
|
|
722
792
|
id: number;
|
|
723
793
|
ios: boolean;
|
|
724
794
|
name: string;
|
|
725
795
|
owner_org: string;
|
|
726
796
|
public: boolean;
|
|
797
|
+
rbac_id: string;
|
|
727
798
|
updated_at: string;
|
|
728
799
|
version: number;
|
|
729
800
|
};
|
|
@@ -739,11 +810,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
739
810
|
created_by: string;
|
|
740
811
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
741
812
|
disable_auto_update_under_native?: boolean;
|
|
813
|
+
electron?: boolean;
|
|
742
814
|
id?: number;
|
|
743
815
|
ios?: boolean;
|
|
744
816
|
name: string;
|
|
745
817
|
owner_org: string;
|
|
746
818
|
public?: boolean;
|
|
819
|
+
rbac_id?: string;
|
|
747
820
|
updated_at?: string;
|
|
748
821
|
version: number;
|
|
749
822
|
};
|
|
@@ -759,11 +832,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
759
832
|
created_by?: string;
|
|
760
833
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
761
834
|
disable_auto_update_under_native?: boolean;
|
|
835
|
+
electron?: boolean;
|
|
762
836
|
id?: number;
|
|
763
837
|
ios?: boolean;
|
|
764
838
|
name?: string;
|
|
765
839
|
owner_org?: string;
|
|
766
840
|
public?: boolean;
|
|
841
|
+
rbac_id?: string;
|
|
767
842
|
updated_at?: string;
|
|
768
843
|
version?: number;
|
|
769
844
|
};
|
|
@@ -919,6 +994,42 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
919
994
|
};
|
|
920
995
|
Relationships: [];
|
|
921
996
|
};
|
|
997
|
+
daily_revenue_metrics: {
|
|
998
|
+
Row: {
|
|
999
|
+
churn_mrr: number;
|
|
1000
|
+
contraction_mrr: number;
|
|
1001
|
+
created_at: string;
|
|
1002
|
+
customer_id: string;
|
|
1003
|
+
date_id: string;
|
|
1004
|
+
expansion_mrr: number;
|
|
1005
|
+
new_business_mrr: number;
|
|
1006
|
+
opening_mrr: number;
|
|
1007
|
+
updated_at: string;
|
|
1008
|
+
};
|
|
1009
|
+
Insert: {
|
|
1010
|
+
churn_mrr?: number;
|
|
1011
|
+
contraction_mrr?: number;
|
|
1012
|
+
created_at?: string;
|
|
1013
|
+
customer_id: string;
|
|
1014
|
+
date_id: string;
|
|
1015
|
+
expansion_mrr?: number;
|
|
1016
|
+
new_business_mrr?: number;
|
|
1017
|
+
opening_mrr?: number;
|
|
1018
|
+
updated_at?: string;
|
|
1019
|
+
};
|
|
1020
|
+
Update: {
|
|
1021
|
+
churn_mrr?: number;
|
|
1022
|
+
contraction_mrr?: number;
|
|
1023
|
+
created_at?: string;
|
|
1024
|
+
customer_id?: string;
|
|
1025
|
+
date_id?: string;
|
|
1026
|
+
expansion_mrr?: number;
|
|
1027
|
+
new_business_mrr?: number;
|
|
1028
|
+
opening_mrr?: number;
|
|
1029
|
+
updated_at?: string;
|
|
1030
|
+
};
|
|
1031
|
+
Relationships: [];
|
|
1032
|
+
};
|
|
922
1033
|
daily_storage: {
|
|
923
1034
|
Row: {
|
|
924
1035
|
app_id: string;
|
|
@@ -948,7 +1059,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
948
1059
|
get: number | null;
|
|
949
1060
|
install: number | null;
|
|
950
1061
|
uninstall: number | null;
|
|
951
|
-
version_id: number;
|
|
1062
|
+
version_id: number | null;
|
|
1063
|
+
version_name: string;
|
|
952
1064
|
};
|
|
953
1065
|
Insert: {
|
|
954
1066
|
app_id: string;
|
|
@@ -957,7 +1069,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
957
1069
|
get?: number | null;
|
|
958
1070
|
install?: number | null;
|
|
959
1071
|
uninstall?: number | null;
|
|
960
|
-
version_id
|
|
1072
|
+
version_id?: number | null;
|
|
1073
|
+
version_name: string;
|
|
961
1074
|
};
|
|
962
1075
|
Update: {
|
|
963
1076
|
app_id?: string;
|
|
@@ -966,7 +1079,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
966
1079
|
get?: number | null;
|
|
967
1080
|
install?: number | null;
|
|
968
1081
|
uninstall?: number | null;
|
|
969
|
-
version_id?: number;
|
|
1082
|
+
version_id?: number | null;
|
|
1083
|
+
version_name?: string;
|
|
970
1084
|
};
|
|
971
1085
|
Relationships: [];
|
|
972
1086
|
};
|
|
@@ -1157,18 +1271,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1157
1271
|
Row: {
|
|
1158
1272
|
apps: number;
|
|
1159
1273
|
apps_active: number | null;
|
|
1274
|
+
build_avg_seconds_day_android: number;
|
|
1275
|
+
build_avg_seconds_day_ios: number;
|
|
1276
|
+
build_count_day_android: number;
|
|
1277
|
+
build_count_day_ios: number;
|
|
1278
|
+
build_total_seconds_day_android: number;
|
|
1279
|
+
build_total_seconds_day_ios: number;
|
|
1280
|
+
builds_android: number | null;
|
|
1281
|
+
builds_ios: number | null;
|
|
1282
|
+
builds_last_month: number | null;
|
|
1283
|
+
builds_last_month_android: number | null;
|
|
1284
|
+
builds_last_month_ios: number | null;
|
|
1285
|
+
builds_success_android: number | null;
|
|
1286
|
+
builds_success_ios: number | null;
|
|
1287
|
+
builds_success_total: number | null;
|
|
1288
|
+
builds_total: number | null;
|
|
1160
1289
|
bundle_storage_gb: number;
|
|
1161
1290
|
canceled_orgs: number;
|
|
1291
|
+
churn_revenue: number;
|
|
1162
1292
|
created_at: string | null;
|
|
1163
1293
|
credits_bought: number;
|
|
1164
1294
|
credits_consumed: number;
|
|
1165
1295
|
date_id: string;
|
|
1296
|
+
demo_apps_created: number;
|
|
1166
1297
|
devices_last_month: number | null;
|
|
1298
|
+
devices_last_month_android: number | null;
|
|
1299
|
+
devices_last_month_ios: number | null;
|
|
1167
1300
|
mrr: number;
|
|
1168
1301
|
need_upgrade: number | null;
|
|
1169
1302
|
new_paying_orgs: number;
|
|
1170
1303
|
not_paying: number | null;
|
|
1304
|
+
nrr: number;
|
|
1171
1305
|
onboarded: number | null;
|
|
1306
|
+
org_conversion_rate: number;
|
|
1172
1307
|
paying: number | null;
|
|
1173
1308
|
paying_monthly: number | null;
|
|
1174
1309
|
paying_yearly: number | null;
|
|
@@ -1184,6 +1319,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1184
1319
|
plan_team: number | null;
|
|
1185
1320
|
plan_team_monthly: number;
|
|
1186
1321
|
plan_team_yearly: number;
|
|
1322
|
+
plugin_major_breakdown: import("./types/supabase.types").Json;
|
|
1323
|
+
plugin_version_breakdown: import("./types/supabase.types").Json;
|
|
1187
1324
|
registers_today: number;
|
|
1188
1325
|
revenue_enterprise: number;
|
|
1189
1326
|
revenue_maker: number;
|
|
@@ -1196,24 +1333,46 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1196
1333
|
updates: number;
|
|
1197
1334
|
updates_external: number | null;
|
|
1198
1335
|
updates_last_month: number | null;
|
|
1336
|
+
upgraded_orgs: number;
|
|
1199
1337
|
users: number | null;
|
|
1200
1338
|
users_active: number | null;
|
|
1201
1339
|
};
|
|
1202
1340
|
Insert: {
|
|
1203
1341
|
apps: number;
|
|
1204
1342
|
apps_active?: number | null;
|
|
1343
|
+
build_avg_seconds_day_android?: number;
|
|
1344
|
+
build_avg_seconds_day_ios?: number;
|
|
1345
|
+
build_count_day_android?: number;
|
|
1346
|
+
build_count_day_ios?: number;
|
|
1347
|
+
build_total_seconds_day_android?: number;
|
|
1348
|
+
build_total_seconds_day_ios?: number;
|
|
1349
|
+
builds_android?: number | null;
|
|
1350
|
+
builds_ios?: number | null;
|
|
1351
|
+
builds_last_month?: number | null;
|
|
1352
|
+
builds_last_month_android?: number | null;
|
|
1353
|
+
builds_last_month_ios?: number | null;
|
|
1354
|
+
builds_success_android?: number | null;
|
|
1355
|
+
builds_success_ios?: number | null;
|
|
1356
|
+
builds_success_total?: number | null;
|
|
1357
|
+
builds_total?: number | null;
|
|
1205
1358
|
bundle_storage_gb?: number;
|
|
1206
1359
|
canceled_orgs?: number;
|
|
1360
|
+
churn_revenue?: number;
|
|
1207
1361
|
created_at?: string | null;
|
|
1208
1362
|
credits_bought?: number;
|
|
1209
1363
|
credits_consumed?: number;
|
|
1210
1364
|
date_id: string;
|
|
1365
|
+
demo_apps_created?: number;
|
|
1211
1366
|
devices_last_month?: number | null;
|
|
1367
|
+
devices_last_month_android?: number | null;
|
|
1368
|
+
devices_last_month_ios?: number | null;
|
|
1212
1369
|
mrr?: number;
|
|
1213
1370
|
need_upgrade?: number | null;
|
|
1214
1371
|
new_paying_orgs?: number;
|
|
1215
1372
|
not_paying?: number | null;
|
|
1373
|
+
nrr?: number;
|
|
1216
1374
|
onboarded?: number | null;
|
|
1375
|
+
org_conversion_rate?: number;
|
|
1217
1376
|
paying?: number | null;
|
|
1218
1377
|
paying_monthly?: number | null;
|
|
1219
1378
|
paying_yearly?: number | null;
|
|
@@ -1229,6 +1388,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1229
1388
|
plan_team?: number | null;
|
|
1230
1389
|
plan_team_monthly?: number;
|
|
1231
1390
|
plan_team_yearly?: number;
|
|
1391
|
+
plugin_major_breakdown?: import("./types/supabase.types").Json;
|
|
1392
|
+
plugin_version_breakdown?: import("./types/supabase.types").Json;
|
|
1232
1393
|
registers_today?: number;
|
|
1233
1394
|
revenue_enterprise?: number;
|
|
1234
1395
|
revenue_maker?: number;
|
|
@@ -1241,24 +1402,46 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1241
1402
|
updates: number;
|
|
1242
1403
|
updates_external?: number | null;
|
|
1243
1404
|
updates_last_month?: number | null;
|
|
1405
|
+
upgraded_orgs?: number;
|
|
1244
1406
|
users?: number | null;
|
|
1245
1407
|
users_active?: number | null;
|
|
1246
1408
|
};
|
|
1247
1409
|
Update: {
|
|
1248
1410
|
apps?: number;
|
|
1249
1411
|
apps_active?: number | null;
|
|
1412
|
+
build_avg_seconds_day_android?: number;
|
|
1413
|
+
build_avg_seconds_day_ios?: number;
|
|
1414
|
+
build_count_day_android?: number;
|
|
1415
|
+
build_count_day_ios?: number;
|
|
1416
|
+
build_total_seconds_day_android?: number;
|
|
1417
|
+
build_total_seconds_day_ios?: number;
|
|
1418
|
+
builds_android?: number | null;
|
|
1419
|
+
builds_ios?: number | null;
|
|
1420
|
+
builds_last_month?: number | null;
|
|
1421
|
+
builds_last_month_android?: number | null;
|
|
1422
|
+
builds_last_month_ios?: number | null;
|
|
1423
|
+
builds_success_android?: number | null;
|
|
1424
|
+
builds_success_ios?: number | null;
|
|
1425
|
+
builds_success_total?: number | null;
|
|
1426
|
+
builds_total?: number | null;
|
|
1250
1427
|
bundle_storage_gb?: number;
|
|
1251
1428
|
canceled_orgs?: number;
|
|
1429
|
+
churn_revenue?: number;
|
|
1252
1430
|
created_at?: string | null;
|
|
1253
1431
|
credits_bought?: number;
|
|
1254
1432
|
credits_consumed?: number;
|
|
1255
1433
|
date_id?: string;
|
|
1434
|
+
demo_apps_created?: number;
|
|
1256
1435
|
devices_last_month?: number | null;
|
|
1436
|
+
devices_last_month_android?: number | null;
|
|
1437
|
+
devices_last_month_ios?: number | null;
|
|
1257
1438
|
mrr?: number;
|
|
1258
1439
|
need_upgrade?: number | null;
|
|
1259
1440
|
new_paying_orgs?: number;
|
|
1260
1441
|
not_paying?: number | null;
|
|
1442
|
+
nrr?: number;
|
|
1261
1443
|
onboarded?: number | null;
|
|
1444
|
+
org_conversion_rate?: number;
|
|
1262
1445
|
paying?: number | null;
|
|
1263
1446
|
paying_monthly?: number | null;
|
|
1264
1447
|
paying_yearly?: number | null;
|
|
@@ -1274,6 +1457,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1274
1457
|
plan_team?: number | null;
|
|
1275
1458
|
plan_team_monthly?: number;
|
|
1276
1459
|
plan_team_yearly?: number;
|
|
1460
|
+
plugin_major_breakdown?: import("./types/supabase.types").Json;
|
|
1461
|
+
plugin_version_breakdown?: import("./types/supabase.types").Json;
|
|
1277
1462
|
registers_today?: number;
|
|
1278
1463
|
revenue_enterprise?: number;
|
|
1279
1464
|
revenue_maker?: number;
|
|
@@ -1286,11 +1471,81 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1286
1471
|
updates?: number;
|
|
1287
1472
|
updates_external?: number | null;
|
|
1288
1473
|
updates_last_month?: number | null;
|
|
1474
|
+
upgraded_orgs?: number;
|
|
1289
1475
|
users?: number | null;
|
|
1290
1476
|
users_active?: number | null;
|
|
1291
1477
|
};
|
|
1292
1478
|
Relationships: [];
|
|
1293
1479
|
};
|
|
1480
|
+
group_members: {
|
|
1481
|
+
Row: {
|
|
1482
|
+
added_at: string;
|
|
1483
|
+
added_by: string | null;
|
|
1484
|
+
group_id: string;
|
|
1485
|
+
user_id: string;
|
|
1486
|
+
};
|
|
1487
|
+
Insert: {
|
|
1488
|
+
added_at?: string;
|
|
1489
|
+
added_by?: string | null;
|
|
1490
|
+
group_id: string;
|
|
1491
|
+
user_id: string;
|
|
1492
|
+
};
|
|
1493
|
+
Update: {
|
|
1494
|
+
added_at?: string;
|
|
1495
|
+
added_by?: string | null;
|
|
1496
|
+
group_id?: string;
|
|
1497
|
+
user_id?: string;
|
|
1498
|
+
};
|
|
1499
|
+
Relationships: [{
|
|
1500
|
+
foreignKeyName: "group_members_group_id_fkey";
|
|
1501
|
+
columns: ["group_id"];
|
|
1502
|
+
isOneToOne: false;
|
|
1503
|
+
referencedRelation: "groups";
|
|
1504
|
+
referencedColumns: ["id"];
|
|
1505
|
+
}, {
|
|
1506
|
+
foreignKeyName: "group_members_user_id_fkey";
|
|
1507
|
+
columns: ["user_id"];
|
|
1508
|
+
isOneToOne: false;
|
|
1509
|
+
referencedRelation: "users";
|
|
1510
|
+
referencedColumns: ["id"];
|
|
1511
|
+
}];
|
|
1512
|
+
};
|
|
1513
|
+
groups: {
|
|
1514
|
+
Row: {
|
|
1515
|
+
created_at: string;
|
|
1516
|
+
created_by: string | null;
|
|
1517
|
+
description: string | null;
|
|
1518
|
+
id: string;
|
|
1519
|
+
is_system: boolean;
|
|
1520
|
+
name: string;
|
|
1521
|
+
org_id: string;
|
|
1522
|
+
};
|
|
1523
|
+
Insert: {
|
|
1524
|
+
created_at?: string;
|
|
1525
|
+
created_by?: string | null;
|
|
1526
|
+
description?: string | null;
|
|
1527
|
+
id?: string;
|
|
1528
|
+
is_system?: boolean;
|
|
1529
|
+
name: string;
|
|
1530
|
+
org_id: string;
|
|
1531
|
+
};
|
|
1532
|
+
Update: {
|
|
1533
|
+
created_at?: string;
|
|
1534
|
+
created_by?: string | null;
|
|
1535
|
+
description?: string | null;
|
|
1536
|
+
id?: string;
|
|
1537
|
+
is_system?: boolean;
|
|
1538
|
+
name?: string;
|
|
1539
|
+
org_id?: string;
|
|
1540
|
+
};
|
|
1541
|
+
Relationships: [{
|
|
1542
|
+
foreignKeyName: "groups_org_id_fkey";
|
|
1543
|
+
columns: ["org_id"];
|
|
1544
|
+
isOneToOne: false;
|
|
1545
|
+
referencedRelation: "orgs";
|
|
1546
|
+
referencedColumns: ["id"];
|
|
1547
|
+
}];
|
|
1548
|
+
};
|
|
1294
1549
|
manifest: {
|
|
1295
1550
|
Row: {
|
|
1296
1551
|
app_version_id: number;
|
|
@@ -1360,6 +1615,57 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1360
1615
|
referencedColumns: ["id"];
|
|
1361
1616
|
}];
|
|
1362
1617
|
};
|
|
1618
|
+
org_metrics_cache: {
|
|
1619
|
+
Row: {
|
|
1620
|
+
bandwidth: number;
|
|
1621
|
+
build_time_unit: number;
|
|
1622
|
+
cached_at: string;
|
|
1623
|
+
end_date: string;
|
|
1624
|
+
fail: number;
|
|
1625
|
+
get: number;
|
|
1626
|
+
install: number;
|
|
1627
|
+
mau: number;
|
|
1628
|
+
org_id: string;
|
|
1629
|
+
start_date: string;
|
|
1630
|
+
storage: number;
|
|
1631
|
+
uninstall: number;
|
|
1632
|
+
};
|
|
1633
|
+
Insert: {
|
|
1634
|
+
bandwidth: number;
|
|
1635
|
+
build_time_unit: number;
|
|
1636
|
+
cached_at?: string;
|
|
1637
|
+
end_date: string;
|
|
1638
|
+
fail: number;
|
|
1639
|
+
get: number;
|
|
1640
|
+
install: number;
|
|
1641
|
+
mau: number;
|
|
1642
|
+
org_id: string;
|
|
1643
|
+
start_date: string;
|
|
1644
|
+
storage: number;
|
|
1645
|
+
uninstall: number;
|
|
1646
|
+
};
|
|
1647
|
+
Update: {
|
|
1648
|
+
bandwidth?: number;
|
|
1649
|
+
build_time_unit?: number;
|
|
1650
|
+
cached_at?: string;
|
|
1651
|
+
end_date?: string;
|
|
1652
|
+
fail?: number;
|
|
1653
|
+
get?: number;
|
|
1654
|
+
install?: number;
|
|
1655
|
+
mau?: number;
|
|
1656
|
+
org_id?: string;
|
|
1657
|
+
start_date?: string;
|
|
1658
|
+
storage?: number;
|
|
1659
|
+
uninstall?: number;
|
|
1660
|
+
};
|
|
1661
|
+
Relationships: [{
|
|
1662
|
+
foreignKeyName: "org_metrics_cache_org_id_fkey";
|
|
1663
|
+
columns: ["org_id"];
|
|
1664
|
+
isOneToOne: true;
|
|
1665
|
+
referencedRelation: "orgs";
|
|
1666
|
+
referencedColumns: ["id"];
|
|
1667
|
+
}];
|
|
1668
|
+
};
|
|
1363
1669
|
org_users: {
|
|
1364
1670
|
Row: {
|
|
1365
1671
|
app_id: string | null;
|
|
@@ -1367,6 +1673,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1367
1673
|
created_at: string | null;
|
|
1368
1674
|
id: number;
|
|
1369
1675
|
org_id: string;
|
|
1676
|
+
rbac_role_name: string | null;
|
|
1370
1677
|
updated_at: string | null;
|
|
1371
1678
|
user_id: string;
|
|
1372
1679
|
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1377,6 +1684,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1377
1684
|
created_at?: string | null;
|
|
1378
1685
|
id?: number;
|
|
1379
1686
|
org_id: string;
|
|
1687
|
+
rbac_role_name?: string | null;
|
|
1380
1688
|
updated_at?: string | null;
|
|
1381
1689
|
user_id: string;
|
|
1382
1690
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1387,6 +1695,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1387
1695
|
created_at?: string | null;
|
|
1388
1696
|
id?: number;
|
|
1389
1697
|
org_id?: string;
|
|
1698
|
+
rbac_role_name?: string | null;
|
|
1390
1699
|
updated_at?: string | null;
|
|
1391
1700
|
user_id?: string;
|
|
1392
1701
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1423,8 +1732,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1423
1732
|
created_by: string;
|
|
1424
1733
|
customer_id: string | null;
|
|
1425
1734
|
email_preferences: import("./types/supabase.types").Json;
|
|
1735
|
+
enforce_encrypted_bundles: boolean;
|
|
1426
1736
|
enforce_hashed_api_keys: boolean;
|
|
1427
1737
|
enforcing_2fa: boolean;
|
|
1738
|
+
has_usage_credits: boolean;
|
|
1428
1739
|
id: string;
|
|
1429
1740
|
last_stats_updated_at: string | null;
|
|
1430
1741
|
logo: string | null;
|
|
@@ -1433,16 +1744,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1433
1744
|
name: string;
|
|
1434
1745
|
password_policy_config: import("./types/supabase.types").Json | null;
|
|
1435
1746
|
require_apikey_expiration: boolean;
|
|
1747
|
+
required_encryption_key: string | null;
|
|
1748
|
+
stats_refresh_requested_at: string | null;
|
|
1436
1749
|
stats_updated_at: string | null;
|
|
1437
1750
|
updated_at: string | null;
|
|
1751
|
+
use_new_rbac: boolean;
|
|
1752
|
+
website: string | null;
|
|
1438
1753
|
};
|
|
1439
1754
|
Insert: {
|
|
1440
1755
|
created_at?: string | null;
|
|
1441
1756
|
created_by: string;
|
|
1442
1757
|
customer_id?: string | null;
|
|
1443
1758
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1759
|
+
enforce_encrypted_bundles?: boolean;
|
|
1444
1760
|
enforce_hashed_api_keys?: boolean;
|
|
1445
1761
|
enforcing_2fa?: boolean;
|
|
1762
|
+
has_usage_credits?: boolean;
|
|
1446
1763
|
id?: string;
|
|
1447
1764
|
last_stats_updated_at?: string | null;
|
|
1448
1765
|
logo?: string | null;
|
|
@@ -1451,16 +1768,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1451
1768
|
name: string;
|
|
1452
1769
|
password_policy_config?: import("./types/supabase.types").Json | null;
|
|
1453
1770
|
require_apikey_expiration?: boolean;
|
|
1771
|
+
required_encryption_key?: string | null;
|
|
1772
|
+
stats_refresh_requested_at?: string | null;
|
|
1454
1773
|
stats_updated_at?: string | null;
|
|
1455
1774
|
updated_at?: string | null;
|
|
1775
|
+
use_new_rbac?: boolean;
|
|
1776
|
+
website?: string | null;
|
|
1456
1777
|
};
|
|
1457
1778
|
Update: {
|
|
1458
1779
|
created_at?: string | null;
|
|
1459
1780
|
created_by?: string;
|
|
1460
1781
|
customer_id?: string | null;
|
|
1461
1782
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1783
|
+
enforce_encrypted_bundles?: boolean;
|
|
1462
1784
|
enforce_hashed_api_keys?: boolean;
|
|
1463
1785
|
enforcing_2fa?: boolean;
|
|
1786
|
+
has_usage_credits?: boolean;
|
|
1464
1787
|
id?: string;
|
|
1465
1788
|
last_stats_updated_at?: string | null;
|
|
1466
1789
|
logo?: string | null;
|
|
@@ -1469,8 +1792,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1469
1792
|
name?: string;
|
|
1470
1793
|
password_policy_config?: import("./types/supabase.types").Json | null;
|
|
1471
1794
|
require_apikey_expiration?: boolean;
|
|
1795
|
+
required_encryption_key?: string | null;
|
|
1796
|
+
stats_refresh_requested_at?: string | null;
|
|
1472
1797
|
stats_updated_at?: string | null;
|
|
1473
1798
|
updated_at?: string | null;
|
|
1799
|
+
use_new_rbac?: boolean;
|
|
1800
|
+
website?: string | null;
|
|
1474
1801
|
};
|
|
1475
1802
|
Relationships: [{
|
|
1476
1803
|
foreignKeyName: "orgs_created_by_fkey";
|
|
@@ -1486,6 +1813,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1486
1813
|
referencedColumns: ["customer_id"];
|
|
1487
1814
|
}];
|
|
1488
1815
|
};
|
|
1816
|
+
permissions: {
|
|
1817
|
+
Row: {
|
|
1818
|
+
bundle_id: number | null;
|
|
1819
|
+
created_at: string;
|
|
1820
|
+
description: string | null;
|
|
1821
|
+
id: string;
|
|
1822
|
+
key: string;
|
|
1823
|
+
scope_type: string;
|
|
1824
|
+
};
|
|
1825
|
+
Insert: {
|
|
1826
|
+
bundle_id?: number | null;
|
|
1827
|
+
created_at?: string;
|
|
1828
|
+
description?: string | null;
|
|
1829
|
+
id?: string;
|
|
1830
|
+
key: string;
|
|
1831
|
+
scope_type: string;
|
|
1832
|
+
};
|
|
1833
|
+
Update: {
|
|
1834
|
+
bundle_id?: number | null;
|
|
1835
|
+
created_at?: string;
|
|
1836
|
+
description?: string | null;
|
|
1837
|
+
id?: string;
|
|
1838
|
+
key?: string;
|
|
1839
|
+
scope_type?: string;
|
|
1840
|
+
};
|
|
1841
|
+
Relationships: [{
|
|
1842
|
+
foreignKeyName: "permissions_bundle_id_fkey";
|
|
1843
|
+
columns: ["bundle_id"];
|
|
1844
|
+
isOneToOne: false;
|
|
1845
|
+
referencedRelation: "app_versions";
|
|
1846
|
+
referencedColumns: ["id"];
|
|
1847
|
+
}];
|
|
1848
|
+
};
|
|
1489
1849
|
plans: {
|
|
1490
1850
|
Row: {
|
|
1491
1851
|
bandwidth: number;
|
|
@@ -1543,89 +1903,335 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1543
1903
|
};
|
|
1544
1904
|
Relationships: [];
|
|
1545
1905
|
};
|
|
1546
|
-
|
|
1906
|
+
processed_stripe_events: {
|
|
1547
1907
|
Row: {
|
|
1548
|
-
action: Database["public"]["Enums"]["stats_action"];
|
|
1549
|
-
app_id: string;
|
|
1550
1908
|
created_at: string;
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1909
|
+
customer_id: string;
|
|
1910
|
+
date_id: string;
|
|
1911
|
+
event_id: string;
|
|
1554
1912
|
};
|
|
1555
1913
|
Insert: {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
id?: never;
|
|
1561
|
-
version_name?: string;
|
|
1914
|
+
created_at?: string;
|
|
1915
|
+
customer_id: string;
|
|
1916
|
+
date_id: string;
|
|
1917
|
+
event_id: string;
|
|
1562
1918
|
};
|
|
1563
1919
|
Update: {
|
|
1564
|
-
action?: Database["public"]["Enums"]["stats_action"];
|
|
1565
|
-
app_id?: string;
|
|
1566
1920
|
created_at?: string;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1921
|
+
customer_id?: string;
|
|
1922
|
+
date_id?: string;
|
|
1923
|
+
event_id?: string;
|
|
1570
1924
|
};
|
|
1571
1925
|
Relationships: [];
|
|
1572
1926
|
};
|
|
1573
|
-
|
|
1927
|
+
role_bindings: {
|
|
1574
1928
|
Row: {
|
|
1575
|
-
app_id: string;
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1929
|
+
app_id: string | null;
|
|
1930
|
+
bundle_id: number | null;
|
|
1931
|
+
channel_id: string | null;
|
|
1932
|
+
expires_at: string | null;
|
|
1933
|
+
granted_at: string;
|
|
1934
|
+
granted_by: string;
|
|
1935
|
+
id: string;
|
|
1936
|
+
is_direct: boolean;
|
|
1937
|
+
org_id: string | null;
|
|
1938
|
+
principal_id: string;
|
|
1939
|
+
principal_type: string;
|
|
1940
|
+
reason: string | null;
|
|
1941
|
+
role_id: string;
|
|
1942
|
+
scope_type: string;
|
|
1580
1943
|
};
|
|
1581
1944
|
Insert: {
|
|
1582
|
-
app_id
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1945
|
+
app_id?: string | null;
|
|
1946
|
+
bundle_id?: number | null;
|
|
1947
|
+
channel_id?: string | null;
|
|
1948
|
+
expires_at?: string | null;
|
|
1949
|
+
granted_at?: string;
|
|
1950
|
+
granted_by: string;
|
|
1951
|
+
id?: string;
|
|
1952
|
+
is_direct?: boolean;
|
|
1953
|
+
org_id?: string | null;
|
|
1954
|
+
principal_id: string;
|
|
1955
|
+
principal_type: string;
|
|
1956
|
+
reason?: string | null;
|
|
1957
|
+
role_id: string;
|
|
1958
|
+
scope_type: string;
|
|
1587
1959
|
};
|
|
1588
1960
|
Update: {
|
|
1589
|
-
app_id?: string;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1961
|
+
app_id?: string | null;
|
|
1962
|
+
bundle_id?: number | null;
|
|
1963
|
+
channel_id?: string | null;
|
|
1964
|
+
expires_at?: string | null;
|
|
1965
|
+
granted_at?: string;
|
|
1966
|
+
granted_by?: string;
|
|
1967
|
+
id?: string;
|
|
1968
|
+
is_direct?: boolean;
|
|
1969
|
+
org_id?: string | null;
|
|
1970
|
+
principal_id?: string;
|
|
1971
|
+
principal_type?: string;
|
|
1972
|
+
reason?: string | null;
|
|
1973
|
+
role_id?: string;
|
|
1974
|
+
scope_type?: string;
|
|
1594
1975
|
};
|
|
1595
|
-
Relationships: [
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1976
|
+
Relationships: [{
|
|
1977
|
+
foreignKeyName: "role_bindings_app_id_fkey";
|
|
1978
|
+
columns: ["app_id"];
|
|
1979
|
+
isOneToOne: false;
|
|
1980
|
+
referencedRelation: "apps";
|
|
1981
|
+
referencedColumns: ["id"];
|
|
1982
|
+
}, {
|
|
1983
|
+
foreignKeyName: "role_bindings_bundle_id_fkey";
|
|
1984
|
+
columns: ["bundle_id"];
|
|
1985
|
+
isOneToOne: false;
|
|
1986
|
+
referencedRelation: "app_versions";
|
|
1987
|
+
referencedColumns: ["id"];
|
|
1988
|
+
}, {
|
|
1989
|
+
foreignKeyName: "role_bindings_channel_id_fkey";
|
|
1990
|
+
columns: ["channel_id"];
|
|
1991
|
+
isOneToOne: false;
|
|
1992
|
+
referencedRelation: "channels";
|
|
1993
|
+
referencedColumns: ["rbac_id"];
|
|
1994
|
+
}, {
|
|
1995
|
+
foreignKeyName: "role_bindings_org_id_fkey";
|
|
1996
|
+
columns: ["org_id"];
|
|
1997
|
+
isOneToOne: false;
|
|
1998
|
+
referencedRelation: "orgs";
|
|
1999
|
+
referencedColumns: ["id"];
|
|
2000
|
+
}, {
|
|
2001
|
+
foreignKeyName: "role_bindings_role_id_fkey";
|
|
2002
|
+
columns: ["role_id"];
|
|
2003
|
+
isOneToOne: false;
|
|
2004
|
+
referencedRelation: "roles";
|
|
2005
|
+
referencedColumns: ["id"];
|
|
2006
|
+
}];
|
|
2007
|
+
};
|
|
2008
|
+
role_hierarchy: {
|
|
2009
|
+
Row: {
|
|
2010
|
+
child_role_id: string;
|
|
2011
|
+
parent_role_id: string;
|
|
2012
|
+
};
|
|
2013
|
+
Insert: {
|
|
2014
|
+
child_role_id: string;
|
|
2015
|
+
parent_role_id: string;
|
|
2016
|
+
};
|
|
2017
|
+
Update: {
|
|
2018
|
+
child_role_id?: string;
|
|
2019
|
+
parent_role_id?: string;
|
|
2020
|
+
};
|
|
2021
|
+
Relationships: [{
|
|
2022
|
+
foreignKeyName: "role_hierarchy_child_role_id_fkey";
|
|
2023
|
+
columns: ["child_role_id"];
|
|
2024
|
+
isOneToOne: false;
|
|
2025
|
+
referencedRelation: "roles";
|
|
2026
|
+
referencedColumns: ["id"];
|
|
2027
|
+
}, {
|
|
2028
|
+
foreignKeyName: "role_hierarchy_parent_role_id_fkey";
|
|
2029
|
+
columns: ["parent_role_id"];
|
|
2030
|
+
isOneToOne: false;
|
|
2031
|
+
referencedRelation: "roles";
|
|
2032
|
+
referencedColumns: ["id"];
|
|
2033
|
+
}];
|
|
2034
|
+
};
|
|
2035
|
+
role_permissions: {
|
|
2036
|
+
Row: {
|
|
2037
|
+
permission_id: string;
|
|
2038
|
+
role_id: string;
|
|
2039
|
+
};
|
|
2040
|
+
Insert: {
|
|
2041
|
+
permission_id: string;
|
|
2042
|
+
role_id: string;
|
|
2043
|
+
};
|
|
2044
|
+
Update: {
|
|
2045
|
+
permission_id?: string;
|
|
2046
|
+
role_id?: string;
|
|
2047
|
+
};
|
|
2048
|
+
Relationships: [{
|
|
2049
|
+
foreignKeyName: "role_permissions_permission_id_fkey";
|
|
2050
|
+
columns: ["permission_id"];
|
|
2051
|
+
isOneToOne: false;
|
|
2052
|
+
referencedRelation: "permissions";
|
|
2053
|
+
referencedColumns: ["id"];
|
|
2054
|
+
}, {
|
|
2055
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
2056
|
+
columns: ["role_id"];
|
|
2057
|
+
isOneToOne: false;
|
|
2058
|
+
referencedRelation: "roles";
|
|
2059
|
+
referencedColumns: ["id"];
|
|
2060
|
+
}];
|
|
2061
|
+
};
|
|
2062
|
+
roles: {
|
|
2063
|
+
Row: {
|
|
2064
|
+
created_at: string;
|
|
2065
|
+
created_by: string | null;
|
|
2066
|
+
description: string | null;
|
|
2067
|
+
id: string;
|
|
2068
|
+
is_assignable: boolean;
|
|
2069
|
+
name: string;
|
|
2070
|
+
priority_rank: number;
|
|
2071
|
+
scope_type: string;
|
|
2072
|
+
};
|
|
2073
|
+
Insert: {
|
|
2074
|
+
created_at?: string;
|
|
2075
|
+
created_by?: string | null;
|
|
2076
|
+
description?: string | null;
|
|
2077
|
+
id?: string;
|
|
2078
|
+
is_assignable?: boolean;
|
|
2079
|
+
name: string;
|
|
2080
|
+
priority_rank?: number;
|
|
2081
|
+
scope_type: string;
|
|
2082
|
+
};
|
|
2083
|
+
Update: {
|
|
2084
|
+
created_at?: string;
|
|
2085
|
+
created_by?: string | null;
|
|
2086
|
+
description?: string | null;
|
|
2087
|
+
id?: string;
|
|
2088
|
+
is_assignable?: boolean;
|
|
2089
|
+
name?: string;
|
|
2090
|
+
priority_rank?: number;
|
|
2091
|
+
scope_type?: string;
|
|
2092
|
+
};
|
|
2093
|
+
Relationships: [];
|
|
2094
|
+
};
|
|
2095
|
+
sso_providers: {
|
|
2096
|
+
Row: {
|
|
2097
|
+
attribute_mapping: import("./types/supabase.types").Json | null;
|
|
2098
|
+
created_at: string;
|
|
2099
|
+
dns_verification_token: string;
|
|
2100
|
+
dns_verified_at: string | null;
|
|
2101
|
+
domain: string;
|
|
2102
|
+
enforce_sso: boolean;
|
|
2103
|
+
id: string;
|
|
2104
|
+
metadata_url: string | null;
|
|
2105
|
+
org_id: string;
|
|
2106
|
+
provider_id: string | null;
|
|
2107
|
+
status: string;
|
|
2108
|
+
updated_at: string;
|
|
2109
|
+
};
|
|
2110
|
+
Insert: {
|
|
2111
|
+
attribute_mapping?: import("./types/supabase.types").Json | null;
|
|
2112
|
+
created_at?: string;
|
|
2113
|
+
dns_verification_token: string;
|
|
2114
|
+
dns_verified_at?: string | null;
|
|
2115
|
+
domain: string;
|
|
2116
|
+
enforce_sso?: boolean;
|
|
2117
|
+
id?: string;
|
|
2118
|
+
metadata_url?: string | null;
|
|
2119
|
+
org_id: string;
|
|
2120
|
+
provider_id?: string | null;
|
|
2121
|
+
status?: string;
|
|
2122
|
+
updated_at?: string;
|
|
2123
|
+
};
|
|
2124
|
+
Update: {
|
|
2125
|
+
attribute_mapping?: import("./types/supabase.types").Json | null;
|
|
2126
|
+
created_at?: string;
|
|
2127
|
+
dns_verification_token?: string;
|
|
2128
|
+
dns_verified_at?: string | null;
|
|
2129
|
+
domain?: string;
|
|
2130
|
+
enforce_sso?: boolean;
|
|
2131
|
+
id?: string;
|
|
2132
|
+
metadata_url?: string | null;
|
|
2133
|
+
org_id?: string;
|
|
2134
|
+
provider_id?: string | null;
|
|
2135
|
+
status?: string;
|
|
2136
|
+
updated_at?: string;
|
|
2137
|
+
};
|
|
2138
|
+
Relationships: [{
|
|
2139
|
+
foreignKeyName: "sso_providers_org_id_fkey";
|
|
2140
|
+
columns: ["org_id"];
|
|
2141
|
+
isOneToOne: false;
|
|
2142
|
+
referencedRelation: "orgs";
|
|
2143
|
+
referencedColumns: ["id"];
|
|
2144
|
+
}];
|
|
2145
|
+
};
|
|
2146
|
+
stats: {
|
|
2147
|
+
Row: {
|
|
2148
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2149
|
+
app_id: string;
|
|
2150
|
+
created_at: string;
|
|
2151
|
+
device_id: string;
|
|
2152
|
+
id: number;
|
|
2153
|
+
version_name: string;
|
|
2154
|
+
};
|
|
2155
|
+
Insert: {
|
|
2156
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2157
|
+
app_id: string;
|
|
2158
|
+
created_at: string;
|
|
2159
|
+
device_id: string;
|
|
2160
|
+
id?: never;
|
|
2161
|
+
version_name?: string;
|
|
2162
|
+
};
|
|
2163
|
+
Update: {
|
|
2164
|
+
action?: Database["public"]["Enums"]["stats_action"];
|
|
2165
|
+
app_id?: string;
|
|
2166
|
+
created_at?: string;
|
|
2167
|
+
device_id?: string;
|
|
2168
|
+
id?: never;
|
|
2169
|
+
version_name?: string;
|
|
2170
|
+
};
|
|
2171
|
+
Relationships: [];
|
|
2172
|
+
};
|
|
2173
|
+
storage_usage: {
|
|
2174
|
+
Row: {
|
|
2175
|
+
app_id: string;
|
|
2176
|
+
device_id: string;
|
|
2177
|
+
file_size: number;
|
|
2178
|
+
id: number;
|
|
2179
|
+
timestamp: string;
|
|
2180
|
+
};
|
|
2181
|
+
Insert: {
|
|
2182
|
+
app_id: string;
|
|
2183
|
+
device_id: string;
|
|
2184
|
+
file_size: number;
|
|
2185
|
+
id?: number;
|
|
2186
|
+
timestamp?: string;
|
|
2187
|
+
};
|
|
2188
|
+
Update: {
|
|
2189
|
+
app_id?: string;
|
|
2190
|
+
device_id?: string;
|
|
2191
|
+
file_size?: number;
|
|
2192
|
+
id?: number;
|
|
2193
|
+
timestamp?: string;
|
|
2194
|
+
};
|
|
2195
|
+
Relationships: [];
|
|
2196
|
+
};
|
|
2197
|
+
stripe_info: {
|
|
2198
|
+
Row: {
|
|
2199
|
+
bandwidth_exceeded: boolean | null;
|
|
2200
|
+
build_time_exceeded: boolean | null;
|
|
2201
|
+
canceled_at: string | null;
|
|
2202
|
+
created_at: string;
|
|
2203
|
+
customer_country: string | null;
|
|
2204
|
+
customer_id: string;
|
|
2205
|
+
id: number;
|
|
2206
|
+
is_good_plan: boolean | null;
|
|
2207
|
+
last_stripe_event_at: string | null;
|
|
2208
|
+
mau_exceeded: boolean | null;
|
|
2209
|
+
paid_at: string | null;
|
|
2210
|
+
plan_calculated_at: string | null;
|
|
2211
|
+
plan_usage: number | null;
|
|
2212
|
+
price_id: string | null;
|
|
1610
2213
|
product_id: string;
|
|
1611
2214
|
status: Database["public"]["Enums"]["stripe_status"] | null;
|
|
1612
2215
|
storage_exceeded: boolean | null;
|
|
1613
2216
|
subscription_anchor_end: string;
|
|
1614
2217
|
subscription_anchor_start: string;
|
|
1615
2218
|
subscription_id: string | null;
|
|
1616
|
-
subscription_metered: import("./types/supabase.types").Json;
|
|
1617
2219
|
trial_at: string;
|
|
1618
2220
|
updated_at: string;
|
|
2221
|
+
upgraded_at: string | null;
|
|
1619
2222
|
};
|
|
1620
2223
|
Insert: {
|
|
1621
2224
|
bandwidth_exceeded?: boolean | null;
|
|
1622
2225
|
build_time_exceeded?: boolean | null;
|
|
1623
2226
|
canceled_at?: string | null;
|
|
1624
2227
|
created_at?: string;
|
|
2228
|
+
customer_country?: string | null;
|
|
1625
2229
|
customer_id: string;
|
|
1626
2230
|
id?: number;
|
|
1627
2231
|
is_good_plan?: boolean | null;
|
|
2232
|
+
last_stripe_event_at?: string | null;
|
|
1628
2233
|
mau_exceeded?: boolean | null;
|
|
2234
|
+
paid_at?: string | null;
|
|
1629
2235
|
plan_calculated_at?: string | null;
|
|
1630
2236
|
plan_usage?: number | null;
|
|
1631
2237
|
price_id?: string | null;
|
|
@@ -1635,19 +2241,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1635
2241
|
subscription_anchor_end?: string;
|
|
1636
2242
|
subscription_anchor_start?: string;
|
|
1637
2243
|
subscription_id?: string | null;
|
|
1638
|
-
subscription_metered?: import("./types/supabase.types").Json;
|
|
1639
2244
|
trial_at?: string;
|
|
1640
2245
|
updated_at?: string;
|
|
2246
|
+
upgraded_at?: string | null;
|
|
1641
2247
|
};
|
|
1642
2248
|
Update: {
|
|
1643
2249
|
bandwidth_exceeded?: boolean | null;
|
|
1644
2250
|
build_time_exceeded?: boolean | null;
|
|
1645
2251
|
canceled_at?: string | null;
|
|
1646
2252
|
created_at?: string;
|
|
2253
|
+
customer_country?: string | null;
|
|
1647
2254
|
customer_id?: string;
|
|
1648
2255
|
id?: number;
|
|
1649
2256
|
is_good_plan?: boolean | null;
|
|
2257
|
+
last_stripe_event_at?: string | null;
|
|
1650
2258
|
mau_exceeded?: boolean | null;
|
|
2259
|
+
paid_at?: string | null;
|
|
1651
2260
|
plan_calculated_at?: string | null;
|
|
1652
2261
|
plan_usage?: number | null;
|
|
1653
2262
|
price_id?: string | null;
|
|
@@ -1657,9 +2266,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1657
2266
|
subscription_anchor_end?: string;
|
|
1658
2267
|
subscription_anchor_start?: string;
|
|
1659
2268
|
subscription_id?: string | null;
|
|
1660
|
-
subscription_metered?: import("./types/supabase.types").Json;
|
|
1661
2269
|
trial_at?: string;
|
|
1662
2270
|
updated_at?: string;
|
|
2271
|
+
upgraded_at?: string | null;
|
|
1663
2272
|
};
|
|
1664
2273
|
Relationships: [{
|
|
1665
2274
|
foreignKeyName: "stripe_info_product_id_fkey";
|
|
@@ -1680,6 +2289,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1680
2289
|
invite_magic_string: string;
|
|
1681
2290
|
last_name: string;
|
|
1682
2291
|
org_id: string;
|
|
2292
|
+
rbac_role_name: string | null;
|
|
1683
2293
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1684
2294
|
updated_at: string;
|
|
1685
2295
|
};
|
|
@@ -1693,6 +2303,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1693
2303
|
invite_magic_string?: string;
|
|
1694
2304
|
last_name: string;
|
|
1695
2305
|
org_id: string;
|
|
2306
|
+
rbac_role_name?: string | null;
|
|
1696
2307
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1697
2308
|
updated_at?: string;
|
|
1698
2309
|
};
|
|
@@ -1706,6 +2317,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1706
2317
|
invite_magic_string?: string;
|
|
1707
2318
|
last_name?: string;
|
|
1708
2319
|
org_id?: string;
|
|
2320
|
+
rbac_role_name?: string | null;
|
|
1709
2321
|
role?: Database["public"]["Enums"]["user_min_right"];
|
|
1710
2322
|
updated_at?: string;
|
|
1711
2323
|
};
|
|
@@ -1975,11 +2587,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1975
2587
|
referencedColumns: ["id"];
|
|
1976
2588
|
}];
|
|
1977
2589
|
};
|
|
2590
|
+
user_security: {
|
|
2591
|
+
Row: {
|
|
2592
|
+
created_at: string;
|
|
2593
|
+
email_otp_verified_at: string | null;
|
|
2594
|
+
updated_at: string;
|
|
2595
|
+
user_id: string;
|
|
2596
|
+
};
|
|
2597
|
+
Insert: {
|
|
2598
|
+
created_at?: string;
|
|
2599
|
+
email_otp_verified_at?: string | null;
|
|
2600
|
+
updated_at?: string;
|
|
2601
|
+
user_id: string;
|
|
2602
|
+
};
|
|
2603
|
+
Update: {
|
|
2604
|
+
created_at?: string;
|
|
2605
|
+
email_otp_verified_at?: string | null;
|
|
2606
|
+
updated_at?: string;
|
|
2607
|
+
user_id?: string;
|
|
2608
|
+
};
|
|
2609
|
+
Relationships: [];
|
|
2610
|
+
};
|
|
1978
2611
|
users: {
|
|
1979
2612
|
Row: {
|
|
1980
2613
|
ban_time: string | null;
|
|
1981
2614
|
country: string | null;
|
|
1982
2615
|
created_at: string | null;
|
|
2616
|
+
created_via_invite: boolean;
|
|
1983
2617
|
email: string;
|
|
1984
2618
|
email_preferences: import("./types/supabase.types").Json;
|
|
1985
2619
|
enable_notifications: boolean;
|
|
@@ -1994,6 +2628,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1994
2628
|
ban_time?: string | null;
|
|
1995
2629
|
country?: string | null;
|
|
1996
2630
|
created_at?: string | null;
|
|
2631
|
+
created_via_invite?: boolean;
|
|
1997
2632
|
email: string;
|
|
1998
2633
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1999
2634
|
enable_notifications?: boolean;
|
|
@@ -2008,6 +2643,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2008
2643
|
ban_time?: string | null;
|
|
2009
2644
|
country?: string | null;
|
|
2010
2645
|
created_at?: string | null;
|
|
2646
|
+
created_via_invite?: boolean;
|
|
2011
2647
|
email?: string;
|
|
2012
2648
|
email_preferences?: import("./types/supabase.types").Json;
|
|
2013
2649
|
enable_notifications?: boolean;
|
|
@@ -2046,19 +2682,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2046
2682
|
action: Database["public"]["Enums"]["version_action"];
|
|
2047
2683
|
app_id: string;
|
|
2048
2684
|
timestamp: string;
|
|
2049
|
-
version_id: number;
|
|
2685
|
+
version_id: number | null;
|
|
2686
|
+
version_name: string | null;
|
|
2050
2687
|
};
|
|
2051
2688
|
Insert: {
|
|
2052
2689
|
action: Database["public"]["Enums"]["version_action"];
|
|
2053
2690
|
app_id: string;
|
|
2054
2691
|
timestamp?: string;
|
|
2055
|
-
version_id
|
|
2692
|
+
version_id?: number | null;
|
|
2693
|
+
version_name?: string | null;
|
|
2056
2694
|
};
|
|
2057
2695
|
Update: {
|
|
2058
2696
|
action?: Database["public"]["Enums"]["version_action"];
|
|
2059
2697
|
app_id?: string;
|
|
2060
2698
|
timestamp?: string;
|
|
2061
|
-
version_id?: number;
|
|
2699
|
+
version_id?: number | null;
|
|
2700
|
+
version_name?: string | null;
|
|
2062
2701
|
};
|
|
2063
2702
|
Relationships: [];
|
|
2064
2703
|
};
|
|
@@ -2247,6 +2886,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2247
2886
|
overage_unpaid: number;
|
|
2248
2887
|
}[];
|
|
2249
2888
|
};
|
|
2889
|
+
audit_logs_allowed_orgs: {
|
|
2890
|
+
Args: never;
|
|
2891
|
+
Returns: string[];
|
|
2892
|
+
};
|
|
2250
2893
|
calculate_credit_cost: {
|
|
2251
2894
|
Args: {
|
|
2252
2895
|
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
@@ -2258,6 +2901,49 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2258
2901
|
credits_required: number;
|
|
2259
2902
|
}[];
|
|
2260
2903
|
};
|
|
2904
|
+
calculate_org_metrics_cache_entry: {
|
|
2905
|
+
Args: {
|
|
2906
|
+
p_end_date: string;
|
|
2907
|
+
p_org_id: string;
|
|
2908
|
+
p_start_date: string;
|
|
2909
|
+
};
|
|
2910
|
+
Returns: {
|
|
2911
|
+
bandwidth: number;
|
|
2912
|
+
build_time_unit: number;
|
|
2913
|
+
cached_at: string;
|
|
2914
|
+
end_date: string;
|
|
2915
|
+
fail: number;
|
|
2916
|
+
get: number;
|
|
2917
|
+
install: number;
|
|
2918
|
+
mau: number;
|
|
2919
|
+
org_id: string;
|
|
2920
|
+
start_date: string;
|
|
2921
|
+
storage: number;
|
|
2922
|
+
uninstall: number;
|
|
2923
|
+
};
|
|
2924
|
+
SetofOptions: {
|
|
2925
|
+
from: "*";
|
|
2926
|
+
to: "org_metrics_cache";
|
|
2927
|
+
isOneToOne: true;
|
|
2928
|
+
isSetofReturn: false;
|
|
2929
|
+
};
|
|
2930
|
+
};
|
|
2931
|
+
check_apikey_hashed_key_enforcement: {
|
|
2932
|
+
Args: {
|
|
2933
|
+
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
2934
|
+
};
|
|
2935
|
+
Returns: boolean;
|
|
2936
|
+
};
|
|
2937
|
+
check_domain_sso: {
|
|
2938
|
+
Args: {
|
|
2939
|
+
p_domain: string;
|
|
2940
|
+
};
|
|
2941
|
+
Returns: {
|
|
2942
|
+
has_sso: boolean;
|
|
2943
|
+
org_id: string;
|
|
2944
|
+
provider_id: string;
|
|
2945
|
+
}[];
|
|
2946
|
+
};
|
|
2261
2947
|
check_min_rights: {
|
|
2262
2948
|
Args: {
|
|
2263
2949
|
app_id: string;
|
|
@@ -2276,6 +2962,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2276
2962
|
};
|
|
2277
2963
|
Returns: boolean;
|
|
2278
2964
|
};
|
|
2965
|
+
check_min_rights_legacy: {
|
|
2966
|
+
Args: {
|
|
2967
|
+
app_id: string;
|
|
2968
|
+
channel_id: number;
|
|
2969
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2970
|
+
org_id: string;
|
|
2971
|
+
user_id: string;
|
|
2972
|
+
};
|
|
2973
|
+
Returns: boolean;
|
|
2974
|
+
};
|
|
2975
|
+
check_min_rights_legacy_no_password_policy: {
|
|
2976
|
+
Args: {
|
|
2977
|
+
app_id: string;
|
|
2978
|
+
channel_id: number;
|
|
2979
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2980
|
+
org_id: string;
|
|
2981
|
+
user_id: string;
|
|
2982
|
+
};
|
|
2983
|
+
Returns: boolean;
|
|
2984
|
+
};
|
|
2985
|
+
check_org_encrypted_bundle_enforcement: {
|
|
2986
|
+
Args: {
|
|
2987
|
+
org_id: string;
|
|
2988
|
+
session_key: string;
|
|
2989
|
+
};
|
|
2990
|
+
Returns: boolean;
|
|
2991
|
+
};
|
|
2279
2992
|
check_org_hashed_key_enforcement: {
|
|
2280
2993
|
Args: {
|
|
2281
2994
|
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
@@ -2314,6 +3027,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2314
3027
|
Args: never;
|
|
2315
3028
|
Returns: undefined;
|
|
2316
3029
|
};
|
|
3030
|
+
cleanup_expired_demo_apps: {
|
|
3031
|
+
Args: never;
|
|
3032
|
+
Returns: undefined;
|
|
3033
|
+
};
|
|
2317
3034
|
cleanup_frequent_job_details: {
|
|
2318
3035
|
Args: never;
|
|
2319
3036
|
Returns: undefined;
|
|
@@ -2326,14 +3043,38 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2326
3043
|
Args: never;
|
|
2327
3044
|
Returns: undefined;
|
|
2328
3045
|
};
|
|
3046
|
+
cleanup_old_channel_devices: {
|
|
3047
|
+
Args: never;
|
|
3048
|
+
Returns: undefined;
|
|
3049
|
+
};
|
|
2329
3050
|
cleanup_queue_messages: {
|
|
2330
3051
|
Args: never;
|
|
2331
3052
|
Returns: undefined;
|
|
2332
3053
|
};
|
|
3054
|
+
cleanup_tmp_users: {
|
|
3055
|
+
Args: never;
|
|
3056
|
+
Returns: undefined;
|
|
3057
|
+
};
|
|
2333
3058
|
cleanup_webhook_deliveries: {
|
|
2334
3059
|
Args: never;
|
|
2335
3060
|
Returns: undefined;
|
|
2336
3061
|
};
|
|
3062
|
+
clear_onboarding_app_data: {
|
|
3063
|
+
Args: {
|
|
3064
|
+
p_app_uuid: string;
|
|
3065
|
+
};
|
|
3066
|
+
Returns: undefined;
|
|
3067
|
+
};
|
|
3068
|
+
cli_check_permission: {
|
|
3069
|
+
Args: {
|
|
3070
|
+
apikey: string;
|
|
3071
|
+
app_id?: string;
|
|
3072
|
+
channel_id?: number;
|
|
3073
|
+
org_id?: string;
|
|
3074
|
+
permission_key: string;
|
|
3075
|
+
};
|
|
3076
|
+
Returns: boolean;
|
|
3077
|
+
};
|
|
2337
3078
|
convert_bytes_to_gb: {
|
|
2338
3079
|
Args: {
|
|
2339
3080
|
bytes_value: number;
|
|
@@ -2386,6 +3127,80 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2386
3127
|
plan_name: string;
|
|
2387
3128
|
}[];
|
|
2388
3129
|
};
|
|
3130
|
+
count_non_compliant_bundles: {
|
|
3131
|
+
Args: {
|
|
3132
|
+
org_id: string;
|
|
3133
|
+
required_key?: string;
|
|
3134
|
+
};
|
|
3135
|
+
Returns: {
|
|
3136
|
+
non_encrypted_count: number;
|
|
3137
|
+
total_non_compliant: number;
|
|
3138
|
+
wrong_key_count: number;
|
|
3139
|
+
}[];
|
|
3140
|
+
};
|
|
3141
|
+
create_hashed_apikey: {
|
|
3142
|
+
Args: {
|
|
3143
|
+
p_expires_at: string;
|
|
3144
|
+
p_limited_to_apps: string[];
|
|
3145
|
+
p_limited_to_orgs: string[];
|
|
3146
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3147
|
+
p_name: string;
|
|
3148
|
+
};
|
|
3149
|
+
Returns: {
|
|
3150
|
+
created_at: string | null;
|
|
3151
|
+
expires_at: string | null;
|
|
3152
|
+
id: number;
|
|
3153
|
+
key: string | null;
|
|
3154
|
+
key_hash: string | null;
|
|
3155
|
+
limited_to_apps: string[] | null;
|
|
3156
|
+
limited_to_orgs: string[] | null;
|
|
3157
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3158
|
+
name: string;
|
|
3159
|
+
rbac_id: string;
|
|
3160
|
+
updated_at: string | null;
|
|
3161
|
+
user_id: string;
|
|
3162
|
+
};
|
|
3163
|
+
SetofOptions: {
|
|
3164
|
+
from: "*";
|
|
3165
|
+
to: "apikeys";
|
|
3166
|
+
isOneToOne: true;
|
|
3167
|
+
isSetofReturn: false;
|
|
3168
|
+
};
|
|
3169
|
+
};
|
|
3170
|
+
create_hashed_apikey_for_user: {
|
|
3171
|
+
Args: {
|
|
3172
|
+
p_expires_at: string;
|
|
3173
|
+
p_limited_to_apps: string[];
|
|
3174
|
+
p_limited_to_orgs: string[];
|
|
3175
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3176
|
+
p_name: string;
|
|
3177
|
+
p_user_id: string;
|
|
3178
|
+
};
|
|
3179
|
+
Returns: {
|
|
3180
|
+
created_at: string | null;
|
|
3181
|
+
expires_at: string | null;
|
|
3182
|
+
id: number;
|
|
3183
|
+
key: string | null;
|
|
3184
|
+
key_hash: string | null;
|
|
3185
|
+
limited_to_apps: string[] | null;
|
|
3186
|
+
limited_to_orgs: string[] | null;
|
|
3187
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3188
|
+
name: string;
|
|
3189
|
+
rbac_id: string;
|
|
3190
|
+
updated_at: string | null;
|
|
3191
|
+
user_id: string;
|
|
3192
|
+
};
|
|
3193
|
+
SetofOptions: {
|
|
3194
|
+
from: "*";
|
|
3195
|
+
to: "apikeys";
|
|
3196
|
+
isOneToOne: true;
|
|
3197
|
+
isSetofReturn: false;
|
|
3198
|
+
};
|
|
3199
|
+
};
|
|
3200
|
+
current_request_role: {
|
|
3201
|
+
Args: never;
|
|
3202
|
+
Returns: string;
|
|
3203
|
+
};
|
|
2389
3204
|
delete_accounts_marked_for_deletion: {
|
|
2390
3205
|
Args: never;
|
|
2391
3206
|
Returns: {
|
|
@@ -2393,16 +3208,40 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2393
3208
|
deleted_user_ids: string[];
|
|
2394
3209
|
}[];
|
|
2395
3210
|
};
|
|
3211
|
+
delete_group_with_bindings: {
|
|
3212
|
+
Args: {
|
|
3213
|
+
group_id: string;
|
|
3214
|
+
};
|
|
3215
|
+
Returns: undefined;
|
|
3216
|
+
};
|
|
2396
3217
|
delete_http_response: {
|
|
2397
3218
|
Args: {
|
|
2398
3219
|
request_id: number;
|
|
2399
3220
|
};
|
|
2400
3221
|
Returns: undefined;
|
|
2401
3222
|
};
|
|
3223
|
+
delete_non_compliant_bundles: {
|
|
3224
|
+
Args: {
|
|
3225
|
+
org_id: string;
|
|
3226
|
+
required_key?: string;
|
|
3227
|
+
};
|
|
3228
|
+
Returns: number;
|
|
3229
|
+
};
|
|
2402
3230
|
delete_old_deleted_apps: {
|
|
2403
3231
|
Args: never;
|
|
2404
3232
|
Returns: undefined;
|
|
2405
3233
|
};
|
|
3234
|
+
delete_old_deleted_versions: {
|
|
3235
|
+
Args: never;
|
|
3236
|
+
Returns: undefined;
|
|
3237
|
+
};
|
|
3238
|
+
delete_org_member_role: {
|
|
3239
|
+
Args: {
|
|
3240
|
+
p_org_id: string;
|
|
3241
|
+
p_user_id: string;
|
|
3242
|
+
};
|
|
3243
|
+
Returns: string;
|
|
3244
|
+
};
|
|
2406
3245
|
delete_user: {
|
|
2407
3246
|
Args: never;
|
|
2408
3247
|
Returns: undefined;
|
|
@@ -2445,6 +3284,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2445
3284
|
limited_to_orgs: string[] | null;
|
|
2446
3285
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
2447
3286
|
name: string;
|
|
3287
|
+
rbac_id: string;
|
|
2448
3288
|
updated_at: string | null;
|
|
2449
3289
|
user_id: string;
|
|
2450
3290
|
}[];
|
|
@@ -2475,10 +3315,44 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2475
3315
|
name: string;
|
|
2476
3316
|
}[];
|
|
2477
3317
|
};
|
|
2478
|
-
|
|
3318
|
+
get_accessible_apps_for_apikey_v2: {
|
|
2479
3319
|
Args: {
|
|
2480
|
-
|
|
3320
|
+
apikey: string;
|
|
3321
|
+
};
|
|
3322
|
+
Returns: {
|
|
3323
|
+
allow_device_custom_id: boolean;
|
|
3324
|
+
allow_preview: boolean;
|
|
3325
|
+
android_store_url: string | null;
|
|
3326
|
+
app_id: string;
|
|
3327
|
+
channel_device_count: number;
|
|
3328
|
+
created_at: string | null;
|
|
3329
|
+
default_upload_channel: string;
|
|
3330
|
+
existing_app: boolean;
|
|
3331
|
+
expose_metadata: boolean;
|
|
3332
|
+
icon_url: string;
|
|
3333
|
+
id: string | null;
|
|
3334
|
+
ios_store_url: string | null;
|
|
3335
|
+
last_version: string | null;
|
|
3336
|
+
manifest_bundle_count: number;
|
|
3337
|
+
name: string | null;
|
|
3338
|
+
need_onboarding: boolean;
|
|
3339
|
+
owner_org: string;
|
|
3340
|
+
retention: number;
|
|
3341
|
+
stats_refresh_requested_at: string | null;
|
|
3342
|
+
stats_updated_at: string | null;
|
|
3343
|
+
transfer_history: import("./types/supabase.types").Json[] | null;
|
|
3344
|
+
updated_at: string | null;
|
|
3345
|
+
user_id: string | null;
|
|
3346
|
+
}[];
|
|
3347
|
+
SetofOptions: {
|
|
3348
|
+
from: "*";
|
|
3349
|
+
to: "apps";
|
|
3350
|
+
isOneToOne: false;
|
|
3351
|
+
isSetofReturn: true;
|
|
2481
3352
|
};
|
|
3353
|
+
};
|
|
3354
|
+
get_account_removal_date: {
|
|
3355
|
+
Args: never;
|
|
2482
3356
|
Returns: string;
|
|
2483
3357
|
};
|
|
2484
3358
|
get_apikey: {
|
|
@@ -2489,6 +3363,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2489
3363
|
Args: never;
|
|
2490
3364
|
Returns: string;
|
|
2491
3365
|
};
|
|
3366
|
+
get_app_access_rbac: {
|
|
3367
|
+
Args: {
|
|
3368
|
+
p_app_id: string;
|
|
3369
|
+
};
|
|
3370
|
+
Returns: {
|
|
3371
|
+
expires_at: string;
|
|
3372
|
+
granted_at: string;
|
|
3373
|
+
granted_by: string;
|
|
3374
|
+
id: string;
|
|
3375
|
+
is_direct: boolean;
|
|
3376
|
+
principal_id: string;
|
|
3377
|
+
principal_name: string;
|
|
3378
|
+
principal_type: string;
|
|
3379
|
+
reason: string;
|
|
3380
|
+
role_description: string;
|
|
3381
|
+
role_id: string;
|
|
3382
|
+
role_name: string;
|
|
3383
|
+
}[];
|
|
3384
|
+
};
|
|
2492
3385
|
get_app_metrics: {
|
|
2493
3386
|
Args: {
|
|
2494
3387
|
org_id: string;
|
|
@@ -2523,6 +3416,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2523
3416
|
storage: number;
|
|
2524
3417
|
uninstall: number;
|
|
2525
3418
|
}[];
|
|
3419
|
+
} | {
|
|
3420
|
+
Args: {
|
|
3421
|
+
p_app_id: string;
|
|
3422
|
+
p_end_date: string;
|
|
3423
|
+
p_org_id: string;
|
|
3424
|
+
p_start_date: string;
|
|
3425
|
+
};
|
|
3426
|
+
Returns: {
|
|
3427
|
+
app_id: string;
|
|
3428
|
+
bandwidth: number;
|
|
3429
|
+
build_time_unit: number;
|
|
3430
|
+
date: string;
|
|
3431
|
+
fail: number;
|
|
3432
|
+
get: number;
|
|
3433
|
+
install: number;
|
|
3434
|
+
mau: number;
|
|
3435
|
+
storage: number;
|
|
3436
|
+
uninstall: number;
|
|
3437
|
+
}[];
|
|
2526
3438
|
};
|
|
2527
3439
|
get_app_versions: {
|
|
2528
3440
|
Args: {
|
|
@@ -2623,6 +3535,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2623
3535
|
};
|
|
2624
3536
|
Returns: string;
|
|
2625
3537
|
};
|
|
3538
|
+
get_identity_org_allowed_apikey_only: {
|
|
3539
|
+
Args: {
|
|
3540
|
+
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3541
|
+
org_id: string;
|
|
3542
|
+
};
|
|
3543
|
+
Returns: string;
|
|
3544
|
+
};
|
|
2626
3545
|
get_identity_org_appid: {
|
|
2627
3546
|
Args: {
|
|
2628
3547
|
app_id: string;
|
|
@@ -2638,29 +3557,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2638
3557
|
Returns: {
|
|
2639
3558
|
org_logo: string;
|
|
2640
3559
|
org_name: string;
|
|
2641
|
-
role:
|
|
3560
|
+
role: string;
|
|
2642
3561
|
}[];
|
|
2643
3562
|
};
|
|
2644
|
-
|
|
3563
|
+
get_mfa_email_otp_enforced_at: {
|
|
2645
3564
|
Args: never;
|
|
2646
|
-
Returns:
|
|
2647
|
-
SetofOptions: {
|
|
2648
|
-
from: "*";
|
|
2649
|
-
to: "stats_table";
|
|
2650
|
-
isOneToOne: true;
|
|
2651
|
-
isSetofReturn: false;
|
|
2652
|
-
};
|
|
2653
|
-
} | {
|
|
2654
|
-
Args: {
|
|
2655
|
-
orgid: string;
|
|
2656
|
-
};
|
|
2657
|
-
Returns: Database["public"]["CompositeTypes"]["stats_table"];
|
|
2658
|
-
SetofOptions: {
|
|
2659
|
-
from: "*";
|
|
2660
|
-
to: "stats_table";
|
|
2661
|
-
isOneToOne: true;
|
|
2662
|
-
isSetofReturn: false;
|
|
2663
|
-
};
|
|
3565
|
+
Returns: string;
|
|
2664
3566
|
};
|
|
2665
3567
|
get_next_cron_time: {
|
|
2666
3568
|
Args: {
|
|
@@ -2683,6 +3585,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2683
3585
|
};
|
|
2684
3586
|
Returns: string;
|
|
2685
3587
|
};
|
|
3588
|
+
get_org_apikeys: {
|
|
3589
|
+
Args: {
|
|
3590
|
+
p_org_id: string;
|
|
3591
|
+
};
|
|
3592
|
+
Returns: {
|
|
3593
|
+
created_at: string;
|
|
3594
|
+
expires_at: string;
|
|
3595
|
+
id: number;
|
|
3596
|
+
limited_to_apps: string[];
|
|
3597
|
+
limited_to_orgs: string[];
|
|
3598
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3599
|
+
name: string;
|
|
3600
|
+
owner_email: string;
|
|
3601
|
+
rbac_id: string;
|
|
3602
|
+
user_id: string;
|
|
3603
|
+
}[];
|
|
3604
|
+
};
|
|
2686
3605
|
get_org_build_time_unit: {
|
|
2687
3606
|
Args: {
|
|
2688
3607
|
p_end_date: string;
|
|
@@ -2720,6 +3639,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2720
3639
|
uid: string;
|
|
2721
3640
|
}[];
|
|
2722
3641
|
};
|
|
3642
|
+
get_org_members_rbac: {
|
|
3643
|
+
Args: {
|
|
3644
|
+
p_org_id: string;
|
|
3645
|
+
};
|
|
3646
|
+
Returns: {
|
|
3647
|
+
binding_id: string;
|
|
3648
|
+
email: string;
|
|
3649
|
+
granted_at: string;
|
|
3650
|
+
image_url: string;
|
|
3651
|
+
is_invite: boolean;
|
|
3652
|
+
is_tmp: boolean;
|
|
3653
|
+
org_user_id: number;
|
|
3654
|
+
role_id: string;
|
|
3655
|
+
role_name: string;
|
|
3656
|
+
user_id: string;
|
|
3657
|
+
}[];
|
|
3658
|
+
};
|
|
2723
3659
|
get_org_owner_id: {
|
|
2724
3660
|
Args: {
|
|
2725
3661
|
apikey: string;
|
|
@@ -2734,6 +3670,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2734
3670
|
};
|
|
2735
3671
|
Returns: string;
|
|
2736
3672
|
};
|
|
3673
|
+
get_org_perm_for_apikey_v2: {
|
|
3674
|
+
Args: {
|
|
3675
|
+
apikey: string;
|
|
3676
|
+
app_id: string;
|
|
3677
|
+
};
|
|
3678
|
+
Returns: string;
|
|
3679
|
+
};
|
|
3680
|
+
get_org_user_access_rbac: {
|
|
3681
|
+
Args: {
|
|
3682
|
+
p_org_id: string;
|
|
3683
|
+
p_user_id: string;
|
|
3684
|
+
};
|
|
3685
|
+
Returns: {
|
|
3686
|
+
app_id: string;
|
|
3687
|
+
channel_id: string;
|
|
3688
|
+
expires_at: string;
|
|
3689
|
+
granted_at: string;
|
|
3690
|
+
granted_by: string;
|
|
3691
|
+
group_name: string;
|
|
3692
|
+
id: string;
|
|
3693
|
+
is_direct: boolean;
|
|
3694
|
+
org_id: string;
|
|
3695
|
+
principal_id: string;
|
|
3696
|
+
principal_name: string;
|
|
3697
|
+
principal_type: string;
|
|
3698
|
+
reason: string;
|
|
3699
|
+
role_description: string;
|
|
3700
|
+
role_id: string;
|
|
3701
|
+
role_name: string;
|
|
3702
|
+
scope_type: string;
|
|
3703
|
+
user_email: string;
|
|
3704
|
+
}[];
|
|
3705
|
+
};
|
|
2737
3706
|
get_organization_cli_warnings: {
|
|
2738
3707
|
Args: {
|
|
2739
3708
|
cli_version: string;
|
|
@@ -2747,24 +3716,18 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2747
3716
|
app_count: number;
|
|
2748
3717
|
can_use_more: boolean;
|
|
2749
3718
|
created_by: string;
|
|
2750
|
-
credit_available: number;
|
|
2751
|
-
credit_next_expiration: string;
|
|
2752
|
-
credit_total: number;
|
|
2753
3719
|
gid: string;
|
|
2754
3720
|
is_canceled: boolean;
|
|
2755
3721
|
is_yearly: boolean;
|
|
2756
3722
|
logo: string;
|
|
2757
3723
|
management_email: string;
|
|
2758
|
-
max_apikey_expiration_days: number;
|
|
2759
3724
|
name: string;
|
|
2760
|
-
next_stats_update_at: string;
|
|
2761
3725
|
paying: boolean;
|
|
2762
|
-
require_apikey_expiration: boolean;
|
|
2763
3726
|
role: string;
|
|
2764
|
-
stats_updated_at: string;
|
|
2765
3727
|
subscription_end: string;
|
|
2766
3728
|
subscription_start: string;
|
|
2767
3729
|
trial_left: number;
|
|
3730
|
+
use_new_rbac: boolean;
|
|
2768
3731
|
}[];
|
|
2769
3732
|
} | {
|
|
2770
3733
|
Args: {
|
|
@@ -2774,24 +3737,18 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2774
3737
|
app_count: number;
|
|
2775
3738
|
can_use_more: boolean;
|
|
2776
3739
|
created_by: string;
|
|
2777
|
-
credit_available: number;
|
|
2778
|
-
credit_next_expiration: string;
|
|
2779
|
-
credit_total: number;
|
|
2780
3740
|
gid: string;
|
|
2781
3741
|
is_canceled: boolean;
|
|
2782
3742
|
is_yearly: boolean;
|
|
2783
3743
|
logo: string;
|
|
2784
3744
|
management_email: string;
|
|
2785
|
-
max_apikey_expiration_days: number;
|
|
2786
3745
|
name: string;
|
|
2787
|
-
next_stats_update_at: string;
|
|
2788
3746
|
paying: boolean;
|
|
2789
|
-
require_apikey_expiration: boolean;
|
|
2790
3747
|
role: string;
|
|
2791
|
-
stats_updated_at: string;
|
|
2792
3748
|
subscription_end: string;
|
|
2793
3749
|
subscription_start: string;
|
|
2794
3750
|
trial_left: number;
|
|
3751
|
+
use_new_rbac: boolean;
|
|
2795
3752
|
}[];
|
|
2796
3753
|
};
|
|
2797
3754
|
get_orgs_v7: {
|
|
@@ -2800,10 +3757,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2800
3757
|
"2fa_has_access": boolean;
|
|
2801
3758
|
app_count: number;
|
|
2802
3759
|
can_use_more: boolean;
|
|
3760
|
+
created_at: string;
|
|
2803
3761
|
created_by: string;
|
|
2804
3762
|
credit_available: number;
|
|
2805
3763
|
credit_next_expiration: string;
|
|
2806
3764
|
credit_total: number;
|
|
3765
|
+
enforce_encrypted_bundles: boolean;
|
|
2807
3766
|
enforce_hashed_api_keys: boolean;
|
|
2808
3767
|
enforcing_2fa: boolean;
|
|
2809
3768
|
gid: string;
|
|
@@ -2811,16 +3770,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2811
3770
|
is_yearly: boolean;
|
|
2812
3771
|
logo: string;
|
|
2813
3772
|
management_email: string;
|
|
3773
|
+
max_apikey_expiration_days: number;
|
|
2814
3774
|
name: string;
|
|
2815
3775
|
next_stats_update_at: string;
|
|
2816
3776
|
password_has_access: boolean;
|
|
2817
3777
|
password_policy_config: import("./types/supabase.types").Json;
|
|
2818
3778
|
paying: boolean;
|
|
3779
|
+
require_apikey_expiration: boolean;
|
|
3780
|
+
required_encryption_key: string;
|
|
2819
3781
|
role: string;
|
|
3782
|
+
stats_refresh_requested_at: string;
|
|
2820
3783
|
stats_updated_at: string;
|
|
2821
3784
|
subscription_end: string;
|
|
2822
3785
|
subscription_start: string;
|
|
2823
3786
|
trial_left: number;
|
|
3787
|
+
use_new_rbac: boolean;
|
|
3788
|
+
website: string;
|
|
2824
3789
|
}[];
|
|
2825
3790
|
} | {
|
|
2826
3791
|
Args: {
|
|
@@ -2830,10 +3795,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2830
3795
|
"2fa_has_access": boolean;
|
|
2831
3796
|
app_count: number;
|
|
2832
3797
|
can_use_more: boolean;
|
|
3798
|
+
created_at: string;
|
|
2833
3799
|
created_by: string;
|
|
2834
3800
|
credit_available: number;
|
|
2835
3801
|
credit_next_expiration: string;
|
|
2836
3802
|
credit_total: number;
|
|
3803
|
+
enforce_encrypted_bundles: boolean;
|
|
2837
3804
|
enforce_hashed_api_keys: boolean;
|
|
2838
3805
|
enforcing_2fa: boolean;
|
|
2839
3806
|
gid: string;
|
|
@@ -2841,16 +3808,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2841
3808
|
is_yearly: boolean;
|
|
2842
3809
|
logo: string;
|
|
2843
3810
|
management_email: string;
|
|
3811
|
+
max_apikey_expiration_days: number;
|
|
2844
3812
|
name: string;
|
|
2845
3813
|
next_stats_update_at: string;
|
|
2846
3814
|
password_has_access: boolean;
|
|
2847
3815
|
password_policy_config: import("./types/supabase.types").Json;
|
|
2848
3816
|
paying: boolean;
|
|
3817
|
+
require_apikey_expiration: boolean;
|
|
3818
|
+
required_encryption_key: string;
|
|
2849
3819
|
role: string;
|
|
3820
|
+
stats_refresh_requested_at: string;
|
|
2850
3821
|
stats_updated_at: string;
|
|
2851
3822
|
subscription_end: string;
|
|
2852
3823
|
subscription_start: string;
|
|
2853
3824
|
trial_left: number;
|
|
3825
|
+
use_new_rbac: boolean;
|
|
3826
|
+
website: string;
|
|
2854
3827
|
}[];
|
|
2855
3828
|
};
|
|
2856
3829
|
get_password_policy_hash: {
|
|
@@ -2859,6 +3832,32 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2859
3832
|
};
|
|
2860
3833
|
Returns: string;
|
|
2861
3834
|
};
|
|
3835
|
+
get_plan_usage_and_fit: {
|
|
3836
|
+
Args: {
|
|
3837
|
+
orgid: string;
|
|
3838
|
+
};
|
|
3839
|
+
Returns: {
|
|
3840
|
+
bandwidth_percent: number;
|
|
3841
|
+
build_time_percent: number;
|
|
3842
|
+
is_good_plan: boolean;
|
|
3843
|
+
mau_percent: number;
|
|
3844
|
+
storage_percent: number;
|
|
3845
|
+
total_percent: number;
|
|
3846
|
+
}[];
|
|
3847
|
+
};
|
|
3848
|
+
get_plan_usage_and_fit_uncached: {
|
|
3849
|
+
Args: {
|
|
3850
|
+
orgid: string;
|
|
3851
|
+
};
|
|
3852
|
+
Returns: {
|
|
3853
|
+
bandwidth_percent: number;
|
|
3854
|
+
build_time_percent: number;
|
|
3855
|
+
is_good_plan: boolean;
|
|
3856
|
+
mau_percent: number;
|
|
3857
|
+
storage_percent: number;
|
|
3858
|
+
total_percent: number;
|
|
3859
|
+
}[];
|
|
3860
|
+
};
|
|
2862
3861
|
get_plan_usage_percent_detailed: {
|
|
2863
3862
|
Args: {
|
|
2864
3863
|
orgid: string;
|
|
@@ -2884,14 +3883,35 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2884
3883
|
total_percent: number;
|
|
2885
3884
|
}[];
|
|
2886
3885
|
};
|
|
2887
|
-
|
|
3886
|
+
get_sso_enforcement_by_domain: {
|
|
2888
3887
|
Args: {
|
|
2889
|
-
|
|
2890
|
-
org_id: string;
|
|
3888
|
+
p_domain: string;
|
|
2891
3889
|
};
|
|
2892
|
-
Returns:
|
|
2893
|
-
|
|
3890
|
+
Returns: {
|
|
3891
|
+
enforce_sso: boolean;
|
|
3892
|
+
org_id: string;
|
|
3893
|
+
}[];
|
|
3894
|
+
};
|
|
3895
|
+
get_total_app_storage_size_orgs: {
|
|
3896
|
+
Args: {
|
|
3897
|
+
app_id: string;
|
|
3898
|
+
org_id: string;
|
|
3899
|
+
};
|
|
3900
|
+
Returns: number;
|
|
3901
|
+
};
|
|
2894
3902
|
get_total_metrics: {
|
|
3903
|
+
Args: never;
|
|
3904
|
+
Returns: {
|
|
3905
|
+
bandwidth: number;
|
|
3906
|
+
build_time_unit: number;
|
|
3907
|
+
fail: number;
|
|
3908
|
+
get: number;
|
|
3909
|
+
install: number;
|
|
3910
|
+
mau: number;
|
|
3911
|
+
storage: number;
|
|
3912
|
+
uninstall: number;
|
|
3913
|
+
}[];
|
|
3914
|
+
} | {
|
|
2895
3915
|
Args: {
|
|
2896
3916
|
org_id: string;
|
|
2897
3917
|
};
|
|
@@ -2963,6 +3983,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2963
3983
|
};
|
|
2964
3984
|
Returns: string;
|
|
2965
3985
|
};
|
|
3986
|
+
get_user_org_ids: {
|
|
3987
|
+
Args: never;
|
|
3988
|
+
Returns: {
|
|
3989
|
+
org_id: string;
|
|
3990
|
+
}[];
|
|
3991
|
+
};
|
|
2966
3992
|
get_versions_with_no_metadata: {
|
|
2967
3993
|
Args: never;
|
|
2968
3994
|
Returns: {
|
|
@@ -2972,6 +3998,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2972
3998
|
comment: string | null;
|
|
2973
3999
|
created_at: string | null;
|
|
2974
4000
|
deleted: boolean;
|
|
4001
|
+
deleted_at: string | null;
|
|
2975
4002
|
external_url: string | null;
|
|
2976
4003
|
id: number;
|
|
2977
4004
|
key_id: string | null;
|
|
@@ -3038,6 +4065,20 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3038
4065
|
};
|
|
3039
4066
|
Returns: boolean;
|
|
3040
4067
|
};
|
|
4068
|
+
has_seeded_demo_data: {
|
|
4069
|
+
Args: {
|
|
4070
|
+
p_app_id: string;
|
|
4071
|
+
};
|
|
4072
|
+
Returns: boolean;
|
|
4073
|
+
};
|
|
4074
|
+
internal_request_db_user_names: {
|
|
4075
|
+
Args: never;
|
|
4076
|
+
Returns: string[];
|
|
4077
|
+
};
|
|
4078
|
+
internal_request_role_names: {
|
|
4079
|
+
Args: never;
|
|
4080
|
+
Returns: string[];
|
|
4081
|
+
};
|
|
3041
4082
|
invite_user_to_org: {
|
|
3042
4083
|
Args: {
|
|
3043
4084
|
email: string;
|
|
@@ -3046,18 +4087,17 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3046
4087
|
};
|
|
3047
4088
|
Returns: string;
|
|
3048
4089
|
};
|
|
3049
|
-
|
|
4090
|
+
invite_user_to_org_rbac: {
|
|
3050
4091
|
Args: {
|
|
3051
|
-
|
|
4092
|
+
email: string;
|
|
4093
|
+
org_id: string;
|
|
4094
|
+
role_name: string;
|
|
3052
4095
|
};
|
|
3053
|
-
Returns:
|
|
4096
|
+
Returns: string;
|
|
3054
4097
|
};
|
|
3055
|
-
|
|
3056
|
-
Args: never;
|
|
3057
|
-
Returns: boolean;
|
|
3058
|
-
} | {
|
|
4098
|
+
is_account_disabled: {
|
|
3059
4099
|
Args: {
|
|
3060
|
-
|
|
4100
|
+
user_id: string;
|
|
3061
4101
|
};
|
|
3062
4102
|
Returns: boolean;
|
|
3063
4103
|
};
|
|
@@ -3131,6 +4171,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3131
4171
|
};
|
|
3132
4172
|
Returns: boolean;
|
|
3133
4173
|
};
|
|
4174
|
+
is_bundle_encrypted: {
|
|
4175
|
+
Args: {
|
|
4176
|
+
session_key: string;
|
|
4177
|
+
};
|
|
4178
|
+
Returns: boolean;
|
|
4179
|
+
};
|
|
3134
4180
|
is_canceled_org: {
|
|
3135
4181
|
Args: {
|
|
3136
4182
|
orgid: string;
|
|
@@ -3143,6 +4189,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3143
4189
|
};
|
|
3144
4190
|
Returns: boolean;
|
|
3145
4191
|
};
|
|
4192
|
+
is_internal_request_role: {
|
|
4193
|
+
Args: {
|
|
4194
|
+
caller_role: string;
|
|
4195
|
+
};
|
|
4196
|
+
Returns: boolean;
|
|
4197
|
+
};
|
|
3146
4198
|
is_mau_exceeded_by_org: {
|
|
3147
4199
|
Args: {
|
|
3148
4200
|
org_id: string;
|
|
@@ -3205,6 +4257,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3205
4257
|
};
|
|
3206
4258
|
Returns: boolean;
|
|
3207
4259
|
};
|
|
4260
|
+
is_platform_admin: {
|
|
4261
|
+
Args: never;
|
|
4262
|
+
Returns: boolean;
|
|
4263
|
+
} | {
|
|
4264
|
+
Args: {
|
|
4265
|
+
userid: string;
|
|
4266
|
+
};
|
|
4267
|
+
Returns: boolean;
|
|
4268
|
+
};
|
|
4269
|
+
is_rbac_enabled_globally: {
|
|
4270
|
+
Args: never;
|
|
4271
|
+
Returns: boolean;
|
|
4272
|
+
};
|
|
4273
|
+
is_recent_email_otp_verified: {
|
|
4274
|
+
Args: {
|
|
4275
|
+
user_id: string;
|
|
4276
|
+
};
|
|
4277
|
+
Returns: boolean;
|
|
4278
|
+
};
|
|
3208
4279
|
is_storage_exceeded_by_org: {
|
|
3209
4280
|
Args: {
|
|
3210
4281
|
org_id: string;
|
|
@@ -3217,6 +4288,26 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3217
4288
|
};
|
|
3218
4289
|
Returns: number;
|
|
3219
4290
|
};
|
|
4291
|
+
is_user_app_admin: {
|
|
4292
|
+
Args: {
|
|
4293
|
+
p_app_id: string;
|
|
4294
|
+
p_user_id: string;
|
|
4295
|
+
};
|
|
4296
|
+
Returns: boolean;
|
|
4297
|
+
};
|
|
4298
|
+
is_user_org_admin: {
|
|
4299
|
+
Args: {
|
|
4300
|
+
p_org_id: string;
|
|
4301
|
+
p_user_id: string;
|
|
4302
|
+
};
|
|
4303
|
+
Returns: boolean;
|
|
4304
|
+
};
|
|
4305
|
+
mark_app_stats_refreshed: {
|
|
4306
|
+
Args: {
|
|
4307
|
+
p_app_id: string;
|
|
4308
|
+
};
|
|
4309
|
+
Returns: string;
|
|
4310
|
+
};
|
|
3220
4311
|
mass_edit_queue_messages_cf_ids: {
|
|
3221
4312
|
Args: {
|
|
3222
4313
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -3282,6 +4373,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3282
4373
|
Args: never;
|
|
3283
4374
|
Returns: undefined;
|
|
3284
4375
|
};
|
|
4376
|
+
process_daily_fail_ratio_email: {
|
|
4377
|
+
Args: never;
|
|
4378
|
+
Returns: undefined;
|
|
4379
|
+
};
|
|
3285
4380
|
process_deploy_install_stats_email: {
|
|
3286
4381
|
Args: never;
|
|
3287
4382
|
Returns: undefined;
|
|
@@ -3319,204 +4414,792 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3319
4414
|
Args: never;
|
|
3320
4415
|
Returns: undefined;
|
|
3321
4416
|
};
|
|
3322
|
-
|
|
3323
|
-
Args: {
|
|
3324
|
-
customer_id: string;
|
|
3325
|
-
org_id: string;
|
|
3326
|
-
};
|
|
3327
|
-
Returns: undefined;
|
|
3328
|
-
};
|
|
3329
|
-
read_bandwidth_usage: {
|
|
4417
|
+
queue_cron_stat_app_for_app: {
|
|
3330
4418
|
Args: {
|
|
3331
4419
|
p_app_id: string;
|
|
3332
|
-
|
|
3333
|
-
p_period_start: string;
|
|
4420
|
+
p_org_id?: string;
|
|
3334
4421
|
};
|
|
3335
|
-
Returns:
|
|
3336
|
-
app_id: string;
|
|
3337
|
-
bandwidth: number;
|
|
3338
|
-
date: string;
|
|
3339
|
-
}[];
|
|
4422
|
+
Returns: undefined;
|
|
3340
4423
|
};
|
|
3341
|
-
|
|
4424
|
+
queue_cron_stat_org_for_org: {
|
|
3342
4425
|
Args: {
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
p_period_start: string;
|
|
4426
|
+
customer_id: string;
|
|
4427
|
+
org_id: string;
|
|
3346
4428
|
};
|
|
3347
|
-
Returns:
|
|
3348
|
-
app_id: string;
|
|
3349
|
-
date: string;
|
|
3350
|
-
mau: number;
|
|
3351
|
-
}[];
|
|
4429
|
+
Returns: undefined;
|
|
3352
4430
|
};
|
|
3353
|
-
|
|
4431
|
+
rbac_check_permission: {
|
|
3354
4432
|
Args: {
|
|
3355
|
-
p_app_id
|
|
3356
|
-
|
|
3357
|
-
|
|
4433
|
+
p_app_id?: string;
|
|
4434
|
+
p_channel_id?: number;
|
|
4435
|
+
p_org_id?: string;
|
|
4436
|
+
p_permission_key: string;
|
|
3358
4437
|
};
|
|
3359
|
-
Returns:
|
|
3360
|
-
app_id: string;
|
|
3361
|
-
date: string;
|
|
3362
|
-
storage: number;
|
|
3363
|
-
}[];
|
|
4438
|
+
Returns: boolean;
|
|
3364
4439
|
};
|
|
3365
|
-
|
|
4440
|
+
rbac_check_permission_direct: {
|
|
3366
4441
|
Args: {
|
|
4442
|
+
p_apikey?: string;
|
|
3367
4443
|
p_app_id: string;
|
|
3368
|
-
|
|
3369
|
-
p_period_start: string;
|
|
3370
|
-
};
|
|
3371
|
-
Returns: {
|
|
3372
|
-
app_id: string;
|
|
3373
|
-
date: string;
|
|
3374
|
-
fail: number;
|
|
3375
|
-
get: number;
|
|
3376
|
-
install: number;
|
|
3377
|
-
uninstall: number;
|
|
3378
|
-
version_id: number;
|
|
3379
|
-
}[];
|
|
3380
|
-
};
|
|
3381
|
-
record_build_time: {
|
|
3382
|
-
Args: {
|
|
3383
|
-
p_build_id: string;
|
|
3384
|
-
p_build_time_unit: number;
|
|
4444
|
+
p_channel_id: number;
|
|
3385
4445
|
p_org_id: string;
|
|
3386
|
-
|
|
4446
|
+
p_permission_key: string;
|
|
3387
4447
|
p_user_id: string;
|
|
3388
4448
|
};
|
|
3389
|
-
Returns: string;
|
|
3390
|
-
};
|
|
3391
|
-
reject_access_due_to_2fa: {
|
|
3392
|
-
Args: {
|
|
3393
|
-
org_id: string;
|
|
3394
|
-
user_id: string;
|
|
3395
|
-
};
|
|
3396
4449
|
Returns: boolean;
|
|
3397
4450
|
};
|
|
3398
|
-
|
|
4451
|
+
rbac_check_permission_direct_no_password_policy: {
|
|
3399
4452
|
Args: {
|
|
3400
|
-
|
|
4453
|
+
p_apikey?: string;
|
|
4454
|
+
p_app_id: string;
|
|
4455
|
+
p_channel_id: number;
|
|
4456
|
+
p_org_id: string;
|
|
4457
|
+
p_permission_key: string;
|
|
4458
|
+
p_user_id: string;
|
|
3401
4459
|
};
|
|
3402
4460
|
Returns: boolean;
|
|
3403
4461
|
};
|
|
3404
|
-
|
|
4462
|
+
rbac_check_permission_no_password_policy: {
|
|
3405
4463
|
Args: {
|
|
3406
|
-
|
|
4464
|
+
p_app_id?: string;
|
|
4465
|
+
p_channel_id?: number;
|
|
4466
|
+
p_org_id?: string;
|
|
4467
|
+
p_permission_key: string;
|
|
3407
4468
|
};
|
|
3408
4469
|
Returns: boolean;
|
|
3409
4470
|
};
|
|
3410
|
-
|
|
4471
|
+
rbac_check_permission_request: {
|
|
3411
4472
|
Args: {
|
|
3412
|
-
|
|
3413
|
-
|
|
4473
|
+
p_app_id?: string;
|
|
4474
|
+
p_channel_id?: number;
|
|
4475
|
+
p_org_id?: string;
|
|
4476
|
+
p_permission_key: string;
|
|
3414
4477
|
};
|
|
3415
4478
|
Returns: boolean;
|
|
3416
4479
|
};
|
|
3417
|
-
|
|
3418
|
-
Args: never;
|
|
3419
|
-
Returns: undefined;
|
|
3420
|
-
};
|
|
3421
|
-
rescind_invitation: {
|
|
4480
|
+
rbac_enable_for_org: {
|
|
3422
4481
|
Args: {
|
|
3423
|
-
|
|
3424
|
-
|
|
4482
|
+
p_granted_by?: string;
|
|
4483
|
+
p_org_id: string;
|
|
3425
4484
|
};
|
|
3426
|
-
Returns:
|
|
4485
|
+
Returns: import("./types/supabase.types").Json;
|
|
3427
4486
|
};
|
|
3428
|
-
|
|
4487
|
+
rbac_has_permission: {
|
|
3429
4488
|
Args: {
|
|
3430
|
-
|
|
4489
|
+
p_app_id: string;
|
|
4490
|
+
p_channel_id: number;
|
|
3431
4491
|
p_org_id: string;
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3435
|
-
cached_at: string;
|
|
3436
|
-
end_date: string;
|
|
3437
|
-
id: number;
|
|
3438
|
-
org_id: string;
|
|
3439
|
-
response: import("./types/supabase.types").Json;
|
|
3440
|
-
start_date: string;
|
|
3441
|
-
};
|
|
3442
|
-
SetofOptions: {
|
|
3443
|
-
from: "*";
|
|
3444
|
-
to: "app_metrics_cache";
|
|
3445
|
-
isOneToOne: true;
|
|
3446
|
-
isSetofReturn: false;
|
|
4492
|
+
p_permission_key: string;
|
|
4493
|
+
p_principal_id: string;
|
|
4494
|
+
p_principal_type: string;
|
|
3447
4495
|
};
|
|
4496
|
+
Returns: boolean;
|
|
3448
4497
|
};
|
|
3449
|
-
|
|
4498
|
+
rbac_is_enabled_for_org: {
|
|
3450
4499
|
Args: {
|
|
3451
|
-
|
|
3452
|
-
org_id: string;
|
|
4500
|
+
p_org_id: string;
|
|
3453
4501
|
};
|
|
3454
|
-
Returns:
|
|
4502
|
+
Returns: boolean;
|
|
3455
4503
|
};
|
|
3456
|
-
|
|
4504
|
+
rbac_legacy_right_for_org_role: {
|
|
3457
4505
|
Args: {
|
|
3458
|
-
|
|
3459
|
-
org_id: string;
|
|
4506
|
+
p_role_name: string;
|
|
3460
4507
|
};
|
|
3461
|
-
Returns:
|
|
4508
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3462
4509
|
};
|
|
3463
|
-
|
|
4510
|
+
rbac_legacy_right_for_permission: {
|
|
3464
4511
|
Args: {
|
|
3465
|
-
|
|
3466
|
-
org_id: string;
|
|
4512
|
+
p_permission_key: string;
|
|
3467
4513
|
};
|
|
3468
|
-
Returns:
|
|
4514
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3469
4515
|
};
|
|
3470
|
-
|
|
4516
|
+
rbac_legacy_role_hint: {
|
|
3471
4517
|
Args: {
|
|
3472
|
-
|
|
3473
|
-
|
|
4518
|
+
p_app_id: string;
|
|
4519
|
+
p_channel_id: number;
|
|
4520
|
+
p_user_right: Database["public"]["Enums"]["user_min_right"];
|
|
3474
4521
|
};
|
|
3475
|
-
Returns:
|
|
4522
|
+
Returns: string;
|
|
3476
4523
|
};
|
|
3477
|
-
|
|
4524
|
+
rbac_migrate_org_users_to_bindings: {
|
|
3478
4525
|
Args: {
|
|
3479
|
-
|
|
3480
|
-
p_expires_at?: string;
|
|
3481
|
-
p_notes?: string;
|
|
4526
|
+
p_granted_by?: string;
|
|
3482
4527
|
p_org_id: string;
|
|
3483
|
-
p_source?: string;
|
|
3484
|
-
p_source_ref?: import("./types/supabase.types").Json;
|
|
3485
4528
|
};
|
|
3486
|
-
Returns:
|
|
3487
|
-
available_credits: number;
|
|
3488
|
-
grant_id: string;
|
|
3489
|
-
next_expiration: string;
|
|
3490
|
-
total_credits: number;
|
|
3491
|
-
transaction_id: number;
|
|
3492
|
-
}[];
|
|
4529
|
+
Returns: import("./types/supabase.types").Json;
|
|
3493
4530
|
};
|
|
3494
|
-
|
|
4531
|
+
rbac_perm_app_build_native: {
|
|
3495
4532
|
Args: never;
|
|
3496
|
-
Returns:
|
|
3497
|
-
};
|
|
3498
|
-
transfer_app: {
|
|
3499
|
-
Args: {
|
|
3500
|
-
p_app_id: string;
|
|
3501
|
-
p_new_org_id: string;
|
|
3502
|
-
};
|
|
3503
|
-
Returns: undefined;
|
|
4533
|
+
Returns: string;
|
|
3504
4534
|
};
|
|
3505
|
-
|
|
3506
|
-
Args:
|
|
3507
|
-
|
|
3508
|
-
};
|
|
3509
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4535
|
+
rbac_perm_app_create_channel: {
|
|
4536
|
+
Args: never;
|
|
4537
|
+
Returns: string;
|
|
3510
4538
|
};
|
|
3511
|
-
|
|
3512
|
-
Args:
|
|
3513
|
-
|
|
3514
|
-
};
|
|
3515
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4539
|
+
rbac_perm_app_delete: {
|
|
4540
|
+
Args: never;
|
|
4541
|
+
Returns: string;
|
|
3516
4542
|
};
|
|
3517
|
-
|
|
4543
|
+
rbac_perm_app_manage_devices: {
|
|
3518
4544
|
Args: never;
|
|
3519
|
-
Returns:
|
|
4545
|
+
Returns: string;
|
|
4546
|
+
};
|
|
4547
|
+
rbac_perm_app_read: {
|
|
4548
|
+
Args: never;
|
|
4549
|
+
Returns: string;
|
|
4550
|
+
};
|
|
4551
|
+
rbac_perm_app_read_audit: {
|
|
4552
|
+
Args: never;
|
|
4553
|
+
Returns: string;
|
|
4554
|
+
};
|
|
4555
|
+
rbac_perm_app_read_bundles: {
|
|
4556
|
+
Args: never;
|
|
4557
|
+
Returns: string;
|
|
4558
|
+
};
|
|
4559
|
+
rbac_perm_app_read_channels: {
|
|
4560
|
+
Args: never;
|
|
4561
|
+
Returns: string;
|
|
4562
|
+
};
|
|
4563
|
+
rbac_perm_app_read_devices: {
|
|
4564
|
+
Args: never;
|
|
4565
|
+
Returns: string;
|
|
4566
|
+
};
|
|
4567
|
+
rbac_perm_app_read_logs: {
|
|
4568
|
+
Args: never;
|
|
4569
|
+
Returns: string;
|
|
4570
|
+
};
|
|
4571
|
+
rbac_perm_app_transfer: {
|
|
4572
|
+
Args: never;
|
|
4573
|
+
Returns: string;
|
|
4574
|
+
};
|
|
4575
|
+
rbac_perm_app_update_settings: {
|
|
4576
|
+
Args: never;
|
|
4577
|
+
Returns: string;
|
|
4578
|
+
};
|
|
4579
|
+
rbac_perm_app_update_user_roles: {
|
|
4580
|
+
Args: never;
|
|
4581
|
+
Returns: string;
|
|
4582
|
+
};
|
|
4583
|
+
rbac_perm_app_upload_bundle: {
|
|
4584
|
+
Args: never;
|
|
4585
|
+
Returns: string;
|
|
4586
|
+
};
|
|
4587
|
+
rbac_perm_bundle_delete: {
|
|
4588
|
+
Args: never;
|
|
4589
|
+
Returns: string;
|
|
4590
|
+
};
|
|
4591
|
+
rbac_perm_bundle_read: {
|
|
4592
|
+
Args: never;
|
|
4593
|
+
Returns: string;
|
|
4594
|
+
};
|
|
4595
|
+
rbac_perm_bundle_update: {
|
|
4596
|
+
Args: never;
|
|
4597
|
+
Returns: string;
|
|
4598
|
+
};
|
|
4599
|
+
rbac_perm_channel_delete: {
|
|
4600
|
+
Args: never;
|
|
4601
|
+
Returns: string;
|
|
4602
|
+
};
|
|
4603
|
+
rbac_perm_channel_manage_forced_devices: {
|
|
4604
|
+
Args: never;
|
|
4605
|
+
Returns: string;
|
|
4606
|
+
};
|
|
4607
|
+
rbac_perm_channel_promote_bundle: {
|
|
4608
|
+
Args: never;
|
|
4609
|
+
Returns: string;
|
|
4610
|
+
};
|
|
4611
|
+
rbac_perm_channel_read: {
|
|
4612
|
+
Args: never;
|
|
4613
|
+
Returns: string;
|
|
4614
|
+
};
|
|
4615
|
+
rbac_perm_channel_read_audit: {
|
|
4616
|
+
Args: never;
|
|
4617
|
+
Returns: string;
|
|
4618
|
+
};
|
|
4619
|
+
rbac_perm_channel_read_forced_devices: {
|
|
4620
|
+
Args: never;
|
|
4621
|
+
Returns: string;
|
|
4622
|
+
};
|
|
4623
|
+
rbac_perm_channel_read_history: {
|
|
4624
|
+
Args: never;
|
|
4625
|
+
Returns: string;
|
|
4626
|
+
};
|
|
4627
|
+
rbac_perm_channel_rollback_bundle: {
|
|
4628
|
+
Args: never;
|
|
4629
|
+
Returns: string;
|
|
4630
|
+
};
|
|
4631
|
+
rbac_perm_channel_update_settings: {
|
|
4632
|
+
Args: never;
|
|
4633
|
+
Returns: string;
|
|
4634
|
+
};
|
|
4635
|
+
rbac_perm_org_create_app: {
|
|
4636
|
+
Args: never;
|
|
4637
|
+
Returns: string;
|
|
4638
|
+
};
|
|
4639
|
+
rbac_perm_org_delete: {
|
|
4640
|
+
Args: never;
|
|
4641
|
+
Returns: string;
|
|
4642
|
+
};
|
|
4643
|
+
rbac_perm_org_invite_user: {
|
|
4644
|
+
Args: never;
|
|
4645
|
+
Returns: string;
|
|
4646
|
+
};
|
|
4647
|
+
rbac_perm_org_read: {
|
|
4648
|
+
Args: never;
|
|
4649
|
+
Returns: string;
|
|
4650
|
+
};
|
|
4651
|
+
rbac_perm_org_read_audit: {
|
|
4652
|
+
Args: never;
|
|
4653
|
+
Returns: string;
|
|
4654
|
+
};
|
|
4655
|
+
rbac_perm_org_read_billing: {
|
|
4656
|
+
Args: never;
|
|
4657
|
+
Returns: string;
|
|
4658
|
+
};
|
|
4659
|
+
rbac_perm_org_read_billing_audit: {
|
|
4660
|
+
Args: never;
|
|
4661
|
+
Returns: string;
|
|
4662
|
+
};
|
|
4663
|
+
rbac_perm_org_read_invoices: {
|
|
4664
|
+
Args: never;
|
|
4665
|
+
Returns: string;
|
|
4666
|
+
};
|
|
4667
|
+
rbac_perm_org_read_members: {
|
|
4668
|
+
Args: never;
|
|
4669
|
+
Returns: string;
|
|
4670
|
+
};
|
|
4671
|
+
rbac_perm_org_update_billing: {
|
|
4672
|
+
Args: never;
|
|
4673
|
+
Returns: string;
|
|
4674
|
+
};
|
|
4675
|
+
rbac_perm_org_update_settings: {
|
|
4676
|
+
Args: never;
|
|
4677
|
+
Returns: string;
|
|
4678
|
+
};
|
|
4679
|
+
rbac_perm_org_update_user_roles: {
|
|
4680
|
+
Args: never;
|
|
4681
|
+
Returns: string;
|
|
4682
|
+
};
|
|
4683
|
+
rbac_perm_platform_db_break_glass: {
|
|
4684
|
+
Args: never;
|
|
4685
|
+
Returns: string;
|
|
4686
|
+
};
|
|
4687
|
+
rbac_perm_platform_delete_orphan_users: {
|
|
4688
|
+
Args: never;
|
|
4689
|
+
Returns: string;
|
|
4690
|
+
};
|
|
4691
|
+
rbac_perm_platform_impersonate_user: {
|
|
4692
|
+
Args: never;
|
|
4693
|
+
Returns: string;
|
|
4694
|
+
};
|
|
4695
|
+
rbac_perm_platform_manage_apps_any: {
|
|
4696
|
+
Args: never;
|
|
4697
|
+
Returns: string;
|
|
4698
|
+
};
|
|
4699
|
+
rbac_perm_platform_manage_channels_any: {
|
|
4700
|
+
Args: never;
|
|
4701
|
+
Returns: string;
|
|
4702
|
+
};
|
|
4703
|
+
rbac_perm_platform_manage_orgs_any: {
|
|
4704
|
+
Args: never;
|
|
4705
|
+
Returns: string;
|
|
4706
|
+
};
|
|
4707
|
+
rbac_perm_platform_read_all_audit: {
|
|
4708
|
+
Args: never;
|
|
4709
|
+
Returns: string;
|
|
4710
|
+
};
|
|
4711
|
+
rbac_perm_platform_run_maintenance_jobs: {
|
|
4712
|
+
Args: never;
|
|
4713
|
+
Returns: string;
|
|
4714
|
+
};
|
|
4715
|
+
rbac_permission_for_legacy: {
|
|
4716
|
+
Args: {
|
|
4717
|
+
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
4718
|
+
p_scope: string;
|
|
4719
|
+
};
|
|
4720
|
+
Returns: string;
|
|
4721
|
+
};
|
|
4722
|
+
rbac_preview_migration: {
|
|
4723
|
+
Args: {
|
|
4724
|
+
p_org_id: string;
|
|
4725
|
+
};
|
|
4726
|
+
Returns: {
|
|
4727
|
+
app_id: string;
|
|
4728
|
+
channel_id: number;
|
|
4729
|
+
org_user_id: number;
|
|
4730
|
+
scope_type: string;
|
|
4731
|
+
skip_reason: string;
|
|
4732
|
+
suggested_role: string;
|
|
4733
|
+
user_id: string;
|
|
4734
|
+
user_right: string;
|
|
4735
|
+
will_migrate: boolean;
|
|
4736
|
+
}[];
|
|
4737
|
+
};
|
|
4738
|
+
rbac_principal_apikey: {
|
|
4739
|
+
Args: never;
|
|
4740
|
+
Returns: string;
|
|
4741
|
+
};
|
|
4742
|
+
rbac_principal_group: {
|
|
4743
|
+
Args: never;
|
|
4744
|
+
Returns: string;
|
|
4745
|
+
};
|
|
4746
|
+
rbac_principal_user: {
|
|
4747
|
+
Args: never;
|
|
4748
|
+
Returns: string;
|
|
4749
|
+
};
|
|
4750
|
+
rbac_right_admin: {
|
|
4751
|
+
Args: never;
|
|
4752
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4753
|
+
};
|
|
4754
|
+
rbac_right_invite_admin: {
|
|
4755
|
+
Args: never;
|
|
4756
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4757
|
+
};
|
|
4758
|
+
rbac_right_invite_super_admin: {
|
|
4759
|
+
Args: never;
|
|
4760
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4761
|
+
};
|
|
4762
|
+
rbac_right_invite_upload: {
|
|
4763
|
+
Args: never;
|
|
4764
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4765
|
+
};
|
|
4766
|
+
rbac_right_invite_write: {
|
|
4767
|
+
Args: never;
|
|
4768
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4769
|
+
};
|
|
4770
|
+
rbac_right_read: {
|
|
4771
|
+
Args: never;
|
|
4772
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4773
|
+
};
|
|
4774
|
+
rbac_right_super_admin: {
|
|
4775
|
+
Args: never;
|
|
4776
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4777
|
+
};
|
|
4778
|
+
rbac_right_upload: {
|
|
4779
|
+
Args: never;
|
|
4780
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4781
|
+
};
|
|
4782
|
+
rbac_right_write: {
|
|
4783
|
+
Args: never;
|
|
4784
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4785
|
+
};
|
|
4786
|
+
rbac_role_app_admin: {
|
|
4787
|
+
Args: never;
|
|
4788
|
+
Returns: string;
|
|
4789
|
+
};
|
|
4790
|
+
rbac_role_app_developer: {
|
|
4791
|
+
Args: never;
|
|
4792
|
+
Returns: string;
|
|
4793
|
+
};
|
|
4794
|
+
rbac_role_app_reader: {
|
|
4795
|
+
Args: never;
|
|
4796
|
+
Returns: string;
|
|
4797
|
+
};
|
|
4798
|
+
rbac_role_app_uploader: {
|
|
4799
|
+
Args: never;
|
|
4800
|
+
Returns: string;
|
|
4801
|
+
};
|
|
4802
|
+
rbac_role_bundle_admin: {
|
|
4803
|
+
Args: never;
|
|
4804
|
+
Returns: string;
|
|
4805
|
+
};
|
|
4806
|
+
rbac_role_bundle_reader: {
|
|
4807
|
+
Args: never;
|
|
4808
|
+
Returns: string;
|
|
4809
|
+
};
|
|
4810
|
+
rbac_role_channel_admin: {
|
|
4811
|
+
Args: never;
|
|
4812
|
+
Returns: string;
|
|
4813
|
+
};
|
|
4814
|
+
rbac_role_channel_reader: {
|
|
4815
|
+
Args: never;
|
|
4816
|
+
Returns: string;
|
|
4817
|
+
};
|
|
4818
|
+
rbac_role_org_admin: {
|
|
4819
|
+
Args: never;
|
|
4820
|
+
Returns: string;
|
|
4821
|
+
};
|
|
4822
|
+
rbac_role_org_billing_admin: {
|
|
4823
|
+
Args: never;
|
|
4824
|
+
Returns: string;
|
|
4825
|
+
};
|
|
4826
|
+
rbac_role_org_member: {
|
|
4827
|
+
Args: never;
|
|
4828
|
+
Returns: string;
|
|
4829
|
+
};
|
|
4830
|
+
rbac_role_org_super_admin: {
|
|
4831
|
+
Args: never;
|
|
4832
|
+
Returns: string;
|
|
4833
|
+
};
|
|
4834
|
+
rbac_role_platform_super_admin: {
|
|
4835
|
+
Args: never;
|
|
4836
|
+
Returns: string;
|
|
4837
|
+
};
|
|
4838
|
+
rbac_rollback_org: {
|
|
4839
|
+
Args: {
|
|
4840
|
+
p_org_id: string;
|
|
4841
|
+
};
|
|
4842
|
+
Returns: import("./types/supabase.types").Json;
|
|
4843
|
+
};
|
|
4844
|
+
rbac_scope_app: {
|
|
4845
|
+
Args: never;
|
|
4846
|
+
Returns: string;
|
|
4847
|
+
};
|
|
4848
|
+
rbac_scope_bundle: {
|
|
4849
|
+
Args: never;
|
|
4850
|
+
Returns: string;
|
|
4851
|
+
};
|
|
4852
|
+
rbac_scope_channel: {
|
|
4853
|
+
Args: never;
|
|
4854
|
+
Returns: string;
|
|
4855
|
+
};
|
|
4856
|
+
rbac_scope_org: {
|
|
4857
|
+
Args: never;
|
|
4858
|
+
Returns: string;
|
|
4859
|
+
};
|
|
4860
|
+
rbac_scope_platform: {
|
|
4861
|
+
Args: never;
|
|
4862
|
+
Returns: string;
|
|
4863
|
+
};
|
|
4864
|
+
read_bandwidth_usage: {
|
|
4865
|
+
Args: {
|
|
4866
|
+
p_app_id: string;
|
|
4867
|
+
p_period_end: string;
|
|
4868
|
+
p_period_start: string;
|
|
4869
|
+
};
|
|
4870
|
+
Returns: {
|
|
4871
|
+
app_id: string;
|
|
4872
|
+
bandwidth: number;
|
|
4873
|
+
date: string;
|
|
4874
|
+
}[];
|
|
4875
|
+
};
|
|
4876
|
+
read_device_usage: {
|
|
4877
|
+
Args: {
|
|
4878
|
+
p_app_id: string;
|
|
4879
|
+
p_period_end: string;
|
|
4880
|
+
p_period_start: string;
|
|
4881
|
+
};
|
|
4882
|
+
Returns: {
|
|
4883
|
+
app_id: string;
|
|
4884
|
+
date: string;
|
|
4885
|
+
mau: number;
|
|
4886
|
+
}[];
|
|
4887
|
+
};
|
|
4888
|
+
read_storage_usage: {
|
|
4889
|
+
Args: {
|
|
4890
|
+
p_app_id: string;
|
|
4891
|
+
p_period_end: string;
|
|
4892
|
+
p_period_start: string;
|
|
4893
|
+
};
|
|
4894
|
+
Returns: {
|
|
4895
|
+
app_id: string;
|
|
4896
|
+
date: string;
|
|
4897
|
+
storage: number;
|
|
4898
|
+
}[];
|
|
4899
|
+
};
|
|
4900
|
+
read_version_usage: {
|
|
4901
|
+
Args: {
|
|
4902
|
+
p_app_id: string;
|
|
4903
|
+
p_period_end: string;
|
|
4904
|
+
p_period_start: string;
|
|
4905
|
+
};
|
|
4906
|
+
Returns: {
|
|
4907
|
+
app_id: string;
|
|
4908
|
+
date: string;
|
|
4909
|
+
fail: number;
|
|
4910
|
+
get: number;
|
|
4911
|
+
install: number;
|
|
4912
|
+
uninstall: number;
|
|
4913
|
+
version_name: string;
|
|
4914
|
+
}[];
|
|
4915
|
+
};
|
|
4916
|
+
record_build_time: {
|
|
4917
|
+
Args: {
|
|
4918
|
+
p_app_id: string;
|
|
4919
|
+
p_build_id: string;
|
|
4920
|
+
p_build_time_unit: number;
|
|
4921
|
+
p_org_id: string;
|
|
4922
|
+
p_platform: string;
|
|
4923
|
+
p_user_id: string;
|
|
4924
|
+
};
|
|
4925
|
+
Returns: string;
|
|
4926
|
+
};
|
|
4927
|
+
record_email_otp_verified: {
|
|
4928
|
+
Args: {
|
|
4929
|
+
p_user_id: string;
|
|
4930
|
+
};
|
|
4931
|
+
Returns: string;
|
|
4932
|
+
};
|
|
4933
|
+
refresh_orgs_has_usage_credits: {
|
|
4934
|
+
Args: never;
|
|
4935
|
+
Returns: undefined;
|
|
4936
|
+
};
|
|
4937
|
+
regenerate_hashed_apikey: {
|
|
4938
|
+
Args: {
|
|
4939
|
+
p_apikey_id: number;
|
|
4940
|
+
};
|
|
4941
|
+
Returns: {
|
|
4942
|
+
created_at: string | null;
|
|
4943
|
+
expires_at: string | null;
|
|
4944
|
+
id: number;
|
|
4945
|
+
key: string | null;
|
|
4946
|
+
key_hash: string | null;
|
|
4947
|
+
limited_to_apps: string[] | null;
|
|
4948
|
+
limited_to_orgs: string[] | null;
|
|
4949
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4950
|
+
name: string;
|
|
4951
|
+
rbac_id: string;
|
|
4952
|
+
updated_at: string | null;
|
|
4953
|
+
user_id: string;
|
|
4954
|
+
};
|
|
4955
|
+
SetofOptions: {
|
|
4956
|
+
from: "*";
|
|
4957
|
+
to: "apikeys";
|
|
4958
|
+
isOneToOne: true;
|
|
4959
|
+
isSetofReturn: false;
|
|
4960
|
+
};
|
|
4961
|
+
};
|
|
4962
|
+
regenerate_hashed_apikey_for_user: {
|
|
4963
|
+
Args: {
|
|
4964
|
+
p_apikey_id: number;
|
|
4965
|
+
p_user_id: string;
|
|
4966
|
+
};
|
|
4967
|
+
Returns: {
|
|
4968
|
+
created_at: string | null;
|
|
4969
|
+
expires_at: string | null;
|
|
4970
|
+
id: number;
|
|
4971
|
+
key: string | null;
|
|
4972
|
+
key_hash: string | null;
|
|
4973
|
+
limited_to_apps: string[] | null;
|
|
4974
|
+
limited_to_orgs: string[] | null;
|
|
4975
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4976
|
+
name: string;
|
|
4977
|
+
rbac_id: string;
|
|
4978
|
+
updated_at: string | null;
|
|
4979
|
+
user_id: string;
|
|
4980
|
+
};
|
|
4981
|
+
SetofOptions: {
|
|
4982
|
+
from: "*";
|
|
4983
|
+
to: "apikeys";
|
|
4984
|
+
isOneToOne: true;
|
|
4985
|
+
isSetofReturn: false;
|
|
4986
|
+
};
|
|
4987
|
+
};
|
|
4988
|
+
reject_access_due_to_2fa: {
|
|
4989
|
+
Args: {
|
|
4990
|
+
org_id: string;
|
|
4991
|
+
user_id: string;
|
|
4992
|
+
};
|
|
4993
|
+
Returns: boolean;
|
|
4994
|
+
};
|
|
4995
|
+
reject_access_due_to_2fa_for_app: {
|
|
4996
|
+
Args: {
|
|
4997
|
+
app_id: string;
|
|
4998
|
+
};
|
|
4999
|
+
Returns: boolean;
|
|
5000
|
+
};
|
|
5001
|
+
reject_access_due_to_2fa_for_org: {
|
|
5002
|
+
Args: {
|
|
5003
|
+
org_id: string;
|
|
5004
|
+
};
|
|
5005
|
+
Returns: boolean;
|
|
5006
|
+
};
|
|
5007
|
+
reject_access_due_to_password_policy: {
|
|
5008
|
+
Args: {
|
|
5009
|
+
org_id: string;
|
|
5010
|
+
user_id: string;
|
|
5011
|
+
};
|
|
5012
|
+
Returns: boolean;
|
|
5013
|
+
};
|
|
5014
|
+
remove_old_jobs: {
|
|
5015
|
+
Args: never;
|
|
5016
|
+
Returns: undefined;
|
|
5017
|
+
};
|
|
5018
|
+
request_app_chart_refresh: {
|
|
5019
|
+
Args: {
|
|
5020
|
+
app_id: string;
|
|
5021
|
+
};
|
|
5022
|
+
Returns: {
|
|
5023
|
+
queued_app_ids: string[];
|
|
5024
|
+
queued_count: number;
|
|
5025
|
+
requested_at: string;
|
|
5026
|
+
skipped_count: number;
|
|
5027
|
+
}[];
|
|
5028
|
+
};
|
|
5029
|
+
request_has_app_read_access: {
|
|
5030
|
+
Args: {
|
|
5031
|
+
appid: string;
|
|
5032
|
+
orgid: string;
|
|
5033
|
+
};
|
|
5034
|
+
Returns: boolean;
|
|
5035
|
+
};
|
|
5036
|
+
request_has_org_read_access: {
|
|
5037
|
+
Args: {
|
|
5038
|
+
orgid: string;
|
|
5039
|
+
};
|
|
5040
|
+
Returns: boolean;
|
|
5041
|
+
};
|
|
5042
|
+
request_org_chart_refresh: {
|
|
5043
|
+
Args: {
|
|
5044
|
+
org_id: string;
|
|
5045
|
+
};
|
|
5046
|
+
Returns: {
|
|
5047
|
+
queued_app_ids: string[];
|
|
5048
|
+
queued_count: number;
|
|
5049
|
+
requested_at: string;
|
|
5050
|
+
skipped_count: number;
|
|
5051
|
+
}[];
|
|
5052
|
+
};
|
|
5053
|
+
request_read_key_modes: {
|
|
5054
|
+
Args: never;
|
|
5055
|
+
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5056
|
+
};
|
|
5057
|
+
rescind_invitation: {
|
|
5058
|
+
Args: {
|
|
5059
|
+
email: string;
|
|
5060
|
+
org_id: string;
|
|
5061
|
+
};
|
|
5062
|
+
Returns: string;
|
|
5063
|
+
};
|
|
5064
|
+
restore_deleted_account: {
|
|
5065
|
+
Args: never;
|
|
5066
|
+
Returns: undefined;
|
|
5067
|
+
};
|
|
5068
|
+
resync_org_user_role_bindings: {
|
|
5069
|
+
Args: {
|
|
5070
|
+
p_org_id: string;
|
|
5071
|
+
p_user_id: string;
|
|
5072
|
+
};
|
|
5073
|
+
Returns: undefined;
|
|
5074
|
+
};
|
|
5075
|
+
seed_get_app_metrics_caches: {
|
|
5076
|
+
Args: {
|
|
5077
|
+
p_end_date: string;
|
|
5078
|
+
p_org_id: string;
|
|
5079
|
+
p_start_date: string;
|
|
5080
|
+
};
|
|
5081
|
+
Returns: {
|
|
5082
|
+
cached_at: string;
|
|
5083
|
+
end_date: string;
|
|
5084
|
+
id: number;
|
|
5085
|
+
org_id: string;
|
|
5086
|
+
response: import("./types/supabase.types").Json;
|
|
5087
|
+
start_date: string;
|
|
5088
|
+
};
|
|
5089
|
+
SetofOptions: {
|
|
5090
|
+
from: "*";
|
|
5091
|
+
to: "app_metrics_cache";
|
|
5092
|
+
isOneToOne: true;
|
|
5093
|
+
isSetofReturn: false;
|
|
5094
|
+
};
|
|
5095
|
+
};
|
|
5096
|
+
seed_org_metrics_cache: {
|
|
5097
|
+
Args: {
|
|
5098
|
+
p_end_date: string;
|
|
5099
|
+
p_org_id: string;
|
|
5100
|
+
p_start_date: string;
|
|
5101
|
+
};
|
|
5102
|
+
Returns: {
|
|
5103
|
+
bandwidth: number;
|
|
5104
|
+
build_time_unit: number;
|
|
5105
|
+
cached_at: string;
|
|
5106
|
+
end_date: string;
|
|
5107
|
+
fail: number;
|
|
5108
|
+
get: number;
|
|
5109
|
+
install: number;
|
|
5110
|
+
mau: number;
|
|
5111
|
+
org_id: string;
|
|
5112
|
+
start_date: string;
|
|
5113
|
+
storage: number;
|
|
5114
|
+
uninstall: number;
|
|
5115
|
+
};
|
|
5116
|
+
SetofOptions: {
|
|
5117
|
+
from: "*";
|
|
5118
|
+
to: "org_metrics_cache";
|
|
5119
|
+
isOneToOne: true;
|
|
5120
|
+
isSetofReturn: false;
|
|
5121
|
+
};
|
|
5122
|
+
};
|
|
5123
|
+
set_build_time_exceeded_by_org: {
|
|
5124
|
+
Args: {
|
|
5125
|
+
disabled: boolean;
|
|
5126
|
+
org_id: string;
|
|
5127
|
+
};
|
|
5128
|
+
Returns: undefined;
|
|
5129
|
+
};
|
|
5130
|
+
strip_html: {
|
|
5131
|
+
Args: {
|
|
5132
|
+
input: string;
|
|
5133
|
+
};
|
|
5134
|
+
Returns: string;
|
|
5135
|
+
};
|
|
5136
|
+
top_up_usage_credits: {
|
|
5137
|
+
Args: {
|
|
5138
|
+
p_amount: number;
|
|
5139
|
+
p_expires_at?: string;
|
|
5140
|
+
p_notes?: string;
|
|
5141
|
+
p_org_id: string;
|
|
5142
|
+
p_source?: string;
|
|
5143
|
+
p_source_ref?: import("./types/supabase.types").Json;
|
|
5144
|
+
};
|
|
5145
|
+
Returns: {
|
|
5146
|
+
available_credits: number;
|
|
5147
|
+
grant_id: string;
|
|
5148
|
+
next_expiration: string;
|
|
5149
|
+
total_credits: number;
|
|
5150
|
+
transaction_id: number;
|
|
5151
|
+
}[];
|
|
5152
|
+
};
|
|
5153
|
+
total_bundle_storage_bytes: {
|
|
5154
|
+
Args: never;
|
|
5155
|
+
Returns: number;
|
|
5156
|
+
};
|
|
5157
|
+
transfer_app: {
|
|
5158
|
+
Args: {
|
|
5159
|
+
p_app_id: string;
|
|
5160
|
+
p_new_org_id: string;
|
|
5161
|
+
};
|
|
5162
|
+
Returns: undefined;
|
|
5163
|
+
};
|
|
5164
|
+
transform_role_to_invite: {
|
|
5165
|
+
Args: {
|
|
5166
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5167
|
+
};
|
|
5168
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5169
|
+
};
|
|
5170
|
+
transform_role_to_non_invite: {
|
|
5171
|
+
Args: {
|
|
5172
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5173
|
+
};
|
|
5174
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5175
|
+
};
|
|
5176
|
+
update_app_versions_retention: {
|
|
5177
|
+
Args: never;
|
|
5178
|
+
Returns: undefined;
|
|
5179
|
+
};
|
|
5180
|
+
update_org_invite_role_rbac: {
|
|
5181
|
+
Args: {
|
|
5182
|
+
p_new_role_name: string;
|
|
5183
|
+
p_org_id: string;
|
|
5184
|
+
p_user_id: string;
|
|
5185
|
+
};
|
|
5186
|
+
Returns: string;
|
|
5187
|
+
};
|
|
5188
|
+
update_org_member_role: {
|
|
5189
|
+
Args: {
|
|
5190
|
+
p_new_role_name: string;
|
|
5191
|
+
p_org_id: string;
|
|
5192
|
+
p_user_id: string;
|
|
5193
|
+
};
|
|
5194
|
+
Returns: string;
|
|
5195
|
+
};
|
|
5196
|
+
update_tmp_invite_role_rbac: {
|
|
5197
|
+
Args: {
|
|
5198
|
+
p_email: string;
|
|
5199
|
+
p_new_role_name: string;
|
|
5200
|
+
p_org_id: string;
|
|
5201
|
+
};
|
|
5202
|
+
Returns: string;
|
|
3520
5203
|
};
|
|
3521
5204
|
upsert_version_meta: {
|
|
3522
5205
|
Args: {
|
|
@@ -3526,6 +5209,20 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3526
5209
|
};
|
|
3527
5210
|
Returns: boolean;
|
|
3528
5211
|
};
|
|
5212
|
+
user_has_app_update_user_roles: {
|
|
5213
|
+
Args: {
|
|
5214
|
+
p_app_id: string;
|
|
5215
|
+
p_user_id: string;
|
|
5216
|
+
};
|
|
5217
|
+
Returns: boolean;
|
|
5218
|
+
};
|
|
5219
|
+
user_has_role_in_app: {
|
|
5220
|
+
Args: {
|
|
5221
|
+
p_app_id: string;
|
|
5222
|
+
p_user_id: string;
|
|
5223
|
+
};
|
|
5224
|
+
Returns: boolean;
|
|
5225
|
+
};
|
|
3529
5226
|
user_meets_password_policy: {
|
|
3530
5227
|
Args: {
|
|
3531
5228
|
org_id: string;
|
|
@@ -3552,8 +5249,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3552
5249
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
3553
5250
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
3554
5251
|
key_mode: "read" | "write" | "all" | "upload";
|
|
3555
|
-
platform_os: "ios" | "android";
|
|
3556
|
-
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" | "disableProdBuild" | "disableDevice";
|
|
5252
|
+
platform_os: "ios" | "android" | "electron";
|
|
5253
|
+
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" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked";
|
|
3557
5254
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
3558
5255
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
3559
5256
|
user_role: "read" | "upload" | "write" | "admin";
|
|
@@ -3656,11 +5353,13 @@ export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>
|
|
|
3656
5353
|
created_by: string;
|
|
3657
5354
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
3658
5355
|
disable_auto_update_under_native: boolean;
|
|
5356
|
+
electron: boolean;
|
|
3659
5357
|
id: number;
|
|
3660
5358
|
ios: boolean;
|
|
3661
5359
|
name: string;
|
|
3662
5360
|
owner_org: string;
|
|
3663
5361
|
public: boolean;
|
|
5362
|
+
rbac_id: string;
|
|
3664
5363
|
updated_at: string;
|
|
3665
5364
|
version: number;
|
|
3666
5365
|
}>>;
|