@floegence/redevplugin-contracts 0.6.19 → 0.6.20
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 +56 -56
- package/dist/contracts.gen.js +56 -56
- package/dist/index.d.ts +30 -30
- 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-v12.schema.json";
|
|
23
|
+
readonly version: "compatibility-manifest-v12";
|
|
24
|
+
readonly sha256: "e8b2536da3c2285c982464d9822cd501cea1418ef2276ce93d417df83eb41f47";
|
|
25
25
|
}, {
|
|
26
26
|
readonly id: "contract-registry-schema";
|
|
27
27
|
readonly path: "spec/plugin/contract-registry-v2.schema.json";
|
|
@@ -64,14 +64,14 @@ export declare const contractRegistry: {
|
|
|
64
64
|
readonly sha256: "88cbc1d63afb7e289ca4f8b7c76f702b8d20156f7722c1b71f3ab9138a240a5e";
|
|
65
65
|
}, {
|
|
66
66
|
readonly id: "iframe-bridge-schema";
|
|
67
|
-
readonly path: "spec/plugin/bridge-
|
|
68
|
-
readonly version: "bridge-
|
|
69
|
-
readonly sha256: "
|
|
67
|
+
readonly path: "spec/plugin/bridge-v7.schema.json";
|
|
68
|
+
readonly version: "bridge-v7";
|
|
69
|
+
readonly sha256: "f4b5f04870b58e8e2363aaba98b273adccef3a3e9ac1eb1a2dbbc3fb4c71b300";
|
|
70
70
|
}, {
|
|
71
71
|
readonly id: "manifest-schema";
|
|
72
|
-
readonly path: "spec/plugin/manifest-
|
|
73
|
-
readonly version: "manifest-
|
|
74
|
-
readonly sha256: "
|
|
72
|
+
readonly path: "spec/plugin/manifest-v7.schema.json";
|
|
73
|
+
readonly version: "manifest-v7";
|
|
74
|
+
readonly sha256: "af73ffd8ccedcb149198f847b68ed6fc23e51366122915c7129473f9fde68e35";
|
|
75
75
|
}, {
|
|
76
76
|
readonly id: "network-grant-schema";
|
|
77
77
|
readonly path: "spec/plugin/network-grant-v2.schema.json";
|
|
@@ -84,9 +84,9 @@ export declare const contractRegistry: {
|
|
|
84
84
|
readonly sha256: "63419ff5b5a8890e14f97ca29aaae175b93daff61d4567c5bdff7f6e6a9e7450";
|
|
85
85
|
}, {
|
|
86
86
|
readonly id: "opaque-surface-transport-schema";
|
|
87
|
-
readonly path: "spec/plugin/opaque-surface-transport-
|
|
88
|
-
readonly version: "opaque-surface-transport-
|
|
89
|
-
readonly sha256: "
|
|
87
|
+
readonly path: "spec/plugin/opaque-surface-transport-v6.schema.json";
|
|
88
|
+
readonly version: "opaque-surface-transport-v6";
|
|
89
|
+
readonly sha256: "8f2af2669edc9413020c26765ee3f1986ef63a7d0803466861d8cdae3977ccff";
|
|
90
90
|
}, {
|
|
91
91
|
readonly id: "owner-scope-inventory-registry";
|
|
92
92
|
readonly path: "spec/plugin/owner-scope-inventories-v1.json";
|
|
@@ -134,9 +134,9 @@ export declare const contractRegistry: {
|
|
|
134
134
|
readonly sha256: "4d9979f5205ec047895b64c995312c588d998bb1c1448f6c9c559f1b7ab0d796";
|
|
135
135
|
}, {
|
|
136
136
|
readonly id: "plugin-platform-openapi";
|
|
137
|
-
readonly path: "spec/openapi/plugin-platform-
|
|
138
|
-
readonly version: "plugin-platform-
|
|
139
|
-
readonly sha256: "
|
|
137
|
+
readonly path: "spec/openapi/plugin-platform-v10.yaml";
|
|
138
|
+
readonly version: "plugin-platform-v10";
|
|
139
|
+
readonly sha256: "28a7311167249ec0cec1e0f2593e481c99d84c6ab0da673eb2f8e9832c243e49";
|
|
140
140
|
}, {
|
|
141
141
|
readonly id: "process-containment-schema";
|
|
142
142
|
readonly path: "spec/plugin/process-containment-v1.schema.json";
|
|
@@ -149,9 +149,9 @@ export declare const contractRegistry: {
|
|
|
149
149
|
readonly sha256: "0aced01a8d409953d5075a799ac273cae79e285ac82debe93ac4d8b706571ad1";
|
|
150
150
|
}, {
|
|
151
151
|
readonly id: "release-metadata-schema";
|
|
152
|
-
readonly path: "spec/plugin/release-metadata-
|
|
153
|
-
readonly version: "release-metadata-
|
|
154
|
-
readonly sha256: "
|
|
152
|
+
readonly path: "spec/plugin/release-metadata-v7.schema.json";
|
|
153
|
+
readonly version: "release-metadata-v7";
|
|
154
|
+
readonly sha256: "d9ceac9b8dd52288172bbe5d4dc2f158e2354ad4fe1f071617f6ba9309e21ebf";
|
|
155
155
|
}, {
|
|
156
156
|
readonly id: "release-revocation-pointer-schema";
|
|
157
157
|
readonly path: "spec/plugin/release-revocation-pointer-v1.schema.json";
|
|
@@ -276,45 +276,45 @@ export declare const contractRegistry: {
|
|
|
276
276
|
};
|
|
277
277
|
export declare const packageSet: {
|
|
278
278
|
readonly schema_version: "redevplugin.platform_package_set.v1";
|
|
279
|
-
readonly platform_version: "0.6.
|
|
279
|
+
readonly platform_version: "0.6.20";
|
|
280
280
|
readonly go_module: {
|
|
281
281
|
readonly module: "github.com/floegence/redevplugin";
|
|
282
|
-
readonly version: "v0.6.
|
|
282
|
+
readonly version: "v0.6.20";
|
|
283
283
|
};
|
|
284
284
|
readonly npm_packages: readonly [{
|
|
285
285
|
readonly name: "@floegence/redevplugin-contracts";
|
|
286
|
-
readonly version: "0.6.
|
|
286
|
+
readonly version: "0.6.20";
|
|
287
287
|
}, {
|
|
288
288
|
readonly name: "@floegence/redevplugin-ui";
|
|
289
|
-
readonly version: "0.6.
|
|
289
|
+
readonly version: "0.6.20";
|
|
290
290
|
}];
|
|
291
291
|
readonly rust_crates: readonly [{
|
|
292
292
|
readonly name: "redevplugin-contracts";
|
|
293
|
-
readonly version: "0.6.
|
|
293
|
+
readonly version: "0.6.20";
|
|
294
294
|
readonly role: "contracts";
|
|
295
295
|
}, {
|
|
296
296
|
readonly name: "redevplugin-ipc";
|
|
297
|
-
readonly version: "0.6.
|
|
297
|
+
readonly version: "0.6.20";
|
|
298
298
|
readonly role: "ipc";
|
|
299
299
|
}, {
|
|
300
300
|
readonly name: "redevplugin-wasm-abi";
|
|
301
|
-
readonly version: "0.6.
|
|
301
|
+
readonly version: "0.6.20";
|
|
302
302
|
readonly role: "wasm_abi";
|
|
303
303
|
}, {
|
|
304
304
|
readonly name: "redevplugin-target-classifier";
|
|
305
|
-
readonly version: "0.6.
|
|
305
|
+
readonly version: "0.6.20";
|
|
306
306
|
readonly role: "target_classifier";
|
|
307
307
|
}, {
|
|
308
308
|
readonly name: "redevplugin-worker-sdk";
|
|
309
|
-
readonly version: "0.6.
|
|
309
|
+
readonly version: "0.6.20";
|
|
310
310
|
readonly role: "worker_sdk";
|
|
311
311
|
}, {
|
|
312
312
|
readonly name: "redevplugin-runtime";
|
|
313
|
-
readonly version: "0.6.
|
|
313
|
+
readonly version: "0.6.20";
|
|
314
314
|
readonly role: "runtime";
|
|
315
315
|
}];
|
|
316
316
|
readonly contract_registry_version: "contract-registry-v2";
|
|
317
|
-
readonly contract_set_sha256: "
|
|
317
|
+
readonly contract_set_sha256: "025c985f64076429e54eb404af05b16bfd7c85f9148a3a389ff915629b05fbb2";
|
|
318
318
|
};
|
|
319
|
-
export declare const contractSetSHA256: "
|
|
319
|
+
export declare const contractSetSHA256: "025c985f64076429e54eb404af05b16bfd7c85f9148a3a389ff915629b05fbb2";
|
|
320
320
|
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))
|