@orq-ai/node 3.12.16 → 3.12.19
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 +112 -112
- package/bin/mcp-server.js.map +30 -30
- package/examples/package-lock.json +1 -1
- 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.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +107 -90
- package/packages/orq-rc/docs/sdks/tools/README.md +488 -0
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/toolsCreate.ts +163 -0
- package/packages/orq-rc/src/funcs/toolsDelete.ts +167 -0
- package/packages/orq-rc/src/funcs/toolsDuplicate.ts +175 -0
- package/packages/orq-rc/src/funcs/toolsList.ts +176 -0
- package/packages/orq-rc/src/funcs/toolsRetrieve.ts +166 -0
- package/packages/orq-rc/src/funcs/toolsUpdate.ts +176 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +13 -1
- package/packages/orq-rc/src/mcp-server/tools/toolsCreate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDelete.ts +35 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsDuplicate.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsList.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsRetrieve.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/toolsUpdate.ts +37 -0
- package/packages/orq-rc/src/models/components/callsubagenttool.ts +109 -0
- package/packages/orq-rc/src/models/components/codeexecutiontool.ts +293 -0
- package/packages/orq-rc/src/models/components/currentdatetool.ts +107 -0
- package/packages/orq-rc/src/models/components/deployments.ts +52 -45
- package/packages/orq-rc/src/models/components/functiontool.ts +195 -0
- package/packages/orq-rc/src/models/components/googlesearchtool.ts +108 -0
- package/packages/orq-rc/src/models/components/httptool.ts +532 -0
- package/packages/orq-rc/src/models/components/index.ts +13 -0
- package/packages/orq-rc/src/models/components/queryknowledgebasetool.ts +111 -0
- package/packages/orq-rc/src/models/components/querymemorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrieveagentstool.ts +109 -0
- package/packages/orq-rc/src/models/components/retrieveknowledgebasestool.ts +111 -0
- package/packages/orq-rc/src/models/components/retrievememorystorestool.ts +111 -0
- package/packages/orq-rc/src/models/components/webscrapertool.ts +105 -0
- package/packages/orq-rc/src/models/components/writememorystoretool.ts +111 -0
- package/packages/orq-rc/src/models/errors/duplicatetool.ts +91 -0
- package/packages/orq-rc/src/models/errors/index.ts +2 -0
- package/packages/orq-rc/src/models/errors/updatetool.ts +91 -0
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +10 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +60 -56
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/creatememorystore.ts +137 -136
- package/packages/orq-rc/src/models/operations/createprompt.ts +631 -314
- package/packages/orq-rc/src/models/operations/createtool.ts +4027 -0
- package/packages/orq-rc/src/models/operations/deletetool.ts +75 -0
- package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +8 -6
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +362 -194
- package/packages/orq-rc/src/models/operations/deployments.ts +329 -160
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +8 -6
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +2311 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getagent.ts +10 -10
- package/packages/orq-rc/src/models/operations/getallprompts.ts +333 -168
- package/packages/orq-rc/src/models/operations/getalltools.ts +2278 -0
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/getoneknowledge.ts +9 -0
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +329 -167
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +337 -168
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +10 -10
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +6 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/listknowledgebases.ts +9 -0
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +354 -183
- package/packages/orq-rc/src/models/operations/parse.ts +20 -335
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +6 -5
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +2303 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +412 -1375
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +399 -1449
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +10 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +57 -57
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +18 -0
- package/packages/orq-rc/src/models/operations/updatememorystore.ts +136 -168
- package/packages/orq-rc/src/models/operations/updateprompt.ts +668 -335
- package/packages/orq-rc/src/models/operations/updatetool.ts +4231 -0
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/tools.ts +117 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- 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/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
|
@@ -42,32 +42,55 @@ export const CreatePromptFormat = {
|
|
|
42
42
|
*/
|
|
43
43
|
export type CreatePromptFormat = ClosedEnum<typeof CreatePromptFormat>;
|
|
44
44
|
|
|
45
|
-
export const
|
|
45
|
+
export const ResponseFormat4 = {
|
|
46
|
+
Json: "json",
|
|
46
47
|
Text: "text",
|
|
48
|
+
Srt: "srt",
|
|
49
|
+
VerboseJson: "verbose_json",
|
|
50
|
+
Vtt: "vtt",
|
|
47
51
|
} as const;
|
|
48
|
-
export type
|
|
49
|
-
|
|
52
|
+
export type ResponseFormat4 = ClosedEnum<typeof ResponseFormat4>;
|
|
53
|
+
|
|
54
|
+
export const ResponseFormat3 = {
|
|
55
|
+
Url: "url",
|
|
56
|
+
Base64Json: "base64_json",
|
|
57
|
+
} as const;
|
|
58
|
+
export type ResponseFormat3 = ClosedEnum<typeof ResponseFormat3>;
|
|
59
|
+
|
|
60
|
+
export const ResponseFormat2 = {
|
|
61
|
+
Mp3: "mp3",
|
|
62
|
+
Opus: "opus",
|
|
63
|
+
Aac: "aac",
|
|
64
|
+
Flac: "flac",
|
|
65
|
+
Wav: "wav",
|
|
66
|
+
Pcm: "pcm",
|
|
67
|
+
} as const;
|
|
68
|
+
export type ResponseFormat2 = ClosedEnum<typeof ResponseFormat2>;
|
|
69
|
+
|
|
70
|
+
export const CreatePrompt1PromptsType = {
|
|
71
|
+
Text: "text",
|
|
72
|
+
} as const;
|
|
73
|
+
export type CreatePrompt1PromptsType = ClosedEnum<
|
|
74
|
+
typeof CreatePrompt1PromptsType
|
|
50
75
|
>;
|
|
51
76
|
|
|
52
|
-
export type
|
|
53
|
-
type:
|
|
77
|
+
export type CreatePrompt13 = {
|
|
78
|
+
type: CreatePrompt1PromptsType;
|
|
54
79
|
};
|
|
55
80
|
|
|
56
|
-
export const
|
|
81
|
+
export const CreatePrompt1Type = {
|
|
57
82
|
JsonObject: "json_object",
|
|
58
83
|
} as const;
|
|
59
|
-
export type
|
|
60
|
-
typeof CreatePromptResponseFormatType
|
|
61
|
-
>;
|
|
84
|
+
export type CreatePrompt1Type = ClosedEnum<typeof CreatePrompt1Type>;
|
|
62
85
|
|
|
63
|
-
export type
|
|
64
|
-
type:
|
|
86
|
+
export type One2 = {
|
|
87
|
+
type: CreatePrompt1Type;
|
|
65
88
|
};
|
|
66
89
|
|
|
67
|
-
export const
|
|
90
|
+
export const OneType = {
|
|
68
91
|
JsonSchema: "json_schema",
|
|
69
92
|
} as const;
|
|
70
|
-
export type
|
|
93
|
+
export type OneType = ClosedEnum<typeof OneType>;
|
|
71
94
|
|
|
72
95
|
export type JsonSchema = {
|
|
73
96
|
name: string;
|
|
@@ -75,11 +98,13 @@ export type JsonSchema = {
|
|
|
75
98
|
schema: { [k: string]: any };
|
|
76
99
|
};
|
|
77
100
|
|
|
78
|
-
export type
|
|
79
|
-
type:
|
|
101
|
+
export type One1 = {
|
|
102
|
+
type: OneType;
|
|
80
103
|
jsonSchema: JsonSchema;
|
|
81
104
|
};
|
|
82
105
|
|
|
106
|
+
export type ResponseFormat1 = One1 | One2 | CreatePrompt13;
|
|
107
|
+
|
|
83
108
|
/**
|
|
84
109
|
* An object specifying the format that the model must output.
|
|
85
110
|
*
|
|
@@ -92,9 +117,12 @@ export type ResponseFormat1 = {
|
|
|
92
117
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
93
118
|
*/
|
|
94
119
|
export type ResponseFormat =
|
|
95
|
-
|
|
|
120
|
+
| One1
|
|
121
|
+
| One2
|
|
122
|
+
| CreatePrompt13
|
|
96
123
|
| ResponseFormat2
|
|
97
|
-
| ResponseFormat3
|
|
124
|
+
| ResponseFormat3
|
|
125
|
+
| ResponseFormat4;
|
|
98
126
|
|
|
99
127
|
/**
|
|
100
128
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -212,9 +240,12 @@ export type ModelParameters = {
|
|
|
212
240
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
213
241
|
*/
|
|
214
242
|
responseFormat?:
|
|
215
|
-
|
|
|
243
|
+
| One1
|
|
244
|
+
| One2
|
|
245
|
+
| CreatePrompt13
|
|
216
246
|
| ResponseFormat2
|
|
217
247
|
| ResponseFormat3
|
|
248
|
+
| ResponseFormat4
|
|
218
249
|
| null
|
|
219
250
|
| undefined;
|
|
220
251
|
/**
|
|
@@ -532,47 +563,82 @@ export type CreatePromptPromptsFormat = ClosedEnum<
|
|
|
532
563
|
typeof CreatePromptPromptsFormat
|
|
533
564
|
>;
|
|
534
565
|
|
|
535
|
-
export const
|
|
566
|
+
export const CreatePromptResponseFormat4 = {
|
|
567
|
+
Json: "json",
|
|
536
568
|
Text: "text",
|
|
569
|
+
Srt: "srt",
|
|
570
|
+
VerboseJson: "verbose_json",
|
|
571
|
+
Vtt: "vtt",
|
|
537
572
|
} as const;
|
|
538
|
-
export type
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
573
|
+
export type CreatePromptResponseFormat4 = ClosedEnum<
|
|
574
|
+
typeof CreatePromptResponseFormat4
|
|
575
|
+
>;
|
|
576
|
+
|
|
577
|
+
export const CreatePromptResponseFormat3 = {
|
|
578
|
+
Url: "url",
|
|
579
|
+
Base64Json: "base64_json",
|
|
580
|
+
} as const;
|
|
581
|
+
export type CreatePromptResponseFormat3 = ClosedEnum<
|
|
582
|
+
typeof CreatePromptResponseFormat3
|
|
583
|
+
>;
|
|
542
584
|
|
|
543
|
-
export
|
|
544
|
-
|
|
585
|
+
export const CreatePromptResponseFormat2 = {
|
|
586
|
+
Mp3: "mp3",
|
|
587
|
+
Opus: "opus",
|
|
588
|
+
Aac: "aac",
|
|
589
|
+
Flac: "flac",
|
|
590
|
+
Wav: "wav",
|
|
591
|
+
Pcm: "pcm",
|
|
592
|
+
} as const;
|
|
593
|
+
export type CreatePromptResponseFormat2 = ClosedEnum<
|
|
594
|
+
typeof CreatePromptResponseFormat2
|
|
595
|
+
>;
|
|
596
|
+
|
|
597
|
+
export const CreatePrompt1PromptsResponse200ApplicationJSONType = {
|
|
598
|
+
Text: "text",
|
|
599
|
+
} as const;
|
|
600
|
+
export type CreatePrompt1PromptsResponse200ApplicationJSONType = ClosedEnum<
|
|
601
|
+
typeof CreatePrompt1PromptsResponse200ApplicationJSONType
|
|
602
|
+
>;
|
|
603
|
+
|
|
604
|
+
export type CreatePrompt1Prompts3 = {
|
|
605
|
+
type: CreatePrompt1PromptsResponse200ApplicationJSONType;
|
|
545
606
|
};
|
|
546
607
|
|
|
547
|
-
export const
|
|
608
|
+
export const CreatePrompt1PromptsResponse200Type = {
|
|
548
609
|
JsonObject: "json_object",
|
|
549
610
|
} as const;
|
|
550
|
-
export type
|
|
551
|
-
typeof
|
|
611
|
+
export type CreatePrompt1PromptsResponse200Type = ClosedEnum<
|
|
612
|
+
typeof CreatePrompt1PromptsResponse200Type
|
|
552
613
|
>;
|
|
553
614
|
|
|
554
|
-
export type
|
|
555
|
-
type:
|
|
615
|
+
export type CreatePrompt12 = {
|
|
616
|
+
type: CreatePrompt1PromptsResponse200Type;
|
|
556
617
|
};
|
|
557
618
|
|
|
558
|
-
export const
|
|
619
|
+
export const CreatePrompt1PromptsResponseType = {
|
|
559
620
|
JsonSchema: "json_schema",
|
|
560
621
|
} as const;
|
|
561
|
-
export type
|
|
562
|
-
typeof
|
|
622
|
+
export type CreatePrompt1PromptsResponseType = ClosedEnum<
|
|
623
|
+
typeof CreatePrompt1PromptsResponseType
|
|
563
624
|
>;
|
|
564
625
|
|
|
565
|
-
export type
|
|
626
|
+
export type CreatePrompt1JsonSchema = {
|
|
566
627
|
name: string;
|
|
567
628
|
strict?: boolean | undefined;
|
|
568
629
|
schema: { [k: string]: any };
|
|
569
630
|
};
|
|
570
631
|
|
|
571
|
-
export type
|
|
572
|
-
type:
|
|
573
|
-
jsonSchema:
|
|
632
|
+
export type CreatePrompt11 = {
|
|
633
|
+
type: CreatePrompt1PromptsResponseType;
|
|
634
|
+
jsonSchema: CreatePrompt1JsonSchema;
|
|
574
635
|
};
|
|
575
636
|
|
|
637
|
+
export type CreatePromptResponseFormat1 =
|
|
638
|
+
| CreatePrompt11
|
|
639
|
+
| CreatePrompt12
|
|
640
|
+
| CreatePrompt1Prompts3;
|
|
641
|
+
|
|
576
642
|
/**
|
|
577
643
|
* An object specifying the format that the model must output.
|
|
578
644
|
*
|
|
@@ -585,9 +651,12 @@ export type CreatePromptResponseFormat1 = {
|
|
|
585
651
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
586
652
|
*/
|
|
587
653
|
export type CreatePromptResponseFormat =
|
|
588
|
-
|
|
|
654
|
+
| CreatePrompt11
|
|
655
|
+
| CreatePrompt12
|
|
656
|
+
| CreatePrompt1Prompts3
|
|
589
657
|
| CreatePromptResponseFormat2
|
|
590
|
-
| CreatePromptResponseFormat3
|
|
658
|
+
| CreatePromptResponseFormat3
|
|
659
|
+
| CreatePromptResponseFormat4;
|
|
591
660
|
|
|
592
661
|
/**
|
|
593
662
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
@@ -711,9 +780,12 @@ export type CreatePromptModelParameters = {
|
|
|
711
780
|
* Important: when using JSON mode, you must also instruct the model to produce JSON yourself via a system or user message. Without this, the model may generate an unending stream of whitespace until the generation reaches the token limit, resulting in a long-running and seemingly "stuck" request. Also note that the message content may be partially cut off if finish_reason="length", which indicates the generation exceeded max_tokens or the conversation exceeded the max context length.
|
|
712
781
|
*/
|
|
713
782
|
responseFormat?:
|
|
714
|
-
|
|
|
783
|
+
| CreatePrompt11
|
|
784
|
+
| CreatePrompt12
|
|
785
|
+
| CreatePrompt1Prompts3
|
|
715
786
|
| CreatePromptResponseFormat2
|
|
716
787
|
| CreatePromptResponseFormat3
|
|
788
|
+
| CreatePromptResponseFormat4
|
|
717
789
|
| null
|
|
718
790
|
| undefined;
|
|
719
791
|
/**
|
|
@@ -1061,173 +1133,221 @@ export namespace CreatePromptFormat$ {
|
|
|
1061
1133
|
}
|
|
1062
1134
|
|
|
1063
1135
|
/** @internal */
|
|
1064
|
-
export const
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
);
|
|
1136
|
+
export const ResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
1137
|
+
typeof ResponseFormat4
|
|
1138
|
+
> = z.nativeEnum(ResponseFormat4);
|
|
1068
1139
|
|
|
1069
1140
|
/** @internal */
|
|
1070
|
-
export const
|
|
1071
|
-
|
|
1072
|
-
|
|
1141
|
+
export const ResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
1142
|
+
typeof ResponseFormat4
|
|
1143
|
+
> = ResponseFormat4$inboundSchema;
|
|
1073
1144
|
|
|
1074
1145
|
/**
|
|
1075
1146
|
* @internal
|
|
1076
1147
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1077
1148
|
*/
|
|
1078
|
-
export namespace
|
|
1079
|
-
/** @deprecated use `
|
|
1080
|
-
export const inboundSchema =
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1149
|
+
export namespace ResponseFormat4$ {
|
|
1150
|
+
/** @deprecated use `ResponseFormat4$inboundSchema` instead. */
|
|
1151
|
+
export const inboundSchema = ResponseFormat4$inboundSchema;
|
|
1152
|
+
/** @deprecated use `ResponseFormat4$outboundSchema` instead. */
|
|
1153
|
+
export const outboundSchema = ResponseFormat4$outboundSchema;
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
/** @internal */
|
|
1157
|
+
export const ResponseFormat3$inboundSchema: z.ZodNativeEnum<
|
|
1158
|
+
typeof ResponseFormat3
|
|
1159
|
+
> = z.nativeEnum(ResponseFormat3);
|
|
1160
|
+
|
|
1161
|
+
/** @internal */
|
|
1162
|
+
export const ResponseFormat3$outboundSchema: z.ZodNativeEnum<
|
|
1163
|
+
typeof ResponseFormat3
|
|
1164
|
+
> = ResponseFormat3$inboundSchema;
|
|
1165
|
+
|
|
1166
|
+
/**
|
|
1167
|
+
* @internal
|
|
1168
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1169
|
+
*/
|
|
1170
|
+
export namespace ResponseFormat3$ {
|
|
1171
|
+
/** @deprecated use `ResponseFormat3$inboundSchema` instead. */
|
|
1172
|
+
export const inboundSchema = ResponseFormat3$inboundSchema;
|
|
1173
|
+
/** @deprecated use `ResponseFormat3$outboundSchema` instead. */
|
|
1174
|
+
export const outboundSchema = ResponseFormat3$outboundSchema;
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
/** @internal */
|
|
1178
|
+
export const ResponseFormat2$inboundSchema: z.ZodNativeEnum<
|
|
1179
|
+
typeof ResponseFormat2
|
|
1180
|
+
> = z.nativeEnum(ResponseFormat2);
|
|
1181
|
+
|
|
1182
|
+
/** @internal */
|
|
1183
|
+
export const ResponseFormat2$outboundSchema: z.ZodNativeEnum<
|
|
1184
|
+
typeof ResponseFormat2
|
|
1185
|
+
> = ResponseFormat2$inboundSchema;
|
|
1186
|
+
|
|
1187
|
+
/**
|
|
1188
|
+
* @internal
|
|
1189
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1190
|
+
*/
|
|
1191
|
+
export namespace ResponseFormat2$ {
|
|
1192
|
+
/** @deprecated use `ResponseFormat2$inboundSchema` instead. */
|
|
1193
|
+
export const inboundSchema = ResponseFormat2$inboundSchema;
|
|
1194
|
+
/** @deprecated use `ResponseFormat2$outboundSchema` instead. */
|
|
1195
|
+
export const outboundSchema = ResponseFormat2$outboundSchema;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
/** @internal */
|
|
1199
|
+
export const CreatePrompt1PromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1200
|
+
typeof CreatePrompt1PromptsType
|
|
1201
|
+
> = z.nativeEnum(CreatePrompt1PromptsType);
|
|
1202
|
+
|
|
1203
|
+
/** @internal */
|
|
1204
|
+
export const CreatePrompt1PromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1205
|
+
typeof CreatePrompt1PromptsType
|
|
1206
|
+
> = CreatePrompt1PromptsType$inboundSchema;
|
|
1207
|
+
|
|
1208
|
+
/**
|
|
1209
|
+
* @internal
|
|
1210
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1211
|
+
*/
|
|
1212
|
+
export namespace CreatePrompt1PromptsType$ {
|
|
1213
|
+
/** @deprecated use `CreatePrompt1PromptsType$inboundSchema` instead. */
|
|
1214
|
+
export const inboundSchema = CreatePrompt1PromptsType$inboundSchema;
|
|
1215
|
+
/** @deprecated use `CreatePrompt1PromptsType$outboundSchema` instead. */
|
|
1216
|
+
export const outboundSchema = CreatePrompt1PromptsType$outboundSchema;
|
|
1085
1217
|
}
|
|
1086
1218
|
|
|
1087
1219
|
/** @internal */
|
|
1088
|
-
export const
|
|
1089
|
-
|
|
1220
|
+
export const CreatePrompt13$inboundSchema: z.ZodType<
|
|
1221
|
+
CreatePrompt13,
|
|
1090
1222
|
z.ZodTypeDef,
|
|
1091
1223
|
unknown
|
|
1092
1224
|
> = z.object({
|
|
1093
|
-
type:
|
|
1225
|
+
type: CreatePrompt1PromptsType$inboundSchema,
|
|
1094
1226
|
});
|
|
1095
1227
|
|
|
1096
1228
|
/** @internal */
|
|
1097
|
-
export type
|
|
1229
|
+
export type CreatePrompt13$Outbound = {
|
|
1098
1230
|
type: string;
|
|
1099
1231
|
};
|
|
1100
1232
|
|
|
1101
1233
|
/** @internal */
|
|
1102
|
-
export const
|
|
1103
|
-
|
|
1234
|
+
export const CreatePrompt13$outboundSchema: z.ZodType<
|
|
1235
|
+
CreatePrompt13$Outbound,
|
|
1104
1236
|
z.ZodTypeDef,
|
|
1105
|
-
|
|
1237
|
+
CreatePrompt13
|
|
1106
1238
|
> = z.object({
|
|
1107
|
-
type:
|
|
1239
|
+
type: CreatePrompt1PromptsType$outboundSchema,
|
|
1108
1240
|
});
|
|
1109
1241
|
|
|
1110
1242
|
/**
|
|
1111
1243
|
* @internal
|
|
1112
1244
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1113
1245
|
*/
|
|
1114
|
-
export namespace
|
|
1115
|
-
/** @deprecated use `
|
|
1116
|
-
export const inboundSchema =
|
|
1117
|
-
/** @deprecated use `
|
|
1118
|
-
export const outboundSchema =
|
|
1119
|
-
/** @deprecated use `
|
|
1120
|
-
export type Outbound =
|
|
1246
|
+
export namespace CreatePrompt13$ {
|
|
1247
|
+
/** @deprecated use `CreatePrompt13$inboundSchema` instead. */
|
|
1248
|
+
export const inboundSchema = CreatePrompt13$inboundSchema;
|
|
1249
|
+
/** @deprecated use `CreatePrompt13$outboundSchema` instead. */
|
|
1250
|
+
export const outboundSchema = CreatePrompt13$outboundSchema;
|
|
1251
|
+
/** @deprecated use `CreatePrompt13$Outbound` instead. */
|
|
1252
|
+
export type Outbound = CreatePrompt13$Outbound;
|
|
1121
1253
|
}
|
|
1122
1254
|
|
|
1123
|
-
export function
|
|
1124
|
-
|
|
1125
|
-
): string {
|
|
1126
|
-
return JSON.stringify(ResponseFormat3$outboundSchema.parse(responseFormat3));
|
|
1255
|
+
export function createPrompt13ToJSON(createPrompt13: CreatePrompt13): string {
|
|
1256
|
+
return JSON.stringify(CreatePrompt13$outboundSchema.parse(createPrompt13));
|
|
1127
1257
|
}
|
|
1128
1258
|
|
|
1129
|
-
export function
|
|
1259
|
+
export function createPrompt13FromJSON(
|
|
1130
1260
|
jsonString: string,
|
|
1131
|
-
): SafeParseResult<
|
|
1261
|
+
): SafeParseResult<CreatePrompt13, SDKValidationError> {
|
|
1132
1262
|
return safeParse(
|
|
1133
1263
|
jsonString,
|
|
1134
|
-
(x) =>
|
|
1135
|
-
`Failed to parse '
|
|
1264
|
+
(x) => CreatePrompt13$inboundSchema.parse(JSON.parse(x)),
|
|
1265
|
+
`Failed to parse 'CreatePrompt13' from JSON`,
|
|
1136
1266
|
);
|
|
1137
1267
|
}
|
|
1138
1268
|
|
|
1139
1269
|
/** @internal */
|
|
1140
|
-
export const
|
|
1141
|
-
typeof
|
|
1142
|
-
> = z.nativeEnum(
|
|
1270
|
+
export const CreatePrompt1Type$inboundSchema: z.ZodNativeEnum<
|
|
1271
|
+
typeof CreatePrompt1Type
|
|
1272
|
+
> = z.nativeEnum(CreatePrompt1Type);
|
|
1143
1273
|
|
|
1144
1274
|
/** @internal */
|
|
1145
|
-
export const
|
|
1146
|
-
typeof
|
|
1147
|
-
> =
|
|
1275
|
+
export const CreatePrompt1Type$outboundSchema: z.ZodNativeEnum<
|
|
1276
|
+
typeof CreatePrompt1Type
|
|
1277
|
+
> = CreatePrompt1Type$inboundSchema;
|
|
1148
1278
|
|
|
1149
1279
|
/**
|
|
1150
1280
|
* @internal
|
|
1151
1281
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1152
1282
|
*/
|
|
1153
|
-
export namespace
|
|
1154
|
-
/** @deprecated use `
|
|
1155
|
-
export const inboundSchema =
|
|
1156
|
-
/** @deprecated use `
|
|
1157
|
-
export const outboundSchema =
|
|
1283
|
+
export namespace CreatePrompt1Type$ {
|
|
1284
|
+
/** @deprecated use `CreatePrompt1Type$inboundSchema` instead. */
|
|
1285
|
+
export const inboundSchema = CreatePrompt1Type$inboundSchema;
|
|
1286
|
+
/** @deprecated use `CreatePrompt1Type$outboundSchema` instead. */
|
|
1287
|
+
export const outboundSchema = CreatePrompt1Type$outboundSchema;
|
|
1158
1288
|
}
|
|
1159
1289
|
|
|
1160
1290
|
/** @internal */
|
|
1161
|
-
export const
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
> = z.object({
|
|
1166
|
-
type: CreatePromptResponseFormatType$inboundSchema,
|
|
1167
|
-
});
|
|
1291
|
+
export const One2$inboundSchema: z.ZodType<One2, z.ZodTypeDef, unknown> = z
|
|
1292
|
+
.object({
|
|
1293
|
+
type: CreatePrompt1Type$inboundSchema,
|
|
1294
|
+
});
|
|
1168
1295
|
|
|
1169
1296
|
/** @internal */
|
|
1170
|
-
export type
|
|
1297
|
+
export type One2$Outbound = {
|
|
1171
1298
|
type: string;
|
|
1172
1299
|
};
|
|
1173
1300
|
|
|
1174
1301
|
/** @internal */
|
|
1175
|
-
export const
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
> = z.object({
|
|
1180
|
-
type: CreatePromptResponseFormatType$outboundSchema,
|
|
1181
|
-
});
|
|
1302
|
+
export const One2$outboundSchema: z.ZodType<One2$Outbound, z.ZodTypeDef, One2> =
|
|
1303
|
+
z.object({
|
|
1304
|
+
type: CreatePrompt1Type$outboundSchema,
|
|
1305
|
+
});
|
|
1182
1306
|
|
|
1183
1307
|
/**
|
|
1184
1308
|
* @internal
|
|
1185
1309
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1186
1310
|
*/
|
|
1187
|
-
export namespace
|
|
1188
|
-
/** @deprecated use `
|
|
1189
|
-
export const inboundSchema =
|
|
1190
|
-
/** @deprecated use `
|
|
1191
|
-
export const outboundSchema =
|
|
1192
|
-
/** @deprecated use `
|
|
1193
|
-
export type Outbound =
|
|
1311
|
+
export namespace One2$ {
|
|
1312
|
+
/** @deprecated use `One2$inboundSchema` instead. */
|
|
1313
|
+
export const inboundSchema = One2$inboundSchema;
|
|
1314
|
+
/** @deprecated use `One2$outboundSchema` instead. */
|
|
1315
|
+
export const outboundSchema = One2$outboundSchema;
|
|
1316
|
+
/** @deprecated use `One2$Outbound` instead. */
|
|
1317
|
+
export type Outbound = One2$Outbound;
|
|
1194
1318
|
}
|
|
1195
1319
|
|
|
1196
|
-
export function
|
|
1197
|
-
|
|
1198
|
-
): string {
|
|
1199
|
-
return JSON.stringify(ResponseFormat2$outboundSchema.parse(responseFormat2));
|
|
1320
|
+
export function one2ToJSON(one2: One2): string {
|
|
1321
|
+
return JSON.stringify(One2$outboundSchema.parse(one2));
|
|
1200
1322
|
}
|
|
1201
1323
|
|
|
1202
|
-
export function
|
|
1324
|
+
export function one2FromJSON(
|
|
1203
1325
|
jsonString: string,
|
|
1204
|
-
): SafeParseResult<
|
|
1326
|
+
): SafeParseResult<One2, SDKValidationError> {
|
|
1205
1327
|
return safeParse(
|
|
1206
1328
|
jsonString,
|
|
1207
|
-
(x) =>
|
|
1208
|
-
`Failed to parse '
|
|
1329
|
+
(x) => One2$inboundSchema.parse(JSON.parse(x)),
|
|
1330
|
+
`Failed to parse 'One2' from JSON`,
|
|
1209
1331
|
);
|
|
1210
1332
|
}
|
|
1211
1333
|
|
|
1212
1334
|
/** @internal */
|
|
1213
|
-
export const
|
|
1214
|
-
|
|
1215
|
-
> = z.nativeEnum(ResponseFormatType);
|
|
1335
|
+
export const OneType$inboundSchema: z.ZodNativeEnum<typeof OneType> = z
|
|
1336
|
+
.nativeEnum(OneType);
|
|
1216
1337
|
|
|
1217
1338
|
/** @internal */
|
|
1218
|
-
export const
|
|
1219
|
-
|
|
1220
|
-
> = ResponseFormatType$inboundSchema;
|
|
1339
|
+
export const OneType$outboundSchema: z.ZodNativeEnum<typeof OneType> =
|
|
1340
|
+
OneType$inboundSchema;
|
|
1221
1341
|
|
|
1222
1342
|
/**
|
|
1223
1343
|
* @internal
|
|
1224
1344
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1225
1345
|
*/
|
|
1226
|
-
export namespace
|
|
1227
|
-
/** @deprecated use `
|
|
1228
|
-
export const inboundSchema =
|
|
1229
|
-
/** @deprecated use `
|
|
1230
|
-
export const outboundSchema =
|
|
1346
|
+
export namespace OneType$ {
|
|
1347
|
+
/** @deprecated use `OneType$inboundSchema` instead. */
|
|
1348
|
+
export const inboundSchema = OneType$inboundSchema;
|
|
1349
|
+
/** @deprecated use `OneType$outboundSchema` instead. */
|
|
1350
|
+
export const outboundSchema = OneType$outboundSchema;
|
|
1231
1351
|
}
|
|
1232
1352
|
|
|
1233
1353
|
/** @internal */
|
|
@@ -1287,38 +1407,87 @@ export function jsonSchemaFromJSON(
|
|
|
1287
1407
|
}
|
|
1288
1408
|
|
|
1289
1409
|
/** @internal */
|
|
1290
|
-
export const
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
})
|
|
1298
|
-
return remap$(v, {
|
|
1299
|
-
"json_schema": "jsonSchema",
|
|
1410
|
+
export const One1$inboundSchema: z.ZodType<One1, z.ZodTypeDef, unknown> = z
|
|
1411
|
+
.object({
|
|
1412
|
+
type: OneType$inboundSchema,
|
|
1413
|
+
json_schema: z.lazy(() => JsonSchema$inboundSchema),
|
|
1414
|
+
}).transform((v) => {
|
|
1415
|
+
return remap$(v, {
|
|
1416
|
+
"json_schema": "jsonSchema",
|
|
1417
|
+
});
|
|
1300
1418
|
});
|
|
1301
|
-
});
|
|
1302
1419
|
|
|
1303
1420
|
/** @internal */
|
|
1304
|
-
export type
|
|
1421
|
+
export type One1$Outbound = {
|
|
1305
1422
|
type: string;
|
|
1306
1423
|
json_schema: JsonSchema$Outbound;
|
|
1307
1424
|
};
|
|
1308
1425
|
|
|
1426
|
+
/** @internal */
|
|
1427
|
+
export const One1$outboundSchema: z.ZodType<One1$Outbound, z.ZodTypeDef, One1> =
|
|
1428
|
+
z.object({
|
|
1429
|
+
type: OneType$outboundSchema,
|
|
1430
|
+
jsonSchema: z.lazy(() => JsonSchema$outboundSchema),
|
|
1431
|
+
}).transform((v) => {
|
|
1432
|
+
return remap$(v, {
|
|
1433
|
+
jsonSchema: "json_schema",
|
|
1434
|
+
});
|
|
1435
|
+
});
|
|
1436
|
+
|
|
1437
|
+
/**
|
|
1438
|
+
* @internal
|
|
1439
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1440
|
+
*/
|
|
1441
|
+
export namespace One1$ {
|
|
1442
|
+
/** @deprecated use `One1$inboundSchema` instead. */
|
|
1443
|
+
export const inboundSchema = One1$inboundSchema;
|
|
1444
|
+
/** @deprecated use `One1$outboundSchema` instead. */
|
|
1445
|
+
export const outboundSchema = One1$outboundSchema;
|
|
1446
|
+
/** @deprecated use `One1$Outbound` instead. */
|
|
1447
|
+
export type Outbound = One1$Outbound;
|
|
1448
|
+
}
|
|
1449
|
+
|
|
1450
|
+
export function one1ToJSON(one1: One1): string {
|
|
1451
|
+
return JSON.stringify(One1$outboundSchema.parse(one1));
|
|
1452
|
+
}
|
|
1453
|
+
|
|
1454
|
+
export function one1FromJSON(
|
|
1455
|
+
jsonString: string,
|
|
1456
|
+
): SafeParseResult<One1, SDKValidationError> {
|
|
1457
|
+
return safeParse(
|
|
1458
|
+
jsonString,
|
|
1459
|
+
(x) => One1$inboundSchema.parse(JSON.parse(x)),
|
|
1460
|
+
`Failed to parse 'One1' from JSON`,
|
|
1461
|
+
);
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/** @internal */
|
|
1465
|
+
export const ResponseFormat1$inboundSchema: z.ZodType<
|
|
1466
|
+
ResponseFormat1,
|
|
1467
|
+
z.ZodTypeDef,
|
|
1468
|
+
unknown
|
|
1469
|
+
> = z.union([
|
|
1470
|
+
z.lazy(() => One1$inboundSchema),
|
|
1471
|
+
z.lazy(() => One2$inboundSchema),
|
|
1472
|
+
z.lazy(() => CreatePrompt13$inboundSchema),
|
|
1473
|
+
]);
|
|
1474
|
+
|
|
1475
|
+
/** @internal */
|
|
1476
|
+
export type ResponseFormat1$Outbound =
|
|
1477
|
+
| One1$Outbound
|
|
1478
|
+
| One2$Outbound
|
|
1479
|
+
| CreatePrompt13$Outbound;
|
|
1480
|
+
|
|
1309
1481
|
/** @internal */
|
|
1310
1482
|
export const ResponseFormat1$outboundSchema: z.ZodType<
|
|
1311
1483
|
ResponseFormat1$Outbound,
|
|
1312
1484
|
z.ZodTypeDef,
|
|
1313
1485
|
ResponseFormat1
|
|
1314
|
-
> = z.
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
jsonSchema: "json_schema",
|
|
1320
|
-
});
|
|
1321
|
-
});
|
|
1486
|
+
> = z.union([
|
|
1487
|
+
z.lazy(() => One1$outboundSchema),
|
|
1488
|
+
z.lazy(() => One2$outboundSchema),
|
|
1489
|
+
z.lazy(() => CreatePrompt13$outboundSchema),
|
|
1490
|
+
]);
|
|
1322
1491
|
|
|
1323
1492
|
/**
|
|
1324
1493
|
* @internal
|
|
@@ -1355,16 +1524,24 @@ export const ResponseFormat$inboundSchema: z.ZodType<
|
|
|
1355
1524
|
z.ZodTypeDef,
|
|
1356
1525
|
unknown
|
|
1357
1526
|
> = z.union([
|
|
1358
|
-
z.
|
|
1359
|
-
|
|
1360
|
-
|
|
1527
|
+
z.union([
|
|
1528
|
+
z.lazy(() => One1$inboundSchema),
|
|
1529
|
+
z.lazy(() => One2$inboundSchema),
|
|
1530
|
+
z.lazy(() => CreatePrompt13$inboundSchema),
|
|
1531
|
+
]),
|
|
1532
|
+
ResponseFormat2$inboundSchema,
|
|
1533
|
+
ResponseFormat3$inboundSchema,
|
|
1534
|
+
ResponseFormat4$inboundSchema,
|
|
1361
1535
|
]);
|
|
1362
1536
|
|
|
1363
1537
|
/** @internal */
|
|
1364
1538
|
export type ResponseFormat$Outbound =
|
|
1365
|
-
|
|
|
1366
|
-
|
|
|
1367
|
-
|
|
|
1539
|
+
| One1$Outbound
|
|
1540
|
+
| One2$Outbound
|
|
1541
|
+
| CreatePrompt13$Outbound
|
|
1542
|
+
| string
|
|
1543
|
+
| string
|
|
1544
|
+
| string;
|
|
1368
1545
|
|
|
1369
1546
|
/** @internal */
|
|
1370
1547
|
export const ResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -1372,9 +1549,14 @@ export const ResponseFormat$outboundSchema: z.ZodType<
|
|
|
1372
1549
|
z.ZodTypeDef,
|
|
1373
1550
|
ResponseFormat
|
|
1374
1551
|
> = z.union([
|
|
1375
|
-
z.
|
|
1376
|
-
|
|
1377
|
-
|
|
1552
|
+
z.union([
|
|
1553
|
+
z.lazy(() => One1$outboundSchema),
|
|
1554
|
+
z.lazy(() => One2$outboundSchema),
|
|
1555
|
+
z.lazy(() => CreatePrompt13$outboundSchema),
|
|
1556
|
+
]),
|
|
1557
|
+
ResponseFormat2$outboundSchema,
|
|
1558
|
+
ResponseFormat3$outboundSchema,
|
|
1559
|
+
ResponseFormat4$outboundSchema,
|
|
1378
1560
|
]);
|
|
1379
1561
|
|
|
1380
1562
|
/**
|
|
@@ -1506,9 +1688,14 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
1506
1688
|
style: z.string().optional(),
|
|
1507
1689
|
responseFormat: z.nullable(
|
|
1508
1690
|
z.union([
|
|
1509
|
-
z.
|
|
1510
|
-
|
|
1511
|
-
|
|
1691
|
+
z.union([
|
|
1692
|
+
z.lazy(() => One1$inboundSchema),
|
|
1693
|
+
z.lazy(() => One2$inboundSchema),
|
|
1694
|
+
z.lazy(() => CreatePrompt13$inboundSchema),
|
|
1695
|
+
]),
|
|
1696
|
+
ResponseFormat2$inboundSchema,
|
|
1697
|
+
ResponseFormat3$inboundSchema,
|
|
1698
|
+
ResponseFormat4$inboundSchema,
|
|
1512
1699
|
]),
|
|
1513
1700
|
).optional(),
|
|
1514
1701
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
@@ -1537,9 +1724,12 @@ export type ModelParameters$Outbound = {
|
|
|
1537
1724
|
quality?: string | undefined;
|
|
1538
1725
|
style?: string | undefined;
|
|
1539
1726
|
responseFormat?:
|
|
1540
|
-
|
|
|
1541
|
-
|
|
|
1542
|
-
|
|
|
1727
|
+
| One1$Outbound
|
|
1728
|
+
| One2$Outbound
|
|
1729
|
+
| CreatePrompt13$Outbound
|
|
1730
|
+
| string
|
|
1731
|
+
| string
|
|
1732
|
+
| string
|
|
1543
1733
|
| null
|
|
1544
1734
|
| undefined;
|
|
1545
1735
|
photoRealVersion?: string | undefined;
|
|
@@ -1569,9 +1759,14 @@ export const ModelParameters$outboundSchema: z.ZodType<
|
|
|
1569
1759
|
style: z.string().optional(),
|
|
1570
1760
|
responseFormat: z.nullable(
|
|
1571
1761
|
z.union([
|
|
1572
|
-
z.
|
|
1573
|
-
|
|
1574
|
-
|
|
1762
|
+
z.union([
|
|
1763
|
+
z.lazy(() => One1$outboundSchema),
|
|
1764
|
+
z.lazy(() => One2$outboundSchema),
|
|
1765
|
+
z.lazy(() => CreatePrompt13$outboundSchema),
|
|
1766
|
+
]),
|
|
1767
|
+
ResponseFormat2$outboundSchema,
|
|
1768
|
+
ResponseFormat3$outboundSchema,
|
|
1769
|
+
ResponseFormat4$outboundSchema,
|
|
1575
1770
|
]),
|
|
1576
1771
|
).optional(),
|
|
1577
1772
|
photoRealVersion: PhotoRealVersion$outboundSchema.optional(),
|
|
@@ -2688,196 +2883,242 @@ export namespace CreatePromptPromptsFormat$ {
|
|
|
2688
2883
|
}
|
|
2689
2884
|
|
|
2690
2885
|
/** @internal */
|
|
2691
|
-
export const
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
> = z.nativeEnum(
|
|
2695
|
-
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType,
|
|
2696
|
-
);
|
|
2886
|
+
export const CreatePromptResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
2887
|
+
typeof CreatePromptResponseFormat4
|
|
2888
|
+
> = z.nativeEnum(CreatePromptResponseFormat4);
|
|
2697
2889
|
|
|
2698
2890
|
/** @internal */
|
|
2699
|
-
export const
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
> =
|
|
2703
|
-
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2891
|
+
export const CreatePromptResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
2892
|
+
typeof CreatePromptResponseFormat4
|
|
2893
|
+
> = CreatePromptResponseFormat4$inboundSchema;
|
|
2704
2894
|
|
|
2705
2895
|
/**
|
|
2706
2896
|
* @internal
|
|
2707
2897
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2708
2898
|
*/
|
|
2709
|
-
export namespace
|
|
2710
|
-
/** @deprecated use `
|
|
2899
|
+
export namespace CreatePromptResponseFormat4$ {
|
|
2900
|
+
/** @deprecated use `CreatePromptResponseFormat4$inboundSchema` instead. */
|
|
2901
|
+
export const inboundSchema = CreatePromptResponseFormat4$inboundSchema;
|
|
2902
|
+
/** @deprecated use `CreatePromptResponseFormat4$outboundSchema` instead. */
|
|
2903
|
+
export const outboundSchema = CreatePromptResponseFormat4$outboundSchema;
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
/** @internal */
|
|
2907
|
+
export const CreatePromptResponseFormat3$inboundSchema: z.ZodNativeEnum<
|
|
2908
|
+
typeof CreatePromptResponseFormat3
|
|
2909
|
+
> = z.nativeEnum(CreatePromptResponseFormat3);
|
|
2910
|
+
|
|
2911
|
+
/** @internal */
|
|
2912
|
+
export const CreatePromptResponseFormat3$outboundSchema: z.ZodNativeEnum<
|
|
2913
|
+
typeof CreatePromptResponseFormat3
|
|
2914
|
+
> = CreatePromptResponseFormat3$inboundSchema;
|
|
2915
|
+
|
|
2916
|
+
/**
|
|
2917
|
+
* @internal
|
|
2918
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2919
|
+
*/
|
|
2920
|
+
export namespace CreatePromptResponseFormat3$ {
|
|
2921
|
+
/** @deprecated use `CreatePromptResponseFormat3$inboundSchema` instead. */
|
|
2922
|
+
export const inboundSchema = CreatePromptResponseFormat3$inboundSchema;
|
|
2923
|
+
/** @deprecated use `CreatePromptResponseFormat3$outboundSchema` instead. */
|
|
2924
|
+
export const outboundSchema = CreatePromptResponseFormat3$outboundSchema;
|
|
2925
|
+
}
|
|
2926
|
+
|
|
2927
|
+
/** @internal */
|
|
2928
|
+
export const CreatePromptResponseFormat2$inboundSchema: z.ZodNativeEnum<
|
|
2929
|
+
typeof CreatePromptResponseFormat2
|
|
2930
|
+
> = z.nativeEnum(CreatePromptResponseFormat2);
|
|
2931
|
+
|
|
2932
|
+
/** @internal */
|
|
2933
|
+
export const CreatePromptResponseFormat2$outboundSchema: z.ZodNativeEnum<
|
|
2934
|
+
typeof CreatePromptResponseFormat2
|
|
2935
|
+
> = CreatePromptResponseFormat2$inboundSchema;
|
|
2936
|
+
|
|
2937
|
+
/**
|
|
2938
|
+
* @internal
|
|
2939
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2940
|
+
*/
|
|
2941
|
+
export namespace CreatePromptResponseFormat2$ {
|
|
2942
|
+
/** @deprecated use `CreatePromptResponseFormat2$inboundSchema` instead. */
|
|
2943
|
+
export const inboundSchema = CreatePromptResponseFormat2$inboundSchema;
|
|
2944
|
+
/** @deprecated use `CreatePromptResponseFormat2$outboundSchema` instead. */
|
|
2945
|
+
export const outboundSchema = CreatePromptResponseFormat2$outboundSchema;
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
/** @internal */
|
|
2949
|
+
export const CreatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema:
|
|
2950
|
+
z.ZodNativeEnum<typeof CreatePrompt1PromptsResponse200ApplicationJSONType> = z
|
|
2951
|
+
.nativeEnum(CreatePrompt1PromptsResponse200ApplicationJSONType);
|
|
2952
|
+
|
|
2953
|
+
/** @internal */
|
|
2954
|
+
export const CreatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema:
|
|
2955
|
+
z.ZodNativeEnum<typeof CreatePrompt1PromptsResponse200ApplicationJSONType> =
|
|
2956
|
+
CreatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* @internal
|
|
2960
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2961
|
+
*/
|
|
2962
|
+
export namespace CreatePrompt1PromptsResponse200ApplicationJSONType$ {
|
|
2963
|
+
/** @deprecated use `CreatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema` instead. */
|
|
2711
2964
|
export const inboundSchema =
|
|
2712
|
-
|
|
2713
|
-
/** @deprecated use `
|
|
2965
|
+
CreatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema;
|
|
2966
|
+
/** @deprecated use `CreatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema` instead. */
|
|
2714
2967
|
export const outboundSchema =
|
|
2715
|
-
|
|
2968
|
+
CreatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema;
|
|
2716
2969
|
}
|
|
2717
2970
|
|
|
2718
2971
|
/** @internal */
|
|
2719
|
-
export const
|
|
2720
|
-
|
|
2972
|
+
export const CreatePrompt1Prompts3$inboundSchema: z.ZodType<
|
|
2973
|
+
CreatePrompt1Prompts3,
|
|
2721
2974
|
z.ZodTypeDef,
|
|
2722
2975
|
unknown
|
|
2723
2976
|
> = z.object({
|
|
2724
|
-
type:
|
|
2725
|
-
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
2977
|
+
type: CreatePrompt1PromptsResponse200ApplicationJSONType$inboundSchema,
|
|
2726
2978
|
});
|
|
2727
2979
|
|
|
2728
2980
|
/** @internal */
|
|
2729
|
-
export type
|
|
2981
|
+
export type CreatePrompt1Prompts3$Outbound = {
|
|
2730
2982
|
type: string;
|
|
2731
2983
|
};
|
|
2732
2984
|
|
|
2733
2985
|
/** @internal */
|
|
2734
|
-
export const
|
|
2735
|
-
|
|
2986
|
+
export const CreatePrompt1Prompts3$outboundSchema: z.ZodType<
|
|
2987
|
+
CreatePrompt1Prompts3$Outbound,
|
|
2736
2988
|
z.ZodTypeDef,
|
|
2737
|
-
|
|
2989
|
+
CreatePrompt1Prompts3
|
|
2738
2990
|
> = z.object({
|
|
2739
|
-
type:
|
|
2740
|
-
CreatePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
2991
|
+
type: CreatePrompt1PromptsResponse200ApplicationJSONType$outboundSchema,
|
|
2741
2992
|
});
|
|
2742
2993
|
|
|
2743
2994
|
/**
|
|
2744
2995
|
* @internal
|
|
2745
2996
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2746
2997
|
*/
|
|
2747
|
-
export namespace
|
|
2748
|
-
/** @deprecated use `
|
|
2749
|
-
export const inboundSchema =
|
|
2750
|
-
/** @deprecated use `
|
|
2751
|
-
export const outboundSchema =
|
|
2752
|
-
/** @deprecated use `
|
|
2753
|
-
export type Outbound =
|
|
2998
|
+
export namespace CreatePrompt1Prompts3$ {
|
|
2999
|
+
/** @deprecated use `CreatePrompt1Prompts3$inboundSchema` instead. */
|
|
3000
|
+
export const inboundSchema = CreatePrompt1Prompts3$inboundSchema;
|
|
3001
|
+
/** @deprecated use `CreatePrompt1Prompts3$outboundSchema` instead. */
|
|
3002
|
+
export const outboundSchema = CreatePrompt1Prompts3$outboundSchema;
|
|
3003
|
+
/** @deprecated use `CreatePrompt1Prompts3$Outbound` instead. */
|
|
3004
|
+
export type Outbound = CreatePrompt1Prompts3$Outbound;
|
|
2754
3005
|
}
|
|
2755
3006
|
|
|
2756
|
-
export function
|
|
2757
|
-
|
|
3007
|
+
export function createPrompt1Prompts3ToJSON(
|
|
3008
|
+
createPrompt1Prompts3: CreatePrompt1Prompts3,
|
|
2758
3009
|
): string {
|
|
2759
3010
|
return JSON.stringify(
|
|
2760
|
-
|
|
2761
|
-
createPromptResponseFormat3,
|
|
2762
|
-
),
|
|
3011
|
+
CreatePrompt1Prompts3$outboundSchema.parse(createPrompt1Prompts3),
|
|
2763
3012
|
);
|
|
2764
3013
|
}
|
|
2765
3014
|
|
|
2766
|
-
export function
|
|
3015
|
+
export function createPrompt1Prompts3FromJSON(
|
|
2767
3016
|
jsonString: string,
|
|
2768
|
-
): SafeParseResult<
|
|
3017
|
+
): SafeParseResult<CreatePrompt1Prompts3, SDKValidationError> {
|
|
2769
3018
|
return safeParse(
|
|
2770
3019
|
jsonString,
|
|
2771
|
-
(x) =>
|
|
2772
|
-
`Failed to parse '
|
|
3020
|
+
(x) => CreatePrompt1Prompts3$inboundSchema.parse(JSON.parse(x)),
|
|
3021
|
+
`Failed to parse 'CreatePrompt1Prompts3' from JSON`,
|
|
2773
3022
|
);
|
|
2774
3023
|
}
|
|
2775
3024
|
|
|
2776
3025
|
/** @internal */
|
|
2777
|
-
export const
|
|
2778
|
-
|
|
2779
|
-
|
|
3026
|
+
export const CreatePrompt1PromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
|
|
3027
|
+
typeof CreatePrompt1PromptsResponse200Type
|
|
3028
|
+
> = z.nativeEnum(CreatePrompt1PromptsResponse200Type);
|
|
2780
3029
|
|
|
2781
3030
|
/** @internal */
|
|
2782
|
-
export const
|
|
2783
|
-
z.ZodNativeEnum<typeof
|
|
2784
|
-
|
|
3031
|
+
export const CreatePrompt1PromptsResponse200Type$outboundSchema:
|
|
3032
|
+
z.ZodNativeEnum<typeof CreatePrompt1PromptsResponse200Type> =
|
|
3033
|
+
CreatePrompt1PromptsResponse200Type$inboundSchema;
|
|
2785
3034
|
|
|
2786
3035
|
/**
|
|
2787
3036
|
* @internal
|
|
2788
3037
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2789
3038
|
*/
|
|
2790
|
-
export namespace
|
|
2791
|
-
/** @deprecated use `
|
|
3039
|
+
export namespace CreatePrompt1PromptsResponse200Type$ {
|
|
3040
|
+
/** @deprecated use `CreatePrompt1PromptsResponse200Type$inboundSchema` instead. */
|
|
2792
3041
|
export const inboundSchema =
|
|
2793
|
-
|
|
2794
|
-
/** @deprecated use `
|
|
3042
|
+
CreatePrompt1PromptsResponse200Type$inboundSchema;
|
|
3043
|
+
/** @deprecated use `CreatePrompt1PromptsResponse200Type$outboundSchema` instead. */
|
|
2795
3044
|
export const outboundSchema =
|
|
2796
|
-
|
|
3045
|
+
CreatePrompt1PromptsResponse200Type$outboundSchema;
|
|
2797
3046
|
}
|
|
2798
3047
|
|
|
2799
3048
|
/** @internal */
|
|
2800
|
-
export const
|
|
2801
|
-
|
|
3049
|
+
export const CreatePrompt12$inboundSchema: z.ZodType<
|
|
3050
|
+
CreatePrompt12,
|
|
2802
3051
|
z.ZodTypeDef,
|
|
2803
3052
|
unknown
|
|
2804
3053
|
> = z.object({
|
|
2805
|
-
type:
|
|
3054
|
+
type: CreatePrompt1PromptsResponse200Type$inboundSchema,
|
|
2806
3055
|
});
|
|
2807
3056
|
|
|
2808
3057
|
/** @internal */
|
|
2809
|
-
export type
|
|
3058
|
+
export type CreatePrompt12$Outbound = {
|
|
2810
3059
|
type: string;
|
|
2811
3060
|
};
|
|
2812
3061
|
|
|
2813
3062
|
/** @internal */
|
|
2814
|
-
export const
|
|
2815
|
-
|
|
3063
|
+
export const CreatePrompt12$outboundSchema: z.ZodType<
|
|
3064
|
+
CreatePrompt12$Outbound,
|
|
2816
3065
|
z.ZodTypeDef,
|
|
2817
|
-
|
|
3066
|
+
CreatePrompt12
|
|
2818
3067
|
> = z.object({
|
|
2819
|
-
type:
|
|
3068
|
+
type: CreatePrompt1PromptsResponse200Type$outboundSchema,
|
|
2820
3069
|
});
|
|
2821
3070
|
|
|
2822
3071
|
/**
|
|
2823
3072
|
* @internal
|
|
2824
3073
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2825
3074
|
*/
|
|
2826
|
-
export namespace
|
|
2827
|
-
/** @deprecated use `
|
|
2828
|
-
export const inboundSchema =
|
|
2829
|
-
/** @deprecated use `
|
|
2830
|
-
export const outboundSchema =
|
|
2831
|
-
/** @deprecated use `
|
|
2832
|
-
export type Outbound =
|
|
3075
|
+
export namespace CreatePrompt12$ {
|
|
3076
|
+
/** @deprecated use `CreatePrompt12$inboundSchema` instead. */
|
|
3077
|
+
export const inboundSchema = CreatePrompt12$inboundSchema;
|
|
3078
|
+
/** @deprecated use `CreatePrompt12$outboundSchema` instead. */
|
|
3079
|
+
export const outboundSchema = CreatePrompt12$outboundSchema;
|
|
3080
|
+
/** @deprecated use `CreatePrompt12$Outbound` instead. */
|
|
3081
|
+
export type Outbound = CreatePrompt12$Outbound;
|
|
2833
3082
|
}
|
|
2834
3083
|
|
|
2835
|
-
export function
|
|
2836
|
-
|
|
2837
|
-
): string {
|
|
2838
|
-
return JSON.stringify(
|
|
2839
|
-
CreatePromptResponseFormat2$outboundSchema.parse(
|
|
2840
|
-
createPromptResponseFormat2,
|
|
2841
|
-
),
|
|
2842
|
-
);
|
|
3084
|
+
export function createPrompt12ToJSON(createPrompt12: CreatePrompt12): string {
|
|
3085
|
+
return JSON.stringify(CreatePrompt12$outboundSchema.parse(createPrompt12));
|
|
2843
3086
|
}
|
|
2844
3087
|
|
|
2845
|
-
export function
|
|
3088
|
+
export function createPrompt12FromJSON(
|
|
2846
3089
|
jsonString: string,
|
|
2847
|
-
): SafeParseResult<
|
|
3090
|
+
): SafeParseResult<CreatePrompt12, SDKValidationError> {
|
|
2848
3091
|
return safeParse(
|
|
2849
3092
|
jsonString,
|
|
2850
|
-
(x) =>
|
|
2851
|
-
`Failed to parse '
|
|
3093
|
+
(x) => CreatePrompt12$inboundSchema.parse(JSON.parse(x)),
|
|
3094
|
+
`Failed to parse 'CreatePrompt12' from JSON`,
|
|
2852
3095
|
);
|
|
2853
3096
|
}
|
|
2854
3097
|
|
|
2855
3098
|
/** @internal */
|
|
2856
|
-
export const
|
|
2857
|
-
|
|
2858
|
-
|
|
3099
|
+
export const CreatePrompt1PromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
3100
|
+
typeof CreatePrompt1PromptsResponseType
|
|
3101
|
+
> = z.nativeEnum(CreatePrompt1PromptsResponseType);
|
|
2859
3102
|
|
|
2860
3103
|
/** @internal */
|
|
2861
|
-
export const
|
|
2862
|
-
|
|
2863
|
-
|
|
3104
|
+
export const CreatePrompt1PromptsResponseType$outboundSchema: z.ZodNativeEnum<
|
|
3105
|
+
typeof CreatePrompt1PromptsResponseType
|
|
3106
|
+
> = CreatePrompt1PromptsResponseType$inboundSchema;
|
|
2864
3107
|
|
|
2865
3108
|
/**
|
|
2866
3109
|
* @internal
|
|
2867
3110
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2868
3111
|
*/
|
|
2869
|
-
export namespace
|
|
2870
|
-
/** @deprecated use `
|
|
2871
|
-
export const inboundSchema =
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
export const outboundSchema =
|
|
2875
|
-
CreatePromptResponseFormatPromptsResponseType$outboundSchema;
|
|
3112
|
+
export namespace CreatePrompt1PromptsResponseType$ {
|
|
3113
|
+
/** @deprecated use `CreatePrompt1PromptsResponseType$inboundSchema` instead. */
|
|
3114
|
+
export const inboundSchema = CreatePrompt1PromptsResponseType$inboundSchema;
|
|
3115
|
+
/** @deprecated use `CreatePrompt1PromptsResponseType$outboundSchema` instead. */
|
|
3116
|
+
export const outboundSchema = CreatePrompt1PromptsResponseType$outboundSchema;
|
|
2876
3117
|
}
|
|
2877
3118
|
|
|
2878
3119
|
/** @internal */
|
|
2879
|
-
export const
|
|
2880
|
-
|
|
3120
|
+
export const CreatePrompt1JsonSchema$inboundSchema: z.ZodType<
|
|
3121
|
+
CreatePrompt1JsonSchema,
|
|
2881
3122
|
z.ZodTypeDef,
|
|
2882
3123
|
unknown
|
|
2883
3124
|
> = z.object({
|
|
@@ -2887,17 +3128,17 @@ export const CreatePromptResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
|
2887
3128
|
});
|
|
2888
3129
|
|
|
2889
3130
|
/** @internal */
|
|
2890
|
-
export type
|
|
3131
|
+
export type CreatePrompt1JsonSchema$Outbound = {
|
|
2891
3132
|
name: string;
|
|
2892
3133
|
strict?: boolean | undefined;
|
|
2893
3134
|
schema: { [k: string]: any };
|
|
2894
3135
|
};
|
|
2895
3136
|
|
|
2896
3137
|
/** @internal */
|
|
2897
|
-
export const
|
|
2898
|
-
|
|
3138
|
+
export const CreatePrompt1JsonSchema$outboundSchema: z.ZodType<
|
|
3139
|
+
CreatePrompt1JsonSchema$Outbound,
|
|
2899
3140
|
z.ZodTypeDef,
|
|
2900
|
-
|
|
3141
|
+
CreatePrompt1JsonSchema
|
|
2901
3142
|
> = z.object({
|
|
2902
3143
|
name: z.string(),
|
|
2903
3144
|
strict: z.boolean().optional(),
|
|
@@ -2908,46 +3149,41 @@ export const CreatePromptResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
|
2908
3149
|
* @internal
|
|
2909
3150
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2910
3151
|
*/
|
|
2911
|
-
export namespace
|
|
2912
|
-
/** @deprecated use `
|
|
2913
|
-
export const inboundSchema =
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
/** @deprecated use `CreatePromptResponseFormatJsonSchema$Outbound` instead. */
|
|
2919
|
-
export type Outbound = CreatePromptResponseFormatJsonSchema$Outbound;
|
|
3152
|
+
export namespace CreatePrompt1JsonSchema$ {
|
|
3153
|
+
/** @deprecated use `CreatePrompt1JsonSchema$inboundSchema` instead. */
|
|
3154
|
+
export const inboundSchema = CreatePrompt1JsonSchema$inboundSchema;
|
|
3155
|
+
/** @deprecated use `CreatePrompt1JsonSchema$outboundSchema` instead. */
|
|
3156
|
+
export const outboundSchema = CreatePrompt1JsonSchema$outboundSchema;
|
|
3157
|
+
/** @deprecated use `CreatePrompt1JsonSchema$Outbound` instead. */
|
|
3158
|
+
export type Outbound = CreatePrompt1JsonSchema$Outbound;
|
|
2920
3159
|
}
|
|
2921
3160
|
|
|
2922
|
-
export function
|
|
2923
|
-
|
|
3161
|
+
export function createPrompt1JsonSchemaToJSON(
|
|
3162
|
+
createPrompt1JsonSchema: CreatePrompt1JsonSchema,
|
|
2924
3163
|
): string {
|
|
2925
3164
|
return JSON.stringify(
|
|
2926
|
-
|
|
2927
|
-
createPromptResponseFormatJsonSchema,
|
|
2928
|
-
),
|
|
3165
|
+
CreatePrompt1JsonSchema$outboundSchema.parse(createPrompt1JsonSchema),
|
|
2929
3166
|
);
|
|
2930
3167
|
}
|
|
2931
3168
|
|
|
2932
|
-
export function
|
|
3169
|
+
export function createPrompt1JsonSchemaFromJSON(
|
|
2933
3170
|
jsonString: string,
|
|
2934
|
-
): SafeParseResult<
|
|
3171
|
+
): SafeParseResult<CreatePrompt1JsonSchema, SDKValidationError> {
|
|
2935
3172
|
return safeParse(
|
|
2936
3173
|
jsonString,
|
|
2937
|
-
(x) =>
|
|
2938
|
-
|
|
2939
|
-
`Failed to parse 'CreatePromptResponseFormatJsonSchema' from JSON`,
|
|
3174
|
+
(x) => CreatePrompt1JsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
3175
|
+
`Failed to parse 'CreatePrompt1JsonSchema' from JSON`,
|
|
2940
3176
|
);
|
|
2941
3177
|
}
|
|
2942
3178
|
|
|
2943
3179
|
/** @internal */
|
|
2944
|
-
export const
|
|
2945
|
-
|
|
3180
|
+
export const CreatePrompt11$inboundSchema: z.ZodType<
|
|
3181
|
+
CreatePrompt11,
|
|
2946
3182
|
z.ZodTypeDef,
|
|
2947
3183
|
unknown
|
|
2948
3184
|
> = z.object({
|
|
2949
|
-
type:
|
|
2950
|
-
json_schema: z.lazy(() =>
|
|
3185
|
+
type: CreatePrompt1PromptsResponseType$inboundSchema,
|
|
3186
|
+
json_schema: z.lazy(() => CreatePrompt1JsonSchema$inboundSchema),
|
|
2951
3187
|
}).transform((v) => {
|
|
2952
3188
|
return remap$(v, {
|
|
2953
3189
|
"json_schema": "jsonSchema",
|
|
@@ -2955,25 +3191,80 @@ export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
|
2955
3191
|
});
|
|
2956
3192
|
|
|
2957
3193
|
/** @internal */
|
|
2958
|
-
export type
|
|
3194
|
+
export type CreatePrompt11$Outbound = {
|
|
2959
3195
|
type: string;
|
|
2960
|
-
json_schema:
|
|
3196
|
+
json_schema: CreatePrompt1JsonSchema$Outbound;
|
|
2961
3197
|
};
|
|
2962
3198
|
|
|
2963
3199
|
/** @internal */
|
|
2964
|
-
export const
|
|
2965
|
-
|
|
3200
|
+
export const CreatePrompt11$outboundSchema: z.ZodType<
|
|
3201
|
+
CreatePrompt11$Outbound,
|
|
2966
3202
|
z.ZodTypeDef,
|
|
2967
|
-
|
|
3203
|
+
CreatePrompt11
|
|
2968
3204
|
> = z.object({
|
|
2969
|
-
type:
|
|
2970
|
-
jsonSchema: z.lazy(() =>
|
|
3205
|
+
type: CreatePrompt1PromptsResponseType$outboundSchema,
|
|
3206
|
+
jsonSchema: z.lazy(() => CreatePrompt1JsonSchema$outboundSchema),
|
|
2971
3207
|
}).transform((v) => {
|
|
2972
3208
|
return remap$(v, {
|
|
2973
3209
|
jsonSchema: "json_schema",
|
|
2974
3210
|
});
|
|
2975
3211
|
});
|
|
2976
3212
|
|
|
3213
|
+
/**
|
|
3214
|
+
* @internal
|
|
3215
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3216
|
+
*/
|
|
3217
|
+
export namespace CreatePrompt11$ {
|
|
3218
|
+
/** @deprecated use `CreatePrompt11$inboundSchema` instead. */
|
|
3219
|
+
export const inboundSchema = CreatePrompt11$inboundSchema;
|
|
3220
|
+
/** @deprecated use `CreatePrompt11$outboundSchema` instead. */
|
|
3221
|
+
export const outboundSchema = CreatePrompt11$outboundSchema;
|
|
3222
|
+
/** @deprecated use `CreatePrompt11$Outbound` instead. */
|
|
3223
|
+
export type Outbound = CreatePrompt11$Outbound;
|
|
3224
|
+
}
|
|
3225
|
+
|
|
3226
|
+
export function createPrompt11ToJSON(createPrompt11: CreatePrompt11): string {
|
|
3227
|
+
return JSON.stringify(CreatePrompt11$outboundSchema.parse(createPrompt11));
|
|
3228
|
+
}
|
|
3229
|
+
|
|
3230
|
+
export function createPrompt11FromJSON(
|
|
3231
|
+
jsonString: string,
|
|
3232
|
+
): SafeParseResult<CreatePrompt11, SDKValidationError> {
|
|
3233
|
+
return safeParse(
|
|
3234
|
+
jsonString,
|
|
3235
|
+
(x) => CreatePrompt11$inboundSchema.parse(JSON.parse(x)),
|
|
3236
|
+
`Failed to parse 'CreatePrompt11' from JSON`,
|
|
3237
|
+
);
|
|
3238
|
+
}
|
|
3239
|
+
|
|
3240
|
+
/** @internal */
|
|
3241
|
+
export const CreatePromptResponseFormat1$inboundSchema: z.ZodType<
|
|
3242
|
+
CreatePromptResponseFormat1,
|
|
3243
|
+
z.ZodTypeDef,
|
|
3244
|
+
unknown
|
|
3245
|
+
> = z.union([
|
|
3246
|
+
z.lazy(() => CreatePrompt11$inboundSchema),
|
|
3247
|
+
z.lazy(() => CreatePrompt12$inboundSchema),
|
|
3248
|
+
z.lazy(() => CreatePrompt1Prompts3$inboundSchema),
|
|
3249
|
+
]);
|
|
3250
|
+
|
|
3251
|
+
/** @internal */
|
|
3252
|
+
export type CreatePromptResponseFormat1$Outbound =
|
|
3253
|
+
| CreatePrompt11$Outbound
|
|
3254
|
+
| CreatePrompt12$Outbound
|
|
3255
|
+
| CreatePrompt1Prompts3$Outbound;
|
|
3256
|
+
|
|
3257
|
+
/** @internal */
|
|
3258
|
+
export const CreatePromptResponseFormat1$outboundSchema: z.ZodType<
|
|
3259
|
+
CreatePromptResponseFormat1$Outbound,
|
|
3260
|
+
z.ZodTypeDef,
|
|
3261
|
+
CreatePromptResponseFormat1
|
|
3262
|
+
> = z.union([
|
|
3263
|
+
z.lazy(() => CreatePrompt11$outboundSchema),
|
|
3264
|
+
z.lazy(() => CreatePrompt12$outboundSchema),
|
|
3265
|
+
z.lazy(() => CreatePrompt1Prompts3$outboundSchema),
|
|
3266
|
+
]);
|
|
3267
|
+
|
|
2977
3268
|
/**
|
|
2978
3269
|
* @internal
|
|
2979
3270
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -3013,16 +3304,24 @@ export const CreatePromptResponseFormat$inboundSchema: z.ZodType<
|
|
|
3013
3304
|
z.ZodTypeDef,
|
|
3014
3305
|
unknown
|
|
3015
3306
|
> = z.union([
|
|
3016
|
-
z.
|
|
3017
|
-
|
|
3018
|
-
|
|
3307
|
+
z.union([
|
|
3308
|
+
z.lazy(() => CreatePrompt11$inboundSchema),
|
|
3309
|
+
z.lazy(() => CreatePrompt12$inboundSchema),
|
|
3310
|
+
z.lazy(() => CreatePrompt1Prompts3$inboundSchema),
|
|
3311
|
+
]),
|
|
3312
|
+
CreatePromptResponseFormat2$inboundSchema,
|
|
3313
|
+
CreatePromptResponseFormat3$inboundSchema,
|
|
3314
|
+
CreatePromptResponseFormat4$inboundSchema,
|
|
3019
3315
|
]);
|
|
3020
3316
|
|
|
3021
3317
|
/** @internal */
|
|
3022
3318
|
export type CreatePromptResponseFormat$Outbound =
|
|
3023
|
-
|
|
|
3024
|
-
|
|
|
3025
|
-
|
|
|
3319
|
+
| CreatePrompt11$Outbound
|
|
3320
|
+
| CreatePrompt12$Outbound
|
|
3321
|
+
| CreatePrompt1Prompts3$Outbound
|
|
3322
|
+
| string
|
|
3323
|
+
| string
|
|
3324
|
+
| string;
|
|
3026
3325
|
|
|
3027
3326
|
/** @internal */
|
|
3028
3327
|
export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
@@ -3030,9 +3329,14 @@ export const CreatePromptResponseFormat$outboundSchema: z.ZodType<
|
|
|
3030
3329
|
z.ZodTypeDef,
|
|
3031
3330
|
CreatePromptResponseFormat
|
|
3032
3331
|
> = z.union([
|
|
3033
|
-
z.
|
|
3034
|
-
|
|
3035
|
-
|
|
3332
|
+
z.union([
|
|
3333
|
+
z.lazy(() => CreatePrompt11$outboundSchema),
|
|
3334
|
+
z.lazy(() => CreatePrompt12$outboundSchema),
|
|
3335
|
+
z.lazy(() => CreatePrompt1Prompts3$outboundSchema),
|
|
3336
|
+
]),
|
|
3337
|
+
CreatePromptResponseFormat2$outboundSchema,
|
|
3338
|
+
CreatePromptResponseFormat3$outboundSchema,
|
|
3339
|
+
CreatePromptResponseFormat4$outboundSchema,
|
|
3036
3340
|
]);
|
|
3037
3341
|
|
|
3038
3342
|
/**
|
|
@@ -3170,9 +3474,14 @@ export const CreatePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
3170
3474
|
style: z.string().optional(),
|
|
3171
3475
|
responseFormat: z.nullable(
|
|
3172
3476
|
z.union([
|
|
3173
|
-
z.
|
|
3174
|
-
|
|
3175
|
-
|
|
3477
|
+
z.union([
|
|
3478
|
+
z.lazy(() => CreatePrompt11$inboundSchema),
|
|
3479
|
+
z.lazy(() => CreatePrompt12$inboundSchema),
|
|
3480
|
+
z.lazy(() => CreatePrompt1Prompts3$inboundSchema),
|
|
3481
|
+
]),
|
|
3482
|
+
CreatePromptResponseFormat2$inboundSchema,
|
|
3483
|
+
CreatePromptResponseFormat3$inboundSchema,
|
|
3484
|
+
CreatePromptResponseFormat4$inboundSchema,
|
|
3176
3485
|
]),
|
|
3177
3486
|
).optional(),
|
|
3178
3487
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
@@ -3201,9 +3510,12 @@ export type CreatePromptModelParameters$Outbound = {
|
|
|
3201
3510
|
quality?: string | undefined;
|
|
3202
3511
|
style?: string | undefined;
|
|
3203
3512
|
responseFormat?:
|
|
3204
|
-
|
|
|
3205
|
-
|
|
|
3206
|
-
|
|
|
3513
|
+
| CreatePrompt11$Outbound
|
|
3514
|
+
| CreatePrompt12$Outbound
|
|
3515
|
+
| CreatePrompt1Prompts3$Outbound
|
|
3516
|
+
| string
|
|
3517
|
+
| string
|
|
3518
|
+
| string
|
|
3207
3519
|
| null
|
|
3208
3520
|
| undefined;
|
|
3209
3521
|
photoRealVersion?: string | undefined;
|
|
@@ -3233,9 +3545,14 @@ export const CreatePromptModelParameters$outboundSchema: z.ZodType<
|
|
|
3233
3545
|
style: z.string().optional(),
|
|
3234
3546
|
responseFormat: z.nullable(
|
|
3235
3547
|
z.union([
|
|
3236
|
-
z.
|
|
3237
|
-
|
|
3238
|
-
|
|
3548
|
+
z.union([
|
|
3549
|
+
z.lazy(() => CreatePrompt11$outboundSchema),
|
|
3550
|
+
z.lazy(() => CreatePrompt12$outboundSchema),
|
|
3551
|
+
z.lazy(() => CreatePrompt1Prompts3$outboundSchema),
|
|
3552
|
+
]),
|
|
3553
|
+
CreatePromptResponseFormat2$outboundSchema,
|
|
3554
|
+
CreatePromptResponseFormat3$outboundSchema,
|
|
3555
|
+
CreatePromptResponseFormat4$outboundSchema,
|
|
3239
3556
|
]),
|
|
3240
3557
|
).optional(),
|
|
3241
3558
|
photoRealVersion: CreatePromptPhotoRealVersion$outboundSchema.optional(),
|