@limrun/ui 0.14.0-rc.5 → 0.14.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 +9 -26
- package/dist/components/remote-control.d.ts +36 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1189 -1089
- package/package.json +10 -51
- package/src/components/remote-control.tsx +267 -0
- package/src/index.ts +1 -1
- package/vite.config.ts +0 -9
- package/dist/app-store-relay/index.cjs +0 -9
- package/dist/app-store-relay/index.d.ts +0 -204
- package/dist/app-store-relay/index.js +0 -677
- package/dist/app-store-relay/react.cjs +0 -1
- package/dist/app-store-relay/react.d.ts +0 -15
- package/dist/app-store-relay/react.js +0 -69
- package/dist/apple-credentials/index.cjs +0 -1
- package/dist/apple-credentials/index.d.ts +0 -110
- package/dist/apple-credentials/index.js +0 -291
- package/dist/browser-storage-BnO-Ma-e.mjs +0 -219
- package/dist/browser-storage-DLxIqZk5.js +0 -1
- package/dist/client-C9z_sgOf.js +0 -1
- package/dist/client-CFDB4mX5.mjs +0 -191
- package/dist/core/device-install/apple/client.d.ts +0 -18
- package/dist/core/device-install/apple/crypto.d.ts +0 -20
- package/dist/core/device-install/apple/gsa-srp.d.ts +0 -26
- package/dist/core/device-install/apple/index.d.ts +0 -5
- package/dist/core/device-install/apple/provisioning.d.ts +0 -237
- package/dist/core/device-install/apple/relay.d.ts +0 -53
- package/dist/core/device-install/index.d.ts +0 -4
- package/dist/core/device-install/operations/index.d.ts +0 -6
- package/dist/core/device-install/operations/limbuild-client.d.ts +0 -43
- package/dist/core/device-install/operations/operations.d.ts +0 -47
- package/dist/core/device-install/operations/relay-client.d.ts +0 -26
- package/dist/core/device-install/operations/relay-protocol.d.ts +0 -27
- package/dist/core/device-install/operations/usbmux.d.ts +0 -32
- package/dist/core/device-install/operations/webusb.d.ts +0 -21
- package/dist/core/device-install/storage/browser-storage.d.ts +0 -56
- package/dist/core/device-install/storage/index.d.ts +0 -2
- package/dist/core/device-install/storage/secret-store.d.ts +0 -124
- package/dist/core/device-install/types.d.ts +0 -57
- package/dist/core/errors.d.ts +0 -1
- package/dist/core/play-publish/google.d.ts +0 -13
- package/dist/core/play-publish/publish.d.ts +0 -34
- package/dist/device-build/index.cjs +0 -1
- package/dist/device-build/index.d.ts +0 -4
- package/dist/device-build/index.js +0 -85
- package/dist/device-build/react.cjs +0 -1
- package/dist/device-build/react.d.ts +0 -21
- package/dist/device-build/react.js +0 -68
- package/dist/device-build/signing.d.ts +0 -20
- package/dist/device-install/demo/demo.d.ts +0 -0
- package/dist/device-install/index.cjs +0 -1
- package/dist/device-install/index.d.ts +0 -18
- package/dist/device-install/index.js +0 -594
- package/dist/device-install/react.cjs +0 -1
- package/dist/device-install/react.d.ts +0 -24
- package/dist/device-install/react.js +0 -105
- package/dist/errors-BSkqS7U-.js +0 -1
- package/dist/errors-gy8yQJos.mjs +0 -6
- package/dist/gsa-srp-Bme3JLEi.mjs +0 -266
- package/dist/gsa-srp-CCIfUz7Y.js +0 -1
- package/dist/index-ChhtuQ7e.js +0 -22
- package/dist/index-YDu8K9a4.mjs +0 -11279
- package/dist/limbuild-client-BagK_FWE.mjs +0 -83
- package/dist/limbuild-client-CVDwq54z.js +0 -1
- package/dist/play-publish/index.cjs +0 -1
- package/dist/play-publish/index.d.ts +0 -2
- package/dist/play-publish/index.js +0 -109
- package/dist/play-publish/react.cjs +0 -1
- package/dist/play-publish/react.d.ts +0 -31
- package/dist/play-publish/react.js +0 -91
- package/dist/provisioning-CDPvxd1h.mjs +0 -270
- package/dist/provisioning-CbC4h--7.js +0 -1
- package/src/app-store-relay/index.test.ts +0 -60
- package/src/app-store-relay/index.ts +0 -846
- package/src/app-store-relay/react.ts +0 -131
- package/src/apple-credentials/index.test.ts +0 -180
- package/src/apple-credentials/index.ts +0 -388
- package/src/core/device-install/apple/client.ts +0 -150
- package/src/core/device-install/apple/crypto.ts +0 -205
- package/src/core/device-install/apple/gsa-srp.ts +0 -123
- package/src/core/device-install/apple/index.ts +0 -5
- package/src/core/device-install/apple/provisioning.test.ts +0 -114
- package/src/core/device-install/apple/provisioning.ts +0 -419
- package/src/core/device-install/apple/relay.ts +0 -202
- package/src/core/device-install/index.ts +0 -4
- package/src/core/device-install/operations/index.ts +0 -6
- package/src/core/device-install/operations/limbuild-client.ts +0 -144
- package/src/core/device-install/operations/operations.ts +0 -239
- package/src/core/device-install/operations/relay-client.ts +0 -286
- package/src/core/device-install/operations/relay-protocol.ts +0 -71
- package/src/core/device-install/operations/usbmux.ts +0 -270
- package/src/core/device-install/operations/webusb-dom.d.ts +0 -54
- package/src/core/device-install/operations/webusb.ts +0 -110
- package/src/core/device-install/storage/browser-storage.test.ts +0 -65
- package/src/core/device-install/storage/browser-storage.ts +0 -325
- package/src/core/device-install/storage/index.ts +0 -2
- package/src/core/device-install/storage/secret-store.ts +0 -332
- package/src/core/device-install/types.ts +0 -69
- package/src/core/errors.ts +0 -3
- package/src/core/play-publish/google.ts +0 -113
- package/src/core/play-publish/publish.test.ts +0 -68
- package/src/core/play-publish/publish.ts +0 -89
- package/src/device-build/index.ts +0 -42
- package/src/device-build/react.ts +0 -130
- package/src/device-build/signing.ts +0 -94
- package/src/device-install/README.md +0 -423
- package/src/device-install/demo/demo.css +0 -493
- package/src/device-install/demo/demo.tsx +0 -1061
- package/src/device-install/demo/index.html +0 -12
- package/src/device-install/index.ts +0 -50
- package/src/device-install/react.ts +0 -195
- package/src/play-publish/README.md +0 -66
- package/src/play-publish/index.ts +0 -12
- package/src/play-publish/react.ts +0 -208
|
@@ -1,204 +0,0 @@
|
|
|
1
|
-
import { AppleDeveloperPortalAppID, AppleDeveloperPortalDevice, AppleDeveloperPortalResponse, AppleDeveloperPortalTeam, AppleProvisioningRequest, AppleRelayResponse, AppleRelayWebSocketClient } from '../core/device-install/apple';
|
|
2
|
-
export * from '../core/device-install/apple/client';
|
|
3
|
-
export * from '../core/device-install/apple/crypto';
|
|
4
|
-
export * from '../core/device-install/apple/gsa-srp';
|
|
5
|
-
export type { AppleDeveloperPortalAppID, AppleDeveloperPortalDevice, AppleDeveloperPortalResponse, AppleDeveloperPortalTeam, AppleProvisioningRequest, AppleRelayResponse, AppStoreConnectRequest, } from '../core/device-install/apple';
|
|
6
|
-
export { AppleRelayWebSocketClient, fetchAppleAccountSession, openAppleRelayWebSocket, proxyAppStoreConnectRequest, proxyPhoneTwoFactorCode, proxySrpComplete, proxySrpInit, proxyTwoFactorCode, triggerPhoneTwoFactor, triggerTrustedDeviceTwoFactor, } from '../core/device-install/apple';
|
|
7
|
-
export type AppleRelayClientOptions = {
|
|
8
|
-
relay: AppleRelayWebSocketClient;
|
|
9
|
-
};
|
|
10
|
-
export type AppleTeamScopedOptions = AppleRelayClientOptions & {
|
|
11
|
-
teamId?: string;
|
|
12
|
-
};
|
|
13
|
-
export type AppleCertificateKind = 'development' | 'distribution';
|
|
14
|
-
export type AppleProfileKind = 'development' | 'adhoc' | 'appstore';
|
|
15
|
-
export type RequestAppleProvisioningOptions<T = unknown> = AppleRelayClientOptions & {
|
|
16
|
-
request: AppleProvisioningRequest;
|
|
17
|
-
label?: string;
|
|
18
|
-
validatePortalResponse?: boolean;
|
|
19
|
-
mapBody?: (body: AppleDeveloperPortalResponse | undefined, response: AppleRelayResponse<T>) => T;
|
|
20
|
-
};
|
|
21
|
-
export type MappedAppleProvisioningOptions<T> = RequestAppleProvisioningOptions<T> & {
|
|
22
|
-
mapBody: (body: AppleDeveloperPortalResponse | undefined, response: AppleRelayResponse<T>) => T;
|
|
23
|
-
};
|
|
24
|
-
export type ListAppleCertificatesOptions = AppleTeamScopedOptions & {
|
|
25
|
-
certificateKind?: AppleCertificateKind;
|
|
26
|
-
};
|
|
27
|
-
export type CreateAppleCertificateOptions = AppleTeamScopedOptions & {
|
|
28
|
-
certificateKind?: AppleCertificateKind;
|
|
29
|
-
csrPEM: string;
|
|
30
|
-
};
|
|
31
|
-
export type DownloadAppleCertificateOptions = AppleTeamScopedOptions & {
|
|
32
|
-
certificateKind?: AppleCertificateKind;
|
|
33
|
-
certificateId: string;
|
|
34
|
-
};
|
|
35
|
-
export type DeleteAppleCertificateOptions = DownloadAppleCertificateOptions;
|
|
36
|
-
export type ListAppleBundleIDsOptions = AppleTeamScopedOptions & {
|
|
37
|
-
search?: string;
|
|
38
|
-
};
|
|
39
|
-
export type CreateAppleBundleIDOptions = AppleTeamScopedOptions & {
|
|
40
|
-
bundleId: string;
|
|
41
|
-
name?: string;
|
|
42
|
-
};
|
|
43
|
-
export type UpdateAppleBundleIDOptions = AppleTeamScopedOptions & {
|
|
44
|
-
appIdId: string;
|
|
45
|
-
bundleId?: string;
|
|
46
|
-
name?: string;
|
|
47
|
-
};
|
|
48
|
-
export type DeleteAppleBundleIDOptions = AppleTeamScopedOptions & {
|
|
49
|
-
appIdId: string;
|
|
50
|
-
};
|
|
51
|
-
export type ListAppleDevicesOptions = AppleTeamScopedOptions & {
|
|
52
|
-
deviceUDID?: string;
|
|
53
|
-
};
|
|
54
|
-
export type RegisterAppleDeviceOptions = AppleTeamScopedOptions & {
|
|
55
|
-
deviceUDID: string;
|
|
56
|
-
name?: string;
|
|
57
|
-
};
|
|
58
|
-
export type UpdateAppleDeviceOptions = AppleTeamScopedOptions & {
|
|
59
|
-
deviceId: string;
|
|
60
|
-
name?: string;
|
|
61
|
-
};
|
|
62
|
-
export type DeleteAppleDeviceOptions = AppleTeamScopedOptions & {
|
|
63
|
-
deviceId: string;
|
|
64
|
-
};
|
|
65
|
-
export type ListAppleProfilesOptions = AppleTeamScopedOptions & {
|
|
66
|
-
profileKind?: AppleProfileKind;
|
|
67
|
-
bundleId?: string;
|
|
68
|
-
};
|
|
69
|
-
export type CreateAppleProfileOptions = AppleTeamScopedOptions & {
|
|
70
|
-
profileKind?: AppleProfileKind;
|
|
71
|
-
bundleId: string;
|
|
72
|
-
appIdId: string;
|
|
73
|
-
certificateIds: string[];
|
|
74
|
-
/** Devices the profile binds. Ignored for App Store profiles, which bind none. */
|
|
75
|
-
deviceIds?: string[];
|
|
76
|
-
/** Profile name. Required for App Store profiles; there is no default. */
|
|
77
|
-
name?: string;
|
|
78
|
-
};
|
|
79
|
-
export type DownloadAppleProfileOptions = AppleTeamScopedOptions & {
|
|
80
|
-
profileId: string;
|
|
81
|
-
};
|
|
82
|
-
export type DeleteAppleProfileOptions = DownloadAppleProfileOptions;
|
|
83
|
-
export declare function requestAppleProvisioning<T>(options: MappedAppleProvisioningOptions<T>): Promise<T>;
|
|
84
|
-
export declare function requestAppleProvisioning<T = AppleDeveloperPortalResponse>(options: RequestAppleProvisioningOptions<T>): Promise<AppleRelayResponse<T>>;
|
|
85
|
-
export declare function listAppleTeams(options: AppleRelayClientOptions): Promise<AppleDeveloperPortalTeam[]>;
|
|
86
|
-
export declare function listAppleCertificates({ certificateKind, teamId, ...options }: ListAppleCertificatesOptions): Promise<Record<string, unknown>[]>;
|
|
87
|
-
export declare function createAppleCertificate({ certificateKind, teamId, csrPEM, ...options }: CreateAppleCertificateOptions): Promise<Record<string, unknown> | undefined>;
|
|
88
|
-
export declare function downloadAppleCertificate({ certificateKind, certificateId, teamId, ...options }: DownloadAppleCertificateOptions): Promise<AppleRelayResponse>;
|
|
89
|
-
export declare function deleteAppleCertificate({ certificateKind, certificateId, teamId, ...options }: DeleteAppleCertificateOptions): Promise<AppleDeveloperPortalResponse | undefined>;
|
|
90
|
-
export declare function listAppleBundleIDs({ teamId, search, ...options }: ListAppleBundleIDsOptions): Promise<AppleDeveloperPortalAppID[]>;
|
|
91
|
-
export declare function createAppleBundleID({ teamId, bundleId, name, ...options }: CreateAppleBundleIDOptions): Promise<Record<string, unknown> | undefined>;
|
|
92
|
-
export declare function updateAppleBundleID({ teamId, appIdId, bundleId, name, ...options }: UpdateAppleBundleIDOptions): Promise<Record<string, unknown> | undefined>;
|
|
93
|
-
export declare function deleteAppleBundleID({ teamId, appIdId, ...options }: DeleteAppleBundleIDOptions): Promise<AppleDeveloperPortalResponse | undefined>;
|
|
94
|
-
export declare function listAppleDevices({ teamId, deviceUDID, ...options }: ListAppleDevicesOptions): Promise<AppleDeveloperPortalDevice[]>;
|
|
95
|
-
export declare function registerAppleDevice({ teamId, deviceUDID, name, ...options }: RegisterAppleDeviceOptions): Promise<Record<string, unknown> | undefined>;
|
|
96
|
-
export declare function updateAppleDevice({ teamId, deviceId, name, ...options }: UpdateAppleDeviceOptions): Promise<Record<string, unknown> | undefined>;
|
|
97
|
-
export declare function deleteAppleDevice({ teamId, deviceId, ...options }: DeleteAppleDeviceOptions): Promise<AppleDeveloperPortalResponse | undefined>;
|
|
98
|
-
export declare function listAppleProfiles({ profileKind, teamId, bundleId, ...options }: ListAppleProfilesOptions): Promise<Record<string, unknown>[]>;
|
|
99
|
-
export declare function createAppleProfile({ profileKind, teamId, bundleId, appIdId, certificateIds, deviceIds, name, ...options }: CreateAppleProfileOptions): Promise<Record<string, unknown> | undefined>;
|
|
100
|
-
export declare function downloadAppleProfile({ teamId, profileId, ...options }: DownloadAppleProfileOptions): Promise<AppleRelayResponse>;
|
|
101
|
-
export declare function deleteAppleProfile({ teamId, profileId, ...options }: DeleteAppleProfileOptions): Promise<AppleDeveloperPortalResponse | undefined>;
|
|
102
|
-
/**
|
|
103
|
-
* A JSON:API resource returned by the session-authenticated App Store
|
|
104
|
-
* Connect API. Kept loose on purpose: the endpoint is not a public contract
|
|
105
|
-
* and Apple adds attributes freely.
|
|
106
|
-
*/
|
|
107
|
-
export type AppStoreConnectResource = {
|
|
108
|
-
type?: string;
|
|
109
|
-
id?: string;
|
|
110
|
-
attributes?: Record<string, unknown>;
|
|
111
|
-
relationships?: Record<string, unknown>;
|
|
112
|
-
};
|
|
113
|
-
type AppStoreConnectEnvelope = {
|
|
114
|
-
data?: AppStoreConnectResource | AppStoreConnectResource[];
|
|
115
|
-
included?: AppStoreConnectResource[];
|
|
116
|
-
errors?: Array<{
|
|
117
|
-
status?: string;
|
|
118
|
-
code?: string;
|
|
119
|
-
title?: string;
|
|
120
|
-
detail?: string;
|
|
121
|
-
}>;
|
|
122
|
-
};
|
|
123
|
-
export type SwitchAppStoreConnectProviderOptions = AppleRelayClientOptions & {
|
|
124
|
-
/** The numeric provider ID of the team, from the team list's providerId. */
|
|
125
|
-
providerId: string | number;
|
|
126
|
-
};
|
|
127
|
-
/**
|
|
128
|
-
* Points the App Store Connect session at the given team (provider). Must
|
|
129
|
-
* run before any other App Store Connect call when the account belongs to
|
|
130
|
-
* multiple teams, because the session carries an active provider.
|
|
131
|
-
*/
|
|
132
|
-
export declare function switchAppStoreConnectProvider({ relay, providerId, }: SwitchAppStoreConnectProviderOptions): Promise<AppleRelayResponse<Record<string, unknown>>>;
|
|
133
|
-
/**
|
|
134
|
-
* Roles Apple accepts on App Store Connect API keys. APP_MANAGER is enough
|
|
135
|
-
* to upload builds and manage TestFlight, which is why it is the default
|
|
136
|
-
* for keys minted by ensureAppStoreConnectApiKeySecret.
|
|
137
|
-
*/
|
|
138
|
-
export type AppStoreConnectApiKeyRole = 'ADMIN' | 'APP_MANAGER' | 'CUSTOMER_SUPPORT' | 'DEVELOPER' | 'FINANCE' | 'MARKETING' | 'SALES';
|
|
139
|
-
export type ListAppStoreConnectApiKeysOptions = AppleRelayClientOptions;
|
|
140
|
-
/** Lists the team's App Store Connect API keys. Requires an Admin session. */
|
|
141
|
-
export declare function listAppStoreConnectApiKeys({ relay }: ListAppStoreConnectApiKeysOptions): Promise<AppStoreConnectResource[]>;
|
|
142
|
-
export type CreateAppStoreConnectApiKeyOptions = AppleRelayClientOptions & {
|
|
143
|
-
/** Display name of the key. Required; implementors brand keys themselves. */
|
|
144
|
-
nickname: string;
|
|
145
|
-
roles?: AppStoreConnectApiKeyRole[];
|
|
146
|
-
allAppsVisible?: boolean;
|
|
147
|
-
};
|
|
148
|
-
/**
|
|
149
|
-
* Creates a team App Store Connect API key through the logged-in session,
|
|
150
|
-
* the same way the App Store Connect website does. The session user must
|
|
151
|
-
* be a team Admin. The private key is NOT part of the response; download
|
|
152
|
-
* it once with downloadAppStoreConnectApiKeyPrivateKey.
|
|
153
|
-
*/
|
|
154
|
-
export declare function createAppStoreConnectApiKey({ relay, nickname, roles, allAppsVisible, }: CreateAppStoreConnectApiKeyOptions): Promise<AppStoreConnectResource>;
|
|
155
|
-
export type DownloadAppStoreConnectApiKeyOptions = AppleRelayClientOptions & {
|
|
156
|
-
keyId: string;
|
|
157
|
-
};
|
|
158
|
-
export type DownloadedAppStoreConnectApiKey = {
|
|
159
|
-
/** PEM contents of the .p8 private key. */
|
|
160
|
-
privateKeyPem: string;
|
|
161
|
-
/** Issuer ID for JWTs signed with this key, when Apple returned it. */
|
|
162
|
-
issuerId?: string;
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* Downloads the private half of an App Store Connect API key. Apple serves
|
|
166
|
-
* it exactly once per key; afterwards the sparse fieldset comes back empty
|
|
167
|
-
* and the key must be revoked and re-minted.
|
|
168
|
-
*/
|
|
169
|
-
export declare function downloadAppStoreConnectApiKeyPrivateKey({ relay, keyId, }: DownloadAppStoreConnectApiKeyOptions): Promise<DownloadedAppStoreConnectApiKey>;
|
|
170
|
-
export type FindAppStoreConnectAppOptions = AppleRelayClientOptions & {
|
|
171
|
-
bundleId: string;
|
|
172
|
-
};
|
|
173
|
-
/** Looks up the App Store Connect app record for a bundle ID, if any. */
|
|
174
|
-
export declare function findAppStoreConnectApp({ relay, bundleId }: FindAppStoreConnectAppOptions): Promise<AppStoreConnectResource | undefined>;
|
|
175
|
-
export type CreateAppStoreConnectAppOptions = AppleRelayClientOptions & {
|
|
176
|
-
bundleId: string;
|
|
177
|
-
/** App name shown on the App Store. Required; there is no default. */
|
|
178
|
-
name: string;
|
|
179
|
-
/** Unique internal identifier. Defaults to the bundle ID. */
|
|
180
|
-
sku?: string;
|
|
181
|
-
/** Primary App Store locale. Defaults to en-US. */
|
|
182
|
-
primaryLocale?: string;
|
|
183
|
-
/** Version string of the first App Store version. Defaults to 1.0. */
|
|
184
|
-
versionString?: string;
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* Creates the App Store Connect app record for a bundle ID. Only the
|
|
188
|
-
* session-authenticated API can create app records (the key-authenticated
|
|
189
|
-
* public API cannot), which is why this goes through the relay. The body
|
|
190
|
-
* mirrors what the App Store Connect website and fastlane's produce send.
|
|
191
|
-
*/
|
|
192
|
-
export declare function createAppStoreConnectApp({ relay, bundleId, name, sku, primaryLocale, versionString, }: CreateAppStoreConnectAppOptions): Promise<AppStoreConnectResource>;
|
|
193
|
-
export type EnsureAppStoreConnectAppOptions = CreateAppStoreConnectAppOptions;
|
|
194
|
-
/**
|
|
195
|
-
* Returns the App Store Connect app record for the bundle ID, creating it
|
|
196
|
-
* when it does not exist yet. A first-time IPA upload fails without an app
|
|
197
|
-
* record, so run this before the first publish of a new bundle ID.
|
|
198
|
-
*/
|
|
199
|
-
export declare function ensureAppStoreConnectApp(options: EnsureAppStoreConnectAppOptions): Promise<{
|
|
200
|
-
app: AppStoreConnectResource;
|
|
201
|
-
created: boolean;
|
|
202
|
-
}>;
|
|
203
|
-
export declare function assertAppStoreConnectResponseOK(response: AppleRelayResponse<AppStoreConnectEnvelope>, label: string): void;
|
|
204
|
-
export declare function assertAppleDeveloperPortalResponseOK(response: AppleDeveloperPortalResponse | undefined, label: string): void;
|