@synova-cloud/sdk 1.4.0 → 1.5.0
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.cjs +1 -1
- package/dist/index.d.cts +29 -2
- package/dist/index.d.ts +29 -2
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -135,13 +135,40 @@ interface ISynovaExecutionUsage {
|
|
|
135
135
|
/** Prediction time in seconds (when type='time') */
|
|
136
136
|
predictTimeSeconds?: number;
|
|
137
137
|
}
|
|
138
|
+
interface ISynovaProviderResponse {
|
|
139
|
+
/** HTTP status code from the LLM provider */
|
|
140
|
+
statusCode?: number;
|
|
141
|
+
/** Error message from the LLM provider */
|
|
142
|
+
message?: string;
|
|
143
|
+
}
|
|
144
|
+
interface ISynovaExecutionErrorDetails {
|
|
145
|
+
/** Model used for the execution */
|
|
146
|
+
model?: string;
|
|
147
|
+
/** API key ID used for the execution */
|
|
148
|
+
apiKeyId?: string;
|
|
149
|
+
/** API key label (human-readable name) */
|
|
150
|
+
apiKeyLabel?: string;
|
|
151
|
+
/** Prompt ID (if execution was via prompt) */
|
|
152
|
+
promptId?: string;
|
|
153
|
+
/** Prompt version (if execution was via prompt) */
|
|
154
|
+
promptVersion?: string;
|
|
155
|
+
/** Execution log ID for debugging */
|
|
156
|
+
executionLogId?: string;
|
|
157
|
+
/** Input tokens count (for CONTEXT_TOO_LONG errors) */
|
|
158
|
+
inputTokens?: number;
|
|
159
|
+
/** Model context window limit (for CONTEXT_TOO_LONG errors) */
|
|
160
|
+
contextLimit?: number;
|
|
161
|
+
}
|
|
138
162
|
interface ISynovaExecutionError {
|
|
139
163
|
code: string;
|
|
140
164
|
message: string;
|
|
141
165
|
provider?: string;
|
|
142
166
|
retryable: boolean;
|
|
143
167
|
retryAfterMs?: number;
|
|
144
|
-
|
|
168
|
+
/** Raw response from the LLM provider's API */
|
|
169
|
+
providerResponse?: ISynovaProviderResponse;
|
|
170
|
+
/** Our context details */
|
|
171
|
+
details?: ISynovaExecutionErrorDetails;
|
|
145
172
|
}
|
|
146
173
|
interface ISynovaFileThumbnails {
|
|
147
174
|
/** Small thumbnail URL (120px width) */
|
|
@@ -737,4 +764,4 @@ declare class NetworkSynovaError extends SynovaError {
|
|
|
737
764
|
constructor(message: string, cause?: Error);
|
|
738
765
|
}
|
|
739
766
|
|
|
740
|
-
export { ApiSynovaError, AuthSynovaError, type ISynovaAzureConfig, type ISynovaConfig, type ISynovaCreateLlmProviderKeyOptions, type ISynovaExecuteOptions, type ISynovaExecuteResponse, type ISynovaExecutionError, type ISynovaExecutionUsage, type ISynovaFileAttachment, type ISynovaFileThumbnails, type ISynovaGetPromptOptions, type ISynovaListModelsOptions, type ISynovaLlmProviderKey, type ISynovaLlmProviderKeyListResponse, type ISynovaLogger, type ISynovaMessage, type ISynovaModel, type ISynovaModelCapabilities, type ISynovaModelLimits, type ISynovaModelPricing, type ISynovaModelsResponse, type ISynovaPrompt, type ISynovaPromptVariable, type ISynovaProvider, type ISynovaRetryConfig, type ISynovaToolCall, type ISynovaToolResult, type ISynovaUploadOptions, type ISynovaUploadResponse, type ISynovaUploadedFile, NetworkSynovaError, NotFoundSynovaError, RateLimitSynovaError, ServerSynovaError, SynovaCloudSdk, SynovaError, type TSynovaLlmProvider, type TSynovaMessageRole, type TSynovaModelType, type TSynovaResponseType, type TSynovaRetryStrategy, type TSynovaUsageType, TimeoutSynovaError };
|
|
767
|
+
export { ApiSynovaError, AuthSynovaError, type ISynovaAzureConfig, type ISynovaConfig, type ISynovaCreateLlmProviderKeyOptions, type ISynovaExecuteOptions, type ISynovaExecuteResponse, type ISynovaExecutionError, type ISynovaExecutionErrorDetails, type ISynovaExecutionUsage, type ISynovaFileAttachment, type ISynovaFileThumbnails, type ISynovaGetPromptOptions, type ISynovaListModelsOptions, type ISynovaLlmProviderKey, type ISynovaLlmProviderKeyListResponse, type ISynovaLogger, type ISynovaMessage, type ISynovaModel, type ISynovaModelCapabilities, type ISynovaModelLimits, type ISynovaModelPricing, type ISynovaModelsResponse, type ISynovaPrompt, type ISynovaPromptVariable, type ISynovaProvider, type ISynovaProviderResponse, type ISynovaRetryConfig, type ISynovaToolCall, type ISynovaToolResult, type ISynovaUploadOptions, type ISynovaUploadResponse, type ISynovaUploadedFile, NetworkSynovaError, NotFoundSynovaError, RateLimitSynovaError, ServerSynovaError, SynovaCloudSdk, SynovaError, type TSynovaLlmProvider, type TSynovaMessageRole, type TSynovaModelType, type TSynovaResponseType, type TSynovaRetryStrategy, type TSynovaUsageType, TimeoutSynovaError };
|
package/dist/index.d.ts
CHANGED
|
@@ -135,13 +135,40 @@ interface ISynovaExecutionUsage {
|
|
|
135
135
|
/** Prediction time in seconds (when type='time') */
|
|
136
136
|
predictTimeSeconds?: number;
|
|
137
137
|
}
|
|
138
|
+
interface ISynovaProviderResponse {
|
|
139
|
+
/** HTTP status code from the LLM provider */
|
|
140
|
+
statusCode?: number;
|
|
141
|
+
/** Error message from the LLM provider */
|
|
142
|
+
message?: string;
|
|
143
|
+
}
|
|
144
|
+
interface ISynovaExecutionErrorDetails {
|
|
145
|
+
/** Model used for the execution */
|
|
146
|
+
model?: string;
|
|
147
|
+
/** API key ID used for the execution */
|
|
148
|
+
apiKeyId?: string;
|
|
149
|
+
/** API key label (human-readable name) */
|
|
150
|
+
apiKeyLabel?: string;
|
|
151
|
+
/** Prompt ID (if execution was via prompt) */
|
|
152
|
+
promptId?: string;
|
|
153
|
+
/** Prompt version (if execution was via prompt) */
|
|
154
|
+
promptVersion?: string;
|
|
155
|
+
/** Execution log ID for debugging */
|
|
156
|
+
executionLogId?: string;
|
|
157
|
+
/** Input tokens count (for CONTEXT_TOO_LONG errors) */
|
|
158
|
+
inputTokens?: number;
|
|
159
|
+
/** Model context window limit (for CONTEXT_TOO_LONG errors) */
|
|
160
|
+
contextLimit?: number;
|
|
161
|
+
}
|
|
138
162
|
interface ISynovaExecutionError {
|
|
139
163
|
code: string;
|
|
140
164
|
message: string;
|
|
141
165
|
provider?: string;
|
|
142
166
|
retryable: boolean;
|
|
143
167
|
retryAfterMs?: number;
|
|
144
|
-
|
|
168
|
+
/** Raw response from the LLM provider's API */
|
|
169
|
+
providerResponse?: ISynovaProviderResponse;
|
|
170
|
+
/** Our context details */
|
|
171
|
+
details?: ISynovaExecutionErrorDetails;
|
|
145
172
|
}
|
|
146
173
|
interface ISynovaFileThumbnails {
|
|
147
174
|
/** Small thumbnail URL (120px width) */
|
|
@@ -737,4 +764,4 @@ declare class NetworkSynovaError extends SynovaError {
|
|
|
737
764
|
constructor(message: string, cause?: Error);
|
|
738
765
|
}
|
|
739
766
|
|
|
740
|
-
export { ApiSynovaError, AuthSynovaError, type ISynovaAzureConfig, type ISynovaConfig, type ISynovaCreateLlmProviderKeyOptions, type ISynovaExecuteOptions, type ISynovaExecuteResponse, type ISynovaExecutionError, type ISynovaExecutionUsage, type ISynovaFileAttachment, type ISynovaFileThumbnails, type ISynovaGetPromptOptions, type ISynovaListModelsOptions, type ISynovaLlmProviderKey, type ISynovaLlmProviderKeyListResponse, type ISynovaLogger, type ISynovaMessage, type ISynovaModel, type ISynovaModelCapabilities, type ISynovaModelLimits, type ISynovaModelPricing, type ISynovaModelsResponse, type ISynovaPrompt, type ISynovaPromptVariable, type ISynovaProvider, type ISynovaRetryConfig, type ISynovaToolCall, type ISynovaToolResult, type ISynovaUploadOptions, type ISynovaUploadResponse, type ISynovaUploadedFile, NetworkSynovaError, NotFoundSynovaError, RateLimitSynovaError, ServerSynovaError, SynovaCloudSdk, SynovaError, type TSynovaLlmProvider, type TSynovaMessageRole, type TSynovaModelType, type TSynovaResponseType, type TSynovaRetryStrategy, type TSynovaUsageType, TimeoutSynovaError };
|
|
767
|
+
export { ApiSynovaError, AuthSynovaError, type ISynovaAzureConfig, type ISynovaConfig, type ISynovaCreateLlmProviderKeyOptions, type ISynovaExecuteOptions, type ISynovaExecuteResponse, type ISynovaExecutionError, type ISynovaExecutionErrorDetails, type ISynovaExecutionUsage, type ISynovaFileAttachment, type ISynovaFileThumbnails, type ISynovaGetPromptOptions, type ISynovaListModelsOptions, type ISynovaLlmProviderKey, type ISynovaLlmProviderKeyListResponse, type ISynovaLogger, type ISynovaMessage, type ISynovaModel, type ISynovaModelCapabilities, type ISynovaModelLimits, type ISynovaModelPricing, type ISynovaModelsResponse, type ISynovaPrompt, type ISynovaPromptVariable, type ISynovaProvider, type ISynovaProviderResponse, type ISynovaRetryConfig, type ISynovaToolCall, type ISynovaToolResult, type ISynovaUploadOptions, type ISynovaUploadResponse, type ISynovaUploadedFile, NetworkSynovaError, NotFoundSynovaError, RateLimitSynovaError, ServerSynovaError, SynovaCloudSdk, SynovaError, type TSynovaLlmProvider, type TSynovaMessageRole, type TSynovaModelType, type TSynovaResponseType, type TSynovaRetryStrategy, type TSynovaUsageType, TimeoutSynovaError };
|
package/dist/index.js
CHANGED