@cadraos/sdk 0.1.10 → 0.1.12

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.
package/dist/index.d.cts CHANGED
@@ -1115,6 +1115,8 @@ interface ExecutionStreamControllerOptions {
1115
1115
  getExecution: (executionId: string) => Promise<AgentExecution>;
1116
1116
  /** Streaming configuration */
1117
1117
  config?: Partial<StreamingConfig>;
1118
+ /** Whether polling fallback is enabled (default: true) */
1119
+ pollingEnabled?: boolean;
1118
1120
  }
1119
1121
  /**
1120
1122
  * Execution Stream Controller
@@ -1901,17 +1903,17 @@ declare class SessionsAPI extends BaseResourceAPI {
1901
1903
  }
1902
1904
 
1903
1905
  /**
1904
- * AI SaaS Client
1906
+ * Cadra Client
1905
1907
  *
1906
1908
  * Main entry point for the SDK. Provides access to all resource APIs.
1907
1909
  *
1908
1910
  * @example
1909
1911
  * ```typescript
1910
- * import { AISaaSClient } from '@cadraos/sdk';
1912
+ * import { CadraClient } from '@cadraos/sdk';
1911
1913
  *
1912
- * const client = new AISaaSClient({
1913
- * apiKey: process.env.AISAAS_API_KEY,
1914
- * orgId: Number(process.env.AISAAS_ORG_ID),
1914
+ * const client = new CadraClient({
1915
+ * apiKey: process.env.CADRA_API_KEY,
1916
+ * orgId: Number(process.env.CADRA_ORG_ID),
1915
1917
  * });
1916
1918
  *
1917
1919
  * // List agents
@@ -1937,12 +1939,12 @@ declare class SessionsAPI extends BaseResourceAPI {
1937
1939
  /**
1938
1940
  * Client options for API key authentication
1939
1941
  */
