import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Params } from "./genesis_pb.js"; import { DWNMessageDescriptor } from "./state_pb.js"; /** * MsgUpdateParams is the Msg/UpdateParams request type. * * @generated from message dwn.v1.MsgUpdateParams */ export declare class MsgUpdateParams extends Message { /** * authority is the address of the governance account. * * @generated from field: string authority = 1; */ authority: string; /** * params defines the parameters to update. * * @generated from field: dwn.v1.Params params = 2; */ params?: Params; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgUpdateParams"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParams; static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParams; static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParams; static equals(a: MsgUpdateParams | PlainMessage | undefined, b: MsgUpdateParams | PlainMessage | undefined): boolean; } /** * MsgUpdateParamsResponse defines the response structure for executing a * MsgUpdateParams message. * * @generated from message dwn.v1.MsgUpdateParamsResponse */ export declare class MsgUpdateParamsResponse extends Message { constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgUpdateParamsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgUpdateParamsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgUpdateParamsResponse; static fromJsonString(jsonString: string, options?: Partial): MsgUpdateParamsResponse; static equals(a: MsgUpdateParamsResponse | PlainMessage | undefined, b: MsgUpdateParamsResponse | PlainMessage | undefined): boolean; } /** * MsgRecordsWrite creates or updates a record in the DWN * * @generated from message dwn.v1.MsgRecordsWrite */ export declare class MsgRecordsWrite extends Message { /** * Author of the record (DID or cosmos address) * * @generated from field: string author = 1; */ author: string; /** * Target DWN (DID) * * @generated from field: string target = 2; */ target: string; /** * Message descriptor * * @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3; */ descriptor?: DWNMessageDescriptor; /** * Authorization JWT/signature * * @generated from field: string authorization = 4; */ authorization: string; /** * Record data * * @generated from field: bytes data = 5; */ data: Uint8Array; /** * Optional protocol URI * * @generated from field: string protocol = 6; */ protocol: string; /** * Optional protocol path * * @generated from field: string protocol_path = 7; */ protocolPath: string; /** * Optional schema URI * * @generated from field: string schema = 8; */ schema: string; /** * Optional parent record ID * * @generated from field: string parent_id = 9; */ parentId: string; /** * Published flag * * @generated from field: bool published = 10; */ published: boolean; /** * Optional encryption details * * @generated from field: string encryption = 11; */ encryption: string; /** * Optional attestation * * @generated from field: string attestation = 12; */ attestation: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRecordsWrite"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecordsWrite; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecordsWrite; static fromJsonString(jsonString: string, options?: Partial): MsgRecordsWrite; static equals(a: MsgRecordsWrite | PlainMessage | undefined, b: MsgRecordsWrite | PlainMessage | undefined): boolean; } /** * MsgRecordsWriteResponse defines the response for RecordsWrite * * @generated from message dwn.v1.MsgRecordsWriteResponse */ export declare class MsgRecordsWriteResponse extends Message { /** * Record ID of the created/updated record * * @generated from field: string record_id = 1; */ recordId: string; /** * CID of the data * * @generated from field: string data_cid = 2; */ dataCid: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRecordsWriteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecordsWriteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecordsWriteResponse; static fromJsonString(jsonString: string, options?: Partial): MsgRecordsWriteResponse; static equals(a: MsgRecordsWriteResponse | PlainMessage | undefined, b: MsgRecordsWriteResponse | PlainMessage | undefined): boolean; } /** * MsgRecordsDelete deletes a record from the DWN * * @generated from message dwn.v1.MsgRecordsDelete */ export declare class MsgRecordsDelete extends Message { /** * Author requesting deletion (DID or cosmos address) * * @generated from field: string author = 1; */ author: string; /** * Target DWN (DID) * * @generated from field: string target = 2; */ target: string; /** * Record ID to delete * * @generated from field: string record_id = 3; */ recordId: string; /** * Message descriptor * * @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 4; */ descriptor?: DWNMessageDescriptor; /** * Authorization JWT/signature * * @generated from field: string authorization = 5; */ authorization: string; /** * Prune descendants flag * * @generated from field: bool prune = 6; */ prune: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRecordsDelete"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecordsDelete; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecordsDelete; static fromJsonString(jsonString: string, options?: Partial): MsgRecordsDelete; static equals(a: MsgRecordsDelete | PlainMessage | undefined, b: MsgRecordsDelete | PlainMessage | undefined): boolean; } /** * MsgRecordsDeleteResponse defines the response for RecordsDelete * * @generated from message dwn.v1.MsgRecordsDeleteResponse */ export declare class MsgRecordsDeleteResponse extends Message { /** * Success flag * * @generated from field: bool success = 1; */ success: boolean; /** * Number of records deleted (including pruned) * * @generated from field: int32 deleted_count = 2; */ deletedCount: number; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRecordsDeleteResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRecordsDeleteResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRecordsDeleteResponse; static fromJsonString(jsonString: string, options?: Partial): MsgRecordsDeleteResponse; static equals(a: MsgRecordsDeleteResponse | PlainMessage | undefined, b: MsgRecordsDeleteResponse | PlainMessage | undefined): boolean; } /** * MsgProtocolsConfigure configures a protocol in the DWN * * @generated from message dwn.v1.MsgProtocolsConfigure */ export declare class MsgProtocolsConfigure extends Message { /** * Author configuring the protocol (DID or cosmos address) * * @generated from field: string author = 1; */ author: string; /** * Target DWN (DID) * * @generated from field: string target = 2; */ target: string; /** * Message descriptor * * @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3; */ descriptor?: DWNMessageDescriptor; /** * Authorization JWT/signature * * @generated from field: string authorization = 4; */ authorization: string; /** * Protocol URI * * @generated from field: string protocol_uri = 5; */ protocolUri: string; /** * Protocol definition JSON * * @generated from field: bytes definition = 6; */ definition: Uint8Array; /** * Published flag * * @generated from field: bool published = 7; */ published: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgProtocolsConfigure"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgProtocolsConfigure; static fromJson(jsonValue: JsonValue, options?: Partial): MsgProtocolsConfigure; static fromJsonString(jsonString: string, options?: Partial): MsgProtocolsConfigure; static equals(a: MsgProtocolsConfigure | PlainMessage | undefined, b: MsgProtocolsConfigure | PlainMessage | undefined): boolean; } /** * MsgProtocolsConfigureResponse defines the response for ProtocolsConfigure * * @generated from message dwn.v1.MsgProtocolsConfigureResponse */ export declare class MsgProtocolsConfigureResponse extends Message { /** * Protocol URI that was configured * * @generated from field: string protocol_uri = 1; */ protocolUri: string; /** * Success flag * * @generated from field: bool success = 2; */ success: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgProtocolsConfigureResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgProtocolsConfigureResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgProtocolsConfigureResponse; static fromJsonString(jsonString: string, options?: Partial): MsgProtocolsConfigureResponse; static equals(a: MsgProtocolsConfigureResponse | PlainMessage | undefined, b: MsgProtocolsConfigureResponse | PlainMessage | undefined): boolean; } /** * MsgPermissionsGrant grants permissions in the DWN * * @generated from message dwn.v1.MsgPermissionsGrant */ export declare class MsgPermissionsGrant extends Message { /** * Grantor of the permission (DID or cosmos address) * * @generated from field: string grantor = 1; */ grantor: string; /** * Grantee receiving the permission (DID) * * @generated from field: string grantee = 2; */ grantee: string; /** * Target DWN (DID) * * @generated from field: string target = 3; */ target: string; /** * Message descriptor * * @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 4; */ descriptor?: DWNMessageDescriptor; /** * Authorization JWT/signature * * @generated from field: string authorization = 5; */ authorization: string; /** * Interface scope * * @generated from field: string interface_name = 6; */ interfaceName: string; /** * Method scope * * @generated from field: string method = 7; */ method: string; /** * Optional protocol scope * * @generated from field: string protocol = 8; */ protocol: string; /** * Optional record scope * * @generated from field: string record_id = 9; */ recordId: string; /** * Permission conditions JSON * * @generated from field: bytes conditions = 10; */ conditions: Uint8Array; /** * Expiration timestamp (Unix timestamp) * * @generated from field: int64 expires_at = 11; */ expiresAt: bigint; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgPermissionsGrant"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgPermissionsGrant; static fromJson(jsonValue: JsonValue, options?: Partial): MsgPermissionsGrant; static fromJsonString(jsonString: string, options?: Partial): MsgPermissionsGrant; static equals(a: MsgPermissionsGrant | PlainMessage | undefined, b: MsgPermissionsGrant | PlainMessage | undefined): boolean; } /** * MsgPermissionsGrantResponse defines the response for PermissionsGrant * * @generated from message dwn.v1.MsgPermissionsGrantResponse */ export declare class MsgPermissionsGrantResponse extends Message { /** * Permission ID of the created grant * * @generated from field: string permission_id = 1; */ permissionId: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgPermissionsGrantResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgPermissionsGrantResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgPermissionsGrantResponse; static fromJsonString(jsonString: string, options?: Partial): MsgPermissionsGrantResponse; static equals(a: MsgPermissionsGrantResponse | PlainMessage | undefined, b: MsgPermissionsGrantResponse | PlainMessage | undefined): boolean; } /** * MsgPermissionsRevoke revokes permissions in the DWN * * @generated from message dwn.v1.MsgPermissionsRevoke */ export declare class MsgPermissionsRevoke extends Message { /** * Grantor revoking the permission (DID or cosmos address) * * @generated from field: string grantor = 1; */ grantor: string; /** * Permission ID to revoke * * @generated from field: string permission_id = 2; */ permissionId: string; /** * Message descriptor * * @generated from field: dwn.v1.DWNMessageDescriptor descriptor = 3; */ descriptor?: DWNMessageDescriptor; /** * Authorization JWT/signature * * @generated from field: string authorization = 4; */ authorization: string; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgPermissionsRevoke"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgPermissionsRevoke; static fromJson(jsonValue: JsonValue, options?: Partial): MsgPermissionsRevoke; static fromJsonString(jsonString: string, options?: Partial): MsgPermissionsRevoke; static equals(a: MsgPermissionsRevoke | PlainMessage | undefined, b: MsgPermissionsRevoke | PlainMessage | undefined): boolean; } /** * MsgPermissionsRevokeResponse defines the response for PermissionsRevoke * * @generated from message dwn.v1.MsgPermissionsRevokeResponse */ export declare class MsgPermissionsRevokeResponse extends Message { /** * Success flag * * @generated from field: bool success = 1; */ success: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgPermissionsRevokeResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgPermissionsRevokeResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgPermissionsRevokeResponse; static fromJsonString(jsonString: string, options?: Partial): MsgPermissionsRevokeResponse; static equals(a: MsgPermissionsRevokeResponse | PlainMessage | undefined, b: MsgPermissionsRevokeResponse | PlainMessage | undefined): boolean; } /** * MsgRotateVaultKeys rotates encryption keys for existing vaults * * @generated from message dwn.v1.MsgRotateVaultKeys */ export declare class MsgRotateVaultKeys extends Message { /** * Authority performing the rotation (governance or validator) * * @generated from field: string authority = 1; */ authority: string; /** * Vault ID to rotate keys for (empty means all vaults) * * @generated from field: string vault_id = 2; */ vaultId: string; /** * Reason for rotation * * @generated from field: string reason = 3; */ reason: string; /** * Force rotation even if not due * * @generated from field: bool force = 4; */ force: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRotateVaultKeys"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRotateVaultKeys; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRotateVaultKeys; static fromJsonString(jsonString: string, options?: Partial): MsgRotateVaultKeys; static equals(a: MsgRotateVaultKeys | PlainMessage | undefined, b: MsgRotateVaultKeys | PlainMessage | undefined): boolean; } /** * MsgRotateVaultKeysResponse defines the response for RotateVaultKeys * * @generated from message dwn.v1.MsgRotateVaultKeysResponse */ export declare class MsgRotateVaultKeysResponse extends Message { /** * Number of vaults affected * * @generated from field: uint32 vaults_rotated = 1; */ vaultsRotated: number; /** * New key version after rotation * * @generated from field: uint64 new_key_version = 2; */ newKeyVersion: bigint; /** * Success flag * * @generated from field: bool success = 3; */ success: boolean; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "dwn.v1.MsgRotateVaultKeysResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): MsgRotateVaultKeysResponse; static fromJson(jsonValue: JsonValue, options?: Partial): MsgRotateVaultKeysResponse; static fromJsonString(jsonString: string, options?: Partial): MsgRotateVaultKeysResponse; static equals(a: MsgRotateVaultKeysResponse | PlainMessage | undefined, b: MsgRotateVaultKeysResponse | PlainMessage | undefined): boolean; } //# sourceMappingURL=tx_pb.d.ts.map