@sitepong/fastnode 0.1.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.
Files changed (162) hide show
  1. package/README.md +81 -0
  2. package/bin/fastnode.js +13 -0
  3. package/bin/fastnode.ts +5 -0
  4. package/dist/actions/index.cjs +7405 -0
  5. package/dist/actions/index.cjs.map +1 -0
  6. package/dist/actions/index.d.cts +15 -0
  7. package/dist/actions/index.d.ts +15 -0
  8. package/dist/actions/index.mjs +7377 -0
  9. package/dist/actions/index.mjs.map +1 -0
  10. package/dist/cert/index.cjs +219 -0
  11. package/dist/cert/index.cjs.map +1 -0
  12. package/dist/cert/index.d.cts +4 -0
  13. package/dist/cert/index.d.ts +4 -0
  14. package/dist/cert/index.mjs +191 -0
  15. package/dist/cert/index.mjs.map +1 -0
  16. package/dist/cert-BmJGtYtb.d.cts +27 -0
  17. package/dist/cert-owkOFNW8.d.ts +27 -0
  18. package/dist/cli/index.cjs +7998 -0
  19. package/dist/cli/index.cjs.map +1 -0
  20. package/dist/cli/index.d.cts +9 -0
  21. package/dist/cli/index.d.ts +9 -0
  22. package/dist/cli/index.mjs +7972 -0
  23. package/dist/cli/index.mjs.map +1 -0
  24. package/dist/client/index.cjs +2592 -0
  25. package/dist/client/index.cjs.map +1 -0
  26. package/dist/client/index.d.cts +2 -0
  27. package/dist/client/index.d.ts +2 -0
  28. package/dist/client/index.mjs +2582 -0
  29. package/dist/client/index.mjs.map +1 -0
  30. package/dist/context-CymLkfrS.d.cts +13 -0
  31. package/dist/context-CymLkfrS.d.ts +13 -0
  32. package/dist/core/index.cjs +281 -0
  33. package/dist/core/index.cjs.map +1 -0
  34. package/dist/core/index.d.cts +1 -0
  35. package/dist/core/index.d.ts +1 -0
  36. package/dist/core/index.mjs +254 -0
  37. package/dist/core/index.mjs.map +1 -0
  38. package/dist/deliver/index.cjs +328 -0
  39. package/dist/deliver/index.cjs.map +1 -0
  40. package/dist/deliver/index.d.cts +3 -0
  41. package/dist/deliver/index.d.ts +3 -0
  42. package/dist/deliver/index.mjs +322 -0
  43. package/dist/deliver/index.mjs.map +1 -0
  44. package/dist/enums-B609j2rb.d.cts +20 -0
  45. package/dist/enums-B609j2rb.d.ts +20 -0
  46. package/dist/frameit/index.cjs +247 -0
  47. package/dist/frameit/index.cjs.map +1 -0
  48. package/dist/frameit/index.d.cts +1 -0
  49. package/dist/frameit/index.d.ts +1 -0
  50. package/dist/frameit/index.mjs +242 -0
  51. package/dist/frameit/index.mjs.map +1 -0
  52. package/dist/gym/index.cjs +356 -0
  53. package/dist/gym/index.cjs.map +1 -0
  54. package/dist/gym/index.d.cts +2 -0
  55. package/dist/gym/index.d.ts +2 -0
  56. package/dist/gym/index.mjs +346 -0
  57. package/dist/gym/index.mjs.map +1 -0
  58. package/dist/index-1Vu2cRQ2.d.ts +99 -0
  59. package/dist/index-A5MimeQk.d.ts +72 -0
  60. package/dist/index-B0yhu_LZ.d.ts +76 -0
  61. package/dist/index-B9yXicrQ.d.ts +62 -0
  62. package/dist/index-BFdNOmPJ.d.cts +53 -0
  63. package/dist/index-BLubSlgK.d.cts +1513 -0
  64. package/dist/index-BN0ubxjZ.d.ts +70 -0
  65. package/dist/index-BQJIJlK7.d.cts +70 -0
  66. package/dist/index-BYonklf3.d.cts +84 -0
  67. package/dist/index-BYonklf3.d.ts +84 -0
  68. package/dist/index-BimqCmY8.d.cts +78 -0
  69. package/dist/index-BimqCmY8.d.ts +78 -0
  70. package/dist/index-BoU8qt8r.d.cts +59 -0
  71. package/dist/index-BoU8qt8r.d.ts +59 -0
  72. package/dist/index-C2yG3wXA.d.cts +95 -0
  73. package/dist/index-C2yG3wXA.d.ts +95 -0
  74. package/dist/index-CR3BFPIz.d.cts +77 -0
  75. package/dist/index-CR3BFPIz.d.ts +77 -0
  76. package/dist/index-CWNLnSOL.d.cts +99 -0
  77. package/dist/index-Cp6cjtd-.d.cts +65 -0
  78. package/dist/index-Cp6cjtd-.d.ts +65 -0
  79. package/dist/index-D1Izm7qt.d.ts +1513 -0
  80. package/dist/index-D5eihzwM.d.cts +76 -0
  81. package/dist/index-DImN9PWc.d.ts +155 -0
  82. package/dist/index-DfCUVJX1.d.cts +62 -0
  83. package/dist/index-DfirmFbC.d.ts +32 -0
  84. package/dist/index-DkvinY7_.d.ts +54 -0
  85. package/dist/index-DrUpRXRG.d.cts +155 -0
  86. package/dist/index-EcVvViW8.d.cts +72 -0
  87. package/dist/index-HRiaaX-Q.d.cts +54 -0
  88. package/dist/index-TfXqwuac.d.ts +53 -0
  89. package/dist/index-lt819Jgj.d.cts +32 -0
  90. package/dist/index.cjs +8464 -0
  91. package/dist/index.cjs.map +1 -0
  92. package/dist/index.d.cts +23 -0
  93. package/dist/index.d.ts +23 -0
  94. package/dist/index.mjs +8410 -0
  95. package/dist/index.mjs.map +1 -0
  96. package/dist/lane/index.cjs +7641 -0
  97. package/dist/lane/index.cjs.map +1 -0
  98. package/dist/lane/index.d.cts +51 -0
  99. package/dist/lane/index.d.ts +51 -0
  100. package/dist/lane/index.mjs +7603 -0
  101. package/dist/lane/index.mjs.map +1 -0
  102. package/dist/match/index.cjs +942 -0
  103. package/dist/match/index.cjs.map +1 -0
  104. package/dist/match/index.d.cts +5 -0
  105. package/dist/match/index.d.ts +5 -0
  106. package/dist/match/index.mjs +913 -0
  107. package/dist/match/index.mjs.map +1 -0
  108. package/dist/pem/index.cjs +195 -0
  109. package/dist/pem/index.cjs.map +1 -0
  110. package/dist/pem/index.d.cts +3 -0
  111. package/dist/pem/index.d.ts +3 -0
  112. package/dist/pem/index.mjs +170 -0
  113. package/dist/pem/index.mjs.map +1 -0
  114. package/dist/pilot/index.cjs +206 -0
  115. package/dist/pilot/index.cjs.map +1 -0
  116. package/dist/pilot/index.d.cts +3 -0
  117. package/dist/pilot/index.d.ts +3 -0
  118. package/dist/pilot/index.mjs +196 -0
  119. package/dist/pilot/index.mjs.map +1 -0
  120. package/dist/precheck/index.cjs +277 -0
  121. package/dist/precheck/index.cjs.map +1 -0
  122. package/dist/precheck/index.d.cts +3 -0
  123. package/dist/precheck/index.d.ts +3 -0
  124. package/dist/precheck/index.mjs +274 -0
  125. package/dist/precheck/index.mjs.map +1 -0
  126. package/dist/produce/index.cjs +200 -0
  127. package/dist/produce/index.cjs.map +1 -0
  128. package/dist/produce/index.d.cts +3 -0
  129. package/dist/produce/index.d.ts +3 -0
  130. package/dist/produce/index.mjs +191 -0
  131. package/dist/produce/index.mjs.map +1 -0
  132. package/dist/scan/index.cjs +187 -0
  133. package/dist/scan/index.cjs.map +1 -0
  134. package/dist/scan/index.d.cts +1 -0
  135. package/dist/scan/index.d.ts +1 -0
  136. package/dist/scan/index.mjs +183 -0
  137. package/dist/scan/index.mjs.map +1 -0
  138. package/dist/sigh/index.cjs +203 -0
  139. package/dist/sigh/index.cjs.map +1 -0
  140. package/dist/sigh/index.d.cts +3 -0
  141. package/dist/sigh/index.d.ts +3 -0
  142. package/dist/sigh/index.mjs +198 -0
  143. package/dist/sigh/index.mjs.map +1 -0
  144. package/dist/snapshot/index.cjs +448 -0
  145. package/dist/snapshot/index.cjs.map +1 -0
  146. package/dist/snapshot/index.d.cts +1 -0
  147. package/dist/snapshot/index.d.ts +1 -0
  148. package/dist/snapshot/index.mjs +438 -0
  149. package/dist/snapshot/index.mjs.map +1 -0
  150. package/dist/trainer/index.cjs +395 -0
  151. package/dist/trainer/index.cjs.map +1 -0
  152. package/dist/trainer/index.d.cts +1 -0
  153. package/dist/trainer/index.d.ts +1 -0
  154. package/dist/trainer/index.mjs +372 -0
  155. package/dist/trainer/index.mjs.map +1 -0
  156. package/dist/xcode/index.cjs +188 -0
  157. package/dist/xcode/index.cjs.map +1 -0
  158. package/dist/xcode/index.d.cts +1 -0
  159. package/dist/xcode/index.d.ts +1 -0
  160. package/dist/xcode/index.mjs +176 -0
  161. package/dist/xcode/index.mjs.map +1 -0
  162. package/package.json +223 -0
