syllable-sdk 0.1.0-alpha.64 → 0.1.0-alpha.66
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/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/toolresultdata.d.ts +2 -23
- package/models/components/toolresultdata.d.ts.map +1 -1
- package/models/components/toolresultdata.js +3 -26
- package/models/components/toolresultdata.js.map +1 -1
- package/openapi.json +0 -1
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/toolresultdata.ts +4 -50
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.66";
|
|
31
31
|
readonly genVersion: "2.512.4";
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.66 2.512.4 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.2",
|
|
34
|
-
sdkVersion: "0.1.0-alpha.
|
|
34
|
+
sdkVersion: "0.1.0-alpha.66",
|
|
35
35
|
genVersion: "2.512.4",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.66 2.512.4 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,37 +1,16 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
-
export type ToolResult = {};
|
|
5
4
|
export type ToolResultData = {
|
|
6
5
|
toolName: string;
|
|
7
|
-
toolResult
|
|
6
|
+
toolResult?: any | undefined;
|
|
8
7
|
};
|
|
9
8
|
/** @internal */
|
|
10
|
-
export declare const ToolResult$inboundSchema: z.ZodType<ToolResult, z.ZodTypeDef, unknown>;
|
|
11
|
-
/** @internal */
|
|
12
|
-
export type ToolResult$Outbound = {};
|
|
13
|
-
/** @internal */
|
|
14
|
-
export declare const ToolResult$outboundSchema: z.ZodType<ToolResult$Outbound, z.ZodTypeDef, ToolResult>;
|
|
15
|
-
/**
|
|
16
|
-
* @internal
|
|
17
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
-
*/
|
|
19
|
-
export declare namespace ToolResult$ {
|
|
20
|
-
/** @deprecated use `ToolResult$inboundSchema` instead. */
|
|
21
|
-
const inboundSchema: z.ZodType<ToolResult, z.ZodTypeDef, unknown>;
|
|
22
|
-
/** @deprecated use `ToolResult$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodType<ToolResult$Outbound, z.ZodTypeDef, ToolResult>;
|
|
24
|
-
/** @deprecated use `ToolResult$Outbound` instead. */
|
|
25
|
-
type Outbound = ToolResult$Outbound;
|
|
26
|
-
}
|
|
27
|
-
export declare function toolResultToJSON(toolResult: ToolResult): string;
|
|
28
|
-
export declare function toolResultFromJSON(jsonString: string): SafeParseResult<ToolResult, SDKValidationError>;
|
|
29
|
-
/** @internal */
|
|
30
9
|
export declare const ToolResultData$inboundSchema: z.ZodType<ToolResultData, z.ZodTypeDef, unknown>;
|
|
31
10
|
/** @internal */
|
|
32
11
|
export type ToolResultData$Outbound = {
|
|
33
12
|
tool_name: string;
|
|
34
|
-
tool_result
|
|
13
|
+
tool_result?: any | undefined;
|
|
35
14
|
};
|
|
36
15
|
/** @internal */
|
|
37
16
|
export declare const ToolResultData$outboundSchema: z.ZodType<ToolResultData$Outbound, z.ZodTypeDef, ToolResultData>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolresultdata.d.ts","sourceRoot":"","sources":["../../src/models/components/toolresultdata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"toolresultdata.d.ts","sourceRoot":"","sources":["../../src/models/components/toolresultdata.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE,MAAM,MAAM,cAAc,GAAG;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CAC9B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CASP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,GAAG,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CASd,CAAC;AAEH;;;GAGG;AACH,yBAAiB,eAAe,CAAC;IAC/B,8DAA8D;IACvD,MAAM,aAAa,kDAA+B,CAAC;IAC1D,+DAA+D;IACxD,MAAM,cAAc,kEAAgC,CAAC;IAC5D,yDAAyD;IACzD,KAAY,QAAQ,GAAG,uBAAuB,CAAC;CAChD;AAED,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AAED,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
|
|
@@ -26,39 +26,16 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ToolResultData$ = exports.ToolResultData$outboundSchema = exports.ToolResultData$inboundSchema =
|
|
30
|
-
exports.toolResultToJSON = toolResultToJSON;
|
|
31
|
-
exports.toolResultFromJSON = toolResultFromJSON;
|
|
29
|
+
exports.ToolResultData$ = exports.ToolResultData$outboundSchema = exports.ToolResultData$inboundSchema = void 0;
|
|
32
30
|
exports.toolResultDataToJSON = toolResultDataToJSON;
|
|
33
31
|
exports.toolResultDataFromJSON = toolResultDataFromJSON;
|
|
34
32
|
const z = __importStar(require("zod"));
|
|
35
33
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
36
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
37
35
|
/** @internal */
|
|
38
|
-
exports.ToolResult$inboundSchema = z.object({});
|
|
39
|
-
/** @internal */
|
|
40
|
-
exports.ToolResult$outboundSchema = z.object({});
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
var ToolResult$;
|
|
46
|
-
(function (ToolResult$) {
|
|
47
|
-
/** @deprecated use `ToolResult$inboundSchema` instead. */
|
|
48
|
-
ToolResult$.inboundSchema = exports.ToolResult$inboundSchema;
|
|
49
|
-
/** @deprecated use `ToolResult$outboundSchema` instead. */
|
|
50
|
-
ToolResult$.outboundSchema = exports.ToolResult$outboundSchema;
|
|
51
|
-
})(ToolResult$ || (exports.ToolResult$ = ToolResult$ = {}));
|
|
52
|
-
function toolResultToJSON(toolResult) {
|
|
53
|
-
return JSON.stringify(exports.ToolResult$outboundSchema.parse(toolResult));
|
|
54
|
-
}
|
|
55
|
-
function toolResultFromJSON(jsonString) {
|
|
56
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ToolResult$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolResult' from JSON`);
|
|
57
|
-
}
|
|
58
|
-
/** @internal */
|
|
59
36
|
exports.ToolResultData$inboundSchema = z.object({
|
|
60
37
|
tool_name: z.string(),
|
|
61
|
-
tool_result: z.
|
|
38
|
+
tool_result: z.any().optional(),
|
|
62
39
|
}).transform((v) => {
|
|
63
40
|
return (0, primitives_js_1.remap)(v, {
|
|
64
41
|
"tool_name": "toolName",
|
|
@@ -68,7 +45,7 @@ exports.ToolResultData$inboundSchema = z.object({
|
|
|
68
45
|
/** @internal */
|
|
69
46
|
exports.ToolResultData$outboundSchema = z.object({
|
|
70
47
|
toolName: z.string(),
|
|
71
|
-
toolResult: z.
|
|
48
|
+
toolResult: z.any().optional(),
|
|
72
49
|
}).transform((v) => {
|
|
73
50
|
return (0, primitives_js_1.remap)(v, {
|
|
74
51
|
toolName: "tool_name",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolresultdata.js","sourceRoot":"","sources":["../../src/models/components/toolresultdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"toolresultdata.js","sourceRoot":"","sources":["../../src/models/components/toolresultdata.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;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oCAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
|
package/openapi.json
CHANGED
|
@@ -14951,7 +14951,6 @@
|
|
|
14951
14951
|
"title": "Tool Name"
|
|
14952
14952
|
},
|
|
14953
14953
|
"tool_result": {
|
|
14954
|
-
"type": "object",
|
|
14955
14954
|
"title": "Tool Result"
|
|
14956
14955
|
}
|
|
14957
14956
|
},
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -57,8 +57,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
57
57
|
export const SDK_METADATA = {
|
|
58
58
|
language: "typescript",
|
|
59
59
|
openapiDocVersion: "0.0.2",
|
|
60
|
-
sdkVersion: "0.1.0-alpha.
|
|
60
|
+
sdkVersion: "0.1.0-alpha.66",
|
|
61
61
|
genVersion: "2.512.4",
|
|
62
62
|
userAgent:
|
|
63
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
63
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.66 2.512.4 0.0.2 syllable-sdk",
|
|
64
64
|
} as const;
|
|
@@ -8,57 +8,11 @@ import { safeParse } from "../../lib/schemas.js";
|
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
10
|
|
|
11
|
-
export type ToolResult = {};
|
|
12
|
-
|
|
13
11
|
export type ToolResultData = {
|
|
14
12
|
toolName: string;
|
|
15
|
-
toolResult
|
|
13
|
+
toolResult?: any | undefined;
|
|
16
14
|
};
|
|
17
15
|
|
|
18
|
-
/** @internal */
|
|
19
|
-
export const ToolResult$inboundSchema: z.ZodType<
|
|
20
|
-
ToolResult,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({});
|
|
24
|
-
|
|
25
|
-
/** @internal */
|
|
26
|
-
export type ToolResult$Outbound = {};
|
|
27
|
-
|
|
28
|
-
/** @internal */
|
|
29
|
-
export const ToolResult$outboundSchema: z.ZodType<
|
|
30
|
-
ToolResult$Outbound,
|
|
31
|
-
z.ZodTypeDef,
|
|
32
|
-
ToolResult
|
|
33
|
-
> = z.object({});
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* @internal
|
|
37
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
-
*/
|
|
39
|
-
export namespace ToolResult$ {
|
|
40
|
-
/** @deprecated use `ToolResult$inboundSchema` instead. */
|
|
41
|
-
export const inboundSchema = ToolResult$inboundSchema;
|
|
42
|
-
/** @deprecated use `ToolResult$outboundSchema` instead. */
|
|
43
|
-
export const outboundSchema = ToolResult$outboundSchema;
|
|
44
|
-
/** @deprecated use `ToolResult$Outbound` instead. */
|
|
45
|
-
export type Outbound = ToolResult$Outbound;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export function toolResultToJSON(toolResult: ToolResult): string {
|
|
49
|
-
return JSON.stringify(ToolResult$outboundSchema.parse(toolResult));
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function toolResultFromJSON(
|
|
53
|
-
jsonString: string,
|
|
54
|
-
): SafeParseResult<ToolResult, SDKValidationError> {
|
|
55
|
-
return safeParse(
|
|
56
|
-
jsonString,
|
|
57
|
-
(x) => ToolResult$inboundSchema.parse(JSON.parse(x)),
|
|
58
|
-
`Failed to parse 'ToolResult' from JSON`,
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
16
|
/** @internal */
|
|
63
17
|
export const ToolResultData$inboundSchema: z.ZodType<
|
|
64
18
|
ToolResultData,
|
|
@@ -66,7 +20,7 @@ export const ToolResultData$inboundSchema: z.ZodType<
|
|
|
66
20
|
unknown
|
|
67
21
|
> = z.object({
|
|
68
22
|
tool_name: z.string(),
|
|
69
|
-
tool_result: z.
|
|
23
|
+
tool_result: z.any().optional(),
|
|
70
24
|
}).transform((v) => {
|
|
71
25
|
return remap$(v, {
|
|
72
26
|
"tool_name": "toolName",
|
|
@@ -77,7 +31,7 @@ export const ToolResultData$inboundSchema: z.ZodType<
|
|
|
77
31
|
/** @internal */
|
|
78
32
|
export type ToolResultData$Outbound = {
|
|
79
33
|
tool_name: string;
|
|
80
|
-
tool_result
|
|
34
|
+
tool_result?: any | undefined;
|
|
81
35
|
};
|
|
82
36
|
|
|
83
37
|
/** @internal */
|
|
@@ -87,7 +41,7 @@ export const ToolResultData$outboundSchema: z.ZodType<
|
|
|
87
41
|
ToolResultData
|
|
88
42
|
> = z.object({
|
|
89
43
|
toolName: z.string(),
|
|
90
|
-
toolResult: z.
|
|
44
|
+
toolResult: z.any().optional(),
|
|
91
45
|
}).transform((v) => {
|
|
92
46
|
return remap$(v, {
|
|
93
47
|
toolName: "tool_name",
|