@capgo/cli 8.7.3 → 8.8.1

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.
@@ -151,6 +151,45 @@ interface CapgoFilesConfig {
151
151
  export declare function getRemoteFileConfig(): Promise<CapgoFilesConfig>;
152
152
  export declare function createSupabaseClient(apikey: string, supaHost?: string, supaKey?: string, silent?: boolean, instrument?: boolean): Promise<SupabaseClient<Database, "public", "public", {
153
153
  Tables: {
154
+ apikey_global_permissions: {
155
+ Row: {
156
+ apikey_rbac_id: string;
157
+ created_at: string;
158
+ granted_by: string | null;
159
+ id: number;
160
+ permission_key: string;
161
+ reason: string | null;
162
+ };
163
+ Insert: {
164
+ apikey_rbac_id: string;
165
+ created_at?: string;
166
+ granted_by?: string | null;
167
+ id?: number;
168
+ permission_key: string;
169
+ reason?: string | null;
170
+ };
171
+ Update: {
172
+ apikey_rbac_id?: string;
173
+ created_at?: string;
174
+ granted_by?: string | null;
175
+ id?: number;
176
+ permission_key?: string;
177
+ reason?: string | null;
178
+ };
179
+ Relationships: [{
180
+ foreignKeyName: "apikey_global_permissions_apikey_rbac_id_fkey";
181
+ columns: ["apikey_rbac_id"];
182
+ isOneToOne: false;
183
+ referencedRelation: "apikeys";
184
+ referencedColumns: ["rbac_id"];
185
+ }, {
186
+ foreignKeyName: "apikey_global_permissions_granted_by_fkey";
187
+ columns: ["granted_by"];
188
+ isOneToOne: false;
189
+ referencedRelation: "users";
190
+ referencedColumns: ["id"];
191
+ }];
192
+ };
154
193
  apikeys: {
155
194
  Row: {
156
195
  created_at: string | null;
@@ -158,9 +197,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
158
197
  id: number;
159
198
  key: string | null;
160
199
  key_hash: string | null;
161
- limited_to_apps: string[] | null;
162
- limited_to_orgs: string[] | null;
163
- mode: Database["public"]["Enums"]["key_mode"];
164
200
  name: string;
165
201
  rbac_id: string;
166
202
  updated_at: string | null;
@@ -172,9 +208,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
172
208
  id?: number;
173
209
  key?: string | null;
174
210
  key_hash?: string | null;
175
- limited_to_apps?: string[] | null;
176
- limited_to_orgs?: string[] | null;
177
- mode: Database["public"]["Enums"]["key_mode"];
178
211
  name: string;
179
212
  rbac_id?: string;
180
213
  updated_at?: string | null;
@@ -186,9 +219,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
186
219
  id?: number;
187
220
  key?: string | null;
188
221
  key_hash?: string | null;
189
- limited_to_apps?: string[] | null;
190
- limited_to_orgs?: string[] | null;
191
- mode?: Database["public"]["Enums"]["key_mode"];
192
222
  name?: string;
193
223
  rbac_id?: string;
194
224
  updated_at?: string | null;
@@ -433,31 +463,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
433
463
  build_timeout_seconds?: number;
434
464
  build_timeout_updated_at?: string;
435
465
  channel_device_count?: number;
436
- created_at
437
- /**
438
- * Get the actual installed version of a package from node_modules (not from package.json)
439
- * Uses multiple resolution strategies to find the installed version:
440
- * 1. require.resolve - Works with all package managers
441
- * 2. Walk up node_modules - Handles hoisted dependencies in monorepos
442
- * 3. Native config files (iOS/Android) - For @capgo/capacitor-updater only
443
- * 4. Fallback to declared version in package.json
444
- *
445
- * @param packageName - The package name to check
446
- * @param rootDir - The root directory of the project
447
- * @param packageJsonPath - Optional custom package.json path provided by user (takes priority if provided)
448
- */
449
- ? /**
450
- * Get the actual installed version of a package from node_modules (not from package.json)
451
- * Uses multiple resolution strategies to find the installed version:
452
- * 1. require.resolve - Works with all package managers
453
- * 2. Walk up node_modules - Handles hoisted dependencies in monorepos
454
- * 3. Native config files (iOS/Android) - For @capgo/capacitor-updater only
455
- * 4. Fallback to declared version in package.json
456
- *
457
- * @param packageName - The package name to check
458
- * @param rootDir - The root directory of the project
459
- * @param packageJsonPath - Optional custom package.json path provided by user (takes priority if provided)
460
- */: string | null;
466
+ created_at?: string | null;
461
467
  default_upload_channel?: string;
462
468
  existing_app?: boolean;
463
469
  expose_metadata?: boolean;
@@ -541,6 +547,36 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
541
547
  referencedColumns: ["id"];
542
548
  }];
543
549
  };
550
+ backfill_progress: {
551
+ Row: {
552
+ created_at: string;
553
+ cutover_at: string;
554
+ job_name: string;
555
+ last_processed_id: number | null;
556
+ last_processed_occurred_at: string | null;
557
+ scope_key: string;
558
+ updated_at: string;
559
+ };
560
+ Insert: {
561
+ created_at?: string;
562
+ cutover_at: string;
563
+ job_name: string;
564
+ last_processed_id?: number | null;
565
+ last_processed_occurred_at?: string | null;
566
+ scope_key: string;
567
+ updated_at?: string;
568
+ };
569
+ Update: {
570
+ created_at?: string;
571
+ cutover_at?: string;
572
+ job_name?: string;
573
+ last_processed_id?: number | null;
574
+ last_processed_occurred_at?: string | null;
575
+ scope_key?: string;
576
+ updated_at?: string;
577
+ };
578
+ Relationships: [];
579
+ };
544
580
  bandwidth_usage: {
545
581
  Row: {
546
582
  app_id: string;
@@ -615,6 +651,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
615
651
  };
616
652
  build_requests: {
617
653
  Row: {
654
+ ai_analyzed: boolean;
618
655
  app_id: string;
619
656
  build_config: import("./types/supabase.types").Json | null;
620
657
  build_mode: string;
@@ -634,6 +671,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
634
671
  upload_url: string;
635
672
  };
636
673
  Insert: {
674
+ ai_analyzed?: boolean;
637
675
  app_id: string;
638
676
  build_config?: import("./types/supabase.types").Json | null;
639
677
  build_mode?: string;
@@ -653,6 +691,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
653
691
  upload_url: string;
654
692
  };
655
693
  Update: {
694
+ ai_analyzed?: boolean;
656
695
  app_id?: string;
657
696
  build_config?: import("./types/supabase.types").Json | null;
658
697
  build_mode?: string;
@@ -904,12 +943,88 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
904
943
  referencedColumns: ["id"];
905
944
  }];
906
945
  };
946
+ compatibility_events: {
947
+ Row: {
948
+ app_id: string;
949
+ change_occurred_at: string;
950
+ channel_id: number | null;
951
+ channel_name: string;
952
+ created_at: string;
953
+ current_version_id: number | null;
954
+ current_version_name: string;
955
+ id: number;
956
+ offenders: import("./types/supabase.types").Json;
957
+ org_id: string;
958
+ platform: string;
959
+ previous_version_id: number | null;
960
+ previous_version_name: string;
961
+ resolution_kind: string | null;
962
+ resolution_note: string | null;
963
+ resolved_at: string | null;
964
+ resolved_by: string | null;
965
+ source: string;
966
+ };
967
+ Insert: {
968
+ app_id: string;
969
+ change_occurred_at?: string;
970
+ channel_id?: number | null;
971
+ channel_name: string;
972
+ created_at?: string;
973
+ current_version_id?: number | null;
974
+ current_version_name: string;
975
+ id?: never;
976
+ offenders?: import("./types/supabase.types").Json;
977
+ org_id: string;
978
+ platform: string;
979
+ previous_version_id?: number | null;
980
+ previous_version_name: string;
981
+ resolution_kind?: string | null;
982
+ resolution_note?: string | null;
983
+ resolved_at?: string | null;
984
+ resolved_by?: string | null;
985
+ source: string;
986
+ };
987
+ Update: {
988
+ app_id?: string;
989
+ change_occurred_at?: string;
990
+ channel_id?: number | null;
991
+ channel_name?: string;
992
+ created_at?: string;
993
+ current_version_id?: number | null;
994
+ current_version_name?: string;
995
+ id?: never;
996
+ offenders?: import("./types/supabase.types").Json;
997
+ org_id?: string;
998
+ platform?: string;
999
+ previous_version_id?: number | null;
1000
+ previous_version_name?: string;
1001
+ resolution_kind?: string | null;
1002
+ resolution_note?: string | null;
1003
+ resolved_at?: string | null;
1004
+ resolved_by?: string | null;
1005
+ source?: string;
1006
+ };
1007
+ Relationships: [{
1008
+ foreignKeyName: "compatibility_events_app_id_fkey";
1009
+ columns: ["app_id"];
1010
+ isOneToOne: false;
1011
+ referencedRelation: "apps";
1012
+ referencedColumns: ["app_id"];
1013
+ }, {
1014
+ foreignKeyName: "compatibility_events_org_id_fkey";
1015
+ columns: ["org_id"];
1016
+ isOneToOne: false;
1017
+ referencedRelation: "orgs";
1018
+ referencedColumns: ["id"];
1019
+ }];
1020
+ };
907
1021
  cron_tasks: {
908
1022
  Row: {
909
1023
  batch_size: number | null;
910
1024
  created_at: string;
911
1025
  description: string | null;
912
1026
  enabled: boolean;
1027
+ healthcheck_url: string | null;
913
1028
  hour_interval: number | null;
914
1029
  id: number;
915
1030
  minute_interval: number | null;
@@ -930,6 +1045,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
930
1045
  created_at?: string;
931
1046
  description?: string | null;
932
1047
  enabled?: boolean;
1048
+ healthcheck_url?: string | null;
933
1049
  hour_interval?: number | null;
934
1050
  id?: number;
935
1051
  minute_interval?: number | null;
@@ -950,6 +1066,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
950
1066
  created_at?: string;
951
1067
  description?: string | null;
952
1068
  enabled?: boolean;
1069
+ healthcheck_url?: string | null;
953
1070
  hour_interval?: number | null;
954
1071
  id?: number;
955
1072
  minute_interval?: number | null;
@@ -1039,7 +1156,16 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1039
1156
  daily_revenue_metrics: {
1040
1157
  Row: {
1041
1158
  churn_mrr: number;
1159
+ churn_reason: string | null;
1160
+ churn_mrr_enterprise: number;
1161
+ churn_mrr_maker: number;
1162
+ churn_mrr_solo: number;
1163
+ churn_mrr_team: number;
1042
1164
  contraction_mrr: number;
1165
+ contraction_mrr_enterprise: number;
1166
+ contraction_mrr_maker: number;
1167
+ contraction_mrr_solo: number;
1168
+ contraction_mrr_team: number;
1043
1169
  created_at: string;
1044
1170
  customer_id: string;
1045
1171
  date_id: string;
@@ -1050,7 +1176,16 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1050
1176
  };
1051
1177
  Insert: {
1052
1178
  churn_mrr?: number;
1179
+ churn_reason?: string | null;
1180
+ churn_mrr_enterprise?: number;
1181
+ churn_mrr_maker?: number;
1182
+ churn_mrr_solo?: number;
1183
+ churn_mrr_team?: number;
1053
1184
  contraction_mrr?: number;
1185
+ contraction_mrr_enterprise?: number;
1186
+ contraction_mrr_maker?: number;
1187
+ contraction_mrr_solo?: number;
1188
+ contraction_mrr_team?: number;
1054
1189
  created_at?: string;
1055
1190
  customer_id: string;
1056
1191
  date_id: string;
@@ -1061,7 +1196,16 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1061
1196
  };
1062
1197
  Update: {
1063
1198
  churn_mrr?: number;
1199
+ churn_reason?: string | null;
1200
+ churn_mrr_enterprise?: number;
1201
+ churn_mrr_maker?: number;
1202
+ churn_mrr_solo?: number;
1203
+ churn_mrr_team?: number;
1064
1204
  contraction_mrr?: number;
1205
+ contraction_mrr_enterprise?: number;
1206
+ contraction_mrr_maker?: number;
1207
+ contraction_mrr_solo?: number;
1208
+ contraction_mrr_team?: number;
1065
1209
  created_at?: string;
1066
1210
  customer_id?: string;
1067
1211
  date_id?: string;
@@ -1093,6 +1237,45 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1093
1237
  };
1094
1238
  Relationships: [];
1095
1239
  };
1240
+ daily_storage_hourly: {
1241
+ Row: {
1242
+ app_id: string;
1243
+ created_at: string;
1244
+ date: string;
1245
+ owner_org: string;
1246
+ storage_byte_hours: number;
1247
+ updated_at: string;
1248
+ };
1249
+ Insert: {
1250
+ app_id: string;
1251
+ created_at?: string;
1252
+ date: string;
1253
+ owner_org: string;
1254
+ storage_byte_hours?: number;
1255
+ updated_at?: string;
1256
+ };
1257
+ Update: {
1258
+ app_id?: string;
1259
+ created_at?: string;
1260
+ date?: string;
1261
+ owner_org?: string;
1262
+ storage_byte_hours?: number;
1263
+ updated_at?: string;
1264
+ };
1265
+ Relationships: [{
1266
+ foreignKeyName: "daily_storage_hourly_app_id_fkey";
1267
+ columns: ["app_id"];
1268
+ isOneToOne: false;
1269
+ referencedRelation: "apps";
1270
+ referencedColumns: ["app_id"];
1271
+ }, {
1272
+ foreignKeyName: "daily_storage_hourly_owner_org_fkey";
1273
+ columns: ["owner_org"];
1274
+ isOneToOne: false;
1275
+ referencedRelation: "orgs";
1276
+ referencedColumns: ["id"];
1277
+ }];
1278
+ };
1096
1279
  daily_version: {
1097
1280
  Row: {
1098
1281
  app_id: string;
@@ -1237,21 +1420,27 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1237
1420
  device_id: string;
1238
1421
  id: number;
1239
1422
  org_id: string;
1423
+ platform: string | null;
1240
1424
  timestamp: string;
1425
+ version_build: string | null;
1241
1426
  };
1242
1427
  Insert: {
1243
1428
  app_id: string;
1244
1429
  device_id: string;
1245
1430
  id?: number;
1246
1431
  org_id: string;
1432
+ platform?: string | null;
1247
1433
  timestamp?: string;
1434
+ version_build?: string | null;
1248
1435
  };
1249
1436
  Update: {
1250
1437
  app_id?: string;
1251
1438
  device_id?: string;
1252
1439
  id?: number;
1253
1440
  org_id?: string;
1441
+ platform?: string | null;
1254
1442
  timestamp?: string;
1443
+ version_build?: string | null;
1255
1444
  };
1256
1445
  Relationships: [];
1257
1446
  };
@@ -1313,12 +1502,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1313
1502
  Row: {
1314
1503
  apps: number;
1315
1504
  apps_active: number | null;
1505
+ average_ltv: number;
1316
1506
  build_avg_seconds_day_android: number;
1317
1507
  build_avg_seconds_day_ios: number;
1318
1508
  build_count_day_android: number;
1319
1509
  build_count_day_ios: number;
1320
1510
  build_total_seconds_day_android: number;
1321
1511
  build_total_seconds_day_ios: number;
1512
+ builder_active_paying_clients_60d: number;
1322
1513
  builds_android: number | null;
1323
1514
  builds_ios: number | null;
1324
1515
  builds_last_month: number | null;
@@ -1331,6 +1522,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1331
1522
  bundle_storage_gb: number;
1332
1523
  canceled_orgs: number;
1333
1524
  churn_revenue: number;
1525
+ churn_revenue_enterprise: number;
1526
+ churn_revenue_maker: number;
1527
+ churn_revenue_solo: number;
1528
+ churn_revenue_team: number;
1334
1529
  created_at: string | null;
1335
1530
  credits_bought: number;
1336
1531
  credits_consumed: number;
@@ -1339,9 +1534,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1339
1534
  devices_last_month: number | null;
1340
1535
  devices_last_month_android: number | null;
1341
1536
  devices_last_month_ios: number | null;
1537
+ live_updates_active_paying_clients_60d: number;
1538
+ longest_ltv: number;
1342
1539
  mrr: number;
1343
1540
  need_upgrade: number | null;
1344
1541
  new_paying_orgs: number;
1542
+ past_due_orgs: number;
1543
+ past_due_orgs_average_days: number;
1345
1544
  not_paying: number | null;
1346
1545
  nrr: number;
1347
1546
  onboarded: number | null;
@@ -1350,24 +1549,31 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1350
1549
  paying_monthly: number | null;
1351
1550
  paying_yearly: number | null;
1352
1551
  plan_enterprise: number | null;
1552
+ plan_enterprise_conversion_rate: number;
1353
1553
  plan_enterprise_monthly: number;
1354
1554
  plan_enterprise_yearly: number;
1355
1555
  plan_maker: number | null;
1556
+ plan_maker_conversion_rate: number;
1356
1557
  plan_maker_monthly: number;
1357
1558
  plan_maker_yearly: number;
1358
1559
  plan_solo: number | null;
1560
+ plan_solo_conversion_rate: number;
1359
1561
  plan_solo_monthly: number;
1360
1562
  plan_solo_yearly: number;
1361
1563
  plan_team: number | null;
1564
+ plan_team_conversion_rate: number;
1362
1565
  plan_team_monthly: number;
1363
1566
  plan_team_yearly: number;
1567
+ plan_total_conversion_rate: number;
1364
1568
  plugin_major_breakdown: import("./types/supabase.types").Json;
1365
1569
  plugin_version_breakdown: import("./types/supabase.types").Json;
1570
+ plugin_version_ladder: import("./types/supabase.types").Json;
1366
1571
  registers_today: number;
1367
1572
  revenue_enterprise: number;
1368
1573
  revenue_maker: number;
1369
1574
  revenue_solo: number;
1370
1575
  revenue_team: number;
1576
+ shortest_ltv: number;
1371
1577
  stars: number;
1372
1578
  success_rate: number | null;
1373
1579
  total_revenue: number;
@@ -1376,18 +1582,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1376
1582
  updates_external: number | null;
1377
1583
  updates_last_month: number | null;
1378
1584
  upgraded_orgs: number;
1585
+ trial_extended_orgs: number;
1586
+ trial_extended_subscribed_orgs: number;
1379
1587
  users: number | null;
1380
1588
  users_active: number | null;
1381
1589
  };
1382
1590
  Insert: {
1383
1591
  apps: number;
1384
1592
  apps_active?: number | null;
1593
+ average_ltv?: number;
1385
1594
  build_avg_seconds_day_android?: number;
1386
1595
  build_avg_seconds_day_ios?: number;
1387
1596
  build_count_day_android?: number;
1388
1597
  build_count_day_ios?: number;
1389
1598
  build_total_seconds_day_android?: number;
1390
1599
  build_total_seconds_day_ios?: number;
1600
+ builder_active_paying_clients_60d?: number;
1391
1601
  builds_android?: number | null;
1392
1602
  builds_ios?: number | null;
1393
1603
  builds_last_month?: number | null;
@@ -1400,6 +1610,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1400
1610
  bundle_storage_gb?: number;
1401
1611
  canceled_orgs?: number;
1402
1612
  churn_revenue?: number;
1613
+ churn_revenue_enterprise?: number;
1614
+ churn_revenue_maker?: number;
1615
+ churn_revenue_solo?: number;
1616
+ churn_revenue_team?: number;
1403
1617
  created_at?: string | null;
1404
1618
  credits_bought?: number;
1405
1619
  credits_consumed?: number;
@@ -1408,9 +1622,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1408
1622
  devices_last_month?: number | null;
1409
1623
  devices_last_month_android?: number | null;
1410
1624
  devices_last_month_ios?: number | null;
1625
+ live_updates_active_paying_clients_60d?: number;
1626
+ longest_ltv?: number;
1411
1627
  mrr?: number;
1412
1628
  need_upgrade?: number | null;
1413
1629
  new_paying_orgs?: number;
1630
+ past_due_orgs?: number;
1631
+ past_due_orgs_average_days?: number;
1414
1632
  not_paying?: number | null;
1415
1633
  nrr?: number;
1416
1634
  onboarded?: number | null;
@@ -1419,24 +1637,31 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1419
1637
  paying_monthly?: number | null;
1420
1638
  paying_yearly?: number | null;
1421
1639
  plan_enterprise?: number | null;
1640
+ plan_enterprise_conversion_rate?: number;
1422
1641
  plan_enterprise_monthly?: number;
1423
1642
  plan_enterprise_yearly?: number;
1424
1643
  plan_maker?: number | null;
1644
+ plan_maker_conversion_rate?: number;
1425
1645
  plan_maker_monthly?: number;
1426
1646
  plan_maker_yearly?: number;
1427
1647
  plan_solo?: number | null;
1648
+ plan_solo_conversion_rate?: number;
1428
1649
  plan_solo_monthly?: number;
1429
1650
  plan_solo_yearly?: number;
1430
1651
  plan_team?: number | null;
1652
+ plan_team_conversion_rate?: number;
1431
1653
  plan_team_monthly?: number;
1432
1654
  plan_team_yearly?: number;
1655
+ plan_total_conversion_rate?: number;
1433
1656
  plugin_major_breakdown?: import("./types/supabase.types").Json;
1434
1657
  plugin_version_breakdown?: import("./types/supabase.types").Json;
1658
+ plugin_version_ladder?: import("./types/supabase.types").Json;
1435
1659
  registers_today?: number;
1436
1660
  revenue_enterprise?: number;
1437
1661
  revenue_maker?: number;
1438
1662
  revenue_solo?: number;
1439
1663
  revenue_team?: number;
1664
+ shortest_ltv?: number;
1440
1665
  stars: number;
1441
1666
  success_rate?: number | null;
1442
1667
  total_revenue?: number;
@@ -1445,18 +1670,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1445
1670
  updates_external?: number | null;
1446
1671
  updates_last_month?: number | null;
1447
1672
  upgraded_orgs?: number;
1673
+ trial_extended_orgs?: number;
1674
+ trial_extended_subscribed_orgs?: number;
1448
1675
  users?: number | null;
1449
1676
  users_active?: number | null;
1450
1677
  };
1451
1678
  Update: {
1452
1679
  apps?: number;
1453
1680
  apps_active?: number | null;
1681
+ average_ltv?: number;
1454
1682
  build_avg_seconds_day_android?: number;
1455
1683
  build_avg_seconds_day_ios?: number;
1456
1684
  build_count_day_android?: number;
1457
1685
  build_count_day_ios?: number;
1458
1686
  build_total_seconds_day_android?: number;
1459
1687
  build_total_seconds_day_ios?: number;
1688
+ builder_active_paying_clients_60d?: number;
1460
1689
  builds_android?: number | null;
1461
1690
  builds_ios?: number | null;
1462
1691
  builds_last_month?: number | null;
@@ -1469,6 +1698,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1469
1698
  bundle_storage_gb?: number;
1470
1699
  canceled_orgs?: number;
1471
1700
  churn_revenue?: number;
1701
+ churn_revenue_enterprise?: number;
1702
+ churn_revenue_maker?: number;
1703
+ churn_revenue_solo?: number;
1704
+ churn_revenue_team?: number;
1472
1705
  created_at?: string | null;
1473
1706
  credits_bought?: number;
1474
1707
  credits_consumed?: number;
@@ -1477,9 +1710,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1477
1710
  devices_last_month?: number | null;
1478
1711
  devices_last_month_android?: number | null;
1479
1712
  devices_last_month_ios?: number | null;
1713
+ live_updates_active_paying_clients_60d?: number;
1714
+ longest_ltv?: number;
1480
1715
  mrr?: number;
1481
1716
  need_upgrade?: number | null;
1482
1717
  new_paying_orgs?: number;
1718
+ past_due_orgs?: number;
1719
+ past_due_orgs_average_days?: number;
1483
1720
  not_paying?: number | null;
1484
1721
  nrr?: number;
1485
1722
  onboarded?: number | null;
@@ -1488,24 +1725,31 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1488
1725
  paying_monthly?: number | null;
1489
1726
  paying_yearly?: number | null;
1490
1727
  plan_enterprise?: number | null;
1728
+ plan_enterprise_conversion_rate?: number;
1491
1729
  plan_enterprise_monthly?: number;
1492
1730
  plan_enterprise_yearly?: number;
1493
1731
  plan_maker?: number | null;
1732
+ plan_maker_conversion_rate?: number;
1494
1733
  plan_maker_monthly?: number;
1495
1734
  plan_maker_yearly?: number;
1496
1735
  plan_solo?: number | null;
1736
+ plan_solo_conversion_rate?: number;
1497
1737
  plan_solo_monthly?: number;
1498
1738
  plan_solo_yearly?: number;
1499
1739
  plan_team?: number | null;
1740
+ plan_team_conversion_rate?: number;
1500
1741
  plan_team_monthly?: number;
1501
1742
  plan_team_yearly?: number;
1743
+ plan_total_conversion_rate?: number;
1502
1744
  plugin_major_breakdown?: import("./types/supabase.types").Json;
1503
1745
  plugin_version_breakdown?: import("./types/supabase.types").Json;
1746
+ plugin_version_ladder?: import("./types/supabase.types").Json;
1504
1747
  registers_today?: number;
1505
1748
  revenue_enterprise?: number;
1506
1749
  revenue_maker?: number;
1507
1750
  revenue_solo?: number;
1508
1751
  revenue_team?: number;
1752
+ shortest_ltv?: number;
1509
1753
  stars?: number;
1510
1754
  success_rate?: number | null;
1511
1755
  total_revenue?: number;
@@ -1514,6 +1758,8 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1514
1758
  updates_external?: number | null;
1515
1759
  updates_last_month?: number | null;
1516
1760
  upgraded_orgs?: number;
1761
+ trial_extended_orgs?: number;
1762
+ trial_extended_subscribed_orgs?: number;
1517
1763
  users?: number | null;
1518
1764
  users_active?: number | null;
1519
1765
  };
@@ -1657,6 +1903,48 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1657
1903
  referencedColumns: ["id"];
1658
1904
  }];
1659
1905
  };
1906
+ onboarding_demo_data: {
1907
+ Row: {
1908
+ app_id: string;
1909
+ created_at: string;
1910
+ id: string;
1911
+ owner_org: string;
1912
+ relation_name: string;
1913
+ row_key: string;
1914
+ seed_id: string;
1915
+ };
1916
+ Insert: {
1917
+ app_id: string;
1918
+ created_at?: string;
1919
+ id?: string;
1920
+ owner_org: string;
1921
+ relation_name: string;
1922
+ row_key: string;
1923
+ seed_id: string;
1924
+ };
1925
+ Update: {
1926
+ app_id?: string;
1927
+ created_at?: string;
1928
+ id?: string;
1929
+ owner_org?: string;
1930
+ relation_name?: string;
1931
+ row_key?: string;
1932
+ seed_id?: string;
1933
+ };
1934
+ Relationships: [{
1935
+ foreignKeyName: "onboarding_demo_data_app_id_fkey";
1936
+ columns: ["app_id"];
1937
+ isOneToOne: false;
1938
+ referencedRelation: "apps";
1939
+ referencedColumns: ["app_id"];
1940
+ }, {
1941
+ foreignKeyName: "onboarding_demo_data_owner_org_fkey";
1942
+ columns: ["owner_org"];
1943
+ isOneToOne: false;
1944
+ referencedRelation: "orgs";
1945
+ referencedColumns: ["id"];
1946
+ }];
1947
+ };
1660
1948
  org_metrics_cache: {
1661
1949
  Row: {
1662
1950
  bandwidth: number;
@@ -1784,6 +2072,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1784
2072
  management_email: string;
1785
2073
  max_apikey_expiration_days: number | null;
1786
2074
  name: string;
2075
+ onboarding: import("./types/supabase.types").Json;
1787
2076
  password_policy_config: import("./types/supabase.types").Json | null;
1788
2077
  require_apikey_expiration: boolean;
1789
2078
  required_encryption_key: string | null;
@@ -1808,6 +2097,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1808
2097
  management_email: string;
1809
2098
  max_apikey_expiration_days?: number | null;
1810
2099
  name: string;
2100
+ onboarding?: import("./types/supabase.types").Json;
1811
2101
  password_policy_config?: import("./types/supabase.types").Json | null;
1812
2102
  require_apikey_expiration?: boolean;
1813
2103
  required_encryption_key?: string | null;
@@ -1832,6 +2122,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1832
2122
  management_email?: string;
1833
2123
  max_apikey_expiration_days?: number | null;
1834
2124
  name?: string;
2125
+ onboarding?: import("./types/supabase.types").Json;
1835
2126
  password_policy_config?: import("./types/supabase.types").Json | null;
1836
2127
  require_apikey_expiration?: boolean;
1837
2128
  required_encryption_key?: string | null;
@@ -1899,6 +2190,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1899
2190
  market_desc: string | null;
1900
2191
  mau: number;
1901
2192
  name: string;
2193
+ native_build_concurrency: number;
1902
2194
  price_m: number;
1903
2195
  price_m_id: string;
1904
2196
  price_y: number;
@@ -1917,6 +2209,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1917
2209
  market_desc?: string | null;
1918
2210
  mau?: number;
1919
2211
  name?: string;
2212
+ native_build_concurrency?: number;
1920
2213
  price_m?: number;
1921
2214
  price_m_id: string;
1922
2215
  price_y?: number;
@@ -1935,6 +2228,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1935
2228
  market_desc?: string | null;
1936
2229
  mau?: number;
1937
2230
  name?: string;
2231
+ native_build_concurrency?: number;
1938
2232
  price_m?: number;
1939
2233
  price_m_id?: string;
1940
2234
  price_y?: number;
@@ -2192,6 +2486,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2192
2486
  created_at: string;
2193
2487
  device_id: string;
2194
2488
  id: number;
2489
+ metadata: import("./types/supabase.types").Json | null;
2195
2490
  version_name: string;
2196
2491
  };
2197
2492
  Insert: {
@@ -2200,6 +2495,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2200
2495
  created_at: string;
2201
2496
  device_id: string;
2202
2497
  id?: never;
2498
+ metadata?: import("./types/supabase.types").Json | null;
2203
2499
  version_name?: string;
2204
2500
  };
2205
2501
  Update: {
@@ -2208,6 +2504,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2208
2504
  created_at?: string;
2209
2505
  device_id?: string;
2210
2506
  id?: never;
2507
+ metadata?: import("./types/supabase.types").Json | null;
2211
2508
  version_name?: string;
2212
2509
  };
2213
2510
  Relationships: [];
@@ -2241,12 +2538,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2241
2538
  bandwidth_exceeded: boolean | null;
2242
2539
  build_time_exceeded: boolean | null;
2243
2540
  canceled_at: string | null;
2541
+ churn_reason: string | null;
2244
2542
  created_at: string;
2245
2543
  customer_country: string | null;
2246
2544
  customer_id: string;
2247
2545
  id: number;
2248
2546
  is_good_plan: boolean | null;
2249
2547
  last_stripe_event_at: string | null;
2548
+ past_due_at: string | null;
2250
2549
  mau_exceeded: boolean | null;
2251
2550
  paid_at: string | null;
2252
2551
  plan_calculated_at: string | null;
@@ -2266,12 +2565,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2266
2565
  bandwidth_exceeded?: boolean | null;
2267
2566
  build_time_exceeded?: boolean | null;
2268
2567
  canceled_at?: string | null;
2568
+ churn_reason?: string | null;
2269
2569
  created_at?: string;
2270
2570
  customer_country?: string | null;
2271
2571
  customer_id: string;
2272
2572
  id?: number;
2273
2573
  is_good_plan?: boolean | null;
2274
2574
  last_stripe_event_at?: string | null;
2575
+ past_due_at?: string | null;
2275
2576
  mau_exceeded?: boolean | null;
2276
2577
  paid_at?: string | null;
2277
2578
  plan_calculated_at?: string | null;
@@ -2291,12 +2592,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2291
2592
  bandwidth_exceeded?: boolean | null;
2292
2593
  build_time_exceeded?: boolean | null;
2293
2594
  canceled_at?: string | null;
2595
+ churn_reason?: string | null;
2294
2596
  created_at?: string;
2295
2597
  customer_country?: string | null;
2296
2598
  customer_id?: string;
2297
2599
  id?: number;
2298
2600
  is_good_plan?: boolean | null;
2299
2601
  last_stripe_event_at?: string | null;
2602
+ past_due_at?: string | null;
2300
2603
  mau_exceeded?: boolean | null;
2301
2604
  paid_at?: string | null;
2302
2605
  plan_calculated_at?: string | null;
@@ -2320,6 +2623,48 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2320
2623
  referencedColumns: ["stripe_id"];
2321
2624
  }];