@@ -0,0 +1,76 @@
1
+ import { A as AppStoreConnectClient, p as CapabilitySettingInput, B as BundleId, o as BundleIdCapability, i as App } from './index-BLubSlgK.cjs';
2
+ import { B as BundleIdPlatform, d as CapabilityType } from './enums-B609j2rb.cjs';
3
+
4
+ interface ProduceOptions {
5
+ client: AppStoreConnectClient;
6
+ bundleIdentifier: string;
7
+ appName: string;
8
+ platform?: BundleIdPlatform;
9
+ sku?: string;
10
+ primaryLocale?: string;
11
+ companyName?: string;
12
+ enableServices?: CapabilityType[];
13
+ }
14
+ /**
15
+ * Map from Fastlane's `produce` service name → App Store Connect
16
+ * `capabilityType`. Ported 1:1 from `produce/lib/produce/service.rb`'s
17
+ * `valid_services_for` list and `update` method, covering every service
18
+ * that Fastlane supports.
19
+ */
20
+ declare const SERVICE_NAME_TO_CAPABILITY: Record<string, CapabilityType>;
21
+ /**
22
+ * Build the `settings` payload for a capability whose service value is
23
+ * more than a plain boolean. Mirrors Fastlane's
24
+ * `Produce::Service#build_settings_for` applied per-service.
25
+ *
26
+ * Returns `undefined` when the service doesn't carry settings or the
27
+ * value is just `true`/`false`.
28
+ */
29
+ declare function buildCapabilitySettings(serviceName: string, value: string | boolean): CapabilitySettingInput[] | undefined;
30
+ declare function registerBundleId(options: {
31
+ client: AppStoreConnectClient;
32
+ identifier: string;
33
+ name: string;
34
+ platform?: BundleIdPlatform;
35
+ }): Promise<BundleId>;
36
+ declare function addCapability(options: {
37
+ client: AppStoreConnectClient;
38
+ bundleIdId: string;
39
+ capabilityType: CapabilityType;
40
+ settings?: CapabilitySettingInput[];
41
+ }): Promise<void>;
42
+ declare function removeCapability(options: {
43
+ client: AppStoreConnectClient;
44
+ capabilityId: string;
45
+ }): Promise<void>;
46
+ declare function listCapabilities(options: {
47
+ client: AppStoreConnectClient;
48
+ bundleIdId: string;
49
+ }): Promise<BundleIdCapability[]>;
50
+ declare function enableServices(options: {
51
+ client: AppStoreConnectClient;
52
+ bundleIdId: string;
53
+ /**
54
+ * Service names (Fastlane style, e.g. `data_protection`, `icloud`).
55
+ * Pass either a plain list of names or a record of name → value, where
56
+ * the value either is `true` or one of the per-service variants handled
57
+ * by `buildCapabilitySettings`.
58
+ */
59
+ services: string[] | Record<string, string | boolean>;
60
+ }): Promise<void>;
61
+ declare function createApp(options: ProduceOptions): Promise<App>;
62
+
63
+ type index_ProduceOptions = ProduceOptions;
64
+ declare const index_SERVICE_NAME_TO_CAPABILITY: typeof SERVICE_NAME_TO_CAPABILITY;
65
+ declare const index_addCapability: typeof addCapability;
66
+ declare const index_buildCapabilitySettings: typeof buildCapabilitySettings;
67
+ declare const index_createApp: typeof createApp;
68
+ declare const index_enableServices: typeof enableServices;
69
+ declare const index_listCapabilities: typeof listCapabilities;
70
+ declare const index_registerBundleId: typeof registerBundleId;
71
+ declare const index_removeCapability: typeof removeCapability;
72
+ declare namespace index {
73
+ export { type index_ProduceOptions as ProduceOptions, index_SERVICE_NAME_TO_CAPABILITY as SERVICE_NAME_TO_CAPABILITY, index_addCapability as addCapability, index_buildCapabilitySettings as buildCapabilitySettings, index_createApp as createApp, index_enableServices as enableServices, index_listCapabilities as listCapabilities, index_registerBundleId as registerBundleId, index_removeCapability as removeCapability };
74
+ }
75
+
76
+ export { type ProduceOptions as P, SERVICE_NAME_TO_CAPABILITY as S, addCapability as a, buildCapabilitySettings as b, removeCapability as c, createApp as d, enableServices as e, index as i, listCapabilities as l, registerBundleId as r };
@@ -0,0 +1,155 @@
1
+ import { E as ExportMethod } from './enums-B609j2rb.js';
2
+
3
+ interface DetectedValues {
4
+ workspace: string | null;
5
+ project: string | null;
6
+ scheme: string;
7
+ configuration: string;
8
+ schemes: string[];
9
+ configurations: string[];
10
+ targets: string[];
11
+ }
12
+ interface XcodeBuildListOutput {
13
+ project?: {
14
+ name: string;
15
+ schemes: string[];
16
+ configurations: string[];
17
+ targets: string[];
18
+ };
19
+ workspace?: {
20
+ name: string;
21
+ schemes: string[];
22
+ };
23
+ }
24
+ /**
25
+ * Auto-detect the Xcode workspace/project, scheme, and configuration.
26
+ *
27
+ * Workspace/project resolution:
28
+ * 1. Explicit option
29
+ * 2. First `.xcworkspace` in searchDir
30
+ * 3. First `.xcodeproj` in searchDir
31
+ *
32
+ * Scheme resolution:
33
+ * 1. Explicit option
34
+ * 2. Sole scheme -> auto-select
35
+ * 3. Scheme matching workspace/project name
36
+ * 4. Error
37
+ */
38
+ declare function detectValues(options: {
39
+ workspace?: string;
40
+ project?: string;
41
+ scheme?: string;
42
+ configuration?: string;
43
+ searchDir?: string;
44
+ }): Promise<DetectedValues>;
45
+
46
+ interface ExportOptionsPlistConfig {
47
+ /** The export method: app-store, ad-hoc, development, enterprise, etc. */
48
+ exportMethod: ExportMethod;
49
+ /** Apple Developer team ID */
50
+ teamId?: string;
51
+ /**
52
+ * Map of bundle identifier to provisioning profile name.
53
+ * e.g. { "com.example.app": "MyApp Distribution" }
54
+ */
55
+ provisioningProfiles?: Record<string, string>;
56
+ /** Whether to include bitcode (deprecated in Xcode 14+, defaults to false) */
57
+ includeBitcode?: boolean;
58
+ /** Whether to include symbols in the export (defaults to true) */
59
+ includeSymbols?: boolean;
60
+ /** Code signing identity, e.g. "Apple Distribution: Company (TEAM_ID)" */
61
+ signingCertificate?: string;
62
+ /** Signing style: "manual" or "automatic" */
63
+ signingStyle?: "manual" | "automatic";
64
+ /** Destination for export: "export" or "upload" */
65
+ destination?: "export" | "upload";
66
+ /** Whether to generate an app thinning report */
67
+ thinning?: string;
68
+ /** Catalyst platform: "macos" or "ios" */
69
+ catalystPlatform?: string;
70
+ /** Additional arbitrary keys to merge into the plist */
71
+ additionalOptions?: Record<string, unknown>;
72
+ }
73
+ /**
74
+ * Build the exportOptions plist dictionary. Returns a plain object that can be
75
+ * serialized to XML plist via the `plist` package.
76
+ */
77
+ declare function buildExportOptions(config: ExportOptionsPlistConfig): Record<string, unknown>;
78
+ /**
79
+ * Generate an exportOptions plist XML string from the given config.
80
+ */
81
+ declare function generateExportOptionsPlistXml(config: ExportOptionsPlistConfig): string;
82
+ /**
83
+ * Write an exportOptions.plist file to disk and return its path.
84
+ *
85
+ * @param dir - Directory to write the file into
86
+ * @param config - Export options configuration
87
+ * @returns The absolute path to the written plist file
88
+ */
89
+ declare function writeExportOptionsPlist(dir: string, config: ExportOptionsPlistConfig): Promise<string>;
90
+
91
+ interface GymOptions {
92
+ scheme: string;
93
+ workspace?: string;
94
+ project?: string;
95
+ configuration?: string;
96
+ exportMethod: ExportMethod;
97
+ teamId?: string;
98
+ provisioningProfiles?: Record<string, string>;
99
+ codeSignIdentity?: string;
100
+ outputDirectory?: string;
101
+ outputName?: string;
102
+ clean?: boolean;
103
+ archivePath?: string;
104
+ derivedDataPath?: string;
105
+ xcargs?: string;
106
+ buildPath?: string;
107
+ includeBitcode?: boolean;
108
+ includeSymbols?: boolean;
109
+ exportOptions?: Record<string, unknown>;
110
+ sdk?: string;
111
+ destination?: string;
112
+ catalystPlatform?: string;
113
+ disableXcpretty?: boolean;
114
+ onOutput?: (chunk: string) => void;
115
+ }
116
+ interface GymResult {
117
+ success: boolean;
118
+ exitCode: number;
119
+ ipaPath: string | null;
120
+ pkgPath: string | null;
121
+ dsymPath: string | null;
122
+ archivePath: string;
123
+ output: string;
124
+ }
125
+ /**
126
+ * Build an iOS/macOS app using xcodebuild archive + exportArchive.
127
+ * This is the TypeScript equivalent of Fastlane's `gym` (alias `build_app`).
128
+ *
129
+ * Steps:
130
+ * 1. requireMacOS("gym")
131
+ * 2. Detect values (workspace/project/scheme/config)
132
+ * 3. Clean if requested
133
+ * 4. Archive via `xcodebuild archive`
134
+ * 5. Generate exportOptionsPlist
135
+ * 6. Export via `xcodebuild -exportArchive`
136
+ * 7. Find IPA/PKG, compress dSYMs
137
+ * 8. Return GymResult
138
+ */
139
+ declare function buildApp(options: GymOptions): Promise<GymResult>;
140
+
141
+ type index_DetectedValues = DetectedValues;
142
+ type index_ExportOptionsPlistConfig = ExportOptionsPlistConfig;
143
+ type index_GymOptions = GymOptions;
144
+ type index_GymResult = GymResult;
145
+ type index_XcodeBuildListOutput = XcodeBuildListOutput;
146
+ declare const index_buildApp: typeof buildApp;
147
+ declare const index_buildExportOptions: typeof buildExportOptions;
148
+ declare const index_detectValues: typeof detectValues;
149
+ declare const index_generateExportOptionsPlistXml: typeof generateExportOptionsPlistXml;
150
+ declare const index_writeExportOptionsPlist: typeof writeExportOptionsPlist;
151
+ declare namespace index {
152
+ export { type index_DetectedValues as DetectedValues, type index_ExportOptionsPlistConfig as ExportOptionsPlistConfig, type index_GymOptions as GymOptions, type index_GymResult as GymResult, type index_XcodeBuildListOutput as XcodeBuildListOutput, index_buildApp as buildApp, index_buildExportOptions as buildExportOptions, index_detectValues as detectValues, index_generateExportOptionsPlistXml as generateExportOptionsPlistXml, index_writeExportOptionsPlist as writeExportOptionsPlist };
153
+ }
154
+
155
+ export { type DetectedValues as D, type ExportOptionsPlistConfig as E, type GymOptions as G, type XcodeBuildListOutput as X, type GymResult as a, buildApp as b, buildExportOptions as c, detectValues as d, generateExportOptionsPlistXml as g, index as i, writeExportOptionsPlist as w };
@@ -0,0 +1,62 @@
1
+ import { A as AppStoreConnectClient } from './index-BLubSlgK.cjs';
2
+
3
+ interface RuleResult {
4
+ passed: boolean;
5
+ message: string;
6
+ }
7
+ /**
8
+ * Rule metadata attached as properties of each rule function. Mirrors
9
+ * Fastlane precheck's `Rule` class attributes (rule.rb, line ~5+).
10
+ *
11
+ * `supportedFields` lists metadata field names this rule applies to. A
12
+ * `null` value means the rule applies to every field (Fastlane's default
13
+ * `supported_fields_symbol_set` return of `nil`).
14
+ */
15
+ interface RuleMetadata {
16
+ key: string;
17
+ envName: string;
18
+ friendlyName: string;
19
+ description: string;
20
+ supportedFields: readonly string[] | null;
21
+ }
22
+ type Rule = ((text: string) => RuleResult) & {
23
+ metadata: RuleMetadata;
24
+ };
25
+ declare const ALL_RULES: Record<string, Rule>;
26
+
27
+ interface PrecheckOptions {
28
+ client: AppStoreConnectClient;
29
+ bundleIdentifier: string;
30
+ includeInAppPurchases?: boolean;
31
+ rules?: PrecheckRule[];
32
+ }
33
+ interface PrecheckRule {
34
+ name: string;
35
+ level: "error" | "warning";
36
+ }
37
+ interface ValidationResult {
38
+ passed: boolean;
39
+ errors: ValidationIssue[];
40
+ warnings: ValidationIssue[];
41
+ }
42
+ interface ValidationIssue {
43
+ rule: string;
44
+ message: string;
45
+ field?: string;
46
+ locale?: string;
47
+ }
48
+ declare function validateMetadata(options: PrecheckOptions): Promise<ValidationResult>;
49
+
50
+ declare const index_ALL_RULES: typeof ALL_RULES;
51
+ type index_PrecheckOptions = PrecheckOptions;
52
+ type index_PrecheckRule = PrecheckRule;
53
+ type index_Rule = Rule;
54
+ type index_RuleResult = RuleResult;
55
+ type index_ValidationIssue = ValidationIssue;
56
+ type index_ValidationResult = ValidationResult;
57
+ declare const index_validateMetadata: typeof validateMetadata;
58
+ declare namespace index {
59
+ export { index_ALL_RULES as ALL_RULES, type index_PrecheckOptions as PrecheckOptions, type index_PrecheckRule as PrecheckRule, type index_Rule as Rule, type index_RuleResult as RuleResult, type index_ValidationIssue as ValidationIssue, type index_ValidationResult as ValidationResult, index_validateMetadata as validateMetadata };
60
+ }
61
+
62
+ export { ALL_RULES as A, type PrecheckOptions as P, type Rule as R, type ValidationResult as V, type PrecheckRule as a, type ValidationIssue as b, type RuleResult as c, index as i, validateMetadata as v };
@@ -0,0 +1,32 @@
1
+ import { C as CertOptions, a as CertResult, c as createCertificate, d as downloadCertificate, f as findValidCertificates, r as revokeCertificate, b as revokeExpiredCertificates } from './cert-owkOFNW8.js';
2
+
3
+ /**
4
+ * Generate EC P-256 CSR — used by App Store Connect API (JWT auth).
5
+ */
6
+ declare function generateCSR(): Promise<{
7
+ csr: string;
8
+ privateKey: string;
9
+ }>;
10
+ /**
11
+ * Generate RSA 2048 CSR — required by Apple Developer Portal (session auth).
12
+ * Matches Fastlane's create_certificate_signing_request which uses RSA 2048.
13
+ */
14
+ declare function generateRSACSR(): {
15
+ csr: string;
16
+ privateKey: string;
17
+ };
18
+
19
+ declare const index_CertOptions: typeof CertOptions;
20
+ declare const index_CertResult: typeof CertResult;
21
+ declare const index_createCertificate: typeof createCertificate;
22
+ declare const index_downloadCertificate: typeof downloadCertificate;
23
+ declare const index_findValidCertificates: typeof findValidCertificates;
24
+ declare const index_generateCSR: typeof generateCSR;
25
+ declare const index_generateRSACSR: typeof generateRSACSR;
26
+ declare const index_revokeCertificate: typeof revokeCertificate;
27
+ declare const index_revokeExpiredCertificates: typeof revokeExpiredCertificates;
28
+ declare namespace index {
29
+ export { index_CertOptions as CertOptions, index_CertResult as CertResult, index_createCertificate as createCertificate, index_downloadCertificate as downloadCertificate, index_findValidCertificates as findValidCertificates, index_generateCSR as generateCSR, index_generateRSACSR as generateRSACSR, index_revokeCertificate as revokeCertificate, index_revokeExpiredCertificates as revokeExpiredCertificates };
30
+ }
31
+
32
+ export { generateRSACSR as a, generateCSR as g, index as i };
@@ -0,0 +1,54 @@
1
+ import { A as AppStoreConnectClient, j as Build } from './index-D1Izm7qt.js';
2
+
3
+ interface PilotUploadOptions {
4
+ ipaPath: string;
5
+ apiKeyId: string;
6
+ apiIssuerId: string;
7
+ apiPrivateKey: string;
8
+ platform?: string;
9
+ timeout?: number;
10
+ onOutput?: (chunk: string) => void;
11
+ }
12
+ interface PilotDistributeOptions {
13
+ client: AppStoreConnectClient;
14
+ buildId: string;
15
+ groupNames?: string[];
16
+ changelog?: string;
17
+ locale?: string;
18
+ expirePreviousBuilds?: boolean;
19
+ submitForReview?: boolean;
20
+ }
21
+ interface UploadResult {
22
+ success: boolean;
23
+ output: string;
24
+ }
25
+ declare function uploadToTestFlight(options: PilotUploadOptions): Promise<UploadResult>;
26
+ declare function waitForProcessing(client: AppStoreConnectClient, params: {
27
+ bundleId: string;
28
+ buildNumber: string;
29
+ appVersion: string;
30
+ timeout?: number;
31
+ pollInterval?: number;
32
+ }): Promise<Build>;
33
+ declare function distributeToGroups(options: PilotDistributeOptions): Promise<string[]>;
34
+ declare function setChangelog(options: {
35
+ client: AppStoreConnectClient;
36
+ buildId: string;
37
+ changelog: string;
38
+ locale?: string;
39
+ }): Promise<void>;
40
+ declare function expireBuild(client: AppStoreConnectClient, buildId: string): Promise<void>;
41
+
42
+ type index_PilotDistributeOptions = PilotDistributeOptions;
43
+ type index_PilotUploadOptions = PilotUploadOptions;
44
+ type index_UploadResult = UploadResult;
45
+ declare const index_distributeToGroups: typeof distributeToGroups;
46
+ declare const index_expireBuild: typeof expireBuild;
47
+ declare const index_setChangelog: typeof setChangelog;
48
+ declare const index_uploadToTestFlight: typeof uploadToTestFlight;
49
+ declare const index_waitForProcessing: typeof waitForProcessing;
50
+ declare namespace index {
51
+ export { type index_PilotDistributeOptions as PilotDistributeOptions, type index_PilotUploadOptions as PilotUploadOptions, type index_UploadResult as UploadResult, index_distributeToGroups as distributeToGroups, index_expireBuild as expireBuild, index_setChangelog as setChangelog, index_uploadToTestFlight as uploadToTestFlight, index_waitForProcessing as waitForProcessing };
52
+ }
53
+
54
+ export { type PilotUploadOptions as P, type UploadResult as U, type PilotDistributeOptions as a, distributeToGroups as d, expireBuild as e, index as i, setChangelog as s, uploadToTestFlight as u, waitForProcessing as w };
@@ -0,0 +1,155 @@
1
+ import { E as ExportMethod } from './enums-B609j2rb.cjs';
2
+
3
+ interface DetectedValues {
4
+ workspace: string | null;
5
+ project: string | null;
6
+ scheme: string;
7
+ configuration: string;
8
+ schemes: string[];
9
+ configurations: string[];
10
+ targets: string[];
11
+ }
12
+ interface XcodeBuildListOutput {
13
+ project?: {
14
+ name: string;
15
+ schemes: string[];
16
+ configurations: string[];
17
+ targets: string[];
18
+ };
19
+ workspace?: {
20
+ name: string;
21
+ schemes: string[];
22
+ };
23
+ }
24
+ /**
25
+ * Auto-detect the Xcode workspace/project, scheme, and configuration.
26
+ *
27
+ * Workspace/project resolution:
28
+ * 1. Explicit option
29
+ * 2. First `.xcworkspace` in searchDir
30
+ * 3. First `.xcodeproj` in searchDir
31
+ *
32
+ * Scheme resolution:
33
+ * 1. Explicit option
34
+ * 2. Sole scheme -> auto-select
35
+ * 3. Scheme matching workspace/project name
36
+ * 4. Error
37
+ */
38
+ declare function detectValues(options: {
39
+ workspace?: string;
40
+ project?: string;
41
+ scheme?: string;
42
+ configuration?: string;
43
+ searchDir?: string;
44
+ }): Promise<DetectedValues>;
45
+
46
+ interface ExportOptionsPlistConfig {
47
+ /** The export method: app-store, ad-hoc, development, enterprise, etc. */
48
+ exportMethod: ExportMethod;
49
+ /** Apple Developer team ID */
50
+ teamId?: string;
51
+ /**
52
+ * Map of bundle identifier to provisioning profile name.
53
+ * e.g. { "com.example.app": "MyApp Distribution" }
54
+ */
55
+ provisioningProfiles?: Record<string, string>;
56
+ /** Whether to include bitcode (deprecated in Xcode 14+, defaults to false) */
57
+ includeBitcode?: boolean;
58
+ /** Whether to include symbols in the export (defaults to true) */
59
+ includeSymbols?: boolean;
60
+ /** Code signing identity, e.g. "Apple Distribution: Company (TEAM_ID)" */
61
+ signingCertificate?: string;
62
+ /** Signing style: "manual" or "automatic" */
63
+ signingStyle?: "manual" | "automatic";
64
+ /** Destination for export: "export" or "upload" */
65
+ destination?: "export" | "upload";
66
+ /** Whether to generate an app thinning report */
67
+ thinning?: string;
68
+ /** Catalyst platform: "macos" or "ios" */
69
+ catalystPlatform?: string;
70
+ /** Additional arbitrary keys to merge into the plist */
71
+ additionalOptions?: Record<string, unknown>;
72
+ }
73
+ /**
74
+ * Build the exportOptions plist dictionary. Returns a plain object that can be
75
+ * serialized to XML plist via the `plist` package.
76
+ */
77
+ declare function buildExportOptions(config: ExportOptionsPlistConfig): Record<string, unknown>;
78
+ /**
79
+ * Generate an exportOptions plist XML string from the given config.
80
+ */
81
+ declare function generateExportOptionsPlistXml(config: ExportOptionsPlistConfig): string;
82
+ /**
83
+ * Write an exportOptions.plist file to disk and return its path.
84
+ *
85
+ * @param dir - Directory to write the file into
86
+ * @param config - Export options configuration
87
+ * @returns The absolute path to the written plist file
88
+ */
89
+ declare function writeExportOptionsPlist(dir: string, config: ExportOptionsPlistConfig): Promise<string>;
90
+
91
+ interface GymOptions {
92
+ scheme: string;
93
+ workspace?: string;
94
+ project?: string;
95
+ configuration?: string;
96
+ exportMethod: ExportMethod;
97
+ teamId?: string;
98
+ provisioningProfiles?: Record<string, string>;
99
+ codeSignIdentity?: string;
100
+ outputDirectory?: string;
101
+ outputName?: string;
102
+ clean?: boolean;
103
+ archivePath?: string;
104
+ derivedDataPath?: string;
105
+ xcargs?: string;
106
+ buildPath?: string;
107
+ includeBitcode?: boolean;
108
+ includeSymbols?: boolean;
109
+ exportOptions?: Record<string, unknown>;
110
+ sdk?: string;
111
+ destination?: string;
112
+ catalystPlatform?: string;
113
+ disableXcpretty?: boolean;
114
+ onOutput?: (chunk: string) => void;
115
+ }
116
+ interface GymResult {
117
+ success: boolean;
118
+ exitCode: number;
119
+ ipaPath: string | null;
120
+ pkgPath: string | null;
121
+ dsymPath: string | null;
122
+ archivePath: string;
123
+ output: string;
124
+ }
125
+ /**
126
+ * Build an iOS/macOS app using xcodebuild archive + exportArchive.
127
+ * This is the TypeScript equivalent of Fastlane's `gym` (alias `build_app`).
128
+ *
129
+ * Steps:
130
+ * 1. requireMacOS("gym")
131
+ * 2. Detect values (workspace/project/scheme/config)
132
+ * 3. Clean if requested
133
+ * 4. Archive via `xcodebuild archive`
134
+ * 5. Generate exportOptionsPlist
135
+ * 6. Export via `xcodebuild -exportArchive`
136
+ * 7. Find IPA/PKG, compress dSYMs
137
+ * 8. Return GymResult
138
+ */
139
+ declare function buildApp(options: GymOptions): Promise<GymResult>;
140
+
141
+ type index_DetectedValues = DetectedValues;
142
+ type index_ExportOptionsPlistConfig = ExportOptionsPlistConfig;
143
+ type index_GymOptions = GymOptions;
144
+ type index_GymResult = GymResult;
145
+ type index_XcodeBuildListOutput = XcodeBuildListOutput;
146
+ declare const index_buildApp: typeof buildApp;
147
+ declare const index_buildExportOptions: typeof buildExportOptions;
148
+ declare const index_detectValues: typeof detectValues;
149
+ declare const index_generateExportOptionsPlistXml: typeof generateExportOptionsPlistXml;
150
+ declare const index_writeExportOptionsPlist: typeof writeExportOptionsPlist;
151
+ declare namespace index {
152
+ export { type index_DetectedValues as DetectedValues, type index_ExportOptionsPlistConfig as ExportOptionsPlistConfig, type index_GymOptions as GymOptions, type index_GymResult as GymResult, type index_XcodeBuildListOutput as XcodeBuildListOutput, index_buildApp as buildApp, index_buildExportOptions as buildExportOptions, index_detectValues as detectValues, index_generateExportOptionsPlistXml as generateExportOptionsPlistXml, index_writeExportOptionsPlist as writeExportOptionsPlist };
153
+ }
154
+
155
+ export { type DetectedValues as D, type ExportOptionsPlistConfig as E, type GymOptions as G, type XcodeBuildListOutput as X, type GymResult as a, buildApp as b, buildExportOptions as c, detectValues as d, generateExportOptionsPlistXml as g, index as i, writeExportOptionsPlist as w };
@@ -0,0 +1,72 @@
1
+ import { A as AppStoreConnectClient } from './index-BLubSlgK.cjs';
2
+ import { C as CertificateType } from './enums-B609j2rb.cjs';
3
+
4
+ type PushCertKind = "development" | "production" | "website" | "voip" | "passbook";
5
+ interface PemOptions {
6
+ client: AppStoreConnectClient;
7
+ bundleIdentifier: string;
8
+ development?: boolean;
9
+ websitePush?: boolean;
10
+ /** Voice-over-IP push cert (Portal type code `E5D663CMZW`). */
11
+ voipPush?: boolean;
12
+ /** Passbook/Wallet cert (Portal type code `Y3B2F3TYSI`). */
13
+ passbook?: boolean;
14
+ outputDir?: string;
15
+ p12Password?: string;
16
+ activeDaysLimit?: number;
17
+ force?: boolean;
18
+ platform?: "ios" | "macos";
19
+ generateP12?: boolean;
20
+ savePrivateKey?: boolean;
21
+ }
22
+ interface PemResult {
23
+ pemPath: string;
24
+ p12Path?: string;
25
+ keyPath?: string;
26
+ expiresAt: Date;
27
+ }
28
+ /**
29
+ * Resolve the push certificate descriptor for the given options. Returns:
30
+ * - `kind`: semantic certificate family (used in filename prefix)
31
+ * - `portalTypeCode`: Apple Developer Portal type code (matches Fastlane's
32
+ * `Spaceship::Portal::Certificate` codes in certificate.rb)
33
+ * - `ascCertificateType`: best-fit ASC `CertificateType` for the ASC API
34
+ * fallback path (note: push certs are really a Portal concept; the ASC
35
+ * cert types here only approximate the platform distinction).
36
+ */
37
+ declare function getPushCertificateType(options: {
38
+ development?: boolean;
39
+ websitePush?: boolean;
40
+ voipPush?: boolean;
41
+ passbook?: boolean;
42
+ platform?: "ios" | "macos";
43
+ }): {
44
+ kind: PushCertKind;
45
+ portalTypeCode: string;
46
+ ascCertificateType: CertificateType;
47
+ };
48
+ declare function createPushCertificate(options: PemOptions): Promise<PemResult>;
49
+ declare function renewPushCertificate(options: PemOptions): Promise<PemResult>;
50
+ declare function checkExpiration(options: {
51
+ client: AppStoreConnectClient;
52
+ bundleIdentifier: string;
53
+ development?: boolean;
54
+ activeDaysLimit?: number;
55
+ }): Promise<{
56
+ valid: boolean;
57
+ daysLeft: number;
58
+ expiresAt: Date | null;
59
+ }>;
60
+
61
+ type index_PemOptions = PemOptions;
62
+ type index_PemResult = PemResult;
63
+ type index_PushCertKind = PushCertKind;
64
+ declare const index_checkExpiration: typeof checkExpiration;
65
+ declare const index_createPushCertificate: typeof createPushCertificate;
66
+ declare const index_getPushCertificateType: typeof getPushCertificateType;
67
+ declare const index_renewPushCertificate: typeof renewPushCertificate;
68
+ declare namespace index {
69
+ export { type index_PemOptions as PemOptions, type index_PemResult as PemResult, type index_PushCertKind as PushCertKind, index_checkExpiration as checkExpiration, index_createPushCertificate as createPushCertificate, index_getPushCertificateType as getPushCertificateType, index_renewPushCertificate as renewPushCertificate };
70
+ }
71
+
72
+ export { type PushCertKind as P, type PemOptions as a, type PemResult as b, createPushCertificate as c, checkExpiration as d, getPushCertificateType as g, index as i, renewPushCertificate as r };
@@ -0,0 +1,54 @@
1
+ import { A as AppStoreConnectClient, j as Build } from './index-BLubSlgK.cjs';
2
+
3
+ interface PilotUploadOptions {
4
+ ipaPath: string;
5
+ apiKeyId: string;
6
+ apiIssuerId: string;
7
+ apiPrivateKey: string;
8
+ platform?: string;
9
+ timeout?: number;
10
+ onOutput?: (chunk: string) => void;
11
+ }
12
+ interface PilotDistributeOptions {
13
+ client: AppStoreConnectClient;
14
+ buildId: string;
15
+ groupNames?: string[];
16
+ changelog?: string;
17
+ locale?: string;
18
+ expirePreviousBuilds?: boolean;
19
+ submitForReview?: boolean;
20
+ }
21
+ interface UploadResult {
22
+ success: boolean;
23
+ output: string;
24
+ }
25
+ declare function uploadToTestFlight(options: PilotUploadOptions): Promise<UploadResult>;
26
+ declare function waitForProcessing(client: AppStoreConnectClient, params: {
27
+ bundleId: string;
28
+ buildNumber: string;
29
+ appVersion: string;
30
+ timeout?: number;
31
+ pollInterval?: number;
32
+ }): Promise<Build>;
33
+ declare function distributeToGroups(options: PilotDistributeOptions): Promise<string[]>;
34
+ declare function setChangelog(options: {
35
+ client: AppStoreConnectClient;
36
+ buildId: string;
37
+ changelog: string;
38
+ locale?: string;
39
+ }): Promise<void>;
40
+ declare function expireBuild(client: AppStoreConnectClient, buildId: string): Promise<void>;
41
+
42
+ type index_PilotDistributeOptions = PilotDistributeOptions;
43
+ type index_PilotUploadOptions = PilotUploadOptions;
44
+ type index_UploadResult = UploadResult;
45
+ declare const index_distributeToGroups: typeof distributeToGroups;
46
+ declare const index_expireBuild: typeof expireBuild;
47
+ declare const index_setChangelog: typeof setChangelog;
48
+ declare const index_uploadToTestFlight: typeof uploadToTestFlight;
49
+ declare const index_waitForProcessing: typeof waitForProcessing;
50
+ declare namespace index {
51
+ export { type index_PilotDistributeOptions as PilotDistributeOptions, type index_PilotUploadOptions as PilotUploadOptions, type index_UploadResult as UploadResult, index_distributeToGroups as distributeToGroups, index_expireBuild as expireBuild, index_setChangelog as setChangelog, index_uploadToTestFlight as uploadToTestFlight, index_waitForProcessing as waitForProcessing };
52
+ }
53
+
54
+ export { type PilotUploadOptions as P, type UploadResult as U, type PilotDistributeOptions as a, distributeToGroups as d, expireBuild as e, index as i, setChangelog as s, uploadToTestFlight as u, waitForProcessing as w };