@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.46
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 +2 -1
- package/bin/mcp-server.js +4770 -1625
- package/bin/mcp-server.js.map +57 -56
- package/examples/package-lock.json +1 -1
- package/funcs/promptsDelete.d.ts +2 -1
- package/funcs/promptsDelete.d.ts.map +1 -1
- package/funcs/promptsDelete.js +7 -3
- package/funcs/promptsDelete.js.map +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/components/conversationresponse.js +2 -2
- package/models/components/conversationwithmessagesresponse.js +2 -2
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/errors/deleteprompt.d.ts +29 -0
- package/models/errors/deleteprompt.d.ts.map +1 -0
- package/models/errors/deleteprompt.js +74 -0
- package/models/errors/deleteprompt.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/createcontact.js +2 -2
- package/models/operations/createconversation.js +2 -2
- package/models/operations/createconversationresponse.js +4 -4
- 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.d.ts +16 -16
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +56 -53
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +2 -2
- package/models/operations/createprompt.d.ts +1746 -976
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2032 -1282
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentgetconfig.d.ts +88 -88
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +131 -130
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +5 -5
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +7 -6
- package/models/operations/deploymentinvoke.js.map +1 -1
- 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.js +2 -2
- package/models/operations/getallprompts.d.ts +1051 -42
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1069 -48
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +1051 -42
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1071 -47
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1051 -42
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1070 -48
- package/models/operations/getpromptversion.js.map +1 -1
- 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/listidentities.js +2 -2
- package/models/operations/listpromptversions.d.ts +1051 -42
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1070 -47
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrieveidentity.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +2 -2
- package/models/operations/streamrunagent.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.js +2 -2
- 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/updateidentity.js +2 -2
- package/models/operations/updateprompt.d.ts +2112 -1413
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2200 -1525
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/funcs/promptsDelete.ts +12 -3
- 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/components/conversationresponse.ts +2 -2
- package/src/models/components/conversationwithmessagesresponse.ts +2 -2
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/errors/deleteprompt.ts +67 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +2 -2
- package/src/models/operations/createconversationresponse.ts +4 -4
- 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 +76 -96
- package/src/models/operations/createidentity.ts +2 -2
- package/src/models/operations/createprompt.ts +5179 -3019
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentgetconfig.ts +252 -337
- package/src/models/operations/deploymentinvoke.ts +9 -13
- 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 +2 -2
- package/src/models/operations/getallprompts.ts +3543 -850
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +3463 -786
- package/src/models/operations/getpromptversion.ts +3579 -835
- 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/listidentities.ts +2 -2
- package/src/models/operations/listpromptversions.ts +3644 -864
- package/src/models/operations/retrievecontact.ts +2 -2
- 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/retrieveidentity.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +2 -2
- package/src/models/operations/streamrunagent.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +2 -2
- 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/updateidentity.ts +2 -2
- package/src/models/operations/updateprompt.ts +5281 -3301
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -7,6 +7,7 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { ClosedEnum } from "../../types/enums.js";
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
12
13
|
export type GetAllPromptsRequest = {
|
|
@@ -98,36 +99,41 @@ export type GetAllPromptsResponseFormat4 = ClosedEnum<
|
|
|
98
99
|
typeof GetAllPromptsResponseFormat4
|
|
99
100
|
>;
|
|
100
101
|
|
|
101
|
-
export const
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
102
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
|
|
103
|
+
{
|
|
104
|
+
Text: "text",
|
|
105
|
+
} as const;
|
|
106
|
+
export type GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType =
|
|
107
|
+
ClosedEnum<
|
|
108
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
|
|
109
|
+
>;
|
|
107
110
|
|
|
108
111
|
export type GetAllPromptsResponseFormat3 = {
|
|
109
|
-
type:
|
|
112
|
+
type:
|
|
113
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType;
|
|
110
114
|
};
|
|
111
115
|
|
|
112
|
-
export const
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType =
|
|
117
|
+
{
|
|
118
|
+
JsonObject: "json_object",
|
|
119
|
+
} as const;
|
|
120
|
+
export type GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType =
|
|
121
|
+
ClosedEnum<
|
|
122
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType
|
|
123
|
+
>;
|
|
118
124
|
|
|
119
125
|
export type GetAllPromptsResponseFormat2 = {
|
|
120
|
-
type:
|
|
126
|
+
type: GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType;
|
|
121
127
|
};
|
|
122
128
|
|
|
123
|
-
export const
|
|
129
|
+
export const GetAllPromptsResponseFormatPromptsResponse200Type = {
|
|
124
130
|
JsonSchema: "json_schema",
|
|
125
131
|
} as const;
|
|
126
|
-
export type
|
|
127
|
-
typeof
|
|
132
|
+
export type GetAllPromptsResponseFormatPromptsResponse200Type = ClosedEnum<
|
|
133
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200Type
|
|
128
134
|
>;
|
|
129
135
|
|
|
130
|
-
export type
|
|
136
|
+
export type GetAllPromptsResponseFormatPromptsResponseJsonSchema = {
|
|
131
137
|
name: string;
|
|
132
138
|
description?: string | undefined;
|
|
133
139
|
strict?: boolean | undefined;
|
|
@@ -135,9 +141,9 @@ export type GetAllPromptsResponseFormatJsonSchema = {
|
|
|
135
141
|
};
|
|
136
142
|
|
|
137
143
|
export type GetAllPromptsResponseFormat1 = {
|
|
138
|
-
type:
|
|
144
|
+
type: GetAllPromptsResponseFormatPromptsResponse200Type;
|
|
139
145
|
displayName?: string | undefined;
|
|
140
|
-
jsonSchema:
|
|
146
|
+
jsonSchema: GetAllPromptsResponseFormatPromptsResponseJsonSchema;
|
|
141
147
|
};
|
|
142
148
|
|
|
143
149
|
/**
|
|
@@ -151,7 +157,7 @@ export type GetAllPromptsResponseFormat1 = {
|
|
|
151
157
|
*
|
|
152
158
|
* 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.
|
|
153
159
|
*/
|
|
154
|
-
export type
|
|
160
|
+
export type GetAllPromptsPromptsResponseFormat =
|
|
155
161
|
| GetAllPromptsResponseFormat1
|
|
156
162
|
| GetAllPromptsResponseFormat2
|
|
157
163
|
| GetAllPromptsResponseFormat3
|
|
@@ -190,7 +196,7 @@ export type GetAllPromptsEncodingFormat = ClosedEnum<
|
|
|
190
196
|
/**
|
|
191
197
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
192
198
|
*/
|
|
193
|
-
export const
|
|
199
|
+
export const GetAllPromptsPromptsReasoningEffort = {
|
|
194
200
|
None: "none",
|
|
195
201
|
Disable: "disable",
|
|
196
202
|
Minimal: "minimal",
|
|
@@ -201,8 +207,8 @@ export const GetAllPromptsReasoningEffort = {
|
|
|
201
207
|
/**
|
|
202
208
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
203
209
|
*/
|
|
204
|
-
export type
|
|
205
|
-
typeof
|
|
210
|
+
export type GetAllPromptsPromptsReasoningEffort = ClosedEnum<
|
|
211
|
+
typeof GetAllPromptsPromptsReasoningEffort
|
|
206
212
|
>;
|
|
207
213
|
|
|
208
214
|
/**
|
|
@@ -315,7 +321,7 @@ export type GetAllPromptsModelParameters = {
|
|
|
315
321
|
/**
|
|
316
322
|
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
317
323
|
*/
|
|
318
|
-
reasoningEffort?:
|
|
324
|
+
reasoningEffort?: GetAllPromptsPromptsReasoningEffort | undefined;
|
|
319
325
|
/**
|
|
320
326
|
* Gives the model enhanced reasoning capabilities for complex tasks. A value of 0 disables thinking. The minimum budget tokens for thinking are 1024. The Budget Tokens should never exceed the Max Tokens parameter. Only supported by `Anthropic`
|
|
321
327
|
*/
|
|
@@ -487,11 +493,13 @@ export type GetAllPromptsMessages = {
|
|
|
487
493
|
};
|
|
488
494
|
|
|
489
495
|
/**
|
|
490
|
-
* A list of messages compatible with the openAI schema
|
|
496
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
497
|
+
*
|
|
498
|
+
* @deprecated class: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
491
499
|
*/
|
|
492
500
|
export type GetAllPromptsPromptConfig = {
|
|
493
501
|
stream?: boolean | undefined;
|
|
494
|
-
model?: string | undefined;
|
|
502
|
+
model?: string | null | undefined;
|
|
495
503
|
/**
|
|
496
504
|
* The id of the resource
|
|
497
505
|
*/
|
|
@@ -504,7 +512,7 @@ export type GetAllPromptsPromptConfig = {
|
|
|
504
512
|
* Model Parameters: Not all parameters apply to every model
|
|
505
513
|
*/
|
|
506
514
|
modelParameters?: GetAllPromptsModelParameters | undefined;
|
|
507
|
-
provider?: GetAllPromptsProvider | undefined;
|
|
515
|
+
provider?: GetAllPromptsProvider | null | undefined;
|
|
508
516
|
/**
|
|
509
517
|
* The ID of the integration to use
|
|
510
518
|
*/
|
|
@@ -513,1269 +521,3949 @@ export type GetAllPromptsPromptConfig = {
|
|
|
513
521
|
messages: Array<GetAllPromptsMessages>;
|
|
514
522
|
};
|
|
515
523
|
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
DocumentsQA: "Documents QA",
|
|
527
|
-
Evaluation: "Evaluation",
|
|
528
|
-
Extraction: "Extraction",
|
|
529
|
-
MultiModal: "Multi-modal",
|
|
530
|
-
SelfChecking: "Self-checking",
|
|
531
|
-
SentimentAnalysis: "Sentiment analysis",
|
|
532
|
-
Sql: "SQL",
|
|
533
|
-
Summarization: "Summarization",
|
|
534
|
-
Tagging: "Tagging",
|
|
535
|
-
TranslationDocument: "Translation (document)",
|
|
536
|
-
TranslationSentences: "Translation (sentences)",
|
|
524
|
+
/**
|
|
525
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
526
|
+
*/
|
|
527
|
+
export const GetAllPromptsVoice = {
|
|
528
|
+
Alloy: "alloy",
|
|
529
|
+
Echo: "echo",
|
|
530
|
+
Fable: "fable",
|
|
531
|
+
Onyx: "onyx",
|
|
532
|
+
Nova: "nova",
|
|
533
|
+
Shimmer: "shimmer",
|
|
537
534
|
} as const;
|
|
538
|
-
|
|
535
|
+
/**
|
|
536
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
537
|
+
*/
|
|
538
|
+
export type GetAllPromptsVoice = ClosedEnum<typeof GetAllPromptsVoice>;
|
|
539
539
|
|
|
540
540
|
/**
|
|
541
|
-
*
|
|
541
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
542
542
|
*/
|
|
543
|
-
export const
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
Russian: "Russian",
|
|
550
|
-
Spanish: "Spanish",
|
|
543
|
+
export const GetAllPromptsPromptsFormat = {
|
|
544
|
+
Wav: "wav",
|
|
545
|
+
Mp3: "mp3",
|
|
546
|
+
Flac: "flac",
|
|
547
|
+
Opus: "opus",
|
|
548
|
+
Pcm16: "pcm16",
|
|
551
549
|
} as const;
|
|
552
550
|
/**
|
|
553
|
-
*
|
|
551
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
554
552
|
*/
|
|
555
|
-
export type
|
|
553
|
+
export type GetAllPromptsPromptsFormat = ClosedEnum<
|
|
554
|
+
typeof GetAllPromptsPromptsFormat
|
|
555
|
+
>;
|
|
556
556
|
|
|
557
|
-
|
|
557
|
+
/**
|
|
558
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
559
|
+
*/
|
|
560
|
+
export type GetAllPromptsAudio = {
|
|
558
561
|
/**
|
|
559
|
-
*
|
|
562
|
+
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
560
563
|
*/
|
|
561
|
-
|
|
564
|
+
voice: GetAllPromptsVoice;
|
|
562
565
|
/**
|
|
563
|
-
*
|
|
566
|
+
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
564
567
|
*/
|
|
565
|
-
|
|
568
|
+
format: GetAllPromptsPromptsFormat;
|
|
566
569
|
};
|
|
567
570
|
|
|
568
|
-
|
|
569
|
-
* A prompt entity with configuration, metadata, and versioning.
|
|
570
|
-
*/
|
|
571
|
-
export type GetAllPromptsPrompt = {
|
|
572
|
-
id: string;
|
|
573
|
-
type: GetAllPromptsType;
|
|
574
|
-
owner: string;
|
|
575
|
-
domainId: string;
|
|
576
|
-
created: string;
|
|
577
|
-
updated: string;
|
|
578
|
-
createdById?: string | null | undefined;
|
|
579
|
-
updatedById?: string | null | undefined;
|
|
571
|
+
export type GetAllPromptsResponseFormatJsonSchema = {
|
|
580
572
|
/**
|
|
581
|
-
*
|
|
573
|
+
* A description of what the response format is for, used by the model to determine how to respond in the format.
|
|
582
574
|
*/
|
|
583
|
-
|
|
575
|
+
description?: string | undefined;
|
|
584
576
|
/**
|
|
585
|
-
* The
|
|
577
|
+
* The name of the response format. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.
|
|
586
578
|
*/
|
|
587
|
-
|
|
579
|
+
name: string;
|
|
588
580
|
/**
|
|
589
|
-
*
|
|
581
|
+
* The schema for the response format, described as a JSON Schema object.
|
|
590
582
|
*/
|
|
591
|
-
|
|
592
|
-
|
|
583
|
+
schema?: any | undefined;
|
|
584
|
+
/**
|
|
585
|
+
* Whether to enable strict schema adherence when generating the output. If set to true, the model will always follow the exact schema defined in the schema field. Only a subset of JSON Schema is supported when strict is true.
|
|
586
|
+
*/
|
|
587
|
+
strict?: boolean | undefined;
|
|
593
588
|
};
|
|
594
589
|
|
|
595
590
|
/**
|
|
596
|
-
*
|
|
591
|
+
* @remarks
|
|
592
|
+
*
|
|
593
|
+
* JSON Schema response format. Used to generate structured JSON responses
|
|
597
594
|
*/
|
|
598
|
-
export type
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
hasMore: boolean;
|
|
595
|
+
export type GetAllPromptsResponseFormatPromptsJSONSchema = {
|
|
596
|
+
type: "json_schema";
|
|
597
|
+
jsonSchema: GetAllPromptsResponseFormatJsonSchema;
|
|
602
598
|
};
|
|
603
599
|
|
|
604
|
-
/**
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
starting_after: z.string().optional(),
|
|
612
|
-
ending_before: z.string().optional(),
|
|
613
|
-
}).transform((v) => {
|
|
614
|
-
return remap$(v, {
|
|
615
|
-
"starting_after": "startingAfter",
|
|
616
|
-
"ending_before": "endingBefore",
|
|
617
|
-
});
|
|
618
|
-
});
|
|
619
|
-
/** @internal */
|
|
620
|
-
export type GetAllPromptsRequest$Outbound = {
|
|
621
|
-
limit: number;
|
|
622
|
-
starting_after?: string | undefined;
|
|
623
|
-
ending_before?: string | undefined;
|
|
600
|
+
/**
|
|
601
|
+
* @remarks
|
|
602
|
+
*
|
|
603
|
+
* JSON object response format. An older method of generating JSON responses. Using `json_schema` is recommended for models that support it. Note that the model will not generate JSON without a system or user message instructing it to do so.
|
|
604
|
+
*/
|
|
605
|
+
export type GetAllPromptsResponseFormatJSONObject = {
|
|
606
|
+
type: "json_object";
|
|
624
607
|
};
|
|
625
608
|
|
|
626
|
-
/**
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
endingBefore: z.string().optional(),
|
|
635
|
-
}).transform((v) => {
|
|
636
|
-
return remap$(v, {
|
|
637
|
-
startingAfter: "starting_after",
|
|
638
|
-
endingBefore: "ending_before",
|
|
639
|
-
});
|
|
640
|
-
});
|
|
609
|
+
/**
|
|
610
|
+
* @remarks
|
|
611
|
+
*
|
|
612
|
+
* Default response format. Used to generate text responses
|
|
613
|
+
*/
|
|
614
|
+
export type GetAllPromptsResponseFormatText = {
|
|
615
|
+
type: "text";
|
|
616
|
+
};
|
|
641
617
|
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
export function getAllPromptsRequestFromJSON(
|
|
650
|
-
jsonString: string,
|
|
651
|
-
): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
|
|
652
|
-
return safeParse(
|
|
653
|
-
jsonString,
|
|
654
|
-
(x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
655
|
-
`Failed to parse 'GetAllPromptsRequest' from JSON`,
|
|
656
|
-
);
|
|
657
|
-
}
|
|
618
|
+
/**
|
|
619
|
+
* An object specifying the format that the model must output
|
|
620
|
+
*/
|
|
621
|
+
export type GetAllPromptsResponseFormat =
|
|
622
|
+
| GetAllPromptsResponseFormatText
|
|
623
|
+
| GetAllPromptsResponseFormatJSONObject
|
|
624
|
+
| GetAllPromptsResponseFormatPromptsJSONSchema;
|
|
658
625
|
|
|
659
|
-
/**
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
626
|
+
/**
|
|
627
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
628
|
+
*
|
|
629
|
+
* @remarks
|
|
630
|
+
*
|
|
631
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
632
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
633
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
634
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
635
|
+
*
|
|
636
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
637
|
+
*/
|
|
638
|
+
export const GetAllPromptsReasoningEffort = {
|
|
639
|
+
None: "none",
|
|
640
|
+
Minimal: "minimal",
|
|
641
|
+
Low: "low",
|
|
642
|
+
Medium: "medium",
|
|
643
|
+
High: "high",
|
|
644
|
+
Xhigh: "xhigh",
|
|
645
|
+
} as const;
|
|
646
|
+
/**
|
|
647
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
648
|
+
*
|
|
649
|
+
* @remarks
|
|
650
|
+
*
|
|
651
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
652
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
653
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
654
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
655
|
+
*
|
|
656
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
657
|
+
*/
|
|
658
|
+
export type GetAllPromptsReasoningEffort = ClosedEnum<
|
|
659
|
+
typeof GetAllPromptsReasoningEffort
|
|
660
|
+
>;
|
|
667
661
|
|
|
668
|
-
/**
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
/** @internal */
|
|
673
|
-
export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
674
|
-
typeof GetAllPromptsType
|
|
675
|
-
> = GetAllPromptsType$inboundSchema;
|
|
662
|
+
/**
|
|
663
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
664
|
+
*/
|
|
665
|
+
export type GetAllPromptsStop = string | Array<string>;
|
|
676
666
|
|
|
677
|
-
/**
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
/**
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
667
|
+
/**
|
|
668
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
669
|
+
*/
|
|
670
|
+
export type GetAllPromptsStreamOptions = {
|
|
671
|
+
/**
|
|
672
|
+
* If set, an additional chunk will be streamed before the data: [DONE] message. The usage field on this chunk shows the token usage statistics for the entire request, and the choices field will always be an empty array. All other chunks will also include a usage field, but with a null value.
|
|
673
|
+
*/
|
|
674
|
+
includeUsage?: boolean | undefined;
|
|
675
|
+
};
|
|
685
676
|
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
> = z.nativeEnum(GetAllPromptsFormat);
|
|
690
|
-
/** @internal */
|
|
691
|
-
export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
692
|
-
typeof GetAllPromptsFormat
|
|
693
|
-
> = GetAllPromptsFormat$inboundSchema;
|
|
677
|
+
export type GetAllPromptsThinking =
|
|
678
|
+
| components.ThinkingConfigDisabledSchema
|
|
679
|
+
| components.ThinkingConfigEnabledSchema;
|
|
694
680
|
|
|
695
|
-
/**
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
681
|
+
/**
|
|
682
|
+
* The type of the tool. Currently, only function is supported.
|
|
683
|
+
*/
|
|
684
|
+
export const GetAllPromptsToolChoiceType = {
|
|
685
|
+
Function: "function",
|
|
686
|
+
} as const;
|
|
687
|
+
/**
|
|
688
|
+
* The type of the tool. Currently, only function is supported.
|
|
689
|
+
*/
|
|
690
|
+
export type GetAllPromptsToolChoiceType = ClosedEnum<
|
|
691
|
+
typeof GetAllPromptsToolChoiceType
|
|
692
|
+
>;
|
|
703
693
|
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
typeof GetAllPromptsResponseFormat5
|
|
711
|
-
> = GetAllPromptsResponseFormat5$inboundSchema;
|
|
694
|
+
export type GetAllPromptsToolChoiceFunction = {
|
|
695
|
+
/**
|
|
696
|
+
* The name of the function to call.
|
|
697
|
+
*/
|
|
698
|
+
name: string;
|
|
699
|
+
};
|
|
712
700
|
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
701
|
+
export type GetAllPromptsToolChoice2 = {
|
|
702
|
+
/**
|
|
703
|
+
* The type of the tool. Currently, only function is supported.
|
|
704
|
+
*/
|
|
705
|
+
type?: GetAllPromptsToolChoiceType | undefined;
|
|
706
|
+
function: GetAllPromptsToolChoiceFunction;
|
|
707
|
+
};
|
|
708
|
+
|
|
709
|
+
export const GetAllPromptsToolChoice1 = {
|
|
710
|
+
None: "none",
|
|
711
|
+
Auto: "auto",
|
|
712
|
+
Required: "required",
|
|
713
|
+
} as const;
|
|
714
|
+
export type GetAllPromptsToolChoice1 = ClosedEnum<
|
|
715
|
+
typeof GetAllPromptsToolChoice1
|
|
716
|
+
>;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* Controls which (if any) tool is called by the model.
|
|
720
|
+
*/
|
|
721
|
+
export type GetAllPromptsToolChoice =
|
|
722
|
+
| GetAllPromptsToolChoice2
|
|
723
|
+
| GetAllPromptsToolChoice1;
|
|
724
|
+
|
|
725
|
+
export const GetAllPromptsModalities = {
|
|
726
|
+
Text: "text",
|
|
727
|
+
Audio: "audio",
|
|
728
|
+
} as const;
|
|
729
|
+
export type GetAllPromptsModalities = ClosedEnum<
|
|
730
|
+
typeof GetAllPromptsModalities
|
|
731
|
+
>;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The key of the guardrail.
|
|
735
|
+
*/
|
|
736
|
+
export const GetAllPromptsId1 = {
|
|
737
|
+
OrqPiiDetection: "orq_pii_detection",
|
|
738
|
+
OrqSexualModeration: "orq_sexual_moderation",
|
|
739
|
+
OrqHarmfulModeration: "orq_harmful_moderation",
|
|
740
|
+
} as const;
|
|
741
|
+
/**
|
|
742
|
+
* The key of the guardrail.
|
|
743
|
+
*/
|
|
744
|
+
export type GetAllPromptsId1 = ClosedEnum<typeof GetAllPromptsId1>;
|
|
745
|
+
|
|
746
|
+
export type GetAllPromptsId = GetAllPromptsId1 | string;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
750
|
+
*/
|
|
751
|
+
export const GetAllPromptsExecuteOn = {
|
|
752
|
+
Input: "input",
|
|
753
|
+
Output: "output",
|
|
754
|
+
} as const;
|
|
755
|
+
/**
|
|
756
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
757
|
+
*/
|
|
758
|
+
export type GetAllPromptsExecuteOn = ClosedEnum<typeof GetAllPromptsExecuteOn>;
|
|
759
|
+
|
|
760
|
+
export type GetAllPromptsGuardrails = {
|
|
761
|
+
id: GetAllPromptsId1 | string;
|
|
762
|
+
/**
|
|
763
|
+
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
764
|
+
*/
|
|
765
|
+
executeOn: GetAllPromptsExecuteOn;
|
|
766
|
+
};
|
|
767
|
+
|
|
768
|
+
export type GetAllPromptsContentPromptsResponse2002 =
|
|
769
|
+
components.TextContentPartSchema;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* The contents of the tool message.
|
|
773
|
+
*/
|
|
774
|
+
export type GetAllPromptsMessagesPromptsResponse200Content =
|
|
775
|
+
| string
|
|
776
|
+
| Array<components.TextContentPartSchema>;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
780
|
+
*/
|
|
781
|
+
export const GetAllPromptsMessagesPromptsType = {
|
|
782
|
+
Ephemeral: "ephemeral",
|
|
783
|
+
} as const;
|
|
784
|
+
/**
|
|
785
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
786
|
+
*/
|
|
787
|
+
export type GetAllPromptsMessagesPromptsType = ClosedEnum<
|
|
788
|
+
typeof GetAllPromptsMessagesPromptsType
|
|
789
|
+
>;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
793
|
+
*
|
|
794
|
+
* @remarks
|
|
795
|
+
*
|
|
796
|
+
* - `5m`: 5 minutes
|
|
797
|
+
* - `1h`: 1 hour
|
|
798
|
+
*
|
|
799
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
800
|
+
*/
|
|
801
|
+
export const GetAllPromptsMessagesTtl = {
|
|
802
|
+
Fivem: "5m",
|
|
803
|
+
Oneh: "1h",
|
|
804
|
+
} as const;
|
|
805
|
+
/**
|
|
806
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
807
|
+
*
|
|
808
|
+
* @remarks
|
|
809
|
+
*
|
|
810
|
+
* - `5m`: 5 minutes
|
|
811
|
+
* - `1h`: 1 hour
|
|
812
|
+
*
|
|
813
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
814
|
+
*/
|
|
815
|
+
export type GetAllPromptsMessagesTtl = ClosedEnum<
|
|
816
|
+
typeof GetAllPromptsMessagesTtl
|
|
817
|
+
>;
|
|
818
|
+
|
|
819
|
+
export type GetAllPromptsMessagesCacheControl = {
|
|
820
|
+
/**
|
|
821
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
822
|
+
*/
|
|
823
|
+
type: GetAllPromptsMessagesPromptsType;
|
|
824
|
+
/**
|
|
825
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
826
|
+
*
|
|
827
|
+
* @remarks
|
|
828
|
+
*
|
|
829
|
+
* - `5m`: 5 minutes
|
|
830
|
+
* - `1h`: 1 hour
|
|
831
|
+
*
|
|
832
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
833
|
+
*/
|
|
834
|
+
ttl?: GetAllPromptsMessagesTtl | undefined;
|
|
835
|
+
};
|
|
836
|
+
|
|
837
|
+
export type GetAllPromptsMessagesToolMessage = {
|
|
838
|
+
/**
|
|
839
|
+
* The role of the messages author, in this case tool.
|
|
840
|
+
*/
|
|
841
|
+
role: "tool";
|
|
842
|
+
/**
|
|
843
|
+
* The contents of the tool message.
|
|
844
|
+
*/
|
|
845
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
846
|
+
/**
|
|
847
|
+
* Tool call that this message is responding to.
|
|
848
|
+
*/
|
|
849
|
+
toolCallId: string | null;
|
|
850
|
+
cacheControl?: GetAllPromptsMessagesCacheControl | undefined;
|
|
851
|
+
};
|
|
852
|
+
|
|
853
|
+
export type GetAllPromptsContentPromptsResponse2 =
|
|
854
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
855
|
+
| components.RefusalPartSchema
|
|
856
|
+
| components.ReasoningPartSchema
|
|
857
|
+
| components.RedactedReasoningPartSchema;
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
861
|
+
*/
|
|
862
|
+
export type GetAllPromptsMessagesPromptsResponseContent =
|
|
863
|
+
| string
|
|
864
|
+
| Array<
|
|
865
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
866
|
+
| components.RefusalPartSchema
|
|
867
|
+
| components.ReasoningPartSchema
|
|
868
|
+
| components.RedactedReasoningPartSchema
|
|
869
|
+
>;
|
|
870
|
+
|
|
871
|
+
/**
|
|
872
|
+
* Data about a previous audio response from the model.
|
|
873
|
+
*/
|
|
874
|
+
export type GetAllPromptsMessagesAudio = {
|
|
875
|
+
/**
|
|
876
|
+
* Unique identifier for a previous audio response from the model.
|
|
877
|
+
*/
|
|
878
|
+
id: string;
|
|
879
|
+
};
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
883
|
+
*/
|
|
884
|
+
export const GetAllPromptsMessagesType = {
|
|
885
|
+
Function: "function",
|
|
886
|
+
} as const;
|
|
887
|
+
/**
|
|
888
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
889
|
+
*/
|
|
890
|
+
export type GetAllPromptsMessagesType = ClosedEnum<
|
|
891
|
+
typeof GetAllPromptsMessagesType
|
|
892
|
+
>;
|
|
893
|
+
|
|
894
|
+
export type GetAllPromptsMessagesFunction = {
|
|
895
|
+
/**
|
|
896
|
+
* The name of the function to call.
|
|
897
|
+
*/
|
|
898
|
+
name?: string | undefined;
|
|
899
|
+
/**
|
|
900
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
901
|
+
*/
|
|
902
|
+
arguments?: string | undefined;
|
|
903
|
+
};
|
|
904
|
+
|
|
905
|
+
export type GetAllPromptsMessagesToolCalls = {
|
|
906
|
+
/**
|
|
907
|
+
* The ID of the tool call.
|
|
908
|
+
*/
|
|
909
|
+
id: string;
|
|
910
|
+
/**
|
|
911
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
912
|
+
*/
|
|
913
|
+
type: GetAllPromptsMessagesType;
|
|
914
|
+
function: GetAllPromptsMessagesFunction;
|
|
915
|
+
/**
|
|
916
|
+
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
917
|
+
*/
|
|
918
|
+
thoughtSignature?: string | undefined;
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
export type GetAllPromptsMessagesAssistantMessage = {
|
|
922
|
+
/**
|
|
923
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
924
|
+
*/
|
|
925
|
+
content?:
|
|
926
|
+
| string
|
|
927
|
+
| Array<
|
|
928
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
929
|
+
| components.RefusalPartSchema
|
|
930
|
+
| components.ReasoningPartSchema
|
|
931
|
+
| components.RedactedReasoningPartSchema
|
|
932
|
+
>
|
|
933
|
+
| null
|
|
934
|
+
| undefined;
|
|
935
|
+
/**
|
|
936
|
+
* The refusal message by the assistant.
|
|
937
|
+
*/
|
|
938
|
+
refusal?: string | null | undefined;
|
|
939
|
+
/**
|
|
940
|
+
* The role of the messages author, in this case `assistant`.
|
|
941
|
+
*/
|
|
942
|
+
role: "assistant";
|
|
943
|
+
/**
|
|
944
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
945
|
+
*/
|
|
946
|
+
name?: string | undefined;
|
|
947
|
+
/**
|
|
948
|
+
* Data about a previous audio response from the model.
|
|
949
|
+
*/
|
|
950
|
+
audio?: GetAllPromptsMessagesAudio | null | undefined;
|
|
951
|
+
/**
|
|
952
|
+
* The tool calls generated by the model, such as function calls.
|
|
953
|
+
*/
|
|
954
|
+
toolCalls?: Array<GetAllPromptsMessagesToolCalls> | undefined;
|
|
955
|
+
};
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
959
|
+
*/
|
|
960
|
+
export const GetAllPrompts2PromptsResponse200ApplicationJSONType = {
|
|
961
|
+
Ephemeral: "ephemeral",
|
|
962
|
+
} as const;
|
|
963
|
+
/**
|
|
964
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
965
|
+
*/
|
|
966
|
+
export type GetAllPrompts2PromptsResponse200ApplicationJSONType = ClosedEnum<
|
|
967
|
+
typeof GetAllPrompts2PromptsResponse200ApplicationJSONType
|
|
968
|
+
>;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
972
|
+
*
|
|
973
|
+
* @remarks
|
|
974
|
+
*
|
|
975
|
+
* - `5m`: 5 minutes
|
|
976
|
+
* - `1h`: 1 hour
|
|
977
|
+
*
|
|
978
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
979
|
+
*/
|
|
980
|
+
export const GetAllPrompts2Ttl = {
|
|
981
|
+
Fivem: "5m",
|
|
982
|
+
Oneh: "1h",
|
|
983
|
+
} as const;
|
|
984
|
+
/**
|
|
985
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
986
|
+
*
|
|
987
|
+
* @remarks
|
|
988
|
+
*
|
|
989
|
+
* - `5m`: 5 minutes
|
|
990
|
+
* - `1h`: 1 hour
|
|
991
|
+
*
|
|
992
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
993
|
+
*/
|
|
994
|
+
export type GetAllPrompts2Ttl = ClosedEnum<typeof GetAllPrompts2Ttl>;
|
|
995
|
+
|
|
996
|
+
export type GetAllPrompts2CacheControl = {
|
|
997
|
+
/**
|
|
998
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
999
|
+
*/
|
|
1000
|
+
type: GetAllPrompts2PromptsResponse200ApplicationJSONType;
|
|
1001
|
+
/**
|
|
1002
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1003
|
+
*
|
|
1004
|
+
* @remarks
|
|
1005
|
+
*
|
|
1006
|
+
* - `5m`: 5 minutes
|
|
1007
|
+
* - `1h`: 1 hour
|
|
1008
|
+
*
|
|
1009
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1010
|
+
*/
|
|
1011
|
+
ttl?: GetAllPrompts2Ttl | undefined;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
export type GetAllPrompts24 = {
|
|
1015
|
+
/**
|
|
1016
|
+
* The type of the content part. Always `file`.
|
|
1017
|
+
*/
|
|
1018
|
+
type: "file";
|
|
1019
|
+
cacheControl?: GetAllPrompts2CacheControl | undefined;
|
|
1020
|
+
/**
|
|
1021
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
1022
|
+
*/
|
|
1023
|
+
file: components.FileContentPartSchema;
|
|
1024
|
+
};
|
|
1025
|
+
|
|
1026
|
+
export type GetAllPromptsContentPrompts2 =
|
|
1027
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1028
|
+
| components.ImageContentPartSchema
|
|
1029
|
+
| components.AudioContentPartSchema
|
|
1030
|
+
| GetAllPrompts24;
|
|
1031
|
+
|
|
1032
|
+
/**
|
|
1033
|
+
* The contents of the user message.
|
|
1034
|
+
*/
|
|
1035
|
+
export type GetAllPromptsMessagesPromptsContent =
|
|
1036
|
+
| string
|
|
1037
|
+
| Array<
|
|
1038
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1039
|
+
| components.ImageContentPartSchema
|
|
1040
|
+
| components.AudioContentPartSchema
|
|
1041
|
+
| GetAllPrompts24
|
|
1042
|
+
>;
|
|
1043
|
+
|
|
1044
|
+
export type GetAllPromptsMessagesUserMessage = {
|
|
1045
|
+
/**
|
|
1046
|
+
* The role of the messages author, in this case `user`.
|
|
1047
|
+
*/
|
|
1048
|
+
role: "user";
|
|
1049
|
+
/**
|
|
1050
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1051
|
+
*/
|
|
1052
|
+
name?: string | undefined;
|
|
1053
|
+
/**
|
|
1054
|
+
* The contents of the user message.
|
|
1055
|
+
*/
|
|
1056
|
+
content:
|
|
1057
|
+
| string
|
|
1058
|
+
| Array<
|
|
1059
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1060
|
+
| components.ImageContentPartSchema
|
|
1061
|
+
| components.AudioContentPartSchema
|
|
1062
|
+
| GetAllPrompts24
|
|
1063
|
+
>;
|
|
1064
|
+
};
|
|
1065
|
+
|
|
1066
|
+
/**
|
|
1067
|
+
* The contents of the system message.
|
|
1068
|
+
*/
|
|
1069
|
+
export type GetAllPromptsMessagesContent =
|
|
1070
|
+
| string
|
|
1071
|
+
| Array<components.TextContentPartSchema>;
|
|
1072
|
+
|
|
1073
|
+
/**
|
|
1074
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
1075
|
+
*/
|
|
1076
|
+
export type GetAllPromptsMessagesSystemMessage = {
|
|
1077
|
+
/**
|
|
1078
|
+
* The role of the messages author, in this case `system`.
|
|
1079
|
+
*/
|
|
1080
|
+
role: "system";
|
|
1081
|
+
/**
|
|
1082
|
+
* The contents of the system message.
|
|
1083
|
+
*/
|
|
1084
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
1085
|
+
/**
|
|
1086
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1087
|
+
*/
|
|
1088
|
+
name?: string | undefined;
|
|
1089
|
+
};
|
|
1090
|
+
|
|
1091
|
+
export type GetAllPromptsPromptsMessages =
|
|
1092
|
+
| GetAllPromptsMessagesSystemMessage
|
|
1093
|
+
| GetAllPromptsMessagesUserMessage
|
|
1094
|
+
| GetAllPromptsMessagesAssistantMessage
|
|
1095
|
+
| GetAllPromptsMessagesToolMessage;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
1099
|
+
*/
|
|
1100
|
+
export type GetAllPromptsPromptField = {
|
|
1101
|
+
/**
|
|
1102
|
+
* Parameters for audio output. Required when audio output is requested with modalities: ["audio"]. Learn more.
|
|
1103
|
+
*/
|
|
1104
|
+
audio?: GetAllPromptsAudio | null | undefined;
|
|
1105
|
+
/**
|
|
1106
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim.
|
|
1107
|
+
*/
|
|
1108
|
+
frequencyPenalty?: number | null | undefined;
|
|
1109
|
+
/**
|
|
1110
|
+
* `[Deprecated]`. The maximum number of tokens that can be generated in the chat completion. This value can be used to control costs for text generated via API.
|
|
1111
|
+
*
|
|
1112
|
+
* @remarks
|
|
1113
|
+
*
|
|
1114
|
+
* This value is now `deprecated` in favor of `max_completion_tokens`, and is not compatible with o1 series models.
|
|
1115
|
+
*/
|
|
1116
|
+
maxTokens?: number | null | undefined;
|
|
1117
|
+
/**
|
|
1118
|
+
* An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens
|
|
1119
|
+
*/
|
|
1120
|
+
maxCompletionTokens?: number | null | undefined;
|
|
1121
|
+
/**
|
|
1122
|
+
* Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the content of message.
|
|
1123
|
+
*/
|
|
1124
|
+
logprobs?: boolean | null | undefined;
|
|
1125
|
+
/**
|
|
1126
|
+
* An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. logprobs must be set to true if this parameter is used.
|
|
1127
|
+
*/
|
|
1128
|
+
topLogprobs?: number | null | undefined;
|
|
1129
|
+
/**
|
|
1130
|
+
* How many chat completion choices to generate for each input message. Note that you will be charged based on the number of generated tokens across all of the choices. Keep n as 1 to minimize costs.
|
|
1131
|
+
*/
|
|
1132
|
+
n?: number | null | undefined;
|
|
1133
|
+
/**
|
|
1134
|
+
* Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
|
|
1135
|
+
*/
|
|
1136
|
+
presencePenalty?: number | null | undefined;
|
|
1137
|
+
/**
|
|
1138
|
+
* An object specifying the format that the model must output
|
|
1139
|
+
*/
|
|
1140
|
+
responseFormat?:
|
|
1141
|
+
| GetAllPromptsResponseFormatText
|
|
1142
|
+
| GetAllPromptsResponseFormatJSONObject
|
|
1143
|
+
| GetAllPromptsResponseFormatPromptsJSONSchema
|
|
1144
|
+
| undefined;
|
|
1145
|
+
/**
|
|
1146
|
+
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
1147
|
+
*
|
|
1148
|
+
* @remarks
|
|
1149
|
+
*
|
|
1150
|
+
* - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
|
|
1151
|
+
* - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
|
|
1152
|
+
* - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
|
|
1153
|
+
* - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
|
|
1154
|
+
*
|
|
1155
|
+
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
1156
|
+
*/
|
|
1157
|
+
reasoningEffort?: GetAllPromptsReasoningEffort | undefined;
|
|
1158
|
+
/**
|
|
1159
|
+
* Adjusts response verbosity. Lower levels yield shorter answers.
|
|
1160
|
+
*/
|
|
1161
|
+
verbosity?: string | undefined;
|
|
1162
|
+
/**
|
|
1163
|
+
* If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result.
|
|
1164
|
+
*/
|
|
1165
|
+
seed?: number | null | undefined;
|
|
1166
|
+
/**
|
|
1167
|
+
* Up to 4 sequences where the API will stop generating further tokens.
|
|
1168
|
+
*/
|
|
1169
|
+
stop?: string | Array<string> | null | undefined;
|
|
1170
|
+
/**
|
|
1171
|
+
* Options for streaming response. Only set this when you set stream: true.
|
|
1172
|
+
*/
|
|
1173
|
+
streamOptions?: GetAllPromptsStreamOptions | null | undefined;
|
|
1174
|
+
thinking?:
|
|
1175
|
+
| components.ThinkingConfigDisabledSchema
|
|
1176
|
+
| components.ThinkingConfigEnabledSchema
|
|
1177
|
+
| undefined;
|
|
1178
|
+
/**
|
|
1179
|
+
* What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic.
|
|
1180
|
+
*/
|
|
1181
|
+
temperature?: number | null | undefined;
|
|
1182
|
+
/**
|
|
1183
|
+
* An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass.
|
|
1184
|
+
*/
|
|
1185
|
+
topP?: number | null | undefined;
|
|
1186
|
+
/**
|
|
1187
|
+
* Limits the model to consider only the top k most likely tokens at each step.
|
|
1188
|
+
*/
|
|
1189
|
+
topK?: number | null | undefined;
|
|
1190
|
+
/**
|
|
1191
|
+
* Controls which (if any) tool is called by the model.
|
|
1192
|
+
*/
|
|
1193
|
+
toolChoice?: GetAllPromptsToolChoice2 | GetAllPromptsToolChoice1 | undefined;
|
|
1194
|
+
/**
|
|
1195
|
+
* Whether to enable parallel function calling during tool use.
|
|
1196
|
+
*/
|
|
1197
|
+
parallelToolCalls?: boolean | undefined;
|
|
1198
|
+
/**
|
|
1199
|
+
* Output types that you would like the model to generate. Most models are capable of generating text, which is the default: ["text"]. The gpt-4o-audio-preview model can also be used to generate audio. To request that this model generate both text and audio responses, you can use: ["text", "audio"].
|
|
1200
|
+
*/
|
|
1201
|
+
modalities?: Array<GetAllPromptsModalities> | null | undefined;
|
|
1202
|
+
/**
|
|
1203
|
+
* A list of guardrails to apply to the request.
|
|
1204
|
+
*/
|
|
1205
|
+
guardrails?: Array<GetAllPromptsGuardrails> | undefined;
|
|
1206
|
+
/**
|
|
1207
|
+
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1208
|
+
*/
|
|
1209
|
+
messages?:
|
|
1210
|
+
| Array<
|
|
1211
|
+
| GetAllPromptsMessagesSystemMessage
|
|
1212
|
+
| GetAllPromptsMessagesUserMessage
|
|
1213
|
+
| GetAllPromptsMessagesAssistantMessage
|
|
1214
|
+
| GetAllPromptsMessagesToolMessage
|
|
1215
|
+
>
|
|
1216
|
+
| undefined;
|
|
1217
|
+
/**
|
|
1218
|
+
* Model ID used to generate the response, like `openai/gpt-4o` or `anthropic/claude-3-5-sonnet-20241022`. For private models, use format: `{workspaceKey}@{provider}/{model}`.
|
|
1219
|
+
*/
|
|
1220
|
+
model?: string | null | undefined;
|
|
1221
|
+
version?: string | undefined;
|
|
1222
|
+
};
|
|
1223
|
+
|
|
1224
|
+
export const GetAllPromptsUseCases = {
|
|
1225
|
+
AgentsSimulations: "Agents simulations",
|
|
1226
|
+
Agents: "Agents",
|
|
1227
|
+
APIInteraction: "API interaction",
|
|
1228
|
+
AutonomousAgents: "Autonomous Agents",
|
|
1229
|
+
Chatbots: "Chatbots",
|
|
1230
|
+
Classification: "Classification",
|
|
1231
|
+
CodeUnderstanding: "Code understanding",
|
|
1232
|
+
CodeWriting: "Code writing",
|
|
1233
|
+
Conversation: "Conversation",
|
|
1234
|
+
DocumentsQA: "Documents QA",
|
|
1235
|
+
Evaluation: "Evaluation",
|
|
1236
|
+
Extraction: "Extraction",
|
|
1237
|
+
MultiModal: "Multi-modal",
|
|
1238
|
+
SelfChecking: "Self-checking",
|
|
1239
|
+
SentimentAnalysis: "Sentiment analysis",
|
|
1240
|
+
Sql: "SQL",
|
|
1241
|
+
Summarization: "Summarization",
|
|
1242
|
+
Tagging: "Tagging",
|
|
1243
|
+
TranslationDocument: "Translation (document)",
|
|
1244
|
+
TranslationSentences: "Translation (sentences)",
|
|
1245
|
+
} as const;
|
|
1246
|
+
export type GetAllPromptsUseCases = ClosedEnum<typeof GetAllPromptsUseCases>;
|
|
1247
|
+
|
|
1248
|
+
/**
|
|
1249
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1250
|
+
*/
|
|
1251
|
+
export const GetAllPromptsLanguage = {
|
|
1252
|
+
Chinese: "Chinese",
|
|
1253
|
+
Dutch: "Dutch",
|
|
1254
|
+
English: "English",
|
|
1255
|
+
French: "French",
|
|
1256
|
+
German: "German",
|
|
1257
|
+
Russian: "Russian",
|
|
1258
|
+
Spanish: "Spanish",
|
|
1259
|
+
} as const;
|
|
1260
|
+
/**
|
|
1261
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1262
|
+
*/
|
|
1263
|
+
export type GetAllPromptsLanguage = ClosedEnum<typeof GetAllPromptsLanguage>;
|
|
1264
|
+
|
|
1265
|
+
export type GetAllPromptsMetadata = {
|
|
1266
|
+
/**
|
|
1267
|
+
* A list of use cases that the prompt is meant to be used for. Use this field to categorize the prompt for your own purpose
|
|
1268
|
+
*/
|
|
1269
|
+
useCases?: Array<GetAllPromptsUseCases> | undefined;
|
|
1270
|
+
/**
|
|
1271
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
1272
|
+
*/
|
|
1273
|
+
language?: GetAllPromptsLanguage | null | undefined;
|
|
1274
|
+
};
|
|
1275
|
+
|
|
1276
|
+
/**
|
|
1277
|
+
* A prompt entity with configuration, metadata, and versioning.
|
|
1278
|
+
*/
|
|
1279
|
+
export type GetAllPromptsPrompt = {
|
|
1280
|
+
id: string;
|
|
1281
|
+
type: GetAllPromptsType;
|
|
1282
|
+
owner: string;
|
|
1283
|
+
domainId: string;
|
|
1284
|
+
created: string;
|
|
1285
|
+
updated: string;
|
|
1286
|
+
createdById?: string | null | undefined;
|
|
1287
|
+
updatedById?: string | null | undefined;
|
|
1288
|
+
/**
|
|
1289
|
+
* The prompt’s name, meant to be displayable in the UI.
|
|
1290
|
+
*/
|
|
1291
|
+
displayName: string;
|
|
1292
|
+
/**
|
|
1293
|
+
* The prompt’s description, meant to be displayable in the UI. Use this field to optionally store a long form explanation of the prompt for your own purpose
|
|
1294
|
+
*/
|
|
1295
|
+
description?: string | null | undefined;
|
|
1296
|
+
/**
|
|
1297
|
+
* [DEPRECATED] Use the `prompt` property instead. A list of messages compatible with the openAI schema.
|
|
1298
|
+
*
|
|
1299
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
1300
|
+
*/
|
|
1301
|
+
promptConfig?: GetAllPromptsPromptConfig | undefined;
|
|
1302
|
+
/**
|
|
1303
|
+
* Prompt configuration with model and messages. Use this instead of prompt_config.
|
|
1304
|
+
*/
|
|
1305
|
+
prompt: GetAllPromptsPromptField;
|
|
1306
|
+
metadata?: GetAllPromptsMetadata | undefined;
|
|
1307
|
+
};
|
|
1308
|
+
|
|
1309
|
+
/**
|
|
1310
|
+
* Prompts retrieved.
|
|
1311
|
+
*/
|
|
1312
|
+
export type GetAllPromptsResponseBody = {
|
|
1313
|
+
object: GetAllPromptsObject;
|
|
1314
|
+
data: Array<GetAllPromptsPrompt>;
|
|
1315
|
+
hasMore: boolean;
|
|
1316
|
+
};
|
|
1317
|
+
|
|
1318
|
+
/** @internal */
|
|
1319
|
+
export const GetAllPromptsRequest$inboundSchema: z.ZodType<
|
|
1320
|
+
GetAllPromptsRequest,
|
|
1321
|
+
z.ZodTypeDef,
|
|
1322
|
+
unknown
|
|
1323
|
+
> = z.object({
|
|
1324
|
+
limit: z.number().default(10),
|
|
1325
|
+
starting_after: z.string().optional(),
|
|
1326
|
+
ending_before: z.string().optional(),
|
|
1327
|
+
}).transform((v) => {
|
|
1328
|
+
return remap$(v, {
|
|
1329
|
+
"starting_after": "startingAfter",
|
|
1330
|
+
"ending_before": "endingBefore",
|
|
1331
|
+
});
|
|
1332
|
+
});
|
|
1333
|
+
/** @internal */
|
|
1334
|
+
export type GetAllPromptsRequest$Outbound = {
|
|
1335
|
+
limit: number;
|
|
1336
|
+
starting_after?: string | undefined;
|
|
1337
|
+
ending_before?: string | undefined;
|
|
1338
|
+
};
|
|
1339
|
+
|
|
1340
|
+
/** @internal */
|
|
1341
|
+
export const GetAllPromptsRequest$outboundSchema: z.ZodType<
|
|
1342
|
+
GetAllPromptsRequest$Outbound,
|
|
1343
|
+
z.ZodTypeDef,
|
|
1344
|
+
GetAllPromptsRequest
|
|
1345
|
+
> = z.object({
|
|
1346
|
+
limit: z.number().default(10),
|
|
1347
|
+
startingAfter: z.string().optional(),
|
|
1348
|
+
endingBefore: z.string().optional(),
|
|
1349
|
+
}).transform((v) => {
|
|
1350
|
+
return remap$(v, {
|
|
1351
|
+
startingAfter: "starting_after",
|
|
1352
|
+
endingBefore: "ending_before",
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
|
|
1356
|
+
export function getAllPromptsRequestToJSON(
|
|
1357
|
+
getAllPromptsRequest: GetAllPromptsRequest,
|
|
1358
|
+
): string {
|
|
1359
|
+
return JSON.stringify(
|
|
1360
|
+
GetAllPromptsRequest$outboundSchema.parse(getAllPromptsRequest),
|
|
1361
|
+
);
|
|
1362
|
+
}
|
|
1363
|
+
export function getAllPromptsRequestFromJSON(
|
|
1364
|
+
jsonString: string,
|
|
1365
|
+
): SafeParseResult<GetAllPromptsRequest, SDKValidationError> {
|
|
1366
|
+
return safeParse(
|
|
1367
|
+
jsonString,
|
|
1368
|
+
(x) => GetAllPromptsRequest$inboundSchema.parse(JSON.parse(x)),
|
|
1369
|
+
`Failed to parse 'GetAllPromptsRequest' from JSON`,
|
|
1370
|
+
);
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
/** @internal */
|
|
1374
|
+
export const GetAllPromptsObject$inboundSchema: z.ZodNativeEnum<
|
|
1375
|
+
typeof GetAllPromptsObject
|
|
1376
|
+
> = z.nativeEnum(GetAllPromptsObject);
|
|
1377
|
+
/** @internal */
|
|
1378
|
+
export const GetAllPromptsObject$outboundSchema: z.ZodNativeEnum<
|
|
1379
|
+
typeof GetAllPromptsObject
|
|
1380
|
+
> = GetAllPromptsObject$inboundSchema;
|
|
1381
|
+
|
|
1382
|
+
/** @internal */
|
|
1383
|
+
export const GetAllPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1384
|
+
typeof GetAllPromptsType
|
|
1385
|
+
> = z.nativeEnum(GetAllPromptsType);
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export const GetAllPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1388
|
+
typeof GetAllPromptsType
|
|
1389
|
+
> = GetAllPromptsType$inboundSchema;
|
|
1390
|
+
|
|
1391
|
+
/** @internal */
|
|
1392
|
+
export const GetAllPromptsModelType$inboundSchema: z.ZodNativeEnum<
|
|
1393
|
+
typeof GetAllPromptsModelType
|
|
1394
|
+
> = z.nativeEnum(GetAllPromptsModelType);
|
|
1395
|
+
/** @internal */
|
|
1396
|
+
export const GetAllPromptsModelType$outboundSchema: z.ZodNativeEnum<
|
|
1397
|
+
typeof GetAllPromptsModelType
|
|
1398
|
+
> = GetAllPromptsModelType$inboundSchema;
|
|
1399
|
+
|
|
1400
|
+
/** @internal */
|
|
1401
|
+
export const GetAllPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
1402
|
+
typeof GetAllPromptsFormat
|
|
1403
|
+
> = z.nativeEnum(GetAllPromptsFormat);
|
|
1404
|
+
/** @internal */
|
|
1405
|
+
export const GetAllPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
1406
|
+
typeof GetAllPromptsFormat
|
|
1407
|
+
> = GetAllPromptsFormat$inboundSchema;
|
|
1408
|
+
|
|
1409
|
+
/** @internal */
|
|
1410
|
+
export const GetAllPromptsResponseFormat6$inboundSchema: z.ZodNativeEnum<
|
|
1411
|
+
typeof GetAllPromptsResponseFormat6
|
|
1412
|
+
> = z.nativeEnum(GetAllPromptsResponseFormat6);
|
|
1413
|
+
/** @internal */
|
|
1414
|
+
export const GetAllPromptsResponseFormat6$outboundSchema: z.ZodNativeEnum<
|
|
1415
|
+
typeof GetAllPromptsResponseFormat6
|
|
1416
|
+
> = GetAllPromptsResponseFormat6$inboundSchema;
|
|
1417
|
+
|
|
1418
|
+
/** @internal */
|
|
1419
|
+
export const GetAllPromptsResponseFormat5$inboundSchema: z.ZodNativeEnum<
|
|
1420
|
+
typeof GetAllPromptsResponseFormat5
|
|
1421
|
+
> = z.nativeEnum(GetAllPromptsResponseFormat5);
|
|
1422
|
+
/** @internal */
|
|
1423
|
+
export const GetAllPromptsResponseFormat5$outboundSchema: z.ZodNativeEnum<
|
|
1424
|
+
typeof GetAllPromptsResponseFormat5
|
|
1425
|
+
> = GetAllPromptsResponseFormat5$inboundSchema;
|
|
1426
|
+
|
|
1427
|
+
/** @internal */
|
|
1428
|
+
export const GetAllPromptsResponseFormat4$inboundSchema: z.ZodNativeEnum<
|
|
1429
|
+
typeof GetAllPromptsResponseFormat4
|
|
1430
|
+
> = z.nativeEnum(GetAllPromptsResponseFormat4);
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export const GetAllPromptsResponseFormat4$outboundSchema: z.ZodNativeEnum<
|
|
1433
|
+
typeof GetAllPromptsResponseFormat4
|
|
1434
|
+
> = GetAllPromptsResponseFormat4$inboundSchema;
|
|
1435
|
+
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
1438
|
+
z.ZodNativeEnum<
|
|
1439
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
|
|
1440
|
+
> = z.nativeEnum(
|
|
1441
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType,
|
|
1442
|
+
);
|
|
1443
|
+
/** @internal */
|
|
1444
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
1445
|
+
z.ZodNativeEnum<
|
|
1446
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType
|
|
1447
|
+
> =
|
|
1448
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
1449
|
+
|
|
1450
|
+
/** @internal */
|
|
1451
|
+
export const GetAllPromptsResponseFormat3$inboundSchema: z.ZodType<
|
|
1452
|
+
GetAllPromptsResponseFormat3,
|
|
1453
|
+
z.ZodTypeDef,
|
|
1454
|
+
unknown
|
|
1455
|
+
> = z.object({
|
|
1456
|
+
type:
|
|
1457
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
1458
|
+
});
|
|
1459
|
+
/** @internal */
|
|
1460
|
+
export type GetAllPromptsResponseFormat3$Outbound = {
|
|
1461
|
+
type: string;
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
/** @internal */
|
|
1465
|
+
export const GetAllPromptsResponseFormat3$outboundSchema: z.ZodType<
|
|
1466
|
+
GetAllPromptsResponseFormat3$Outbound,
|
|
1467
|
+
z.ZodTypeDef,
|
|
1468
|
+
GetAllPromptsResponseFormat3
|
|
1469
|
+
> = z.object({
|
|
1470
|
+
type:
|
|
1471
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
1472
|
+
});
|
|
1473
|
+
|
|
1474
|
+
export function getAllPromptsResponseFormat3ToJSON(
|
|
1475
|
+
getAllPromptsResponseFormat3: GetAllPromptsResponseFormat3,
|
|
1476
|
+
): string {
|
|
1477
|
+
return JSON.stringify(
|
|
1478
|
+
GetAllPromptsResponseFormat3$outboundSchema.parse(
|
|
1479
|
+
getAllPromptsResponseFormat3,
|
|
1480
|
+
),
|
|
1481
|
+
);
|
|
1482
|
+
}
|
|
1483
|
+
export function getAllPromptsResponseFormat3FromJSON(
|
|
1484
|
+
jsonString: string,
|
|
1485
|
+
): SafeParseResult<GetAllPromptsResponseFormat3, SDKValidationError> {
|
|
1486
|
+
return safeParse(
|
|
1487
|
+
jsonString,
|
|
1488
|
+
(x) => GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)),
|
|
1489
|
+
`Failed to parse 'GetAllPromptsResponseFormat3' from JSON`,
|
|
1490
|
+
);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema:
|
|
1495
|
+
z.ZodNativeEnum<
|
|
1496
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType
|
|
1497
|
+
> = z.nativeEnum(
|
|
1498
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType,
|
|
1499
|
+
);
|
|
1500
|
+
/** @internal */
|
|
1501
|
+
export const GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema:
|
|
1502
|
+
z.ZodNativeEnum<
|
|
1503
|
+
typeof GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType
|
|
1504
|
+
> =
|
|
1505
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
|
|
1506
|
+
|
|
1507
|
+
/** @internal */
|
|
1508
|
+
export const GetAllPromptsResponseFormat2$inboundSchema: z.ZodType<
|
|
1509
|
+
GetAllPromptsResponseFormat2,
|
|
1510
|
+
z.ZodTypeDef,
|
|
1511
|
+
unknown
|
|
1512
|
+
> = z.object({
|
|
1513
|
+
type:
|
|
1514
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
1515
|
+
});
|
|
1516
|
+
/** @internal */
|
|
1517
|
+
export type GetAllPromptsResponseFormat2$Outbound = {
|
|
1518
|
+
type: string;
|
|
1519
|
+
};
|
|
1520
|
+
|
|
1521
|
+
/** @internal */
|
|
1522
|
+
export const GetAllPromptsResponseFormat2$outboundSchema: z.ZodType<
|
|
1523
|
+
GetAllPromptsResponseFormat2$Outbound,
|
|
1524
|
+
z.ZodTypeDef,
|
|
1525
|
+
GetAllPromptsResponseFormat2
|
|
1526
|
+
> = z.object({
|
|
1527
|
+
type:
|
|
1528
|
+
GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
|
|
1529
|
+
});
|
|
1530
|
+
|
|
1531
|
+
export function getAllPromptsResponseFormat2ToJSON(
|
|
1532
|
+
getAllPromptsResponseFormat2: GetAllPromptsResponseFormat2,
|
|
1533
|
+
): string {
|
|
1534
|
+
return JSON.stringify(
|
|
1535
|
+
GetAllPromptsResponseFormat2$outboundSchema.parse(
|
|
1536
|
+
getAllPromptsResponseFormat2,
|
|
1537
|
+
),
|
|
1538
|
+
);
|
|
1539
|
+
}
|
|
1540
|
+
export function getAllPromptsResponseFormat2FromJSON(
|
|
1541
|
+
jsonString: string,
|
|
1542
|
+
): SafeParseResult<GetAllPromptsResponseFormat2, SDKValidationError> {
|
|
1543
|
+
return safeParse(
|
|
1544
|
+
jsonString,
|
|
1545
|
+
(x) => GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)),
|
|
1546
|
+
`Failed to parse 'GetAllPromptsResponseFormat2' from JSON`,
|
|
1547
|
+
);
|
|
1548
|
+
}
|
|
1549
|
+
|
|
1550
|
+
/** @internal */
|
|
1551
|
+
export const GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema:
|
|
1552
|
+
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponse200Type> = z
|
|
1553
|
+
.nativeEnum(GetAllPromptsResponseFormatPromptsResponse200Type);
|
|
1554
|
+
/** @internal */
|
|
1555
|
+
export const GetAllPromptsResponseFormatPromptsResponse200Type$outboundSchema:
|
|
1556
|
+
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponse200Type> =
|
|
1557
|
+
GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema;
|
|
1558
|
+
|
|
1559
|
+
/** @internal */
|
|
1560
|
+
export const GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema:
|
|
1561
|
+
z.ZodType<
|
|
1562
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema,
|
|
1563
|
+
z.ZodTypeDef,
|
|
1564
|
+
unknown
|
|
1565
|
+
> = z.object({
|
|
1566
|
+
name: z.string(),
|
|
1567
|
+
description: z.string().optional(),
|
|
1568
|
+
strict: z.boolean().optional(),
|
|
1569
|
+
schema: z.record(z.any()),
|
|
1570
|
+
});
|
|
1571
|
+
/** @internal */
|
|
1572
|
+
export type GetAllPromptsResponseFormatPromptsResponseJsonSchema$Outbound = {
|
|
1573
|
+
name: string;
|
|
1574
|
+
description?: string | undefined;
|
|
1575
|
+
strict?: boolean | undefined;
|
|
1576
|
+
schema: { [k: string]: any };
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
/** @internal */
|
|
1580
|
+
export const GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema:
|
|
1581
|
+
z.ZodType<
|
|
1582
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema$Outbound,
|
|
1583
|
+
z.ZodTypeDef,
|
|
1584
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema
|
|
1585
|
+
> = z.object({
|
|
1586
|
+
name: z.string(),
|
|
1587
|
+
description: z.string().optional(),
|
|
1588
|
+
strict: z.boolean().optional(),
|
|
1589
|
+
schema: z.record(z.any()),
|
|
1590
|
+
});
|
|
1591
|
+
|
|
1592
|
+
export function getAllPromptsResponseFormatPromptsResponseJsonSchemaToJSON(
|
|
1593
|
+
getAllPromptsResponseFormatPromptsResponseJsonSchema:
|
|
1594
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema,
|
|
1595
|
+
): string {
|
|
1596
|
+
return JSON.stringify(
|
|
1597
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(
|
|
1598
|
+
getAllPromptsResponseFormatPromptsResponseJsonSchema,
|
|
1599
|
+
),
|
|
1600
|
+
);
|
|
1601
|
+
}
|
|
1602
|
+
export function getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON(
|
|
1603
|
+
jsonString: string,
|
|
1604
|
+
): SafeParseResult<
|
|
1605
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema,
|
|
1606
|
+
SDKValidationError
|
|
1607
|
+
> {
|
|
1608
|
+
return safeParse(
|
|
1609
|
+
jsonString,
|
|
1610
|
+
(x) =>
|
|
1611
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(
|
|
1612
|
+
JSON.parse(x),
|
|
1613
|
+
),
|
|
1614
|
+
`Failed to parse 'GetAllPromptsResponseFormatPromptsResponseJsonSchema' from JSON`,
|
|
1615
|
+
);
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
/** @internal */
|
|
1619
|
+
export const GetAllPromptsResponseFormat1$inboundSchema: z.ZodType<
|
|
1620
|
+
GetAllPromptsResponseFormat1,
|
|
1621
|
+
z.ZodTypeDef,
|
|
1622
|
+
unknown
|
|
1623
|
+
> = z.object({
|
|
1624
|
+
type: GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema,
|
|
1625
|
+
display_name: z.string().optional(),
|
|
1626
|
+
json_schema: z.lazy(() =>
|
|
1627
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema
|
|
1628
|
+
),
|
|
1629
|
+
}).transform((v) => {
|
|
1630
|
+
return remap$(v, {
|
|
1631
|
+
"display_name": "displayName",
|
|
1632
|
+
"json_schema": "jsonSchema",
|
|
1633
|
+
});
|
|
1634
|
+
});
|
|
1635
|
+
/** @internal */
|
|
1636
|
+
export type GetAllPromptsResponseFormat1$Outbound = {
|
|
1637
|
+
type: string;
|
|
1638
|
+
display_name?: string | undefined;
|
|
1639
|
+
json_schema: GetAllPromptsResponseFormatPromptsResponseJsonSchema$Outbound;
|
|
1640
|
+
};
|
|
1641
|
+
|
|
1642
|
+
/** @internal */
|
|
1643
|
+
export const GetAllPromptsResponseFormat1$outboundSchema: z.ZodType<
|
|
1644
|
+
GetAllPromptsResponseFormat1$Outbound,
|
|
1645
|
+
z.ZodTypeDef,
|
|
1646
|
+
GetAllPromptsResponseFormat1
|
|
1647
|
+
> = z.object({
|
|
1648
|
+
type: GetAllPromptsResponseFormatPromptsResponse200Type$outboundSchema,
|
|
1649
|
+
displayName: z.string().optional(),
|
|
1650
|
+
jsonSchema: z.lazy(() =>
|
|
1651
|
+
GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema
|
|
1652
|
+
),
|
|
1653
|
+
}).transform((v) => {
|
|
1654
|
+
return remap$(v, {
|
|
1655
|
+
displayName: "display_name",
|
|
1656
|
+
jsonSchema: "json_schema",
|
|
1657
|
+
});
|
|
1658
|
+
});
|
|
1659
|
+
|
|
1660
|
+
export function getAllPromptsResponseFormat1ToJSON(
|
|
1661
|
+
getAllPromptsResponseFormat1: GetAllPromptsResponseFormat1,
|
|
1662
|
+
): string {
|
|
1663
|
+
return JSON.stringify(
|
|
1664
|
+
GetAllPromptsResponseFormat1$outboundSchema.parse(
|
|
1665
|
+
getAllPromptsResponseFormat1,
|
|
1666
|
+
),
|
|
1667
|
+
);
|
|
1668
|
+
}
|
|
1669
|
+
export function getAllPromptsResponseFormat1FromJSON(
|
|
1670
|
+
jsonString: string,
|
|
1671
|
+
): SafeParseResult<GetAllPromptsResponseFormat1, SDKValidationError> {
|
|
1672
|
+
return safeParse(
|
|
1673
|
+
jsonString,
|
|
1674
|
+
(x) => GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)),
|
|
1675
|
+
`Failed to parse 'GetAllPromptsResponseFormat1' from JSON`,
|
|
1676
|
+
);
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
/** @internal */
|
|
1680
|
+
export const GetAllPromptsPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
1681
|
+
GetAllPromptsPromptsResponseFormat,
|
|
1682
|
+
z.ZodTypeDef,
|
|
1683
|
+
unknown
|
|
1684
|
+
> = z.union([
|
|
1685
|
+
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1686
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1687
|
+
z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
|
|
1688
|
+
GetAllPromptsResponseFormat4$inboundSchema,
|
|
1689
|
+
GetAllPromptsResponseFormat5$inboundSchema,
|
|
1690
|
+
GetAllPromptsResponseFormat6$inboundSchema,
|
|
1691
|
+
]);
|
|
1692
|
+
/** @internal */
|
|
1693
|
+
export type GetAllPromptsPromptsResponseFormat$Outbound =
|
|
1694
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
1695
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1696
|
+
| GetAllPromptsResponseFormat3$Outbound
|
|
1697
|
+
| string
|
|
1698
|
+
| string
|
|
1699
|
+
| string;
|
|
1700
|
+
|
|
1701
|
+
/** @internal */
|
|
1702
|
+
export const GetAllPromptsPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
1703
|
+
GetAllPromptsPromptsResponseFormat$Outbound,
|
|
1704
|
+
z.ZodTypeDef,
|
|
1705
|
+
GetAllPromptsPromptsResponseFormat
|
|
1706
|
+
> = z.union([
|
|
1707
|
+
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1708
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1709
|
+
z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
|
|
1710
|
+
GetAllPromptsResponseFormat4$outboundSchema,
|
|
1711
|
+
GetAllPromptsResponseFormat5$outboundSchema,
|
|
1712
|
+
GetAllPromptsResponseFormat6$outboundSchema,
|
|
1713
|
+
]);
|
|
1714
|
+
|
|
1715
|
+
export function getAllPromptsPromptsResponseFormatToJSON(
|
|
1716
|
+
getAllPromptsPromptsResponseFormat: GetAllPromptsPromptsResponseFormat,
|
|
1717
|
+
): string {
|
|
1718
|
+
return JSON.stringify(
|
|
1719
|
+
GetAllPromptsPromptsResponseFormat$outboundSchema.parse(
|
|
1720
|
+
getAllPromptsPromptsResponseFormat,
|
|
1721
|
+
),
|
|
1722
|
+
);
|
|
1723
|
+
}
|
|
1724
|
+
export function getAllPromptsPromptsResponseFormatFromJSON(
|
|
1725
|
+
jsonString: string,
|
|
1726
|
+
): SafeParseResult<GetAllPromptsPromptsResponseFormat, SDKValidationError> {
|
|
1727
|
+
return safeParse(
|
|
1728
|
+
jsonString,
|
|
1729
|
+
(x) =>
|
|
1730
|
+
GetAllPromptsPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
1731
|
+
`Failed to parse 'GetAllPromptsPromptsResponseFormat' from JSON`,
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/** @internal */
|
|
1736
|
+
export const GetAllPromptsPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1737
|
+
typeof GetAllPromptsPhotoRealVersion
|
|
1738
|
+
> = z.nativeEnum(GetAllPromptsPhotoRealVersion);
|
|
1739
|
+
/** @internal */
|
|
1740
|
+
export const GetAllPromptsPhotoRealVersion$outboundSchema: z.ZodNativeEnum<
|
|
1741
|
+
typeof GetAllPromptsPhotoRealVersion
|
|
1742
|
+
> = GetAllPromptsPhotoRealVersion$inboundSchema;
|
|
1743
|
+
|
|
1744
|
+
/** @internal */
|
|
1745
|
+
export const GetAllPromptsEncodingFormat$inboundSchema: z.ZodNativeEnum<
|
|
1746
|
+
typeof GetAllPromptsEncodingFormat
|
|
1747
|
+
> = z.nativeEnum(GetAllPromptsEncodingFormat);
|
|
1748
|
+
/** @internal */
|
|
1749
|
+
export const GetAllPromptsEncodingFormat$outboundSchema: z.ZodNativeEnum<
|
|
1750
|
+
typeof GetAllPromptsEncodingFormat
|
|
1751
|
+
> = GetAllPromptsEncodingFormat$inboundSchema;
|
|
1752
|
+
|
|
1753
|
+
/** @internal */
|
|
1754
|
+
export const GetAllPromptsPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1755
|
+
typeof GetAllPromptsPromptsReasoningEffort
|
|
1756
|
+
> = z.nativeEnum(GetAllPromptsPromptsReasoningEffort);
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export const GetAllPromptsPromptsReasoningEffort$outboundSchema:
|
|
1759
|
+
z.ZodNativeEnum<typeof GetAllPromptsPromptsReasoningEffort> =
|
|
1760
|
+
GetAllPromptsPromptsReasoningEffort$inboundSchema;
|
|
1761
|
+
|
|
1762
|
+
/** @internal */
|
|
1763
|
+
export const GetAllPromptsVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
1764
|
+
typeof GetAllPromptsVerbosity
|
|
1765
|
+
> = z.nativeEnum(GetAllPromptsVerbosity);
|
|
1766
|
+
/** @internal */
|
|
1767
|
+
export const GetAllPromptsVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1768
|
+
typeof GetAllPromptsVerbosity
|
|
1769
|
+
> = GetAllPromptsVerbosity$inboundSchema;
|
|
1770
|
+
|
|
1771
|
+
/** @internal */
|
|
1772
|
+
export const GetAllPromptsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1773
|
+
typeof GetAllPromptsThinkingLevel
|
|
1774
|
+
> = z.nativeEnum(GetAllPromptsThinkingLevel);
|
|
1775
|
+
/** @internal */
|
|
1776
|
+
export const GetAllPromptsThinkingLevel$outboundSchema: z.ZodNativeEnum<
|
|
1777
|
+
typeof GetAllPromptsThinkingLevel
|
|
1778
|
+
> = GetAllPromptsThinkingLevel$inboundSchema;
|
|
1779
|
+
|
|
1780
|
+
/** @internal */
|
|
1781
|
+
export const GetAllPromptsModelParameters$inboundSchema: z.ZodType<
|
|
1782
|
+
GetAllPromptsModelParameters,
|
|
1783
|
+
z.ZodTypeDef,
|
|
1784
|
+
unknown
|
|
1785
|
+
> = z.object({
|
|
1786
|
+
temperature: z.number().optional(),
|
|
1787
|
+
maxTokens: z.number().optional(),
|
|
1788
|
+
topK: z.number().optional(),
|
|
1789
|
+
topP: z.number().optional(),
|
|
1790
|
+
frequencyPenalty: z.number().optional(),
|
|
1791
|
+
presencePenalty: z.number().optional(),
|
|
1792
|
+
numImages: z.number().optional(),
|
|
1793
|
+
seed: z.number().optional(),
|
|
1794
|
+
format: GetAllPromptsFormat$inboundSchema.optional(),
|
|
1795
|
+
dimensions: z.string().optional(),
|
|
1796
|
+
quality: z.string().optional(),
|
|
1797
|
+
style: z.string().optional(),
|
|
1798
|
+
responseFormat: z.nullable(
|
|
1799
|
+
z.union([
|
|
1800
|
+
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1801
|
+
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1802
|
+
z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
|
|
1803
|
+
GetAllPromptsResponseFormat4$inboundSchema,
|
|
1804
|
+
GetAllPromptsResponseFormat5$inboundSchema,
|
|
1805
|
+
GetAllPromptsResponseFormat6$inboundSchema,
|
|
1806
|
+
]),
|
|
1807
|
+
).optional(),
|
|
1808
|
+
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
1809
|
+
encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
|
|
1810
|
+
reasoningEffort: GetAllPromptsPromptsReasoningEffort$inboundSchema.optional(),
|
|
1811
|
+
budgetTokens: z.number().optional(),
|
|
1812
|
+
verbosity: GetAllPromptsVerbosity$inboundSchema.optional(),
|
|
1813
|
+
thinkingLevel: GetAllPromptsThinkingLevel$inboundSchema.optional(),
|
|
1814
|
+
}).transform((v) => {
|
|
1815
|
+
return remap$(v, {
|
|
1816
|
+
"encoding_format": "encodingFormat",
|
|
1817
|
+
});
|
|
1818
|
+
});
|
|
1819
|
+
/** @internal */
|
|
1820
|
+
export type GetAllPromptsModelParameters$Outbound = {
|
|
1821
|
+
temperature?: number | undefined;
|
|
1822
|
+
maxTokens?: number | undefined;
|
|
1823
|
+
topK?: number | undefined;
|
|
1824
|
+
topP?: number | undefined;
|
|
1825
|
+
frequencyPenalty?: number | undefined;
|
|
1826
|
+
presencePenalty?: number | undefined;
|
|
1827
|
+
numImages?: number | undefined;
|
|
1828
|
+
seed?: number | undefined;
|
|
1829
|
+
format?: string | undefined;
|
|
1830
|
+
dimensions?: string | undefined;
|
|
1831
|
+
quality?: string | undefined;
|
|
1832
|
+
style?: string | undefined;
|
|
1833
|
+
responseFormat?:
|
|
1834
|
+
| GetAllPromptsResponseFormat1$Outbound
|
|
1835
|
+
| GetAllPromptsResponseFormat2$Outbound
|
|
1836
|
+
| GetAllPromptsResponseFormat3$Outbound
|
|
1837
|
+
| string
|
|
1838
|
+
| string
|
|
1839
|
+
| string
|
|
1840
|
+
| null
|
|
1841
|
+
| undefined;
|
|
1842
|
+
photoRealVersion?: string | undefined;
|
|
1843
|
+
encoding_format?: string | undefined;
|
|
1844
|
+
reasoningEffort?: string | undefined;
|
|
1845
|
+
budgetTokens?: number | undefined;
|
|
1846
|
+
verbosity?: string | undefined;
|
|
1847
|
+
thinkingLevel?: string | undefined;
|
|
1848
|
+
};
|
|
1849
|
+
|
|
1850
|
+
/** @internal */
|
|
1851
|
+
export const GetAllPromptsModelParameters$outboundSchema: z.ZodType<
|
|
1852
|
+
GetAllPromptsModelParameters$Outbound,
|
|
1853
|
+
z.ZodTypeDef,
|
|
1854
|
+
GetAllPromptsModelParameters
|
|
1855
|
+
> = z.object({
|
|
1856
|
+
temperature: z.number().optional(),
|
|
1857
|
+
maxTokens: z.number().optional(),
|
|
1858
|
+
topK: z.number().optional(),
|
|
1859
|
+
topP: z.number().optional(),
|
|
1860
|
+
frequencyPenalty: z.number().optional(),
|
|
1861
|
+
presencePenalty: z.number().optional(),
|
|
1862
|
+
numImages: z.number().optional(),
|
|
1863
|
+
seed: z.number().optional(),
|
|
1864
|
+
format: GetAllPromptsFormat$outboundSchema.optional(),
|
|
1865
|
+
dimensions: z.string().optional(),
|
|
1866
|
+
quality: z.string().optional(),
|
|
1867
|
+
style: z.string().optional(),
|
|
1868
|
+
responseFormat: z.nullable(
|
|
1869
|
+
z.union([
|
|
1870
|
+
z.lazy(() => GetAllPromptsResponseFormat1$outboundSchema),
|
|
1871
|
+
z.lazy(() => GetAllPromptsResponseFormat2$outboundSchema),
|
|
1872
|
+
z.lazy(() => GetAllPromptsResponseFormat3$outboundSchema),
|
|
1873
|
+
GetAllPromptsResponseFormat4$outboundSchema,
|
|
1874
|
+
GetAllPromptsResponseFormat5$outboundSchema,
|
|
1875
|
+
GetAllPromptsResponseFormat6$outboundSchema,
|
|
1876
|
+
]),
|
|
1877
|
+
).optional(),
|
|
1878
|
+
photoRealVersion: GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
|
|
1879
|
+
encodingFormat: GetAllPromptsEncodingFormat$outboundSchema.optional(),
|
|
1880
|
+
reasoningEffort: GetAllPromptsPromptsReasoningEffort$outboundSchema
|
|
1881
|
+
.optional(),
|
|
1882
|
+
budgetTokens: z.number().optional(),
|
|
1883
|
+
verbosity: GetAllPromptsVerbosity$outboundSchema.optional(),
|
|
1884
|
+
thinkingLevel: GetAllPromptsThinkingLevel$outboundSchema.optional(),
|
|
1885
|
+
}).transform((v) => {
|
|
1886
|
+
return remap$(v, {
|
|
1887
|
+
encodingFormat: "encoding_format",
|
|
1888
|
+
});
|
|
1889
|
+
});
|
|
1890
|
+
|
|
1891
|
+
export function getAllPromptsModelParametersToJSON(
|
|
1892
|
+
getAllPromptsModelParameters: GetAllPromptsModelParameters,
|
|
1893
|
+
): string {
|
|
1894
|
+
return JSON.stringify(
|
|
1895
|
+
GetAllPromptsModelParameters$outboundSchema.parse(
|
|
1896
|
+
getAllPromptsModelParameters,
|
|
1897
|
+
),
|
|
1898
|
+
);
|
|
1899
|
+
}
|
|
1900
|
+
export function getAllPromptsModelParametersFromJSON(
|
|
1901
|
+
jsonString: string,
|
|
1902
|
+
): SafeParseResult<GetAllPromptsModelParameters, SDKValidationError> {
|
|
1903
|
+
return safeParse(
|
|
1904
|
+
jsonString,
|
|
1905
|
+
(x) => GetAllPromptsModelParameters$inboundSchema.parse(JSON.parse(x)),
|
|
1906
|
+
`Failed to parse 'GetAllPromptsModelParameters' from JSON`,
|
|
1907
|
+
);
|
|
1908
|
+
}
|
|
1909
|
+
|
|
1910
|
+
/** @internal */
|
|
1911
|
+
export const GetAllPromptsProvider$inboundSchema: z.ZodNativeEnum<
|
|
1912
|
+
typeof GetAllPromptsProvider
|
|
1913
|
+
> = z.nativeEnum(GetAllPromptsProvider);
|
|
1914
|
+
/** @internal */
|
|
1915
|
+
export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1916
|
+
typeof GetAllPromptsProvider
|
|
1917
|
+
> = GetAllPromptsProvider$inboundSchema;
|
|
1918
|
+
|
|
1919
|
+
/** @internal */
|
|
1920
|
+
export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
|
|
1921
|
+
typeof GetAllPromptsRole
|
|
1922
|
+
> = z.nativeEnum(GetAllPromptsRole);
|
|
1923
|
+
/** @internal */
|
|
1924
|
+
export const GetAllPromptsRole$outboundSchema: z.ZodNativeEnum<
|
|
1925
|
+
typeof GetAllPromptsRole
|
|
1926
|
+
> = GetAllPromptsRole$inboundSchema;
|
|
1927
|
+
|
|
1928
|
+
/** @internal */
|
|
1929
|
+
export const GetAllPrompts2File$inboundSchema: z.ZodType<
|
|
1930
|
+
GetAllPrompts2File,
|
|
1931
|
+
z.ZodTypeDef,
|
|
1932
|
+
unknown
|
|
1933
|
+
> = z.object({
|
|
1934
|
+
file_data: z.string().optional(),
|
|
1935
|
+
uri: z.string().optional(),
|
|
1936
|
+
mimeType: z.string().optional(),
|
|
1937
|
+
filename: z.string().optional(),
|
|
1938
|
+
}).transform((v) => {
|
|
1939
|
+
return remap$(v, {
|
|
1940
|
+
"file_data": "fileData",
|
|
1941
|
+
});
|
|
1942
|
+
});
|
|
1943
|
+
/** @internal */
|
|
1944
|
+
export type GetAllPrompts2File$Outbound = {
|
|
1945
|
+
file_data?: string | undefined;
|
|
1946
|
+
uri?: string | undefined;
|
|
1947
|
+
mimeType?: string | undefined;
|
|
1948
|
+
filename?: string | undefined;
|
|
1949
|
+
};
|
|
1950
|
+
|
|
1951
|
+
/** @internal */
|
|
1952
|
+
export const GetAllPrompts2File$outboundSchema: z.ZodType<
|
|
1953
|
+
GetAllPrompts2File$Outbound,
|
|
1954
|
+
z.ZodTypeDef,
|
|
1955
|
+
GetAllPrompts2File
|
|
1956
|
+
> = z.object({
|
|
1957
|
+
fileData: z.string().optional(),
|
|
1958
|
+
uri: z.string().optional(),
|
|
1959
|
+
mimeType: z.string().optional(),
|
|
1960
|
+
filename: z.string().optional(),
|
|
1961
|
+
}).transform((v) => {
|
|
1962
|
+
return remap$(v, {
|
|
1963
|
+
fileData: "file_data",
|
|
1964
|
+
});
|
|
1965
|
+
});
|
|
1966
|
+
|
|
1967
|
+
export function getAllPrompts2FileToJSON(
|
|
1968
|
+
getAllPrompts2File: GetAllPrompts2File,
|
|
1969
|
+
): string {
|
|
1970
|
+
return JSON.stringify(
|
|
1971
|
+
GetAllPrompts2File$outboundSchema.parse(getAllPrompts2File),
|
|
1972
|
+
);
|
|
1973
|
+
}
|
|
1974
|
+
export function getAllPrompts2FileFromJSON(
|
|
1975
|
+
jsonString: string,
|
|
1976
|
+
): SafeParseResult<GetAllPrompts2File, SDKValidationError> {
|
|
1977
|
+
return safeParse(
|
|
1978
|
+
jsonString,
|
|
1979
|
+
(x) => GetAllPrompts2File$inboundSchema.parse(JSON.parse(x)),
|
|
1980
|
+
`Failed to parse 'GetAllPrompts2File' from JSON`,
|
|
1981
|
+
);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
/** @internal */
|
|
1985
|
+
export const GetAllPrompts23$inboundSchema: z.ZodType<
|
|
1986
|
+
GetAllPrompts23,
|
|
1987
|
+
z.ZodTypeDef,
|
|
1988
|
+
unknown
|
|
1989
|
+
> = z.object({
|
|
1990
|
+
type: z.literal("file"),
|
|
1991
|
+
file: z.lazy(() => GetAllPrompts2File$inboundSchema),
|
|
1992
|
+
});
|
|
1993
|
+
/** @internal */
|
|
1994
|
+
export type GetAllPrompts23$Outbound = {
|
|
1995
|
+
type: "file";
|
|
1996
|
+
file: GetAllPrompts2File$Outbound;
|
|
1997
|
+
};
|
|
1998
|
+
|
|
1999
|
+
/** @internal */
|
|
2000
|
+
export const GetAllPrompts23$outboundSchema: z.ZodType<
|
|
2001
|
+
GetAllPrompts23$Outbound,
|
|
2002
|
+
z.ZodTypeDef,
|
|
2003
|
+
GetAllPrompts23
|
|
2004
|
+
> = z.object({
|
|
2005
|
+
type: z.literal("file"),
|
|
2006
|
+
file: z.lazy(() => GetAllPrompts2File$outboundSchema),
|
|
2007
|
+
});
|
|
2008
|
+
|
|
2009
|
+
export function getAllPrompts23ToJSON(
|
|
2010
|
+
getAllPrompts23: GetAllPrompts23,
|
|
2011
|
+
): string {
|
|
2012
|
+
return JSON.stringify(GetAllPrompts23$outboundSchema.parse(getAllPrompts23));
|
|
2013
|
+
}
|
|
2014
|
+
export function getAllPrompts23FromJSON(
|
|
2015
|
+
jsonString: string,
|
|
2016
|
+
): SafeParseResult<GetAllPrompts23, SDKValidationError> {
|
|
2017
|
+
return safeParse(
|
|
2018
|
+
jsonString,
|
|
2019
|
+
(x) => GetAllPrompts23$inboundSchema.parse(JSON.parse(x)),
|
|
2020
|
+
`Failed to parse 'GetAllPrompts23' from JSON`,
|
|
2021
|
+
);
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/** @internal */
|
|
2025
|
+
export const GetAllPrompts2ImageUrl$inboundSchema: z.ZodType<
|
|
2026
|
+
GetAllPrompts2ImageUrl,
|
|
2027
|
+
z.ZodTypeDef,
|
|
2028
|
+
unknown
|
|
2029
|
+
> = z.object({
|
|
2030
|
+
id: z.string().optional(),
|
|
2031
|
+
url: z.string(),
|
|
2032
|
+
detail: z.string().optional(),
|
|
2033
|
+
});
|
|
2034
|
+
/** @internal */
|
|
2035
|
+
export type GetAllPrompts2ImageUrl$Outbound = {
|
|
2036
|
+
id?: string | undefined;
|
|
2037
|
+
url: string;
|
|
2038
|
+
detail?: string | undefined;
|
|
2039
|
+
};
|
|
2040
|
+
|
|
2041
|
+
/** @internal */
|
|
2042
|
+
export const GetAllPrompts2ImageUrl$outboundSchema: z.ZodType<
|
|
2043
|
+
GetAllPrompts2ImageUrl$Outbound,
|
|
2044
|
+
z.ZodTypeDef,
|
|
2045
|
+
GetAllPrompts2ImageUrl
|
|
2046
|
+
> = z.object({
|
|
2047
|
+
id: z.string().optional(),
|
|
2048
|
+
url: z.string(),
|
|
2049
|
+
detail: z.string().optional(),
|
|
2050
|
+
});
|
|
2051
|
+
|
|
2052
|
+
export function getAllPrompts2ImageUrlToJSON(
|
|
2053
|
+
getAllPrompts2ImageUrl: GetAllPrompts2ImageUrl,
|
|
2054
|
+
): string {
|
|
2055
|
+
return JSON.stringify(
|
|
2056
|
+
GetAllPrompts2ImageUrl$outboundSchema.parse(getAllPrompts2ImageUrl),
|
|
2057
|
+
);
|
|
2058
|
+
}
|
|
2059
|
+
export function getAllPrompts2ImageUrlFromJSON(
|
|
2060
|
+
jsonString: string,
|
|
2061
|
+
): SafeParseResult<GetAllPrompts2ImageUrl, SDKValidationError> {
|
|
2062
|
+
return safeParse(
|
|
2063
|
+
jsonString,
|
|
2064
|
+
(x) => GetAllPrompts2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
2065
|
+
`Failed to parse 'GetAllPrompts2ImageUrl' from JSON`,
|
|
2066
|
+
);
|
|
2067
|
+
}
|
|
2068
|
+
|
|
2069
|
+
/** @internal */
|
|
2070
|
+
export const GetAllPrompts22$inboundSchema: z.ZodType<
|
|
2071
|
+
GetAllPrompts22,
|
|
2072
|
+
z.ZodTypeDef,
|
|
2073
|
+
unknown
|
|
2074
|
+
> = z.object({
|
|
2075
|
+
type: z.literal("image_url"),
|
|
2076
|
+
image_url: z.lazy(() => GetAllPrompts2ImageUrl$inboundSchema),
|
|
2077
|
+
}).transform((v) => {
|
|
2078
|
+
return remap$(v, {
|
|
2079
|
+
"image_url": "imageUrl",
|
|
2080
|
+
});
|
|
2081
|
+
});
|
|
2082
|
+
/** @internal */
|
|
2083
|
+
export type GetAllPrompts22$Outbound = {
|
|
2084
|
+
type: "image_url";
|
|
2085
|
+
image_url: GetAllPrompts2ImageUrl$Outbound;
|
|
2086
|
+
};
|
|
2087
|
+
|
|
2088
|
+
/** @internal */
|
|
2089
|
+
export const GetAllPrompts22$outboundSchema: z.ZodType<
|
|
2090
|
+
GetAllPrompts22$Outbound,
|
|
2091
|
+
z.ZodTypeDef,
|
|
2092
|
+
GetAllPrompts22
|
|
2093
|
+
> = z.object({
|
|
2094
|
+
type: z.literal("image_url"),
|
|
2095
|
+
imageUrl: z.lazy(() => GetAllPrompts2ImageUrl$outboundSchema),
|
|
2096
|
+
}).transform((v) => {
|
|
2097
|
+
return remap$(v, {
|
|
2098
|
+
imageUrl: "image_url",
|
|
2099
|
+
});
|
|
2100
|
+
});
|
|
2101
|
+
|
|
2102
|
+
export function getAllPrompts22ToJSON(
|
|
2103
|
+
getAllPrompts22: GetAllPrompts22,
|
|
2104
|
+
): string {
|
|
2105
|
+
return JSON.stringify(GetAllPrompts22$outboundSchema.parse(getAllPrompts22));
|
|
2106
|
+
}
|
|
2107
|
+
export function getAllPrompts22FromJSON(
|
|
2108
|
+
jsonString: string,
|
|
2109
|
+
): SafeParseResult<GetAllPrompts22, SDKValidationError> {
|
|
2110
|
+
return safeParse(
|
|
2111
|
+
jsonString,
|
|
2112
|
+
(x) => GetAllPrompts22$inboundSchema.parse(JSON.parse(x)),
|
|
2113
|
+
`Failed to parse 'GetAllPrompts22' from JSON`,
|
|
2114
|
+
);
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2117
|
+
/** @internal */
|
|
2118
|
+
export const GetAllPrompts21$inboundSchema: z.ZodType<
|
|
2119
|
+
GetAllPrompts21,
|
|
2120
|
+
z.ZodTypeDef,
|
|
2121
|
+
unknown
|
|
2122
|
+
> = z.object({
|
|
2123
|
+
type: z.literal("text"),
|
|
2124
|
+
text: z.string(),
|
|
2125
|
+
});
|
|
2126
|
+
/** @internal */
|
|
2127
|
+
export type GetAllPrompts21$Outbound = {
|
|
2128
|
+
type: "text";
|
|
2129
|
+
text: string;
|
|
2130
|
+
};
|
|
2131
|
+
|
|
2132
|
+
/** @internal */
|
|
2133
|
+
export const GetAllPrompts21$outboundSchema: z.ZodType<
|
|
2134
|
+
GetAllPrompts21$Outbound,
|
|
2135
|
+
z.ZodTypeDef,
|
|
2136
|
+
GetAllPrompts21
|
|
2137
|
+
> = z.object({
|
|
2138
|
+
type: z.literal("text"),
|
|
2139
|
+
text: z.string(),
|
|
2140
|
+
});
|
|
2141
|
+
|
|
2142
|
+
export function getAllPrompts21ToJSON(
|
|
2143
|
+
getAllPrompts21: GetAllPrompts21,
|
|
2144
|
+
): string {
|
|
2145
|
+
return JSON.stringify(GetAllPrompts21$outboundSchema.parse(getAllPrompts21));
|
|
2146
|
+
}
|
|
2147
|
+
export function getAllPrompts21FromJSON(
|
|
2148
|
+
jsonString: string,
|
|
2149
|
+
): SafeParseResult<GetAllPrompts21, SDKValidationError> {
|
|
2150
|
+
return safeParse(
|
|
2151
|
+
jsonString,
|
|
2152
|
+
(x) => GetAllPrompts21$inboundSchema.parse(JSON.parse(x)),
|
|
2153
|
+
`Failed to parse 'GetAllPrompts21' from JSON`,
|
|
2154
|
+
);
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/** @internal */
|
|
2158
|
+
export const GetAllPromptsContent2$inboundSchema: z.ZodType<
|
|
2159
|
+
GetAllPromptsContent2,
|
|
2160
|
+
z.ZodTypeDef,
|
|
2161
|
+
unknown
|
|
2162
|
+
> = z.union([
|
|
2163
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
2164
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
2165
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
2166
|
+
]);
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export type GetAllPromptsContent2$Outbound =
|
|
2169
|
+
| GetAllPrompts21$Outbound
|
|
2170
|
+
| GetAllPrompts22$Outbound
|
|
2171
|
+
| GetAllPrompts23$Outbound;
|
|
2172
|
+
|
|
2173
|
+
/** @internal */
|
|
2174
|
+
export const GetAllPromptsContent2$outboundSchema: z.ZodType<
|
|
2175
|
+
GetAllPromptsContent2$Outbound,
|
|
2176
|
+
z.ZodTypeDef,
|
|
2177
|
+
GetAllPromptsContent2
|
|
2178
|
+
> = z.union([
|
|
2179
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2180
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2181
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
2182
|
+
]);
|
|
2183
|
+
|
|
2184
|
+
export function getAllPromptsContent2ToJSON(
|
|
2185
|
+
getAllPromptsContent2: GetAllPromptsContent2,
|
|
2186
|
+
): string {
|
|
2187
|
+
return JSON.stringify(
|
|
2188
|
+
GetAllPromptsContent2$outboundSchema.parse(getAllPromptsContent2),
|
|
2189
|
+
);
|
|
2190
|
+
}
|
|
2191
|
+
export function getAllPromptsContent2FromJSON(
|
|
2192
|
+
jsonString: string,
|
|
2193
|
+
): SafeParseResult<GetAllPromptsContent2, SDKValidationError> {
|
|
2194
|
+
return safeParse(
|
|
2195
|
+
jsonString,
|
|
2196
|
+
(x) => GetAllPromptsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2197
|
+
`Failed to parse 'GetAllPromptsContent2' from JSON`,
|
|
2198
|
+
);
|
|
2199
|
+
}
|
|
2200
|
+
|
|
2201
|
+
/** @internal */
|
|
2202
|
+
export const GetAllPromptsContent$inboundSchema: z.ZodType<
|
|
2203
|
+
GetAllPromptsContent,
|
|
2204
|
+
z.ZodTypeDef,
|
|
2205
|
+
unknown
|
|
2206
|
+
> = z.union([
|
|
2207
|
+
z.string(),
|
|
2208
|
+
z.array(z.union([
|
|
2209
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
2210
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
2211
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
2212
|
+
])),
|
|
2213
|
+
]);
|
|
2214
|
+
/** @internal */
|
|
2215
|
+
export type GetAllPromptsContent$Outbound =
|
|
2216
|
+
| string
|
|
2217
|
+
| Array<
|
|
2218
|
+
| GetAllPrompts21$Outbound
|
|
2219
|
+
| GetAllPrompts22$Outbound
|
|
2220
|
+
| GetAllPrompts23$Outbound
|
|
2221
|
+
>;
|
|
2222
|
+
|
|
2223
|
+
/** @internal */
|
|
2224
|
+
export const GetAllPromptsContent$outboundSchema: z.ZodType<
|
|
2225
|
+
GetAllPromptsContent$Outbound,
|
|
2226
|
+
z.ZodTypeDef,
|
|
2227
|
+
GetAllPromptsContent
|
|
2228
|
+
> = z.union([
|
|
2229
|
+
z.string(),
|
|
2230
|
+
z.array(z.union([
|
|
2231
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2232
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2233
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
2234
|
+
])),
|
|
2235
|
+
]);
|
|
2236
|
+
|
|
2237
|
+
export function getAllPromptsContentToJSON(
|
|
2238
|
+
getAllPromptsContent: GetAllPromptsContent,
|
|
2239
|
+
): string {
|
|
2240
|
+
return JSON.stringify(
|
|
2241
|
+
GetAllPromptsContent$outboundSchema.parse(getAllPromptsContent),
|
|
2242
|
+
);
|
|
2243
|
+
}
|
|
2244
|
+
export function getAllPromptsContentFromJSON(
|
|
2245
|
+
jsonString: string,
|
|
2246
|
+
): SafeParseResult<GetAllPromptsContent, SDKValidationError> {
|
|
2247
|
+
return safeParse(
|
|
2248
|
+
jsonString,
|
|
2249
|
+
(x) => GetAllPromptsContent$inboundSchema.parse(JSON.parse(x)),
|
|
2250
|
+
`Failed to parse 'GetAllPromptsContent' from JSON`,
|
|
2251
|
+
);
|
|
2252
|
+
}
|
|
2253
|
+
|
|
2254
|
+
/** @internal */
|
|
2255
|
+
export const GetAllPromptsPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2256
|
+
typeof GetAllPromptsPromptsType
|
|
2257
|
+
> = z.nativeEnum(GetAllPromptsPromptsType);
|
|
2258
|
+
/** @internal */
|
|
2259
|
+
export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
2260
|
+
typeof GetAllPromptsPromptsType
|
|
2261
|
+
> = GetAllPromptsPromptsType$inboundSchema;
|
|
2262
|
+
|
|
2263
|
+
/** @internal */
|
|
2264
|
+
export const GetAllPromptsFunction$inboundSchema: z.ZodType<
|
|
2265
|
+
GetAllPromptsFunction,
|
|
2266
|
+
z.ZodTypeDef,
|
|
2267
|
+
unknown
|
|
2268
|
+
> = z.object({
|
|
2269
|
+
name: z.string(),
|
|
2270
|
+
arguments: z.string(),
|
|
2271
|
+
});
|
|
2272
|
+
/** @internal */
|
|
2273
|
+
export type GetAllPromptsFunction$Outbound = {
|
|
2274
|
+
name: string;
|
|
2275
|
+
arguments: string;
|
|
2276
|
+
};
|
|
2277
|
+
|
|
2278
|
+
/** @internal */
|
|
2279
|
+
export const GetAllPromptsFunction$outboundSchema: z.ZodType<
|
|
2280
|
+
GetAllPromptsFunction$Outbound,
|
|
2281
|
+
z.ZodTypeDef,
|
|
2282
|
+
GetAllPromptsFunction
|
|
2283
|
+
> = z.object({
|
|
2284
|
+
name: z.string(),
|
|
2285
|
+
arguments: z.string(),
|
|
2286
|
+
});
|
|
2287
|
+
|
|
2288
|
+
export function getAllPromptsFunctionToJSON(
|
|
2289
|
+
getAllPromptsFunction: GetAllPromptsFunction,
|
|
2290
|
+
): string {
|
|
2291
|
+
return JSON.stringify(
|
|
2292
|
+
GetAllPromptsFunction$outboundSchema.parse(getAllPromptsFunction),
|
|
2293
|
+
);
|
|
2294
|
+
}
|
|
2295
|
+
export function getAllPromptsFunctionFromJSON(
|
|
2296
|
+
jsonString: string,
|
|
2297
|
+
): SafeParseResult<GetAllPromptsFunction, SDKValidationError> {
|
|
2298
|
+
return safeParse(
|
|
2299
|
+
jsonString,
|
|
2300
|
+
(x) => GetAllPromptsFunction$inboundSchema.parse(JSON.parse(x)),
|
|
2301
|
+
`Failed to parse 'GetAllPromptsFunction' from JSON`,
|
|
2302
|
+
);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
/** @internal */
|
|
2306
|
+
export const GetAllPromptsToolCalls$inboundSchema: z.ZodType<
|
|
2307
|
+
GetAllPromptsToolCalls,
|
|
2308
|
+
z.ZodTypeDef,
|
|
2309
|
+
unknown
|
|
2310
|
+
> = z.object({
|
|
2311
|
+
id: z.string().optional(),
|
|
2312
|
+
index: z.number().optional(),
|
|
2313
|
+
type: GetAllPromptsPromptsType$inboundSchema,
|
|
2314
|
+
function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
|
|
2315
|
+
});
|
|
2316
|
+
/** @internal */
|
|
2317
|
+
export type GetAllPromptsToolCalls$Outbound = {
|
|
2318
|
+
id?: string | undefined;
|
|
2319
|
+
index?: number | undefined;
|
|
2320
|
+
type: string;
|
|
2321
|
+
function: GetAllPromptsFunction$Outbound;
|
|
2322
|
+
};
|
|
2323
|
+
|
|
2324
|
+
/** @internal */
|
|
2325
|
+
export const GetAllPromptsToolCalls$outboundSchema: z.ZodType<
|
|
2326
|
+
GetAllPromptsToolCalls$Outbound,
|
|
2327
|
+
z.ZodTypeDef,
|
|
2328
|
+
GetAllPromptsToolCalls
|
|
2329
|
+
> = z.object({
|
|
2330
|
+
id: z.string().optional(),
|
|
2331
|
+
index: z.number().optional(),
|
|
2332
|
+
type: GetAllPromptsPromptsType$outboundSchema,
|
|
2333
|
+
function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
|
|
2334
|
+
});
|
|
2335
|
+
|
|
2336
|
+
export function getAllPromptsToolCallsToJSON(
|
|
2337
|
+
getAllPromptsToolCalls: GetAllPromptsToolCalls,
|
|
2338
|
+
): string {
|
|
2339
|
+
return JSON.stringify(
|
|
2340
|
+
GetAllPromptsToolCalls$outboundSchema.parse(getAllPromptsToolCalls),
|
|
2341
|
+
);
|
|
2342
|
+
}
|
|
2343
|
+
export function getAllPromptsToolCallsFromJSON(
|
|
2344
|
+
jsonString: string,
|
|
2345
|
+
): SafeParseResult<GetAllPromptsToolCalls, SDKValidationError> {
|
|
2346
|
+
return safeParse(
|
|
2347
|
+
jsonString,
|
|
2348
|
+
(x) => GetAllPromptsToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2349
|
+
`Failed to parse 'GetAllPromptsToolCalls' from JSON`,
|
|
2350
|
+
);
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
/** @internal */
|
|
2354
|
+
export const GetAllPromptsMessages$inboundSchema: z.ZodType<
|
|
2355
|
+
GetAllPromptsMessages,
|
|
2356
|
+
z.ZodTypeDef,
|
|
2357
|
+
unknown
|
|
2358
|
+
> = z.object({
|
|
2359
|
+
role: GetAllPromptsRole$inboundSchema,
|
|
2360
|
+
content: z.nullable(
|
|
2361
|
+
z.union([
|
|
2362
|
+
z.string(),
|
|
2363
|
+
z.array(z.union([
|
|
2364
|
+
z.lazy(() => GetAllPrompts21$inboundSchema),
|
|
2365
|
+
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
2366
|
+
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
2367
|
+
])),
|
|
2368
|
+
]),
|
|
2369
|
+
),
|
|
2370
|
+
tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
|
|
2371
|
+
.optional(),
|
|
2372
|
+
tool_call_id: z.nullable(z.string()).optional(),
|
|
2373
|
+
}).transform((v) => {
|
|
2374
|
+
return remap$(v, {
|
|
2375
|
+
"tool_calls": "toolCalls",
|
|
2376
|
+
"tool_call_id": "toolCallId",
|
|
2377
|
+
});
|
|
2378
|
+
});
|
|
2379
|
+
/** @internal */
|
|
2380
|
+
export type GetAllPromptsMessages$Outbound = {
|
|
2381
|
+
role: string;
|
|
2382
|
+
content:
|
|
2383
|
+
| string
|
|
2384
|
+
| Array<
|
|
2385
|
+
| GetAllPrompts21$Outbound
|
|
2386
|
+
| GetAllPrompts22$Outbound
|
|
2387
|
+
| GetAllPrompts23$Outbound
|
|
2388
|
+
>
|
|
2389
|
+
| null;
|
|
2390
|
+
tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
|
|
2391
|
+
tool_call_id?: string | null | undefined;
|
|
2392
|
+
};
|
|
2393
|
+
|
|
2394
|
+
/** @internal */
|
|
2395
|
+
export const GetAllPromptsMessages$outboundSchema: z.ZodType<
|
|
2396
|
+
GetAllPromptsMessages$Outbound,
|
|
2397
|
+
z.ZodTypeDef,
|
|
2398
|
+
GetAllPromptsMessages
|
|
2399
|
+
> = z.object({
|
|
2400
|
+
role: GetAllPromptsRole$outboundSchema,
|
|
2401
|
+
content: z.nullable(
|
|
2402
|
+
z.union([
|
|
2403
|
+
z.string(),
|
|
2404
|
+
z.array(
|
|
2405
|
+
z.union([
|
|
2406
|
+
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
2407
|
+
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
2408
|
+
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
2409
|
+
]),
|
|
2410
|
+
),
|
|
2411
|
+
]),
|
|
2412
|
+
),
|
|
2413
|
+
toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
|
|
2414
|
+
.optional(),
|
|
2415
|
+
toolCallId: z.nullable(z.string()).optional(),
|
|
2416
|
+
}).transform((v) => {
|
|
2417
|
+
return remap$(v, {
|
|
2418
|
+
toolCalls: "tool_calls",
|
|
2419
|
+
toolCallId: "tool_call_id",
|
|
2420
|
+
});
|
|
2421
|
+
});
|
|
2422
|
+
|
|
2423
|
+
export function getAllPromptsMessagesToJSON(
|
|
2424
|
+
getAllPromptsMessages: GetAllPromptsMessages,
|
|
2425
|
+
): string {
|
|
2426
|
+
return JSON.stringify(
|
|
2427
|
+
GetAllPromptsMessages$outboundSchema.parse(getAllPromptsMessages),
|
|
2428
|
+
);
|
|
2429
|
+
}
|
|
2430
|
+
export function getAllPromptsMessagesFromJSON(
|
|
2431
|
+
jsonString: string,
|
|
2432
|
+
): SafeParseResult<GetAllPromptsMessages, SDKValidationError> {
|
|
2433
|
+
return safeParse(
|
|
2434
|
+
jsonString,
|
|
2435
|
+
(x) => GetAllPromptsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
2436
|
+
`Failed to parse 'GetAllPromptsMessages' from JSON`,
|
|
2437
|
+
);
|
|
2438
|
+
}
|
|
2439
|
+
|
|
2440
|
+
/** @internal */
|
|
2441
|
+
export const GetAllPromptsPromptConfig$inboundSchema: z.ZodType<
|
|
2442
|
+
GetAllPromptsPromptConfig,
|
|
2443
|
+
z.ZodTypeDef,
|
|
2444
|
+
unknown
|
|
2445
|
+
> = z.object({
|
|
2446
|
+
stream: z.boolean().optional(),
|
|
2447
|
+
model: z.nullable(z.string()).optional(),
|
|
2448
|
+
model_db_id: z.nullable(z.string()).optional(),
|
|
2449
|
+
model_type: z.nullable(GetAllPromptsModelType$inboundSchema).optional(),
|
|
2450
|
+
model_parameters: z.lazy(() => GetAllPromptsModelParameters$inboundSchema)
|
|
2451
|
+
.optional(),
|
|
2452
|
+
provider: z.nullable(GetAllPromptsProvider$inboundSchema).optional(),
|
|
2453
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
2454
|
+
version: z.string().optional(),
|
|
2455
|
+
messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
|
|
2456
|
+
}).transform((v) => {
|
|
2457
|
+
return remap$(v, {
|
|
2458
|
+
"model_db_id": "modelDbId",
|
|
2459
|
+
"model_type": "modelType",
|
|
2460
|
+
"model_parameters": "modelParameters",
|
|
2461
|
+
"integration_id": "integrationId",
|
|
2462
|
+
});
|
|
2463
|
+
});
|
|
2464
|
+
/** @internal */
|
|
2465
|
+
export type GetAllPromptsPromptConfig$Outbound = {
|
|
2466
|
+
stream?: boolean | undefined;
|
|
2467
|
+
model?: string | null | undefined;
|
|
2468
|
+
model_db_id?: string | null | undefined;
|
|
2469
|
+
model_type?: string | null | undefined;
|
|
2470
|
+
model_parameters?: GetAllPromptsModelParameters$Outbound | undefined;
|
|
2471
|
+
provider?: string | null | undefined;
|
|
2472
|
+
integration_id?: string | null | undefined;
|
|
2473
|
+
version?: string | undefined;
|
|
2474
|
+
messages: Array<GetAllPromptsMessages$Outbound>;
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2477
|
+
/** @internal */
|
|
2478
|
+
export const GetAllPromptsPromptConfig$outboundSchema: z.ZodType<
|
|
2479
|
+
GetAllPromptsPromptConfig$Outbound,
|
|
2480
|
+
z.ZodTypeDef,
|
|
2481
|
+
GetAllPromptsPromptConfig
|
|
2482
|
+
> = z.object({
|
|
2483
|
+
stream: z.boolean().optional(),
|
|
2484
|
+
model: z.nullable(z.string()).optional(),
|
|
2485
|
+
modelDbId: z.nullable(z.string()).optional(),
|
|
2486
|
+
modelType: z.nullable(GetAllPromptsModelType$outboundSchema).optional(),
|
|
2487
|
+
modelParameters: z.lazy(() => GetAllPromptsModelParameters$outboundSchema)
|
|
2488
|
+
.optional(),
|
|
2489
|
+
provider: z.nullable(GetAllPromptsProvider$outboundSchema).optional(),
|
|
2490
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
2491
|
+
version: z.string().optional(),
|
|
2492
|
+
messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
|
|
2493
|
+
}).transform((v) => {
|
|
2494
|
+
return remap$(v, {
|
|
2495
|
+
modelDbId: "model_db_id",
|
|
2496
|
+
modelType: "model_type",
|
|
2497
|
+
modelParameters: "model_parameters",
|
|
2498
|
+
integrationId: "integration_id",
|
|
2499
|
+
});
|
|
2500
|
+
});
|
|
2501
|
+
|
|
2502
|
+
export function getAllPromptsPromptConfigToJSON(
|
|
2503
|
+
getAllPromptsPromptConfig: GetAllPromptsPromptConfig,
|
|
2504
|
+
): string {
|
|
2505
|
+
return JSON.stringify(
|
|
2506
|
+
GetAllPromptsPromptConfig$outboundSchema.parse(getAllPromptsPromptConfig),
|
|
2507
|
+
);
|
|
2508
|
+
}
|
|
2509
|
+
export function getAllPromptsPromptConfigFromJSON(
|
|
2510
|
+
jsonString: string,
|
|
2511
|
+
): SafeParseResult<GetAllPromptsPromptConfig, SDKValidationError> {
|
|
2512
|
+
return safeParse(
|
|
2513
|
+
jsonString,
|
|
2514
|
+
(x) => GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
2515
|
+
`Failed to parse 'GetAllPromptsPromptConfig' from JSON`,
|
|
2516
|
+
);
|
|
2517
|
+
}
|
|
2518
|
+
|
|
2519
|
+
/** @internal */
|
|
2520
|
+
export const GetAllPromptsVoice$inboundSchema: z.ZodNativeEnum<
|
|
2521
|
+
typeof GetAllPromptsVoice
|
|
2522
|
+
> = z.nativeEnum(GetAllPromptsVoice);
|
|
2523
|
+
/** @internal */
|
|
2524
|
+
export const GetAllPromptsVoice$outboundSchema: z.ZodNativeEnum<
|
|
2525
|
+
typeof GetAllPromptsVoice
|
|
2526
|
+
> = GetAllPromptsVoice$inboundSchema;
|
|
2527
|
+
|
|
2528
|
+
/** @internal */
|
|
2529
|
+
export const GetAllPromptsPromptsFormat$inboundSchema: z.ZodNativeEnum<
|
|
2530
|
+
typeof GetAllPromptsPromptsFormat
|
|
2531
|
+
> = z.nativeEnum(GetAllPromptsPromptsFormat);
|
|
2532
|
+
/** @internal */
|
|
2533
|
+
export const GetAllPromptsPromptsFormat$outboundSchema: z.ZodNativeEnum<
|
|
2534
|
+
typeof GetAllPromptsPromptsFormat
|
|
2535
|
+
> = GetAllPromptsPromptsFormat$inboundSchema;
|
|
2536
|
+
|
|
2537
|
+
/** @internal */
|
|
2538
|
+
export const GetAllPromptsAudio$inboundSchema: z.ZodType<
|
|
2539
|
+
GetAllPromptsAudio,
|
|
2540
|
+
z.ZodTypeDef,
|
|
2541
|
+
unknown
|
|
2542
|
+
> = z.object({
|
|
2543
|
+
voice: GetAllPromptsVoice$inboundSchema,
|
|
2544
|
+
format: GetAllPromptsPromptsFormat$inboundSchema,
|
|
2545
|
+
});
|
|
2546
|
+
/** @internal */
|
|
2547
|
+
export type GetAllPromptsAudio$Outbound = {
|
|
2548
|
+
voice: string;
|
|
2549
|
+
format: string;
|
|
2550
|
+
};
|
|
2551
|
+
|
|
2552
|
+
/** @internal */
|
|
2553
|
+
export const GetAllPromptsAudio$outboundSchema: z.ZodType<
|
|
2554
|
+
GetAllPromptsAudio$Outbound,
|
|
2555
|
+
z.ZodTypeDef,
|
|
2556
|
+
GetAllPromptsAudio
|
|
2557
|
+
> = z.object({
|
|
2558
|
+
voice: GetAllPromptsVoice$outboundSchema,
|
|
2559
|
+
format: GetAllPromptsPromptsFormat$outboundSchema,
|
|
2560
|
+
});
|
|
2561
|
+
|
|
2562
|
+
export function getAllPromptsAudioToJSON(
|
|
2563
|
+
getAllPromptsAudio: GetAllPromptsAudio,
|
|
2564
|
+
): string {
|
|
2565
|
+
return JSON.stringify(
|
|
2566
|
+
GetAllPromptsAudio$outboundSchema.parse(getAllPromptsAudio),
|
|
2567
|
+
);
|
|
2568
|
+
}
|
|
2569
|
+
export function getAllPromptsAudioFromJSON(
|
|
2570
|
+
jsonString: string,
|
|
2571
|
+
): SafeParseResult<GetAllPromptsAudio, SDKValidationError> {
|
|
2572
|
+
return safeParse(
|
|
2573
|
+
jsonString,
|
|
2574
|
+
(x) => GetAllPromptsAudio$inboundSchema.parse(JSON.parse(x)),
|
|
2575
|
+
`Failed to parse 'GetAllPromptsAudio' from JSON`,
|
|
2576
|
+
);
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
/** @internal */
|
|
2580
|
+
export const GetAllPromptsResponseFormatJsonSchema$inboundSchema: z.ZodType<
|
|
2581
|
+
GetAllPromptsResponseFormatJsonSchema,
|
|
2582
|
+
z.ZodTypeDef,
|
|
2583
|
+
unknown
|
|
2584
|
+
> = z.object({
|
|
2585
|
+
description: z.string().optional(),
|
|
2586
|
+
name: z.string(),
|
|
2587
|
+
schema: z.any().optional(),
|
|
2588
|
+
strict: z.boolean().default(false),
|
|
2589
|
+
});
|
|
2590
|
+
/** @internal */
|
|
2591
|
+
export type GetAllPromptsResponseFormatJsonSchema$Outbound = {
|
|
2592
|
+
description?: string | undefined;
|
|
2593
|
+
name: string;
|
|
2594
|
+
schema?: any | undefined;
|
|
2595
|
+
strict: boolean;
|
|
2596
|
+
};
|
|
2597
|
+
|
|
2598
|
+
/** @internal */
|
|
2599
|
+
export const GetAllPromptsResponseFormatJsonSchema$outboundSchema: z.ZodType<
|
|
2600
|
+
GetAllPromptsResponseFormatJsonSchema$Outbound,
|
|
2601
|
+
z.ZodTypeDef,
|
|
2602
|
+
GetAllPromptsResponseFormatJsonSchema
|
|
2603
|
+
> = z.object({
|
|
2604
|
+
description: z.string().optional(),
|
|
2605
|
+
name: z.string(),
|
|
2606
|
+
schema: z.any().optional(),
|
|
2607
|
+
strict: z.boolean().default(false),
|
|
2608
|
+
});
|
|
2609
|
+
|
|
2610
|
+
export function getAllPromptsResponseFormatJsonSchemaToJSON(
|
|
2611
|
+
getAllPromptsResponseFormatJsonSchema: GetAllPromptsResponseFormatJsonSchema,
|
|
2612
|
+
): string {
|
|
2613
|
+
return JSON.stringify(
|
|
2614
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(
|
|
2615
|
+
getAllPromptsResponseFormatJsonSchema,
|
|
2616
|
+
),
|
|
2617
|
+
);
|
|
2618
|
+
}
|
|
2619
|
+
export function getAllPromptsResponseFormatJsonSchemaFromJSON(
|
|
2620
|
+
jsonString: string,
|
|
2621
|
+
): SafeParseResult<GetAllPromptsResponseFormatJsonSchema, SDKValidationError> {
|
|
2622
|
+
return safeParse(
|
|
2623
|
+
jsonString,
|
|
2624
|
+
(x) =>
|
|
2625
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)),
|
|
2626
|
+
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
2627
|
+
);
|
|
2628
|
+
}
|
|
2629
|
+
|
|
2630
|
+
/** @internal */
|
|
2631
|
+
export const GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema:
|
|
2632
|
+
z.ZodType<
|
|
2633
|
+
GetAllPromptsResponseFormatPromptsJSONSchema,
|
|
2634
|
+
z.ZodTypeDef,
|
|
2635
|
+
unknown
|
|
2636
|
+
> = z.object({
|
|
2637
|
+
type: z.literal("json_schema"),
|
|
2638
|
+
json_schema: z.lazy(() =>
|
|
2639
|
+
GetAllPromptsResponseFormatJsonSchema$inboundSchema
|
|
2640
|
+
),
|
|
2641
|
+
}).transform((v) => {
|
|
2642
|
+
return remap$(v, {
|
|
2643
|
+
"json_schema": "jsonSchema",
|
|
2644
|
+
});
|
|
2645
|
+
});
|
|
2646
|
+
/** @internal */
|
|
2647
|
+
export type GetAllPromptsResponseFormatPromptsJSONSchema$Outbound = {
|
|
2648
|
+
type: "json_schema";
|
|
2649
|
+
json_schema: GetAllPromptsResponseFormatJsonSchema$Outbound;
|
|
2650
|
+
};
|
|
2651
|
+
|
|
2652
|
+
/** @internal */
|
|
2653
|
+
export const GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema:
|
|
2654
|
+
z.ZodType<
|
|
2655
|
+
GetAllPromptsResponseFormatPromptsJSONSchema$Outbound,
|
|
2656
|
+
z.ZodTypeDef,
|
|
2657
|
+
GetAllPromptsResponseFormatPromptsJSONSchema
|
|
2658
|
+
> = z.object({
|
|
2659
|
+
type: z.literal("json_schema"),
|
|
2660
|
+
jsonSchema: z.lazy(() =>
|
|
2661
|
+
GetAllPromptsResponseFormatJsonSchema$outboundSchema
|
|
2662
|
+
),
|
|
2663
|
+
}).transform((v) => {
|
|
2664
|
+
return remap$(v, {
|
|
2665
|
+
jsonSchema: "json_schema",
|
|
2666
|
+
});
|
|
2667
|
+
});
|
|
2668
|
+
|
|
2669
|
+
export function getAllPromptsResponseFormatPromptsJSONSchemaToJSON(
|
|
2670
|
+
getAllPromptsResponseFormatPromptsJSONSchema:
|
|
2671
|
+
GetAllPromptsResponseFormatPromptsJSONSchema,
|
|
2672
|
+
): string {
|
|
2673
|
+
return JSON.stringify(
|
|
2674
|
+
GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema.parse(
|
|
2675
|
+
getAllPromptsResponseFormatPromptsJSONSchema,
|
|
2676
|
+
),
|
|
2677
|
+
);
|
|
2678
|
+
}
|
|
2679
|
+
export function getAllPromptsResponseFormatPromptsJSONSchemaFromJSON(
|
|
2680
|
+
jsonString: string,
|
|
2681
|
+
): SafeParseResult<
|
|
2682
|
+
GetAllPromptsResponseFormatPromptsJSONSchema,
|
|
2683
|
+
SDKValidationError
|
|
2684
|
+
> {
|
|
2685
|
+
return safeParse(
|
|
2686
|
+
jsonString,
|
|
2687
|
+
(x) =>
|
|
2688
|
+
GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema.parse(
|
|
2689
|
+
JSON.parse(x),
|
|
2690
|
+
),
|
|
2691
|
+
`Failed to parse 'GetAllPromptsResponseFormatPromptsJSONSchema' from JSON`,
|
|
2692
|
+
);
|
|
2693
|
+
}
|
|
2694
|
+
|
|
2695
|
+
/** @internal */
|
|
2696
|
+
export const GetAllPromptsResponseFormatJSONObject$inboundSchema: z.ZodType<
|
|
2697
|
+
GetAllPromptsResponseFormatJSONObject,
|
|
2698
|
+
z.ZodTypeDef,
|
|
2699
|
+
unknown
|
|
2700
|
+
> = z.object({
|
|
2701
|
+
type: z.literal("json_object"),
|
|
2702
|
+
});
|
|
2703
|
+
/** @internal */
|
|
2704
|
+
export type GetAllPromptsResponseFormatJSONObject$Outbound = {
|
|
2705
|
+
type: "json_object";
|
|
2706
|
+
};
|
|
2707
|
+
|
|
2708
|
+
/** @internal */
|
|
2709
|
+
export const GetAllPromptsResponseFormatJSONObject$outboundSchema: z.ZodType<
|
|
2710
|
+
GetAllPromptsResponseFormatJSONObject$Outbound,
|
|
2711
|
+
z.ZodTypeDef,
|
|
2712
|
+
GetAllPromptsResponseFormatJSONObject
|
|
2713
|
+
> = z.object({
|
|
2714
|
+
type: z.literal("json_object"),
|
|
2715
|
+
});
|
|
2716
|
+
|
|
2717
|
+
export function getAllPromptsResponseFormatJSONObjectToJSON(
|
|
2718
|
+
getAllPromptsResponseFormatJSONObject: GetAllPromptsResponseFormatJSONObject,
|
|
2719
|
+
): string {
|
|
2720
|
+
return JSON.stringify(
|
|
2721
|
+
GetAllPromptsResponseFormatJSONObject$outboundSchema.parse(
|
|
2722
|
+
getAllPromptsResponseFormatJSONObject,
|
|
2723
|
+
),
|
|
2724
|
+
);
|
|
2725
|
+
}
|
|
2726
|
+
export function getAllPromptsResponseFormatJSONObjectFromJSON(
|
|
2727
|
+
jsonString: string,
|
|
2728
|
+
): SafeParseResult<GetAllPromptsResponseFormatJSONObject, SDKValidationError> {
|
|
2729
|
+
return safeParse(
|
|
2730
|
+
jsonString,
|
|
2731
|
+
(x) =>
|
|
2732
|
+
GetAllPromptsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)),
|
|
2733
|
+
`Failed to parse 'GetAllPromptsResponseFormatJSONObject' from JSON`,
|
|
2734
|
+
);
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
/** @internal */
|
|
2738
|
+
export const GetAllPromptsResponseFormatText$inboundSchema: z.ZodType<
|
|
2739
|
+
GetAllPromptsResponseFormatText,
|
|
2740
|
+
z.ZodTypeDef,
|
|
2741
|
+
unknown
|
|
2742
|
+
> = z.object({
|
|
2743
|
+
type: z.literal("text"),
|
|
2744
|
+
});
|
|
2745
|
+
/** @internal */
|
|
2746
|
+
export type GetAllPromptsResponseFormatText$Outbound = {
|
|
2747
|
+
type: "text";
|
|
2748
|
+
};
|
|
2749
|
+
|
|
2750
|
+
/** @internal */
|
|
2751
|
+
export const GetAllPromptsResponseFormatText$outboundSchema: z.ZodType<
|
|
2752
|
+
GetAllPromptsResponseFormatText$Outbound,
|
|
2753
|
+
z.ZodTypeDef,
|
|
2754
|
+
GetAllPromptsResponseFormatText
|
|
2755
|
+
> = z.object({
|
|
2756
|
+
type: z.literal("text"),
|
|
2757
|
+
});
|
|
2758
|
+
|
|
2759
|
+
export function getAllPromptsResponseFormatTextToJSON(
|
|
2760
|
+
getAllPromptsResponseFormatText: GetAllPromptsResponseFormatText,
|
|
2761
|
+
): string {
|
|
2762
|
+
return JSON.stringify(
|
|
2763
|
+
GetAllPromptsResponseFormatText$outboundSchema.parse(
|
|
2764
|
+
getAllPromptsResponseFormatText,
|
|
2765
|
+
),
|
|
2766
|
+
);
|
|
2767
|
+
}
|
|
2768
|
+
export function getAllPromptsResponseFormatTextFromJSON(
|
|
2769
|
+
jsonString: string,
|
|
2770
|
+
): SafeParseResult<GetAllPromptsResponseFormatText, SDKValidationError> {
|
|
2771
|
+
return safeParse(
|
|
2772
|
+
jsonString,
|
|
2773
|
+
(x) => GetAllPromptsResponseFormatText$inboundSchema.parse(JSON.parse(x)),
|
|
2774
|
+
`Failed to parse 'GetAllPromptsResponseFormatText' from JSON`,
|
|
2775
|
+
);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
/** @internal */
|
|
2779
|
+
export const GetAllPromptsResponseFormat$inboundSchema: z.ZodType<
|
|
2780
|
+
GetAllPromptsResponseFormat,
|
|
2781
|
+
z.ZodTypeDef,
|
|
2782
|
+
unknown
|
|
2783
|
+
> = z.union([
|
|
2784
|
+
z.lazy(() => GetAllPromptsResponseFormatText$inboundSchema),
|
|
2785
|
+
z.lazy(() => GetAllPromptsResponseFormatJSONObject$inboundSchema),
|
|
2786
|
+
z.lazy(() => GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
|
|
2787
|
+
]);
|
|
2788
|
+
/** @internal */
|
|
2789
|
+
export type GetAllPromptsResponseFormat$Outbound =
|
|
2790
|
+
| GetAllPromptsResponseFormatText$Outbound
|
|
2791
|
+
| GetAllPromptsResponseFormatJSONObject$Outbound
|
|
2792
|
+
| GetAllPromptsResponseFormatPromptsJSONSchema$Outbound;
|
|
2793
|
+
|
|
2794
|
+
/** @internal */
|
|
2795
|
+
export const GetAllPromptsResponseFormat$outboundSchema: z.ZodType<
|
|
2796
|
+
GetAllPromptsResponseFormat$Outbound,
|
|
2797
|
+
z.ZodTypeDef,
|
|
2798
|
+
GetAllPromptsResponseFormat
|
|
2799
|
+
> = z.union([
|
|
2800
|
+
z.lazy(() => GetAllPromptsResponseFormatText$outboundSchema),
|
|
2801
|
+
z.lazy(() => GetAllPromptsResponseFormatJSONObject$outboundSchema),
|
|
2802
|
+
z.lazy(() => GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema),
|
|
2803
|
+
]);
|
|
2804
|
+
|
|
2805
|
+
export function getAllPromptsResponseFormatToJSON(
|
|
2806
|
+
getAllPromptsResponseFormat: GetAllPromptsResponseFormat,
|
|
2807
|
+
): string {
|
|
2808
|
+
return JSON.stringify(
|
|
2809
|
+
GetAllPromptsResponseFormat$outboundSchema.parse(
|
|
2810
|
+
getAllPromptsResponseFormat,
|
|
2811
|
+
),
|
|
2812
|
+
);
|
|
2813
|
+
}
|
|
2814
|
+
export function getAllPromptsResponseFormatFromJSON(
|
|
2815
|
+
jsonString: string,
|
|
2816
|
+
): SafeParseResult<GetAllPromptsResponseFormat, SDKValidationError> {
|
|
2817
|
+
return safeParse(
|
|
2818
|
+
jsonString,
|
|
2819
|
+
(x) => GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)),
|
|
2820
|
+
`Failed to parse 'GetAllPromptsResponseFormat' from JSON`,
|
|
2821
|
+
);
|
|
2822
|
+
}
|
|
2823
|
+
|
|
2824
|
+
/** @internal */
|
|
2825
|
+
export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
2826
|
+
typeof GetAllPromptsReasoningEffort
|
|
2827
|
+
> = z.nativeEnum(GetAllPromptsReasoningEffort);
|
|
2828
|
+
/** @internal */
|
|
2829
|
+
export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
2830
|
+
typeof GetAllPromptsReasoningEffort
|
|
2831
|
+
> = GetAllPromptsReasoningEffort$inboundSchema;
|
|
721
2832
|
|
|
722
2833
|
/** @internal */
|
|
723
|
-
export const
|
|
724
|
-
|
|
725
|
-
|
|
2834
|
+
export const GetAllPromptsStop$inboundSchema: z.ZodType<
|
|
2835
|
+
GetAllPromptsStop,
|
|
2836
|
+
z.ZodTypeDef,
|
|
2837
|
+
unknown
|
|
2838
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
726
2839
|
/** @internal */
|
|
727
|
-
export
|
|
728
|
-
z.ZodNativeEnum<typeof GetAllPromptsResponseFormatPromptsResponseType> =
|
|
729
|
-
GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
|
|
2840
|
+
export type GetAllPromptsStop$Outbound = string | Array<string>;
|
|
730
2841
|
|
|
731
2842
|
/** @internal */
|
|
732
|
-
export const
|
|
733
|
-
|
|
2843
|
+
export const GetAllPromptsStop$outboundSchema: z.ZodType<
|
|
2844
|
+
GetAllPromptsStop$Outbound,
|
|
2845
|
+
z.ZodTypeDef,
|
|
2846
|
+
GetAllPromptsStop
|
|
2847
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
2848
|
+
|
|
2849
|
+
export function getAllPromptsStopToJSON(
|
|
2850
|
+
getAllPromptsStop: GetAllPromptsStop,
|
|
2851
|
+
): string {
|
|
2852
|
+
return JSON.stringify(
|
|
2853
|
+
GetAllPromptsStop$outboundSchema.parse(getAllPromptsStop),
|
|
2854
|
+
);
|
|
2855
|
+
}
|
|
2856
|
+
export function getAllPromptsStopFromJSON(
|
|
2857
|
+
jsonString: string,
|
|
2858
|
+
): SafeParseResult<GetAllPromptsStop, SDKValidationError> {
|
|
2859
|
+
return safeParse(
|
|
2860
|
+
jsonString,
|
|
2861
|
+
(x) => GetAllPromptsStop$inboundSchema.parse(JSON.parse(x)),
|
|
2862
|
+
`Failed to parse 'GetAllPromptsStop' from JSON`,
|
|
2863
|
+
);
|
|
2864
|
+
}
|
|
2865
|
+
|
|
2866
|
+
/** @internal */
|
|
2867
|
+
export const GetAllPromptsStreamOptions$inboundSchema: z.ZodType<
|
|
2868
|
+
GetAllPromptsStreamOptions,
|
|
734
2869
|
z.ZodTypeDef,
|
|
735
2870
|
unknown
|
|
736
2871
|
> = z.object({
|
|
737
|
-
|
|
2872
|
+
include_usage: z.boolean().optional(),
|
|
2873
|
+
}).transform((v) => {
|
|
2874
|
+
return remap$(v, {
|
|
2875
|
+
"include_usage": "includeUsage",
|
|
2876
|
+
});
|
|
738
2877
|
});
|
|
739
2878
|
/** @internal */
|
|
740
|
-
export type
|
|
741
|
-
|
|
2879
|
+
export type GetAllPromptsStreamOptions$Outbound = {
|
|
2880
|
+
include_usage?: boolean | undefined;
|
|
742
2881
|
};
|
|
743
2882
|
|
|
744
2883
|
/** @internal */
|
|
745
|
-
export const
|
|
746
|
-
|
|
2884
|
+
export const GetAllPromptsStreamOptions$outboundSchema: z.ZodType<
|
|
2885
|
+
GetAllPromptsStreamOptions$Outbound,
|
|
747
2886
|
z.ZodTypeDef,
|
|
748
|
-
|
|
2887
|
+
GetAllPromptsStreamOptions
|
|
2888
|
+
> = z.object({
|
|
2889
|
+
includeUsage: z.boolean().optional(),
|
|
2890
|
+
}).transform((v) => {
|
|
2891
|
+
return remap$(v, {
|
|
2892
|
+
includeUsage: "include_usage",
|
|
2893
|
+
});
|
|
2894
|
+
});
|
|
2895
|
+
|
|
2896
|
+
export function getAllPromptsStreamOptionsToJSON(
|
|
2897
|
+
getAllPromptsStreamOptions: GetAllPromptsStreamOptions,
|
|
2898
|
+
): string {
|
|
2899
|
+
return JSON.stringify(
|
|
2900
|
+
GetAllPromptsStreamOptions$outboundSchema.parse(getAllPromptsStreamOptions),
|
|
2901
|
+
);
|
|
2902
|
+
}
|
|
2903
|
+
export function getAllPromptsStreamOptionsFromJSON(
|
|
2904
|
+
jsonString: string,
|
|
2905
|
+
): SafeParseResult<GetAllPromptsStreamOptions, SDKValidationError> {
|
|
2906
|
+
return safeParse(
|
|
2907
|
+
jsonString,
|
|
2908
|
+
(x) => GetAllPromptsStreamOptions$inboundSchema.parse(JSON.parse(x)),
|
|
2909
|
+
`Failed to parse 'GetAllPromptsStreamOptions' from JSON`,
|
|
2910
|
+
);
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2913
|
+
/** @internal */
|
|
2914
|
+
export const GetAllPromptsThinking$inboundSchema: z.ZodType<
|
|
2915
|
+
GetAllPromptsThinking,
|
|
2916
|
+
z.ZodTypeDef,
|
|
2917
|
+
unknown
|
|
2918
|
+
> = z.union([
|
|
2919
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
2920
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
2921
|
+
]);
|
|
2922
|
+
/** @internal */
|
|
2923
|
+
export type GetAllPromptsThinking$Outbound =
|
|
2924
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
2925
|
+
| components.ThinkingConfigEnabledSchema$Outbound;
|
|
2926
|
+
|
|
2927
|
+
/** @internal */
|
|
2928
|
+
export const GetAllPromptsThinking$outboundSchema: z.ZodType<
|
|
2929
|
+
GetAllPromptsThinking$Outbound,
|
|
2930
|
+
z.ZodTypeDef,
|
|
2931
|
+
GetAllPromptsThinking
|
|
2932
|
+
> = z.union([
|
|
2933
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
2934
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
2935
|
+
]);
|
|
2936
|
+
|
|
2937
|
+
export function getAllPromptsThinkingToJSON(
|
|
2938
|
+
getAllPromptsThinking: GetAllPromptsThinking,
|
|
2939
|
+
): string {
|
|
2940
|
+
return JSON.stringify(
|
|
2941
|
+
GetAllPromptsThinking$outboundSchema.parse(getAllPromptsThinking),
|
|
2942
|
+
);
|
|
2943
|
+
}
|
|
2944
|
+
export function getAllPromptsThinkingFromJSON(
|
|
2945
|
+
jsonString: string,
|
|
2946
|
+
): SafeParseResult<GetAllPromptsThinking, SDKValidationError> {
|
|
2947
|
+
return safeParse(
|
|
2948
|
+
jsonString,
|
|
2949
|
+
(x) => GetAllPromptsThinking$inboundSchema.parse(JSON.parse(x)),
|
|
2950
|
+
`Failed to parse 'GetAllPromptsThinking' from JSON`,
|
|
2951
|
+
);
|
|
2952
|
+
}
|
|
2953
|
+
|
|
2954
|
+
/** @internal */
|
|
2955
|
+
export const GetAllPromptsToolChoiceType$inboundSchema: z.ZodNativeEnum<
|
|
2956
|
+
typeof GetAllPromptsToolChoiceType
|
|
2957
|
+
> = z.nativeEnum(GetAllPromptsToolChoiceType);
|
|
2958
|
+
/** @internal */
|
|
2959
|
+
export const GetAllPromptsToolChoiceType$outboundSchema: z.ZodNativeEnum<
|
|
2960
|
+
typeof GetAllPromptsToolChoiceType
|
|
2961
|
+
> = GetAllPromptsToolChoiceType$inboundSchema;
|
|
2962
|
+
|
|
2963
|
+
/** @internal */
|
|
2964
|
+
export const GetAllPromptsToolChoiceFunction$inboundSchema: z.ZodType<
|
|
2965
|
+
GetAllPromptsToolChoiceFunction,
|
|
2966
|
+
z.ZodTypeDef,
|
|
2967
|
+
unknown
|
|
749
2968
|
> = z.object({
|
|
750
|
-
|
|
2969
|
+
name: z.string(),
|
|
751
2970
|
});
|
|
2971
|
+
/** @internal */
|
|
2972
|
+
export type GetAllPromptsToolChoiceFunction$Outbound = {
|
|
2973
|
+
name: string;
|
|
2974
|
+
};
|
|
752
2975
|
|
|
753
|
-
|
|
754
|
-
|
|
2976
|
+
/** @internal */
|
|
2977
|
+
export const GetAllPromptsToolChoiceFunction$outboundSchema: z.ZodType<
|
|
2978
|
+
GetAllPromptsToolChoiceFunction$Outbound,
|
|
2979
|
+
z.ZodTypeDef,
|
|
2980
|
+
GetAllPromptsToolChoiceFunction
|
|
2981
|
+
> = z.object({
|
|
2982
|
+
name: z.string(),
|
|
2983
|
+
});
|
|
2984
|
+
|
|
2985
|
+
export function getAllPromptsToolChoiceFunctionToJSON(
|
|
2986
|
+
getAllPromptsToolChoiceFunction: GetAllPromptsToolChoiceFunction,
|
|
755
2987
|
): string {
|
|
756
2988
|
return JSON.stringify(
|
|
757
|
-
|
|
758
|
-
|
|
2989
|
+
GetAllPromptsToolChoiceFunction$outboundSchema.parse(
|
|
2990
|
+
getAllPromptsToolChoiceFunction,
|
|
759
2991
|
),
|
|
760
2992
|
);
|
|
761
2993
|
}
|
|
762
|
-
export function
|
|
2994
|
+
export function getAllPromptsToolChoiceFunctionFromJSON(
|
|
763
2995
|
jsonString: string,
|
|
764
|
-
): SafeParseResult<
|
|
2996
|
+
): SafeParseResult<GetAllPromptsToolChoiceFunction, SDKValidationError> {
|
|
765
2997
|
return safeParse(
|
|
766
2998
|
jsonString,
|
|
767
|
-
(x) =>
|
|
768
|
-
`Failed to parse '
|
|
2999
|
+
(x) => GetAllPromptsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3000
|
+
`Failed to parse 'GetAllPromptsToolChoiceFunction' from JSON`,
|
|
3001
|
+
);
|
|
3002
|
+
}
|
|
3003
|
+
|
|
3004
|
+
/** @internal */
|
|
3005
|
+
export const GetAllPromptsToolChoice2$inboundSchema: z.ZodType<
|
|
3006
|
+
GetAllPromptsToolChoice2,
|
|
3007
|
+
z.ZodTypeDef,
|
|
3008
|
+
unknown
|
|
3009
|
+
> = z.object({
|
|
3010
|
+
type: GetAllPromptsToolChoiceType$inboundSchema.optional(),
|
|
3011
|
+
function: z.lazy(() => GetAllPromptsToolChoiceFunction$inboundSchema),
|
|
3012
|
+
});
|
|
3013
|
+
/** @internal */
|
|
3014
|
+
export type GetAllPromptsToolChoice2$Outbound = {
|
|
3015
|
+
type?: string | undefined;
|
|
3016
|
+
function: GetAllPromptsToolChoiceFunction$Outbound;
|
|
3017
|
+
};
|
|
3018
|
+
|
|
3019
|
+
/** @internal */
|
|
3020
|
+
export const GetAllPromptsToolChoice2$outboundSchema: z.ZodType<
|
|
3021
|
+
GetAllPromptsToolChoice2$Outbound,
|
|
3022
|
+
z.ZodTypeDef,
|
|
3023
|
+
GetAllPromptsToolChoice2
|
|
3024
|
+
> = z.object({
|
|
3025
|
+
type: GetAllPromptsToolChoiceType$outboundSchema.optional(),
|
|
3026
|
+
function: z.lazy(() => GetAllPromptsToolChoiceFunction$outboundSchema),
|
|
3027
|
+
});
|
|
3028
|
+
|
|
3029
|
+
export function getAllPromptsToolChoice2ToJSON(
|
|
3030
|
+
getAllPromptsToolChoice2: GetAllPromptsToolChoice2,
|
|
3031
|
+
): string {
|
|
3032
|
+
return JSON.stringify(
|
|
3033
|
+
GetAllPromptsToolChoice2$outboundSchema.parse(getAllPromptsToolChoice2),
|
|
3034
|
+
);
|
|
3035
|
+
}
|
|
3036
|
+
export function getAllPromptsToolChoice2FromJSON(
|
|
3037
|
+
jsonString: string,
|
|
3038
|
+
): SafeParseResult<GetAllPromptsToolChoice2, SDKValidationError> {
|
|
3039
|
+
return safeParse(
|
|
3040
|
+
jsonString,
|
|
3041
|
+
(x) => GetAllPromptsToolChoice2$inboundSchema.parse(JSON.parse(x)),
|
|
3042
|
+
`Failed to parse 'GetAllPromptsToolChoice2' from JSON`,
|
|
769
3043
|
);
|
|
770
3044
|
}
|
|
771
3045
|
|
|
772
3046
|
/** @internal */
|
|
773
|
-
export const
|
|
774
|
-
|
|
775
|
-
|
|
3047
|
+
export const GetAllPromptsToolChoice1$inboundSchema: z.ZodNativeEnum<
|
|
3048
|
+
typeof GetAllPromptsToolChoice1
|
|
3049
|
+
> = z.nativeEnum(GetAllPromptsToolChoice1);
|
|
3050
|
+
/** @internal */
|
|
3051
|
+
export const GetAllPromptsToolChoice1$outboundSchema: z.ZodNativeEnum<
|
|
3052
|
+
typeof GetAllPromptsToolChoice1
|
|
3053
|
+
> = GetAllPromptsToolChoice1$inboundSchema;
|
|
3054
|
+
|
|
3055
|
+
/** @internal */
|
|
3056
|
+
export const GetAllPromptsToolChoice$inboundSchema: z.ZodType<
|
|
3057
|
+
GetAllPromptsToolChoice,
|
|
3058
|
+
z.ZodTypeDef,
|
|
3059
|
+
unknown
|
|
3060
|
+
> = z.union([
|
|
3061
|
+
z.lazy(() => GetAllPromptsToolChoice2$inboundSchema),
|
|
3062
|
+
GetAllPromptsToolChoice1$inboundSchema,
|
|
3063
|
+
]);
|
|
3064
|
+
/** @internal */
|
|
3065
|
+
export type GetAllPromptsToolChoice$Outbound =
|
|
3066
|
+
| GetAllPromptsToolChoice2$Outbound
|
|
3067
|
+
| string;
|
|
3068
|
+
|
|
3069
|
+
/** @internal */
|
|
3070
|
+
export const GetAllPromptsToolChoice$outboundSchema: z.ZodType<
|
|
3071
|
+
GetAllPromptsToolChoice$Outbound,
|
|
3072
|
+
z.ZodTypeDef,
|
|
3073
|
+
GetAllPromptsToolChoice
|
|
3074
|
+
> = z.union([
|
|
3075
|
+
z.lazy(() => GetAllPromptsToolChoice2$outboundSchema),
|
|
3076
|
+
GetAllPromptsToolChoice1$outboundSchema,
|
|
3077
|
+
]);
|
|
3078
|
+
|
|
3079
|
+
export function getAllPromptsToolChoiceToJSON(
|
|
3080
|
+
getAllPromptsToolChoice: GetAllPromptsToolChoice,
|
|
3081
|
+
): string {
|
|
3082
|
+
return JSON.stringify(
|
|
3083
|
+
GetAllPromptsToolChoice$outboundSchema.parse(getAllPromptsToolChoice),
|
|
3084
|
+
);
|
|
3085
|
+
}
|
|
3086
|
+
export function getAllPromptsToolChoiceFromJSON(
|
|
3087
|
+
jsonString: string,
|
|
3088
|
+
): SafeParseResult<GetAllPromptsToolChoice, SDKValidationError> {
|
|
3089
|
+
return safeParse(
|
|
3090
|
+
jsonString,
|
|
3091
|
+
(x) => GetAllPromptsToolChoice$inboundSchema.parse(JSON.parse(x)),
|
|
3092
|
+
`Failed to parse 'GetAllPromptsToolChoice' from JSON`,
|
|
776
3093
|
);
|
|
3094
|
+
}
|
|
3095
|
+
|
|
777
3096
|
/** @internal */
|
|
778
|
-
export const
|
|
779
|
-
|
|
780
|
-
|
|
3097
|
+
export const GetAllPromptsModalities$inboundSchema: z.ZodNativeEnum<
|
|
3098
|
+
typeof GetAllPromptsModalities
|
|
3099
|
+
> = z.nativeEnum(GetAllPromptsModalities);
|
|
3100
|
+
/** @internal */
|
|
3101
|
+
export const GetAllPromptsModalities$outboundSchema: z.ZodNativeEnum<
|
|
3102
|
+
typeof GetAllPromptsModalities
|
|
3103
|
+
> = GetAllPromptsModalities$inboundSchema;
|
|
781
3104
|
|
|
782
3105
|
/** @internal */
|
|
783
|
-
export const
|
|
784
|
-
|
|
3106
|
+
export const GetAllPromptsId1$inboundSchema: z.ZodNativeEnum<
|
|
3107
|
+
typeof GetAllPromptsId1
|
|
3108
|
+
> = z.nativeEnum(GetAllPromptsId1);
|
|
3109
|
+
/** @internal */
|
|
3110
|
+
export const GetAllPromptsId1$outboundSchema: z.ZodNativeEnum<
|
|
3111
|
+
typeof GetAllPromptsId1
|
|
3112
|
+
> = GetAllPromptsId1$inboundSchema;
|
|
3113
|
+
|
|
3114
|
+
/** @internal */
|
|
3115
|
+
export const GetAllPromptsId$inboundSchema: z.ZodType<
|
|
3116
|
+
GetAllPromptsId,
|
|
3117
|
+
z.ZodTypeDef,
|
|
3118
|
+
unknown
|
|
3119
|
+
> = z.union([GetAllPromptsId1$inboundSchema, z.string()]);
|
|
3120
|
+
/** @internal */
|
|
3121
|
+
export type GetAllPromptsId$Outbound = string | string;
|
|
3122
|
+
|
|
3123
|
+
/** @internal */
|
|
3124
|
+
export const GetAllPromptsId$outboundSchema: z.ZodType<
|
|
3125
|
+
GetAllPromptsId$Outbound,
|
|
3126
|
+
z.ZodTypeDef,
|
|
3127
|
+
GetAllPromptsId
|
|
3128
|
+
> = z.union([GetAllPromptsId1$outboundSchema, z.string()]);
|
|
3129
|
+
|
|
3130
|
+
export function getAllPromptsIdToJSON(
|
|
3131
|
+
getAllPromptsId: GetAllPromptsId,
|
|
3132
|
+
): string {
|
|
3133
|
+
return JSON.stringify(GetAllPromptsId$outboundSchema.parse(getAllPromptsId));
|
|
3134
|
+
}
|
|
3135
|
+
export function getAllPromptsIdFromJSON(
|
|
3136
|
+
jsonString: string,
|
|
3137
|
+
): SafeParseResult<GetAllPromptsId, SDKValidationError> {
|
|
3138
|
+
return safeParse(
|
|
3139
|
+
jsonString,
|
|
3140
|
+
(x) => GetAllPromptsId$inboundSchema.parse(JSON.parse(x)),
|
|
3141
|
+
`Failed to parse 'GetAllPromptsId' from JSON`,
|
|
3142
|
+
);
|
|
3143
|
+
}
|
|
3144
|
+
|
|
3145
|
+
/** @internal */
|
|
3146
|
+
export const GetAllPromptsExecuteOn$inboundSchema: z.ZodNativeEnum<
|
|
3147
|
+
typeof GetAllPromptsExecuteOn
|
|
3148
|
+
> = z.nativeEnum(GetAllPromptsExecuteOn);
|
|
3149
|
+
/** @internal */
|
|
3150
|
+
export const GetAllPromptsExecuteOn$outboundSchema: z.ZodNativeEnum<
|
|
3151
|
+
typeof GetAllPromptsExecuteOn
|
|
3152
|
+
> = GetAllPromptsExecuteOn$inboundSchema;
|
|
3153
|
+
|
|
3154
|
+
/** @internal */
|
|
3155
|
+
export const GetAllPromptsGuardrails$inboundSchema: z.ZodType<
|
|
3156
|
+
GetAllPromptsGuardrails,
|
|
785
3157
|
z.ZodTypeDef,
|
|
786
3158
|
unknown
|
|
787
3159
|
> = z.object({
|
|
788
|
-
|
|
3160
|
+
id: z.union([GetAllPromptsId1$inboundSchema, z.string()]),
|
|
3161
|
+
execute_on: GetAllPromptsExecuteOn$inboundSchema,
|
|
3162
|
+
}).transform((v) => {
|
|
3163
|
+
return remap$(v, {
|
|
3164
|
+
"execute_on": "executeOn",
|
|
3165
|
+
});
|
|
789
3166
|
});
|
|
790
3167
|
/** @internal */
|
|
791
|
-
export type
|
|
792
|
-
|
|
3168
|
+
export type GetAllPromptsGuardrails$Outbound = {
|
|
3169
|
+
id: string | string;
|
|
3170
|
+
execute_on: string;
|
|
793
3171
|
};
|
|
794
3172
|
|
|
795
3173
|
/** @internal */
|
|
796
|
-
export const
|
|
797
|
-
|
|
3174
|
+
export const GetAllPromptsGuardrails$outboundSchema: z.ZodType<
|
|
3175
|
+
GetAllPromptsGuardrails$Outbound,
|
|
798
3176
|
z.ZodTypeDef,
|
|
799
|
-
|
|
3177
|
+
GetAllPromptsGuardrails
|
|
800
3178
|
> = z.object({
|
|
801
|
-
|
|
3179
|
+
id: z.union([GetAllPromptsId1$outboundSchema, z.string()]),
|
|
3180
|
+
executeOn: GetAllPromptsExecuteOn$outboundSchema,
|
|
3181
|
+
}).transform((v) => {
|
|
3182
|
+
return remap$(v, {
|
|
3183
|
+
executeOn: "execute_on",
|
|
3184
|
+
});
|
|
802
3185
|
});
|
|
803
3186
|
|
|
804
|
-
export function
|
|
805
|
-
|
|
3187
|
+
export function getAllPromptsGuardrailsToJSON(
|
|
3188
|
+
getAllPromptsGuardrails: GetAllPromptsGuardrails,
|
|
806
3189
|
): string {
|
|
807
3190
|
return JSON.stringify(
|
|
808
|
-
|
|
809
|
-
|
|
3191
|
+
GetAllPromptsGuardrails$outboundSchema.parse(getAllPromptsGuardrails),
|
|
3192
|
+
);
|
|
3193
|
+
}
|
|
3194
|
+
export function getAllPromptsGuardrailsFromJSON(
|
|
3195
|
+
jsonString: string,
|
|
3196
|
+
): SafeParseResult<GetAllPromptsGuardrails, SDKValidationError> {
|
|
3197
|
+
return safeParse(
|
|
3198
|
+
jsonString,
|
|
3199
|
+
(x) => GetAllPromptsGuardrails$inboundSchema.parse(JSON.parse(x)),
|
|
3200
|
+
`Failed to parse 'GetAllPromptsGuardrails' from JSON`,
|
|
3201
|
+
);
|
|
3202
|
+
}
|
|
3203
|
+
|
|
3204
|
+
/** @internal */
|
|
3205
|
+
export const GetAllPromptsContentPromptsResponse2002$inboundSchema: z.ZodType<
|
|
3206
|
+
GetAllPromptsContentPromptsResponse2002,
|
|
3207
|
+
z.ZodTypeDef,
|
|
3208
|
+
unknown
|
|
3209
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
3210
|
+
/** @internal */
|
|
3211
|
+
export type GetAllPromptsContentPromptsResponse2002$Outbound =
|
|
3212
|
+
components.TextContentPartSchema$Outbound;
|
|
3213
|
+
|
|
3214
|
+
/** @internal */
|
|
3215
|
+
export const GetAllPromptsContentPromptsResponse2002$outboundSchema: z.ZodType<
|
|
3216
|
+
GetAllPromptsContentPromptsResponse2002$Outbound,
|
|
3217
|
+
z.ZodTypeDef,
|
|
3218
|
+
GetAllPromptsContentPromptsResponse2002
|
|
3219
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
3220
|
+
|
|
3221
|
+
export function getAllPromptsContentPromptsResponse2002ToJSON(
|
|
3222
|
+
getAllPromptsContentPromptsResponse2002:
|
|
3223
|
+
GetAllPromptsContentPromptsResponse2002,
|
|
3224
|
+
): string {
|
|
3225
|
+
return JSON.stringify(
|
|
3226
|
+
GetAllPromptsContentPromptsResponse2002$outboundSchema.parse(
|
|
3227
|
+
getAllPromptsContentPromptsResponse2002,
|
|
810
3228
|
),
|
|
811
3229
|
);
|
|
812
3230
|
}
|
|
813
|
-
export function
|
|
3231
|
+
export function getAllPromptsContentPromptsResponse2002FromJSON(
|
|
814
3232
|
jsonString: string,
|
|
815
|
-
): SafeParseResult<
|
|
3233
|
+
): SafeParseResult<
|
|
3234
|
+
GetAllPromptsContentPromptsResponse2002,
|
|
3235
|
+
SDKValidationError
|
|
3236
|
+
> {
|
|
816
3237
|
return safeParse(
|
|
817
3238
|
jsonString,
|
|
818
|
-
(x) =>
|
|
819
|
-
|
|
3239
|
+
(x) =>
|
|
3240
|
+
GetAllPromptsContentPromptsResponse2002$inboundSchema.parse(
|
|
3241
|
+
JSON.parse(x),
|
|
3242
|
+
),
|
|
3243
|
+
`Failed to parse 'GetAllPromptsContentPromptsResponse2002' from JSON`,
|
|
3244
|
+
);
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
/** @internal */
|
|
3248
|
+
export const GetAllPromptsMessagesPromptsResponse200Content$inboundSchema:
|
|
3249
|
+
z.ZodType<
|
|
3250
|
+
GetAllPromptsMessagesPromptsResponse200Content,
|
|
3251
|
+
z.ZodTypeDef,
|
|
3252
|
+
unknown
|
|
3253
|
+
> = z.union([
|
|
3254
|
+
z.string(),
|
|
3255
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3256
|
+
]);
|
|
3257
|
+
/** @internal */
|
|
3258
|
+
export type GetAllPromptsMessagesPromptsResponse200Content$Outbound =
|
|
3259
|
+
| string
|
|
3260
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3261
|
+
|
|
3262
|
+
/** @internal */
|
|
3263
|
+
export const GetAllPromptsMessagesPromptsResponse200Content$outboundSchema:
|
|
3264
|
+
z.ZodType<
|
|
3265
|
+
GetAllPromptsMessagesPromptsResponse200Content$Outbound,
|
|
3266
|
+
z.ZodTypeDef,
|
|
3267
|
+
GetAllPromptsMessagesPromptsResponse200Content
|
|
3268
|
+
> = z.union([
|
|
3269
|
+
z.string(),
|
|
3270
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3271
|
+
]);
|
|
3272
|
+
|
|
3273
|
+
export function getAllPromptsMessagesPromptsResponse200ContentToJSON(
|
|
3274
|
+
getAllPromptsMessagesPromptsResponse200Content:
|
|
3275
|
+
GetAllPromptsMessagesPromptsResponse200Content,
|
|
3276
|
+
): string {
|
|
3277
|
+
return JSON.stringify(
|
|
3278
|
+
GetAllPromptsMessagesPromptsResponse200Content$outboundSchema.parse(
|
|
3279
|
+
getAllPromptsMessagesPromptsResponse200Content,
|
|
3280
|
+
),
|
|
820
3281
|
);
|
|
821
3282
|
}
|
|
3283
|
+
export function getAllPromptsMessagesPromptsResponse200ContentFromJSON(
|
|
3284
|
+
jsonString: string,
|
|
3285
|
+
): SafeParseResult<
|
|
3286
|
+
GetAllPromptsMessagesPromptsResponse200Content,
|
|
3287
|
+
SDKValidationError
|
|
3288
|
+
> {
|
|
3289
|
+
return safeParse(
|
|
3290
|
+
jsonString,
|
|
3291
|
+
(x) =>
|
|
3292
|
+
GetAllPromptsMessagesPromptsResponse200Content$inboundSchema.parse(
|
|
3293
|
+
JSON.parse(x),
|
|
3294
|
+
),
|
|
3295
|
+
`Failed to parse 'GetAllPromptsMessagesPromptsResponse200Content' from JSON`,
|
|
3296
|
+
);
|
|
3297
|
+
}
|
|
3298
|
+
|
|
3299
|
+
/** @internal */
|
|
3300
|
+
export const GetAllPromptsMessagesPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
3301
|
+
typeof GetAllPromptsMessagesPromptsType
|
|
3302
|
+
> = z.nativeEnum(GetAllPromptsMessagesPromptsType);
|
|
3303
|
+
/** @internal */
|
|
3304
|
+
export const GetAllPromptsMessagesPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
3305
|
+
typeof GetAllPromptsMessagesPromptsType
|
|
3306
|
+
> = GetAllPromptsMessagesPromptsType$inboundSchema;
|
|
822
3307
|
|
|
823
3308
|
/** @internal */
|
|
824
|
-
export const
|
|
825
|
-
typeof
|
|
826
|
-
> = z.nativeEnum(
|
|
3309
|
+
export const GetAllPromptsMessagesTtl$inboundSchema: z.ZodNativeEnum<
|
|
3310
|
+
typeof GetAllPromptsMessagesTtl
|
|
3311
|
+
> = z.nativeEnum(GetAllPromptsMessagesTtl);
|
|
827
3312
|
/** @internal */
|
|
828
|
-
export const
|
|
829
|
-
typeof
|
|
830
|
-
> =
|
|
3313
|
+
export const GetAllPromptsMessagesTtl$outboundSchema: z.ZodNativeEnum<
|
|
3314
|
+
typeof GetAllPromptsMessagesTtl
|
|
3315
|
+
> = GetAllPromptsMessagesTtl$inboundSchema;
|
|
831
3316
|
|
|
832
3317
|
/** @internal */
|
|
833
|
-
export const
|
|
834
|
-
|
|
3318
|
+
export const GetAllPromptsMessagesCacheControl$inboundSchema: z.ZodType<
|
|
3319
|
+
GetAllPromptsMessagesCacheControl,
|
|
835
3320
|
z.ZodTypeDef,
|
|
836
3321
|
unknown
|
|
837
3322
|
> = z.object({
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
strict: z.boolean().optional(),
|
|
841
|
-
schema: z.record(z.any()),
|
|
3323
|
+
type: GetAllPromptsMessagesPromptsType$inboundSchema,
|
|
3324
|
+
ttl: GetAllPromptsMessagesTtl$inboundSchema.default("5m"),
|
|
842
3325
|
});
|
|
843
3326
|
/** @internal */
|
|
844
|
-
export type
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
strict?: boolean | undefined;
|
|
848
|
-
schema: { [k: string]: any };
|
|
3327
|
+
export type GetAllPromptsMessagesCacheControl$Outbound = {
|
|
3328
|
+
type: string;
|
|
3329
|
+
ttl: string;
|
|
849
3330
|
};
|
|
850
3331
|
|
|
851
3332
|
/** @internal */
|
|
852
|
-
export const
|
|
853
|
-
|
|
3333
|
+
export const GetAllPromptsMessagesCacheControl$outboundSchema: z.ZodType<
|
|
3334
|
+
GetAllPromptsMessagesCacheControl$Outbound,
|
|
854
3335
|
z.ZodTypeDef,
|
|
855
|
-
|
|
3336
|
+
GetAllPromptsMessagesCacheControl
|
|
856
3337
|
> = z.object({
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
strict: z.boolean().optional(),
|
|
860
|
-
schema: z.record(z.any()),
|
|
3338
|
+
type: GetAllPromptsMessagesPromptsType$outboundSchema,
|
|
3339
|
+
ttl: GetAllPromptsMessagesTtl$outboundSchema.default("5m"),
|
|
861
3340
|
});
|
|
862
3341
|
|
|
863
|
-
export function
|
|
864
|
-
|
|
3342
|
+
export function getAllPromptsMessagesCacheControlToJSON(
|
|
3343
|
+
getAllPromptsMessagesCacheControl: GetAllPromptsMessagesCacheControl,
|
|
865
3344
|
): string {
|
|
866
3345
|
return JSON.stringify(
|
|
867
|
-
|
|
868
|
-
|
|
3346
|
+
GetAllPromptsMessagesCacheControl$outboundSchema.parse(
|
|
3347
|
+
getAllPromptsMessagesCacheControl,
|
|
869
3348
|
),
|
|
870
3349
|
);
|
|
871
3350
|
}
|
|
872
|
-
export function
|
|
3351
|
+
export function getAllPromptsMessagesCacheControlFromJSON(
|
|
873
3352
|
jsonString: string,
|
|
874
|
-
): SafeParseResult<
|
|
3353
|
+
): SafeParseResult<GetAllPromptsMessagesCacheControl, SDKValidationError> {
|
|
875
3354
|
return safeParse(
|
|
876
3355
|
jsonString,
|
|
877
|
-
(x) =>
|
|
878
|
-
|
|
879
|
-
`Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`,
|
|
3356
|
+
(x) => GetAllPromptsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3357
|
+
`Failed to parse 'GetAllPromptsMessagesCacheControl' from JSON`,
|
|
880
3358
|
);
|
|
881
3359
|
}
|
|
882
3360
|
|
|
883
3361
|
/** @internal */
|
|
884
|
-
export const
|
|
885
|
-
|
|
3362
|
+
export const GetAllPromptsMessagesToolMessage$inboundSchema: z.ZodType<
|
|
3363
|
+
GetAllPromptsMessagesToolMessage,
|
|
886
3364
|
z.ZodTypeDef,
|
|
887
3365
|
unknown
|
|
888
3366
|
> = z.object({
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
),
|
|
3367
|
+
role: z.literal("tool"),
|
|
3368
|
+
content: z.union([
|
|
3369
|
+
z.string(),
|
|
3370
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3371
|
+
]),
|
|
3372
|
+
tool_call_id: z.nullable(z.string()),
|
|
3373
|
+
cache_control: z.lazy(() => GetAllPromptsMessagesCacheControl$inboundSchema)
|
|
3374
|
+
.optional(),
|
|
894
3375
|
}).transform((v) => {
|
|
895
3376
|
return remap$(v, {
|
|
896
|
-
"
|
|
897
|
-
"
|
|
3377
|
+
"tool_call_id": "toolCallId",
|
|
3378
|
+
"cache_control": "cacheControl",
|
|
898
3379
|
});
|
|
899
3380
|
});
|
|
900
3381
|
/** @internal */
|
|
901
|
-
export type
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
3382
|
+
export type GetAllPromptsMessagesToolMessage$Outbound = {
|
|
3383
|
+
role: "tool";
|
|
3384
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3385
|
+
tool_call_id: string | null;
|
|
3386
|
+
cache_control?: GetAllPromptsMessagesCacheControl$Outbound | undefined;
|
|
905
3387
|
};
|
|
906
3388
|
|
|
907
3389
|
/** @internal */
|
|
908
|
-
export const
|
|
909
|
-
|
|
3390
|
+
export const GetAllPromptsMessagesToolMessage$outboundSchema: z.ZodType<
|
|
3391
|
+
GetAllPromptsMessagesToolMessage$Outbound,
|
|
910
3392
|
z.ZodTypeDef,
|
|
911
|
-
|
|
3393
|
+
GetAllPromptsMessagesToolMessage
|
|
912
3394
|
> = z.object({
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
),
|
|
3395
|
+
role: z.literal("tool"),
|
|
3396
|
+
content: z.union([
|
|
3397
|
+
z.string(),
|
|
3398
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3399
|
+
]),
|
|
3400
|
+
toolCallId: z.nullable(z.string()),
|
|
3401
|
+
cacheControl: z.lazy(() => GetAllPromptsMessagesCacheControl$outboundSchema)
|
|
3402
|
+
.optional(),
|
|
918
3403
|
}).transform((v) => {
|
|
919
3404
|
return remap$(v, {
|
|
920
|
-
|
|
921
|
-
|
|
3405
|
+
toolCallId: "tool_call_id",
|
|
3406
|
+
cacheControl: "cache_control",
|
|
922
3407
|
});
|
|
923
3408
|
});
|
|
924
3409
|
|
|
925
|
-
export function
|
|
926
|
-
|
|
3410
|
+
export function getAllPromptsMessagesToolMessageToJSON(
|
|
3411
|
+
getAllPromptsMessagesToolMessage: GetAllPromptsMessagesToolMessage,
|
|
927
3412
|
): string {
|
|
928
3413
|
return JSON.stringify(
|
|
929
|
-
|
|
930
|
-
|
|
3414
|
+
GetAllPromptsMessagesToolMessage$outboundSchema.parse(
|
|
3415
|
+
getAllPromptsMessagesToolMessage,
|
|
931
3416
|
),
|
|
932
3417
|
);
|
|
933
3418
|
}
|
|
934
|
-
export function
|
|
3419
|
+
export function getAllPromptsMessagesToolMessageFromJSON(
|
|
935
3420
|
jsonString: string,
|
|
936
|
-
): SafeParseResult<
|
|
3421
|
+
): SafeParseResult<GetAllPromptsMessagesToolMessage, SDKValidationError> {
|
|
937
3422
|
return safeParse(
|
|
938
3423
|
jsonString,
|
|
939
|
-
(x) =>
|
|
940
|
-
`Failed to parse '
|
|
3424
|
+
(x) => GetAllPromptsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3425
|
+
`Failed to parse 'GetAllPromptsMessagesToolMessage' from JSON`,
|
|
941
3426
|
);
|
|
942
3427
|
}
|
|
943
3428
|
|
|
944
3429
|
/** @internal */
|
|
945
|
-
export const
|
|
946
|
-
|
|
3430
|
+
export const GetAllPromptsContentPromptsResponse2$inboundSchema: z.ZodType<
|
|
3431
|
+
GetAllPromptsContentPromptsResponse2,
|
|
947
3432
|
z.ZodTypeDef,
|
|
948
3433
|
unknown
|
|
949
3434
|
> = z.union([
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
3435
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3436
|
+
z.object({ type: z.literal("text") }),
|
|
3437
|
+
),
|
|
3438
|
+
components.RefusalPartSchema$inboundSchema,
|
|
3439
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
3440
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
956
3441
|
]);
|
|
957
3442
|
/** @internal */
|
|
958
|
-
export type
|
|
959
|
-
|
|
|
960
|
-
|
|
|
961
|
-
|
|
|
962
|
-
|
|
|
963
|
-
| string
|
|
964
|
-
| string;
|
|
3443
|
+
export type GetAllPromptsContentPromptsResponse2$Outbound =
|
|
3444
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3445
|
+
| components.RefusalPartSchema$Outbound
|
|
3446
|
+
| components.ReasoningPartSchema$Outbound
|
|
3447
|
+
| components.RedactedReasoningPartSchema$Outbound;
|
|
965
3448
|
|
|
966
3449
|
/** @internal */
|
|
967
|
-
export const
|
|
968
|
-
|
|
3450
|
+
export const GetAllPromptsContentPromptsResponse2$outboundSchema: z.ZodType<
|
|
3451
|
+
GetAllPromptsContentPromptsResponse2$Outbound,
|
|
969
3452
|
z.ZodTypeDef,
|
|
970
|
-
|
|
3453
|
+
GetAllPromptsContentPromptsResponse2
|
|
971
3454
|
> = z.union([
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
3455
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3456
|
+
z.object({ type: z.literal("text") }),
|
|
3457
|
+
),
|
|
3458
|
+
components.RefusalPartSchema$outboundSchema,
|
|
3459
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
3460
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
978
3461
|
]);
|
|
979
3462
|
|
|
980
|
-
export function
|
|
981
|
-
|
|
3463
|
+
export function getAllPromptsContentPromptsResponse2ToJSON(
|
|
3464
|
+
getAllPromptsContentPromptsResponse2: GetAllPromptsContentPromptsResponse2,
|
|
982
3465
|
): string {
|
|
983
3466
|
return JSON.stringify(
|
|
984
|
-
|
|
985
|
-
|
|
3467
|
+
GetAllPromptsContentPromptsResponse2$outboundSchema.parse(
|
|
3468
|
+
getAllPromptsContentPromptsResponse2,
|
|
986
3469
|
),
|
|
987
3470
|
);
|
|
988
3471
|
}
|
|
989
|
-
export function
|
|
3472
|
+
export function getAllPromptsContentPromptsResponse2FromJSON(
|
|
990
3473
|
jsonString: string,
|
|
991
|
-
): SafeParseResult<
|
|
3474
|
+
): SafeParseResult<GetAllPromptsContentPromptsResponse2, SDKValidationError> {
|
|
992
3475
|
return safeParse(
|
|
993
3476
|
jsonString,
|
|
994
|
-
(x) =>
|
|
995
|
-
|
|
3477
|
+
(x) =>
|
|
3478
|
+
GetAllPromptsContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)),
|
|
3479
|
+
`Failed to parse 'GetAllPromptsContentPromptsResponse2' from JSON`,
|
|
996
3480
|
);
|
|
997
3481
|
}
|
|
998
3482
|
|
|
999
3483
|
/** @internal */
|
|
1000
|
-
export const
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
export const GetAllPromptsReasoningEffort$inboundSchema: z.ZodNativeEnum<
|
|
1019
|
-
typeof GetAllPromptsReasoningEffort
|
|
1020
|
-
> = z.nativeEnum(GetAllPromptsReasoningEffort);
|
|
1021
|
-
/** @internal */
|
|
1022
|
-
export const GetAllPromptsReasoningEffort$outboundSchema: z.ZodNativeEnum<
|
|
1023
|
-
typeof GetAllPromptsReasoningEffort
|
|
1024
|
-
> = GetAllPromptsReasoningEffort$inboundSchema;
|
|
1025
|
-
|
|
1026
|
-
/** @internal */
|
|
1027
|
-
export const GetAllPromptsVerbosity$inboundSchema: z.ZodNativeEnum<
|
|
1028
|
-
typeof GetAllPromptsVerbosity
|
|
1029
|
-
> = z.nativeEnum(GetAllPromptsVerbosity);
|
|
1030
|
-
/** @internal */
|
|
1031
|
-
export const GetAllPromptsVerbosity$outboundSchema: z.ZodNativeEnum<
|
|
1032
|
-
typeof GetAllPromptsVerbosity
|
|
1033
|
-
> = GetAllPromptsVerbosity$inboundSchema;
|
|
1034
|
-
|
|
1035
|
-
/** @internal */
|
|
1036
|
-
export const GetAllPromptsThinkingLevel$inboundSchema: z.ZodNativeEnum<
|
|
1037
|
-
typeof GetAllPromptsThinkingLevel
|
|
1038
|
-
> = z.nativeEnum(GetAllPromptsThinkingLevel);
|
|
3484
|
+
export const GetAllPromptsMessagesPromptsResponseContent$inboundSchema:
|
|
3485
|
+
z.ZodType<
|
|
3486
|
+
GetAllPromptsMessagesPromptsResponseContent,
|
|
3487
|
+
z.ZodTypeDef,
|
|
3488
|
+
unknown
|
|
3489
|
+
> = z.union([
|
|
3490
|
+
z.string(),
|
|
3491
|
+
z.array(
|
|
3492
|
+
z.union([
|
|
3493
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3494
|
+
z.object({ type: z.literal("text") }),
|
|
3495
|
+
),
|
|
3496
|
+
components.RefusalPartSchema$inboundSchema,
|
|
3497
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
3498
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
3499
|
+
]),
|
|
3500
|
+
),
|
|
3501
|
+
]);
|
|
1039
3502
|
/** @internal */
|
|
1040
|
-
export
|
|
1041
|
-
|
|
1042
|
-
|
|
3503
|
+
export type GetAllPromptsMessagesPromptsResponseContent$Outbound =
|
|
3504
|
+
| string
|
|
3505
|
+
| Array<
|
|
3506
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3507
|
+
| components.RefusalPartSchema$Outbound
|
|
3508
|
+
| components.ReasoningPartSchema$Outbound
|
|
3509
|
+
| components.RedactedReasoningPartSchema$Outbound
|
|
3510
|
+
>;
|
|
1043
3511
|
|
|
1044
3512
|
/** @internal */
|
|
1045
|
-
export const
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
z.union([
|
|
1064
|
-
z.lazy(() => GetAllPromptsResponseFormat1$inboundSchema),
|
|
1065
|
-
z.lazy(() => GetAllPromptsResponseFormat2$inboundSchema),
|
|
1066
|
-
z.lazy(() => GetAllPromptsResponseFormat3$inboundSchema),
|
|
1067
|
-
GetAllPromptsResponseFormat4$inboundSchema,
|
|
1068
|
-
GetAllPromptsResponseFormat5$inboundSchema,
|
|
1069
|
-
GetAllPromptsResponseFormat6$inboundSchema,
|
|
1070
|
-
]),
|
|
1071
|
-
).optional(),
|
|
1072
|
-
photoRealVersion: GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
|
|
1073
|
-
encoding_format: GetAllPromptsEncodingFormat$inboundSchema.optional(),
|
|
1074
|
-
reasoningEffort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
|
|
1075
|
-
budgetTokens: z.number().optional(),
|
|
1076
|
-
verbosity: GetAllPromptsVerbosity$inboundSchema.optional(),
|
|
1077
|
-
thinkingLevel: GetAllPromptsThinkingLevel$inboundSchema.optional(),
|
|
1078
|
-
}).transform((v) => {
|
|
1079
|
-
return remap$(v, {
|
|
1080
|
-
"encoding_format": "encodingFormat",
|
|
1081
|
-
});
|
|
1082
|
-
});
|
|
1083
|
-
/** @internal */
|
|
1084
|
-
export type GetAllPromptsModelParameters$Outbound = {
|
|
1085
|
-
temperature?: number | undefined;
|
|
1086
|
-
maxTokens?: number | undefined;
|
|
1087
|
-
topK?: number | undefined;
|
|
1088
|
-
topP?: number | undefined;
|
|
1089
|
-
frequencyPenalty?: number | undefined;
|
|
1090
|
-
presencePenalty?: number | undefined;
|
|
1091
|
-
numImages?: number | undefined;
|
|
1092
|
-
seed?: number | undefined;
|
|
1093
|
-
format?: string | undefined;
|
|
1094
|
-
dimensions?: string | undefined;
|
|
1095
|
-
quality?: string | undefined;
|
|
1096
|
-
style?: string | undefined;
|
|
1097
|
-
responseFormat?:
|
|
1098
|
-
| GetAllPromptsResponseFormat1$Outbound
|
|
1099
|
-
| GetAllPromptsResponseFormat2$Outbound
|
|
1100
|
-
| GetAllPromptsResponseFormat3$Outbound
|
|
1101
|
-
| string
|
|
1102
|
-
| string
|
|
1103
|
-
| string
|
|
1104
|
-
| null
|
|
1105
|
-
| undefined;
|
|
1106
|
-
photoRealVersion?: string | undefined;
|
|
1107
|
-
encoding_format?: string | undefined;
|
|
1108
|
-
reasoningEffort?: string | undefined;
|
|
1109
|
-
budgetTokens?: number | undefined;
|
|
1110
|
-
verbosity?: string | undefined;
|
|
1111
|
-
thinkingLevel?: string | undefined;
|
|
1112
|
-
};
|
|
3513
|
+
export const GetAllPromptsMessagesPromptsResponseContent$outboundSchema:
|
|
3514
|
+
z.ZodType<
|
|
3515
|
+
GetAllPromptsMessagesPromptsResponseContent$Outbound,
|
|
3516
|
+
z.ZodTypeDef,
|
|
3517
|
+
GetAllPromptsMessagesPromptsResponseContent
|
|
3518
|
+
> = z.union([
|
|
3519
|
+
z.string(),
|
|
3520
|
+
z.array(
|
|
3521
|
+
z.union([
|
|
3522
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3523
|
+
z.object({ type: z.literal("text") }),
|
|
3524
|
+
),
|
|
3525
|
+
components.RefusalPartSchema$outboundSchema,
|
|
3526
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
3527
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3528
|
+
]),
|
|
3529
|
+
),
|
|
3530
|
+
]);
|
|
1113
3531
|
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
thinkingLevel: GetAllPromptsThinkingLevel$outboundSchema.optional(),
|
|
1148
|
-
}).transform((v) => {
|
|
1149
|
-
return remap$(v, {
|
|
1150
|
-
encodingFormat: "encoding_format",
|
|
1151
|
-
});
|
|
3532
|
+
export function getAllPromptsMessagesPromptsResponseContentToJSON(
|
|
3533
|
+
getAllPromptsMessagesPromptsResponseContent:
|
|
3534
|
+
GetAllPromptsMessagesPromptsResponseContent,
|
|
3535
|
+
): string {
|
|
3536
|
+
return JSON.stringify(
|
|
3537
|
+
GetAllPromptsMessagesPromptsResponseContent$outboundSchema.parse(
|
|
3538
|
+
getAllPromptsMessagesPromptsResponseContent,
|
|
3539
|
+
),
|
|
3540
|
+
);
|
|
3541
|
+
}
|
|
3542
|
+
export function getAllPromptsMessagesPromptsResponseContentFromJSON(
|
|
3543
|
+
jsonString: string,
|
|
3544
|
+
): SafeParseResult<
|
|
3545
|
+
GetAllPromptsMessagesPromptsResponseContent,
|
|
3546
|
+
SDKValidationError
|
|
3547
|
+
> {
|
|
3548
|
+
return safeParse(
|
|
3549
|
+
jsonString,
|
|
3550
|
+
(x) =>
|
|
3551
|
+
GetAllPromptsMessagesPromptsResponseContent$inboundSchema.parse(
|
|
3552
|
+
JSON.parse(x),
|
|
3553
|
+
),
|
|
3554
|
+
`Failed to parse 'GetAllPromptsMessagesPromptsResponseContent' from JSON`,
|
|
3555
|
+
);
|
|
3556
|
+
}
|
|
3557
|
+
|
|
3558
|
+
/** @internal */
|
|
3559
|
+
export const GetAllPromptsMessagesAudio$inboundSchema: z.ZodType<
|
|
3560
|
+
GetAllPromptsMessagesAudio,
|
|
3561
|
+
z.ZodTypeDef,
|
|
3562
|
+
unknown
|
|
3563
|
+
> = z.object({
|
|
3564
|
+
id: z.string(),
|
|
1152
3565
|
});
|
|
3566
|
+
/** @internal */
|
|
3567
|
+
export type GetAllPromptsMessagesAudio$Outbound = {
|
|
3568
|
+
id: string;
|
|
3569
|
+
};
|
|
1153
3570
|
|
|
1154
|
-
|
|
1155
|
-
|
|
3571
|
+
/** @internal */
|
|
3572
|
+
export const GetAllPromptsMessagesAudio$outboundSchema: z.ZodType<
|
|
3573
|
+
GetAllPromptsMessagesAudio$Outbound,
|
|
3574
|
+
z.ZodTypeDef,
|
|
3575
|
+
GetAllPromptsMessagesAudio
|
|
3576
|
+
> = z.object({
|
|
3577
|
+
id: z.string(),
|
|
3578
|
+
});
|
|
3579
|
+
|
|
3580
|
+
export function getAllPromptsMessagesAudioToJSON(
|
|
3581
|
+
getAllPromptsMessagesAudio: GetAllPromptsMessagesAudio,
|
|
1156
3582
|
): string {
|
|
1157
3583
|
return JSON.stringify(
|
|
1158
|
-
|
|
1159
|
-
getAllPromptsModelParameters,
|
|
1160
|
-
),
|
|
3584
|
+
GetAllPromptsMessagesAudio$outboundSchema.parse(getAllPromptsMessagesAudio),
|
|
1161
3585
|
);
|
|
1162
3586
|
}
|
|
1163
|
-
export function
|
|
3587
|
+
export function getAllPromptsMessagesAudioFromJSON(
|
|
1164
3588
|
jsonString: string,
|
|
1165
|
-
): SafeParseResult<
|
|
3589
|
+
): SafeParseResult<GetAllPromptsMessagesAudio, SDKValidationError> {
|
|
1166
3590
|
return safeParse(
|
|
1167
3591
|
jsonString,
|
|
1168
|
-
(x) =>
|
|
1169
|
-
`Failed to parse '
|
|
3592
|
+
(x) => GetAllPromptsMessagesAudio$inboundSchema.parse(JSON.parse(x)),
|
|
3593
|
+
`Failed to parse 'GetAllPromptsMessagesAudio' from JSON`,
|
|
1170
3594
|
);
|
|
1171
3595
|
}
|
|
1172
3596
|
|
|
1173
3597
|
/** @internal */
|
|
1174
|
-
export const
|
|
1175
|
-
typeof
|
|
1176
|
-
> = z.nativeEnum(
|
|
1177
|
-
/** @internal */
|
|
1178
|
-
export const GetAllPromptsProvider$outboundSchema: z.ZodNativeEnum<
|
|
1179
|
-
typeof GetAllPromptsProvider
|
|
1180
|
-
> = GetAllPromptsProvider$inboundSchema;
|
|
1181
|
-
|
|
1182
|
-
/** @internal */
|
|
1183
|
-
export const GetAllPromptsRole$inboundSchema: z.ZodNativeEnum<
|
|
1184
|
-
typeof GetAllPromptsRole
|
|
1185
|
-
> = z.nativeEnum(GetAllPromptsRole);
|
|
3598
|
+
export const GetAllPromptsMessagesType$inboundSchema: z.ZodNativeEnum<
|
|
3599
|
+
typeof GetAllPromptsMessagesType
|
|
3600
|
+
> = z.nativeEnum(GetAllPromptsMessagesType);
|
|
1186
3601
|
/** @internal */
|
|
1187
|
-
export const
|
|
1188
|
-
typeof
|
|
1189
|
-
> =
|
|
3602
|
+
export const GetAllPromptsMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
3603
|
+
typeof GetAllPromptsMessagesType
|
|
3604
|
+
> = GetAllPromptsMessagesType$inboundSchema;
|
|
1190
3605
|
|
|
1191
3606
|
/** @internal */
|
|
1192
|
-
export const
|
|
1193
|
-
|
|
3607
|
+
export const GetAllPromptsMessagesFunction$inboundSchema: z.ZodType<
|
|
3608
|
+
GetAllPromptsMessagesFunction,
|
|
1194
3609
|
z.ZodTypeDef,
|
|
1195
3610
|
unknown
|
|
1196
3611
|
> = z.object({
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
mimeType: z.string().optional(),
|
|
1200
|
-
filename: z.string().optional(),
|
|
1201
|
-
}).transform((v) => {
|
|
1202
|
-
return remap$(v, {
|
|
1203
|
-
"file_data": "fileData",
|
|
1204
|
-
});
|
|
3612
|
+
name: z.string().optional(),
|
|
3613
|
+
arguments: z.string().optional(),
|
|
1205
3614
|
});
|
|
1206
3615
|
/** @internal */
|
|
1207
|
-
export type
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
mimeType?: string | undefined;
|
|
1211
|
-
filename?: string | undefined;
|
|
3616
|
+
export type GetAllPromptsMessagesFunction$Outbound = {
|
|
3617
|
+
name?: string | undefined;
|
|
3618
|
+
arguments?: string | undefined;
|
|
1212
3619
|
};
|
|
1213
3620
|
|
|
1214
3621
|
/** @internal */
|
|
1215
|
-
export const
|
|
1216
|
-
|
|
3622
|
+
export const GetAllPromptsMessagesFunction$outboundSchema: z.ZodType<
|
|
3623
|
+
GetAllPromptsMessagesFunction$Outbound,
|
|
1217
3624
|
z.ZodTypeDef,
|
|
1218
|
-
|
|
3625
|
+
GetAllPromptsMessagesFunction
|
|
1219
3626
|
> = z.object({
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
mimeType: z.string().optional(),
|
|
1223
|
-
filename: z.string().optional(),
|
|
1224
|
-
}).transform((v) => {
|
|
1225
|
-
return remap$(v, {
|
|
1226
|
-
fileData: "file_data",
|
|
1227
|
-
});
|
|
3627
|
+
name: z.string().optional(),
|
|
3628
|
+
arguments: z.string().optional(),
|
|
1228
3629
|
});
|
|
1229
3630
|
|
|
1230
|
-
export function
|
|
1231
|
-
|
|
3631
|
+
export function getAllPromptsMessagesFunctionToJSON(
|
|
3632
|
+
getAllPromptsMessagesFunction: GetAllPromptsMessagesFunction,
|
|
1232
3633
|
): string {
|
|
1233
3634
|
return JSON.stringify(
|
|
1234
|
-
|
|
3635
|
+
GetAllPromptsMessagesFunction$outboundSchema.parse(
|
|
3636
|
+
getAllPromptsMessagesFunction,
|
|
3637
|
+
),
|
|
1235
3638
|
);
|
|
1236
3639
|
}
|
|
1237
|
-
export function
|
|
3640
|
+
export function getAllPromptsMessagesFunctionFromJSON(
|
|
1238
3641
|
jsonString: string,
|
|
1239
|
-
): SafeParseResult<
|
|
3642
|
+
): SafeParseResult<GetAllPromptsMessagesFunction, SDKValidationError> {
|
|
1240
3643
|
return safeParse(
|
|
1241
3644
|
jsonString,
|
|
1242
|
-
(x) =>
|
|
1243
|
-
`Failed to parse '
|
|
3645
|
+
(x) => GetAllPromptsMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
3646
|
+
`Failed to parse 'GetAllPromptsMessagesFunction' from JSON`,
|
|
1244
3647
|
);
|
|
1245
3648
|
}
|
|
1246
3649
|
|
|
1247
3650
|
/** @internal */
|
|
1248
|
-
export const
|
|
1249
|
-
|
|
3651
|
+
export const GetAllPromptsMessagesToolCalls$inboundSchema: z.ZodType<
|
|
3652
|
+
GetAllPromptsMessagesToolCalls,
|
|
1250
3653
|
z.ZodTypeDef,
|
|
1251
3654
|
unknown
|
|
1252
3655
|
> = z.object({
|
|
1253
|
-
|
|
1254
|
-
|
|
3656
|
+
id: z.string(),
|
|
3657
|
+
type: GetAllPromptsMessagesType$inboundSchema,
|
|
3658
|
+
function: z.lazy(() => GetAllPromptsMessagesFunction$inboundSchema),
|
|
3659
|
+
thought_signature: z.string().optional(),
|
|
3660
|
+
}).transform((v) => {
|
|
3661
|
+
return remap$(v, {
|
|
3662
|
+
"thought_signature": "thoughtSignature",
|
|
3663
|
+
});
|
|
1255
3664
|
});
|
|
1256
3665
|
/** @internal */
|
|
1257
|
-
export type
|
|
1258
|
-
|
|
1259
|
-
|
|
3666
|
+
export type GetAllPromptsMessagesToolCalls$Outbound = {
|
|
3667
|
+
id: string;
|
|
3668
|
+
type: string;
|
|
3669
|
+
function: GetAllPromptsMessagesFunction$Outbound;
|
|
3670
|
+
thought_signature?: string | undefined;
|
|
1260
3671
|
};
|
|
1261
3672
|
|
|
1262
3673
|
/** @internal */
|
|
1263
|
-
export const
|
|
1264
|
-
|
|
3674
|
+
export const GetAllPromptsMessagesToolCalls$outboundSchema: z.ZodType<
|
|
3675
|
+
GetAllPromptsMessagesToolCalls$Outbound,
|
|
1265
3676
|
z.ZodTypeDef,
|
|
1266
|
-
|
|
3677
|
+
GetAllPromptsMessagesToolCalls
|
|
1267
3678
|
> = z.object({
|
|
1268
|
-
|
|
1269
|
-
|
|
3679
|
+
id: z.string(),
|
|
3680
|
+
type: GetAllPromptsMessagesType$outboundSchema,
|
|
3681
|
+
function: z.lazy(() => GetAllPromptsMessagesFunction$outboundSchema),
|
|
3682
|
+
thoughtSignature: z.string().optional(),
|
|
3683
|
+
}).transform((v) => {
|
|
3684
|
+
return remap$(v, {
|
|
3685
|
+
thoughtSignature: "thought_signature",
|
|
3686
|
+
});
|
|
1270
3687
|
});
|
|
1271
3688
|
|
|
1272
|
-
export function
|
|
1273
|
-
|
|
3689
|
+
export function getAllPromptsMessagesToolCallsToJSON(
|
|
3690
|
+
getAllPromptsMessagesToolCalls: GetAllPromptsMessagesToolCalls,
|
|
1274
3691
|
): string {
|
|
1275
|
-
return JSON.stringify(
|
|
3692
|
+
return JSON.stringify(
|
|
3693
|
+
GetAllPromptsMessagesToolCalls$outboundSchema.parse(
|
|
3694
|
+
getAllPromptsMessagesToolCalls,
|
|
3695
|
+
),
|
|
3696
|
+
);
|
|
1276
3697
|
}
|
|
1277
|
-
export function
|
|
3698
|
+
export function getAllPromptsMessagesToolCallsFromJSON(
|
|
1278
3699
|
jsonString: string,
|
|
1279
|
-
): SafeParseResult<
|
|
3700
|
+
): SafeParseResult<GetAllPromptsMessagesToolCalls, SDKValidationError> {
|
|
1280
3701
|
return safeParse(
|
|
1281
3702
|
jsonString,
|
|
1282
|
-
(x) =>
|
|
1283
|
-
`Failed to parse '
|
|
3703
|
+
(x) => GetAllPromptsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
3704
|
+
`Failed to parse 'GetAllPromptsMessagesToolCalls' from JSON`,
|
|
1284
3705
|
);
|
|
1285
3706
|
}
|
|
1286
3707
|
|
|
1287
3708
|
/** @internal */
|
|
1288
|
-
export const
|
|
1289
|
-
|
|
3709
|
+
export const GetAllPromptsMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
3710
|
+
GetAllPromptsMessagesAssistantMessage,
|
|
1290
3711
|
z.ZodTypeDef,
|
|
1291
3712
|
unknown
|
|
1292
3713
|
> = z.object({
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
3714
|
+
content: z.nullable(
|
|
3715
|
+
z.union([
|
|
3716
|
+
z.string(),
|
|
3717
|
+
z.array(
|
|
3718
|
+
z.union([
|
|
3719
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3720
|
+
z.object({ type: z.literal("text") }),
|
|
3721
|
+
),
|
|
3722
|
+
components.RefusalPartSchema$inboundSchema,
|
|
3723
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
3724
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
3725
|
+
]),
|
|
3726
|
+
),
|
|
3727
|
+
]),
|
|
3728
|
+
).optional(),
|
|
3729
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3730
|
+
role: z.literal("assistant"),
|
|
3731
|
+
name: z.string().optional(),
|
|
3732
|
+
audio: z.nullable(z.lazy(() => GetAllPromptsMessagesAudio$inboundSchema))
|
|
3733
|
+
.optional(),
|
|
3734
|
+
tool_calls: z.array(
|
|
3735
|
+
z.lazy(() => GetAllPromptsMessagesToolCalls$inboundSchema),
|
|
3736
|
+
).optional(),
|
|
3737
|
+
}).transform((v) => {
|
|
3738
|
+
return remap$(v, {
|
|
3739
|
+
"tool_calls": "toolCalls",
|
|
3740
|
+
});
|
|
1296
3741
|
});
|
|
1297
3742
|
/** @internal */
|
|
1298
|
-
export type
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
3743
|
+
export type GetAllPromptsMessagesAssistantMessage$Outbound = {
|
|
3744
|
+
content?:
|
|
3745
|
+
| string
|
|
3746
|
+
| Array<
|
|
3747
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3748
|
+
| components.RefusalPartSchema$Outbound
|
|
3749
|
+
| components.ReasoningPartSchema$Outbound
|
|
3750
|
+
| components.RedactedReasoningPartSchema$Outbound
|
|
3751
|
+
>
|
|
3752
|
+
| null
|
|
3753
|
+
| undefined;
|
|
3754
|
+
refusal?: string | null | undefined;
|
|
3755
|
+
role: "assistant";
|
|
3756
|
+
name?: string | undefined;
|
|
3757
|
+
audio?: GetAllPromptsMessagesAudio$Outbound | null | undefined;
|
|
3758
|
+
tool_calls?: Array<GetAllPromptsMessagesToolCalls$Outbound> | undefined;
|
|
1302
3759
|
};
|
|
1303
3760
|
|
|
1304
3761
|
/** @internal */
|
|
1305
|
-
export const
|
|
1306
|
-
|
|
3762
|
+
export const GetAllPromptsMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
3763
|
+
GetAllPromptsMessagesAssistantMessage$Outbound,
|
|
1307
3764
|
z.ZodTypeDef,
|
|
1308
|
-
|
|
3765
|
+
GetAllPromptsMessagesAssistantMessage
|
|
1309
3766
|
> = z.object({
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
3767
|
+
content: z.nullable(
|
|
3768
|
+
z.union([
|
|
3769
|
+
z.string(),
|
|
3770
|
+
z.array(
|
|
3771
|
+
z.union([
|
|
3772
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3773
|
+
z.object({ type: z.literal("text") }),
|
|
3774
|
+
),
|
|
3775
|
+
components.RefusalPartSchema$outboundSchema,
|
|
3776
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
3777
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3778
|
+
]),
|
|
3779
|
+
),
|
|
3780
|
+
]),
|
|
3781
|
+
).optional(),
|
|
3782
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3783
|
+
role: z.literal("assistant"),
|
|
3784
|
+
name: z.string().optional(),
|
|
3785
|
+
audio: z.nullable(z.lazy(() => GetAllPromptsMessagesAudio$outboundSchema))
|
|
3786
|
+
.optional(),
|
|
3787
|
+
toolCalls: z.array(
|
|
3788
|
+
z.lazy(() => GetAllPromptsMessagesToolCalls$outboundSchema),
|
|
3789
|
+
).optional(),
|
|
3790
|
+
}).transform((v) => {
|
|
3791
|
+
return remap$(v, {
|
|
3792
|
+
toolCalls: "tool_calls",
|
|
3793
|
+
});
|
|
1313
3794
|
});
|
|
1314
3795
|
|
|
1315
|
-
export function
|
|
1316
|
-
|
|
3796
|
+
export function getAllPromptsMessagesAssistantMessageToJSON(
|
|
3797
|
+
getAllPromptsMessagesAssistantMessage: GetAllPromptsMessagesAssistantMessage,
|
|
1317
3798
|
): string {
|
|
1318
3799
|
return JSON.stringify(
|
|
1319
|
-
|
|
3800
|
+
GetAllPromptsMessagesAssistantMessage$outboundSchema.parse(
|
|
3801
|
+
getAllPromptsMessagesAssistantMessage,
|
|
3802
|
+
),
|
|
1320
3803
|
);
|
|
1321
3804
|
}
|
|
1322
|
-
export function
|
|
3805
|
+
export function getAllPromptsMessagesAssistantMessageFromJSON(
|
|
1323
3806
|
jsonString: string,
|
|
1324
|
-
): SafeParseResult<
|
|
3807
|
+
): SafeParseResult<GetAllPromptsMessagesAssistantMessage, SDKValidationError> {
|
|
1325
3808
|
return safeParse(
|
|
1326
3809
|
jsonString,
|
|
1327
|
-
(x) =>
|
|
1328
|
-
|
|
3810
|
+
(x) =>
|
|
3811
|
+
GetAllPromptsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3812
|
+
`Failed to parse 'GetAllPromptsMessagesAssistantMessage' from JSON`,
|
|
1329
3813
|
);
|
|
1330
3814
|
}
|
|
1331
3815
|
|
|
1332
3816
|
/** @internal */
|
|
1333
|
-
export const
|
|
1334
|
-
|
|
3817
|
+
export const GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema:
|
|
3818
|
+
z.ZodNativeEnum<typeof GetAllPrompts2PromptsResponse200ApplicationJSONType> =
|
|
3819
|
+
z.nativeEnum(GetAllPrompts2PromptsResponse200ApplicationJSONType);
|
|
3820
|
+
/** @internal */
|
|
3821
|
+
export const GetAllPrompts2PromptsResponse200ApplicationJSONType$outboundSchema:
|
|
3822
|
+
z.ZodNativeEnum<typeof GetAllPrompts2PromptsResponse200ApplicationJSONType> =
|
|
3823
|
+
GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema;
|
|
3824
|
+
|
|
3825
|
+
/** @internal */
|
|
3826
|
+
export const GetAllPrompts2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
3827
|
+
typeof GetAllPrompts2Ttl
|
|
3828
|
+
> = z.nativeEnum(GetAllPrompts2Ttl);
|
|
3829
|
+
/** @internal */
|
|
3830
|
+
export const GetAllPrompts2Ttl$outboundSchema: z.ZodNativeEnum<
|
|
3831
|
+
typeof GetAllPrompts2Ttl
|
|
3832
|
+
> = GetAllPrompts2Ttl$inboundSchema;
|
|
3833
|
+
|
|
3834
|
+
/** @internal */
|
|
3835
|
+
export const GetAllPrompts2CacheControl$inboundSchema: z.ZodType<
|
|
3836
|
+
GetAllPrompts2CacheControl,
|
|
1335
3837
|
z.ZodTypeDef,
|
|
1336
3838
|
unknown
|
|
1337
3839
|
> = z.object({
|
|
1338
|
-
type:
|
|
1339
|
-
|
|
1340
|
-
}).transform((v) => {
|
|
1341
|
-
return remap$(v, {
|
|
1342
|
-
"image_url": "imageUrl",
|
|
1343
|
-
});
|
|
3840
|
+
type: GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema,
|
|
3841
|
+
ttl: GetAllPrompts2Ttl$inboundSchema.default("5m"),
|
|
1344
3842
|
});
|
|
1345
3843
|
/** @internal */
|
|
1346
|
-
export type
|
|
1347
|
-
type:
|
|
1348
|
-
|
|
3844
|
+
export type GetAllPrompts2CacheControl$Outbound = {
|
|
3845
|
+
type: string;
|
|
3846
|
+
ttl: string;
|
|
1349
3847
|
};
|
|
1350
3848
|
|
|
1351
3849
|
/** @internal */
|
|
1352
|
-
export const
|
|
1353
|
-
|
|
3850
|
+
export const GetAllPrompts2CacheControl$outboundSchema: z.ZodType<
|
|
3851
|
+
GetAllPrompts2CacheControl$Outbound,
|
|
1354
3852
|
z.ZodTypeDef,
|
|
1355
|
-
|
|
3853
|
+
GetAllPrompts2CacheControl
|
|
1356
3854
|
> = z.object({
|
|
1357
|
-
type:
|
|
1358
|
-
|
|
1359
|
-
}).transform((v) => {
|
|
1360
|
-
return remap$(v, {
|
|
1361
|
-
imageUrl: "image_url",
|
|
1362
|
-
});
|
|
3855
|
+
type: GetAllPrompts2PromptsResponse200ApplicationJSONType$outboundSchema,
|
|
3856
|
+
ttl: GetAllPrompts2Ttl$outboundSchema.default("5m"),
|
|
1363
3857
|
});
|
|
1364
3858
|
|
|
1365
|
-
export function
|
|
1366
|
-
|
|
3859
|
+
export function getAllPrompts2CacheControlToJSON(
|
|
3860
|
+
getAllPrompts2CacheControl: GetAllPrompts2CacheControl,
|
|
1367
3861
|
): string {
|
|
1368
|
-
return JSON.stringify(
|
|
3862
|
+
return JSON.stringify(
|
|
3863
|
+
GetAllPrompts2CacheControl$outboundSchema.parse(getAllPrompts2CacheControl),
|
|
3864
|
+
);
|
|
1369
3865
|
}
|
|
1370
|
-
export function
|
|
3866
|
+
export function getAllPrompts2CacheControlFromJSON(
|
|
1371
3867
|
jsonString: string,
|
|
1372
|
-
): SafeParseResult<
|
|
3868
|
+
): SafeParseResult<GetAllPrompts2CacheControl, SDKValidationError> {
|
|
1373
3869
|
return safeParse(
|
|
1374
3870
|
jsonString,
|
|
1375
|
-
(x) =>
|
|
1376
|
-
`Failed to parse '
|
|
3871
|
+
(x) => GetAllPrompts2CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3872
|
+
`Failed to parse 'GetAllPrompts2CacheControl' from JSON`,
|
|
1377
3873
|
);
|
|
1378
3874
|
}
|
|
1379
3875
|
|
|
1380
3876
|
/** @internal */
|
|
1381
|
-
export const
|
|
1382
|
-
|
|
3877
|
+
export const GetAllPrompts24$inboundSchema: z.ZodType<
|
|
3878
|
+
GetAllPrompts24,
|
|
1383
3879
|
z.ZodTypeDef,
|
|
1384
3880
|
unknown
|
|
1385
3881
|
> = z.object({
|
|
1386
|
-
type: z.literal("
|
|
1387
|
-
|
|
3882
|
+
type: z.literal("file"),
|
|
3883
|
+
cache_control: z.lazy(() => GetAllPrompts2CacheControl$inboundSchema)
|
|
3884
|
+
.optional(),
|
|
3885
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
3886
|
+
}).transform((v) => {
|
|
3887
|
+
return remap$(v, {
|
|
3888
|
+
"cache_control": "cacheControl",
|
|
3889
|
+
});
|
|
1388
3890
|
});
|
|
1389
3891
|
/** @internal */
|
|
1390
|
-
export type
|
|
1391
|
-
type: "
|
|
1392
|
-
|
|
3892
|
+
export type GetAllPrompts24$Outbound = {
|
|
3893
|
+
type: "file";
|
|
3894
|
+
cache_control?: GetAllPrompts2CacheControl$Outbound | undefined;
|
|
3895
|
+
file: components.FileContentPartSchema$Outbound;
|
|
1393
3896
|
};
|
|
1394
3897
|
|
|
1395
3898
|
/** @internal */
|
|
1396
|
-
export const
|
|
1397
|
-
|
|
3899
|
+
export const GetAllPrompts24$outboundSchema: z.ZodType<
|
|
3900
|
+
GetAllPrompts24$Outbound,
|
|
1398
3901
|
z.ZodTypeDef,
|
|
1399
|
-
|
|
3902
|
+
GetAllPrompts24
|
|
1400
3903
|
> = z.object({
|
|
1401
|
-
type: z.literal("
|
|
1402
|
-
|
|
3904
|
+
type: z.literal("file"),
|
|
3905
|
+
cacheControl: z.lazy(() => GetAllPrompts2CacheControl$outboundSchema)
|
|
3906
|
+
.optional(),
|
|
3907
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
3908
|
+
}).transform((v) => {
|
|
3909
|
+
return remap$(v, {
|
|
3910
|
+
cacheControl: "cache_control",
|
|
3911
|
+
});
|
|
1403
3912
|
});
|
|
1404
3913
|
|
|
1405
|
-
export function
|
|
1406
|
-
|
|
3914
|
+
export function getAllPrompts24ToJSON(
|
|
3915
|
+
getAllPrompts24: GetAllPrompts24,
|
|
1407
3916
|
): string {
|
|
1408
|
-
return JSON.stringify(
|
|
3917
|
+
return JSON.stringify(GetAllPrompts24$outboundSchema.parse(getAllPrompts24));
|
|
1409
3918
|
}
|
|
1410
|
-
export function
|
|
3919
|
+
export function getAllPrompts24FromJSON(
|
|
1411
3920
|
jsonString: string,
|
|
1412
|
-
): SafeParseResult<
|
|
3921
|
+
): SafeParseResult<GetAllPrompts24, SDKValidationError> {
|
|
1413
3922
|
return safeParse(
|
|
1414
3923
|
jsonString,
|
|
1415
|
-
(x) =>
|
|
1416
|
-
`Failed to parse '
|
|
3924
|
+
(x) => GetAllPrompts24$inboundSchema.parse(JSON.parse(x)),
|
|
3925
|
+
`Failed to parse 'GetAllPrompts24' from JSON`,
|
|
1417
3926
|
);
|
|
1418
3927
|
}
|
|
1419
3928
|
|
|
1420
3929
|
/** @internal */
|
|
1421
|
-
export const
|
|
1422
|
-
|
|
3930
|
+
export const GetAllPromptsContentPrompts2$inboundSchema: z.ZodType<
|
|
3931
|
+
GetAllPromptsContentPrompts2,
|
|
1423
3932
|
z.ZodTypeDef,
|
|
1424
3933
|
unknown
|
|
1425
3934
|
> = z.union([
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
3935
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3936
|
+
z.object({ type: z.literal("text") }),
|
|
3937
|
+
),
|
|
3938
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3939
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3940
|
+
z.lazy(() => GetAllPrompts24$inboundSchema),
|
|
1429
3941
|
]);
|
|
1430
3942
|
/** @internal */
|
|
1431
|
-
export type
|
|
1432
|
-
|
|
|
1433
|
-
|
|
|
1434
|
-
|
|
|
3943
|
+
export type GetAllPromptsContentPrompts2$Outbound =
|
|
3944
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3945
|
+
| components.ImageContentPartSchema$Outbound
|
|
3946
|
+
| components.AudioContentPartSchema$Outbound
|
|
3947
|
+
| GetAllPrompts24$Outbound;
|
|
1435
3948
|
|
|
1436
3949
|
/** @internal */
|
|
1437
|
-
export const
|
|
1438
|
-
|
|
3950
|
+
export const GetAllPromptsContentPrompts2$outboundSchema: z.ZodType<
|
|
3951
|
+
GetAllPromptsContentPrompts2$Outbound,
|
|
1439
3952
|
z.ZodTypeDef,
|
|
1440
|
-
|
|
3953
|
+
GetAllPromptsContentPrompts2
|
|
1441
3954
|
> = z.union([
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
3955
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3956
|
+
z.object({ type: z.literal("text") }),
|
|
3957
|
+
),
|
|
3958
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3959
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3960
|
+
z.lazy(() => GetAllPrompts24$outboundSchema),
|
|
1445
3961
|
]);
|
|
1446
3962
|
|
|
1447
|
-
export function
|
|
1448
|
-
|
|
3963
|
+
export function getAllPromptsContentPrompts2ToJSON(
|
|
3964
|
+
getAllPromptsContentPrompts2: GetAllPromptsContentPrompts2,
|
|
1449
3965
|
): string {
|
|
1450
3966
|
return JSON.stringify(
|
|
1451
|
-
|
|
3967
|
+
GetAllPromptsContentPrompts2$outboundSchema.parse(
|
|
3968
|
+
getAllPromptsContentPrompts2,
|
|
3969
|
+
),
|
|
1452
3970
|
);
|
|
1453
3971
|
}
|
|
1454
|
-
export function
|
|
3972
|
+
export function getAllPromptsContentPrompts2FromJSON(
|
|
1455
3973
|
jsonString: string,
|
|
1456
|
-
): SafeParseResult<
|
|
3974
|
+
): SafeParseResult<GetAllPromptsContentPrompts2, SDKValidationError> {
|
|
1457
3975
|
return safeParse(
|
|
1458
|
-
jsonString,
|
|
1459
|
-
(x) =>
|
|
1460
|
-
`Failed to parse '
|
|
3976
|
+
jsonString,
|
|
3977
|
+
(x) => GetAllPromptsContentPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
3978
|
+
`Failed to parse 'GetAllPromptsContentPrompts2' from JSON`,
|
|
1461
3979
|
);
|
|
1462
3980
|
}
|
|
1463
3981
|
|
|
1464
3982
|
/** @internal */
|
|
1465
|
-
export const
|
|
1466
|
-
|
|
3983
|
+
export const GetAllPromptsMessagesPromptsContent$inboundSchema: z.ZodType<
|
|
3984
|
+
GetAllPromptsMessagesPromptsContent,
|
|
1467
3985
|
z.ZodTypeDef,
|
|
1468
3986
|
unknown
|
|
1469
3987
|
> = z.union([
|
|
1470
3988
|
z.string(),
|
|
1471
|
-
z.array(
|
|
1472
|
-
z.
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
3989
|
+
z.array(
|
|
3990
|
+
z.union([
|
|
3991
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3992
|
+
z.object({ type: z.literal("text") }),
|
|
3993
|
+
),
|
|
3994
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3995
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3996
|
+
z.lazy(() => GetAllPrompts24$inboundSchema),
|
|
3997
|
+
]),
|
|
3998
|
+
),
|
|
1476
3999
|
]);
|
|
1477
4000
|
/** @internal */
|
|
1478
|
-
export type
|
|
4001
|
+
export type GetAllPromptsMessagesPromptsContent$Outbound =
|
|
1479
4002
|
| string
|
|
1480
4003
|
| Array<
|
|
1481
|
-
|
|
|
1482
|
-
|
|
|
1483
|
-
|
|
|
4004
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4005
|
+
| components.ImageContentPartSchema$Outbound
|
|
4006
|
+
| components.AudioContentPartSchema$Outbound
|
|
4007
|
+
| GetAllPrompts24$Outbound
|
|
1484
4008
|
>;
|
|
1485
4009
|
|
|
1486
4010
|
/** @internal */
|
|
1487
|
-
export const
|
|
1488
|
-
|
|
4011
|
+
export const GetAllPromptsMessagesPromptsContent$outboundSchema: z.ZodType<
|
|
4012
|
+
GetAllPromptsMessagesPromptsContent$Outbound,
|
|
1489
4013
|
z.ZodTypeDef,
|
|
1490
|
-
|
|
4014
|
+
GetAllPromptsMessagesPromptsContent
|
|
1491
4015
|
> = z.union([
|
|
1492
4016
|
z.string(),
|
|
1493
|
-
z.array(
|
|
1494
|
-
z.
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
4017
|
+
z.array(
|
|
4018
|
+
z.union([
|
|
4019
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
4020
|
+
z.object({ type: z.literal("text") }),
|
|
4021
|
+
),
|
|
4022
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
4023
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
4024
|
+
z.lazy(() => GetAllPrompts24$outboundSchema),
|
|
4025
|
+
]),
|
|
4026
|
+
),
|
|
1498
4027
|
]);
|
|
1499
4028
|
|
|
1500
|
-
export function
|
|
1501
|
-
|
|
4029
|
+
export function getAllPromptsMessagesPromptsContentToJSON(
|
|
4030
|
+
getAllPromptsMessagesPromptsContent: GetAllPromptsMessagesPromptsContent,
|
|
1502
4031
|
): string {
|
|
1503
4032
|
return JSON.stringify(
|
|
1504
|
-
|
|
4033
|
+
GetAllPromptsMessagesPromptsContent$outboundSchema.parse(
|
|
4034
|
+
getAllPromptsMessagesPromptsContent,
|
|
4035
|
+
),
|
|
1505
4036
|
);
|
|
1506
4037
|
}
|
|
1507
|
-
export function
|
|
4038
|
+
export function getAllPromptsMessagesPromptsContentFromJSON(
|
|
1508
4039
|
jsonString: string,
|
|
1509
|
-
): SafeParseResult<
|
|
4040
|
+
): SafeParseResult<GetAllPromptsMessagesPromptsContent, SDKValidationError> {
|
|
1510
4041
|
return safeParse(
|
|
1511
4042
|
jsonString,
|
|
1512
|
-
(x) =>
|
|
1513
|
-
|
|
4043
|
+
(x) =>
|
|
4044
|
+
GetAllPromptsMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)),
|
|
4045
|
+
`Failed to parse 'GetAllPromptsMessagesPromptsContent' from JSON`,
|
|
1514
4046
|
);
|
|
1515
4047
|
}
|
|
1516
4048
|
|
|
1517
4049
|
/** @internal */
|
|
1518
|
-
export const
|
|
1519
|
-
|
|
1520
|
-
> = z.nativeEnum(GetAllPromptsPromptsType);
|
|
1521
|
-
/** @internal */
|
|
1522
|
-
export const GetAllPromptsPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
1523
|
-
typeof GetAllPromptsPromptsType
|
|
1524
|
-
> = GetAllPromptsPromptsType$inboundSchema;
|
|
1525
|
-
|
|
1526
|
-
/** @internal */
|
|
1527
|
-
export const GetAllPromptsFunction$inboundSchema: z.ZodType<
|
|
1528
|
-
GetAllPromptsFunction,
|
|
4050
|
+
export const GetAllPromptsMessagesUserMessage$inboundSchema: z.ZodType<
|
|
4051
|
+
GetAllPromptsMessagesUserMessage,
|
|
1529
4052
|
z.ZodTypeDef,
|
|
1530
4053
|
unknown
|
|
1531
4054
|
> = z.object({
|
|
1532
|
-
|
|
1533
|
-
|
|
4055
|
+
role: z.literal("user"),
|
|
4056
|
+
name: z.string().optional(),
|
|
4057
|
+
content: z.union([
|
|
4058
|
+
z.string(),
|
|
4059
|
+
z.array(
|
|
4060
|
+
z.union([
|
|
4061
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
4062
|
+
z.object({ type: z.literal("text") }),
|
|
4063
|
+
),
|
|
4064
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
4065
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
4066
|
+
z.lazy(() => GetAllPrompts24$inboundSchema),
|
|
4067
|
+
]),
|
|
4068
|
+
),
|
|
4069
|
+
]),
|
|
1534
4070
|
});
|
|
1535
4071
|
/** @internal */
|
|
1536
|
-
export type
|
|
1537
|
-
|
|
1538
|
-
|
|
4072
|
+
export type GetAllPromptsMessagesUserMessage$Outbound = {
|
|
4073
|
+
role: "user";
|
|
4074
|
+
name?: string | undefined;
|
|
4075
|
+
content:
|
|
4076
|
+
| string
|
|
4077
|
+
| Array<
|
|
4078
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4079
|
+
| components.ImageContentPartSchema$Outbound
|
|
4080
|
+
| components.AudioContentPartSchema$Outbound
|
|
4081
|
+
| GetAllPrompts24$Outbound
|
|
4082
|
+
>;
|
|
1539
4083
|
};
|
|
1540
4084
|
|
|
1541
4085
|
/** @internal */
|
|
1542
|
-
export const
|
|
1543
|
-
|
|
4086
|
+
export const GetAllPromptsMessagesUserMessage$outboundSchema: z.ZodType<
|
|
4087
|
+
GetAllPromptsMessagesUserMessage$Outbound,
|
|
1544
4088
|
z.ZodTypeDef,
|
|
1545
|
-
|
|
4089
|
+
GetAllPromptsMessagesUserMessage
|
|
1546
4090
|
> = z.object({
|
|
1547
|
-
|
|
1548
|
-
|
|
4091
|
+
role: z.literal("user"),
|
|
4092
|
+
name: z.string().optional(),
|
|
4093
|
+
content: z.union([
|
|
4094
|
+
z.string(),
|
|
4095
|
+
z.array(
|
|
4096
|
+
z.union([
|
|
4097
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
4098
|
+
z.object({ type: z.literal("text") }),
|
|
4099
|
+
),
|
|
4100
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
4101
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
4102
|
+
z.lazy(() => GetAllPrompts24$outboundSchema),
|
|
4103
|
+
]),
|
|
4104
|
+
),
|
|
4105
|
+
]),
|
|
1549
4106
|
});
|
|
1550
4107
|
|
|
1551
|
-
export function
|
|
1552
|
-
|
|
4108
|
+
export function getAllPromptsMessagesUserMessageToJSON(
|
|
4109
|
+
getAllPromptsMessagesUserMessage: GetAllPromptsMessagesUserMessage,
|
|
1553
4110
|
): string {
|
|
1554
4111
|
return JSON.stringify(
|
|
1555
|
-
|
|
4112
|
+
GetAllPromptsMessagesUserMessage$outboundSchema.parse(
|
|
4113
|
+
getAllPromptsMessagesUserMessage,
|
|
4114
|
+
),
|
|
1556
4115
|
);
|
|
1557
4116
|
}
|
|
1558
|
-
export function
|
|
4117
|
+
export function getAllPromptsMessagesUserMessageFromJSON(
|
|
1559
4118
|
jsonString: string,
|
|
1560
|
-
): SafeParseResult<
|
|
4119
|
+
): SafeParseResult<GetAllPromptsMessagesUserMessage, SDKValidationError> {
|
|
1561
4120
|
return safeParse(
|
|
1562
4121
|
jsonString,
|
|
1563
|
-
(x) =>
|
|
1564
|
-
`Failed to parse '
|
|
4122
|
+
(x) => GetAllPromptsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4123
|
+
`Failed to parse 'GetAllPromptsMessagesUserMessage' from JSON`,
|
|
1565
4124
|
);
|
|
1566
4125
|
}
|
|
1567
4126
|
|
|
1568
4127
|
/** @internal */
|
|
1569
|
-
export const
|
|
1570
|
-
|
|
4128
|
+
export const GetAllPromptsMessagesContent$inboundSchema: z.ZodType<
|
|
4129
|
+
GetAllPromptsMessagesContent,
|
|
1571
4130
|
z.ZodTypeDef,
|
|
1572
4131
|
unknown
|
|
1573
|
-
> = z.
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
function: z.lazy(() => GetAllPromptsFunction$inboundSchema),
|
|
1578
|
-
});
|
|
4132
|
+
> = z.union([
|
|
4133
|
+
z.string(),
|
|
4134
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4135
|
+
]);
|
|
1579
4136
|
/** @internal */
|
|
1580
|
-
export type
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
type: string;
|
|
1584
|
-
function: GetAllPromptsFunction$Outbound;
|
|
1585
|
-
};
|
|
4137
|
+
export type GetAllPromptsMessagesContent$Outbound =
|
|
4138
|
+
| string
|
|
4139
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
1586
4140
|
|
|
1587
4141
|
/** @internal */
|
|
1588
|
-
export const
|
|
1589
|
-
|
|
4142
|
+
export const GetAllPromptsMessagesContent$outboundSchema: z.ZodType<
|
|
4143
|
+
GetAllPromptsMessagesContent$Outbound,
|
|
1590
4144
|
z.ZodTypeDef,
|
|
1591
|
-
|
|
1592
|
-
> = z.
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
function: z.lazy(() => GetAllPromptsFunction$outboundSchema),
|
|
1597
|
-
});
|
|
4145
|
+
GetAllPromptsMessagesContent
|
|
4146
|
+
> = z.union([
|
|
4147
|
+
z.string(),
|
|
4148
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4149
|
+
]);
|
|
1598
4150
|
|
|
1599
|
-
export function
|
|
1600
|
-
|
|
4151
|
+
export function getAllPromptsMessagesContentToJSON(
|
|
4152
|
+
getAllPromptsMessagesContent: GetAllPromptsMessagesContent,
|
|
1601
4153
|
): string {
|
|
1602
4154
|
return JSON.stringify(
|
|
1603
|
-
|
|
4155
|
+
GetAllPromptsMessagesContent$outboundSchema.parse(
|
|
4156
|
+
getAllPromptsMessagesContent,
|
|
4157
|
+
),
|
|
1604
4158
|
);
|
|
1605
4159
|
}
|
|
1606
|
-
export function
|
|
4160
|
+
export function getAllPromptsMessagesContentFromJSON(
|
|
1607
4161
|
jsonString: string,
|
|
1608
|
-
): SafeParseResult<
|
|
4162
|
+
): SafeParseResult<GetAllPromptsMessagesContent, SDKValidationError> {
|
|
1609
4163
|
return safeParse(
|
|
1610
4164
|
jsonString,
|
|
1611
|
-
(x) =>
|
|
1612
|
-
`Failed to parse '
|
|
4165
|
+
(x) => GetAllPromptsMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
4166
|
+
`Failed to parse 'GetAllPromptsMessagesContent' from JSON`,
|
|
1613
4167
|
);
|
|
1614
4168
|
}
|
|
1615
4169
|
|
|
1616
4170
|
/** @internal */
|
|
1617
|
-
export const
|
|
1618
|
-
|
|
4171
|
+
export const GetAllPromptsMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
4172
|
+
GetAllPromptsMessagesSystemMessage,
|
|
1619
4173
|
z.ZodTypeDef,
|
|
1620
4174
|
unknown
|
|
1621
4175
|
> = z.object({
|
|
1622
|
-
role:
|
|
1623
|
-
content: z.
|
|
1624
|
-
z.
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
z.lazy(() => GetAllPrompts22$inboundSchema),
|
|
1629
|
-
z.lazy(() => GetAllPrompts23$inboundSchema),
|
|
1630
|
-
])),
|
|
1631
|
-
]),
|
|
1632
|
-
),
|
|
1633
|
-
tool_calls: z.array(z.lazy(() => GetAllPromptsToolCalls$inboundSchema))
|
|
1634
|
-
.optional(),
|
|
1635
|
-
tool_call_id: z.nullable(z.string()).optional(),
|
|
1636
|
-
}).transform((v) => {
|
|
1637
|
-
return remap$(v, {
|
|
1638
|
-
"tool_calls": "toolCalls",
|
|
1639
|
-
"tool_call_id": "toolCallId",
|
|
1640
|
-
});
|
|
4176
|
+
role: z.literal("system"),
|
|
4177
|
+
content: z.union([
|
|
4178
|
+
z.string(),
|
|
4179
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4180
|
+
]),
|
|
4181
|
+
name: z.string().optional(),
|
|
1641
4182
|
});
|
|
1642
4183
|
/** @internal */
|
|
1643
|
-
export type
|
|
1644
|
-
role:
|
|
1645
|
-
content:
|
|
1646
|
-
|
|
1647
|
-
| Array<
|
|
1648
|
-
| GetAllPrompts21$Outbound
|
|
1649
|
-
| GetAllPrompts22$Outbound
|
|
1650
|
-
| GetAllPrompts23$Outbound
|
|
1651
|
-
>
|
|
1652
|
-
| null;
|
|
1653
|
-
tool_calls?: Array<GetAllPromptsToolCalls$Outbound> | undefined;
|
|
1654
|
-
tool_call_id?: string | null | undefined;
|
|
4184
|
+
export type GetAllPromptsMessagesSystemMessage$Outbound = {
|
|
4185
|
+
role: "system";
|
|
4186
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
4187
|
+
name?: string | undefined;
|
|
1655
4188
|
};
|
|
1656
4189
|
|
|
1657
4190
|
/** @internal */
|
|
1658
|
-
export const
|
|
1659
|
-
|
|
4191
|
+
export const GetAllPromptsMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
4192
|
+
GetAllPromptsMessagesSystemMessage$Outbound,
|
|
1660
4193
|
z.ZodTypeDef,
|
|
1661
|
-
|
|
4194
|
+
GetAllPromptsMessagesSystemMessage
|
|
1662
4195
|
> = z.object({
|
|
1663
|
-
role:
|
|
1664
|
-
content: z.
|
|
1665
|
-
z.
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
z.lazy(() => GetAllPrompts21$outboundSchema),
|
|
1670
|
-
z.lazy(() => GetAllPrompts22$outboundSchema),
|
|
1671
|
-
z.lazy(() => GetAllPrompts23$outboundSchema),
|
|
1672
|
-
]),
|
|
1673
|
-
),
|
|
1674
|
-
]),
|
|
1675
|
-
),
|
|
1676
|
-
toolCalls: z.array(z.lazy(() => GetAllPromptsToolCalls$outboundSchema))
|
|
1677
|
-
.optional(),
|
|
1678
|
-
toolCallId: z.nullable(z.string()).optional(),
|
|
1679
|
-
}).transform((v) => {
|
|
1680
|
-
return remap$(v, {
|
|
1681
|
-
toolCalls: "tool_calls",
|
|
1682
|
-
toolCallId: "tool_call_id",
|
|
1683
|
-
});
|
|
4196
|
+
role: z.literal("system"),
|
|
4197
|
+
content: z.union([
|
|
4198
|
+
z.string(),
|
|
4199
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4200
|
+
]),
|
|
4201
|
+
name: z.string().optional(),
|
|
1684
4202
|
});
|
|
1685
4203
|
|
|
1686
|
-
export function
|
|
1687
|
-
|
|
4204
|
+
export function getAllPromptsMessagesSystemMessageToJSON(
|
|
4205
|
+
getAllPromptsMessagesSystemMessage: GetAllPromptsMessagesSystemMessage,
|
|
1688
4206
|
): string {
|
|
1689
4207
|
return JSON.stringify(
|
|
1690
|
-
|
|
4208
|
+
GetAllPromptsMessagesSystemMessage$outboundSchema.parse(
|
|
4209
|
+
getAllPromptsMessagesSystemMessage,
|
|
4210
|
+
),
|
|
1691
4211
|
);
|
|
1692
4212
|
}
|
|
1693
|
-
export function
|
|
4213
|
+
export function getAllPromptsMessagesSystemMessageFromJSON(
|
|
1694
4214
|
jsonString: string,
|
|
1695
|
-
): SafeParseResult<
|
|
4215
|
+
): SafeParseResult<GetAllPromptsMessagesSystemMessage, SDKValidationError> {
|
|
1696
4216
|
return safeParse(
|
|
1697
4217
|
jsonString,
|
|
1698
|
-
(x) =>
|
|
1699
|
-
|
|
4218
|
+
(x) =>
|
|
4219
|
+
GetAllPromptsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4220
|
+
`Failed to parse 'GetAllPromptsMessagesSystemMessage' from JSON`,
|
|
1700
4221
|
);
|
|
1701
4222
|
}
|
|
1702
4223
|
|
|
1703
4224
|
/** @internal */
|
|
1704
|
-
export const
|
|
1705
|
-
|
|
4225
|
+
export const GetAllPromptsPromptsMessages$inboundSchema: z.ZodType<
|
|
4226
|
+
GetAllPromptsPromptsMessages,
|
|
4227
|
+
z.ZodTypeDef,
|
|
4228
|
+
unknown
|
|
4229
|
+
> = z.union([
|
|
4230
|
+
z.lazy(() => GetAllPromptsMessagesSystemMessage$inboundSchema),
|
|
4231
|
+
z.lazy(() => GetAllPromptsMessagesUserMessage$inboundSchema),
|
|
4232
|
+
z.lazy(() => GetAllPromptsMessagesAssistantMessage$inboundSchema),
|
|
4233
|
+
z.lazy(() => GetAllPromptsMessagesToolMessage$inboundSchema),
|
|
4234
|
+
]);
|
|
4235
|
+
/** @internal */
|
|
4236
|
+
export type GetAllPromptsPromptsMessages$Outbound =
|
|
4237
|
+
| GetAllPromptsMessagesSystemMessage$Outbound
|
|
4238
|
+
| GetAllPromptsMessagesUserMessage$Outbound
|
|
4239
|
+
| GetAllPromptsMessagesAssistantMessage$Outbound
|
|
4240
|
+
| GetAllPromptsMessagesToolMessage$Outbound;
|
|
4241
|
+
|
|
4242
|
+
/** @internal */
|
|
4243
|
+
export const GetAllPromptsPromptsMessages$outboundSchema: z.ZodType<
|
|
4244
|
+
GetAllPromptsPromptsMessages$Outbound,
|
|
4245
|
+
z.ZodTypeDef,
|
|
4246
|
+
GetAllPromptsPromptsMessages
|
|
4247
|
+
> = z.union([
|
|
4248
|
+
z.lazy(() => GetAllPromptsMessagesSystemMessage$outboundSchema),
|
|
4249
|
+
z.lazy(() => GetAllPromptsMessagesUserMessage$outboundSchema),
|
|
4250
|
+
z.lazy(() => GetAllPromptsMessagesAssistantMessage$outboundSchema),
|
|
4251
|
+
z.lazy(() => GetAllPromptsMessagesToolMessage$outboundSchema),
|
|
4252
|
+
]);
|
|
4253
|
+
|
|
4254
|
+
export function getAllPromptsPromptsMessagesToJSON(
|
|
4255
|
+
getAllPromptsPromptsMessages: GetAllPromptsPromptsMessages,
|
|
4256
|
+
): string {
|
|
4257
|
+
return JSON.stringify(
|
|
4258
|
+
GetAllPromptsPromptsMessages$outboundSchema.parse(
|
|
4259
|
+
getAllPromptsPromptsMessages,
|
|
4260
|
+
),
|
|
4261
|
+
);
|
|
4262
|
+
}
|
|
4263
|
+
export function getAllPromptsPromptsMessagesFromJSON(
|
|
4264
|
+
jsonString: string,
|
|
4265
|
+
): SafeParseResult<GetAllPromptsPromptsMessages, SDKValidationError> {
|
|
4266
|
+
return safeParse(
|
|
4267
|
+
jsonString,
|
|
4268
|
+
(x) => GetAllPromptsPromptsMessages$inboundSchema.parse(JSON.parse(x)),
|
|
4269
|
+
`Failed to parse 'GetAllPromptsPromptsMessages' from JSON`,
|
|
4270
|
+
);
|
|
4271
|
+
}
|
|
4272
|
+
|
|
4273
|
+
/** @internal */
|
|
4274
|
+
export const GetAllPromptsPromptField$inboundSchema: z.ZodType<
|
|
4275
|
+
GetAllPromptsPromptField,
|
|
1706
4276
|
z.ZodTypeDef,
|
|
1707
4277
|
unknown
|
|
1708
4278
|
> = z.object({
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
4279
|
+
audio: z.nullable(z.lazy(() => GetAllPromptsAudio$inboundSchema)).optional(),
|
|
4280
|
+
frequency_penalty: z.nullable(z.number()).optional(),
|
|
4281
|
+
max_tokens: z.nullable(z.number().int()).optional(),
|
|
4282
|
+
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
4283
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
4284
|
+
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
4285
|
+
n: z.nullable(z.number().int()).optional(),
|
|
4286
|
+
presence_penalty: z.nullable(z.number()).optional(),
|
|
4287
|
+
response_format: z.union([
|
|
4288
|
+
z.lazy(() => GetAllPromptsResponseFormatText$inboundSchema),
|
|
4289
|
+
z.lazy(() => GetAllPromptsResponseFormatJSONObject$inboundSchema),
|
|
4290
|
+
z.lazy(() => GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
|
|
4291
|
+
]).optional(),
|
|
4292
|
+
reasoning_effort: GetAllPromptsReasoningEffort$inboundSchema.optional(),
|
|
4293
|
+
verbosity: z.string().optional(),
|
|
4294
|
+
seed: z.nullable(z.number()).optional(),
|
|
4295
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4296
|
+
stream_options: z.nullable(
|
|
4297
|
+
z.lazy(() => GetAllPromptsStreamOptions$inboundSchema),
|
|
4298
|
+
).optional(),
|
|
4299
|
+
thinking: z.union([
|
|
4300
|
+
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
4301
|
+
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
4302
|
+
]).optional(),
|
|
4303
|
+
temperature: z.nullable(z.number()).optional(),
|
|
4304
|
+
top_p: z.nullable(z.number()).optional(),
|
|
4305
|
+
top_k: z.nullable(z.number()).optional(),
|
|
4306
|
+
tool_choice: z.union([
|
|
4307
|
+
z.lazy(() => GetAllPromptsToolChoice2$inboundSchema),
|
|
4308
|
+
GetAllPromptsToolChoice1$inboundSchema,
|
|
4309
|
+
]).optional(),
|
|
4310
|
+
parallel_tool_calls: z.boolean().optional(),
|
|
4311
|
+
modalities: z.nullable(z.array(GetAllPromptsModalities$inboundSchema))
|
|
1714
4312
|
.optional(),
|
|
1715
|
-
|
|
1716
|
-
|
|
4313
|
+
guardrails: z.array(z.lazy(() => GetAllPromptsGuardrails$inboundSchema))
|
|
4314
|
+
.optional(),
|
|
4315
|
+
messages: z.array(
|
|
4316
|
+
z.union([
|
|
4317
|
+
z.lazy(() => GetAllPromptsMessagesSystemMessage$inboundSchema),
|
|
4318
|
+
z.lazy(() => GetAllPromptsMessagesUserMessage$inboundSchema),
|
|
4319
|
+
z.lazy(() => GetAllPromptsMessagesAssistantMessage$inboundSchema),
|
|
4320
|
+
z.lazy(() => GetAllPromptsMessagesToolMessage$inboundSchema),
|
|
4321
|
+
]),
|
|
4322
|
+
).optional(),
|
|
4323
|
+
model: z.nullable(z.string()).optional(),
|
|
1717
4324
|
version: z.string().optional(),
|
|
1718
|
-
messages: z.array(z.lazy(() => GetAllPromptsMessages$inboundSchema)),
|
|
1719
4325
|
}).transform((v) => {
|
|
1720
4326
|
return remap$(v, {
|
|
1721
|
-
"
|
|
1722
|
-
"
|
|
1723
|
-
"
|
|
1724
|
-
"
|
|
4327
|
+
"frequency_penalty": "frequencyPenalty",
|
|
4328
|
+
"max_tokens": "maxTokens",
|
|
4329
|
+
"max_completion_tokens": "maxCompletionTokens",
|
|
4330
|
+
"top_logprobs": "topLogprobs",
|
|
4331
|
+
"presence_penalty": "presencePenalty",
|
|
4332
|
+
"response_format": "responseFormat",
|
|
4333
|
+
"reasoning_effort": "reasoningEffort",
|
|
4334
|
+
"stream_options": "streamOptions",
|
|
4335
|
+
"top_p": "topP",
|
|
4336
|
+
"top_k": "topK",
|
|
4337
|
+
"tool_choice": "toolChoice",
|
|
4338
|
+
"parallel_tool_calls": "parallelToolCalls",
|
|
1725
4339
|
});
|
|
1726
4340
|
});
|
|
1727
4341
|
/** @internal */
|
|
1728
|
-
export type
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
4342
|
+
export type GetAllPromptsPromptField$Outbound = {
|
|
4343
|
+
audio?: GetAllPromptsAudio$Outbound | null | undefined;
|
|
4344
|
+
frequency_penalty?: number | null | undefined;
|
|
4345
|
+
max_tokens?: number | null | undefined;
|
|
4346
|
+
max_completion_tokens?: number | null | undefined;
|
|
4347
|
+
logprobs?: boolean | null | undefined;
|
|
4348
|
+
top_logprobs?: number | null | undefined;
|
|
4349
|
+
n?: number | null | undefined;
|
|
4350
|
+
presence_penalty?: number | null | undefined;
|
|
4351
|
+
response_format?:
|
|
4352
|
+
| GetAllPromptsResponseFormatText$Outbound
|
|
4353
|
+
| GetAllPromptsResponseFormatJSONObject$Outbound
|
|
4354
|
+
| GetAllPromptsResponseFormatPromptsJSONSchema$Outbound
|
|
4355
|
+
| undefined;
|
|
4356
|
+
reasoning_effort?: string | undefined;
|
|
4357
|
+
verbosity?: string | undefined;
|
|
4358
|
+
seed?: number | null | undefined;
|
|
4359
|
+
stop?: string | Array<string> | null | undefined;
|
|
4360
|
+
stream_options?: GetAllPromptsStreamOptions$Outbound | null | undefined;
|
|
4361
|
+
thinking?:
|
|
4362
|
+
| components.ThinkingConfigDisabledSchema$Outbound
|
|
4363
|
+
| components.ThinkingConfigEnabledSchema$Outbound
|
|
4364
|
+
| undefined;
|
|
4365
|
+
temperature?: number | null | undefined;
|
|
4366
|
+
top_p?: number | null | undefined;
|
|
4367
|
+
top_k?: number | null | undefined;
|
|
4368
|
+
tool_choice?: GetAllPromptsToolChoice2$Outbound | string | undefined;
|
|
4369
|
+
parallel_tool_calls?: boolean | undefined;
|
|
4370
|
+
modalities?: Array<string> | null | undefined;
|
|
4371
|
+
guardrails?: Array<GetAllPromptsGuardrails$Outbound> | undefined;
|
|
4372
|
+
messages?:
|
|
4373
|
+
| Array<
|
|
4374
|
+
| GetAllPromptsMessagesSystemMessage$Outbound
|
|
4375
|
+
| GetAllPromptsMessagesUserMessage$Outbound
|
|
4376
|
+
| GetAllPromptsMessagesAssistantMessage$Outbound
|
|
4377
|
+
| GetAllPromptsMessagesToolMessage$Outbound
|
|
4378
|
+
>
|
|
4379
|
+
| undefined;
|
|
4380
|
+
model?: string | null | undefined;
|
|
1736
4381
|
version?: string | undefined;
|
|
1737
|
-
messages: Array<GetAllPromptsMessages$Outbound>;
|
|
1738
4382
|
};
|
|
1739
4383
|
|
|
1740
4384
|
/** @internal */
|
|
1741
|
-
export const
|
|
1742
|
-
|
|
4385
|
+
export const GetAllPromptsPromptField$outboundSchema: z.ZodType<
|
|
4386
|
+
GetAllPromptsPromptField$Outbound,
|
|
1743
4387
|
z.ZodTypeDef,
|
|
1744
|
-
|
|
4388
|
+
GetAllPromptsPromptField
|
|
1745
4389
|
> = z.object({
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
4390
|
+
audio: z.nullable(z.lazy(() => GetAllPromptsAudio$outboundSchema)).optional(),
|
|
4391
|
+
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
4392
|
+
maxTokens: z.nullable(z.number().int()).optional(),
|
|
4393
|
+
maxCompletionTokens: z.nullable(z.number().int()).optional(),
|
|
4394
|
+
logprobs: z.nullable(z.boolean()).optional(),
|
|
4395
|
+
topLogprobs: z.nullable(z.number().int()).optional(),
|
|
4396
|
+
n: z.nullable(z.number().int()).optional(),
|
|
4397
|
+
presencePenalty: z.nullable(z.number()).optional(),
|
|
4398
|
+
responseFormat: z.union([
|
|
4399
|
+
z.lazy(() => GetAllPromptsResponseFormatText$outboundSchema),
|
|
4400
|
+
z.lazy(() => GetAllPromptsResponseFormatJSONObject$outboundSchema),
|
|
4401
|
+
z.lazy(() => GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema),
|
|
4402
|
+
]).optional(),
|
|
4403
|
+
reasoningEffort: GetAllPromptsReasoningEffort$outboundSchema.optional(),
|
|
4404
|
+
verbosity: z.string().optional(),
|
|
4405
|
+
seed: z.nullable(z.number()).optional(),
|
|
4406
|
+
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
4407
|
+
streamOptions: z.nullable(
|
|
4408
|
+
z.lazy(() => GetAllPromptsStreamOptions$outboundSchema),
|
|
4409
|
+
).optional(),
|
|
4410
|
+
thinking: z.union([
|
|
4411
|
+
components.ThinkingConfigDisabledSchema$outboundSchema,
|
|
4412
|
+
components.ThinkingConfigEnabledSchema$outboundSchema,
|
|
4413
|
+
]).optional(),
|
|
4414
|
+
temperature: z.nullable(z.number()).optional(),
|
|
4415
|
+
topP: z.nullable(z.number()).optional(),
|
|
4416
|
+
topK: z.nullable(z.number()).optional(),
|
|
4417
|
+
toolChoice: z.union([
|
|
4418
|
+
z.lazy(() => GetAllPromptsToolChoice2$outboundSchema),
|
|
4419
|
+
GetAllPromptsToolChoice1$outboundSchema,
|
|
4420
|
+
]).optional(),
|
|
4421
|
+
parallelToolCalls: z.boolean().optional(),
|
|
4422
|
+
modalities: z.nullable(z.array(GetAllPromptsModalities$outboundSchema))
|
|
1751
4423
|
.optional(),
|
|
1752
|
-
|
|
1753
|
-
|
|
4424
|
+
guardrails: z.array(z.lazy(() => GetAllPromptsGuardrails$outboundSchema))
|
|
4425
|
+
.optional(),
|
|
4426
|
+
messages: z.array(
|
|
4427
|
+
z.union([
|
|
4428
|
+
z.lazy(() => GetAllPromptsMessagesSystemMessage$outboundSchema),
|
|
4429
|
+
z.lazy(() => GetAllPromptsMessagesUserMessage$outboundSchema),
|
|
4430
|
+
z.lazy(() => GetAllPromptsMessagesAssistantMessage$outboundSchema),
|
|
4431
|
+
z.lazy(() => GetAllPromptsMessagesToolMessage$outboundSchema),
|
|
4432
|
+
]),
|
|
4433
|
+
).optional(),
|
|
4434
|
+
model: z.nullable(z.string()).optional(),
|
|
1754
4435
|
version: z.string().optional(),
|
|
1755
|
-
messages: z.array(z.lazy(() => GetAllPromptsMessages$outboundSchema)),
|
|
1756
4436
|
}).transform((v) => {
|
|
1757
4437
|
return remap$(v, {
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
4438
|
+
frequencyPenalty: "frequency_penalty",
|
|
4439
|
+
maxTokens: "max_tokens",
|
|
4440
|
+
maxCompletionTokens: "max_completion_tokens",
|
|
4441
|
+
topLogprobs: "top_logprobs",
|
|
4442
|
+
presencePenalty: "presence_penalty",
|
|
4443
|
+
responseFormat: "response_format",
|
|
4444
|
+
reasoningEffort: "reasoning_effort",
|
|
4445
|
+
streamOptions: "stream_options",
|
|
4446
|
+
topP: "top_p",
|
|
4447
|
+
topK: "top_k",
|
|
4448
|
+
toolChoice: "tool_choice",
|
|
4449
|
+
parallelToolCalls: "parallel_tool_calls",
|
|
1762
4450
|
});
|
|
1763
4451
|
});
|
|
1764
4452
|
|
|
1765
|
-
export function
|
|
1766
|
-
|
|
4453
|
+
export function getAllPromptsPromptFieldToJSON(
|
|
4454
|
+
getAllPromptsPromptField: GetAllPromptsPromptField,
|
|
1767
4455
|
): string {
|
|
1768
4456
|
return JSON.stringify(
|
|
1769
|
-
|
|
4457
|
+
GetAllPromptsPromptField$outboundSchema.parse(getAllPromptsPromptField),
|
|
1770
4458
|
);
|
|
1771
4459
|
}
|
|
1772
|
-
export function
|
|
4460
|
+
export function getAllPromptsPromptFieldFromJSON(
|
|
1773
4461
|
jsonString: string,
|
|
1774
|
-
): SafeParseResult<
|
|
4462
|
+
): SafeParseResult<GetAllPromptsPromptField, SDKValidationError> {
|
|
1775
4463
|
return safeParse(
|
|
1776
4464
|
jsonString,
|
|
1777
|
-
(x) =>
|
|
1778
|
-
`Failed to parse '
|
|
4465
|
+
(x) => GetAllPromptsPromptField$inboundSchema.parse(JSON.parse(x)),
|
|
4466
|
+
`Failed to parse 'GetAllPromptsPromptField' from JSON`,
|
|
1779
4467
|
);
|
|
1780
4468
|
}
|
|
1781
4469
|
|
|
@@ -1863,7 +4551,9 @@ export const GetAllPromptsPrompt$inboundSchema: z.ZodType<
|
|
|
1863
4551
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1864
4552
|
display_name: z.string(),
|
|
1865
4553
|
description: z.nullable(z.string()).optional(),
|
|
1866
|
-
prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema)
|
|
4554
|
+
prompt_config: z.lazy(() => GetAllPromptsPromptConfig$inboundSchema)
|
|
4555
|
+
.optional(),
|
|
4556
|
+
prompt: z.lazy(() => GetAllPromptsPromptField$inboundSchema),
|
|
1867
4557
|
metadata: z.lazy(() => GetAllPromptsMetadata$inboundSchema).optional(),
|
|
1868
4558
|
}).transform((v) => {
|
|
1869
4559
|
return remap$(v, {
|
|
@@ -1887,7 +4577,8 @@ export type GetAllPromptsPrompt$Outbound = {
|
|
|
1887
4577
|
updated_by_id?: string | null | undefined;
|
|
1888
4578
|
display_name: string;
|
|
1889
4579
|
description?: string | null | undefined;
|
|
1890
|
-
prompt_config
|
|
4580
|
+
prompt_config?: GetAllPromptsPromptConfig$Outbound | undefined;
|
|
4581
|
+
prompt: GetAllPromptsPromptField$Outbound;
|
|
1891
4582
|
metadata?: GetAllPromptsMetadata$Outbound | undefined;
|
|
1892
4583
|
};
|
|
1893
4584
|
|
|
@@ -1907,7 +4598,9 @@ export const GetAllPromptsPrompt$outboundSchema: z.ZodType<
|
|
|
1907
4598
|
updatedById: z.nullable(z.string()).optional(),
|
|
1908
4599
|
displayName: z.string(),
|
|
1909
4600
|
description: z.nullable(z.string()).optional(),
|
|
1910
|
-
promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema)
|
|
4601
|
+
promptConfig: z.lazy(() => GetAllPromptsPromptConfig$outboundSchema)
|
|
4602
|
+
.optional(),
|
|
4603
|
+
prompt: z.lazy(() => GetAllPromptsPromptField$outboundSchema),
|
|
1911
4604
|
metadata: z.lazy(() => GetAllPromptsMetadata$outboundSchema).optional(),
|
|
1912
4605
|
}).transform((v) => {
|
|
1913
4606
|
return remap$(v, {
|