@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.
- package/README.md +81 -0
- package/bin/fastnode.js +13 -0
- package/bin/fastnode.ts +5 -0
- package/dist/actions/index.cjs +7405 -0
- package/dist/actions/index.cjs.map +1 -0
- package/dist/actions/index.d.cts +15 -0
- package/dist/actions/index.d.ts +15 -0
- package/dist/actions/index.mjs +7377 -0
- package/dist/actions/index.mjs.map +1 -0
- package/dist/cert/index.cjs +219 -0
- package/dist/cert/index.cjs.map +1 -0
- package/dist/cert/index.d.cts +4 -0
- package/dist/cert/index.d.ts +4 -0
- package/dist/cert/index.mjs +191 -0
- package/dist/cert/index.mjs.map +1 -0
- package/dist/cert-BmJGtYtb.d.cts +27 -0
- package/dist/cert-owkOFNW8.d.ts +27 -0
- package/dist/cli/index.cjs +7998 -0
- package/dist/cli/index.cjs.map +1 -0
- package/dist/cli/index.d.cts +9 -0
- package/dist/cli/index.d.ts +9 -0
- package/dist/cli/index.mjs +7972 -0
- package/dist/cli/index.mjs.map +1 -0
- package/dist/client/index.cjs +2592 -0
- package/dist/client/index.cjs.map +1 -0
- package/dist/client/index.d.cts +2 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.mjs +2582 -0
- package/dist/client/index.mjs.map +1 -0
- package/dist/context-CymLkfrS.d.cts +13 -0
- package/dist/context-CymLkfrS.d.ts +13 -0
- package/dist/core/index.cjs +281 -0
- package/dist/core/index.cjs.map +1 -0
- package/dist/core/index.d.cts +1 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.mjs +254 -0
- package/dist/core/index.mjs.map +1 -0
- package/dist/deliver/index.cjs +328 -0
- package/dist/deliver/index.cjs.map +1 -0
- package/dist/deliver/index.d.cts +3 -0
- package/dist/deliver/index.d.ts +3 -0
- package/dist/deliver/index.mjs +322 -0
- package/dist/deliver/index.mjs.map +1 -0
- package/dist/enums-B609j2rb.d.cts +20 -0
- package/dist/enums-B609j2rb.d.ts +20 -0
- package/dist/frameit/index.cjs +247 -0
- package/dist/frameit/index.cjs.map +1 -0
- package/dist/frameit/index.d.cts +1 -0
- package/dist/frameit/index.d.ts +1 -0
- package/dist/frameit/index.mjs +242 -0
- package/dist/frameit/index.mjs.map +1 -0
- package/dist/gym/index.cjs +356 -0
- package/dist/gym/index.cjs.map +1 -0
- package/dist/gym/index.d.cts +2 -0
- package/dist/gym/index.d.ts +2 -0
- package/dist/gym/index.mjs +346 -0
- package/dist/gym/index.mjs.map +1 -0
- package/dist/index-1Vu2cRQ2.d.ts +99 -0
- package/dist/index-A5MimeQk.d.ts +72 -0
- package/dist/index-B0yhu_LZ.d.ts +76 -0
- package/dist/index-B9yXicrQ.d.ts +62 -0
- package/dist/index-BFdNOmPJ.d.cts +53 -0
- package/dist/index-BLubSlgK.d.cts +1513 -0
- package/dist/index-BN0ubxjZ.d.ts +70 -0
- package/dist/index-BQJIJlK7.d.cts +70 -0
- package/dist/index-BYonklf3.d.cts +84 -0
- package/dist/index-BYonklf3.d.ts +84 -0
- package/dist/index-BimqCmY8.d.cts +78 -0
- package/dist/index-BimqCmY8.d.ts +78 -0
- package/dist/index-BoU8qt8r.d.cts +59 -0
- package/dist/index-BoU8qt8r.d.ts +59 -0
- package/dist/index-C2yG3wXA.d.cts +95 -0
- package/dist/index-C2yG3wXA.d.ts +95 -0
- package/dist/index-CR3BFPIz.d.cts +77 -0
- package/dist/index-CR3BFPIz.d.ts +77 -0
- package/dist/index-CWNLnSOL.d.cts +99 -0
- package/dist/index-Cp6cjtd-.d.cts +65 -0
- package/dist/index-Cp6cjtd-.d.ts +65 -0
- package/dist/index-D1Izm7qt.d.ts +1513 -0
- package/dist/index-D5eihzwM.d.cts +76 -0
- package/dist/index-DImN9PWc.d.ts +155 -0
- package/dist/index-DfCUVJX1.d.cts +62 -0
- package/dist/index-DfirmFbC.d.ts +32 -0
- package/dist/index-DkvinY7_.d.ts +54 -0
- package/dist/index-DrUpRXRG.d.cts +155 -0
- package/dist/index-EcVvViW8.d.cts +72 -0
- package/dist/index-HRiaaX-Q.d.cts +54 -0
- package/dist/index-TfXqwuac.d.ts +53 -0
- package/dist/index-lt819Jgj.d.cts +32 -0
- package/dist/index.cjs +8464 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +23 -0
- package/dist/index.d.ts +23 -0
- package/dist/index.mjs +8410 -0
- package/dist/index.mjs.map +1 -0
- package/dist/lane/index.cjs +7641 -0
- package/dist/lane/index.cjs.map +1 -0
- package/dist/lane/index.d.cts +51 -0
- package/dist/lane/index.d.ts +51 -0
- package/dist/lane/index.mjs +7603 -0
- package/dist/lane/index.mjs.map +1 -0
- package/dist/match/index.cjs +942 -0
- package/dist/match/index.cjs.map +1 -0
- package/dist/match/index.d.cts +5 -0
- package/dist/match/index.d.ts +5 -0
- package/dist/match/index.mjs +913 -0
- package/dist/match/index.mjs.map +1 -0
- package/dist/pem/index.cjs +195 -0
- package/dist/pem/index.cjs.map +1 -0
- package/dist/pem/index.d.cts +3 -0
- package/dist/pem/index.d.ts +3 -0
- package/dist/pem/index.mjs +170 -0
- package/dist/pem/index.mjs.map +1 -0
- package/dist/pilot/index.cjs +206 -0
- package/dist/pilot/index.cjs.map +1 -0
- package/dist/pilot/index.d.cts +3 -0
- package/dist/pilot/index.d.ts +3 -0
- package/dist/pilot/index.mjs +196 -0
- package/dist/pilot/index.mjs.map +1 -0
- package/dist/precheck/index.cjs +277 -0
- package/dist/precheck/index.cjs.map +1 -0
- package/dist/precheck/index.d.cts +3 -0
- package/dist/precheck/index.d.ts +3 -0
- package/dist/precheck/index.mjs +274 -0
- package/dist/precheck/index.mjs.map +1 -0
- package/dist/produce/index.cjs +200 -0
- package/dist/produce/index.cjs.map +1 -0
- package/dist/produce/index.d.cts +3 -0
- package/dist/produce/index.d.ts +3 -0
- package/dist/produce/index.mjs +191 -0
- package/dist/produce/index.mjs.map +1 -0
- package/dist/scan/index.cjs +187 -0
- package/dist/scan/index.cjs.map +1 -0
- package/dist/scan/index.d.cts +1 -0
- package/dist/scan/index.d.ts +1 -0
- package/dist/scan/index.mjs +183 -0
- package/dist/scan/index.mjs.map +1 -0
- package/dist/sigh/index.cjs +203 -0
- package/dist/sigh/index.cjs.map +1 -0
- package/dist/sigh/index.d.cts +3 -0
- package/dist/sigh/index.d.ts +3 -0
- package/dist/sigh/index.mjs +198 -0
- package/dist/sigh/index.mjs.map +1 -0
- package/dist/snapshot/index.cjs +448 -0
- package/dist/snapshot/index.cjs.map +1 -0
- package/dist/snapshot/index.d.cts +1 -0
- package/dist/snapshot/index.d.ts +1 -0
- package/dist/snapshot/index.mjs +438 -0
- package/dist/snapshot/index.mjs.map +1 -0
- package/dist/trainer/index.cjs +395 -0
- package/dist/trainer/index.cjs.map +1 -0
- package/dist/trainer/index.d.cts +1 -0
- package/dist/trainer/index.d.ts +1 -0
- package/dist/trainer/index.mjs +372 -0
- package/dist/trainer/index.mjs.map +1 -0
- package/dist/xcode/index.cjs +188 -0
- package/dist/xcode/index.cjs.map +1 -0
- package/dist/xcode/index.d.cts +1 -0
- package/dist/xcode/index.d.ts +1 -0
- package/dist/xcode/index.mjs +176 -0
- package/dist/xcode/index.mjs.map +1 -0
- package/package.json +223 -0
|
@@ -0,0 +1,1513 @@
|
|
|
1
|
+
import { b as Platform, C as CertificateType, a as ProfileState, P as ProfileType, D as DeviceClass, c as DeviceStatus, B as BundleIdPlatform, d as CapabilityType, g as ContentRightsDeclaration, h as BuildProcessingState, A as AppStoreVersionState, R as ReleaseType } from './enums-B609j2rb.cjs';
|
|
2
|
+
|
|
3
|
+
interface TokenConfig {
|
|
4
|
+
keyId: string;
|
|
5
|
+
/** Issuer ID. When absent, the key is treated as an individual key (sub='user'). */
|
|
6
|
+
issuerId?: string;
|
|
7
|
+
privateKey: string;
|
|
8
|
+
enterprise?: boolean;
|
|
9
|
+
duration?: number;
|
|
10
|
+
}
|
|
11
|
+
declare class TokenManager {
|
|
12
|
+
private config;
|
|
13
|
+
private currentToken;
|
|
14
|
+
private expiresAt;
|
|
15
|
+
constructor(config: TokenConfig);
|
|
16
|
+
getToken(): Promise<string>;
|
|
17
|
+
refresh(): Promise<string>;
|
|
18
|
+
invalidate(): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
interface JsonApiResource<T extends string = string, A = Record<string, unknown>> {
|
|
22
|
+
id: string;
|
|
23
|
+
type: T;
|
|
24
|
+
attributes: A;
|
|
25
|
+
relationships?: Record<string, JsonApiRelationship>;
|
|
26
|
+
links?: {
|
|
27
|
+
self?: string;
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
interface JsonApiRelationship {
|
|
31
|
+
data: {
|
|
32
|
+
type: string;
|
|
33
|
+
id: string;
|
|
34
|
+
} | Array<{
|
|
35
|
+
type: string;
|
|
36
|
+
id: string;
|
|
37
|
+
}> | null;
|
|
38
|
+
links?: {
|
|
39
|
+
self?: string;
|
|
40
|
+
related?: string;
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
interface JsonApiResponse<T = JsonApiResource> {
|
|
44
|
+
data: T;
|
|
45
|
+
included?: JsonApiResource[];
|
|
46
|
+
links?: {
|
|
47
|
+
self?: string;
|
|
48
|
+
next?: string;
|
|
49
|
+
first?: string;
|
|
50
|
+
};
|
|
51
|
+
meta?: {
|
|
52
|
+
paging?: {
|
|
53
|
+
total: number;
|
|
54
|
+
limit: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
interface JsonApiListResponse<T = JsonApiResource> {
|
|
59
|
+
data: T[];
|
|
60
|
+
included?: JsonApiResource[];
|
|
61
|
+
links?: {
|
|
62
|
+
self?: string;
|
|
63
|
+
next?: string;
|
|
64
|
+
first?: string;
|
|
65
|
+
};
|
|
66
|
+
meta?: {
|
|
67
|
+
paging?: {
|
|
68
|
+
total: number;
|
|
69
|
+
limit: number;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
interface JsonApiErrorResponse {
|
|
74
|
+
errors: JsonApiError[];
|
|
75
|
+
}
|
|
76
|
+
interface JsonApiError {
|
|
77
|
+
id?: string;
|
|
78
|
+
status: string;
|
|
79
|
+
code: string;
|
|
80
|
+
title: string;
|
|
81
|
+
detail: string;
|
|
82
|
+
source?: {
|
|
83
|
+
pointer?: string;
|
|
84
|
+
parameter?: string;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
interface RequestOptions {
|
|
88
|
+
method?: "GET" | "POST" | "PATCH" | "DELETE";
|
|
89
|
+
body?: unknown;
|
|
90
|
+
params?: Record<string, string | string[] | number | undefined>;
|
|
91
|
+
headers?: Record<string, string>;
|
|
92
|
+
}
|
|
93
|
+
interface ListParams {
|
|
94
|
+
filter?: Record<string, string | string[]>;
|
|
95
|
+
include?: string;
|
|
96
|
+
fields?: Record<string, string>;
|
|
97
|
+
limit?: number;
|
|
98
|
+
sort?: string;
|
|
99
|
+
cursor?: string;
|
|
100
|
+
}
|
|
101
|
+
interface AppStoreConnectConfig {
|
|
102
|
+
keyId: string;
|
|
103
|
+
/** Issuer ID. When absent, the key is treated as an individual key (JWT sub='user'). */
|
|
104
|
+
issuerId?: string;
|
|
105
|
+
privateKey: string;
|
|
106
|
+
enterprise?: boolean;
|
|
107
|
+
tokenDuration?: number;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
declare class AppStoreConnectError extends Error {
|
|
111
|
+
status: number;
|
|
112
|
+
errors: JsonApiErrorResponse["errors"];
|
|
113
|
+
constructor(message: string, status: number, errors?: JsonApiErrorResponse["errors"]);
|
|
114
|
+
}
|
|
115
|
+
declare class RateLimitError extends AppStoreConnectError {
|
|
116
|
+
retryAfter: number;
|
|
117
|
+
constructor(retryAfter: number);
|
|
118
|
+
}
|
|
119
|
+
declare class RequestClient {
|
|
120
|
+
private baseUrl;
|
|
121
|
+
private tokenManager;
|
|
122
|
+
constructor(tokenManager: TokenManager, enterprise?: boolean);
|
|
123
|
+
request<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
124
|
+
get<T>(path: string, params?: Record<string, string | string[] | number | undefined>): Promise<T>;
|
|
125
|
+
post<T>(path: string, body: unknown): Promise<T>;
|
|
126
|
+
patch<T>(path: string, body: unknown): Promise<T>;
|
|
127
|
+
delete(path: string): Promise<void>;
|
|
128
|
+
buildListParams(params: ListParams): Record<string, string | undefined>;
|
|
129
|
+
list<T>(path: string, params?: ListParams): Promise<JsonApiListResponse<T>>;
|
|
130
|
+
paginate<T>(path: string, params?: ListParams): AsyncGenerator<T, void, undefined>;
|
|
131
|
+
all<T>(path: string, params?: ListParams): Promise<T[]>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
interface Certificate {
|
|
135
|
+
id: string;
|
|
136
|
+
type: "certificates";
|
|
137
|
+
attributes: {
|
|
138
|
+
certificateContent: string;
|
|
139
|
+
displayName: string;
|
|
140
|
+
expirationDate: string;
|
|
141
|
+
name: string;
|
|
142
|
+
platform: Platform | null;
|
|
143
|
+
serialNumber: string;
|
|
144
|
+
certificateType: CertificateType;
|
|
145
|
+
requesterEmail: string | null;
|
|
146
|
+
requesterFirstName: string | null;
|
|
147
|
+
requesterLastName: string | null;
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
declare class CertificatesResource {
|
|
152
|
+
private http;
|
|
153
|
+
constructor(http: RequestClient);
|
|
154
|
+
list(params?: {
|
|
155
|
+
filter?: {
|
|
156
|
+
certificateType?: CertificateType | CertificateType[];
|
|
157
|
+
serialNumber?: string;
|
|
158
|
+
displayName?: string;
|
|
159
|
+
id?: string | string[];
|
|
160
|
+
};
|
|
161
|
+
fields?: string[];
|
|
162
|
+
limit?: number;
|
|
163
|
+
sort?: string;
|
|
164
|
+
}): Promise<Certificate[]>;
|
|
165
|
+
get(id: string): Promise<Certificate>;
|
|
166
|
+
create(params: {
|
|
167
|
+
certificateType: CertificateType;
|
|
168
|
+
csrContent: string;
|
|
169
|
+
}): Promise<Certificate>;
|
|
170
|
+
revoke(id: string): Promise<void>;
|
|
171
|
+
paginate(params?: {
|
|
172
|
+
filter?: {
|
|
173
|
+
certificateType?: CertificateType | CertificateType[];
|
|
174
|
+
};
|
|
175
|
+
limit?: number;
|
|
176
|
+
}): AsyncGenerator<Certificate>;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
interface Profile {
|
|
180
|
+
id: string;
|
|
181
|
+
type: "profiles";
|
|
182
|
+
attributes: {
|
|
183
|
+
name: string;
|
|
184
|
+
platform: Platform | null;
|
|
185
|
+
profileContent: string;
|
|
186
|
+
uuid: string;
|
|
187
|
+
createdDate: string;
|
|
188
|
+
profileState: ProfileState;
|
|
189
|
+
profileType: ProfileType;
|
|
190
|
+
expirationDate: string;
|
|
191
|
+
};
|
|
192
|
+
relationships?: {
|
|
193
|
+
bundleId?: {
|
|
194
|
+
data: {
|
|
195
|
+
type: "bundleIds";
|
|
196
|
+
id: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
certificates?: {
|
|
200
|
+
data: Array<{
|
|
201
|
+
type: "certificates";
|
|
202
|
+
id: string;
|
|
203
|
+
}>;
|
|
204
|
+
};
|
|
205
|
+
devices?: {
|
|
206
|
+
data: Array<{
|
|
207
|
+
type: "devices";
|
|
208
|
+
id: string;
|
|
209
|
+
}>;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
interface Device {
|
|
215
|
+
id: string;
|
|
216
|
+
type: "devices";
|
|
217
|
+
attributes: {
|
|
218
|
+
deviceClass: DeviceClass;
|
|
219
|
+
model: string | null;
|
|
220
|
+
name: string;
|
|
221
|
+
platform: Platform;
|
|
222
|
+
status: DeviceStatus;
|
|
223
|
+
udid: string;
|
|
224
|
+
addedDate: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
interface BundleId {
|
|
229
|
+
id: string;
|
|
230
|
+
type: "bundleIds";
|
|
231
|
+
attributes: {
|
|
232
|
+
identifier: string;
|
|
233
|
+
name: string;
|
|
234
|
+
seedId: string;
|
|
235
|
+
platform: BundleIdPlatform;
|
|
236
|
+
};
|
|
237
|
+
relationships?: {
|
|
238
|
+
bundleIdCapabilities?: {
|
|
239
|
+
data: Array<{
|
|
240
|
+
type: "bundleIdCapabilities";
|
|
241
|
+
id: string;
|
|
242
|
+
}>;
|
|
243
|
+
};
|
|
244
|
+
profiles?: {
|
|
245
|
+
data: Array<{
|
|
246
|
+
type: "profiles";
|
|
247
|
+
id: string;
|
|
248
|
+
}>;
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
declare class ProfilesResource {
|
|
254
|
+
private http;
|
|
255
|
+
constructor(http: RequestClient);
|
|
256
|
+
list(params?: {
|
|
257
|
+
filter?: {
|
|
258
|
+
profileType?: ProfileType | ProfileType[];
|
|
259
|
+
profileState?: ProfileState;
|
|
260
|
+
name?: string;
|
|
261
|
+
id?: string | string[];
|
|
262
|
+
};
|
|
263
|
+
include?: string;
|
|
264
|
+
fields?: {
|
|
265
|
+
profiles?: string[];
|
|
266
|
+
certificates?: string[];
|
|
267
|
+
devices?: string[];
|
|
268
|
+
bundleIds?: string[];
|
|
269
|
+
};
|
|
270
|
+
limit?: number;
|
|
271
|
+
sort?: string;
|
|
272
|
+
}): Promise<Profile[]>;
|
|
273
|
+
get(id: string, params?: {
|
|
274
|
+
include?: string;
|
|
275
|
+
}): Promise<Profile>;
|
|
276
|
+
create(params: {
|
|
277
|
+
name: string;
|
|
278
|
+
profileType: ProfileType;
|
|
279
|
+
bundleIdId: string;
|
|
280
|
+
certificateIds: string[];
|
|
281
|
+
deviceIds?: string[];
|
|
282
|
+
}): Promise<Profile>;
|
|
283
|
+
delete(id: string): Promise<void>;
|
|
284
|
+
getCertificates(profileId: string): Promise<Certificate[]>;
|
|
285
|
+
getDevices(profileId: string): Promise<Device[]>;
|
|
286
|
+
getBundleId(profileId: string): Promise<BundleId>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
interface BundleIdCapability {
|
|
290
|
+
id: string;
|
|
291
|
+
type: "bundleIdCapabilities";
|
|
292
|
+
attributes: {
|
|
293
|
+
capabilityType: CapabilityType;
|
|
294
|
+
settings: CapabilitySetting[] | null;
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Input shape for setting a capability's settings on POST/PATCH
|
|
299
|
+
* `/v1/bundleIdCapabilities`. Matches the payload Fastlane's
|
|
300
|
+
* `Produce::Service#build_settings_for` emits (service.rb lines 81-88).
|
|
301
|
+
*/
|
|
302
|
+
interface CapabilitySettingInput {
|
|
303
|
+
key: string;
|
|
304
|
+
options: Array<{
|
|
305
|
+
key: string;
|
|
306
|
+
}>;
|
|
307
|
+
}
|
|
308
|
+
interface CapabilitySetting {
|
|
309
|
+
key: string;
|
|
310
|
+
name: string;
|
|
311
|
+
description: string;
|
|
312
|
+
enabledByDefault: boolean;
|
|
313
|
+
visible: boolean;
|
|
314
|
+
allowedInstances: string;
|
|
315
|
+
minInstances: number;
|
|
316
|
+
options: CapabilityOption[];
|
|
317
|
+
}
|
|
318
|
+
interface CapabilityOption {
|
|
319
|
+
key: string;
|
|
320
|
+
name: string;
|
|
321
|
+
description: string;
|
|
322
|
+
enabledByDefault: boolean;
|
|
323
|
+
enabled: boolean;
|
|
324
|
+
supportsWildcard: boolean;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
declare class BundleIdsResource {
|
|
328
|
+
private http;
|
|
329
|
+
constructor(http: RequestClient);
|
|
330
|
+
list(params?: {
|
|
331
|
+
filter?: {
|
|
332
|
+
identifier?: string;
|
|
333
|
+
name?: string;
|
|
334
|
+
platform?: BundleIdPlatform;
|
|
335
|
+
seedId?: string;
|
|
336
|
+
id?: string | string[];
|
|
337
|
+
};
|
|
338
|
+
include?: string;
|
|
339
|
+
fields?: {
|
|
340
|
+
bundleIds?: string[];
|
|
341
|
+
bundleIdCapabilities?: string[];
|
|
342
|
+
};
|
|
343
|
+
limit?: number;
|
|
344
|
+
sort?: string;
|
|
345
|
+
}): Promise<BundleId[]>;
|
|
346
|
+
get(id: string, params?: {
|
|
347
|
+
include?: string;
|
|
348
|
+
}): Promise<BundleId>;
|
|
349
|
+
create(params: {
|
|
350
|
+
identifier: string;
|
|
351
|
+
name: string;
|
|
352
|
+
platform: BundleIdPlatform;
|
|
353
|
+
seedId?: string;
|
|
354
|
+
}): Promise<BundleId>;
|
|
355
|
+
find(identifier: string): Promise<BundleId | null>;
|
|
356
|
+
getCapabilities(bundleIdId: string): Promise<BundleIdCapability[]>;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
declare class DevicesResource {
|
|
360
|
+
private http;
|
|
361
|
+
constructor(http: RequestClient);
|
|
362
|
+
list(params?: {
|
|
363
|
+
filter?: {
|
|
364
|
+
name?: string;
|
|
365
|
+
platform?: Platform | Platform[];
|
|
366
|
+
status?: DeviceStatus;
|
|
367
|
+
udid?: string;
|
|
368
|
+
id?: string | string[];
|
|
369
|
+
};
|
|
370
|
+
fields?: string[];
|
|
371
|
+
limit?: number;
|
|
372
|
+
sort?: string;
|
|
373
|
+
}): Promise<Device[]>;
|
|
374
|
+
get(id: string): Promise<Device>;
|
|
375
|
+
register(params: {
|
|
376
|
+
name: string;
|
|
377
|
+
platform: Platform;
|
|
378
|
+
udid: string;
|
|
379
|
+
}): Promise<Device>;
|
|
380
|
+
update(id: string, params: {
|
|
381
|
+
name?: string;
|
|
382
|
+
status?: DeviceStatus;
|
|
383
|
+
}): Promise<Device>;
|
|
384
|
+
findByUdid(udid: string): Promise<Device | null>;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
interface App {
|
|
388
|
+
id: string;
|
|
389
|
+
type: "apps";
|
|
390
|
+
attributes: {
|
|
391
|
+
name: string;
|
|
392
|
+
bundleId: string;
|
|
393
|
+
sku: string;
|
|
394
|
+
primaryLocale: string;
|
|
395
|
+
removed: boolean;
|
|
396
|
+
isAAG: boolean;
|
|
397
|
+
availableInNewTerritories: boolean;
|
|
398
|
+
contentRightsDeclaration: ContentRightsDeclaration | null;
|
|
399
|
+
};
|
|
400
|
+
relationships?: {
|
|
401
|
+
appStoreVersions?: {
|
|
402
|
+
data: Array<{
|
|
403
|
+
type: "appStoreVersions";
|
|
404
|
+
id: string;
|
|
405
|
+
}>;
|
|
406
|
+
};
|
|
407
|
+
betaGroups?: {
|
|
408
|
+
data: Array<{
|
|
409
|
+
type: "betaGroups";
|
|
410
|
+
id: string;
|
|
411
|
+
}>;
|
|
412
|
+
};
|
|
413
|
+
};
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
declare class AppsResource {
|
|
417
|
+
private http;
|
|
418
|
+
constructor(http: RequestClient);
|
|
419
|
+
list(params?: {
|
|
420
|
+
filter?: {
|
|
421
|
+
bundleId?: string;
|
|
422
|
+
name?: string;
|
|
423
|
+
sku?: string;
|
|
424
|
+
id?: string | string[];
|
|
425
|
+
};
|
|
426
|
+
include?: string;
|
|
427
|
+
fields?: {
|
|
428
|
+
apps?: string[];
|
|
429
|
+
};
|
|
430
|
+
limit?: number;
|
|
431
|
+
sort?: string;
|
|
432
|
+
}): Promise<App[]>;
|
|
433
|
+
get(id: string, params?: {
|
|
434
|
+
include?: string;
|
|
435
|
+
}): Promise<App>;
|
|
436
|
+
findByBundleId(bundleId: string): Promise<App | null>;
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
interface Build {
|
|
440
|
+
id: string;
|
|
441
|
+
type: "builds";
|
|
442
|
+
attributes: {
|
|
443
|
+
version: string;
|
|
444
|
+
uploadedDate: string;
|
|
445
|
+
expirationDate: string;
|
|
446
|
+
expired: boolean;
|
|
447
|
+
minOsVersion: string | null;
|
|
448
|
+
iconAssetToken: unknown | null;
|
|
449
|
+
processingState: BuildProcessingState;
|
|
450
|
+
buildAudienceType: string | null;
|
|
451
|
+
usesNonExemptEncryption: boolean | null;
|
|
452
|
+
computedMinMacOsVersion: string | null;
|
|
453
|
+
};
|
|
454
|
+
relationships?: {
|
|
455
|
+
app?: {
|
|
456
|
+
data: {
|
|
457
|
+
type: "apps";
|
|
458
|
+
id: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
461
|
+
preReleaseVersion?: {
|
|
462
|
+
data: {
|
|
463
|
+
type: "preReleaseVersions";
|
|
464
|
+
id: string;
|
|
465
|
+
} | null;
|
|
466
|
+
};
|
|
467
|
+
buildBetaDetail?: {
|
|
468
|
+
data: {
|
|
469
|
+
type: "buildBetaDetails";
|
|
470
|
+
id: string;
|
|
471
|
+
} | null;
|
|
472
|
+
};
|
|
473
|
+
betaGroups?: {
|
|
474
|
+
data: Array<{
|
|
475
|
+
type: "betaGroups";
|
|
476
|
+
id: string;
|
|
477
|
+
}>;
|
|
478
|
+
};
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
interface BetaGroup {
|
|
482
|
+
id: string;
|
|
483
|
+
type: "betaGroups";
|
|
484
|
+
attributes: {
|
|
485
|
+
name: string;
|
|
486
|
+
isInternalGroup: boolean;
|
|
487
|
+
publicLinkEnabled: boolean;
|
|
488
|
+
publicLinkId: string | null;
|
|
489
|
+
publicLinkLimit: number | null;
|
|
490
|
+
publicLink: string | null;
|
|
491
|
+
feedbackEnabled: boolean;
|
|
492
|
+
hasAccessToAllBuilds: boolean;
|
|
493
|
+
iosBuildsAvailableForAppleSiliconMac: boolean;
|
|
494
|
+
};
|
|
495
|
+
relationships?: {
|
|
496
|
+
app?: {
|
|
497
|
+
data: {
|
|
498
|
+
type: "apps";
|
|
499
|
+
id: string;
|
|
500
|
+
};
|
|
501
|
+
};
|
|
502
|
+
builds?: {
|
|
503
|
+
data: Array<{
|
|
504
|
+
type: "builds";
|
|
505
|
+
id: string;
|
|
506
|
+
}>;
|
|
507
|
+
};
|
|
508
|
+
betaTesters?: {
|
|
509
|
+
data: Array<{
|
|
510
|
+
type: "betaTesters";
|
|
511
|
+
id: string;
|
|
512
|
+
}>;
|
|
513
|
+
};
|
|
514
|
+
};
|
|
515
|
+
}
|
|
516
|
+
interface BetaBuildLocalization {
|
|
517
|
+
id: string;
|
|
518
|
+
type: "betaBuildLocalizations";
|
|
519
|
+
attributes: {
|
|
520
|
+
whatsNew: string | null;
|
|
521
|
+
locale: string;
|
|
522
|
+
};
|
|
523
|
+
}
|
|
524
|
+
interface BuildBetaDetail {
|
|
525
|
+
id: string;
|
|
526
|
+
type: "buildBetaDetails";
|
|
527
|
+
attributes: {
|
|
528
|
+
autoNotifyEnabled: boolean;
|
|
529
|
+
internalBuildState: string;
|
|
530
|
+
externalBuildState: string;
|
|
531
|
+
};
|
|
532
|
+
}
|
|
533
|
+
interface PreReleaseVersion$1 {
|
|
534
|
+
id: string;
|
|
535
|
+
type: "preReleaseVersions";
|
|
536
|
+
attributes: {
|
|
537
|
+
version: string;
|
|
538
|
+
platform: string;
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
declare class BuildsResource {
|
|
543
|
+
private http;
|
|
544
|
+
constructor(http: RequestClient);
|
|
545
|
+
list(params?: {
|
|
546
|
+
filter?: {
|
|
547
|
+
app?: string;
|
|
548
|
+
version?: string;
|
|
549
|
+
processingState?: string;
|
|
550
|
+
"preReleaseVersion.version"?: string;
|
|
551
|
+
expired?: string;
|
|
552
|
+
id?: string | string[];
|
|
553
|
+
};
|
|
554
|
+
include?: string;
|
|
555
|
+
fields?: {
|
|
556
|
+
builds?: string[];
|
|
557
|
+
};
|
|
558
|
+
limit?: number;
|
|
559
|
+
sort?: string;
|
|
560
|
+
}): Promise<Build[]>;
|
|
561
|
+
get(id: string, params?: {
|
|
562
|
+
include?: string;
|
|
563
|
+
}): Promise<Build>;
|
|
564
|
+
getBetaDetail(buildId: string): Promise<BuildBetaDetail>;
|
|
565
|
+
getLocalizations(buildId: string): Promise<BetaBuildLocalization[]>;
|
|
566
|
+
createLocalization(params: {
|
|
567
|
+
buildId: string;
|
|
568
|
+
locale: string;
|
|
569
|
+
whatsNew: string;
|
|
570
|
+
}): Promise<BetaBuildLocalization>;
|
|
571
|
+
updateLocalization(localizationId: string, params: {
|
|
572
|
+
whatsNew: string;
|
|
573
|
+
}): Promise<BetaBuildLocalization>;
|
|
574
|
+
getPreReleaseVersion(buildId: string): Promise<PreReleaseVersion$1 | null>;
|
|
575
|
+
submitForBetaReview(buildId: string): Promise<void>;
|
|
576
|
+
expireBuild(buildId: string): Promise<void>;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
declare class BetaGroupsResource {
|
|
580
|
+
private http;
|
|
581
|
+
constructor(http: RequestClient);
|
|
582
|
+
list(params?: {
|
|
583
|
+
filter?: {
|
|
584
|
+
app?: string;
|
|
585
|
+
name?: string;
|
|
586
|
+
isInternalGroup?: string;
|
|
587
|
+
id?: string | string[];
|
|
588
|
+
};
|
|
589
|
+
fields?: string[];
|
|
590
|
+
limit?: number;
|
|
591
|
+
sort?: string;
|
|
592
|
+
}): Promise<BetaGroup[]>;
|
|
593
|
+
get(id: string): Promise<BetaGroup>;
|
|
594
|
+
listForApp(appId: string): Promise<BetaGroup[]>;
|
|
595
|
+
addBuilds(groupId: string, buildIds: string[]): Promise<void>;
|
|
596
|
+
removeBuilds(groupId: string, buildIds: string[]): Promise<void>;
|
|
597
|
+
findByName(appId: string, name: string): Promise<BetaGroup | null>;
|
|
598
|
+
}
|
|
599
|
+
|
|
600
|
+
declare class CapabilitiesResource {
|
|
601
|
+
private http;
|
|
602
|
+
constructor(http: RequestClient);
|
|
603
|
+
listForBundleId(bundleIdId: string): Promise<BundleIdCapability[]>;
|
|
604
|
+
enable(params: {
|
|
605
|
+
bundleIdId: string;
|
|
606
|
+
capabilityType: CapabilityType;
|
|
607
|
+
settings?: CapabilitySettingInput[];
|
|
608
|
+
}): Promise<BundleIdCapability>;
|
|
609
|
+
update(capabilityId: string, params: {
|
|
610
|
+
capabilityType: CapabilityType;
|
|
611
|
+
settings?: CapabilitySettingInput[];
|
|
612
|
+
}): Promise<BundleIdCapability>;
|
|
613
|
+
disable(capabilityId: string): Promise<void>;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
interface AppStoreVersion {
|
|
617
|
+
id: string;
|
|
618
|
+
type: "appStoreVersions";
|
|
619
|
+
attributes: {
|
|
620
|
+
platform: Platform;
|
|
621
|
+
versionString: string;
|
|
622
|
+
appStoreState: AppStoreVersionState;
|
|
623
|
+
copyright: string | null;
|
|
624
|
+
releaseType: ReleaseType | null;
|
|
625
|
+
earliestReleaseDate: string | null;
|
|
626
|
+
downloadable: boolean;
|
|
627
|
+
createdDate: string;
|
|
628
|
+
};
|
|
629
|
+
relationships?: {
|
|
630
|
+
app?: {
|
|
631
|
+
data: {
|
|
632
|
+
type: "apps";
|
|
633
|
+
id: string;
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
build?: {
|
|
637
|
+
data: {
|
|
638
|
+
type: "builds";
|
|
639
|
+
id: string;
|
|
640
|
+
} | null;
|
|
641
|
+
};
|
|
642
|
+
appStoreVersionLocalizations?: {
|
|
643
|
+
data: Array<{
|
|
644
|
+
type: "appStoreVersionLocalizations";
|
|
645
|
+
id: string;
|
|
646
|
+
}>;
|
|
647
|
+
};
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
interface AppStoreVersionLocalization {
|
|
651
|
+
id: string;
|
|
652
|
+
type: "appStoreVersionLocalizations";
|
|
653
|
+
attributes: {
|
|
654
|
+
description: string | null;
|
|
655
|
+
locale: string;
|
|
656
|
+
keywords: string | null;
|
|
657
|
+
marketingUrl: string | null;
|
|
658
|
+
promotionalText: string | null;
|
|
659
|
+
supportUrl: string | null;
|
|
660
|
+
whatsNew: string | null;
|
|
661
|
+
};
|
|
662
|
+
}
|
|
663
|
+
declare class AppStoreVersionsResource {
|
|
664
|
+
private http;
|
|
665
|
+
constructor(http: RequestClient);
|
|
666
|
+
listForApp(appId: string, params?: {
|
|
667
|
+
filter?: {
|
|
668
|
+
appStoreState?: AppStoreVersionState | AppStoreVersionState[];
|
|
669
|
+
platform?: Platform;
|
|
670
|
+
};
|
|
671
|
+
include?: string;
|
|
672
|
+
limit?: number;
|
|
673
|
+
}): Promise<AppStoreVersion[]>;
|
|
674
|
+
get(id: string, params?: {
|
|
675
|
+
include?: string;
|
|
676
|
+
}): Promise<AppStoreVersion>;
|
|
677
|
+
create(params: {
|
|
678
|
+
appId: string;
|
|
679
|
+
versionString: string;
|
|
680
|
+
platform: Platform;
|
|
681
|
+
releaseType?: ReleaseType;
|
|
682
|
+
earliestReleaseDate?: string;
|
|
683
|
+
copyright?: string;
|
|
684
|
+
}): Promise<AppStoreVersion>;
|
|
685
|
+
update(id: string, params: {
|
|
686
|
+
versionString?: string;
|
|
687
|
+
copyright?: string;
|
|
688
|
+
releaseType?: ReleaseType;
|
|
689
|
+
earliestReleaseDate?: string | null;
|
|
690
|
+
}): Promise<AppStoreVersion>;
|
|
691
|
+
setBuild(versionId: string, buildId: string): Promise<void>;
|
|
692
|
+
getLocalizations(versionId: string): Promise<AppStoreVersionLocalization[]>;
|
|
693
|
+
createLocalization(params: {
|
|
694
|
+
versionId: string;
|
|
695
|
+
locale: string;
|
|
696
|
+
description?: string;
|
|
697
|
+
keywords?: string;
|
|
698
|
+
marketingUrl?: string;
|
|
699
|
+
promotionalText?: string;
|
|
700
|
+
supportUrl?: string;
|
|
701
|
+
whatsNew?: string;
|
|
702
|
+
}): Promise<AppStoreVersionLocalization>;
|
|
703
|
+
updateLocalization(localizationId: string, params: {
|
|
704
|
+
description?: string;
|
|
705
|
+
keywords?: string;
|
|
706
|
+
marketingUrl?: string;
|
|
707
|
+
promotionalText?: string;
|
|
708
|
+
supportUrl?: string;
|
|
709
|
+
whatsNew?: string;
|
|
710
|
+
}): Promise<AppStoreVersionLocalization>;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
interface AppScreenshotSet {
|
|
714
|
+
id: string;
|
|
715
|
+
type: "appScreenshotSets";
|
|
716
|
+
attributes: {
|
|
717
|
+
screenshotDisplayType: string;
|
|
718
|
+
};
|
|
719
|
+
}
|
|
720
|
+
interface AppScreenshot {
|
|
721
|
+
id: string;
|
|
722
|
+
type: "appScreenshots";
|
|
723
|
+
attributes: {
|
|
724
|
+
fileSize: number;
|
|
725
|
+
fileName: string;
|
|
726
|
+
sourceFileChecksum: string | null;
|
|
727
|
+
imageAsset: {
|
|
728
|
+
templateUrl: string;
|
|
729
|
+
width: number;
|
|
730
|
+
height: number;
|
|
731
|
+
} | null;
|
|
732
|
+
assetToken: string | null;
|
|
733
|
+
assetType: string | null;
|
|
734
|
+
uploadOperations: UploadOperation[] | null;
|
|
735
|
+
assetDeliveryState: {
|
|
736
|
+
state: string;
|
|
737
|
+
errors: unknown[];
|
|
738
|
+
} | null;
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
interface UploadOperation {
|
|
742
|
+
method: string;
|
|
743
|
+
url: string;
|
|
744
|
+
length: number;
|
|
745
|
+
offset: number;
|
|
746
|
+
requestHeaders: Array<{
|
|
747
|
+
name: string;
|
|
748
|
+
value: string;
|
|
749
|
+
}>;
|
|
750
|
+
}
|
|
751
|
+
declare class AppScreenshotsResource {
|
|
752
|
+
private http;
|
|
753
|
+
constructor(http: RequestClient);
|
|
754
|
+
listSetsForLocalization(localizationId: string): Promise<AppScreenshotSet[]>;
|
|
755
|
+
createSet(params: {
|
|
756
|
+
localizationId: string;
|
|
757
|
+
screenshotDisplayType: string;
|
|
758
|
+
}): Promise<AppScreenshotSet>;
|
|
759
|
+
listScreenshots(setId: string): Promise<AppScreenshot[]>;
|
|
760
|
+
reserveScreenshot(params: {
|
|
761
|
+
setId: string;
|
|
762
|
+
fileName: string;
|
|
763
|
+
fileSize: number;
|
|
764
|
+
}): Promise<AppScreenshot>;
|
|
765
|
+
commitScreenshot(screenshotId: string, params: {
|
|
766
|
+
sourceFileChecksum: string;
|
|
767
|
+
uploaded: boolean;
|
|
768
|
+
}): Promise<AppScreenshot>;
|
|
769
|
+
deleteScreenshot(screenshotId: string): Promise<void>;
|
|
770
|
+
deleteSet(setId: string): Promise<void>;
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
interface ReviewSubmission {
|
|
774
|
+
id: string;
|
|
775
|
+
type: "reviewSubmissions";
|
|
776
|
+
attributes: {
|
|
777
|
+
state: string;
|
|
778
|
+
submittedDate: string | null;
|
|
779
|
+
platform: string;
|
|
780
|
+
};
|
|
781
|
+
}
|
|
782
|
+
interface AppStoreVersionSubmission {
|
|
783
|
+
id: string;
|
|
784
|
+
type: "appStoreVersionSubmissions";
|
|
785
|
+
}
|
|
786
|
+
declare class ReviewSubmissionsResource {
|
|
787
|
+
private http;
|
|
788
|
+
constructor(http: RequestClient);
|
|
789
|
+
submitVersion(versionId: string): Promise<AppStoreVersionSubmission>;
|
|
790
|
+
createReviewSubmission(params: {
|
|
791
|
+
appId: string;
|
|
792
|
+
platform: string;
|
|
793
|
+
}): Promise<ReviewSubmission>;
|
|
794
|
+
confirmReviewSubmission(submissionId: string): Promise<ReviewSubmission>;
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* App Info is the metadata container that holds an app's categories, age
|
|
799
|
+
* ratings, and localisations for a single submission cycle. Ported from
|
|
800
|
+
* `spaceship/connect_api/models/app_info.rb`.
|
|
801
|
+
*/
|
|
802
|
+
interface AppInfoAttributes {
|
|
803
|
+
appStoreState?: string | null;
|
|
804
|
+
state?: string | null;
|
|
805
|
+
appStoreAgeRating?: string | null;
|
|
806
|
+
brazilAgeRating?: string | null;
|
|
807
|
+
kidsAgeBand?: string | null;
|
|
808
|
+
}
|
|
809
|
+
type AppInfo = JsonApiResource<"appInfos", AppInfoAttributes>;
|
|
810
|
+
declare class AppInfosResource {
|
|
811
|
+
private http;
|
|
812
|
+
constructor(http: RequestClient);
|
|
813
|
+
listForApp(appId: string, params?: {
|
|
814
|
+
include?: string;
|
|
815
|
+
limit?: number;
|
|
816
|
+
}): Promise<AppInfo[]>;
|
|
817
|
+
get(id: string, params?: {
|
|
818
|
+
include?: string;
|
|
819
|
+
}): Promise<AppInfo>;
|
|
820
|
+
update(id: string, relationships?: Record<string, {
|
|
821
|
+
type: string;
|
|
822
|
+
id: string;
|
|
823
|
+
} | null>): Promise<AppInfo>;
|
|
824
|
+
delete(id: string): Promise<void>;
|
|
825
|
+
}
|
|
826
|
+
|
|
827
|
+
interface AppInfoLocalizationAttributes {
|
|
828
|
+
locale: string;
|
|
829
|
+
name?: string | null;
|
|
830
|
+
subtitle?: string | null;
|
|
831
|
+
privacyPolicyUrl?: string | null;
|
|
832
|
+
privacyChoicesUrl?: string | null;
|
|
833
|
+
privacyPolicyText?: string | null;
|
|
834
|
+
}
|
|
835
|
+
type AppInfoLocalization = JsonApiResource<"appInfoLocalizations", AppInfoLocalizationAttributes>;
|
|
836
|
+
declare class AppInfoLocalizationsResource {
|
|
837
|
+
private http;
|
|
838
|
+
constructor(http: RequestClient);
|
|
839
|
+
listForAppInfo(appInfoId: string, params?: {
|
|
840
|
+
limit?: number;
|
|
841
|
+
}): Promise<AppInfoLocalization[]>;
|
|
842
|
+
get(id: string): Promise<AppInfoLocalization>;
|
|
843
|
+
create(params: {
|
|
844
|
+
appInfoId: string;
|
|
845
|
+
attributes: AppInfoLocalizationAttributes;
|
|
846
|
+
}): Promise<AppInfoLocalization>;
|
|
847
|
+
update(id: string, attributes: Partial<AppInfoLocalizationAttributes>): Promise<AppInfoLocalization>;
|
|
848
|
+
delete(id: string): Promise<void>;
|
|
849
|
+
}
|
|
850
|
+
|
|
851
|
+
interface AppStoreReviewDetailAttributes {
|
|
852
|
+
contactFirstName?: string | null;
|
|
853
|
+
contactLastName?: string | null;
|
|
854
|
+
contactPhone?: string | null;
|
|
855
|
+
contactEmail?: string | null;
|
|
856
|
+
demoAccountName?: string | null;
|
|
857
|
+
demoAccountPassword?: string | null;
|
|
858
|
+
demoAccountRequired?: boolean | null;
|
|
859
|
+
notes?: string | null;
|
|
860
|
+
}
|
|
861
|
+
type AppStoreReviewDetail = JsonApiResource<"appStoreReviewDetails", AppStoreReviewDetailAttributes>;
|
|
862
|
+
declare class AppStoreReviewDetailsResource {
|
|
863
|
+
private http;
|
|
864
|
+
constructor(http: RequestClient);
|
|
865
|
+
getForAppStoreVersion(appStoreVersionId: string): Promise<AppStoreReviewDetail>;
|
|
866
|
+
get(id: string): Promise<AppStoreReviewDetail>;
|
|
867
|
+
create(params: {
|
|
868
|
+
appStoreVersionId: string;
|
|
869
|
+
attributes: AppStoreReviewDetailAttributes;
|
|
870
|
+
}): Promise<AppStoreReviewDetail>;
|
|
871
|
+
update(id: string, attributes: Partial<AppStoreReviewDetailAttributes>): Promise<AppStoreReviewDetail>;
|
|
872
|
+
}
|
|
873
|
+
|
|
874
|
+
interface BetaTesterAttributes {
|
|
875
|
+
firstName?: string | null;
|
|
876
|
+
lastName?: string | null;
|
|
877
|
+
email: string;
|
|
878
|
+
inviteType?: "EMAIL" | "PUBLIC_LINK" | null;
|
|
879
|
+
state?: string | null;
|
|
880
|
+
}
|
|
881
|
+
type BetaTester = JsonApiResource<"betaTesters", BetaTesterAttributes>;
|
|
882
|
+
declare class BetaTestersResource {
|
|
883
|
+
private http;
|
|
884
|
+
constructor(http: RequestClient);
|
|
885
|
+
list(params?: {
|
|
886
|
+
filter?: {
|
|
887
|
+
email?: string;
|
|
888
|
+
firstName?: string;
|
|
889
|
+
lastName?: string;
|
|
890
|
+
inviteType?: string;
|
|
891
|
+
apps?: string | string[];
|
|
892
|
+
betaGroups?: string | string[];
|
|
893
|
+
};
|
|
894
|
+
include?: string;
|
|
895
|
+
limit?: number;
|
|
896
|
+
sort?: string;
|
|
897
|
+
}): Promise<BetaTester[]>;
|
|
898
|
+
get(id: string): Promise<BetaTester>;
|
|
899
|
+
create(params: {
|
|
900
|
+
email: string;
|
|
901
|
+
firstName?: string;
|
|
902
|
+
lastName?: string;
|
|
903
|
+
betaGroupIds?: string[];
|
|
904
|
+
appIds?: string[];
|
|
905
|
+
}): Promise<BetaTester>;
|
|
906
|
+
delete(id: string): Promise<void>;
|
|
907
|
+
findByEmail(email: string): Promise<BetaTester | null>;
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
interface BetaAppReviewSubmissionAttributes {
|
|
911
|
+
betaReviewState?: string | null;
|
|
912
|
+
submittedDate?: string | null;
|
|
913
|
+
}
|
|
914
|
+
type BetaAppReviewSubmission = JsonApiResource<"betaAppReviewSubmissions", BetaAppReviewSubmissionAttributes>;
|
|
915
|
+
declare class BetaAppReviewSubmissionsResource {
|
|
916
|
+
private http;
|
|
917
|
+
constructor(http: RequestClient);
|
|
918
|
+
list(params?: {
|
|
919
|
+
filter?: {
|
|
920
|
+
build?: string | string[];
|
|
921
|
+
betaReviewState?: string;
|
|
922
|
+
};
|
|
923
|
+
limit?: number;
|
|
924
|
+
}): Promise<BetaAppReviewSubmission[]>;
|
|
925
|
+
get(id: string): Promise<BetaAppReviewSubmission>;
|
|
926
|
+
create(buildId: string): Promise<BetaAppReviewSubmission>;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
interface BetaAppReviewDetailAttributes {
|
|
930
|
+
contactFirstName?: string | null;
|
|
931
|
+
contactLastName?: string | null;
|
|
932
|
+
contactPhone?: string | null;
|
|
933
|
+
contactEmail?: string | null;
|
|
934
|
+
demoAccountName?: string | null;
|
|
935
|
+
demoAccountPassword?: string | null;
|
|
936
|
+
demoAccountRequired?: boolean | null;
|
|
937
|
+
notes?: string | null;
|
|
938
|
+
}
|
|
939
|
+
type BetaAppReviewDetail = JsonApiResource<"betaAppReviewDetails", BetaAppReviewDetailAttributes>;
|
|
940
|
+
declare class BetaAppReviewDetailsResource {
|
|
941
|
+
private http;
|
|
942
|
+
constructor(http: RequestClient);
|
|
943
|
+
getForApp(appId: string): Promise<BetaAppReviewDetail>;
|
|
944
|
+
get(id: string): Promise<BetaAppReviewDetail>;
|
|
945
|
+
update(id: string, attributes: Partial<BetaAppReviewDetailAttributes>): Promise<BetaAppReviewDetail>;
|
|
946
|
+
}
|
|
947
|
+
|
|
948
|
+
interface BetaTesterInvitationAttributes {
|
|
949
|
+
[key: string]: unknown;
|
|
950
|
+
}
|
|
951
|
+
type BetaTesterInvitation = JsonApiResource<"betaTesterInvitations", BetaTesterInvitationAttributes>;
|
|
952
|
+
declare class BetaInvitationsResource {
|
|
953
|
+
private http;
|
|
954
|
+
constructor(http: RequestClient);
|
|
955
|
+
/** Send a TestFlight invitation email for an existing tester + app. */
|
|
956
|
+
send(params: {
|
|
957
|
+
appId: string;
|
|
958
|
+
betaTesterId: string;
|
|
959
|
+
}): Promise<BetaTesterInvitation>;
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
interface BetaLicenseAgreementAttributes {
|
|
963
|
+
agreementText?: string | null;
|
|
964
|
+
}
|
|
965
|
+
type BetaLicenseAgreement = JsonApiResource<"betaLicenseAgreements", BetaLicenseAgreementAttributes>;
|
|
966
|
+
declare class BetaLicensesResource {
|
|
967
|
+
private http;
|
|
968
|
+
constructor(http: RequestClient);
|
|
969
|
+
list(params?: {
|
|
970
|
+
limit?: number;
|
|
971
|
+
}): Promise<BetaLicenseAgreement[]>;
|
|
972
|
+
get(id: string): Promise<BetaLicenseAgreement>;
|
|
973
|
+
getForApp(appId: string): Promise<BetaLicenseAgreement>;
|
|
974
|
+
update(id: string, attributes: Partial<BetaLicenseAgreementAttributes>): Promise<BetaLicenseAgreement>;
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
interface AppPreviewAttributes {
|
|
978
|
+
fileSize?: number | null;
|
|
979
|
+
fileName?: string | null;
|
|
980
|
+
sourceFileChecksum?: string | null;
|
|
981
|
+
previewFrameTimeCode?: string | null;
|
|
982
|
+
mimeType?: string | null;
|
|
983
|
+
videoUrl?: string | null;
|
|
984
|
+
previewImage?: {
|
|
985
|
+
templateUrl?: string;
|
|
986
|
+
width?: number;
|
|
987
|
+
height?: number;
|
|
988
|
+
} | null;
|
|
989
|
+
uploadOperations?: unknown[] | null;
|
|
990
|
+
assetDeliveryState?: {
|
|
991
|
+
state?: string;
|
|
992
|
+
} | null;
|
|
993
|
+
uploaded?: boolean | null;
|
|
994
|
+
}
|
|
995
|
+
type AppPreview = JsonApiResource<"appPreviews", AppPreviewAttributes>;
|
|
996
|
+
declare class AppPreviewsResource {
|
|
997
|
+
private http;
|
|
998
|
+
constructor(http: RequestClient);
|
|
999
|
+
get(id: string): Promise<AppPreview>;
|
|
1000
|
+
create(params: {
|
|
1001
|
+
appPreviewSetId: string;
|
|
1002
|
+
fileSize: number;
|
|
1003
|
+
fileName: string;
|
|
1004
|
+
previewFrameTimeCode?: string;
|
|
1005
|
+
mimeType?: string;
|
|
1006
|
+
}): Promise<AppPreview>;
|
|
1007
|
+
update(id: string, attributes: {
|
|
1008
|
+
uploaded?: boolean;
|
|
1009
|
+
sourceFileChecksum?: string;
|
|
1010
|
+
previewFrameTimeCode?: string;
|
|
1011
|
+
}): Promise<AppPreview>;
|
|
1012
|
+
delete(id: string): Promise<void>;
|
|
1013
|
+
}
|
|
1014
|
+
|
|
1015
|
+
interface AppPreviewSetAttributes {
|
|
1016
|
+
previewType?: string | null;
|
|
1017
|
+
}
|
|
1018
|
+
type AppPreviewSet = JsonApiResource<"appPreviewSets", AppPreviewSetAttributes>;
|
|
1019
|
+
declare class AppPreviewSetsResource {
|
|
1020
|
+
private http;
|
|
1021
|
+
constructor(http: RequestClient);
|
|
1022
|
+
listForLocalization(localizationId: string, params?: {
|
|
1023
|
+
limit?: number;
|
|
1024
|
+
include?: string;
|
|
1025
|
+
}): Promise<AppPreviewSet[]>;
|
|
1026
|
+
get(id: string, params?: {
|
|
1027
|
+
include?: string;
|
|
1028
|
+
}): Promise<AppPreviewSet>;
|
|
1029
|
+
create(params: {
|
|
1030
|
+
appStoreVersionLocalizationId: string;
|
|
1031
|
+
previewType: string;
|
|
1032
|
+
}): Promise<AppPreviewSet>;
|
|
1033
|
+
delete(id: string): Promise<void>;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
interface AppPriceAttributes {
|
|
1037
|
+
startDate?: string | null;
|
|
1038
|
+
}
|
|
1039
|
+
type AppPrice = JsonApiResource<"appPrices", AppPriceAttributes>;
|
|
1040
|
+
declare class AppPricesResource {
|
|
1041
|
+
private http;
|
|
1042
|
+
constructor(http: RequestClient);
|
|
1043
|
+
listForApp(appId: string, params?: {
|
|
1044
|
+
include?: string;
|
|
1045
|
+
limit?: number;
|
|
1046
|
+
}): Promise<AppPrice[]>;
|
|
1047
|
+
get(id: string, params?: {
|
|
1048
|
+
include?: string;
|
|
1049
|
+
}): Promise<AppPrice>;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
interface TerritoryAttributes {
|
|
1053
|
+
currency?: string | null;
|
|
1054
|
+
}
|
|
1055
|
+
type Territory = JsonApiResource<"territories", TerritoryAttributes>;
|
|
1056
|
+
declare class TerritoriesResource {
|
|
1057
|
+
private http;
|
|
1058
|
+
constructor(http: RequestClient);
|
|
1059
|
+
list(params?: {
|
|
1060
|
+
limit?: number;
|
|
1061
|
+
}): Promise<Territory[]>;
|
|
1062
|
+
get(id: string): Promise<Territory>;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
interface AgeRatingDeclarationAttributes {
|
|
1066
|
+
alcoholTobaccoOrDrugUseOrReferences?: string | null;
|
|
1067
|
+
contests?: string | null;
|
|
1068
|
+
gamblingSimulated?: string | null;
|
|
1069
|
+
medicalOrTreatmentInformation?: string | null;
|
|
1070
|
+
profanityOrCrudeHumor?: string | null;
|
|
1071
|
+
sexualContentGraphicAndNudity?: string | null;
|
|
1072
|
+
sexualContentOrNudity?: string | null;
|
|
1073
|
+
horrorOrFearThemes?: string | null;
|
|
1074
|
+
matureOrSuggestiveThemes?: string | null;
|
|
1075
|
+
unrestrictedWebAccess?: boolean | null;
|
|
1076
|
+
gamblingAndContests?: boolean | null;
|
|
1077
|
+
gambling?: string | null;
|
|
1078
|
+
violenceCartoonOrFantasy?: string | null;
|
|
1079
|
+
violenceRealistic?: string | null;
|
|
1080
|
+
violenceRealisticProlongedGraphicOrSadistic?: string | null;
|
|
1081
|
+
kidsAgeBand?: string | null;
|
|
1082
|
+
seventeenPlus?: boolean | null;
|
|
1083
|
+
}
|
|
1084
|
+
type AgeRatingDeclaration = JsonApiResource<"ageRatingDeclarations", AgeRatingDeclarationAttributes>;
|
|
1085
|
+
declare class AgeRatingDeclarationsResource {
|
|
1086
|
+
private http;
|
|
1087
|
+
constructor(http: RequestClient);
|
|
1088
|
+
get(id: string): Promise<AgeRatingDeclaration>;
|
|
1089
|
+
update(id: string, attributes: Partial<AgeRatingDeclarationAttributes>): Promise<AgeRatingDeclaration>;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
1092
|
+
interface AppCategoryAttributes {
|
|
1093
|
+
platforms?: string[] | null;
|
|
1094
|
+
}
|
|
1095
|
+
type AppCategory = JsonApiResource<"appCategories", AppCategoryAttributes>;
|
|
1096
|
+
declare class AppCategoriesResource {
|
|
1097
|
+
private http;
|
|
1098
|
+
constructor(http: RequestClient);
|
|
1099
|
+
list(params?: {
|
|
1100
|
+
filter?: {
|
|
1101
|
+
platforms?: string;
|
|
1102
|
+
};
|
|
1103
|
+
include?: string;
|
|
1104
|
+
limit?: number;
|
|
1105
|
+
}): Promise<AppCategory[]>;
|
|
1106
|
+
get(id: string, params?: {
|
|
1107
|
+
include?: string;
|
|
1108
|
+
}): Promise<AppCategory>;
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
interface AppEncryptionDeclarationAttributes {
|
|
1112
|
+
appEncryptionDeclarationState?: string | null;
|
|
1113
|
+
createdDate?: string | null;
|
|
1114
|
+
codeValue?: string | null;
|
|
1115
|
+
usesEncryption?: boolean | null;
|
|
1116
|
+
exempt?: boolean | null;
|
|
1117
|
+
containsProprietaryCryptography?: boolean | null;
|
|
1118
|
+
containsThirdPartyCryptography?: boolean | null;
|
|
1119
|
+
availableOnFrenchStore?: boolean | null;
|
|
1120
|
+
platform?: string | null;
|
|
1121
|
+
uploadedDate?: string | null;
|
|
1122
|
+
documentUrl?: string | null;
|
|
1123
|
+
documentName?: string | null;
|
|
1124
|
+
documentType?: string | null;
|
|
1125
|
+
}
|
|
1126
|
+
type AppEncryptionDeclaration = JsonApiResource<"appEncryptionDeclarations", AppEncryptionDeclarationAttributes>;
|
|
1127
|
+
declare class AppEncryptionDeclarationsResource {
|
|
1128
|
+
private http;
|
|
1129
|
+
constructor(http: RequestClient);
|
|
1130
|
+
list(params?: {
|
|
1131
|
+
filter?: {
|
|
1132
|
+
app?: string;
|
|
1133
|
+
platform?: string;
|
|
1134
|
+
};
|
|
1135
|
+
limit?: number;
|
|
1136
|
+
}): Promise<AppEncryptionDeclaration[]>;
|
|
1137
|
+
get(id: string): Promise<AppEncryptionDeclaration>;
|
|
1138
|
+
assignToBuild(params: {
|
|
1139
|
+
declarationId: string;
|
|
1140
|
+
buildIds: string[];
|
|
1141
|
+
}): Promise<void>;
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1144
|
+
interface IdfaDeclarationAttributes {
|
|
1145
|
+
honorsLimitedAdTracking?: boolean | null;
|
|
1146
|
+
servesAds?: boolean | null;
|
|
1147
|
+
attributesActionWithPreviousAd?: boolean | null;
|
|
1148
|
+
attributesAppInstallationToPreviousAd?: boolean | null;
|
|
1149
|
+
}
|
|
1150
|
+
type IdfaDeclaration = JsonApiResource<"idfaDeclarations", IdfaDeclarationAttributes>;
|
|
1151
|
+
declare class IdfaDeclarationsResource {
|
|
1152
|
+
private http;
|
|
1153
|
+
constructor(http: RequestClient);
|
|
1154
|
+
getForAppStoreVersion(appStoreVersionId: string): Promise<IdfaDeclaration>;
|
|
1155
|
+
get(id: string): Promise<IdfaDeclaration>;
|
|
1156
|
+
create(params: {
|
|
1157
|
+
appStoreVersionId: string;
|
|
1158
|
+
attributes: IdfaDeclarationAttributes;
|
|
1159
|
+
}): Promise<IdfaDeclaration>;
|
|
1160
|
+
update(id: string, attributes: Partial<IdfaDeclarationAttributes>): Promise<IdfaDeclaration>;
|
|
1161
|
+
delete(id: string): Promise<void>;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
interface PreReleaseVersionAttributes {
|
|
1165
|
+
version?: string | null;
|
|
1166
|
+
platform?: string | null;
|
|
1167
|
+
}
|
|
1168
|
+
type PreReleaseVersion = JsonApiResource<"preReleaseVersions", PreReleaseVersionAttributes>;
|
|
1169
|
+
declare class PreReleaseVersionsResource {
|
|
1170
|
+
private http;
|
|
1171
|
+
constructor(http: RequestClient);
|
|
1172
|
+
list(params?: {
|
|
1173
|
+
filter?: {
|
|
1174
|
+
app?: string;
|
|
1175
|
+
version?: string;
|
|
1176
|
+
platform?: string;
|
|
1177
|
+
"builds.expired"?: string;
|
|
1178
|
+
"builds.processingState"?: string;
|
|
1179
|
+
"builds.version"?: string;
|
|
1180
|
+
};
|
|
1181
|
+
include?: string;
|
|
1182
|
+
limit?: number;
|
|
1183
|
+
sort?: string;
|
|
1184
|
+
}): Promise<PreReleaseVersion[]>;
|
|
1185
|
+
get(id: string, params?: {
|
|
1186
|
+
include?: string;
|
|
1187
|
+
}): Promise<PreReleaseVersion>;
|
|
1188
|
+
findByVersion(params: {
|
|
1189
|
+
appId: string;
|
|
1190
|
+
version: string;
|
|
1191
|
+
platform?: string;
|
|
1192
|
+
}): Promise<PreReleaseVersion | null>;
|
|
1193
|
+
}
|
|
1194
|
+
|
|
1195
|
+
interface ReviewSubmissionItemAttributes {
|
|
1196
|
+
state?: string | null;
|
|
1197
|
+
removed?: boolean | null;
|
|
1198
|
+
ready?: boolean | null;
|
|
1199
|
+
}
|
|
1200
|
+
type ReviewSubmissionItem = JsonApiResource<"reviewSubmissionItems", ReviewSubmissionItemAttributes>;
|
|
1201
|
+
declare class ReviewSubmissionItemsResource {
|
|
1202
|
+
private http;
|
|
1203
|
+
constructor(http: RequestClient);
|
|
1204
|
+
listForSubmission(reviewSubmissionId: string, params?: {
|
|
1205
|
+
include?: string;
|
|
1206
|
+
limit?: number;
|
|
1207
|
+
}): Promise<ReviewSubmissionItem[]>;
|
|
1208
|
+
get(id: string): Promise<ReviewSubmissionItem>;
|
|
1209
|
+
create(params: {
|
|
1210
|
+
reviewSubmissionId: string;
|
|
1211
|
+
appStoreVersionId?: string;
|
|
1212
|
+
appCustomProductPageVersionId?: string;
|
|
1213
|
+
appStoreVersionExperimentId?: string;
|
|
1214
|
+
}): Promise<ReviewSubmissionItem>;
|
|
1215
|
+
update(id: string, attributes: {
|
|
1216
|
+
removed?: boolean;
|
|
1217
|
+
}): Promise<ReviewSubmissionItem>;
|
|
1218
|
+
delete(id: string): Promise<void>;
|
|
1219
|
+
}
|
|
1220
|
+
|
|
1221
|
+
interface UserAttributes {
|
|
1222
|
+
username?: string | null;
|
|
1223
|
+
firstName?: string | null;
|
|
1224
|
+
lastName?: string | null;
|
|
1225
|
+
roles?: string[] | null;
|
|
1226
|
+
allAppsVisible?: boolean | null;
|
|
1227
|
+
provisioningAllowed?: boolean | null;
|
|
1228
|
+
}
|
|
1229
|
+
type User = JsonApiResource<"users", UserAttributes>;
|
|
1230
|
+
declare class UsersResource {
|
|
1231
|
+
private http;
|
|
1232
|
+
constructor(http: RequestClient);
|
|
1233
|
+
list(params?: {
|
|
1234
|
+
filter?: {
|
|
1235
|
+
username?: string;
|
|
1236
|
+
roles?: string | string[];
|
|
1237
|
+
};
|
|
1238
|
+
include?: string;
|
|
1239
|
+
limit?: number;
|
|
1240
|
+
sort?: string;
|
|
1241
|
+
}): Promise<User[]>;
|
|
1242
|
+
get(id: string): Promise<User>;
|
|
1243
|
+
update(id: string, attributes: Partial<UserAttributes>, visibleAppIds?: string[]): Promise<User>;
|
|
1244
|
+
delete(id: string): Promise<void>;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
interface UserInvitationAttributes {
|
|
1248
|
+
email: string;
|
|
1249
|
+
firstName?: string | null;
|
|
1250
|
+
lastName?: string | null;
|
|
1251
|
+
expirationDate?: string | null;
|
|
1252
|
+
roles?: string[] | null;
|
|
1253
|
+
allAppsVisible?: boolean | null;
|
|
1254
|
+
provisioningAllowed?: boolean | null;
|
|
1255
|
+
}
|
|
1256
|
+
type UserInvitation = JsonApiResource<"userInvitations", UserInvitationAttributes>;
|
|
1257
|
+
declare class UserInvitationsResource {
|
|
1258
|
+
private http;
|
|
1259
|
+
constructor(http: RequestClient);
|
|
1260
|
+
list(params?: {
|
|
1261
|
+
filter?: {
|
|
1262
|
+
email?: string;
|
|
1263
|
+
roles?: string | string[];
|
|
1264
|
+
};
|
|
1265
|
+
include?: string;
|
|
1266
|
+
limit?: number;
|
|
1267
|
+
sort?: string;
|
|
1268
|
+
}): Promise<UserInvitation[]>;
|
|
1269
|
+
get(id: string): Promise<UserInvitation>;
|
|
1270
|
+
create(params: {
|
|
1271
|
+
attributes: UserInvitationAttributes;
|
|
1272
|
+
visibleAppIds?: string[];
|
|
1273
|
+
}): Promise<UserInvitation>;
|
|
1274
|
+
delete(id: string): Promise<void>;
|
|
1275
|
+
findByEmail(email: string): Promise<UserInvitation | null>;
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
interface InAppPurchaseAttributes {
|
|
1279
|
+
name?: string | null;
|
|
1280
|
+
productId?: string | null;
|
|
1281
|
+
inAppPurchaseType?: string | null;
|
|
1282
|
+
state?: string | null;
|
|
1283
|
+
reviewNote?: string | null;
|
|
1284
|
+
familySharable?: boolean | null;
|
|
1285
|
+
}
|
|
1286
|
+
type InAppPurchase = JsonApiResource<"inAppPurchases" | "inAppPurchasesV2", InAppPurchaseAttributes>;
|
|
1287
|
+
declare class InAppPurchasesResource {
|
|
1288
|
+
private http;
|
|
1289
|
+
constructor(http: RequestClient);
|
|
1290
|
+
listForApp(appId: string, params?: {
|
|
1291
|
+
filter?: {
|
|
1292
|
+
state?: string;
|
|
1293
|
+
inAppPurchaseType?: string;
|
|
1294
|
+
};
|
|
1295
|
+
include?: string;
|
|
1296
|
+
limit?: number;
|
|
1297
|
+
sort?: string;
|
|
1298
|
+
}): Promise<InAppPurchase[]>;
|
|
1299
|
+
get(id: string, params?: {
|
|
1300
|
+
include?: string;
|
|
1301
|
+
}): Promise<InAppPurchase>;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
interface GameCenterDetailAttributes {
|
|
1305
|
+
arcadeEnabled?: boolean | null;
|
|
1306
|
+
challengeEnabled?: boolean | null;
|
|
1307
|
+
}
|
|
1308
|
+
type GameCenterDetail = JsonApiResource<"gameCenterDetails", GameCenterDetailAttributes>;
|
|
1309
|
+
declare class GameCenterDetailResource {
|
|
1310
|
+
private http;
|
|
1311
|
+
constructor(http: RequestClient);
|
|
1312
|
+
getForApp(appId: string): Promise<GameCenterDetail>;
|
|
1313
|
+
get(id: string): Promise<GameCenterDetail>;
|
|
1314
|
+
update(id: string, attributes: Partial<GameCenterDetailAttributes>): Promise<GameCenterDetail>;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* TestFlight / Xcode build metrics. Exposes perf & crash stats per build.
|
|
1319
|
+
* Wraps `/v1/builds/{id}/perfPowerMetrics` and
|
|
1320
|
+
* `/v1/builds/{id}/diagnosticSignatures`.
|
|
1321
|
+
*/
|
|
1322
|
+
interface PerfPowerMetricAttributes {
|
|
1323
|
+
metricCategory?: string | null;
|
|
1324
|
+
platform?: string | null;
|
|
1325
|
+
datasets?: unknown[] | null;
|
|
1326
|
+
}
|
|
1327
|
+
type PerfPowerMetric = JsonApiResource<"perfPowerMetrics", PerfPowerMetricAttributes>;
|
|
1328
|
+
interface DiagnosticSignatureAttributes {
|
|
1329
|
+
signature?: string | null;
|
|
1330
|
+
weight?: number | null;
|
|
1331
|
+
diagnosticType?: string | null;
|
|
1332
|
+
}
|
|
1333
|
+
type DiagnosticSignature = JsonApiResource<"diagnosticSignatures", DiagnosticSignatureAttributes>;
|
|
1334
|
+
declare class XcodeMetricsResource {
|
|
1335
|
+
private http;
|
|
1336
|
+
constructor(http: RequestClient);
|
|
1337
|
+
getPerfPowerMetrics(buildId: string): Promise<PerfPowerMetric[]>;
|
|
1338
|
+
getDiagnosticSignatures(buildId: string): Promise<DiagnosticSignature[]>;
|
|
1339
|
+
getPerfPowerMetric(id: string): Promise<PerfPowerMetric>;
|
|
1340
|
+
getDiagnosticSignature(id: string): Promise<DiagnosticSignature>;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* Apple ID Session Authentication
|
|
1345
|
+
* 1:1 port of Fastlane Spaceship client.rb + two_step_or_factor_client.rb
|
|
1346
|
+
*
|
|
1347
|
+
* Flow: SIRP auth → handle 2FA → olympus session → done
|
|
1348
|
+
*/
|
|
1349
|
+
interface AppleSessionConfig {
|
|
1350
|
+
email: string;
|
|
1351
|
+
password: string;
|
|
1352
|
+
onLog?: (msg: string) => void;
|
|
1353
|
+
onPrompt?: (msg: string) => Promise<string>;
|
|
1354
|
+
}
|
|
1355
|
+
interface ContractMessage {
|
|
1356
|
+
id: string;
|
|
1357
|
+
group: string;
|
|
1358
|
+
subject: string;
|
|
1359
|
+
message: string;
|
|
1360
|
+
}
|
|
1361
|
+
interface AppleSession {
|
|
1362
|
+
cookies: Record<string, string>;
|
|
1363
|
+
sessionId: string;
|
|
1364
|
+
scnt: string;
|
|
1365
|
+
serviceKey: string;
|
|
1366
|
+
userEmail: string;
|
|
1367
|
+
teamId?: string;
|
|
1368
|
+
pendingAgreements: ContractMessage[];
|
|
1369
|
+
}
|
|
1370
|
+
/** Thrown when an Apple Developer Program agreement needs to be accepted */
|
|
1371
|
+
declare class ProgramLicenseAgreementError extends Error {
|
|
1372
|
+
agreements: ContractMessage[];
|
|
1373
|
+
constructor(message: string, agreements: ContractMessage[]);
|
|
1374
|
+
}
|
|
1375
|
+
/**
|
|
1376
|
+
* Check a portal API response for agreement/license errors.
|
|
1377
|
+
* Throws ProgramLicenseAgreementError if detected.
|
|
1378
|
+
* Call this after any portal API call. Mirrors Spaceship::Client#handle_itc_response.
|
|
1379
|
+
*/
|
|
1380
|
+
declare function checkPortalResponse(body: any, session?: AppleSession): void;
|
|
1381
|
+
declare function loginWithAppleId(config: AppleSessionConfig): Promise<AppleSession>;
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* Apple Developer Portal Client
|
|
1385
|
+
* 1:1 port of Fastlane Spaceship PortalClient
|
|
1386
|
+
*
|
|
1387
|
+
* Uses session cookies (from loginWithAppleId) to talk to
|
|
1388
|
+
* developer.apple.com/services-account/QH65B2/
|
|
1389
|
+
*
|
|
1390
|
+
* This is the web portal API — separate from the ASC REST API (JWT).
|
|
1391
|
+
* Fastlane uses this for: certs, profiles, devices, bundle IDs, app groups, etc.
|
|
1392
|
+
*/
|
|
1393
|
+
|
|
1394
|
+
declare class PortalClient {
|
|
1395
|
+
private session;
|
|
1396
|
+
private teamId;
|
|
1397
|
+
private csrf;
|
|
1398
|
+
private csrfTs;
|
|
1399
|
+
private cookieStr;
|
|
1400
|
+
constructor(session: AppleSession, teamId: string);
|
|
1401
|
+
/** Initialize CSRF tokens — must be called before mutations */
|
|
1402
|
+
init(): Promise<void>;
|
|
1403
|
+
private post;
|
|
1404
|
+
listTeams(): Promise<any[]>;
|
|
1405
|
+
listAppIds(): Promise<any[]>;
|
|
1406
|
+
createAppId(params: {
|
|
1407
|
+
identifier: string;
|
|
1408
|
+
name: string;
|
|
1409
|
+
enablePush?: boolean;
|
|
1410
|
+
enableIAP?: boolean;
|
|
1411
|
+
}): Promise<any>;
|
|
1412
|
+
deleteAppId(appIdId: string): Promise<void>;
|
|
1413
|
+
listCertificates(types?: string[]): Promise<any[]>;
|
|
1414
|
+
listPushCertificates(): Promise<any[]>;
|
|
1415
|
+
createCertificate(params: {
|
|
1416
|
+
type: string;
|
|
1417
|
+
csrContent: string;
|
|
1418
|
+
appIdId?: string;
|
|
1419
|
+
}): Promise<any>;
|
|
1420
|
+
downloadCertificate(certId: string, type: string): Promise<Buffer>;
|
|
1421
|
+
revokeCertificate(certId: string, type: string): Promise<void>;
|
|
1422
|
+
listDevices(): Promise<any[]>;
|
|
1423
|
+
registerDevice(params: {
|
|
1424
|
+
name: string;
|
|
1425
|
+
udid: string;
|
|
1426
|
+
deviceClass?: string;
|
|
1427
|
+
}): Promise<any>;
|
|
1428
|
+
listProfiles(): Promise<any[]>;
|
|
1429
|
+
createProfile(params: {
|
|
1430
|
+
appIdId: string;
|
|
1431
|
+
name: string;
|
|
1432
|
+
distributionType: string;
|
|
1433
|
+
certificateIds: string[];
|
|
1434
|
+
deviceIds?: string[];
|
|
1435
|
+
}): Promise<any>;
|
|
1436
|
+
deleteProfile(profileId: string): Promise<void>;
|
|
1437
|
+
downloadProfile(profileId: string): Promise<Buffer>;
|
|
1438
|
+
/**
|
|
1439
|
+
* Apple certificate type codes — copied 1:1 from Fastlane's
|
|
1440
|
+
* spaceship/portal/certificate.rb IOS_CERTIFICATE_TYPE_IDS / MAC_CERTIFICATE_TYPE_IDS
|
|
1441
|
+
*/
|
|
1442
|
+
static CERT_TYPES: {
|
|
1443
|
+
readonly IOS_DEVELOPMENT: "5QPB9NHCEI";
|
|
1444
|
+
readonly IOS_DISTRIBUTION: "R58UK2EWSO";
|
|
1445
|
+
readonly IOS_IN_HOUSE: "9RQEK7MSXA";
|
|
1446
|
+
readonly IOS_DEVELOPMENT_PUSH: "JKG5JZ54H7";
|
|
1447
|
+
readonly IOS_PRODUCTION_PUSH: "UPV3DW712I";
|
|
1448
|
+
readonly APPLE_PUSH_PRODUCTION: "UPV3DW712I";
|
|
1449
|
+
readonly APPLE_PUSH_SANDBOX: "JKG5JZ54H7";
|
|
1450
|
+
readonly PASSBOOK: "Y3B2F3TYSI";
|
|
1451
|
+
readonly WEBSITE_PUSH: "3T2ZP62QW8";
|
|
1452
|
+
readonly VOIP_PUSH: "E5D663CMZW";
|
|
1453
|
+
readonly APPLE_PAY: "4APLUP237T";
|
|
1454
|
+
readonly APPLE_PAY_MERCHANT_IDENTITY: "MD8Q2VRT6A";
|
|
1455
|
+
readonly APPLE_DEVELOPMENT: "83Q87W3TGH";
|
|
1456
|
+
readonly APPLE_DISTRIBUTION: "WXV89964HE";
|
|
1457
|
+
readonly MAC_DEVELOPMENT: "749Y1QAGU7";
|
|
1458
|
+
readonly MAC_APP_DISTRIBUTION: "HXZEUKP0FP";
|
|
1459
|
+
readonly MAC_INSTALLER_DISTRIBUTION: "2PQI8IDXNH";
|
|
1460
|
+
readonly MAC_PRODUCTION_PUSH: "CDZ7EMXIZ1";
|
|
1461
|
+
readonly MAC_DEVELOPMENT_PUSH: "HQ4KP3I34R";
|
|
1462
|
+
readonly DEVELOPER_ID_APPLICATION: "DIVN2GW3XT";
|
|
1463
|
+
readonly DEVELOPER_ID_INSTALLER: "OYVN2GW35E";
|
|
1464
|
+
};
|
|
1465
|
+
/**
|
|
1466
|
+
* Legacy iOS certificate type codes that can still appear in the portal
|
|
1467
|
+
* responses. Port of Fastlane's Spaceship::Portal::Certificate
|
|
1468
|
+
* OLDER_IOS_CERTIFICATE_TYPES list (certificate.rb lines 180-189).
|
|
1469
|
+
*/
|
|
1470
|
+
static OLDER_IOS_CERTIFICATE_TYPES: readonly string[];
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1473
|
+
declare class AppStoreConnectClient {
|
|
1474
|
+
readonly http: RequestClient;
|
|
1475
|
+
readonly certificates: CertificatesResource;
|
|
1476
|
+
readonly profiles: ProfilesResource;
|
|
1477
|
+
readonly bundleIds: BundleIdsResource;
|
|
1478
|
+
readonly devices: DevicesResource;
|
|
1479
|
+
readonly apps: AppsResource;
|
|
1480
|
+
readonly builds: BuildsResource;
|
|
1481
|
+
readonly betaGroups: BetaGroupsResource;
|
|
1482
|
+
readonly capabilities: CapabilitiesResource;
|
|
1483
|
+
readonly appStoreVersions: AppStoreVersionsResource;
|
|
1484
|
+
readonly appScreenshots: AppScreenshotsResource;
|
|
1485
|
+
readonly reviewSubmissions: ReviewSubmissionsResource;
|
|
1486
|
+
readonly appInfos: AppInfosResource;
|
|
1487
|
+
readonly appInfoLocalizations: AppInfoLocalizationsResource;
|
|
1488
|
+
readonly appStoreReviewDetails: AppStoreReviewDetailsResource;
|
|
1489
|
+
readonly betaTesters: BetaTestersResource;
|
|
1490
|
+
readonly betaAppReviewSubmissions: BetaAppReviewSubmissionsResource;
|
|
1491
|
+
readonly betaAppReviewDetails: BetaAppReviewDetailsResource;
|
|
1492
|
+
readonly betaInvitations: BetaInvitationsResource;
|
|
1493
|
+
readonly betaLicenses: BetaLicensesResource;
|
|
1494
|
+
readonly appPreviews: AppPreviewsResource;
|
|
1495
|
+
readonly appPreviewSets: AppPreviewSetsResource;
|
|
1496
|
+
readonly appPrices: AppPricesResource;
|
|
1497
|
+
readonly territories: TerritoriesResource;
|
|
1498
|
+
readonly ageRatingDeclarations: AgeRatingDeclarationsResource;
|
|
1499
|
+
readonly appCategories: AppCategoriesResource;
|
|
1500
|
+
readonly appEncryptionDeclarations: AppEncryptionDeclarationsResource;
|
|
1501
|
+
readonly idfaDeclarations: IdfaDeclarationsResource;
|
|
1502
|
+
readonly preReleaseVersions: PreReleaseVersionsResource;
|
|
1503
|
+
readonly reviewSubmissionItems: ReviewSubmissionItemsResource;
|
|
1504
|
+
readonly users: UsersResource;
|
|
1505
|
+
readonly userInvitations: UserInvitationsResource;
|
|
1506
|
+
readonly inAppPurchases: InAppPurchasesResource;
|
|
1507
|
+
readonly gameCenterDetail: GameCenterDetailResource;
|
|
1508
|
+
readonly xcodeMetrics: XcodeMetricsResource;
|
|
1509
|
+
constructor(config: AppStoreConnectConfig);
|
|
1510
|
+
request<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
1511
|
+
}
|
|
1512
|
+
|
|
1513
|
+
export { type JsonApiErrorResponse as $, AppStoreConnectClient as A, type BundleId as B, type Certificate as C, type Device as D, AppStoreVersionsResource as E, type AppStoreVersion as F, type AppStoreVersionLocalization as G, AppScreenshotsResource as H, type AppScreenshot as I, type JsonApiResource as J, type AppScreenshotSet as K, type ListParams as L, ReviewSubmissionsResource as M, type ReviewSubmission as N, type AppStoreVersionSubmission as O, type Profile as P, loginWithAppleId as Q, RequestClient as R, checkPortalResponse as S, TokenManager as T, type UploadOperation as U, ProgramLicenseAgreementError as V, type AppleSessionConfig as W, type AppleSession as X, type ContractMessage as Y, PortalClient as Z, type JsonApiRelationship as _, AppStoreConnectError as a, RateLimitError as b, type AppStoreConnectConfig as c, type TokenConfig as d, type RequestOptions as e, type JsonApiResponse as f, type JsonApiListResponse as g, type JsonApiError as h, type App as i, type Build as j, type BetaGroup as k, type BetaBuildLocalization as l, type BuildBetaDetail as m, type PreReleaseVersion$1 as n, type BundleIdCapability as o, type CapabilitySettingInput as p, type CapabilitySetting as q, type CapabilityOption as r, CertificatesResource as s, ProfilesResource as t, BundleIdsResource as u, DevicesResource as v, AppsResource as w, BuildsResource as x, BetaGroupsResource as y, CapabilitiesResource as z };
|