syllable-sdk 1.0.3-rc.1 → 1.0.3-rc.2
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/bin/mcp-server.js +20 -10
- package/bin/mcp-server.js.map +6 -6
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/insightsoutput.d.ts +26 -0
- package/models/components/insightsoutput.d.ts.map +1 -1
- package/models/components/insightsoutput.js +28 -1
- package/models/components/insightsoutput.js.map +1 -1
- package/openapi.json +18 -0
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/insightsoutput.ts +63 -0
package/jsr.json
CHANGED
package/lib/config.d.ts
CHANGED
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.2";
|
|
34
|
-
readonly sdkVersion: "1.0.3-rc.
|
|
34
|
+
readonly sdkVersion: "1.0.3-rc.2";
|
|
35
35
|
readonly genVersion: "2.723.11";
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.3-rc.2 2.723.11 0.0.2 syllable-sdk";
|
|
37
37
|
};
|
|
38
38
|
//# 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: "1.0.3-rc.
|
|
34
|
+
sdkVersion: "1.0.3-rc.2",
|
|
35
35
|
genVersion: "2.723.11",
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.2 2.723.11 0.0.2 syllable-sdk",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
package/mcp-server/mcp-server.js
CHANGED
|
@@ -22,7 +22,7 @@ const routes = (0, core_1.buildRouteMap)({
|
|
|
22
22
|
exports.app = (0, core_1.buildApplication)(routes, {
|
|
23
23
|
name: "mcp",
|
|
24
24
|
versionInfo: {
|
|
25
|
-
currentVersion: "1.0.3-rc.
|
|
25
|
+
currentVersion: "1.0.3-rc.2",
|
|
26
26
|
},
|
|
27
27
|
});
|
|
28
28
|
(0, core_1.run)(exports.app, node_process_1.default.argv.slice(2), (0, cli_js_1.buildContext)(node_process_1.default));
|
package/mcp-server/server.js
CHANGED
|
@@ -157,7 +157,7 @@ const usersUsersSendEmail_js_1 = require("./tools/usersUsersSendEmail.js");
|
|
|
157
157
|
function createMCPServer(deps) {
|
|
158
158
|
const server = new mcp_js_1.McpServer({
|
|
159
159
|
name: "SyllableSDK",
|
|
160
|
-
version: "1.0.3-rc.
|
|
160
|
+
version: "1.0.3-rc.2",
|
|
161
161
|
});
|
|
162
162
|
const client = new core_js_1.SyllableSDKCore({
|
|
163
163
|
apiKeyHeader: deps.apiKeyHeader,
|
|
@@ -2,6 +2,7 @@ import * as z from "zod";
|
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type JsonValue = string | number | number;
|
|
5
|
+
export type UploadFileMetadata = {};
|
|
5
6
|
/**
|
|
6
7
|
* Response model for an insight tool.
|
|
7
8
|
*/
|
|
@@ -52,6 +53,10 @@ export type InsightsOutput = {
|
|
|
52
53
|
* Timestamp at which insight tool result was last updated
|
|
53
54
|
*/
|
|
54
55
|
updatedAt?: Date | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* Metadata associated with the uploaded file
|
|
58
|
+
*/
|
|
59
|
+
uploadFileMetadata?: UploadFileMetadata | null | undefined;
|
|
55
60
|
};
|
|
56
61
|
/** @internal */
|
|
57
62
|
export declare const JsonValue$inboundSchema: z.ZodType<JsonValue, z.ZodTypeDef, unknown>;
|
|
@@ -74,6 +79,26 @@ export declare namespace JsonValue$ {
|
|
|
74
79
|
export declare function jsonValueToJSON(jsonValue: JsonValue): string;
|
|
75
80
|
export declare function jsonValueFromJSON(jsonString: string): SafeParseResult<JsonValue, SDKValidationError>;
|
|
76
81
|
/** @internal */
|
|
82
|
+
export declare const UploadFileMetadata$inboundSchema: z.ZodType<UploadFileMetadata, z.ZodTypeDef, unknown>;
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type UploadFileMetadata$Outbound = {};
|
|
85
|
+
/** @internal */
|
|
86
|
+
export declare const UploadFileMetadata$outboundSchema: z.ZodType<UploadFileMetadata$Outbound, z.ZodTypeDef, UploadFileMetadata>;
|
|
87
|
+
/**
|
|
88
|
+
* @internal
|
|
89
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
90
|
+
*/
|
|
91
|
+
export declare namespace UploadFileMetadata$ {
|
|
92
|
+
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
93
|
+
const inboundSchema: z.ZodType<UploadFileMetadata, z.ZodTypeDef, unknown>;
|
|
94
|
+
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
95
|
+
const outboundSchema: z.ZodType<UploadFileMetadata$Outbound, z.ZodTypeDef, UploadFileMetadata>;
|
|
96
|
+
/** @deprecated use `UploadFileMetadata$Outbound` instead. */
|
|
97
|
+
type Outbound = UploadFileMetadata$Outbound;
|
|
98
|
+
}
|
|
99
|
+
export declare function uploadFileMetadataToJSON(uploadFileMetadata: UploadFileMetadata): string;
|
|
100
|
+
export declare function uploadFileMetadataFromJSON(jsonString: string): SafeParseResult<UploadFileMetadata, SDKValidationError>;
|
|
101
|
+
/** @internal */
|
|
77
102
|
export declare const InsightsOutput$inboundSchema: z.ZodType<InsightsOutput, z.ZodTypeDef, unknown>;
|
|
78
103
|
/** @internal */
|
|
79
104
|
export type InsightsOutput$Outbound = {
|
|
@@ -90,6 +115,7 @@ export type InsightsOutput$Outbound = {
|
|
|
90
115
|
};
|
|
91
116
|
created_at?: string | undefined;
|
|
92
117
|
updated_at?: string | undefined;
|
|
118
|
+
upload_file_metadata?: UploadFileMetadata$Outbound | null | undefined;
|
|
93
119
|
};
|
|
94
120
|
/** @internal */
|
|
95
121
|
export declare const InsightsOutput$outboundSchema: z.ZodType<InsightsOutput$Outbound, z.ZodTypeDef, InsightsOutput>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/insightsoutput.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,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC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AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CA8Bd,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"}
|
|
@@ -36,9 +36,11 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.InsightsOutput$ = exports.InsightsOutput$outboundSchema = exports.InsightsOutput$inboundSchema = exports.JsonValue$ = exports.JsonValue$outboundSchema = exports.JsonValue$inboundSchema = void 0;
|
|
39
|
+
exports.InsightsOutput$ = exports.InsightsOutput$outboundSchema = exports.InsightsOutput$inboundSchema = exports.UploadFileMetadata$ = exports.UploadFileMetadata$outboundSchema = exports.UploadFileMetadata$inboundSchema = exports.JsonValue$ = exports.JsonValue$outboundSchema = exports.JsonValue$inboundSchema = void 0;
|
|
40
40
|
exports.jsonValueToJSON = jsonValueToJSON;
|
|
41
41
|
exports.jsonValueFromJSON = jsonValueFromJSON;
|
|
42
|
+
exports.uploadFileMetadataToJSON = uploadFileMetadataToJSON;
|
|
43
|
+
exports.uploadFileMetadataFromJSON = uploadFileMetadataFromJSON;
|
|
42
44
|
exports.insightsOutputToJSON = insightsOutputToJSON;
|
|
43
45
|
exports.insightsOutputFromJSON = insightsOutputFromJSON;
|
|
44
46
|
const z = __importStar(require("zod"));
|
|
@@ -66,6 +68,27 @@ function jsonValueFromJSON(jsonString) {
|
|
|
66
68
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.JsonValue$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'JsonValue' from JSON`);
|
|
67
69
|
}
|
|
68
70
|
/** @internal */
|
|
71
|
+
exports.UploadFileMetadata$inboundSchema = z.object({});
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.UploadFileMetadata$outboundSchema = z.object({});
|
|
74
|
+
/**
|
|
75
|
+
* @internal
|
|
76
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
77
|
+
*/
|
|
78
|
+
var UploadFileMetadata$;
|
|
79
|
+
(function (UploadFileMetadata$) {
|
|
80
|
+
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
81
|
+
UploadFileMetadata$.inboundSchema = exports.UploadFileMetadata$inboundSchema;
|
|
82
|
+
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
83
|
+
UploadFileMetadata$.outboundSchema = exports.UploadFileMetadata$outboundSchema;
|
|
84
|
+
})(UploadFileMetadata$ || (exports.UploadFileMetadata$ = UploadFileMetadata$ = {}));
|
|
85
|
+
function uploadFileMetadataToJSON(uploadFileMetadata) {
|
|
86
|
+
return JSON.stringify(exports.UploadFileMetadata$outboundSchema.parse(uploadFileMetadata));
|
|
87
|
+
}
|
|
88
|
+
function uploadFileMetadataFromJSON(jsonString) {
|
|
89
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UploadFileMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UploadFileMetadata' from JSON`);
|
|
90
|
+
}
|
|
91
|
+
/** @internal */
|
|
69
92
|
exports.InsightsOutput$inboundSchema = z.object({
|
|
70
93
|
id: z.number().int(),
|
|
71
94
|
session_id: z.nullable(z.number().int()).optional(),
|
|
@@ -80,6 +103,7 @@ exports.InsightsOutput$inboundSchema = z.object({
|
|
|
80
103
|
.optional(),
|
|
81
104
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
82
105
|
.optional(),
|
|
106
|
+
upload_file_metadata: z.nullable(z.lazy(() => exports.UploadFileMetadata$inboundSchema)).optional(),
|
|
83
107
|
}).transform((v) => {
|
|
84
108
|
return (0, primitives_js_1.remap)(v, {
|
|
85
109
|
"session_id": "sessionId",
|
|
@@ -92,6 +116,7 @@ exports.InsightsOutput$inboundSchema = z.object({
|
|
|
92
116
|
"json_value": "jsonValue",
|
|
93
117
|
"created_at": "createdAt",
|
|
94
118
|
"updated_at": "updatedAt",
|
|
119
|
+
"upload_file_metadata": "uploadFileMetadata",
|
|
95
120
|
});
|
|
96
121
|
});
|
|
97
122
|
/** @internal */
|
|
@@ -107,6 +132,7 @@ exports.InsightsOutput$outboundSchema = z.object({
|
|
|
107
132
|
jsonValue: z.record(z.union([z.string(), z.number().int(), z.number()])),
|
|
108
133
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
109
134
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
135
|
+
uploadFileMetadata: z.nullable(z.lazy(() => exports.UploadFileMetadata$outboundSchema)).optional(),
|
|
110
136
|
}).transform((v) => {
|
|
111
137
|
return (0, primitives_js_1.remap)(v, {
|
|
112
138
|
sessionId: "session_id",
|
|
@@ -119,6 +145,7 @@ exports.InsightsOutput$outboundSchema = z.object({
|
|
|
119
145
|
jsonValue: "json_value",
|
|
120
146
|
createdAt: "created_at",
|
|
121
147
|
updatedAt: "updated_at",
|
|
148
|
+
uploadFileMetadata: "upload_file_metadata",
|
|
122
149
|
});
|
|
123
150
|
});
|
|
124
151
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"insightsoutput.js","sourceRoot":"","sources":["../../src/models/components/insightsoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"insightso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|
|
17973
|
+
"anyOf": [
|
|
17974
|
+
{
|
|
17975
|
+
"type": "object"
|
|
17976
|
+
},
|
|
17977
|
+
{
|
|
17978
|
+
"type": "null"
|
|
17979
|
+
}
|
|
17980
|
+
],
|
|
17981
|
+
"title": "Upload File Metadata",
|
|
17982
|
+
"description": "Metadata associated with the uploaded file",
|
|
17983
|
+
"examples": [
|
|
17984
|
+
{
|
|
17985
|
+
"duration": "00:10:00",
|
|
17986
|
+
"size": "10MB"
|
|
17987
|
+
}
|
|
17988
|
+
]
|
|
17971
17989
|
}
|
|
17972
17990
|
},
|
|
17973
17991
|
"type": "object",
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,7 +61,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "1.0.3-rc.
|
|
64
|
+
sdkVersion: "1.0.3-rc.2",
|
|
65
65
|
genVersion: "2.723.11",
|
|
66
|
-
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.
|
|
66
|
+
userAgent: "speakeasy-sdk/typescript 1.0.3-rc.2 2.723.11 0.0.2 syllable-sdk",
|
|
67
67
|
} as const;
|
package/src/mcp-server/server.ts
CHANGED
|
@@ -10,6 +10,8 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
10
10
|
|
|
11
11
|
export type JsonValue = string | number | number;
|
|
12
12
|
|
|
13
|
+
export type UploadFileMetadata = {};
|
|
14
|
+
|
|
13
15
|
/**
|
|
14
16
|
* Response model for an insight tool.
|
|
15
17
|
*/
|
|
@@ -58,6 +60,10 @@ export type InsightsOutput = {
|
|
|
58
60
|
* Timestamp at which insight tool result was last updated
|
|
59
61
|
*/
|
|
60
62
|
updatedAt?: Date | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Metadata associated with the uploaded file
|
|
65
|
+
*/
|
|
66
|
+
uploadFileMetadata?: UploadFileMetadata | null | undefined;
|
|
61
67
|
};
|
|
62
68
|
|
|
63
69
|
/** @internal */
|
|
@@ -104,6 +110,54 @@ export function jsonValueFromJSON(
|
|
|
104
110
|
);
|
|
105
111
|
}
|
|
106
112
|
|
|
113
|
+
/** @internal */
|
|
114
|
+
export const UploadFileMetadata$inboundSchema: z.ZodType<
|
|
115
|
+
UploadFileMetadata,
|
|
116
|
+
z.ZodTypeDef,
|
|
117
|
+
unknown
|
|
118
|
+
> = z.object({});
|
|
119
|
+
|
|
120
|
+
/** @internal */
|
|
121
|
+
export type UploadFileMetadata$Outbound = {};
|
|
122
|
+
|
|
123
|
+
/** @internal */
|
|
124
|
+
export const UploadFileMetadata$outboundSchema: z.ZodType<
|
|
125
|
+
UploadFileMetadata$Outbound,
|
|
126
|
+
z.ZodTypeDef,
|
|
127
|
+
UploadFileMetadata
|
|
128
|
+
> = z.object({});
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
133
|
+
*/
|
|
134
|
+
export namespace UploadFileMetadata$ {
|
|
135
|
+
/** @deprecated use `UploadFileMetadata$inboundSchema` instead. */
|
|
136
|
+
export const inboundSchema = UploadFileMetadata$inboundSchema;
|
|
137
|
+
/** @deprecated use `UploadFileMetadata$outboundSchema` instead. */
|
|
138
|
+
export const outboundSchema = UploadFileMetadata$outboundSchema;
|
|
139
|
+
/** @deprecated use `UploadFileMetadata$Outbound` instead. */
|
|
140
|
+
export type Outbound = UploadFileMetadata$Outbound;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export function uploadFileMetadataToJSON(
|
|
144
|
+
uploadFileMetadata: UploadFileMetadata,
|
|
145
|
+
): string {
|
|
146
|
+
return JSON.stringify(
|
|
147
|
+
UploadFileMetadata$outboundSchema.parse(uploadFileMetadata),
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function uploadFileMetadataFromJSON(
|
|
152
|
+
jsonString: string,
|
|
153
|
+
): SafeParseResult<UploadFileMetadata, SDKValidationError> {
|
|
154
|
+
return safeParse(
|
|
155
|
+
jsonString,
|
|
156
|
+
(x) => UploadFileMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
157
|
+
`Failed to parse 'UploadFileMetadata' from JSON`,
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
|
|
107
161
|
/** @internal */
|
|
108
162
|
export const InsightsOutput$inboundSchema: z.ZodType<
|
|
109
163
|
InsightsOutput,
|
|
@@ -123,6 +177,9 @@ export const InsightsOutput$inboundSchema: z.ZodType<
|
|
|
123
177
|
.optional(),
|
|
124
178
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
125
179
|
.optional(),
|
|
180
|
+
upload_file_metadata: z.nullable(
|
|
181
|
+
z.lazy(() => UploadFileMetadata$inboundSchema),
|
|
182
|
+
).optional(),
|
|
126
183
|
}).transform((v) => {
|
|
127
184
|
return remap$(v, {
|
|
128
185
|
"session_id": "sessionId",
|
|
@@ -135,6 +192,7 @@ export const InsightsOutput$inboundSchema: z.ZodType<
|
|
|
135
192
|
"json_value": "jsonValue",
|
|
136
193
|
"created_at": "createdAt",
|
|
137
194
|
"updated_at": "updatedAt",
|
|
195
|
+
"upload_file_metadata": "uploadFileMetadata",
|
|
138
196
|
});
|
|
139
197
|
});
|
|
140
198
|
|
|
@@ -151,6 +209,7 @@ export type InsightsOutput$Outbound = {
|
|
|
151
209
|
json_value: { [k: string]: string | number | number };
|
|
152
210
|
created_at?: string | undefined;
|
|
153
211
|
updated_at?: string | undefined;
|
|
212
|
+
upload_file_metadata?: UploadFileMetadata$Outbound | null | undefined;
|
|
154
213
|
};
|
|
155
214
|
|
|
156
215
|
/** @internal */
|
|
@@ -170,6 +229,9 @@ export const InsightsOutput$outboundSchema: z.ZodType<
|
|
|
170
229
|
jsonValue: z.record(z.union([z.string(), z.number().int(), z.number()])),
|
|
171
230
|
createdAt: z.date().transform(v => v.toISOString()).optional(),
|
|
172
231
|
updatedAt: z.date().transform(v => v.toISOString()).optional(),
|
|
232
|
+
uploadFileMetadata: z.nullable(
|
|
233
|
+
z.lazy(() => UploadFileMetadata$outboundSchema),
|
|
234
|
+
).optional(),
|
|
173
235
|
}).transform((v) => {
|
|
174
236
|
return remap$(v, {
|
|
175
237
|
sessionId: "session_id",
|
|
@@ -182,6 +244,7 @@ export const InsightsOutput$outboundSchema: z.ZodType<
|
|
|
182
244
|
jsonValue: "json_value",
|
|
183
245
|
createdAt: "created_at",
|
|
184
246
|
updatedAt: "updated_at",
|
|
247
|
+
uploadFileMetadata: "upload_file_metadata",
|
|
185
248
|
});
|
|
186
249
|
});
|
|
187
250
|
|