1940
- interface AISaaSClientOptionsApiKey {
1942
+ interface CadraClientOptionsApiKey {
1941
1943
  /** API key for authentication */
1942
1944
  apiKey: string;
1943
1945
  /** Organization ID */
1944
1946
  orgId: number;
1945
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1947
+ /** Base URL for API (default: https://api.cadraos.com) */
1946
1948
  baseUrl?: string;
1947
1949
  /** Request timeout in milliseconds (default: 30000) */
1948
1950
  timeout?: number;
@@ -1954,12 +1956,12 @@ interface AISaaSClientOptionsApiKey {
1954
1956
  /**
1955
1957
  * Client options for OAuth token authentication
1956
1958
  */
1957
- interface AISaaSClientOptionsToken {
1959
+ interface CadraClientOptionsToken {
1958
1960
  /** OAuth token for authentication */
1959
1961
  token: string;
1960
1962
  /** Organization ID */
1961
1963
  orgId: number;
1962
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1964
+ /** Base URL for API (default: https://api.cadraos.com) */
1963
1965
  baseUrl?: string;
1964
1966
  /** Request timeout in milliseconds (default: 30000) */
1965
1967
  timeout?: number;
@@ -1971,12 +1973,12 @@ interface AISaaSClientOptionsToken {
1971
1973
  /**
1972
1974
  * Client options for token provider authentication
1973
1975
  */
1974
- interface AISaaSClientOptionsTokenProvider {
1976
+ interface CadraClientOptionsTokenProvider {
1975
1977
  /** Token provider callback (called before each request) */
1976
1978
  tokenProvider: () => Promise<string>;
1977
1979
  /** Organization ID */
1978
1980
  orgId: number;
1979
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1981
+ /** Base URL for API (default: https://api.cadraos.com) */
1980
1982
  baseUrl?: string;
1981
1983
  /** Request timeout in milliseconds (default: 30000) */
1982
1984
  timeout?: number;
@@ -1988,14 +1990,14 @@ interface AISaaSClientOptionsTokenProvider {
1988
1990
  /**
1989
1991
  * All client options
1990
1992
  */
1991
- type AISaaSClientOptions = AISaaSClientOptionsApiKey | AISaaSClientOptionsToken | AISaaSClientOptionsTokenProvider;
1993
+ type CadraClientOptions = CadraClientOptionsApiKey | CadraClientOptionsToken | CadraClientOptionsTokenProvider;
1992
1994
  /**
1993
1995
  * AI SaaS Client
1994
1996
  *
1995
1997
  * Main class for interacting with the AI SaaS API.
1996
1998
  * Provides access to all resource APIs (agents, skills, tools, artifacts, sessions).
1997
1999
  */
1998
- declare class AISaaSClient {
2000
+ declare class CadraClient {
1999
2001
  private readonly httpClient;
2000
2002
  private readonly config;
2001
2003
  /**
@@ -2026,25 +2028,25 @@ declare class AISaaSClient {
2026
2028
  * @example
2027
2029
  * ```typescript
2028
2030
  * // API key authentication
2029
- * const client = new AISaaSClient({
2031
+ * const client = new CadraClient({
2030
2032
  * apiKey: 'sk_...',
2031
2033
  * orgId: 123,
2032
2034
  * });
2033
2035
  *
2034
2036
  * // OAuth token authentication
2035
- * const client = new AISaaSClient({
2037
+ * const client = new CadraClient({
2036
2038
  * token: 'eyJ...',
2037
2039
  * orgId: 123,
2038
2040
  * });
2039
2041
  *
2040
2042
  * // Token provider (for automatic refresh)
2041
- * const client = new AISaaSClient({
2043
+ * const client = new CadraClient({
2042
2044
  * tokenProvider: async () => myAuth.getAccessToken(),
2043
2045
  * orgId: 123,
2044
2046
  * });
2045
2047
  * ```
2046
2048
  */
2047
- constructor(options: AISaaSClientOptions);
2049
+ constructor(options: CadraClientOptions);
2048
2050
  /**
2049
2051
  * Validate client options
2050
2052
  */
@@ -2055,12 +2057,12 @@ declare class AISaaSClient {
2055
2057
  * SDK Error Classes
2056
2058
  *
2057
2059
  * Typed error hierarchy for all SDK operations.
2058
- * All errors extend AISaaSError and include code, status, and optional details.
2060
+ * All errors extend CadraError and include code, status, and optional details.
2059
2061
  */
2060
2062
  /**
2061
2063
  * Base error class for all SDK errors
2062
2064
  */
2063
- declare class AISaaSError extends Error {
2065
+ declare class CadraError extends Error {
2064
2066
  /** Error code */
2065
2067
  readonly code: string;
2066
2068
  /** HTTP status code */
@@ -2075,28 +2077,28 @@ declare class AISaaSError extends Error {
2075
2077
  * Authentication error (401)
2076
2078
  * Thrown when API key is invalid, expired, or missing
2077
2079
  */
2078
- declare class AuthenticationError extends AISaaSError {
2080
+ declare class AuthenticationError extends CadraError {
2079
2081
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2080
2082
  }
2081
2083
  /**
2082
2084
  * Authorization error (403)
2083
2085
  * Thrown when user lacks permission for the requested operation
2084
2086
  */
2085
- declare class AuthorizationError extends AISaaSError {
2087
+ declare class AuthorizationError extends CadraError {
2086
2088
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2087
2089
  }
2088
2090
  /**
2089
2091
  * Not found error (404)
2090
2092
  * Thrown when requested resource does not exist
2091
2093
  */
2092
- declare class NotFoundError extends AISaaSError {
2094
+ declare class NotFoundError extends CadraError {
2093
2095
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2094
2096
  }
2095
2097
  /**
2096
2098
  * Validation error (400/422)
2097
2099
  * Thrown when request input is invalid
2098
2100
  */
2099
- declare class ValidationError extends AISaaSError {
2101
+ declare class ValidationError extends CadraError {
2100
2102
  /** Field-level validation errors */
2101
2103
  readonly errors: Array<{
2102
2104
  field: string;
@@ -2111,7 +2113,7 @@ declare class ValidationError extends AISaaSError {
2111
2113
  * Rate limit error (429)
2112
2114
  * Thrown when rate limit is exceeded
2113
2115
  */
2114
- declare class RateLimitError extends AISaaSError {
2116
+ declare class RateLimitError extends CadraError {
2115
2117
  /** Seconds until rate limit resets */
2116
2118
  readonly retryAfter?: number;
2117
2119
  constructor(message?: string, retryAfter?: number, details?: Record<string, unknown>, requestId?: string);
@@ -2120,29 +2122,29 @@ declare class RateLimitError extends AISaaSError {
2120
2122
  * Server error (5xx)
2121
2123
  * Thrown for server-side errors
2122
2124
  */
2123
- declare class ServerError extends AISaaSError {
2125
+ declare class ServerError extends CadraError {
2124
2126
  constructor(message?: string, status?: number, details?: Record<string, unknown>, requestId?: string);
2125
2127
  }
2126
2128
  /**
2127
2129
  * Conflict error (409)
2128
2130
  * Thrown when there is a resource conflict
2129
2131
  */
2130
- declare class ConflictError extends AISaaSError {
2132
+ declare class ConflictError extends CadraError {
2131
2133
  constructor(message?: string, details?: Record<string, unknown>, requestId?: string);
2132
2134
  }
2133
2135
  /**
2134
2136
  * Timeout error
2135
2137
  * Thrown when a request or operation times out
2136
2138
  */
2137
- declare class TimeoutError extends AISaaSError {
2139
+ declare class TimeoutError extends CadraError {
2138
2140
  constructor(message?: string, details?: Record<string, unknown>, requestId?: string);
2139
2141
  }
2140
2142
  /**
2141
2143
  * Network error
2142
2144
  * Thrown when there is a network connectivity issue
2143
2145
  */
2144
- declare class NetworkError extends AISaaSError {
2146
+ declare class NetworkError extends CadraError {
2145
2147
  constructor(message?: string, details?: Record<string, unknown>);
2146
2148
  }
2147
2149
 
2148
- export { AISaaSClient, type AISaaSClientOptions, AISaaSError, type Agent, type AgentConfig, type AgentConfigUpdateInput, type AgentExecution, type AgentListOptions, type AgentStatus, type AgentType, type AgentUpdateInput, type Artifact, type ArtifactDownloadOptions, type ArtifactListOptions, type ArtifactType, type ArtifactUploadInput, AuthenticationError, AuthorizationError, type CompleteEvent, ConflictError, type ConnectionChangeEvent, type DelegationCompletedEvent, type DelegationStartedEvent, type ErrorEvent, type ExecuteInput, type ExecuteOptions, type ExecuteResponse, type ExecuteToolDirectRequest, type ExecuteToolDirectResponse, type ExecutionLog, type ExecutionStatus, type ExecutionStreamController, type ExecutionStreamControllerOptions, type JSONSchema, type ListOptions, NetworkError, NotFoundError, type PaginatedResponse, type PaginationInfo, type PausedEvent, type PlanEvent, type ProgressEvent, RateLimitError, type SendMessageInput, ServerError, type Session, type SessionArtifact, type SessionArtifactListOptions, type SessionArtifactType, type SessionArtifactVariantType, type SessionCreateInput, type SessionHistory, type SessionListOptions, type SessionMessage, type SignedUrlResponse, type Skill, type SkillDetails, type SkillExecuteInput, type SkillExecution, type SkillListOptions, type SkillTool, type SkillUpdateInput, type SkillVariable, type StartedEvent, type StreamController, type StreamEventMap, type TextDeltaEvent, TimeoutError, type TokenUsage, type Tool, type ToolCallEvent, type ToolConfigUpdateInput, type ToolExecution, type ToolListOptions, type ToolResultEvent, type ToolUpdateInput, type ToolValidationResult, ValidationError };
2150
+ export { CadraClient as AISaaSClient, type CadraClientOptions as AISaaSClientOptions, CadraError as AISaaSError, type Agent, type AgentConfig, type AgentConfigUpdateInput, type AgentExecution, type AgentListOptions, type AgentStatus, type AgentType, type AgentUpdateInput, type Artifact, type ArtifactDownloadOptions, type ArtifactListOptions, type ArtifactType, type ArtifactUploadInput, AuthenticationError, AuthorizationError, CadraClient, type CadraClientOptions, CadraError, type CompleteEvent, ConflictError, type ConnectionChangeEvent, type DelegationCompletedEvent, type DelegationStartedEvent, type ErrorEvent, type ExecuteInput, type ExecuteOptions, type ExecuteResponse, type ExecuteToolDirectRequest, type ExecuteToolDirectResponse, type ExecutionLog, type ExecutionStatus, type ExecutionStreamController, type ExecutionStreamControllerOptions, type JSONSchema, type ListOptions, NetworkError, NotFoundError, type PaginatedResponse, type PaginationInfo, type PausedEvent, type PlanEvent, type ProgressEvent, RateLimitError, type SendMessageInput, ServerError, type Session, type SessionArtifact, type SessionArtifactListOptions, type SessionArtifactType, type SessionArtifactVariantType, type SessionCreateInput, type SessionHistory, type SessionListOptions, type SessionMessage, type SignedUrlResponse, type Skill, type SkillDetails, type SkillExecuteInput, type SkillExecution, type SkillListOptions, type SkillTool, type SkillUpdateInput, type SkillVariable, type StartedEvent, type StreamController, type StreamEventMap, type TextDeltaEvent, TimeoutError, type TokenUsage, type Tool, type ToolCallEvent, type ToolConfigUpdateInput, type ToolExecution, type ToolListOptions, type ToolResultEvent, type ToolUpdateInput, type ToolValidationResult, ValidationError };
package/dist/index.d.ts CHANGED
@@ -1115,6 +1115,8 @@ interface ExecutionStreamControllerOptions {
1115
1115
  getExecution: (executionId: string) => Promise<AgentExecution>;
1116
1116
  /** Streaming configuration */
1117
1117
  config?: Partial<StreamingConfig>;
1118
+ /** Whether polling fallback is enabled (default: true) */
1119
+ pollingEnabled?: boolean;
1118
1120
  }
1119
1121
  /**
1120
1122
  * Execution Stream Controller
@@ -1901,17 +1903,17 @@ declare class SessionsAPI extends BaseResourceAPI {
1901
1903
  }
1902
1904
 
1903
1905
  /**
1904
- * AI SaaS Client
1906
+ * Cadra Client
1905
1907
  *
1906
1908
  * Main entry point for the SDK. Provides access to all resource APIs.
1907
1909
  *
1908
1910
  * @example
1909
1911
  * ```typescript
1910
- * import { AISaaSClient } from '@cadraos/sdk';
1912
+ * import { CadraClient } from '@cadraos/sdk';
1911
1913
  *
1912
- * const client = new AISaaSClient({
1913
- * apiKey: process.env.AISAAS_API_KEY,
1914
- * orgId: Number(process.env.AISAAS_ORG_ID),
1914
+ * const client = new CadraClient({
1915
+ * apiKey: process.env.CADRA_API_KEY,
1916
+ * orgId: Number(process.env.CADRA_ORG_ID),
1915
1917
  * });
1916
1918
  *
1917
1919
  * // List agents
@@ -1937,12 +1939,12 @@ declare class SessionsAPI extends BaseResourceAPI {
1937
1939
  /**
1938
1940
  * Client options for API key authentication
1939
1941
  */
1940
- interface AISaaSClientOptionsApiKey {
1942
+ interface CadraClientOptionsApiKey {
1941
1943
  /** API key for authentication */
1942
1944
  apiKey: string;
1943
1945
  /** Organization ID */
1944
1946
  orgId: number;
1945
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1947
+ /** Base URL for API (default: https://api.cadraos.com) */
1946
1948
  baseUrl?: string;
1947
1949
  /** Request timeout in milliseconds (default: 30000) */
1948
1950
  timeout?: number;
@@ -1954,12 +1956,12 @@ interface AISaaSClientOptionsApiKey {
1954
1956
  /**
1955
1957
  * Client options for OAuth token authentication
1956
1958
  */
1957
- interface AISaaSClientOptionsToken {
1959
+ interface CadraClientOptionsToken {
1958
1960
  /** OAuth token for authentication */
1959
1961
  token: string;
1960
1962
  /** Organization ID */
1961
1963
  orgId: number;
1962
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1964
+ /** Base URL for API (default: https://api.cadraos.com) */
1963
1965
  baseUrl?: string;
1964
1966
  /** Request timeout in milliseconds (default: 30000) */
1965
1967
  timeout?: number;
@@ -1971,12 +1973,12 @@ interface AISaaSClientOptionsToken {
1971
1973
  /**
1972
1974
  * Client options for token provider authentication
1973
1975
  */
1974
- interface AISaaSClientOptionsTokenProvider {
1976
+ interface CadraClientOptionsTokenProvider {
1975
1977
  /** Token provider callback (called before each request) */
1976
1978
  tokenProvider: () => Promise<string>;
1977
1979
  /** Organization ID */
1978
1980
  orgId: number;
1979
- /** Base URL for API (default: https://api.aisaas.com/v1) */
1981
+ /** Base URL for API (default: https://api.cadraos.com) */
1980
1982
  baseUrl?: string;
1981
1983
  /** Request timeout in milliseconds (default: 30000) */
1982
1984
  timeout?: number;
@@ -1988,14 +1990,14 @@ interface AISaaSClientOptionsTokenProvider {
1988
1990
  /**
1989
1991
  * All client options
1990
1992
  */
1991
- type AISaaSClientOptions = AISaaSClientOptionsApiKey | AISaaSClientOptionsToken | AISaaSClientOptionsTokenProvider;
1993
+ type CadraClientOptions = CadraClientOptionsApiKey | CadraClientOptionsToken | CadraClientOptionsTokenProvider;
1992
1994
  /**
1993
1995
  * AI SaaS Client
1994
1996
  *
1995
1997
  * Main class for interacting with the AI SaaS API.
1996
1998
  * Provides access to all resource APIs (agents, skills, tools, artifacts, sessions).
1997
1999
  */
1998
- declare class AISaaSClient {
2000
+ declare class CadraClient {
1999
2001
  private readonly httpClient;
2000
2002
  private readonly config;
2001
2003
  /**
@@ -2026,25 +2028,25 @@ declare class AISaaSClient {
2026
2028
  * @example
2027
2029
  * ```typescript
2028
2030
  * // API key authentication
2029
- * const client = new AISaaSClient({
2031
+ * const client = new CadraClient({
2030
2032
  * apiKey: 'sk_...',
2031
2033
  * orgId: 123,
2032
2034
  * });
2033
2035
  *
2034
2036
  * // OAuth token authentication
2035
- * const client = new AISaaSClient({
2037
+ * const client = new CadraClient({
2036
2038
  * token: 'eyJ...',
2037
2039
  * orgId: 123,
2038
2040
  * });
2039
2041
  *
2040
2042
  * // Token provider (for automatic refresh)
2041
- * const client = new AISaaSClient({
2043
+ * const client = new CadraClient({
2042
2044
  * tokenProvider: async () => myAuth.getAccessToken(),
2043
2045
  * orgId: 123,
2044
2046
  * });
2045
2047
  * ```
2046
2048
  */
2047
- constructor(options: AISaaSClientOptions);
2049
+ constructor(options: CadraClientOptions);
2048
2050
  /**
2049
2051
  * Validate client options
2050
2052
  */
@@ -2055,12 +2057,12 @@ declare class AISaaSClient {
2055
2057
  * SDK Error Classes
2056
2058
  *
2057
2059
  * Typed error hierarchy for all SDK operations.
2058
- * All errors extend AISaaSError and include code, status, and optional details.
2060
+ * All errors extend CadraError and include code, status, and optional details.
2059
2061
  */
2060
2062
  /**
2061
2063
  * Base error class for all SDK errors
2062
2064
  */
2063
- declare class AISaaSError extends Error {
2065
+ declare class CadraError extends Error {
2064
2066
  /** Error code */
2065
2067
  readonly code: string;
2066
2068
  /** HTTP status code */
@@ -2075,28 +2077,28 @@ declare class AISaaSError extends Error {
2075
2077
  * Authentication error (401)
2076
2078
  * Thrown when API key is invalid, expired, or missing
2077
2079
  */
2078
- declare class AuthenticationError extends AISaaSError {
2080
+ declare class AuthenticationError extends CadraError {
2079
2081
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2080
2082
  }
2081
2083
  /**
2082
2084
  * Authorization error (403)
2083
2085
  * Thrown when user lacks permission for the requested operation
2084
2086
  */
2085
- declare class AuthorizationError extends AISaaSError {
2087
+ declare class AuthorizationError extends CadraError {
2086
2088
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2087
2089
  }
2088
2090
  /**
2089
2091
  * Not found error (404)
2090
2092
  * Thrown when requested resource does not exist
2091
2093
  */
2092
- declare class NotFoundError extends AISaaSError {
2094
+ declare class NotFoundError extends CadraError {
2093
2095
  constructor(message?: string, code?: string, details?: Record<string, unknown>, requestId?: string);
2094
2096
  }
2095
2097
  /**
2096
2098
  * Validation error (400/422)
2097
2099
  * Thrown when request input is invalid
2098
2100
  */
2099
- declare class ValidationError extends AISaaSError {
2101
+ declare class ValidationError extends CadraError {
2100
2102
  /** Field-level validation errors */
2101
2103
  readonly errors: Array<{
2102
2104
  field: string;
@@ -2111,7 +2113,7 @@ declare class ValidationError extends AISaaSError {
2111
2113
  * Rate limit error (429)
2112
2114
  * Thrown when rate limit is exceeded
2113
2115
  */
2114
- declare class RateLimitError extends AISaaSError {
2116
+ declare class RateLimitError extends CadraError {
2115
2117
  /** Seconds until rate limit resets */
2116
2118
  readonly retryAfter?: number;
2117
2119
  constructor(message?: string, retryAfter?: number, details?: Record<string, unknown>, requestId?: string);
@@ -2120,29 +2122,29 @@ declare class RateLimitError extends AISaaSError {
2120
2122
  * Server error (5xx)
2121
2123
  * Thrown for server-side errors
2122
2124
  */
2123
- declare class ServerError extends AISaaSError {
2125
+ declare class ServerError extends CadraError {
2124
2126
  constructor(message?: string, status?: number, details?: Record<string, unknown>, requestId?: string);
2125
2127
  }
2126
2128
  /**
2127
2129
  * Conflict error (409)
2128
2130
  * Thrown when there is a resource conflict
2129
2131
  */
2130
- declare class ConflictError extends AISaaSError {
2132
+ declare class ConflictError extends CadraError {
2131
2133
  constructor(message?: string, details?: Record<string, unknown>, requestId?: string);
2132
2134
  }
2133
2135
  /**
2134
2136
  * Timeout error
2135
2137
  * Thrown when a request or operation times out
2136
2138
  */
2137
- declare class TimeoutError extends AISaaSError {
2139
+ declare class TimeoutError extends CadraError {
2138
2140
  constructor(message?: string, details?: Record<string, unknown>, requestId?: string);
2139
2141
  }
2140
2142
  /**
2141
2143
  * Network error
2142
2144
  * Thrown when there is a network connectivity issue
2143
2145
  */
2144
- declare class NetworkError extends AISaaSError {
2146
+ declare class NetworkError extends CadraError {
2145
2147
  constructor(message?: string, details?: Record<string, unknown>);
2146
2148
  }
2147
2149
 
2148
- export { AISaaSClient, type AISaaSClientOptions, AISaaSError, type Agent, type AgentConfig, type AgentConfigUpdateInput, type AgentExecution, type AgentListOptions, type AgentStatus, type AgentType, type AgentUpdateInput, type Artifact, type ArtifactDownloadOptions, type ArtifactListOptions, type ArtifactType, type ArtifactUploadInput, AuthenticationError, AuthorizationError, type CompleteEvent, ConflictError, type ConnectionChangeEvent, type DelegationCompletedEvent, type DelegationStartedEvent, type ErrorEvent, type ExecuteInput, type ExecuteOptions, type ExecuteResponse, type ExecuteToolDirectRequest, type ExecuteToolDirectResponse, type ExecutionLog, type ExecutionStatus, type ExecutionStreamController, type ExecutionStreamControllerOptions, type JSONSchema, type ListOptions, NetworkError, NotFoundError, type PaginatedResponse, type PaginationInfo, type PausedEvent, type PlanEvent, type ProgressEvent, RateLimitError, type SendMessageInput, ServerError, type Session, type SessionArtifact, type SessionArtifactListOptions, type SessionArtifactType, type SessionArtifactVariantType, type SessionCreateInput, type SessionHistory, type SessionListOptions, type SessionMessage, type SignedUrlResponse, type Skill, type SkillDetails, type SkillExecuteInput, type SkillExecution, type SkillListOptions, type SkillTool, type SkillUpdateInput, type SkillVariable, type StartedEvent, type StreamController, type StreamEventMap, type TextDeltaEvent, TimeoutError, type TokenUsage, type Tool, type ToolCallEvent, type ToolConfigUpdateInput, type ToolExecution, type ToolListOptions, type ToolResultEvent, type ToolUpdateInput, type ToolValidationResult, ValidationError };
2150
+ export { CadraClient as AISaaSClient, type CadraClientOptions as AISaaSClientOptions, CadraError as AISaaSError, type Agent, type AgentConfig, type AgentConfigUpdateInput, type AgentExecution, type AgentListOptions, type AgentStatus, type AgentType, type AgentUpdateInput, type Artifact, type ArtifactDownloadOptions, type ArtifactListOptions, type ArtifactType, type ArtifactUploadInput, AuthenticationError, AuthorizationError, CadraClient, type CadraClientOptions, CadraError, type CompleteEvent, ConflictError, type ConnectionChangeEvent, type DelegationCompletedEvent, type DelegationStartedEvent, type ErrorEvent, type ExecuteInput, type ExecuteOptions, type ExecuteResponse, type ExecuteToolDirectRequest, type ExecuteToolDirectResponse, type ExecutionLog, type ExecutionStatus, type ExecutionStreamController, type ExecutionStreamControllerOptions, type JSONSchema, type ListOptions, NetworkError, NotFoundError, type PaginatedResponse, type PaginationInfo, type PausedEvent, type PlanEvent, type ProgressEvent, RateLimitError, type SendMessageInput, ServerError, type Session, type SessionArtifact, type SessionArtifactListOptions, type SessionArtifactType, type SessionArtifactVariantType, type SessionCreateInput, type SessionHistory, type SessionListOptions, type SessionMessage, type SignedUrlResponse, type Skill, type SkillDetails, type SkillExecuteInput, type SkillExecution, type SkillListOptions, type SkillTool, type SkillUpdateInput, type SkillVariable, type StartedEvent, type StreamController, type StreamEventMap, type TextDeltaEvent, TimeoutError, type TokenUsage, type Tool, type ToolCallEvent, type ToolConfigUpdateInput, type ToolExecution, type ToolListOptions, type ToolResultEvent, type ToolUpdateInput, type ToolValidationResult, ValidationError };