@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
|
@@ -707,66 +707,6 @@ export type CreatePromptTimeout = {
|
|
|
707
707
|
callTimeout: number;
|
|
708
708
|
};
|
|
709
709
|
|
|
710
|
-
/**
|
|
711
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
712
|
-
*/
|
|
713
|
-
export const CreatePromptPromptsType = {
|
|
714
|
-
Ephemeral: "ephemeral",
|
|
715
|
-
} as const;
|
|
716
|
-
/**
|
|
717
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
718
|
-
*/
|
|
719
|
-
export type CreatePromptPromptsType = ClosedEnum<
|
|
720
|
-
typeof CreatePromptPromptsType
|
|
721
|
-
>;
|
|
722
|
-
|
|
723
|
-
/**
|
|
724
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
725
|
-
*
|
|
726
|
-
* @remarks
|
|
727
|
-
*
|
|
728
|
-
* - `5m`: 5 minutes
|
|
729
|
-
* - `1h`: 1 hour
|
|
730
|
-
*
|
|
731
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
732
|
-
*/
|
|
733
|
-
export const CreatePromptTtl = {
|
|
734
|
-
Fivem: "5m",
|
|
735
|
-
Oneh: "1h",
|
|
736
|
-
} as const;
|
|
737
|
-
/**
|
|
738
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
739
|
-
*
|
|
740
|
-
* @remarks
|
|
741
|
-
*
|
|
742
|
-
* - `5m`: 5 minutes
|
|
743
|
-
* - `1h`: 1 hour
|
|
744
|
-
*
|
|
745
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
746
|
-
*/
|
|
747
|
-
export type CreatePromptTtl = ClosedEnum<typeof CreatePromptTtl>;
|
|
748
|
-
|
|
749
|
-
/**
|
|
750
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
751
|
-
*/
|
|
752
|
-
export type CreatePromptCacheControl = {
|
|
753
|
-
/**
|
|
754
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
755
|
-
*/
|
|
756
|
-
type: CreatePromptPromptsType;
|
|
757
|
-
/**
|
|
758
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
759
|
-
*
|
|
760
|
-
* @remarks
|
|
761
|
-
*
|
|
762
|
-
* - `5m`: 5 minutes
|
|
763
|
-
* - `1h`: 1 hour
|
|
764
|
-
*
|
|
765
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
766
|
-
*/
|
|
767
|
-
ttl?: CreatePromptTtl | undefined;
|
|
768
|
-
};
|
|
769
|
-
|
|
770
710
|
/**
|
|
771
711
|
* Prompt configuration with model and messages.
|
|
772
712
|
*/
|
|
@@ -914,14 +854,6 @@ export type PromptInput = {
|
|
|
914
854
|
* 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.
|
|
915
855
|
*/
|
|
916
856
|
timeout?: CreatePromptTimeout | undefined;
|
|
917
|
-
/**
|
|
918
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
919
|
-
*/
|
|
920
|
-
cacheControl?: CreatePromptCacheControl | undefined;
|
|
921
|
-
/**
|
|
922
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
923
|
-
*/
|
|
924
|
-
promptCacheKey?: string | undefined;
|
|
925
857
|
};
|
|
926
858
|
|
|
927
859
|
export type CreatePromptRequestBody = {
|
|
@@ -950,11 +882,11 @@ export type CreatePromptRequestBody = {
|
|
|
950
882
|
path: string;
|
|
951
883
|
};
|
|
952
884
|
|
|
953
|
-
export const
|
|
885
|
+
export const CreatePromptPromptsType = {
|
|
954
886
|
Prompt: "prompt",
|
|
955
887
|
} as const;
|
|
956
|
-
export type
|
|
957
|
-
typeof
|
|
888
|
+
export type CreatePromptPromptsType = ClosedEnum<
|
|
889
|
+
typeof CreatePromptPromptsType
|
|
958
890
|
>;
|
|
959
891
|
|
|
960
892
|
/**
|
|
@@ -1094,69 +1026,6 @@ export type CreatePromptPromptsResponseResponseFormat =
|
|
|
1094
1026
|
| CreatePromptResponseFormat5
|
|
1095
1027
|
| CreatePromptResponseFormat6;
|
|
1096
1028
|
|
|
1097
|
-
/**
|
|
1098
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1099
|
-
*/
|
|
1100
|
-
export const CreatePromptPromptsResponse200ApplicationJSONResponseBodyType = {
|
|
1101
|
-
Ephemeral: "ephemeral",
|
|
1102
|
-
} as const;
|
|
1103
|
-
/**
|
|
1104
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1105
|
-
*/
|
|
1106
|
-
export type CreatePromptPromptsResponse200ApplicationJSONResponseBodyType =
|
|
1107
|
-
ClosedEnum<
|
|
1108
|
-
typeof CreatePromptPromptsResponse200ApplicationJSONResponseBodyType
|
|
1109
|
-
>;
|
|
1110
|
-
|
|
1111
|
-
/**
|
|
1112
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1113
|
-
*
|
|
1114
|
-
* @remarks
|
|
1115
|
-
*
|
|
1116
|
-
* - `5m`: 5 minutes
|
|
1117
|
-
* - `1h`: 1 hour
|
|
1118
|
-
*
|
|
1119
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1120
|
-
*/
|
|
1121
|
-
export const CreatePromptPromptsResponseTtl = {
|
|
1122
|
-
Fivem: "5m",
|
|
1123
|
-
Oneh: "1h",
|
|
1124
|
-
} as const;
|
|
1125
|
-
/**
|
|
1126
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1127
|
-
*
|
|
1128
|
-
* @remarks
|
|
1129
|
-
*
|
|
1130
|
-
* - `5m`: 5 minutes
|
|
1131
|
-
* - `1h`: 1 hour
|
|
1132
|
-
*
|
|
1133
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1134
|
-
*/
|
|
1135
|
-
export type CreatePromptPromptsResponseTtl = ClosedEnum<
|
|
1136
|
-
typeof CreatePromptPromptsResponseTtl
|
|
1137
|
-
>;
|
|
1138
|
-
|
|
1139
|
-
/**
|
|
1140
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1141
|
-
*/
|
|
1142
|
-
export type CreatePromptPromptsResponseCacheControl = {
|
|
1143
|
-
/**
|
|
1144
|
-
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1145
|
-
*/
|
|
1146
|
-
type: CreatePromptPromptsResponse200ApplicationJSONResponseBodyType;
|
|
1147
|
-
/**
|
|
1148
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1149
|
-
*
|
|
1150
|
-
* @remarks
|
|
1151
|
-
*
|
|
1152
|
-
* - `5m`: 5 minutes
|
|
1153
|
-
* - `1h`: 1 hour
|
|
1154
|
-
*
|
|
1155
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1156
|
-
*/
|
|
1157
|
-
ttl: CreatePromptPromptsResponseTtl;
|
|
1158
|
-
};
|
|
1159
|
-
|
|
1160
1029
|
/**
|
|
1161
1030
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
1162
1031
|
*/
|
|
@@ -1303,10 +1172,6 @@ export type ModelParameters = {
|
|
|
1303
1172
|
| CreatePromptResponseFormat6
|
|
1304
1173
|
| null
|
|
1305
1174
|
| undefined;
|
|
1306
|
-
/**
|
|
1307
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1308
|
-
*/
|
|
1309
|
-
cacheControl?: CreatePromptPromptsResponseCacheControl | null | undefined;
|
|
1310
1175
|
/**
|
|
1311
1176
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
1312
1177
|
*/
|
|
@@ -1461,14 +1326,12 @@ export type CreatePromptContent =
|
|
|
1461
1326
|
| string
|
|
1462
1327
|
| Array<CreatePrompt21 | CreatePrompt22 | CreatePrompt23>;
|
|
1463
1328
|
|
|
1464
|
-
export const
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
typeof CreatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType
|
|
1471
|
-
>;
|
|
1329
|
+
export const CreatePromptPromptsResponse200Type = {
|
|
1330
|
+
Function: "function",
|
|
1331
|
+
} as const;
|
|
1332
|
+
export type CreatePromptPromptsResponse200Type = ClosedEnum<
|
|
1333
|
+
typeof CreatePromptPromptsResponse200Type
|
|
1334
|
+
>;
|
|
1472
1335
|
|
|
1473
1336
|
export type CreatePromptFunction = {
|
|
1474
1337
|
name: string;
|
|
@@ -1481,8 +1344,7 @@ export type CreatePromptFunction = {
|
|
|
1481
1344
|
export type CreatePromptToolCalls = {
|
|
1482
1345
|
id?: string | undefined;
|
|
1483
1346
|
index?: number | undefined;
|
|
1484
|
-
type:
|
|
1485
|
-
CreatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType;
|
|
1347
|
+
type: CreatePromptPromptsResponse200Type;
|
|
1486
1348
|
function: CreatePromptFunction;
|
|
1487
1349
|
};
|
|
1488
1350
|
|
|
@@ -1799,11 +1661,11 @@ export type CreatePromptPromptsRetry = {
|
|
|
1799
1661
|
onCodes?: Array<number> | undefined;
|
|
1800
1662
|
};
|
|
1801
1663
|
|
|
1802
|
-
export const
|
|
1664
|
+
export const CreatePromptPromptsResponseType = {
|
|
1803
1665
|
ExactMatch: "exact_match",
|
|
1804
1666
|
} as const;
|
|
1805
|
-
export type
|
|
1806
|
-
typeof
|
|
1667
|
+
export type CreatePromptPromptsResponseType = ClosedEnum<
|
|
1668
|
+
typeof CreatePromptPromptsResponseType
|
|
1807
1669
|
>;
|
|
1808
1670
|
|
|
1809
1671
|
/**
|
|
@@ -1814,7 +1676,7 @@ export type CreatePromptPromptsCache = {
|
|
|
1814
1676
|
* Time to live for cached responses in seconds. Maximum 259200 seconds (3 days).
|
|
1815
1677
|
*/
|
|
1816
1678
|
ttl: number;
|
|
1817
|
-
type:
|
|
1679
|
+
type: CreatePromptPromptsResponseType;
|
|
1818
1680
|
};
|
|
1819
1681
|
|
|
1820
1682
|
export const CreatePromptLoadBalancerPromptsType = {
|
|
@@ -1855,66 +1717,6 @@ export type CreatePromptPromptsTimeout = {
|
|
|
1855
1717
|
callTimeout: number;
|
|
1856
1718
|
};
|
|
1857
1719
|
|
|
1858
|
-
/**
|
|
1859
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1860
|
-
*/
|
|
1861
|
-
export const CreatePromptPromptsResponse200ApplicationJSONType = {
|
|
1862
|
-
Ephemeral: "ephemeral",
|
|
1863
|
-
} as const;
|
|
1864
|
-
/**
|
|
1865
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1866
|
-
*/
|
|
1867
|
-
export type CreatePromptPromptsResponse200ApplicationJSONType = ClosedEnum<
|
|
1868
|
-
typeof CreatePromptPromptsResponse200ApplicationJSONType
|
|
1869
|
-
>;
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1873
|
-
*
|
|
1874
|
-
* @remarks
|
|
1875
|
-
*
|
|
1876
|
-
* - `5m`: 5 minutes
|
|
1877
|
-
* - `1h`: 1 hour
|
|
1878
|
-
*
|
|
1879
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1880
|
-
*/
|
|
1881
|
-
export const CreatePromptPromptsTtl = {
|
|
1882
|
-
Fivem: "5m",
|
|
1883
|
-
Oneh: "1h",
|
|
1884
|
-
} as const;
|
|
1885
|
-
/**
|
|
1886
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1887
|
-
*
|
|
1888
|
-
* @remarks
|
|
1889
|
-
*
|
|
1890
|
-
* - `5m`: 5 minutes
|
|
1891
|
-
* - `1h`: 1 hour
|
|
1892
|
-
*
|
|
1893
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1894
|
-
*/
|
|
1895
|
-
export type CreatePromptPromptsTtl = ClosedEnum<typeof CreatePromptPromptsTtl>;
|
|
1896
|
-
|
|
1897
|
-
/**
|
|
1898
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1899
|
-
*/
|
|
1900
|
-
export type CreatePromptPromptsCacheControl = {
|
|
1901
|
-
/**
|
|
1902
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1903
|
-
*/
|
|
1904
|
-
type: CreatePromptPromptsResponse200ApplicationJSONType;
|
|
1905
|
-
/**
|
|
1906
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1907
|
-
*
|
|
1908
|
-
* @remarks
|
|
1909
|
-
*
|
|
1910
|
-
* - `5m`: 5 minutes
|
|
1911
|
-
* - `1h`: 1 hour
|
|
1912
|
-
*
|
|
1913
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1914
|
-
*/
|
|
1915
|
-
ttl: CreatePromptPromptsTtl;
|
|
1916
|
-
};
|
|
1917
|
-
|
|
1918
1720
|
export type CreatePromptContentPromptsResponse200ApplicationJSONResponseBody2 =
|
|
1919
1721
|
components.TextContentPartSchema;
|
|
1920
1722
|
|
|
@@ -2385,14 +2187,6 @@ export type PromptField = {
|
|
|
2385
2187
|
* 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.
|
|
2386
2188
|
*/
|
|
2387
2189
|
timeout?: CreatePromptPromptsTimeout | undefined;
|
|
2388
|
-
/**
|
|
2389
|
-
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
2390
|
-
*/
|
|
2391
|
-
cacheControl?: CreatePromptPromptsCacheControl | undefined;
|
|
2392
|
-
/**
|
|
2393
|
-
* Used by OpenAI to cache responses for similar requests to optimize your cache hit rates. Replaces the legacy `user` field for prompt caching.
|
|
2394
|
-
*/
|
|
2395
|
-
promptCacheKey?: string | undefined;
|
|
2396
2190
|
/**
|
|
2397
2191
|
* Array of messages that make up the conversation. Each message has a role (system, user, assistant, or tool) and content.
|
|
2398
2192
|
*/
|
|
@@ -2470,7 +2264,7 @@ export type CreatePromptPromptsMetadata = {
|
|
|
2470
2264
|
*/
|
|
2471
2265
|
export type CreatePromptPrompt = {
|
|
2472
2266
|
id: string;
|
|
2473
|
-
type:
|
|
2267
|
+
type: CreatePromptPromptsType;
|
|
2474
2268
|
owner: string;
|
|
2475
2269
|
domainId: string;
|
|
2476
2270
|
created: string;
|
|
@@ -3696,40 +3490,6 @@ export function createPromptTimeoutToJSON(
|
|
|
3696
3490
|
);
|
|
3697
3491
|
}
|
|
3698
3492
|
|
|
3699
|
-
/** @internal */
|
|
3700
|
-
export const CreatePromptPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
3701
|
-
typeof CreatePromptPromptsType
|
|
3702
|
-
> = z.nativeEnum(CreatePromptPromptsType);
|
|
3703
|
-
|
|
3704
|
-
/** @internal */
|
|
3705
|
-
export const CreatePromptTtl$outboundSchema: z.ZodNativeEnum<
|
|
3706
|
-
typeof CreatePromptTtl
|
|
3707
|
-
> = z.nativeEnum(CreatePromptTtl);
|
|
3708
|
-
|
|
3709
|
-
/** @internal */
|
|
3710
|
-
export type CreatePromptCacheControl$Outbound = {
|
|
3711
|
-
type: string;
|
|
3712
|
-
ttl: string;
|
|
3713
|
-
};
|
|
3714
|
-
|
|
3715
|
-
/** @internal */
|
|
3716
|
-
export const CreatePromptCacheControl$outboundSchema: z.ZodType<
|
|
3717
|
-
CreatePromptCacheControl$Outbound,
|
|
3718
|
-
z.ZodTypeDef,
|
|
3719
|
-
CreatePromptCacheControl
|
|
3720
|
-
> = z.object({
|
|
3721
|
-
type: CreatePromptPromptsType$outboundSchema,
|
|
3722
|
-
ttl: CreatePromptTtl$outboundSchema.default("5m"),
|
|
3723
|
-
});
|
|
3724
|
-
|
|
3725
|
-
export function createPromptCacheControlToJSON(
|
|
3726
|
-
createPromptCacheControl: CreatePromptCacheControl,
|
|
3727
|
-
): string {
|
|
3728
|
-
return JSON.stringify(
|
|
3729
|
-
CreatePromptCacheControl$outboundSchema.parse(createPromptCacheControl),
|
|
3730
|
-
);
|
|
3731
|
-
}
|
|
3732
|
-
|
|
3733
3493
|
/** @internal */
|
|
3734
3494
|
export type PromptInput$Outbound = {
|
|
3735
3495
|
messages: Array<
|
|
@@ -3775,8 +3535,6 @@ export type PromptInput$Outbound = {
|
|
|
3775
3535
|
cache?: CreatePromptCache$Outbound | undefined;
|
|
3776
3536
|
load_balancer?: CreatePromptLoadBalancer1$Outbound | undefined;
|
|
3777
3537
|
timeout?: CreatePromptTimeout$Outbound | undefined;
|
|
3778
|
-
cache_control?: CreatePromptCacheControl$Outbound | undefined;
|
|
3779
|
-
prompt_cache_key?: string | undefined;
|
|
3780
3538
|
};
|
|
3781
3539
|
|
|
3782
3540
|
/** @internal */
|
|
@@ -3838,9 +3596,6 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3838
3596
|
loadBalancer: z.lazy(() => CreatePromptLoadBalancer1$outboundSchema)
|
|
3839
3597
|
.optional(),
|
|
3840
3598
|
timeout: z.lazy(() => CreatePromptTimeout$outboundSchema).optional(),
|
|
3841
|
-
cacheControl: z.lazy(() => CreatePromptCacheControl$outboundSchema)
|
|
3842
|
-
.optional(),
|
|
3843
|
-
promptCacheKey: z.string().optional(),
|
|
3844
3599
|
}).transform((v) => {
|
|
3845
3600
|
return remap$(v, {
|
|
3846
3601
|
frequencyPenalty: "frequency_penalty",
|
|
@@ -3856,8 +3611,6 @@ export const PromptInput$outboundSchema: z.ZodType<
|
|
|
3856
3611
|
toolChoice: "tool_choice",
|
|
3857
3612
|
parallelToolCalls: "parallel_tool_calls",
|
|
3858
3613
|
loadBalancer: "load_balancer",
|
|
3859
|
-
cacheControl: "cache_control",
|
|
3860
|
-
promptCacheKey: "prompt_cache_key",
|
|
3861
3614
|
});
|
|
3862
3615
|
});
|
|
3863
3616
|
|
|
@@ -3900,9 +3653,9 @@ export function createPromptRequestBodyToJSON(
|
|
|
3900
3653
|
}
|
|
3901
3654
|
|
|
3902
3655
|
/** @internal */
|
|
3903
|
-
export const
|
|
3904
|
-
typeof
|
|
3905
|
-
> = z.nativeEnum(
|
|
3656
|
+
export const CreatePromptPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
3657
|
+
typeof CreatePromptPromptsType
|
|
3658
|
+
> = z.nativeEnum(CreatePromptPromptsType);
|
|
3906
3659
|
|
|
3907
3660
|
/** @internal */
|
|
3908
3661
|
export const ModelType$inboundSchema: z.ZodNativeEnum<typeof ModelType> = z
|
|
@@ -4079,46 +3832,6 @@ export function createPromptPromptsResponseResponseFormatFromJSON(
|
|
|
4079
3832
|
);
|
|
4080
3833
|
}
|
|
4081
3834
|
|
|
4082
|
-
/** @internal */
|
|
4083
|
-
export const CreatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
4084
|
-
z.ZodNativeEnum<
|
|
4085
|
-
typeof CreatePromptPromptsResponse200ApplicationJSONResponseBodyType
|
|
4086
|
-
> = z.nativeEnum(
|
|
4087
|
-
CreatePromptPromptsResponse200ApplicationJSONResponseBodyType,
|
|
4088
|
-
);
|
|
4089
|
-
|
|
4090
|
-
/** @internal */
|
|
4091
|
-
export const CreatePromptPromptsResponseTtl$inboundSchema: z.ZodNativeEnum<
|
|
4092
|
-
typeof CreatePromptPromptsResponseTtl
|
|
4093
|
-
> = z.nativeEnum(CreatePromptPromptsResponseTtl);
|
|
4094
|
-
|
|
4095
|
-
/** @internal */
|
|
4096
|
-
export const CreatePromptPromptsResponseCacheControl$inboundSchema: z.ZodType<
|
|
4097
|
-
CreatePromptPromptsResponseCacheControl,
|
|
4098
|
-
z.ZodTypeDef,
|
|
4099
|
-
unknown
|
|
4100
|
-
> = z.object({
|
|
4101
|
-
type:
|
|
4102
|
-
CreatePromptPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
4103
|
-
ttl: CreatePromptPromptsResponseTtl$inboundSchema.default("5m"),
|
|
4104
|
-
});
|
|
4105
|
-
|
|
4106
|
-
export function createPromptPromptsResponseCacheControlFromJSON(
|
|
4107
|
-
jsonString: string,
|
|
4108
|
-
): SafeParseResult<
|
|
4109
|
-
CreatePromptPromptsResponseCacheControl,
|
|
4110
|
-
SDKValidationError
|
|
4111
|
-
> {
|
|
4112
|
-
return safeParse(
|
|
4113
|
-
jsonString,
|
|
4114
|
-
(x) =>
|
|
4115
|
-
CreatePromptPromptsResponseCacheControl$inboundSchema.parse(
|
|
4116
|
-
JSON.parse(x),
|
|
4117
|
-
),
|
|
4118
|
-
`Failed to parse 'CreatePromptPromptsResponseCacheControl' from JSON`,
|
|
4119
|
-
);
|
|
4120
|
-
}
|
|
4121
|
-
|
|
4122
3835
|
/** @internal */
|
|
4123
3836
|
export const CreatePromptPhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
4124
3837
|
typeof CreatePromptPhotoRealVersion
|
|
@@ -4172,9 +3885,6 @@ export const ModelParameters$inboundSchema: z.ZodType<
|
|
|
4172
3885
|
CreatePromptResponseFormat6$inboundSchema,
|
|
4173
3886
|
]),
|
|
4174
3887
|
).optional(),
|
|
4175
|
-
cacheControl: z.nullable(
|
|
4176
|
-
z.lazy(() => CreatePromptPromptsResponseCacheControl$inboundSchema),
|
|
4177
|
-
).optional(),
|
|
4178
3888
|
photoRealVersion: CreatePromptPhotoRealVersion$inboundSchema.optional(),
|
|
4179
3889
|
encoding_format: CreatePromptEncodingFormat$inboundSchema.optional(),
|
|
4180
3890
|
reasoningEffort: CreatePromptPromptsResponseReasoningEffort$inboundSchema
|
|
@@ -4366,12 +4076,9 @@ export function createPromptContentFromJSON(
|
|
|
4366
4076
|
}
|
|
4367
4077
|
|
|
4368
4078
|
/** @internal */
|
|
4369
|
-
export const
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
> = z.nativeEnum(
|
|
4373
|
-
CreatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType,
|
|
4374
|
-
);
|
|
4079
|
+
export const CreatePromptPromptsResponse200Type$inboundSchema: z.ZodNativeEnum<
|
|
4080
|
+
typeof CreatePromptPromptsResponse200Type
|
|
4081
|
+
> = z.nativeEnum(CreatePromptPromptsResponse200Type);
|
|
4375
4082
|
|
|
4376
4083
|
/** @internal */
|
|
4377
4084
|
export const CreatePromptFunction$inboundSchema: z.ZodType<
|
|
@@ -4401,8 +4108,7 @@ export const CreatePromptToolCalls$inboundSchema: z.ZodType<
|
|
|
4401
4108
|
> = z.object({
|
|
4402
4109
|
id: z.string().optional(),
|
|
4403
4110
|
index: z.number().optional(),
|
|
4404
|
-
type:
|
|
4405
|
-
CreatePromptPromptsResponse200ApplicationJSONResponseBodyPromptConfigType$inboundSchema,
|
|
4111
|
+
type: CreatePromptPromptsResponse200Type$inboundSchema,
|
|
4406
4112
|
function: z.lazy(() => CreatePromptFunction$inboundSchema),
|
|
4407
4113
|
});
|
|
4408
4114
|
|
|
@@ -4883,9 +4589,9 @@ export function createPromptPromptsRetryFromJSON(
|
|
|
4883
4589
|
}
|
|
4884
4590
|
|
|
4885
4591
|
/** @internal */
|
|
4886
|
-
export const
|
|
4887
|
-
typeof
|
|
4888
|
-
> = z.nativeEnum(
|
|
4592
|
+
export const CreatePromptPromptsResponseType$inboundSchema: z.ZodNativeEnum<
|
|
4593
|
+
typeof CreatePromptPromptsResponseType
|
|
4594
|
+
> = z.nativeEnum(CreatePromptPromptsResponseType);
|
|
4889
4595
|
|
|
4890
4596
|
/** @internal */
|
|
4891
4597
|
export const CreatePromptPromptsCache$inboundSchema: z.ZodType<
|
|
@@ -4894,7 +4600,7 @@ export const CreatePromptPromptsCache$inboundSchema: z.ZodType<
|
|
|
4894
4600
|
unknown
|
|
4895
4601
|
> = z.object({
|
|
4896
4602
|
ttl: z.number().default(1800),
|
|
4897
|
-
type:
|
|
4603
|
+
type: CreatePromptPromptsResponseType$inboundSchema,
|
|
4898
4604
|
});
|
|
4899
4605
|
|
|
4900
4606
|
export function createPromptPromptsCacheFromJSON(
|
|
@@ -4995,36 +4701,6 @@ export function createPromptPromptsTimeoutFromJSON(
|
|
|
4995
4701
|
);
|
|
4996
4702
|
}
|
|
4997
4703
|
|
|
4998
|
-
/** @internal */
|
|
4999
|
-
export const CreatePromptPromptsResponse200ApplicationJSONType$inboundSchema:
|
|
5000
|
-
z.ZodNativeEnum<typeof CreatePromptPromptsResponse200ApplicationJSONType> = z
|
|
5001
|
-
.nativeEnum(CreatePromptPromptsResponse200ApplicationJSONType);
|
|
5002
|
-
|
|
5003
|
-
/** @internal */
|
|
5004
|
-
export const CreatePromptPromptsTtl$inboundSchema: z.ZodNativeEnum<
|
|
5005
|
-
typeof CreatePromptPromptsTtl
|
|
5006
|
-
> = z.nativeEnum(CreatePromptPromptsTtl);
|
|
5007
|
-
|
|
5008
|
-
/** @internal */
|
|
5009
|
-
export const CreatePromptPromptsCacheControl$inboundSchema: z.ZodType<
|
|
5010
|
-
CreatePromptPromptsCacheControl,
|
|
5011
|
-
z.ZodTypeDef,
|
|
5012
|
-
unknown
|
|
5013
|
-
> = z.object({
|
|
5014
|
-
type: CreatePromptPromptsResponse200ApplicationJSONType$inboundSchema,
|
|
5015
|
-
ttl: CreatePromptPromptsTtl$inboundSchema.default("5m"),
|
|
5016
|
-
});
|
|
5017
|
-
|
|
5018
|
-
export function createPromptPromptsCacheControlFromJSON(
|
|
5019
|
-
jsonString: string,
|
|
5020
|
-
): SafeParseResult<CreatePromptPromptsCacheControl, SDKValidationError> {
|
|
5021
|
-
return safeParse(
|
|
5022
|
-
jsonString,
|
|
5023
|
-
(x) => CreatePromptPromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
5024
|
-
`Failed to parse 'CreatePromptPromptsCacheControl' from JSON`,
|
|
5025
|
-
);
|
|
5026
|
-
}
|
|
5027
|
-
|
|
5028
4704
|
/** @internal */
|
|
5029
4705
|
export const CreatePromptContentPromptsResponse200ApplicationJSONResponseBody2$inboundSchema:
|
|
5030
4706
|
z.ZodType<
|
|
@@ -5620,9 +5296,6 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5620
5296
|
load_balancer: z.lazy(() => CreatePromptLoadBalancerPrompts1$inboundSchema)
|
|
5621
5297
|
.optional(),
|
|
5622
5298
|
timeout: z.lazy(() => CreatePromptPromptsTimeout$inboundSchema).optional(),
|
|
5623
|
-
cache_control: z.lazy(() => CreatePromptPromptsCacheControl$inboundSchema)
|
|
5624
|
-
.optional(),
|
|
5625
|
-
prompt_cache_key: z.string().optional(),
|
|
5626
5299
|
messages: z.array(
|
|
5627
5300
|
z.union([
|
|
5628
5301
|
z.lazy(() => CreatePromptMessagesPromptsSystemMessage$inboundSchema),
|
|
@@ -5648,8 +5321,6 @@ export const PromptField$inboundSchema: z.ZodType<
|
|
|
5648
5321
|
"tool_choice": "toolChoice",
|
|
5649
5322
|
"parallel_tool_calls": "parallelToolCalls",
|
|
5650
5323
|
"load_balancer": "loadBalancer",
|
|
5651
|
-
"cache_control": "cacheControl",
|
|
5652
|
-
"prompt_cache_key": "promptCacheKey",
|
|
5653
5324
|
});
|
|
5654
5325
|
});
|
|
5655
5326
|
|
|
@@ -5704,7 +5375,7 @@ export const CreatePromptPrompt$inboundSchema: z.ZodType<
|
|
|
5704
5375
|
unknown
|
|
5705
5376
|
> = z.object({
|
|
5706
5377
|
_id: z.string(),
|
|
5707
|
-
type:
|
|
5378
|
+
type: CreatePromptPromptsType$inboundSchema,
|
|
5708
5379
|
owner: z.string(),
|
|
5709
5380
|
domain_id: z.string(),
|
|
5710
5381
|
created: z.string(),
|