@capgo/cli 8.7.3 → 8.8.0

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.
@@ -8,7 +8,7 @@ interface CheckVersionOptions {
8
8
  }
9
9
  export declare function checkVersionNotUsedInChannel(supabase: SupabaseClient<Database>, appid: string, versionData: Database['public']['Tables']['app_versions']['Row'], options?: CheckVersionOptions): Promise<void>;
10
10
  export declare function createChannel(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['channels']['Insert']): import("@supabase/supabase-js").PostgrestBuilder<{
11
- PostgrestVersion: "14.1";
11
+ PostgrestVersion: "14.5";
12
12
  }, {
13
13
  allow_dev: boolean;
14
14
  allow_device: boolean;
@@ -32,10 +32,10 @@ export declare function createChannel(supabase: SupabaseClient<Database>, update
32
32
  version: number | null;
33
33
  }, false>;
34
34
  export declare function delChannel(supabase: SupabaseClient<Database>, name: string, appId: string, _userId: string): import("@supabase/supabase-js").PostgrestBuilder<{
35
- PostgrestVersion: "14.1";
35
+ PostgrestVersion: "14.5";
36
36
  }, never, false>;
37
37
  export declare function findChannel(supabase: SupabaseClient<Database>, appId: string, name: string): import("@supabase/supabase-js").PostgrestBuilder<{
38
- PostgrestVersion: "14.1";
38
+ PostgrestVersion: "14.5";
39
39
  }, {
40
40
  allow_dev: boolean;
41
41
  allow_device: boolean;
@@ -59,9 +59,48 @@ export declare function findChannel(supabase: SupabaseClient<Database>, appId: s
59
59
  version: number | null;
60
60
  }, false>;
61
61
  export declare function delChannelDevices(supabase: SupabaseClient<Database>, appId: string, channelId: number): import("@supabase/supabase-js").PostgrestFilterBuilder<{
62
- PostgrestVersion: "14.1";
62
+ PostgrestVersion: "14.5";
63
63
  }, {
64
64
  Tables: {
65
+ apikey_global_permissions: {
66
+ Row: {
67
+ apikey_rbac_id: string;
68
+ created_at: string;
69
+ granted_by: string | null;
70
+ id: number;
71
+ permission_key: string;
72
+ reason: string | null;
73
+ };
74
+ Insert: {
75
+ apikey_rbac_id: string;
76
+ created_at?: string;
77
+ granted_by?: string | null;
78
+ id?: number;
79
+ permission_key: string;
80
+ reason?: string | null;
81
+ };
82
+ Update: {
83
+ apikey_rbac_id?: string;
84
+ created_at?: string;
85
+ granted_by?: string | null;
86
+ id?: number;
87
+ permission_key?: string;
88
+ reason?: string | null;
89
+ };
90
+ Relationships: [{
91
+ foreignKeyName: "apikey_global_permissions_apikey_rbac_id_fkey";
92
+ columns: ["apikey_rbac_id"];
93
+ isOneToOne: false;
94
+ referencedRelation: "apikeys";
95
+ referencedColumns: ["rbac_id"];
96
+ }, {
97
+ foreignKeyName: "apikey_global_permissions_granted_by_fkey";
98
+ columns: ["granted_by"];
99
+ isOneToOne: false;
100
+ referencedRelation: "users";
101
+ referencedColumns: ["id"];
102
+ }];
103
+ };
65
104
  apikeys: {
66
105
  Row: {
67
106
  created_at: string | null;
@@ -69,9 +108,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
69
108
  id: number;
70
109
  key: string | null;
71
110
  key_hash: string | null;
72
- limited_to_apps: string[] | null;
73
- limited_to_orgs: string[] | null;
74
- mode: Database["public"]["Enums"]["key_mode"];
75
111
  name: string;
76
112
  rbac_id: string;
77
113
  updated_at: string | null;
@@ -83,9 +119,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
83
119
  id?: number;
84
120
  key?: string | null;
85
121
  key_hash?: string | null;
86
- limited_to_apps?: string[] | null;
87
- limited_to_orgs?: string[] | null;
88
- mode: Database["public"]["Enums"]["key_mode"];
89
122
  name: string;
90
123
  rbac_id?: string;
91
124
  updated_at?: string | null;
@@ -97,9 +130,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
97
130
  id?: number;
98
131
  key?: string | null;
99
132
  key_hash?: string | null;
100
- limited_to_apps?: string[] | null;
101
- limited_to_orgs?: string[] | null;
102
- mode?: Database["public"]["Enums"]["key_mode"];
103
133
  name?: string;
104
134
  rbac_id?: string;
105
135
  updated_at?: string | null;
@@ -428,6 +458,36 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
428
458
  referencedColumns: ["id"];
429
459
  }];
430
460
  };
461
+ backfill_progress: {
462
+ Row: {
463
+ created_at: string;
464
+ cutover_at: string;
465
+ job_name: string;
466
+ last_processed_id: number | null;
467
+ last_processed_occurred_at: string | null;
468
+ scope_key: string;
469
+ updated_at: string;
470
+ };
471
+ Insert: {
472
+ created_at?: string;
473
+ cutover_at: string;
474
+ job_name: string;
475
+ last_processed_id?: number | null;
476
+ last_processed_occurred_at?: string | null;
477
+ scope_key: string;
478
+ updated_at?: string;
479
+ };
480
+ Update: {
481
+ created_at?: string;
482
+ cutover_at?: string;
483
+ job_name?: string;
484
+ last_processed_id?: number | null;
485
+ last_processed_occurred_at?: string | null;
486
+ scope_key?: string;
487
+ updated_at?: string;
488
+ };
489
+ Relationships: [];
490
+ };
431
491
  bandwidth_usage: {
432
492
  Row: {
433
493
  app_id: string;
@@ -502,6 +562,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
502
562
  };
503
563
  build_requests: {
504
564
  Row: {
565
+ ai_analyzed: boolean;
505
566
  app_id: string;
506
567
  build_config: import("../types/supabase.types").Json | null;
507
568
  build_mode: string;
@@ -521,6 +582,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
521
582
  upload_url: string;
522
583
  };
523
584
  Insert: {
585
+ ai_analyzed?: boolean;
524
586
  app_id: string;
525
587
  build_config?: import("../types/supabase.types").Json | null;
526
588
  build_mode?: string;
@@ -540,6 +602,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
540
602
  upload_url: string;
541
603
  };
542
604
  Update: {
605
+ ai_analyzed?: boolean;
543
606
  app_id?: string;
544
607
  build_config?: import("../types/supabase.types").Json | null;
545
608
  build_mode?: string;
@@ -791,12 +854,88 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
791
854
  referencedColumns: ["id"];
792
855
  }];
793
856
  };
857
+ compatibility_events: {
858
+ Row: {
859
+ app_id: string;
860
+ change_occurred_at: string;
861
+ channel_id: number | null;
862
+ channel_name: string;
863
+ created_at: string;
864
+ current_version_id: number | null;
865
+ current_version_name: string;
866
+ id: number;
867
+ offenders: import("../types/supabase.types").Json;
868
+ org_id: string;
869
+ platform: string;
870
+ previous_version_id: number | null;
871
+ previous_version_name: string;
872
+ resolution_kind: string | null;
873
+ resolution_note: string | null;
874
+ resolved_at: string | null;
875
+ resolved_by: string | null;
876
+ source: string;
877
+ };
878
+ Insert: {
879
+ app_id: string;
880
+ change_occurred_at?: string;
881
+ channel_id?: number | null;
882
+ channel_name: string;
883
+ created_at?: string;
884
+ current_version_id?: number | null;
885
+ current_version_name: string;
886
+ id?: never;
887
+ offenders?: import("../types/supabase.types").Json;
888
+ org_id: string;
889
+ platform: string;
890
+ previous_version_id?: number | null;
891
+ previous_version_name: string;
892
+ resolution_kind?: string | null;
893
+ resolution_note?: string | null;
894
+ resolved_at?: string | null;
895
+ resolved_by?: string | null;
896
+ source: string;
897
+ };
898
+ Update: {
899
+ app_id?: string;
900
+ change_occurred_at?: string;
901
+ channel_id?: number | null;
902
+ channel_name?: string;
903
+ created_at?: string;
904
+ current_version_id?: number | null;
905
+ current_version_name?: string;
906
+ id?: never;
907
+ offenders?: import("../types/supabase.types").Json;
908
+ org_id?: string;
909
+ platform?: string;
910
+ previous_version_id?: number | null;
911
+ previous_version_name?: string;
912
+ resolution_kind?: string | null;
913
+ resolution_note?: string | null;
914
+ resolved_at?: string | null;
915
+ resolved_by?: string | null;
916
+ source?: string;
917
+ };
918
+ Relationships: [{
919
+ foreignKeyName: "compatibility_events_app_id_fkey";
920
+ columns: ["app_id"];
921
+ isOneToOne: false;
922
+ referencedRelation: "apps";
923
+ referencedColumns: ["app_id"];
924
+ }, {
925
+ foreignKeyName: "compatibility_events_org_id_fkey";
926
+ columns: ["org_id"];
927
+ isOneToOne: false;
928
+ referencedRelation: "orgs";
929
+ referencedColumns: ["id"];
930
+ }];
931
+ };
794
932
  cron_tasks: {
795
933
  Row: {
796
934
  batch_size: number | null;
797
935
  created_at: string;
798
936
  description: string | null;
799
937
  enabled: boolean;
938
+ healthcheck_url: string | null;
800
939
  hour_interval: number | null;
801
940
  id: number;
802
941
  minute_interval: number | null;
@@ -817,6 +956,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
817
956
  created_at?: string;
818
957
  description?: string | null;
819
958
  enabled?: boolean;
959
+ healthcheck_url?: string | null;
820
960
  hour_interval?: number | null;
821
961
  id?: number;
822
962
  minute_interval?: number | null;
@@ -837,6 +977,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
837
977
  created_at?: string;
838
978
  description?: string | null;
839
979
  enabled?: boolean;
980
+ healthcheck_url?: string | null;
840
981
  hour_interval?: number | null;
841
982
  id?: number;
842
983
  minute_interval?: number | null;
@@ -926,7 +1067,16 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
926
1067
  daily_revenue_metrics: {
927
1068
  Row: {
928
1069
  churn_mrr: number;
1070
+ churn_reason: string | null;
1071
+ churn_mrr_enterprise: number;
1072
+ churn_mrr_maker: number;
1073
+ churn_mrr_solo: number;
1074
+ churn_mrr_team: number;
929
1075
  contraction_mrr: number;
1076
+ contraction_mrr_enterprise: number;
1077
+ contraction_mrr_maker: number;
1078
+ contraction_mrr_solo: number;
1079
+ contraction_mrr_team: number;
930
1080
  created_at: string;
931
1081
  customer_id: string;
932
1082
  date_id: string;
@@ -937,7 +1087,16 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
937
1087
  };
938
1088
  Insert: {
939
1089
  churn_mrr?: number;
1090
+ churn_reason?: string | null;
1091
+ churn_mrr_enterprise?: number;
1092
+ churn_mrr_maker?: number;
1093
+ churn_mrr_solo?: number;
1094
+ churn_mrr_team?: number;
940
1095
  contraction_mrr?: number;
1096
+ contraction_mrr_enterprise?: number;
1097
+ contraction_mrr_maker?: number;
1098
+ contraction_mrr_solo?: number;
1099
+ contraction_mrr_team?: number;
941
1100
  created_at?: string;
942
1101
  customer_id: string;
943
1102
  date_id: string;
@@ -948,7 +1107,16 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
948
1107
  };
949
1108
  Update: {
950
1109
  churn_mrr?: number;
1110
+ churn_reason?: string | null;
1111
+ churn_mrr_enterprise?: number;
1112
+ churn_mrr_maker?: number;
1113
+ churn_mrr_solo?: number;
1114
+ churn_mrr_team?: number;
951
1115
  contraction_mrr?: number;
1116
+ contraction_mrr_enterprise?: number;
1117
+ contraction_mrr_maker?: number;
1118
+ contraction_mrr_solo?: number;
1119
+ contraction_mrr_team?: number;
952
1120
  created_at?: string;
953
1121
  customer_id?: string;
954
1122
  date_id?: string;
@@ -980,6 +1148,45 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
980
1148
  };
981
1149
  Relationships: [];
982
1150
  };
1151
+ daily_storage_hourly: {
1152
+ Row: {
1153
+ app_id: string;
1154
+ created_at: string;
1155
+ date: string;
1156
+ owner_org: string;
1157
+ storage_byte_hours: number;
1158
+ updated_at: string;
1159
+ };
1160
+ Insert: {
1161
+ app_id: string;
1162
+ created_at?: string;
1163
+ date: string;
1164
+ owner_org: string;
1165
+ storage_byte_hours?: number;
1166
+ updated_at?: string;
1167
+ };
1168
+ Update: {
1169
+ app_id?: string;
1170
+ created_at?: string;
1171
+ date?: string;
1172
+ owner_org?: string;
1173
+ storage_byte_hours?: number;
1174
+ updated_at?: string;
1175
+ };
1176
+ Relationships: [{
1177
+ foreignKeyName: "daily_storage_hourly_app_id_fkey";
1178
+ columns: ["app_id"];
1179
+ isOneToOne: false;
1180
+ referencedRelation: "apps";
1181
+ referencedColumns: ["app_id"];
1182
+ }, {
1183
+ foreignKeyName: "daily_storage_hourly_owner_org_fkey";
1184
+ columns: ["owner_org"];
1185
+ isOneToOne: false;
1186
+ referencedRelation: "orgs";
1187
+ referencedColumns: ["id"];
1188
+ }];
1189
+ };
983
1190
  daily_version: {
984
1191
  Row: {
985
1192
  app_id: string;
@@ -1124,21 +1331,27 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1124
1331
  device_id: string;
1125
1332
  id: number;
1126
1333
  org_id: string;
1334
+ platform: string | null;
1127
1335
  timestamp: string;
1336
+ version_build: string | null;
1128
1337
  };
1129
1338
  Insert: {
1130
1339
  app_id: string;
1131
1340
  device_id: string;
1132
1341
  id?: number;
1133
1342
  org_id: string;
1343
+ platform?: string | null;
1134
1344
  timestamp?: string;
1345
+ version_build?: string | null;
1135
1346
  };
1136
1347
  Update: {
1137
1348
  app_id?: string;
1138
1349
  device_id?: string;
1139
1350
  id?: number;
1140
1351
  org_id?: string;
1352
+ platform?: string | null;
1141
1353
  timestamp?: string;
1354
+ version_build?: string | null;
1142
1355
  };
1143
1356
  Relationships: [];
1144
1357
  };
@@ -1200,12 +1413,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1200
1413
  Row: {
1201
1414
  apps: number;
1202
1415
  apps_active: number | null;
1416
+ average_ltv: number;
1203
1417
  build_avg_seconds_day_android: number;
1204
1418
  build_avg_seconds_day_ios: number;
1205
1419
  build_count_day_android: number;
1206
1420
  build_count_day_ios: number;
1207
1421
  build_total_seconds_day_android: number;
1208
1422
  build_total_seconds_day_ios: number;
1423
+ builder_active_paying_clients_60d: number;
1209
1424
  builds_android: number | null;
1210
1425
  builds_ios: number | null;
1211
1426
  builds_last_month: number | null;
@@ -1218,6 +1433,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1218
1433
  bundle_storage_gb: number;
1219
1434
  canceled_orgs: number;
1220
1435
  churn_revenue: number;
1436
+ churn_revenue_enterprise: number;
1437
+ churn_revenue_maker: number;
1438
+ churn_revenue_solo: number;
1439
+ churn_revenue_team: number;
1221
1440
  created_at: string | null;
1222
1441
  credits_bought: number;
1223
1442
  credits_consumed: number;
@@ -1226,9 +1445,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1226
1445
  devices_last_month: number | null;
1227
1446
  devices_last_month_android: number | null;
1228
1447
  devices_last_month_ios: number | null;
1448
+ live_updates_active_paying_clients_60d: number;
1449
+ longest_ltv: number;
1229
1450
  mrr: number;
1230
1451
  need_upgrade: number | null;
1231
1452
  new_paying_orgs: number;
1453
+ past_due_orgs: number;
1454
+ past_due_orgs_average_days: number;
1232
1455
  not_paying: number | null;
1233
1456
  nrr: number;
1234
1457
  onboarded: number | null;
@@ -1237,24 +1460,31 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1237
1460
  paying_monthly: number | null;
1238
1461
  paying_yearly: number | null;
1239
1462
  plan_enterprise: number | null;
1463
+ plan_enterprise_conversion_rate: number;
1240
1464
  plan_enterprise_monthly: number;
1241
1465
  plan_enterprise_yearly: number;
1242
1466
  plan_maker: number | null;
1467
+ plan_maker_conversion_rate: number;
1243
1468
  plan_maker_monthly: number;
1244
1469
  plan_maker_yearly: number;
1245
1470
  plan_solo: number | null;
1471
+ plan_solo_conversion_rate: number;
1246
1472
  plan_solo_monthly: number;
1247
1473
  plan_solo_yearly: number;
1248
1474
  plan_team: number | null;
1475
+ plan_team_conversion_rate: number;
1249
1476
  plan_team_monthly: number;
1250
1477
  plan_team_yearly: number;
1478
+ plan_total_conversion_rate: number;
1251
1479
  plugin_major_breakdown: import("../types/supabase.types").Json;
1252
1480
  plugin_version_breakdown: import("../types/supabase.types").Json;
1481
+ plugin_version_ladder: import("../types/supabase.types").Json;
1253
1482
  registers_today: number;
1254
1483
  revenue_enterprise: number;
1255
1484
  revenue_maker: number;
1256
1485
  revenue_solo: number;
1257
1486
  revenue_team: number;
1487
+ shortest_ltv: number;
1258
1488
  stars: number;
1259
1489
  success_rate: number | null;
1260
1490
  total_revenue: number;
@@ -1263,18 +1493,22 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1263
1493
  updates_external: number | null;
1264
1494
  updates_last_month: number | null;
1265
1495
  upgraded_orgs: number;
1496
+ trial_extended_orgs: number;
1497
+ trial_extended_subscribed_orgs: number;
1266
1498
  users: number | null;
1267
1499
  users_active: number | null;
1268
1500
  };
1269
1501
  Insert: {
1270
1502
  apps: number;
1271
1503
  apps_active?: number | null;
1504
+ average_ltv?: number;
1272
1505
  build_avg_seconds_day_android?: number;
1273
1506
  build_avg_seconds_day_ios?: number;
1274
1507
  build_count_day_android?: number;
1275
1508
  build_count_day_ios?: number;
1276
1509
  build_total_seconds_day_android?: number;
1277
1510
  build_total_seconds_day_ios?: number;
1511
+ builder_active_paying_clients_60d?: number;
1278
1512
  builds_android?: number | null;
1279
1513
  builds_ios?: number | null;
1280
1514
  builds_last_month?: number | null;
@@ -1287,6 +1521,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1287
1521
  bundle_storage_gb?: number;
1288
1522
  canceled_orgs?: number;
1289
1523
  churn_revenue?: number;
1524
+ churn_revenue_enterprise?: number;
1525
+ churn_revenue_maker?: number;
1526
+ churn_revenue_solo?: number;
1527
+ churn_revenue_team?: number;
1290
1528
  created_at?: string | null;
1291
1529
  credits_bought?: number;
1292
1530
  credits_consumed?: number;
@@ -1295,9 +1533,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1295
1533
  devices_last_month?: number | null;
1296
1534
  devices_last_month_android?: number | null;
1297
1535
  devices_last_month_ios?: number | null;
1536
+ live_updates_active_paying_clients_60d?: number;
1537
+ longest_ltv?: number;
1298
1538
  mrr?: number;
1299
1539
  need_upgrade?: number | null;
1300
1540
  new_paying_orgs?: number;
1541
+ past_due_orgs?: number;
1542
+ past_due_orgs_average_days?: number;
1301
1543
  not_paying?: number | null;
1302
1544
  nrr?: number;
1303
1545
  onboarded?: number | null;
@@ -1306,24 +1548,31 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1306
1548
  paying_monthly?: number | null;
1307
1549
  paying_yearly?: number | null;
1308
1550
  plan_enterprise?: number | null;
1551
+ plan_enterprise_conversion_rate?: number;
1309
1552
  plan_enterprise_monthly?: number;
1310
1553
  plan_enterprise_yearly?: number;
1311
1554
  plan_maker?: number | null;
1555
+ plan_maker_conversion_rate?: number;
1312
1556
  plan_maker_monthly?: number;
1313
1557
  plan_maker_yearly?: number;
1314
1558
  plan_solo?: number | null;
1559
+ plan_solo_conversion_rate?: number;
1315
1560
  plan_solo_monthly?: number;
1316
1561
  plan_solo_yearly?: number;
1317
1562
  plan_team?: number | null;
1563
+ plan_team_conversion_rate?: number;
1318
1564
  plan_team_monthly?: number;
1319
1565
  plan_team_yearly?: number;
1566
+ plan_total_conversion_rate?: number;
1320
1567
  plugin_major_breakdown?: import("../types/supabase.types").Json;
1321
1568
  plugin_version_breakdown?: import("../types/supabase.types").Json;
1569
+ plugin_version_ladder?: import("../types/supabase.types").Json;
1322
1570
  registers_today?: number;
1323
1571
  revenue_enterprise?: number;
1324
1572
  revenue_maker?: number;
1325
1573
  revenue_solo?: number;
1326
1574
  revenue_team?: number;
1575
+ shortest_ltv?: number;
1327
1576
  stars: number;
1328
1577
  success_rate?: number | null;
1329
1578
  total_revenue?: number;
@@ -1332,18 +1581,22 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1332
1581
  updates_external?: number | null;
1333
1582
  updates_last_month?: number | null;
1334
1583
  upgraded_orgs?: number;
1584
+ trial_extended_orgs?: number;
1585
+ trial_extended_subscribed_orgs?: number;
1335
1586
  users?: number | null;
1336
1587
  users_active?: number | null;
1337
1588
  };
1338
1589
  Update: {
1339
1590
  apps?: number;
1340
1591
  apps_active?: number | null;
1592
+ average_ltv?: number;
1341
1593
  build_avg_seconds_day_android?: number;
1342
1594
  build_avg_seconds_day_ios?: number;
1343
1595
  build_count_day_android?: number;
1344
1596
  build_count_day_ios?: number;
1345
1597
  build_total_seconds_day_android?: number;
1346
1598
  build_total_seconds_day_ios?: number;
1599
+ builder_active_paying_clients_60d?: number;
1347
1600
  builds_android?: number | null;
1348
1601
  builds_ios?: number | null;
1349
1602
  builds_last_month?: number | null;
@@ -1356,6 +1609,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1356
1609
  bundle_storage_gb?: number;
1357
1610
  canceled_orgs?: number;
1358
1611
  churn_revenue?: number;
1612
+ churn_revenue_enterprise?: number;
1613
+ churn_revenue_maker?: number;
1614
+ churn_revenue_solo?: number;
1615
+ churn_revenue_team?: number;
1359
1616
  created_at?: string | null;
1360
1617
  credits_bought?: number;
1361
1618
  credits_consumed?: number;
@@ -1364,9 +1621,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1364
1621
  devices_last_month?: number | null;
1365
1622
  devices_last_month_android?: number | null;
1366
1623
  devices_last_month_ios?: number | null;
1624
+ live_updates_active_paying_clients_60d?: number;
1625
+ longest_ltv?: number;
1367
1626
  mrr?: number;
1368
1627
  need_upgrade?: number | null;
1369
1628
  new_paying_orgs?: number;
1629
+ past_due_orgs?: number;
1630
+ past_due_orgs_average_days?: number;
1370
1631
  not_paying?: number | null;
1371
1632
  nrr?: number;
1372
1633
  onboarded?: number | null;
@@ -1375,24 +1636,31 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1375
1636
  paying_monthly?: number | null;
1376
1637
  paying_yearly?: number | null;
1377
1638
  plan_enterprise?: number | null;
1639
+ plan_enterprise_conversion_rate?: number;
1378
1640
  plan_enterprise_monthly?: number;
1379
1641
  plan_enterprise_yearly?: number;
1380
1642
  plan_maker?: number | null;
1643
+ plan_maker_conversion_rate?: number;
1381
1644
  plan_maker_monthly?: number;
1382
1645
  plan_maker_yearly?: number;
1383
1646
  plan_solo?: number | null;
1647
+ plan_solo_conversion_rate?: number;
1384
1648
  plan_solo_monthly?: number;
1385
1649
  plan_solo_yearly?: number;
1386
1650
  plan_team?: number | null;
1651
+ plan_team_conversion_rate?: number;
1387
1652
  plan_team_monthly?: number;
1388
1653
  plan_team_yearly?: number;
1654
+ plan_total_conversion_rate?: number;
1389
1655
  plugin_major_breakdown?: import("../types/supabase.types").Json;
1390
1656
  plugin_version_breakdown?: import("../types/supabase.types").Json;
1657
+ plugin_version_ladder?: import("../types/supabase.types").Json;
1391
1658
  registers_today?: number;
1392
1659
  revenue_enterprise?: number;
1393
1660
  revenue_maker?: number;
1394
1661
  revenue_solo?: number;
1395
1662
  revenue_team?: number;
1663
+ shortest_ltv?: number;
1396
1664
  stars?: number;
1397
1665
  success_rate?: number | null;
1398
1666
  total_revenue?: number;
@@ -1401,6 +1669,8 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1401
1669
  updates_external?: number | null;
1402
1670
  updates_last_month?: number | null;
1403
1671
  upgraded_orgs?: number;
1672
+ trial_extended_orgs?: number;
1673
+ trial_extended_subscribed_orgs?: number;
1404
1674
  users?: number | null;
1405
1675
  users_active?: number | null;
1406
1676
  };
@@ -1544,6 +1814,48 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1544
1814
  referencedColumns: ["id"];
1545
1815
  }];
1546
1816
  };
1817
+ onboarding_demo_data: {
1818
+ Row: {
1819
+ app_id: string;
1820
+ created_at: string;
1821
+ id: string;
1822
+ owner_org: string;
1823
+ relation_name: string;
1824
+ row_key: string;
1825
+ seed_id: string;
1826
+ };
1827
+ Insert: {
1828
+ app_id: string;
1829
+ created_at?: string;
1830
+ id?: string;
1831
+ owner_org: string;
1832
+ relation_name: string;
1833
+ row_key: string;
1834
+ seed_id: string;
1835
+ };
1836
+ Update: {
1837
+ app_id?: string;
1838
+ created_at?: string;
1839
+ id?: string;
1840
+ owner_org?: string;
1841
+ relation_name?: string;
1842
+ row_key?: string;
1843
+ seed_id?: string;
1844
+ };
1845
+ Relationships: [{
1846
+ foreignKeyName: "onboarding_demo_data_app_id_fkey";
1847
+ columns: ["app_id"];
1848
+ isOneToOne: false;
1849
+ referencedRelation: "apps";
1850
+ referencedColumns: ["app_id"];
1851
+ }, {
1852
+ foreignKeyName: "onboarding_demo_data_owner_org_fkey";
1853
+ columns: ["owner_org"];
1854
+ isOneToOne: false;
1855
+ referencedRelation: "orgs";
1856
+ referencedColumns: ["id"];
1857
+ }];
1858
+ };
1547
1859
  org_metrics_cache: {
1548
1860
  Row: {
1549
1861
  bandwidth: number;
@@ -1671,6 +1983,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1671
1983
  management_email: string;
1672
1984
  max_apikey_expiration_days: number | null;
1673
1985
  name: string;
1986
+ onboarding: import("../types/supabase.types").Json;
1674
1987
  password_policy_config: import("../types/supabase.types").Json | null;
1675
1988
  require_apikey_expiration: boolean;
1676
1989
  required_encryption_key: string | null;
@@ -1695,6 +2008,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1695
2008
  management_email: string;
1696
2009
  max_apikey_expiration_days?: number | null;
1697
2010
  name: string;
2011
+ onboarding?: import("../types/supabase.types").Json;
1698
2012
  password_policy_config?: import("../types/supabase.types").Json | null;
1699
2013
  require_apikey_expiration?: boolean;
1700
2014
  required_encryption_key?: string | null;
@@ -1719,6 +2033,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1719
2033
  management_email?: string;
1720
2034
  max_apikey_expiration_days?: number | null;
1721
2035
  name?: string;
2036
+ onboarding?: import("../types/supabase.types").Json;
1722
2037
  password_policy_config?: import("../types/supabase.types").Json | null;
1723
2038
  require_apikey_expiration?: boolean;
1724
2039
  required_encryption_key?: string | null;
@@ -1786,6 +2101,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1786
2101
  market_desc: string | null;
1787
2102
  mau: number;
1788
2103
  name: string;
2104
+ native_build_concurrency: number;
1789
2105
  price_m: number;
1790
2106
  price_m_id: string;
1791
2107
  price_y: number;
@@ -1804,6 +2120,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1804
2120
  market_desc?: string | null;
1805
2121
  mau?: number;
1806
2122
  name?: string;
2123
+ native_build_concurrency?: number;
1807
2124
  price_m?: number;
1808
2125
  price_m_id: string;
1809
2126
  price_y?: number;
@@ -1822,6 +2139,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
1822
2139
  market_desc?: string | null;
1823
2140
  mau?: number;
1824
2141
  name?: string;
2142
+ native_build_concurrency?: number;
1825
2143
  price_m?: number;
1826
2144
  price_m_id?: string;
1827
2145
  price_y?: number;
@@ -2079,6 +2397,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2079
2397
  created_at: string;
2080
2398
  device_id: string;
2081
2399
  id: number;
2400
+ metadata: import("../types/supabase.types").Json | null;
2082
2401
  version_name: string;
2083
2402
  };
2084
2403
  Insert: {
@@ -2087,6 +2406,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2087
2406
  created_at: string;
2088
2407
  device_id: string;
2089
2408
  id?: never;
2409
+ metadata?: import("../types/supabase.types").Json | null;
2090
2410
  version_name?: string;
2091
2411
  };
2092
2412
  Update: {
@@ -2095,6 +2415,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2095
2415
  created_at?: string;
2096
2416
  device_id?: string;
2097
2417
  id?: never;
2418
+ metadata?: import("../types/supabase.types").Json | null;
2098
2419
  version_name?: string;
2099
2420
  };
2100
2421
  Relationships: [];
@@ -2128,12 +2449,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2128
2449
  bandwidth_exceeded: boolean | null;
2129
2450
  build_time_exceeded: boolean | null;
2130
2451
  canceled_at: string | null;
2452
+ churn_reason: string | null;
2131
2453
  created_at: string;
2132
2454
  customer_country: string | null;
2133
2455
  customer_id: string;
2134
2456
  id: number;
2135
2457
  is_good_plan: boolean | null;
2136
2458
  last_stripe_event_at: string | null;
2459
+ past_due_at: string | null;
2137
2460
  mau_exceeded: boolean | null;
2138
2461
  paid_at: string | null;
2139
2462
  plan_calculated_at: string | null;
@@ -2153,12 +2476,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2153
2476
  bandwidth_exceeded?: boolean | null;
2154
2477
  build_time_exceeded?: boolean | null;
2155
2478
  canceled_at?: string | null;
2479
+ churn_reason?: string | null;
2156
2480
  created_at?: string;
2157
2481
  customer_country?: string | null;
2158
2482
  customer_id: string;
2159
2483
  id?: number;
2160
2484
  is_good_plan?: boolean | null;
2161
2485
  last_stripe_event_at?: string | null;
2486
+ past_due_at?: string | null;
2162
2487
  mau_exceeded?: boolean | null;
2163
2488
  paid_at?: string | null;
2164
2489
  plan_calculated_at?: string | null;
@@ -2178,12 +2503,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2178
2503
  bandwidth_exceeded?: boolean | null;
2179
2504
  build_time_exceeded?: boolean | null;
2180
2505
  canceled_at?: string | null;
2506
+ churn_reason?: string | null;
2181
2507
  created_at?: string;
2182
2508
  customer_country?: string | null;
2183
2509
  customer_id?: string;
2184
2510
  id?: number;
2185
2511
  is_good_plan?: boolean | null;
2186
2512
  last_stripe_event_at?: string | null;
2513
+ past_due_at?: string | null;
2187
2514
  mau_exceeded?: boolean | null;
2188
2515
  paid_at?: string | null;
2189
2516
  plan_calculated_at?: string | null;
@@ -2207,6 +2534,48 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2207
2534
  referencedColumns: ["stripe_id"];
2208
2535
  }];
2209
2536
  };
