@capgo/cli 7.18.3 → 8.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -159,6 +159,39 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
159
159
  referencedColumns: ["id"];
160
160
  }];
161
161
  };
162
+ app_metrics_cache: {
163
+ Row: {
164
+ cached_at: string;
165
+ end_date: string;
166
+ id: number;
167
+ org_id: string;
168
+ response: import("./types/supabase.types").Json;
169
+ start_date: string;
170
+ };
171
+ Insert: {
172
+ cached_at?: string;
173
+ end_date: string;
174
+ id?: number;
175
+ org_id: string;
176
+ response: import("./types/supabase.types").Json;
177
+ start_date: string;
178
+ };
179
+ Update: {
180
+ cached_at?: string;
181
+ end_date?: string;
182
+ id?: number;
183
+ org_id?: string;
184
+ response?: import("./types/supabase.types").Json;
185
+ start_date?: string;
186
+ };
187
+ Relationships: [{
188
+ foreignKeyName: "app_metrics_cache_org_id_fkey";
189
+ columns: ["org_id"];
190
+ isOneToOne: false;
191
+ referencedRelation: "orgs";
192
+ referencedColumns: ["id"];
193
+ }];
194
+ };
162
195
  app_versions: {
163
196
  Row: {
164
197
  app_id: string;
@@ -722,18 +755,21 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
722
755
  app_id: string;
723
756
  device_id: string;
724
757
  id: number;
758
+ org_id: string;
725
759
  timestamp: string;
726
760
  };
727
761
  Insert: {
728
762
  app_id: string;
729
763
  device_id: string;
730
764
  id?: number;
765
+ org_id: string;
731
766
  timestamp?: string;
732
767
  };
733
768
  Update: {
734
769
  app_id?: string;
735
770
  device_id?: string;
736
771
  id?: number;
772
+ org_id?: string;
737
773
  timestamp?: string;
738
774
  };
739
775
  Relationships: [];
@@ -750,8 +786,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
750
786
  platform: Database["public"]["Enums"]["platform_os"];
751
787
  plugin_version: string;
752
788
  updated_at: string;
753
- version: number;
789
+ version: number | null;
754
790
  version_build: string | null;
791
+ version_name: string;
755
792
  };
756
793
  Insert: {
757
794
  app_id: string;
@@ -764,8 +801,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
764
801
  platform: Database["public"]["Enums"]["platform_os"];
765
802
  plugin_version?: string;
766
803
  updated_at: string;
767
- version: number;
804
+ version?: number | null;
768
805
  version_build?: string | null;
806
+ version_name?: string;
769
807
  };
770
808
  Update: {
771
809
  app_id?: string;
@@ -778,8 +816,9 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
778
816
  platform?: Database["public"]["Enums"]["platform_os"];
779
817
  plugin_version?: string;
780
818
  updated_at?: string;
781
- version?: number;
819
+ version?: number | null;
782
820
  version_build?: string | null;
821
+ version_name?: string;
783
822
  };
784
823
  Relationships: [];
785
824
  };
