@capgo/cli 8.29.3 → 8.30.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.
@@ -3915,6 +3915,14 @@ export type Database = {
3915
3915
  yearly: number;
3916
3916
  }[];
3917
3917
  };
3918
+ get_org_credits_used_in_period: {
3919
+ Args: {
3920
+ p_end: string;
3921
+ p_org_id: string;
3922
+ p_start: string;
3923
+ };
3924
+ Returns: number;
3925
+ };
3918
3926
  get_cycle_info_org: {
3919
3927
  Args: {
3920
3928
  orgid: string;
@@ -3919,6 +3919,14 @@ export declare function createSupabaseClient(apikey: string, supaHost?: string,
3919
3919
  yearly: number;
3920
3920
  }[];
3921
3921
  };
3922
+ get_org_credits_used_in_period: {
3923
+ Args: {
3924
+ p_end: string;
3925
+ p_org_id: string;
3926
+ p_start: string;
3927
+ };
3928
+ Returns: number;
3929
+ };
3922
3930
  get_cycle_info_org: {
3923
3931
  Args: {
3924
3932
  orgid: string;
@@ -5651,6 +5659,16 @@ export declare function zipFileUnix(filePath: string): Buffer<ArrayBufferLike>;
5651
5659
  export declare function zipFileWindows(filePath: string): Promise<Buffer>;
5652
5660
  export declare function uploadTUS(apikey: string, data: Buffer, orgId: string, appId: string, name: string, spinner: ReturnType<typeof spinnerC>, localConfig: CapgoConfig, chunkSize: number): Promise<boolean>;
5653
5661
  export declare function deletedFailedVersion(supabase: SupabaseClient<Database>, appId: string, name: string): Promise<void>;
5662
+ export interface VersionManifestEntry {
5663
+ file_name: string;
5664
+ s3_path: string;
5665
+ file_hash: string;
5666
+ }
5667
+ /**
5668
+ * Writes delta manifest rows through the backend (file_size stays 0 until R2 size lookup).
5669
+ * Prefer this over writing app_versions.manifest jsonb — old CLIs still use that legacy path.
5670
+ */
5671
+ export declare function setVersionManifest(supabase: SupabaseClient<Database>, appId: string, name: string, manifest: VersionManifestEntry[]): Promise<void>;
5654
5672
  export declare function updateOrCreateChannel(supabase: SupabaseClient<Database>, update: Database['public']['Tables']['channels']['Insert']): Promise<import("@supabase/supabase-js").PostgrestSingleResponse<{
5655
5673
  allow_dev: boolean;
5656
5674
  allow_device: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.29.3",
4
+ "version": "8.30.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",