2537
+ trial_extension_events: {
2538
+ Row: {
2539
+ created_at: string;
2540
+ customer_id: string;
2541
+ extension_days: number;
2542
+ id: number;
2543
+ new_trial_at: string;
2544
+ org_id: string;
2545
+ previous_trial_at: string;
2546
+ };
2547
+ Insert: {
2548
+ created_at?: string;
2549
+ customer_id: string;
2550
+ extension_days: number;
2551
+ id?: number;
2552
+ new_trial_at: string;
2553
+ org_id: string;
2554
+ previous_trial_at: string;
2555
+ };
2556
+ Update: {
2557
+ created_at?: string;
2558
+ customer_id?: string;
2559
+ extension_days?: number;
2560
+ id?: number;
2561
+ new_trial_at?: string;
2562
+ org_id?: string;
2563
+ previous_trial_at?: string;
2564
+ };
2565
+ Relationships: [{
2566
+ foreignKeyName: "trial_extension_events_customer_id_fkey";
2567
+ columns: ["customer_id"];
2568
+ isOneToOne: false;
2569
+ referencedRelation: "stripe_info";
2570
+ referencedColumns: ["customer_id"];
2571
+ }, {
2572
+ foreignKeyName: "trial_extension_events_org_id_fkey";
2573
+ columns: ["org_id"];
2574
+ isOneToOne: false;
2575
+ referencedRelation: "orgs";
2576
+ referencedColumns: ["id"];
2577
+ }];
2578
+ };
2210
2579
  tmp_users: {
2211
2580
  Row: {
2212
2581
  cancelled_at: string | null;
@@ -2636,6 +3005,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2636
3005
  audit_log_id: number | null;
2637
3006
  completed_at: string | null;
2638
3007
  created_at: string;
3008
+ delivery_version: string;
2639
3009
  duration_ms: number | null;
2640
3010
  event_type: string;
2641
3011
  id: string;
@@ -2654,6 +3024,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2654
3024
  audit_log_id?: number | null;
2655
3025
  completed_at?: string | null;
2656
3026
  created_at?: string;
3027
+ delivery_version?: string;
2657
3028
  duration_ms?: number | null;
2658
3029
  event_type: string;
2659
3030
  id?: string;
@@ -2672,6 +3043,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2672
3043
  audit_log_id?: number | null;
2673
3044
  completed_at?: string | null;
2674
3045
  created_at?: string;
3046
+ delivery_version?: string;
2675
3047
  duration_ms?: number | null;
2676
3048
  event_type?: string;
2677
3049
  id?: string;
@@ -2703,6 +3075,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2703
3075
  Row: {
2704
3076
  created_at: string;
2705
3077
  created_by: string;
3078
+ delivery_version: string;
2706
3079
  enabled: boolean;
2707
3080
  events: string[];
2708
3081
  id: string;
@@ -2715,6 +3088,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2715
3088
  Insert: {
2716
3089
  created_at?: string;
2717
3090
  created_by: string;
3091
+ delivery_version?: string;
2718
3092
  enabled?: boolean;
2719
3093
  events: string[];
2720
3094
  id?: string;
@@ -2727,6 +3101,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2727
3101
  Update: {
2728
3102
  created_at?: string;
2729
3103
  created_by?: string;
3104
+ delivery_version?: string;
2730
3105
  enabled?: boolean;
2731
3106
  events?: string[];
2732
3107
  id?: string;
@@ -2795,6 +3170,47 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2795
3170
  };
2796
3171
  Returns: string;
2797
3172
  };
3173
+ acknowledge_compatibility_event: {
3174
+ Args: {
3175
+ event_id: number;
3176
+ note: string;
3177
+ };
3178
+ Returns: undefined;
3179
+ };
3180
+ apikey_has_current_org_create_capability: {
3181
+ Args: {
3182
+ p_apikey_rbac_id: string;
3183
+ };
3184
+ Returns: boolean;
3185
+ };
3186
+ apikey_has_global_permission: {
3187
+ Args: {
3188
+ p_apikey: string;
3189
+ p_permission_key: string;
3190
+ };
3191
+ Returns: boolean;
3192
+ };
3193
+ apikey_permission_for_keymode: {
3194
+ Args: {
3195
+ keymode: Database["public"]["Enums"]["key_mode"][];
3196
+ scope_type: string;
3197
+ };
3198
+ Returns: string;
3199
+ };
3200
+ app_versions_has_app_permission: {
3201
+ Args: {
3202
+ p_apikey: string;
3203
+ p_app_id: string;
3204
+ p_min_right: Database["public"]["Enums"]["user_min_right"];
3205
+ p_owner_org: string;
3206
+ p_user_id: string;
3207
+ };
3208
+ Returns: boolean;
3209
+ };
3210
+ app_versions_readable_app_ids: {
3211
+ Args: never;
3212
+ Returns: string[];
3213
+ };
2798
3214
  apply_usage_overage: {
2799
3215
  Args: {
2800
3216
  p_billing_cycle_end: string;
@@ -2950,7 +3366,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2950
3366
  Args: {
2951
3367
  appid: string;
2952
3368
  };
2953
- Returns: number | null;
3369
+ Returns: number;
3370
+ };
3371
+ claim_legacy_onboarding_demo_data: {
3372
+ Args: {
3373
+ p_app_uuid: string;
3374
+ };
3375
+ Returns: undefined;
2954
3376
  };
2955
3377
  cleanup_expired_apikeys: {
2956
3378
  Args: never;
@@ -2993,14 +3415,20 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
2993
3415
  p_app_uuid: string;
2994
3416
  };
2995
3417
  Returns: undefined;
3418
+ } | {
3419
+ Args: {
3420
+ p_app_uuid: string;
3421
+ p_preserve_app_version_id: number;
3422
+ };
3423
+ Returns: undefined;
2996
3424
  };
2997
3425
  cli_check_permission: {
2998
3426
  Args: {
2999
- apikey: string;
3427
+ apikey?: string;
3000
3428
  app_id?: string;
3001
3429
  channel_id?: number;
3002
3430
  org_id?: string;
3003
- permission_key: string;
3431
+ permission_key?: string;
3004
3432
  };
3005
3433
  Returns: boolean;
3006
3434
  };
@@ -3067,65 +3495,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3067
3495
  wrong_key_count: number;
3068
3496
  }[];
3069
3497
  };
3070
- create_hashed_apikey: {
3071
- Args: {
3072
- p_expires_at: string;
3073
- p_limited_to_apps: string[];
3074
- p_limited_to_orgs: string[];
3075
- p_mode: Database["public"]["Enums"]["key_mode"];
3076
- p_name: string;
3077
- };
3078
- Returns: {
3079
- created_at: string | null;
3080
- expires_at: string | null;
3081
- id: number;
3082
- key: string | null;
3083
- key_hash: string | null;
3084
- limited_to_apps: string[] | null;
3085
- limited_to_orgs: string[] | null;
3086
- mode: Database["public"]["Enums"]["key_mode"];
3087
- name: string;
3088
- rbac_id: string;
3089
- updated_at: string | null;
3090
- user_id: string;
3091
- };
3092
- SetofOptions: {
3093
- from: "*";
3094
- to: "apikeys";
3095
- isOneToOne: true;
3096
- isSetofReturn: false;
3097
- };
3098
- };
3099
- create_hashed_apikey_for_user: {
3100
- Args: {
3101
- p_expires_at: string;
3102
- p_limited_to_apps: string[];
3103
- p_limited_to_orgs: string[];
3104
- p_mode: Database["public"]["Enums"]["key_mode"];
3105
- p_name: string;
3106
- p_user_id: string;
3107
- };
3108
- Returns: {
3109
- created_at: string | null;
3110
- expires_at: string | null;
3111
- id: number;
3112
- key: string | null;
3113
- key_hash: string | null;
3114
- limited_to_apps: string[] | null;
3115
- limited_to_orgs: string[] | null;
3116
- mode: Database["public"]["Enums"]["key_mode"];
3117
- name: string;
3118
- rbac_id: string;
3119
- updated_at: string | null;
3120
- user_id: string;
3121
- };
3122
- SetofOptions: {
3123
- from: "*";
3124
- to: "apikeys";
3125
- isOneToOne: true;
3126
- isSetofReturn: false;
3127
- };
3128
- };
3129
3498
  current_request_role: {
3130
3499
  Args: never;
3131
3500
  Returns: string;
@@ -3209,9 +3578,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3209
3578
  id: number;
3210
3579
  key: string | null;
3211
3580
  key_hash: string | null;
3212
- limited_to_apps: string[] | null;
3213
- limited_to_orgs: string[] | null;
3214
- mode: Database["public"]["Enums"]["key_mode"];
3215
3581
  name: string;
3216
3582
  rbac_id: string;
3217
3583
  updated_at: string | null;
@@ -3244,6 +3610,44 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3244
3610
  name: string;
3245
3611
  }[];
3246
3612
  };
