@wovin/base-agent 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ import { type AppAgent } from '@wovin/core/pubsub';
2
+ import { EdDSASigner } from 'iso-signatures/signers/eddsa.js';
3
+ declare abstract class BaseAgentFields {
4
+ app: string;
5
+ username: string;
6
+ devicename: string;
7
+ signer: EdDSASigner;
8
+ }
9
+ export declare class BaseAgent extends BaseAgentFields implements AppAgent {
10
+ constructor(options: BaseAgentFields);
11
+ get did(): `did:${string}:${string}`;
12
+ sign(data: Uint8Array): Promise<Uint8Array>;
13
+ get ag(): string;
14
+ get shortDID(): string;
15
+ get agentString(): string;
16
+ }
17
+ export {};
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsD,KAAK,QAAQ,EAAkB,MAAM,oBAAoB,CAAA;AACtH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAG7D,uBAAe,eAAe;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,QAAQ,EAAE,MAAM,CAAA;IAChB,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,WAAW,CAAA;CACnB;AAED,qBAAa,SAAU,SAAQ,eAAgB,YAAW,QAAQ;gBACrD,OAAO,EAAE,eAAe;IAKpC,IAAI,GAAG,8BAEN;IACK,IAAI,CAAC,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IAGjD,IAAI,EAAE,WAEL;IACD,IAAI,QAAQ,WAEX;IACD,IAAI,WAAW,WAEd;CACD"}