@real-life/trust-protocol 0.3.1 → 0.4.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/CHANGELOG.md +32 -0
- package/README.md +187 -78
- package/dist/ack.d.ts +84 -0
- package/dist/ack.d.ts.map +1 -0
- package/dist/ack.js +114 -0
- package/dist/ack.js.map +1 -0
- package/dist/adapters/vti-mediator.d.ts +154 -0
- package/dist/adapters/vti-mediator.d.ts.map +1 -0
- package/dist/adapters/vti-mediator.js +621 -0
- package/dist/adapters/vti-mediator.js.map +1 -0
- package/dist/anchor.d.ts +226 -0
- package/dist/anchor.d.ts.map +1 -0
- package/dist/anchor.js +347 -0
- package/dist/anchor.js.map +1 -0
- package/dist/{holder.d.ts → carrier-holder.d.ts} +1 -1
- package/dist/carrier-holder.d.ts.map +1 -0
- package/dist/{holder.js → carrier-holder.js} +5 -4
- package/dist/carrier-holder.js.map +1 -0
- package/dist/carrier-identity.js +4 -4
- package/dist/carrier-identity.js.map +1 -1
- package/dist/carrier.d.ts.map +1 -1
- package/dist/carrier.js +4 -3
- package/dist/carrier.js.map +1 -1
- package/dist/ceremony.d.ts +3 -2
- package/dist/ceremony.d.ts.map +1 -1
- package/dist/ceremony.js +16 -26
- package/dist/ceremony.js.map +1 -1
- package/dist/codec.d.ts +46 -0
- package/dist/codec.d.ts.map +1 -0
- package/dist/codec.js +410 -0
- package/dist/codec.js.map +1 -0
- package/dist/continuity.d.ts +67 -0
- package/dist/continuity.d.ts.map +1 -0
- package/dist/continuity.js +110 -0
- package/dist/continuity.js.map +1 -0
- package/dist/core.d.ts +4 -0
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js.map +1 -1
- package/dist/crypto.d.ts +23 -7
- package/dist/crypto.d.ts.map +1 -1
- package/dist/crypto.js +54 -20
- package/dist/crypto.js.map +1 -1
- package/dist/delivery.d.ts +31 -3
- package/dist/delivery.d.ts.map +1 -1
- package/dist/delivery.js +75 -28
- package/dist/delivery.js.map +1 -1
- package/dist/encounter/ceremony.d.ts +37 -0
- package/dist/encounter/ceremony.d.ts.map +1 -0
- package/dist/encounter/ceremony.js +662 -0
- package/dist/encounter/ceremony.js.map +1 -0
- package/dist/encounter.d.ts +91 -1
- package/dist/encounter.d.ts.map +1 -1
- package/dist/encounter.js +191 -12
- package/dist/encounter.js.map +1 -1
- package/dist/engine.d.ts +291 -0
- package/dist/engine.d.ts.map +1 -0
- package/dist/engine.js +1395 -0
- package/dist/engine.js.map +1 -0
- package/dist/entropy.d.ts +28 -0
- package/dist/entropy.d.ts.map +1 -0
- package/dist/entropy.js +96 -0
- package/dist/entropy.js.map +1 -0
- package/dist/events.d.ts +177 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +2 -0
- package/dist/events.js.map +1 -0
- package/dist/fixtures.d.ts +30 -0
- package/dist/fixtures.d.ts.map +1 -0
- package/dist/fixtures.js +155 -0
- package/dist/fixtures.js.map +1 -0
- package/dist/forge.d.ts +47 -0
- package/dist/forge.d.ts.map +1 -0
- package/dist/forge.js +20 -0
- package/dist/forge.js.map +1 -0
- package/dist/group-star.d.ts +251 -0
- package/dist/group-star.d.ts.map +1 -0
- package/dist/group-star.js +348 -0
- package/dist/group-star.js.map +1 -0
- package/dist/holder-api.d.ts +137 -0
- package/dist/holder-api.d.ts.map +1 -0
- package/dist/holder-api.js +132 -0
- package/dist/holder-api.js.map +1 -0
- package/dist/holder-state-v1.d.ts +801 -0
- package/dist/holder-state-v1.d.ts.map +1 -0
- package/dist/holder-state-v1.js +2 -0
- package/dist/holder-state-v1.js.map +1 -0
- package/dist/identity-state.d.ts +43 -0
- package/dist/identity-state.d.ts.map +1 -0
- package/dist/identity-state.js +345 -0
- package/dist/identity-state.js.map +1 -0
- package/dist/identity.d.ts +24 -2
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +70 -11
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +77 -29
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +36 -0
- package/dist/internal.d.ts.map +1 -0
- package/dist/internal.js +22 -0
- package/dist/internal.js.map +1 -0
- package/dist/introduction/holder.d.ts +18 -0
- package/dist/introduction/holder.d.ts.map +1 -0
- package/dist/introduction/holder.js +757 -0
- package/dist/introduction/holder.js.map +1 -0
- package/dist/introduction.d.ts +101 -0
- package/dist/introduction.d.ts.map +1 -0
- package/dist/introduction.js +132 -0
- package/dist/introduction.js.map +1 -0
- package/dist/invariants.d.ts +43 -0
- package/dist/invariants.d.ts.map +1 -0
- package/dist/invariants.js +883 -0
- package/dist/invariants.js.map +1 -0
- package/dist/keys-seed.d.ts +7 -0
- package/dist/keys-seed.d.ts.map +1 -0
- package/dist/keys-seed.js +133 -0
- package/dist/keys-seed.js.map +1 -0
- package/dist/log-memory.d.ts +12 -0
- package/dist/log-memory.d.ts.map +1 -0
- package/dist/log-memory.js +101 -0
- package/dist/log-memory.js.map +1 -0
- package/dist/membership/holder.d.ts +35 -0
- package/dist/membership/holder.d.ts.map +1 -0
- package/dist/membership/holder.js +852 -0
- package/dist/membership/holder.js.map +1 -0
- package/dist/membership.d.ts +92 -0
- package/dist/membership.d.ts.map +1 -0
- package/dist/membership.js +157 -0
- package/dist/membership.js.map +1 -0
- package/dist/ports.d.ts +237 -0
- package/dist/ports.d.ts.map +1 -0
- package/dist/ports.js +2 -0
- package/dist/ports.js.map +1 -0
- package/dist/profile.d.ts +56 -0
- package/dist/profile.d.ts.map +1 -0
- package/dist/profile.js +193 -0
- package/dist/profile.js.map +1 -0
- package/dist/prompts.d.ts +14 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +69 -0
- package/dist/prompts.js.map +1 -0
- package/dist/receive.d.ts +133 -0
- package/dist/receive.d.ts.map +1 -0
- package/dist/receive.js +298 -0
- package/dist/receive.js.map +1 -0
- package/dist/results.d.ts +158 -0
- package/dist/results.d.ts.map +1 -0
- package/dist/results.js +21 -0
- package/dist/results.js.map +1 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +42 -38
- package/dist/schemas.js.map +1 -1
- package/dist/sha256.d.ts +3 -0
- package/dist/sha256.d.ts.map +1 -0
- package/dist/sha256.js +69 -0
- package/dist/sha256.js.map +1 -0
- package/dist/star.d.ts +31 -0
- package/dist/star.d.ts.map +1 -0
- package/dist/star.js +56 -0
- package/dist/star.js.map +1 -0
- package/dist/state-builder.d.ts +42 -0
- package/dist/state-builder.d.ts.map +1 -0
- package/dist/state-builder.js +100 -0
- package/dist/state-builder.js.map +1 -0
- package/dist/state.d.ts +853 -0
- package/dist/state.d.ts.map +1 -0
- package/dist/state.js +36 -0
- package/dist/state.js.map +1 -0
- package/dist/store-contract.d.ts +11 -0
- package/dist/store-contract.d.ts.map +1 -0
- package/dist/store-contract.js +189 -0
- package/dist/store-contract.js.map +1 -0
- package/dist/store-memory.d.ts +8 -0
- package/dist/store-memory.d.ts.map +1 -0
- package/dist/store-memory.js +17 -0
- package/dist/store-memory.js.map +1 -0
- package/dist/testing.d.ts +22 -0
- package/dist/testing.d.ts.map +1 -0
- package/dist/testing.js +21 -0
- package/dist/testing.js.map +1 -0
- package/dist/trust/continuity.d.ts +71 -0
- package/dist/trust/continuity.d.ts.map +1 -0
- package/dist/trust/continuity.js +1216 -0
- package/dist/trust/continuity.js.map +1 -0
- package/dist/trust/duties.d.ts +67 -0
- package/dist/trust/duties.d.ts.map +1 -0
- package/dist/trust/duties.js +179 -0
- package/dist/trust/duties.js.map +1 -0
- package/dist/trust/entries.d.ts +139 -0
- package/dist/trust/entries.d.ts.map +1 -0
- package/dist/trust/entries.js +694 -0
- package/dist/trust/entries.js.map +1 -0
- package/dist/trust/group-star.d.ts +43 -0
- package/dist/trust/group-star.d.ts.map +1 -0
- package/dist/trust/group-star.js +188 -0
- package/dist/trust/group-star.js.map +1 -0
- package/dist/trust/mapping.d.ts +56 -0
- package/dist/trust/mapping.d.ts.map +1 -0
- package/dist/trust/mapping.js +584 -0
- package/dist/trust/mapping.js.map +1 -0
- package/dist/trust/profile.d.ts +25 -0
- package/dist/trust/profile.d.ts.map +1 -0
- package/dist/trust/profile.js +249 -0
- package/dist/trust/profile.js.map +1 -0
- package/dist/trust/star.d.ts +208 -0
- package/dist/trust/star.d.ts.map +1 -0
- package/dist/trust/star.js +588 -0
- package/dist/trust/star.js.map +1 -0
- package/dist/trust/state.d.ts +83 -0
- package/dist/trust/state.d.ts.map +1 -0
- package/dist/trust/state.js +154 -0
- package/dist/trust/state.js.map +1 -0
- package/dist/util-freeze.d.ts +3 -0
- package/dist/util-freeze.d.ts.map +1 -0
- package/dist/util-freeze.js +11 -0
- package/dist/util-freeze.js.map +1 -0
- package/dist/views.d.ts +147 -0
- package/dist/views.d.ts.map +1 -0
- package/dist/views.js +268 -0
- package/dist/views.js.map +1 -0
- package/dist/visibility.d.ts +5 -5
- package/dist/visibility.d.ts.map +1 -1
- package/dist/visibility.js +22 -28
- package/dist/visibility.js.map +1 -1
- package/dist/wire.d.ts +178 -84
- package/dist/wire.d.ts.map +1 -1
- package/dist/wire.js.map +1 -1
- package/package.json +58 -11
- package/schemas/holder-state-v1.schema.json +3880 -0
- package/dist/holder.d.ts.map +0 -1
- package/dist/holder.js.map +0 -1
- package/dist/probe/acks.d.ts +0 -27
- package/dist/probe/acks.d.ts.map +0 -1
- package/dist/probe/acks.js +0 -152
- package/dist/probe/acks.js.map +0 -1
- package/dist/probe/continuity.d.ts +0 -20
- package/dist/probe/continuity.d.ts.map +0 -1
- package/dist/probe/continuity.js +0 -805
- package/dist/probe/continuity.js.map +0 -1
- package/dist/probe/deps.d.ts +0 -61
- package/dist/probe/deps.d.ts.map +0 -1
- package/dist/probe/deps.js +0 -54
- package/dist/probe/deps.js.map +0 -1
- package/dist/probe/encounter.d.ts +0 -26
- package/dist/probe/encounter.d.ts.map +0 -1
- package/dist/probe/encounter.js +0 -938
- package/dist/probe/encounter.js.map +0 -1
- package/dist/probe/introduce.d.ts +0 -70
- package/dist/probe/introduce.d.ts.map +0 -1
- package/dist/probe/introduce.js +0 -295
- package/dist/probe/introduce.js.map +0 -1
- package/dist/probe/membership.d.ts +0 -90
- package/dist/probe/membership.d.ts.map +0 -1
- package/dist/probe/membership.js +0 -450
- package/dist/probe/membership.js.map +0 -1
- package/dist/probe/trust.d.ts +0 -156
- package/dist/probe/trust.d.ts.map +0 -1
- package/dist/probe/trust.js +0 -1233
- package/dist/probe/trust.js.map +0 -1
- package/dist/probe.d.ts +0 -7
- package/dist/probe.d.ts.map +0 -1
- package/dist/probe.js +0 -42
- package/dist/probe.js.map +0 -1
package/dist/wire.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"","sourcesContent":["// GENERATED by scripts/build-wire-types.mjs — DO NOT EDIT.\n// Source of truth: schemas/*.json. scripts/validate.mjs enforces freshness.\n//\n// These are the STRUCTURAL PROJECTIONS of the wire schemas: shape,\n// requiredness, literals, tuples, unions. Patterns, length bounds,\n// if/then/else, `not`, `contains`, `dependentRequired` and uniqueItems\n// are NOT expressible here and remain normative in the schemas alone —\n// satisfying a type is necessary for conformance, never sufficient.\n// Validate against SCHEMAS before treating any value as a wire artifact.\nimport type { Json } from './core.js'\n\n/** schemas/access-material.schema.json — RLTP Access key material (Access Layer 0.24 sections 7.1 and 9.5) */\nexport type AccessMaterial = ({\n v: \"rltp-access-material/0.24\" | \"rltp-access-keydist/0.24\"\n adapter: string\n epoch: number\n keys: { [k: string]: Json }\n})\n\n/** schemas/access-operation-envelope.schema.json — RLTP Access Operation Envelope (transcription of Access Layer draft 0.24 section 3.3) */\nexport type AccessOperationEnvelope = ({\n v: \"rltp-access/0.24\"\n op: string\n group: string\n epoch: number\n policyVersion: number\n prev: string[]\n body: { [k: string]: Json }\n crit?: string[]\n id: string\n author: string\n proof: ({\n mechanism: \"signature-set\" | \"encounter-presentation\" | \"composite\"\n signatures?: {\n signer: string\n sig: string\n }[]\n credentials?: { [k: string]: Json }[]\n })\n})\n\n/** schemas/access-registration.schema.json — RLTP Service Registration (artifact 0.26, Access Layer section 7.3) */\nexport type AccessRegistration = ({\n v: \"rltp-access-registration/0.26\"\n type: \"service-registration\"\n group: string\n genesisDigest: string\n identity: string\n service: string\n m: 1\n stalenessBound: string\n terminalRetention: string\n divergenceQuota: number\n sig: string\n attestationKey: string\n registrationGeneration: number\n previousRegistration: (null) | (string)\n authorization?: {\n signer: string\n sig: string\n }[]\n abandon?: {\n abandonedRoot: string\n abandonedTipsDigest: string\n }\n authorizationRoot: (null) | (string)\n})\n\n/** schemas/access-vouch.schema.json — DTG AdmissionVouch (vouch@2, wire 0.24 family) */\nexport type AccessVouch = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n validFrom: string\n credentialSubject: {\n id: string\n endorsement: {\n type: \"AdmissionVouch\"\n genesisDigest: string\n accept: string\n provenance: \"met\" | \"introduced\"\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/authorization-view.schema.json — RLTP Authorization View (Access Layer 0.24 section 7.3) */\nexport type AuthorizationView = ({\n v: \"rltp-access-view/0.24\"\n type: \"authorization-view\"\n group: string\n genesisDigest: string\n seq: number\n epoch: number\n identities: string[]\n m: (null) | (number)\n terminal: boolean\n prevView: (null) | (string) | (string[])\n predecessor?: string\n issuedAt: string\n validUntil: string\n sigs: {\n signer: string\n sig: string\n }[]\n})\n\n/** schemas/carrier-proof.schema.json — RLTP Carrier Registration Proof (rltp-carrier-proof/0.3, rltp-delivery@0.79) */\nexport type CarrierProof = ({\n v: \"rltp-carrier-proof/0.3\"\n type: \"carrier-registration-proof\"\n purpose: \"register\" | \"rebind\" | \"collect\" | \"conclude\"\n carrier: string\n principal: string\n rkid: string\n generation?: number\n principalChallenge: string\n addressChallenge?: string\n sig: string\n})\n\n/** schemas/contact-card-0.25.schema.json — RLTP Contact Card (rltp-encounter@0.29) */\nexport type ContactCard025 = {\n version: \"rltp-card/0.25\"\n anchor: string\n keyAgreement: string\n challenge?: {\n value: string\n issuedAt: string\n }\n sentTo?: string\n boundTo?: string\n name?: string\n deliveryHints?: string[]\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }\n}\n\n/** schemas/contact-card.schema.json — RLTP Contact Card (rltp-encounter@0.29) — mobile $id, carried by the unversioned resource */\nexport type ContactCard = {\n version: \"rltp-card/0.25\"\n anchor: string\n keyAgreement: string\n challenge?: {\n value: string\n issuedAt: string\n }\n sentTo?: string\n boundTo?: string\n name?: string\n deliveryHints?: string[]\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }\n}\n\n/** schemas/encounter-credential-0.25.schema.json — RLTP Encounter Credential (rltp-encounter@0.29) */\nexport type EncounterCredential025 = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n validFrom: string\n credentialSubject: {\n id: string\n format: \"rltp-encounter-credential/0.25\"\n ceremony: string\n challenge: string\n enactmentBinding: string\n channel?: string\n commitment?: {\n suite: string\n value: string\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/encounter-credential.schema.json — RLTP Encounter Credential (rltp-encounter@0.29) — mobile $id, carried by the unversioned resource */\nexport type EncounterCredential = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n validFrom: string\n credentialSubject: {\n id: string\n format: \"rltp-encounter-credential/0.25\"\n ceremony: string\n challenge: string\n enactmentBinding: string\n channel?: string\n commitment?: {\n suite: string\n value: string\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/member-mapping.schema.json — RLTP member-mapping@1 (rltp-access-member-mapping/0.24) */\nexport type MemberMapping = {\n body: {\n type: \"member-mapping@1\"\n member: string\n memberOp: string\n self: string\n to: string\n toOp: string\n card: {\n body: {\n type: \"self-card@1\"\n anchor: string\n keyAgreement: string\n }\n proof: {\n proofValue: string\n }\n }\n revision: string\n issuedAt: string\n }\n proof: {\n mac1: string\n mac2: string\n }\n}\n\n/** schemas/payload-access-operation.schema.json — Payload: access-operation/0.1 (rltp-membership@0.16, target Trust Tasks framework 0.4) */\nexport type PayloadAccessOperation = ({\n operation: (AccessOperationEnvelope)\n welcome: {\n sealed: SealedEnvelope\n }\n}) & ({\n operation?: {\n op: \"member.add\"\n body?: Json\n }\n}) & ({\n operation?: {\n proof?: {\n signatures?: Json\n credentials?: Json\n }\n }\n})\n\n/** schemas/payload-delivery-ack.schema.json — Payload: delivery-ack/0.1 (rltp-delivery@0.79, target Trust Tasks framework 0.4) */\nexport type PayloadDeliveryAck = {\n ref: string\n meaning: \"received\"\n}\n\n/** schemas/payload-encounter-bundle.schema.json — Payload: encounter-bundle/0.1 (rltp-delivery@0.79, target Trust Tasks framework 0.4) */\nexport type PayloadEncounterBundle = {\n card: ContactCard\n credential: EncounterCredential\n}\n\n/** schemas/payload-encounter-credential-delivery.schema.json — Payload: encounter-credential-delivery/0.1 (rltp-delivery@0.79, target Trust Tasks framework 0.4) */\nexport type PayloadEncounterCredentialDelivery = {\n credential: EncounterCredential\n}\n\n/** schemas/payload-key-delivery.schema.json — Payload: key-delivery/0.1 (rltp-access@0.24, target Trust Tasks framework 0.4) */\nexport type PayloadKeyDelivery = {\n keyDelivery: ({\n group: string\n genesisDigest: string\n epoch: number\n op: string\n kind: \"keydist\" | \"re-welcome\" | \"refresh\" | \"request\"\n sealed?: SealedEnvelope\n card?: ContactCard\n })\n}\n\n/** schemas/payload-membership-accept.schema.json — Payload: membership-accept/0.2 (rltp-membership@0.16, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipAccept = {\n accept: {\n group: string\n subject: string\n ref: string\n card: ContactCard\n candidacy: boolean\n }\n}\n\n/** schemas/payload-membership-evidence.schema.json — Payload: membership-evidence/0.1 (rltp-membership@0.16, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipEvidence = {\n evidence: {\n invite: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-invite/0.2\"\n payload?: PayloadMembershipInvite\n proof?: never\n })\n accept: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-accept/0.2\"\n payload?: PayloadMembershipAccept\n })\n }\n}\n\n/** schemas/payload-membership-invite.schema.json — Payload: membership-invite/0.2 (rltp-membership@0.16, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipInvite = {\n invite: {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n credentialSubject: {\n id: string\n group: string\n genesisDigest: string\n card: ContactCard\n name?: string\n note?: string\n }\n validFrom: string\n validUntil: string\n taskContext: string\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n }\n}\n\n/** schemas/payload-registry-declaration.schema.json — RLTP payload registry-declaration (rltp-delivery@0.79) */\nexport type PayloadRegistryDeclaration = {\n declaration: {\n role: string\n revision: string\n constants: { [k: string]: string }\n }\n}\n\n/** schemas/payload-removal-notice.schema.json — RLTP Removal Notice (Access Layer 0.24 section 10.2) */\nexport type PayloadRemovalNotice = {\n v: \"rltp-access-removal-notice/0.24\"\n type: \"removal-notice\"\n group: string\n genesisDigest: string\n op: string\n subject: string\n epoch: number\n author: string\n sig: string\n}\n\n/** schemas/rltp-delivery-document.schema.json — RLTP Delivery Document Profile (rltp-delivery@0.79) */\nexport type RltpDeliveryDocument = ({\n id: string\n type: string\n issuer: string\n recipient: string\n threadId: string\n ceremony?: { [k: string]: Json }\n issuedAt: string\n payload: { [k: string]: Json }\n proof?: ({\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }) | ({\n mac: string\n })\n})\n\n/** schemas/sealed-envelope.schema.json — RLTP Sealed Envelope (rltp-delivery@0.79) */\nexport type SealedEnvelope = {\n rkid: string\n epk: string\n nonce: string\n ciphertext: string\n}\n\n/** schemas/visibility-anchor-mapping.schema.json — RLTP anchor-mapping@2 (rltp-visibility@0.29) */\nexport type VisibilityAnchorMapping = {\n body: {\n type: \"anchor-mapping@2\"\n pair: string\n self: string\n to: string\n card: {\n body: {\n type: \"self-card@1\"\n anchor: string\n keyAgreement: string\n }\n proof: {\n proofValue: string\n }\n }\n revision: string\n issuedAt: string\n }\n proof: {\n mac1: string\n mac2: string\n }\n}\n\n/** schemas/visibility-continuity-mapping.schema.json — RLTP continuity-mapping@1 (rltp-visibility@0.29) */\nexport type VisibilityContinuityMapping = {\n body: {\n type: \"continuity-mapping@1\"\n prior: string\n next: string\n to: string\n revision: string\n issuedAt: string\n }\n proof: {\n mac1: string\n mac2: string\n }\n}\n\n/** schemas/visibility-continuity-probe.schema.json — RLTP continuity-probe@1 (rltp-visibility@0.29) */\nexport type VisibilityContinuityProbe = {\n body: {\n type: \"continuity-probe@1\"\n probe: string\n seq: string\n last: boolean\n blinded: string[]\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-grade-declaration.schema.json — RLTP grade-declaration@1 (rltp-visibility@0.29) */\nexport type VisibilityGradeDeclaration = {\n body: {\n type: \"grade-declaration@1\"\n subject: string\n holder: string\n grade: \"count\" | \"blinded\"\n revision: string\n issuedAt: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-introduction-ack.schema.json — RLTP introduction-ack@1 (rltp-visibility@0.29) */\nexport type VisibilityIntroductionAck = {\n body: {\n type: \"introduction-ack@1\"\n act: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-introduction-reply.schema.json — RLTP introduction-reply@1 (rltp-visibility@0.29) */\nexport type VisibilityIntroductionReply = {\n body: {\n type: \"introduction-reply@1\"\n act: string\n requestDigest: string\n requesterPair: string\n cardDigest: string\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-introduction-request.schema.json — RLTP introduction-request@1 (rltp-visibility@0.29) */\nexport type VisibilityIntroductionRequest = {\n body: {\n type: \"introduction-request@1\"\n act: string\n issuedAt: string\n target: string\n cardDigest: string\n profile: {\n displayName?: string\n note?: string\n }\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-introduction-voucher.schema.json — RLTP introduction-voucher@1 (rltp-visibility@0.29) */\nexport type VisibilityIntroductionVoucher = {\n body: {\n type: \"introduction-voucher@1\"\n act: string\n requesterPair: string\n targetPair: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-payload-introduction-ack.schema.json — RLTP payload introduction-ack (rltp-visibility@0.29) */\nexport type VisibilityPayloadIntroductionAck = {\n introduction: VisibilityIntroductionAck\n}\n\n/** schemas/visibility-payload-introduction-forward.schema.json — RLTP payload introduction-forward (rltp-visibility@0.29) — byte-identical to the request payload */\nexport type VisibilityPayloadIntroductionForward = {\n introduction: VisibilityIntroductionRequest\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-reply.schema.json — RLTP payload introduction-reply (rltp-visibility@0.29) */\nexport type VisibilityPayloadIntroductionReply = {\n introduction: VisibilityIntroductionReply\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-request.schema.json — RLTP payload introduction-request (rltp-visibility@0.29) */\nexport type VisibilityPayloadIntroductionRequest = {\n introduction: VisibilityIntroductionRequest\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-voucher.schema.json — RLTP payload introduction-voucher (rltp-visibility@0.29) */\nexport type VisibilityPayloadIntroductionVoucher = {\n voucher: VisibilityIntroductionVoucher\n}\n\n/** schemas/visibility-self-card.schema.json — RLTP self-card@1 (rltp-visibility@0.29) */\nexport type VisibilitySelfCard = {\n body: {\n type: \"self-card@1\"\n anchor: string\n keyAgreement: string\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-star.schema.json — RLTP star@1 (rltp-visibility@0.29) */\nexport type VisibilityStar = {\n body: {\n type: \"star@1\"\n salt: string\n seq: string\n last: boolean\n count: string\n blinded: string[]\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/welcome.schema.json — RLTP Welcome (rltp-welcome/0.1, rltp-membership@0.16) */\nexport type Welcome = {\n v: \"rltp-welcome/0.1\"\n group: string\n subject: string\n accept: string\n material: (AccessMaterial) & ({\n v?: \"rltp-access-material/0.24\"\n })\n}\n"]}
|
|
1
|
+
{"version":3,"file":"wire.js","sourceRoot":"","sources":["../src/wire.ts"],"names":[],"mappings":"","sourcesContent":["// GENERATED by scripts/build-wire-types.mjs — DO NOT EDIT.\n// Source of truth: schemas/*.json. scripts/validate.mjs enforces freshness.\n//\n// These are the STRUCTURAL PROJECTIONS of the wire schemas: shape,\n// requiredness, literals, tuples, unions. Patterns, length bounds,\n// if/then/else, `not`, `contains`, `dependentRequired` and uniqueItems\n// are NOT expressible here and remain normative in the schemas alone —\n// satisfying a type is necessary for conformance, never sufficient.\n// Validate against SCHEMAS before treating any value as a wire artifact.\nimport type { Json } from './core.js'\n\n/** schemas/access-material.schema.json — RLTP Access key material (Access Layer 0.57 sections 9.4, 9.4.1, 9.4.2) */\nexport type AccessMaterial = ({\n v: \"rltp-access-material/0.25\" | \"rltp-access-keydist/0.25\"\n adapter: \"linear/0.1\" | \"beekem/0.1\"\n epoch: number\n keyState?: string\n keys: { [k: string]: Json }\n})\n\n/** schemas/access-operation-envelope.schema.json — RLTP Access Operation Envelope (transcription of Access Layer 0.57 section 3.3, envelope rltp-access/0.25) */\nexport type AccessOperationEnvelope = ({\n v: \"rltp-access/0.25\"\n op: string\n group: string\n epoch: number\n policyVersion: number\n prev: string[]\n body: { [k: string]: Json }\n crit?: string[]\n id: string\n author: string\n proof: ({\n mechanism: \"signature-set\" | \"encounter-presentation\" | \"composite\"\n signatures?: {\n signer: string\n sig: string\n }[]\n credentials?: { [k: string]: Json }[]\n })\n})\n\n/** schemas/access-registration.schema.json — RLTP Service Registration (artifact 0.27, Access Layer section 7.3) */\nexport type AccessRegistration = ({\n v: \"rltp-access-registration/0.27\"\n type: \"service-registration\"\n group: string\n genesisDigest: string\n identity: string\n service: string\n m: 1\n class: \"blind\" | \"view\" | \"log\"\n stalenessBound: string\n terminalRetention: string\n divergenceQuota: number\n intakeBudget?: {\n operations: number\n bytes: number\n }\n sig: string\n attestationKey: string\n registrationGeneration: number\n previousRegistration: (null) | (string)\n authorization?: {\n signer: string\n sig: string\n }[]\n abandon?: {\n abandonedRoot: string\n abandonedTipsDigest: string\n }\n authorizationRoot: (null) | (string)\n})\n\n/** schemas/access-vouch.schema.json — DTG AdmissionVouch (vouch@2, Access Layer 0.57 section 5.3) */\nexport type AccessVouch = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n validFrom: string\n credentialSubject: {\n id: string\n endorsement: {\n type: \"AdmissionVouch\"\n genesisDigest: string\n accept: string\n provenance: \"met\" | \"introduced\"\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/authorization-view.schema.json — RLTP Authorization View (Access Layer 0.24 section 7.3) */\nexport type AuthorizationView = ({\n v: \"rltp-access-view/0.24\"\n type: \"authorization-view\"\n group: string\n genesisDigest: string\n seq: number\n epoch: number\n identities: string[]\n m: (null) | (number)\n terminal: boolean\n prevView: (null) | (string) | (string[])\n predecessor?: string\n issuedAt: string\n validUntil: string\n sigs: {\n signer: string\n sig: string\n }[]\n})\n\n/** schemas/carrier-proof.schema.json — RLTP Carrier Registration Proof (rltp-carrier-proof/0.3, rltp-delivery@0.81) */\nexport type CarrierProof = ({\n v: \"rltp-carrier-proof/0.3\"\n type: \"carrier-registration-proof\"\n purpose: \"register\" | \"rebind\" | \"collect\" | \"conclude\"\n carrier: string\n principal: string\n rkid: string\n generation?: number\n principalChallenge: string\n addressChallenge?: string\n sig: string\n})\n\n/** schemas/contact-card-0.25.schema.json — RLTP Contact Card (rltp-encounter@0.31) */\nexport type ContactCard025 = {\n version: \"rltp-card/0.25\"\n anchor: string\n keyAgreement: string\n challenge?: {\n value: string\n issuedAt: string\n }\n sentTo?: string\n boundTo?: string\n name?: string\n deliveryHints?: string[]\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }\n}\n\n/** schemas/contact-card.schema.json — RLTP Contact Card (rltp-encounter@0.31) — mobile $id, carried by the unversioned resource */\nexport type ContactCard = {\n version: \"rltp-card/0.25\"\n anchor: string\n keyAgreement: string\n challenge?: {\n value: string\n issuedAt: string\n }\n sentTo?: string\n boundTo?: string\n name?: string\n deliveryHints?: string[]\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }\n}\n\n/** schemas/encounter-credential-0.25.schema.json — RLTP Encounter Credential (rltp-encounter@0.30) */\nexport type EncounterCredential025 = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n validFrom: string\n credentialSubject: {\n id: string\n format: \"rltp-encounter-credential/0.25\"\n ceremony: string\n challenge: string\n enactmentBinding: string\n channel?: string\n commitment?: {\n suite: string\n value: string\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/encounter-credential-0.26.schema.json — RLTP Encounter Credential (rltp-encounter@0.31) */\nexport type EncounterCredential026 = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://registry.trustoverip.org/dtg/context/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n issuerScope: \"pairwise\"\n validFrom: string\n credentialSubject: {\n id: string\n format: \"rltp-encounter-credential/0.26\"\n ceremony: string\n challenge: string\n enactmentBinding: string\n channel?: string\n commitment?: {\n suite: string\n value: string\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://registry.trustoverip.org/dtg/context/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/encounter-credential.schema.json — RLTP Encounter Credential (rltp-encounter@0.31) — mobile $id, carried by the unversioned resource */\nexport type EncounterCredential = {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://registry.trustoverip.org/dtg/context/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n issuerScope: \"pairwise\"\n validFrom: string\n credentialSubject: {\n id: string\n format: \"rltp-encounter-credential/0.26\"\n ceremony: string\n challenge: string\n enactmentBinding: string\n channel?: string\n commitment?: {\n suite: string\n value: string\n }\n }\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://registry.trustoverip.org/dtg/context/v1\", \"https://real-life.org/rltp/v1\"]\n }\n}\n\n/** schemas/payload-access-operation.schema.json — Payload: access-operation/0.1 (rltp-membership@0.19, target Trust Tasks framework 0.4) */\nexport type PayloadAccessOperation = ({\n operation: (AccessOperationEnvelope)\n welcome: {\n sealed: SealedEnvelope\n }\n}) & ({\n operation?: {\n v: \"rltp-access/0.25\"\n }\n}) & ({\n operation?: {\n op: \"member.add\"\n body?: Json\n }\n}) & ({\n operation?: {\n proof?: {\n signatures?: Json\n credentials?: Json\n }\n }\n})\n\n/** schemas/payload-delivery-ack.schema.json — Payload: delivery-ack/0.1 (rltp-delivery@0.81, target Trust Tasks framework 0.4) */\nexport type PayloadDeliveryAck = {\n ref: string\n meaning: \"received\"\n}\n\n/** schemas/payload-encounter-bundle.schema.json — Payload: encounter-bundle/0.1 (rltp-delivery@0.81, target Trust Tasks framework 0.4) */\nexport type PayloadEncounterBundle = {\n card: ContactCard\n credential: EncounterCredential\n}\n\n/** schemas/payload-encounter-credential-delivery.schema.json — Payload: encounter-credential-delivery/0.1 (rltp-delivery@0.81, target Trust Tasks framework 0.4) */\nexport type PayloadEncounterCredentialDelivery = {\n credential: EncounterCredential\n}\n\n/** schemas/payload-key-delivery.schema.json — Payload: key-delivery/0.1 (rltp-access@0.57, target Trust Tasks framework 0.4) */\nexport type PayloadKeyDelivery = {\n keyDelivery: ({\n group: string\n genesisDigest: string\n subject: string\n epoch: number\n op?: string\n admission?: {\n subject: string\n acceptDigest: string\n }\n kind: \"keydist\" | \"re-welcome\" | \"refresh\" | \"material\" | \"request\"\n sealed?: SealedEnvelope\n card?: ({\n anchor: string\n device: string\n keyAgreement: string\n serviceIdentity: string\n proof: {\n signer: string\n sig: string\n }\n }) | (ContactCard)\n })\n}\n\n/** schemas/payload-membership-accept.schema.json — Payload: membership-accept/0.2 (rltp-membership@0.19, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipAccept = {\n accept: {\n group: string\n subject: string\n ref: string\n card: ContactCard\n candidacy: boolean\n }\n}\n\n/** schemas/payload-membership-evidence-0.1.schema.json — Payload: membership-evidence/0.1 (rltp-membership@0.19, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipEvidence01 = {\n evidence: {\n invite: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-invite/0.2\"\n payload?: PayloadMembershipInvite\n proof?: never\n })\n accept: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-accept/0.2\"\n payload?: PayloadMembershipAccept\n })\n }\n}\n\n/** schemas/payload-membership-evidence.schema.json — Payload: membership-evidence/0.2 (rltp-membership@0.19, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipEvidence = {\n evidence: {\n invite: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-invite/0.2\"\n payload?: PayloadMembershipInvite\n proof?: never\n })\n accept: (RltpDeliveryDocument) & ({\n type?: \"https://real-life.org/trust-tasks/membership-accept/0.2\"\n payload?: PayloadMembershipAccept\n })\n vouches?: AccessVouch[]\n }\n}\n\n/** schemas/payload-membership-invite.schema.json — Payload: membership-invite/0.2 (rltp-membership@0.19, target Trust Tasks framework 0.4) */\nexport type PayloadMembershipInvite = {\n invite: {\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n type: (Json[])\n issuer: string\n credentialSubject: {\n id: string\n group: string\n genesisDigest: string\n card: ContactCard\n name?: string\n note?: string\n }\n validFrom: string\n validUntil: string\n taskContext: string\n proof: {\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n \"@context\": [\"https://www.w3.org/ns/credentials/v2\", \"https://firstperson.network/credentials/dtg/v1\", \"https://real-life.org/rltp/v1\"]\n }\n }\n}\n\n/** schemas/payload-registry-declaration.schema.json — RLTP payload registry-declaration (rltp-delivery@0.81) */\nexport type PayloadRegistryDeclaration = {\n declaration: {\n role: string\n revision: string\n constants: { [k: string]: string }\n }\n}\n\n/** schemas/payload-removal-notice.schema.json — RLTP Removal Notice (Access Layer 0.57 section 10.2) */\nexport type PayloadRemovalNotice = {\n v: \"rltp-access-removal-notice/0.25\"\n type: \"removal-notice\"\n group: string\n genesisDigest: string\n op: string\n subject: string\n epoch: number\n author: string\n issuer: string\n sig: string\n}\n\n/** schemas/rltp-delivery-document.schema.json — RLTP Delivery Document Profile (rltp-delivery@0.81) */\nexport type RltpDeliveryDocument = ({\n id: string\n type: string\n issuer: string\n recipient: string\n threadId: string\n ceremony?: { [k: string]: Json }\n issuedAt: string\n payload: { [k: string]: Json }\n proof?: ({\n type: \"DataIntegrityProof\"\n cryptosuite: \"eddsa-jcs-2022\"\n created: string\n verificationMethod: string\n proofPurpose: \"assertionMethod\"\n proofValue: string\n }) | ({\n mac: string\n })\n})\n\n/** schemas/sealed-envelope.schema.json — RLTP Sealed Envelope (rltp-delivery@0.81) */\nexport type SealedEnvelope = {\n rkid: string\n epk: string\n nonce: string\n ciphertext: string\n}\n\n/** schemas/trust-profile.schema.json — RLTP profile@1 (rltp-trust@0.31) */\nexport type TrustProfile = {\n body: {\n type: \"profile@1\"\n revision: string\n name: string\n image?: string\n text?: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-anchor-mapping.schema.json — RLTP anchor-mapping@4 (rltp-trust@0.31) */\nexport type VisibilityAnchorMapping = {\n body: {\n type: \"anchor-mapping@4\"\n pair: string\n self: string\n to: string\n card: {\n body: {\n type: \"self-card@2\"\n anchor: string\n keyAgreement: string\n commit: string\n }\n proof: {\n proofValue: string\n }\n }\n lineage: {\n body: {\n type: \"anchor-rotation@2\"\n prev: string\n next: string\n commit: string\n }\n proof: {\n proofValue: string\n successorProofValue: string\n }\n }[]\n revision: string\n issuedAt: string\n }\n proof: {\n mac1: string\n mac2: string\n }\n}\n\n/** schemas/visibility-anchor-rotation.schema.json — RLTP anchor-rotation@2 (rltp-trust@0.31) */\nexport type VisibilityAnchorRotation = {\n body: {\n type: \"anchor-rotation@2\"\n prev: string\n next: string\n commit: string\n }\n proof: {\n proofValue: string\n successorProofValue: string\n }\n}\n\n/** schemas/visibility-continuity-mapping.schema.json — RLTP continuity-mapping@1 (rltp-trust@0.31) */\nexport type VisibilityContinuityMapping = {\n body: {\n type: \"continuity-mapping@1\"\n prior: string\n next: string\n to: string\n revision: string\n issuedAt: string\n }\n proof: {\n mac1: string\n mac2: string\n }\n}\n\n/** schemas/visibility-continuity-probe.schema.json — RLTP continuity-probe@1 (rltp-trust@0.31) */\nexport type VisibilityContinuityProbe = {\n body: {\n type: \"continuity-probe@1\"\n probe: string\n seq: string\n last: boolean\n blinded: string[]\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-group-pair.schema.json — RLTP group-pair@1 (rltp-trust@0.31) */\nexport type VisibilityGroupPair = {\n type: \"group-pair@1\"\n group: string\n member: string\n memberOp: string\n to: string\n salt: string\n proof: string\n}\n\n/** schemas/visibility-group-star.schema.json — RLTP group-star@1 (rltp-trust@0.31) */\nexport type VisibilityGroupStar = {\n body: {\n type: \"group-star@1\"\n salt: string\n seq: string\n last: boolean\n groups: {\n d: string\n c: string\n }[]\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-introduction-ack.schema.json — RLTP introduction-ack@1 (rltp-trust@0.31) */\nexport type VisibilityIntroductionAck = {\n body: {\n type: \"introduction-ack@1\"\n act: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-introduction-reply.schema.json — RLTP introduction-reply@1 (rltp-trust@0.31) */\nexport type VisibilityIntroductionReply = {\n body: {\n type: \"introduction-reply@1\"\n act: string\n requestDigest: string\n requesterPair: string\n cardDigest: string\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-introduction-request.schema.json — RLTP introduction-request@1 (rltp-trust@0.31) */\nexport type VisibilityIntroductionRequest = {\n body: {\n type: \"introduction-request@1\"\n act: string\n issuedAt: string\n target: string\n cardDigest: string\n profile: {\n displayName?: string\n note?: string\n }\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-introduction-voucher.schema.json — RLTP introduction-voucher@1 (rltp-trust@0.31) */\nexport type VisibilityIntroductionVoucher = {\n body: {\n type: \"introduction-voucher@1\"\n act: string\n requesterPair: string\n targetPair: string\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/visibility-payload-introduction-ack.schema.json — RLTP payload introduction-ack (rltp-trust@0.31) */\nexport type VisibilityPayloadIntroductionAck = {\n introduction: VisibilityIntroductionAck\n}\n\n/** schemas/visibility-payload-introduction-forward.schema.json — RLTP payload introduction-forward (rltp-trust@0.31) — byte-identical to the request payload */\nexport type VisibilityPayloadIntroductionForward = {\n introduction: VisibilityIntroductionRequest\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-reply.schema.json — RLTP payload introduction-reply (rltp-trust@0.31) */\nexport type VisibilityPayloadIntroductionReply = {\n introduction: VisibilityIntroductionReply\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-request.schema.json — RLTP payload introduction-request (rltp-trust@0.31) */\nexport type VisibilityPayloadIntroductionRequest = {\n introduction: VisibilityIntroductionRequest\n card: ContactCard025\n}\n\n/** schemas/visibility-payload-introduction-voucher.schema.json — RLTP payload introduction-voucher (rltp-trust@0.31) */\nexport type VisibilityPayloadIntroductionVoucher = {\n voucher: VisibilityIntroductionVoucher\n}\n\n/** schemas/visibility-self-card.schema.json — RLTP self-card@2 (rltp-trust@0.31) */\nexport type VisibilitySelfCard = {\n body: {\n type: \"self-card@2\"\n anchor: string\n keyAgreement: string\n commit: string\n }\n proof: {\n proofValue: string\n }\n}\n\n/** schemas/visibility-star.schema.json — RLTP star@2 (rltp-trust@0.31) */\nexport type VisibilityStar = {\n body: {\n type: \"star@2\"\n salt: string\n seq: string\n last: boolean\n blinded: string[]\n }\n proof: {\n mac: string\n }\n}\n\n/** schemas/welcome.schema.json — RLTP Welcome (rltp-welcome/0.1, rltp-membership@0.19) */\nexport type Welcome = {\n v: \"rltp-welcome/0.1\"\n group: string\n subject: string\n accept: string\n material: (AccessMaterial) & ({\n v?: \"rltp-access-material/0.25\"\n })\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@real-life/trust-protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "The Real Life Trust Protocol (RLTP) \u2014 the executable form of the specification: encounters, introductions, trust disclosure, groups, continuity, and the delivery channel. Zero dependencies, WebCrypto only.",
|
|
5
5
|
"license": "CC-BY-4.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"files": [
|
|
9
9
|
"dist/index.*",
|
|
10
|
-
"dist/probe.*",
|
|
11
|
-
"dist/probe/",
|
|
12
10
|
"dist/visibility.*",
|
|
13
11
|
"dist/ceremony.*",
|
|
14
12
|
"dist/core.*",
|
|
@@ -16,27 +14,75 @@
|
|
|
16
14
|
"dist/identity.*",
|
|
17
15
|
"dist/encounter.*",
|
|
18
16
|
"dist/delivery.*",
|
|
17
|
+
"dist/anchor.*",
|
|
18
|
+
"dist/star.*",
|
|
19
|
+
"dist/continuity.*",
|
|
20
|
+
"dist/sha256.*",
|
|
21
|
+
"dist/group-star.*",
|
|
22
|
+
"dist/ack.*",
|
|
23
|
+
"dist/receive.*",
|
|
19
24
|
"dist/carrier.*",
|
|
20
25
|
"dist/carrier-identity.*",
|
|
21
|
-
"dist/holder.*",
|
|
26
|
+
"dist/carrier-holder.*",
|
|
22
27
|
"dist/wire.*",
|
|
23
28
|
"dist/schemas.*",
|
|
24
29
|
"dist/unicode15.*",
|
|
25
|
-
"
|
|
30
|
+
"dist/state.*",
|
|
31
|
+
"dist/codec.*",
|
|
32
|
+
"dist/ports.*",
|
|
33
|
+
"dist/results.*",
|
|
34
|
+
"dist/events.*",
|
|
35
|
+
"dist/entropy.*",
|
|
36
|
+
"dist/store-memory.*",
|
|
37
|
+
"dist/log-memory.*",
|
|
38
|
+
"dist/identity-state.*",
|
|
39
|
+
"dist/profile.*",
|
|
40
|
+
"dist/store-contract.*",
|
|
41
|
+
"dist/testing.*",
|
|
42
|
+
"dist/state-builder.*",
|
|
43
|
+
"dist/keys-seed.*",
|
|
44
|
+
"dist/engine.*",
|
|
45
|
+
"dist/holder-api.*",
|
|
46
|
+
"dist/views.*",
|
|
47
|
+
"dist/invariants.*",
|
|
48
|
+
"dist/trust/",
|
|
49
|
+
"dist/encounter/",
|
|
50
|
+
"dist/membership.*",
|
|
51
|
+
"dist/membership/",
|
|
52
|
+
"dist/introduction.*",
|
|
53
|
+
"dist/introduction/",
|
|
54
|
+
"dist/prompts.*",
|
|
55
|
+
"dist/fixtures.*",
|
|
56
|
+
"dist/internal.*",
|
|
57
|
+
"dist/util-freeze.*",
|
|
58
|
+
"dist/forge.*",
|
|
59
|
+
"dist/holder-state-v1.*",
|
|
60
|
+
"dist/adapters/",
|
|
61
|
+
"schemas/holder-state-v1.schema.json",
|
|
62
|
+
"README.md",
|
|
63
|
+
"CHANGELOG.md"
|
|
26
64
|
],
|
|
27
65
|
"exports": {
|
|
28
66
|
".": {
|
|
29
67
|
"types": "./dist/index.d.ts",
|
|
30
68
|
"default": "./dist/index.js"
|
|
31
69
|
},
|
|
32
|
-
"./
|
|
33
|
-
"types": "./dist/
|
|
34
|
-
"default": "./dist/
|
|
70
|
+
"./testing": {
|
|
71
|
+
"types": "./dist/testing.d.ts",
|
|
72
|
+
"default": "./dist/testing.js"
|
|
73
|
+
},
|
|
74
|
+
"./internal": {
|
|
75
|
+
"types": "./dist/internal.d.ts",
|
|
76
|
+
"default": "./dist/internal.js"
|
|
77
|
+
},
|
|
78
|
+
"./adapters/vti-mediator": {
|
|
79
|
+
"types": "./dist/adapters/vti-mediator.d.ts",
|
|
80
|
+
"default": "./dist/adapters/vti-mediator.js"
|
|
35
81
|
}
|
|
36
82
|
},
|
|
37
83
|
"scripts": {
|
|
38
84
|
"build": "tsc -p tsconfig.json",
|
|
39
|
-
"test": "node --test test/vectors.test.mjs test/vectors2.test.mjs test/vectors3.test.mjs test/vectors4.test.mjs test/
|
|
85
|
+
"test": "node --test test/vectors.test.mjs test/vectors2.test.mjs test/vectors3.test.mjs test/vectors4.test.mjs test/carrier.test.mjs test/loopback.test.mjs test/adapter-vti-mediator.test.mjs test/anchor.test.mjs test/codec.test.mjs test/codec-fixture.test.mjs test/holder-state-schema.test.mjs test/entropy.test.mjs test/entropy-lint.test.mjs test/store.test.mjs test/keys-seed.test.mjs test/engine.test.mjs test/views.test.mjs test/prompts.test.mjs test/receive.test.mjs test/duties.test.mjs test/retention.test.mjs test/crypto-lazy.test.mjs test/trust-mapping.test.mjs test/trust-admission.test.mjs test/trust-classes.test.mjs test/trust-star.test.mjs test/trust-group-star.test.mjs test/trust-continuity.test.mjs test/trust-entries.test.mjs test/trust-ported.test.mjs test/trust-duties.test.mjs test/invariants.test.mjs test/invariants-generator.test.mjs test/invariants-coverage.test.mjs test/identity.test.mjs test/profile.test.mjs test/sha256.test.mjs test/encounter-holder.test.mjs test/encounter-ported.test.mjs test/membership-holder.test.mjs test/introduction-holder.test.mjs",
|
|
40
86
|
"prepack": "npm run build && npm test"
|
|
41
87
|
},
|
|
42
88
|
"keywords": [
|
|
@@ -49,9 +95,10 @@
|
|
|
49
95
|
],
|
|
50
96
|
"repository": {
|
|
51
97
|
"type": "git",
|
|
52
|
-
"url": "https://github.com/real-life-org/
|
|
98
|
+
"url": "https://github.com/real-life-org/trust-protocol",
|
|
99
|
+
"directory": "lib"
|
|
53
100
|
},
|
|
54
|
-
"homepage": "https://
|
|
101
|
+
"homepage": "https://trust-protocol.real-life.org",
|
|
55
102
|
"engines": {
|
|
56
103
|
"node": ">=20"
|
|
57
104
|
},
|