3613
+ get_accessible_apps_for_apikey_v2: {
3614
+ Args: {
3615
+ apikey?: string;
3616
+ };
3617
+ Returns: {
3618
+ allow_device_custom_id: boolean;
3619
+ allow_preview: boolean;
3620
+ android_store_url: string | null;
3621
+ app_id: string;
3622
+ build_timeout_seconds: number;
3623
+ build_timeout_updated_at: string;
3624
+ channel_device_count: number;
3625
+ created_at: string | null;
3626
+ default_upload_channel: string;
3627
+ existing_app: boolean;
3628
+ expose_metadata: boolean;
3629
+ icon_url: string;
3630
+ id: string | null;
3631
+ ios_store_url: string | null;
3632
+ last_version: string | null;
3633
+ manifest_bundle_count: number;
3634
+ name: string | null;
3635
+ need_onboarding: boolean;
3636
+ owner_org: string;
3637
+ retention: number;
3638
+ stats_refresh_requested_at: string | null;
3639
+ stats_updated_at: string | null;
3640
+ transfer_history: import("../types/supabase.types").Json[] | null;
3641
+ updated_at: string | null;
3642
+ user_id: string | null;
3643
+ }[];
3644
+ SetofOptions: {
3645
+ from: "*";
3646
+ to: "apps";
3647
+ isOneToOne: false;
3648
+ isSetofReturn: true;
3649
+ };
3650
+ };
3247
3651
  get_account_removal_date: {
3248
3652
  Args: never;
3249
3653
  Returns: string;
@@ -3345,6 +3749,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3345
3749
  bandwidth: number;
3346
3750
  build_time_unit: number;
3347
3751
  mau: number;
3752
+ native_build_concurrency: number;
3348
3753
  storage: number;
3349
3754
  }[];
