import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { CredentialProof, CredentialStatus, Service, VerificationMethod, VerificationMethodReference } from "./types_pb.js"; /** * Authentication is the authentication method to be used by the DID. * * @generated from message did.v1.Authentication */ export declare class Authentication extends Message { /** * The unique identifier of the assertion * * @generated from field: string did = 1; */ did: string; /** * The authentication of the DID * * @generated from field: string controller = 2; */ controller: string; /** * Origin of the authentication * * @generated from field: string subject = 3; */ subject: string; /** * string is the verification method * * @generated from field: string public_key_base64 = 4; */ publicKeyBase64: string; /** * AssertionKind is the assertion type * * @generated from field: string did_kind = 5; */ didKind: string; /** * CreationBlock is the block number of the creation of the authentication * * @generated from field: int64 creation_block = 6; */ creationBlock: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.Authentication"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Authentication; static fromJson(jsonValue: JsonValue, options?: Partial): Authentication; static fromJsonString(jsonString: string, options?: Partial): Authentication; static equals(a: Authentication | PlainMessage | undefined, b: Authentication | PlainMessage | undefined): boolean; } /** * Assertion is the assertion method to be used by the DID. * * @generated from message did.v1.Assertion */ export declare class Assertion extends Message { /** * The unique identifier of the assertion * * @generated from field: string did = 1; */ did: string; /** * The authentication of the DID * * @generated from field: string controller = 2; */ controller: string; /** * Origin of the authentication * * @generated from field: string subject = 3; */ subject: string; /** * string is the verification method * * @generated from field: string public_key_base64 = 4; */ publicKeyBase64: string; /** * DIDKind is the DID type * * @generated from field: string did_kind = 5; */ didKind: string; /** * CreationBlock is the block number of the creation of the authentication * * @generated from field: int64 creation_block = 6; */ creationBlock: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.Assertion"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Assertion; static fromJson(jsonValue: JsonValue, options?: Partial): Assertion; static fromJsonString(jsonString: string, options?: Partial): Assertion; static equals(a: Assertion | PlainMessage | undefined, b: Assertion | PlainMessage | undefined): boolean; } /** * Controller is the controller method to be used by the DID. * * @generated from message did.v1.Controller */ export declare class Controller extends Message { /** * The unique identifier of the assertion * * @generated from field: string did = 1; */ did: string; /** * The authentication of the DID * * @generated from field: string address = 2; */ address: string; /** * Origin of the authentication * * @generated from field: string subject = 3; */ subject: string; /** * string is the verification method * * @generated from field: string public_key_base64 = 4; */ publicKeyBase64: string; /** * DIDKind is the DID type * * @generated from field: string did_kind = 5; */ didKind: string; /** * CreationBlock is the block number of the creation of the authentication * * @generated from field: int64 creation_block = 6; */ creationBlock: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.Controller"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Controller; static fromJson(jsonValue: JsonValue, options?: Partial): Controller; static fromJsonString(jsonString: string, options?: Partial): Controller; static equals(a: Controller | PlainMessage | undefined, b: Controller | PlainMessage | undefined): boolean; } /** * Delegation is usually an external blockchain account that is used to sign * transactions on behalf of the DID * * @generated from message did.v1.Delegation */ export declare class Delegation extends Message { /** * The unique identifier of the assertion * * @generated from field: string did = 1; */ did: string; /** * The authentication of the DID * * @generated from field: string controller = 2; */ controller: string; /** * Origin of the authentication * * @generated from field: string subject = 3; */ subject: string; /** * string is the verification method * * @generated from field: string public_key_base64 = 4; */ publicKeyBase64: string; /** * DIDKind is the DID type * * @generated from field: string did_kind = 5; */ didKind: string; /** * CreationBlock is the block number of the creation of the authentication * * @generated from field: int64 creation_block = 6; */ creationBlock: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.Delegation"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Delegation; static fromJson(jsonValue: JsonValue, options?: Partial): Delegation; static fromJsonString(jsonString: string, options?: Partial): Delegation; static equals(a: Delegation | PlainMessage | undefined, b: Delegation | PlainMessage | undefined): boolean; } /** * Invocation is usually a smart contract that is used to sign transactions on * behalf of the DID * * @generated from message did.v1.Invocation */ export declare class Invocation extends Message { /** * The unique identifier of the assertion * * @generated from field: string did = 1; */ did: string; /** * The authentication of the DID * * @generated from field: string controller = 2; */ controller: string; /** * Origin of the authentication * * @generated from field: string subject = 3; */ subject: string; /** * string is the verification method * * @generated from field: string public_key_base64 = 4; */ publicKeyBase64: string; /** * DIDKind is the DID type * * @generated from field: string did_kind = 5; */ didKind: string; /** * CreationBlock is the block number of the creation of the authentication * * @generated from field: int64 creation_block = 6; */ creationBlock: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.Invocation"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): Invocation; static fromJson(jsonValue: JsonValue, options?: Partial): Invocation; static fromJsonString(jsonString: string, options?: Partial): Invocation; static equals(a: Invocation | PlainMessage | undefined, b: Invocation | PlainMessage | undefined): boolean; } /** * DIDDocument represents a W3C compliant DID Document * * @generated from message did.v1.DIDDocument */ export declare class DIDDocument extends Message { /** * id is the DID that is the subject of this DID Document (REQUIRED) * * @generated from field: string id = 1; */ id: string; /** * primary_controller identifies the primary entity that controls the DID * document (OPTIONAL) * * @generated from field: string primary_controller = 2; */ primaryController: string; /** * alsoKnownAs expresses other identifiers for the DID subject (OPTIONAL) * * @generated from field: repeated string also_known_as = 3; */ alsoKnownAs: string[]; /** * verificationMethod expresses verification methods (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethod verification_method = 4; */ verificationMethod: VerificationMethod[]; /** * authentication expresses authentication verification relationships * (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethodReference authentication = 5; */ authentication: VerificationMethodReference[]; /** * assertionMethod expresses assertion verification relationships (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethodReference assertion_method = 6; */ assertionMethod: VerificationMethodReference[]; /** * keyAgreement expresses key agreement verification relationships (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethodReference key_agreement = 7; */ keyAgreement: VerificationMethodReference[]; /** * capabilityInvocation expresses capability invocation verification * relationships (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethodReference capability_invocation = 8; */ capabilityInvocation: VerificationMethodReference[]; /** * capabilityDelegation expresses capability delegation verification * relationships (OPTIONAL) * * @generated from field: repeated did.v1.VerificationMethodReference capability_delegation = 9; */ capabilityDelegation: VerificationMethodReference[]; /** * service expresses service endpoints (OPTIONAL) * * @generated from field: repeated did.v1.Service service = 10; */ service: Service[]; /** * Block height when the DID document was created * * @generated from field: int64 created_at = 11; */ createdAt: bigint; /** * Block height when the DID document was last updated * * @generated from field: int64 updated_at = 12; */ updatedAt: bigint; /** * Whether the DID document is deactivated * * @generated from field: bool deactivated = 13; */ deactivated: boolean; /** * Version number for the DID document * * @generated from field: uint64 version = 14; */ version: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.DIDDocument"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DIDDocument; static fromJson(jsonValue: JsonValue, options?: Partial): DIDDocument; static fromJsonString(jsonString: string, options?: Partial): DIDDocument; static equals(a: DIDDocument | PlainMessage | undefined, b: DIDDocument | PlainMessage | undefined): boolean; } /** * DIDDocumentMetadata contains metadata about the DID document * * @generated from message did.v1.DIDDocumentMetadata */ export declare class DIDDocumentMetadata extends Message { /** * did is the DID this metadata belongs to * * @generated from field: string did = 1; */ did: string; /** * created is when the DID was created * * @generated from field: int64 created = 2; */ created: bigint; /** * updated is when the DID was last updated * * @generated from field: int64 updated = 3; */ updated: bigint; /** * deactivated is when the DID was deactivated (if applicable) * * @generated from field: int64 deactivated = 4; */ deactivated: bigint; /** * version_id is the version identifier * * @generated from field: string version_id = 5; */ versionId: string; /** * next_update is when the next update is scheduled (if applicable) * * @generated from field: int64 next_update = 6; */ nextUpdate: bigint; /** * next_version_id is the next version identifier (if applicable) * * @generated from field: string next_version_id = 7; */ nextVersionId: string; /** * equivalentId lists equivalent DIDs * * @generated from field: repeated string equivalent_id = 8; */ equivalentId: string[]; /** * canonicalId is the canonical DID * * @generated from field: string canonical_id = 9; */ canonicalId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.DIDDocumentMetadata"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DIDDocumentMetadata; static fromJson(jsonValue: JsonValue, options?: Partial): DIDDocumentMetadata; static fromJsonString(jsonString: string, options?: Partial): DIDDocumentMetadata; static equals(a: DIDDocumentMetadata | PlainMessage | undefined, b: DIDDocumentMetadata | PlainMessage | undefined): boolean; } /** * VerifiableCredential represents a W3C Verifiable Credential * * @generated from message did.v1.VerifiableCredential */ export declare class VerifiableCredential extends Message { /** * id is the credential identifier * * @generated from field: string id = 1; */ id: string; /** * context is the JSON-LD contexts * * @generated from field: repeated string context = 2; */ context: string[]; /** * credential_kinds is the credential types * * @generated from field: repeated string credential_kinds = 3; */ credentialKinds: string[]; /** * issuer is the DID of the credential issuer * * @generated from field: string issuer = 4; */ issuer: string; /** * issuanceDate is when the credential was issued * * @generated from field: string issuance_date = 5; */ issuanceDate: string; /** * expirationDate is when the credential expires (optional) * * @generated from field: string expiration_date = 6; */ expirationDate: string; /** * credentialSubject contains the claims about the subject as JSON * * @generated from field: bytes credential_subject = 7; */ credentialSubject: Uint8Array; /** * proof contains the cryptographic proof * * @generated from field: repeated did.v1.CredentialProof proof = 8; */ proof: CredentialProof[]; /** * credentialStatus contains information about credential revocation * (optional) * * @generated from field: did.v1.CredentialStatus credential_status = 9; */ credentialStatus?: CredentialStatus; /** * subject is the DID of the credential subject (for indexing) * * @generated from field: string subject = 10; */ subject: string; /** * Block height when issued * * @generated from field: int64 issued_at = 11; */ issuedAt: bigint; /** * Block height when expires (0 if no expiration) * * @generated from field: int64 expires_at = 12; */ expiresAt: bigint; /** * Whether the credential is revoked * * @generated from field: bool revoked = 13; */ revoked: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.VerifiableCredential"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): VerifiableCredential; static fromJson(jsonValue: JsonValue, options?: Partial): VerifiableCredential; static fromJsonString(jsonString: string, options?: Partial): VerifiableCredential; static equals(a: VerifiableCredential | PlainMessage | undefined, b: VerifiableCredential | PlainMessage | undefined): boolean; } /** * DIDController represents additional controllers for a DID document * * @generated from message did.v1.DIDController */ export declare class DIDController extends Message { /** * id is the auto-incrementing primary key * * @generated from field: uint64 id = 1; */ id: bigint; /** * did is the DID this controller belongs to * * @generated from field: string did = 2; */ did: string; /** * controller_did is the controller DID * * @generated from field: string controller_did = 3; */ controllerDid: string; /** * added_at is when this controller was added * * @generated from field: int64 added_at = 4; */ addedAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "did.v1.DIDController"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): DIDController; static fromJson(jsonValue: JsonValue, options?: Partial): DIDController; static fromJsonString(jsonString: string, options?: Partial): DIDController; static equals(a: DIDController | PlainMessage | undefined, b: DIDController | PlainMessage | undefined): boolean; } //# sourceMappingURL=state_pb.d.ts.map