@capgo/cli 8.31.6 → 8.31.7
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.js +474 -474
- package/dist/package.json +1 -1
- package/dist/src/build/onboarding/apple-access.d.ts +12 -3
- package/dist/src/build/prescan/checks/store-access.d.ts +7 -1
- package/dist/src/sdk.js +256 -256
- package/package.json +1 -1
package/dist/package.json
CHANGED
|
@@ -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
|
|
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 {};
|
|
@@ -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>;
|