3350
3755
  };
@@ -3421,6 +3826,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3421
3826
  };
3422
3827
  Returns: string;
3423
3828
  };
3829
+ get_identity_for_apikey_creation: {
3830
+ Args: never;
3831
+ Returns: string;
3832
+ };
3424
3833
  get_identity_org_allowed: {
3425
3834
  Args: {
3426
3835
  keymode: Database["public"]["Enums"]["key_mode"][];
@@ -3486,15 +3895,51 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3486
3895
  created_at: string;
3487
3896
  expires_at: string;
3488
3897
  id: number;
3489
- limited_to_apps: string[];
3490
- limited_to_orgs: string[];
3491
- mode: Database["public"]["Enums"]["key_mode"];
3492
3898
  name: string;
3493
3899
  owner_email: string;
3494
3900
  rbac_id: string;
3495
3901
  user_id: string;
3496
3902
  }[];
3497
3903
  };
3904
+ get_org_apps_with_last_upload: {
3905
+ Args: {
3906
+ p_limit?: number;
3907
+ p_offset?: number;
3908
+ p_org_id: string;
3909
+ p_search?: string;
3910
+ p_sort_by?: string;
3911
+ p_sort_desc?: boolean;
3912
+ };
3913
+ Returns: {
3914
+ allow_device_custom_id: boolean;
3915
+ allow_preview: boolean;
3916
+ android_store_url: string;
3917
+ app_id: string;
3918
+ build_timeout_seconds: number;
3919
+ build_timeout_updated_at: string;
3920
+ channel_device_count: number;
3921
+ created_at: string;
3922
+ default_upload_channel: string;
3923
+ existing_app: boolean;
3924
+ expose_metadata: boolean;
3925
+ icon_url: string;
3926
+ id: string;
3927
+ ios_store_url: string;
3928
+ last_upload_at: string;
3929
+ last_version: string;
3930
+ manifest_bundle_count: number;
3931
+ name: string;
3932
+ need_onboarding: boolean;
3933
+ owner_org: string;
3934
+ retention: number;
3935
+ stats_refresh_requested_at: string;
3936
+ stats_updated_at: string;
3937
+ total_count: number;
3938
+ transfer_history: import("../types/supabase.types").Json[];
3939
+ updated_at: string;
3940
+ user_id: string;
3941
+ }[];
3942
+ };
3498
3943
  get_org_build_time_unit: {
3499
3944
  Args: {
3500
3945
  p_end_date: string;
@@ -3719,6 +4164,12 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
3719
4164
  website: string;
3720
4165
  }[];
3721
4166
  };
