@capgo/cli 8.33.5 → 8.35.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.
- package/README.md +1 -0
- package/dist/index.js +575 -574
- package/dist/package.json +1 -1
- package/dist/src/api/channels.d.ts +1 -0
- package/dist/src/app/list.d.ts +2 -0
- package/dist/src/schemas/channel.d.ts +7 -0
- package/dist/src/schemas/sdk.d.ts +14 -0
- package/dist/src/sdk.js +281 -280
- package/dist/src/types/supabase.types.d.ts +19 -0
- package/dist/src/utils.d.ts +20 -0
- package/package.json +1 -1
|
@@ -322,6 +322,7 @@ export type Database = {
|
|
|
322
322
|
rollout_paused_version_names: string[];
|
|
323
323
|
name: string | null;
|
|
324
324
|
need_onboarding: boolean;
|
|
325
|
+
onboarding: Json;
|
|
325
326
|
onboarding_completed_at: string | null;
|
|
326
327
|
owner_org: string;
|
|
327
328
|
retention: number;
|
|
@@ -354,6 +355,7 @@ export type Database = {
|
|
|
354
355
|
rollout_paused_version_names?: string[];
|
|
355
356
|
name?: string | null;
|
|
356
357
|
need_onboarding?: boolean;
|
|
358
|
+
onboarding?: Json;
|
|
357
359
|
onboarding_completed_at?: string | null;
|
|
358
360
|
owner_org: string;
|
|
359
361
|
retention?: number;
|
|
@@ -386,6 +388,7 @@ export type Database = {
|
|
|
386
388
|
rollout_paused_version_names?: string[];
|
|
387
389
|
name?: string | null;
|
|
388
390
|
need_onboarding?: boolean;
|
|
391
|
+
onboarding?: Json;
|
|
389
392
|
onboarding_completed_at?: string | null;
|
|
390
393
|
owner_org?: string;
|
|
391
394
|
retention?: number;
|
|
@@ -827,6 +830,7 @@ export type Database = {
|
|
|
827
830
|
rollout_percentage_bps: number;
|
|
828
831
|
rollout_version: number | null;
|
|
829
832
|
rbac_id: string;
|
|
833
|
+
update_package: Database["public"]["Enums"]["channel_update_package"];
|
|
830
834
|
updated_at: string;
|
|
831
835
|
version: number | null;
|
|
832
836
|
};
|
|
@@ -866,6 +870,7 @@ export type Database = {
|
|
|
866
870
|
rollout_percentage_bps?: number;
|
|
867
871
|
rollout_version?: number | null;
|
|
868
872
|
rbac_id?: string;
|
|
873
|
+
update_package?: Database["public"]["Enums"]["channel_update_package"];
|
|
869
874
|
updated_at?: string;
|
|
870
875
|
version?: number | null;
|
|
871
876
|
};
|
|
@@ -905,6 +910,7 @@ export type Database = {
|
|
|
905
910
|
rollout_percentage_bps?: number;
|
|
906
911
|
rollout_version?: number | null;
|
|
907
912
|
rbac_id?: string;
|
|
913
|
+
update_package?: Database["public"]["Enums"]["channel_update_package"];
|
|
908
914
|
updated_at?: string;
|
|
909
915
|
version?: number | null;
|
|
910
916
|
};
|
|
@@ -1562,6 +1568,7 @@ export type Database = {
|
|
|
1562
1568
|
paying: number | null;
|
|
1563
1569
|
paying_monthly: number | null;
|
|
1564
1570
|
paying_yearly: number | null;
|
|
1571
|
+
plan_credits: number;
|
|
1565
1572
|
plan_enterprise: number | null;
|
|
1566
1573
|
plan_enterprise_conversion_rate: number;
|
|
1567
1574
|
plan_enterprise_monthly: number;
|
|
@@ -1656,6 +1663,7 @@ export type Database = {
|
|
|
1656
1663
|
paying?: number | null;
|
|
1657
1664
|
paying_monthly?: number | null;
|
|
1658
1665
|
paying_yearly?: number | null;
|
|
1666
|
+
plan_credits?: number;
|
|
1659
1667
|
plan_enterprise?: number | null;
|
|
1660
1668
|
plan_enterprise_conversion_rate?: number;
|
|
1661
1669
|
plan_enterprise_monthly?: number;
|
|
@@ -1750,6 +1758,7 @@ export type Database = {
|
|
|
1750
1758
|
paying?: number | null;
|
|
1751
1759
|
paying_monthly?: number | null;
|
|
1752
1760
|
paying_yearly?: number | null;
|
|
1761
|
+
plan_credits?: number;
|
|
1753
1762
|
plan_enterprise?: number | null;
|
|
1754
1763
|
plan_enterprise_conversion_rate?: number;
|
|
1755
1764
|
plan_enterprise_monthly?: number;
|
|
@@ -3783,6 +3792,7 @@ export type Database = {
|
|
|
3783
3792
|
manifest_bundle_count: number;
|
|
3784
3793
|
name: string | null;
|
|
3785
3794
|
need_onboarding: boolean;
|
|
3795
|
+
onboarding: Json;
|
|
3786
3796
|
onboarding_completed_at: string | null;
|
|
3787
3797
|
owner_org: string;
|
|
3788
3798
|
retention: number;
|
|
@@ -4736,6 +4746,13 @@ export type Database = {
|
|
|
4736
4746
|
};
|
|
4737
4747
|
Returns: string;
|
|
4738
4748
|
};
|
|
4749
|
+
mark_onboarding_feature_started: {
|
|
4750
|
+
Args: {
|
|
4751
|
+
p_app_id: string;
|
|
4752
|
+
p_feature_key: string;
|
|
4753
|
+
};
|
|
4754
|
+
Returns: Json;
|
|
4755
|
+
};
|
|
4739
4756
|
mass_edit_queue_messages_cf_ids: {
|
|
4740
4757
|
Args: {
|
|
4741
4758
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -5590,6 +5607,7 @@ export type Database = {
|
|
|
5590
5607
|
};
|
|
5591
5608
|
Enums: {
|
|
5592
5609
|
action_type: "mau" | "storage" | "bandwidth" | "build_time";
|
|
5610
|
+
channel_update_package: "all" | "zip" | "delta" | "zip_from_builtin" | "delta_from_builtin";
|
|
5593
5611
|
credit_metric_type: "mau" | "bandwidth" | "storage" | "build_time";
|
|
5594
5612
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5595
5613
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
@@ -5690,6 +5708,7 @@ export declare const Constants: {
|
|
|
5690
5708
|
readonly public: {
|
|
5691
5709
|
readonly Enums: {
|
|
5692
5710
|
readonly action_type: readonly ["mau", "storage", "bandwidth", "build_time"];
|
|
5711
|
+
readonly channel_update_package: readonly ["all", "zip", "delta", "zip_from_builtin", "delta_from_builtin"];
|
|
5693
5712
|
readonly credit_metric_type: readonly ["mau", "bandwidth", "storage", "build_time"];
|
|
5694
5713
|
readonly credit_transaction_type: readonly ["grant", "purchase", "manual_grant", "deduction", "expiry", "refund"];
|
|
5695
5714
|
readonly cron_task_type: readonly ["function", "queue", "function_queue"];
|
package/dist/src/utils.d.ts
CHANGED
|
@@ -163,6 +163,7 @@ interface CapgoFilesConfig {
|
|
|
163
163
|
export declare function getRemoteFileConfig(): Promise<CapgoFilesConfig>;
|
|
164
164
|
export declare function normalizeSupabaseHost(host: string): string;
|
|
165
165
|
export declare function formatCapgoApiErrorBody(body: unknown): string;
|
|
166
|
+
export declare function channelUpdatePackageCliError(error: unknown): Promise<string | null>;
|
|
166
167
|
/** Capgo-managed Supabase hosts (cloud). Match hostname exactly. */
|
|
167
168
|
export declare function isCapgoManagedSupabaseHost(supaHost?: string): boolean;
|
|
168
169
|
/**
|
|
@@ -481,6 +482,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
481
482
|
rollout_paused_version_names: string[];
|
|
482
483
|
name: string | null;
|
|
483
484
|
need_onboarding: boolean;
|
|
485
|
+
onboarding: import("./types/supabase.types").Json;
|
|
484
486
|
onboarding_completed_at: string | null;
|
|
485
487
|
owner_org: string;
|
|
486
488
|
retention: number;
|
|
@@ -513,6 +515,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
513
515
|
rollout_paused_version_names?: string[];
|
|
514
516
|
name?: string | null;
|
|
515
517
|
need_onboarding?: boolean;
|
|
518
|
+
onboarding?: import("./types/supabase.types").Json;
|
|
516
519
|
onboarding_completed_at?: string | null;
|
|
517
520
|
owner_org: string;
|
|
518
521
|
retention?: number;
|
|
@@ -545,6 +548,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
545
548
|
rollout_paused_version_names?: string[];
|
|
546
549
|
name?: string | null;
|
|
547
550
|
need_onboarding?: boolean;
|
|
551
|
+
onboarding?: import("./types/supabase.types").Json;
|
|
548
552
|
onboarding_completed_at?: string | null;
|
|
549
553
|
owner_org?: string;
|
|
550
554
|
retention?: number;
|
|
@@ -965,6 +969,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
965
969
|
rollout_percentage_bps: number;
|
|
966
970
|
rollout_version: number | null;
|
|
967
971
|
rbac_id: string;
|
|
972
|
+
update_package: Database["public"]["Enums"]["channel_update_package"];
|
|
968
973
|
updated_at: string;
|
|
969
974
|
version: number | null;
|
|
970
975
|
};
|
|
@@ -1004,6 +1009,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1004
1009
|
rollout_percentage_bps?: number;
|
|
1005
1010
|
rollout_version?: number | null;
|
|
1006
1011
|
rbac_id?: string;
|
|
1012
|
+
update_package?: Database["public"]["Enums"]["channel_update_package"];
|
|
1007
1013
|
updated_at?: string;
|
|
1008
1014
|
version?: number | null;
|
|
1009
1015
|
};
|
|
@@ -1043,6 +1049,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1043
1049
|
rollout_percentage_bps?: number;
|
|
1044
1050
|
rollout_version?: number | null;
|
|
1045
1051
|
rbac_id?: string;
|
|
1052
|
+
update_package?: Database["public"]["Enums"]["channel_update_package"];
|
|
1046
1053
|
updated_at?: string;
|
|
1047
1054
|
version?: number | null;
|
|
1048
1055
|
};
|
|
@@ -1682,6 +1689,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1682
1689
|
paying: number | null;
|
|
1683
1690
|
paying_monthly: number | null;
|
|
1684
1691
|
paying_yearly: number | null;
|
|
1692
|
+
plan_credits: number;
|
|
1685
1693
|
plan_enterprise: number | null;
|
|
1686
1694
|
plan_enterprise_conversion_rate: number;
|
|
1687
1695
|
plan_enterprise_monthly: number;
|
|
@@ -1776,6 +1784,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1776
1784
|
paying?: number | null;
|
|
1777
1785
|
paying_monthly?: number | null;
|
|
1778
1786
|
paying_yearly?: number | null;
|
|
1787
|
+
plan_credits?: number;
|
|
1779
1788
|
plan_enterprise?: number | null;
|
|
1780
1789
|
plan_enterprise_conversion_rate?: number;
|
|
1781
1790
|
plan_enterprise_monthly?: number;
|
|
@@ -1870,6 +1879,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
1870
1879
|
paying?: number | null;
|
|
1871
1880
|
paying_monthly?: number | null;
|
|
1872
1881
|
paying_yearly?: number | null;
|
|
1882
|
+
plan_credits?: number;
|
|
1873
1883
|
plan_enterprise?: number | null;
|
|
1874
1884
|
plan_enterprise_conversion_rate?: number;
|
|
1875
1885
|
plan_enterprise_monthly?: number;
|
|
@@ -3833,6 +3843,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
3833
3843
|
manifest_bundle_count: number;
|
|
3834
3844
|
name: string | null;
|
|
3835
3845
|
need_onboarding: boolean;
|
|
3846
|
+
onboarding: import("./types/supabase.types").Json;
|
|
3836
3847
|
onboarding_completed_at: string | null;
|
|
3837
3848
|
owner_org: string;
|
|
3838
3849
|
retention: number;
|
|
@@ -4786,6 +4797,13 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
4786
4797
|
};
|
|
4787
4798
|
Returns: string;
|
|
4788
4799
|
};
|
|
4800
|
+
mark_onboarding_feature_started: {
|
|
4801
|
+
Args: {
|
|
4802
|
+
p_app_id: string;
|
|
4803
|
+
p_feature_key: string;
|
|
4804
|
+
};
|
|
4805
|
+
Returns: import("./types/supabase.types").Json;
|
|
4806
|
+
};
|
|
4789
4807
|
mass_edit_queue_messages_cf_ids: {
|
|
4790
4808
|
Args: {
|
|
4791
4809
|
updates: Database["public"]["CompositeTypes"]["message_update"][];
|
|
@@ -5640,6 +5658,7 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
|
|
|
5640
5658
|
};
|
|
5641
5659
|
Enums: {
|
|
5642
5660
|
action_type: "mau" | "storage" | "bandwidth" | "build_time";
|
|
5661
|
+
channel_update_package: "all" | "zip" | "delta" | "zip_from_builtin" | "delta_from_builtin";
|
|
5643
5662
|
credit_metric_type: "mau" | "bandwidth" | "storage" | "build_time";
|
|
5644
5663
|
credit_transaction_type: "grant" | "purchase" | "manual_grant" | "deduction" | "expiry" | "refund";
|
|
5645
5664
|
cron_task_type: "function" | "queue" | "function_queue";
|
|
@@ -5784,6 +5803,7 @@ export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>
|
|
|
5784
5803
|
rollout_percentage_bps: number;
|
|
5785
5804
|
rollout_version: number | null;
|
|
5786
5805
|
rbac_id: string;
|
|
5806
|
+
update_package: Database["public"]["Enums"]["channel_update_package"];
|
|
5787
5807
|
updated_at: string;
|
|
5788
5808
|
version: number | null;
|
|
5789
5809
|
}>>;
|