@onexapis/cli 1.1.65 → 1.1.70

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/dist/index.d.mts CHANGED
@@ -3,16 +3,16 @@
3
3
  * Token storage, refresh, and API authentication for onexthm CLI.
4
4
  */
5
5
  /** Supported target environments. */
6
- type Env = "dev" | "prod";
6
+ type Env = "dev" | "staging" | "prod";
7
7
 
8
8
  interface InitOptions {
9
9
  template?: string;
10
10
  noInstall?: boolean;
11
11
  git?: boolean;
12
12
  yes?: boolean;
13
- env?: Env;
13
+ env: Env;
14
14
  }
15
- declare function initCommand(projectName?: string, options?: InitOptions): Promise<void>;
15
+ declare function initCommand(projectName: string | undefined, options: InitOptions): Promise<void>;
16
16
 
17
17
  interface CreateSectionOptions {
18
18
  theme?: string;
@@ -80,7 +80,7 @@ interface DownloadOptions {
80
80
  themeId?: string;
81
81
  version?: string;
82
82
  output?: string;
83
- env?: Env;
83
+ env: Env;
84
84
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
85
85
  bucket?: string;
86
86
  }
@@ -92,7 +92,7 @@ declare function downloadCommand(options: DownloadOptions): Promise<void>;
92
92
  interface CloneOptions {
93
93
  version?: string;
94
94
  output?: string;
95
- env?: Env;
95
+ env: Env;
96
96
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
97
97
  bucket?: string;
98
98
  install?: boolean;
package/dist/index.d.ts CHANGED
@@ -3,16 +3,16 @@
3
3
  * Token storage, refresh, and API authentication for onexthm CLI.
4
4
  */
5
5
  /** Supported target environments. */
6
- type Env = "dev" | "prod";
6
+ type Env = "dev" | "staging" | "prod";
7
7
 
8
8
  interface InitOptions {
9
9
  template?: string;
10
10
  noInstall?: boolean;
11
11
  git?: boolean;
12
12
  yes?: boolean;
13
- env?: Env;
13
+ env: Env;
14
14
  }
15
- declare function initCommand(projectName?: string, options?: InitOptions): Promise<void>;
15
+ declare function initCommand(projectName: string | undefined, options: InitOptions): Promise<void>;
16
16
 
17
17
  interface CreateSectionOptions {
18
18
  theme?: string;
@@ -80,7 +80,7 @@ interface DownloadOptions {
80
80
  themeId?: string;
81
81
  version?: string;
82
82
  output?: string;
83
- env?: Env;
83
+ env: Env;
84
84
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
85
85
  bucket?: string;
86
86
  }
@@ -92,7 +92,7 @@ declare function downloadCommand(options: DownloadOptions): Promise<void>;
92
92
  interface CloneOptions {
93
93
  version?: string;
94
94
  output?: string;
95
- env?: Env;
95
+ env: Env;
96
96
  /** @deprecated kept for backwards-compat with older scripts; ignored. */
97
97
  bucket?: string;
98
98
  install?: boolean;