4167
+ get_owner_org_by_app_id_internal: {
4168
+ Args: {
4169
+ p_app_id: string;
4170
+ };
4171
+ Returns: string;
4172
+ };
3722
4173
  get_password_policy_hash: {
3723
4174
  Args: {
3724
4175
  policy_config: import("../types/supabase.types").Json;
@@ -4013,6 +4464,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4013
4464
  orgid: string;
4014
4465
  };
4015
4466
  Returns: boolean;
4467
+ } | {
4468
+ Args: {
4469
+ actions: Database["public"]["Enums"]["action_type"][];
4470
+ appid: string;
4471
+ orgid: string;
4472
+ };
4473
+ Returns: boolean;
4016
4474
  };
4017
4475
  is_allowed_capgkey: {
4018
4476
  Args: {
@@ -4143,6 +4601,13 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4143
4601
  orgid: string;
4144
4602
  };
4145
4603
  Returns: boolean;
4604
+ } | {
4605
+ Args: {
4606
+ actions: Database["public"]["Enums"]["action_type"][];
4607
+ appid: string;
4608
+ orgid: string;
4609
+ };
4610
+ Returns: boolean;
4146
4611
  };
4147
4612
  is_paying_org: {
4148
4613
  Args: {
@@ -4295,6 +4760,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4295
4760
  };
4296
4761
  Returns: undefined;
4297
4762
  };
