@capgo/cli 7.95.4 → 7.95.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +3921 -437
- package/dist/src/api/versions.d.ts +2 -0
- package/dist/src/app/list.d.ts +10 -2
- package/dist/src/bundle/list.d.ts +1 -0
- package/dist/src/channel/add.d.ts +2 -0
- package/dist/src/organization/add.d.ts +6 -0
- package/dist/src/organization/list.d.ts +8 -0
- package/dist/src/sdk.js +1 -1
- package/dist/src/types/supabase.types.d.ts +2029 -238
- package/dist/src/utils.d.ts +1987 -245
- package/package.json +1 -1
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,11 +561,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
540
561
|
user_id?: string | null;
|
|
541
562
|
};
|
|
542
563
|
Relationships: [{
|
|
543
|
-
foreignKeyName: "
|
|
544
|
-
columns: ["
|
|
564
|
+
foreignKeyName: "build_logs_app_id_fkey";
|
|
565
|
+
columns: ["app_id"];
|
|
545
566
|
isOneToOne: false;
|
|
546
|
-
referencedRelation: "
|
|
547
|
-
referencedColumns: ["
|
|
567
|
+
referencedRelation: "apps";
|
|
568
|
+
referencedColumns: ["app_id"];
|
|
548
569
|
}];
|
|
549
570
|
};
|
|
550
571
|
build_requests: {
|
|
@@ -706,6 +727,48 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
706
727
|
referencedColumns: ["id"];
|
|
707
728
|
}];
|
|
708
729
|
};
|
|
730
|
+
channel_permission_overrides: {
|
|
731
|
+
Row: {
|
|
732
|
+
channel_id: number;
|
|
733
|
+
created_at: string;
|
|
734
|
+
id: string;
|
|
735
|
+
is_allowed: boolean;
|
|
736
|
+
permission_key: string;
|
|
737
|
+
principal_id: string;
|
|
738
|
+
principal_type: string;
|
|
739
|
+
};
|
|
740
|
+
Insert: {
|
|
741
|
+
channel_id: number;
|
|
742
|
+
created_at?: string;
|
|
743
|
+
id?: string;
|
|
744
|
+
is_allowed: boolean;
|
|
745
|
+
permission_key: string;
|
|
746
|
+
principal_id: string;
|
|
747
|
+
principal_type: string;
|
|
748
|
+
};
|
|
749
|
+
Update: {
|
|
750
|
+
channel_id?: number;
|
|
751
|
+
created_at?: string;
|
|
752
|
+
id?: string;
|
|
753
|
+
is_allowed?: boolean;
|
|
754
|
+
permission_key?: string;
|
|
755
|
+
principal_id?: string;
|
|
756
|
+
principal_type?: string;
|
|
757
|
+
};
|
|
758
|
+
Relationships: [{
|
|
759
|
+
foreignKeyName: "channel_permission_overrides_channel_id_fkey";
|
|
760
|
+
columns: ["channel_id"];
|
|
761
|
+
isOneToOne: false;
|
|
762
|
+
referencedRelation: "channels";
|
|
763
|
+
referencedColumns: ["id"];
|
|
764
|
+
}, {
|
|
765
|
+
foreignKeyName: "channel_permission_overrides_permission_key_fkey";
|
|
766
|
+
columns: ["permission_key"];
|
|
767
|
+
isOneToOne: false;
|
|
768
|
+
referencedRelation: "permissions";
|
|
769
|
+
referencedColumns: ["key"];
|
|
770
|
+
}];
|
|
771
|
+
};
|
|
709
772
|
channels: {
|
|
710
773
|
Row: {
|
|
711
774
|
allow_dev: boolean;
|
|
@@ -719,11 +782,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
719
782
|
created_by: string;
|
|
720
783
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
721
784
|
disable_auto_update_under_native: boolean;
|
|
785
|
+
electron: boolean;
|
|
722
786
|
id: number;
|
|
723
787
|
ios: boolean;
|
|
724
788
|
name: string;
|
|
725
789
|
owner_org: string;
|
|
726
790
|
public: boolean;
|
|
791
|
+
rbac_id: string;
|
|
727
792
|
updated_at: string;
|
|
728
793
|
version: number;
|
|
729
794
|
};
|
|
@@ -739,11 +804,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
739
804
|
created_by: string;
|
|
740
805
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
741
806
|
disable_auto_update_under_native?: boolean;
|
|
807
|
+
electron?: boolean;
|
|
742
808
|
id?: number;
|
|
743
809
|
ios?: boolean;
|
|
744
810
|
name: string;
|
|
745
811
|
owner_org: string;
|
|
746
812
|
public?: boolean;
|
|
813
|
+
rbac_id?: string;
|
|
747
814
|
updated_at?: string;
|
|
748
815
|
version: number;
|
|
749
816
|
};
|
|
@@ -759,11 +826,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
759
826
|
created_by?: string;
|
|
760
827
|
disable_auto_update?: Database["public"]["Enums"]["disable_update"];
|
|
761
828
|
disable_auto_update_under_native?: boolean;
|
|
829
|
+
electron?: boolean;
|
|
762
830
|
id?: number;
|
|
763
831
|
ios?: boolean;
|
|
764
832
|
name?: string;
|
|
765
833
|
owner_org?: string;
|
|
766
834
|
public?: boolean;
|
|
835
|
+
rbac_id?: string;
|
|
767
836
|
updated_at?: string;
|
|
768
837
|
version?: number;
|
|
769
838
|
};
|
|
@@ -919,6 +988,42 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
919
988
|
};
|
|
920
989
|
Relationships: [];
|
|
921
990
|
};
|
|
991
|
+
daily_revenue_metrics: {
|
|
992
|
+
Row: {
|
|
993
|
+
churn_mrr: number;
|
|
994
|
+
contraction_mrr: number;
|
|
995
|
+
created_at: string;
|
|
996
|
+
customer_id: string;
|
|
997
|
+
date_id: string;
|
|
998
|
+
expansion_mrr: number;
|
|
999
|
+
new_business_mrr: number;
|
|
1000
|
+
opening_mrr: number;
|
|
1001
|
+
updated_at: string;
|
|
1002
|
+
};
|
|
1003
|
+
Insert: {
|
|
1004
|
+
churn_mrr?: number;
|
|
1005
|
+
contraction_mrr?: number;
|
|
1006
|
+
created_at?: string;
|
|
1007
|
+
customer_id: string;
|
|
1008
|
+
date_id: string;
|
|
1009
|
+
expansion_mrr?: number;
|
|
1010
|
+
new_business_mrr?: number;
|
|
1011
|
+
opening_mrr?: number;
|
|
1012
|
+
updated_at?: string;
|
|
1013
|
+
};
|
|
1014
|
+
Update: {
|
|
1015
|
+
churn_mrr?: number;
|
|
1016
|
+
contraction_mrr?: number;
|
|
1017
|
+
created_at?: string;
|
|
1018
|
+
customer_id?: string;
|
|
1019
|
+
date_id?: string;
|
|
1020
|
+
expansion_mrr?: number;
|
|
1021
|
+
new_business_mrr?: number;
|
|
1022
|
+
opening_mrr?: number;
|
|
1023
|
+
updated_at?: string;
|
|
1024
|
+
};
|
|
1025
|
+
Relationships: [];
|
|
1026
|
+
};
|
|
922
1027
|
daily_storage: {
|
|
923
1028
|
Row: {
|
|
924
1029
|
app_id: string;
|
|
@@ -948,7 +1053,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
948
1053
|
get: number | null;
|
|
949
1054
|
install: number | null;
|
|
950
1055
|
uninstall: number | null;
|
|
951
|
-
version_id: number;
|
|
1056
|
+
version_id: number | null;
|
|
1057
|
+
version_name: string;
|
|
952
1058
|
};
|
|
953
1059
|
Insert: {
|
|
954
1060
|
app_id: string;
|
|
@@ -957,7 +1063,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
957
1063
|
get?: number | null;
|
|
958
1064
|
install?: number | null;
|
|
959
1065
|
uninstall?: number | null;
|
|
960
|
-
version_id
|
|
1066
|
+
version_id?: number | null;
|
|
1067
|
+
version_name: string;
|
|
961
1068
|
};
|
|
962
1069
|
Update: {
|
|
963
1070
|
app_id?: string;
|
|
@@ -966,7 +1073,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
966
1073
|
get?: number | null;
|
|
967
1074
|
install?: number | null;
|
|
968
1075
|
uninstall?: number | null;
|
|
969
|
-
version_id?: number;
|
|
1076
|
+
version_id?: number | null;
|
|
1077
|
+
version_name?: string;
|
|
970
1078
|
};
|
|
971
1079
|
Relationships: [];
|
|
972
1080
|
};
|
|
@@ -1157,22 +1265,43 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1157
1265
|
Row: {
|
|
1158
1266
|
apps: number;
|
|
1159
1267
|
apps_active: number | null;
|
|
1268
|
+
build_avg_seconds_day_android: number;
|
|
1269
|
+
build_avg_seconds_day_ios: number;
|
|
1270
|
+
build_count_day_android: number;
|
|
1271
|
+
build_count_day_ios: number;
|
|
1272
|
+
build_total_seconds_day_android: number;
|
|
1273
|
+
build_total_seconds_day_ios: number;
|
|
1274
|
+
builds_android: number | null;
|
|
1275
|
+
builds_ios: number | null;
|
|
1276
|
+
builds_last_month: number | null;
|
|
1277
|
+
builds_last_month_android: number | null;
|
|
1278
|
+
builds_last_month_ios: number | null;
|
|
1279
|
+
builds_success_android: number | null;
|
|
1280
|
+
builds_success_ios: number | null;
|
|
1281
|
+
builds_success_total: number | null;
|
|
1282
|
+
builds_total: number | null;
|
|
1160
1283
|
bundle_storage_gb: number;
|
|
1161
1284
|
canceled_orgs: number;
|
|
1285
|
+
churn_revenue: number;
|
|
1162
1286
|
created_at: string | null;
|
|
1163
1287
|
credits_bought: number;
|
|
1164
1288
|
credits_consumed: number;
|
|
1165
1289
|
date_id: string;
|
|
1290
|
+
demo_apps_created: number;
|
|
1166
1291
|
devices_last_month: number | null;
|
|
1292
|
+
devices_last_month_android: number | null;
|
|
1293
|
+
devices_last_month_ios: number | null;
|
|
1167
1294
|
mrr: number;
|
|
1168
1295
|
need_upgrade: number | null;
|
|
1169
1296
|
new_paying_orgs: number;
|
|
1170
1297
|
not_paying: number | null;
|
|
1298
|
+
nrr: number;
|
|
1171
1299
|
onboarded: number | null;
|
|
1300
|
+
org_conversion_rate: number;
|
|
1172
1301
|
paying: number | null;
|
|
1173
1302
|
paying_monthly: number | null;
|
|
1174
1303
|
paying_yearly: number | null;
|
|
1175
|
-
plan_enterprise: number
|
|
1304
|
+
plan_enterprise: number;
|
|
1176
1305
|
plan_enterprise_monthly: number;
|
|
1177
1306
|
plan_enterprise_yearly: number;
|
|
1178
1307
|
plan_maker: number | null;
|
|
@@ -1184,6 +1313,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1184
1313
|
plan_team: number | null;
|
|
1185
1314
|
plan_team_monthly: number;
|
|
1186
1315
|
plan_team_yearly: number;
|
|
1316
|
+
plugin_major_breakdown: import("./types/supabase.types").Json;
|
|
1317
|
+
plugin_version_breakdown: import("./types/supabase.types").Json;
|
|
1187
1318
|
registers_today: number;
|
|
1188
1319
|
revenue_enterprise: number;
|
|
1189
1320
|
revenue_maker: number;
|
|
@@ -1196,28 +1327,50 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1196
1327
|
updates: number;
|
|
1197
1328
|
updates_external: number | null;
|
|
1198
1329
|
updates_last_month: number | null;
|
|
1330
|
+
upgraded_orgs: number;
|
|
1199
1331
|
users: number | null;
|
|
1200
1332
|
users_active: number | null;
|
|
1201
1333
|
};
|
|
1202
1334
|
Insert: {
|
|
1203
1335
|
apps: number;
|
|
1204
1336
|
apps_active?: number | null;
|
|
1337
|
+
build_avg_seconds_day_android?: number;
|
|
1338
|
+
build_avg_seconds_day_ios?: number;
|
|
1339
|
+
build_count_day_android?: number;
|
|
1340
|
+
build_count_day_ios?: number;
|
|
1341
|
+
build_total_seconds_day_android?: number;
|
|
1342
|
+
build_total_seconds_day_ios?: number;
|
|
1343
|
+
builds_android?: number | null;
|
|
1344
|
+
builds_ios?: number | null;
|
|
1345
|
+
builds_last_month?: number | null;
|
|
1346
|
+
builds_last_month_android?: number | null;
|
|
1347
|
+
builds_last_month_ios?: number | null;
|
|
1348
|
+
builds_success_android?: number | null;
|
|
1349
|
+
builds_success_ios?: number | null;
|
|
1350
|
+
builds_success_total?: number | null;
|
|
1351
|
+
builds_total?: number | null;
|
|
1205
1352
|
bundle_storage_gb?: number;
|
|
1206
1353
|
canceled_orgs?: number;
|
|
1354
|
+
churn_revenue?: number;
|
|
1207
1355
|
created_at?: string | null;
|
|
1208
1356
|
credits_bought?: number;
|
|
1209
1357
|
credits_consumed?: number;
|
|
1210
1358
|
date_id: string;
|
|
1359
|
+
demo_apps_created?: number;
|
|
1211
1360
|
devices_last_month?: number | null;
|
|
1361
|
+
devices_last_month_android?: number | null;
|
|
1362
|
+
devices_last_month_ios?: number | null;
|
|
1212
1363
|
mrr?: number;
|
|
1213
1364
|
need_upgrade?: number | null;
|
|
1214
1365
|
new_paying_orgs?: number;
|
|
1215
1366
|
not_paying?: number | null;
|
|
1367
|
+
nrr?: number;
|
|
1216
1368
|
onboarded?: number | null;
|
|
1369
|
+
org_conversion_rate?: number;
|
|
1217
1370
|
paying?: number | null;
|
|
1218
1371
|
paying_monthly?: number | null;
|
|
1219
1372
|
paying_yearly?: number | null;
|
|
1220
|
-
plan_enterprise?: number
|
|
1373
|
+
plan_enterprise?: number;
|
|
1221
1374
|
plan_enterprise_monthly?: number;
|
|
1222
1375
|
plan_enterprise_yearly?: number;
|
|
1223
1376
|
plan_maker?: number | null;
|
|
@@ -1229,6 +1382,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1229
1382
|
plan_team?: number | null;
|
|
1230
1383
|
plan_team_monthly?: number;
|
|
1231
1384
|
plan_team_yearly?: number;
|
|
1385
|
+
plugin_major_breakdown?: import("./types/supabase.types").Json;
|
|
1386
|
+
plugin_version_breakdown?: import("./types/supabase.types").Json;
|
|
1232
1387
|
registers_today?: number;
|
|
1233
1388
|
revenue_enterprise?: number;
|
|
1234
1389
|
revenue_maker?: number;
|
|
@@ -1241,28 +1396,50 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1241
1396
|
updates: number;
|
|
1242
1397
|
updates_external?: number | null;
|
|
1243
1398
|
updates_last_month?: number | null;
|
|
1399
|
+
upgraded_orgs?: number;
|
|
1244
1400
|
users?: number | null;
|
|
1245
1401
|
users_active?: number | null;
|
|
1246
1402
|
};
|
|
1247
1403
|
Update: {
|
|
1248
1404
|
apps?: number;
|
|
1249
1405
|
apps_active?: number | null;
|
|
1406
|
+
build_avg_seconds_day_android?: number;
|
|
1407
|
+
build_avg_seconds_day_ios?: number;
|
|
1408
|
+
build_count_day_android?: number;
|
|
1409
|
+
build_count_day_ios?: number;
|
|
1410
|
+
build_total_seconds_day_android?: number;
|
|
1411
|
+
build_total_seconds_day_ios?: number;
|
|
1412
|
+
builds_android?: number | null;
|
|
1413
|
+
builds_ios?: number | null;
|
|
1414
|
+
builds_last_month?: number | null;
|
|
1415
|
+
builds_last_month_android?: number | null;
|
|
1416
|
+
builds_last_month_ios?: number | null;
|
|
1417
|
+
builds_success_android?: number | null;
|
|
1418
|
+
builds_success_ios?: number | null;
|
|
1419
|
+
builds_success_total?: number | null;
|
|
1420
|
+
builds_total?: number | null;
|
|
1250
1421
|
bundle_storage_gb?: number;
|
|
1251
1422
|
canceled_orgs?: number;
|
|
1423
|
+
churn_revenue?: number;
|
|
1252
1424
|
created_at?: string | null;
|
|
1253
1425
|
credits_bought?: number;
|
|
1254
1426
|
credits_consumed?: number;
|
|
1255
1427
|
date_id?: string;
|
|
1428
|
+
demo_apps_created?: number;
|
|
1256
1429
|
devices_last_month?: number | null;
|
|
1430
|
+
devices_last_month_android?: number | null;
|
|
1431
|
+
devices_last_month_ios?: number | null;
|
|
1257
1432
|
mrr?: number;
|
|
1258
1433
|
need_upgrade?: number | null;
|
|
1259
1434
|
new_paying_orgs?: number;
|
|
1260
1435
|
not_paying?: number | null;
|
|
1436
|
+
nrr?: number;
|
|
1261
1437
|
onboarded?: number | null;
|
|
1438
|
+
org_conversion_rate?: number;
|
|
1262
1439
|
paying?: number | null;
|
|
1263
1440
|
paying_monthly?: number | null;
|
|
1264
1441
|
paying_yearly?: number | null;
|
|
1265
|
-
plan_enterprise?: number
|
|
1442
|
+
plan_enterprise?: number;
|
|
1266
1443
|
plan_enterprise_monthly?: number;
|
|
1267
1444
|
plan_enterprise_yearly?: number;
|
|
1268
1445
|
plan_maker?: number | null;
|
|
@@ -1274,6 +1451,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1274
1451
|
plan_team?: number | null;
|
|
1275
1452
|
plan_team_monthly?: number;
|
|
1276
1453
|
plan_team_yearly?: number;
|
|
1454
|
+
plugin_major_breakdown?: import("./types/supabase.types").Json;
|
|
1455
|
+
plugin_version_breakdown?: import("./types/supabase.types").Json;
|
|
1277
1456
|
registers_today?: number;
|
|
1278
1457
|
revenue_enterprise?: number;
|
|
1279
1458
|
revenue_maker?: number;
|
|
@@ -1286,11 +1465,81 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1286
1465
|
updates?: number;
|
|
1287
1466
|
updates_external?: number | null;
|
|
1288
1467
|
updates_last_month?: number | null;
|
|
1468
|
+
upgraded_orgs?: number;
|
|
1289
1469
|
users?: number | null;
|
|
1290
1470
|
users_active?: number | null;
|
|
1291
1471
|
};
|
|
1292
1472
|
Relationships: [];
|
|
1293
1473
|
};
|
|
1474
|
+
group_members: {
|
|
1475
|
+
Row: {
|
|
1476
|
+
added_at: string;
|
|
1477
|
+
added_by: string | null;
|
|
1478
|
+
group_id: string;
|
|
1479
|
+
user_id: string;
|
|
1480
|
+
};
|
|
1481
|
+
Insert: {
|
|
1482
|
+
added_at?: string;
|
|
1483
|
+
added_by?: string | null;
|
|
1484
|
+
group_id: string;
|
|
1485
|
+
user_id: string;
|
|
1486
|
+
};
|
|
1487
|
+
Update: {
|
|
1488
|
+
added_at?: string;
|
|
1489
|
+
added_by?: string | null;
|
|
1490
|
+
group_id?: string;
|
|
1491
|
+
user_id?: string;
|
|
1492
|
+
};
|
|
1493
|
+
Relationships: [{
|
|
1494
|
+
foreignKeyName: "group_members_group_id_fkey";
|
|
1495
|
+
columns: ["group_id"];
|
|
1496
|
+
isOneToOne: false;
|
|
1497
|
+
referencedRelation: "groups";
|
|
1498
|
+
referencedColumns: ["id"];
|
|
1499
|
+
}, {
|
|
1500
|
+
foreignKeyName: "group_members_user_id_fkey";
|
|
1501
|
+
columns: ["user_id"];
|
|
1502
|
+
isOneToOne: false;
|
|
1503
|
+
referencedRelation: "users";
|
|
1504
|
+
referencedColumns: ["id"];
|
|
1505
|
+
}];
|
|
1506
|
+
};
|
|
1507
|
+
groups: {
|
|
1508
|
+
Row: {
|
|
1509
|
+
created_at: string;
|
|
1510
|
+
created_by: string | null;
|
|
1511
|
+
description: string | null;
|
|
1512
|
+
id: string;
|
|
1513
|
+
is_system: boolean;
|
|
1514
|
+
name: string;
|
|
1515
|
+
org_id: string;
|
|
1516
|
+
};
|
|
1517
|
+
Insert: {
|
|
1518
|
+
created_at?: string;
|
|
1519
|
+
created_by?: string | null;
|
|
1520
|
+
description?: string | null;
|
|
1521
|
+
id?: string;
|
|
1522
|
+
is_system?: boolean;
|
|
1523
|
+
name: string;
|
|
1524
|
+
org_id: string;
|
|
1525
|
+
};
|
|
1526
|
+
Update: {
|
|
1527
|
+
created_at?: string;
|
|
1528
|
+
created_by?: string | null;
|
|
1529
|
+
description?: string | null;
|
|
1530
|
+
id?: string;
|
|
1531
|
+
is_system?: boolean;
|
|
1532
|
+
name?: string;
|
|
1533
|
+
org_id?: string;
|
|
1534
|
+
};
|
|
1535
|
+
Relationships: [{
|
|
1536
|
+
foreignKeyName: "groups_org_id_fkey";
|
|
1537
|
+
columns: ["org_id"];
|
|
1538
|
+
isOneToOne: false;
|
|
1539
|
+
referencedRelation: "orgs";
|
|
1540
|
+
referencedColumns: ["id"];
|
|
1541
|
+
}];
|
|
1542
|
+
};
|
|
1294
1543
|
manifest: {
|
|
1295
1544
|
Row: {
|
|
1296
1545
|
app_version_id: number;
|
|
@@ -1360,6 +1609,57 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1360
1609
|
referencedColumns: ["id"];
|
|
1361
1610
|
}];
|
|
1362
1611
|
};
|
|
1612
|
+
org_metrics_cache: {
|
|
1613
|
+
Row: {
|
|
1614
|
+
bandwidth: number;
|
|
1615
|
+
build_time_unit: number;
|
|
1616
|
+
cached_at: string;
|
|
1617
|
+
end_date: string;
|
|
1618
|
+
fail: number;
|
|
1619
|
+
get: number;
|
|
1620
|
+
install: number;
|
|
1621
|
+
mau: number;
|
|
1622
|
+
org_id: string;
|
|
1623
|
+
start_date: string;
|
|
1624
|
+
storage: number;
|
|
1625
|
+
uninstall: number;
|
|
1626
|
+
};
|
|
1627
|
+
Insert: {
|
|
1628
|
+
bandwidth: number;
|
|
1629
|
+
build_time_unit: number;
|
|
1630
|
+
cached_at?: string;
|
|
1631
|
+
end_date: string;
|
|
1632
|
+
fail: number;
|
|
1633
|
+
get: number;
|
|
1634
|
+
install: number;
|
|
1635
|
+
mau: number;
|
|
1636
|
+
org_id: string;
|
|
1637
|
+
start_date: string;
|
|
1638
|
+
storage: number;
|
|
1639
|
+
uninstall: number;
|
|
1640
|
+
};
|
|
1641
|
+
Update: {
|
|
1642
|
+
bandwidth?: number;
|
|
1643
|
+
build_time_unit?: number;
|
|
1644
|
+
cached_at?: string;
|
|
1645
|
+
end_date?: string;
|
|
1646
|
+
fail?: number;
|
|
1647
|
+
get?: number;
|
|
1648
|
+
install?: number;
|
|
1649
|
+
mau?: number;
|
|
1650
|
+
org_id?: string;
|
|
1651
|
+
start_date?: string;
|
|
1652
|
+
storage?: number;
|
|
1653
|
+
uninstall?: number;
|
|
1654
|
+
};
|
|
1655
|
+
Relationships: [{
|
|
1656
|
+
foreignKeyName: "org_metrics_cache_org_id_fkey";
|
|
1657
|
+
columns: ["org_id"];
|
|
1658
|
+
isOneToOne: true;
|
|
1659
|
+
referencedRelation: "orgs";
|
|
1660
|
+
referencedColumns: ["id"];
|
|
1661
|
+
}];
|
|
1662
|
+
};
|
|
1363
1663
|
org_users: {
|
|
1364
1664
|
Row: {
|
|
1365
1665
|
app_id: string | null;
|
|
@@ -1367,6 +1667,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1367
1667
|
created_at: string | null;
|
|
1368
1668
|
id: number;
|
|
1369
1669
|
org_id: string;
|
|
1670
|
+
rbac_role_name: string | null;
|
|
1370
1671
|
updated_at: string | null;
|
|
1371
1672
|
user_id: string;
|
|
1372
1673
|
user_right: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1377,6 +1678,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1377
1678
|
created_at?: string | null;
|
|
1378
1679
|
id?: number;
|
|
1379
1680
|
org_id: string;
|
|
1681
|
+
rbac_role_name?: string | null;
|
|
1380
1682
|
updated_at?: string | null;
|
|
1381
1683
|
user_id: string;
|
|
1382
1684
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1387,6 +1689,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1387
1689
|
created_at?: string | null;
|
|
1388
1690
|
id?: number;
|
|
1389
1691
|
org_id?: string;
|
|
1692
|
+
rbac_role_name?: string | null;
|
|
1390
1693
|
updated_at?: string | null;
|
|
1391
1694
|
user_id?: string;
|
|
1392
1695
|
user_right?: Database["public"]["Enums"]["user_min_right"] | null;
|
|
@@ -1423,8 +1726,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1423
1726
|
created_by: string;
|
|
1424
1727
|
customer_id: string | null;
|
|
1425
1728
|
email_preferences: import("./types/supabase.types").Json;
|
|
1729
|
+
enforce_encrypted_bundles: boolean;
|
|
1426
1730
|
enforce_hashed_api_keys: boolean;
|
|
1427
1731
|
enforcing_2fa: boolean;
|
|
1732
|
+
has_usage_credits: boolean;
|
|
1428
1733
|
id: string;
|
|
1429
1734
|
last_stats_updated_at: string | null;
|
|
1430
1735
|
logo: string | null;
|
|
@@ -1433,16 +1738,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1433
1738
|
name: string;
|
|
1434
1739
|
password_policy_config: import("./types/supabase.types").Json | null;
|
|
1435
1740
|
require_apikey_expiration: boolean;
|
|
1741
|
+
required_encryption_key: string | null;
|
|
1742
|
+
stats_refresh_requested_at: string | null;
|
|
1436
1743
|
stats_updated_at: string | null;
|
|
1437
1744
|
updated_at: string | null;
|
|
1745
|
+
use_new_rbac: boolean;
|
|
1746
|
+
website: string | null;
|
|
1438
1747
|
};
|
|
1439
1748
|
Insert: {
|
|
1440
1749
|
created_at?: string | null;
|
|
1441
1750
|
created_by: string;
|
|
1442
1751
|
customer_id?: string | null;
|
|
1443
1752
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1753
|
+
enforce_encrypted_bundles?: boolean;
|
|
1444
1754
|
enforce_hashed_api_keys?: boolean;
|
|
1445
1755
|
enforcing_2fa?: boolean;
|
|
1756
|
+
has_usage_credits?: boolean;
|
|
1446
1757
|
id?: string;
|
|
1447
1758
|
last_stats_updated_at?: string | null;
|
|
1448
1759
|
logo?: string | null;
|
|
@@ -1451,16 +1762,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1451
1762
|
name: string;
|
|
1452
1763
|
password_policy_config?: import("./types/supabase.types").Json | null;
|
|
1453
1764
|
require_apikey_expiration?: boolean;
|
|
1765
|
+
required_encryption_key?: string | null;
|
|
1766
|
+
stats_refresh_requested_at?: string | null;
|
|
1454
1767
|
stats_updated_at?: string | null;
|
|
1455
1768
|
updated_at?: string | null;
|
|
1769
|
+
use_new_rbac?: boolean;
|
|
1770
|
+
website?: string | null;
|
|
1456
1771
|
};
|
|
1457
1772
|
Update: {
|
|
1458
1773
|
created_at?: string | null;
|
|
1459
1774
|
created_by?: string;
|
|
1460
1775
|
customer_id?: string | null;
|
|
1461
1776
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1777
|
+
enforce_encrypted_bundles?: boolean;
|
|
1462
1778
|
enforce_hashed_api_keys?: boolean;
|
|
1463
1779
|
enforcing_2fa?: boolean;
|
|
1780
|
+
has_usage_credits?: boolean;
|
|
1464
1781
|
id?: string;
|
|
1465
1782
|
last_stats_updated_at?: string | null;
|
|
1466
1783
|
logo?: string | null;
|
|
@@ -1469,8 +1786,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1469
1786
|
name?: string;
|
|
1470
1787
|
password_policy_config?: import("./types/supabase.types").Json | null;
|
|
1471
1788
|
require_apikey_expiration?: boolean;
|
|
1789
|
+
required_encryption_key?: string | null;
|
|
1790
|
+
stats_refresh_requested_at?: string | null;
|
|
1472
1791
|
stats_updated_at?: string | null;
|
|
1473
1792
|
updated_at?: string | null;
|
|
1793
|
+
use_new_rbac?: boolean;
|
|
1794
|
+
website?: string | null;
|
|
1474
1795
|
};
|
|
1475
1796
|
Relationships: [{
|
|
1476
1797
|
foreignKeyName: "orgs_created_by_fkey";
|
|
@@ -1486,6 +1807,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1486
1807
|
referencedColumns: ["customer_id"];
|
|
1487
1808
|
}];
|
|
1488
1809
|
};
|
|
1810
|
+
permissions: {
|
|
1811
|
+
Row: {
|
|
1812
|
+
bundle_id: number | null;
|
|
1813
|
+
created_at: string;
|
|
1814
|
+
description: string | null;
|
|
1815
|
+
id: string;
|
|
1816
|
+
key: string;
|
|
1817
|
+
scope_type: string;
|
|
1818
|
+
};
|
|
1819
|
+
Insert: {
|
|
1820
|
+
bundle_id?: number | null;
|
|
1821
|
+
created_at?: string;
|
|
1822
|
+
description?: string | null;
|
|
1823
|
+
id?: string;
|
|
1824
|
+
key: string;
|
|
1825
|
+
scope_type: string;
|
|
1826
|
+
};
|
|
1827
|
+
Update: {
|
|
1828
|
+
bundle_id?: number | null;
|
|
1829
|
+
created_at?: string;
|
|
1830
|
+
description?: string | null;
|
|
1831
|
+
id?: string;
|
|
1832
|
+
key?: string;
|
|
1833
|
+
scope_type?: string;
|
|
1834
|
+
};
|
|
1835
|
+
Relationships: [{
|
|
1836
|
+
foreignKeyName: "permissions_bundle_id_fkey";
|
|
1837
|
+
columns: ["bundle_id"];
|
|
1838
|
+
isOneToOne: false;
|
|
1839
|
+
referencedRelation: "app_versions";
|
|
1840
|
+
referencedColumns: ["id"];
|
|
1841
|
+
}];
|
|
1842
|
+
};
|
|
1489
1843
|
plans: {
|
|
1490
1844
|
Row: {
|
|
1491
1845
|
bandwidth: number;
|
|
@@ -1543,69 +1897,312 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1543
1897
|
};
|
|
1544
1898
|
Relationships: [];
|
|
1545
1899
|
};
|
|
1546
|
-
|
|
1900
|
+
processed_stripe_events: {
|
|
1547
1901
|
Row: {
|
|
1548
|
-
action: Database["public"]["Enums"]["stats_action"];
|
|
1549
|
-
app_id: string;
|
|
1550
1902
|
created_at: string;
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1903
|
+
customer_id: string;
|
|
1904
|
+
date_id: string;
|
|
1905
|
+
event_id: string;
|
|
1554
1906
|
};
|
|
1555
1907
|
Insert: {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
id?: never;
|
|
1561
|
-
version_name?: string;
|
|
1908
|
+
created_at?: string;
|
|
1909
|
+
customer_id: string;
|
|
1910
|
+
date_id: string;
|
|
1911
|
+
event_id: string;
|
|
1562
1912
|
};
|
|
1563
1913
|
Update: {
|
|
1564
|
-
action?: Database["public"]["Enums"]["stats_action"];
|
|
1565
|
-
app_id?: string;
|
|
1566
1914
|
created_at?: string;
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1915
|
+
customer_id?: string;
|
|
1916
|
+
date_id?: string;
|
|
1917
|
+
event_id?: string;
|
|
1570
1918
|
};
|
|
1571
1919
|
Relationships: [];
|
|
1572
1920
|
};
|
|
1573
|
-
|
|
1921
|
+
role_bindings: {
|
|
1574
1922
|
Row: {
|
|
1575
|
-
app_id: string;
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1923
|
+
app_id: string | null;
|
|
1924
|
+
bundle_id: number | null;
|
|
1925
|
+
channel_id: string | null;
|
|
1926
|
+
expires_at: string | null;
|
|
1927
|
+
granted_at: string;
|
|
1928
|
+
granted_by: string;
|
|
1929
|
+
id: string;
|
|
1930
|
+
is_direct: boolean;
|
|
1931
|
+
org_id: string | null;
|
|
1932
|
+
principal_id: string;
|
|
1933
|
+
principal_type: string;
|
|
1934
|
+
reason: string | null;
|
|
1935
|
+
role_id: string;
|
|
1936
|
+
scope_type: string;
|
|
1580
1937
|
};
|
|
1581
1938
|
Insert: {
|
|
1582
|
-
app_id
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1939
|
+
app_id?: string | null;
|
|
1940
|
+
bundle_id?: number | null;
|
|
1941
|
+
channel_id?: string | null;
|
|
1942
|
+
expires_at?: string | null;
|
|
1943
|
+
granted_at?: string;
|
|
1944
|
+
granted_by: string;
|
|
1945
|
+
id?: string;
|
|
1946
|
+
is_direct?: boolean;
|
|
1947
|
+
org_id?: string | null;
|
|
1948
|
+
principal_id: string;
|
|
1949
|
+
principal_type: string;
|
|
1950
|
+
reason?: string | null;
|
|
1951
|
+
role_id: string;
|
|
1952
|
+
scope_type: string;
|
|
1587
1953
|
};
|
|
1588
1954
|
Update: {
|
|
1589
|
-
app_id?: string;
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1955
|
+
app_id?: string | null;
|
|
1956
|
+
bundle_id?: number | null;
|
|
1957
|
+
channel_id?: string | null;
|
|
1958
|
+
expires_at?: string | null;
|
|
1959
|
+
granted_at?: string;
|
|
1960
|
+
granted_by?: string;
|
|
1961
|
+
id?: string;
|
|
1962
|
+
is_direct?: boolean;
|
|
1963
|
+
org_id?: string | null;
|
|
1964
|
+
principal_id?: string;
|
|
1965
|
+
principal_type?: string;
|
|
1966
|
+
reason?: string | null;
|
|
1967
|
+
role_id?: string;
|
|
1968
|
+
scope_type?: string;
|
|
1594
1969
|
};
|
|
1595
|
-
Relationships: [
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1970
|
+
Relationships: [{
|
|
1971
|
+
foreignKeyName: "role_bindings_app_id_fkey";
|
|
1972
|
+
columns: ["app_id"];
|
|
1973
|
+
isOneToOne: false;
|
|
1974
|
+
referencedRelation: "apps";
|
|
1975
|
+
referencedColumns: ["id"];
|
|
1976
|
+
}, {
|
|
1977
|
+
foreignKeyName: "role_bindings_bundle_id_fkey";
|
|
1978
|
+
columns: ["bundle_id"];
|
|
1979
|
+
isOneToOne: false;
|
|
1980
|
+
referencedRelation: "app_versions";
|
|
1981
|
+
referencedColumns: ["id"];
|
|
1982
|
+
}, {
|
|
1983
|
+
foreignKeyName: "role_bindings_channel_id_fkey";
|
|
1984
|
+
columns: ["channel_id"];
|
|
1985
|
+
isOneToOne: false;
|
|
1986
|
+
referencedRelation: "channels";
|
|
1987
|
+
referencedColumns: ["rbac_id"];
|
|
1988
|
+
}, {
|
|
1989
|
+
foreignKeyName: "role_bindings_org_id_fkey";
|
|
1990
|
+
columns: ["org_id"];
|
|
1991
|
+
isOneToOne: false;
|
|
1992
|
+
referencedRelation: "orgs";
|
|
1993
|
+
referencedColumns: ["id"];
|
|
1994
|
+
}, {
|
|
1995
|
+
foreignKeyName: "role_bindings_role_id_fkey";
|
|
1996
|
+
columns: ["role_id"];
|
|
1997
|
+
isOneToOne: false;
|
|
1998
|
+
referencedRelation: "roles";
|
|
1999
|
+
referencedColumns: ["id"];
|
|
2000
|
+
}];
|
|
2001
|
+
};
|
|
2002
|
+
role_hierarchy: {
|
|
2003
|
+
Row: {
|
|
2004
|
+
child_role_id: string;
|
|
2005
|
+
parent_role_id: string;
|
|
2006
|
+
};
|
|
2007
|
+
Insert: {
|
|
2008
|
+
child_role_id: string;
|
|
2009
|
+
parent_role_id: string;
|
|
2010
|
+
};
|
|
2011
|
+
Update: {
|
|
2012
|
+
child_role_id?: string;
|
|
2013
|
+
parent_role_id?: string;
|
|
2014
|
+
};
|
|
2015
|
+
Relationships: [{
|
|
2016
|
+
foreignKeyName: "role_hierarchy_child_role_id_fkey";
|
|
2017
|
+
columns: ["child_role_id"];
|
|
2018
|
+
isOneToOne: false;
|
|
2019
|
+
referencedRelation: "roles";
|
|
2020
|
+
referencedColumns: ["id"];
|
|
2021
|
+
}, {
|
|
2022
|
+
foreignKeyName: "role_hierarchy_parent_role_id_fkey";
|
|
2023
|
+
columns: ["parent_role_id"];
|
|
2024
|
+
isOneToOne: false;
|
|
2025
|
+
referencedRelation: "roles";
|
|
2026
|
+
referencedColumns: ["id"];
|
|
2027
|
+
}];
|
|
2028
|
+
};
|
|
2029
|
+
role_permissions: {
|
|
2030
|
+
Row: {
|
|
2031
|
+
permission_id: string;
|
|
2032
|
+
role_id: string;
|
|
2033
|
+
};
|
|
2034
|
+
Insert: {
|
|
2035
|
+
permission_id: string;
|
|
2036
|
+
role_id: string;
|
|
2037
|
+
};
|
|
2038
|
+
Update: {
|
|
2039
|
+
permission_id?: string;
|
|
2040
|
+
role_id?: string;
|
|
2041
|
+
};
|
|
2042
|
+
Relationships: [{
|
|
2043
|
+
foreignKeyName: "role_permissions_permission_id_fkey";
|
|
2044
|
+
columns: ["permission_id"];
|
|
2045
|
+
isOneToOne: false;
|
|
2046
|
+
referencedRelation: "permissions";
|
|
2047
|
+
referencedColumns: ["id"];
|
|
2048
|
+
}, {
|
|
2049
|
+
foreignKeyName: "role_permissions_role_id_fkey";
|
|
2050
|
+
columns: ["role_id"];
|
|
2051
|
+
isOneToOne: false;
|
|
2052
|
+
referencedRelation: "roles";
|
|
2053
|
+
referencedColumns: ["id"];
|
|
2054
|
+
}];
|
|
2055
|
+
};
|
|
2056
|
+
roles: {
|
|
2057
|
+
Row: {
|
|
2058
|
+
created_at: string;
|
|
2059
|
+
created_by: string | null;
|
|
2060
|
+
description: string | null;
|
|
2061
|
+
id: string;
|
|
2062
|
+
is_assignable: boolean;
|
|
2063
|
+
name: string;
|
|
2064
|
+
priority_rank: number;
|
|
2065
|
+
scope_type: string;
|
|
2066
|
+
};
|
|
2067
|
+
Insert: {
|
|
2068
|
+
created_at?: string;
|
|
2069
|
+
created_by?: string | null;
|
|
2070
|
+
description?: string | null;
|
|
2071
|
+
id?: string;
|
|
2072
|
+
is_assignable?: boolean;
|
|
2073
|
+
name: string;
|
|
2074
|
+
priority_rank?: number;
|
|
2075
|
+
scope_type: string;
|
|
2076
|
+
};
|
|
2077
|
+
Update: {
|
|
2078
|
+
created_at?: string;
|
|
2079
|
+
created_by?: string | null;
|
|
2080
|
+
description?: string | null;
|
|
2081
|
+
id?: string;
|
|
2082
|
+
is_assignable?: boolean;
|
|
2083
|
+
name?: string;
|
|
2084
|
+
priority_rank?: number;
|
|
2085
|
+
scope_type?: string;
|
|
2086
|
+
};
|
|
2087
|
+
Relationships: [];
|
|
2088
|
+
};
|
|
2089
|
+
sso_providers: {
|
|
2090
|
+
Row: {
|
|
2091
|
+
attribute_mapping: import("./types/supabase.types").Json | null;
|
|
2092
|
+
created_at: string;
|
|
2093
|
+
dns_verification_token: string;
|
|
2094
|
+
dns_verified_at: string | null;
|
|
2095
|
+
domain: string;
|
|
2096
|
+
enforce_sso: boolean;
|
|
2097
|
+
id: string;
|
|
2098
|
+
metadata_url: string | null;
|
|
2099
|
+
org_id: string;
|
|
2100
|
+
provider_id: string | null;
|
|
2101
|
+
status: string;
|
|
2102
|
+
updated_at: string;
|
|
2103
|
+
};
|
|
2104
|
+
Insert: {
|
|
2105
|
+
attribute_mapping?: import("./types/supabase.types").Json | null;
|
|
2106
|
+
created_at?: string;
|
|
2107
|
+
dns_verification_token: string;
|
|
2108
|
+
dns_verified_at?: string | null;
|
|
2109
|
+
domain: string;
|
|
2110
|
+
enforce_sso?: boolean;
|
|
2111
|
+
id?: string;
|
|
2112
|
+
metadata_url?: string | null;
|
|
2113
|
+
org_id: string;
|
|
2114
|
+
provider_id?: string | null;
|
|
2115
|
+
status?: string;
|
|
2116
|
+
updated_at?: string;
|
|
2117
|
+
};
|
|
2118
|
+
Update: {
|
|
2119
|
+
attribute_mapping?: import("./types/supabase.types").Json | null;
|
|
2120
|
+
created_at?: string;
|
|
2121
|
+
dns_verification_token?: string;
|
|
2122
|
+
dns_verified_at?: string | null;
|
|
2123
|
+
domain?: string;
|
|
2124
|
+
enforce_sso?: boolean;
|
|
2125
|
+
id?: string;
|
|
2126
|
+
metadata_url?: string | null;
|
|
2127
|
+
org_id?: string;
|
|
2128
|
+
provider_id?: string | null;
|
|
2129
|
+
status?: string;
|
|
2130
|
+
updated_at?: string;
|
|
2131
|
+
};
|
|
2132
|
+
Relationships: [{
|
|
2133
|
+
foreignKeyName: "sso_providers_org_id_fkey";
|
|
2134
|
+
columns: ["org_id"];
|
|
2135
|
+
isOneToOne: false;
|
|
2136
|
+
referencedRelation: "orgs";
|
|
2137
|
+
referencedColumns: ["id"];
|
|
2138
|
+
}];
|
|
2139
|
+
};
|
|
2140
|
+
stats: {
|
|
2141
|
+
Row: {
|
|
2142
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2143
|
+
app_id: string;
|
|
2144
|
+
created_at: string;
|
|
2145
|
+
device_id: string;
|
|
2146
|
+
id: number;
|
|
2147
|
+
version_name: string;
|
|
2148
|
+
};
|
|
2149
|
+
Insert: {
|
|
2150
|
+
action: Database["public"]["Enums"]["stats_action"];
|
|
2151
|
+
app_id: string;
|
|
2152
|
+
created_at: string;
|
|
2153
|
+
device_id: string;
|
|
2154
|
+
id?: never;
|
|
2155
|
+
version_name?: string;
|
|
2156
|
+
};
|
|
2157
|
+
Update: {
|
|
2158
|
+
action?: Database["public"]["Enums"]["stats_action"];
|
|
2159
|
+
app_id?: string;
|
|
2160
|
+
created_at?: string;
|
|
2161
|
+
device_id?: string;
|
|
2162
|
+
id?: never;
|
|
2163
|
+
version_name?: string;
|
|
2164
|
+
};
|
|
2165
|
+
Relationships: [];
|
|
2166
|
+
};
|
|
2167
|
+
storage_usage: {
|
|
2168
|
+
Row: {
|
|
2169
|
+
app_id: string;
|
|
2170
|
+
device_id: string;
|
|
2171
|
+
file_size: number;
|
|
2172
|
+
id: number;
|
|
2173
|
+
timestamp: string;
|
|
2174
|
+
};
|
|
2175
|
+
Insert: {
|
|
2176
|
+
app_id: string;
|
|
2177
|
+
device_id: string;
|
|
2178
|
+
file_size: number;
|
|
2179
|
+
id?: number;
|
|
2180
|
+
timestamp?: string;
|
|
2181
|
+
};
|
|
2182
|
+
Update: {
|
|
2183
|
+
app_id?: string;
|
|
2184
|
+
device_id?: string;
|
|
2185
|
+
file_size?: number;
|
|
2186
|
+
id?: number;
|
|
2187
|
+
timestamp?: string;
|
|
2188
|
+
};
|
|
2189
|
+
Relationships: [];
|
|
2190
|
+
};
|
|
2191
|
+
stripe_info: {
|
|
2192
|
+
Row: {
|
|
2193
|
+
bandwidth_exceeded: boolean | null;
|
|
2194
|
+
build_time_exceeded: boolean | null;
|
|
2195
|
+
canceled_at: string | null;
|
|
2196
|
+
created_at: string;
|
|
2197
|
+
customer_country: string | null;
|
|
2198
|
+
customer_id: string;
|
|
2199
|
+
id: number;
|
|
2200
|
+
is_good_plan: boolean | null;
|
|
2201
|
+
last_stripe_event_at: string | null;
|
|
2202
|
+
mau_exceeded: boolean | null;
|
|
2203
|
+
paid_at: string | null;
|
|
2204
|
+
plan_calculated_at: string | null;
|
|
2205
|
+
plan_usage: number | null;
|
|
1609
2206
|
price_id: string | null;
|
|
1610
2207
|
product_id: string;
|
|
1611
2208
|
status: Database["public"]["Enums"]["stripe_status"] | null;
|
|
@@ -1613,19 +2210,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1613
2210
|
subscription_anchor_end: string;
|
|
1614
2211
|
subscription_anchor_start: string;
|
|
1615
2212
|
subscription_id: string | null;
|
|
1616
|
-
subscription_metered: import("./types/supabase.types").Json;
|
|
1617
2213
|
trial_at: string;
|
|
1618
2214
|
updated_at: string;
|
|
2215
|
+
upgraded_at: string | null;
|
|
1619
2216
|
};
|
|
1620
2217
|
Insert: {
|
|
1621
2218
|
bandwidth_exceeded?: boolean | null;
|
|
1622
2219
|
build_time_exceeded?: boolean | null;
|
|
1623
2220
|
canceled_at?: string | null;
|
|
1624
2221
|
created_at?: string;
|
|
2222
|
+
customer_country?: string | null;
|
|
1625
2223
|
customer_id: string;
|
|
1626
2224
|
id?: number;
|
|
1627
2225
|
is_good_plan?: boolean | null;
|
|
2226
|
+
last_stripe_event_at?: string | null;
|
|
1628
2227
|
mau_exceeded?: boolean | null;
|
|
2228
|
+
paid_at?: string | null;
|
|
1629
2229
|
plan_calculated_at?: string | null;
|
|
1630
2230
|
plan_usage?: number | null;
|
|
1631
2231
|
price_id?: string | null;
|
|
@@ -1635,19 +2235,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1635
2235
|
subscription_anchor_end?: string;
|
|
1636
2236
|
subscription_anchor_start?: string;
|
|
1637
2237
|
subscription_id?: string | null;
|
|
1638
|
-
subscription_metered?: import("./types/supabase.types").Json;
|
|
1639
2238
|
trial_at?: string;
|
|
1640
2239
|
updated_at?: string;
|
|
2240
|
+
upgraded_at?: string | null;
|
|
1641
2241
|
};
|
|
1642
2242
|
Update: {
|
|
1643
2243
|
bandwidth_exceeded?: boolean | null;
|
|
1644
2244
|
build_time_exceeded?: boolean | null;
|
|
1645
2245
|
canceled_at?: string | null;
|
|
1646
2246
|
created_at?: string;
|
|
2247
|
+
customer_country?: string | null;
|
|
1647
2248
|
customer_id?: string;
|
|
1648
2249
|
id?: number;
|
|
1649
2250
|
is_good_plan?: boolean | null;
|
|
2251
|
+
last_stripe_event_at?: string | null;
|
|
1650
2252
|
mau_exceeded?: boolean | null;
|
|
2253
|
+
paid_at?: string | null;
|
|
1651
2254
|
plan_calculated_at?: string | null;
|
|
1652
2255
|
plan_usage?: number | null;
|
|
1653
2256
|
price_id?: string | null;
|
|
@@ -1657,9 +2260,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1657
2260
|
subscription_anchor_end?: string;
|
|
1658
2261
|
subscription_anchor_start?: string;
|
|
1659
2262
|
subscription_id?: string | null;
|
|
1660
|
-
subscription_metered?: import("./types/supabase.types").Json;
|
|
1661
2263
|
trial_at?: string;
|
|
1662
2264
|
updated_at?: string;
|
|
2265
|
+
upgraded_at?: string | null;
|
|
1663
2266
|
};
|
|
1664
2267
|
Relationships: [{
|
|
1665
2268
|
foreignKeyName: "stripe_info_product_id_fkey";
|
|
@@ -1680,6 +2283,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1680
2283
|
invite_magic_string: string;
|
|
1681
2284
|
last_name: string;
|
|
1682
2285
|
org_id: string;
|
|
2286
|
+
rbac_role_name: string | null;
|
|
1683
2287
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1684
2288
|
updated_at: string;
|
|
1685
2289
|
};
|
|
@@ -1693,6 +2297,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1693
2297
|
invite_magic_string?: string;
|
|
1694
2298
|
last_name: string;
|
|
1695
2299
|
org_id: string;
|
|
2300
|
+
rbac_role_name?: string | null;
|
|
1696
2301
|
role: Database["public"]["Enums"]["user_min_right"];
|
|
1697
2302
|
updated_at?: string;
|
|
1698
2303
|
};
|
|
@@ -1706,6 +2311,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1706
2311
|
invite_magic_string?: string;
|
|
1707
2312
|
last_name?: string;
|
|
1708
2313
|
org_id?: string;
|
|
2314
|
+
rbac_role_name?: string | null;
|
|
1709
2315
|
role?: Database["public"]["Enums"]["user_min_right"];
|
|
1710
2316
|
updated_at?: string;
|
|
1711
2317
|
};
|
|
@@ -1975,11 +2581,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1975
2581
|
referencedColumns: ["id"];
|
|
1976
2582
|
}];
|
|
1977
2583
|
};
|
|
2584
|
+
user_security: {
|
|
2585
|
+
Row: {
|
|
2586
|
+
created_at: string;
|
|
2587
|
+
email_otp_verified_at: string | null;
|
|
2588
|
+
updated_at: string;
|
|
2589
|
+
user_id: string;
|
|
2590
|
+
};
|
|
2591
|
+
Insert: {
|
|
2592
|
+
created_at?: string;
|
|
2593
|
+
email_otp_verified_at?: string | null;
|
|
2594
|
+
updated_at?: string;
|
|
2595
|
+
user_id: string;
|
|
2596
|
+
};
|
|
2597
|
+
Update: {
|
|
2598
|
+
created_at?: string;
|
|
2599
|
+
email_otp_verified_at?: string | null;
|
|
2600
|
+
updated_at?: string;
|
|
2601
|
+
user_id?: string;
|
|
2602
|
+
};
|
|
2603
|
+
Relationships: [];
|
|
2604
|
+
};
|
|
1978
2605
|
users: {
|
|
1979
2606
|
Row: {
|
|
1980
2607
|
ban_time: string | null;
|
|
1981
2608
|
country: string | null;
|
|
1982
2609
|
created_at: string | null;
|
|
2610
|
+
created_via_invite: boolean;
|
|
1983
2611
|
email: string;
|
|
1984
2612
|
email_preferences: import("./types/supabase.types").Json;
|
|
1985
2613
|
enable_notifications: boolean;
|
|
@@ -1994,6 +2622,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1994
2622
|
ban_time?: string | null;
|
|
1995
2623
|
country?: string | null;
|
|
1996
2624
|
created_at?: string | null;
|
|
2625
|
+
created_via_invite?: boolean;
|
|
1997
2626
|
email: string;
|
|
1998
2627
|
email_preferences?: import("./types/supabase.types").Json;
|
|
1999
2628
|
enable_notifications?: boolean;
|
|
@@ -2008,6 +2637,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2008
2637
|
ban_time?: string | null;
|
|
2009
2638
|
country?: string | null;
|
|
2010
2639
|
created_at?: string | null;
|
|
2640
|
+
created_via_invite?: boolean;
|
|
2011
2641
|
email?: string;
|
|
2012
2642
|
email_preferences?: import("./types/supabase.types").Json;
|
|
2013
2643
|
enable_notifications?: boolean;
|
|
@@ -2046,19 +2676,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2046
2676
|
action: Database["public"]["Enums"]["version_action"];
|
|
2047
2677
|
app_id: string;
|
|
2048
2678
|
timestamp: string;
|
|
2049
|
-
version_id: number;
|
|
2679
|
+
version_id: number | null;
|
|
2680
|
+
version_name: string | null;
|
|
2050
2681
|
};
|
|
2051
2682
|
Insert: {
|
|
2052
2683
|
action: Database["public"]["Enums"]["version_action"];
|
|
2053
2684
|
app_id: string;
|
|
2054
2685
|
timestamp?: string;
|
|
2055
|
-
version_id
|
|
2686
|
+
version_id?: number | null;
|
|
2687
|
+
version_name?: string | null;
|
|
2056
2688
|
};
|
|
2057
2689
|
Update: {
|
|
2058
2690
|
action?: Database["public"]["Enums"]["version_action"];
|
|
2059
2691
|
app_id?: string;
|
|
2060
2692
|
timestamp?: string;
|
|
2061
|
-
version_id?: number;
|
|
2693
|
+
version_id?: number | null;
|
|
2694
|
+
version_name?: string | null;
|
|
2062
2695
|
};
|
|
2063
2696
|
Relationships: [];
|
|
2064
2697
|
};
|
|
@@ -2247,6 +2880,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2247
2880
|
overage_unpaid: number;
|
|
2248
2881
|
}[];
|
|
2249
2882
|
};
|
|
2883
|
+
audit_logs_allowed_orgs: {
|
|
2884
|
+
Args: never;
|
|
2885
|
+
Returns: string[];
|
|
2886
|
+
};
|
|
2250
2887
|
calculate_credit_cost: {
|
|
2251
2888
|
Args: {
|
|
2252
2889
|
p_metric: Database["public"]["Enums"]["credit_metric_type"];
|
|
@@ -2258,6 +2895,49 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2258
2895
|
credits_required: number;
|
|
2259
2896
|
}[];
|
|
2260
2897
|
};
|
|
2898
|
+
calculate_org_metrics_cache_entry: {
|
|
2899
|
+
Args: {
|
|
2900
|
+
p_end_date: string;
|
|
2901
|
+
p_org_id: string;
|
|
2902
|
+
p_start_date: string;
|
|
2903
|
+
};
|
|
2904
|
+
Returns: {
|
|
2905
|
+
bandwidth: number;
|
|
2906
|
+
build_time_unit: number;
|
|
2907
|
+
cached_at: string;
|
|
2908
|
+
end_date: string;
|
|
2909
|
+
fail: number;
|
|
2910
|
+
get: number;
|
|
2911
|
+
install: number;
|
|
2912
|
+
mau: number;
|
|
2913
|
+
org_id: string;
|
|
2914
|
+
start_date: string;
|
|
2915
|
+
storage: number;
|
|
2916
|
+
uninstall: number;
|
|
2917
|
+
};
|
|
2918
|
+
SetofOptions: {
|
|
2919
|
+
from: "*";
|
|
2920
|
+
to: "org_metrics_cache";
|
|
2921
|
+
isOneToOne: true;
|
|
2922
|
+
isSetofReturn: false;
|
|
2923
|
+
};
|
|
2924
|
+
};
|
|
2925
|
+
check_apikey_hashed_key_enforcement: {
|
|
2926
|
+
Args: {
|
|
2927
|
+
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
2928
|
+
};
|
|
2929
|
+
Returns: boolean;
|
|
2930
|
+
};
|
|
2931
|
+
check_domain_sso: {
|
|
2932
|
+
Args: {
|
|
2933
|
+
p_domain: string;
|
|
2934
|
+
};
|
|
2935
|
+
Returns: {
|
|
2936
|
+
has_sso: boolean;
|
|
2937
|
+
org_id: string;
|
|
2938
|
+
provider_id: string;
|
|
2939
|
+
}[];
|
|
2940
|
+
};
|
|
2261
2941
|
check_min_rights: {
|
|
2262
2942
|
Args: {
|
|
2263
2943
|
app_id: string;
|
|
@@ -2276,6 +2956,33 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2276
2956
|
};
|
|
2277
2957
|
Returns: boolean;
|
|
2278
2958
|
};
|
|
2959
|
+
check_min_rights_legacy: {
|
|
2960
|
+
Args: {
|
|
2961
|
+
app_id: string;
|
|
2962
|
+
channel_id: number;
|
|
2963
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2964
|
+
org_id: string;
|
|
2965
|
+
user_id: string;
|
|
2966
|
+
};
|
|
2967
|
+
Returns: boolean;
|
|
2968
|
+
};
|
|
2969
|
+
check_min_rights_legacy_no_password_policy: {
|
|
2970
|
+
Args: {
|
|
2971
|
+
app_id: string;
|
|
2972
|
+
channel_id: number;
|
|
2973
|
+
min_right: Database["public"]["Enums"]["user_min_right"];
|
|
2974
|
+
org_id: string;
|
|
2975
|
+
user_id: string;
|
|
2976
|
+
};
|
|
2977
|
+
Returns: boolean;
|
|
2978
|
+
};
|
|
2979
|
+
check_org_encrypted_bundle_enforcement: {
|
|
2980
|
+
Args: {
|
|
2981
|
+
org_id: string;
|
|
2982
|
+
session_key: string;
|
|
2983
|
+
};
|
|
2984
|
+
Returns: boolean;
|
|
2985
|
+
};
|
|
2279
2986
|
check_org_hashed_key_enforcement: {
|
|
2280
2987
|
Args: {
|
|
2281
2988
|
apikey_row: Database["public"]["Tables"]["apikeys"]["Row"];
|
|
@@ -2314,6 +3021,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2314
3021
|
Args: never;
|
|
2315
3022
|
Returns: undefined;
|
|
2316
3023
|
};
|
|
3024
|
+
cleanup_expired_demo_apps: {
|
|
3025
|
+
Args: never;
|
|
3026
|
+
Returns: undefined;
|
|
3027
|
+
};
|
|
2317
3028
|
cleanup_frequent_job_details: {
|
|
2318
3029
|
Args: never;
|
|
2319
3030
|
Returns: undefined;
|
|
@@ -2326,15 +3037,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2326
3037
|
Args: never;
|
|
2327
3038
|
Returns: undefined;
|
|
2328
3039
|
};
|
|
3040
|
+
cleanup_old_channel_devices: {
|
|
3041
|
+
Args: never;
|
|
3042
|
+
Returns: undefined;
|
|
3043
|
+
};
|
|
2329
3044
|
cleanup_queue_messages: {
|
|
2330
3045
|
Args: never;
|
|
2331
3046
|
Returns: undefined;
|
|
2332
3047
|
};
|
|
3048
|
+
cleanup_tmp_users: {
|
|
3049
|
+
Args: never;
|
|
3050
|
+
Returns: undefined;
|
|
3051
|
+
};
|
|
2333
3052
|
cleanup_webhook_deliveries: {
|
|
2334
3053
|
Args: never;
|
|
2335
3054
|
Returns: undefined;
|
|
2336
3055
|
};
|
|
2337
|
-
|
|
3056
|
+
clear_onboarding_app_data: {
|
|
3057
|
+
Args: {
|
|
3058
|
+
p_app_uuid: string;
|
|
3059
|
+
};
|
|
3060
|
+
Returns: undefined;
|
|
3061
|
+
};
|
|
3062
|
+
cli_check_permission: {
|
|
3063
|
+
Args: {
|
|
3064
|
+
apikey: string;
|
|
3065
|
+
app_id?: string;
|
|
3066
|
+
channel_id?: number;
|
|
3067
|
+
org_id?: string;
|
|
3068
|
+
permission_key: string;
|
|
3069
|
+
};
|
|
3070
|
+
Returns: boolean;
|
|
3071
|
+
};
|
|
3072
|
+
convert_bytes_to_gb: {
|
|
2338
3073
|
Args: {
|
|
2339
3074
|
bytes_value: number;
|
|
2340
3075
|
};
|
|
@@ -2386,6 +3121,80 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2386
3121
|
plan_name: string;
|
|
2387
3122
|
}[];
|
|
2388
3123
|
};
|
|
3124
|
+
count_non_compliant_bundles: {
|
|
3125
|
+
Args: {
|
|
3126
|
+
org_id: string;
|
|
3127
|
+
required_key?: string;
|
|
3128
|
+
};
|
|
3129
|
+
Returns: {
|
|
3130
|
+
non_encrypted_count: number;
|
|
3131
|
+
total_non_compliant: number;
|
|
3132
|
+
wrong_key_count: number;
|
|
3133
|
+
}[];
|
|
3134
|
+
};
|
|
3135
|
+
create_hashed_apikey: {
|
|
3136
|
+
Args: {
|
|
3137
|
+
p_expires_at: string;
|
|
3138
|
+
p_limited_to_apps: string[];
|
|
3139
|
+
p_limited_to_orgs: string[];
|
|
3140
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3141
|
+
p_name: string;
|
|
3142
|
+
};
|
|
3143
|
+
Returns: {
|
|
3144
|
+
created_at: string | null;
|
|
3145
|
+
expires_at: string | null;
|
|
3146
|
+
id: number;
|
|
3147
|
+
key: string | null;
|
|
3148
|
+
key_hash: string | null;
|
|
3149
|
+
limited_to_apps: string[] | null;
|
|
3150
|
+
limited_to_orgs: string[] | null;
|
|
3151
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3152
|
+
name: string;
|
|
3153
|
+
rbac_id: string;
|
|
3154
|
+
updated_at: string | null;
|
|
3155
|
+
user_id: string;
|
|
3156
|
+
};
|
|
3157
|
+
SetofOptions: {
|
|
3158
|
+
from: "*";
|
|
3159
|
+
to: "apikeys";
|
|
3160
|
+
isOneToOne: true;
|
|
3161
|
+
isSetofReturn: false;
|
|
3162
|
+
};
|
|
3163
|
+
};
|
|
3164
|
+
create_hashed_apikey_for_user: {
|
|
3165
|
+
Args: {
|
|
3166
|
+
p_expires_at: string;
|
|
3167
|
+
p_limited_to_apps: string[];
|
|
3168
|
+
p_limited_to_orgs: string[];
|
|
3169
|
+
p_mode: Database["public"]["Enums"]["key_mode"];
|
|
3170
|
+
p_name: string;
|
|
3171
|
+
p_user_id: string;
|
|
3172
|
+
};
|
|
3173
|
+
Returns: {
|
|
3174
|
+
created_at: string | null;
|
|
3175
|
+
expires_at: string | null;
|
|
3176
|
+
id: number;
|
|
3177
|
+
key: string | null;
|
|
3178
|
+
key_hash: string | null;
|
|
3179
|
+
limited_to_apps: string[] | null;
|
|
3180
|
+
limited_to_orgs: string[] | null;
|
|
3181
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3182
|
+
name: string;
|
|
3183
|
+
rbac_id: string;
|
|
3184
|
+
updated_at: string | null;
|
|
3185
|
+
user_id: string;
|
|
3186
|
+
};
|
|
3187
|
+
SetofOptions: {
|
|
3188
|
+
from: "*";
|
|
3189
|
+
to: "apikeys";
|
|
3190
|
+
isOneToOne: true;
|
|
3191
|
+
isSetofReturn: false;
|
|
3192
|
+
};
|
|
3193
|
+
};
|
|
3194
|
+
current_request_role: {
|
|
3195
|
+
Args: never;
|
|
3196
|
+
Returns: string;
|
|
3197
|
+
};
|
|
2389
3198
|
delete_accounts_marked_for_deletion: {
|
|
2390
3199
|
Args: never;
|
|
2391
3200
|
Returns: {
|
|
@@ -2393,16 +3202,40 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2393
3202
|
deleted_user_ids: string[];
|
|
2394
3203
|
}[];
|
|
2395
3204
|
};
|
|
3205
|
+
delete_group_with_bindings: {
|
|
3206
|
+
Args: {
|
|
3207
|
+
group_id: string;
|
|
3208
|
+
};
|
|
3209
|
+
Returns: undefined;
|
|
3210
|
+
};
|
|
2396
3211
|
delete_http_response: {
|
|
2397
3212
|
Args: {
|
|
2398
3213
|
request_id: number;
|
|
2399
3214
|
};
|
|
2400
3215
|
Returns: undefined;
|
|
2401
3216
|
};
|
|
3217
|
+
delete_non_compliant_bundles: {
|
|
3218
|
+
Args: {
|
|
3219
|
+
org_id: string;
|
|
3220
|
+
required_key?: string;
|
|
3221
|
+
};
|
|
3222
|
+
Returns: number;
|
|
3223
|
+
};
|
|
2402
3224
|
delete_old_deleted_apps: {
|
|
2403
3225
|
Args: never;
|
|
2404
3226
|
Returns: undefined;
|
|
2405
3227
|
};
|
|
3228
|
+
delete_old_deleted_versions: {
|
|
3229
|
+
Args: never;
|
|
3230
|
+
Returns: undefined;
|
|
3231
|
+
};
|
|
3232
|
+
delete_org_member_role: {
|
|
3233
|
+
Args: {
|
|
3234
|
+
p_org_id: string;
|
|
3235
|
+
p_user_id: string;
|
|
3236
|
+
};
|
|
3237
|
+
Returns: string;
|
|
3238
|
+
};
|
|
2406
3239
|
delete_user: {
|
|
2407
3240
|
Args: never;
|
|
2408
3241
|
Returns: undefined;
|
|
@@ -2445,6 +3278,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2445
3278
|
limited_to_orgs: string[] | null;
|
|
2446
3279
|
mode: Database["public"]["Enums"]["key_mode"];
|
|
2447
3280
|
name: string;
|
|
3281
|
+
rbac_id: string;
|
|
2448
3282
|
updated_at: string | null;
|
|
2449
3283
|
user_id: string;
|
|
2450
3284
|
}[];
|
|
@@ -2475,10 +3309,44 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2475
3309
|
name: string;
|
|
2476
3310
|
}[];
|
|
2477
3311
|
};
|
|
2478
|
-
|
|
3312
|
+
get_accessible_apps_for_apikey_v2: {
|
|
2479
3313
|
Args: {
|
|
2480
|
-
|
|
3314
|
+
apikey: string;
|
|
3315
|
+
};
|
|
3316
|
+
Returns: {
|
|
3317
|
+
allow_device_custom_id: boolean;
|
|
3318
|
+
allow_preview: boolean;
|
|
3319
|
+
android_store_url: string | null;
|
|
3320
|
+
app_id: string;
|
|
3321
|
+
channel_device_count: number;
|
|
3322
|
+
created_at: string | null;
|
|
3323
|
+
default_upload_channel: string;
|
|
3324
|
+
existing_app: boolean;
|
|
3325
|
+
expose_metadata: boolean;
|
|
3326
|
+
icon_url: string;
|
|
3327
|
+
id: string | null;
|
|
3328
|
+
ios_store_url: string | null;
|
|
3329
|
+
last_version: string | null;
|
|
3330
|
+
manifest_bundle_count: number;
|
|
3331
|
+
name: string | null;
|
|
3332
|
+
need_onboarding: boolean;
|
|
3333
|
+
owner_org: string;
|
|
3334
|
+
retention: number;
|
|
3335
|
+
stats_refresh_requested_at: string | null;
|
|
3336
|
+
stats_updated_at: string | null;
|
|
3337
|
+
transfer_history: import("./types/supabase.types").Json[] | null;
|
|
3338
|
+
updated_at: string | null;
|
|
3339
|
+
user_id: string | null;
|
|
3340
|
+
}[];
|
|
3341
|
+
SetofOptions: {
|
|
3342
|
+
from: "*";
|
|
3343
|
+
to: "apps";
|
|
3344
|
+
isOneToOne: false;
|
|
3345
|
+
isSetofReturn: true;
|
|
2481
3346
|
};
|
|
3347
|
+
};
|
|
3348
|
+
get_account_removal_date: {
|
|
3349
|
+
Args: never;
|
|
2482
3350
|
Returns: string;
|
|
2483
3351
|
};
|
|
2484
3352
|
get_apikey: {
|
|
@@ -2489,6 +3357,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2489
3357
|
Args: never;
|
|
2490
3358
|
Returns: string;
|
|
2491
3359
|
};
|
|
3360
|
+
get_app_access_rbac: {
|
|
3361
|
+
Args: {
|
|
3362
|
+
p_app_id: string;
|
|
3363
|
+
};
|
|
3364
|
+
Returns: {
|
|
3365
|
+
expires_at: string;
|
|
3366
|
+
granted_at: string;
|
|
3367
|
+
granted_by: string;
|
|
3368
|
+
id: string;
|
|
3369
|
+
is_direct: boolean;
|
|
3370
|
+
principal_id: string;
|
|
3371
|
+
principal_name: string;
|
|
3372
|
+
principal_type: string;
|
|
3373
|
+
reason: string;
|
|
3374
|
+
role_description: string;
|
|
3375
|
+
role_id: string;
|
|
3376
|
+
role_name: string;
|
|
3377
|
+
}[];
|
|
3378
|
+
};
|
|
2492
3379
|
get_app_metrics: {
|
|
2493
3380
|
Args: {
|
|
2494
3381
|
org_id: string;
|
|
@@ -2523,6 +3410,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2523
3410
|
storage: number;
|
|
2524
3411
|
uninstall: number;
|
|
2525
3412
|
}[];
|
|
3413
|
+
} | {
|
|
3414
|
+
Args: {
|
|
3415
|
+
p_app_id: string;
|
|
3416
|
+
p_end_date: string;
|
|
3417
|
+
p_org_id: string;
|
|
3418
|
+
p_start_date: string;
|
|
3419
|
+
};
|
|
3420
|
+
Returns: {
|
|
3421
|
+
app_id: string;
|
|
3422
|
+
bandwidth: number;
|
|
3423
|
+
build_time_unit: number;
|
|
3424
|
+
date: string;
|
|
3425
|
+
fail: number;
|
|
3426
|
+
get: number;
|
|
3427
|
+
install: number;
|
|
3428
|
+
mau: number;
|
|
3429
|
+
storage: number;
|
|
3430
|
+
uninstall: number;
|
|
3431
|
+
}[];
|
|
2526
3432
|
};
|
|
2527
3433
|
get_app_versions: {
|
|
2528
3434
|
Args: {
|
|
@@ -2623,6 +3529,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2623
3529
|
};
|
|
2624
3530
|
Returns: string;
|
|
2625
3531
|
};
|
|
3532
|
+
get_identity_org_allowed_apikey_only: {
|
|
3533
|
+
Args: {
|
|
3534
|
+
keymode: Database["public"]["Enums"]["key_mode"][];
|
|
3535
|
+
org_id: string;
|
|
3536
|
+
};
|
|
3537
|
+
Returns: string;
|
|
3538
|
+
};
|
|
2626
3539
|
get_identity_org_appid: {
|
|
2627
3540
|
Args: {
|
|
2628
3541
|
app_id: string;
|
|
@@ -2638,29 +3551,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2638
3551
|
Returns: {
|
|
2639
3552
|
org_logo: string;
|
|
2640
3553
|
org_name: string;
|
|
2641
|
-
role:
|
|
3554
|
+
role: string;
|
|
2642
3555
|
}[];
|
|
2643
3556
|
};
|
|
2644
|
-
|
|
3557
|
+
get_mfa_email_otp_enforced_at: {
|
|
2645
3558
|
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
|
-
};
|
|
3559
|
+
Returns: string;
|
|
2664
3560
|
};
|
|
2665
3561
|
get_next_cron_time: {
|
|
2666
3562
|
Args: {
|
|
@@ -2683,6 +3579,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2683
3579
|
};
|
|
2684
3580
|
Returns: string;
|
|
2685
3581
|
};
|
|
3582
|
+
get_org_apikeys: {
|
|
3583
|
+
Args: {
|
|
3584
|
+
p_org_id: string;
|
|
3585
|
+
};
|
|
3586
|
+
Returns: {
|
|
3587
|
+
created_at: string;
|
|
3588
|
+
expires_at: string;
|
|
3589
|
+
id: number;
|
|
3590
|
+
limited_to_apps: string[];
|
|
3591
|
+
limited_to_orgs: string[];
|
|
3592
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
3593
|
+
name: string;
|
|
3594
|
+
owner_email: string;
|
|
3595
|
+
rbac_id: string;
|
|
3596
|
+
user_id: string;
|
|
3597
|
+
}[];
|
|
3598
|
+
};
|
|
2686
3599
|
get_org_build_time_unit: {
|
|
2687
3600
|
Args: {
|
|
2688
3601
|
p_end_date: string;
|
|
@@ -2720,6 +3633,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2720
3633
|
uid: string;
|
|
2721
3634
|
}[];
|
|
2722
3635
|
};
|
|
3636
|
+
get_org_members_rbac: {
|
|
3637
|
+
Args: {
|
|
3638
|
+
p_org_id: string;
|
|
3639
|
+
};
|
|
3640
|
+
Returns: {
|
|
3641
|
+
binding_id: string;
|
|
3642
|
+
email: string;
|
|
3643
|
+
granted_at: string;
|
|
3644
|
+
image_url: string;
|
|
3645
|
+
is_invite: boolean;
|
|
3646
|
+
is_tmp: boolean;
|
|
3647
|
+
org_user_id: number;
|
|
3648
|
+
role_id: string;
|
|
3649
|
+
role_name: string;
|
|
3650
|
+
user_id: string;
|
|
3651
|
+
}[];
|
|
3652
|
+
};
|
|
2723
3653
|
get_org_owner_id: {
|
|
2724
3654
|
Args: {
|
|
2725
3655
|
apikey: string;
|
|
@@ -2734,6 +3664,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2734
3664
|
};
|
|
2735
3665
|
Returns: string;
|
|
2736
3666
|
};
|
|
3667
|
+
get_org_perm_for_apikey_v2: {
|
|
3668
|
+
Args: {
|
|
3669
|
+
apikey: string;
|
|
3670
|
+
app_id: string;
|
|
3671
|
+
};
|
|
3672
|
+
Returns: string;
|
|
3673
|
+
};
|
|
3674
|
+
get_org_user_access_rbac: {
|
|
3675
|
+
Args: {
|
|
3676
|
+
p_org_id: string;
|
|
3677
|
+
p_user_id: string;
|
|
3678
|
+
};
|
|
3679
|
+
Returns: {
|
|
3680
|
+
app_id: string;
|
|
3681
|
+
channel_id: string;
|
|
3682
|
+
expires_at: string;
|
|
3683
|
+
granted_at: string;
|
|
3684
|
+
granted_by: string;
|
|
3685
|
+
group_name: string;
|
|
3686
|
+
id: string;
|
|
3687
|
+
is_direct: boolean;
|
|
3688
|
+
org_id: string;
|
|
3689
|
+
principal_id: string;
|
|
3690
|
+
principal_name: string;
|
|
3691
|
+
principal_type: string;
|
|
3692
|
+
reason: string;
|
|
3693
|
+
role_description: string;
|
|
3694
|
+
role_id: string;
|
|
3695
|
+
role_name: string;
|
|
3696
|
+
scope_type: string;
|
|
3697
|
+
user_email: string;
|
|
3698
|
+
}[];
|
|
3699
|
+
};
|
|
2737
3700
|
get_organization_cli_warnings: {
|
|
2738
3701
|
Args: {
|
|
2739
3702
|
cli_version: string;
|
|
@@ -2800,10 +3763,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2800
3763
|
"2fa_has_access": boolean;
|
|
2801
3764
|
app_count: number;
|
|
2802
3765
|
can_use_more: boolean;
|
|
3766
|
+
created_at: string;
|
|
2803
3767
|
created_by: string;
|
|
2804
3768
|
credit_available: number;
|
|
2805
3769
|
credit_next_expiration: string;
|
|
2806
3770
|
credit_total: number;
|
|
3771
|
+
enforce_encrypted_bundles: boolean;
|
|
2807
3772
|
enforce_hashed_api_keys: boolean;
|
|
2808
3773
|
enforcing_2fa: boolean;
|
|
2809
3774
|
gid: string;
|
|
@@ -2811,16 +3776,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2811
3776
|
is_yearly: boolean;
|
|
2812
3777
|
logo: string;
|
|
2813
3778
|
management_email: string;
|
|
3779
|
+
max_apikey_expiration_days: number;
|
|
2814
3780
|
name: string;
|
|
2815
3781
|
next_stats_update_at: string;
|
|
2816
3782
|
password_has_access: boolean;
|
|
2817
3783
|
password_policy_config: import("./types/supabase.types").Json;
|
|
2818
3784
|
paying: boolean;
|
|
3785
|
+
require_apikey_expiration: boolean;
|
|
3786
|
+
required_encryption_key: string;
|
|
2819
3787
|
role: string;
|
|
3788
|
+
stats_refresh_requested_at: string;
|
|
2820
3789
|
stats_updated_at: string;
|
|
2821
3790
|
subscription_end: string;
|
|
2822
3791
|
subscription_start: string;
|
|
2823
3792
|
trial_left: number;
|
|
3793
|
+
use_new_rbac: boolean;
|
|
3794
|
+
website: string;
|
|
2824
3795
|
}[];
|
|
2825
3796
|
} | {
|
|
2826
3797
|
Args: {
|
|
@@ -2830,10 +3801,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2830
3801
|
"2fa_has_access": boolean;
|
|
2831
3802
|
app_count: number;
|
|
2832
3803
|
can_use_more: boolean;
|
|
3804
|
+
created_at: string;
|
|
2833
3805
|
created_by: string;
|
|
2834
3806
|
credit_available: number;
|
|
2835
3807
|
credit_next_expiration: string;
|
|
2836
3808
|
credit_total: number;
|
|
3809
|
+
enforce_encrypted_bundles: boolean;
|
|
2837
3810
|
enforce_hashed_api_keys: boolean;
|
|
2838
3811
|
enforcing_2fa: boolean;
|
|
2839
3812
|
gid: string;
|
|
@@ -2841,16 +3814,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2841
3814
|
is_yearly: boolean;
|
|
2842
3815
|
logo: string;
|
|
2843
3816
|
management_email: string;
|
|
3817
|
+
max_apikey_expiration_days: number;
|
|
2844
3818
|
name: string;
|
|
2845
3819
|
next_stats_update_at: string;
|
|
2846
3820
|
password_has_access: boolean;
|
|
2847
3821
|
password_policy_config: import("./types/supabase.types").Json;
|
|
2848
3822
|
paying: boolean;
|
|
3823
|
+
require_apikey_expiration: boolean;
|
|
3824
|
+
required_encryption_key: string;
|
|
2849
3825
|
role: string;
|
|
3826
|
+
stats_refresh_requested_at: string;
|
|
2850
3827
|
stats_updated_at: string;
|
|
2851
3828
|
subscription_end: string;
|
|
2852
3829
|
subscription_start: string;
|
|
2853
3830
|
trial_left: number;
|
|
3831
|
+
use_new_rbac: boolean;
|
|
3832
|
+
website: string;
|
|
2854
3833
|
}[];
|
|
2855
3834
|
};
|
|
2856
3835
|
get_password_policy_hash: {
|
|
@@ -2859,6 +3838,32 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2859
3838
|
};
|
|
2860
3839
|
Returns: string;
|
|
2861
3840
|
};
|
|
3841
|
+
get_plan_usage_and_fit: {
|
|
3842
|
+
Args: {
|
|
3843
|
+
orgid: string;
|
|
3844
|
+
};
|
|
3845
|
+
Returns: {
|
|
3846
|
+
bandwidth_percent: number;
|
|
3847
|
+
build_time_percent: number;
|
|
3848
|
+
is_good_plan: boolean;
|
|
3849
|
+
mau_percent: number;
|
|
3850
|
+
storage_percent: number;
|
|
3851
|
+
total_percent: number;
|
|
3852
|
+
}[];
|
|
3853
|
+
};
|
|
3854
|
+
get_plan_usage_and_fit_uncached: {
|
|
3855
|
+
Args: {
|
|
3856
|
+
orgid: string;
|
|
3857
|
+
};
|
|
3858
|
+
Returns: {
|
|
3859
|
+
bandwidth_percent: number;
|
|
3860
|
+
build_time_percent: number;
|
|
3861
|
+
is_good_plan: boolean;
|
|
3862
|
+
mau_percent: number;
|
|
3863
|
+
storage_percent: number;
|
|
3864
|
+
total_percent: number;
|
|
3865
|
+
}[];
|
|
3866
|
+
};
|
|
2862
3867
|
get_plan_usage_percent_detailed: {
|
|
2863
3868
|
Args: {
|
|
2864
3869
|
orgid: string;
|
|
@@ -2884,6 +3889,15 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2884
3889
|
total_percent: number;
|
|
2885
3890
|
}[];
|
|
2886
3891
|
};
|
|
3892
|
+
get_sso_enforcement_by_domain: {
|
|
3893
|
+
Args: {
|
|
3894
|
+
p_domain: string;
|
|
3895
|
+
};
|
|
3896
|
+
Returns: {
|
|
3897
|
+
enforce_sso: boolean;
|
|
3898
|
+
org_id: string;
|
|
3899
|
+
}[];
|
|
3900
|
+
};
|
|
2887
3901
|
get_total_app_storage_size_orgs: {
|
|
2888
3902
|
Args: {
|
|
2889
3903
|
app_id: string;
|
|
@@ -2892,6 +3906,18 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2892
3906
|
Returns: number;
|
|
2893
3907
|
};
|
|
2894
3908
|
get_total_metrics: {
|
|
3909
|
+
Args: never;
|
|
3910
|
+
Returns: {
|
|
3911
|
+
bandwidth: number;
|
|
3912
|
+
build_time_unit: number;
|
|
3913
|
+
fail: number;
|
|
3914
|
+
get: number;
|
|
3915
|
+
install: number;
|
|
3916
|
+
mau: number;
|
|
3917
|
+
storage: number;
|
|
3918
|
+
uninstall: number;
|
|
3919
|
+
}[];
|
|
3920
|
+
} | {
|
|
2895
3921
|
Args: {
|
|
2896
3922
|
org_id: string;
|
|
2897
3923
|
};
|
|
@@ -2963,6 +3989,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2963
3989
|
};
|
|
2964
3990
|
Returns: string;
|
|
2965
3991
|
};
|
|
3992
|
+
get_user_org_ids: {
|
|
3993
|
+
Args: never;
|
|
3994
|
+
Returns: {
|
|
3995
|
+
org_id: string;
|
|
3996
|
+
}[];
|
|
3997
|
+
};
|
|
2966
3998
|
get_versions_with_no_metadata: {
|
|
2967
3999
|
Args: never;
|
|
2968
4000
|
Returns: {
|
|
@@ -2972,6 +4004,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
2972
4004
|
comment: string | null;
|
|
2973
4005
|
created_at: string | null;
|
|
2974
4006
|
deleted: boolean;
|
|
4007
|
+
deleted_at: string | null;
|
|
2975
4008
|
external_url: string | null;
|
|
2976
4009
|
id: number;
|
|
2977
4010
|
key_id: string | null;
|
|
@@ -3038,6 +4071,20 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3038
4071
|
};
|
|
3039
4072
|
Returns: boolean;
|
|
3040
4073
|
};
|
|
4074
|
+
has_seeded_demo_data: {
|
|
4075
|
+
Args: {
|
|
4076
|
+
p_app_id: string;
|
|
4077
|
+
};
|
|
4078
|
+
Returns: boolean;
|
|
4079
|
+
};
|
|
4080
|
+
internal_request_db_user_names: {
|
|
4081
|
+
Args: never;
|
|
4082
|
+
Returns: string[];
|
|
4083
|
+
};
|
|
4084
|
+
internal_request_role_names: {
|
|
4085
|
+
Args: never;
|
|
4086
|
+
Returns: string[];
|
|
4087
|
+
};
|
|
3041
4088
|
invite_user_to_org: {
|
|
3042
4089
|
Args: {
|
|
3043
4090
|
email: string;
|
|
@@ -3046,18 +4093,17 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3046
4093
|
};
|
|
3047
4094
|
Returns: string;
|
|
3048
4095
|
};
|
|
3049
|
-
|
|
4096
|
+
invite_user_to_org_rbac: {
|
|
3050
4097
|
Args: {
|
|
3051
|
-
|
|
4098
|
+
email: string;
|
|
4099
|
+
org_id: string;
|
|
4100
|
+
role_name: string;
|
|
3052
4101
|
};
|
|
3053
|
-
Returns:
|
|
4102
|
+
Returns: string;
|
|
3054
4103
|
};
|
|
3055
|
-
|
|
3056
|
-
Args: never;
|
|
3057
|
-
Returns: boolean;
|
|
3058
|
-
} | {
|
|
4104
|
+
is_account_disabled: {
|
|
3059
4105
|
Args: {
|
|
3060
|
-
|
|
4106
|
+
user_id: string;
|
|
3061
4107
|
};
|
|
3062
4108
|
Returns: boolean;
|
|
3063
4109
|
};
|
|
@@ -3131,6 +4177,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3131
4177
|
};
|
|
3132
4178
|
Returns: boolean;
|
|
3133
4179
|
};
|
|
4180
|
+
is_bundle_encrypted: {
|
|
4181
|
+
Args: {
|
|
4182
|
+
session_key: string;
|
|
4183
|
+
};
|
|
4184
|
+
Returns: boolean;
|
|
4185
|
+
};
|
|
3134
4186
|
is_canceled_org: {
|
|
3135
4187
|
Args: {
|
|
3136
4188
|
orgid: string;
|
|
@@ -3143,6 +4195,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3143
4195
|
};
|
|
3144
4196
|
Returns: boolean;
|
|
3145
4197
|
};
|
|
4198
|
+
is_internal_request_role: {
|
|
4199
|
+
Args: {
|
|
4200
|
+
caller_role: string;
|
|
4201
|
+
};
|
|
4202
|
+
Returns: boolean;
|
|
4203
|
+
};
|
|
3146
4204
|
is_mau_exceeded_by_org: {
|
|
3147
4205
|
Args: {
|
|
3148
4206
|
org_id: string;
|
|
@@ -3205,6 +4263,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3205
4263
|
};
|
|
3206
4264
|
Returns: boolean;
|
|
3207
4265
|
};
|
|
4266
|
+
is_platform_admin: {
|
|
4267
|
+
Args: never;
|
|
4268
|
+
Returns: boolean;
|
|
4269
|
+
} | {
|
|
4270
|
+
Args: {
|
|
4271
|
+
userid: string;
|
|
4272
|
+
};
|
|
4273
|
+
Returns: boolean;
|
|
4274
|
+
};
|
|
4275
|
+
is_rbac_enabled_globally: {
|
|
4276
|
+
Args: never;
|
|
4277
|
+
Returns: boolean;
|
|
4278
|
+
};
|
|
4279
|
+
is_recent_email_otp_verified: {
|
|
4280
|
+
Args: {
|
|
4281
|
+
p_user_id: string;
|
|
4282
|
+
};
|
|
4283
|
+
Returns: boolean;
|
|
4284
|
+
};
|
|
3208
4285
|
is_storage_exceeded_by_org: {
|
|
3209
4286
|
Args: {
|
|
3210
4287
|
org_id: string;
|
|
@@ -3217,6 +4294,26 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3217
4294
|
};
|
|
3218
4295
|
Returns: number;
|
|
3219
4296
|
};
|
|
4297
|
+
is_user_app_admin: {
|
|
4298
|
+
Args: {
|
|
4299
|
+
p_app_id: string;
|
|
4300
|
+
p_user_id: string;
|
|
4301
|
+
};
|
|
4302
|
+
Returns: boolean;
|
|
4303
|
+
};
|
|
4304
|
+
is_user_org_admin: {
|
|
4305
|
+
Args: {
|
|
4306
|
+
p_org_id: string;
|
|
4307
|
+
p_user_id: string;
|
|
4308
|
+
};
|
|
4309
|
+
Returns: boolean;
|
|
4310
|
+
};
|
|
4311
|
+
mark_app_stats_refreshed: {
|
|
4312
|
+
Args: {
|
|
4313
|
+
p_app_id: string;
|
|
4314
|
+
};
|
|
4315
|
+
Returns: string;
|
|
4316
|
+
};
|
|
3220
4317
|
mass_edit_queue_messages_cf_ids: {
|
|
3221
4318
|
Args: {
|
|
3222
4319
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -3282,6 +4379,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3282
4379
|
Args: never;
|
|
3283
4380
|
Returns: undefined;
|
|
3284
4381
|
};
|
|
4382
|
+
process_daily_fail_ratio_email: {
|
|
4383
|
+
Args: never;
|
|
4384
|
+
Returns: undefined;
|
|
4385
|
+
};
|
|
3285
4386
|
process_deploy_install_stats_email: {
|
|
3286
4387
|
Args: never;
|
|
3287
4388
|
Returns: undefined;
|
|
@@ -3319,210 +4420,849 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3319
4420
|
Args: never;
|
|
3320
4421
|
Returns: undefined;
|
|
3321
4422
|
};
|
|
3322
|
-
|
|
3323
|
-
Args: {
|
|
3324
|
-
customer_id: string;
|
|
3325
|
-
org_id: string;
|
|
3326
|
-
};
|
|
3327
|
-
Returns: undefined;
|
|
3328
|
-
};
|
|
3329
|
-
read_bandwidth_usage: {
|
|
4423
|
+
queue_cron_stat_app_for_app: {
|
|
3330
4424
|
Args: {
|
|
3331
4425
|
p_app_id: string;
|
|
3332
|
-
|
|
3333
|
-
p_period_start: string;
|
|
4426
|
+
p_org_id?: string;
|
|
3334
4427
|
};
|
|
3335
|
-
Returns:
|
|
3336
|
-
app_id: string;
|
|
3337
|
-
bandwidth: number;
|
|
3338
|
-
date: string;
|
|
3339
|
-
}[];
|
|
4428
|
+
Returns: undefined;
|
|
3340
4429
|
};
|
|
3341
|
-
|
|
4430
|
+
queue_cron_stat_org_for_org: {
|
|
3342
4431
|
Args: {
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
p_period_start: string;
|
|
4432
|
+
customer_id: string;
|
|
4433
|
+
org_id: string;
|
|
3346
4434
|
};
|
|
3347
|
-
Returns:
|
|
3348
|
-
app_id: string;
|
|
3349
|
-
date: string;
|
|
3350
|
-
mau: number;
|
|
3351
|
-
}[];
|
|
4435
|
+
Returns: undefined;
|
|
3352
4436
|
};
|
|
3353
|
-
|
|
4437
|
+
rbac_check_permission: {
|
|
3354
4438
|
Args: {
|
|
3355
|
-
p_app_id
|
|
3356
|
-
|
|
3357
|
-
|
|
4439
|
+
p_app_id?: string;
|
|
4440
|
+
p_channel_id?: number;
|
|
4441
|
+
p_org_id?: string;
|
|
4442
|
+
p_permission_key: string;
|
|
3358
4443
|
};
|
|
3359
|
-
Returns:
|
|
3360
|
-
app_id: string;
|
|
3361
|
-
date: string;
|
|
3362
|
-
storage: number;
|
|
3363
|
-
}[];
|
|
4444
|
+
Returns: boolean;
|
|
3364
4445
|
};
|
|
3365
|
-
|
|
4446
|
+
rbac_check_permission_direct: {
|
|
3366
4447
|
Args: {
|
|
4448
|
+
p_apikey?: string;
|
|
3367
4449
|
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;
|
|
4450
|
+
p_channel_id: number;
|
|
3385
4451
|
p_org_id: string;
|
|
3386
|
-
|
|
4452
|
+
p_permission_key: string;
|
|
3387
4453
|
p_user_id: string;
|
|
3388
4454
|
};
|
|
3389
|
-
Returns: string;
|
|
3390
|
-
};
|
|
3391
|
-
reject_access_due_to_2fa: {
|
|
3392
|
-
Args: {
|
|
3393
|
-
org_id: string;
|
|
3394
|
-
user_id: string;
|
|
3395
|
-
};
|
|
3396
4455
|
Returns: boolean;
|
|
3397
4456
|
};
|
|
3398
|
-
|
|
4457
|
+
rbac_check_permission_direct_no_password_policy: {
|
|
3399
4458
|
Args: {
|
|
3400
|
-
|
|
4459
|
+
p_apikey?: string;
|
|
4460
|
+
p_app_id: string;
|
|
4461
|
+
p_channel_id: number;
|
|
4462
|
+
p_org_id: string;
|
|
4463
|
+
p_permission_key: string;
|
|
4464
|
+
p_user_id: string;
|
|
3401
4465
|
};
|
|
3402
4466
|
Returns: boolean;
|
|
3403
4467
|
};
|
|
3404
|
-
|
|
4468
|
+
rbac_check_permission_no_password_policy: {
|
|
3405
4469
|
Args: {
|
|
3406
|
-
|
|
4470
|
+
p_app_id?: string;
|
|
4471
|
+
p_channel_id?: number;
|
|
4472
|
+
p_org_id?: string;
|
|
4473
|
+
p_permission_key: string;
|
|
3407
4474
|
};
|
|
3408
4475
|
Returns: boolean;
|
|
3409
4476
|
};
|
|
3410
|
-
|
|
4477
|
+
rbac_check_permission_request: {
|
|
3411
4478
|
Args: {
|
|
3412
|
-
|
|
3413
|
-
|
|
4479
|
+
p_app_id?: string;
|
|
4480
|
+
p_channel_id?: number;
|
|
4481
|
+
p_org_id?: string;
|
|
4482
|
+
p_permission_key: string;
|
|
3414
4483
|
};
|
|
3415
4484
|
Returns: boolean;
|
|
3416
4485
|
};
|
|
3417
|
-
|
|
3418
|
-
Args: never;
|
|
3419
|
-
Returns: undefined;
|
|
3420
|
-
};
|
|
3421
|
-
rescind_invitation: {
|
|
4486
|
+
rbac_enable_for_org: {
|
|
3422
4487
|
Args: {
|
|
3423
|
-
|
|
3424
|
-
|
|
4488
|
+
p_granted_by?: string;
|
|
4489
|
+
p_org_id: string;
|
|
3425
4490
|
};
|
|
3426
|
-
Returns:
|
|
4491
|
+
Returns: import("./types/supabase.types").Json;
|
|
3427
4492
|
};
|
|
3428
|
-
|
|
4493
|
+
rbac_has_permission: {
|
|
3429
4494
|
Args: {
|
|
3430
|
-
|
|
4495
|
+
p_app_id: string;
|
|
4496
|
+
p_channel_id: number;
|
|
3431
4497
|
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;
|
|
4498
|
+
p_permission_key: string;
|
|
4499
|
+
p_principal_id: string;
|
|
4500
|
+
p_principal_type: string;
|
|
3447
4501
|
};
|
|
4502
|
+
Returns: boolean;
|
|
3448
4503
|
};
|
|
3449
|
-
|
|
4504
|
+
rbac_is_enabled_for_org: {
|
|
3450
4505
|
Args: {
|
|
3451
|
-
|
|
3452
|
-
org_id: string;
|
|
4506
|
+
p_org_id: string;
|
|
3453
4507
|
};
|
|
3454
|
-
Returns:
|
|
4508
|
+
Returns: boolean;
|
|
3455
4509
|
};
|
|
3456
|
-
|
|
4510
|
+
rbac_legacy_right_for_org_role: {
|
|
3457
4511
|
Args: {
|
|
3458
|
-
|
|
3459
|
-
org_id: string;
|
|
4512
|
+
p_role_name: string;
|
|
3460
4513
|
};
|
|
3461
|
-
Returns:
|
|
4514
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3462
4515
|
};
|
|
3463
|
-
|
|
4516
|
+
rbac_legacy_right_for_permission: {
|
|
3464
4517
|
Args: {
|
|
3465
|
-
|
|
3466
|
-
org_id: string;
|
|
4518
|
+
p_permission_key: string;
|
|
3467
4519
|
};
|
|
3468
|
-
Returns:
|
|
4520
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
3469
4521
|
};
|
|
3470
|
-
|
|
4522
|
+
rbac_legacy_role_hint: {
|
|
3471
4523
|
Args: {
|
|
3472
|
-
|
|
3473
|
-
|
|
4524
|
+
p_app_id: string;
|
|
4525
|
+
p_channel_id: number;
|
|
4526
|
+
p_user_right: Database["public"]["Enums"]["user_min_right"];
|
|
3474
4527
|
};
|
|
3475
|
-
Returns:
|
|
4528
|
+
Returns: string;
|
|
3476
4529
|
};
|
|
3477
|
-
|
|
4530
|
+
rbac_migrate_org_users_to_bindings: {
|
|
3478
4531
|
Args: {
|
|
3479
|
-
|
|
3480
|
-
p_expires_at?: string;
|
|
3481
|
-
p_notes?: string;
|
|
4532
|
+
p_granted_by?: string;
|
|
3482
4533
|
p_org_id: string;
|
|
3483
|
-
p_source?: string;
|
|
3484
|
-
p_source_ref?: import("./types/supabase.types").Json;
|
|
3485
4534
|
};
|
|
3486
|
-
Returns:
|
|
3487
|
-
available_credits: number;
|
|
3488
|
-
grant_id: string;
|
|
3489
|
-
next_expiration: string;
|
|
3490
|
-
total_credits: number;
|
|
3491
|
-
transaction_id: number;
|
|
3492
|
-
}[];
|
|
4535
|
+
Returns: import("./types/supabase.types").Json;
|
|
3493
4536
|
};
|
|
3494
|
-
|
|
4537
|
+
rbac_perm_app_build_native: {
|
|
3495
4538
|
Args: never;
|
|
3496
|
-
Returns:
|
|
4539
|
+
Returns: string;
|
|
3497
4540
|
};
|
|
3498
|
-
|
|
3499
|
-
Args:
|
|
3500
|
-
|
|
3501
|
-
p_new_org_id: string;
|
|
3502
|
-
};
|
|
3503
|
-
Returns: undefined;
|
|
4541
|
+
rbac_perm_app_create_channel: {
|
|
4542
|
+
Args: never;
|
|
4543
|
+
Returns: string;
|
|
3504
4544
|
};
|
|
3505
|
-
|
|
3506
|
-
Args:
|
|
3507
|
-
|
|
3508
|
-
};
|
|
3509
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4545
|
+
rbac_perm_app_delete: {
|
|
4546
|
+
Args: never;
|
|
4547
|
+
Returns: string;
|
|
3510
4548
|
};
|
|
3511
|
-
|
|
3512
|
-
Args:
|
|
3513
|
-
|
|
3514
|
-
};
|
|
3515
|
-
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4549
|
+
rbac_perm_app_manage_devices: {
|
|
4550
|
+
Args: never;
|
|
4551
|
+
Returns: string;
|
|
3516
4552
|
};
|
|
3517
|
-
|
|
4553
|
+
rbac_perm_app_read: {
|
|
3518
4554
|
Args: never;
|
|
3519
|
-
Returns:
|
|
4555
|
+
Returns: string;
|
|
3520
4556
|
};
|
|
3521
|
-
|
|
3522
|
-
Args:
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
4557
|
+
rbac_perm_app_read_audit: {
|
|
4558
|
+
Args: never;
|
|
4559
|
+
Returns: string;
|
|
4560
|
+
};
|
|
4561
|
+
rbac_perm_app_read_bundles: {
|
|
4562
|
+
Args: never;
|
|
4563
|
+
Returns: string;
|
|
4564
|
+
};
|
|
4565
|
+
rbac_perm_app_read_channels: {
|
|
4566
|
+
Args: never;
|
|
4567
|
+
Returns: string;
|
|
4568
|
+
};
|
|
4569
|
+
rbac_perm_app_read_devices: {
|
|
4570
|
+
Args: never;
|
|
4571
|
+
Returns: string;
|
|
4572
|
+
};
|
|
4573
|
+
rbac_perm_app_read_logs: {
|
|
4574
|
+
Args: never;
|
|
4575
|
+
Returns: string;
|
|
4576
|
+
};
|
|
4577
|
+
rbac_perm_app_transfer: {
|
|
4578
|
+
Args: never;
|
|
4579
|
+
Returns: string;
|
|
4580
|
+
};
|
|
4581
|
+
rbac_perm_app_update_settings: {
|
|
4582
|
+
Args: never;
|
|
4583
|
+
Returns: string;
|
|
4584
|
+
};
|
|
4585
|
+
rbac_perm_app_update_user_roles: {
|
|
4586
|
+
Args: never;
|
|
4587
|
+
Returns: string;
|
|
4588
|
+
};
|
|
4589
|
+
rbac_perm_app_upload_bundle: {
|
|
4590
|
+
Args: never;
|
|
4591
|
+
Returns: string;
|
|
4592
|
+
};
|
|
4593
|
+
rbac_perm_bundle_delete: {
|
|
4594
|
+
Args: never;
|
|
4595
|
+
Returns: string;
|
|
4596
|
+
};
|
|
4597
|
+
rbac_perm_bundle_read: {
|
|
4598
|
+
Args: never;
|
|
4599
|
+
Returns: string;
|
|
4600
|
+
};
|
|
4601
|
+
rbac_perm_bundle_update: {
|
|
4602
|
+
Args: never;
|
|
4603
|
+
Returns: string;
|
|
4604
|
+
};
|
|
4605
|
+
rbac_perm_channel_delete: {
|
|
4606
|
+
Args: never;
|
|
4607
|
+
Returns: string;
|
|
4608
|
+
};
|
|
4609
|
+
rbac_perm_channel_manage_forced_devices: {
|
|
4610
|
+
Args: never;
|
|
4611
|
+
Returns: string;
|
|
4612
|
+
};
|
|
4613
|
+
rbac_perm_channel_promote_bundle: {
|
|
4614
|
+
Args: never;
|
|
4615
|
+
Returns: string;
|
|
4616
|
+
};
|
|
4617
|
+
rbac_perm_channel_read: {
|
|
4618
|
+
Args: never;
|
|
4619
|
+
Returns: string;
|
|
4620
|
+
};
|
|
4621
|
+
rbac_perm_channel_read_audit: {
|
|
4622
|
+
Args: never;
|
|
4623
|
+
Returns: string;
|
|
4624
|
+
};
|
|
4625
|
+
rbac_perm_channel_read_forced_devices: {
|
|
4626
|
+
Args: never;
|
|
4627
|
+
Returns: string;
|
|
4628
|
+
};
|
|
4629
|
+
rbac_perm_channel_read_history: {
|
|
4630
|
+
Args: never;
|
|
4631
|
+
Returns: string;
|
|
4632
|
+
};
|
|
4633
|
+
rbac_perm_channel_rollback_bundle: {
|
|
4634
|
+
Args: never;
|
|
4635
|
+
Returns: string;
|
|
4636
|
+
};
|
|
4637
|
+
rbac_perm_channel_update_settings: {
|
|
4638
|
+
Args: never;
|
|
4639
|
+
Returns: string;
|
|
4640
|
+
};
|
|
4641
|
+
rbac_perm_org_create_app: {
|
|
4642
|
+
Args: never;
|
|
4643
|
+
Returns: string;
|
|
4644
|
+
};
|
|
4645
|
+
rbac_perm_org_delete: {
|
|
4646
|
+
Args: never;
|
|
4647
|
+
Returns: string;
|
|
4648
|
+
};
|
|
4649
|
+
rbac_perm_org_invite_user: {
|
|
4650
|
+
Args: never;
|
|
4651
|
+
Returns: string;
|
|
4652
|
+
};
|
|
4653
|
+
rbac_perm_org_read: {
|
|
4654
|
+
Args: never;
|
|
4655
|
+
Returns: string;
|
|
4656
|
+
};
|
|
4657
|
+
rbac_perm_org_read_audit: {
|
|
4658
|
+
Args: never;
|
|
4659
|
+
Returns: string;
|
|
4660
|
+
};
|
|
4661
|
+
rbac_perm_org_read_billing: {
|
|
4662
|
+
Args: never;
|
|
4663
|
+
Returns: string;
|
|
4664
|
+
};
|
|
4665
|
+
rbac_perm_org_read_billing_audit: {
|
|
4666
|
+
Args: never;
|
|
4667
|
+
Returns: string;
|
|
4668
|
+
};
|
|
4669
|
+
rbac_perm_org_read_invoices: {
|
|
4670
|
+
Args: never;
|
|
4671
|
+
Returns: string;
|
|
4672
|
+
};
|
|
4673
|
+
rbac_perm_org_read_members: {
|
|
4674
|
+
Args: never;
|
|
4675
|
+
Returns: string;
|
|
4676
|
+
};
|
|
4677
|
+
rbac_perm_org_update_billing: {
|
|
4678
|
+
Args: never;
|
|
4679
|
+
Returns: string;
|
|
4680
|
+
};
|
|
4681
|
+
rbac_perm_org_update_settings: {
|
|
4682
|
+
Args: never;
|
|
4683
|
+
Returns: string;
|
|
4684
|
+
};
|
|
4685
|
+
rbac_perm_org_update_user_roles: {
|
|
4686
|
+
Args: never;
|
|
4687
|
+
Returns: string;
|
|
4688
|
+
};
|
|
4689
|
+
rbac_perm_platform_db_break_glass: {
|
|
4690
|
+
Args: never;
|
|
4691
|
+
Returns: string;
|
|
4692
|
+
};
|
|
4693
|
+
rbac_perm_platform_delete_orphan_users: {
|
|
4694
|
+
Args: never;
|
|
4695
|
+
Returns: string;
|
|
4696
|
+
};
|
|
4697
|
+
rbac_perm_platform_impersonate_user: {
|
|
4698
|
+
Args: never;
|
|
4699
|
+
Returns: string;
|
|
4700
|
+
};
|
|
4701
|
+
rbac_perm_platform_manage_apps_any: {
|
|
4702
|
+
Args: never;
|
|
4703
|
+
Returns: string;
|
|
4704
|
+
};
|
|
4705
|
+
rbac_perm_platform_manage_channels_any: {
|
|
4706
|
+
Args: never;
|
|
4707
|
+
Returns: string;
|
|
4708
|
+
};
|
|
4709
|
+
rbac_perm_platform_manage_orgs_any: {
|
|
4710
|
+
Args: never;
|
|
4711
|
+
Returns: string;
|
|
4712
|
+
};
|
|
4713
|
+
rbac_perm_platform_read_all_audit: {
|
|
4714
|
+
Args: never;
|
|
4715
|
+
Returns: string;
|
|
4716
|
+
};
|
|
4717
|
+
rbac_perm_platform_run_maintenance_jobs: {
|
|
4718
|
+
Args: never;
|
|
4719
|
+
Returns: string;
|
|
4720
|
+
};
|
|
4721
|
+
rbac_permission_for_legacy: {
|
|
4722
|
+
Args: {
|
|
4723
|
+
p_min_right: Database["public"]["Enums"]["user_min_right"];
|
|
4724
|
+
p_scope: string;
|
|
4725
|
+
};
|
|
4726
|
+
Returns: string;
|
|
4727
|
+
};
|
|
4728
|
+
rbac_preview_migration: {
|
|
4729
|
+
Args: {
|
|
4730
|
+
p_org_id: string;
|
|
4731
|
+
};
|
|
4732
|
+
Returns: {
|
|
4733
|
+
app_id: string;
|
|
4734
|
+
channel_id: number;
|
|
4735
|
+
org_user_id: number;
|
|
4736
|
+
scope_type: string;
|
|
4737
|
+
skip_reason: string;
|
|
4738
|
+
suggested_role: string;
|
|
4739
|
+
user_id: string;
|
|
4740
|
+
user_right: string;
|
|
4741
|
+
will_migrate: boolean;
|
|
4742
|
+
}[];
|
|
4743
|
+
};
|
|
4744
|
+
rbac_principal_apikey: {
|
|
4745
|
+
Args: never;
|
|
4746
|
+
Returns: string;
|
|
4747
|
+
};
|
|
4748
|
+
rbac_principal_group: {
|
|
4749
|
+
Args: never;
|
|
4750
|
+
Returns: string;
|
|
4751
|
+
};
|
|
4752
|
+
rbac_principal_user: {
|
|
4753
|
+
Args: never;
|
|
4754
|
+
Returns: string;
|
|
4755
|
+
};
|
|
4756
|
+
rbac_right_admin: {
|
|
4757
|
+
Args: never;
|
|
4758
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4759
|
+
};
|
|
4760
|
+
rbac_right_invite_admin: {
|
|
4761
|
+
Args: never;
|
|
4762
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4763
|
+
};
|
|
4764
|
+
rbac_right_invite_super_admin: {
|
|
4765
|
+
Args: never;
|
|
4766
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4767
|
+
};
|
|
4768
|
+
rbac_right_invite_upload: {
|
|
4769
|
+
Args: never;
|
|
4770
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4771
|
+
};
|
|
4772
|
+
rbac_right_invite_write: {
|
|
4773
|
+
Args: never;
|
|
4774
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4775
|
+
};
|
|
4776
|
+
rbac_right_read: {
|
|
4777
|
+
Args: never;
|
|
4778
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4779
|
+
};
|
|
4780
|
+
rbac_right_super_admin: {
|
|
4781
|
+
Args: never;
|
|
4782
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4783
|
+
};
|
|
4784
|
+
rbac_right_upload: {
|
|
4785
|
+
Args: never;
|
|
4786
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4787
|
+
};
|
|
4788
|
+
rbac_right_write: {
|
|
4789
|
+
Args: never;
|
|
4790
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
4791
|
+
};
|
|
4792
|
+
rbac_role_app_admin: {
|
|
4793
|
+
Args: never;
|
|
4794
|
+
Returns: string;
|
|
4795
|
+
};
|
|
4796
|
+
rbac_role_app_developer: {
|
|
4797
|
+
Args: never;
|
|
4798
|
+
Returns: string;
|
|
4799
|
+
};
|
|
4800
|
+
rbac_role_app_reader: {
|
|
4801
|
+
Args: never;
|
|
4802
|
+
Returns: string;
|
|
4803
|
+
};
|
|
4804
|
+
rbac_role_app_uploader: {
|
|
4805
|
+
Args: never;
|
|
4806
|
+
Returns: string;
|
|
4807
|
+
};
|
|
4808
|
+
rbac_role_bundle_admin: {
|
|
4809
|
+
Args: never;
|
|
4810
|
+
Returns: string;
|
|
4811
|
+
};
|
|
4812
|
+
rbac_role_bundle_reader: {
|
|
4813
|
+
Args: never;
|
|
4814
|
+
Returns: string;
|
|
4815
|
+
};
|
|
4816
|
+
rbac_role_channel_admin: {
|
|
4817
|
+
Args: never;
|
|
4818
|
+
Returns: string;
|
|
4819
|
+
};
|
|
4820
|
+
rbac_role_channel_reader: {
|
|
4821
|
+
Args: never;
|
|
4822
|
+
Returns: string;
|
|
4823
|
+
};
|
|
4824
|
+
rbac_role_org_admin: {
|
|
4825
|
+
Args: never;
|
|
4826
|
+
Returns: string;
|
|
4827
|
+
};
|
|
4828
|
+
rbac_role_org_billing_admin: {
|
|
4829
|
+
Args: never;
|
|
4830
|
+
Returns: string;
|
|
4831
|
+
};
|
|
4832
|
+
rbac_role_org_member: {
|
|
4833
|
+
Args: never;
|
|
4834
|
+
Returns: string;
|
|
4835
|
+
};
|
|
4836
|
+
rbac_role_org_super_admin: {
|
|
4837
|
+
Args: never;
|
|
4838
|
+
Returns: string;
|
|
4839
|
+
};
|
|
4840
|
+
rbac_role_platform_super_admin: {
|
|
4841
|
+
Args: never;
|
|
4842
|
+
Returns: string;
|
|
4843
|
+
};
|
|
4844
|
+
rbac_rollback_org: {
|
|
4845
|
+
Args: {
|
|
4846
|
+
p_org_id: string;
|
|
4847
|
+
};
|
|
4848
|
+
Returns: import("./types/supabase.types").Json;
|
|
4849
|
+
};
|
|
4850
|
+
rbac_scope_app: {
|
|
4851
|
+
Args: never;
|
|
4852
|
+
Returns: string;
|
|
4853
|
+
};
|
|
4854
|
+
rbac_scope_bundle: {
|
|
4855
|
+
Args: never;
|
|
4856
|
+
Returns: string;
|
|
4857
|
+
};
|
|
4858
|
+
rbac_scope_channel: {
|
|
4859
|
+
Args: never;
|
|
4860
|
+
Returns: string;
|
|
4861
|
+
};
|
|
4862
|
+
rbac_scope_org: {
|
|
4863
|
+
Args: never;
|
|
4864
|
+
Returns: string;
|
|
4865
|
+
};
|
|
4866
|
+
rbac_scope_platform: {
|
|
4867
|
+
Args: never;
|
|
4868
|
+
Returns: string;
|
|
4869
|
+
};
|
|
4870
|
+
read_bandwidth_usage: {
|
|
4871
|
+
Args: {
|
|
4872
|
+
p_app_id: string;
|
|
4873
|
+
p_period_end: string;
|
|
4874
|
+
p_period_start: string;
|
|
4875
|
+
};
|
|
4876
|
+
Returns: {
|
|
4877
|
+
app_id: string;
|
|
4878
|
+
bandwidth: number;
|
|
4879
|
+
date: string;
|
|
4880
|
+
}[];
|
|
4881
|
+
};
|
|
4882
|
+
read_device_usage: {
|
|
4883
|
+
Args: {
|
|
4884
|
+
p_app_id: string;
|
|
4885
|
+
p_period_end: string;
|
|
4886
|
+
p_period_start: string;
|
|
4887
|
+
};
|
|
4888
|
+
Returns: {
|
|
4889
|
+
app_id: string;
|
|
4890
|
+
date: string;
|
|
4891
|
+
mau: number;
|
|
4892
|
+
}[];
|
|
4893
|
+
};
|
|
4894
|
+
read_storage_usage: {
|
|
4895
|
+
Args: {
|
|
4896
|
+
p_app_id: string;
|
|
4897
|
+
p_period_end: string;
|
|
4898
|
+
p_period_start: string;
|
|
4899
|
+
};
|
|
4900
|
+
Returns: {
|
|
4901
|
+
app_id: string;
|
|
4902
|
+
date: string;
|
|
4903
|
+
storage: number;
|
|
4904
|
+
}[];
|
|
4905
|
+
};
|
|
4906
|
+
read_version_usage: {
|
|
4907
|
+
Args: {
|
|
4908
|
+
p_app_id: string;
|
|
4909
|
+
p_period_end: string;
|
|
4910
|
+
p_period_start: string;
|
|
4911
|
+
};
|
|
4912
|
+
Returns: {
|
|
4913
|
+
app_id: string;
|
|
4914
|
+
date: string;
|
|
4915
|
+
fail: number;
|
|
4916
|
+
get: number;
|
|
4917
|
+
install: number;
|
|
4918
|
+
uninstall: number;
|
|
4919
|
+
version_name: string;
|
|
4920
|
+
}[];
|
|
4921
|
+
};
|
|
4922
|
+
record_build_time: {
|
|
4923
|
+
Args: {
|
|
4924
|
+
p_app_id: string;
|
|
4925
|
+
p_build_id: string;
|
|
4926
|
+
p_build_time_unit: number;
|
|
4927
|
+
p_org_id: string;
|
|
4928
|
+
p_platform: string;
|
|
4929
|
+
p_user_id: string;
|
|
4930
|
+
};
|
|
4931
|
+
Returns: string;
|
|
4932
|
+
};
|
|
4933
|
+
record_email_otp_verified: {
|
|
4934
|
+
Args: {
|
|
4935
|
+
p_user_id: string;
|
|
4936
|
+
};
|
|
4937
|
+
Returns: string;
|
|
4938
|
+
};
|
|
4939
|
+
refresh_orgs_has_usage_credits: {
|
|
4940
|
+
Args: never;
|
|
4941
|
+
Returns: undefined;
|
|
4942
|
+
};
|
|
4943
|
+
regenerate_hashed_apikey: {
|
|
4944
|
+
Args: {
|
|
4945
|
+
p_apikey_id: number;
|
|
4946
|
+
};
|
|
4947
|
+
Returns: {
|
|
4948
|
+
created_at: string | null;
|
|
4949
|
+
expires_at: string | null;
|
|
4950
|
+
id: number;
|
|
4951
|
+
key: string | null;
|
|
4952
|
+
key_hash: string | null;
|
|
4953
|
+
limited_to_apps: string[] | null;
|
|
4954
|
+
limited_to_orgs: string[] | null;
|
|
4955
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4956
|
+
name: string;
|
|
4957
|
+
rbac_id: string;
|
|
4958
|
+
updated_at: string | null;
|
|
4959
|
+
user_id: string;
|
|
4960
|
+
};
|
|
4961
|
+
SetofOptions: {
|
|
4962
|
+
from: "*";
|
|
4963
|
+
to: "apikeys";
|
|
4964
|
+
isOneToOne: true;
|
|
4965
|
+
isSetofReturn: false;
|
|
4966
|
+
};
|
|
4967
|
+
};
|
|
4968
|
+
regenerate_hashed_apikey_for_user: {
|
|
4969
|
+
Args: {
|
|
4970
|
+
p_apikey_id: number;
|
|
4971
|
+
p_user_id: string;
|
|
4972
|
+
};
|
|
4973
|
+
Returns: {
|
|
4974
|
+
created_at: string | null;
|
|
4975
|
+
expires_at: string | null;
|
|
4976
|
+
id: number;
|
|
4977
|
+
key: string | null;
|
|
4978
|
+
key_hash: string | null;
|
|
4979
|
+
limited_to_apps: string[] | null;
|
|
4980
|
+
limited_to_orgs: string[] | null;
|
|
4981
|
+
mode: Database["public"]["Enums"]["key_mode"];
|
|
4982
|
+
name: string;
|
|
4983
|
+
rbac_id: string;
|
|
4984
|
+
updated_at: string | null;
|
|
4985
|
+
user_id: string;
|
|
4986
|
+
};
|
|
4987
|
+
SetofOptions: {
|
|
4988
|
+
from: "*";
|
|
4989
|
+
to: "apikeys";
|
|
4990
|
+
isOneToOne: true;
|
|
4991
|
+
isSetofReturn: false;
|
|
4992
|
+
};
|
|
4993
|
+
};
|
|
4994
|
+
reject_access_due_to_2fa: {
|
|
4995
|
+
Args: {
|
|
4996
|
+
org_id: string;
|
|
4997
|
+
user_id: string;
|
|
4998
|
+
};
|
|
4999
|
+
Returns: boolean;
|
|
5000
|
+
};
|
|
5001
|
+
reject_access_due_to_2fa_for_app: {
|
|
5002
|
+
Args: {
|
|
5003
|
+
app_id: string;
|
|
5004
|
+
};
|
|
5005
|
+
Returns: boolean;
|
|
5006
|
+
};
|
|
5007
|
+
reject_access_due_to_2fa_for_org: {
|
|
5008
|
+
Args: {
|
|
5009
|
+
org_id: string;
|
|
5010
|
+
};
|
|
5011
|
+
Returns: boolean;
|
|
5012
|
+
};
|
|
5013
|
+
reject_access_due_to_password_policy: {
|
|
5014
|
+
Args: {
|
|
5015
|
+
org_id: string;
|
|
5016
|
+
user_id: string;
|
|
5017
|
+
};
|
|
5018
|
+
Returns: boolean;
|
|
5019
|
+
};
|
|
5020
|
+
remove_old_jobs: {
|
|
5021
|
+
Args: never;
|
|
5022
|
+
Returns: undefined;
|
|
5023
|
+
};
|
|
5024
|
+
request_app_chart_refresh: {
|
|
5025
|
+
Args: {
|
|
5026
|
+
app_id: string;
|
|
5027
|
+
};
|
|
5028
|
+
Returns: {
|
|
5029
|
+
queued_app_ids: string[];
|
|
5030
|
+
queued_count: number;
|
|
5031
|
+
requested_at: string;
|
|
5032
|
+
skipped_count: number;
|
|
5033
|
+
}[];
|
|
5034
|
+
};
|
|
5035
|
+
request_has_app_read_access: {
|
|
5036
|
+
Args: {
|
|
5037
|
+
appid: string;
|
|
5038
|
+
orgid: string;
|
|
5039
|
+
};
|
|
5040
|
+
Returns: boolean;
|
|
5041
|
+
};
|
|
5042
|
+
request_has_org_read_access: {
|
|
5043
|
+
Args: {
|
|
5044
|
+
orgid: string;
|
|
5045
|
+
};
|
|
5046
|
+
Returns: boolean;
|
|
5047
|
+
};
|
|
5048
|
+
request_org_chart_refresh: {
|
|
5049
|
+
Args: {
|
|
5050
|
+
org_id: string;
|
|
5051
|
+
};
|
|
5052
|
+
Returns: {
|
|
5053
|
+
queued_app_ids: string[];
|
|
5054
|
+
queued_count: number;
|
|
5055
|
+
requested_at: string;
|
|
5056
|
+
skipped_count: number;
|
|
5057
|
+
}[];
|
|
5058
|
+
};
|
|
5059
|
+
request_read_key_modes: {
|
|
5060
|
+
Args: never;
|
|
5061
|
+
Returns: Database["public"]["Enums"]["key_mode"][];
|
|
5062
|
+
};
|
|
5063
|
+
rescind_invitation: {
|
|
5064
|
+
Args: {
|
|
5065
|
+
email: string;
|
|
5066
|
+
org_id: string;
|
|
5067
|
+
};
|
|
5068
|
+
Returns: string;
|
|
5069
|
+
};
|
|
5070
|
+
reset_and_seed_app_data: {
|
|
5071
|
+
Args: {
|
|
5072
|
+
p_admin_user_id?: string;
|
|
5073
|
+
p_app_id: string;
|
|
5074
|
+
p_org_id?: string;
|
|
5075
|
+
p_plan_product_id?: string;
|
|
5076
|
+
p_stripe_customer_id?: string;
|
|
5077
|
+
p_user_id?: string;
|
|
5078
|
+
};
|
|
5079
|
+
Returns: undefined;
|
|
5080
|
+
};
|
|
5081
|
+
reset_and_seed_app_stats_data: {
|
|
5082
|
+
Args: {
|
|
5083
|
+
p_app_id: string;
|
|
5084
|
+
};
|
|
5085
|
+
Returns: undefined;
|
|
5086
|
+
};
|
|
5087
|
+
reset_and_seed_data: {
|
|
5088
|
+
Args: never;
|
|
5089
|
+
Returns: undefined;
|
|
5090
|
+
};
|
|
5091
|
+
reset_and_seed_stats_data: {
|
|
5092
|
+
Args: never;
|
|
5093
|
+
Returns: undefined;
|
|
5094
|
+
};
|
|
5095
|
+
reset_app_data: {
|
|
5096
|
+
Args: {
|
|
5097
|
+
p_app_id: string;
|
|
5098
|
+
};
|
|
5099
|
+
Returns: undefined;
|
|
5100
|
+
};
|
|
5101
|
+
reset_app_stats_data: {
|
|
5102
|
+
Args: {
|
|
5103
|
+
p_app_id: string;
|
|
5104
|
+
};
|
|
5105
|
+
Returns: undefined;
|
|
5106
|
+
};
|
|
5107
|
+
restore_deleted_account: {
|
|
5108
|
+
Args: never;
|
|
5109
|
+
Returns: undefined;
|
|
5110
|
+
};
|
|
5111
|
+
resync_org_user_role_bindings: {
|
|
5112
|
+
Args: {
|
|
5113
|
+
p_org_id: string;
|
|
5114
|
+
p_user_id: string;
|
|
5115
|
+
};
|
|
5116
|
+
Returns: undefined;
|
|
5117
|
+
};
|
|
5118
|
+
seed_get_app_metrics_caches: {
|
|
5119
|
+
Args: {
|
|
5120
|
+
p_end_date: string;
|
|
5121
|
+
p_org_id: string;
|
|
5122
|
+
p_start_date: string;
|
|
5123
|
+
};
|
|
5124
|
+
Returns: {
|
|
5125
|
+
cached_at: string;
|
|
5126
|
+
end_date: string;
|
|
5127
|
+
id: number;
|
|
5128
|
+
org_id: string;
|
|
5129
|
+
response: import("./types/supabase.types").Json;
|
|
5130
|
+
start_date: string;
|
|
5131
|
+
};
|
|
5132
|
+
SetofOptions: {
|
|
5133
|
+
from: "*";
|
|
5134
|
+
to: "app_metrics_cache";
|
|
5135
|
+
isOneToOne: true;
|
|
5136
|
+
isSetofReturn: false;
|
|
5137
|
+
};
|
|
5138
|
+
};
|
|
5139
|
+
seed_org_metrics_cache: {
|
|
5140
|
+
Args: {
|
|
5141
|
+
p_end_date: string;
|
|
5142
|
+
p_org_id: string;
|
|
5143
|
+
p_start_date: string;
|
|
5144
|
+
};
|
|
5145
|
+
Returns: {
|
|
5146
|
+
bandwidth: number;
|
|
5147
|
+
build_time_unit: number;
|
|
5148
|
+
cached_at: string;
|
|
5149
|
+
end_date: string;
|
|
5150
|
+
fail: number;
|
|
5151
|
+
get: number;
|
|
5152
|
+
install: number;
|
|
5153
|
+
mau: number;
|
|
5154
|
+
org_id: string;
|
|
5155
|
+
start_date: string;
|
|
5156
|
+
storage: number;
|
|
5157
|
+
uninstall: number;
|
|
5158
|
+
};
|
|
5159
|
+
SetofOptions: {
|
|
5160
|
+
from: "*";
|
|
5161
|
+
to: "org_metrics_cache";
|
|
5162
|
+
isOneToOne: true;
|
|
5163
|
+
isSetofReturn: false;
|
|
5164
|
+
};
|
|
5165
|
+
};
|
|
5166
|
+
set_build_time_exceeded_by_org: {
|
|
5167
|
+
Args: {
|
|
5168
|
+
disabled: boolean;
|
|
5169
|
+
org_id: string;
|
|
5170
|
+
};
|
|
5171
|
+
Returns: undefined;
|
|
5172
|
+
};
|
|
5173
|
+
strip_html: {
|
|
5174
|
+
Args: {
|
|
5175
|
+
input: string;
|
|
5176
|
+
};
|
|
5177
|
+
Returns: string;
|
|
5178
|
+
};
|
|
5179
|
+
top_up_usage_credits: {
|
|
5180
|
+
Args: {
|
|
5181
|
+
p_amount: number;
|
|
5182
|
+
p_expires_at?: string;
|
|
5183
|
+
p_notes?: string;
|
|
5184
|
+
p_org_id: string;
|
|
5185
|
+
p_source?: string;
|
|
5186
|
+
p_source_ref?: import("./types/supabase.types").Json;
|
|
5187
|
+
};
|
|
5188
|
+
Returns: {
|
|
5189
|
+
available_credits: number;
|
|
5190
|
+
grant_id: string;
|
|
5191
|
+
next_expiration: string;
|
|
5192
|
+
total_credits: number;
|
|
5193
|
+
transaction_id: number;
|
|
5194
|
+
}[];
|
|
5195
|
+
};
|
|
5196
|
+
total_bundle_storage_bytes: {
|
|
5197
|
+
Args: never;
|
|
5198
|
+
Returns: number;
|
|
5199
|
+
};
|
|
5200
|
+
transfer_app: {
|
|
5201
|
+
Args: {
|
|
5202
|
+
p_app_id: string;
|
|
5203
|
+
p_new_org_id: string;
|
|
5204
|
+
};
|
|
5205
|
+
Returns: undefined;
|
|
5206
|
+
};
|
|
5207
|
+
transform_role_to_invite: {
|
|
5208
|
+
Args: {
|
|
5209
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5210
|
+
};
|
|
5211
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5212
|
+
};
|
|
5213
|
+
transform_role_to_non_invite: {
|
|
5214
|
+
Args: {
|
|
5215
|
+
role_input: Database["public"]["Enums"]["user_min_right"];
|
|
5216
|
+
};
|
|
5217
|
+
Returns: Database["public"]["Enums"]["user_min_right"];
|
|
5218
|
+
};
|
|
5219
|
+
update_app_versions_retention: {
|
|
5220
|
+
Args: never;
|
|
5221
|
+
Returns: undefined;
|
|
5222
|
+
};
|
|
5223
|
+
update_org_invite_role_rbac: {
|
|
5224
|
+
Args: {
|
|
5225
|
+
p_new_role_name: string;
|
|
5226
|
+
p_org_id: string;
|
|
5227
|
+
p_user_id: string;
|
|
5228
|
+
};
|
|
5229
|
+
Returns: string;
|
|
5230
|
+
};
|
|
5231
|
+
update_org_member_role: {
|
|
5232
|
+
Args: {
|
|
5233
|
+
p_new_role_name: string;
|
|
5234
|
+
p_org_id: string;
|
|
5235
|
+
p_user_id: string;
|
|
5236
|
+
};
|
|
5237
|
+
Returns: string;
|
|
5238
|
+
};
|
|
5239
|
+
update_tmp_invite_role_rbac: {
|
|
5240
|
+
Args: {
|
|
5241
|
+
p_email: string;
|
|
5242
|
+
p_new_role_name: string;
|
|
5243
|
+
p_org_id: string;
|
|
5244
|
+
};
|
|
5245
|
+
Returns: string;
|
|
5246
|
+
};
|
|
5247
|
+
upsert_version_meta: {
|
|
5248
|
+
Args: {
|
|
5249
|
+
p_app_id: string;
|
|
5250
|
+
p_size: number;
|
|
5251
|
+
p_version_id: number;
|
|
5252
|
+
};
|
|
5253
|
+
Returns: boolean;
|
|
5254
|
+
};
|
|
5255
|
+
user_has_app_update_user_roles: {
|
|
5256
|
+
Args: {
|
|
5257
|
+
p_app_id: string;
|
|
5258
|
+
p_user_id: string;
|
|
5259
|
+
};
|
|
5260
|
+
Returns: boolean;
|
|
5261
|
+
};
|
|
5262
|
+
user_has_role_in_app: {
|
|
5263
|
+
Args: {
|
|
5264
|
+
p_app_id: string;
|
|
5265
|
+
p_user_id: string;
|
|
3526
5266
|
};
|
|
3527
5267
|
Returns: boolean;
|
|
3528
5268
|
};
|
|
@@ -3552,8 +5292,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3552
5292
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
3553
5293
|
disable_update: "major" | "minor" | "patch" | "version_number" | "none";
|
|
3554
5294
|
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" | "
|
|
5295
|
+
platform_os: "ios" | "android" | "electron";
|
|
5296
|
+
stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableProdBuild" | "disableEmulator" | "disableDevice" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disablePlatformElectron" | "customIdBlocked";
|
|
3557
5297
|
stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
|
|
3558
5298
|
user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
|
|
3559
5299
|
user_role: "read" | "upload" | "write" | "admin";
|
|
@@ -3592,7 +5332,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3592
5332
|
};
|
|
3593
5333
|
};
|
|
3594
5334
|
}, {
|
|
3595
|
-
PostgrestVersion: "
|
|
5335
|
+
PostgrestVersion: "12";
|
|
3596
5336
|
}>>;
|
|
3597
5337
|
export declare function isPayingOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<boolean>;
|
|
3598
5338
|
export declare function isTrialOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<number>;
|
|
@@ -3656,11 +5396,13 @@ export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>
|
|
|
3656
5396
|
created_by: string;
|
|
3657
5397
|
disable_auto_update: Database["public"]["Enums"]["disable_update"];
|
|
3658
5398
|
disable_auto_update_under_native: boolean;
|
|
5399
|
+
electron: boolean;
|
|
3659
5400
|
id: number;
|
|
3660
5401
|
ios: boolean;
|
|
3661
5402
|
name: string;
|
|
3662
5403
|
owner_org: string;
|
|
3663
5404
|
public: boolean;
|
|
5405
|
+
rbac_id: string;
|
|
3664
5406
|
updated_at: string;
|
|
3665
5407
|
version: number;
|
|
3666
5408
|
}>>;
|