keymaster-api-protocol 0.1.0 → 0.1.1
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 +9 -0
- package/dist/methods.gen.js +36 -0
- package/dist/types.gen.d.ts +152 -18
- package/package.json +1 -1
package/dist/methods.gen.d.ts
CHANGED
|
@@ -15,6 +15,15 @@ export declare const MethodConnectAuthList = "connect.auth.list";
|
|
|
15
15
|
export declare const MethodConnectAuthRevoke = "connect.auth.revoke";
|
|
16
16
|
export declare const MethodConnectBindingsList = "connect.bindings.list";
|
|
17
17
|
export declare const MethodConnectConnectionPause = "connect.connection.pause";
|
|
18
|
+
export declare const MethodConnectDeploymentInstall = "connect.deployment.install";
|
|
19
|
+
export declare const MethodConnectDeploymentList = "connect.deployment.list";
|
|
20
|
+
export declare const MethodConnectDeploymentStart = "connect.deployment.start";
|
|
21
|
+
export declare const MethodConnectDeploymentStop = "connect.deployment.stop";
|
|
22
|
+
export declare const MethodConnectDirectoryAdd = "connect.directory.add";
|
|
23
|
+
export declare const MethodConnectDirectoryFavorite = "connect.directory.favorite";
|
|
24
|
+
export declare const MethodConnectDirectoryList = "connect.directory.list";
|
|
25
|
+
export declare const MethodConnectDirectoryRemove = "connect.directory.remove";
|
|
26
|
+
export declare const MethodConnectDirectorySelect = "connect.directory.select";
|
|
18
27
|
export declare const MethodConnectHistoryList = "connect.history.list";
|
|
19
28
|
export declare const MethodConnectLaunchIssue = "connect.launch.issue";
|
|
20
29
|
export declare const MethodConnectPermissionsList = "connect.permissions.list";
|
package/dist/methods.gen.js
CHANGED
|
@@ -17,6 +17,15 @@ export const MethodConnectAuthList = "connect.auth.list"; // params=null result=
|
|
|
17
17
|
export const MethodConnectAuthRevoke = "connect.auth.revoke"; // params=ConnectAuthRevokeRequest result=Ok timeout=short
|
|
18
18
|
export const MethodConnectBindingsList = "connect.bindings.list"; // params=null result=ConnectBindingsView timeout=short
|
|
19
19
|
export const MethodConnectConnectionPause = "connect.connection.pause"; // params=ConnectConnectionPauseRequest result=Ok timeout=short
|
|
20
|
+
export const MethodConnectDeploymentInstall = "connect.deployment.install"; // params=ConnectDeploymentInstallRequest result=ConnectDeploymentInstallResponse timeout=long
|
|
21
|
+
export const MethodConnectDeploymentList = "connect.deployment.list"; // params=null result=ConnectDeploymentView timeout=short
|
|
22
|
+
export const MethodConnectDeploymentStart = "connect.deployment.start"; // params=ConnectDeploymentStartRequest result=ConnectDeploymentStartResponse timeout=short
|
|
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
|
+
export const MethodConnectDirectoryFavorite = "connect.directory.favorite"; // params=ConnectDirectoryFavoriteRequest result=Ok timeout=short
|
|
26
|
+
export const MethodConnectDirectoryList = "connect.directory.list"; // params=null result=ConnectDirectoryView timeout=short
|
|
27
|
+
export const MethodConnectDirectoryRemove = "connect.directory.remove"; // params=ConnectDirectoryRemoveRequest result=Ok timeout=short
|
|
28
|
+
export const MethodConnectDirectorySelect = "connect.directory.select"; // params=ConnectDirectorySelectRequest result=Ok timeout=short
|
|
20
29
|
export const MethodConnectHistoryList = "connect.history.list"; // params=ConnectHistoryListRequest result=ConnectHistoryView timeout=short
|
|
21
30
|
export const MethodConnectLaunchIssue = "connect.launch.issue"; // params=ConnectLaunchIssueRequest result=ConnectLaunchIssueResponse timeout=short
|
|
22
31
|
export const MethodConnectPermissionsList = "connect.permissions.list"; // params=ConnectPermissionsListRequest result=ConnectPermissionsView timeout=short
|
|
@@ -65,6 +74,15 @@ export const MethodTimeout = {
|
|
|
65
74
|
"connect.auth.revoke": "short",
|
|
66
75
|
"connect.bindings.list": "short",
|
|
67
76
|
"connect.connection.pause": "short",
|
|
77
|
+
"connect.deployment.install": "long",
|
|
78
|
+
"connect.deployment.list": "short",
|
|
79
|
+
"connect.deployment.start": "short",
|
|
80
|
+
"connect.deployment.stop": "short",
|
|
81
|
+
"connect.directory.add": "long",
|
|
82
|
+
"connect.directory.favorite": "short",
|
|
83
|
+
"connect.directory.list": "short",
|
|
84
|
+
"connect.directory.remove": "short",
|
|
85
|
+
"connect.directory.select": "short",
|
|
68
86
|
"connect.history.list": "short",
|
|
69
87
|
"connect.launch.issue": "short",
|
|
70
88
|
"connect.permissions.list": "short",
|
|
@@ -114,6 +132,15 @@ export const MethodParams = {
|
|
|
114
132
|
"connect.auth.revoke": "ConnectAuthRevokeRequest",
|
|
115
133
|
"connect.bindings.list": "null",
|
|
116
134
|
"connect.connection.pause": "ConnectConnectionPauseRequest",
|
|
135
|
+
"connect.deployment.install": "ConnectDeploymentInstallRequest",
|
|
136
|
+
"connect.deployment.list": "null",
|
|
137
|
+
"connect.deployment.start": "ConnectDeploymentStartRequest",
|
|
138
|
+
"connect.deployment.stop": "ConnectDeploymentStopRequest",
|
|
139
|
+
"connect.directory.add": "ConnectDirectoryAddRequest",
|
|
140
|
+
"connect.directory.favorite": "ConnectDirectoryFavoriteRequest",
|
|
141
|
+
"connect.directory.list": "null",
|
|
142
|
+
"connect.directory.remove": "ConnectDirectoryRemoveRequest",
|
|
143
|
+
"connect.directory.select": "ConnectDirectorySelectRequest",
|
|
117
144
|
"connect.history.list": "ConnectHistoryListRequest",
|
|
118
145
|
"connect.launch.issue": "ConnectLaunchIssueRequest",
|
|
119
146
|
"connect.permissions.list": "ConnectPermissionsListRequest",
|
|
@@ -163,6 +190,15 @@ export const MethodResult = {
|
|
|
163
190
|
"connect.auth.revoke": "Ok",
|
|
164
191
|
"connect.bindings.list": "ConnectBindingsView",
|
|
165
192
|
"connect.connection.pause": "Ok",
|
|
193
|
+
"connect.deployment.install": "ConnectDeploymentInstallResponse",
|
|
194
|
+
"connect.deployment.list": "ConnectDeploymentView",
|
|
195
|
+
"connect.deployment.start": "ConnectDeploymentStartResponse",
|
|
196
|
+
"connect.deployment.stop": "Ok",
|
|
197
|
+
"connect.directory.add": "ConnectDirectoryView",
|
|
198
|
+
"connect.directory.favorite": "Ok",
|
|
199
|
+
"connect.directory.list": "ConnectDirectoryView",
|
|
200
|
+
"connect.directory.remove": "Ok",
|
|
201
|
+
"connect.directory.select": "Ok",
|
|
166
202
|
"connect.history.list": "ConnectHistoryView",
|
|
167
203
|
"connect.launch.issue": "ConnectLaunchIssueResponse",
|
|
168
204
|
"connect.permissions.list": "ConnectPermissionsView",
|
package/dist/types.gen.d.ts
CHANGED
|
@@ -7,6 +7,11 @@ export interface AddRootResponse {
|
|
|
7
7
|
path: string;
|
|
8
8
|
revision: number;
|
|
9
9
|
}
|
|
10
|
+
export interface AppDisplay {
|
|
11
|
+
description: string;
|
|
12
|
+
icon: string;
|
|
13
|
+
name: string;
|
|
14
|
+
}
|
|
10
15
|
export interface ArbitrationService {
|
|
11
16
|
address?: string;
|
|
12
17
|
name?: string;
|
|
@@ -110,26 +115,126 @@ export interface ConnectAppsView {
|
|
|
110
115
|
applications: Record<string, unknown>[];
|
|
111
116
|
}
|
|
112
117
|
export interface ConnectAuthRevokeRequest {
|
|
113
|
-
|
|
114
|
-
appPublicKey: string;
|
|
115
|
-
origin: string;
|
|
118
|
+
appPublicKeyHex: string;
|
|
116
119
|
}
|
|
117
120
|
export interface ConnectAuthView {
|
|
118
|
-
authorizations:
|
|
121
|
+
authorizations: ConnectAuthorization[];
|
|
122
|
+
}
|
|
123
|
+
export interface ConnectAuthorization {
|
|
124
|
+
appPublicKeyHex?: string;
|
|
125
|
+
authorizationId: string;
|
|
126
|
+
createdAt?: number;
|
|
127
|
+
generation?: string;
|
|
128
|
+
network: string;
|
|
129
|
+
origin: string;
|
|
130
|
+
walletPublicKey?: string;
|
|
119
131
|
}
|
|
120
132
|
export interface ConnectBindingsView {
|
|
121
|
-
bindings:
|
|
133
|
+
bindings: ConnectAuthorization[];
|
|
122
134
|
}
|
|
123
135
|
export interface ConnectConnectionPauseRequest {
|
|
124
136
|
authorizationId: string;
|
|
125
137
|
}
|
|
138
|
+
export interface ConnectDeployment {
|
|
139
|
+
appPublicKeyHex: string;
|
|
140
|
+
deploymentId: string;
|
|
141
|
+
iconUrl?: string;
|
|
142
|
+
indexseedhashhex: string;
|
|
143
|
+
origin?: string;
|
|
144
|
+
status: string;
|
|
145
|
+
}
|
|
146
|
+
export interface ConnectDeploymentInstallRequest {
|
|
147
|
+
indexseedhashhex: string;
|
|
148
|
+
}
|
|
149
|
+
export interface ConnectDeploymentInstallResponse {
|
|
150
|
+
appPublicKeyHex: string;
|
|
151
|
+
deploymentId: string;
|
|
152
|
+
indexseedhashhex: string;
|
|
153
|
+
}
|
|
154
|
+
export interface ConnectDeploymentStartRequest {
|
|
155
|
+
deploymentId: string;
|
|
156
|
+
}
|
|
157
|
+
export interface ConnectDeploymentStartResponse {
|
|
158
|
+
appPublicKeyHex: string;
|
|
159
|
+
deploymentId: string;
|
|
160
|
+
iconUrl?: string;
|
|
161
|
+
indexseedhashhex: string;
|
|
162
|
+
origin: string;
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
export interface ConnectDeploymentStopRequest {
|
|
166
|
+
deploymentId: string;
|
|
167
|
+
}
|
|
168
|
+
export interface ConnectDeploymentView {
|
|
169
|
+
deployments: ConnectDeployment[];
|
|
170
|
+
}
|
|
171
|
+
export interface ConnectDirectoryAddRequest {
|
|
172
|
+
description?: string;
|
|
173
|
+
icon?: string;
|
|
174
|
+
indexseedhashhex?: string;
|
|
175
|
+
name?: string;
|
|
176
|
+
url?: string;
|
|
177
|
+
}
|
|
178
|
+
export interface ConnectDirectoryEntry {
|
|
179
|
+
appPublicKeyHex: string;
|
|
180
|
+
description?: string;
|
|
181
|
+
favorite: boolean;
|
|
182
|
+
files: ConnectDirectoryFilesEntry[];
|
|
183
|
+
icon?: string;
|
|
184
|
+
local: boolean;
|
|
185
|
+
marketListed: boolean;
|
|
186
|
+
name?: string;
|
|
187
|
+
selected?: ConnectDirectorySelection;
|
|
188
|
+
urls: ConnectDirectoryURLEntry[];
|
|
189
|
+
}
|
|
190
|
+
export interface ConnectDirectoryFavoriteRequest {
|
|
191
|
+
appPublicKeyHex: string;
|
|
192
|
+
favorite: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface ConnectDirectoryFilesEntry {
|
|
195
|
+
display: AppDisplay;
|
|
196
|
+
indexseedhashhex: string;
|
|
197
|
+
verifiedAt?: number;
|
|
198
|
+
}
|
|
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
|
+
export interface ConnectDirectoryRemoveRequest {
|
|
209
|
+
appPublicKeyHex?: string;
|
|
210
|
+
pendingId?: string;
|
|
211
|
+
}
|
|
212
|
+
export interface ConnectDirectorySelectRequest {
|
|
213
|
+
appPublicKeyHex: string;
|
|
214
|
+
indexseedhashhex?: string;
|
|
215
|
+
url?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface ConnectDirectorySelection {
|
|
218
|
+
indexseedhashhex?: string;
|
|
219
|
+
url?: string;
|
|
220
|
+
}
|
|
221
|
+
export interface ConnectDirectoryURLEntry {
|
|
222
|
+
display: AppDisplay;
|
|
223
|
+
origin: string;
|
|
224
|
+
url: string;
|
|
225
|
+
verifiedAt?: number;
|
|
226
|
+
}
|
|
227
|
+
export interface ConnectDirectoryView {
|
|
228
|
+
entries: ConnectDirectoryEntry[];
|
|
229
|
+
marketError?: string;
|
|
230
|
+
pending: ConnectDirectoryPendingEntry[];
|
|
231
|
+
}
|
|
126
232
|
export interface ConnectExecRequest {
|
|
127
233
|
approvalId?: string;
|
|
128
234
|
authorizationId?: string;
|
|
129
235
|
method?: string;
|
|
130
236
|
origin?: string;
|
|
131
237
|
params?: Record<string, unknown>;
|
|
132
|
-
proof?: Record<string, unknown>;
|
|
133
238
|
requestId?: string;
|
|
134
239
|
}
|
|
135
240
|
export interface ConnectHistoryListRequest {
|
|
@@ -139,18 +244,13 @@ export interface ConnectHistoryListRequest {
|
|
|
139
244
|
export interface ConnectHistoryView {
|
|
140
245
|
events: Record<string, unknown>[];
|
|
141
246
|
}
|
|
142
|
-
export interface ConnectLaunchAppIdentity {
|
|
143
|
-
appId: string;
|
|
144
|
-
appName: string;
|
|
145
|
-
identityDigestHex: string;
|
|
146
|
-
publisherPublicKeyHex: string;
|
|
147
|
-
requirements: string[];
|
|
148
|
-
}
|
|
149
247
|
export interface ConnectLaunchIssueRequest {
|
|
248
|
+
deploymentId?: string;
|
|
249
|
+
expectedAppPublicKeyHex?: string;
|
|
150
250
|
origin: string;
|
|
251
|
+
url?: string;
|
|
151
252
|
}
|
|
152
253
|
export interface ConnectLaunchIssueResponse {
|
|
153
|
-
appIdentity: ConnectLaunchAppIdentity;
|
|
154
254
|
expiresAt: number;
|
|
155
255
|
launchToken: string;
|
|
156
256
|
}
|
|
@@ -248,6 +348,34 @@ export interface PricingFileRequest {
|
|
|
248
348
|
export interface PricingFileResponse {
|
|
249
349
|
updated: string;
|
|
250
350
|
}
|
|
351
|
+
export interface PublicationFile {
|
|
352
|
+
mime: string;
|
|
353
|
+
path: string;
|
|
354
|
+
seedhashhex: string;
|
|
355
|
+
size: number;
|
|
356
|
+
}
|
|
357
|
+
export interface PublicationFilesChannel {
|
|
358
|
+
entrySeedhashhex: string;
|
|
359
|
+
files: PublicationFile[];
|
|
360
|
+
icon: string;
|
|
361
|
+
}
|
|
362
|
+
export interface PublicationProof {
|
|
363
|
+
publication: PublicationRecord;
|
|
364
|
+
signatureHex: string;
|
|
365
|
+
}
|
|
366
|
+
export interface PublicationRecord {
|
|
367
|
+
appPublicKeyHex: string;
|
|
368
|
+
description: string;
|
|
369
|
+
files?: PublicationFilesChannel;
|
|
370
|
+
kind: string;
|
|
371
|
+
name: string;
|
|
372
|
+
url?: PublicationURLChannel;
|
|
373
|
+
version: number;
|
|
374
|
+
}
|
|
375
|
+
export interface PublicationURLChannel {
|
|
376
|
+
address: string;
|
|
377
|
+
icon: string;
|
|
378
|
+
}
|
|
251
379
|
export interface RevisionRequest {
|
|
252
380
|
revision: number;
|
|
253
381
|
}
|
|
@@ -309,6 +437,7 @@ export interface SetDefaultRootRequest {
|
|
|
309
437
|
revision: number;
|
|
310
438
|
}
|
|
311
439
|
export interface Settings {
|
|
440
|
+
applicationOpenMode: string;
|
|
312
441
|
feeRateSatoshisPerKb: number;
|
|
313
442
|
language: string;
|
|
314
443
|
port: number;
|
|
@@ -321,6 +450,7 @@ export interface Settings {
|
|
|
321
450
|
wocApiKey: string;
|
|
322
451
|
}
|
|
323
452
|
export interface SettingsUpdate {
|
|
453
|
+
applicationOpenMode?: string;
|
|
324
454
|
feeRateSatoshisPerKb?: number;
|
|
325
455
|
language?: string;
|
|
326
456
|
port?: number;
|
|
@@ -348,17 +478,19 @@ export interface Status {
|
|
|
348
478
|
state: string;
|
|
349
479
|
}
|
|
350
480
|
export interface StorageDeleteRequest {
|
|
351
|
-
|
|
481
|
+
appPublicKeyHex: string;
|
|
352
482
|
network: string;
|
|
483
|
+
origin?: string;
|
|
353
484
|
path: string;
|
|
354
485
|
walletPublicKey: string;
|
|
355
486
|
}
|
|
356
487
|
export interface StorageGetRequest {
|
|
357
|
-
|
|
488
|
+
appPublicKeyHex: string;
|
|
358
489
|
ifMatch?: string;
|
|
359
490
|
length?: number;
|
|
360
491
|
network: string;
|
|
361
492
|
offset?: number;
|
|
493
|
+
origin?: string;
|
|
362
494
|
path: string;
|
|
363
495
|
walletPublicKey: string;
|
|
364
496
|
}
|
|
@@ -370,10 +502,11 @@ export interface StorageGetResponse {
|
|
|
370
502
|
totalSize?: number;
|
|
371
503
|
}
|
|
372
504
|
export interface StorageListRequest {
|
|
373
|
-
|
|
505
|
+
appPublicKeyHex: string;
|
|
374
506
|
cursor?: string;
|
|
375
507
|
limit?: number;
|
|
376
508
|
network: string;
|
|
509
|
+
origin?: string;
|
|
377
510
|
prefix: string;
|
|
378
511
|
walletPublicKey: string;
|
|
379
512
|
}
|
|
@@ -382,10 +515,11 @@ export interface StorageListResponse {
|
|
|
382
515
|
nextCursor?: string;
|
|
383
516
|
}
|
|
384
517
|
export interface StoragePutRequest {
|
|
385
|
-
|
|
518
|
+
appPublicKeyHex: string;
|
|
386
519
|
ifNoneMatch?: string;
|
|
387
520
|
mime?: string;
|
|
388
521
|
network: string;
|
|
522
|
+
origin?: string;
|
|
389
523
|
path: string;
|
|
390
524
|
walletPublicKey: string;
|
|
391
525
|
}
|