@orq-ai/node 4.2.7 → 4.2.9
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/examples/package-lock.json +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +15 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +15 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/funcs/routerImagesEditsCreate.js +18 -0
- package/funcs/routerImagesEditsCreate.js.map +1 -1
- package/funcs/routerImagesVariationsCreate.js +18 -0
- package/funcs/routerImagesVariationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/conversationresponse.js +1 -1
- package/models/components/conversationwithmessagesresponse.js +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +18 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +4 -0
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +5 -0
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +1 -0
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +193 -44
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +125 -38
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createconversation.js +1 -1
- package/models/operations/createconversationresponse.js +2 -2
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createembedding.d.ts +176 -27
- package/models/operations/createembedding.d.ts.map +1 -1
- package/models/operations/createembedding.js +104 -17
- package/models/operations/createembedding.js.map +1 -1
- package/models/operations/createeval.js +14 -14
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createimage.d.ts +173 -24
- package/models/operations/createimage.d.ts.map +1 -1
- package/models/operations/createimage.js +100 -14
- package/models/operations/createimage.js.map +1 -1
- package/models/operations/createimageedit.d.ts +187 -38
- package/models/operations/createimageedit.d.ts.map +1 -1
- package/models/operations/createimageedit.js +114 -27
- package/models/operations/createimageedit.js.map +1 -1
- package/models/operations/createimagevariation.d.ts +187 -38
- package/models/operations/createimagevariation.d.ts.map +1 -1
- package/models/operations/createimagevariation.js +115 -29
- package/models/operations/createimagevariation.js.map +1 -1
- package/models/operations/createprompt.d.ts +9 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +2 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/creatererank.d.ts +176 -27
- package/models/operations/creatererank.d.ts.map +1 -1
- package/models/operations/creatererank.js +103 -18
- package/models/operations/creatererank.js.map +1 -1
- package/models/operations/createspeech.d.ts +150 -30
- package/models/operations/createspeech.d.ts.map +1 -1
- package/models/operations/createspeech.js +93 -22
- package/models/operations/createspeech.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/createtranscription.d.ts +129 -9
- package/models/operations/createtranscription.d.ts.map +1 -1
- package/models/operations/createtranscription.js +78 -7
- package/models/operations/createtranscription.js.map +1 -1
- package/models/operations/createtranslation.d.ts +129 -9
- package/models/operations/createtranslation.d.ts.map +1 -1
- package/models/operations/createtranslation.js +76 -7
- package/models/operations/createtranslation.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/generateconversationname.js +1 -1
- package/models/operations/getallprompts.d.ts +4 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +14 -14
- package/models/operations/getoneprompt.d.ts +4 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/listagents.d.ts +8 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -0
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listpromptversions.d.ts +4 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +8 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -0
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +10 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +3 -1
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +10 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +3 -1
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +18 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +4 -0
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updateconversation.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +14 -14
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updateprompt.d.ts +9 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +2 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/src/funcs/routerAudioTranscriptionsCreate.ts +31 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +31 -0
- package/src/funcs/routerImagesEditsCreate.ts +38 -0
- package/src/funcs/routerImagesVariationsCreate.ts +38 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/conversationresponse.ts +1 -1
- package/src/models/components/conversationwithmessagesresponse.ts +1 -1
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +22 -0
- package/src/models/operations/createchatcompletion.ts +6 -0
- package/src/models/operations/createcompletion.ts +432 -97
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createconversation.ts +1 -1
- package/src/models/operations/createconversationresponse.ts +2 -2
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createembedding.ts +383 -53
- package/src/models/operations/createeval.ts +14 -14
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createimage.ts +382 -45
- package/src/models/operations/createimageedit.ts +406 -73
- package/src/models/operations/createimagevariation.ts +428 -78
- package/src/models/operations/createprompt.ts +11 -0
- package/src/models/operations/creatererank.ts +369 -54
- package/src/models/operations/createspeech.ts +333 -61
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/createtranscription.ts +312 -15
- package/src/models/operations/createtranslation.ts +307 -15
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/generateconversationname.ts +1 -1
- package/src/models/operations/getallprompts.ts +5 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +14 -14
- package/src/models/operations/getoneprompt.ts +5 -0
- package/src/models/operations/getpromptversion.ts +5 -0
- package/src/models/operations/listagents.ts +10 -0
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listpromptversions.ts +5 -0
- package/src/models/operations/retrieveagentrequest.ts +10 -0
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +13 -1
- package/src/models/operations/streamrunagent.ts +13 -1
- package/src/models/operations/updateagent.ts +22 -0
- package/src/models/operations/updateconversation.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +14 -14
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updateprompt.ts +11 -0
- package/src/models/operations/updatetool.ts +7 -7
|
@@ -25,6 +25,13 @@ export type CreateSpeechResponseFormat = ClosedEnum<
|
|
|
25
25
|
typeof CreateSpeechResponseFormat
|
|
26
26
|
>;
|
|
27
27
|
|
|
28
|
+
export type CreateSpeechFallbacks = {
|
|
29
|
+
/**
|
|
30
|
+
* Fallback model identifier
|
|
31
|
+
*/
|
|
32
|
+
model: string;
|
|
33
|
+
};
|
|
34
|
+
|
|
28
35
|
/**
|
|
29
36
|
* Retry configuration for the request
|
|
30
37
|
*/
|
|
@@ -39,7 +46,59 @@ export type CreateSpeechRetry = {
|
|
|
39
46
|
onCodes?: Array<number> | undefined;
|
|
40
47
|
};
|
|
41
48
|
|
|
42
|
-
export
|
|
49
|
+
export const CreateSpeechLoadBalancerType = {
|
|
50
|
+
WeightBased: "weight_based",
|
|
51
|
+
} as const;
|
|
52
|
+
export type CreateSpeechLoadBalancerType = ClosedEnum<
|
|
53
|
+
typeof CreateSpeechLoadBalancerType
|
|
54
|
+
>;
|
|
55
|
+
|
|
56
|
+
export type CreateSpeechLoadBalancerModels = {
|
|
57
|
+
/**
|
|
58
|
+
* Model identifier for load balancing
|
|
59
|
+
*/
|
|
60
|
+
model: string;
|
|
61
|
+
/**
|
|
62
|
+
* Weight assigned to this model for load balancing
|
|
63
|
+
*/
|
|
64
|
+
weight?: number | undefined;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type CreateSpeechLoadBalancer1 = {
|
|
68
|
+
type: CreateSpeechLoadBalancerType;
|
|
69
|
+
models: Array<CreateSpeechLoadBalancerModels>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Load balancer configuration for the request.
|
|
74
|
+
*/
|
|
75
|
+
export type CreateSpeechLoadBalancer = CreateSpeechLoadBalancer1;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
79
|
+
*/
|
|
80
|
+
export type CreateSpeechTimeout = {
|
|
81
|
+
/**
|
|
82
|
+
* Timeout value in milliseconds
|
|
83
|
+
*/
|
|
84
|
+
callTimeout: number;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Retry configuration for the request
|
|
89
|
+
*/
|
|
90
|
+
export type CreateSpeechRouterAudioSpeechRetry = {
|
|
91
|
+
/**
|
|
92
|
+
* Number of retry attempts (1-5)
|
|
93
|
+
*/
|
|
94
|
+
count?: number | undefined;
|
|
95
|
+
/**
|
|
96
|
+
* HTTP status codes that trigger retry logic
|
|
97
|
+
*/
|
|
98
|
+
onCodes?: Array<number> | undefined;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
export type CreateSpeechRouterAudioSpeechFallbacks = {
|
|
43
102
|
/**
|
|
44
103
|
* Fallback model identifier
|
|
45
104
|
*/
|
|
@@ -60,14 +119,14 @@ export type CreateSpeechThread = {
|
|
|
60
119
|
tags?: Array<string> | undefined;
|
|
61
120
|
};
|
|
62
121
|
|
|
63
|
-
export const
|
|
122
|
+
export const CreateSpeechLoadBalancerRouterAudioSpeechType = {
|
|
64
123
|
WeightBased: "weight_based",
|
|
65
124
|
} as const;
|
|
66
|
-
export type
|
|
67
|
-
typeof
|
|
125
|
+
export type CreateSpeechLoadBalancerRouterAudioSpeechType = ClosedEnum<
|
|
126
|
+
typeof CreateSpeechLoadBalancerRouterAudioSpeechType
|
|
68
127
|
>;
|
|
69
128
|
|
|
70
|
-
export type
|
|
129
|
+
export type CreateSpeechLoadBalancerRouterAudioSpeechModels = {
|
|
71
130
|
/**
|
|
72
131
|
* Model identifier for load balancing
|
|
73
132
|
*/
|
|
@@ -78,20 +137,21 @@ export type CreateSpeechLoadBalancerModels = {
|
|
|
78
137
|
weight?: number | undefined;
|
|
79
138
|
};
|
|
80
139
|
|
|
81
|
-
export type
|
|
82
|
-
type:
|
|
83
|
-
models: Array<
|
|
140
|
+
export type CreateSpeechLoadBalancerRouterAudioSpeech1 = {
|
|
141
|
+
type: CreateSpeechLoadBalancerRouterAudioSpeechType;
|
|
142
|
+
models: Array<CreateSpeechLoadBalancerRouterAudioSpeechModels>;
|
|
84
143
|
};
|
|
85
144
|
|
|
86
145
|
/**
|
|
87
146
|
* Array of models with weights for load balancing requests
|
|
88
147
|
*/
|
|
89
|
-
export type
|
|
148
|
+
export type CreateSpeechRouterAudioSpeechLoadBalancer =
|
|
149
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1;
|
|
90
150
|
|
|
91
151
|
/**
|
|
92
152
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
93
153
|
*/
|
|
94
|
-
export type
|
|
154
|
+
export type CreateSpeechRouterAudioSpeechTimeout = {
|
|
95
155
|
/**
|
|
96
156
|
* Timeout value in milliseconds
|
|
97
157
|
*/
|
|
@@ -102,11 +162,11 @@ export type CreateSpeechOrq = {
|
|
|
102
162
|
/**
|
|
103
163
|
* Retry configuration for the request
|
|
104
164
|
*/
|
|
105
|
-
retry?:
|
|
165
|
+
retry?: CreateSpeechRouterAudioSpeechRetry | undefined;
|
|
106
166
|
/**
|
|
107
167
|
* Array of fallback models to use if primary model fails
|
|
108
168
|
*/
|
|
109
|
-
fallbacks?: Array<
|
|
169
|
+
fallbacks?: Array<CreateSpeechRouterAudioSpeechFallbacks> | undefined;
|
|
110
170
|
/**
|
|
111
171
|
* The name to display on the trace. If not specified, the default system name will be used.
|
|
112
172
|
*/
|
|
@@ -128,11 +188,11 @@ export type CreateSpeechOrq = {
|
|
|
128
188
|
/**
|
|
129
189
|
* Array of models with weights for load balancing requests
|
|
130
190
|
*/
|
|
131
|
-
loadBalancer?:
|
|
191
|
+
loadBalancer?: CreateSpeechLoadBalancerRouterAudioSpeech1 | undefined;
|
|
132
192
|
/**
|
|
133
193
|
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
134
194
|
*/
|
|
135
|
-
timeout?:
|
|
195
|
+
timeout?: CreateSpeechRouterAudioSpeechTimeout | undefined;
|
|
136
196
|
};
|
|
137
197
|
|
|
138
198
|
/**
|
|
@@ -169,6 +229,26 @@ export type CreateSpeechRequestBody = {
|
|
|
169
229
|
* The speed of the generated audio.
|
|
170
230
|
*/
|
|
171
231
|
speed?: number | undefined;
|
|
232
|
+
/**
|
|
233
|
+
* The name to display on the trace. If not specified, the default system name will be used.
|
|
234
|
+
*/
|
|
235
|
+
name?: string | undefined;
|
|
236
|
+
/**
|
|
237
|
+
* Array of fallback models to use if primary model fails
|
|
238
|
+
*/
|
|
239
|
+
fallbacks?: Array<CreateSpeechFallbacks> | undefined;
|
|
240
|
+
/**
|
|
241
|
+
* Retry configuration for the request
|
|
242
|
+
*/
|
|
243
|
+
retry?: CreateSpeechRetry | undefined;
|
|
244
|
+
/**
|
|
245
|
+
* Load balancer configuration for the request.
|
|
246
|
+
*/
|
|
247
|
+
loadBalancer?: CreateSpeechLoadBalancer1 | undefined;
|
|
248
|
+
/**
|
|
249
|
+
* Timeout configuration to apply to the request. If the request exceeds the timeout, it will be retried or fallback to the next model if configured.
|
|
250
|
+
*/
|
|
251
|
+
timeout?: CreateSpeechTimeout | undefined;
|
|
172
252
|
orq?: CreateSpeechOrq | undefined;
|
|
173
253
|
};
|
|
174
254
|
|
|
@@ -177,34 +257,6 @@ export const CreateSpeechResponseFormat$outboundSchema: z.ZodNativeEnum<
|
|
|
177
257
|
typeof CreateSpeechResponseFormat
|
|
178
258
|
> = z.nativeEnum(CreateSpeechResponseFormat);
|
|
179
259
|
|
|
180
|
-
/** @internal */
|
|
181
|
-
export type CreateSpeechRetry$Outbound = {
|
|
182
|
-
count: number;
|
|
183
|
-
on_codes?: Array<number> | undefined;
|
|
184
|
-
};
|
|
185
|
-
|
|
186
|
-
/** @internal */
|
|
187
|
-
export const CreateSpeechRetry$outboundSchema: z.ZodType<
|
|
188
|
-
CreateSpeechRetry$Outbound,
|
|
189
|
-
z.ZodTypeDef,
|
|
190
|
-
CreateSpeechRetry
|
|
191
|
-
> = z.object({
|
|
192
|
-
count: z.number().default(3),
|
|
193
|
-
onCodes: z.array(z.number()).optional(),
|
|
194
|
-
}).transform((v) => {
|
|
195
|
-
return remap$(v, {
|
|
196
|
-
onCodes: "on_codes",
|
|
197
|
-
});
|
|
198
|
-
});
|
|
199
|
-
|
|
200
|
-
export function createSpeechRetryToJSON(
|
|
201
|
-
createSpeechRetry: CreateSpeechRetry,
|
|
202
|
-
): string {
|
|
203
|
-
return JSON.stringify(
|
|
204
|
-
CreateSpeechRetry$outboundSchema.parse(createSpeechRetry),
|
|
205
|
-
);
|
|
206
|
-
}
|
|
207
|
-
|
|
208
260
|
/** @internal */
|
|
209
261
|
export type CreateSpeechFallbacks$Outbound = {
|
|
210
262
|
model: string;
|
|
@@ -228,26 +280,30 @@ export function createSpeechFallbacksToJSON(
|
|
|
228
280
|
}
|
|
229
281
|
|
|
230
282
|
/** @internal */
|
|
231
|
-
export type
|
|
232
|
-
|
|
233
|
-
|
|
283
|
+
export type CreateSpeechRetry$Outbound = {
|
|
284
|
+
count: number;
|
|
285
|
+
on_codes?: Array<number> | undefined;
|
|
234
286
|
};
|
|
235
287
|
|
|
236
288
|
/** @internal */
|
|
237
|
-
export const
|
|
238
|
-
|
|
289
|
+
export const CreateSpeechRetry$outboundSchema: z.ZodType<
|
|
290
|
+
CreateSpeechRetry$Outbound,
|
|
239
291
|
z.ZodTypeDef,
|
|
240
|
-
|
|
292
|
+
CreateSpeechRetry
|
|
241
293
|
> = z.object({
|
|
242
|
-
|
|
243
|
-
|
|
294
|
+
count: z.number().default(3),
|
|
295
|
+
onCodes: z.array(z.number()).optional(),
|
|
296
|
+
}).transform((v) => {
|
|
297
|
+
return remap$(v, {
|
|
298
|
+
onCodes: "on_codes",
|
|
299
|
+
});
|
|
244
300
|
});
|
|
245
301
|
|
|
246
|
-
export function
|
|
247
|
-
|
|
302
|
+
export function createSpeechRetryToJSON(
|
|
303
|
+
createSpeechRetry: CreateSpeechRetry,
|
|
248
304
|
): string {
|
|
249
305
|
return JSON.stringify(
|
|
250
|
-
|
|
306
|
+
CreateSpeechRetry$outboundSchema.parse(createSpeechRetry),
|
|
251
307
|
);
|
|
252
308
|
}
|
|
253
309
|
|
|
@@ -351,16 +407,215 @@ export function createSpeechTimeoutToJSON(
|
|
|
351
407
|
);
|
|
352
408
|
}
|
|
353
409
|
|
|
410
|
+
/** @internal */
|
|
411
|
+
export type CreateSpeechRouterAudioSpeechRetry$Outbound = {
|
|
412
|
+
count: number;
|
|
413
|
+
on_codes?: Array<number> | undefined;
|
|
414
|
+
};
|
|
415
|
+
|
|
416
|
+
/** @internal */
|
|
417
|
+
export const CreateSpeechRouterAudioSpeechRetry$outboundSchema: z.ZodType<
|
|
418
|
+
CreateSpeechRouterAudioSpeechRetry$Outbound,
|
|
419
|
+
z.ZodTypeDef,
|
|
420
|
+
CreateSpeechRouterAudioSpeechRetry
|
|
421
|
+
> = z.object({
|
|
422
|
+
count: z.number().default(3),
|
|
423
|
+
onCodes: z.array(z.number()).optional(),
|
|
424
|
+
}).transform((v) => {
|
|
425
|
+
return remap$(v, {
|
|
426
|
+
onCodes: "on_codes",
|
|
427
|
+
});
|
|
428
|
+
});
|
|
429
|
+
|
|
430
|
+
export function createSpeechRouterAudioSpeechRetryToJSON(
|
|
431
|
+
createSpeechRouterAudioSpeechRetry: CreateSpeechRouterAudioSpeechRetry,
|
|
432
|
+
): string {
|
|
433
|
+
return JSON.stringify(
|
|
434
|
+
CreateSpeechRouterAudioSpeechRetry$outboundSchema.parse(
|
|
435
|
+
createSpeechRouterAudioSpeechRetry,
|
|
436
|
+
),
|
|
437
|
+
);
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
/** @internal */
|
|
441
|
+
export type CreateSpeechRouterAudioSpeechFallbacks$Outbound = {
|
|
442
|
+
model: string;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
/** @internal */
|
|
446
|
+
export const CreateSpeechRouterAudioSpeechFallbacks$outboundSchema: z.ZodType<
|
|
447
|
+
CreateSpeechRouterAudioSpeechFallbacks$Outbound,
|
|
448
|
+
z.ZodTypeDef,
|
|
449
|
+
CreateSpeechRouterAudioSpeechFallbacks
|
|
450
|
+
> = z.object({
|
|
451
|
+
model: z.string(),
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
export function createSpeechRouterAudioSpeechFallbacksToJSON(
|
|
455
|
+
createSpeechRouterAudioSpeechFallbacks:
|
|
456
|
+
CreateSpeechRouterAudioSpeechFallbacks,
|
|
457
|
+
): string {
|
|
458
|
+
return JSON.stringify(
|
|
459
|
+
CreateSpeechRouterAudioSpeechFallbacks$outboundSchema.parse(
|
|
460
|
+
createSpeechRouterAudioSpeechFallbacks,
|
|
461
|
+
),
|
|
462
|
+
);
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
/** @internal */
|
|
466
|
+
export type CreateSpeechThread$Outbound = {
|
|
467
|
+
id: string;
|
|
468
|
+
tags?: Array<string> | undefined;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/** @internal */
|
|
472
|
+
export const CreateSpeechThread$outboundSchema: z.ZodType<
|
|
473
|
+
CreateSpeechThread$Outbound,
|
|
474
|
+
z.ZodTypeDef,
|
|
475
|
+
CreateSpeechThread
|
|
476
|
+
> = z.object({
|
|
477
|
+
id: z.string(),
|
|
478
|
+
tags: z.array(z.string()).optional(),
|
|
479
|
+
});
|
|
480
|
+
|
|
481
|
+
export function createSpeechThreadToJSON(
|
|
482
|
+
createSpeechThread: CreateSpeechThread,
|
|
483
|
+
): string {
|
|
484
|
+
return JSON.stringify(
|
|
485
|
+
CreateSpeechThread$outboundSchema.parse(createSpeechThread),
|
|
486
|
+
);
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/** @internal */
|
|
490
|
+
export const CreateSpeechLoadBalancerRouterAudioSpeechType$outboundSchema:
|
|
491
|
+
z.ZodNativeEnum<typeof CreateSpeechLoadBalancerRouterAudioSpeechType> = z
|
|
492
|
+
.nativeEnum(CreateSpeechLoadBalancerRouterAudioSpeechType);
|
|
493
|
+
|
|
494
|
+
/** @internal */
|
|
495
|
+
export type CreateSpeechLoadBalancerRouterAudioSpeechModels$Outbound = {
|
|
496
|
+
model: string;
|
|
497
|
+
weight: number;
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
/** @internal */
|
|
501
|
+
export const CreateSpeechLoadBalancerRouterAudioSpeechModels$outboundSchema:
|
|
502
|
+
z.ZodType<
|
|
503
|
+
CreateSpeechLoadBalancerRouterAudioSpeechModels$Outbound,
|
|
504
|
+
z.ZodTypeDef,
|
|
505
|
+
CreateSpeechLoadBalancerRouterAudioSpeechModels
|
|
506
|
+
> = z.object({
|
|
507
|
+
model: z.string(),
|
|
508
|
+
weight: z.number().default(0.5),
|
|
509
|
+
});
|
|
510
|
+
|
|
511
|
+
export function createSpeechLoadBalancerRouterAudioSpeechModelsToJSON(
|
|
512
|
+
createSpeechLoadBalancerRouterAudioSpeechModels:
|
|
513
|
+
CreateSpeechLoadBalancerRouterAudioSpeechModels,
|
|
514
|
+
): string {
|
|
515
|
+
return JSON.stringify(
|
|
516
|
+
CreateSpeechLoadBalancerRouterAudioSpeechModels$outboundSchema.parse(
|
|
517
|
+
createSpeechLoadBalancerRouterAudioSpeechModels,
|
|
518
|
+
),
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/** @internal */
|
|
523
|
+
export type CreateSpeechLoadBalancerRouterAudioSpeech1$Outbound = {
|
|
524
|
+
type: string;
|
|
525
|
+
models: Array<CreateSpeechLoadBalancerRouterAudioSpeechModels$Outbound>;
|
|
526
|
+
};
|
|
527
|
+
|
|
528
|
+
/** @internal */
|
|
529
|
+
export const CreateSpeechLoadBalancerRouterAudioSpeech1$outboundSchema:
|
|
530
|
+
z.ZodType<
|
|
531
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1$Outbound,
|
|
532
|
+
z.ZodTypeDef,
|
|
533
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1
|
|
534
|
+
> = z.object({
|
|
535
|
+
type: CreateSpeechLoadBalancerRouterAudioSpeechType$outboundSchema,
|
|
536
|
+
models: z.array(
|
|
537
|
+
z.lazy(() =>
|
|
538
|
+
CreateSpeechLoadBalancerRouterAudioSpeechModels$outboundSchema
|
|
539
|
+
),
|
|
540
|
+
),
|
|
541
|
+
});
|
|
542
|
+
|
|
543
|
+
export function createSpeechLoadBalancerRouterAudioSpeech1ToJSON(
|
|
544
|
+
createSpeechLoadBalancerRouterAudioSpeech1:
|
|
545
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1,
|
|
546
|
+
): string {
|
|
547
|
+
return JSON.stringify(
|
|
548
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1$outboundSchema.parse(
|
|
549
|
+
createSpeechLoadBalancerRouterAudioSpeech1,
|
|
550
|
+
),
|
|
551
|
+
);
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/** @internal */
|
|
555
|
+
export type CreateSpeechRouterAudioSpeechLoadBalancer$Outbound =
|
|
556
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1$Outbound;
|
|
557
|
+
|
|
558
|
+
/** @internal */
|
|
559
|
+
export const CreateSpeechRouterAudioSpeechLoadBalancer$outboundSchema:
|
|
560
|
+
z.ZodType<
|
|
561
|
+
CreateSpeechRouterAudioSpeechLoadBalancer$Outbound,
|
|
562
|
+
z.ZodTypeDef,
|
|
563
|
+
CreateSpeechRouterAudioSpeechLoadBalancer
|
|
564
|
+
> = z.lazy(() => CreateSpeechLoadBalancerRouterAudioSpeech1$outboundSchema);
|
|
565
|
+
|
|
566
|
+
export function createSpeechRouterAudioSpeechLoadBalancerToJSON(
|
|
567
|
+
createSpeechRouterAudioSpeechLoadBalancer:
|
|
568
|
+
CreateSpeechRouterAudioSpeechLoadBalancer,
|
|
569
|
+
): string {
|
|
570
|
+
return JSON.stringify(
|
|
571
|
+
CreateSpeechRouterAudioSpeechLoadBalancer$outboundSchema.parse(
|
|
572
|
+
createSpeechRouterAudioSpeechLoadBalancer,
|
|
573
|
+
),
|
|
574
|
+
);
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/** @internal */
|
|
578
|
+
export type CreateSpeechRouterAudioSpeechTimeout$Outbound = {
|
|
579
|
+
call_timeout: number;
|
|
580
|
+
};
|
|
581
|
+
|
|
582
|
+
/** @internal */
|
|
583
|
+
export const CreateSpeechRouterAudioSpeechTimeout$outboundSchema: z.ZodType<
|
|
584
|
+
CreateSpeechRouterAudioSpeechTimeout$Outbound,
|
|
585
|
+
z.ZodTypeDef,
|
|
586
|
+
CreateSpeechRouterAudioSpeechTimeout
|
|
587
|
+
> = z.object({
|
|
588
|
+
callTimeout: z.number(),
|
|
589
|
+
}).transform((v) => {
|
|
590
|
+
return remap$(v, {
|
|
591
|
+
callTimeout: "call_timeout",
|
|
592
|
+
});
|
|
593
|
+
});
|
|
594
|
+
|
|
595
|
+
export function createSpeechRouterAudioSpeechTimeoutToJSON(
|
|
596
|
+
createSpeechRouterAudioSpeechTimeout: CreateSpeechRouterAudioSpeechTimeout,
|
|
597
|
+
): string {
|
|
598
|
+
return JSON.stringify(
|
|
599
|
+
CreateSpeechRouterAudioSpeechTimeout$outboundSchema.parse(
|
|
600
|
+
createSpeechRouterAudioSpeechTimeout,
|
|
601
|
+
),
|
|
602
|
+
);
|
|
603
|
+
}
|
|
604
|
+
|
|
354
605
|
/** @internal */
|
|
355
606
|
export type CreateSpeechOrq$Outbound = {
|
|
356
|
-
retry?:
|
|
357
|
-
fallbacks?:
|
|
607
|
+
retry?: CreateSpeechRouterAudioSpeechRetry$Outbound | undefined;
|
|
608
|
+
fallbacks?:
|
|
609
|
+
| Array<CreateSpeechRouterAudioSpeechFallbacks$Outbound>
|
|
610
|
+
| undefined;
|
|
358
611
|
name?: string | undefined;
|
|
359
612
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
360
613
|
contact?: components.PublicContact$Outbound | undefined;
|
|
361
614
|
thread?: CreateSpeechThread$Outbound | undefined;
|
|
362
|
-
load_balancer?:
|
|
363
|
-
|
|
615
|
+
load_balancer?:
|
|
616
|
+
| CreateSpeechLoadBalancerRouterAudioSpeech1$Outbound
|
|
617
|
+
| undefined;
|
|
618
|
+
timeout?: CreateSpeechRouterAudioSpeechTimeout$Outbound | undefined;
|
|
364
619
|
};
|
|
365
620
|
|
|
366
621
|
/** @internal */
|
|
@@ -369,16 +624,20 @@ export const CreateSpeechOrq$outboundSchema: z.ZodType<
|
|
|
369
624
|
z.ZodTypeDef,
|
|
370
625
|
CreateSpeechOrq
|
|
371
626
|
> = z.object({
|
|
372
|
-
retry: z.lazy(() =>
|
|
373
|
-
fallbacks: z.array(z.lazy(() => CreateSpeechFallbacks$outboundSchema))
|
|
627
|
+
retry: z.lazy(() => CreateSpeechRouterAudioSpeechRetry$outboundSchema)
|
|
374
628
|
.optional(),
|
|
629
|
+
fallbacks: z.array(
|
|
630
|
+
z.lazy(() => CreateSpeechRouterAudioSpeechFallbacks$outboundSchema),
|
|
631
|
+
).optional(),
|
|
375
632
|
name: z.string().optional(),
|
|
376
633
|
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
377
634
|
contact: components.PublicContact$outboundSchema.optional(),
|
|
378
635
|
thread: z.lazy(() => CreateSpeechThread$outboundSchema).optional(),
|
|
379
|
-
loadBalancer: z.lazy(() =>
|
|
636
|
+
loadBalancer: z.lazy(() =>
|
|
637
|
+
CreateSpeechLoadBalancerRouterAudioSpeech1$outboundSchema
|
|
638
|
+
).optional(),
|
|
639
|
+
timeout: z.lazy(() => CreateSpeechRouterAudioSpeechTimeout$outboundSchema)
|
|
380
640
|
.optional(),
|
|
381
|
-
timeout: z.lazy(() => CreateSpeechTimeout$outboundSchema).optional(),
|
|
382
641
|
}).transform((v) => {
|
|
383
642
|
return remap$(v, {
|
|
384
643
|
loadBalancer: "load_balancer",
|
|
@@ -398,6 +657,11 @@ export type CreateSpeechRequestBody$Outbound = {
|
|
|
398
657
|
voice: string;
|
|
399
658
|
response_format: string;
|
|
400
659
|
speed: number;
|
|
660
|
+
name?: string | undefined;
|
|
661
|
+
fallbacks?: Array<CreateSpeechFallbacks$Outbound> | undefined;
|
|
662
|
+
retry?: CreateSpeechRetry$Outbound | undefined;
|
|
663
|
+
load_balancer?: CreateSpeechLoadBalancer1$Outbound | undefined;
|
|
664
|
+
timeout?: CreateSpeechTimeout$Outbound | undefined;
|
|
401
665
|
orq?: CreateSpeechOrq$Outbound | undefined;
|
|
402
666
|
};
|
|
403
667
|
|
|
@@ -412,10 +676,18 @@ export const CreateSpeechRequestBody$outboundSchema: z.ZodType<
|
|
|
412
676
|
voice: z.string(),
|
|
413
677
|
responseFormat: CreateSpeechResponseFormat$outboundSchema.default("mp3"),
|
|
414
678
|
speed: z.number().default(1),
|
|
679
|
+
name: z.string().optional(),
|
|
680
|
+
fallbacks: z.array(z.lazy(() => CreateSpeechFallbacks$outboundSchema))
|
|
681
|
+
.optional(),
|
|
682
|
+
retry: z.lazy(() => CreateSpeechRetry$outboundSchema).optional(),
|
|
683
|
+
loadBalancer: z.lazy(() => CreateSpeechLoadBalancer1$outboundSchema)
|
|
684
|
+
.optional(),
|
|
685
|
+
timeout: z.lazy(() => CreateSpeechTimeout$outboundSchema).optional(),
|
|
415
686
|
orq: z.lazy(() => CreateSpeechOrq$outboundSchema).optional(),
|
|
416
687
|
}).transform((v) => {
|
|
417
688
|
return remap$(v, {
|
|
418
689
|
responseFormat: "response_format",
|
|
690
|
+
loadBalancer: "load_balancer",
|
|
419
691
|
});
|
|
420
692
|
});
|
|
421
693
|
|
|
@@ -1899,7 +1899,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1899
1899
|
z.ZodTypeDef,
|
|
1900
1900
|
unknown
|
|
1901
1901
|
> = z.object({
|
|
1902
|
-
_id: z.string().default("
|
|
1902
|
+
_id: z.string().default("tool_01KFVN6EBGKCWGTAY1KTCC5MZE"),
|
|
1903
1903
|
path: z.string(),
|
|
1904
1904
|
key: z.string(),
|
|
1905
1905
|
display_name: z.string().optional(),
|
|
@@ -1998,7 +1998,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1998
1998
|
z.ZodTypeDef,
|
|
1999
1999
|
unknown
|
|
2000
2000
|
> = z.object({
|
|
2001
|
-
id: z.string().default("
|
|
2001
|
+
id: z.string().default("01KFVN6EBFK92TAQJ5YPM3E515"),
|
|
2002
2002
|
name: z.string(),
|
|
2003
2003
|
description: z.string().optional(),
|
|
2004
2004
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2052,7 +2052,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2052
2052
|
z.ZodTypeDef,
|
|
2053
2053
|
unknown
|
|
2054
2054
|
> = z.object({
|
|
2055
|
-
_id: z.string().default("
|
|
2055
|
+
_id: z.string().default("tool_01KFVN6EBB3Q7BHSPVDVJEMPPX"),
|
|
2056
2056
|
path: z.string(),
|
|
2057
2057
|
key: z.string(),
|
|
2058
2058
|
display_name: z.string().optional(),
|
|
@@ -2240,7 +2240,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2240
2240
|
z.ZodTypeDef,
|
|
2241
2241
|
unknown
|
|
2242
2242
|
> = z.object({
|
|
2243
|
-
_id: z.string().default("
|
|
2243
|
+
_id: z.string().default("tool_01KFVN6EB855HTD2DVEF62NY6J"),
|
|
2244
2244
|
path: z.string(),
|
|
2245
2245
|
key: z.string(),
|
|
2246
2246
|
display_name: z.string().optional(),
|
|
@@ -2335,7 +2335,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2335
2335
|
z.ZodTypeDef,
|
|
2336
2336
|
unknown
|
|
2337
2337
|
> = z.object({
|
|
2338
|
-
_id: z.string().default("
|
|
2338
|
+
_id: z.string().default("tool_01KFVN6EB6NH66N7AJ85662CTE"),
|
|
2339
2339
|
path: z.string(),
|
|
2340
2340
|
key: z.string(),
|
|
2341
2341
|
display_name: z.string().optional(),
|
|
@@ -2438,7 +2438,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2438
2438
|
z.ZodTypeDef,
|
|
2439
2439
|
unknown
|
|
2440
2440
|
> = z.object({
|
|
2441
|
-
_id: z.string().default("
|
|
2441
|
+
_id: z.string().default("tool_01KFVN6EB4YXFZWVTV33YRYQ7H"),
|
|
2442
2442
|
path: z.string(),
|
|
2443
2443
|
key: z.string(),
|
|
2444
2444
|
display_name: z.string().optional(),
|