keymaster-api-protocol 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/methods.gen.d.ts +7 -1
- package/dist/methods.gen.js +28 -4
- package/dist/types.gen.d.ts +62 -50
- package/package.json +1 -1
package/dist/methods.gen.d.ts
CHANGED
|
@@ -19,13 +19,19 @@ export declare const MethodConnectDeploymentInstall = "connect.deployment.instal
|
|
|
19
19
|
export declare const MethodConnectDeploymentList = "connect.deployment.list";
|
|
20
20
|
export declare const MethodConnectDeploymentStart = "connect.deployment.start";
|
|
21
21
|
export declare const MethodConnectDeploymentStop = "connect.deployment.stop";
|
|
22
|
-
export declare const MethodConnectDirectoryAdd = "connect.directory.add";
|
|
23
22
|
export declare const MethodConnectDirectoryFavorite = "connect.directory.favorite";
|
|
24
23
|
export declare const MethodConnectDirectoryList = "connect.directory.list";
|
|
25
24
|
export declare const MethodConnectDirectoryRemove = "connect.directory.remove";
|
|
26
25
|
export declare const MethodConnectDirectorySelect = "connect.directory.select";
|
|
27
26
|
export declare const MethodConnectHistoryList = "connect.history.list";
|
|
28
27
|
export declare const MethodConnectLaunchIssue = "connect.launch.issue";
|
|
28
|
+
export declare const MethodConnectMarketAdd = "connect.market.add";
|
|
29
|
+
export declare const MethodConnectMarketConfigure = "connect.market.configure";
|
|
30
|
+
export declare const MethodConnectMarketDiscard = "connect.market.discard";
|
|
31
|
+
export declare const MethodConnectMarketRemove = "connect.market.remove";
|
|
32
|
+
export declare const MethodConnectMarketRetry = "connect.market.retry";
|
|
33
|
+
export declare const MethodConnectMarketState = "connect.market.state";
|
|
34
|
+
export declare const MethodConnectMarketSync = "connect.market.sync";
|
|
29
35
|
export declare const MethodConnectPermissionsList = "connect.permissions.list";
|
|
30
36
|
export declare const MethodConnectPermissionsRevoke = "connect.permissions.revoke";
|
|
31
37
|
export declare const MethodConnectRequestExec = "connect.request.exec";
|
package/dist/methods.gen.js
CHANGED
|
@@ -21,13 +21,19 @@ export const MethodConnectDeploymentInstall = "connect.deployment.install"; // p
|
|
|
21
21
|
export const MethodConnectDeploymentList = "connect.deployment.list"; // params=null result=ConnectDeploymentView timeout=short
|
|
22
22
|
export const MethodConnectDeploymentStart = "connect.deployment.start"; // params=ConnectDeploymentStartRequest result=ConnectDeploymentStartResponse timeout=short
|
|
23
23
|
export const MethodConnectDeploymentStop = "connect.deployment.stop"; // params=ConnectDeploymentStopRequest result=Ok timeout=short
|
|
24
|
-
export const MethodConnectDirectoryAdd = "connect.directory.add"; // params=ConnectDirectoryAddRequest result=ConnectDirectoryView timeout=long
|
|
25
24
|
export const MethodConnectDirectoryFavorite = "connect.directory.favorite"; // params=ConnectDirectoryFavoriteRequest result=Ok timeout=short
|
|
26
25
|
export const MethodConnectDirectoryList = "connect.directory.list"; // params=null result=ConnectDirectoryView timeout=short
|
|
27
26
|
export const MethodConnectDirectoryRemove = "connect.directory.remove"; // params=ConnectDirectoryRemoveRequest result=Ok timeout=short
|
|
28
27
|
export const MethodConnectDirectorySelect = "connect.directory.select"; // params=ConnectDirectorySelectRequest result=Ok timeout=short
|
|
29
28
|
export const MethodConnectHistoryList = "connect.history.list"; // params=ConnectHistoryListRequest result=ConnectHistoryView timeout=short
|
|
30
29
|
export const MethodConnectLaunchIssue = "connect.launch.issue"; // params=ConnectLaunchIssueRequest result=ConnectLaunchIssueResponse timeout=short
|
|
30
|
+
export const MethodConnectMarketAdd = "connect.market.add"; // params=MarketAddRequest result=MarketStateView timeout=long
|
|
31
|
+
export const MethodConnectMarketConfigure = "connect.market.configure"; // params=MarketConfigureRequest result=MarketStateView timeout=short
|
|
32
|
+
export const MethodConnectMarketDiscard = "connect.market.discard"; // params=MarketDiscardRequest result=MarketStateView timeout=long
|
|
33
|
+
export const MethodConnectMarketRemove = "connect.market.remove"; // params=MarketRemoveRequest result=MarketStateView timeout=short
|
|
34
|
+
export const MethodConnectMarketRetry = "connect.market.retry"; // params=MarketRetryRequest result=MarketStateView timeout=long
|
|
35
|
+
export const MethodConnectMarketState = "connect.market.state"; // params=null result=MarketStateView timeout=short
|
|
36
|
+
export const MethodConnectMarketSync = "connect.market.sync"; // params=MarketSyncRequest result=MarketStateView timeout=long
|
|
31
37
|
export const MethodConnectPermissionsList = "connect.permissions.list"; // params=ConnectPermissionsListRequest result=ConnectPermissionsView timeout=short
|
|
32
38
|
export const MethodConnectPermissionsRevoke = "connect.permissions.revoke"; // params=ConnectPermissionsRevokeRequest result=Ok timeout=short
|
|
33
39
|
export const MethodConnectRequestExec = "connect.request.exec"; // params=ConnectExecRequest result=JsonValue timeout=connect
|
|
@@ -79,13 +85,19 @@ export const MethodTimeout = {
|
|
|
79
85
|
"connect.deployment.list": "short",
|
|
80
86
|
"connect.deployment.start": "short",
|
|
81
87
|
"connect.deployment.stop": "short",
|
|
82
|
-
"connect.directory.add": "long",
|
|
83
88
|
"connect.directory.favorite": "short",
|
|
84
89
|
"connect.directory.list": "short",
|
|
85
90
|
"connect.directory.remove": "short",
|
|
86
91
|
"connect.directory.select": "short",
|
|
87
92
|
"connect.history.list": "short",
|
|
88
93
|
"connect.launch.issue": "short",
|
|
94
|
+
"connect.market.add": "long",
|
|
95
|
+
"connect.market.configure": "short",
|
|
96
|
+
"connect.market.discard": "long",
|
|
97
|
+
"connect.market.remove": "short",
|
|
98
|
+
"connect.market.retry": "long",
|
|
99
|
+
"connect.market.state": "short",
|
|
100
|
+
"connect.market.sync": "long",
|
|
89
101
|
"connect.permissions.list": "short",
|
|
90
102
|
"connect.permissions.revoke": "short",
|
|
91
103
|
"connect.request.exec": "connect",
|
|
@@ -138,13 +150,19 @@ export const MethodParams = {
|
|
|
138
150
|
"connect.deployment.list": "null",
|
|
139
151
|
"connect.deployment.start": "ConnectDeploymentStartRequest",
|
|
140
152
|
"connect.deployment.stop": "ConnectDeploymentStopRequest",
|
|
141
|
-
"connect.directory.add": "ConnectDirectoryAddRequest",
|
|
142
153
|
"connect.directory.favorite": "ConnectDirectoryFavoriteRequest",
|
|
143
154
|
"connect.directory.list": "null",
|
|
144
155
|
"connect.directory.remove": "ConnectDirectoryRemoveRequest",
|
|
145
156
|
"connect.directory.select": "ConnectDirectorySelectRequest",
|
|
146
157
|
"connect.history.list": "ConnectHistoryListRequest",
|
|
147
158
|
"connect.launch.issue": "ConnectLaunchIssueRequest",
|
|
159
|
+
"connect.market.add": "MarketAddRequest",
|
|
160
|
+
"connect.market.configure": "MarketConfigureRequest",
|
|
161
|
+
"connect.market.discard": "MarketDiscardRequest",
|
|
162
|
+
"connect.market.remove": "MarketRemoveRequest",
|
|
163
|
+
"connect.market.retry": "MarketRetryRequest",
|
|
164
|
+
"connect.market.state": "null",
|
|
165
|
+
"connect.market.sync": "MarketSyncRequest",
|
|
148
166
|
"connect.permissions.list": "ConnectPermissionsListRequest",
|
|
149
167
|
"connect.permissions.revoke": "ConnectPermissionsRevokeRequest",
|
|
150
168
|
"connect.request.exec": "ConnectExecRequest",
|
|
@@ -197,13 +215,19 @@ export const MethodResult = {
|
|
|
197
215
|
"connect.deployment.list": "ConnectDeploymentView",
|
|
198
216
|
"connect.deployment.start": "ConnectDeploymentStartResponse",
|
|
199
217
|
"connect.deployment.stop": "Ok",
|
|
200
|
-
"connect.directory.add": "ConnectDirectoryView",
|
|
201
218
|
"connect.directory.favorite": "Ok",
|
|
202
219
|
"connect.directory.list": "ConnectDirectoryView",
|
|
203
220
|
"connect.directory.remove": "Ok",
|
|
204
221
|
"connect.directory.select": "Ok",
|
|
205
222
|
"connect.history.list": "ConnectHistoryView",
|
|
206
223
|
"connect.launch.issue": "ConnectLaunchIssueResponse",
|
|
224
|
+
"connect.market.add": "MarketStateView",
|
|
225
|
+
"connect.market.configure": "MarketStateView",
|
|
226
|
+
"connect.market.discard": "MarketStateView",
|
|
227
|
+
"connect.market.remove": "MarketStateView",
|
|
228
|
+
"connect.market.retry": "MarketStateView",
|
|
229
|
+
"connect.market.state": "MarketStateView",
|
|
230
|
+
"connect.market.sync": "MarketStateView",
|
|
207
231
|
"connect.permissions.list": "ConnectPermissionsView",
|
|
208
232
|
"connect.permissions.revoke": "Ok",
|
|
209
233
|
"connect.request.exec": "JsonValue",
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -137,6 +137,7 @@ export interface ConnectConnectionPauseRequest {
|
|
|
137
137
|
}
|
|
138
138
|
export interface ConnectDeployment {
|
|
139
139
|
appPublicKeyHex: string;
|
|
140
|
+
appVersion: string;
|
|
140
141
|
deploymentId: string;
|
|
141
142
|
iconUrl?: string;
|
|
142
143
|
indexseedhashhex: string;
|
|
@@ -148,14 +149,17 @@ export interface ConnectDeploymentInstallRequest {
|
|
|
148
149
|
}
|
|
149
150
|
export interface ConnectDeploymentInstallResponse {
|
|
150
151
|
appPublicKeyHex: string;
|
|
152
|
+
appVersion: string;
|
|
151
153
|
deploymentId: string;
|
|
152
154
|
indexseedhashhex: string;
|
|
153
155
|
}
|
|
154
156
|
export interface ConnectDeploymentStartRequest {
|
|
155
157
|
deploymentId: string;
|
|
158
|
+
expectedAppPublicKeyHex?: string;
|
|
156
159
|
}
|
|
157
160
|
export interface ConnectDeploymentStartResponse {
|
|
158
161
|
appPublicKeyHex: string;
|
|
162
|
+
appVersion: string;
|
|
159
163
|
deploymentId: string;
|
|
160
164
|
iconUrl?: string;
|
|
161
165
|
indexseedhashhex: string;
|
|
@@ -168,21 +172,13 @@ export interface ConnectDeploymentStopRequest {
|
|
|
168
172
|
export interface ConnectDeploymentView {
|
|
169
173
|
deployments: ConnectDeployment[];
|
|
170
174
|
}
|
|
171
|
-
export interface ConnectDirectoryAddRequest {
|
|
172
|
-
description?: string;
|
|
173
|
-
icon?: string;
|
|
174
|
-
indexseedhashhex?: string;
|
|
175
|
-
name?: string;
|
|
176
|
-
url?: string;
|
|
177
|
-
}
|
|
178
175
|
export interface ConnectDirectoryEntry {
|
|
179
176
|
appPublicKeyHex: string;
|
|
177
|
+
appVersion: string;
|
|
180
178
|
description?: string;
|
|
181
179
|
favorite: boolean;
|
|
182
180
|
files: ConnectDirectoryFilesEntry[];
|
|
183
181
|
icon?: string;
|
|
184
|
-
local: boolean;
|
|
185
|
-
marketListed: boolean;
|
|
186
182
|
name?: string;
|
|
187
183
|
selected?: ConnectDirectorySelection;
|
|
188
184
|
urls: ConnectDirectoryURLEntry[];
|
|
@@ -196,18 +192,8 @@ export interface ConnectDirectoryFilesEntry {
|
|
|
196
192
|
indexseedhashhex: string;
|
|
197
193
|
verifiedAt?: number;
|
|
198
194
|
}
|
|
199
|
-
export interface ConnectDirectoryPendingEntry {
|
|
200
|
-
description?: string;
|
|
201
|
-
error?: string;
|
|
202
|
-
icon?: string;
|
|
203
|
-
indexseedhashhex?: string;
|
|
204
|
-
name?: string;
|
|
205
|
-
pendingId: string;
|
|
206
|
-
url?: string;
|
|
207
|
-
}
|
|
208
195
|
export interface ConnectDirectoryRemoveRequest {
|
|
209
|
-
appPublicKeyHex
|
|
210
|
-
pendingId?: string;
|
|
196
|
+
appPublicKeyHex: string;
|
|
211
197
|
}
|
|
212
198
|
export interface ConnectDirectorySelectRequest {
|
|
213
199
|
appPublicKeyHex: string;
|
|
@@ -225,11 +211,10 @@ export interface ConnectDirectoryURLEntry {
|
|
|
225
211
|
verifiedAt?: number;
|
|
226
212
|
}
|
|
227
213
|
export interface ConnectDirectoryView {
|
|
214
|
+
deletedKeys?: string[];
|
|
228
215
|
entries: ConnectDirectoryEntry[];
|
|
229
216
|
favorites?: Record<string, unknown>;
|
|
230
217
|
knownApplications?: Record<string, unknown>;
|
|
231
|
-
marketError?: string;
|
|
232
|
-
pending: ConnectDirectoryPendingEntry[];
|
|
233
218
|
}
|
|
234
219
|
export interface ConnectExecRequest {
|
|
235
220
|
approvalId?: string;
|
|
@@ -311,6 +296,61 @@ export interface Info {
|
|
|
311
296
|
}
|
|
312
297
|
export interface JsonValue {
|
|
313
298
|
}
|
|
299
|
+
export interface MarketAddRequest {
|
|
300
|
+
indexseedhashhex?: string;
|
|
301
|
+
url?: string;
|
|
302
|
+
}
|
|
303
|
+
export interface MarketConfigureRequest {
|
|
304
|
+
directoryUrl: string;
|
|
305
|
+
name: string;
|
|
306
|
+
}
|
|
307
|
+
export interface MarketDiscardRequest {
|
|
308
|
+
marketId: string;
|
|
309
|
+
}
|
|
310
|
+
export interface MarketManualItem {
|
|
311
|
+
appPublicKeyHex?: string;
|
|
312
|
+
appVersion?: string;
|
|
313
|
+
indexseedhashhex?: string;
|
|
314
|
+
kind: string;
|
|
315
|
+
name?: string;
|
|
316
|
+
pendingId: string;
|
|
317
|
+
syncError?: string;
|
|
318
|
+
syncStatus?: string;
|
|
319
|
+
updatedAt?: number;
|
|
320
|
+
url?: string;
|
|
321
|
+
validation: string;
|
|
322
|
+
validationError?: string;
|
|
323
|
+
}
|
|
324
|
+
export interface MarketRecordView {
|
|
325
|
+
builtIn: boolean;
|
|
326
|
+
directoryUrl: string;
|
|
327
|
+
id: string;
|
|
328
|
+
lastError?: string;
|
|
329
|
+
lastRejected?: MarketRejectedItem[];
|
|
330
|
+
lastSuccessAt: number;
|
|
331
|
+
name: string;
|
|
332
|
+
}
|
|
333
|
+
export interface MarketRejectedItem {
|
|
334
|
+
appPublicKeyHex: string;
|
|
335
|
+
reason?: string;
|
|
336
|
+
sourceId: string;
|
|
337
|
+
status: string;
|
|
338
|
+
}
|
|
339
|
+
export interface MarketRemoveRequest {
|
|
340
|
+
pendingId: string;
|
|
341
|
+
}
|
|
342
|
+
export interface MarketRetryRequest {
|
|
343
|
+
pendingId: string;
|
|
344
|
+
}
|
|
345
|
+
export interface MarketStateView {
|
|
346
|
+
appliedMarketCount?: number;
|
|
347
|
+
manual: MarketManualItem[];
|
|
348
|
+
markets: MarketRecordView[];
|
|
349
|
+
pending: MarketManualItem[];
|
|
350
|
+
}
|
|
351
|
+
export interface MarketSyncRequest {
|
|
352
|
+
marketId?: string;
|
|
353
|
+
}
|
|
314
354
|
export interface Ok {
|
|
315
355
|
ok: boolean;
|
|
316
356
|
}
|
|
@@ -367,34 +407,6 @@ export interface PricingFileRequest {
|
|
|
367
407
|
export interface PricingFileResponse {
|
|
368
408
|
updated: string;
|
|
369
409
|
}
|
|
370
|
-
export interface PublicationFile {
|
|
371
|
-
mime: string;
|
|
372
|
-
path: string;
|
|
373
|
-
seedhashhex: string;
|
|
374
|
-
size: number;
|
|
375
|
-
}
|
|
376
|
-
export interface PublicationFilesChannel {
|
|
377
|
-
entrySeedhashhex: string;
|
|
378
|
-
files: PublicationFile[];
|
|
379
|
-
icon: string;
|
|
380
|
-
}
|
|
381
|
-
export interface PublicationProof {
|
|
382
|
-
publication: PublicationRecord;
|
|
383
|
-
signatureHex: string;
|
|
384
|
-
}
|
|
385
|
-
export interface PublicationRecord {
|
|
386
|
-
appPublicKeyHex: string;
|
|
387
|
-
description: string;
|
|
388
|
-
files?: PublicationFilesChannel;
|
|
389
|
-
kind: string;
|
|
390
|
-
name: string;
|
|
391
|
-
url?: PublicationURLChannel;
|
|
392
|
-
version: number;
|
|
393
|
-
}
|
|
394
|
-
export interface PublicationURLChannel {
|
|
395
|
-
address: string;
|
|
396
|
-
icon: string;
|
|
397
|
-
}
|
|
398
410
|
export interface RevisionRequest {
|
|
399
411
|
revision: number;
|
|
400
412
|
}
|