2322
2625
  };
2626
+ trial_extension_events: {
2627
+ Row: {
2628
+ created_at: string;
2629
+ customer_id: string;
2630
+ extension_days: number;
2631
+ id: number;
2632
+ new_trial_at: string;
2633
+ org_id: string;
2634
+ previous_trial_at: string;
2635
+ };
2636
+ Insert: {
2637
+ created_at?: string;
2638
+ customer_id: string;
2639
+ extension_days: number;
2640
+ id?: number;
2641
+ new_trial_at: string;
2642
+ org_id: string;
2643
+ previous_trial_at: string;
2644
+ };
2645
+ Update: {
2646
+ created_at?: string;
2647
+ customer_id?: string;
2648
+ extension_days?: number;
2649
+ id?: number;
2650
+ new_trial_at?: string;
2651
+ org_id?: string;
2652
+ previous_trial_at?: string;
2653
+ };
2654
+ Relationships: [{
2655
+ foreignKeyName: "trial_extension_events_customer_id_fkey";
2656
+ columns: ["customer_id"];
2657
+ isOneToOne: false;
2658
+ referencedRelation: "stripe_info";
2659
+ referencedColumns: ["customer_id"];
2660
+ }, {
2661
+ foreignKeyName: "trial_extension_events_org_id_fkey";
2662
+ columns: ["org_id"];
2663
+ isOneToOne: false;
2664
+ referencedRelation: "orgs";
2665
+ referencedColumns: ["id"];
2666
+ }];
2667
+ };
2323
2668
  tmp_users: {
2324
2669
  Row: {
2325
2670
  cancelled_at: string | null;
@@ -2749,6 +3094,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2749
3094
  audit_log_id: number | null;
2750
3095
  completed_at: string | null;
2751
3096
  created_at: string;
3097
+ delivery_version: string;
2752
3098
  duration_ms: number | null;
2753
3099
  event_type: string;
2754
3100
  id: string;
@@ -2767,6 +3113,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2767
3113
  audit_log_id?: number | null;
2768
3114
  completed_at?: string | null;
2769
3115
  created_at?: string;
3116
+ delivery_version?: string;
2770
3117
  duration_ms?: number | null;
2771
3118
  event_type: string;
2772
3119
  id?: string;
@@ -2785,6 +3132,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2785
3132
  audit_log_id?: number | null;
2786
3133
  completed_at?: string | null;
2787
3134
  created_at?: string;
3135
+ delivery_version?: string;
2788
3136
  duration_ms?: number | null;
2789
3137
  event_type?: string;
2790
3138
  id?: string;
@@ -2816,6 +3164,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2816
3164
  Row: {
2817
3165
  created_at: string;
2818
3166
  created_by: string;
3167
+ delivery_version: string;
2819
3168
  enabled: boolean;
2820
3169
  events: string[];
2821
3170
  id: string;
@@ -2828,6 +3177,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2828
3177
  Insert: {
2829
3178
  created_at?: string;
2830
3179
  created_by: string;
3180
+ delivery_version?: string;
2831
3181
  enabled?: boolean;
2832
3182
  events: string[];
2833
3183
  id?: string;
@@ -2840,6 +3190,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2840
3190
  Update: {
2841
3191
  created_at?: string;
2842
3192
  created_by?: string;
3193
+ delivery_version?: string;
2843
3194
  enabled?: boolean;
2844
3195
  events?: string[];
2845
3196
  id?: string;
@@ -2908,6 +3259,47 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2908
3259
  };
2909
3260
  Returns: string;
2910
3261
  };
3262
+ acknowledge_compatibility_event: {
3263
+ Args: {
3264
+ event_id: number;
3265
+ note: string;
3266
+ };
3267
+ Returns: undefined;
3268
+ };
3269
+ apikey_has_current_org_create_capability: {
3270
+ Args: {
3271
+ p_apikey_rbac_id: string;
3272
+ };
3273
+ Returns: boolean;
3274
+ };
3275
+ apikey_has_global_permission: {
3276
+ Args: {
3277
+ p_apikey: string;
3278
+ p_permission_key: string;
3279
+ };
3280
+ Returns: boolean;
3281
+ };
3282
+ apikey_permission_for_keymode: {
3283
+ Args: {
3284
+ keymode: Database["public"]["Enums"]["key_mode"][];
3285
+ scope_type: string;
3286
+ };
3287
+ Returns: string;
3288
+ };
3289
+ app_versions_has_app_permission: {
3290
+ Args: {
3291
+ p_apikey: string;
3292
+ p_app_id: string;
3293
+ p_min_right: Database["public"]["Enums"]["user_min_right"];
3294
+ p_owner_org: string;
3295
+ p_user_id: string;
3296
+ };
3297
+ Returns: boolean;
3298
+ };
3299
+ app_versions_readable_app_ids: {
3300
+ Args: never;
3301
+ Returns: string[];
3302
+ };
2911
3303
  apply_usage_overage: {
2912
3304
  Args: {
2913
3305
  p_billing_cycle_end: string;
@@ -3063,7 +3455,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3063
3455
  Args: {
3064
3456
  appid: string;
3065
3457
  };
3066
- Returns: number | null;
3458
+ Returns: number;
3459
+ };
3460
+ claim_legacy_onboarding_demo_data: {
3461
+ Args: {
3462
+ p_app_uuid: string;
3463
+ };
3464
+ Returns: undefined;
3067
3465
  };
3068
3466
  cleanup_expired_apikeys: {
3069
3467
  Args: never;
@@ -3106,14 +3504,20 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3106
3504
  p_app_uuid: string;
3107
3505
  };
3108
3506
  Returns: undefined;
3507
+ } | {
3508
+ Args: {
3509
+ p_app_uuid: string;
3510
+ p_preserve_app_version_id: number;
3511
+ };
3512
+ Returns: undefined;
3109
3513
  };
3110
3514
  cli_check_permission: {
3111
3515
  Args: {
3112
- apikey: string;
3516
+ apikey?: string;
3113
3517
  app_id?: string;
3114
3518
  channel_id?: number;
3115
3519
  org_id?: string;
3116
- permission_key: string;
3520
+ permission_key?: string;
3117
3521
  };
3118
3522
  Returns: boolean;
3119
3523
  };
@@ -3180,65 +3584,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3180
3584
  wrong_key_count: number;
3181
3585
  }[];
3182
3586
  };
3183
- create_hashed_apikey: {
3184
- Args: {
3185
- p_expires_at: string;
3186
- p_limited_to_apps: string[];
3187
- p_limited_to_orgs: string[];
3188
- p_mode: Database["public"]["Enums"]["key_mode"];
3189
- p_name: string;
3190
- };
3191
- Returns: {
3192
- created_at: string | null;
3193
- expires_at: string | null;
3194
- id: number;
3195
- key: string | null;
3196
- key_hash: string | null;
3197
- limited_to_apps: string[] | null;
3198
- limited_to_orgs: string[] | null;
3199
- mode: Database["public"]["Enums"]["key_mode"];
3200
- name: string;
3201
- rbac_id: string;
3202
- updated_at: string | null;
3203
- user_id: string;
3204
- };
3205
- SetofOptions: {
3206
- from: "*";
3207
- to: "apikeys";
3208
- isOneToOne: true;
3209
- isSetofReturn: false;
3210
- };
3211
- };
3212
- create_hashed_apikey_for_user: {
3213
- Args: {
3214
- p_expires_at: string;
3215
- p_limited_to_apps: string[];
3216
- p_limited_to_orgs: string[];
3217
- p_mode: Database["public"]["Enums"]["key_mode"];
3218
- p_name: string;
3219
- p_user_id: string;
3220
- };
3221
- Returns: {
3222
- created_at: string | null;
3223
- expires_at: string | null;
3224
- id: number;
3225
- key: string | null;
3226
- key_hash: string | null;
3227
- limited_to_apps: string[] | null;
3228
- limited_to_orgs: string[] | null;
3229
- mode: Database["public"]["Enums"]["key_mode"];
3230
- name: string;
3231
- rbac_id: string;
3232
- updated_at: string | null;
3233
- user_id: string;
3234
- };
3235
- SetofOptions: {
3236
- from: "*";
3237
- to: "apikeys";
3238
- isOneToOne: true;
3239
- isSetofReturn: false;
3240
- };
3241
- };
3242
3587
  current_request_role: {
3243
3588
  Args: never;
3244
3589
  Returns: string;
@@ -3322,9 +3667,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3322
3667
  id: number;
3323
3668
  key: string | null;
3324
3669
  key_hash: string | null;
3325
- limited_to_apps: string[] | null;
3326
- limited_to_orgs: string[] | null;
3327
- mode: Database["public"]["Enums"]["key_mode"];
3328
3670
  name: string;
3329
3671
  rbac_id: string;
3330
3672
  updated_at: string | null;
@@ -3357,6 +3699,44 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3357
3699
  name: string;
3358
3700
  }[];
3359
3701
  };
