All files index.js

100% Statements 40/40
100% Branches 1/1
100% Functions 0/0
100% Lines 40/40

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 418x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x 8x  
// Public entry of @shengzhiai/yugu-miniprogram-sdk. Every name exported here is declared in
// types/index.d.ts; test/unit/dist.test.mjs keeps the two lists equal.
export { YuguClient } from './client.js';
export { StreamSession, SessionState, AudioBufferPolicy } from './session.js';
export { YuguRecorder, RecorderState } from './recorder.js';
export {
  YuguError,
  NetworkException,
  RequestTimeoutException,
  AuthException,
  PermissionException,
  InvalidParameterException,
  NotFoundException,
  ConflictException,
  RateLimitException,
  QuotaExceededException,
  ServerException,
  AudioQualityException,
  IllegalSessionStateException,
  RequestCancelledException,
  ProtocolViolationException,
  ErrorCategory,
  WarningCode,
  YuguErrors,
  isRetryable,
  fromCode,
  fromWarningCode,
  fromHttpResponse,
} from './errors.js';
export { ERROR_TABLE, WARNING_TABLE, LOCAL_TABLE, HTTP_FALLBACK, RETRYABLE_HTTP, ErrorCodes } from './error-table.js';
export { LogLevel } from './logger.js';
export { AudioPrecheckMode, precheckAudio } from './precheck.js';
export {
  DEFAULT_RETRY_POLICY, DEFAULT_RECONNECT_POLICY, computeBackoffDelay, computeRetryDelay, parseRetryAfter,
} from './retry.js';
export { generateIdempotencyKey } from './idempotency.js';
export { signParams, buildSignPayload } from './signer.js';
export { parseEvalResult } from './result.js';
export { createAbortController } from './abort.js';
export { SDK_VERSION, USER_AGENT, CORE_TYPES, COMPAT_CORE_TYPES } from './constants.js';