@synova-cloud/sdk 1.3.1 → 1.4.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 +18 -1
- package/dist/index.d.ts +18 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,23 @@ type TSynovaMessageRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
|
2
2
|
type TSynovaResponseType = 'message' | 'tool_calls' | 'image' | 'audio' | 'error';
|
|
3
3
|
type TSynovaModelType = 'text' | 'image';
|
|
4
4
|
type TSynovaUsageType = 'tokens' | 'images' | 'time';
|
|
5
|
+
type TSynovaJsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array';
|
|
6
|
+
interface ISynovaJsonSchema {
|
|
7
|
+
/** Schema type */
|
|
8
|
+
type?: TSynovaJsonSchemaType;
|
|
9
|
+
/** Description of the field */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Allowed values (for enum-like fields) */
|
|
12
|
+
enum?: (string | number | boolean | null)[];
|
|
13
|
+
/** Schema for array items (when type='array') */
|
|
14
|
+
items?: ISynovaJsonSchema;
|
|
15
|
+
/** Object properties (when type='object') */
|
|
16
|
+
properties?: Record<string, ISynovaJsonSchema>;
|
|
17
|
+
/** Required property names (when type='object') */
|
|
18
|
+
required?: string[];
|
|
19
|
+
/** Whether additional properties are allowed (when type='object') */
|
|
20
|
+
additionalProperties?: boolean;
|
|
21
|
+
}
|
|
5
22
|
interface ISynovaLogger {
|
|
6
23
|
debug: (message: string, ...args: unknown[]) => void;
|
|
7
24
|
info: (message: string, ...args: unknown[]) => void;
|
|
@@ -100,7 +117,7 @@ interface ISynovaExecuteOptions {
|
|
|
100
117
|
/** Model parameters (temperature, maxTokens, topP, topK, etc.) */
|
|
101
118
|
parameters?: Record<string, unknown>;
|
|
102
119
|
/** JSON Schema for structured output */
|
|
103
|
-
responseSchema?:
|
|
120
|
+
responseSchema?: ISynovaJsonSchema;
|
|
104
121
|
}
|
|
105
122
|
interface ISynovaExecutionUsage {
|
|
106
123
|
/** Usage type: 'tokens' for LLM, 'images' for image generation, 'time' for time-based billing */
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,23 @@ type TSynovaMessageRole = 'system' | 'user' | 'assistant' | 'tool';
|
|
|
2
2
|
type TSynovaResponseType = 'message' | 'tool_calls' | 'image' | 'audio' | 'error';
|
|
3
3
|
type TSynovaModelType = 'text' | 'image';
|
|
4
4
|
type TSynovaUsageType = 'tokens' | 'images' | 'time';
|
|
5
|
+
type TSynovaJsonSchemaType = 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array';
|
|
6
|
+
interface ISynovaJsonSchema {
|
|
7
|
+
/** Schema type */
|
|
8
|
+
type?: TSynovaJsonSchemaType;
|
|
9
|
+
/** Description of the field */
|
|
10
|
+
description?: string;
|
|
11
|
+
/** Allowed values (for enum-like fields) */
|
|
12
|
+
enum?: (string | number | boolean | null)[];
|
|
13
|
+
/** Schema for array items (when type='array') */
|
|
14
|
+
items?: ISynovaJsonSchema;
|
|
15
|
+
/** Object properties (when type='object') */
|
|
16
|
+
properties?: Record<string, ISynovaJsonSchema>;
|
|
17
|
+
/** Required property names (when type='object') */
|
|
18
|
+
required?: string[];
|
|
19
|
+
/** Whether additional properties are allowed (when type='object') */
|
|
20
|
+
additionalProperties?: boolean;
|
|
21
|
+
}
|
|
5
22
|
interface ISynovaLogger {
|
|
6
23
|
debug: (message: string, ...args: unknown[]) => void;
|
|
7
24
|
info: (message: string, ...args: unknown[]) => void;
|
|
@@ -100,7 +117,7 @@ interface ISynovaExecuteOptions {
|
|
|
100
117
|
/** Model parameters (temperature, maxTokens, topP, topK, etc.) */
|
|
101
118
|
parameters?: Record<string, unknown>;
|
|
102
119
|
/** JSON Schema for structured output */
|
|
103
|
-
responseSchema?:
|
|
120
|
+
responseSchema?: ISynovaJsonSchema;
|
|
104
121
|
}
|
|
105
122
|
interface ISynovaExecutionUsage {
|
|
106
123
|
/** Usage type: 'tokens' for LLM, 'images' for image generation, 'time' for time-based billing */
|
package/dist/index.js
CHANGED