3702
+ get_accessible_apps_for_apikey_v2: {
3703
+ Args: {
3704
+ apikey?: string;
3705
+ };
3706
+ Returns: {
3707
+ allow_device_custom_id: boolean;
3708
+ allow_preview: boolean;
3709
+ android_store_url: string | null;
3710
+ app_id: string;
3711
+ build_timeout_seconds: number;
3712
+ build_timeout_updated_at: string;
3713
+ channel_device_count: number;
3714
+ created_at: string | null;
3715
+ default_upload_channel: string;
3716
+ existing_app: boolean;
3717
+ expose_metadata: boolean;
3718
+ icon_url: string;
3719
+ id: string | null;
3720
+ ios_store_url: string | null;
3721
+ last_version: string | null;
3722
+ manifest_bundle_count: number;
3723
+ name: string | null;
3724
+ need_onboarding: boolean;
3725
+ owner_org: string;
3726
+ retention: number;
3727
+ stats_refresh_requested_at: string | null;
3728
+ stats_updated_at: string | null;
3729
+ transfer_history: import("./types/supabase.types").Json[] | null;
3730
+ updated_at: string | null;
3731
+ user_id: string | null;
3732
+ }[];
3733
+ SetofOptions: {
3734
+ from: "*";
3735
+ to: "apps";
3736
+ isOneToOne: false;
3737
+ isSetofReturn: true;
3738
+ };
3739
+ };
3360
3740
  get_account_removal_date: {
3361
3741
  Args: never;
3362
3742
  Returns: string;
@@ -3458,6 +3838,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3458
3838
  bandwidth: number;
3459
3839
  build_time_unit: number;
3460
3840
  mau: number;
3841
+ native_build_concurrency: number;
3461
3842
  storage: number;
3462
3843
  }[];