4763
+ process_queue_with_healthcheck: {
4764
+ Args: {
4765
+ batch_size: number;
4766
+ healthcheck_url: string;
4767
+ queue_names: string[];
4768
+ };
4769
+ Returns: undefined;
4770
+ };
4298
4771
  process_stats_email_monthly: {
4299
4772
  Args: never;
4300
4773
  Returns: undefined;
@@ -4421,6 +4894,12 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4421
4894
  };
4422
4895
  Returns: import("../types/supabase.types").Json;
4423
4896
  };
4897
+ rbac_org_role_for_legacy_right: {
4898
+ Args: {
4899
+ legacy_right: Database["public"]["Enums"]["user_min_right"];
4900
+ };
4901
+ Returns: string;
4902
+ };
4424
4903
  rbac_perm_app_build_native: {
4425
4904
  Args: never;
4426
4905
  Returns: string;
@@ -4525,6 +5004,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4525
5004
  Args: never;
4526
5005
  Returns: string;
4527
5006
  };
5007
+ rbac_perm_org_create: {
5008
+ Args: never;
5009
+ Returns: string;
5010
+ };
4528
5011
  rbac_perm_org_create_app: {
4529
5012
  Args: never;
4530
5013
  Returns: string;
@@ -4676,6 +5159,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4676
5159
  Args: never;
4677
5160
  Returns: Database["public"]["Enums"]["user_min_right"];
4678
5161
  };
