@orq-ai/node 4.10.17 → 4.10.20
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/funcs/datasetsList.js +0 -2
- package/funcs/datasetsList.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +3 -3
- package/lib/env.js.map +1 -1
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +28 -13
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/models/components/modelmetadata.d.ts +0 -2
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +0 -4
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/reasoning.d.ts +2 -40
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +3 -26
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +2 -40
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +3 -28
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createagentrequest.d.ts +4 -298
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +9 -163
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +4 -81
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +7 -45
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/creatememorystore.d.ts +3 -3
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +2 -2
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +12 -225
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +13 -124
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +4 -349
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +4 -195
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentgetconfig.d.ts +4 -70
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +8 -43
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deployments.d.ts +8 -74
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +8 -43
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +1 -1
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +1 -1
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +4 -140
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +6 -79
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +4 -140
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +6 -79
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +4 -140
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +6 -78
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listagents.d.ts +0 -140
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +3 -79
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.d.ts +0 -10
- package/models/operations/listdatasets.d.ts.map +1 -1
- package/models/operations/listdatasets.js +1 -4
- package/models/operations/listdatasets.js.map +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +1 -1
- package/models/operations/listpromptversions.d.ts +4 -140
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +6 -79
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +0 -140
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -81
- 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/retrievememorystore.d.ts +1 -1
- package/models/operations/retrievememorystore.d.ts.map +1 -1
- package/models/operations/retrievememorystore.js +1 -1
- package/models/operations/retrievememorystore.js.map +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +0 -154
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +5 -80
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +0 -154
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +4 -82
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +4 -298
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +9 -162
- package/models/operations/updateagent.js.map +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 +16 -16
- package/models/operations/updatememorystore.d.ts +3 -3
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -2
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +12 -225
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +14 -125
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +7 -7
- package/packages/orq-rc/src/funcs/budgetsCheck.ts +162 -0
- package/packages/orq-rc/src/funcs/budgetsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/budgetsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/budgetsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/budgetsGetConsumption.ts +169 -0
- package/packages/orq-rc/src/funcs/budgetsList.ts +175 -0
- package/packages/orq-rc/src/funcs/budgetsResetConsumption.ts +174 -0
- package/packages/orq-rc/src/funcs/budgetsUpdate.ts +171 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/encodings.ts +1 -1
- package/packages/orq-rc/src/lib/env.ts +7 -3
- package/packages/orq-rc/src/lib/event-streams.ts +31 -13
- package/packages/orq-rc/src/lib/matchers.ts +1 -1
- package/packages/orq-rc/src/lib/primitives.ts +16 -0
- package/packages/orq-rc/src/models/components/apikeybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/budget.ts +102 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +76 -0
- package/packages/orq-rc/src/models/components/budgetmatch.ts +56 -0
- package/packages/orq-rc/src/models/components/budgetperiod.ts +23 -0
- package/packages/orq-rc/src/models/components/budgetrejection.ts +48 -0
- package/packages/orq-rc/src/models/components/budgetscope.ts +150 -0
- package/packages/orq-rc/src/models/components/budgetscopekind.ts +22 -0
- package/packages/orq-rc/src/models/components/checkbudgetsrequest.ts +111 -0
- package/packages/orq-rc/src/models/components/checkbudgetsresponse.ts +62 -0
- package/packages/orq-rc/src/models/components/createbudgetrequest.ts +109 -0
- package/packages/orq-rc/src/models/components/createbudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/deletebudgetresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/dimensioninfo.ts +43 -0
- package/packages/orq-rc/src/models/components/getbudgetconsumptionresponse.ts +67 -0
- package/packages/orq-rc/src/models/components/getbudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/identity.ts +9 -9
- package/packages/orq-rc/src/models/components/identitybudgetscope.ts +66 -0
- package/packages/orq-rc/src/models/components/index.ts +27 -0
- package/packages/orq-rc/src/models/components/listbudgetsresponse.ts +53 -0
- package/packages/orq-rc/src/models/components/modelbudgetscope.ts +67 -0
- package/packages/orq-rc/src/models/components/projectbudgetscope.ts +63 -0
- package/packages/orq-rc/src/models/components/providerbudgetscope.ts +57 -0
- package/packages/orq-rc/src/models/components/ratelimit.ts +62 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
- package/packages/orq-rc/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
- package/packages/orq-rc/src/models/components/updatebudgetrequest.ts +94 -0
- package/packages/orq-rc/src/models/components/updatebudgetresponse.ts +35 -0
- package/packages/orq-rc/src/models/components/workspacebudgetscope.ts +46 -0
- package/packages/orq-rc/src/models/operations/budgetdelete.ts +39 -0
- package/packages/orq-rc/src/models/operations/budgetget.ts +39 -0
- package/packages/orq-rc/src/models/operations/budgetgetconsumption.ts +41 -0
- package/packages/orq-rc/src/models/operations/budgetlist.ts +102 -0
- package/packages/orq-rc/src/models/operations/budgetresetconsumption.ts +48 -0
- package/packages/orq-rc/src/models/operations/budgetupdate.ts +44 -0
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +6 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/budgets.ts +154 -0
- package/packages/orq-rc/src/sdk/feedback.ts +1 -4
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/funcs/datasetsList.ts +0 -2
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/event-streams.ts +31 -13
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/models/components/modelmetadata.ts +0 -6
- package/src/models/components/reasoning.ts +4 -50
- package/src/models/components/reasoningparam.ts +4 -48
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createagentrequest.ts +8 -460
- package/src/models/operations/createchatcompletion.ts +10 -129
- 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/createeval.ts +16 -16
- package/src/models/operations/creatememorystore.ts +5 -5
- package/src/models/operations/createprompt.ts +27 -356
- package/src/models/operations/createrouterresponse.ts +8 -532
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentgetconfig.ts +8 -105
- package/src/models/operations/deployments.ts +16 -113
- package/src/models/operations/getallmemorystores.ts +2 -2
- package/src/models/operations/getallprompts.ts +8 -210
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +8 -208
- package/src/models/operations/getpromptversion.ts +8 -212
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listagents.ts +0 -215
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -14
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +1 -1
- package/src/models/operations/listpromptversions.ts +8 -212
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +0 -222
- 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/retrievememorystore.ts +2 -2
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -236
- package/src/models/operations/streamrunagent.ts +1 -242
- package/src/models/operations/updateagent.ts +9 -464
- 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 +16 -16
- package/src/models/operations/updatememorystore.ts +5 -5
- package/src/models/operations/updateprompt.ts +27 -356
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +2 -2
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/packages/orq-rc/src/lib/dlv.ts +0 -53
- package/packages/orq-rc/src/lib/is-plain-object.ts +0 -43
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -152,66 +152,6 @@ export type GetOnePromptPromptsResponseFormat =
|
|
|
152
152
|
| GetOnePromptResponseFormat5
|
|
153
153
|
| GetOnePromptResponseFormat6;
|
|
154
154
|
|
|
155
|
-
/**
|
|
156
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
157
|
-
*/
|
|
158
|
-
export const GetOnePromptPromptsResponse200Type = {
|
|
159
|
-
Ephemeral: "ephemeral",
|
|
160
|
-
} as const;
|
|
161
|
-
/**
|
|
162
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
163
|
-
*/
|
|
164
|
-
export type GetOnePromptPromptsResponse200Type = ClosedEnum<
|
|
165
|
-
typeof GetOnePromptPromptsResponse200Type
|
|
166
|
-
>;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
170
|
-
*
|
|
171
|
-
* @remarks
|
|
172
|
-
*
|
|
173
|
-
* - `5m`: 5 minutes
|
|
174
|
-
* - `1h`: 1 hour
|
|
175
|
-
*
|
|
176
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
177
|
-
*/
|
|
178
|
-
export const GetOnePromptPromptsTtl = {
|
|
179
|
-
Fivem: "5m",
|
|
180
|
-
Oneh: "1h",
|
|
181
|
-
} as const;
|
|
182
|
-
/**
|
|
183
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
184
|
-
*
|
|
185
|
-
* @remarks
|
|
186
|
-
*
|
|
187
|
-
* - `5m`: 5 minutes
|
|
188
|
-
* - `1h`: 1 hour
|
|
189
|
-
*
|
|
190
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
191
|
-
*/
|
|
192
|
-
export type GetOnePromptPromptsTtl = ClosedEnum<typeof GetOnePromptPromptsTtl>;
|
|
193
|
-
|
|
194
|
-
/**
|
|
195
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
196
|
-
*/
|
|
197
|
-
export type GetOnePromptPromptsCacheControl = {
|
|
198
|
-
/**
|
|
199
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
200
|
-
*/
|
|
201
|
-
type: GetOnePromptPromptsResponse200Type;
|
|
202
|
-
/**
|
|
203
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
204
|
-
*
|
|
205
|
-
* @remarks
|
|
206
|
-
*
|
|
207
|
-
* - `5m`: 5 minutes
|
|
208
|
-
* - `1h`: 1 hour
|
|
209
|
-
*
|
|
210
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
211
|
-
*/
|
|
212
|
-
ttl: GetOnePromptPromptsTtl;
|
|
213
|
-
};
|
|
214
|
-
|
|
215
155
|
/**
|
|
216
156
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
217
157
|
*/
|
|
@@ -358,10 +298,6 @@ export type GetOnePromptModelParameters = {
|
|
|
358
298
|
| GetOnePromptResponseFormat6
|
|
359
299
|
| null
|
|
360
300
|
| undefined;
|
|
361
|
-
/**
|
|
362
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
363
|
-
*/
|
|
364
|
-
cacheControl?: GetOnePromptPromptsCacheControl | null | undefined;
|
|
365
301
|
/**
|
|
366
302
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
367
303
|
*/
|
|
@@ -516,11 +452,11 @@ export type GetOnePromptContent =
|
|
|
516
452
|
| string
|
|
517
453
|
| Array<GetOnePrompt21 | GetOnePrompt22 | GetOnePrompt23>;
|
|
518
454
|
|
|
519
|
-
export const
|
|
455
|
+
export const GetOnePromptPromptsResponseType = {
|
|
520
456
|
Function: "function",
|
|
521
457
|
} as const;
|
|
522
|
-
export type
|
|
523
|
-
typeof
|
|
458
|
+
export type GetOnePromptPromptsResponseType = ClosedEnum<
|
|
459
|
+
typeof GetOnePromptPromptsResponseType
|
|
524
460
|
>;
|
|
525
461
|
|
|
526
462
|
export type GetOnePromptFunction = {
|
|
@@ -534,7 +470,7 @@ export type GetOnePromptFunction = {
|
|
|
534
470
|
export type GetOnePromptToolCalls = {
|
|
535
471
|
id?: string | undefined;
|
|
536
472
|
index?: number | undefined;
|
|
537
|
-
type:
|
|
473
|
+
type: GetOnePromptPromptsResponseType;
|
|
538
474
|
function: GetOnePromptFunction;
|
|
539
475
|
};
|
|
540
476
|
|
|
@@ -903,66 +839,6 @@ export type GetOnePromptTimeout = {
|
|
|
903
839
|
callTimeout: number;
|
|
904
840
|
};
|
|
905
841
|
|
|
906
|
-
/**
|
|
907
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
908
|
-
*/
|
|
909
|
-
export const GetOnePromptPromptsResponseType = {
|
|
910
|
-
Ephemeral: "ephemeral",
|
|
911
|
-
} as const;
|
|
912
|
-
/**
|
|
913
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
914
|
-
*/
|
|
915
|
-
export type GetOnePromptPromptsResponseType = ClosedEnum<
|
|
916
|
-
typeof GetOnePromptPromptsResponseType
|
|
917
|
-
>;
|
|
918
|
-
|
|
919
|
-
/**
|
|
920
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
921
|
-
*
|
|
922
|
-
* @remarks
|
|
923
|
-
*
|
|
924
|
-
* - `5m`: 5 minutes
|
|
925
|
-
* - `1h`: 1 hour
|
|
926
|
-
*
|
|
927
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
928
|
-
*/
|
|
929
|
-
export const GetOnePromptTtl = {
|
|
930
|
-
Fivem: "5m",
|
|
931
|
-
Oneh: "1h",
|
|
932
|
-
} as const;
|
|
933
|
-
/**
|
|
934
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
935
|
-
*
|
|
936
|
-
* @remarks
|
|
937
|
-
*
|
|
938
|
-
* - `5m`: 5 minutes
|
|
939
|
-
* - `1h`: 1 hour
|
|
940
|
-
*
|
|
941
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
942
|
-
*/
|
|
943
|
-
export type GetOnePromptTtl = ClosedEnum<typeof GetOnePromptTtl>;
|
|
944
|
-
|
|
945
|
-
/**
|
|
946
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
947
|
-
*/
|
|
948
|
-
export type GetOnePromptCacheControl = {
|
|
949
|
-
/**
|
|
950
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
951
|
-
*/
|
|
952
|
-
type: GetOnePromptPromptsResponseType;
|
|
953
|
-
/**
|
|
954
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
955
|
-
*
|
|
956
|
-
* @remarks
|
|
957
|
-
*
|
|
958
|
-
* - `5m`: 5 minutes
|
|
959
|
-
* - `1h`: 1 hour
|
|
960
|
-
*
|
|
961
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
962
|
-
*/
|
|
963
|
-
ttl: GetOnePromptTtl;
|
|
964
|
-
};
|
|
965
|
-
|
|
966
842
|
export type GetOnePromptContentPromptsResponse2002 =
|
|
967
843
|
components.TextContentPartSchema;
|
|
968
844
|
|
|
@@ -1426,14 +1302,6 @@ export type GetOnePromptPromptField = {
|
|
|
1426
1302
|
* 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.
|
|
1427
1303
|
*/
|
|
1428
1304
|
timeout?: GetOnePromptTimeout | undefined;
|
|
1429
|
-
/**
|
|
1430
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1431
|
-
*/
|
|
1432
|
-
cacheControl?: GetOnePromptCacheControl | undefined;
|
|
1433
|
-
/**
|
|
1434
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
1435
|
-
*/
|
|
1436
|
-
promptCacheKey?: string | undefined;
|
|
1437
1305
|
/**
|
|
1438
1306
|
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1439
1307
|
*/
|
|
@@ -1731,36 +1599,6 @@ export function getOnePromptPromptsResponseFormatFromJSON(
|
|
|
1731
1599
|
);
|
|
1732
1600
|
}
|
|
1733
1601
|
|
|
1734
|
-
/** @internal */
|
|
1735
|
-
export const GetOnePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
|
|
1736
|
-
typeof GetOnePromptPromptsResponse200Type
|
|
1737
|
-
> = z.nativeEnum(GetOnePromptPromptsResponse200Type);
|
|
1738
|
-
|
|
1739
|
-
/** @internal */
|
|
1740
|
-
export const GetOnePromptPromptsTtl$inboundSchema: z.ZodNativeEnum<
|
|
1741
|
-
typeof GetOnePromptPromptsTtl
|
|
1742
|
-
> = z.nativeEnum(GetOnePromptPromptsTtl);
|
|
1743
|
-
|
|
1744
|
-
/** @internal */
|
|
1745
|
-
export const GetOnePromptPromptsCacheControl$inboundSchema: z.ZodType<
|
|
1746
|
-
GetOnePromptPromptsCacheControl,
|
|
1747
|
-
z.ZodTypeDef,
|
|
1748
|
-
unknown
|
|
1749
|
-
> = z.object({
|
|
1750
|
-
type: GetOnePromptPromptsResponse200Type$inboundSchema,
|
|
1751
|
-
ttl: GetOnePromptPromptsTtl$inboundSchema.default("5m"),
|
|
1752
|
-
});
|
|
1753
|
-
|
|
1754
|
-
export function getOnePromptPromptsCacheControlFromJSON(
|
|
1755
|
-
jsonString: string,
|
|
1756
|
-
): SafeParseResult<GetOnePromptPromptsCacheControl, SDKValidationError> {
|
|
1757
|
-
return safeParse(
|
|
1758
|
-
jsonString,
|
|
1759
|
-
(x) => GetOnePromptPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
1760
|
-
`Failed to parse 'GetOnePromptPromptsCacheControl' from JSON`,
|
|
1761
|
-
);
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
1602
|
/** @internal */
|
|
1765
1603
|
export const GetOnePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1766
1604
|
typeof GetOnePromptPhotoRealVersion
|
|
@@ -1814,9 +1652,6 @@ export const GetOnePromptModelParameters$inboundSchema: z.ZodType<
|
|
|
1814
1652
|
GetOnePromptResponseFormat6$inboundSchema,
|
|
1815
1653
|
]),
|
|
1816
1654
|
).optional(),
|
|
1817
|
-
cacheControl: z.nullable(
|
|
1818
|
-
z.lazy(() => GetOnePromptPromptsCacheControl$inboundSchema),
|
|
1819
|
-
).optional(),
|
|
1820
1655
|
photoRealVersion: GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
1821
1656
|
encoding_format: GetOnePromptEncodingFormat$inboundSchema.optional(),
|
|
1822
1657
|
reasoningEffort: GetOnePromptPromptsReasoningEffort$inboundSchema.optional(),
|
|
@@ -2006,9 +1841,9 @@ export function getOnePromptContentFromJSON(
|
|
|
2006
1841
|
}
|
|
2007
1842
|
|
|
2008
1843
|
/** @internal */
|
|
2009
|
-
export const
|
|
2010
|
-
|
|
2011
|
-
|
|
1844
|
+
export const GetOnePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1845
|
+
typeof GetOnePromptPromptsResponseType
|
|
1846
|
+
> = z.nativeEnum(GetOnePromptPromptsResponseType);
|
|
2012
1847
|
|
|
2013
1848
|
/** @internal */
|
|
2014
1849
|
export const GetOnePromptFunction$inboundSchema: z.ZodType<
|
|
@@ -2038,7 +1873,7 @@ export const GetOnePromptToolCalls$inboundSchema: z.ZodType<
|
|
|
2038
1873
|
> = z.object({
|
|
2039
1874
|
id: z.string().optional(),
|
|
2040
1875
|
index: z.number().optional(),
|
|
2041
|
-
type:
|
|
1876
|
+
type: GetOnePromptPromptsResponseType$inboundSchema,
|
|
2042
1877
|
function: z.lazy(() => GetOnePromptFunction$inboundSchema),
|
|
2043
1878
|
});
|
|
2044
1879
|
|
|
@@ -2614,36 +2449,6 @@ export function getOnePromptTimeoutFromJSON(
|
|
|
2614
2449
|
);
|
|
2615
2450
|
}
|
|
2616
2451
|
|
|
2617
|
-
/** @internal */
|
|
2618
|
-
export const GetOnePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
2619
|
-
typeof GetOnePromptPromptsResponseType
|
|
2620
|
-
> = z.nativeEnum(GetOnePromptPromptsResponseType);
|
|
2621
|
-
|
|
2622
|
-
/** @internal */
|
|
2623
|
-
export const GetOnePromptTtl$inboundSchema: z.ZodNativeEnum<
|
|
2624
|
-
typeof GetOnePromptTtl
|
|
2625
|
-
> = z.nativeEnum(GetOnePromptTtl);
|
|
2626
|
-
|
|
2627
|
-
/** @internal */
|
|
2628
|
-
export const GetOnePromptCacheControl$inboundSchema: z.ZodType<
|
|
2629
|
-
GetOnePromptCacheControl,
|
|
2630
|
-
z.ZodTypeDef,
|
|
2631
|
-
unknown
|
|
2632
|
-
> = z.object({
|
|
2633
|
-
type: GetOnePromptPromptsResponseType$inboundSchema,
|
|
2634
|
-
ttl: GetOnePromptTtl$inboundSchema.default("5m"),
|
|
2635
|
-
});
|
|
2636
|
-
|
|
2637
|
-
export function getOnePromptCacheControlFromJSON(
|
|
2638
|
-
jsonString: string,
|
|
2639
|
-
): SafeParseResult<GetOnePromptCacheControl, SDKValidationError> {
|
|
2640
|
-
return safeParse(
|
|
2641
|
-
jsonString,
|
|
2642
|
-
(x) => GetOnePromptCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2643
|
-
`Failed to parse 'GetOnePromptCacheControl' from JSON`,
|
|
2644
|
-
);
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
2452
|
/** @internal */
|
|
2648
2453
|
export const GetOnePromptContentPromptsResponse2002$inboundSchema: z.ZodType<
|
|
2649
2454
|
GetOnePromptContentPromptsResponse2002,
|
|
@@ -3183,9 +2988,6 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3183
2988
|
load_balancer: z.lazy(() => GetOnePromptLoadBalancer1$inboundSchema)
|
|
3184
2989
|
.optional(),
|
|
3185
2990
|
timeout: z.lazy(() => GetOnePromptTimeout$inboundSchema).optional(),
|
|
3186
|
-
cache_control: z.lazy(() => GetOnePromptCacheControl$inboundSchema)
|
|
3187
|
-
.optional(),
|
|
3188
|
-
prompt_cache_key: z.string().optional(),
|
|
3189
2991
|
messages: z.array(
|
|
3190
2992
|
z.union([
|
|
3191
2993
|
z.lazy(() => GetOnePromptMessagesSystemMessage$inboundSchema),
|
|
@@ -3211,8 +3013,6 @@ export const GetOnePromptPromptField$inboundSchema: z.ZodType<
|
|
|
3211
3013
|
"tool_choice": "toolChoice",
|
|
3212
3014
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3213
3015
|
"load_balancer": "loadBalancer",
|
|
3214
|
-
"cache_control": "cacheControl",
|
|
3215
|
-
"prompt_cache_key": "promptCacheKey",
|
|
3216
3016
|
});
|
|
3217
3017
|
});
|
|
3218
3018
|
|
|
@@ -154,68 +154,6 @@ export type GetPromptVersionPromptsResponseFormat =
|
|
|
154
154
|
| GetPromptVersionResponseFormat5
|
|
155
155
|
| GetPromptVersionResponseFormat6;
|
|
156
156
|
|
|
157
|
-
/**
|
|
158
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
159
|
-
*/
|
|
160
|
-
export const GetPromptVersionPromptsResponseType = {
|
|
161
|
-
Ephemeral: "ephemeral",
|
|
162
|
-
} as const;
|
|
163
|
-
/**
|
|
164
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
165
|
-
*/
|
|
166
|
-
export type GetPromptVersionPromptsResponseType = ClosedEnum<
|
|
167
|
-
typeof GetPromptVersionPromptsResponseType
|
|
168
|
-
>;
|
|
169
|
-
|
|
170
|
-
/**
|
|
171
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
172
|
-
*
|
|
173
|
-
* @remarks
|
|
174
|
-
*
|
|
175
|
-
* - `5m`: 5 minutes
|
|
176
|
-
* - `1h`: 1 hour
|
|
177
|
-
*
|
|
178
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
179
|
-
*/
|
|
180
|
-
export const GetPromptVersionPromptsTtl = {
|
|
181
|
-
Fivem: "5m",
|
|
182
|
-
Oneh: "1h",
|
|
183
|
-
} as const;
|
|
184
|
-
/**
|
|
185
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
186
|
-
*
|
|
187
|
-
* @remarks
|
|
188
|
-
*
|
|
189
|
-
* - `5m`: 5 minutes
|
|
190
|
-
* - `1h`: 1 hour
|
|
191
|
-
*
|
|
192
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
193
|
-
*/
|
|
194
|
-
export type GetPromptVersionPromptsTtl = ClosedEnum<
|
|
195
|
-
typeof GetPromptVersionPromptsTtl
|
|
196
|
-
>;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
200
|
-
*/
|
|
201
|
-
export type GetPromptVersionPromptsCacheControl = {
|
|
202
|
-
/**
|
|
203
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
204
|
-
*/
|
|
205
|
-
type: GetPromptVersionPromptsResponseType;
|
|
206
|
-
/**
|
|
207
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
208
|
-
*
|
|
209
|
-
* @remarks
|
|
210
|
-
*
|
|
211
|
-
* - `5m`: 5 minutes
|
|
212
|
-
* - `1h`: 1 hour
|
|
213
|
-
*
|
|
214
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
215
|
-
*/
|
|
216
|
-
ttl: GetPromptVersionPromptsTtl;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
157
|
/**
|
|
220
158
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
221
159
|
*/
|
|
@@ -364,10 +302,6 @@ export type GetPromptVersionModelParameters = {
|
|
|
364
302
|
| GetPromptVersionResponseFormat6
|
|
365
303
|
| null
|
|
366
304
|
| undefined;
|
|
367
|
-
/**
|
|
368
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
369
|
-
*/
|
|
370
|
-
cacheControl?: GetPromptVersionPromptsCacheControl | null | undefined;
|
|
371
305
|
/**
|
|
372
306
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
373
307
|
*/
|
|
@@ -524,11 +458,11 @@ export type GetPromptVersionContent =
|
|
|
524
458
|
| string
|
|
525
459
|
| Array<GetPromptVersion21 | GetPromptVersion22 | GetPromptVersion23>;
|
|
526
460
|
|
|
527
|
-
export const
|
|
461
|
+
export const GetPromptVersionPromptsType = {
|
|
528
462
|
Function: "function",
|
|
529
463
|
} as const;
|
|
530
|
-
export type
|
|
531
|
-
typeof
|
|
464
|
+
export type GetPromptVersionPromptsType = ClosedEnum<
|
|
465
|
+
typeof GetPromptVersionPromptsType
|
|
532
466
|
>;
|
|
533
467
|
|
|
534
468
|
export type GetPromptVersionFunction = {
|
|
@@ -542,7 +476,7 @@ export type GetPromptVersionFunction = {
|
|
|
542
476
|
export type GetPromptVersionToolCalls = {
|
|
543
477
|
id?: string | undefined;
|
|
544
478
|
index?: number | undefined;
|
|
545
|
-
type:
|
|
479
|
+
type: GetPromptVersionPromptsType;
|
|
546
480
|
function: GetPromptVersionFunction;
|
|
547
481
|
};
|
|
548
482
|
|
|
@@ -913,66 +847,6 @@ export type GetPromptVersionTimeout = {
|
|
|
913
847
|
callTimeout: number;
|
|
914
848
|
};
|
|
915
849
|
|
|
916
|
-
/**
|
|
917
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
918
|
-
*/
|
|
919
|
-
export const GetPromptVersionPromptsType = {
|
|
920
|
-
Ephemeral: "ephemeral",
|
|
921
|
-
} as const;
|
|
922
|
-
/**
|
|
923
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
924
|
-
*/
|
|
925
|
-
export type GetPromptVersionPromptsType = ClosedEnum<
|
|
926
|
-
typeof GetPromptVersionPromptsType
|
|
927
|
-
>;
|
|
928
|
-
|
|
929
|
-
/**
|
|
930
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
931
|
-
*
|
|
932
|
-
* @remarks
|
|
933
|
-
*
|
|
934
|
-
* - `5m`: 5 minutes
|
|
935
|
-
* - `1h`: 1 hour
|
|
936
|
-
*
|
|
937
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
938
|
-
*/
|
|
939
|
-
export const GetPromptVersionTtl = {
|
|
940
|
-
Fivem: "5m",
|
|
941
|
-
Oneh: "1h",
|
|
942
|
-
} as const;
|
|
943
|
-
/**
|
|
944
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
945
|
-
*
|
|
946
|
-
* @remarks
|
|
947
|
-
*
|
|
948
|
-
* - `5m`: 5 minutes
|
|
949
|
-
* - `1h`: 1 hour
|
|
950
|
-
*
|
|
951
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
952
|
-
*/
|
|
953
|
-
export type GetPromptVersionTtl = ClosedEnum<typeof GetPromptVersionTtl>;
|
|
954
|
-
|
|
955
|
-
/**
|
|
956
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
957
|
-
*/
|
|
958
|
-
export type GetPromptVersionCacheControl = {
|
|
959
|
-
/**
|
|
960
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
961
|
-
*/
|
|
962
|
-
type: GetPromptVersionPromptsType;
|
|
963
|
-
/**
|
|
964
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
965
|
-
*
|
|
966
|
-
* @remarks
|
|
967
|
-
*
|
|
968
|
-
* - `5m`: 5 minutes
|
|
969
|
-
* - `1h`: 1 hour
|
|
970
|
-
*
|
|
971
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
972
|
-
*/
|
|
973
|
-
ttl: GetPromptVersionTtl;
|
|
974
|
-
};
|
|
975
|
-
|
|
976
850
|
export type GetPromptVersionContentPromptsResponse2002 =
|
|
977
851
|
components.TextContentPartSchema;
|
|
978
852
|
|
|
@@ -1439,14 +1313,6 @@ export type GetPromptVersionPromptField = {
|
|
|
1439
1313
|
* 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.
|
|
1440
1314
|
*/
|
|
1441
1315
|
timeout?: GetPromptVersionTimeout | undefined;
|
|
1442
|
-
/**
|
|
1443
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1444
|
-
*/
|
|
1445
|
-
cacheControl?: GetPromptVersionCacheControl | undefined;
|
|
1446
|
-
/**
|
|
1447
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
1448
|
-
*/
|
|
1449
|
-
promptCacheKey?: string | undefined;
|
|
1450
1316
|
/**
|
|
1451
1317
|
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
1452
1318
|
*/
|
|
@@ -1742,37 +1608,6 @@ export function getPromptVersionPromptsResponseFormatFromJSON(
|
|
|
1742
1608
|
);
|
|
1743
1609
|
}
|
|
1744
1610
|
|
|
1745
|
-
/** @internal */
|
|
1746
|
-
export const GetPromptVersionPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
1747
|
-
typeof GetPromptVersionPromptsResponseType
|
|
1748
|
-
> = z.nativeEnum(GetPromptVersionPromptsResponseType);
|
|
1749
|
-
|
|
1750
|
-
/** @internal */
|
|
1751
|
-
export const GetPromptVersionPromptsTtl$inboundSchema: z.ZodNativeEnum<
|
|
1752
|
-
typeof GetPromptVersionPromptsTtl
|
|
1753
|
-
> = z.nativeEnum(GetPromptVersionPromptsTtl);
|
|
1754
|
-
|
|
1755
|
-
/** @internal */
|
|
1756
|
-
export const GetPromptVersionPromptsCacheControl$inboundSchema: z.ZodType<
|
|
1757
|
-
GetPromptVersionPromptsCacheControl,
|
|
1758
|
-
z.ZodTypeDef,
|
|
1759
|
-
unknown
|
|
1760
|
-
> = z.object({
|
|
1761
|
-
type: GetPromptVersionPromptsResponseType$inboundSchema,
|
|
1762
|
-
ttl: GetPromptVersionPromptsTtl$inboundSchema.default("5m"),
|
|
1763
|
-
});
|
|
1764
|
-
|
|
1765
|
-
export function getPromptVersionPromptsCacheControlFromJSON(
|
|
1766
|
-
jsonString: string,
|
|
1767
|
-
): SafeParseResult<GetPromptVersionPromptsCacheControl, SDKValidationError> {
|
|
1768
|
-
return safeParse(
|
|
1769
|
-
jsonString,
|
|
1770
|
-
(x) =>
|
|
1771
|
-
GetPromptVersionPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
1772
|
-
`Failed to parse 'GetPromptVersionPromptsCacheControl' from JSON`,
|
|
1773
|
-
);
|
|
1774
|
-
}
|
|
1775
|
-
|
|
1776
1611
|
/** @internal */
|
|
1777
1612
|
export const GetPromptVersionPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
1778
1613
|
typeof GetPromptVersionPhotoRealVersion
|
|
@@ -1827,9 +1662,6 @@ export const GetPromptVersionModelParameters$inboundSchema: z.ZodType<
|
|
|
1827
1662
|
GetPromptVersionResponseFormat6$inboundSchema,
|
|
1828
1663
|
]),
|
|
1829
1664
|
).optional(),
|
|
1830
|
-
cacheControl: z.nullable(
|
|
1831
|
-
z.lazy(() => GetPromptVersionPromptsCacheControl$inboundSchema),
|
|
1832
|
-
).optional(),
|
|
1833
1665
|
photoRealVersion: GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
|
|
1834
1666
|
encoding_format: GetPromptVersionEncodingFormat$inboundSchema.optional(),
|
|
1835
1667
|
reasoningEffort: GetPromptVersionPromptsReasoningEffort$inboundSchema
|
|
@@ -2020,10 +1852,9 @@ export function getPromptVersionContentFromJSON(
|
|
|
2020
1852
|
}
|
|
2021
1853
|
|
|
2022
1854
|
/** @internal */
|
|
2023
|
-
export const
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
);
|
|
1855
|
+
export const GetPromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
1856
|
+
typeof GetPromptVersionPromptsType
|
|
1857
|
+
> = z.nativeEnum(GetPromptVersionPromptsType);
|
|
2027
1858
|
|
|
2028
1859
|
/** @internal */
|
|
2029
1860
|
export const GetPromptVersionFunction$inboundSchema: z.ZodType<
|
|
@@ -2053,7 +1884,7 @@ export const GetPromptVersionToolCalls$inboundSchema: z.ZodType<
|
|
|
2053
1884
|
> = z.object({
|
|
2054
1885
|
id: z.string().optional(),
|
|
2055
1886
|
index: z.number().optional(),
|
|
2056
|
-
type:
|
|
1887
|
+
type: GetPromptVersionPromptsType$inboundSchema,
|
|
2057
1888
|
function: z.lazy(() => GetPromptVersionFunction$inboundSchema),
|
|
2058
1889
|
});
|
|
2059
1890
|
|
|
@@ -2646,36 +2477,6 @@ export function getPromptVersionTimeoutFromJSON(
|
|
|
2646
2477
|
);
|
|
2647
2478
|
}
|
|
2648
2479
|
|
|
2649
|
-
/** @internal */
|
|
2650
|
-
export const GetPromptVersionPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
2651
|
-
typeof GetPromptVersionPromptsType
|
|
2652
|
-
> = z.nativeEnum(GetPromptVersionPromptsType);
|
|
2653
|
-
|
|
2654
|
-
/** @internal */
|
|
2655
|
-
export const GetPromptVersionTtl$inboundSchema: z.ZodNativeEnum<
|
|
2656
|
-
typeof GetPromptVersionTtl
|
|
2657
|
-
> = z.nativeEnum(GetPromptVersionTtl);
|
|
2658
|
-
|
|
2659
|
-
/** @internal */
|
|
2660
|
-
export const GetPromptVersionCacheControl$inboundSchema: z.ZodType<
|
|
2661
|
-
GetPromptVersionCacheControl,
|
|
2662
|
-
z.ZodTypeDef,
|
|
2663
|
-
unknown
|
|
2664
|
-
> = z.object({
|
|
2665
|
-
type: GetPromptVersionPromptsType$inboundSchema,
|
|
2666
|
-
ttl: GetPromptVersionTtl$inboundSchema.default("5m"),
|
|
2667
|
-
});
|
|
2668
|
-
|
|
2669
|
-
export function getPromptVersionCacheControlFromJSON(
|
|
2670
|
-
jsonString: string,
|
|
2671
|
-
): SafeParseResult<GetPromptVersionCacheControl, SDKValidationError> {
|
|
2672
|
-
return safeParse(
|
|
2673
|
-
jsonString,
|
|
2674
|
-
(x) => GetPromptVersionCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2675
|
-
`Failed to parse 'GetPromptVersionCacheControl' from JSON`,
|
|
2676
|
-
);
|
|
2677
|
-
}
|
|
2678
|
-
|
|
2679
2480
|
/** @internal */
|
|
2680
2481
|
export const GetPromptVersionContentPromptsResponse2002$inboundSchema:
|
|
2681
2482
|
z.ZodType<GetPromptVersionContentPromptsResponse2002, z.ZodTypeDef, unknown> =
|
|
@@ -3239,9 +3040,6 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3239
3040
|
load_balancer: z.lazy(() => GetPromptVersionLoadBalancer1$inboundSchema)
|
|
3240
3041
|
.optional(),
|
|
3241
3042
|
timeout: z.lazy(() => GetPromptVersionTimeout$inboundSchema).optional(),
|
|
3242
|
-
cache_control: z.lazy(() => GetPromptVersionCacheControl$inboundSchema)
|
|
3243
|
-
.optional(),
|
|
3244
|
-
prompt_cache_key: z.string().optional(),
|
|
3245
3043
|
messages: z.array(
|
|
3246
3044
|
z.union([
|
|
3247
3045
|
z.lazy(() => GetPromptVersionMessagesSystemMessage$inboundSchema),
|
|
@@ -3267,8 +3065,6 @@ export const GetPromptVersionPromptField$inboundSchema: z.ZodType<
|
|
|
3267
3065
|
"tool_choice": "toolChoice",
|
|
3268
3066
|
"parallel_tool_calls": "parallelToolCalls",
|
|
3269
3067
|
"load_balancer": "loadBalancer",
|
|
3270
|
-
"cache_control": "cacheControl",
|
|
3271
|
-
"prompt_cache_key": "promptCacheKey",
|
|
3272
3068
|
});
|
|
3273
3069
|
});
|
|
3274
3070
|
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-06-
|
|
143
|
+
"2026-06-12T14:13:06.535Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-06-
|
|
188
|
+
"2026-06-12T14:13:06.535Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-06-
|
|
144
|
+
"2026-06-12T14:13:06.535Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-06-
|
|
189
|
+
"2026-06-12T14:13:06.535Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|