3463
3844
  };
@@ -3534,6 +3915,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3534
3915
  };
3535
3916
  Returns: string;
3536
3917
  };
3918
+ get_identity_for_apikey_creation: {
3919
+ Args: never;
3920
+ Returns: string;
3921
+ };
3537
3922
  get_identity_org_allowed: {
3538
3923
  Args: {
3539
3924
  keymode: Database["public"]["Enums"]["key_mode"][];
@@ -3599,15 +3984,51 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3599
3984
  created_at: string;
3600
3985
  expires_at: string;
3601
3986
  id: number;
3602
- limited_to_apps: string[];
3603
- limited_to_orgs: string[];
3604
- mode: Database["public"]["Enums"]["key_mode"];
3605
3987
  name: string;
3606
3988
  owner_email: string;
3607
3989
  rbac_id: string;
3608
3990
  user_id: string;
3609
3991
  }[];
3610
3992
  };
3993
+ get_org_apps_with_last_upload: {
3994
+ Args: {
3995
+ p_limit?: number;
3996
+ p_offset?: number;
3997
+ p_org_id: string;
3998
+ p_search?: string;
3999
+ p_sort_by?: string;
4000
+ p_sort_desc?: boolean;
4001
+ };
4002
+ Returns: {
4003
+ allow_device_custom_id: boolean;
4004
+ allow_preview: boolean;
4005
+ android_store_url: string;
4006
+ app_id: string;
4007
+ build_timeout_seconds: number;
4008
+ build_timeout_updated_at: string;
4009
+ channel_device_count: number;
4010
+ created_at: string;
4011
+ default_upload_channel: string;
4012
+ existing_app: boolean;
4013
+ expose_metadata: boolean;
4014
+ icon_url: string;
4015
+ id: string;
4016
+ ios_store_url: string;
4017
+ last_upload_at: string;
4018
+ last_version: string;
4019
+ manifest_bundle_count: number;
4020
+ name: string;
4021
+ need_onboarding: boolean;
4022
+ owner_org: string;
4023
+ retention: number;
4024
+ stats_refresh_requested_at: string;
4025
+ stats_updated_at: string;
4026
+ total_count: number;
4027
+ transfer_history: import("./types/supabase.types").Json[];
4028
+ updated_at: string;
4029
+ user_id: string;
4030
+ }[];
4031
+ };
3611
4032
  get_org_build_time_unit: {
3612
4033
  Args: {
3613
4034
  p_end_date: string;
@@ -3832,6 +4253,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3832
4253
  website: string;
3833
4254
  }[];
3834
4255
  };
