@kya-os/mcp 1.10.0 → 1.11.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/AUDITABILITY.md +441 -0
- package/CHANGELOG.md +104 -0
- package/CONFORMANCE.md +598 -0
- package/README.md +67 -4
- package/SPEC.md +1827 -0
- package/dist/audit/adapters/legacy-audit-log.d.ts +20 -0
- package/dist/audit/adapters/legacy-audit-log.d.ts.map +1 -0
- package/dist/audit/adapters/legacy-audit-log.js +56 -0
- package/dist/audit/adapters/legacy-audit-log.js.map +1 -0
- package/dist/audit/adapters/mcp.d.ts +105 -0
- package/dist/audit/adapters/mcp.d.ts.map +1 -0
- package/dist/audit/adapters/mcp.js +213 -0
- package/dist/audit/adapters/mcp.js.map +1 -0
- package/dist/audit/assurance.d.ts +22 -0
- package/dist/audit/assurance.d.ts.map +1 -0
- package/dist/audit/assurance.js +39 -0
- package/dist/audit/assurance.js.map +1 -0
- package/dist/audit/checkpoint-coordinator.d.ts +51 -0
- package/dist/audit/checkpoint-coordinator.d.ts.map +1 -0
- package/dist/audit/checkpoint-coordinator.js +112 -0
- package/dist/audit/checkpoint-coordinator.js.map +1 -0
- package/dist/audit/checkpoint.d.ts +59 -0
- package/dist/audit/checkpoint.d.ts.map +1 -0
- package/dist/audit/checkpoint.js +219 -0
- package/dist/audit/checkpoint.js.map +1 -0
- package/dist/audit/cli.d.ts +8 -0
- package/dist/audit/cli.d.ts.map +1 -0
- package/dist/audit/cli.js +85 -0
- package/dist/audit/cli.js.map +1 -0
- package/dist/audit/crypto.d.ts +37 -0
- package/dist/audit/crypto.d.ts.map +1 -0
- package/dist/audit/crypto.js +68 -0
- package/dist/audit/crypto.js.map +1 -0
- package/dist/audit/errors.d.ts +29 -0
- package/dist/audit/errors.d.ts.map +1 -0
- package/dist/audit/errors.js +33 -0
- package/dist/audit/errors.js.map +1 -0
- package/dist/audit/evidence.d.ts +45 -0
- package/dist/audit/evidence.d.ts.map +1 -0
- package/dist/audit/evidence.js +151 -0
- package/dist/audit/evidence.js.map +1 -0
- package/dist/audit/index.d.ts +27 -0
- package/dist/audit/index.d.ts.map +1 -0
- package/dist/audit/index.js +27 -0
- package/dist/audit/index.js.map +1 -0
- package/dist/audit/integrity.d.ts +19 -0
- package/dist/audit/integrity.d.ts.map +1 -0
- package/dist/audit/integrity.js +64 -0
- package/dist/audit/integrity.js.map +1 -0
- package/dist/audit/merkle.d.ts +31 -0
- package/dist/audit/merkle.d.ts.map +1 -0
- package/dist/audit/merkle.js +195 -0
- package/dist/audit/merkle.js.map +1 -0
- package/dist/audit/mirror-service.d.ts +19 -0
- package/dist/audit/mirror-service.d.ts.map +1 -0
- package/dist/audit/mirror-service.js +54 -0
- package/dist/audit/mirror-service.js.map +1 -0
- package/dist/audit/projection.d.ts +90 -0
- package/dist/audit/projection.d.ts.map +1 -0
- package/dist/audit/projection.js +142 -0
- package/dist/audit/projection.js.map +1 -0
- package/dist/audit/providers/anchor.d.ts +23 -0
- package/dist/audit/providers/anchor.d.ts.map +1 -0
- package/dist/audit/providers/anchor.js +25 -0
- package/dist/audit/providers/anchor.js.map +1 -0
- package/dist/audit/providers/evidence.d.ts +36 -0
- package/dist/audit/providers/evidence.d.ts.map +1 -0
- package/dist/audit/providers/evidence.js +2 -0
- package/dist/audit/providers/evidence.js.map +1 -0
- package/dist/audit/providers/journal.d.ts +35 -0
- package/dist/audit/providers/journal.d.ts.map +1 -0
- package/dist/audit/providers/journal.js +2 -0
- package/dist/audit/providers/journal.js.map +1 -0
- package/dist/audit/providers/memory-journal.d.ts +24 -0
- package/dist/audit/providers/memory-journal.d.ts.map +1 -0
- package/dist/audit/providers/memory-journal.js +73 -0
- package/dist/audit/providers/memory-journal.js.map +1 -0
- package/dist/audit/providers/observer.d.ts +30 -0
- package/dist/audit/providers/observer.d.ts.map +1 -0
- package/dist/audit/providers/observer.js +100 -0
- package/dist/audit/providers/observer.js.map +1 -0
- package/dist/audit/providers/outbox.d.ts +37 -0
- package/dist/audit/providers/outbox.d.ts.map +1 -0
- package/dist/audit/providers/outbox.js +52 -0
- package/dist/audit/providers/outbox.js.map +1 -0
- package/dist/audit/providers/recorder-client.d.ts +22 -0
- package/dist/audit/providers/recorder-client.d.ts.map +1 -0
- package/dist/audit/providers/recorder-client.js +17 -0
- package/dist/audit/providers/recorder-client.js.map +1 -0
- package/dist/audit/providers/source-state.d.ts +37 -0
- package/dist/audit/providers/source-state.d.ts.map +1 -0
- package/dist/audit/providers/source-state.js +94 -0
- package/dist/audit/providers/source-state.js.map +1 -0
- package/dist/audit/recorder-service.d.ts +78 -0
- package/dist/audit/recorder-service.d.ts.map +1 -0
- package/dist/audit/recorder-service.js +331 -0
- package/dist/audit/recorder-service.js.map +1 -0
- package/dist/audit/replay-bundle.d.ts +52 -0
- package/dist/audit/replay-bundle.d.ts.map +1 -0
- package/dist/audit/replay-bundle.js +551 -0
- package/dist/audit/replay-bundle.js.map +1 -0
- package/dist/audit/schemas.d.ts +1144 -0
- package/dist/audit/schemas.d.ts.map +1 -0
- package/dist/audit/schemas.js +483 -0
- package/dist/audit/schemas.js.map +1 -0
- package/dist/audit/service.d.ts +91 -0
- package/dist/audit/service.d.ts.map +1 -0
- package/dist/audit/service.js +222 -0
- package/dist/audit/service.js.map +1 -0
- package/dist/audit/testing/index.d.ts +2 -0
- package/dist/audit/testing/index.d.ts.map +1 -0
- package/dist/audit/testing/index.js +2 -0
- package/dist/audit/testing/index.js.map +1 -0
- package/dist/audit/testing/provider-contracts.d.ts +51 -0
- package/dist/audit/testing/provider-contracts.d.ts.map +1 -0
- package/dist/audit/testing/provider-contracts.js +391 -0
- package/dist/audit/testing/provider-contracts.js.map +1 -0
- package/dist/audit/types.d.ts +356 -0
- package/dist/audit/types.d.ts.map +1 -0
- package/dist/audit/types.js +49 -0
- package/dist/audit/types.js.map +1 -0
- package/dist/audit/verifier.d.ts +73 -0
- package/dist/audit/verifier.d.ts.map +1 -0
- package/dist/audit/verifier.js +322 -0
- package/dist/audit/verifier.js.map +1 -0
- package/dist/card/proof/canonical.d.ts.map +1 -1
- package/dist/card/proof/canonical.js +19 -1
- package/dist/card/proof/canonical.js.map +1 -1
- package/dist/delegation/delegation-graph.d.ts +4 -0
- package/dist/delegation/delegation-graph.d.ts.map +1 -1
- package/dist/delegation/delegation-graph.js +28 -2
- package/dist/delegation/delegation-graph.js.map +1 -1
- package/dist/delegation/statuslist-manager.d.ts +5 -0
- package/dist/delegation/statuslist-manager.d.ts.map +1 -1
- package/dist/delegation/statuslist-manager.js.map +1 -1
- package/dist/delegation/storage/memory-graph-storage.d.ts +4 -2
- package/dist/delegation/storage/memory-graph-storage.d.ts.map +1 -1
- package/dist/delegation/storage/memory-graph-storage.js +18 -0
- package/dist/delegation/storage/memory-graph-storage.js.map +1 -1
- package/dist/delegation/storage/memory-statuslist-storage.d.ts +5 -2
- package/dist/delegation/storage/memory-statuslist-storage.d.ts.map +1 -1
- package/dist/delegation/storage/memory-statuslist-storage.js +21 -2
- package/dist/delegation/storage/memory-statuslist-storage.js.map +1 -1
- package/dist/delegation/utils.d.ts.map +1 -1
- package/dist/delegation/utils.js +2 -42
- package/dist/delegation/utils.js.map +1 -1
- package/dist/delegation/vc-verifier.d.ts +4 -0
- package/dist/delegation/vc-verifier.d.ts.map +1 -1
- package/dist/delegation/vc-verifier.js +44 -13
- package/dist/delegation/vc-verifier.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/middleware/kya-os-transport.d.ts.map +1 -1
- package/dist/middleware/kya-os-transport.js +10 -3
- package/dist/middleware/kya-os-transport.js.map +1 -1
- package/dist/middleware/with-kya-os-server.d.ts +6 -0
- package/dist/middleware/with-kya-os-server.d.ts.map +1 -1
- package/dist/middleware/with-kya-os-server.js +2 -0
- package/dist/middleware/with-kya-os-server.js.map +1 -1
- package/dist/middleware/with-kya-os.config-types.d.ts +15 -0
- package/dist/middleware/with-kya-os.config-types.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.config-types.js.map +1 -1
- package/dist/middleware/with-kya-os.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.delegation-gate.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.delegation-gate.js +96 -3
- package/dist/middleware/with-kya-os.delegation-gate.js.map +1 -1
- package/dist/middleware/with-kya-os.deps.d.ts +2 -0
- package/dist/middleware/with-kya-os.deps.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.js +23 -0
- package/dist/middleware/with-kya-os.js.map +1 -1
- package/dist/middleware/with-kya-os.policy-gate.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.policy-gate.js +29 -4
- package/dist/middleware/with-kya-os.policy-gate.js.map +1 -1
- package/dist/middleware/with-kya-os.protocol.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.protocol.js +10 -0
- package/dist/middleware/with-kya-os.protocol.js.map +1 -1
- package/dist/middleware/with-kya-os.session.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.session.js +208 -2
- package/dist/middleware/with-kya-os.session.js.map +1 -1
- package/dist/middleware/with-kya-os.types.d.ts +6 -0
- package/dist/middleware/with-kya-os.types.d.ts.map +1 -1
- package/dist/middleware/with-kya-os.types.js.map +1 -1
- package/dist/proof/generator.d.ts.map +1 -1
- package/dist/proof/generator.js +6 -5
- package/dist/proof/generator.js.map +1 -1
- package/dist/proof/verifier.d.ts +12 -0
- package/dist/proof/verifier.d.ts.map +1 -1
- package/dist/proof/verifier.js +35 -4
- package/dist/proof/verifier.js.map +1 -1
- package/dist/session/manager.js +1 -1
- package/dist/session/manager.js.map +1 -1
- package/dist/utils/canonical-json.d.ts +15 -0
- package/dist/utils/canonical-json.d.ts.map +1 -0
- package/dist/utils/canonical-json.js +109 -0
- package/dist/utils/canonical-json.js.map +1 -0
- package/dist/utils/crypto-service.d.ts.map +1 -1
- package/dist/utils/crypto-service.js +5 -0
- package/dist/utils/crypto-service.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/safe-fetch-transports.d.ts +15 -2
- package/dist/utils/safe-fetch-transports.d.ts.map +1 -1
- package/dist/utils/safe-fetch-transports.js +66 -32
- package/dist/utils/safe-fetch-transports.js.map +1 -1
- package/package.json +29 -11
- package/schemas/README.md +27 -1
- package/schemas/audit-anchor-receipt.schema.json +16 -0
- package/schemas/audit-bundle-manifest.schema.json +71 -0
- package/schemas/audit-checkpoint.schema.json +37 -0
- package/schemas/audit-consistency-proof.schema.json +17 -0
- package/schemas/audit-entry.schema.json +33 -0
- package/schemas/audit-event.schema.json +168 -0
- package/schemas/audit-inclusion-proof.schema.json +17 -0
- package/schemas/audit-observation.schema.json +40 -0
- package/schemas/audit-receipt.schema.json +32 -0
- package/schemas/audit-verification-policy.schema.json +71 -0
- package/schemas/audit-verification-report.schema.json +29 -0
- package/schemas/well-known-mcpi.json +17 -0
|
@@ -0,0 +1,1144 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { AuditBundleManifestCoreV1, AuditCheckpointCoreV1, AuditEntryCoreV1, AuditProducerEventCoreV1, AuditRecorderReceiptCoreV1, AuditObservationReceiptV1, AuditReplayBundleV1, AuditVerificationPolicyV1, SignedAuditEntryV1, SignedAuditCheckpointV1 } from './types.js';
|
|
3
|
+
export declare const AUDIT_EVENT_SCHEMA_ID: "https://schema.kya-os.org/v1/protocol/audit/event/v1.0.0";
|
|
4
|
+
export declare const AUDIT_ENTRY_SCHEMA_ID: "https://schema.kya-os.org/v1/protocol/audit/entry/v1.0.0";
|
|
5
|
+
export declare const AUDIT_RECEIPT_SCHEMA_ID: "https://schema.kya-os.org/v1/protocol/audit/receipt/v1.0.0";
|
|
6
|
+
export declare const AUDIT_INTEGRITY_SUITE: "KYA-AUDIT-JCS-SHA256-JWS-2026";
|
|
7
|
+
export declare const AUDIT_CHECKPOINT_SCHEMA_ID: "https://schema.kya-os.org/v1/protocol/audit/checkpoint/v1.0.0";
|
|
8
|
+
export declare const AUDIT_CHECKPOINT_INTEGRITY_SUITE: "KYA-AUDIT-RFC9162-SHA256-JWS-2026";
|
|
9
|
+
export declare const AUDIT_BUNDLE_MANIFEST_SCHEMA_ID: "https://schema.kya-os.org/v1/protocol/audit/bundle-manifest/v1.0.0";
|
|
10
|
+
export declare const AUDIT_BUNDLE_INTEGRITY_SUITE: "KYA-AUDIT-BUNDLE-JCS-SHA256-JWS-2026";
|
|
11
|
+
export declare const digestSchema: z.ZodString;
|
|
12
|
+
export declare const signerRefSchema: z.ZodObject<{
|
|
13
|
+
did: z.ZodString;
|
|
14
|
+
kid: z.ZodString;
|
|
15
|
+
alg: z.ZodEnum<{
|
|
16
|
+
EdDSA: "EdDSA";
|
|
17
|
+
ES256: "ES256";
|
|
18
|
+
}>;
|
|
19
|
+
}, z.core.$strict>;
|
|
20
|
+
export declare const evidenceRefSchema: z.ZodType;
|
|
21
|
+
export declare const partyRefSchema: z.ZodType;
|
|
22
|
+
export declare const auditProducerEventSchema: z.ZodObject<{
|
|
23
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/event/v1.0.0">;
|
|
24
|
+
eventId: z.ZodString;
|
|
25
|
+
eventType: z.ZodEnum<{
|
|
26
|
+
"session.established": "session.established";
|
|
27
|
+
"session.rejected": "session.rejected";
|
|
28
|
+
"session.expired": "session.expired";
|
|
29
|
+
"session.replay_rejected": "session.replay_rejected";
|
|
30
|
+
"tool.call.started": "tool.call.started";
|
|
31
|
+
"tool.call.completed": "tool.call.completed";
|
|
32
|
+
"tool.call.failed": "tool.call.failed";
|
|
33
|
+
"tool.call.denied": "tool.call.denied";
|
|
34
|
+
"tool.call.challenged": "tool.call.challenged";
|
|
35
|
+
"proof.generated": "proof.generated";
|
|
36
|
+
"proof.verified": "proof.verified";
|
|
37
|
+
"proof.rejected": "proof.rejected";
|
|
38
|
+
"delegation.issued": "delegation.issued";
|
|
39
|
+
"delegation.verified": "delegation.verified";
|
|
40
|
+
"delegation.rejected": "delegation.rejected";
|
|
41
|
+
"delegation.revoked": "delegation.revoked";
|
|
42
|
+
"delegation.cascade_revoked": "delegation.cascade_revoked";
|
|
43
|
+
"delegation.outbound_attached": "delegation.outbound_attached";
|
|
44
|
+
"authorization.evaluated": "authorization.evaluated";
|
|
45
|
+
"authorization.approved": "authorization.approved";
|
|
46
|
+
"authorization.denied": "authorization.denied";
|
|
47
|
+
"authorization.step_up_required": "authorization.step_up_required";
|
|
48
|
+
"grant.used": "grant.used";
|
|
49
|
+
"consent.requested": "consent.requested";
|
|
50
|
+
"consent.approved": "consent.approved";
|
|
51
|
+
"consent.denied": "consent.denied";
|
|
52
|
+
"credential.required": "credential.required";
|
|
53
|
+
"credential.verified": "credential.verified";
|
|
54
|
+
"credential.failed": "credential.failed";
|
|
55
|
+
"key.rotated": "key.rotated";
|
|
56
|
+
"policy.changed": "policy.changed";
|
|
57
|
+
"configuration.changed": "configuration.changed";
|
|
58
|
+
"integrity_suite.transitioned": "integrity_suite.transitioned";
|
|
59
|
+
"ledger.epoch.started": "ledger.epoch.started";
|
|
60
|
+
"ledger.epoch.transitioned": "ledger.epoch.transitioned";
|
|
61
|
+
"checkpoint.created": "checkpoint.created";
|
|
62
|
+
"checkpoint.anchored": "checkpoint.anchored";
|
|
63
|
+
"checkpoint.anchor_failed": "checkpoint.anchor_failed";
|
|
64
|
+
"evidence.disposed": "evidence.disposed";
|
|
65
|
+
"projection.reconciled": "projection.reconciled";
|
|
66
|
+
"audit.source_high_water": "audit.source_high_water";
|
|
67
|
+
"audit.accessed": "audit.accessed";
|
|
68
|
+
"audit.exported": "audit.exported";
|
|
69
|
+
"legal_hold.applied": "legal_hold.applied";
|
|
70
|
+
"retention.executed": "retention.executed";
|
|
71
|
+
}>;
|
|
72
|
+
eventVersion: z.ZodLiteral<"1.0.0">;
|
|
73
|
+
binding: z.ZodString;
|
|
74
|
+
occurredAt: z.ZodNumber;
|
|
75
|
+
tenantRef: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
76
|
+
source: z.ZodObject<{
|
|
77
|
+
producer: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
78
|
+
sourceId: z.ZodString;
|
|
79
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
80
|
+
previousSourceEventDigest: z.ZodOptional<z.ZodString>;
|
|
81
|
+
}, z.core.$strict>;
|
|
82
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
83
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
84
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
86
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
87
|
+
}, z.core.$strict>>;
|
|
88
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
ref: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
90
|
+
handshakeNonceCommitment: z.ZodOptional<z.ZodString>;
|
|
91
|
+
}, z.core.$strict>>;
|
|
92
|
+
actor: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
93
|
+
responsibleParty: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
94
|
+
resource: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
95
|
+
action: z.ZodObject<{
|
|
96
|
+
category: z.ZodString;
|
|
97
|
+
name: z.ZodOptional<z.ZodString>;
|
|
98
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
99
|
+
}, z.core.$strict>;
|
|
100
|
+
outcome: z.ZodEnum<{
|
|
101
|
+
denied: "denied";
|
|
102
|
+
unknown: "unknown";
|
|
103
|
+
failed: "failed";
|
|
104
|
+
challenged: "challenged";
|
|
105
|
+
succeeded: "succeeded";
|
|
106
|
+
}>;
|
|
107
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
108
|
+
code: z.ZodString;
|
|
109
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
110
|
+
}, z.core.$strict>>;
|
|
111
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
112
|
+
source: z.ZodEnum<{
|
|
113
|
+
delegation: "delegation";
|
|
114
|
+
anonymous: "anonymous";
|
|
115
|
+
grant: "grant";
|
|
116
|
+
policy: "policy";
|
|
117
|
+
}>;
|
|
118
|
+
decision: z.ZodEnum<{
|
|
119
|
+
needs_authorization: "needs_authorization";
|
|
120
|
+
allowed: "allowed";
|
|
121
|
+
denied: "denied";
|
|
122
|
+
step_up_required: "step_up_required";
|
|
123
|
+
}>;
|
|
124
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
125
|
+
delegationRef: z.ZodOptional<z.ZodString>;
|
|
126
|
+
delegationCredentialDigest: z.ZodOptional<z.ZodString>;
|
|
127
|
+
delegationChainDigests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
128
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
129
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
130
|
+
policyId: z.ZodOptional<z.ZodString>;
|
|
131
|
+
policyVersion: z.ZodOptional<z.ZodString>;
|
|
132
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
133
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, z.core.$strict>>;
|
|
135
|
+
proof: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
136
|
+
evidence: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
137
|
+
details: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
138
|
+
family: z.ZodLiteral<"session">;
|
|
139
|
+
phase: z.ZodEnum<{
|
|
140
|
+
expired: "expired";
|
|
141
|
+
established: "established";
|
|
142
|
+
rejected: "rejected";
|
|
143
|
+
replay_rejected: "replay_rejected";
|
|
144
|
+
}>;
|
|
145
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
147
|
+
family: z.ZodLiteral<"tool">;
|
|
148
|
+
phase: z.ZodEnum<{
|
|
149
|
+
denied: "denied";
|
|
150
|
+
started: "started";
|
|
151
|
+
completed: "completed";
|
|
152
|
+
failed: "failed";
|
|
153
|
+
challenged: "challenged";
|
|
154
|
+
}>;
|
|
155
|
+
attempt: z.ZodString;
|
|
156
|
+
idempotencyRef: z.ZodOptional<z.ZodString>;
|
|
157
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
158
|
+
family: z.ZodLiteral<"proof">;
|
|
159
|
+
phase: z.ZodEnum<{
|
|
160
|
+
rejected: "rejected";
|
|
161
|
+
generated: "generated";
|
|
162
|
+
verified: "verified";
|
|
163
|
+
}>;
|
|
164
|
+
proofDigest: z.ZodOptional<z.ZodString>;
|
|
165
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
166
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
167
|
+
family: z.ZodLiteral<"delegation">;
|
|
168
|
+
phase: z.ZodEnum<{
|
|
169
|
+
revoked: "revoked";
|
|
170
|
+
rejected: "rejected";
|
|
171
|
+
verified: "verified";
|
|
172
|
+
issued: "issued";
|
|
173
|
+
cascade_revoked: "cascade_revoked";
|
|
174
|
+
outbound_attached: "outbound_attached";
|
|
175
|
+
}>;
|
|
176
|
+
delegationRef: z.ZodString;
|
|
177
|
+
parentRef: z.ZodOptional<z.ZodString>;
|
|
178
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
179
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
180
|
+
family: z.ZodLiteral<"authorization">;
|
|
181
|
+
phase: z.ZodEnum<{
|
|
182
|
+
denied: "denied";
|
|
183
|
+
step_up_required: "step_up_required";
|
|
184
|
+
evaluated: "evaluated";
|
|
185
|
+
approved: "approved";
|
|
186
|
+
grant_used: "grant_used";
|
|
187
|
+
}>;
|
|
188
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
189
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
191
|
+
family: z.ZodLiteral<"consent">;
|
|
192
|
+
phase: z.ZodEnum<{
|
|
193
|
+
denied: "denied";
|
|
194
|
+
approved: "approved";
|
|
195
|
+
requested: "requested";
|
|
196
|
+
credential_required: "credential_required";
|
|
197
|
+
credential_verified: "credential_verified";
|
|
198
|
+
credential_failed: "credential_failed";
|
|
199
|
+
}>;
|
|
200
|
+
consentRef: z.ZodOptional<z.ZodString>;
|
|
201
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
202
|
+
family: z.ZodLiteral<"key">;
|
|
203
|
+
phase: z.ZodEnum<{
|
|
204
|
+
rotated: "rotated";
|
|
205
|
+
policy_changed: "policy_changed";
|
|
206
|
+
configuration_changed: "configuration_changed";
|
|
207
|
+
integrity_suite_transitioned: "integrity_suite_transitioned";
|
|
208
|
+
}>;
|
|
209
|
+
previousSigner: z.ZodOptional<z.ZodObject<{
|
|
210
|
+
did: z.ZodString;
|
|
211
|
+
kid: z.ZodString;
|
|
212
|
+
alg: z.ZodEnum<{
|
|
213
|
+
EdDSA: "EdDSA";
|
|
214
|
+
ES256: "ES256";
|
|
215
|
+
}>;
|
|
216
|
+
}, z.core.$strict>>;
|
|
217
|
+
nextSigner: z.ZodOptional<z.ZodObject<{
|
|
218
|
+
did: z.ZodString;
|
|
219
|
+
kid: z.ZodString;
|
|
220
|
+
alg: z.ZodEnum<{
|
|
221
|
+
EdDSA: "EdDSA";
|
|
222
|
+
ES256: "ES256";
|
|
223
|
+
}>;
|
|
224
|
+
}, z.core.$strict>>;
|
|
225
|
+
configurationDigest: z.ZodOptional<z.ZodString>;
|
|
226
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
227
|
+
family: z.ZodLiteral<"ledger">;
|
|
228
|
+
phase: z.ZodEnum<{
|
|
229
|
+
epoch_started: "epoch_started";
|
|
230
|
+
epoch_transitioned: "epoch_transitioned";
|
|
231
|
+
checkpoint_created: "checkpoint_created";
|
|
232
|
+
checkpoint_anchored: "checkpoint_anchored";
|
|
233
|
+
checkpoint_anchor_failed: "checkpoint_anchor_failed";
|
|
234
|
+
evidence_disposed: "evidence_disposed";
|
|
235
|
+
projection_reconciled: "projection_reconciled";
|
|
236
|
+
}>;
|
|
237
|
+
checkpointDigest: z.ZodOptional<z.ZodString>;
|
|
238
|
+
previousEpochId: z.ZodOptional<z.ZodString>;
|
|
239
|
+
previousTerminalCheckpointDigest: z.ZodOptional<z.ZodString>;
|
|
240
|
+
successorEpochIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
241
|
+
targetEvidenceRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
242
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
243
|
+
family: z.ZodLiteral<"administration">;
|
|
244
|
+
phase: z.ZodEnum<{
|
|
245
|
+
source_high_water: "source_high_water";
|
|
246
|
+
accessed: "accessed";
|
|
247
|
+
exported: "exported";
|
|
248
|
+
legal_hold_applied: "legal_hold_applied";
|
|
249
|
+
retention_executed: "retention_executed";
|
|
250
|
+
}>;
|
|
251
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
252
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
253
|
+
selectionDigest: z.ZodOptional<z.ZodString>;
|
|
254
|
+
}, z.core.$strict>], "family">;
|
|
255
|
+
privacy: z.ZodObject<{
|
|
256
|
+
classification: z.ZodEnum<{
|
|
257
|
+
public: "public";
|
|
258
|
+
internal: "internal";
|
|
259
|
+
confidential: "confidential";
|
|
260
|
+
restricted: "restricted";
|
|
261
|
+
}>;
|
|
262
|
+
retentionClass: z.ZodString;
|
|
263
|
+
legalHold: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strict>;
|
|
265
|
+
}, z.core.$strict>;
|
|
266
|
+
export declare const auditEntryCoreSchema: z.ZodObject<{
|
|
267
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/entry/v1.0.0">;
|
|
268
|
+
ledgerId: z.ZodString;
|
|
269
|
+
ledgerEpochId: z.ZodString;
|
|
270
|
+
sequence: z.ZodString;
|
|
271
|
+
previousEntryDigest: z.ZodNullable<z.ZodString>;
|
|
272
|
+
recordedAt: z.ZodNumber;
|
|
273
|
+
recorder: z.ZodObject<{
|
|
274
|
+
did: z.ZodString;
|
|
275
|
+
kid: z.ZodString;
|
|
276
|
+
alg: z.ZodEnum<{
|
|
277
|
+
EdDSA: "EdDSA";
|
|
278
|
+
ES256: "ES256";
|
|
279
|
+
}>;
|
|
280
|
+
}, z.core.$strict>;
|
|
281
|
+
eventDigest: z.ZodString;
|
|
282
|
+
event: z.ZodObject<{
|
|
283
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/event/v1.0.0">;
|
|
284
|
+
eventId: z.ZodString;
|
|
285
|
+
eventType: z.ZodEnum<{
|
|
286
|
+
"session.established": "session.established";
|
|
287
|
+
"session.rejected": "session.rejected";
|
|
288
|
+
"session.expired": "session.expired";
|
|
289
|
+
"session.replay_rejected": "session.replay_rejected";
|
|
290
|
+
"tool.call.started": "tool.call.started";
|
|
291
|
+
"tool.call.completed": "tool.call.completed";
|
|
292
|
+
"tool.call.failed": "tool.call.failed";
|
|
293
|
+
"tool.call.denied": "tool.call.denied";
|
|
294
|
+
"tool.call.challenged": "tool.call.challenged";
|
|
295
|
+
"proof.generated": "proof.generated";
|
|
296
|
+
"proof.verified": "proof.verified";
|
|
297
|
+
"proof.rejected": "proof.rejected";
|
|
298
|
+
"delegation.issued": "delegation.issued";
|
|
299
|
+
"delegation.verified": "delegation.verified";
|
|
300
|
+
"delegation.rejected": "delegation.rejected";
|
|
301
|
+
"delegation.revoked": "delegation.revoked";
|
|
302
|
+
"delegation.cascade_revoked": "delegation.cascade_revoked";
|
|
303
|
+
"delegation.outbound_attached": "delegation.outbound_attached";
|
|
304
|
+
"authorization.evaluated": "authorization.evaluated";
|
|
305
|
+
"authorization.approved": "authorization.approved";
|
|
306
|
+
"authorization.denied": "authorization.denied";
|
|
307
|
+
"authorization.step_up_required": "authorization.step_up_required";
|
|
308
|
+
"grant.used": "grant.used";
|
|
309
|
+
"consent.requested": "consent.requested";
|
|
310
|
+
"consent.approved": "consent.approved";
|
|
311
|
+
"consent.denied": "consent.denied";
|
|
312
|
+
"credential.required": "credential.required";
|
|
313
|
+
"credential.verified": "credential.verified";
|
|
314
|
+
"credential.failed": "credential.failed";
|
|
315
|
+
"key.rotated": "key.rotated";
|
|
316
|
+
"policy.changed": "policy.changed";
|
|
317
|
+
"configuration.changed": "configuration.changed";
|
|
318
|
+
"integrity_suite.transitioned": "integrity_suite.transitioned";
|
|
319
|
+
"ledger.epoch.started": "ledger.epoch.started";
|
|
320
|
+
"ledger.epoch.transitioned": "ledger.epoch.transitioned";
|
|
321
|
+
"checkpoint.created": "checkpoint.created";
|
|
322
|
+
"checkpoint.anchored": "checkpoint.anchored";
|
|
323
|
+
"checkpoint.anchor_failed": "checkpoint.anchor_failed";
|
|
324
|
+
"evidence.disposed": "evidence.disposed";
|
|
325
|
+
"projection.reconciled": "projection.reconciled";
|
|
326
|
+
"audit.source_high_water": "audit.source_high_water";
|
|
327
|
+
"audit.accessed": "audit.accessed";
|
|
328
|
+
"audit.exported": "audit.exported";
|
|
329
|
+
"legal_hold.applied": "legal_hold.applied";
|
|
330
|
+
"retention.executed": "retention.executed";
|
|
331
|
+
}>;
|
|
332
|
+
eventVersion: z.ZodLiteral<"1.0.0">;
|
|
333
|
+
binding: z.ZodString;
|
|
334
|
+
occurredAt: z.ZodNumber;
|
|
335
|
+
tenantRef: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
336
|
+
source: z.ZodObject<{
|
|
337
|
+
producer: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
338
|
+
sourceId: z.ZodString;
|
|
339
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
340
|
+
previousSourceEventDigest: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
343
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
344
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
345
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
346
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
347
|
+
}, z.core.$strict>>;
|
|
348
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
349
|
+
ref: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
350
|
+
handshakeNonceCommitment: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strict>>;
|
|
352
|
+
actor: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
353
|
+
responsibleParty: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
354
|
+
resource: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
355
|
+
action: z.ZodObject<{
|
|
356
|
+
category: z.ZodString;
|
|
357
|
+
name: z.ZodOptional<z.ZodString>;
|
|
358
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
359
|
+
}, z.core.$strict>;
|
|
360
|
+
outcome: z.ZodEnum<{
|
|
361
|
+
denied: "denied";
|
|
362
|
+
unknown: "unknown";
|
|
363
|
+
failed: "failed";
|
|
364
|
+
challenged: "challenged";
|
|
365
|
+
succeeded: "succeeded";
|
|
366
|
+
}>;
|
|
367
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
368
|
+
code: z.ZodString;
|
|
369
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
370
|
+
}, z.core.$strict>>;
|
|
371
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
372
|
+
source: z.ZodEnum<{
|
|
373
|
+
delegation: "delegation";
|
|
374
|
+
anonymous: "anonymous";
|
|
375
|
+
grant: "grant";
|
|
376
|
+
policy: "policy";
|
|
377
|
+
}>;
|
|
378
|
+
decision: z.ZodEnum<{
|
|
379
|
+
needs_authorization: "needs_authorization";
|
|
380
|
+
allowed: "allowed";
|
|
381
|
+
denied: "denied";
|
|
382
|
+
step_up_required: "step_up_required";
|
|
383
|
+
}>;
|
|
384
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
385
|
+
delegationRef: z.ZodOptional<z.ZodString>;
|
|
386
|
+
delegationCredentialDigest: z.ZodOptional<z.ZodString>;
|
|
387
|
+
delegationChainDigests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
388
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
389
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
390
|
+
policyId: z.ZodOptional<z.ZodString>;
|
|
391
|
+
policyVersion: z.ZodOptional<z.ZodString>;
|
|
392
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
393
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
394
|
+
}, z.core.$strict>>;
|
|
395
|
+
proof: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
396
|
+
evidence: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
397
|
+
details: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
398
|
+
family: z.ZodLiteral<"session">;
|
|
399
|
+
phase: z.ZodEnum<{
|
|
400
|
+
expired: "expired";
|
|
401
|
+
established: "established";
|
|
402
|
+
rejected: "rejected";
|
|
403
|
+
replay_rejected: "replay_rejected";
|
|
404
|
+
}>;
|
|
405
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
406
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
407
|
+
family: z.ZodLiteral<"tool">;
|
|
408
|
+
phase: z.ZodEnum<{
|
|
409
|
+
denied: "denied";
|
|
410
|
+
started: "started";
|
|
411
|
+
completed: "completed";
|
|
412
|
+
failed: "failed";
|
|
413
|
+
challenged: "challenged";
|
|
414
|
+
}>;
|
|
415
|
+
attempt: z.ZodString;
|
|
416
|
+
idempotencyRef: z.ZodOptional<z.ZodString>;
|
|
417
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
418
|
+
family: z.ZodLiteral<"proof">;
|
|
419
|
+
phase: z.ZodEnum<{
|
|
420
|
+
rejected: "rejected";
|
|
421
|
+
generated: "generated";
|
|
422
|
+
verified: "verified";
|
|
423
|
+
}>;
|
|
424
|
+
proofDigest: z.ZodOptional<z.ZodString>;
|
|
425
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
426
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
427
|
+
family: z.ZodLiteral<"delegation">;
|
|
428
|
+
phase: z.ZodEnum<{
|
|
429
|
+
revoked: "revoked";
|
|
430
|
+
rejected: "rejected";
|
|
431
|
+
verified: "verified";
|
|
432
|
+
issued: "issued";
|
|
433
|
+
cascade_revoked: "cascade_revoked";
|
|
434
|
+
outbound_attached: "outbound_attached";
|
|
435
|
+
}>;
|
|
436
|
+
delegationRef: z.ZodString;
|
|
437
|
+
parentRef: z.ZodOptional<z.ZodString>;
|
|
438
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
439
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
440
|
+
family: z.ZodLiteral<"authorization">;
|
|
441
|
+
phase: z.ZodEnum<{
|
|
442
|
+
denied: "denied";
|
|
443
|
+
step_up_required: "step_up_required";
|
|
444
|
+
evaluated: "evaluated";
|
|
445
|
+
approved: "approved";
|
|
446
|
+
grant_used: "grant_used";
|
|
447
|
+
}>;
|
|
448
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
449
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
450
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
451
|
+
family: z.ZodLiteral<"consent">;
|
|
452
|
+
phase: z.ZodEnum<{
|
|
453
|
+
denied: "denied";
|
|
454
|
+
approved: "approved";
|
|
455
|
+
requested: "requested";
|
|
456
|
+
credential_required: "credential_required";
|
|
457
|
+
credential_verified: "credential_verified";
|
|
458
|
+
credential_failed: "credential_failed";
|
|
459
|
+
}>;
|
|
460
|
+
consentRef: z.ZodOptional<z.ZodString>;
|
|
461
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
462
|
+
family: z.ZodLiteral<"key">;
|
|
463
|
+
phase: z.ZodEnum<{
|
|
464
|
+
rotated: "rotated";
|
|
465
|
+
policy_changed: "policy_changed";
|
|
466
|
+
configuration_changed: "configuration_changed";
|
|
467
|
+
integrity_suite_transitioned: "integrity_suite_transitioned";
|
|
468
|
+
}>;
|
|
469
|
+
previousSigner: z.ZodOptional<z.ZodObject<{
|
|
470
|
+
did: z.ZodString;
|
|
471
|
+
kid: z.ZodString;
|
|
472
|
+
alg: z.ZodEnum<{
|
|
473
|
+
EdDSA: "EdDSA";
|
|
474
|
+
ES256: "ES256";
|
|
475
|
+
}>;
|
|
476
|
+
}, z.core.$strict>>;
|
|
477
|
+
nextSigner: z.ZodOptional<z.ZodObject<{
|
|
478
|
+
did: z.ZodString;
|
|
479
|
+
kid: z.ZodString;
|
|
480
|
+
alg: z.ZodEnum<{
|
|
481
|
+
EdDSA: "EdDSA";
|
|
482
|
+
ES256: "ES256";
|
|
483
|
+
}>;
|
|
484
|
+
}, z.core.$strict>>;
|
|
485
|
+
configurationDigest: z.ZodOptional<z.ZodString>;
|
|
486
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
487
|
+
family: z.ZodLiteral<"ledger">;
|
|
488
|
+
phase: z.ZodEnum<{
|
|
489
|
+
epoch_started: "epoch_started";
|
|
490
|
+
epoch_transitioned: "epoch_transitioned";
|
|
491
|
+
checkpoint_created: "checkpoint_created";
|
|
492
|
+
checkpoint_anchored: "checkpoint_anchored";
|
|
493
|
+
checkpoint_anchor_failed: "checkpoint_anchor_failed";
|
|
494
|
+
evidence_disposed: "evidence_disposed";
|
|
495
|
+
projection_reconciled: "projection_reconciled";
|
|
496
|
+
}>;
|
|
497
|
+
checkpointDigest: z.ZodOptional<z.ZodString>;
|
|
498
|
+
previousEpochId: z.ZodOptional<z.ZodString>;
|
|
499
|
+
previousTerminalCheckpointDigest: z.ZodOptional<z.ZodString>;
|
|
500
|
+
successorEpochIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
501
|
+
targetEvidenceRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
502
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
503
|
+
family: z.ZodLiteral<"administration">;
|
|
504
|
+
phase: z.ZodEnum<{
|
|
505
|
+
source_high_water: "source_high_water";
|
|
506
|
+
accessed: "accessed";
|
|
507
|
+
exported: "exported";
|
|
508
|
+
legal_hold_applied: "legal_hold_applied";
|
|
509
|
+
retention_executed: "retention_executed";
|
|
510
|
+
}>;
|
|
511
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
512
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
513
|
+
selectionDigest: z.ZodOptional<z.ZodString>;
|
|
514
|
+
}, z.core.$strict>], "family">;
|
|
515
|
+
privacy: z.ZodObject<{
|
|
516
|
+
classification: z.ZodEnum<{
|
|
517
|
+
public: "public";
|
|
518
|
+
internal: "internal";
|
|
519
|
+
confidential: "confidential";
|
|
520
|
+
restricted: "restricted";
|
|
521
|
+
}>;
|
|
522
|
+
retentionClass: z.ZodString;
|
|
523
|
+
legalHold: z.ZodOptional<z.ZodString>;
|
|
524
|
+
}, z.core.$strict>;
|
|
525
|
+
}, z.core.$strict>;
|
|
526
|
+
evidenceManifestDigest: z.ZodString;
|
|
527
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-JCS-SHA256-JWS-2026">;
|
|
528
|
+
}, z.core.$strict>;
|
|
529
|
+
export declare const auditRecorderReceiptCoreSchema: z.ZodObject<{
|
|
530
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/receipt/v1.0.0">;
|
|
531
|
+
ledgerId: z.ZodString;
|
|
532
|
+
ledgerEpochId: z.ZodString;
|
|
533
|
+
sequence: z.ZodString;
|
|
534
|
+
eventId: z.ZodString;
|
|
535
|
+
entryDigest: z.ZodString;
|
|
536
|
+
previousEntryDigest: z.ZodNullable<z.ZodString>;
|
|
537
|
+
recordedAt: z.ZodNumber;
|
|
538
|
+
recorder: z.ZodObject<{
|
|
539
|
+
did: z.ZodString;
|
|
540
|
+
kid: z.ZodString;
|
|
541
|
+
alg: z.ZodEnum<{
|
|
542
|
+
EdDSA: "EdDSA";
|
|
543
|
+
ES256: "ES256";
|
|
544
|
+
}>;
|
|
545
|
+
}, z.core.$strict>;
|
|
546
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-JCS-SHA256-JWS-2026">;
|
|
547
|
+
}, z.core.$strict>;
|
|
548
|
+
export declare const auditCheckpointCoreSchema: z.ZodObject<{
|
|
549
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/checkpoint/v1.0.0">;
|
|
550
|
+
checkpointId: z.ZodString;
|
|
551
|
+
ledgerId: z.ZodString;
|
|
552
|
+
ledgerEpochId: z.ZodString;
|
|
553
|
+
treeSize: z.ZodString;
|
|
554
|
+
firstSequence: z.ZodString;
|
|
555
|
+
lastSequence: z.ZodString;
|
|
556
|
+
rootDigest: z.ZodString;
|
|
557
|
+
headEntryDigest: z.ZodString;
|
|
558
|
+
previousCheckpointDigest: z.ZodNullable<z.ZodString>;
|
|
559
|
+
createdAt: z.ZodNumber;
|
|
560
|
+
issuer: z.ZodObject<{
|
|
561
|
+
did: z.ZodString;
|
|
562
|
+
kid: z.ZodString;
|
|
563
|
+
alg: z.ZodEnum<{
|
|
564
|
+
EdDSA: "EdDSA";
|
|
565
|
+
ES256: "ES256";
|
|
566
|
+
}>;
|
|
567
|
+
}, z.core.$strict>;
|
|
568
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-RFC9162-SHA256-JWS-2026">;
|
|
569
|
+
}, z.core.$strict>;
|
|
570
|
+
export declare const signedAuditCheckpointSchema: z.ZodObject<{
|
|
571
|
+
core: z.ZodObject<{
|
|
572
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/checkpoint/v1.0.0">;
|
|
573
|
+
checkpointId: z.ZodString;
|
|
574
|
+
ledgerId: z.ZodString;
|
|
575
|
+
ledgerEpochId: z.ZodString;
|
|
576
|
+
treeSize: z.ZodString;
|
|
577
|
+
firstSequence: z.ZodString;
|
|
578
|
+
lastSequence: z.ZodString;
|
|
579
|
+
rootDigest: z.ZodString;
|
|
580
|
+
headEntryDigest: z.ZodString;
|
|
581
|
+
previousCheckpointDigest: z.ZodNullable<z.ZodString>;
|
|
582
|
+
createdAt: z.ZodNumber;
|
|
583
|
+
issuer: z.ZodObject<{
|
|
584
|
+
did: z.ZodString;
|
|
585
|
+
kid: z.ZodString;
|
|
586
|
+
alg: z.ZodEnum<{
|
|
587
|
+
EdDSA: "EdDSA";
|
|
588
|
+
ES256: "ES256";
|
|
589
|
+
}>;
|
|
590
|
+
}, z.core.$strict>;
|
|
591
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-RFC9162-SHA256-JWS-2026">;
|
|
592
|
+
}, z.core.$strict>;
|
|
593
|
+
checkpointDigest: z.ZodString;
|
|
594
|
+
jws: z.ZodString;
|
|
595
|
+
}, z.core.$strict>;
|
|
596
|
+
export declare const signedAuditEntrySchema: z.ZodObject<{
|
|
597
|
+
core: z.ZodObject<{
|
|
598
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/entry/v1.0.0">;
|
|
599
|
+
ledgerId: z.ZodString;
|
|
600
|
+
ledgerEpochId: z.ZodString;
|
|
601
|
+
sequence: z.ZodString;
|
|
602
|
+
previousEntryDigest: z.ZodNullable<z.ZodString>;
|
|
603
|
+
recordedAt: z.ZodNumber;
|
|
604
|
+
recorder: z.ZodObject<{
|
|
605
|
+
did: z.ZodString;
|
|
606
|
+
kid: z.ZodString;
|
|
607
|
+
alg: z.ZodEnum<{
|
|
608
|
+
EdDSA: "EdDSA";
|
|
609
|
+
ES256: "ES256";
|
|
610
|
+
}>;
|
|
611
|
+
}, z.core.$strict>;
|
|
612
|
+
eventDigest: z.ZodString;
|
|
613
|
+
event: z.ZodObject<{
|
|
614
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/event/v1.0.0">;
|
|
615
|
+
eventId: z.ZodString;
|
|
616
|
+
eventType: z.ZodEnum<{
|
|
617
|
+
"session.established": "session.established";
|
|
618
|
+
"session.rejected": "session.rejected";
|
|
619
|
+
"session.expired": "session.expired";
|
|
620
|
+
"session.replay_rejected": "session.replay_rejected";
|
|
621
|
+
"tool.call.started": "tool.call.started";
|
|
622
|
+
"tool.call.completed": "tool.call.completed";
|
|
623
|
+
"tool.call.failed": "tool.call.failed";
|
|
624
|
+
"tool.call.denied": "tool.call.denied";
|
|
625
|
+
"tool.call.challenged": "tool.call.challenged";
|
|
626
|
+
"proof.generated": "proof.generated";
|
|
627
|
+
"proof.verified": "proof.verified";
|
|
628
|
+
"proof.rejected": "proof.rejected";
|
|
629
|
+
"delegation.issued": "delegation.issued";
|
|
630
|
+
"delegation.verified": "delegation.verified";
|
|
631
|
+
"delegation.rejected": "delegation.rejected";
|
|
632
|
+
"delegation.revoked": "delegation.revoked";
|
|
633
|
+
"delegation.cascade_revoked": "delegation.cascade_revoked";
|
|
634
|
+
"delegation.outbound_attached": "delegation.outbound_attached";
|
|
635
|
+
"authorization.evaluated": "authorization.evaluated";
|
|
636
|
+
"authorization.approved": "authorization.approved";
|
|
637
|
+
"authorization.denied": "authorization.denied";
|
|
638
|
+
"authorization.step_up_required": "authorization.step_up_required";
|
|
639
|
+
"grant.used": "grant.used";
|
|
640
|
+
"consent.requested": "consent.requested";
|
|
641
|
+
"consent.approved": "consent.approved";
|
|
642
|
+
"consent.denied": "consent.denied";
|
|
643
|
+
"credential.required": "credential.required";
|
|
644
|
+
"credential.verified": "credential.verified";
|
|
645
|
+
"credential.failed": "credential.failed";
|
|
646
|
+
"key.rotated": "key.rotated";
|
|
647
|
+
"policy.changed": "policy.changed";
|
|
648
|
+
"configuration.changed": "configuration.changed";
|
|
649
|
+
"integrity_suite.transitioned": "integrity_suite.transitioned";
|
|
650
|
+
"ledger.epoch.started": "ledger.epoch.started";
|
|
651
|
+
"ledger.epoch.transitioned": "ledger.epoch.transitioned";
|
|
652
|
+
"checkpoint.created": "checkpoint.created";
|
|
653
|
+
"checkpoint.anchored": "checkpoint.anchored";
|
|
654
|
+
"checkpoint.anchor_failed": "checkpoint.anchor_failed";
|
|
655
|
+
"evidence.disposed": "evidence.disposed";
|
|
656
|
+
"projection.reconciled": "projection.reconciled";
|
|
657
|
+
"audit.source_high_water": "audit.source_high_water";
|
|
658
|
+
"audit.accessed": "audit.accessed";
|
|
659
|
+
"audit.exported": "audit.exported";
|
|
660
|
+
"legal_hold.applied": "legal_hold.applied";
|
|
661
|
+
"retention.executed": "retention.executed";
|
|
662
|
+
}>;
|
|
663
|
+
eventVersion: z.ZodLiteral<"1.0.0">;
|
|
664
|
+
binding: z.ZodString;
|
|
665
|
+
occurredAt: z.ZodNumber;
|
|
666
|
+
tenantRef: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
667
|
+
source: z.ZodObject<{
|
|
668
|
+
producer: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
669
|
+
sourceId: z.ZodString;
|
|
670
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
671
|
+
previousSourceEventDigest: z.ZodOptional<z.ZodString>;
|
|
672
|
+
}, z.core.$strict>;
|
|
673
|
+
correlationId: z.ZodOptional<z.ZodString>;
|
|
674
|
+
causationId: z.ZodOptional<z.ZodString>;
|
|
675
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
676
|
+
traceId: z.ZodOptional<z.ZodString>;
|
|
677
|
+
spanId: z.ZodOptional<z.ZodString>;
|
|
678
|
+
}, z.core.$strict>>;
|
|
679
|
+
session: z.ZodOptional<z.ZodObject<{
|
|
680
|
+
ref: z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>;
|
|
681
|
+
handshakeNonceCommitment: z.ZodOptional<z.ZodString>;
|
|
682
|
+
}, z.core.$strict>>;
|
|
683
|
+
actor: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
684
|
+
responsibleParty: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
685
|
+
resource: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
686
|
+
action: z.ZodObject<{
|
|
687
|
+
category: z.ZodString;
|
|
688
|
+
name: z.ZodOptional<z.ZodString>;
|
|
689
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
690
|
+
}, z.core.$strict>;
|
|
691
|
+
outcome: z.ZodEnum<{
|
|
692
|
+
denied: "denied";
|
|
693
|
+
unknown: "unknown";
|
|
694
|
+
failed: "failed";
|
|
695
|
+
challenged: "challenged";
|
|
696
|
+
succeeded: "succeeded";
|
|
697
|
+
}>;
|
|
698
|
+
reason: z.ZodOptional<z.ZodObject<{
|
|
699
|
+
code: z.ZodString;
|
|
700
|
+
detailRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
701
|
+
}, z.core.$strict>>;
|
|
702
|
+
authorization: z.ZodOptional<z.ZodObject<{
|
|
703
|
+
source: z.ZodEnum<{
|
|
704
|
+
delegation: "delegation";
|
|
705
|
+
anonymous: "anonymous";
|
|
706
|
+
grant: "grant";
|
|
707
|
+
policy: "policy";
|
|
708
|
+
}>;
|
|
709
|
+
decision: z.ZodEnum<{
|
|
710
|
+
needs_authorization: "needs_authorization";
|
|
711
|
+
allowed: "allowed";
|
|
712
|
+
denied: "denied";
|
|
713
|
+
step_up_required: "step_up_required";
|
|
714
|
+
}>;
|
|
715
|
+
scopeId: z.ZodOptional<z.ZodString>;
|
|
716
|
+
delegationRef: z.ZodOptional<z.ZodString>;
|
|
717
|
+
delegationCredentialDigest: z.ZodOptional<z.ZodString>;
|
|
718
|
+
delegationChainDigests: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
719
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
720
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
721
|
+
policyId: z.ZodOptional<z.ZodString>;
|
|
722
|
+
policyVersion: z.ZodOptional<z.ZodString>;
|
|
723
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
724
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
725
|
+
}, z.core.$strict>>;
|
|
726
|
+
proof: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
727
|
+
evidence: z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
728
|
+
details: z.ZodDiscriminatedUnion<readonly [z.ZodObject<{
|
|
729
|
+
family: z.ZodLiteral<"session">;
|
|
730
|
+
phase: z.ZodEnum<{
|
|
731
|
+
expired: "expired";
|
|
732
|
+
established: "established";
|
|
733
|
+
rejected: "rejected";
|
|
734
|
+
replay_rejected: "replay_rejected";
|
|
735
|
+
}>;
|
|
736
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
737
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
738
|
+
family: z.ZodLiteral<"tool">;
|
|
739
|
+
phase: z.ZodEnum<{
|
|
740
|
+
denied: "denied";
|
|
741
|
+
started: "started";
|
|
742
|
+
completed: "completed";
|
|
743
|
+
failed: "failed";
|
|
744
|
+
challenged: "challenged";
|
|
745
|
+
}>;
|
|
746
|
+
attempt: z.ZodString;
|
|
747
|
+
idempotencyRef: z.ZodOptional<z.ZodString>;
|
|
748
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
749
|
+
family: z.ZodLiteral<"proof">;
|
|
750
|
+
phase: z.ZodEnum<{
|
|
751
|
+
rejected: "rejected";
|
|
752
|
+
generated: "generated";
|
|
753
|
+
verified: "verified";
|
|
754
|
+
}>;
|
|
755
|
+
proofDigest: z.ZodOptional<z.ZodString>;
|
|
756
|
+
verificationCode: z.ZodOptional<z.ZodString>;
|
|
757
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
758
|
+
family: z.ZodLiteral<"delegation">;
|
|
759
|
+
phase: z.ZodEnum<{
|
|
760
|
+
revoked: "revoked";
|
|
761
|
+
rejected: "rejected";
|
|
762
|
+
verified: "verified";
|
|
763
|
+
issued: "issued";
|
|
764
|
+
cascade_revoked: "cascade_revoked";
|
|
765
|
+
outbound_attached: "outbound_attached";
|
|
766
|
+
}>;
|
|
767
|
+
delegationRef: z.ZodString;
|
|
768
|
+
parentRef: z.ZodOptional<z.ZodString>;
|
|
769
|
+
statusEvidence: z.ZodOptional<z.ZodArray<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>>;
|
|
770
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
771
|
+
family: z.ZodLiteral<"authorization">;
|
|
772
|
+
phase: z.ZodEnum<{
|
|
773
|
+
denied: "denied";
|
|
774
|
+
step_up_required: "step_up_required";
|
|
775
|
+
evaluated: "evaluated";
|
|
776
|
+
approved: "approved";
|
|
777
|
+
grant_used: "grant_used";
|
|
778
|
+
}>;
|
|
779
|
+
policyDigest: z.ZodOptional<z.ZodString>;
|
|
780
|
+
grantRef: z.ZodOptional<z.ZodString>;
|
|
781
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
782
|
+
family: z.ZodLiteral<"consent">;
|
|
783
|
+
phase: z.ZodEnum<{
|
|
784
|
+
denied: "denied";
|
|
785
|
+
approved: "approved";
|
|
786
|
+
requested: "requested";
|
|
787
|
+
credential_required: "credential_required";
|
|
788
|
+
credential_verified: "credential_verified";
|
|
789
|
+
credential_failed: "credential_failed";
|
|
790
|
+
}>;
|
|
791
|
+
consentRef: z.ZodOptional<z.ZodString>;
|
|
792
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
793
|
+
family: z.ZodLiteral<"key">;
|
|
794
|
+
phase: z.ZodEnum<{
|
|
795
|
+
rotated: "rotated";
|
|
796
|
+
policy_changed: "policy_changed";
|
|
797
|
+
configuration_changed: "configuration_changed";
|
|
798
|
+
integrity_suite_transitioned: "integrity_suite_transitioned";
|
|
799
|
+
}>;
|
|
800
|
+
previousSigner: z.ZodOptional<z.ZodObject<{
|
|
801
|
+
did: z.ZodString;
|
|
802
|
+
kid: z.ZodString;
|
|
803
|
+
alg: z.ZodEnum<{
|
|
804
|
+
EdDSA: "EdDSA";
|
|
805
|
+
ES256: "ES256";
|
|
806
|
+
}>;
|
|
807
|
+
}, z.core.$strict>>;
|
|
808
|
+
nextSigner: z.ZodOptional<z.ZodObject<{
|
|
809
|
+
did: z.ZodString;
|
|
810
|
+
kid: z.ZodString;
|
|
811
|
+
alg: z.ZodEnum<{
|
|
812
|
+
EdDSA: "EdDSA";
|
|
813
|
+
ES256: "ES256";
|
|
814
|
+
}>;
|
|
815
|
+
}, z.core.$strict>>;
|
|
816
|
+
configurationDigest: z.ZodOptional<z.ZodString>;
|
|
817
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
818
|
+
family: z.ZodLiteral<"ledger">;
|
|
819
|
+
phase: z.ZodEnum<{
|
|
820
|
+
epoch_started: "epoch_started";
|
|
821
|
+
epoch_transitioned: "epoch_transitioned";
|
|
822
|
+
checkpoint_created: "checkpoint_created";
|
|
823
|
+
checkpoint_anchored: "checkpoint_anchored";
|
|
824
|
+
checkpoint_anchor_failed: "checkpoint_anchor_failed";
|
|
825
|
+
evidence_disposed: "evidence_disposed";
|
|
826
|
+
projection_reconciled: "projection_reconciled";
|
|
827
|
+
}>;
|
|
828
|
+
checkpointDigest: z.ZodOptional<z.ZodString>;
|
|
829
|
+
previousEpochId: z.ZodOptional<z.ZodString>;
|
|
830
|
+
previousTerminalCheckpointDigest: z.ZodOptional<z.ZodString>;
|
|
831
|
+
successorEpochIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
832
|
+
targetEvidenceRef: z.ZodOptional<z.ZodType<unknown, unknown, z.core.$ZodTypeInternals<unknown, unknown>>>;
|
|
833
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
834
|
+
family: z.ZodLiteral<"administration">;
|
|
835
|
+
phase: z.ZodEnum<{
|
|
836
|
+
source_high_water: "source_high_water";
|
|
837
|
+
accessed: "accessed";
|
|
838
|
+
exported: "exported";
|
|
839
|
+
legal_hold_applied: "legal_hold_applied";
|
|
840
|
+
retention_executed: "retention_executed";
|
|
841
|
+
}>;
|
|
842
|
+
purpose: z.ZodOptional<z.ZodString>;
|
|
843
|
+
sourceSequence: z.ZodOptional<z.ZodString>;
|
|
844
|
+
selectionDigest: z.ZodOptional<z.ZodString>;
|
|
845
|
+
}, z.core.$strict>], "family">;
|
|
846
|
+
privacy: z.ZodObject<{
|
|
847
|
+
classification: z.ZodEnum<{
|
|
848
|
+
public: "public";
|
|
849
|
+
internal: "internal";
|
|
850
|
+
confidential: "confidential";
|
|
851
|
+
restricted: "restricted";
|
|
852
|
+
}>;
|
|
853
|
+
retentionClass: z.ZodString;
|
|
854
|
+
legalHold: z.ZodOptional<z.ZodString>;
|
|
855
|
+
}, z.core.$strict>;
|
|
856
|
+
}, z.core.$strict>;
|
|
857
|
+
evidenceManifestDigest: z.ZodString;
|
|
858
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-JCS-SHA256-JWS-2026">;
|
|
859
|
+
}, z.core.$strict>;
|
|
860
|
+
eventDigest: z.ZodString;
|
|
861
|
+
entryDigest: z.ZodString;
|
|
862
|
+
recorderReceipt: z.ZodObject<{
|
|
863
|
+
core: z.ZodObject<{
|
|
864
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/receipt/v1.0.0">;
|
|
865
|
+
ledgerId: z.ZodString;
|
|
866
|
+
ledgerEpochId: z.ZodString;
|
|
867
|
+
sequence: z.ZodString;
|
|
868
|
+
eventId: z.ZodString;
|
|
869
|
+
entryDigest: z.ZodString;
|
|
870
|
+
previousEntryDigest: z.ZodNullable<z.ZodString>;
|
|
871
|
+
recordedAt: z.ZodNumber;
|
|
872
|
+
recorder: z.ZodObject<{
|
|
873
|
+
did: z.ZodString;
|
|
874
|
+
kid: z.ZodString;
|
|
875
|
+
alg: z.ZodEnum<{
|
|
876
|
+
EdDSA: "EdDSA";
|
|
877
|
+
ES256: "ES256";
|
|
878
|
+
}>;
|
|
879
|
+
}, z.core.$strict>;
|
|
880
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-JCS-SHA256-JWS-2026">;
|
|
881
|
+
}, z.core.$strict>;
|
|
882
|
+
jws: z.ZodString;
|
|
883
|
+
}, z.core.$strict>;
|
|
884
|
+
}, z.core.$strict>;
|
|
885
|
+
export declare const auditObservationReceiptSchema: z.ZodObject<{
|
|
886
|
+
core: z.ZodObject<{
|
|
887
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/observation/v1.0.0">;
|
|
888
|
+
observerId: z.ZodString;
|
|
889
|
+
observer: z.ZodObject<{
|
|
890
|
+
did: z.ZodString;
|
|
891
|
+
kid: z.ZodString;
|
|
892
|
+
alg: z.ZodEnum<{
|
|
893
|
+
EdDSA: "EdDSA";
|
|
894
|
+
ES256: "ES256";
|
|
895
|
+
}>;
|
|
896
|
+
}, z.core.$strict>;
|
|
897
|
+
ledgerId: z.ZodString;
|
|
898
|
+
ledgerEpochId: z.ZodString;
|
|
899
|
+
checkpointDigest: z.ZodString;
|
|
900
|
+
treeSize: z.ZodString;
|
|
901
|
+
observedAt: z.ZodNumber;
|
|
902
|
+
previousObservationDigest: z.ZodNullable<z.ZodString>;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
observationDigest: z.ZodString;
|
|
905
|
+
jws: z.ZodString;
|
|
906
|
+
}, z.core.$strict>;
|
|
907
|
+
export declare const auditAnchorReceiptSchema: z.ZodObject<{
|
|
908
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/anchor-receipt/v1.0.0">;
|
|
909
|
+
kind: z.ZodEnum<{
|
|
910
|
+
worm: "worm";
|
|
911
|
+
rfc3161: "rfc3161";
|
|
912
|
+
scitt: "scitt";
|
|
913
|
+
}>;
|
|
914
|
+
providerId: z.ZodString;
|
|
915
|
+
checkpointDigest: z.ZodString;
|
|
916
|
+
issuedAt: z.ZodNumber;
|
|
917
|
+
receiptData: z.ZodOptional<z.ZodString>;
|
|
918
|
+
}, z.core.$strict>;
|
|
919
|
+
export declare const auditMerkleInclusionProofSchema: z.ZodObject<{
|
|
920
|
+
leafIndex: z.ZodString;
|
|
921
|
+
treeSize: z.ZodString;
|
|
922
|
+
auditPath: z.ZodArray<z.ZodString>;
|
|
923
|
+
}, z.core.$strict>;
|
|
924
|
+
export declare const auditMerkleConsistencyProofSchema: z.ZodObject<{
|
|
925
|
+
oldTreeSize: z.ZodString;
|
|
926
|
+
newTreeSize: z.ZodString;
|
|
927
|
+
auditPath: z.ZodArray<z.ZodString>;
|
|
928
|
+
}, z.core.$strict>;
|
|
929
|
+
export declare const auditBundleInclusionProofSchema: z.ZodObject<{
|
|
930
|
+
ledgerId: z.ZodString;
|
|
931
|
+
ledgerEpochId: z.ZodString;
|
|
932
|
+
sequence: z.ZodString;
|
|
933
|
+
entryDigest: z.ZodString;
|
|
934
|
+
checkpointDigest: z.ZodString;
|
|
935
|
+
proof: z.ZodObject<{
|
|
936
|
+
leafIndex: z.ZodString;
|
|
937
|
+
treeSize: z.ZodString;
|
|
938
|
+
auditPath: z.ZodArray<z.ZodString>;
|
|
939
|
+
}, z.core.$strict>;
|
|
940
|
+
}, z.core.$strict>;
|
|
941
|
+
export declare const auditBundleConsistencyProofSchema: z.ZodObject<{
|
|
942
|
+
ledgerId: z.ZodString;
|
|
943
|
+
ledgerEpochId: z.ZodString;
|
|
944
|
+
oldCheckpointDigest: z.ZodString;
|
|
945
|
+
newCheckpointDigest: z.ZodString;
|
|
946
|
+
proof: z.ZodObject<{
|
|
947
|
+
oldTreeSize: z.ZodString;
|
|
948
|
+
newTreeSize: z.ZodString;
|
|
949
|
+
auditPath: z.ZodArray<z.ZodString>;
|
|
950
|
+
}, z.core.$strict>;
|
|
951
|
+
}, z.core.$strict>;
|
|
952
|
+
export declare const auditBundleManifestCoreSchema: z.ZodObject<{
|
|
953
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/bundle-manifest/v1.0.0">;
|
|
954
|
+
bundleId: z.ZodString;
|
|
955
|
+
formatVersion: z.ZodLiteral<"1.0.0">;
|
|
956
|
+
selections: z.ZodArray<z.ZodObject<{
|
|
957
|
+
ledgerId: z.ZodString;
|
|
958
|
+
ledgerEpochId: z.ZodString;
|
|
959
|
+
firstSequence: z.ZodString;
|
|
960
|
+
lastSequence: z.ZodString;
|
|
961
|
+
expectedHeadDigest: z.ZodString;
|
|
962
|
+
checkpointTreeSizes: z.ZodArray<z.ZodString>;
|
|
963
|
+
}, z.core.$strict>>;
|
|
964
|
+
exporter: z.ZodObject<{
|
|
965
|
+
did: z.ZodString;
|
|
966
|
+
kid: z.ZodString;
|
|
967
|
+
alg: z.ZodEnum<{
|
|
968
|
+
EdDSA: "EdDSA";
|
|
969
|
+
ES256: "ES256";
|
|
970
|
+
}>;
|
|
971
|
+
}, z.core.$strict>;
|
|
972
|
+
purpose: z.ZodString;
|
|
973
|
+
exportedAt: z.ZodNumber;
|
|
974
|
+
verificationPolicyDigest: z.ZodString;
|
|
975
|
+
inventory: z.ZodArray<z.ZodObject<{
|
|
976
|
+
path: z.ZodString;
|
|
977
|
+
mediaType: z.ZodString;
|
|
978
|
+
disposition: z.ZodEnum<{
|
|
979
|
+
included: "included";
|
|
980
|
+
redacted: "redacted";
|
|
981
|
+
disposed: "disposed";
|
|
982
|
+
unavailable: "unavailable";
|
|
983
|
+
policy_excluded: "policy_excluded";
|
|
984
|
+
}>;
|
|
985
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
986
|
+
size: z.ZodOptional<z.ZodString>;
|
|
987
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
988
|
+
}, z.core.$strict>>;
|
|
989
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-BUNDLE-JCS-SHA256-JWS-2026">;
|
|
990
|
+
}, z.core.$strict>;
|
|
991
|
+
export declare const auditReplayBundleSchema: z.ZodObject<{
|
|
992
|
+
manifest: z.ZodObject<{
|
|
993
|
+
core: z.ZodObject<{
|
|
994
|
+
schema: z.ZodLiteral<"https://schema.kya-os.org/v1/protocol/audit/bundle-manifest/v1.0.0">;
|
|
995
|
+
bundleId: z.ZodString;
|
|
996
|
+
formatVersion: z.ZodLiteral<"1.0.0">;
|
|
997
|
+
selections: z.ZodArray<z.ZodObject<{
|
|
998
|
+
ledgerId: z.ZodString;
|
|
999
|
+
ledgerEpochId: z.ZodString;
|
|
1000
|
+
firstSequence: z.ZodString;
|
|
1001
|
+
lastSequence: z.ZodString;
|
|
1002
|
+
expectedHeadDigest: z.ZodString;
|
|
1003
|
+
checkpointTreeSizes: z.ZodArray<z.ZodString>;
|
|
1004
|
+
}, z.core.$strict>>;
|
|
1005
|
+
exporter: z.ZodObject<{
|
|
1006
|
+
did: z.ZodString;
|
|
1007
|
+
kid: z.ZodString;
|
|
1008
|
+
alg: z.ZodEnum<{
|
|
1009
|
+
EdDSA: "EdDSA";
|
|
1010
|
+
ES256: "ES256";
|
|
1011
|
+
}>;
|
|
1012
|
+
}, z.core.$strict>;
|
|
1013
|
+
purpose: z.ZodString;
|
|
1014
|
+
exportedAt: z.ZodNumber;
|
|
1015
|
+
verificationPolicyDigest: z.ZodString;
|
|
1016
|
+
inventory: z.ZodArray<z.ZodObject<{
|
|
1017
|
+
path: z.ZodString;
|
|
1018
|
+
mediaType: z.ZodString;
|
|
1019
|
+
disposition: z.ZodEnum<{
|
|
1020
|
+
included: "included";
|
|
1021
|
+
redacted: "redacted";
|
|
1022
|
+
disposed: "disposed";
|
|
1023
|
+
unavailable: "unavailable";
|
|
1024
|
+
policy_excluded: "policy_excluded";
|
|
1025
|
+
}>;
|
|
1026
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
1027
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1028
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1029
|
+
}, z.core.$strict>>;
|
|
1030
|
+
integritySuite: z.ZodLiteral<"KYA-AUDIT-BUNDLE-JCS-SHA256-JWS-2026">;
|
|
1031
|
+
}, z.core.$strict>;
|
|
1032
|
+
manifestDigest: z.ZodString;
|
|
1033
|
+
jws: z.ZodString;
|
|
1034
|
+
}, z.core.$strict>;
|
|
1035
|
+
components: z.ZodArray<z.ZodObject<{
|
|
1036
|
+
path: z.ZodString;
|
|
1037
|
+
mediaType: z.ZodString;
|
|
1038
|
+
disposition: z.ZodEnum<{
|
|
1039
|
+
included: "included";
|
|
1040
|
+
redacted: "redacted";
|
|
1041
|
+
disposed: "disposed";
|
|
1042
|
+
unavailable: "unavailable";
|
|
1043
|
+
policy_excluded: "policy_excluded";
|
|
1044
|
+
}>;
|
|
1045
|
+
digest: z.ZodOptional<z.ZodString>;
|
|
1046
|
+
size: z.ZodOptional<z.ZodString>;
|
|
1047
|
+
reasonCode: z.ZodOptional<z.ZodString>;
|
|
1048
|
+
content: z.ZodOptional<z.ZodUnknown>;
|
|
1049
|
+
}, z.core.$strict>>;
|
|
1050
|
+
}, z.core.$strict>;
|
|
1051
|
+
export declare const auditVerificationPolicySchema: z.ZodObject<{
|
|
1052
|
+
policyId: z.ZodString;
|
|
1053
|
+
trustedLedgerEpochs: z.ZodArray<z.ZodObject<{
|
|
1054
|
+
ledgerId: z.ZodString;
|
|
1055
|
+
ledgerEpochId: z.ZodString;
|
|
1056
|
+
recorderKeys: z.ZodArray<z.ZodObject<{
|
|
1057
|
+
signer: z.ZodObject<{
|
|
1058
|
+
did: z.ZodString;
|
|
1059
|
+
kid: z.ZodString;
|
|
1060
|
+
alg: z.ZodEnum<{
|
|
1061
|
+
EdDSA: "EdDSA";
|
|
1062
|
+
ES256: "ES256";
|
|
1063
|
+
}>;
|
|
1064
|
+
}, z.core.$strict>;
|
|
1065
|
+
validFrom: z.ZodOptional<z.ZodNumber>;
|
|
1066
|
+
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
1067
|
+
validFromCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1068
|
+
validUntilCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1069
|
+
}, z.core.$strict>>;
|
|
1070
|
+
validFromCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1071
|
+
validUntilCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1072
|
+
}, z.core.$strict>>;
|
|
1073
|
+
trustedObservers: z.ZodArray<z.ZodObject<{
|
|
1074
|
+
signer: z.ZodObject<{
|
|
1075
|
+
did: z.ZodString;
|
|
1076
|
+
kid: z.ZodString;
|
|
1077
|
+
alg: z.ZodEnum<{
|
|
1078
|
+
EdDSA: "EdDSA";
|
|
1079
|
+
ES256: "ES256";
|
|
1080
|
+
}>;
|
|
1081
|
+
}, z.core.$strict>;
|
|
1082
|
+
validFrom: z.ZodOptional<z.ZodNumber>;
|
|
1083
|
+
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
1084
|
+
validFromCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1085
|
+
validUntilCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1087
|
+
trustedSupportingAnchors: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1088
|
+
kind: z.ZodEnum<{
|
|
1089
|
+
worm: "worm";
|
|
1090
|
+
rfc3161: "rfc3161";
|
|
1091
|
+
scitt: "scitt";
|
|
1092
|
+
}>;
|
|
1093
|
+
providerId: z.ZodString;
|
|
1094
|
+
validFrom: z.ZodOptional<z.ZodNumber>;
|
|
1095
|
+
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
1096
|
+
}, z.core.$strict>>>;
|
|
1097
|
+
authorizedExporters: z.ZodArray<z.ZodObject<{
|
|
1098
|
+
signerKeys: z.ZodArray<z.ZodObject<{
|
|
1099
|
+
signer: z.ZodObject<{
|
|
1100
|
+
did: z.ZodString;
|
|
1101
|
+
kid: z.ZodString;
|
|
1102
|
+
alg: z.ZodEnum<{
|
|
1103
|
+
EdDSA: "EdDSA";
|
|
1104
|
+
ES256: "ES256";
|
|
1105
|
+
}>;
|
|
1106
|
+
}, z.core.$strict>;
|
|
1107
|
+
validFrom: z.ZodOptional<z.ZodNumber>;
|
|
1108
|
+
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
1109
|
+
validFromCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1110
|
+
validUntilCheckpoint: z.ZodOptional<z.ZodString>;
|
|
1111
|
+
}, z.core.$strict>>;
|
|
1112
|
+
allowedLedgerIds: z.ZodArray<z.ZodString>;
|
|
1113
|
+
allowedPurposes: z.ZodArray<z.ZodString>;
|
|
1114
|
+
}, z.core.$strict>>;
|
|
1115
|
+
acceptedIntegritySuites: z.ZodArray<z.ZodString>;
|
|
1116
|
+
acceptedAlgorithms: z.ZodArray<z.ZodEnum<{
|
|
1117
|
+
EdDSA: "EdDSA";
|
|
1118
|
+
ES256: "ES256";
|
|
1119
|
+
}>>;
|
|
1120
|
+
keyRevocationMode: z.ZodEnum<{
|
|
1121
|
+
as_observed: "as_observed";
|
|
1122
|
+
current: "current";
|
|
1123
|
+
both: "both";
|
|
1124
|
+
}>;
|
|
1125
|
+
requiredCheckpointFreshnessMs: z.ZodOptional<z.ZodNumber>;
|
|
1126
|
+
requiredAuditProfile: z.ZodOptional<z.ZodEnum<{
|
|
1127
|
+
"AAP-0": "AAP-0";
|
|
1128
|
+
"AAP-1": "AAP-1";
|
|
1129
|
+
"AAP-2": "AAP-2";
|
|
1130
|
+
"AAP-3": "AAP-3";
|
|
1131
|
+
"AAP-4": "AAP-4";
|
|
1132
|
+
}>>;
|
|
1133
|
+
}, z.core.$strict>;
|
|
1134
|
+
export declare function parseAuditProducerEvent(input: unknown): AuditProducerEventCoreV1;
|
|
1135
|
+
export declare function parseAuditEntryCore(input: unknown): AuditEntryCoreV1;
|
|
1136
|
+
export declare function parseSignedAuditEntry(input: unknown): SignedAuditEntryV1;
|
|
1137
|
+
export declare function parseAuditRecorderReceiptCore(input: unknown): AuditRecorderReceiptCoreV1;
|
|
1138
|
+
export declare function parseAuditCheckpointCore(input: unknown): AuditCheckpointCoreV1;
|
|
1139
|
+
export declare function parseSignedAuditCheckpoint(input: unknown): SignedAuditCheckpointV1;
|
|
1140
|
+
export declare function parseAuditObservationReceipt(input: unknown): AuditObservationReceiptV1;
|
|
1141
|
+
export declare function parseAuditBundleManifestCore(input: unknown): AuditBundleManifestCoreV1;
|
|
1142
|
+
export declare function parseAuditReplayBundle(input: unknown): AuditReplayBundleV1;
|
|
1143
|
+
export declare function parseAuditVerificationPolicy(input: unknown): AuditVerificationPolicyV1;
|
|
1144
|
+
//# sourceMappingURL=schemas.d.ts.map
|