@ikonai/sdk 1.0.37 → 1.0.38

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.
@@ -7,6 +7,8 @@ import { ProxyMode } from '../client/endpoint-selector';
7
7
  export interface AuthResult {
8
8
  authResponse: AuthResponse;
9
9
  usedProxyUrl?: boolean;
10
+ backendUrl?: string;
11
+ authToken?: string;
10
12
  }
11
13
  /**
12
14
  * Common authentication logic - fetch the connect URL and decode the AuthResponse.
package/errors/index.d.ts CHANGED
@@ -55,3 +55,11 @@ export declare class SpaceNotFoundError extends AuthenticationError {
55
55
  export declare class NoChannelsError extends AuthenticationError {
56
56
  constructor();
57
57
  }
58
+ /**
59
+ * Error thrown when the server denies access (HTTP 403).
60
+ * For example, when a domain allowlist blocks the user's email domain.
61
+ */
62
+ export declare class AccessDeniedError extends AuthenticationError {
63
+ readonly reason: string;
64
+ constructor(message: string, reason: string);
65
+ }
package/index.d.ts CHANGED
@@ -5,7 +5,7 @@ export { isConnecting, isConnected, isOffline, isError } from './client/connecti
5
5
  export { ChannelManager, type ChannelManagerConfig, type ChannelManagerState } from './channel/channel-manager';
6
6
  export { Channel, type ChannelConfig, type ChannelState } from './channel/channel';
7
7
  export { EndpointSelector, type ProxyMode } from './client/endpoint-selector';
8
- export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError } from './errors';
8
+ export { ConnectionError, AuthenticationError, TransportError, KeepaliveTimeoutError, MaxRetriesExceededError, ProvisioningTimeoutError, ChannelNotFoundError, SpaceNotFoundError, NoChannelsError, AccessDeniedError } from './errors';
9
9
  export { Opcode, EntrypointType, UserType, ClientType, ContextType } from '../../../shared/protocol/src/index.ts';
10
10
  export type { ClientReady, GlobalState, ProtocolMessage, ProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';
11
11
  export { teleportReadOpcode as readOpcode, teleportReadOpcodeGroup as readOpcodeGroup, asProtocolMessage, readProtocolMessageHeaders } from '../../../shared/protocol/src/index.ts';
@@ -17,6 +17,7 @@ export { getLangParam, getProxyParam, getWebSocketParam, getWebTransportParam, g
17
17
  export { getOpcodeName } from './utils/opcode-names';
18
18
  export { initializeLogSink, setSendLogsCallback, getBufferedLogs, takeBufferedLogs, flushLogs, clearLogBuffer, getLogBufferSize } from './utils/log-sink';
19
19
  export type { LogSinkConfig } from './utils/log-sink';
20
+ export { startLogSender, stopLogSender } from './utils/log-sender';
20
21
  export { FunctionRegistry, registerBrowserFunctions, isBrowserEnvironment, FunctionCallError, type FunctionRegistryConfig } from './functions';
21
22
  export { withResultData } from './functions';
22
23
  export type { ValueDescriptor, NormalizedValueDescriptor, PrimitiveValueKind, FunctionParameterDefinition, FunctionDefinition, FunctionHandler, FunctionResultWithData } from './functions';