@aikdna/kdna-core 0.37.1-rc.browser.1 → 0.37.2
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 +22 -11
- package/package.json +6 -1
- package/src/public-contract/browser-native/sections/contract.json +2 -2
- package/src/public-contract/browser-native/whole.js +30 -1
- package/src/public-contract/browserwhole06/contract.json +2 -2
- package/src/public-contract/creation06/contract.json +2 -2
- package/src/public-contract/creation06/generation-manifest.json +6 -6
- package/src/public-contract/execution06/contract.json +2 -2
- package/src/public-contract/execution06/generation-manifest.json +6 -6
- package/src/public-contract/issuer-contract.generated.json +4 -4
- package/src/public-contract/issuer-validators.generated.js +7 -7
- package/src/public-contract/key-grant-issuer-node.d.ts +1 -1
- package/src/public-contract/package-set-contract.generated.json +5 -5
- package/src/public-contract/package-set-node.d.ts +1 -1
- package/src/public-contract/package-set-validators.generated.js +9 -9
- package/src/public-contract/packageset06/contract.json +2 -2
- package/src/public-contract/packageset06/generation-manifest.json +6 -6
- package/src/public-contract/protected-browser-contract/contract.json +4 -4
- package/src/public-contract/protected-browser-contract/descriptor.json +1 -1
- package/src/public-contract/protected-source-contract.generated.json +6 -6
- package/src/public-contract/protected-source-node.d.ts +1 -1
- package/src/public-contract/protection-contract.generated.json +7 -7
- package/src/public-contract/protection-node.d.ts +2 -2
- package/src/public-contract/protection-validators.generated.js +5 -5
- package/src/public-contract/public-contract.d.ts +13 -0
- package/src/public-contract/public-contract.js +32 -0
- package/src/public-contract/public-contract.mjs +2 -0
- package/src/public-contract/retained/contract.json +2 -2
- package/src/public-contract/retained/generation-manifest.json +6 -6
- package/src/public-contract/retained-browser06/contract.json +2 -2
- package/src/public-contract/sectionbytes/contract.json +2 -2
- package/src/public-contract/sectionbytes/generation-manifest.json +6 -6
- package/src/public-contract/sections/contract.json +2 -2
- package/src/public-contract/sections/generation-manifest.json +6 -6
- package/src/public-contract/sections-bytes-node.js +31 -0
- package/src/public-contract/sections-node.js +36 -1
- package/src/public-contract/source-validators.generated.js +6 -6
- package/src/public-contract/source06/contract.json +2 -2
|
@@ -10,7 +10,7 @@ export type IssuerIssuedObservation = { readonly "status": "issued"; readonly "g
|
|
|
10
10
|
export type IssuerCoreRejectedObservation = { readonly "status": "core_rejected"; readonly "core": { readonly "status": "rejected"; readonly "reason": ReadDiagnosticCode; }; readonly "stage": "asset"; };
|
|
11
11
|
export type IssuerFailedObservation = ({ readonly "status": "issuer_failed"; readonly "code": "ISSUER_INPUT_INVALID"; readonly "stage": "input"; } | { readonly "status": "issuer_failed"; readonly "code": "ISSUER_ASSET_PROFILE_UNSUPPORTED"; readonly "stage": "asset"; } | { readonly "status": "issuer_failed"; readonly "code": "ISSUER_ASSET_AUTHENTICATION_FAILED"; readonly "stage": "asset" | "integrity"; } | { readonly "status": "issuer_failed"; readonly "code": "ISSUER_KEY_INVALID"; readonly "stage": "issuer_key"; } | { readonly "status": "issuer_failed"; readonly "code": "ISSUER_GRANT_OPTIONS_INVALID"; readonly "stage": "input" | "grant"; } | { readonly "status": "issuer_failed"; readonly "code": "ISSUER_OUTPUT_INVALID"; readonly "stage": "input" | "asset" | "integrity" | "issuer_key" | "grant"; });
|
|
12
12
|
export type IssuerResultObservation = (IssuerIssuedObservation | IssuerCoreRejectedObservation | IssuerFailedObservation);
|
|
13
|
-
export type IssuerDescriptor = { readonly "id": "kdna.external-grant-issuer/1"; readonly "version": "1.0.0"; readonly "definition_digest": Digest; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.
|
|
13
|
+
export type IssuerDescriptor = { readonly "id": "kdna.external-grant-issuer/1"; readonly "version": "1.0.0"; readonly "definition_digest": Digest; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.2"; }; readonly "exports": readonly ["getExternalGrantIssuerContract", "issueExternalKeyGrantForAsset"]; readonly "limits": { readonly "container_bytes": 26214400; readonly "grant_bytes": 1048576; readonly "timeout_ms_max": 60000; readonly "max_concurrent": 4; }; };
|
|
14
14
|
export type IssuerSecrets = { readonly issuerRootKey: Uint8Array; readonly issuerSigningPrivateKeyPkcs8: Uint8Array; readonly signaturePolicy: IssuerSignaturePolicy };
|
|
15
15
|
export type IssuanceResult = (IssuerIssuedObservation & { readonly grantBytes: Uint8Array }) | IssuerCoreRejectedObservation | IssuerFailedObservation;
|
|
16
16
|
export declare function getExternalGrantIssuerContract(): IssuerDescriptor;
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"inspectAdmittedPackageSet",
|
|
12
12
|
"verifyPackageSetHandoff"
|
|
13
13
|
],
|
|
14
|
-
"core_version": "0.37.
|
|
15
|
-
"definition_digest": "sha256:
|
|
14
|
+
"core_version": "0.37.2",
|
|
15
|
+
"definition_digest": "sha256:8182aa523a7d6f03d1b1142db66aafe2d048236bd7ee5e3719175680c3bafe1a",
|
|
16
16
|
"limits": {
|
|
17
17
|
"maxMembers": 10000,
|
|
18
18
|
"maxTotalSourceBytes": 104857600
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sealPackageSetHandoff",
|
|
40
40
|
"admitPackageSetHandoff"
|
|
41
41
|
],
|
|
42
|
-
"read_version": "0.11.
|
|
42
|
+
"read_version": "0.11.3"
|
|
43
43
|
},
|
|
44
44
|
"key_sets": {
|
|
45
45
|
"HandoffMember": {
|
|
@@ -739,7 +739,7 @@
|
|
|
739
739
|
"type": "array"
|
|
740
740
|
},
|
|
741
741
|
"core_version": {
|
|
742
|
-
"const": "0.37.
|
|
742
|
+
"const": "0.37.2",
|
|
743
743
|
"type": "string"
|
|
744
744
|
},
|
|
745
745
|
"definition_digest": {
|
|
@@ -769,7 +769,7 @@
|
|
|
769
769
|
"type": "array"
|
|
770
770
|
},
|
|
771
771
|
"read_version": {
|
|
772
|
-
"const": "0.11.
|
|
772
|
+
"const": "0.11.3",
|
|
773
773
|
"type": "string"
|
|
774
774
|
}
|
|
775
775
|
},
|
|
@@ -6,7 +6,7 @@ export type PackageSetMemberObservationRequest = { readonly "set_id": Identifier
|
|
|
6
6
|
export type PackageSetMemberObservationRow = { readonly "member_id": Identifier; readonly "asset_id": Identifier; readonly "asset_version": VersionLabel; readonly "A": Digest; readonly "decision": "allow" | "deny"; readonly "decision_id": Identifier; readonly "host_id": Identifier; readonly "host_epoch": Identifier; readonly "issued_at": UInt; readonly "expires_at": UInt; readonly "current_ms": UInt; };
|
|
7
7
|
export type PackageSetMemberObservation = { readonly "decisions": ReadonlyArray<PackageSetMemberObservationRow>; };
|
|
8
8
|
export type PackageSetReadObservation = { readonly "context": HostReadContextData; readonly "current_ms": UInt; };
|
|
9
|
-
export type PackageSetNodeDescriptor = { readonly "contract": "kdna.package-set-node/0.2.1"; readonly "module_version": "0.2.0"; readonly "core_version": "0.37.
|
|
9
|
+
export type PackageSetNodeDescriptor = { readonly "contract": "kdna.package-set-node/0.2.1"; readonly "module_version": "0.2.0"; readonly "core_version": "0.37.2"; readonly "read_version": "0.11.3"; readonly "limits": PackageSetLimits; readonly "local_failures": ReadonlyArray<PackageSetLocalFailure>; readonly "core_callables": ReadonlyArray<Identifier>; readonly "read_callables": ReadonlyArray<Identifier>; readonly "claims": "claims_not_authenticated"; readonly "definition_digest": Digest; };
|
|
10
10
|
export type PackageSetNodeSurface = (PackageSet | PackageSetHandoff | PackageSetMemberObservationRequest | PackageSetMemberObservation | PackageSetReadObservation | PackageSetNodeDescriptor);
|
|
11
11
|
export type PackageSetOperation = "isolated_read" | "semantic_merge" | "cross_asset_reference";
|
|
12
12
|
export type PackageSetMemberSource = { readonly "member_id": string; readonly "bytes": Uint8Array };
|
|
@@ -2324,7 +2324,7 @@ return errors === 0;
|
|
|
2324
2324
|
}
|
|
2325
2325
|
validate41.evaluated = {"props":true,"dynamicProps":false,"dynamicItems":false};
|
|
2326
2326
|
|
|
2327
|
-
const schema87 = {"additionalProperties":false,"properties":{"claims":{"const":"claims_not_authenticated","type":"string"},"contract":{"const":"kdna.package-set-node/0.2.1","type":"string"},"core_callables":{"items":{"$ref":"#/$defs/Identifier"},"maxItems":7,"minItems":7,"type":"array"},"core_version":{"const":"0.37.
|
|
2327
|
+
const schema87 = {"additionalProperties":false,"properties":{"claims":{"const":"claims_not_authenticated","type":"string"},"contract":{"const":"kdna.package-set-node/0.2.1","type":"string"},"core_callables":{"items":{"$ref":"#/$defs/Identifier"},"maxItems":7,"minItems":7,"type":"array"},"core_version":{"const":"0.37.2","type":"string"},"definition_digest":{"$ref":"#/$defs/Digest"},"limits":{"$ref":"#/$defs/PackageSetLimits"},"local_failures":{"items":{"$ref":"#/$defs/PackageSetLocalFailure"},"maxItems":12,"minItems":12,"type":"array"},"module_version":{"const":"0.2.0","type":"string"},"read_callables":{"items":{"$ref":"#/$defs/Identifier"},"maxItems":5,"minItems":5,"type":"array"},"read_version":{"const":"0.11.3","type":"string"}},"required":["contract","module_version","core_version","read_version","limits","local_failures","core_callables","read_callables","claims","definition_digest"],"type":"object"};
|
|
2328
2328
|
const schema90 = {"additionalProperties":false,"properties":{"maxMembers":{"const":10000,"type":"integer"},"maxTotalSourceBytes":{"const":104857600,"type":"integer"}},"required":["maxMembers","maxTotalSourceBytes"],"type":"object"};
|
|
2329
2329
|
const schema91 = {"enum":["invalid_limits","member_limit_exceeded","source_bytes_limit_exceeded","invalid_member_source","invalid_read_request","provider_invalid","provider_failed","provider_observation_invalid","cancelled","core_unavailable","delivery_unconfirmed","handoff_invalid"],"type":"string"};
|
|
2330
2330
|
|
|
@@ -2460,8 +2460,8 @@ if(typeof data4 !== "string"){
|
|
|
2460
2460
|
validate45.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
2461
2461
|
return false;
|
|
2462
2462
|
}
|
|
2463
|
-
if("0.37.
|
|
2464
|
-
validate45.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/const",keyword:"const",params:{allowedValue: "0.37.
|
|
2463
|
+
if("0.37.2" !== data4){
|
|
2464
|
+
validate45.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/const",keyword:"const",params:{allowedValue: "0.37.2"},message:"must be equal to constant"}];
|
|
2465
2465
|
return false;
|
|
2466
2466
|
}
|
|
2467
2467
|
var valid0 = _errs11 === errors;
|
|
@@ -2696,8 +2696,8 @@ if(typeof data14 !== "string"){
|
|
|
2696
2696
|
validate45.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
2697
2697
|
return false;
|
|
2698
2698
|
}
|
|
2699
|
-
if("0.11.
|
|
2700
|
-
validate45.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/const",keyword:"const",params:{allowedValue: "0.11.
|
|
2699
|
+
if("0.11.3" !== data14){
|
|
2700
|
+
validate45.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/const",keyword:"const",params:{allowedValue: "0.11.3"},message:"must be equal to constant"}];
|
|
2701
2701
|
return false;
|
|
2702
2702
|
}
|
|
2703
2703
|
var valid0 = _errs36 === errors;
|
|
@@ -2973,8 +2973,8 @@ if(typeof data4 !== "string"){
|
|
|
2973
2973
|
validate55.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
2974
2974
|
return false;
|
|
2975
2975
|
}
|
|
2976
|
-
if("0.37.
|
|
2977
|
-
validate55.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/const",keyword:"const",params:{allowedValue: "0.37.
|
|
2976
|
+
if("0.37.2" !== data4){
|
|
2977
|
+
validate55.errors = [{instancePath:instancePath+"/core_version",schemaPath:"#/properties/core_version/const",keyword:"const",params:{allowedValue: "0.37.2"},message:"must be equal to constant"}];
|
|
2978
2978
|
return false;
|
|
2979
2979
|
}
|
|
2980
2980
|
var valid0 = _errs11 === errors;
|
|
@@ -3209,8 +3209,8 @@ if(typeof data14 !== "string"){
|
|
|
3209
3209
|
validate55.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/type",keyword:"type",params:{type: "string"},message:"must be string"}];
|
|
3210
3210
|
return false;
|
|
3211
3211
|
}
|
|
3212
|
-
if("0.11.
|
|
3213
|
-
validate55.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/const",keyword:"const",params:{allowedValue: "0.11.
|
|
3212
|
+
if("0.11.3" !== data14){
|
|
3213
|
+
validate55.errors = [{instancePath:instancePath+"/read_version",schemaPath:"#/properties/read_version/const",keyword:"const",params:{allowedValue: "0.11.3"},message:"must be equal to constant"}];
|
|
3214
3214
|
return false;
|
|
3215
3215
|
}
|
|
3216
3216
|
var valid0 = _errs36 === errors;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"candidate_only": true,
|
|
3
3
|
"source": {
|
|
4
4
|
"path": "specs/public-semantic-source.json",
|
|
5
|
-
"bytes":
|
|
6
|
-
"sha256": "
|
|
5
|
+
"bytes": 1506715,
|
|
6
|
+
"sha256": "e1fa081ca757d8ceb2e73910024778e31debe83b16d8b4824a4c66466ec57928"
|
|
7
7
|
},
|
|
8
8
|
"historical_original_source": {
|
|
9
9
|
"scope": "historical_original_contract_source_identity_not_current_generator_input",
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"candidate_only": true,
|
|
4
4
|
"source": {
|
|
5
5
|
"path": "specs/public-semantic-source.json",
|
|
6
|
-
"bytes":
|
|
7
|
-
"sha256": "
|
|
6
|
+
"bytes": 1506715,
|
|
7
|
+
"sha256": "e1fa081ca757d8ceb2e73910024778e31debe83b16d8b4824a4c66466ec57928"
|
|
8
8
|
},
|
|
9
9
|
"producer": {
|
|
10
10
|
"recipe": {
|
|
11
11
|
"path": "scripts/public-contract/native-output-recipe.json",
|
|
12
12
|
"bytes": 164001,
|
|
13
|
-
"sha256": "
|
|
13
|
+
"sha256": "f5258627e45d396f9b088e76bdabe699d9ab845678ce1fa6a855b3fdaec21f22"
|
|
14
14
|
},
|
|
15
15
|
"scripts": [
|
|
16
16
|
{
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
22
|
"path": "scripts/public-contract/native-renderer.mjs",
|
|
23
|
-
"bytes":
|
|
24
|
-
"sha256": "
|
|
23
|
+
"bytes": 21439,
|
|
24
|
+
"sha256": "750e968d0d88908f7c6b6b3d017039919049e22060203a7c721c3204522c211e"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"path": "scripts/public-contract/generation-writer.mjs",
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
{
|
|
587
587
|
"path": "packages/kdna-core/src/public-contract/packageset06/contract.json",
|
|
588
588
|
"bytes": 307339,
|
|
589
|
-
"sha256": "
|
|
589
|
+
"sha256": "f888a3fc9177d7d7ff45c46f34fbb66247c9a2aa805b049008ed7b58bbbd8d0d"
|
|
590
590
|
},
|
|
591
591
|
{
|
|
592
592
|
"path": "packages/kdna-core/src/public-contract/packageset06/api.d.ts",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"candidate_only": true,
|
|
3
3
|
"source": {
|
|
4
4
|
"path": "specs/public-semantic-source.json",
|
|
5
|
-
"bytes":
|
|
6
|
-
"sha256": "
|
|
5
|
+
"bytes": 1506715,
|
|
6
|
+
"sha256": "e1fa081ca757d8ceb2e73910024778e31debe83b16d8b4824a4c66466ec57928"
|
|
7
7
|
},
|
|
8
8
|
"historical_original_source": {
|
|
9
9
|
"scope": "new_browser_adapter_has_no_historical_original_contract",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"truth": "Integrity fields record original browser admission checksums/signature and A/C/E; retained projection does not claim AEAD/password authentication, new digest/domain/signature validation or physical IO. Read contract is independently kdna.protected-browser-read/0.1.0-candidate with ordinary projected content fields plus explicit browser verification."
|
|
82
82
|
},
|
|
83
83
|
"package_versions": {
|
|
84
|
-
"core": "0.37.
|
|
85
|
-
"read": "0.11.
|
|
84
|
+
"core": "0.37.2",
|
|
85
|
+
"read": "0.11.3"
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"types": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
2
|
"id": "kdna.protected-sections-browser",
|
|
3
3
|
"version": "0.1.0-candidate",
|
|
4
|
-
"definition_digest": "sha256:
|
|
4
|
+
"definition_digest": "sha256:d73eae0aec99b96543a6ce2cdf22c6c99f57498a119015c3d67e394fd8143db5"
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"api_typescript": "export type ProtectedSourceContractIdentity = { readonly id: 'kdna.protected-source/1'; readonly version: '1.0.0'; readonly definition_digest: import('./types.js').Digest };\nexport type ProtectedSourceRuntimeDescriptor = { readonly contract: ProtectedSourceContractIdentity; readonly implementation: { readonly package: '@aikdna/kdna-core'; readonly version: string }; readonly profiles: ReadonlyArray<'kdna.envelope.aead/0.1.0' | 'kdna.envelope.external-grant/0.1.0'>; readonly callables: ReadonlyArray<'getProtectedSourceContract' | 'createTrustedProtectedSourceHost' | 'withProtectedSourceNode' | 'commitProtectedSourceTransport' | 'previewProtectedSourceRevision' | 'produceProtectedSourceRevision'>; readonly limits: { readonly container_bytes: 26214400; readonly entries: 128; readonly entry_bytes: 8388608; readonly total_uncompressed_bytes: 12582912; readonly delivered_plaintext_bytes: 8388608; readonly documented_raw_byte_bound: 20971520; readonly timeout_ms_max: 60000 }; readonly proof_limits: ReadonlyArray<string> };\nexport type SourceHostObservationContext = { readonly context_id: string | null; readonly epoch: string | null; readonly asset_digest: string; readonly scope: 'complete_source'; readonly purpose: string; readonly requested_at_ms: number };\nexport type ProtectedSourceMember = { readonly name: string; readonly type: 'file'; readonly mode: number; readonly bytes: Uint8Array };\nexport type ProtectedSourceInventoryEntry = { readonly name: string; readonly type: 'file'; readonly mode: number; readonly size: number; readonly sha256: string };\nexport type ProtectedSourceBundle = { readonly identity: { readonly A: string; readonly C: string; readonly E: string }; readonly manifest: unknown; readonly payload: unknown; readonly original_members: ReadonlyArray<ProtectedSourceMember>; readonly original_inventory: ReadonlyArray<ProtectedSourceInventoryEntry>; readonly plaintext_payload: { readonly entry: 'payload.kdnab'; readonly bytes: Uint8Array; readonly sha256: string }; readonly prior_snapshot: unknown; readonly host_observation: unknown; readonly proof_limits: ReadonlyArray<string> };\nexport type ProtectedSourceRevisionContext = { readonly [brand: symbol]: true };\nexport type ProtectedSourcePreparedDelivery = { readonly [brand: symbol]: true };\nexport type ProtectedSourceHostCallbacks = { readonly observe: (context: SourceHostObservationContext) => SourceHostObservation | Promise<SourceHostObservation>; readonly deliver: (bundle: ProtectedSourceBundle, prepared: ProtectedSourcePreparedDelivery, context: ProtectedSourceRevisionContext) => boolean | Promise<boolean> };\nexport type TrustedProtectedSourceHost = { readonly [brand: symbol]: true };\nexport type ProtectedSourceRevisionOptions = { readonly admission: import('./protection-node.js').ProtectedAdmissionOptions; readonly expected_A: string; readonly timeout_ms: number };\nexport type TrustedProtectedSourceTransport = { readonly observeScope: () => SourceHostObservation | Promise<SourceHostObservation>; readonly commit: (bundle: ProtectedSourceBundle | null) => boolean };\nexport type ProtectedSourceCommitResult = { readonly status: 'source_committed'; readonly disclosure: import('./protection-node.js').ProtectionDisclosure; readonly body: null; readonly body_bytes: 0 } | SourceFailed;\nexport type ProtectedSourcePolicy = ({ readonly kind: 'password'; readonly asset_uid: string; readonly entitlement: { readonly profile: 'password'; readonly offline?: boolean; readonly revocable?: boolean }; readonly slots: ReadonlyArray<{ readonly slot: string; readonly kdf_profile: 'scrypt-sha256' | 'argon2id' }> } | { readonly kind: 'external-grant'; readonly asset_uid: string; readonly entitlement: { readonly profile: 'account' | 'org'; readonly offline?: boolean; readonly revocable?: boolean }; readonly key_ref: string; readonly issuer_key_id: string }) & { readonly checksums: boolean; readonly signature: 'none' | 'ed25519' };\nexport type ProtectedSourceEdits = { readonly manifest?: unknown; readonly payload?: unknown };\nexport type ProtectedSourceProviderRequest = { readonly source_A: string; readonly edits_digest: string; readonly policy_digest: string; readonly kind: 'password' | 'external-grant'; readonly signature: 'none' | 'ed25519' };\nexport type ProtectedSourceOutputSecrets = { readonly passwords?: ReadonlyArray<{ readonly slot: string; readonly password: Uint8Array }>; readonly signingSeed?: Uint8Array; readonly issuerRootKey?: Uint8Array };\nexport type SourceRevisionEvidence = { readonly contract: ProtectedSourceContractIdentity; readonly implementation: { readonly package: '@aikdna/kdna-core'; readonly version: string }; readonly source_A: string; readonly output: { readonly A: string; readonly C: string; readonly E: string }; readonly profile: { readonly id: string; readonly version: string }; readonly entry: 'payload.kdnab'; readonly member_actions: { readonly [name: string]: 'added' | 'replaced' | 'removed' }; readonly integrity: unknown; readonly payload_source: 'explicit_edit' | 'original_decrypted_cbor'; readonly proof: 'producer_observation_not_consumer_admission'; readonly output_delivery: 'not_published' | 'trusted_host'; readonly output_A: string | null };\nexport type ProtectedSourceRevisionResult = { readonly status: 'revision_produced'; readonly bytes: Uint8Array; readonly evidence: SourceRevisionEvidence; readonly body_bytes: number } | { readonly status: 'revision_rejected'; readonly diagnostic: SourceDiagnostic; readonly body: null; readonly body_bytes: 0 };\nexport declare function getProtectedSourceContract(): ProtectedSourceRuntimeDescriptor;\nexport declare function createTrustedProtectedSourceHost(callbacks: ProtectedSourceHostCallbacks): TrustedProtectedSourceHost;\nexport declare function withProtectedSourceNode(input: string | Uint8Array, options: ProtectedSourceRevisionOptions, protectionProvider: import('./protection-node.js').TrustedProtectionProvider, sourceHost: TrustedProtectedSourceHost): Promise<ProtectedSourceObservation>;\nexport declare function commitProtectedSourceTransport(prepared: ProtectedSourcePreparedDelivery, transport: TrustedProtectedSourceTransport): Promise<ProtectedSourceCommitResult>;\nexport declare function previewProtectedSourceRevision(context: ProtectedSourceRevisionContext, edits: ProtectedSourceEdits, policy: ProtectedSourcePolicy): Promise<ProtectedSourceRevisionPreviewResult>;\nexport declare function produceProtectedSourceRevision(context: ProtectedSourceRevisionContext, edits: ProtectedSourceEdits, policy: ProtectedSourcePolicy, outputSecretProvider: (request: ProtectedSourceProviderRequest) => ProtectedSourceOutputSecrets | Promise<ProtectedSourceOutputSecrets>): Promise<ProtectedSourceRevisionResult>;\n",
|
|
3
|
-
"definition_digest": "sha256:
|
|
3
|
+
"definition_digest": "sha256:3666cfde0c1141e7d7fd45bbb7ecfb125c778e8cb280f7f915b249d9d6c796fb",
|
|
4
4
|
"id": "kdna.protected-source/1",
|
|
5
5
|
"limits": {
|
|
6
6
|
"container_bytes": 26214400,
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
],
|
|
30
30
|
"schema_binding": {
|
|
31
31
|
"package_versions": {
|
|
32
|
-
"@aikdna/kdna-core": "0.37.
|
|
33
|
-
"@aikdna/kdna-read": "0.11.
|
|
32
|
+
"@aikdna/kdna-core": "0.37.2",
|
|
33
|
+
"@aikdna/kdna-read": "0.11.3"
|
|
34
34
|
},
|
|
35
35
|
"version_tuple": {
|
|
36
36
|
"container": "0.5.0",
|
|
@@ -9260,7 +9260,7 @@
|
|
|
9260
9260
|
"type": "string"
|
|
9261
9261
|
},
|
|
9262
9262
|
"version": {
|
|
9263
|
-
"const": "0.37.
|
|
9263
|
+
"const": "0.37.2",
|
|
9264
9264
|
"type": "string"
|
|
9265
9265
|
}
|
|
9266
9266
|
},
|
|
@@ -10632,7 +10632,7 @@
|
|
|
10632
10632
|
"type": "string"
|
|
10633
10633
|
},
|
|
10634
10634
|
"version": {
|
|
10635
|
-
"const": "0.37.
|
|
10635
|
+
"const": "0.37.2",
|
|
10636
10636
|
"type": "string"
|
|
10637
10637
|
}
|
|
10638
10638
|
},
|
|
@@ -13783,7 +13783,7 @@
|
|
|
13783
13783
|
"type": "string"
|
|
13784
13784
|
},
|
|
13785
13785
|
"version": {
|
|
13786
|
-
"const": "0.37.
|
|
13786
|
+
"const": "0.37.2",
|
|
13787
13787
|
"type": "string"
|
|
13788
13788
|
}
|
|
13789
13789
|
},
|
|
@@ -10,7 +10,7 @@ export type ProtectedSourceCatalog = { readonly "status": "catalog_only"; readon
|
|
|
10
10
|
export type SourceCoreRejected = { readonly "status": "core_rejected"; readonly "stage": "admission"; readonly "core": CoreAdmissionRejected; readonly "disclosure": ProtectionDisclosure; readonly "body": null; readonly "body_bytes": 0; };
|
|
11
11
|
export type ProtectedSourceObservation = (ProtectedSourceDelivered | ProtectedSourceCatalog | SourceCoreRejected | SourceFailed);
|
|
12
12
|
export type SourceHostObservation = { readonly "context_id": Identifier; readonly "epoch": Identifier; readonly "asset_digest": Digest; readonly "permission": "allowed" | "denied"; readonly "scope": "complete_source"; readonly "current_ms": UInt; readonly "expires_at_ms": UInt; readonly "revoked": boolean; };
|
|
13
|
-
export type SourcePreviewValidation = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "name": "@aikdna/kdna-core"; readonly "version": "0.37.
|
|
13
|
+
export type SourcePreviewValidation = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "name": "@aikdna/kdna-core"; readonly "version": "0.37.2"; }; readonly "source_A": Digest; readonly "original_payload_digest": Digest; readonly "edits_digest": Digest; readonly "policy_digest": Digest; readonly "semantic_status": "valid"; readonly "proof": "semantic_validation_not_ciphertext_admission"; };
|
|
14
14
|
export type SourcePreviewValid = { readonly "status": "preview_valid"; readonly "validation": SourcePreviewValidation; readonly "body": null; readonly "body_bytes": 0; };
|
|
15
15
|
export type SourcePreviewRejected = { readonly "status": "preview_rejected"; readonly "diagnostic": SourceDiagnostic; readonly "body": null; readonly "body_bytes": 0; };
|
|
16
16
|
export type ProtectedSourceRevisionPreviewResult = (SourcePreviewValid | SourcePreviewRejected);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"schema_path": "specs/checksums-document-1.schema.json",
|
|
15
15
|
"version": "1.0.0"
|
|
16
16
|
},
|
|
17
|
-
"definition_digest": "sha256:
|
|
17
|
+
"definition_digest": "sha256:39d315c19d0a537562ac6db2b58c93c57a09a9011929429f2e60a7a72fa0143b",
|
|
18
18
|
"delivery_history": {
|
|
19
19
|
"acknowledgement": "Only literal synchronous true confirms the configured trusted transport handoff. False/throw/thenable/invalid return leaves outcome_unknown. Never await or execute an untrusted then method to improve the result. Callback itself may already have sent data.",
|
|
20
20
|
"disposal": "Disposal closes authority and clears secrets best effort but retains the redacted per-token delivery history while its token/owning Read remains reachable, so a later failure cannot erase past attempts.",
|
|
@@ -802,8 +802,8 @@
|
|
|
802
802
|
"runtime_not_implemented": [],
|
|
803
803
|
"schema_binding": {
|
|
804
804
|
"package_versions": {
|
|
805
|
-
"@aikdna/kdna-core": "0.37.
|
|
806
|
-
"@aikdna/kdna-read": "0.11.
|
|
805
|
+
"@aikdna/kdna-core": "0.37.2",
|
|
806
|
+
"@aikdna/kdna-read": "0.11.3"
|
|
807
807
|
},
|
|
808
808
|
"version_tuple": {
|
|
809
809
|
"container": "0.5.0",
|
|
@@ -821,9 +821,9 @@
|
|
|
821
821
|
"schema_id": "urn:kdna:schema:protection-admission:1.0.0:binding:r2:8",
|
|
822
822
|
"schema_path": "specs/protection-admission-r2-binding-8.schema.json",
|
|
823
823
|
"specification": {
|
|
824
|
-
"bytes":
|
|
824
|
+
"bytes": 38233,
|
|
825
825
|
"path": "specs/protection-admission.md",
|
|
826
|
-
"sha256": "
|
|
826
|
+
"sha256": "5b4e784aa18c3c5c42bbbdee052235096af85f354b2fb6108788024fac9051b1"
|
|
827
827
|
},
|
|
828
828
|
"types": {
|
|
829
829
|
"ChecksumsDocument1": {
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
"type": "string"
|
|
1061
1061
|
},
|
|
1062
1062
|
"version": {
|
|
1063
|
-
"const": "0.37.
|
|
1063
|
+
"const": "0.37.2",
|
|
1064
1064
|
"type": "string"
|
|
1065
1065
|
}
|
|
1066
1066
|
},
|
|
@@ -2295,7 +2295,7 @@
|
|
|
2295
2295
|
"type": "string"
|
|
2296
2296
|
},
|
|
2297
2297
|
"version": {
|
|
2298
|
-
"const": "0.37.
|
|
2298
|
+
"const": "0.37.2",
|
|
2299
2299
|
"type": "string"
|
|
2300
2300
|
}
|
|
2301
2301
|
},
|
|
@@ -39,8 +39,8 @@ declare const ProtectionCheckpointBrand: unique symbol;
|
|
|
39
39
|
export type ProtectionCheckpoint = { readonly [ProtectionCheckpointBrand]: true };
|
|
40
40
|
declare const ProtectedHostReadProviderBrand: unique symbol;
|
|
41
41
|
export type ProtectedHostReadProvider = { readonly [ProtectedHostReadProviderBrand]: true };
|
|
42
|
-
export type ProtectionRuntimeDescriptor = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.
|
|
43
|
-
export type ProtectedExportEvidence = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.
|
|
42
|
+
export type ProtectionRuntimeDescriptor = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.2"; }; readonly "profiles": ReadonlyArray<"kdna.envelope.aead/0.1.0" | "kdna.envelope.external-grant/0.1.0" | "kdna.checksums.document/1@1.0.0" | "kdsig.ed25519/0.1.0">; readonly "kdfs": ReadonlyArray<"scrypt-sha256" | "argon2id">; readonly "capabilities": ReadonlyArray<"protected_admission" | "protected_operation" | "protected_production">; };
|
|
43
|
+
export type ProtectedExportEvidence = { readonly "contract": ProtectionContractIdentity; readonly "implementation": { readonly "package": "@aikdna/kdna-core"; readonly "version": "0.37.2"; }; readonly "source_A": Digest; readonly "output": { readonly "A": Digest; readonly "C": Digest; readonly "E": Digest; }; readonly "profile": (ProtectionProfile | null); readonly "entry": "payload.kdnab"; readonly "integrity": ProtectionIntegrity; readonly "proof": "producer_observation_not_consumer_admission"; };
|
|
44
44
|
export type ProtectedRequestVersionRejected = { readonly "channel": "read_envelope"; readonly "envelope": ReadEnvelopeRejected; readonly "admission_rejection": null; readonly "control": null; readonly "transport_failure": null; };
|
|
45
45
|
export type ProtectionCurrentFailure = { readonly "status": "protection_failed"; readonly "diagnostic": ProtectionDiagnostic; readonly "checked_at_ms": (UInt | null); };
|
|
46
46
|
export type ProtectedSignaturePolicy = { readonly requireSignature: boolean; readonly expectedPublicKeyHex: string | null };
|