import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { IBinaryWriter } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { IBinaryReader } from "@protobuf-ts/runtime"; import type { PartialMessage } from "@protobuf-ts/runtime"; import { MessageType } from "@protobuf-ts/runtime"; /** * * Acknowledgment data * * @generated from protobuf message pb.Ack */ export interface Ack { /** * user timestamp of request in UNIX milliseconds. * * @generated from protobuf field: uint64 timestamp = 1; */ timestamp: bigint; /** * node public key where gas was used * * @generated from protobuf field: bytes publicKey = 2; */ publicKey: Uint8Array; /** * confirmed used gas * * @generated from protobuf field: uint64 gas = 3; */ gas: bigint; /** * nonce for avoiding ack duplicates * * @generated from protobuf field: bytes nonce = 4; */ nonce: Uint8Array; /** * request id for log record * * @generated from protobuf field: string requestId = 5; */ requestId: string; /** * The CID of the piece. * * @generated from protobuf field: string cid = 6; */ cid: string; /** * session id * * @generated from protobuf field: bytes sessionId = 7; */ sessionId: Uint8Array; /** * signature of acknowledgment data * sign(CID(requestId) + timestamp + gas + nonce + sessionID) * * @generated from protobuf field: bytes signature = 8; */ signature: Uint8Array; /** * The name of the signature scheme (sr25519, ed25519). * Default and recommended value: "" or "sr25519". * * @generated from protobuf field: string scheme = 9; */ scheme: string; /** * The ID of the hashing algorithm as per multiformats/multihash. * Default and recommended value: 0 or 0xb220, meaning blake2b-256. * * @generated from protobuf field: uint64 multiHashType = 10; */ multiHashType: bigint; /** * list of chunk cIds, requested by client * * @generated from protobuf field: repeated string chunks = 11; */ chunks: string[]; } /** * @generated from protobuf message pb.AckRecord */ export interface AckRecord { /** * acknowledgment data * * @generated from protobuf field: pb.Ack ack = 1; */ ack?: Ack; /** * user public key * * @generated from protobuf field: bytes publicKey = 2; */ publicKey: Uint8Array; /** * timestamp when record was saved in UNIX nanoseconds * * @generated from protobuf field: uint64 timestamp = 3 [jstype = JS_STRING]; */ timestamp: string; } /** * * A ack records list * * @generated from protobuf message pb.AckRecordList */ export interface AckRecordList { /** * @generated from protobuf field: repeated pb.AckRecord ackRecords = 1; */ ackRecords: AckRecord[]; } declare class Ack$Type extends MessageType { constructor(); create(value?: PartialMessage): Ack; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Ack): Ack; internalBinaryWrite(message: Ack, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message pb.Ack */ export declare const Ack: Ack$Type; declare class AckRecord$Type extends MessageType { constructor(); create(value?: PartialMessage): AckRecord; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AckRecord): AckRecord; internalBinaryWrite(message: AckRecord, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message pb.AckRecord */ export declare const AckRecord: AckRecord$Type; declare class AckRecordList$Type extends MessageType { constructor(); create(value?: PartialMessage): AckRecordList; internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AckRecordList): AckRecordList; internalBinaryWrite(message: AckRecordList, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter; } /** * @generated MessageType for protobuf message pb.AckRecordList */ export declare const AckRecordList: AckRecordList$Type; export {}; //# sourceMappingURL=ack.d.ts.map