@capgo/cli 8.31.6 → 8.32.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/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@capgo/cli",
3
3
  "type": "module",
4
- "version": "8.31.6",
4
+ "version": "8.32.0",
5
5
  "description": "A CLI to upload to capgo servers",
6
6
  "author": "Martin martin@capgo.app",
7
7
  "license": "Apache 2.0",
@@ -11,16 +11,25 @@ export interface AssertAscAccessOptions {
11
11
  /** Test-only injection point. Defaults to globalThis.fetch. */
12
12
  fetchImpl?: typeof fetch;
13
13
  }
14
+ interface AscProviderFailure {
15
+ /** Apple HTTP status and sanitized structured error fields, when available. */
16
+ status?: number;
17
+ code?: string;
18
+ title?: string;
19
+ detail?: string;
20
+ }
14
21
  export type AscAccessResult = {
15
22
  ok: true;
16
- } | {
23
+ } | ({
17
24
  ok: false;
18
25
  kind: 'no-app-access' | 'auth-error' | 'network';
19
26
  message: string;
20
- };
27
+ } & AscProviderFailure);
21
28
  /**
22
29
  * Probe App Store Connect for app access. Never throws - every failure shape is
23
30
  * returned as `{ ok: false, kind }` so the prescan check can self-classify the
24
- * severity (auth-error -> error, no-app-access -> error, network -> info).
31
+ * severity from the HTTP status and sanitized Apple reason. Network failures
32
+ * remain distinguishable so prescan can surface them as warnings.
25
33
  */
26
34
  export declare function assertAscAccess(opts: AssertAscAccessOptions): Promise<AscAccessResult>;
35
+ export {};
@@ -7,5 +7,6 @@ export interface OpenedP12 {
7
7
  /** Open the saved P12; throws on wrong password / garbage. Exported for reuse by pairing check. */
8
8
  export declare function openP12(base64: string, password: string): OpenedP12;
9
9
  export declare const p12Opens: PrescanCheck;
10
+ export declare const p12LegacyEncryption: PrescanCheck;
10
11
  export declare const p12Expiry: PrescanCheck;
11
12
  export declare const ascKeyValid: PrescanCheck;
@@ -1,6 +1,12 @@
1
1
  import type { ValidateOptions, ValidationResult } from '../../onboarding/android/service-account-validation.js';
2
2
  import type { AscAccessResult, AssertAscAccessOptions } from '../../onboarding/apple-access.js';
3
- import type { PrescanCheck } from '../types';
3
+ import type { Finding, PrescanCheck } from '../types';
4
+ /** ASC authentication failures become build-blocking after a 14-day rollout. */
5
+ export declare const ASC_PRESCAN_AUTH_ENFORCE_AFTER = "2026-08-17T00:00:00.000Z";
6
+ /** Classify an ASC auth result without depending on scan context or I/O. */
7
+ export declare function classifyAscAuthFinding(result: Extract<AscAccessResult, {
8
+ ok: false;
9
+ }>): Finding;
4
10
  /** Injectable validator type so tests can supply a fake without any network. */
5
11
  type PlayValidator = (opts: ValidateOptions) => Promise<ValidationResult>;
6
12
  type AscAsserter = (opts: AssertAscAccessOptions) => Promise<AscAccessResult>;
@@ -1,4 +1,6 @@
1
1
  import type { PrescanCheck } from './types';
2
2
  /** New iOS expansion checks become build-blocking at this UTC instant. */
3
3
  export declare const IOS_PRESCAN_EXPANSION_ENFORCE_AFTER = "2026-08-14T00:00:00.000Z";
4
+ /** Legacy P12 encryption becomes mandatory for macOS runner compatibility at this UTC instant. */
5
+ export declare const IOS_P12_LEGACY_ENFORCE_AFTER = "2026-08-17T00:00:00.000Z";
4
6
  export declare const ALL_CHECKS: PrescanCheck[];