@orq-ai/node 4.15.13 → 4.15.15
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +5 -5
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/apiKeysCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/evalsGet.ts +1 -1
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +3 -0
- package/packages/orq-rc/src/funcs/feedbackSubmit.ts +162 -0
- package/packages/orq-rc/src/funcs/knowledgeCreate.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDelete.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeDeleteDatasource.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeRetrieve.ts +1 -1
- package/packages/orq-rc/src/funcs/knowledgeUpdate.ts +1 -1
- package/packages/orq-rc/src/funcs/modelFusionsCreate.ts +162 -0
- package/packages/orq-rc/src/funcs/modelFusionsDelete.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsGet.ts +168 -0
- package/packages/orq-rc/src/funcs/modelFusionsList.ts +173 -0
- package/packages/orq-rc/src/funcs/modelFusionsSetEnabled.ts +174 -0
- package/packages/orq-rc/src/funcs/modelFusionsUpdate.ts +171 -0
- package/packages/orq-rc/src/funcs/modelsUpdateAwsBedrock.ts +1 -1
- package/packages/orq-rc/src/funcs/tracesGetConversation.ts +174 -0
- package/packages/orq-rc/src/funcs/tracesListFilters.ts +170 -0
- package/packages/orq-rc/src/funcs/tracesQuery.ts +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/aggregatetracesrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/alert.ts +7 -7
- package/packages/orq-rc/src/models/components/alerttrigger.ts +5 -4
- package/packages/orq-rc/src/models/components/allprojectsscope.ts +25 -0
- package/packages/orq-rc/src/models/components/annotationfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/budgetlimits.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetlimitsrestresponse.ts +2 -4
- package/packages/orq-rc/src/models/components/budgetrestresponse.ts +11 -12
- package/packages/orq-rc/src/models/components/budgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/budgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/createdatasetrequest.ts +6 -0
- package/packages/orq-rc/src/models/components/createmodelfusionrequest.ts +95 -0
- package/packages/orq-rc/src/models/components/createmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/datapoint.ts +3 -5
- package/packages/orq-rc/src/models/components/deletemodelfusionresponse.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorfilter.ts +43 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +29 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +24 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +28 -0
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +27 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +29 -0
- package/packages/orq-rc/src/models/components/fieldinfo.ts +2 -0
- package/packages/orq-rc/src/models/components/getmodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/gettraceconversationresponse.ts +63 -0
- package/packages/orq-rc/src/models/components/identity.ts +11 -12
- package/packages/orq-rc/src/models/components/index.ts +24 -2
- package/packages/orq-rc/src/models/components/knowledgesettings.ts +5 -5
- package/packages/orq-rc/src/models/components/listmodelfusionsresponse.ts +41 -0
- package/packages/orq-rc/src/models/components/listtracefiltersresponse.ts +47 -0
- package/packages/orq-rc/src/models/components/memorystoreembeddingconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/metadatafilter.ts +33 -0
- package/packages/orq-rc/src/models/components/modelbudgetscope.ts +1 -1
- package/packages/orq-rc/src/models/components/modelbudgetscoperestresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/modelfusion.ts +110 -0
- package/packages/orq-rc/src/models/components/modelfusionconfig.ts +104 -0
- package/packages/orq-rc/src/models/components/modelfusionpreset.ts +25 -0
- package/packages/orq-rc/src/models/components/modelfusionsynthesismode.ts +26 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +16 -0
- package/packages/orq-rc/src/models/components/pricing.ts +8 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +8 -0
- package/packages/orq-rc/src/models/components/project.ts +1 -4
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -0
- package/packages/orq-rc/src/models/components/querytelemetryrequest.ts +14 -0
- package/packages/orq-rc/src/models/components/ratelimit.ts +2 -2
- package/packages/orq-rc/src/models/components/ratelimitrestresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/requestprojectscope.ts +71 -0
- package/packages/orq-rc/src/models/components/responsemeta.ts +3 -3
- package/packages/orq-rc/src/models/components/{internalretrievalconfig.ts → retrievalconfig.ts} +7 -7
- package/packages/orq-rc/src/models/components/searchknowledgerequest.ts +4 -4
- package/packages/orq-rc/src/models/components/searchlogsresponse.ts +2 -2
- package/packages/orq-rc/src/models/components/searchrerankconfig.ts +1 -1
- package/packages/orq-rc/src/models/components/servertoolusedetails.ts +3 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledrequest.ts +33 -0
- package/packages/orq-rc/src/models/components/setmodelfusionenabledresponse.ts +37 -0
- package/packages/orq-rc/src/models/components/sharing.ts +2 -3
- package/packages/orq-rc/src/models/components/singleprojectscope.ts +36 -0
- package/packages/orq-rc/src/models/components/submitfeedbackrequest.ts +48 -0
- package/packages/orq-rc/src/models/components/submitfeedbackresponse.ts +39 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionrequest.ts +77 -0
- package/packages/orq-rc/src/models/components/updatemodelfusionresponse.ts +37 -0
- package/packages/orq-rc/src/models/operations/apikeycreate.ts +6 -26
- package/packages/orq-rc/src/models/operations/apikeyupdate.ts +6 -3
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/createannotation.ts +15 -29
- package/packages/orq-rc/src/models/operations/createchatcompletion.ts +5 -5
- package/packages/orq-rc/src/models/operations/createcompletion.ts +4 -4
- package/packages/orq-rc/src/models/operations/createimage.ts +1 -1
- package/packages/orq-rc/src/models/operations/createimageedit.ts +1 -1
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +30 -9
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- 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 +7 -0
- package/packages/orq-rc/src/models/operations/listagents.ts +30 -1
- package/packages/orq-rc/src/models/operations/modelfusiondelete.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionget.ts +36 -0
- package/packages/orq-rc/src/models/operations/modelfusionlist.ts +53 -0
- package/packages/orq-rc/src/models/operations/modelfusionsetenabled.ts +45 -0
- package/packages/orq-rc/src/models/operations/modelfusionupdate.ts +41 -0
- package/packages/orq-rc/src/models/operations/parse.ts +3 -3
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedback.ts +31 -30
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/packages/orq-rc/src/models/operations/postv2feedbackremove.ts +17 -14
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +31 -1
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -0
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/skilllist.ts +2 -2
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/tracesgetconversation.ts +45 -0
- package/packages/orq-rc/src/models/operations/traceslistfilters.ts +39 -0
- package/packages/orq-rc/src/models/operations/updateagent.ts +60 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/apikeys.ts +1 -1
- package/packages/orq-rc/src/sdk/evals.ts +1 -1
- package/packages/orq-rc/src/sdk/feedback.ts +29 -4
- package/packages/orq-rc/src/sdk/knowledge.ts +5 -5
- package/packages/orq-rc/src/sdk/modelfusions.ts +118 -0
- package/packages/orq-rc/src/sdk/models.ts +1 -1
- package/packages/orq-rc/src/sdk/sdk.ts +6 -0
- package/packages/orq-rc/src/sdk/traces.ts +37 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +5 -5
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/models/components/projectscope.ts +0 -35
|
@@ -470,7 +470,7 @@ export type CreateCompletionFilterBy1 =
|
|
|
470
470
|
| CreateCompletion1Nin;
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/
|
|
473
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
|
|
474
474
|
*/
|
|
475
475
|
export type CreateCompletionFilterBy =
|
|
476
476
|
| CreateCompletionFilterByAnd
|
|
@@ -510,7 +510,7 @@ export type CreateCompletionSearchOptions = {
|
|
|
510
510
|
*/
|
|
511
511
|
export type CreateCompletionRerankConfig = {
|
|
512
512
|
/**
|
|
513
|
-
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/
|
|
513
|
+
* The name of the rerank model to use. Refer to the [model list](https://docs.orq.ai/ai-gateway/supported-models#rerank-models).
|
|
514
514
|
*/
|
|
515
515
|
model: string;
|
|
516
516
|
/**
|
|
@@ -528,7 +528,7 @@ export type CreateCompletionRerankConfig = {
|
|
|
528
528
|
*/
|
|
529
529
|
export type CreateCompletionAgenticRagConfig = {
|
|
530
530
|
/**
|
|
531
|
-
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/
|
|
531
|
+
* The name of the model for the Agent to use. Refer to the [model list](https://docs.orq.ai/ai-gateway/supported-models#chat-models).
|
|
532
532
|
*/
|
|
533
533
|
model: string;
|
|
534
534
|
};
|
|
@@ -547,7 +547,7 @@ export type CreateCompletionKnowledgeBases = {
|
|
|
547
547
|
*/
|
|
548
548
|
searchType?: CreateCompletionSearchType | null | undefined;
|
|
549
549
|
/**
|
|
550
|
-
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/
|
|
550
|
+
* The metadata filter to apply to the search. Check the [Searching a Knowledge Base](https://docs.orq.ai/ai-studio/ai-engineering/knowledge-bases#search-a-knowledge-base) for more information.
|
|
551
551
|
*/
|
|
552
552
|
filterBy?: CreateCompletionFilterByAnd | CreateCompletionFilterByOr | {
|
|
553
553
|
[k: string]:
|
|
@@ -266,7 +266,7 @@ export type CreateImageEditOrq = {
|
|
|
266
266
|
|
|
267
267
|
export type CreateImageEditRequestBody = {
|
|
268
268
|
/**
|
|
269
|
-
* The model to use for image edit. [Check models](https://docs.orq.ai/
|
|
269
|
+
* The model to use for image edit. [Check models](https://docs.orq.ai/ai-gateway/supported-models#image-models)
|
|
270
270
|
*/
|
|
271
271
|
model: string;
|
|
272
272
|
/**
|
|
@@ -810,7 +810,7 @@ export type PromptInput = {
|
|
|
810
810
|
| CreatePromptMessagesToolMessage
|
|
811
811
|
>;
|
|
812
812
|
/**
|
|
813
|
-
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`. The full list of models can be found at https://docs.orq.ai/
|
|
813
|
+
* Model ID used to generate the response, like `openai/gpt-5.6-sol` or `anthropic/claude-sonnet-5`. For private models, use format: `{workspaceKey}@{provider}/{model}`. The full list of models can be found at https://docs.orq.ai/ai-gateway/supported-models. Only chat models are supported.
|
|
814
814
|
*/
|
|
815
815
|
model?: string | undefined;
|
|
816
816
|
/**
|
|
@@ -475,18 +475,19 @@ export type CreateRouterResponseInput =
|
|
|
475
475
|
| Array<CreateRouterResponseInput2>;
|
|
476
476
|
|
|
477
477
|
/**
|
|
478
|
-
* Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
478
|
+
* Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
479
479
|
*/
|
|
480
480
|
export const ServiceTier = {
|
|
481
481
|
Auto: "auto",
|
|
482
482
|
Default: "default",
|
|
483
483
|
Flex: "flex",
|
|
484
484
|
Fast: "fast",
|
|
485
|
+
Ultrafast: "ultrafast",
|
|
485
486
|
Scale: "scale",
|
|
486
487
|
Priority: "priority",
|
|
487
488
|
} as const;
|
|
488
489
|
/**
|
|
489
|
-
* Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
490
|
+
* Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
490
491
|
*/
|
|
491
492
|
export type ServiceTier = ClosedEnum<typeof ServiceTier>;
|
|
492
493
|
|
|
@@ -684,6 +685,7 @@ export const CreateRouterResponseToolsResponsesRequestType = {
|
|
|
684
685
|
OrqWebFetch: "orq:web_fetch",
|
|
685
686
|
OrqDatetime: "orq:datetime",
|
|
686
687
|
OrqSearchModels: "orq:search_models",
|
|
688
|
+
OrqToolSearch: "orq:tool_search",
|
|
687
689
|
OrqImageGeneration: "orq:image_generation",
|
|
688
690
|
OrqApplyPatch: "orq:apply_patch",
|
|
689
691
|
OrqFusion: "orq:fusion",
|
|
@@ -713,6 +715,10 @@ export type OrqAiTool = {
|
|
|
713
715
|
* Files to stage in /workspace for orq:code_interpreter. Maximum 10 files.
|
|
714
716
|
*/
|
|
715
717
|
files?: Array<Files> | undefined;
|
|
718
|
+
/**
|
|
719
|
+
* Maximum results per call for orq:search_models (1-20, default 5) and orq:tool_search (1-50, default 5).
|
|
720
|
+
*/
|
|
721
|
+
maxResults?: number | undefined;
|
|
716
722
|
/**
|
|
717
723
|
* Network access intent for orq:code_interpreter. Stored and validated today; runtime enforcement by the sandbox egress layer is rolling out and until then sandbox executions retain default public internet egress.
|
|
718
724
|
*/
|
|
@@ -814,6 +820,10 @@ export type ToolsFunction = {
|
|
|
814
820
|
*/
|
|
815
821
|
async?: boolean | undefined;
|
|
816
822
|
cacheControl?: ToolsCacheControl | undefined;
|
|
823
|
+
/**
|
|
824
|
+
* Hide this tool from the model until an orq:tool_search call reveals it. Requires an orq:tool_search tool in the same request.
|
|
825
|
+
*/
|
|
826
|
+
deferLoading?: boolean | undefined;
|
|
817
827
|
/**
|
|
818
828
|
* A description of what the function does.
|
|
819
829
|
*/
|
|
@@ -846,6 +856,7 @@ export type CreateRouterResponseTools =
|
|
|
846
856
|
| (OrqAiTool & { type: "orq:web_fetch" })
|
|
847
857
|
| (OrqAiTool & { type: "orq:datetime" })
|
|
848
858
|
| (OrqAiTool & { type: "orq:search_models" })
|
|
859
|
+
| (OrqAiTool & { type: "orq:tool_search" })
|
|
849
860
|
| (OrqAiTool & { type: "orq:image_generation" })
|
|
850
861
|
| (OrqAiTool & { type: "orq:apply_patch" })
|
|
851
862
|
| (OrqAiTool & { type: "orq:fusion" })
|
|
@@ -945,7 +956,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
945
956
|
safetyIdentifier?: string | undefined;
|
|
946
957
|
security?: components.SecurityConfig | undefined;
|
|
947
958
|
/**
|
|
948
|
-
* Processing mode for the request. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
959
|
+
* Processing mode for the request. Ultrafast is available for GPT-6 Astra on US/global processing. Fast uses premium low-latency processing; priority remains a backward-compatible alias.
|
|
949
960
|
*/
|
|
950
961
|
serviceTier?: ServiceTier | undefined;
|
|
951
962
|
/**
|
|
@@ -961,10 +972,6 @@ export type CreateRouterResponseRequestBody = {
|
|
|
961
972
|
*/
|
|
962
973
|
stream?: boolean | undefined;
|
|
963
974
|
streamOptions?: components.StreamOptions | undefined;
|
|
964
|
-
/**
|
|
965
|
-
* Tags attached to the request trace.
|
|
966
|
-
*/
|
|
967
|
-
tags?: Array<string> | null | undefined;
|
|
968
975
|
/**
|
|
969
976
|
* Sampling temperature between 0 and 2.
|
|
970
977
|
*/
|
|
@@ -997,6 +1004,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
997
1004
|
| (OrqAiTool & { type: "orq:web_fetch" })
|
|
998
1005
|
| (OrqAiTool & { type: "orq:datetime" })
|
|
999
1006
|
| (OrqAiTool & { type: "orq:search_models" })
|
|
1007
|
+
| (OrqAiTool & { type: "orq:tool_search" })
|
|
1000
1008
|
| (OrqAiTool & { type: "orq:image_generation" })
|
|
1001
1009
|
| (OrqAiTool & { type: "orq:apply_patch" })
|
|
1002
1010
|
| (OrqAiTool & { type: "orq:fusion" })
|
|
@@ -1046,6 +1054,7 @@ export const CreateRouterResponseServiceTier = {
|
|
|
1046
1054
|
Default: "default",
|
|
1047
1055
|
Flex: "flex",
|
|
1048
1056
|
Fast: "fast",
|
|
1057
|
+
Ultrafast: "ultrafast",
|
|
1049
1058
|
Scale: "scale",
|
|
1050
1059
|
Priority: "priority",
|
|
1051
1060
|
} as const;
|
|
@@ -1852,6 +1861,7 @@ export const CreateRouterResponseToolsResponsesRequestType$outboundSchema:
|
|
|
1852
1861
|
/** @internal */
|
|
1853
1862
|
export type OrqAiTool$Outbound = {
|
|
1854
1863
|
files?: Array<Files$Outbound> | undefined;
|
|
1864
|
+
max_results?: number | undefined;
|
|
1855
1865
|
network?: Network$Outbound | undefined;
|
|
1856
1866
|
timezone?: string | undefined;
|
|
1857
1867
|
tool_id?: string | undefined;
|
|
@@ -1865,12 +1875,14 @@ export const OrqAiTool$outboundSchema: z.ZodType<
|
|
|
1865
1875
|
OrqAiTool
|
|
1866
1876
|
> = z.object({
|
|
1867
1877
|
files: z.array(z.lazy(() => Files$outboundSchema)).optional(),
|
|
1878
|
+
maxResults: z.number().int().optional(),
|
|
1868
1879
|
network: z.lazy(() => Network$outboundSchema).optional(),
|
|
1869
1880
|
timezone: z.string().optional(),
|
|
1870
1881
|
toolId: z.string().optional(),
|
|
1871
1882
|
type: CreateRouterResponseToolsResponsesRequestType$outboundSchema,
|
|
1872
1883
|
}).transform((v) => {
|
|
1873
1884
|
return remap$(v, {
|
|
1885
|
+
maxResults: "max_results",
|
|
1874
1886
|
toolId: "tool_id",
|
|
1875
1887
|
});
|
|
1876
1888
|
});
|
|
@@ -1939,6 +1951,7 @@ export function toolsCacheControlToJSON(
|
|
|
1939
1951
|
export type ToolsFunction$Outbound = {
|
|
1940
1952
|
async?: boolean | undefined;
|
|
1941
1953
|
cache_control?: ToolsCacheControl$Outbound | undefined;
|
|
1954
|
+
defer_loading?: boolean | undefined;
|
|
1942
1955
|
description?: string | undefined;
|
|
1943
1956
|
name: string;
|
|
1944
1957
|
parameters?: { [k: string]: any } | undefined;
|
|
@@ -1954,6 +1967,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
|
|
|
1954
1967
|
> = z.object({
|
|
1955
1968
|
async: z.boolean().optional(),
|
|
1956
1969
|
cacheControl: z.lazy(() => ToolsCacheControl$outboundSchema).optional(),
|
|
1970
|
+
deferLoading: z.boolean().optional(),
|
|
1957
1971
|
description: z.string().optional(),
|
|
1958
1972
|
name: z.string(),
|
|
1959
1973
|
parameters: z.record(z.any()).optional(),
|
|
@@ -1962,6 +1976,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
|
|
|
1962
1976
|
}).transform((v) => {
|
|
1963
1977
|
return remap$(v, {
|
|
1964
1978
|
cacheControl: "cache_control",
|
|
1979
|
+
deferLoading: "defer_loading",
|
|
1965
1980
|
});
|
|
1966
1981
|
});
|
|
1967
1982
|
|
|
@@ -1980,6 +1995,7 @@ export type CreateRouterResponseTools$Outbound =
|
|
|
1980
1995
|
| (OrqAiTool$Outbound & { type: "orq:web_fetch" })
|
|
1981
1996
|
| (OrqAiTool$Outbound & { type: "orq:datetime" })
|
|
1982
1997
|
| (OrqAiTool$Outbound & { type: "orq:search_models" })
|
|
1998
|
+
| (OrqAiTool$Outbound & { type: "orq:tool_search" })
|
|
1983
1999
|
| (OrqAiTool$Outbound & { type: "orq:image_generation" })
|
|
1984
2000
|
| (OrqAiTool$Outbound & { type: "orq:apply_patch" })
|
|
1985
2001
|
| (OrqAiTool$Outbound & { type: "orq:fusion" })
|
|
@@ -2022,6 +2038,9 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
|
|
|
2022
2038
|
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2023
2039
|
z.object({ type: z.literal("orq:search_models") }),
|
|
2024
2040
|
),
|
|
2041
|
+
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2042
|
+
z.object({ type: z.literal("orq:tool_search") }),
|
|
2043
|
+
),
|
|
2025
2044
|
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2026
2045
|
z.object({ type: z.literal("orq:image_generation") }),
|
|
2027
2046
|
),
|
|
@@ -2109,7 +2128,6 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2109
2128
|
store?: boolean | undefined;
|
|
2110
2129
|
stream?: boolean | undefined;
|
|
2111
2130
|
stream_options?: components.StreamOptions$Outbound | undefined;
|
|
2112
|
-
tags?: Array<string> | null | undefined;
|
|
2113
2131
|
temperature?: number | undefined;
|
|
2114
2132
|
template_engine?: string | undefined;
|
|
2115
2133
|
text?: CreateRouterResponseText$Outbound | undefined;
|
|
@@ -2127,6 +2145,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2127
2145
|
| (OrqAiTool$Outbound & { type: "orq:web_fetch" })
|
|
2128
2146
|
| (OrqAiTool$Outbound & { type: "orq:datetime" })
|
|
2129
2147
|
| (OrqAiTool$Outbound & { type: "orq:search_models" })
|
|
2148
|
+
| (OrqAiTool$Outbound & { type: "orq:tool_search" })
|
|
2130
2149
|
| (OrqAiTool$Outbound & { type: "orq:image_generation" })
|
|
2131
2150
|
| (OrqAiTool$Outbound & { type: "orq:apply_patch" })
|
|
2132
2151
|
| (OrqAiTool$Outbound & { type: "orq:fusion" })
|
|
@@ -2195,7 +2214,6 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2195
2214
|
store: z.boolean().optional(),
|
|
2196
2215
|
stream: z.boolean().optional(),
|
|
2197
2216
|
streamOptions: components.StreamOptions$outboundSchema.optional(),
|
|
2198
|
-
tags: z.nullable(z.array(z.string())).optional(),
|
|
2199
2217
|
temperature: z.number().optional(),
|
|
2200
2218
|
templateEngine: TemplateEngine$outboundSchema.optional(),
|
|
2201
2219
|
text: z.lazy(() => CreateRouterResponseText$outboundSchema).optional(),
|
|
@@ -2228,6 +2246,9 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2228
2246
|
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2229
2247
|
z.object({ type: z.literal("orq:search_models") }),
|
|
2230
2248
|
),
|
|
2249
|
+
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2250
|
+
z.object({ type: z.literal("orq:tool_search") }),
|
|
2251
|
+
),
|
|
2231
2252
|
z.lazy(() => OrqAiTool$outboundSchema).and(
|
|
2232
2253
|
z.object({ type: z.literal("orq:image_generation") }),
|
|
2233
2254
|
),
|
|
@@ -1575,7 +1575,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1575
1575
|
z.ZodTypeDef,
|
|
1576
1576
|
unknown
|
|
1577
1577
|
> = z.object({
|
|
1578
|
-
_id: z.string().default("
|
|
1578
|
+
_id: z.string().default("tool_01M3XNEKW15JRGRHEG1TSG1A28"),
|
|
1579
1579
|
path: z.string(),
|
|
1580
1580
|
key: z.string(),
|
|
1581
1581
|
display_name: z.string().optional(),
|
|
@@ -1761,7 +1761,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1761
1761
|
z.ZodTypeDef,
|
|
1762
1762
|
unknown
|
|
1763
1763
|
> = z.object({
|
|
1764
|
-
_id: z.string().default("
|
|
1764
|
+
_id: z.string().default("tool_01M3XNEKW1DJQPVPM0TKT56HKW"),
|
|
1765
1765
|
path: z.string(),
|
|
1766
1766
|
key: z.string(),
|
|
1767
1767
|
display_name: z.string().optional(),
|
|
@@ -1854,7 +1854,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1854
1854
|
z.ZodTypeDef,
|
|
1855
1855
|
unknown
|
|
1856
1856
|
> = z.object({
|
|
1857
|
-
_id: z.string().default("
|
|
1857
|
+
_id: z.string().default("tool_01M3XNEKW0GVVJ2AE1D9W31DMS"),
|
|
1858
1858
|
path: z.string(),
|
|
1859
1859
|
key: z.string(),
|
|
1860
1860
|
display_name: z.string().optional(),
|
|
@@ -1955,7 +1955,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1955
1955
|
z.ZodTypeDef,
|
|
1956
1956
|
unknown
|
|
1957
1957
|
> = z.object({
|
|
1958
|
-
_id: z.string().default("
|
|
1958
|
+
_id: z.string().default("tool_01M3XNEKW00AMMEJBWP6Q0HEJ2"),
|
|
1959
1959
|
path: z.string(),
|
|
1960
1960
|
key: z.string(),
|
|
1961
1961
|
display_name: z.string().optional(),
|
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M3XNEKVY21EBMVMPVK3K8375"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M3XNEKVXBFCVT73PXHQ4P6Z4"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M3XNEKVX540WNQJ6YWMVD4WC"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M3XNEKVXAMYJ07MZVJ0J1ATG"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -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-
|
|
143
|
+
"2026-10-02T06:39:53.322Z",
|
|
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-
|
|
188
|
+
"2026-10-02T06:39:53.322Z",
|
|
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-
|
|
144
|
+
"2026-10-02T06:39:53.322Z",
|
|
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-
|
|
189
|
+
"2026-10-02T06:39:53.322Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -168,6 +168,11 @@ export * from "./modelcreatevertex.js";
|
|
|
168
168
|
export * from "./modeldelete.js";
|
|
169
169
|
export * from "./modeldisable.js";
|
|
170
170
|
export * from "./modelenable.js";
|
|
171
|
+
export * from "./modelfusiondelete.js";
|
|
172
|
+
export * from "./modelfusionget.js";
|
|
173
|
+
export * from "./modelfusionlist.js";
|
|
174
|
+
export * from "./modelfusionsetenabled.js";
|
|
175
|
+
export * from "./modelfusionupdate.js";
|
|
171
176
|
export * from "./modelupdate.js";
|
|
172
177
|
export * from "./modelupdateawsbedrock.js";
|
|
173
178
|
export * from "./modelupdateopenailike.js";
|
|
@@ -233,8 +238,10 @@ export * from "./streamagent.js";
|
|
|
233
238
|
export * from "./streamrunagent.js";
|
|
234
239
|
export * from "./telemetrylistcapabilities.js";
|
|
235
240
|
export * from "./tracesget.js";
|
|
241
|
+
export * from "./tracesgetconversation.js";
|
|
236
242
|
export * from "./tracesgetspan.js";
|
|
237
243
|
export * from "./traceslistfacetvalues.js";
|
|
244
|
+
export * from "./traceslistfilters.js";
|
|
238
245
|
export * from "./traceslistspans.js";
|
|
239
246
|
export * from "./triggeragentschedule.js";
|
|
240
247
|
export * from "./updateagent.js";
|
|
@@ -70,6 +70,11 @@ export type ListAgentsTeamOfAgents = {
|
|
|
70
70
|
role?: string | undefined;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
|
+
export type ListAgentsAgentPlugins = {
|
|
74
|
+
id: string;
|
|
75
|
+
version: string;
|
|
76
|
+
};
|
|
77
|
+
|
|
73
78
|
export type ListAgentsMetrics = {
|
|
74
79
|
totalCost: number;
|
|
75
80
|
};
|
|
@@ -1228,7 +1233,7 @@ export type ListAgentsFallbackModelConfiguration =
|
|
|
1228
1233
|
|
|
1229
1234
|
export type ListAgentsModel = {
|
|
1230
1235
|
/**
|
|
1231
|
-
*
|
|
1236
|
+
* ID of the primary model, in provider/model-id format (for example `openai/gpt-5.6-sol`)
|
|
1232
1237
|
*/
|
|
1233
1238
|
id: string;
|
|
1234
1239
|
/**
|
|
@@ -1293,6 +1298,7 @@ export type ListAgentsData = {
|
|
|
1293
1298
|
* List of skills that the agent can utilize. This field allows you to specify which skills the agent has access to, enabling more complex and dynamic behavior.
|
|
1294
1299
|
*/
|
|
1295
1300
|
skills?: Array<string> | undefined;
|
|
1301
|
+
agentPlugins?: Array<ListAgentsAgentPlugins> | undefined;
|
|
1296
1302
|
metrics?: ListAgentsMetrics | undefined;
|
|
1297
1303
|
/**
|
|
1298
1304
|
* Extracted variables from agent instructions
|
|
@@ -1393,6 +1399,26 @@ export function listAgentsTeamOfAgentsFromJSON(
|
|
|
1393
1399
|
);
|
|
1394
1400
|
}
|
|
1395
1401
|
|
|
1402
|
+
/** @internal */
|
|
1403
|
+
export const ListAgentsAgentPlugins$inboundSchema: z.ZodType<
|
|
1404
|
+
ListAgentsAgentPlugins,
|
|
1405
|
+
z.ZodTypeDef,
|
|
1406
|
+
unknown
|
|
1407
|
+
> = z.object({
|
|
1408
|
+
id: z.string(),
|
|
1409
|
+
version: z.string(),
|
|
1410
|
+
});
|
|
1411
|
+
|
|
1412
|
+
export function listAgentsAgentPluginsFromJSON(
|
|
1413
|
+
jsonString: string,
|
|
1414
|
+
): SafeParseResult<ListAgentsAgentPlugins, SDKValidationError> {
|
|
1415
|
+
return safeParse(
|
|
1416
|
+
jsonString,
|
|
1417
|
+
(x) => ListAgentsAgentPlugins$inboundSchema.parse(JSON.parse(x)),
|
|
1418
|
+
`Failed to parse 'ListAgentsAgentPlugins' from JSON`,
|
|
1419
|
+
);
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1396
1422
|
/** @internal */
|
|
1397
1423
|
export const ListAgentsMetrics$inboundSchema: z.ZodType<
|
|
1398
1424
|
ListAgentsMetrics,
|
|
@@ -2979,6 +3005,8 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
2979
3005
|
team_of_agents: z.array(z.lazy(() => ListAgentsTeamOfAgents$inboundSchema))
|
|
2980
3006
|
.optional(),
|
|
2981
3007
|
skills: z.array(z.string()).optional(),
|
|
3008
|
+
agent_plugins: z.array(z.lazy(() => ListAgentsAgentPlugins$inboundSchema))
|
|
3009
|
+
.optional(),
|
|
2982
3010
|
metrics: z.lazy(() => ListAgentsMetrics$inboundSchema).optional(),
|
|
2983
3011
|
variables: z.record(z.any()).optional(),
|
|
2984
3012
|
knowledge_bases: z.array(z.lazy(() => ListAgentsKnowledgeBases$inboundSchema))
|
|
@@ -3000,6 +3028,7 @@ export const ListAgentsData$inboundSchema: z.ZodType<
|
|
|
3000
3028
|
"updated_by_id": "updatedById",
|
|
3001
3029
|
"memory_stores": "memoryStores",
|
|
3002
3030
|
"team_of_agents": "teamOfAgents",
|
|
3031
|
+
"agent_plugins": "agentPlugins",
|
|
3003
3032
|
"knowledge_bases": "knowledgeBases",
|
|
3004
3033
|
"system_prompt": "systemPrompt",
|
|
3005
3034
|
});
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ModelFusionDeleteRequest = {
|
|
9
|
+
modelFusionId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ModelFusionDeleteRequest$Outbound = {
|
|
14
|
+
model_fusion_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ModelFusionDeleteRequest$outboundSchema: z.ZodType<
|
|
19
|
+
ModelFusionDeleteRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
ModelFusionDeleteRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
modelFusionId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
modelFusionId: "model_fusion_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function modelFusionDeleteRequestToJSON(
|
|
31
|
+
modelFusionDeleteRequest: ModelFusionDeleteRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
ModelFusionDeleteRequest$outboundSchema.parse(modelFusionDeleteRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type ModelFusionGetRequest = {
|
|
9
|
+
modelFusionId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type ModelFusionGetRequest$Outbound = {
|
|
14
|
+
model_fusion_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const ModelFusionGetRequest$outboundSchema: z.ZodType<
|
|
19
|
+
ModelFusionGetRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
ModelFusionGetRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
modelFusionId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
modelFusionId: "model_fusion_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function modelFusionGetRequestToJSON(
|
|
31
|
+
modelFusionGetRequest: ModelFusionGetRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
ModelFusionGetRequest$outboundSchema.parse(modelFusionGetRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type ModelFusionListRequest = {
|
|
10
|
+
limit?: number | undefined;
|
|
11
|
+
startingAfter?: string | undefined;
|
|
12
|
+
endingBefore?: string | undefined;
|
|
13
|
+
search?: string | undefined;
|
|
14
|
+
preset?: Array<components.ModelFusionPreset> | undefined;
|
|
15
|
+
enabled?: boolean | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export type ModelFusionListRequest$Outbound = {
|
|
20
|
+
limit?: number | undefined;
|
|
21
|
+
starting_after?: string | undefined;
|
|
22
|
+
ending_before?: string | undefined;
|
|
23
|
+
search?: string | undefined;
|
|
24
|
+
preset?: Array<string> | undefined;
|
|
25
|
+
enabled?: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export const ModelFusionListRequest$outboundSchema: z.ZodType<
|
|
30
|
+
ModelFusionListRequest$Outbound,
|
|
31
|
+
z.ZodTypeDef,
|
|
32
|
+
ModelFusionListRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
limit: z.number().int().optional(),
|
|
35
|
+
startingAfter: z.string().optional(),
|
|
36
|
+
endingBefore: z.string().optional(),
|
|
37
|
+
search: z.string().optional(),
|
|
38
|
+
preset: z.array(components.ModelFusionPreset$outboundSchema).optional(),
|
|
39
|
+
enabled: z.boolean().optional(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
startingAfter: "starting_after",
|
|
43
|
+
endingBefore: "ending_before",
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
export function modelFusionListRequestToJSON(
|
|
48
|
+
modelFusionListRequest: ModelFusionListRequest,
|
|
49
|
+
): string {
|
|
50
|
+
return JSON.stringify(
|
|
51
|
+
ModelFusionListRequest$outboundSchema.parse(modelFusionListRequest),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type ModelFusionSetEnabledRequest = {
|
|
10
|
+
modelFusionId: string;
|
|
11
|
+
setModelFusionEnabledRequest: components.SetModelFusionEnabledRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ModelFusionSetEnabledRequest$Outbound = {
|
|
16
|
+
model_fusion_id: string;
|
|
17
|
+
SetModelFusionEnabledRequest:
|
|
18
|
+
components.SetModelFusionEnabledRequest$Outbound;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ModelFusionSetEnabledRequest$outboundSchema: z.ZodType<
|
|
23
|
+
ModelFusionSetEnabledRequest$Outbound,
|
|
24
|
+
z.ZodTypeDef,
|
|
25
|
+
ModelFusionSetEnabledRequest
|
|
26
|
+
> = z.object({
|
|
27
|
+
modelFusionId: z.string(),
|
|
28
|
+
setModelFusionEnabledRequest:
|
|
29
|
+
components.SetModelFusionEnabledRequest$outboundSchema,
|
|
30
|
+
}).transform((v) => {
|
|
31
|
+
return remap$(v, {
|
|
32
|
+
modelFusionId: "model_fusion_id",
|
|
33
|
+
setModelFusionEnabledRequest: "SetModelFusionEnabledRequest",
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export function modelFusionSetEnabledRequestToJSON(
|
|
38
|
+
modelFusionSetEnabledRequest: ModelFusionSetEnabledRequest,
|
|
39
|
+
): string {
|
|
40
|
+
return JSON.stringify(
|
|
41
|
+
ModelFusionSetEnabledRequest$outboundSchema.parse(
|
|
42
|
+
modelFusionSetEnabledRequest,
|
|
43
|
+
),
|
|
44
|
+
);
|
|
45
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as components from "../components/index.js";
|
|
8
|
+
|
|
9
|
+
export type ModelFusionUpdateRequest = {
|
|
10
|
+
modelFusionId: string;
|
|
11
|
+
updateModelFusionRequest: components.UpdateModelFusionRequest;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/** @internal */
|
|
15
|
+
export type ModelFusionUpdateRequest$Outbound = {
|
|
16
|
+
model_fusion_id: string;
|
|
17
|
+
UpdateModelFusionRequest: components.UpdateModelFusionRequest$Outbound;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const ModelFusionUpdateRequest$outboundSchema: z.ZodType<
|
|
22
|
+
ModelFusionUpdateRequest$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
ModelFusionUpdateRequest
|
|
25
|
+
> = z.object({
|
|
26
|
+
modelFusionId: z.string(),
|
|
27
|
+
updateModelFusionRequest: components.UpdateModelFusionRequest$outboundSchema,
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
modelFusionId: "model_fusion_id",
|
|
31
|
+
updateModelFusionRequest: "UpdateModelFusionRequest",
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
export function modelFusionUpdateRequestToJSON(
|
|
36
|
+
modelFusionUpdateRequest: ModelFusionUpdateRequest,
|
|
37
|
+
): string {
|
|
38
|
+
return JSON.stringify(
|
|
39
|
+
ModelFusionUpdateRequest$outboundSchema.parse(modelFusionUpdateRequest),
|
|
40
|
+
);
|
|
41
|
+
}
|