5162
+ rbac_role_apikey_org_reader: {
5163
+ Args: never;
5164
+ Returns: string;
5165
+ };
4679
5166
  rbac_role_app_admin: {
4680
5167
  Args: never;
4681
5168
  Returns: string;
@@ -4778,6 +5265,19 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4778
5265
  mau: number;
4779
5266
  }[];
4780
5267
  };
5268
+ read_native_version_usage: {
5269
+ Args: {
5270
+ p_app_id: string;
5271
+ p_period_end: string;
5272
+ p_period_start: string;
5273
+ };
5274
+ Returns: {
5275
+ date: string;
5276
+ devices: number;
5277
+ platform: string;
5278
+ version_build: string;
5279
+ }[];
5280
+ };
4781
5281
  read_storage_usage: {
4782
5282
  Args: {
4783
5283
  p_app_id: string;
@@ -4823,6 +5323,14 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4823
5323
  };
4824
5324
  Returns: string;
4825
5325
  };
5326
+ refresh_app_rollups_after_demo_reset: {
5327
+ Args: {
5328
+ p_app_id: string;
5329
+ p_app_uuid: string;
5330
+ p_owner_org: string;
5331
+ };
5332
+ Returns: undefined;
5333
+ };
4826
5334
  refresh_orgs_has_usage_credits: {
4827
5335
  Args: never;
4828
5336
  Returns: undefined;
@@ -4837,9 +5345,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4837
5345
  id: number;
4838
5346
  key: string | null;
4839
5347
  key_hash: string | null;
4840
- limited_to_apps: string[] | null;
4841
- limited_to_orgs: string[] | null;
4842
- mode: Database["public"]["Enums"]["key_mode"];
4843
5348
  name: string;
4844
5349
  rbac_id: string;
4845
5350
  updated_at: string | null;
@@ -4863,9 +5368,6 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4863
5368
  id: number;
4864
5369
  key: string | null;
4865
5370
  key_hash: string | null;
4866
- limited_to_apps: string[] | null;
4867
- limited_to_orgs: string[] | null;
4868
- mode: Database["public"]["Enums"]["key_mode"];
4869
5371
  name: string;
4870
5372
  rbac_id: string;
4871
5373
  updated_at: string | null;
@@ -4954,6 +5456,12 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
4954
5456
  };
