@floegence/redevplugin-contracts 0.6.19 → 0.6.21
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/contracts.gen.d.ts +128 -84
- package/dist/contracts.gen.js +136 -84
- package/dist/index.d.ts +62 -42
- package/dist/release-signing.d.ts +4 -3
- package/dist/release-signing.js +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,9 +19,9 @@ export declare const contractRegistry: {
|
|
|
19
19
|
readonly registry_version: "contract-registry-v2";
|
|
20
20
|
readonly artifacts: readonly [{
|
|
21
21
|
readonly id: "compatibility-manifest-schema";
|
|
22
|
-
readonly path: "spec/plugin/compatibility-manifest-
|
|
23
|
-
readonly version: "compatibility-manifest-
|
|
24
|
-
readonly sha256: "
|
|
22
|
+
readonly path: "spec/plugin/compatibility-manifest-v13.schema.json";
|
|
23
|
+
readonly version: "compatibility-manifest-v13";
|
|
24
|
+
readonly sha256: "c95fdfe0c5818ba57e664c534c3d10d073545e5a31bccd7c1ee5d39d391d13b2";
|
|
25
25
|
}, {
|
|
26
26
|
readonly id: "contract-registry-schema";
|
|
27
27
|
readonly path: "spec/plugin/contract-registry-v2.schema.json";
|
|
@@ -32,6 +32,16 @@ export declare const contractRegistry: {
|
|
|
32
32
|
readonly path: "spec/plugin/error-codes-v7.schema.json";
|
|
33
33
|
readonly version: "error-codes-v7";
|
|
34
34
|
readonly sha256: "4e7cac510a6036f90cae8f58ff8c3b785b3a2d3933875f2f69bef1c41de3d26c";
|
|
35
|
+
}, {
|
|
36
|
+
readonly id: "external-signer-request-schema";
|
|
37
|
+
readonly path: "spec/plugin/external-signer-request-v1.schema.json";
|
|
38
|
+
readonly version: "external-signer-request-v1";
|
|
39
|
+
readonly sha256: "abc18af2e29dea6f0b49a28b75b046ef02f200597978c8238cc587fb7e670760";
|
|
40
|
+
}, {
|
|
41
|
+
readonly id: "external-signer-response-schema";
|
|
42
|
+
readonly path: "spec/plugin/external-signer-response-v1.schema.json";
|
|
43
|
+
readonly version: "external-signer-response-v1";
|
|
44
|
+
readonly sha256: "bbe657df5afdf459a4c5f83282ddc3ec6c80c1ebd25bb954eac92101f35afc6c";
|
|
35
45
|
}, {
|
|
36
46
|
readonly id: "host-capability-compatibility-schema";
|
|
37
47
|
readonly path: "spec/plugin/host-capability-compatibility-v1.schema.json";
|
|
@@ -64,14 +74,14 @@ export declare const contractRegistry: {
|
|
|
64
74
|
readonly sha256: "88cbc1d63afb7e289ca4f8b7c76f702b8d20156f7722c1b71f3ab9138a240a5e";
|
|
65
75
|
}, {
|
|
66
76
|
readonly id: "iframe-bridge-schema";
|
|
67
|
-
readonly path: "spec/plugin/bridge-
|
|
68
|
-
readonly version: "bridge-
|
|
69
|
-
readonly sha256: "
|
|
77
|
+
readonly path: "spec/plugin/bridge-v7.schema.json";
|
|
78
|
+
readonly version: "bridge-v7";
|
|
79
|
+
readonly sha256: "f4b5f04870b58e8e2363aaba98b273adccef3a3e9ac1eb1a2dbbc3fb4c71b300";
|
|
70
80
|
}, {
|
|
71
81
|
readonly id: "manifest-schema";
|
|
72
|
-
readonly path: "spec/plugin/manifest-
|
|
73
|
-
readonly version: "manifest-
|
|
74
|
-
readonly sha256: "
|
|
82
|
+
readonly path: "spec/plugin/manifest-v7.schema.json";
|
|
83
|
+
readonly version: "manifest-v7";
|
|
84
|
+
readonly sha256: "af73ffd8ccedcb149198f847b68ed6fc23e51366122915c7129473f9fde68e35";
|
|
75
85
|
}, {
|
|
76
86
|
readonly id: "network-grant-schema";
|
|
77
87
|
readonly path: "spec/plugin/network-grant-v2.schema.json";
|
|
@@ -84,9 +94,9 @@ export declare const contractRegistry: {
|
|
|
84
94
|
readonly sha256: "63419ff5b5a8890e14f97ca29aaae175b93daff61d4567c5bdff7f6e6a9e7450";
|
|
85
95
|
}, {
|
|
86
96
|
readonly id: "opaque-surface-transport-schema";
|
|
87
|
-
readonly path: "spec/plugin/opaque-surface-transport-
|
|
88
|
-
readonly version: "opaque-surface-transport-
|
|
89
|
-
readonly sha256: "
|
|
97
|
+
readonly path: "spec/plugin/opaque-surface-transport-v6.schema.json";
|
|
98
|
+
readonly version: "opaque-surface-transport-v6";
|
|
99
|
+
readonly sha256: "8f2af2669edc9413020c26765ee3f1986ef63a7d0803466861d8cdae3977ccff";
|
|
90
100
|
}, {
|
|
91
101
|
readonly id: "owner-scope-inventory-registry";
|
|
92
102
|
readonly path: "spec/plugin/owner-scope-inventories-v1.json";
|
|
@@ -134,14 +144,19 @@ export declare const contractRegistry: {
|
|
|
134
144
|
readonly sha256: "4d9979f5205ec047895b64c995312c588d998bb1c1448f6c9c559f1b7ab0d796";
|
|
135
145
|
}, {
|
|
136
146
|
readonly id: "plugin-platform-openapi";
|
|
137
|
-
readonly path: "spec/openapi/plugin-platform-
|
|
138
|
-
readonly version: "plugin-platform-
|
|
139
|
-
readonly sha256: "
|
|
147
|
+
readonly path: "spec/openapi/plugin-platform-v11.yaml";
|
|
148
|
+
readonly version: "plugin-platform-v11";
|
|
149
|
+
readonly sha256: "41c84c939ca9471baafdb16a1fe7d62a232a58df91e579514351dd6046e529e7";
|
|
140
150
|
}, {
|
|
141
151
|
readonly id: "process-containment-schema";
|
|
142
152
|
readonly path: "spec/plugin/process-containment-v1.schema.json";
|
|
143
153
|
readonly version: "process-containment-v1";
|
|
144
154
|
readonly sha256: "930ea44b1f62361706e994649e84f62af0a6418b77a661ae9bf9c10f1398e3fc";
|
|
155
|
+
}, {
|
|
156
|
+
readonly id: "publisher-release-ref-schema";
|
|
157
|
+
readonly path: "spec/plugin/publisher-release-ref-v1.schema.json";
|
|
158
|
+
readonly version: "publisher-release-ref-v1";
|
|
159
|
+
readonly sha256: "f9fd40c87197064ffa3e21a361780a4d057b51df2e886988aac64279785acdc0";
|
|
145
160
|
}, {
|
|
146
161
|
readonly id: "quarantine-cleanup-schema";
|
|
147
162
|
readonly path: "spec/plugin/quarantine-cleanup-v1.schema.json";
|
|
@@ -149,19 +164,24 @@ export declare const contractRegistry: {
|
|
|
149
164
|
readonly sha256: "0aced01a8d409953d5075a799ac273cae79e285ac82debe93ac4d8b706571ad1";
|
|
150
165
|
}, {
|
|
151
166
|
readonly id: "release-metadata-schema";
|
|
152
|
-
readonly path: "spec/plugin/release-metadata-
|
|
153
|
-
readonly version: "release-metadata-
|
|
154
|
-
readonly sha256: "
|
|
167
|
+
readonly path: "spec/plugin/release-metadata-v7.schema.json";
|
|
168
|
+
readonly version: "release-metadata-v7";
|
|
169
|
+
readonly sha256: "d9ceac9b8dd52288172bbe5d4dc2f158e2354ad4fe1f071617f6ba9309e21ebf";
|
|
170
|
+
}, {
|
|
171
|
+
readonly id: "release-publisher-config-schema";
|
|
172
|
+
readonly path: "spec/plugin/release-publisher-config-v1.schema.json";
|
|
173
|
+
readonly version: "release-publisher-config-v1";
|
|
174
|
+
readonly sha256: "c18b11489f81ac657c8324ed344b88b61b259981383ee7b4f9f0b65603a171f8";
|
|
155
175
|
}, {
|
|
156
176
|
readonly id: "release-revocation-pointer-schema";
|
|
157
|
-
readonly path: "spec/plugin/release-revocation-pointer-
|
|
158
|
-
readonly version: "release-revocation-pointer-
|
|
159
|
-
readonly sha256: "
|
|
177
|
+
readonly path: "spec/plugin/release-revocation-pointer-v2.schema.json";
|
|
178
|
+
readonly version: "release-revocation-pointer-v2";
|
|
179
|
+
readonly sha256: "dd39ba618ab02698f135875305d4aa6eb562af7d15520c4ad312cd82e9a7032b";
|
|
160
180
|
}, {
|
|
161
181
|
readonly id: "release-revocation-schema";
|
|
162
|
-
readonly path: "spec/plugin/release-revocation-
|
|
163
|
-
readonly version: "release-revocation-
|
|
164
|
-
readonly sha256: "
|
|
182
|
+
readonly path: "spec/plugin/release-revocation-v3.schema.json";
|
|
183
|
+
readonly version: "release-revocation-v3";
|
|
184
|
+
readonly sha256: "bd2ca3ab93f047897d3b377adc7fa8b073fc946539a0c5495def1e64915a782b";
|
|
165
185
|
}, {
|
|
166
186
|
readonly id: "release-root-delegation-schema";
|
|
167
187
|
readonly path: "spec/plugin/release-root-delegation-v1.schema.json";
|
|
@@ -194,14 +214,14 @@ export declare const contractRegistry: {
|
|
|
194
214
|
readonly sha256: "876b1459824f90042bd141e96bfea4633333bdf2a227e15b6e25c72db1179c8e";
|
|
195
215
|
}, {
|
|
196
216
|
readonly id: "release-source-policy-pointer-schema";
|
|
197
|
-
readonly path: "spec/plugin/release-source-policy-pointer-
|
|
198
|
-
readonly version: "release-source-policy-pointer-
|
|
199
|
-
readonly sha256: "
|
|
217
|
+
readonly path: "spec/plugin/release-source-policy-pointer-v2.schema.json";
|
|
218
|
+
readonly version: "release-source-policy-pointer-v2";
|
|
219
|
+
readonly sha256: "735659143db7204abdd20c6fbc994ac7474618c41b85949aad4c28fb2912e034";
|
|
200
220
|
}, {
|
|
201
221
|
readonly id: "release-source-policy-schema";
|
|
202
|
-
readonly path: "spec/plugin/release-source-policy-
|
|
203
|
-
readonly version: "release-source-policy-
|
|
204
|
-
readonly sha256: "
|
|
222
|
+
readonly path: "spec/plugin/release-source-policy-v3.schema.json";
|
|
223
|
+
readonly version: "release-source-policy-v3";
|
|
224
|
+
readonly sha256: "8814de028800c92b26c8c85a06298762598aeba1835f57048ec6c06430f8567b";
|
|
205
225
|
}, {
|
|
206
226
|
readonly id: "release-trust-state-schema";
|
|
207
227
|
readonly path: "spec/plugin/release-trust-state-v1.schema.json";
|
|
@@ -276,45 +296,45 @@ export declare const contractRegistry: {
|
|
|
276
296
|
};
|
|
277
297
|
export declare const packageSet: {
|
|
278
298
|
readonly schema_version: "redevplugin.platform_package_set.v1";
|
|
279
|
-
readonly platform_version: "0.6.
|
|
299
|
+
readonly platform_version: "0.6.21";
|
|
280
300
|
readonly go_module: {
|
|
281
301
|
readonly module: "github.com/floegence/redevplugin";
|
|
282
|
-
readonly version: "v0.6.
|
|
302
|
+
readonly version: "v0.6.21";
|
|
283
303
|
};
|
|
284
304
|
readonly npm_packages: readonly [{
|
|
285
305
|
readonly name: "@floegence/redevplugin-contracts";
|
|
286
|
-
readonly version: "0.6.
|
|
306
|
+
readonly version: "0.6.21";
|
|
287
307
|
}, {
|
|
288
308
|
readonly name: "@floegence/redevplugin-ui";
|
|
289
|
-
readonly version: "0.6.
|
|
309
|
+
readonly version: "0.6.21";
|
|
290
310
|
}];
|
|
291
311
|
readonly rust_crates: readonly [{
|
|
292
312
|
readonly name: "redevplugin-contracts";
|
|
293
|
-
readonly version: "0.6.
|
|
313
|
+
readonly version: "0.6.21";
|
|
294
314
|
readonly role: "contracts";
|
|
295
315
|
}, {
|
|
296
316
|
readonly name: "redevplugin-ipc";
|
|
297
|
-
readonly version: "0.6.
|
|
317
|
+
readonly version: "0.6.21";
|
|
298
318
|
readonly role: "ipc";
|
|
299
319
|
}, {
|
|
300
320
|
readonly name: "redevplugin-wasm-abi";
|
|
301
|
-
readonly version: "0.6.
|
|
321
|
+
readonly version: "0.6.21";
|
|
302
322
|
readonly role: "wasm_abi";
|
|
303
323
|
}, {
|
|
304
324
|
readonly name: "redevplugin-target-classifier";
|
|
305
|
-
readonly version: "0.6.
|
|
325
|
+
readonly version: "0.6.21";
|
|
306
326
|
readonly role: "target_classifier";
|
|
307
327
|
}, {
|
|
308
328
|
readonly name: "redevplugin-worker-sdk";
|
|
309
|
-
readonly version: "0.6.
|
|
329
|
+
readonly version: "0.6.21";
|
|
310
330
|
readonly role: "worker_sdk";
|
|
311
331
|
}, {
|
|
312
332
|
readonly name: "redevplugin-runtime";
|
|
313
|
-
readonly version: "0.6.
|
|
333
|
+
readonly version: "0.6.21";
|
|
314
334
|
readonly role: "runtime";
|
|
315
335
|
}];
|
|
316
336
|
readonly contract_registry_version: "contract-registry-v2";
|
|
317
|
-
readonly contract_set_sha256: "
|
|
337
|
+
readonly contract_set_sha256: "5ebda1f3b0fc0b23b138469c37cf4dbddcfd995f35887e1c95968d03432a189b";
|
|
318
338
|
};
|
|
319
|
-
export declare const contractSetSHA256: "
|
|
339
|
+
export declare const contractSetSHA256: "5ebda1f3b0fc0b23b138469c37cf4dbddcfd995f35887e1c95968d03432a189b";
|
|
320
340
|
export declare function getContract(id: ContractID): Contract;
|
|
@@ -2,7 +2,8 @@ export declare const rootDelegationSchemaVersion: "redevplugin.release_root_dele
|
|
|
2
2
|
export declare const packageSignatureSchemaVersion: "redevplugin.package_signature.v1";
|
|
3
3
|
export declare const releaseMetadataSchemaVersionV5: "redevplugin.release_metadata.v5";
|
|
4
4
|
export declare const releaseMetadataSchemaVersionV6: "redevplugin.release_metadata.v6";
|
|
5
|
-
export declare const
|
|
5
|
+
export declare const releaseMetadataSchemaVersionV7: "redevplugin.release_metadata.v7";
|
|
6
|
+
export declare const releaseMetadataSchemaVersion: "redevplugin.release_metadata.v7";
|
|
6
7
|
export declare const sourcePolicySchemaVersion: "redevplugin.release_source_policy.v2";
|
|
7
8
|
export declare const sourcePolicyPointerSchemaVersion: "redevplugin.release_source_policy_pointer.v1";
|
|
8
9
|
export declare const revocationSchemaVersion: "redevplugin.release_revocation.v2";
|
|
@@ -106,7 +107,7 @@ export type PackageReleaseSignatureRef = Readonly<{
|
|
|
106
107
|
export type ReleaseCompatibility = Readonly<{
|
|
107
108
|
min_redevplugin_version: string;
|
|
108
109
|
min_runtime_version: string;
|
|
109
|
-
ui_protocol_version: "plugin-ui-v5" | "plugin-ui-v6";
|
|
110
|
+
ui_protocol_version: "plugin-ui-v5" | "plugin-ui-v6" | "plugin-ui-v7";
|
|
110
111
|
supported_targets?: readonly ("darwin/amd64" | "darwin/arm64" | "linux/amd64" | "linux/arm64")[];
|
|
111
112
|
}>;
|
|
112
113
|
export type HostCapabilityContractRef = Readonly<{
|
|
@@ -145,7 +146,7 @@ export type ReleaseEvidence = Readonly<{
|
|
|
145
146
|
generated_at?: string;
|
|
146
147
|
}>;
|
|
147
148
|
export type ReleaseMetadataV5 = Readonly<{
|
|
148
|
-
schema_version: typeof releaseMetadataSchemaVersionV5 | typeof releaseMetadataSchemaVersionV6;
|
|
149
|
+
schema_version: typeof releaseMetadataSchemaVersionV5 | typeof releaseMetadataSchemaVersionV6 | typeof releaseMetadataSchemaVersionV7;
|
|
149
150
|
source_id: string;
|
|
150
151
|
release_metadata_ref: string;
|
|
151
152
|
publisher_id: string;
|
package/dist/release-signing.js
CHANGED
|
@@ -2,7 +2,8 @@ export const rootDelegationSchemaVersion = "redevplugin.release_root_delegation.
|
|
|
2
2
|
export const packageSignatureSchemaVersion = "redevplugin.package_signature.v1";
|
|
3
3
|
export const releaseMetadataSchemaVersionV5 = "redevplugin.release_metadata.v5";
|
|
4
4
|
export const releaseMetadataSchemaVersionV6 = "redevplugin.release_metadata.v6";
|
|
5
|
-
export const
|
|
5
|
+
export const releaseMetadataSchemaVersionV7 = "redevplugin.release_metadata.v7";
|
|
6
|
+
export const releaseMetadataSchemaVersion = releaseMetadataSchemaVersionV7;
|
|
6
7
|
export const sourcePolicySchemaVersion = "redevplugin.release_source_policy.v2";
|
|
7
8
|
export const sourcePolicyPointerSchemaVersion = "redevplugin.release_source_policy_pointer.v1";
|
|
8
9
|
export const revocationSchemaVersion = "redevplugin.release_revocation.v2";
|
|
@@ -395,7 +396,8 @@ function validateReleaseMetadata(value) {
|
|
|
395
396
|
}
|
|
396
397
|
function validReleaseMetadataUIProtocolPair(schemaVersion, uiProtocolVersion) {
|
|
397
398
|
return (schemaVersion === releaseMetadataSchemaVersionV5 && uiProtocolVersion === "plugin-ui-v5") ||
|
|
398
|
-
(schemaVersion === releaseMetadataSchemaVersionV6 && uiProtocolVersion === "plugin-ui-v6")
|
|
399
|
+
(schemaVersion === releaseMetadataSchemaVersionV6 && uiProtocolVersion === "plugin-ui-v6") ||
|
|
400
|
+
(schemaVersion === releaseMetadataSchemaVersionV7 && uiProtocolVersion === "plugin-ui-v7");
|
|
399
401
|
}
|
|
400
402
|
function validateCapabilityContractRef(value) {
|
|
401
403
|
if (![value.publisher_id, value.contract_id, value.signature_key_id].every((item) => matchesPattern(legacyIDPattern, item)) || !matchesPattern(semverPattern, value.contract_version))
|