4256
+ get_owner_org_by_app_id_internal: {
4257
+ Args: {
4258
+ p_app_id: string;
4259
+ };
4260
+ Returns: string;
4261
+ };
3835
4262
  get_password_policy_hash: {
3836
4263
  Args: {
3837
4264
  policy_config: import("./types/supabase.types").Json;
@@ -4126,6 +4553,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4126
4553
  orgid: string;
4127
4554
  };
4128
4555
  Returns: boolean;
4556
+ } | {
4557
+ Args: {
4558
+ actions: Database["public"]["Enums"]["action_type"][];
4559
+ appid: string;
4560
+ orgid: string;
4561
+ };
4562
+ Returns: boolean;
4129
4563
  };
4130
4564
  is_allowed_capgkey: {
4131
4565
  Args: {
@@ -4256,6 +4690,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4256
4690
  orgid: string;
4257
4691
  };
4258
4692
  Returns: boolean;
4693
+ } | {
4694
+ Args: {
4695
+ actions: Database["public"]["Enums"]["action_type"][];
4696
+ appid: string;
4697
+ orgid: string;
4698
+ };
4699
+ Returns: boolean;
4259
4700
  };
4260
4701
  is_paying_org: {
4261
4702
  Args: {
@@ -4408,6 +4849,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4408
4849
  };
4409
4850
  Returns: undefined;
4410
4851
  };
