@hashgraphonline/standards-sdk 0.0.42 → 0.0.44

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.
@@ -1,32 +1,19 @@
1
1
  export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
2
- export interface LogMessage {
3
- level: LogLevel;
4
- message: string;
5
- timestamp: string;
6
- data?: any;
7
- module?: string;
8
- }
9
2
  export interface LoggerOptions {
10
3
  level?: LogLevel;
11
4
  module?: string;
12
- enableTimestamp?: boolean;
5
+ prettyPrint?: boolean;
13
6
  silent?: boolean;
14
7
  }
15
8
  export declare class Logger {
16
- private static instance;
17
- private level;
18
- private module;
19
- private enableTimestamp;
20
- private silent;
9
+ private static instances;
10
+ private logger;
11
+ private moduleContext;
21
12
  constructor(options?: LoggerOptions);
22
13
  static getInstance(options?: LoggerOptions): Logger;
23
14
  setLogLevel(level: LogLevel): void;
24
15
  setSilent(silent: boolean): void;
25
16
  setModule(module: string): void;
26
- private shouldLog;
27
- private formatMessage;
28
- private log;
29
- private formatOutputMessage;
30
17
  debug(message: string, data?: any): void;
31
18
  info(message: string, data?: any): void;
32
19
  warn(message: string, data?: any): void;
@@ -0,0 +1 @@
1
+ export declare const sleep: (ms: number) => Promise<unknown>;
@@ -1,9 +1,11 @@
1
- import { AccountResponse, HederaMirrorNode, TopicInfo } from '../services/mirror-node';
1
+ import { HederaMirrorNode } from '../services/mirror-node';
2
2
  import { Logger, LogLevel } from '../utils/logger';
3
3
  import { Registration } from './registrations';
4
+ import { AccountResponse, TopicInfo } from '../services/types';
4
5
  export interface HCS10Config {
5
6
  network: 'mainnet' | 'testnet';
6
7
  logLevel?: LogLevel;
8
+ prettyPrint?: boolean;
7
9
  }
8
10
  export interface HCSMessage {
9
11
  p: 'hcs-10';
@@ -3,12 +3,13 @@ import { HashinalsWalletConnectSDK } from '@hashgraphonline/hashinal-wc';
3
3
  import { Logger, LogLevel } from '../utils/logger';
4
4
  import { RetrievedInscriptionResult } from '@kiloscribe/inscription-sdk';
5
5
  import { HCS10BaseClient } from './base-client';
6
- import { AgentConfig, RegistrationProgressCallback, AgentCreationState } from './types.d';
6
+ import { AgentConfig, RegistrationProgressCallback, AgentCreationState, HandleConnectionRequestResponse, AgentRegistrationResult, StoreHCS11ProfileResponse, InscribePfpResponse, GetAccountAndSignerResponse } from './types.d';
7
7
  import { AgentBuilder } from './agent-builder';
8
8
  export type BrowserHCSClientConfig = {
9
9
  network: 'mainnet' | 'testnet';
10
10
  hwc: HashinalsWalletConnectSDK;
11
11
  logLevel?: LogLevel;
12
+ prettyPrint?: boolean;
12
13
  guardedRegistryTopicId?: string;
13
14
  guardedRegistryBaseUrl?: string;
14
15
  };