@orq-ai/node 4.1.0-rc.33 → 4.1.0-rc.35
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/README.md +27 -23
- package/bin/mcp-server.js +6400 -6141
- package/bin/mcp-server.js.map +66 -58
- package/examples/package-lock.json +1 -1
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +3 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +8 -8
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +13 -11
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/thinkingconfigdisabledschema.d.ts +23 -0
- package/models/components/thinkingconfigdisabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigdisabledschema.js +58 -0
- package/models/components/thinkingconfigdisabledschema.js.map +1 -0
- package/models/components/thinkingconfigenabledschema.d.ts +49 -0
- package/models/components/thinkingconfigenabledschema.d.ts.map +1 -0
- package/models/components/thinkingconfigenabledschema.js +84 -0
- package/models/components/thinkingconfigenabledschema.js.map +1 -0
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +17 -204
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +75 -194
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -166
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +32 -227
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createprompt.d.ts +10 -10
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -13
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +9 -102
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +38 -97
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +9 -102
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +38 -97
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +8 -102
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +41 -104
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +8 -102
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +41 -103
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +17 -204
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +75 -193
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/conversations.d.ts +7 -0
- package/sdk/conversations.d.ts.map +1 -1
- package/sdk/conversations.js +10 -0
- package/sdk/conversations.js.map +1 -1
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/index.ts +4 -0
- package/src/models/components/invokedeploymentrequest.ts +25 -17
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/thinkingconfigdisabledschema.ts +59 -0
- package/src/models/components/thinkingconfigenabledschema.ts +106 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createagentrequest.ts +123 -369
- package/src/models/operations/createagentresponserequest.ts +71 -513
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createprompt.ts +23 -25
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +63 -186
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +61 -194
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +64 -194
- package/src/models/operations/streamrunagent.ts +62 -201
- package/src/models/operations/updateagent.ts +123 -379
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/conversations.ts +20 -0
|
@@ -330,16 +330,14 @@ export type Verbosity = ClosedEnum<typeof Verbosity>;
|
|
|
330
330
|
/**
|
|
331
331
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
332
332
|
*/
|
|
333
|
-
export const
|
|
333
|
+
export const ThinkingLevel = {
|
|
334
334
|
Low: "low",
|
|
335
335
|
High: "high",
|
|
336
336
|
} as const;
|
|
337
337
|
/**
|
|
338
338
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
339
339
|
*/
|
|
340
|
-
export type
|
|
341
|
-
typeof CreatePromptThinkingLevel
|
|
342
|
-
>;
|
|
340
|
+
export type ThinkingLevel = ClosedEnum<typeof ThinkingLevel>;
|
|
343
341
|
|
|
344
342
|
/**
|
|
345
343
|
* Optional model parameters like temperature and maxTokens.
|
|
@@ -436,7 +434,7 @@ export type ModelParameters = {
|
|
|
436
434
|
/**
|
|
437
435
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
438
436
|
*/
|
|
439
|
-
thinkingLevel?:
|
|
437
|
+
thinkingLevel?: ThinkingLevel | undefined;
|
|
440
438
|
};
|
|
441
439
|
|
|
442
440
|
/**
|
|
@@ -1111,15 +1109,15 @@ export type CreatePromptVerbosity = ClosedEnum<typeof CreatePromptVerbosity>;
|
|
|
1111
1109
|
/**
|
|
1112
1110
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
1113
1111
|
*/
|
|
1114
|
-
export const
|
|
1112
|
+
export const CreatePromptThinkingLevel = {
|
|
1115
1113
|
Low: "low",
|
|
1116
1114
|
High: "high",
|
|
1117
1115
|
} as const;
|
|
1118
1116
|
/**
|
|
1119
1117
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
1120
1118
|
*/
|
|
1121
|
-
export type
|
|
1122
|
-
typeof
|
|
1119
|
+
export type CreatePromptThinkingLevel = ClosedEnum<
|
|
1120
|
+
typeof CreatePromptThinkingLevel
|
|
1123
1121
|
>;
|
|
1124
1122
|
|
|
1125
1123
|
/**
|
|
@@ -1217,7 +1215,7 @@ export type CreatePromptModelParameters = {
|
|
|
1217
1215
|
/**
|
|
1218
1216
|
* The level of thinking to use for the model. Only supported by `Google AI`
|
|
1219
1217
|
*/
|
|
1220
|
-
thinkingLevel?:
|
|
1218
|
+
thinkingLevel?: CreatePromptThinkingLevel | undefined;
|
|
1221
1219
|
};
|
|
1222
1220
|
|
|
1223
1221
|
export const CreatePromptProvider = {
|
|
@@ -2355,13 +2353,13 @@ export const Verbosity$outboundSchema: z.ZodNativeEnum<typeof Verbosity> =
|
|
|
2355
2353
|
Verbosity$inboundSchema;
|
|
2356
2354
|
|
|
2357
2355
|
/** @internal */
|
|
2358
|
-
export const
|
|
2359
|
-
typeof
|
|
2360
|
-
> = z.nativeEnum(
|
|
2356
|
+
export const ThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
2357
|
+
typeof ThinkingLevel
|
|
2358
|
+
> = z.nativeEnum(ThinkingLevel);
|
|
2361
2359
|
/** @internal */
|
|
2362
|
-
export const
|
|
2363
|
-
typeof
|
|
2364
|
-
> =
|
|
2360
|
+
export const ThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
2361
|
+
typeof ThinkingLevel
|
|
2362
|
+
> = ThinkingLevel$inboundSchema;
|
|
2365
2363
|
|
|
2366
2364
|
/** @internal */
|
|
2367
2365
|
export const ModelParameters$inboundSchema: z.ZodType<
|
|
@@ -2396,7 +2394,7 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
2396
2394
|
reasoningEffort: ReasoningEffort$inboundSchema.optional(),
|
|
2397
2395
|
budgetTokens: z.number().optional(),
|
|
2398
2396
|
verbosity: Verbosity$inboundSchema.optional(),
|
|
2399
|
-
thinkingLevel:
|
|
2397
|
+
thinkingLevel: ThinkingLevel$inboundSchema.optional(),
|
|
2400
2398
|
}).transform((v) => {
|
|
2401
2399
|
return remap$(v, {
|
|
2402
2400
|
"encoding_format": "encodingFormat",
|
|
@@ -2466,7 +2464,7 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
2466
2464
|
reasoningEffort: ReasoningEffort$outboundSchema.optional(),
|
|
2467
2465
|
budgetTokens: z.number().optional(),
|
|
2468
2466
|
verbosity: Verbosity$outboundSchema.optional(),
|
|
2469
|
-
thinkingLevel:
|
|
2467
|
+
thinkingLevel: ThinkingLevel$outboundSchema.optional(),
|
|
2470
2468
|
}).transform((v) => {
|
|
2471
2469
|
return remap$(v, {
|
|
2472
2470
|
encodingFormat: "encoding_format",
|
|
@@ -4401,13 +4399,13 @@ export const CreatePromptVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
|
4401
4399
|
> = CreatePromptVerbosity$inboundSchema;
|
|
4402
4400
|
|
|
4403
4401
|
/** @internal */
|
|
4404
|
-
export const
|
|
4405
|
-
typeof
|
|
4406
|
-
> = z.nativeEnum(
|
|
4402
|
+
export const CreatePromptThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
4403
|
+
typeof CreatePromptThinkingLevel
|
|
4404
|
+
> = z.nativeEnum(CreatePromptThinkingLevel);
|
|
4407
4405
|
/** @internal */
|
|
4408
|
-
export const
|
|
4409
|
-
typeof
|
|
4410
|
-
> =
|
|
4406
|
+
export const CreatePromptThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
4407
|
+
typeof CreatePromptThinkingLevel
|
|
4408
|
+
> = CreatePromptThinkingLevel$inboundSchema;
|
|
4411
4409
|
|
|
4412
4410
|
/** @internal */
|
|
4413
4411
|
export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
@@ -4442,7 +4440,7 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
4442
4440
|
reasoningEffort: CreatePromptReasoningEffort$inboundSchema.optional(),
|
|
4443
4441
|
budgetTokens: z.number().optional(),
|
|
4444
4442
|
verbosity: CreatePromptVerbosity$inboundSchema.optional(),
|
|
4445
|
-
thinkingLevel:
|
|
4443
|
+
thinkingLevel: CreatePromptThinkingLevel$inboundSchema.optional(),
|
|
4446
4444
|
}).transform((v) => {
|
|
4447
4445
|
return remap$(v, {
|
|
4448
4446
|
"encoding_format": "encodingFormat",
|
|
@@ -4512,7 +4510,7 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
4512
4510
|
reasoningEffort: CreatePromptReasoningEffort$outboundSchema.optional(),
|
|
4513
4511
|
budgetTokens: z.number().optional(),
|
|
4514
4512
|
verbosity: CreatePromptVerbosity$outboundSchema.optional(),
|
|
4515
|
-
thinkingLevel:
|
|
4513
|
+
thinkingLevel: CreatePromptThinkingLevel$outboundSchema.optional(),
|
|
4516
4514
|
}).transform((v) => {
|
|
4517
4515
|
return remap$(v, {
|
|
4518
4516
|
encodingFormat: "encoding_format",
|
|
@@ -2458,7 +2458,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
2458
2458
|
z.ZodTypeDef,
|
|
2459
2459
|
unknown
|
|
2460
2460
|
> = z.object({
|
|
2461
|
-
_id: z.string().default("
|
|
2461
|
+
_id: z.string().default("tool_01KC3CE2GE5QK92BHJEZSPF21C"),
|
|
2462
2462
|
path: z.string(),
|
|
2463
2463
|
key: z.string(),
|
|
2464
2464
|
display_name: z.string().optional(),
|
|
@@ -2512,7 +2512,7 @@ export const ResponseBodyCodeExecutionTool$outboundSchema: z.ZodType<
|
|
|
2512
2512
|
z.ZodTypeDef,
|
|
2513
2513
|
ResponseBodyCodeExecutionTool
|
|
2514
2514
|
> = z.object({
|
|
2515
|
-
id: z.string().default("
|
|
2515
|
+
id: z.string().default("tool_01KC3CE2GE5QK92BHJEZSPF21C"),
|
|
2516
2516
|
path: z.string(),
|
|
2517
2517
|
key: z.string(),
|
|
2518
2518
|
displayName: z.string().optional(),
|
|
@@ -2678,7 +2678,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
2678
2678
|
z.ZodTypeDef,
|
|
2679
2679
|
unknown
|
|
2680
2680
|
> = z.object({
|
|
2681
|
-
id: z.string().default("
|
|
2681
|
+
id: z.string().default("01KC3CE2GD77KMWJK7X3WY1J1D"),
|
|
2682
2682
|
name: z.string(),
|
|
2683
2683
|
description: z.string().optional(),
|
|
2684
2684
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2697,7 +2697,7 @@ export const ResponseBodyTools$outboundSchema: z.ZodType<
|
|
|
2697
2697
|
z.ZodTypeDef,
|
|
2698
2698
|
ResponseBodyTools
|
|
2699
2699
|
> = z.object({
|
|
2700
|
-
id: z.string().default("
|
|
2700
|
+
id: z.string().default("01KC3CE2GD77KMWJK7X3WY1J1D"),
|
|
2701
2701
|
name: z.string(),
|
|
2702
2702
|
description: z.string().optional(),
|
|
2703
2703
|
schema: z.lazy(() => CreateToolResponseBodySchema$outboundSchema),
|
|
@@ -2792,7 +2792,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2792
2792
|
z.ZodTypeDef,
|
|
2793
2793
|
unknown
|
|
2794
2794
|
> = z.object({
|
|
2795
|
-
_id: z.string().default("
|
|
2795
|
+
_id: z.string().default("tool_01KC3CE2GBBHAMEGH6R3A0X3EE"),
|
|
2796
2796
|
path: z.string(),
|
|
2797
2797
|
key: z.string(),
|
|
2798
2798
|
display_name: z.string().optional(),
|
|
@@ -2845,7 +2845,7 @@ export const ResponseBodyMCPTool$outboundSchema: z.ZodType<
|
|
|
2845
2845
|
z.ZodTypeDef,
|
|
2846
2846
|
ResponseBodyMCPTool
|
|
2847
2847
|
> = z.object({
|
|
2848
|
-
id: z.string().default("
|
|
2848
|
+
id: z.string().default("tool_01KC3CE2GBBHAMEGH6R3A0X3EE"),
|
|
2849
2849
|
path: z.string(),
|
|
2850
2850
|
key: z.string(),
|
|
2851
2851
|
displayName: z.string().optional(),
|
|
@@ -3196,7 +3196,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
3196
3196
|
z.ZodTypeDef,
|
|
3197
3197
|
unknown
|
|
3198
3198
|
> = z.object({
|
|
3199
|
-
_id: z.string().default("
|
|
3199
|
+
_id: z.string().default("tool_01KC3CE2G7EMX1Z4ZYAA9T38QT"),
|
|
3200
3200
|
path: z.string(),
|
|
3201
3201
|
key: z.string(),
|
|
3202
3202
|
display_name: z.string().optional(),
|
|
@@ -3247,7 +3247,7 @@ export const ResponseBodyHTTPTool$outboundSchema: z.ZodType<
|
|
|
3247
3247
|
z.ZodTypeDef,
|
|
3248
3248
|
ResponseBodyHTTPTool
|
|
3249
3249
|
> = z.object({
|
|
3250
|
-
id: z.string().default("
|
|
3250
|
+
id: z.string().default("tool_01KC3CE2G7EMX1Z4ZYAA9T38QT"),
|
|
3251
3251
|
path: z.string(),
|
|
3252
3252
|
key: z.string(),
|
|
3253
3253
|
displayName: z.string().optional(),
|
|
@@ -3412,7 +3412,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
3412
3412
|
z.ZodTypeDef,
|
|
3413
3413
|
unknown
|
|
3414
3414
|
> = z.object({
|
|
3415
|
-
_id: z.string().default("
|
|
3415
|
+
_id: z.string().default("tool_01KC3CE2FWPEE56EW1S77YPDDJ"),
|
|
3416
3416
|
path: z.string(),
|
|
3417
3417
|
key: z.string(),
|
|
3418
3418
|
display_name: z.string().optional(),
|
|
@@ -3464,7 +3464,7 @@ export const ResponseBodyJSONSchemaTool$outboundSchema: z.ZodType<
|
|
|
3464
3464
|
z.ZodTypeDef,
|
|
3465
3465
|
ResponseBodyJSONSchemaTool
|
|
3466
3466
|
> = z.object({
|
|
3467
|
-
id: z.string().default("
|
|
3467
|
+
id: z.string().default("tool_01KC3CE2FWPEE56EW1S77YPDDJ"),
|
|
3468
3468
|
path: z.string(),
|
|
3469
3469
|
key: z.string(),
|
|
3470
3470
|
displayName: z.string().optional(),
|
|
@@ -3645,7 +3645,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
3645
3645
|
z.ZodTypeDef,
|
|
3646
3646
|
unknown
|
|
3647
3647
|
> = z.object({
|
|
3648
|
-
_id: z.string().default("
|
|
3648
|
+
_id: z.string().default("tool_01KC3CE2FT2DBV9KB7GR9S6D89"),
|
|
3649
3649
|
path: z.string(),
|
|
3650
3650
|
key: z.string(),
|
|
3651
3651
|
display_name: z.string().optional(),
|
|
@@ -3696,7 +3696,7 @@ export const ResponseBodyFunctionTool$outboundSchema: z.ZodType<
|
|
|
3696
3696
|
z.ZodTypeDef,
|
|
3697
3697
|
ResponseBodyFunctionTool
|
|
3698
3698
|
> = z.object({
|
|
3699
|
-
id: z.string().default("
|
|
3699
|
+
id: z.string().default("tool_01KC3CE2FT2DBV9KB7GR9S6D89"),
|
|
3700
3700
|
path: z.string(),
|
|
3701
3701
|
key: z.string(),
|
|
3702
3702
|
displayName: z.string().optional(),
|
|
@@ -119,7 +119,7 @@ export const FileGetResponseBody$inboundSchema: z.ZodType<
|
|
|
119
119
|
file_name: z.string(),
|
|
120
120
|
workspace_id: z.string(),
|
|
121
121
|
created: z.string().datetime({ offset: true }).default(
|
|
122
|
-
"2025-12-
|
|
122
|
+
"2025-12-10T05:40:57.797Z",
|
|
123
123
|
).transform(v => new Date(v)),
|
|
124
124
|
}).transform((v) => {
|
|
125
125
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const FileGetResponseBody$outboundSchema: z.ZodType<
|
|
|
152
152
|
bytes: z.number(),
|
|
153
153
|
fileName: z.string(),
|
|
154
154
|
workspaceId: z.string(),
|
|
155
|
-
created: z.date().default(() => new Date("2025-12-
|
|
155
|
+
created: z.date().default(() => new Date("2025-12-10T05:40:57.797Z"))
|
|
156
156
|
.transform(v => v.toISOString()),
|
|
157
157
|
}).transform((v) => {
|
|
158
158
|
return remap$(v, {
|
|
@@ -157,7 +157,7 @@ export const FileListData$inboundSchema: z.ZodType<
|
|
|
157
157
|
file_name: z.string(),
|
|
158
158
|
workspace_id: z.string(),
|
|
159
159
|
created: z.string().datetime({ offset: true }).default(
|
|
160
|
-
"2025-12-
|
|
160
|
+
"2025-12-10T05:40:57.797Z",
|
|
161
161
|
).transform(v => new Date(v)),
|
|
162
162
|
}).transform((v) => {
|
|
163
163
|
return remap$(v, {
|
|
@@ -190,7 +190,7 @@ export const FileListData$outboundSchema: z.ZodType<
|
|
|
190
190
|
bytes: z.number(),
|
|
191
191
|
fileName: z.string(),
|
|
192
192
|
workspaceId: z.string(),
|
|
193
|
-
created: z.date().default(() => new Date("2025-12-
|
|
193
|
+
created: z.date().default(() => new Date("2025-12-10T05:40:57.797Z"))
|
|
194
194
|
.transform(v => v.toISOString()),
|
|
195
195
|
}).transform((v) => {
|
|
196
196
|
return remap$(v, {
|
|
@@ -196,7 +196,7 @@ export const FileUploadResponseBody$inboundSchema: z.ZodType<
|
|
|
196
196
|
file_name: z.string(),
|
|
197
197
|
workspace_id: z.string(),
|
|
198
198
|
created: z.string().datetime({ offset: true }).default(
|
|
199
|
-
"2025-12-
|
|
199
|
+
"2025-12-10T05:40:57.797Z",
|
|
200
200
|
).transform(v => new Date(v)),
|
|
201
201
|
}).transform((v) => {
|
|
202
202
|
return remap$(v, {
|
|
@@ -229,7 +229,7 @@ export const FileUploadResponseBody$outboundSchema: z.ZodType<
|
|
|
229
229
|
bytes: z.number(),
|
|
230
230
|
fileName: z.string(),
|
|
231
231
|
workspaceId: z.string(),
|
|
232
|
-
created: z.date().default(() => new Date("2025-12-
|
|
232
|
+
created: z.date().default(() => new Date("2025-12-10T05:40:57.797Z"))
|
|
233
233
|
.transform(v => v.toISOString()),
|
|
234
234
|
}).transform((v) => {
|
|
235
235
|
return remap$(v, {
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
|
|
12
|
+
export type GenerateConversationNameRequestBody = {
|
|
13
|
+
/**
|
|
14
|
+
* The conversation context (e.g., user message or conversation summary) to generate a display name from
|
|
15
|
+
*/
|
|
16
|
+
context: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export type GenerateConversationNameRequest = {
|
|
20
|
+
/**
|
|
21
|
+
* The unique identifier of the conversation to generate a name for
|
|
22
|
+
*/
|
|
23
|
+
conversationId: string;
|
|
24
|
+
requestBody: GenerateConversationNameRequestBody;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Type discriminator indicating this is a conversation
|
|
29
|
+
*/
|
|
30
|
+
export const GenerateConversationNameKind = {
|
|
31
|
+
Conversation: "conversation",
|
|
32
|
+
} as const;
|
|
33
|
+
/**
|
|
34
|
+
* Type discriminator indicating this is a conversation
|
|
35
|
+
*/
|
|
36
|
+
export type GenerateConversationNameKind = ClosedEnum<
|
|
37
|
+
typeof GenerateConversationNameKind
|
|
38
|
+
>;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Optional metadata associated with the conversation.
|
|
42
|
+
*/
|
|
43
|
+
export type GenerateConversationNameMetadata = {
|
|
44
|
+
/**
|
|
45
|
+
* Indicates whether the conversation title is currently being generated by AI.
|
|
46
|
+
*/
|
|
47
|
+
generatingTitle?: boolean | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Identifier of the parent entity (agent, deployment, etc.) this conversation belongs to. Used for filtering conversations by entity.
|
|
50
|
+
*/
|
|
51
|
+
entityId?: string | undefined;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Conversation name successfully generated and updated. Returns the complete updated conversation object.
|
|
56
|
+
*/
|
|
57
|
+
export type GenerateConversationNameResponseBody = {
|
|
58
|
+
/**
|
|
59
|
+
* Unique ULID (Universally Unique Lexicographically Sortable Identifier) for the conversation, prefixed with "conv_"
|
|
60
|
+
*/
|
|
61
|
+
id?: string | undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Identifier of the parent entity (agent, deployment, etc.) this conversation belongs to.
|
|
64
|
+
*/
|
|
65
|
+
entityId: string;
|
|
66
|
+
/**
|
|
67
|
+
* Type discriminator indicating this is a conversation
|
|
68
|
+
*/
|
|
69
|
+
kind: GenerateConversationNameKind;
|
|
70
|
+
/**
|
|
71
|
+
* Display name for the conversation. Can be auto-generated or set by the user.
|
|
72
|
+
*/
|
|
73
|
+
displayName: string;
|
|
74
|
+
/**
|
|
75
|
+
* Unix timestamp (in milliseconds) when the conversation was created
|
|
76
|
+
*/
|
|
77
|
+
createdAt: number;
|
|
78
|
+
/**
|
|
79
|
+
* Unix timestamp (in milliseconds) when the conversation was last updated
|
|
80
|
+
*/
|
|
81
|
+
updatedAt: number;
|
|
82
|
+
/**
|
|
83
|
+
* Optional identifier of the user or agent that created the conversation
|
|
84
|
+
*/
|
|
85
|
+
createdById?: string | undefined;
|
|
86
|
+
/**
|
|
87
|
+
* Optional identifier of the user or agent that last updated the conversation
|
|
88
|
+
*/
|
|
89
|
+
updatedById?: string | undefined;
|
|
90
|
+
/**
|
|
91
|
+
* Optional metadata associated with the conversation.
|
|
92
|
+
*/
|
|
93
|
+
metadata?: GenerateConversationNameMetadata | undefined;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/** @internal */
|
|
97
|
+
export const GenerateConversationNameRequestBody$inboundSchema: z.ZodType<
|
|
98
|
+
GenerateConversationNameRequestBody,
|
|
99
|
+
z.ZodTypeDef,
|
|
100
|
+
unknown
|
|
101
|
+
> = z.object({
|
|
102
|
+
context: z.string(),
|
|
103
|
+
});
|
|
104
|
+
/** @internal */
|
|
105
|
+
export type GenerateConversationNameRequestBody$Outbound = {
|
|
106
|
+
context: string;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/** @internal */
|
|
110
|
+
export const GenerateConversationNameRequestBody$outboundSchema: z.ZodType<
|
|
111
|
+
GenerateConversationNameRequestBody$Outbound,
|
|
112
|
+
z.ZodTypeDef,
|
|
113
|
+
GenerateConversationNameRequestBody
|
|
114
|
+
> = z.object({
|
|
115
|
+
context: z.string(),
|
|
116
|
+
});
|
|
117
|
+
|
|
118
|
+
export function generateConversationNameRequestBodyToJSON(
|
|
119
|
+
generateConversationNameRequestBody: GenerateConversationNameRequestBody,
|
|
120
|
+
): string {
|
|
121
|
+
return JSON.stringify(
|
|
122
|
+
GenerateConversationNameRequestBody$outboundSchema.parse(
|
|
123
|
+
generateConversationNameRequestBody,
|
|
124
|
+
),
|
|
125
|
+
);
|
|
126
|
+
}
|
|
127
|
+
export function generateConversationNameRequestBodyFromJSON(
|
|
128
|
+
jsonString: string,
|
|
129
|
+
): SafeParseResult<GenerateConversationNameRequestBody, SDKValidationError> {
|
|
130
|
+
return safeParse(
|
|
131
|
+
jsonString,
|
|
132
|
+
(x) =>
|
|
133
|
+
GenerateConversationNameRequestBody$inboundSchema.parse(JSON.parse(x)),
|
|
134
|
+
`Failed to parse 'GenerateConversationNameRequestBody' from JSON`,
|
|
135
|
+
);
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const GenerateConversationNameRequest$inboundSchema: z.ZodType<
|
|
140
|
+
GenerateConversationNameRequest,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
unknown
|
|
143
|
+
> = z.object({
|
|
144
|
+
conversation_id: z.string(),
|
|
145
|
+
RequestBody: z.lazy(() => GenerateConversationNameRequestBody$inboundSchema),
|
|
146
|
+
}).transform((v) => {
|
|
147
|
+
return remap$(v, {
|
|
148
|
+
"conversation_id": "conversationId",
|
|
149
|
+
"RequestBody": "requestBody",
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
/** @internal */
|
|
153
|
+
export type GenerateConversationNameRequest$Outbound = {
|
|
154
|
+
conversation_id: string;
|
|
155
|
+
RequestBody: GenerateConversationNameRequestBody$Outbound;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/** @internal */
|
|
159
|
+
export const GenerateConversationNameRequest$outboundSchema: z.ZodType<
|
|
160
|
+
GenerateConversationNameRequest$Outbound,
|
|
161
|
+
z.ZodTypeDef,
|
|
162
|
+
GenerateConversationNameRequest
|
|
163
|
+
> = z.object({
|
|
164
|
+
conversationId: z.string(),
|
|
165
|
+
requestBody: z.lazy(() => GenerateConversationNameRequestBody$outboundSchema),
|
|
166
|
+
}).transform((v) => {
|
|
167
|
+
return remap$(v, {
|
|
168
|
+
conversationId: "conversation_id",
|
|
169
|
+
requestBody: "RequestBody",
|
|
170
|
+
});
|
|
171
|
+
});
|
|
172
|
+
|
|
173
|
+
export function generateConversationNameRequestToJSON(
|
|
174
|
+
generateConversationNameRequest: GenerateConversationNameRequest,
|
|
175
|
+
): string {
|
|
176
|
+
return JSON.stringify(
|
|
177
|
+
GenerateConversationNameRequest$outboundSchema.parse(
|
|
178
|
+
generateConversationNameRequest,
|
|
179
|
+
),
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
export function generateConversationNameRequestFromJSON(
|
|
183
|
+
jsonString: string,
|
|
184
|
+
): SafeParseResult<GenerateConversationNameRequest, SDKValidationError> {
|
|
185
|
+
return safeParse(
|
|
186
|
+
jsonString,
|
|
187
|
+
(x) => GenerateConversationNameRequest$inboundSchema.parse(JSON.parse(x)),
|
|
188
|
+
`Failed to parse 'GenerateConversationNameRequest' from JSON`,
|
|
189
|
+
);
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/** @internal */
|
|
193
|
+
export const GenerateConversationNameKind$inboundSchema: z.ZodNativeEnum<
|
|
194
|
+
typeof GenerateConversationNameKind
|
|
195
|
+
> = z.nativeEnum(GenerateConversationNameKind);
|
|
196
|
+
/** @internal */
|
|
197
|
+
export const GenerateConversationNameKind$outboundSchema: z.ZodNativeEnum<
|
|
198
|
+
typeof GenerateConversationNameKind
|
|
199
|
+
> = GenerateConversationNameKind$inboundSchema;
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const GenerateConversationNameMetadata$inboundSchema: z.ZodType<
|
|
203
|
+
GenerateConversationNameMetadata,
|
|
204
|
+
z.ZodTypeDef,
|
|
205
|
+
unknown
|
|
206
|
+
> = z.object({
|
|
207
|
+
generating_title: z.boolean().optional(),
|
|
208
|
+
entity_id: z.string().optional(),
|
|
209
|
+
}).transform((v) => {
|
|
210
|
+
return remap$(v, {
|
|
211
|
+
"generating_title": "generatingTitle",
|
|
212
|
+
"entity_id": "entityId",
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
/** @internal */
|
|
216
|
+
export type GenerateConversationNameMetadata$Outbound = {
|
|
217
|
+
generating_title?: boolean | undefined;
|
|
218
|
+
entity_id?: string | undefined;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
/** @internal */
|
|
222
|
+
export const GenerateConversationNameMetadata$outboundSchema: z.ZodType<
|
|
223
|
+
GenerateConversationNameMetadata$Outbound,
|
|
224
|
+
z.ZodTypeDef,
|
|
225
|
+
GenerateConversationNameMetadata
|
|
226
|
+
> = z.object({
|
|
227
|
+
generatingTitle: z.boolean().optional(),
|
|
228
|
+
entityId: z.string().optional(),
|
|
229
|
+
}).transform((v) => {
|
|
230
|
+
return remap$(v, {
|
|
231
|
+
generatingTitle: "generating_title",
|
|
232
|
+
entityId: "entity_id",
|
|
233
|
+
});
|
|
234
|
+
});
|
|
235
|
+
|
|
236
|
+
export function generateConversationNameMetadataToJSON(
|
|
237
|
+
generateConversationNameMetadata: GenerateConversationNameMetadata,
|
|
238
|
+
): string {
|
|
239
|
+
return JSON.stringify(
|
|
240
|
+
GenerateConversationNameMetadata$outboundSchema.parse(
|
|
241
|
+
generateConversationNameMetadata,
|
|
242
|
+
),
|
|
243
|
+
);
|
|
244
|
+
}
|
|
245
|
+
export function generateConversationNameMetadataFromJSON(
|
|
246
|
+
jsonString: string,
|
|
247
|
+
): SafeParseResult<GenerateConversationNameMetadata, SDKValidationError> {
|
|
248
|
+
return safeParse(
|
|
249
|
+
jsonString,
|
|
250
|
+
(x) => GenerateConversationNameMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
251
|
+
`Failed to parse 'GenerateConversationNameMetadata' from JSON`,
|
|
252
|
+
);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
/** @internal */
|
|
256
|
+
export const GenerateConversationNameResponseBody$inboundSchema: z.ZodType<
|
|
257
|
+
GenerateConversationNameResponseBody,
|
|
258
|
+
z.ZodTypeDef,
|
|
259
|
+
unknown
|
|
260
|
+
> = z.object({
|
|
261
|
+
_id: z.string().default("conv_01kc3ce28pyjrqge73b610b30g"),
|
|
262
|
+
entity_id: z.string(),
|
|
263
|
+
kind: GenerateConversationNameKind$inboundSchema,
|
|
264
|
+
display_name: z.string(),
|
|
265
|
+
created_at: z.number(),
|
|
266
|
+
updated_at: z.number(),
|
|
267
|
+
created_by_id: z.string().optional(),
|
|
268
|
+
updated_by_id: z.string().optional(),
|
|
269
|
+
metadata: z.lazy(() => GenerateConversationNameMetadata$inboundSchema)
|
|
270
|
+
.optional(),
|
|
271
|
+
}).transform((v) => {
|
|
272
|
+
return remap$(v, {
|
|
273
|
+
"_id": "id",
|
|
274
|
+
"entity_id": "entityId",
|
|
275
|
+
"display_name": "displayName",
|
|
276
|
+
"created_at": "createdAt",
|
|
277
|
+
"updated_at": "updatedAt",
|
|
278
|
+
"created_by_id": "createdById",
|
|
279
|
+
"updated_by_id": "updatedById",
|
|
280
|
+
});
|
|
281
|
+
});
|
|
282
|
+
/** @internal */
|
|
283
|
+
export type GenerateConversationNameResponseBody$Outbound = {
|
|
284
|
+
_id: string;
|
|
285
|
+
entity_id: string;
|
|
286
|
+
kind: string;
|
|
287
|
+
display_name: string;
|
|
288
|
+
created_at: number;
|
|
289
|
+
updated_at: number;
|
|
290
|
+
created_by_id?: string | undefined;
|
|
291
|
+
updated_by_id?: string | undefined;
|
|
292
|
+
metadata?: GenerateConversationNameMetadata$Outbound | undefined;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/** @internal */
|
|
296
|
+
export const GenerateConversationNameResponseBody$outboundSchema: z.ZodType<
|
|
297
|
+
GenerateConversationNameResponseBody$Outbound,
|
|
298
|
+
z.ZodTypeDef,
|
|
299
|
+
GenerateConversationNameResponseBody
|
|
300
|
+
> = z.object({
|
|
301
|
+
id: z.string().default("conv_01kc3ce28pyjrqge73b610b30g"),
|
|
302
|
+
entityId: z.string(),
|
|
303
|
+
kind: GenerateConversationNameKind$outboundSchema,
|
|
304
|
+
displayName: z.string(),
|
|
305
|
+
createdAt: z.number(),
|
|
306
|
+
updatedAt: z.number(),
|
|
307
|
+
createdById: z.string().optional(),
|
|
308
|
+
updatedById: z.string().optional(),
|
|
309
|
+
metadata: z.lazy(() => GenerateConversationNameMetadata$outboundSchema)
|
|
310
|
+
.optional(),
|
|
311
|
+
}).transform((v) => {
|
|
312
|
+
return remap$(v, {
|
|
313
|
+
id: "_id",
|
|
314
|
+
entityId: "entity_id",
|
|
315
|
+
displayName: "display_name",
|
|
316
|
+
createdAt: "created_at",
|
|
317
|
+
updatedAt: "updated_at",
|
|
318
|
+
createdById: "created_by_id",
|
|
319
|
+
updatedById: "updated_by_id",
|
|
320
|
+
});
|
|
321
|
+
});
|
|
322
|
+
|
|
323
|
+
export function generateConversationNameResponseBodyToJSON(
|
|
324
|
+
generateConversationNameResponseBody: GenerateConversationNameResponseBody,
|
|
325
|
+
): string {
|
|
326
|
+
return JSON.stringify(
|
|
327
|
+
GenerateConversationNameResponseBody$outboundSchema.parse(
|
|
328
|
+
generateConversationNameResponseBody,
|
|
329
|
+
),
|
|
330
|
+
);
|
|
331
|
+
}
|
|
332
|
+
export function generateConversationNameResponseBodyFromJSON(
|
|
333
|
+
jsonString: string,
|
|
334
|
+
): SafeParseResult<GenerateConversationNameResponseBody, SDKValidationError> {
|
|
335
|
+
return safeParse(
|
|
336
|
+
jsonString,
|
|
337
|
+
(x) =>
|
|
338
|
+
GenerateConversationNameResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
339
|
+
`Failed to parse 'GenerateConversationNameResponseBody' from JSON`,
|
|
340
|
+
);
|
|
341
|
+
}
|