import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, Timestamp } from "@bufbuild/protobuf"; /** * EventRecordWritten is emitted when a record is written to DWN * * @generated from message dwn.v1.EventRecordWritten */ export declare class EventRecordWritten extends Message { /** * Record ID * * @generated from field: string record_id = 1; */ recordId: string; /** * Target DID * * @generated from field: string target = 2; */ target: string; /** * Protocol URI * * @generated from field: string protocol = 3; */ protocol: string; /** * Schema URI * * @generated from field: string schema = 4; */ schema: string; /** * Data CID * * @generated from field: string data_cid = 5; */ dataCid: string; /** * Data size in bytes * * @generated from field: uint64 data_size = 6; */ dataSize: bigint; /** * Whether data is encrypted * * @generated from field: bool encrypted = 7; */ encrypted: boolean; /** * Block height * * @generated from field: uint64 block_height = 8; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventRecordWritten"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventRecordWritten; static fromJson(jsonValue: JsonValue, options?: Partial): EventRecordWritten; static fromJsonString(jsonString: string, options?: Partial): EventRecordWritten; static equals(a: EventRecordWritten | PlainMessage | undefined, b: EventRecordWritten | PlainMessage | undefined): boolean; } /** * EventRecordDeleted is emitted when a record is deleted from DWN * * @generated from message dwn.v1.EventRecordDeleted */ export declare class EventRecordDeleted extends Message { /** * Record ID * * @generated from field: string record_id = 1; */ recordId: string; /** * Target DID * * @generated from field: string target = 2; */ target: string; /** * Deleter address * * @generated from field: string deleter = 3; */ deleter: string; /** * Block height * * @generated from field: uint64 block_height = 4; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventRecordDeleted"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventRecordDeleted; static fromJson(jsonValue: JsonValue, options?: Partial): EventRecordDeleted; static fromJsonString(jsonString: string, options?: Partial): EventRecordDeleted; static equals(a: EventRecordDeleted | PlainMessage | undefined, b: EventRecordDeleted | PlainMessage | undefined): boolean; } /** * EventProtocolConfigured is emitted when a protocol is configured * * @generated from message dwn.v1.EventProtocolConfigured */ export declare class EventProtocolConfigured extends Message { /** * Target DID * * @generated from field: string target = 1; */ target: string; /** * Protocol URI * * @generated from field: string protocol_uri = 2; */ protocolUri: string; /** * Whether protocol is published * * @generated from field: bool published = 3; */ published: boolean; /** * Block height * * @generated from field: uint64 block_height = 4; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventProtocolConfigured"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventProtocolConfigured; static fromJson(jsonValue: JsonValue, options?: Partial): EventProtocolConfigured; static fromJsonString(jsonString: string, options?: Partial): EventProtocolConfigured; static equals(a: EventProtocolConfigured | PlainMessage | undefined, b: EventProtocolConfigured | PlainMessage | undefined): boolean; } /** * EventPermissionGranted is emitted when a permission is granted * * @generated from message dwn.v1.EventPermissionGranted */ export declare class EventPermissionGranted extends Message { /** * Permission ID * * @generated from field: string permission_id = 1; */ permissionId: string; /** * Grantor DID * * @generated from field: string grantor = 2; */ grantor: string; /** * Grantee DID * * @generated from field: string grantee = 3; */ grantee: string; /** * Interface name * * @generated from field: string interface_name = 4; */ interfaceName: string; /** * Method name * * @generated from field: string method = 5; */ method: string; /** * Expiration timestamp * * @generated from field: google.protobuf.Timestamp expires_at = 6; */ expiresAt?: Timestamp; /** * Block height * * @generated from field: uint64 block_height = 7; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventPermissionGranted"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventPermissionGranted; static fromJson(jsonValue: JsonValue, options?: Partial): EventPermissionGranted; static fromJsonString(jsonString: string, options?: Partial): EventPermissionGranted; static equals(a: EventPermissionGranted | PlainMessage | undefined, b: EventPermissionGranted | PlainMessage | undefined): boolean; } /** * EventPermissionRevoked is emitted when a permission is revoked * * @generated from message dwn.v1.EventPermissionRevoked */ export declare class EventPermissionRevoked extends Message { /** * Permission ID * * @generated from field: string permission_id = 1; */ permissionId: string; /** * Revoker DID * * @generated from field: string revoker = 2; */ revoker: string; /** * Block height * * @generated from field: uint64 block_height = 3; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventPermissionRevoked"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventPermissionRevoked; static fromJson(jsonValue: JsonValue, options?: Partial): EventPermissionRevoked; static fromJsonString(jsonString: string, options?: Partial): EventPermissionRevoked; static equals(a: EventPermissionRevoked | PlainMessage | undefined, b: EventPermissionRevoked | PlainMessage | undefined): boolean; } /** * EventVaultCreated is emitted when a vault is created * * @generated from message dwn.v1.EventVaultCreated */ export declare class EventVaultCreated extends Message { /** * Vault ID * * @generated from field: string vault_id = 1; */ vaultId: string; /** * Owner DID * * @generated from field: string owner = 2; */ owner: string; /** * Vault public key * * @generated from field: string public_key = 3; */ publicKey: string; /** * Block height * * @generated from field: uint64 block_height = 4; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventVaultCreated"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventVaultCreated; static fromJson(jsonValue: JsonValue, options?: Partial): EventVaultCreated; static fromJsonString(jsonString: string, options?: Partial): EventVaultCreated; static equals(a: EventVaultCreated | PlainMessage | undefined, b: EventVaultCreated | PlainMessage | undefined): boolean; } /** * EventVaultKeysRotated is emitted when vault keys are rotated * * @generated from message dwn.v1.EventVaultKeysRotated */ export declare class EventVaultKeysRotated extends Message { /** * Vault ID * * @generated from field: string vault_id = 1; */ vaultId: string; /** * Owner DID * * @generated from field: string owner = 2; */ owner: string; /** * New public key * * @generated from field: string new_public_key = 3; */ newPublicKey: string; /** * Rotation height * * @generated from field: uint64 rotation_height = 4; */ rotationHeight: bigint; /** * Block height * * @generated from field: uint64 block_height = 5; */ blockHeight: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventVaultKeysRotated"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventVaultKeysRotated; static fromJson(jsonValue: JsonValue, options?: Partial): EventVaultKeysRotated; static fromJsonString(jsonString: string, options?: Partial): EventVaultKeysRotated; static equals(a: EventVaultKeysRotated | PlainMessage | undefined, b: EventVaultKeysRotated | PlainMessage | undefined): boolean; } /** * EventKeyRotation is emitted when encryption keys are rotated * * @generated from message dwn.v1.EventKeyRotation */ export declare class EventKeyRotation extends Message { /** * Previous key version (0 if first rotation) * * @generated from field: uint64 old_key_version = 1; */ oldKeyVersion: bigint; /** * New key version * * @generated from field: uint64 new_key_version = 2; */ newKeyVersion: bigint; /** * Reason for rotation * * @generated from field: string reason = 3; */ reason: string; /** * Block height when rotation occurred * * @generated from field: uint64 block_height = 4; */ blockHeight: bigint; /** * Whether running in single node mode * * @generated from field: bool single_node_mode = 5; */ singleNodeMode: boolean; /** * Number of validators at time of rotation * * @generated from field: uint32 validator_count = 6; */ validatorCount: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.EventKeyRotation"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): EventKeyRotation; static fromJson(jsonValue: JsonValue, options?: Partial): EventKeyRotation; static fromJsonString(jsonString: string, options?: Partial): EventKeyRotation; static equals(a: EventKeyRotation | PlainMessage | undefined, b: EventKeyRotation | PlainMessage | undefined): boolean; } //# sourceMappingURL=events_pb.d.ts.map