4852
+ process_queue_with_healthcheck: {
4853
+ Args: {
4854
+ batch_size: number;
4855
+ healthcheck_url: string;
4856
+ queue_names: string[];
4857
+ };
4858
+ Returns: undefined;
4859
+ };
4411
4860
  process_stats_email_monthly: {
4412
4861
  Args: never;
4413
4862
  Returns: undefined;
@@ -4534,6 +4983,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4534
4983
  };
4535
4984
  Returns: import("./types/supabase.types").Json;
4536
4985
  };
4986
+ rbac_org_role_for_legacy_right: {
4987
+ Args: {
4988
+ legacy_right: Database["public"]["Enums"]["user_min_right"];
4989
+ };
4990
+ Returns: string;
4991
+ };
4537
4992
  rbac_perm_app_build_native: {
4538
4993
  Args: never;
4539
4994
  Returns: string;
@@ -4638,6 +5093,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4638
5093
  Args: never;
4639
5094
  Returns: string;
4640
5095
  };
5096
+ rbac_perm_org_create: {
5097
+ Args: never;
5098
+ Returns: string;
5099
+ };
4641
5100
  rbac_perm_org_create_app: {
4642
5101
  Args: never;
4643
5102
  Returns: string;
@@ -4789,6 +5248,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4789
5248
  Args: never;
4790
5249
  Returns: Database["public"]["Enums"]["user_min_right"];
4791
5250
  };