4955
5457
  Returns: string;
4956
5458
  };
5459
+ reset_onboarding_demo_app_data: {
5460
+ Args: {
5461
+ p_app_uuid: string;
5462
+ };
5463
+ Returns: undefined;
5464
+ };
4957
5465
  restore_deleted_account: {
4958
5466
  Args: never;
4959
5467
  Returns: undefined;
@@ -5047,6 +5555,16 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
5047
5555
  Args: never;
5048
5556
  Returns: number;
5049
5557
  };
5558
+ track_onboarding_demo_data: {
5559
+ Args: {
5560
+ p_app_id: string;
5561
+ p_owner_org: string;
5562
+ p_relation_name: string;
5563
+ p_row_keys: string[];
5564
+ p_seed_id: string;
5565
+ };
5566
+ Returns: undefined;
5567
+ };
5050
5568
  transfer_app: {
5051
5569
  Args: {
5052
5570
  p_app_id: string;
@@ -5102,6 +5620,10 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
5102
5620
  };
5103
5621
  Returns: boolean;
5104
5622
  };
5623
+ usage_credit_readable_org_ids: {
5624
+ Args: never;
5625
+ Returns: string[];
5626
+ };
5105
5627
  user_has_app_update_user_roles: {
5106
5628
  Args: {
5107
5629
  p_app_id: string;
@@ -5143,7 +5665,7 @@ export declare function delChannelDevices(supabase: SupabaseClient<Database>, ap
5143
5665
  disable_update: "major" | "minor" | "patch" | "version_number" | "none";
5144
5666
  key_mode: "read" | "write" | "all" | "upload";
5145
5667
  platform_os: "ios" | "android" | "electron";
5146
- stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked";
5668
+ stats_action: "delete" | "reset" | "set" | "get" | "set_fail" | "update_fail" | "download_fail" | "windows_path_fail" | "canonical_path_fail" | "directory_path_fail" | "unzip_fail" | "low_mem_fail" | "download_10" | "download_20" | "download_30" | "download_40" | "download_50" | "download_60" | "download_70" | "download_80" | "download_90" | "download_complete" | "decrypt_fail" | "app_moved_to_foreground" | "app_moved_to_background" | "uninstall" | "needPlanUpgrade" | "missingBundle" | "noNew" | "disablePlatformIos" | "disablePlatformAndroid" | "disableAutoUpdateToMajor" | "cannotUpdateViaPrivateChannel" | "disableAutoUpdateToMinor" | "disableAutoUpdateToPatch" | "channelMisconfigured" | "disableAutoUpdateMetadata" | "disableAutoUpdateUnderNative" | "disableDevBuild" | "disableEmulator" | "cannotGetBundle" | "checksum_fail" | "NoChannelOrOverride" | "setChannel" | "getChannel" | "rateLimited" | "disableAutoUpdate" | "keyMismatch" | "ping" | "InvalidIp" | "blocked_by_server_url" | "download_manifest_start" | "download_manifest_complete" | "download_zip_start" | "download_zip_complete" | "download_manifest_file_fail" | "download_manifest_checksum_fail" | "download_manifest_brotli_fail" | "backend_refusal" | "download_0" | "disableProdBuild" | "disableDevice" | "disablePlatformElectron" | "customIdBlocked" | "app_crash" | "app_crash_native" | "app_anr" | "app_killed_low_memory" | "app_killed_excessive_resource_usage" | "app_initialization_failure" | "app_memory_warning" | "webview_javascript_error" | "webview_unhandled_rejection" | "webview_resource_error" | "webview_security_policy_violation" | "webview_unclean_restart" | "webview_render_process_gone" | "webview_content_process_terminated" | "os_version_changed" | "native_app_version_changed";
5147
5669
  stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
5148
5670
  user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
5149
5671
  user_role: "read" | "upload" | "write" | "admin";