UNPKG

semnet-snap-protocol

Version:

TypeScript reference implementation of the SNAP Protocol v1.1 - Agent Internet Edition

26 lines 964 B
/** * @fileoverview SNAP Protocol TypeScript Reference Implementation * @version 1.0.0 * @license MIT */ export * from './types.js'; export * from './identity.js'; export * from './message.js'; export * from './task.js'; export { generateAgentIdentity, AgentIdentity, generateMessageId, generateContextId, validateAgentId, signMessage, verifySignature, hashContent } from './identity.js'; export { MessageBuilder, MessageUtils, createMessage } from './message.js'; export declare const SNAP_VERSION: "1.0"; export declare const PROTOCOL_PREFIX: "snap:agent:"; /** * Utility function to check if an object looks like a SNAP message */ export declare function isSNAPMessage(obj: any): boolean; /** * Utility function to get the protocol version */ export declare function getProtocolVersion(): string; /** * Utility function to create an agent ID from UUID */ export declare function createAgentId(uuid: string): string; //# sourceMappingURL=index.d.ts.map