@floegence/redevplugin-contracts 0.7.27 → 1.0.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 +1 -2
- package/dist/contracts.gen.d.ts +87 -267
- package/dist/contracts.gen.js +87 -300
- package/dist/index.d.ts +37 -121
- package/dist/release-signing.d.ts +4 -177
- package/dist/release-signing.js +21 -371
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -22,77 +22,42 @@ export declare const contractRegistry: {
|
|
|
22
22
|
readonly id: "compatibility-manifest-schema";
|
|
23
23
|
readonly path: "spec/plugin/compatibility-manifest-v17.schema.json";
|
|
24
24
|
readonly version: "compatibility-manifest-v17";
|
|
25
|
-
readonly sha256: "
|
|
25
|
+
readonly sha256: "bc426e034b86ef81f947cae6c2fee838d22913c0066f727acb509fa9cbc22ebd";
|
|
26
26
|
}, {
|
|
27
27
|
readonly id: "contract-registry-schema";
|
|
28
28
|
readonly path: "spec/plugin/contract-registry-v2.schema.json";
|
|
29
29
|
readonly version: "contract-registry-v2";
|
|
30
|
-
readonly sha256: "
|
|
30
|
+
readonly sha256: "664a80c4cb8e6fc30a46be56d66b40eed8f0a894e7ceb469757bdffe93b4ee97";
|
|
31
31
|
}, {
|
|
32
32
|
readonly id: "error-codes-schema";
|
|
33
33
|
readonly path: "spec/plugin/error-codes-v8.schema.json";
|
|
34
34
|
readonly version: "error-codes-v8";
|
|
35
|
-
readonly sha256: "
|
|
35
|
+
readonly sha256: "5ec127f0fdd6e749d8ee342e53796acd04d1c220fb03cca462bd5222c57b5944";
|
|
36
36
|
}, {
|
|
37
37
|
readonly id: "external-signer-request-schema";
|
|
38
38
|
readonly path: "spec/plugin/external-signer-request-v1.schema.json";
|
|
39
39
|
readonly version: "external-signer-request-v1";
|
|
40
|
-
readonly sha256: "
|
|
40
|
+
readonly sha256: "56884e9bb0b00d07fe7e8c52acfc33a4a7bab54f8a02d504f35b00bab42a03fb";
|
|
41
41
|
}, {
|
|
42
42
|
readonly id: "external-signer-response-schema";
|
|
43
43
|
readonly path: "spec/plugin/external-signer-response-v1.schema.json";
|
|
44
44
|
readonly version: "external-signer-response-v1";
|
|
45
|
-
readonly sha256: "
|
|
46
|
-
}, {
|
|
47
|
-
readonly id: "host-capability-compatibility-schema";
|
|
48
|
-
readonly path: "spec/plugin/host-capability-compatibility-v1.schema.json";
|
|
49
|
-
readonly version: "host-capability-compatibility-v1";
|
|
50
|
-
readonly sha256: "361ebbf7009aeb66c763ecde46427b17b6cf7d2307c01886c5987a1f4f1762de";
|
|
45
|
+
readonly sha256: "b3b6d2b3dfe4f9bb680387e4c3a8010faef91d2d12fe28e76e51d5d84703a047";
|
|
51
46
|
}, {
|
|
52
47
|
readonly id: "host-capability-contract-schema";
|
|
53
48
|
readonly path: "spec/plugin/host-capability-contract-v1.schema.json";
|
|
54
49
|
readonly version: "host-capability-contract-v1";
|
|
55
50
|
readonly sha256: "0a653e36d44104f1d16b06ee424648086c146f23c907b176bdf470ae73025485";
|
|
56
|
-
}, {
|
|
57
|
-
readonly id: "host-capability-manifest-schema";
|
|
58
|
-
readonly path: "spec/plugin/host-capability-manifest-v1.schema.json";
|
|
59
|
-
readonly version: "host-capability-manifest-v1";
|
|
60
|
-
readonly sha256: "5f13a8e5f918378b9cba9fdc133a9a75ba3a8311c30cb6a02ca0aba09035110e";
|
|
61
|
-
}, {
|
|
62
|
-
readonly id: "host-capability-notices-schema";
|
|
63
|
-
readonly path: "spec/plugin/host-capability-notices-v1.schema.json";
|
|
64
|
-
readonly version: "host-capability-notices-v1";
|
|
65
|
-
readonly sha256: "6affd5d0ae90239f6fd08cbeddae4eef393efa2838c9e4935874ba3dc0e05948";
|
|
66
51
|
}, {
|
|
67
52
|
readonly id: "host-capability-pin-schema";
|
|
68
53
|
readonly path: "spec/plugin/host-capability-pin-v1.schema.json";
|
|
69
54
|
readonly version: "host-capability-pin-v1";
|
|
70
|
-
readonly sha256: "
|
|
71
|
-
}, {
|
|
72
|
-
readonly id: "host-capability-publisher-config-schema";
|
|
73
|
-
readonly path: "spec/plugin/host-capability-publisher-config-v1.schema.json";
|
|
74
|
-
readonly version: "host-capability-publisher-config-v1";
|
|
75
|
-
readonly sha256: "f06ab3d70f3f9dd2114fe9d489841f1d6b5f169ee17b8c92aa1bfaf9bbf865c4";
|
|
76
|
-
}, {
|
|
77
|
-
readonly id: "host-capability-signature-schema";
|
|
78
|
-
readonly path: "spec/plugin/host-capability-signature-v1.schema.json";
|
|
79
|
-
readonly version: "host-capability-signature-v1";
|
|
80
|
-
readonly sha256: "88cbc1d63afb7e289ca4f8b7c76f702b8d20156f7722c1b71f3ab9138a240a5e";
|
|
81
|
-
}, {
|
|
82
|
-
readonly id: "host-capability-signer-request-schema";
|
|
83
|
-
readonly path: "spec/plugin/host-capability-signer-request-v1.schema.json";
|
|
84
|
-
readonly version: "host-capability-signer-request-v1";
|
|
85
|
-
readonly sha256: "7f22e9e0f813b91106693edfbb91309489dde1640152c29d878961fdef6b89d8";
|
|
86
|
-
}, {
|
|
87
|
-
readonly id: "host-capability-signer-response-schema";
|
|
88
|
-
readonly path: "spec/plugin/host-capability-signer-response-v1.schema.json";
|
|
89
|
-
readonly version: "host-capability-signer-response-v1";
|
|
90
|
-
readonly sha256: "02a50b1fc0d1b8ae0611eab95b5560122c6425709ecc8de5e00bf0dd68085f44";
|
|
55
|
+
readonly sha256: "23591639475c485134c842cae5e53a679dde1b30374a6430ce6e4827be4d18ed";
|
|
91
56
|
}, {
|
|
92
57
|
readonly id: "iframe-bridge-schema";
|
|
93
58
|
readonly path: "spec/plugin/bridge-v7.schema.json";
|
|
94
59
|
readonly version: "bridge-v7";
|
|
95
|
-
readonly sha256: "
|
|
60
|
+
readonly sha256: "5a6e7307f1649eb70d13e83e5d16177458957bffb3262b9299b4cf6d443e284a";
|
|
96
61
|
}, {
|
|
97
62
|
readonly id: "manifest-schema";
|
|
98
63
|
readonly path: "spec/plugin/manifest-v8.schema.json";
|
|
@@ -142,7 +107,7 @@ export declare const contractRegistry: {
|
|
|
142
107
|
readonly id: "performance-contract";
|
|
143
108
|
readonly path: "spec/plugin/performance-contract-v4.json";
|
|
144
109
|
readonly version: "performance-contract-v4";
|
|
145
|
-
readonly sha256: "
|
|
110
|
+
readonly sha256: "c0c8b3362e6f5878c12dbd0a5766592425d4e69b50ca18c226b6f5851d2c627c";
|
|
146
111
|
}, {
|
|
147
112
|
readonly id: "performance-evidence-schema";
|
|
148
113
|
readonly path: "spec/plugin/performance-evidence-v4.schema.json";
|
|
@@ -152,17 +117,17 @@ export declare const contractRegistry: {
|
|
|
152
117
|
readonly id: "platform-package-publication-schema";
|
|
153
118
|
readonly path: "spec/plugin/platform-package-publication-v1.schema.json";
|
|
154
119
|
readonly version: "platform-package-publication-v1";
|
|
155
|
-
readonly sha256: "
|
|
120
|
+
readonly sha256: "0f4b6788858c3165b6acc94aeab4f771825317f8b05d82d3d202c5848c3f8fdd";
|
|
156
121
|
}, {
|
|
157
122
|
readonly id: "platform-package-set-schema";
|
|
158
|
-
readonly path: "spec/plugin/platform-package-set-
|
|
159
|
-
readonly version: "platform-package-set-
|
|
160
|
-
readonly sha256: "
|
|
123
|
+
readonly path: "spec/plugin/platform-package-set-v2.schema.json";
|
|
124
|
+
readonly version: "platform-package-set-v2";
|
|
125
|
+
readonly sha256: "ce46ba85443349481d7cf4b73fc70be716035c369e833aaaf2650710536f3ea8";
|
|
161
126
|
}, {
|
|
162
127
|
readonly id: "plugin-platform-openapi";
|
|
163
128
|
readonly path: "spec/openapi/plugin-platform-v15.yaml";
|
|
164
129
|
readonly version: "plugin-platform-v15";
|
|
165
|
-
readonly sha256: "
|
|
130
|
+
readonly sha256: "0c95cbb1352040a90acfd63109fb0e41ac452e36ab03a1c6645097d408344d48";
|
|
166
131
|
}, {
|
|
167
132
|
readonly id: "presentation-icon-evidence-schema";
|
|
168
133
|
readonly path: "spec/plugin/presentation-icon-evidence-v1.schema.json";
|
|
@@ -182,7 +147,7 @@ export declare const contractRegistry: {
|
|
|
182
147
|
readonly id: "publisher-release-ref-schema";
|
|
183
148
|
readonly path: "spec/plugin/publisher-release-ref-v1.schema.json";
|
|
184
149
|
readonly version: "publisher-release-ref-v1";
|
|
185
|
-
readonly sha256: "
|
|
150
|
+
readonly sha256: "f68241937dc291b1f660c2c184bd60a7058a4471d2966bd7954ba574c84fe726";
|
|
186
151
|
}, {
|
|
187
152
|
readonly id: "quarantine-cleanup-schema";
|
|
188
153
|
readonly path: "spec/plugin/quarantine-cleanup-v1.schema.json";
|
|
@@ -192,67 +157,37 @@ export declare const contractRegistry: {
|
|
|
192
157
|
readonly id: "release-metadata-schema";
|
|
193
158
|
readonly path: "spec/plugin/release-metadata-v8.schema.json";
|
|
194
159
|
readonly version: "release-metadata-v8";
|
|
195
|
-
readonly sha256: "
|
|
160
|
+
readonly sha256: "ad8888e6b5673786ea0fc82475be92835c3b177b685cca5bb3efd936d461b215";
|
|
196
161
|
}, {
|
|
197
162
|
readonly id: "release-publisher-config-schema";
|
|
198
163
|
readonly path: "spec/plugin/release-publisher-config-v1.schema.json";
|
|
199
164
|
readonly version: "release-publisher-config-v1";
|
|
200
|
-
readonly sha256: "
|
|
165
|
+
readonly sha256: "47d782062652b85a77dc67a98c8859f2f1dc598d4496df13ca70c4ceb02df227";
|
|
201
166
|
}, {
|
|
202
167
|
readonly id: "release-revocation-pointer-schema";
|
|
203
168
|
readonly path: "spec/plugin/release-revocation-pointer-v2.schema.json";
|
|
204
169
|
readonly version: "release-revocation-pointer-v2";
|
|
205
|
-
readonly sha256: "
|
|
170
|
+
readonly sha256: "51ced7ca790d7d3d3dcb2e65faf3a3a74713ccefe7b2a5b97355a0b3226bdf34";
|
|
206
171
|
}, {
|
|
207
172
|
readonly id: "release-revocation-schema";
|
|
208
173
|
readonly path: "spec/plugin/release-revocation-v3.schema.json";
|
|
209
174
|
readonly version: "release-revocation-v3";
|
|
210
|
-
readonly sha256: "
|
|
175
|
+
readonly sha256: "930d2729719f5f44de108df23e9efbbae17f7a3072963c1c5471197b189aa8d9";
|
|
211
176
|
}, {
|
|
212
177
|
readonly id: "release-root-delegation-schema";
|
|
213
178
|
readonly path: "spec/plugin/release-root-delegation-v1.schema.json";
|
|
214
179
|
readonly version: "release-root-delegation-v1";
|
|
215
|
-
readonly sha256: "
|
|
216
|
-
}, {
|
|
217
|
-
readonly id: "release-signature-envelope-schema";
|
|
218
|
-
readonly path: "spec/plugin/release-signature-envelope-v1.schema.json";
|
|
219
|
-
readonly version: "release-signature-envelope-v1";
|
|
220
|
-
readonly sha256: "7df9afd22bfdebfa89dc3bdb46ecdbe22a91ecce35fa46c492dd9795c66fae29";
|
|
221
|
-
}, {
|
|
222
|
-
readonly id: "release-signing-ledger-evidence-schema";
|
|
223
|
-
readonly path: "spec/plugin/release-signing-ledger-evidence-v1.schema.json";
|
|
224
|
-
readonly version: "release-signing-ledger-evidence-v1";
|
|
225
|
-
readonly sha256: "9ab8b7f65dedcd119d578debb4f6ff97fc35f4c7ac95c0e5435f8b0959bc1a5c";
|
|
226
|
-
}, {
|
|
227
|
-
readonly id: "release-signing-ledger-receipt-schema";
|
|
228
|
-
readonly path: "spec/plugin/release-signing-ledger-receipt-v1.schema.json";
|
|
229
|
-
readonly version: "release-signing-ledger-receipt-v1";
|
|
230
|
-
readonly sha256: "29210cfefd967017c5c74bcf8489bd50511c5c9f36d17b0200056ccb90c30561";
|
|
231
|
-
}, {
|
|
232
|
-
readonly id: "release-signing-ledger-schema";
|
|
233
|
-
readonly path: "spec/plugin/release-signing-ledger-v1.schema.json";
|
|
234
|
-
readonly version: "release-signing-ledger-v1";
|
|
235
|
-
readonly sha256: "0c72b30bfd6b857b9809e48e1b7eaaeb7134d5afd6a935aa8373465054403765";
|
|
236
|
-
}, {
|
|
237
|
-
readonly id: "release-signing-subject-schema";
|
|
238
|
-
readonly path: "spec/plugin/release-signing-subject-v1.schema.json";
|
|
239
|
-
readonly version: "release-signing-subject-v1";
|
|
240
|
-
readonly sha256: "876b1459824f90042bd141e96bfea4633333bdf2a227e15b6e25c72db1179c8e";
|
|
180
|
+
readonly sha256: "f46249f9d51610b7a8401adc4ed04c098adaad408f35661b092f8d67767e21f2";
|
|
241
181
|
}, {
|
|
242
182
|
readonly id: "release-source-policy-pointer-schema";
|
|
243
183
|
readonly path: "spec/plugin/release-source-policy-pointer-v2.schema.json";
|
|
244
184
|
readonly version: "release-source-policy-pointer-v2";
|
|
245
|
-
readonly sha256: "
|
|
185
|
+
readonly sha256: "a4b2ba0909a633cfd0a365dff87ca1b6eaf6df53ac38b4d2b458d7ea85da6dd1";
|
|
246
186
|
}, {
|
|
247
187
|
readonly id: "release-source-policy-schema";
|
|
248
188
|
readonly path: "spec/plugin/release-source-policy-v3.schema.json";
|
|
249
189
|
readonly version: "release-source-policy-v3";
|
|
250
|
-
readonly sha256: "
|
|
251
|
-
}, {
|
|
252
|
-
readonly id: "release-trust-state-schema";
|
|
253
|
-
readonly path: "spec/plugin/release-trust-state-v1.schema.json";
|
|
254
|
-
readonly version: "release-trust-state-v1";
|
|
255
|
-
readonly sha256: "19ffa182932a22401a33ee4c9921e957c67895c2d8b041c9a27ee3530bdfb2d2";
|
|
190
|
+
readonly sha256: "9b6964cbbaeab6400ab25ff3da6fca891b9833c7f644f56367b420382d096244";
|
|
256
191
|
}, {
|
|
257
192
|
readonly id: "resource-scope-schema";
|
|
258
193
|
readonly path: "spec/plugin/resource-scope-v1.schema.json";
|
|
@@ -277,17 +212,12 @@ export declare const contractRegistry: {
|
|
|
277
212
|
readonly id: "rust-ipc-schema";
|
|
278
213
|
readonly path: "spec/plugin/ipc-v6.schema.json";
|
|
279
214
|
readonly version: "rust-ipc-v6";
|
|
280
|
-
readonly sha256: "
|
|
281
|
-
}, {
|
|
282
|
-
readonly id: "session-scope-maintenance-contract";
|
|
283
|
-
readonly path: "spec/plugin/session-scope-maintenance-v1.json";
|
|
284
|
-
readonly version: "session-scope-maintenance-v1";
|
|
285
|
-
readonly sha256: "fd87b6654c954ee2a2dc67958ba214048b894aa421bb74a85fb02000ec51f37b";
|
|
215
|
+
readonly sha256: "75d7fb83d4502be726e986025f7ec14fac592bcaeb7add6b28dff42a7360c5dc";
|
|
286
216
|
}, {
|
|
287
217
|
readonly id: "session-scope-schema";
|
|
288
218
|
readonly path: "spec/plugin/session-scope-v1.schema.json";
|
|
289
219
|
readonly version: "session-scope-v1";
|
|
290
|
-
readonly sha256: "
|
|
220
|
+
readonly sha256: "38044d65de36ce5219929ac4080547660734a7c6bb4d26d9b90e5838b1db331a";
|
|
291
221
|
}, {
|
|
292
222
|
readonly id: "target-classifier-fixture";
|
|
293
223
|
readonly path: "spec/plugin/target-classifier-v2.json";
|
|
@@ -297,17 +227,7 @@ export declare const contractRegistry: {
|
|
|
297
227
|
readonly id: "token-ticket-schema";
|
|
298
228
|
readonly path: "spec/plugin/token-ticket-v4.schema.json";
|
|
299
229
|
readonly version: "token-ticket-v4";
|
|
300
|
-
readonly sha256: "
|
|
301
|
-
}, {
|
|
302
|
-
readonly id: "trusted-time-evidence-schema";
|
|
303
|
-
readonly path: "spec/plugin/trusted-time-evidence-v1.schema.json";
|
|
304
|
-
readonly version: "trusted-time-evidence-v1";
|
|
305
|
-
readonly sha256: "4398cbd2a3eea42a85008ee16a69d7adb265673e6749b1f13a4f1610f36e5e38";
|
|
306
|
-
}, {
|
|
307
|
-
readonly id: "trusted-time-leaf-schema";
|
|
308
|
-
readonly path: "spec/plugin/trusted-time-leaf-v1.schema.json";
|
|
309
|
-
readonly version: "trusted-time-leaf-v1";
|
|
310
|
-
readonly sha256: "1c25eb0040800eef145aa2bb4c0e1ae197ae584d365e9595ab89037e26fe5ddb";
|
|
230
|
+
readonly sha256: "1576e35e4e06ba67c2fdc038934c5d5184fd1224adbd75c9f8eaf6a144ade238";
|
|
311
231
|
}, {
|
|
312
232
|
readonly id: "wasm-worker-schema";
|
|
313
233
|
readonly path: "spec/plugin/wasm-worker-v2.schema.json";
|
|
@@ -317,50 +237,46 @@ export declare const contractRegistry: {
|
|
|
317
237
|
readonly id: "worker-invocation-schema";
|
|
318
238
|
readonly path: "spec/plugin/worker-invocation-v3.schema.json";
|
|
319
239
|
readonly version: "worker-invocation-v3";
|
|
320
|
-
readonly sha256: "
|
|
240
|
+
readonly sha256: "f75b5b6ea0f5936e15f84a76d9b496690d7e1b7da7a05948ad26a88cc1360847";
|
|
321
241
|
}];
|
|
322
242
|
};
|
|
323
243
|
export declare const packageSet: {
|
|
324
|
-
readonly schema_version: "redevplugin.platform_package_set.
|
|
325
|
-
readonly platform_version: "0.
|
|
244
|
+
readonly schema_version: "redevplugin.platform_package_set.v2";
|
|
245
|
+
readonly platform_version: "1.0.0";
|
|
326
246
|
readonly go_module: {
|
|
327
247
|
readonly module: "github.com/floegence/redevplugin";
|
|
328
|
-
readonly version: "
|
|
248
|
+
readonly version: "v1.0.0";
|
|
329
249
|
};
|
|
330
250
|
readonly npm_packages: readonly [{
|
|
331
251
|
readonly name: "@floegence/redevplugin-contracts";
|
|
332
|
-
readonly version: "0.
|
|
252
|
+
readonly version: "1.0.0";
|
|
333
253
|
}, {
|
|
334
254
|
readonly name: "@floegence/redevplugin-ui";
|
|
335
|
-
readonly version: "0.
|
|
255
|
+
readonly version: "1.0.0";
|
|
336
256
|
}];
|
|
337
257
|
readonly rust_crates: readonly [{
|
|
338
258
|
readonly name: "redevplugin-contracts";
|
|
339
|
-
readonly version: "0.
|
|
259
|
+
readonly version: "1.0.0";
|
|
340
260
|
readonly role: "contracts";
|
|
341
261
|
}, {
|
|
342
262
|
readonly name: "redevplugin-ipc";
|
|
343
|
-
readonly version: "0.
|
|
263
|
+
readonly version: "1.0.0";
|
|
344
264
|
readonly role: "ipc";
|
|
345
265
|
}, {
|
|
346
266
|
readonly name: "redevplugin-wasm-abi";
|
|
347
|
-
readonly version: "0.
|
|
267
|
+
readonly version: "1.0.0";
|
|
348
268
|
readonly role: "wasm_abi";
|
|
349
|
-
}, {
|
|
350
|
-
readonly name: "redevplugin-target-classifier";
|
|
351
|
-
readonly version: "0.7.27";
|
|
352
|
-
readonly role: "target_classifier";
|
|
353
269
|
}, {
|
|
354
270
|
readonly name: "redevplugin-worker-sdk";
|
|
355
|
-
readonly version: "0.
|
|
271
|
+
readonly version: "1.0.0";
|
|
356
272
|
readonly role: "worker_sdk";
|
|
357
273
|
}, {
|
|
358
274
|
readonly name: "redevplugin-runtime";
|
|
359
|
-
readonly version: "0.
|
|
275
|
+
readonly version: "1.0.0";
|
|
360
276
|
readonly role: "runtime";
|
|
361
277
|
}];
|
|
362
278
|
readonly contract_registry_version: "contract-registry-v2";
|
|
363
|
-
readonly contract_set_sha256: "
|
|
279
|
+
readonly contract_set_sha256: "d504fb67e972c1d3dce7d5cbfe24cf198ed4a487a803ca8ea078cfe2925dbbe8";
|
|
364
280
|
};
|
|
365
|
-
export declare const contractSetSHA256: "
|
|
281
|
+
export declare const contractSetSHA256: "d504fb67e972c1d3dce7d5cbfe24cf198ed4a487a803ca8ea078cfe2925dbbe8";
|
|
366
282
|
export declare function getContract(id: ContractID): Contract;
|
|
@@ -2,19 +2,11 @@ export declare const rootDelegationSchemaVersion: "redevplugin.release_root_dele
|
|
|
2
2
|
export declare const packageSignatureSchemaVersion: "redevplugin.package_signature.v1";
|
|
3
3
|
export declare const releaseMetadataSchemaVersionV8: "redevplugin.release_metadata.v8";
|
|
4
4
|
export declare const releaseMetadataSchemaVersion: "redevplugin.release_metadata.v8";
|
|
5
|
-
export declare const sourcePolicySchemaVersion: "redevplugin.release_source_policy.
|
|
5
|
+
export declare const sourcePolicySchemaVersion: "redevplugin.release_source_policy.v3";
|
|
6
6
|
export declare const sourcePolicyPointerSchemaVersion: "redevplugin.release_source_policy_pointer.v1";
|
|
7
7
|
export declare const revocationSchemaVersion: "redevplugin.release_revocation.v2";
|
|
8
8
|
export declare const revocationPointerSchemaVersion: "redevplugin.release_revocation_pointer.v1";
|
|
9
|
-
export declare const releaseSigningLedgerEvidenceSchemaVersion: "redevplugin.release_signing_ledger_evidence.v1";
|
|
10
|
-
export declare const signingSubjectSchemaVersion: "redevplugin.release_signing_subject.v1";
|
|
11
|
-
export declare const signatureEnvelopeSchemaVersion: "redevplugin.release_signature_envelope.v1";
|
|
12
|
-
export declare const signingLedgerSchemaVersion: "redevplugin.release_signing_ledger.v1";
|
|
13
|
-
export declare const signingLedgerEntrySchemaVersion: "redevplugin.release_signing_ledger_entry.v1";
|
|
14
|
-
export declare const signingLedgerLogLeafSchemaVersion: "redevplugin.release_signing_ledger_log_leaf.v1";
|
|
15
|
-
export declare const signingLedgerReceiptSchemaVersion: "redevplugin.release_signing_ledger_receipt.v1";
|
|
16
9
|
export declare const signatureAlgorithmEd25519: "ed25519";
|
|
17
|
-
export declare const genesisPreviousEpoch: "0";
|
|
18
10
|
export declare const genesisPreviousDocumentSHA256: string;
|
|
19
11
|
export declare const signingUsages: {
|
|
20
12
|
readonly rootDelegation: "redevplugin.release-signing.root-delegation.v1";
|
|
@@ -26,7 +18,7 @@ export declare const signingUsages: {
|
|
|
26
18
|
readonly revocationPointer: "redevplugin.release-signing.revocation-pointer.v1";
|
|
27
19
|
};
|
|
28
20
|
export type SigningUsage = (typeof signingUsages)[keyof typeof signingUsages];
|
|
29
|
-
export type DelegatedKeyUsage = "package" | "release_metadata" | "
|
|
21
|
+
export type DelegatedKeyUsage = "package" | "release_metadata" | "source_policy_document" | "source_policy_pointer" | "revocation_document" | "revocation_pointer";
|
|
30
22
|
export type RootDelegatedKey = Readonly<{
|
|
31
23
|
algorithm: typeof signatureAlgorithmEd25519;
|
|
32
24
|
key_id: string;
|
|
@@ -40,8 +32,6 @@ export type RootDelegationV1 = Readonly<{
|
|
|
40
32
|
schema_version: typeof rootDelegationSchemaVersion;
|
|
41
33
|
source_id: string;
|
|
42
34
|
root_epoch: string;
|
|
43
|
-
previous_root_epoch: string;
|
|
44
|
-
previous_delegation_sha256: string;
|
|
45
35
|
generated_at: string;
|
|
46
36
|
expires_at: string;
|
|
47
37
|
delegated_keys: readonly RootDelegatedKey[];
|
|
@@ -105,28 +95,14 @@ export type PackageReleaseSignatureRef = Readonly<{
|
|
|
105
95
|
export type ReleaseCompatibility = Readonly<{
|
|
106
96
|
min_redevplugin_version: string;
|
|
107
97
|
min_runtime_version: string;
|
|
108
|
-
ui_protocol_version: "plugin-ui-
|
|
98
|
+
ui_protocol_version: "plugin-ui-v7";
|
|
109
99
|
supported_targets?: readonly ("darwin/amd64" | "darwin/arm64" | "linux/amd64" | "linux/arm64")[];
|
|
110
100
|
}>;
|
|
111
101
|
export type HostCapabilityContractRef = Readonly<{
|
|
112
102
|
publisher_id: string;
|
|
113
103
|
contract_id: string;
|
|
114
104
|
contract_version: string;
|
|
115
|
-
artifact_ref: string;
|
|
116
105
|
artifact_sha256: string;
|
|
117
|
-
manifest_ref: string;
|
|
118
|
-
manifest_sha256: string;
|
|
119
|
-
signature_ref: string;
|
|
120
|
-
signature_sha256: string;
|
|
121
|
-
signature_key_id: string;
|
|
122
|
-
signature_policy_epoch: string;
|
|
123
|
-
signature_revocation_epoch: string;
|
|
124
|
-
compatibility_ref: string;
|
|
125
|
-
compatibility_sha256: string;
|
|
126
|
-
generated_client_ref: string;
|
|
127
|
-
generated_client_sha256: string;
|
|
128
|
-
notices_ref: string;
|
|
129
|
-
notices_sha256: string;
|
|
130
106
|
}>;
|
|
131
107
|
export type HostCapabilityRequirementRef = Readonly<{
|
|
132
108
|
capability_id: string;
|
|
@@ -160,9 +136,8 @@ export type ReleaseMetadataV8 = Readonly<{
|
|
|
160
136
|
metadata?: Readonly<Record<string, string>>;
|
|
161
137
|
}>;
|
|
162
138
|
export type SourcePolicyLimits = Readonly<{
|
|
163
|
-
document_max_lifetime_seconds:
|
|
139
|
+
document_max_lifetime_seconds: 7776000;
|
|
164
140
|
future_skew_seconds: 300;
|
|
165
|
-
activation_lease_max_seconds: 300;
|
|
166
141
|
refresh_interval_max_seconds: 60;
|
|
167
142
|
failure_teardown_deadline_seconds: 30;
|
|
168
143
|
}>;
|
|
@@ -170,29 +145,21 @@ export declare const defaultSourcePolicyLimits: SourcePolicyLimits;
|
|
|
170
145
|
export type SourcePolicyActiveKeys = Readonly<{
|
|
171
146
|
package: readonly string[];
|
|
172
147
|
release_metadata: readonly string[];
|
|
173
|
-
host_capability_contract: readonly string[];
|
|
174
148
|
source_policy_pointer: readonly string[];
|
|
175
149
|
revocation_document: readonly string[];
|
|
176
150
|
revocation_pointer: readonly string[];
|
|
177
151
|
}>;
|
|
178
|
-
export type SourcePolicyCapabilityPublisherScope = Readonly<{
|
|
179
|
-
key_id: string;
|
|
180
|
-
allowed_publishers: readonly string[];
|
|
181
|
-
}>;
|
|
182
152
|
export type SourcePolicyV2 = Readonly<{
|
|
183
153
|
schema_version: typeof sourcePolicySchemaVersion;
|
|
184
154
|
source_id: string;
|
|
185
155
|
channel: string;
|
|
186
156
|
epoch: string;
|
|
187
|
-
previous_epoch: string;
|
|
188
|
-
previous_document_sha256: string;
|
|
189
157
|
root_epoch: string;
|
|
190
158
|
source_type: "registry" | "host_artifact";
|
|
191
159
|
source_class: "official" | "curated" | "community" | "private";
|
|
192
160
|
allowed_publishers: readonly string[];
|
|
193
161
|
allowed_artifact_hosts: readonly string[];
|
|
194
162
|
active_keys: SourcePolicyActiveKeys;
|
|
195
|
-
capability_publisher_scopes: readonly SourcePolicyCapabilityPublisherScope[];
|
|
196
163
|
require_signature: boolean;
|
|
197
164
|
install_policy: "allow" | "review_required" | "block";
|
|
198
165
|
unsigned_policy: "dev_only" | "review_required" | "block";
|
|
@@ -209,8 +176,6 @@ export type ReleasePointerInput = Readonly<{
|
|
|
209
176
|
source_id: string;
|
|
210
177
|
channel: string;
|
|
211
178
|
epoch: string;
|
|
212
|
-
previous_epoch: string;
|
|
213
|
-
previous_document_sha256: string;
|
|
214
179
|
ref: string;
|
|
215
180
|
document_sha256: string;
|
|
216
181
|
generated_at: string;
|
|
@@ -233,8 +198,6 @@ export type RevocationV2 = Readonly<{
|
|
|
233
198
|
source_id: string;
|
|
234
199
|
channel: string;
|
|
235
200
|
epoch: string;
|
|
236
|
-
previous_epoch: string;
|
|
237
|
-
previous_document_sha256: string;
|
|
238
201
|
root_epoch: string;
|
|
239
202
|
generated_at: string;
|
|
240
203
|
expires_at: string;
|
|
@@ -248,128 +211,6 @@ export type RevocationPointerV1 = Readonly<ReleasePointerInput & {
|
|
|
248
211
|
schema_version: typeof revocationPointerSchemaVersion;
|
|
249
212
|
signature: string;
|
|
250
213
|
}>;
|
|
251
|
-
export type SigningLedgerEvidenceV1 = Readonly<{
|
|
252
|
-
schema_version: typeof releaseSigningLedgerEvidenceSchemaVersion;
|
|
253
|
-
source_id: string;
|
|
254
|
-
channel?: string;
|
|
255
|
-
subject_identity_sha256: string;
|
|
256
|
-
signing_preimage_sha256: string;
|
|
257
|
-
signature_envelope_sha256: string;
|
|
258
|
-
receipt_ref: string;
|
|
259
|
-
receipt_sha256: string;
|
|
260
|
-
checkpoint_ref: string;
|
|
261
|
-
checkpoint_sha256: string;
|
|
262
|
-
inclusion_proof_ref: string;
|
|
263
|
-
inclusion_proof_sha256: string;
|
|
264
|
-
latest_proof_ref: string;
|
|
265
|
-
latest_proof_sha256: string;
|
|
266
|
-
consistency_proof_ref?: string;
|
|
267
|
-
consistency_proof_sha256?: string;
|
|
268
|
-
}>;
|
|
269
|
-
export type SigningSubjectUsage = "root_delegation" | "package" | "release_metadata" | "source_policy_document" | "source_policy_pointer" | "revocation_document" | "revocation_pointer";
|
|
270
|
-
export type SigningSubjectV1 = Readonly<{
|
|
271
|
-
schema_version: typeof signingSubjectSchemaVersion;
|
|
272
|
-
usage: SigningSubjectUsage;
|
|
273
|
-
source_id: string;
|
|
274
|
-
channel?: string;
|
|
275
|
-
root_epoch?: string;
|
|
276
|
-
publisher_id?: string;
|
|
277
|
-
plugin_id?: string;
|
|
278
|
-
version?: string;
|
|
279
|
-
artifact_or_metadata_identity_sha256?: string;
|
|
280
|
-
epoch?: string;
|
|
281
|
-
}>;
|
|
282
|
-
export type SignatureEnvelopeV1 = Readonly<{
|
|
283
|
-
schema_version: typeof signatureEnvelopeSchemaVersion;
|
|
284
|
-
subject_identity_sha256: string;
|
|
285
|
-
signing_preimage_sha256: string;
|
|
286
|
-
algorithm: typeof signatureAlgorithmEd25519;
|
|
287
|
-
key_id: string;
|
|
288
|
-
signature: string;
|
|
289
|
-
}>;
|
|
290
|
-
export type SigningLedgerEntryState = "reserved" | "finalized" | "terminal_failed";
|
|
291
|
-
export type SigningLedgerFailureCode = "signer_rejected" | "subject_conflict" | "ledger_rejected";
|
|
292
|
-
export type SigningLedgerEntryV1 = Readonly<{
|
|
293
|
-
schema_version: typeof signingLedgerEntrySchemaVersion;
|
|
294
|
-
state: SigningLedgerEntryState;
|
|
295
|
-
subject: SigningSubjectV1;
|
|
296
|
-
subject_identity_sha256: string;
|
|
297
|
-
signing_preimage_sha256: string;
|
|
298
|
-
algorithm: typeof signatureAlgorithmEd25519;
|
|
299
|
-
key_id: string;
|
|
300
|
-
revision: number;
|
|
301
|
-
reserved_at: string;
|
|
302
|
-
signature_envelope?: SignatureEnvelopeV1;
|
|
303
|
-
signature_envelope_sha256?: string;
|
|
304
|
-
finalized_at?: string;
|
|
305
|
-
failure_code?: SigningLedgerFailureCode;
|
|
306
|
-
failed_at?: string;
|
|
307
|
-
}>;
|
|
308
|
-
export type SigningLedgerLogLeafV1 = Readonly<{
|
|
309
|
-
schema_version: typeof signingLedgerLogLeafSchemaVersion;
|
|
310
|
-
source_id: string;
|
|
311
|
-
channel?: string;
|
|
312
|
-
subject_identity_sha256: string;
|
|
313
|
-
signing_preimage_sha256: string;
|
|
314
|
-
signature_envelope_sha256: string;
|
|
315
|
-
sequence: number;
|
|
316
|
-
}>;
|
|
317
|
-
export type SigningLedgerCheckpointV1 = Readonly<{
|
|
318
|
-
schema_version: typeof signingLedgerSchemaVersion;
|
|
319
|
-
kind: "checkpoint";
|
|
320
|
-
log_id: string;
|
|
321
|
-
tree_size: number;
|
|
322
|
-
log_root_hash: string;
|
|
323
|
-
latest_map_root_hash: string;
|
|
324
|
-
checkpoint_time: string;
|
|
325
|
-
key_id: string;
|
|
326
|
-
signature: string;
|
|
327
|
-
}>;
|
|
328
|
-
export type SigningLedgerReceiptV1 = Readonly<{
|
|
329
|
-
schema_version: typeof signingLedgerReceiptSchemaVersion;
|
|
330
|
-
log_id: string;
|
|
331
|
-
source_id: string;
|
|
332
|
-
channel?: string;
|
|
333
|
-
subject_identity_sha256: string;
|
|
334
|
-
signing_preimage_sha256: string;
|
|
335
|
-
signature_envelope_sha256: string;
|
|
336
|
-
sequence: number;
|
|
337
|
-
leaf_index: number;
|
|
338
|
-
tree_size: number;
|
|
339
|
-
log_root_hash: string;
|
|
340
|
-
latest_map_root_hash: string;
|
|
341
|
-
checkpoint_sha256: string;
|
|
342
|
-
checkpoint_time: string;
|
|
343
|
-
key_id: string;
|
|
344
|
-
signature: string;
|
|
345
|
-
}>;
|
|
346
|
-
export type SigningLedgerInclusionProofV1 = Readonly<{
|
|
347
|
-
schema_version: typeof signingLedgerSchemaVersion;
|
|
348
|
-
kind: "inclusion_proof";
|
|
349
|
-
log_id: string;
|
|
350
|
-
leaf_index: number;
|
|
351
|
-
tree_size: number;
|
|
352
|
-
nodes: readonly string[];
|
|
353
|
-
}>;
|
|
354
|
-
export type SigningLedgerLatestProofV1 = Readonly<{
|
|
355
|
-
schema_version: typeof signingLedgerSchemaVersion;
|
|
356
|
-
kind: "latest_proof";
|
|
357
|
-
log_id: string;
|
|
358
|
-
subject_identity_sha256: string;
|
|
359
|
-
present: boolean;
|
|
360
|
-
sequence?: number;
|
|
361
|
-
signing_preimage_sha256?: string;
|
|
362
|
-
signature_envelope_sha256?: string;
|
|
363
|
-
siblings: readonly string[];
|
|
364
|
-
}>;
|
|
365
|
-
export type SigningLedgerConsistencyProofV1 = Readonly<{
|
|
366
|
-
schema_version: typeof signingLedgerSchemaVersion;
|
|
367
|
-
kind: "consistency_proof";
|
|
368
|
-
log_id: string;
|
|
369
|
-
old_tree_size: number;
|
|
370
|
-
new_tree_size: number;
|
|
371
|
-
nodes: readonly string[];
|
|
372
|
-
}>;
|
|
373
214
|
export type SignatureVerificationRequest = Readonly<{
|
|
374
215
|
usage: SigningUsage;
|
|
375
216
|
keyID: string;
|
|
@@ -418,18 +259,4 @@ export declare function decodeSourcePolicy(raw: Uint8Array | string): SourcePoli
|
|
|
418
259
|
export declare function decodeSourcePolicyPointer(raw: Uint8Array | string): SourcePolicyPointerV1;
|
|
419
260
|
export declare function decodeRevocation(raw: Uint8Array | string): RevocationV2;
|
|
420
261
|
export declare function decodeRevocationPointer(raw: Uint8Array | string): RevocationPointerV1;
|
|
421
|
-
export declare function decodeSigningLedgerEvidence(raw: Uint8Array | string): SigningLedgerEvidenceV1;
|
|
422
|
-
export declare function canonicalSigningSubject(value: SigningSubjectV1): Uint8Array;
|
|
423
|
-
export declare function decodeSigningSubject(raw: Uint8Array | string): SigningSubjectV1;
|
|
424
|
-
export declare function canonicalSignatureEnvelope(value: SignatureEnvelopeV1): Uint8Array;
|
|
425
|
-
export declare function decodeSignatureEnvelope(raw: Uint8Array | string): SignatureEnvelopeV1;
|
|
426
|
-
export declare function canonicalSigningLedgerEntry(value: SigningLedgerEntryV1): Uint8Array;
|
|
427
|
-
export declare function decodeSigningLedgerEntry(raw: Uint8Array | string): SigningLedgerEntryV1;
|
|
428
|
-
export declare function verifySigningLedgerEntryBindings(value: SigningLedgerEntryV1): Promise<void>;
|
|
429
|
-
export declare function decodeSigningLedgerLogLeaf(raw: Uint8Array | string): SigningLedgerLogLeafV1;
|
|
430
|
-
export declare function decodeSigningLedgerCheckpoint(raw: Uint8Array | string): SigningLedgerCheckpointV1;
|
|
431
|
-
export declare function decodeSigningLedgerReceipt(raw: Uint8Array | string): SigningLedgerReceiptV1;
|
|
432
|
-
export declare function decodeSigningLedgerInclusionProof(raw: Uint8Array | string): SigningLedgerInclusionProofV1;
|
|
433
|
-
export declare function decodeSigningLedgerLatestProof(raw: Uint8Array | string): SigningLedgerLatestProofV1;
|
|
434
|
-
export declare function decodeSigningLedgerConsistencyProof(raw: Uint8Array | string): SigningLedgerConsistencyProofV1;
|
|
435
262
|
export declare function createEd25519Verifier(publicKeys: Readonly<Record<string, Uint8Array>>, subtle?: SubtleCrypto): SignatureVerifier;
|