@@ -787,6 +826,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
787
826
  Row: {
788
827
  apps: number;
789
828
  apps_active: number | null;
829
+ bundle_storage_gb: number;
790
830
  created_at: string | null;
791
831
  date_id: string;
792
832
  devices_last_month: number | null;
@@ -800,6 +840,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
800
840
  plan_payg: number | null;
801
841
  plan_solo: number | null;
802
842
  plan_team: number | null;
843
+ registers_today: number;
803
844
  stars: number;
804
845
  success_rate: number | null;
805
846
  trial: number | null;
@@ -812,6 +853,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
812
853
  Insert: {
813
854
  apps: number;
814
855
  apps_active?: number | null;
856
+ bundle_storage_gb?: number;
815
857
  created_at?: string | null;
816
858
  date_id: string;
817
859
  devices_last_month?: number | null;
@@ -825,6 +867,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
825
867
  plan_payg?: number | null;
826
868
  plan_solo?: number | null;
827
869
  plan_team?: number | null;
870
+ registers_today?: number;
828
871
  stars: number;
829
872
  success_rate?: number | null;
830
873
  trial?: number | null;
@@ -837,6 +880,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
837
880
  Update: {
838
881
  apps?: number;
839
882
  apps_active?: number | null;
883
+ bundle_storage_gb?: number;
840
884
  created_at?: string | null;
841
885
  date_id?: string;
842
886
  devices_last_month?: number | null;
@@ -850,6 +894,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
850
894
  plan_payg?: number | null;
851
895
  plan_solo?: number | null;
852
896
  plan_team?: number | null;
897
+ registers_today?: number;
853
898
  stars?: number;
854
899
  success_rate?: number | null;
855
900
  trial?: number | null;
@@ -996,6 +1041,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
996
1041
  logo: string | null;
997
1042
  management_email: string;
998
1043
  name: string;
1044
+ stats_updated_at: string | null;
999
1045
  updated_at: string | null;
1000
1046
  };
1001
1047
  Insert: {
@@ -1006,6 +1052,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1006
1052
  logo?: string | null;
1007
1053
  management_email: string;
1008
1054
  name: string;
1055
+ stats_updated_at?: string | null;
1009
1056
  updated_at?: string | null;
1010
1057
  };
1011
1058
  Update: {
@@ -1016,6 +1063,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1016
1063
  logo?: string | null;
1017
1064
  management_email?: string;
1018
1065
  name?: string;
1066
+ stats_updated_at?: string | null;
1019
1067
  updated_at?: string | null;
1020
1068
  };
1021
1069
  Relationships: [{
@@ -1108,7 +1156,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1108
1156
  created_at: string;
1109
1157
  device_id: string;
1110
1158
  id: number;
1111
- version: number;
1159
+ version_name: string;
1112
1160
  };
1113
1161
  Insert: {
1114
1162
  action: Database["public"]["Enums"]["stats_action"];
@@ -1116,7 +1164,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1116
1164
  created_at: string;
1117
1165
  device_id: string;
1118
1166
  id?: never;
1119
- version: number;
1167
+ version_name?: string;
1120
1168
  };
1121
1169
  Update: {
1122
1170
  action?: Database["public"]["Enums"]["stats_action"];
@@ -1124,7 +1172,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1124
1172
  created_at?: string;
1125
1173
  device_id?: string;
1126
1174
  id?: never;
1127
- version?: number;
1175
+ version_name?: string;
1128
1176
  };
1129
1177
  Relationships: [];
1130
1178
  };
@@ -1161,6 +1209,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1161
1209
  id: number;
1162
1210
  is_good_plan: boolean | null;
1163
1211
  mau_exceeded: boolean | null;
1212
+ plan_calculated_at: string | null;
1164
1213
  plan_usage: number | null;
1165
1214
  price_id: string | null;
1166
1215
  product_id: string;
@@ -1181,6 +1230,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1181
1230
  id?: number;
1182
1231
  is_good_plan?: boolean | null;
1183
1232
  mau_exceeded?: boolean | null;
1233
+ plan_calculated_at?: string | null;
1184
1234
  plan_usage?: number | null;
1185
1235
  price_id?: string | null;
1186
1236
  product_id: string;
@@ -1201,6 +1251,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1201
1251
  id?: number;
1202
1252
  is_good_plan?: boolean | null;
1203
1253
  mau_exceeded?: boolean | null;
1254
+ plan_calculated_at?: string | null;
1204
1255
  plan_usage?: number | null;
1205
1256
  price_id?: string | null;
1206
1257
  product_id?: string;
@@ -1398,7 +1449,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1398
1449
  channel_id: number;
1399
1450
  min_right: Database["public"]["Enums"]["user_min_right"];
1400
1451
  org_id: string;
1401
- } | {
1452
+ };
1453
+ Returns: boolean;
1454
+ } | {
1455
+ Args: {
1402
1456
  app_id: string;
1403
1457
  channel_id: number;
1404
1458
  min_right: Database["public"]["Enums"]["user_min_right"];
@@ -1414,11 +1468,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1414
1468
  Returns: number;
1415
1469
  };
1416
1470
  cleanup_frequent_job_details: {
1417
- Args: Record<PropertyKey, never>;
1471
+ Args: never;
1418
1472
  Returns: undefined;
1419
1473
  };
1420
1474
  cleanup_queue_messages: {
1421
- Args: Record<PropertyKey, never>;
1475
+ Args: never;
1422
1476
  Returns: undefined;
1423
1477
  };
1424
1478
  convert_bytes_to_gb: {
@@ -1459,22 +1513,22 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1459
1513
  Returns: number;
1460
1514
  };
1461
1515
  count_all_need_upgrade: {
1462
- Args: Record<PropertyKey, never>;
1516
+ Args: never;
1463
1517
  Returns: number;
1464
1518
  };
1465
1519
  count_all_onboarded: {
1466
- Args: Record<PropertyKey, never>;
1520
+ Args: never;
1467
1521
  Returns: number;
1468
1522
  };
1469
1523
  count_all_plans_v2: {
1470
- Args: Record<PropertyKey, never>;
1524
+ Args: never;
1471
1525
  Returns: {
1472
1526
  count: number;
1473
1527
  plan_name: string;
1474
1528
  }[];
1475
1529
  };
1476
1530
  delete_accounts_marked_for_deletion: {
1477
- Args: Record<PropertyKey, never>;
1531
+ Args: never;
1478
1532
  Returns: {
1479
1533
  deleted_count: number;
1480
1534
  deleted_user_ids: string[];
@@ -1487,11 +1541,11 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1487
1541
  Returns: undefined;
1488
1542
  };
1489
1543
  delete_old_deleted_apps: {
1490
- Args: Record<PropertyKey, never>;
1544
+ Args: never;
1491
1545
  Returns: undefined;
1492
1546
  };
1493
1547
  delete_user: {
1494
- Args: Record<PropertyKey, never>;
1548
+ Args: never;
1495
1549
  Returns: undefined;
1496
1550
  };
1497
1551
  exist_app_v2: {
@@ -1502,10 +1556,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1502
1556
  };
1503
1557
  exist_app_versions: {
1504
1558
  Args: {
1505
- apikey: string;
1506
1559
  appid: string;
1507
1560
  name_version: string;
1508
- } | {
1561
+ };
1562
+ Returns: boolean;
1563
+ } | {
1564
+ Args: {
1565
+ apikey: string;
1509
1566
  appid: string;
1510
1567
  name_version: string;
1511
1568
  };
@@ -1536,19 +1593,15 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1536
1593
  Returns: string;
1537
1594
  };
1538
1595
  get_apikey: {
1539
- Args: Record<PropertyKey, never>;
1596
+ Args: never;
1540
1597
  Returns: string;
1541
1598
  };
1542
1599
  get_apikey_header: {
1543
- Args: Record<PropertyKey, never>;
1600
+ Args: never;
1544
1601
  Returns: string;
1545
1602
  };
1546
1603
  get_app_metrics: {
1547
1604
  Args: {
1548
- end_date: string;
1549
- org_id: string;
1550
- start_date: string;
1551
- } | {
1552
1605
  org_id: string;
1553
1606
  };
1554
1607
  Returns: {
@@ -1562,6 +1615,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1562
1615
  storage: number;
1563
1616
  uninstall: number;
1564
1617
  }[];
1618
+ } | {
1619
+ Args: {
1620
+ p_end_date: string;
1621
+ p_org_id: string;
1622
+ p_start_date: string;
1623
+ };
1624
+ Returns: {
1625
+ app_id: string;
1626
+ bandwidth: number;
1627
+ date: string;
1628
+ fail: number;
1629
+ get: number;
1630
+ install: number;
1631
+ mau: number;
1632
+ storage: number;
1633
+ uninstall: number;
1634
+ }[];
1565
1635
  };
1566
1636
  get_app_versions: {
1567
1637
  Args: {
@@ -1588,7 +1658,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1588
1658
  Returns: string;
1589
1659
  };
1590
1660
  get_customer_counts: {
1591
- Args: Record<PropertyKey, never>;
1661
+ Args: never;
1592
1662
  Returns: {
1593
1663
  monthly: number;
1594
1664
  total: number;
@@ -1604,21 +1674,37 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1604
1674
  subscription_anchor_start: string;
1605
1675
  }[];
1606
1676
  };
1677
+ get_d1_sync_url: {
1678
+ Args: never;
1679
+ Returns: string;
1680
+ };
1607
1681
  get_d1_webhook_signature: {
1608
- Args: Record<PropertyKey, never>;
1682
+ Args: never;
1609
1683
  Returns: string;
1610
1684
  };
1611
1685
  get_db_url: {
1612
- Args: Record<PropertyKey, never>;
1686
+ Args: never;
1613
1687
  Returns: string;
1614
1688
  };
1615
1689
  get_global_metrics: {
1690
+ Args: {
1691
+ org_id: string;
1692
+ };
1693
+ Returns: {
1694
+ bandwidth: number;
1695
+ date: string;
1696
+ fail: number;
1697
+ get: number;
1698
+ install: number;
1699
+ mau: number;
1700
+ storage: number;
1701
+ uninstall: number;
1702
+ }[];
1703
+ } | {
1616
1704
  Args: {
1617
1705
  end_date: string;
1618
1706
  org_id: string;
1619
1707
  start_date: string;
1620
- } | {
1621
- org_id: string;
1622
1708
  };
1623
1709
  Returns: {
1624
1710
  bandwidth: number;
@@ -1632,7 +1718,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1632
1718
  }[];
1633
1719
  };
1634
1720
  get_identity: {
1635
- Args: Record<PropertyKey, never> | {
1721
+ Args: never;
1722
+ Returns: string;
1723
+ } | {
1724
+ Args: {
1636
1725
  keymode: Database["public"]["Enums"]["key_mode"][];
1637
1726
  };
1638
1727
  Returns: string;
@@ -1669,10 +1758,25 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1669
1758
  }[];
1670
1759
  };
1671
1760
  get_metered_usage: {
1672
- Args: Record<PropertyKey, never> | {
1761
+ Args: {
1673
1762
  orgid: string;
1674
1763
  };
1675
1764
  Returns: Database["public"]["CompositeTypes"]["stats_table"];
1765
+ SetofOptions: {
1766
+ from: "*";
1767
+ to: "stats_table";
1768
+ isOneToOne: true;
1769
+ isSetofReturn: false;
1770
+ };
1771
+ } | {
1772
+ Args: never;
1773
+ Returns: Database["public"]["CompositeTypes"]["stats_table"];
1774
+ SetofOptions: {
1775
+ from: "*";
1776
+ to: "stats_table";
1777
+ isOneToOne: true;
1778
+ isSetofReturn: false;
1779
+ };
1676
1780
  };
1677
1781
  get_next_cron_time: {
1678
1782
  Args: {
@@ -1689,11 +1793,15 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1689
1793
  };
1690
1794
  Returns: number;
1691
1795
  };
1796
+ get_next_stats_update_date: {
1797
+ Args: {
1798
+ org: string;
1799
+ };
1800
+ Returns: string;
1801
+ };
1692
1802
  get_org_members: {
1693
1803
  Args: {
1694
1804
  guild_id: string;
1695
- } | {
1696
- guild_id: string;
1697
1805
  user_id: string;
1698
1806
  };
1699
1807
  Returns: {
@@ -1704,6 +1812,18 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1704
1812
  role: Database["public"]["Enums"]["user_min_right"];
1705
1813
  uid: string;
1706
1814
  }[];
1815
+ } | {
1816
+ Args: {
1817
+ guild_id: string;
1818
+ };
1819
+ Returns: {
1820
+ aid: number;
1821
+ email: string;
1822
+ image_url: string;
1823
+ is_tmp: boolean;
1824
+ role: Database["public"]["Enums"]["user_min_right"];
1825
+ uid: string;
1826
+ }[];
1707
1827
  };
1708
1828
  get_org_owner_id: {
1709
1829
  Args: {
@@ -1727,7 +1847,27 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1727
1847
  Returns: import("./types/supabase.types").Json[];
1728
1848
  };
1729
1849
  get_orgs_v6: {
1730
- Args: Record<PropertyKey, never> | {
1850
+ Args: never;
1851
+ Returns: {
1852
+ app_count: number;
1853
+ can_use_more: boolean;
1854
+ created_by: string;
1855
+ gid: string;
1856
+ is_canceled: boolean;
1857
+ is_yearly: boolean;
1858
+ logo: string;
1859
+ management_email: string;
1860
+ name: string;
1861
+ next_stats_update_at: string;
1862
+ paying: boolean;
1863
+ role: string;
1864
+ stats_updated_at: string;
1865
+ subscription_end: string;
1866
+ subscription_start: string;
1867
+ trial_left: number;
1868
+ }[];
1869
+ } | {
1870
+ Args: {
1731
1871
  userid: string;
1732
1872
  };
1733
1873
  Returns: {
@@ -1740,20 +1880,30 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1740
1880
  logo: string;
1741
1881
  management_email: string;
1742
1882
  name: string;
1883
+ next_stats_update_at: string;
1743
1884
  paying: boolean;
1744
1885
  role: string;
1886
+ stats_updated_at: string;
1745
1887
  subscription_end: string;
1746
1888
  subscription_start: string;
1747
1889
  trial_left: number;
1748
1890
  }[];
1749
1891
  };
1750
1892
  get_plan_usage_percent_detailed: {
1893
+ Args: {
1894
+ orgid: string;
1895
+ };
1896
+ Returns: {
1897
+ bandwidth_percent: number;
1898
+ mau_percent: number;
1899
+ storage_percent: number;
1900
+ total_percent: number;
1901
+ }[];
1902
+ } | {
1751
1903
  Args: {
1752
1904
  cycle_end: string;
1753
1905
  cycle_start: string;
1754
1906
  orgid: string;
1755
- } | {
1756
- orgid: string;
1757
1907
  };
1758
1908
  Returns: {
1759
1909
  bandwidth_percent: number;
@@ -1763,7 +1913,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1763
1913
  }[];
1764
1914
  };
1765
1915
  get_process_cron_stats_job_info: {
1766
- Args: Record<PropertyKey, never>;
1916
+ Args: never;
1767
1917
  Returns: {
1768
1918
  last_run: string;
1769
1919
  next_run: string;
@@ -1777,12 +1927,23 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1777
1927
  Returns: number;
1778
1928
  };
1779
1929
  get_total_metrics: {
1930
+ Args: {
1931
+ org_id: string;
1932
+ };
1933
+ Returns: {
1934
+ bandwidth: number;
1935
+ fail: number;
1936
+ get: number;
1937
+ install: number;
1938
+ mau: number;
1939
+ storage: number;
1940
+ uninstall: number;
1941
+ }[];
1942
+ } | {
1780
1943
  Args: {
1781
1944
  end_date: string;
1782
1945
  org_id: string;
1783
1946
  start_date: string;
1784
- } | {
1785
- org_id: string;
1786
1947
  };
1787
1948
  Returns: {
1788
1949
  bandwidth: number;
@@ -1801,7 +1962,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1801
1962
  Returns: number;
1802
1963
  };
1803
1964
  get_update_stats: {
1804
- Args: Record<PropertyKey, never>;
1965
+ Args: never;
1805
1966
  Returns: {
1806
1967
  app_id: string;
1807
1968
  failed: number;
@@ -1814,11 +1975,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1814
1975
  get_user_id: {
1815
1976
  Args: {
1816
1977
  apikey: string;
1817
- } | {
1818
- apikey: string;
1819
1978
  app_id: string;
1820
1979
  };
1821
1980
  Returns: string;
1981
+ } | {
1982
+ Args: {
1983
+ apikey: string;
1984
+ };
1985
+ Returns: string;
1822
1986
  };
1823
1987
  get_user_main_org_id: {
1824
1988
  Args: {
@@ -1833,7 +1997,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1833
1997
  Returns: string;
1834
1998
  };
1835
1999
  get_versions_with_no_metadata: {
1836
- Args: Record<PropertyKey, never>;
2000
+ Args: never;
1837
2001
  Returns: {
1838
2002
  app_id: string;
1839
2003
  checksum: string | null;
@@ -1854,6 +2018,12 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1854
2018
  updated_at: string | null;
1855
2019
  user_id: string | null;
1856
2020
  }[];
2021
+ SetofOptions: {
2022
+ from: "*";
2023
+ to: "app_versions";
2024
+ isOneToOne: false;
2025
+ isSetofReturn: true;
2026
+ };
1857
2027
  };
1858
2028
  get_weekly_stats: {
1859
2029
  Args: {
@@ -1904,10 +2074,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1904
2074
  Returns: boolean;
1905
2075
  };
1906
2076
  is_admin: {
1907
- Args: Record<PropertyKey, never> | {
2077
+ Args: {
1908
2078
  userid: string;
1909
2079
  };
1910
2080
  Returns: boolean;
2081
+ } | {
2082
+ Args: never;
2083
+ Returns: boolean;
1911
2084
  };
1912
2085
  is_allowed_action: {
1913
2086
  Args: {
@@ -1932,10 +2105,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1932
2105
  is_allowed_capgkey: {
1933
2106
  Args: {
1934
2107
  apikey: string;
1935
- app_id: string;
1936
2108
  keymode: Database["public"]["Enums"]["key_mode"][];
1937
- } | {
2109
+ };
2110
+ Returns: boolean;
2111
+ } | {
2112
+ Args: {
1938
2113
  apikey: string;
2114
+ app_id: string;
1939
2115
  keymode: Database["public"]["Enums"]["key_mode"][];
1940
2116
  };
1941
2117
  Returns: boolean;
@@ -1944,13 +2120,19 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
1944
2120
  Args: {
1945
2121
  apikey: string;
1946
2122
  appid: string;
1947
- } | {
1948
- appid: string;
1949
- } | {
2123
+ };
2124
+ Returns: boolean;
2125
+ } | {
2126
+ Args: {
1950
2127
  appid: string;
1951
2128
  userid: string;
1952
2129
  };
1953
2130
  Returns: boolean;
2131
+ } | {
2132
+ Args: {
2133
+ appid: string;
2134
+ };
2135
+ Returns: boolean;
1954
2136
  };
1955
2137
  is_bandwidth_exceeded_by_org: {
1956
2138
  Args: {
@@ -2066,7 +2248,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2066
2248
  Returns: string;
2067
2249
  };
2068
2250
  one_month_ahead: {
2069
- Args: Record<PropertyKey, never>;
2251
+ Args: never;
2070
2252
  Returns: string;
2071
2253
  };
2072
2254
  parse_cron_field: {
@@ -2091,41 +2273,53 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2091
2273
  Returns: undefined;
2092
2274
  };
2093
2275
  process_admin_stats: {
2094
- Args: Record<PropertyKey, never>;
2276
+ Args: never;
2095
2277
  Returns: undefined;
2096
2278
  };
2097
2279
  process_cron_stats_jobs: {
2098
- Args: Record<PropertyKey, never>;
2280
+ Args: never;
2281
+ Returns: undefined;
2282
+ };
2283
+ process_cron_sync_sub_jobs: {
2284
+ Args: never;
2099
2285
  Returns: undefined;
2100
2286
  };
2101
2287
  process_d1_replication_batch: {
2102
- Args: Record<PropertyKey, never>;
2288
+ Args: never;
2103
2289
  Returns: undefined;
2104
2290
  };
2105
2291
  process_failed_uploads: {
2106
- Args: Record<PropertyKey, never>;
2292
+ Args: never;
2107
2293
  Returns: undefined;
2108
2294
  };
2109
2295
  process_free_trial_expired: {
2110
- Args: Record<PropertyKey, never>;
2296
+ Args: never;
2111
2297
  Returns: undefined;
2112
2298
  };
2113
2299
  process_function_queue: {
2114
2300
  Args: {
2301
+ batch_size?: number;
2115
2302
  queue_name: string;
2116
2303
  };
2117
2304
  Returns: number;
2118
2305
  };
2119
2306
  process_stats_email_monthly: {
2120
- Args: Record<PropertyKey, never>;
2307
+ Args: never;
2121
2308
  Returns: undefined;
2122
2309
  };
2123
2310
  process_stats_email_weekly: {
2124
- Args: Record<PropertyKey, never>;
2311
+ Args: never;
2125
2312
  Returns: undefined;
2126
2313
  };
2127
2314
  process_subscribed_orgs: {
2128
- Args: Record<PropertyKey, never>;
2315
+ Args: never;
2316
+ Returns: undefined;
2317
+ };
2318
+ queue_cron_stat_org_for_org: {
2319
+ Args: {
2320
+ customer_id: string;
2321
+ org_id: string;
2322
+ };
2129
2323
  Returns: undefined;
2130
2324
  };
2131
2325
  read_bandwidth_usage: {
@@ -2181,7 +2375,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2181
2375
  }[];
2182
2376
  };
2183
2377
  remove_old_jobs: {
2184
- Args: Record<PropertyKey, never>;
2378
+ Args: never;
2185
2379
  Returns: undefined;
2186
2380
  };
2187
2381
  rescind_invitation: {
@@ -2191,6 +2385,27 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2191
2385
  };
2192
2386
  Returns: string;
2193
2387
  };
2388
+ seed_get_app_metrics_caches: {
2389
+ Args: {
2390
+ p_end_date: string;
2391
+ p_org_id: string;
2392
+ p_start_date: string;
2393
+ };
2394
+ Returns: {
2395
+ cached_at: string;
2396
+ end_date: string;
2397
+ id: number;
2398
+ org_id: string;
2399
+ response: import("./types/supabase.types").Json;
2400
+ start_date: string;
2401
+ };
2402
+ SetofOptions: {
2403
+ from: "*";
2404
+ to: "app_metrics_cache";
2405
+ isOneToOne: true;
2406
+ isSetofReturn: false;
2407
+ };
2408
+ };
2194
2409
  set_bandwidth_exceeded_by_org: {
2195
2410
  Args: {
2196
2411
  disabled: boolean;
@@ -2212,6 +2427,10 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2212
2427
  };
2213
2428
  Returns: undefined;
2214
2429
  };
2430
+ total_bundle_storage_bytes: {
2431
+ Args: never;
2432
+ Returns: number;
2433
+ };
2215
2434
  transfer_app: {
2216
2435
  Args: {
2217
2436
  p_app_id: string;
@@ -2232,7 +2451,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2232
2451
  Returns: Database["public"]["Enums"]["user_min_right"];
2233
2452
  };
2234
2453
  update_app_versions_retention: {
2235
- Args: Record<PropertyKey, never>;
2454
+ Args: never;
2236
2455
  Returns: undefined;
2237
2456
  };
2238
2457
  upsert_version_meta: {
@@ -2244,7 +2463,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2244
2463
  Returns: boolean;
2245
2464
  };
2246
2465
  verify_mfa: {
2247
- Args: Record<PropertyKey, never>;
2466
+ Args: never;
2248
2467
  Returns: boolean;
2249
2468
  };
2250
2469
  };
@@ -2255,7 +2474,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
2255
2474
  key_mode: "read" | "write" | "all" | "upload";
2256
2475
  pay_as_you_go_type: "base" | "units";
2257
2476
  platform_os: "ios" | "android";
2258
- 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" | "InvalidIp";
2477
+ 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" | "ping" | "InvalidIp" | "blocked_by_server_url";
2259
2478
  stripe_status: "created" | "succeeded" | "updated" | "failed" | "deleted" | "canceled";
2260
2479
  usage_mode: "5min" | "day" | "month" | "cycle" | "last_saved";
2261
2480
  user_min_right: "invite_read" | "invite_upload" | "invite_write" | "invite_admin" | "invite_super_admin" | "read" | "upload" | "write" | "admin" | "super_admin";