5251
+ rbac_role_apikey_org_reader: {
5252
+ Args: never;
5253
+ Returns: string;
5254
+ };
4792
5255
  rbac_role_app_admin: {
4793
5256
  Args: never;
4794
5257
  Returns: string;
@@ -4891,6 +5354,19 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4891
5354
  mau: number;
4892
5355
  }[];
4893
5356
  };
5357
+ read_native_version_usage: {
5358
+ Args: {
5359
+ p_app_id: string;
5360
+ p_period_end: string;
5361
+ p_period_start: string;
5362
+ };
5363
+ Returns: {
5364
+ date: string;
5365
+ devices: number;
5366
+ platform: string;
5367
+ version_build: string;
5368
+ }[];
5369
+ };
4894
5370
  read_storage_usage: {
4895
5371
  Args: {
4896
5372
  p_app_id: string;
@@ -4936,6 +5412,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4936
5412
  };
4937
5413
  Returns: string;
4938
5414
  };
5415
+ refresh_app_rollups_after_demo_reset: {
5416
+ Args: {
5417
+ p_app_id: string;
5418
+ p_app_uuid: string;
5419
+ p_owner_org: string;
5420
+ };
5421
+ Returns: undefined;
5422
+ };
4939
5423
  refresh_orgs_has_usage_credits: {
4940
5424
  Args: never;
4941
5425
  Returns: undefined;
@@ -4950,9 +5434,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4950
5434
  id: number;
4951
5435
  key: string | null;
4952
5436
  key_hash: string | null;
4953
- limited_to_apps: string[] | null;
4954
- limited_to_orgs: string[] | null;
4955
- mode: Database["public"]["Enums"]["key_mode"];
4956
5437
  name: string;
4957
5438
  rbac_id: string;
4958
5439
  updated_at: string | null;
@@ -4976,9 +5457,6 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
4976
5457
  id: number;
4977
5458
  key: string | null;
4978
5459
  key_hash: string | null;
4979
- limited_to_apps: string[] | null;
4980
- limited_to_orgs: string[] | null;
4981
- mode: Database["public"]["Enums"]["key_mode"];
4982
5460
  name: string;
4983
5461
  rbac_id: string;
4984
5462
  updated_at: string | null;
@@ -5067,6 +5545,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5067
5545
  };
