@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.
@@ -3,10 +3,77 @@ export type Json = string | number | boolean | null | {
3
3
  } | Json[];
4
4
  export type Database = {
5
5
  __InternalSupabase: {
6
- PostgrestVersion: "14.1";
6
+ PostgrestVersion: "14.5";
7
+ };
8
+ graphql_public: {
9
+ Tables: {
10
+ [_ in never]: never;
11
+ };
12
+ Views: {
13
+ [_ in never]: never;
14
+ };
15
+ Functions: {
16
+ graphql: {
17
+ Args: {
18
+ extensions?: Json;
19
+ operationName?: string;
20
+ query?: string;
21
+ variables?: Json;
22
+ };
23
+ Returns: Json;
24
+ };
25
+ };
26
+ Enums: {
27
+ [_ in never]: never;
28
+ };
29
+ CompositeTypes: {
30
+ [_ in never]: never;
31
+ };
7
32
  };
8
33
  public: {
9
34
  Tables: {
35
+ apikey_global_permissions: {
36
+ Row: {
37
+ apikey_rbac_id: string;
38
+ created_at: string;
39
+ granted_by: string | null;
40
+ id: number;
41
+ permission_key: string;
42
+ reason: string | null;
43
+ };
44
+ Insert: {
45
+ apikey_rbac_id: string;
46
+ created_at?: string;
47
+ granted_by?: string | null;
48
+ id?: number;
49
+ permission_key: string;
50
+ reason?: string | null;
51
+ };
52
+ Update: {
53
+ apikey_rbac_id?: string;
54
+ created_at?: string;
55
+ granted_by?: string | null;
56
+ id?: number;
57
+ permission_key?: string;
58
+ reason?: string | null;
59
+ };
60
+ Relationships: [
61
+ {
62
+ foreignKeyName: "apikey_global_permissions_apikey_rbac_id_fkey";
63
+ columns: ["apikey_rbac_id"];
64
+ isOneToOne: false;
65
+ referencedRelation: "apikeys";
66
+ referencedColumns: ["rbac_id"];
67
+ },
68
+ {
69
+ foreignKeyName: "apikey_global_permissions_granted_by_fkey";
70
+ columns: ["granted_by"];
71
+ isOneToOne: false;
72
+ referencedRelation: "users";
73
+ referencedColumns: ["id"];
74
+ }
75
+ ];
76
+ };
10
77
  apikeys: {
11
78
  Row: {
12
79
  created_at: string | null;
@@ -14,9 +81,6 @@ export type Database = {
14
81
  id: number;
15
82
  key: string | null;
16
83
  key_hash: string | null;
17
- limited_to_apps: string[] | null;
18
- limited_to_orgs: string[] | null;
19
- mode: Database["public"]["Enums"]["key_mode"];
20
84
  name: string;
21
85
  rbac_id: string;
22
86
  updated_at: string | null;
@@ -28,9 +92,6 @@ export type Database = {
28
92
  id?: number;
29
93
  key?: string | null;
30
94
  key_hash?: string | null;
31
- limited_to_apps?: string[] | null;
32
- limited_to_orgs?: string[] | null;
33
- mode: Database["public"]["Enums"]["key_mode"];
34
95
  name: string;
35
96
  rbac_id?: string;
36
97
  updated_at?: string | null;
@@ -42,9 +103,6 @@ export type Database = {
42
103
  id?: number;
43
104
  key?: string | null;
44
105
  key_hash?: string | null;
45
- limited_to_apps?: string[] | null;
46
- limited_to_orgs?: string[] | null;
47
- mode?: Database["public"]["Enums"]["key_mode"];
48
106
  name?: string;
49
107
  rbac_id?: string;
50
108
  updated_at?: string | null;
@@ -390,6 +448,36 @@ export type Database = {
390
448
  }
391
449
  ];
392
450
  };
451
+ backfill_progress: {
452
+ Row: {
453
+ created_at: string;
454
+ cutover_at: string;
455
+ job_name: string;
456
+ last_processed_id: number | null;
457
+ last_processed_occurred_at: string | null;
458
+ scope_key: string;
459
+ updated_at: string;
460
+ };
461
+ Insert: {
462
+ created_at?: string;
463
+ cutover_at: string;
464
+ job_name: string;
465
+ last_processed_id?: number | null;
466
+ last_processed_occurred_at?: string | null;
467
+ scope_key: string;
468
+ updated_at?: string;
469
+ };
470
+ Update: {
471
+ created_at?: string;
472
+ cutover_at?: string;
473
+ job_name?: string;
474
+ last_processed_id?: number | null;
475
+ last_processed_occurred_at?: string | null;
476
+ scope_key?: string;
477
+ updated_at?: string;
478
+ };
479
+ Relationships: [];
480
+ };
393
481
  bandwidth_usage: {
394
482
  Row: {
395
483
  app_id: string;
@@ -467,6 +555,7 @@ export type Database = {
467
555
  };
468
556
  build_requests: {
469
557
  Row: {
558
+ ai_analyzed: boolean;
470
559
  app_id: string;
471
560
  build_config: Json | null;
472
561
  build_mode: string;
@@ -486,6 +575,7 @@ export type Database = {
486
575
  upload_url: string;
487
576
  };
488
577
  Insert: {
578
+ ai_analyzed?: boolean;
489
579
  app_id: string;
490
580
  build_config?: Json | null;
491
581
  build_mode?: string;
@@ -505,6 +595,7 @@ export type Database = {
505
595
  upload_url: string;
506
596
  };
507
597
  Update: {
598
+ ai_analyzed?: boolean;
508
599
  app_id?: string;
509
600
  build_config?: Json | null;
510
601
  build_mode?: string;
@@ -772,12 +863,91 @@ export type Database = {
772
863
  }
773
864
  ];
774
865
  };
866
+ compatibility_events: {
867
+ Row: {
868
+ app_id: string;
869
+ change_occurred_at: string;
870
+ channel_id: number | null;
871
+ channel_name: string;
872
+ created_at: string;
873
+ current_version_id: number | null;
874
+ current_version_name: string;
875
+ id: number;
876
+ offenders: Json;
877
+ org_id: string;
878
+ platform: string;
879
+ previous_version_id: number | null;
880
+ previous_version_name: string;
881
+ resolution_kind: string | null;
882
+ resolution_note: string | null;
883
+ resolved_at: string | null;
884
+ resolved_by: string | null;
885
+ source: string;
886
+ };
887
+ Insert: {
888
+ app_id: string;
889
+ change_occurred_at?: string;
890
+ channel_id?: number | null;
891
+ channel_name: string;
892
+ created_at?: string;
893
+ current_version_id?: number | null;
894
+ current_version_name: string;
895
+ id?: never;
896
+ offenders?: Json;
897
+ org_id: string;
898
+ platform: string;
899
+ previous_version_id?: number | null;
900
+ previous_version_name: string;
901
+ resolution_kind?: string | null;
902
+ resolution_note?: string | null;
903
+ resolved_at?: string | null;
904
+ resolved_by?: string | null;
905
+ source: string;
906
+ };
907
+ Update: {
908
+ app_id?: string;
909
+ change_occurred_at?: string;
910
+ channel_id?: number | null;
911
+ channel_name?: string;
912
+ created_at?: string;
913
+ current_version_id?: number | null;
914
+ current_version_name?: string;
915
+ id?: never;
916
+ offenders?: Json;
917
+ org_id?: string;
918
+ platform?: string;
919
+ previous_version_id?: number | null;
920
+ previous_version_name?: string;
921
+ resolution_kind?: string | null;
922
+ resolution_note?: string | null;
923
+ resolved_at?: string | null;
924
+ resolved_by?: string | null;
925
+ source?: string;
926
+ };
927
+ Relationships: [
928
+ {
929
+ foreignKeyName: "compatibility_events_app_id_fkey";
930
+ columns: ["app_id"];
931
+ isOneToOne: false;
932
+ referencedRelation: "apps";
933
+ referencedColumns: ["app_id"];
934
+ },
935
+ {
936
+ foreignKeyName: "compatibility_events_org_id_fkey";
937
+ columns: ["org_id"];
938
+ isOneToOne: false;
939
+ referencedRelation: "orgs";
940
+ referencedColumns: ["id"];
941
+ }
942
+ ];
943
+ };
775
944
  cron_tasks: {
776
945
  Row: {
777
946
  batch_size: number | null;
778
947
  created_at: string;
779
948
  description: string | null;
780
949
  enabled: boolean;
950
+ healthcheck_url: string | null;
781
951
  hour_interval: number | null;
782
952
  id: number;
783
953
  minute_interval: number | null;
@@ -798,6 +968,7 @@ export type Database = {
798
968
  created_at?: string;
799
969
  description?: string | null;
800
970
  enabled?: boolean;
971
+ healthcheck_url?: string | null;
801
972
  hour_interval?: number | null;
802
973
  id?: number;
803
974
  minute_interval?: number | null;
@@ -818,6 +989,7 @@ export type Database = {
818
989
  created_at?: string;
819
990
  description?: string | null;
820
991
  enabled?: boolean;
992
+ healthcheck_url?: string | null;
821
993
  hour_interval?: number | null;
822
994
  id?: number;
823
995
  minute_interval?: number | null;
@@ -909,7 +1081,16 @@ export type Database = {
909
1081
  daily_revenue_metrics: {
910
1082
  Row: {
911
1083
  churn_mrr: number;
1084
+ churn_reason: string | null;
1085
+ churn_mrr_enterprise: number;
1086
+ churn_mrr_maker: number;
1087
+ churn_mrr_solo: number;
1088
+ churn_mrr_team: number;
912
1089
  contraction_mrr: number;
1090
+ contraction_mrr_enterprise: number;
1091
+ contraction_mrr_maker: number;
1092
+ contraction_mrr_solo: number;
1093
+ contraction_mrr_team: number;
913
1094
  created_at: string;
914
1095
  customer_id: string;
915
1096
  date_id: string;
@@ -920,7 +1101,16 @@ export type Database = {
920
1101
  };
921
1102
  Insert: {
922
1103
  churn_mrr?: number;
1104
+ churn_reason?: string | null;
1105
+ churn_mrr_enterprise?: number;
1106
+ churn_mrr_maker?: number;
1107
+ churn_mrr_solo?: number;
1108
+ churn_mrr_team?: number;
923
1109
  contraction_mrr?: number;
1110
+ contraction_mrr_enterprise?: number;
1111
+ contraction_mrr_maker?: number;
1112
+ contraction_mrr_solo?: number;
1113
+ contraction_mrr_team?: number;
924
1114
  created_at?: string;
925
1115
  customer_id: string;
926
1116
  date_id: string;
@@ -931,7 +1121,16 @@ export type Database = {
931
1121
  };
932
1122
  Update: {
933
1123
  churn_mrr?: number;
1124
+ churn_reason?: string | null;
1125
+ churn_mrr_enterprise?: number;
1126
+ churn_mrr_maker?: number;
1127
+ churn_mrr_solo?: number;
1128
+ churn_mrr_team?: number;
934
1129
  contraction_mrr?: number;
1130
+ contraction_mrr_enterprise?: number;
1131
+ contraction_mrr_maker?: number;
1132
+ contraction_mrr_solo?: number;
1133
+ contraction_mrr_team?: number;
935
1134
  created_at?: string;
936
1135
  customer_id?: string;
937
1136
  date_id?: string;
@@ -963,6 +1162,48 @@ export type Database = {
963
1162
  };
964
1163
  Relationships: [];
965
1164
  };
1165
+ daily_storage_hourly: {
1166
+ Row: {
1167
+ app_id: string;
1168
+ created_at: string;
1169
+ date: string;
1170
+ owner_org: string;
1171
+ storage_byte_hours: number;
1172
+ updated_at: string;
1173
+ };
1174
+ Insert: {
1175
+ app_id: string;
1176
+ created_at?: string;
1177
+ date: string;
1178
+ owner_org: string;
1179
+ storage_byte_hours?: number;
1180
+ updated_at?: string;
1181
+ };
1182
+ Update: {
1183
+ app_id?: string;
1184
+ created_at?: string;
1185
+ date?: string;
1186
+ owner_org?: string;
1187
+ storage_byte_hours?: number;
1188
+ updated_at?: string;
1189
+ };
1190
+ Relationships: [
1191
+ {
1192
+ foreignKeyName: "daily_storage_hourly_app_id_fkey";
1193
+ columns: ["app_id"];
1194
+ isOneToOne: false;
1195
+ referencedRelation: "apps";
1196
+ referencedColumns: ["app_id"];
1197
+ },
1198
+ {
1199
+ foreignKeyName: "daily_storage_hourly_owner_org_fkey";
1200
+ columns: ["owner_org"];
1201
+ isOneToOne: false;
1202
+ referencedRelation: "orgs";
1203
+ referencedColumns: ["id"];
1204
+ }
1205
+ ];
1206
+ };
966
1207
  daily_version: {
967
1208
  Row: {
968
1209
  app_id: string;
@@ -1112,21 +1353,27 @@ export type Database = {
1112
1353
  device_id: string;
1113
1354
  id: number;
1114
1355
  org_id: string;
1356
+ platform: string | null;
1115
1357
  timestamp: string;
1358
+ version_build: string | null;
1116
1359
  };
1117
1360
  Insert: {
1118
1361
  app_id: string;
1119
1362
  device_id: string;
1120
1363
  id?: number;
1121
1364
  org_id: string;
1365
+ platform?: string | null;
1122
1366
  timestamp?: string;
1367
+ version_build?: string | null;
1123
1368
  };
1124
1369
  Update: {
1125
1370
  app_id?: string;
1126
1371
  device_id?: string;
1127
1372
  id?: number;
1128
1373
  org_id?: string;
1374
+ platform?: string | null;
1129
1375
  timestamp?: string;
1376
+ version_build?: string | null;
1130
1377
  };
1131
1378
  Relationships: [];
1132
1379
  };
@@ -1188,12 +1435,14 @@ export type Database = {
1188
1435
  Row: {
1189
1436
  apps: number;
1190
1437
  apps_active: number | null;
1438
+ average_ltv: number;
1191
1439
  build_avg_seconds_day_android: number;
1192
1440
  build_avg_seconds_day_ios: number;
1193
1441
  build_count_day_android: number;
1194
1442
  build_count_day_ios: number;
1195
1443
  build_total_seconds_day_android: number;
1196
1444
  build_total_seconds_day_ios: number;
1445
+ builder_active_paying_clients_60d: number;
1197
1446
  builds_android: number | null;
1198
1447
  builds_ios: number | null;
1199
1448
  builds_last_month: number | null;
@@ -1206,6 +1455,10 @@ export type Database = {
1206
1455
  bundle_storage_gb: number;
1207
1456
  canceled_orgs: number;
1208
1457
  churn_revenue: number;
1458
+ churn_revenue_enterprise: number;
1459
+ churn_revenue_maker: number;
1460
+ churn_revenue_solo: number;
1461
+ churn_revenue_team: number;
1209
1462
  created_at: string | null;
1210
1463
  credits_bought: number;
1211
1464
  credits_consumed: number;
@@ -1214,9 +1467,13 @@ export type Database = {
1214
1467
  devices_last_month: number | null;
1215
1468
  devices_last_month_android: number | null;
1216
1469
  devices_last_month_ios: number | null;
1470
+ live_updates_active_paying_clients_60d: number;
1471
+ longest_ltv: number;
1217
1472
  mrr: number;
1218
1473
  need_upgrade: number | null;
1219
1474
  new_paying_orgs: number;
1475
+ past_due_orgs: number;
1476
+ past_due_orgs_average_days: number;
1220
1477
  not_paying: number | null;
1221
1478
  nrr: number;
1222
1479
  onboarded: number | null;
@@ -1225,24 +1482,31 @@ export type Database = {
1225
1482
  paying_monthly: number | null;
1226
1483
  paying_yearly: number | null;
1227
1484
  plan_enterprise: number | null;
1485
+ plan_enterprise_conversion_rate: number;
1228
1486
  plan_enterprise_monthly: number;
1229
1487
  plan_enterprise_yearly: number;
1230
1488
  plan_maker: number | null;
1489
+ plan_maker_conversion_rate: number;
1231
1490
  plan_maker_monthly: number;
1232
1491
  plan_maker_yearly: number;
1233
1492
  plan_solo: number | null;
1493
+ plan_solo_conversion_rate: number;
1234
1494
  plan_solo_monthly: number;
1235
1495
  plan_solo_yearly: number;
1236
1496
  plan_team: number | null;
1497
+ plan_team_conversion_rate: number;
1237
1498
  plan_team_monthly: number;
1238
1499
  plan_team_yearly: number;
1500
+ plan_total_conversion_rate: number;
1239
1501
  plugin_major_breakdown: Json;
1240
1502
  plugin_version_breakdown: Json;
1503
+ plugin_version_ladder: Json;
1241
1504
  registers_today: number;
1242
1505
  revenue_enterprise: number;
1243
1506
  revenue_maker: number;
1244
1507
  revenue_solo: number;
1245
1508
  revenue_team: number;
1509
+ shortest_ltv: number;
1246
1510
  stars: number;
1247
1511
  success_rate: number | null;
1248
1512
  total_revenue: number;
@@ -1251,18 +1515,22 @@ export type Database = {
1251
1515
  updates_external: number | null;
1252
1516
  updates_last_month: number | null;
1253
1517
  upgraded_orgs: number;
1518
+ trial_extended_orgs: number;
1519
+ trial_extended_subscribed_orgs: number;
1254
1520
  users: number | null;
1255
1521
  users_active: number | null;
1256
1522
  };
1257
1523
  Insert: {
1258
1524
  apps: number;
1259
1525
  apps_active?: number | null;
1526
+ average_ltv?: number;
1260
1527
  build_avg_seconds_day_android?: number;
1261
1528
  build_avg_seconds_day_ios?: number;
1262
1529
  build_count_day_android?: number;
1263
1530
  build_count_day_ios?: number;
1264
1531
  build_total_seconds_day_android?: number;
1265
1532
  build_total_seconds_day_ios?: number;
1533
+ builder_active_paying_clients_60d?: number;
1266
1534
  builds_android?: number | null;
1267
1535
  builds_ios?: number | null;
1268
1536
  builds_last_month?: number | null;
@@ -1275,6 +1543,10 @@ export type Database = {
1275
1543
  bundle_storage_gb?: number;
1276
1544
  canceled_orgs?: number;
1277
1545
  churn_revenue?: number;
1546
+ churn_revenue_enterprise?: number;
1547
+ churn_revenue_maker?: number;
1548
+ churn_revenue_solo?: number;
1549
+ churn_revenue_team?: number;
1278
1550
  created_at?: string | null;
1279
1551
  credits_bought?: number;
1280
1552
  credits_consumed?: number;
@@ -1283,9 +1555,13 @@ export type Database = {
1283
1555
  devices_last_month?: number | null;
1284
1556
  devices_last_month_android?: number | null;
1285
1557
  devices_last_month_ios?: number | null;
1558
+ live_updates_active_paying_clients_60d?: number;
1559
+ longest_ltv?: number;
1286
1560
  mrr?: number;
1287
1561
  need_upgrade?: number | null;
1288
1562
  new_paying_orgs?: number;
1563
+ past_due_orgs?: number;
1564
+ past_due_orgs_average_days?: number;
1289
1565
  not_paying?: number | null;
1290
1566
  nrr?: number;
1291
1567
  onboarded?: number | null;
@@ -1294,24 +1570,31 @@ export type Database = {
1294
1570
  paying_monthly?: number | null;
1295
1571
  paying_yearly?: number | null;
1296
1572
  plan_enterprise?: number | null;
1573
+ plan_enterprise_conversion_rate?: number;
1297
1574
  plan_enterprise_monthly?: number;
1298
1575
  plan_enterprise_yearly?: number;
1299
1576
  plan_maker?: number | null;
1577
+ plan_maker_conversion_rate?: number;
1300
1578
  plan_maker_monthly?: number;
1301
1579
  plan_maker_yearly?: number;
1302
1580
  plan_solo?: number | null;
1581
+ plan_solo_conversion_rate?: number;
1303
1582
  plan_solo_monthly?: number;
1304
1583
  plan_solo_yearly?: number;
1305
1584
  plan_team?: number | null;
1585
+ plan_team_conversion_rate?: number;
1306
1586
  plan_team_monthly?: number;
1307
1587
  plan_team_yearly?: number;
1588
+ plan_total_conversion_rate?: number;
1308
1589
  plugin_major_breakdown?: Json;
1309
1590
  plugin_version_breakdown?: Json;
1591
+ plugin_version_ladder?: Json;
1310
1592
  registers_today?: number;
1311
1593
  revenue_enterprise?: number;
1312
1594
  revenue_maker?: number;
1313
1595
  revenue_solo?: number;
1314
1596
  revenue_team?: number;
1597
+ shortest_ltv?: number;
1315
1598
  stars: number;
1316
1599
  success_rate?: number | null;
1317
1600
  total_revenue?: number;
@@ -1320,18 +1603,22 @@ export type Database = {
1320
1603
  updates_external?: number | null;
1321
1604
  updates_last_month?: number | null;
1322
1605
  upgraded_orgs?: number;
1606
+ trial_extended_orgs?: number;
1607
+ trial_extended_subscribed_orgs?: number;
1323
1608
  users?: number | null;
1324
1609
  users_active?: number | null;
1325
1610
  };
1326
1611
  Update: {
1327
1612
  apps?: number;
1328
1613
  apps_active?: number | null;
1614
+ average_ltv?: number;
1329
1615
  build_avg_seconds_day_android?: number;
1330
1616
  build_avg_seconds_day_ios?: number;
1331
1617
  build_count_day_android?: number;
1332
1618
  build_count_day_ios?: number;
1333
1619
  build_total_seconds_day_android?: number;
1334
1620
  build_total_seconds_day_ios?: number;
1621
+ builder_active_paying_clients_60d?: number;
1335
1622
  builds_android?: number | null;
1336
1623
  builds_ios?: number | null;
1337
1624
  builds_last_month?: number | null;
@@ -1344,6 +1631,10 @@ export type Database = {
1344
1631
  bundle_storage_gb?: number;
1345
1632
  canceled_orgs?: number;
1346
1633
  churn_revenue?: number;
1634
+ churn_revenue_enterprise?: number;
1635
+ churn_revenue_maker?: number;
1636
+ churn_revenue_solo?: number;
1637
+ churn_revenue_team?: number;
1347
1638
  created_at?: string | null;
1348
1639
  credits_bought?: number;
1349
1640
  credits_consumed?: number;
@@ -1352,9 +1643,13 @@ export type Database = {
1352
1643
  devices_last_month?: number | null;
1353
1644
  devices_last_month_android?: number | null;
1354
1645
  devices_last_month_ios?: number | null;
1646
+ live_updates_active_paying_clients_60d?: number;
1647
+ longest_ltv?: number;
1355
1648
  mrr?: number;
1356
1649
  need_upgrade?: number | null;
1357
1650
  new_paying_orgs?: number;
1651
+ past_due_orgs?: number;
1652
+ past_due_orgs_average_days?: number;
1358
1653
  not_paying?: number | null;
1359
1654
  nrr?: number;
1360
1655
  onboarded?: number | null;
@@ -1363,24 +1658,31 @@ export type Database = {
1363
1658
  paying_monthly?: number | null;
1364
1659
  paying_yearly?: number | null;
1365
1660
  plan_enterprise?: number | null;
1661
+ plan_enterprise_conversion_rate?: number;
1366
1662
  plan_enterprise_monthly?: number;
1367
1663
  plan_enterprise_yearly?: number;
1368
1664
  plan_maker?: number | null;
1665
+ plan_maker_conversion_rate?: number;
1369
1666
  plan_maker_monthly?: number;
1370
1667
  plan_maker_yearly?: number;
1371
1668
  plan_solo?: number | null;
1669
+ plan_solo_conversion_rate?: number;
1372
1670
  plan_solo_monthly?: number;
1373
1671
  plan_solo_yearly?: number;
1374
1672
  plan_team?: number | null;
1673
+ plan_team_conversion_rate?: number;
1375
1674
  plan_team_monthly?: number;
1376
1675
  plan_team_yearly?: number;
1676
+ plan_total_conversion_rate?: number;
1377
1677
  plugin_major_breakdown?: Json;
1378
1678
  plugin_version_breakdown?: Json;
1679
+ plugin_version_ladder?: Json;
1379
1680
  registers_today?: number;
1380
1681
  revenue_enterprise?: number;
1381
1682
  revenue_maker?: number;
1382
1683
  revenue_solo?: number;
1383
1684
  revenue_team?: number;
1685
+ shortest_ltv?: number;
1384
1686
  stars?: number;
1385
1687
  success_rate?: number | null;
1386
1688
  total_revenue?: number;
@@ -1389,6 +1691,8 @@ export type Database = {
1389
1691
  updates_external?: number | null;
1390
1692
  updates_last_month?: number | null;
1391
1693
  upgraded_orgs?: number;
1694
+ trial_extended_orgs?: number;
1695
+ trial_extended_subscribed_orgs?: number;
1392
1696
  users?: number | null;
1393
1697
  users_active?: number | null;
1394
1698
  };
@@ -1541,6 +1845,51 @@ export type Database = {
1541
1845
  }
1542
1846
  ];
1543
1847
  };
1848
+ onboarding_demo_data: {
1849
+ Row: {
1850
+ app_id: string;
1851
+ created_at: string;
1852
+ id: string;
1853
+ owner_org: string;
1854
+ relation_name: string;
1855
+ row_key: string;
1856
+ seed_id: string;
1857
+ };
1858
+ Insert: {
1859
+ app_id: string;
1860
+ created_at?: string;
1861
+ id?: string;
1862
+ owner_org: string;
1863
+ relation_name: string;
1864
+ row_key: string;
1865
+ seed_id: string;
1866
+ };
1867
+ Update: {
1868
+ app_id?: string;
1869
+ created_at?: string;
1870
+ id?: string;
1871
+ owner_org?: string;
1872
+ relation_name?: string;
1873
+ row_key?: string;
1874
+ seed_id?: string;
1875
+ };
1876
+ Relationships: [
1877
+ {
1878
+ foreignKeyName: "onboarding_demo_data_app_id_fkey";
1879
+ columns: ["app_id"];
1880
+ isOneToOne: false;
1881
+ referencedRelation: "apps";
1882
+ referencedColumns: ["app_id"];
1883
+ },
1884
+ {
1885
+ foreignKeyName: "onboarding_demo_data_owner_org_fkey";
1886
+ columns: ["owner_org"];
1887
+ isOneToOne: false;
1888
+ referencedRelation: "orgs";
1889
+ referencedColumns: ["id"];
1890
+ }
1891
+ ];
1892
+ };
1544
1893
  org_metrics_cache: {
1545
1894
  Row: {
1546
1895
  bandwidth: number;
@@ -1675,6 +2024,7 @@ export type Database = {
1675
2024
  management_email: string;
1676
2025
  max_apikey_expiration_days: number | null;
1677
2026
  name: string;
2027
+ onboarding: Json;
1678
2028
  password_policy_config: Json | null;
1679
2029
  require_apikey_expiration: boolean;
1680
2030
  required_encryption_key: string | null;
@@ -1699,6 +2049,7 @@ export type Database = {
1699
2049
  management_email: string;
1700
2050
  max_apikey_expiration_days?: number | null;
1701
2051
  name: string;
2052
+ onboarding?: Json;
1702
2053
  password_policy_config?: Json | null;
1703
2054
  require_apikey_expiration?: boolean;
1704
2055
  required_encryption_key?: string | null;
@@ -1723,6 +2074,7 @@ export type Database = {
1723
2074
  management_email?: string;
1724
2075
  max_apikey_expiration_days?: number | null;
1725
2076
  name?: string;
2077
+ onboarding?: Json;
1726
2078
  password_policy_config?: Json | null;
1727
2079
  require_apikey_expiration?: boolean;
1728
2080
  required_encryption_key?: string | null;
@@ -1795,6 +2147,7 @@ export type Database = {
1795
2147
  market_desc: string | null;
1796
2148
  mau: number;
1797
2149
  name: string;
2150
+ native_build_concurrency: number;
1798
2151
  price_m: number;
1799
2152
  price_m_id: string;
1800
2153
  price_y: number;
@@ -1813,6 +2166,7 @@ export type Database = {
1813
2166
  market_desc?: string | null;
1814
2167
  mau?: number;
1815
2168
  name?: string;
2169
+ native_build_concurrency?: number;
1816
2170
  price_m?: number;
1817
2171
  price_m_id: string;
1818
2172
  price_y?: number;
@@ -1831,6 +2185,7 @@ export type Database = {
1831
2185
  market_desc?: string | null;
1832
2186
  mau?: number;
1833
2187
  name?: string;
2188
+ native_build_concurrency?: number;
1834
2189
  price_m?: number;
1835
2190
  price_m_id?: string;
1836
2191
  price_y?: number;
@@ -2102,6 +2457,7 @@ export type Database = {
2102
2457
  created_at: string;
2103
2458
  device_id: string;
2104
2459
  id: number;
2460
+ metadata: Json | null;
2105
2461
  version_name: string;
2106
2462
  };
2107
2463
  Insert: {
@@ -2110,6 +2466,7 @@ export type Database = {
2110
2466
  created_at: string;
2111
2467
  device_id: string;
2112
2468
  id?: never;
2469
+ metadata?: Json | null;
2113
2470
  version_name?: string;
2114
2471
  };
2115
2472
  Update: {
@@ -2118,6 +2475,7 @@ export type Database = {
2118
2475
  created_at?: string;
2119
2476
  device_id?: string;
2120
2477
  id?: never;
2478
+ metadata?: Json | null;
2121
2479
  version_name?: string;
2122
2480
  };
2123
2481
  Relationships: [];
@@ -2151,12 +2509,14 @@ export type Database = {
2151
2509
  bandwidth_exceeded: boolean | null;
2152
2510
  build_time_exceeded: boolean | null;
2153
2511
  canceled_at: string | null;
2512
+ churn_reason: string | null;
2154
2513
  created_at: string;
2155
2514
  customer_country: string | null;
2156
2515
  customer_id: string;
2157
2516
  id: number;
2158
2517
  is_good_plan: boolean | null;
2159
2518
  last_stripe_event_at: string | null;
2519
+ past_due_at: string | null;
2160
2520
  mau_exceeded: boolean | null;
2161
2521
  paid_at: string | null;
2162
2522
  plan_calculated_at: string | null;
@@ -2176,12 +2536,14 @@ export type Database = {
2176
2536
  bandwidth_exceeded?: boolean | null;
2177
2537
  build_time_exceeded?: boolean | null;
2178
2538
  canceled_at?: string | null;
2539
+ churn_reason?: string | null;
2179
2540
  created_at?: string;
2180
2541
  customer_country?: string | null;
2181
2542
  customer_id: string;
2182
2543
  id?: number;
2183
2544
  is_good_plan?: boolean | null;
2184
2545
  last_stripe_event_at?: string | null;
2546
+ past_due_at?: string | null;
2185
2547
  mau_exceeded?: boolean | null;
2186
2548
  paid_at?: string | null;
2187
2549
  plan_calculated_at?: string | null;
@@ -2201,12 +2563,14 @@ export type Database = {
2201
2563
  bandwidth_exceeded?: boolean | null;
2202
2564
  build_time_exceeded?: boolean | null;
2203
2565
  canceled_at?: string | null;
2566
+ churn_reason?: string | null;
2204
2567
  created_at?: string;
2205
2568
  customer_country?: string | null;
2206
2569
  customer_id?: string;
2207
2570
  id?: number;
2208
2571
  is_good_plan?: boolean | null;
2209
2572
  last_stripe_event_at?: string | null;
2573
+ past_due_at?: string | null;
2210
2574
  mau_exceeded?: boolean | null;
2211
2575
  paid_at?: string | null;
2212
2576
  plan_calculated_at?: string | null;
@@ -2232,6 +2596,51 @@ export type Database = {
2232
2596
  }
2233
2597
  ];
2234
2598
  };
2599
+ trial_extension_events: {
2600
+ Row: {
2601
+ created_at: string;
2602
+ customer_id: string;
2603
+ extension_days: number;
2604
+ id: number;
2605
+ new_trial_at: string;
2606
+ org_id: string;
2607
+ previous_trial_at: string;
2608
+ };
2609
+ Insert: {
2610
+ created_at?: string;
2611
+ customer_id: string;
2612
+ extension_days: number;
2613
+ id?: number;
2614
+ new_trial_at: string;
2615
+ org_id: string;
2616
+ previous_trial_at: string;
2617
+ };
2618
+ Update: {
2619
+ created_at?: string;
2620
+ customer_id?: string;
2621
+ extension_days?: number;
2622
+ id?: number;
2623
+ new_trial_at?: string;
2624
+ org_id?: string;
2625
+ previous_trial_at?: string;
2626
+ };
2627
+ Relationships: [
2628
+ {
2629
+ foreignKeyName: "trial_extension_events_customer_id_fkey";
2630
+ columns: ["customer_id"];
2631
+ isOneToOne: false;
2632
+ referencedRelation: "stripe_info";
2633
+ referencedColumns: ["customer_id"];
2634
+ },
2635
+ {
2636
+ foreignKeyName: "trial_extension_events_org_id_fkey";
2637
+ columns: ["org_id"];
2638
+ isOneToOne: false;
2639
+ referencedRelation: "orgs";
2640
+ referencedColumns: ["id"];
2641
+ }
2642
+ ];
2643
+ };
2235
2644
  tmp_users: {
2236
2645
  Row: {
2237
2646
  cancelled_at: string | null;
@@ -2679,6 +3088,7 @@ export type Database = {
2679
3088
  audit_log_id: number | null;
2680
3089
  completed_at: string | null;
2681
3090
  created_at: string;
3091
+ delivery_version: string;
2682
3092
  duration_ms: number | null;
2683
3093
  event_type: string;
2684
3094
  id: string;
@@ -2697,6 +3107,7 @@ export type Database = {
2697
3107
  audit_log_id?: number | null;
2698
3108
  completed_at?: string | null;
2699
3109
  created_at?: string;
3110
+ delivery_version?: string;
2700
3111
  duration_ms?: number | null;
2701
3112
  event_type: string;
2702
3113
  id?: string;
@@ -2715,6 +3126,7 @@ export type Database = {
2715
3126
  audit_log_id?: number | null;
2716
3127
  completed_at?: string | null;
2717
3128
  created_at?: string;
3129
+ delivery_version?: string;
2718
3130
  duration_ms?: number | null;
2719
3131
  event_type?: string;
2720
3132
  id?: string;
@@ -2749,6 +3161,7 @@ export type Database = {
2749
3161
  Row: {
2750
3162
  created_at: string;
2751
3163
  created_by: string;
3164
+ delivery_version: string;
2752
3165
  enabled: boolean;
2753
3166
  events: string[];
2754
3167
  id: string;
@@ -2761,6 +3174,7 @@ export type Database = {
2761
3174
  Insert: {
2762
3175
  created_at?: string;
2763
3176
  created_by: string;
3177
+ delivery_version?: string;
2764
3178
  enabled?: boolean;
2765
3179
  events: string[];
2766
3180
  id?: string;
@@ -2773,6 +3187,7 @@ export type Database = {
2773
3187
  Update: {
2774
3188
  created_at?: string;
2775
3189
  created_by?: string;
3190
+ delivery_version?: string;
2776
3191
  enabled?: boolean;
2777
3192
  events?: string[];
2778
3193
  id?: string;
@@ -2846,6 +3261,47 @@ export type Database = {
2846
3261
  };
2847
3262
  Returns: string;
2848
3263
  };
3264
+ acknowledge_compatibility_event: {
3265
+ Args: {
3266
+ event_id: number;
3267
+ note: string;
3268
+ };
3269
+ Returns: undefined;
3270
+ };
3271
+ apikey_has_current_org_create_capability: {
3272
+ Args: {
3273
+ p_apikey_rbac_id: string;
3274
+ };
3275
+ Returns: boolean;
3276
+ };
3277
+ apikey_has_global_permission: {
3278
+ Args: {
3279
+ p_apikey: string;
3280
+ p_permission_key: string;
3281
+ };
3282
+ Returns: boolean;
3283
+ };
3284
+ apikey_permission_for_keymode: {
3285
+ Args: {
3286
+ keymode: Database["public"]["Enums"]["key_mode"][];
3287
+ scope_type: string;
3288
+ };
3289
+ Returns: string;
3290
+ };
3291
+ app_versions_has_app_permission: {
3292
+ Args: {
3293
+ p_apikey: string;
3294
+ p_app_id: string;
3295
+ p_min_right: Database["public"]["Enums"]["user_min_right"];
3296
+ p_owner_org: string;
3297
+ p_user_id: string;
3298
+ };
3299
+ Returns: boolean;
3300
+ };
3301
+ app_versions_readable_app_ids: {
3302
+ Args: never;
3303
+ Returns: string[];
3304
+ };
2849
3305
  apply_usage_overage: {
2850
3306
  Args: {
2851
3307
  p_billing_cycle_end: string;
@@ -3001,7 +3457,13 @@ export type Database = {
3001
3457
  Args: {
3002
3458
  appid: string;
3003
3459
  };
3004
- Returns: number | null;
3460
+ Returns: number;
3461
+ };
3462
+ claim_legacy_onboarding_demo_data: {
3463
+ Args: {
3464
+ p_app_uuid: string;
3465
+ };
3466
+ Returns: undefined;
3005
3467
  };
3006
3468
  cleanup_expired_apikeys: {
3007
3469
  Args: never;
@@ -3044,14 +3506,20 @@ export type Database = {
3044
3506
  p_app_uuid: string;
3045
3507
  };
3046
3508
  Returns: undefined;
3509
+ } | {
3510
+ Args: {
3511
+ p_app_uuid: string;
3512
+ p_preserve_app_version_id: number;
3513
+ };
3514
+ Returns: undefined;
3047
3515
  };
3048
3516
  cli_check_permission: {
3049
3517
  Args: {
3050
- apikey: string;
3518
+ apikey?: string;
3051
3519
  app_id?: string;
3052
3520
  channel_id?: number;
3053
3521
  org_id?: string;
3054
- permission_key: string;
3522
+ permission_key?: string;
3055
3523
  };
3056
3524
  Returns: boolean;
3057
3525
  };
@@ -3118,65 +3586,6 @@ export type Database = {
3118
3586
  wrong_key_count: number;
3119
3587
  }[];
3120
3588
  };
3121
- create_hashed_apikey: {
3122
- Args: {
3123
- p_expires_at: string;
3124
- p_limited_to_apps: string[];
3125
- p_limited_to_orgs: string[];
3126
- p_mode: Database["public"]["Enums"]["key_mode"];
3127
- p_name: string;
3128
- };
3129
- Returns: {
3130
- created_at: string | null;
3131
- expires_at: string | null;
3132
- id: number;
3133
- key: string | null;
3134
- key_hash: string | null;
3135
- limited_to_apps: string[] | null;
3136
- limited_to_orgs: string[] | null;
3137
- mode: Database["public"]["Enums"]["key_mode"];
3138
- name: string;
3139
- rbac_id: string;
3140
- updated_at: string | null;
3141
- user_id: string;
3142
- };
3143
- SetofOptions: {
3144
- from: "*";
3145
- to: "apikeys";
3146
- isOneToOne: true;
3147
- isSetofReturn: false;
3148
- };
3149
- };
3150
- create_hashed_apikey_for_user: {
3151
- Args: {
3152
- p_expires_at: string;
3153
- p_limited_to_apps: string[];
3154
- p_limited_to_orgs: string[];
3155
- p_mode: Database["public"]["Enums"]["key_mode"];
3156
- p_name: string;
3157
- p_user_id: string;
3158
- };
3159
- Returns: {
3160
- created_at: string | null;
3161
- expires_at: string | null;
3162
- id: number;
3163
- key: string | null;
3164
- key_hash: string | null;
3165
- limited_to_apps: string[] | null;
3166
- limited_to_orgs: string[] | null;
3167
- mode: Database["public"]["Enums"]["key_mode"];
3168
- name: string;
3169
- rbac_id: string;
3170
- updated_at: string | null;
3171
- user_id: string;
3172
- };
3173
- SetofOptions: {
3174
- from: "*";
3175
- to: "apikeys";
3176
- isOneToOne: true;
3177
- isSetofReturn: false;
3178
- };
3179
- };
3180
3589
  current_request_role: {
3181
3590
  Args: never;
3182
3591
  Returns: string;
@@ -3260,9 +3669,6 @@ export type Database = {
3260
3669
  id: number;
3261
3670
  key: string | null;
3262
3671
  key_hash: string | null;
3263
- limited_to_apps: string[] | null;
3264
- limited_to_orgs: string[] | null;
3265
- mode: Database["public"]["Enums"]["key_mode"];
3266
3672
  name: string;
3267
3673
  rbac_id: string;
3268
3674
  updated_at: string | null;
@@ -3295,6 +3701,44 @@ export type Database = {
3295
3701
  name: string;
3296
3702
  }[];
3297
3703
  };
3704
+ get_accessible_apps_for_apikey_v2: {
3705
+ Args: {
3706
+ apikey?: string;
3707
+ };
3708
+ Returns: {
3709
+ allow_device_custom_id: boolean;
3710
+ allow_preview: boolean;
3711
+ android_store_url: string | null;
3712
+ app_id: string;
3713
+ build_timeout_seconds: number;
3714
+ build_timeout_updated_at: string;
3715
+ channel_device_count: number;
3716
+ created_at: string | null;
3717
+ default_upload_channel: string;
3718
+ existing_app: boolean;
3719
+ expose_metadata: boolean;
3720
+ icon_url: string;
3721
+ id: string | null;
3722
+ ios_store_url: string | null;
3723
+ last_version: string | null;
3724
+ manifest_bundle_count: number;
3725
+ name: string | null;
3726
+ need_onboarding: boolean;
3727
+ owner_org: string;
3728
+ retention: number;
3729
+ stats_refresh_requested_at: string | null;
3730
+ stats_updated_at: string | null;
3731
+ transfer_history: Json[] | null;
3732
+ updated_at: string | null;
3733
+ user_id: string | null;
3734
+ }[];
3735
+ SetofOptions: {
3736
+ from: "*";
3737
+ to: "apps";
3738
+ isOneToOne: false;
3739
+ isSetofReturn: true;
3740
+ };
3741
+ };
3298
3742
  get_account_removal_date: {
3299
3743
  Args: never;
3300
3744
  Returns: string;
@@ -3396,6 +3840,7 @@ export type Database = {
3396
3840
  bandwidth: number;
3397
3841
  build_time_unit: number;
3398
3842
  mau: number;
3843
+ native_build_concurrency: number;
3399
3844
  storage: number;
3400
3845
  }[];
3401
3846
  };
@@ -3472,6 +3917,10 @@ export type Database = {
3472
3917
  };
3473
3918
  Returns: string;
3474
3919
  };
3920
+ get_identity_for_apikey_creation: {
3921
+ Args: never;
3922
+ Returns: string;
3923
+ };
3475
3924
  get_identity_org_allowed: {
3476
3925
  Args: {
3477
3926
  keymode: Database["public"]["Enums"]["key_mode"][];
@@ -3537,15 +3986,51 @@ export type Database = {
3537
3986
  created_at: string;
3538
3987
  expires_at: string;
3539
3988
  id: number;
3540
- limited_to_apps: string[];
3541
- limited_to_orgs: string[];
3542
- mode: Database["public"]["Enums"]["key_mode"];
3543
3989
  name: string;
3544
3990
  owner_email: string;
3545
3991
  rbac_id: string;
3546
3992
  user_id: string;
3547
3993
  }[];
3548
3994
  };
3995
+ get_org_apps_with_last_upload: {
3996
+ Args: {
3997
+ p_limit?: number;
3998
+ p_offset?: number;
3999
+ p_org_id: string;
4000
+ p_search?: string;
4001
+ p_sort_by?: string;
4002
+ p_sort_desc?: boolean;
4003
+ };
4004
+ Returns: {
4005
+ allow_device_custom_id: boolean;
4006
+ allow_preview: boolean;
4007
+ android_store_url: string;
4008
+ app_id: string;
4009
+ build_timeout_seconds: number;
4010
+ build_timeout_updated_at: string;
4011
+ channel_device_count: number;
4012
+ created_at: string;
4013
+ default_upload_channel: string;
4014
+ existing_app: boolean;
4015
+ expose_metadata: boolean;
4016
+ icon_url: string;
4017
+ id: string;
4018
+ ios_store_url: string;
4019
+ last_upload_at: string;
4020
+ last_version: string;
4021
+ manifest_bundle_count: number;
4022
+ name: string;
4023
+ need_onboarding: boolean;
4024
+ owner_org: string;
4025
+ retention: number;
4026
+ stats_refresh_requested_at: string;
4027
+ stats_updated_at: string;
4028
+ total_count: number;
4029
+ transfer_history: Json[];
4030
+ updated_at: string;
4031
+ user_id: string;
4032
+ }[];
4033
+ };
3549
4034
  get_org_build_time_unit: {
3550
4035
  Args: {
3551
4036
  p_end_date: string;
@@ -3770,6 +4255,12 @@ export type Database = {
3770
4255
  website: string;
3771
4256
  }[];
3772
4257
  };
4258
+ get_owner_org_by_app_id_internal: {
4259
+ Args: {
4260
+ p_app_id: string;
4261
+ };
4262
+ Returns: string;
4263
+ };
3773
4264
  get_password_policy_hash: {
3774
4265
  Args: {
3775
4266
  policy_config: Json;
@@ -4064,6 +4555,13 @@ export type Database = {
4064
4555
  orgid: string;
4065
4556
  };
4066
4557
  Returns: boolean;
4558
+ } | {
4559
+ Args: {
4560
+ actions: Database["public"]["Enums"]["action_type"][];
4561
+ appid: string;
4562
+ orgid: string;
4563
+ };
4564
+ Returns: boolean;
4067
4565
  };
4068
4566
  is_allowed_capgkey: {
4069
4567
  Args: {
@@ -4194,6 +4692,13 @@ export type Database = {
4194
4692
  orgid: string;
4195
4693
  };
4196
4694
  Returns: boolean;
4695
+ } | {
4696
+ Args: {
4697
+ actions: Database["public"]["Enums"]["action_type"][];
4698
+ appid: string;
4699
+ orgid: string;
4700
+ };
4701
+ Returns: boolean;
4197
4702
  };
4198
4703
  is_paying_org: {
4199
4704
  Args: {
@@ -4346,6 +4851,14 @@ export type Database = {
4346
4851
  };
4347
4852
  Returns: undefined;
4348
4853
  };
4854
+ process_queue_with_healthcheck: {
4855
+ Args: {
4856
+ batch_size: number;
4857
+ healthcheck_url: string;
4858
+ queue_names: string[];
4859
+ };
4860
+ Returns: undefined;
4861
+ };
4349
4862
  process_stats_email_monthly: {
4350
4863
  Args: never;
4351
4864
  Returns: undefined;
@@ -4472,6 +4985,12 @@ export type Database = {
4472
4985
  };
4473
4986
  Returns: Json;
4474
4987
  };
4988
+ rbac_org_role_for_legacy_right: {
4989
+ Args: {
4990
+ legacy_right: Database["public"]["Enums"]["user_min_right"];
4991
+ };
4992
+ Returns: string;
4993
+ };
4475
4994
  rbac_perm_app_build_native: {
4476
4995
  Args: never;
4477
4996
  Returns: string;
@@ -4576,6 +5095,10 @@ export type Database = {
4576
5095
  Args: never;
4577
5096
  Returns: string;
4578
5097
  };
5098
+ rbac_perm_org_create: {
5099
+ Args: never;
5100
+ Returns: string;
5101
+ };
4579
5102
  rbac_perm_org_create_app: {
4580
5103
  Args: never;
4581
5104
  Returns: string;
@@ -4727,6 +5250,10 @@ export type Database = {
4727
5250
  Args: never;
4728
5251
  Returns: Database["public"]["Enums"]["user_min_right"];
4729
5252
  };
5253
+ rbac_role_apikey_org_reader: {
5254
+ Args: never;
5255
+ Returns: string;
5256
+ };
4730
5257
  rbac_role_app_admin: {
4731
5258
  Args: never;
4732
5259
  Returns: string;
@@ -4829,6 +5356,19 @@ export type Database = {
4829
5356
  mau: number;
4830
5357
  }[];
4831
5358
  };
5359
+ read_native_version_usage: {
5360
+ Args: {
5361
+ p_app_id: string;
5362
+ p_period_end: string;
5363
+ p_period_start: string;
5364
+ };
5365
+ Returns: {
5366
+ date: string;
5367
+ devices: number;
5368
+ platform: string;
5369
+ version_build: string;
5370
+ }[];
5371
+ };
4832
5372
  read_storage_usage: {
4833
5373
  Args: {
4834
5374
  p_app_id: string;
@@ -4874,6 +5414,14 @@ export type Database = {
4874
5414
  };
4875
5415
  Returns: string;
4876
5416
  };
5417
+ refresh_app_rollups_after_demo_reset: {
5418
+ Args: {
5419
+ p_app_id: string;
5420
+ p_app_uuid: string;
5421
+ p_owner_org: string;
5422
+ };
5423
+ Returns: undefined;
5424
+ };
4877
5425
  refresh_orgs_has_usage_credits: {
4878
5426
  Args: never;
4879
5427
  Returns: undefined;
@@ -4888,9 +5436,6 @@ export type Database = {
4888
5436
  id: number;
4889
5437
  key: string | null;
4890
5438
  key_hash: string | null;
4891
- limited_to_apps: string[] | null;
4892
- limited_to_orgs: string[] | null;
4893
- mode: Database["public"]["Enums"]["key_mode"];
4894
5439
  name: string;
4895
5440
  rbac_id: string;
4896
5441
  updated_at: string | null;
@@ -4914,9 +5459,6 @@ export type Database = {
4914
5459
  id: number;
4915
5460
  key: string | null;
4916
5461
  key_hash: string | null;
4917
- limited_to_apps: string[] | null;
4918
- limited_to_orgs: string[] | null;
4919
- mode: Database["public"]["Enums"]["key_mode"];
4920
5462
  name: string;
4921
5463
  rbac_id: string;
4922
5464
  updated_at: string | null;
@@ -5005,6 +5547,12 @@ export type Database = {
5005
5547
  };
5006
5548
  Returns: string;
5007
5549
  };
5550
+ reset_onboarding_demo_app_data: {
5551
+ Args: {
5552
+ p_app_uuid: string;
5553
+ };
5554
+ Returns: undefined;
5555
+ };
5008
5556
  restore_deleted_account: {
5009
5557
  Args: never;
5010
5558
  Returns: undefined;
@@ -5098,6 +5646,16 @@ export type Database = {
5098
5646
  Args: never;
5099
5647
  Returns: number;
5100
5648
  };
5649
+ track_onboarding_demo_data: {
5650
+ Args: {
5651
+ p_app_id: string;
5652
+ p_owner_org: string;
5653
+ p_relation_name: string;
5654
+ p_row_keys: string[];
5655
+ p_seed_id: string;
5656
+ };
5657
+ Returns: undefined;
5658
+ };
5101
5659
  transfer_app: {
5102
5660
  Args: {
5103
5661
  p_app_id: string;
@@ -5153,6 +5711,10 @@ export type Database = {
5153
5711
  };
5154
5712
  Returns: boolean;
5155
5713
  };
5714
+ usage_credit_readable_org_ids: {
5715
+ Args: never;
5716
+ Returns: string[];
5717
+ };
5156
5718
  user_has_app_update_user_roles: {
5157
5719
  Args: {
5158
5720
  p_app_id: string;
@@ -5194,7 +5756,7 @@ export type Database = {
5194
5756
  disable_update: "major" | "minor" | "patch" | "version_number" | "none";
5195
5757
  key_mode: "read" | "write" | "all" | "upload";
5196
5758
  platform_os: "ios" | "android" | "electron";
5197
- 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";
5759
+ 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";
5198
5760
  stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
5199
5761
  user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";
5200
5762
  user_role: "read" | "upload" | "write" | "admin";
@@ -5284,6 +5846,9 @@ export type CompositeTypes<PublicCompositeTypeNameOrOptions extends keyof Defaul
5284
5846
  schema: keyof DatabaseWithoutInternals;
5285
5847
  } ? DatabaseWithoutInternals[PublicCompositeTypeNameOrOptions["schema"]]["CompositeTypes"][CompositeTypeName] : PublicCompositeTypeNameOrOptions extends keyof DefaultSchema["CompositeTypes"] ? DefaultSchema["CompositeTypes"][PublicCompositeTypeNameOrOptions] : never;
5286
5848
  export declare const Constants: {
5849
+ readonly graphql_public: {
5850
+ readonly Enums: {};
5851
+ };
5287
5852
  readonly public: {
5288
5853
  readonly Enums: {
5289
5854
  readonly action_type: readonly ["mau", "storage", "bandwidth", "build_time"];
@@ -5293,7 +5858,7 @@ export declare const Constants: {
5293
5858
  readonly disable_update: readonly ["major", "minor", "patch", "version_number", "none"];
5294
5859
  readonly key_mode: readonly ["read", "write", "all", "upload"];
5295
5860
  readonly platform_os: readonly ["ios", "android", "electron"];
5296
- readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableEmulator", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "disableProdBuild", "disableDevice", "disablePlatformElectron", "customIdBlocked"];
5861
+ readonly stats_action: readonly ["delete", "reset", "set", "get", "set_fail", "update_fail", "download_fail", "windows_path_fail", "canonical_path_fail", "directory_path_fail", "unzip_fail", "low_mem_fail", "download_10", "download_20", "download_30", "download_40", "download_50", "download_60", "download_70", "download_80", "download_90", "download_complete", "decrypt_fail", "app_moved_to_foreground", "app_moved_to_background", "uninstall", "needPlanUpgrade", "missingBundle", "noNew", "disablePlatformIos", "disablePlatformAndroid", "disableAutoUpdateToMajor", "cannotUpdateViaPrivateChannel", "disableAutoUpdateToMinor", "disableAutoUpdateToPatch", "channelMisconfigured", "disableAutoUpdateMetadata", "disableAutoUpdateUnderNative", "disableDevBuild", "disableEmulator", "cannotGetBundle", "checksum_fail", "NoChannelOrOverride", "setChannel", "getChannel", "rateLimited", "disableAutoUpdate", "keyMismatch", "ping", "InvalidIp", "blocked_by_server_url", "download_manifest_start", "download_manifest_complete", "download_zip_start", "download_zip_complete", "download_manifest_file_fail", "download_manifest_checksum_fail", "download_manifest_brotli_fail", "backend_refusal", "download_0", "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"];
5297
5862
  readonly stripe_status: readonly ["created", "succeeded", "updated", "failed", "deleted", "canceled"];
5298
5863
  readonly user_min_right: readonly ["invite_read", "invite_upload", "invite_write", "invite_admin", "invite_super_admin", "read", "upload", "write", "admin", "super_admin"];
5299
5864
  readonly user_role: readonly ["read", "upload", "write", "admin"];