5068
5546
  Returns: string;
5069
5547
  };
5548
+ reset_onboarding_demo_app_data: {
5549
+ Args: {
5550
+ p_app_uuid: string;
5551
+ };
5552
+ Returns: undefined;
5553
+ };
5070
5554
  restore_deleted_account: {
5071
5555
  Args: never;
5072
5556
  Returns: undefined;
@@ -5160,6 +5644,16 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5160
5644
  Args: never;
5161
5645
  Returns: number;
5162
5646
  };
5647
+ track_onboarding_demo_data: {
5648
+ Args: {
5649
+ p_app_id: string;
5650
+ p_owner_org: string;
5651
+ p_relation_name: string;
5652
+ p_row_keys: string[];
5653
+ p_seed_id: string;
5654
+ };
5655
+ Returns: undefined;
5656
+ };
5163
5657
  transfer_app: {
5164
5658
  Args: {
5165
5659
  p_app_id: string;
@@ -5215,6 +5709,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5215
5709
  };
5216
5710
  Returns: boolean;
5217
5711
  };
5712
+ usage_credit_readable_org_ids: {
5713
+ Args: never;
5714
+ Returns: string[];
5715
+ };
5218
5716
  user_has_app_update_user_roles: {
5219
5717
  Args: {
5220
5718
  p_app_id: string;
@@ -5256,7 +5754,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5256
5754
  disable_update: "major" | "minor" | "patch" | "version_number" | "none";
5257
5755
  key_mode: "read" | "write" | "all" | "upload";
5258
5756
  platform_os: "ios" | "android" | "electron";
5259
- 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";
5757
+ 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";
5260
5758
  stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
5261
5759
  user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
5262
5760
  user_role: "read" | "upload" | "write" | "admin";
@@ -5295,7 +5793,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
5295
5793
  };
5296
5794
  };
5297
5795
  }, {
5298
- PostgrestVersion: "14.1";
5796
+ PostgrestVersion: "14.5";
5299
5797
  }>>;
5300
5798
  export declare function isPayingOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<boolean>;
5301
5799
  export declare function isTrialOrg(supabase: SupabaseClient<Database>, orgId: string): Promise<number>;
@@ -5325,10 +5823,11 @@ export declare function findSavedKey(quiet?: boolean): string;
5325
5823
  export declare function getContentType(filename: string): string;
5326
5824
  export declare function findProjectType(options?: {
5327
5825
  quiet?: boolean;
5328
- }): Promise<"unknown" | "angular-ts" | "angular-js" | "nuxtjs-ts" | "nuxtjs-js" | "nextjs-ts" | "nextjs-js" | "sveltekit-ts" | "sveltekit-js" | "svelte-ts" | "svelte-js" | "vue-ts" | "vue-js" | "react-ts" | "react-js">;
5329
- export declare function findMainFileForProjectType(projectType: string, isTypeScript: boolean): string | null;
5826
+ packageJsonPath?: string;
5827
+ }): Promise<string>;
5828
+ export declare function findMainFileForProjectType(projectType: string, isTypeScript: boolean, rootDir?: string): string | null;
5330
5829
  export declare function findBuildCommandForProjectType(projectType: string): Promise<"build" | "generate">;
5331
- export declare function findMainFile(silent?: boolean): Promise<string>;
5830
+ export declare function findMainFile(silent?: boolean, rootDir?: string): Promise<string>;
5332
5831
  export declare function updateOrCreateVersion(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['app_versions']['Insert']): Promise<import("@supabase/supabase-js").PostgrestSingleResponse<null>>;
5333
5832
  export declare function uploadUrl(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<string>;
5334
5833
  export declare const BROTLI_MIN_UPDATER_VERSION_V5 = "5.10.0";