@orq-ai/node 4.15.0-rc.22 → 4.15.0-rc.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -28
- package/funcs/hubGet.d.ts +18 -0
- package/funcs/hubGet.d.ts.map +1 -0
- package/funcs/hubGet.js +121 -0
- package/funcs/hubGet.js.map +1 -0
- package/funcs/hubSearch.d.ts +18 -0
- package/funcs/hubSearch.d.ts.map +1 -0
- package/funcs/hubSearch.js +120 -0
- package/funcs/hubSearch.js.map +1 -0
- package/funcs/sessionsCreate.d.ts +17 -0
- package/funcs/sessionsCreate.d.ts.map +1 -0
- package/funcs/sessionsCreate.js +115 -0
- package/funcs/sessionsCreate.js.map +1 -0
- package/funcs/sessionsDelete.d.ts +17 -0
- package/funcs/sessionsDelete.d.ts.map +1 -0
- package/funcs/sessionsDelete.js +121 -0
- package/funcs/sessionsDelete.js.map +1 -0
- package/funcs/sessionsGet.d.ts +18 -0
- package/funcs/sessionsGet.d.ts.map +1 -0
- package/funcs/sessionsGet.js +121 -0
- package/funcs/sessionsGet.js.map +1 -0
- package/funcs/sessionsGetCount.d.ts +17 -0
- package/funcs/sessionsGetCount.d.ts.map +1 -0
- package/funcs/sessionsGetCount.js +115 -0
- package/funcs/sessionsGetCount.js.map +1 -0
- package/funcs/sessionsList.d.ts +17 -0
- package/funcs/sessionsList.d.ts.map +1 -0
- package/funcs/sessionsList.js +115 -0
- package/funcs/sessionsList.js.map +1 -0
- package/funcs/sessionsListTags.d.ts +16 -0
- package/funcs/sessionsListTags.d.ts.map +1 -0
- package/funcs/sessionsListTags.js +105 -0
- package/funcs/sessionsListTags.js.map +1 -0
- package/funcs/sessionsUpdate.d.ts +18 -0
- package/funcs/sessionsUpdate.d.ts.map +1 -0
- package/funcs/sessionsUpdate.js +124 -0
- package/funcs/sessionsUpdate.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentresponserequest.d.ts +6 -6
- package/models/components/agentresponserequest.d.ts.map +1 -1
- package/models/components/agentresponserequest.js +6 -6
- package/models/components/agentresponserequest.js.map +1 -1
- package/models/components/createthreadrequest.d.ts +41 -0
- package/models/components/createthreadrequest.d.ts.map +1 -0
- package/models/components/createthreadrequest.js +75 -0
- package/models/components/createthreadrequest.js.map +1 -0
- package/models/components/gethubitemresponse.d.ts +11 -0
- package/models/components/gethubitemresponse.d.ts.map +1 -0
- package/models/components/gethubitemresponse.js +56 -0
- package/models/components/gethubitemresponse.js.map +1 -0
- package/models/components/getthreadcountrequest.d.ts +17 -0
- package/models/components/getthreadcountrequest.d.ts.map +1 -0
- package/models/components/getthreadcountrequest.js +52 -0
- package/models/components/getthreadcountrequest.js.map +1 -0
- package/models/components/getthreadcountresponse.d.ts +10 -0
- package/models/components/getthreadcountresponse.d.ts.map +1 -0
- package/models/components/getthreadcountresponse.js +50 -0
- package/models/components/getthreadcountresponse.js.map +1 -0
- package/models/components/hubitem.d.ts +71 -0
- package/models/components/hubitem.d.ts.map +1 -0
- package/models/components/hubitem.js +83 -0
- package/models/components/hubitem.js.map +1 -0
- package/models/components/hubitemsummary.d.ts +29 -0
- package/models/components/hubitemsummary.d.ts.map +1 -0
- package/models/components/hubitemsummary.js +60 -0
- package/models/components/hubitemsummary.js.map +1 -0
- package/models/components/hubsearchhit.d.ts +11 -0
- package/models/components/hubsearchhit.d.ts.map +1 -0
- package/models/components/hubsearchhit.js +51 -0
- package/models/components/hubsearchhit.js.map +1 -0
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/listthreadsrequest.d.ts +17 -0
- package/models/components/listthreadsrequest.d.ts.map +1 -0
- package/models/components/listthreadsrequest.js +52 -0
- package/models/components/listthreadsrequest.js.map +1 -0
- package/models/components/listthreadsresponse.d.ts +13 -0
- package/models/components/listthreadsresponse.d.ts.map +1 -0
- package/models/components/listthreadsresponse.js +58 -0
- package/models/components/listthreadsresponse.js.map +1 -0
- package/models/components/openaipromptcacheoptions.d.ts +37 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -0
- package/models/components/openaipromptcacheoptions.js +75 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -0
- package/models/components/publicresponseresource.d.ts +2 -0
- package/models/components/publicresponseresource.d.ts.map +1 -1
- package/models/components/publicresponseresource.js +3 -0
- package/models/components/publicresponseresource.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/searchhubitemsresponse.d.ts +11 -0
- package/models/components/searchhubitemsresponse.d.ts.map +1 -0
- package/models/components/searchhubitemsresponse.js +51 -0
- package/models/components/searchhubitemsresponse.js.map +1 -0
- package/models/components/sessioninterval.d.ts +19 -0
- package/models/components/sessioninterval.d.ts.map +1 -0
- package/models/components/sessioninterval.js +56 -0
- package/models/components/sessioninterval.js.map +1 -0
- package/models/components/textcontentpartschema.d.ts +5 -5
- package/models/components/textcontentpartschema.d.ts.map +1 -1
- package/models/components/textcontentpartschema.js +6 -6
- package/models/components/textcontentpartschema.js.map +1 -1
- package/models/components/thread.d.ts +54 -0
- package/models/components/thread.d.ts.map +1 -0
- package/models/components/thread.js +79 -0
- package/models/components/thread.js.map +1 -0
- package/models/components/threadbilling.d.ts +21 -0
- package/models/components/threadbilling.d.ts.map +1 -0
- package/models/components/threadbilling.js +75 -0
- package/models/components/threadbilling.js.map +1 -0
- package/models/components/threadfilters.d.ts +34 -0
- package/models/components/threadfilters.d.ts.map +1 -0
- package/models/components/threadfilters.js +65 -0
- package/models/components/threadfilters.js.map +1 -0
- package/models/components/threadkind.d.ts +13 -0
- package/models/components/threadkind.d.ts.map +1 -0
- package/models/components/threadkind.js +51 -0
- package/models/components/threadkind.js.map +1 -0
- package/models/components/threadusage.d.ts +21 -0
- package/models/components/threadusage.d.ts.map +1 -0
- package/models/components/threadusage.js +75 -0
- package/models/components/threadusage.js.map +1 -0
- package/models/components/updatethreadrequest.d.ts +51 -0
- package/models/components/updatethreadrequest.d.ts.map +1 -0
- package/models/components/updatethreadrequest.js +79 -0
- package/models/components/updatethreadrequest.js.map +1 -0
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +5 -5
- package/models/operations/createrouterresponse.d.ts +80 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +48 -5
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/deletesession.d.ts +12 -0
- package/models/operations/deletesession.d.ts.map +1 -0
- package/models/operations/deletesession.js +54 -0
- package/models/operations/deletesession.js.map +1 -0
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getsession.d.ts +12 -0
- package/models/operations/getsession.d.ts.map +1 -0
- package/models/operations/getsession.js +54 -0
- package/models/operations/getsession.js.map +1 -0
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/hubget.d.ts +12 -0
- package/models/operations/hubget.d.ts.map +1 -0
- package/models/operations/hubget.js +49 -0
- package/models/operations/hubget.js.map +1 -0
- package/models/operations/hubsearch.d.ts +14 -0
- package/models/operations/hubsearch.d.ts.map +1 -0
- package/models/operations/hubsearch.js +50 -0
- package/models/operations/hubsearch.js.map +1 -0
- package/models/operations/index.d.ts +5 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +5 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +5 -5
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/modelcreateopenailike.d.ts +4 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +4 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +4 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +4 -0
- package/models/operations/modelupdateopenailike.js.map +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/postv2routerocr.d.ts +24 -0
- package/models/operations/postv2routerocr.d.ts.map +1 -1
- package/models/operations/postv2routerocr.js +12 -0
- package/models/operations/postv2routerocr.js.map +1 -1
- package/models/operations/retrievedatapoint.js +5 -5
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrieveresponse.d.ts +1 -0
- package/models/operations/retrieveresponse.d.ts.map +1 -1
- package/models/operations/retrieveresponse.js +2 -0
- package/models/operations/retrieveresponse.js.map +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/updatesession.d.ts +15 -0
- package/models/operations/updatesession.d.ts.map +1 -0
- package/models/operations/updatesession.js +57 -0
- package/models/operations/updatesession.js.map +1 -0
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/hub.d.ts +20 -0
- package/sdk/hub.d.ts.map +1 -0
- package/sdk/hub.js +32 -0
- package/sdk/hub.js.map +1 -0
- package/sdk/sdk.d.ts +6 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +8 -0
- package/sdk/sdk.js.map +1 -1
- package/sdk/sessions.d.ts +55 -0
- package/sdk/sessions.d.ts.map +1 -0
- package/sdk/sessions.js +82 -0
- package/sdk/sessions.js.map +1 -0
- package/src/funcs/hubGet.ts +168 -0
- package/src/funcs/hubSearch.ts +169 -0
- package/src/funcs/sessionsCreate.ts +162 -0
- package/src/funcs/sessionsDelete.ts +168 -0
- package/src/funcs/sessionsGet.ts +168 -0
- package/src/funcs/sessionsGetCount.ts +162 -0
- package/src/funcs/sessionsList.ts +162 -0
- package/src/funcs/sessionsListTags.ts +144 -0
- package/src/funcs/sessionsUpdate.ts +171 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentresponserequest.ts +14 -10
- package/src/models/components/createthreadrequest.ts +91 -0
- package/src/models/components/gethubitemresponse.ts +37 -0
- package/src/models/components/getthreadcountrequest.ts +42 -0
- package/src/models/components/getthreadcountresponse.ts +31 -0
- package/src/models/components/hubitem.ts +136 -0
- package/src/models/components/hubitemsummary.ts +60 -0
- package/src/models/components/hubsearchhit.ts +35 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/listthreadsrequest.ts +42 -0
- package/src/models/components/listthreadsresponse.ts +41 -0
- package/src/models/components/openaipromptcacheoptions.ts +84 -0
- package/src/models/components/publicresponseresource.ts +7 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/searchhubitemsresponse.ts +32 -0
- package/src/models/components/sessioninterval.ts +26 -0
- package/src/models/components/textcontentpartschema.ts +13 -8
- package/src/models/components/thread.ts +101 -0
- package/src/models/components/threadbilling.ts +68 -0
- package/src/models/components/threadfilters.ts +66 -0
- package/src/models/components/threadkind.ts +20 -0
- package/src/models/components/threadusage.ts +68 -0
- package/src/models/components/updatethreadrequest.ts +105 -0
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +5 -5
- package/src/models/operations/createrouterresponse.ts +128 -9
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deletesession.ts +36 -0
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getsession.ts +36 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/hubget.ts +27 -0
- package/src/models/operations/hubsearch.ts +34 -0
- package/src/models/operations/index.ts +5 -0
- package/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/modelcreateopenailike.ts +8 -0
- package/src/models/operations/modelupdateopenailike.ts +8 -0
- 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/postv2routerocr.ts +36 -0
- package/src/models/operations/retrievedatapoint.ts +5 -5
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrieveresponse.ts +5 -0
- 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/updatesession.ts +41 -0
- package/src/models/operations/updatetool.ts +4 -4
- package/src/sdk/hub.ts +46 -0
- package/src/sdk/sdk.ts +12 -0
- package/src/sdk/sessions.ts +134 -0
|
@@ -332,6 +332,24 @@ export type CreateRouterResponseContent2 = TwoText | TwoImage | TwoFile;
|
|
|
332
332
|
*/
|
|
333
333
|
export type InputContent = string | Array<TwoText | TwoImage | TwoFile>;
|
|
334
334
|
|
|
335
|
+
export const Effort = {
|
|
336
|
+
None: "none",
|
|
337
|
+
Minimal: "minimal",
|
|
338
|
+
Low: "low",
|
|
339
|
+
Medium: "medium",
|
|
340
|
+
High: "high",
|
|
341
|
+
Xhigh: "xhigh",
|
|
342
|
+
Max: "max",
|
|
343
|
+
} as const;
|
|
344
|
+
export type Effort = ClosedEnum<typeof Effort>;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Reasoning settings applied by a configuration_update item.
|
|
348
|
+
*/
|
|
349
|
+
export type Reasoning = {
|
|
350
|
+
effort?: Effort | undefined;
|
|
351
|
+
};
|
|
352
|
+
|
|
335
353
|
/**
|
|
336
354
|
* The role of the message sender (for message items).
|
|
337
355
|
*/
|
|
@@ -388,6 +406,7 @@ export const InputType = {
|
|
|
388
406
|
McpListTools: "mcp_list_tools",
|
|
389
407
|
McpApprovalRequest: "mcp_approval_request",
|
|
390
408
|
McpApprovalResponse: "mcp_approval_response",
|
|
409
|
+
ConfigurationUpdate: "configuration_update",
|
|
391
410
|
} as const;
|
|
392
411
|
/**
|
|
393
412
|
* The type of item.
|
|
@@ -402,6 +421,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
402
421
|
* The function arguments as a JSON string (for function_call items).
|
|
403
422
|
*/
|
|
404
423
|
arguments?: string | undefined;
|
|
424
|
+
/**
|
|
425
|
+
* Whether a function or custom tool call runs asynchronously.
|
|
426
|
+
*/
|
|
427
|
+
async?: boolean | undefined;
|
|
405
428
|
/**
|
|
406
429
|
* The function call identifier (for function_call and function_call_output items).
|
|
407
430
|
*/
|
|
@@ -422,6 +445,10 @@ export type CreateRouterResponseInput2 = {
|
|
|
422
445
|
* The output of the function call (for function_call_output type).
|
|
423
446
|
*/
|
|
424
447
|
output?: string | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* Reasoning settings applied by a configuration_update item.
|
|
450
|
+
*/
|
|
451
|
+
reasoning?: Reasoning | undefined;
|
|
425
452
|
/**
|
|
426
453
|
* The role of the message sender (for message items).
|
|
427
454
|
*/
|
|
@@ -648,7 +675,7 @@ export type Network = {
|
|
|
648
675
|
/**
|
|
649
676
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
650
677
|
*/
|
|
651
|
-
export const
|
|
678
|
+
export const CreateRouterResponseToolsResponsesRequestType = {
|
|
652
679
|
OrqWebSearch: "orq:web_search",
|
|
653
680
|
OrqWebFetch: "orq:web_fetch",
|
|
654
681
|
OrqDatetime: "orq:datetime",
|
|
@@ -670,8 +697,8 @@ export const CreateRouterResponseToolsResponsesType = {
|
|
|
670
697
|
/**
|
|
671
698
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
672
699
|
*/
|
|
673
|
-
export type
|
|
674
|
-
typeof
|
|
700
|
+
export type CreateRouterResponseToolsResponsesRequestType = ClosedEnum<
|
|
701
|
+
typeof CreateRouterResponseToolsResponsesRequestType
|
|
675
702
|
>;
|
|
676
703
|
|
|
677
704
|
/**
|
|
@@ -697,7 +724,26 @@ export type OrqAiTool = {
|
|
|
697
724
|
/**
|
|
698
725
|
* The orq.ai tool type. orq:web_search, orq:web_fetch, and orq:datetime are the canonical names for orq:google_search, orq:web_scraper, and orq:current_date.
|
|
699
726
|
*/
|
|
700
|
-
type:
|
|
727
|
+
type: CreateRouterResponseToolsResponsesRequestType;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* A custom tool that accepts free-form input.
|
|
732
|
+
*/
|
|
733
|
+
export type Custom = {
|
|
734
|
+
/**
|
|
735
|
+
* Whether the tool response can be returned asynchronously.
|
|
736
|
+
*/
|
|
737
|
+
async?: boolean | undefined;
|
|
738
|
+
/**
|
|
739
|
+
* A description of what the custom tool does.
|
|
740
|
+
*/
|
|
741
|
+
description?: string | undefined;
|
|
742
|
+
/**
|
|
743
|
+
* The name of the custom tool.
|
|
744
|
+
*/
|
|
745
|
+
name: string;
|
|
746
|
+
type: "custom";
|
|
701
747
|
};
|
|
702
748
|
|
|
703
749
|
/**
|
|
@@ -759,6 +805,10 @@ export type ToolsCacheControl = {
|
|
|
759
805
|
* A function tool the model can call.
|
|
760
806
|
*/
|
|
761
807
|
export type ToolsFunction = {
|
|
808
|
+
/**
|
|
809
|
+
* Whether the tool response can be returned asynchronously.
|
|
810
|
+
*/
|
|
811
|
+
async?: boolean | undefined;
|
|
762
812
|
cacheControl?: ToolsCacheControl | undefined;
|
|
763
813
|
/**
|
|
764
814
|
* A description of what the function does.
|
|
@@ -784,6 +834,7 @@ export type ToolsFunction = {
|
|
|
784
834
|
*/
|
|
785
835
|
export type CreateRouterResponseTools =
|
|
786
836
|
| ToolsFunction
|
|
837
|
+
| Custom
|
|
787
838
|
| components.OrqAdvisorTool
|
|
788
839
|
| (components.OrqSidekickTool & { type: "orq:subagent" })
|
|
789
840
|
| (components.OrqSidekickTool & { type: "orq:sidekick" })
|
|
@@ -881,6 +932,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
881
932
|
* Key for prompt caching across requests.
|
|
882
933
|
*/
|
|
883
934
|
promptCacheKey?: string | undefined;
|
|
935
|
+
promptCacheOptions?: components.OpenAIPromptCacheOptions | undefined;
|
|
884
936
|
reasoning?: components.ReasoningParam | undefined;
|
|
885
937
|
retry?: components.ResponseRetryConfig | undefined;
|
|
886
938
|
/**
|
|
@@ -933,6 +985,7 @@ export type CreateRouterResponseRequestBody = {
|
|
|
933
985
|
tools?:
|
|
934
986
|
| Array<
|
|
935
987
|
| ToolsFunction
|
|
988
|
+
| Custom
|
|
936
989
|
| components.OrqAdvisorTool
|
|
937
990
|
| (components.OrqSidekickTool & { type: "orq:subagent" })
|
|
938
991
|
| (components.OrqSidekickTool & { type: "orq:sidekick" })
|
|
@@ -1050,6 +1103,7 @@ export type CreateRouterResponseResponseBody = {
|
|
|
1050
1103
|
presencePenalty: number;
|
|
1051
1104
|
previousResponseId: string | null;
|
|
1052
1105
|
promptCacheKey: string | null;
|
|
1106
|
+
promptCacheOptions: components.OpenAIPromptCacheOptions | null;
|
|
1053
1107
|
promptCacheRetention: string | null;
|
|
1054
1108
|
reasoning: components.Reasoning | null;
|
|
1055
1109
|
safetyIdentifier: string | null;
|
|
@@ -1395,6 +1449,28 @@ export function inputContentToJSON(inputContent: InputContent): string {
|
|
|
1395
1449
|
return JSON.stringify(InputContent$outboundSchema.parse(inputContent));
|
|
1396
1450
|
}
|
|
1397
1451
|
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export const Effort$outboundSchema: z.ZodNativeEnum<typeof Effort> = z
|
|
1454
|
+
.nativeEnum(Effort);
|
|
1455
|
+
|
|
1456
|
+
/** @internal */
|
|
1457
|
+
export type Reasoning$Outbound = {
|
|
1458
|
+
effort?: string | undefined;
|
|
1459
|
+
};
|
|
1460
|
+
|
|
1461
|
+
/** @internal */
|
|
1462
|
+
export const Reasoning$outboundSchema: z.ZodType<
|
|
1463
|
+
Reasoning$Outbound,
|
|
1464
|
+
z.ZodTypeDef,
|
|
1465
|
+
Reasoning
|
|
1466
|
+
> = z.object({
|
|
1467
|
+
effort: Effort$outboundSchema.optional(),
|
|
1468
|
+
});
|
|
1469
|
+
|
|
1470
|
+
export function reasoningToJSON(reasoning: Reasoning): string {
|
|
1471
|
+
return JSON.stringify(Reasoning$outboundSchema.parse(reasoning));
|
|
1472
|
+
}
|
|
1473
|
+
|
|
1398
1474
|
/** @internal */
|
|
1399
1475
|
export const InputRole$outboundSchema: z.ZodNativeEnum<typeof InputRole> = z
|
|
1400
1476
|
.nativeEnum(InputRole);
|
|
@@ -1410,6 +1486,7 @@ export const InputType$outboundSchema: z.ZodNativeEnum<typeof InputType> = z
|
|
|
1410
1486
|
/** @internal */
|
|
1411
1487
|
export type CreateRouterResponseInput2$Outbound = {
|
|
1412
1488
|
arguments?: string | undefined;
|
|
1489
|
+
async?: boolean | undefined;
|
|
1413
1490
|
call_id?: string | undefined;
|
|
1414
1491
|
content?:
|
|
1415
1492
|
| string
|
|
@@ -1418,6 +1495,7 @@ export type CreateRouterResponseInput2$Outbound = {
|
|
|
1418
1495
|
id?: string | undefined;
|
|
1419
1496
|
name?: string | undefined;
|
|
1420
1497
|
output?: string | undefined;
|
|
1498
|
+
reasoning?: Reasoning$Outbound | undefined;
|
|
1421
1499
|
role?: string | undefined;
|
|
1422
1500
|
status?: string | undefined;
|
|
1423
1501
|
type?: string | undefined;
|
|
@@ -1430,6 +1508,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1430
1508
|
CreateRouterResponseInput2
|
|
1431
1509
|
> = z.object({
|
|
1432
1510
|
arguments: z.string().optional(),
|
|
1511
|
+
async: z.boolean().optional(),
|
|
1433
1512
|
callId: z.string().optional(),
|
|
1434
1513
|
content: z.union([
|
|
1435
1514
|
z.string(),
|
|
@@ -1442,6 +1521,7 @@ export const CreateRouterResponseInput2$outboundSchema: z.ZodType<
|
|
|
1442
1521
|
id: z.string().optional(),
|
|
1443
1522
|
name: z.string().optional(),
|
|
1444
1523
|
output: z.string().optional(),
|
|
1524
|
+
reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
|
|
1445
1525
|
role: InputRole$outboundSchema.optional(),
|
|
1446
1526
|
status: Status$outboundSchema.optional(),
|
|
1447
1527
|
type: InputType$outboundSchema.optional(),
|
|
@@ -1759,10 +1839,9 @@ export function networkToJSON(network: Network): string {
|
|
|
1759
1839
|
}
|
|
1760
1840
|
|
|
1761
1841
|
/** @internal */
|
|
1762
|
-
export const
|
|
1763
|
-
z.ZodNativeEnum<typeof
|
|
1764
|
-
|
|
1765
|
-
);
|
|
1842
|
+
export const CreateRouterResponseToolsResponsesRequestType$outboundSchema:
|
|
1843
|
+
z.ZodNativeEnum<typeof CreateRouterResponseToolsResponsesRequestType> = z
|
|
1844
|
+
.nativeEnum(CreateRouterResponseToolsResponsesRequestType);
|
|
1766
1845
|
|
|
1767
1846
|
/** @internal */
|
|
1768
1847
|
export type OrqAiTool$Outbound = {
|
|
@@ -1783,7 +1862,7 @@ export const OrqAiTool$outboundSchema: z.ZodType<
|
|
|
1783
1862
|
network: z.lazy(() => Network$outboundSchema).optional(),
|
|
1784
1863
|
timezone: z.string().optional(),
|
|
1785
1864
|
toolId: z.string().optional(),
|
|
1786
|
-
type:
|
|
1865
|
+
type: CreateRouterResponseToolsResponsesRequestType$outboundSchema,
|
|
1787
1866
|
}).transform((v) => {
|
|
1788
1867
|
return remap$(v, {
|
|
1789
1868
|
toolId: "tool_id",
|
|
@@ -1794,6 +1873,30 @@ export function orqAiToolToJSON(orqAiTool: OrqAiTool): string {
|
|
|
1794
1873
|
return JSON.stringify(OrqAiTool$outboundSchema.parse(orqAiTool));
|
|
1795
1874
|
}
|
|
1796
1875
|
|
|
1876
|
+
/** @internal */
|
|
1877
|
+
export type Custom$Outbound = {
|
|
1878
|
+
async?: boolean | undefined;
|
|
1879
|
+
description?: string | undefined;
|
|
1880
|
+
name: string;
|
|
1881
|
+
type: "custom";
|
|
1882
|
+
};
|
|
1883
|
+
|
|
1884
|
+
/** @internal */
|
|
1885
|
+
export const Custom$outboundSchema: z.ZodType<
|
|
1886
|
+
Custom$Outbound,
|
|
1887
|
+
z.ZodTypeDef,
|
|
1888
|
+
Custom
|
|
1889
|
+
> = z.object({
|
|
1890
|
+
async: z.boolean().optional(),
|
|
1891
|
+
description: z.string().optional(),
|
|
1892
|
+
name: z.string(),
|
|
1893
|
+
type: z.literal("custom"),
|
|
1894
|
+
});
|
|
1895
|
+
|
|
1896
|
+
export function customToJSON(custom: Custom): string {
|
|
1897
|
+
return JSON.stringify(Custom$outboundSchema.parse(custom));
|
|
1898
|
+
}
|
|
1899
|
+
|
|
1797
1900
|
/** @internal */
|
|
1798
1901
|
export const ToolsTtl$outboundSchema: z.ZodNativeEnum<typeof ToolsTtl> = z
|
|
1799
1902
|
.nativeEnum(ToolsTtl);
|
|
@@ -1828,6 +1931,7 @@ export function toolsCacheControlToJSON(
|
|
|
1828
1931
|
|
|
1829
1932
|
/** @internal */
|
|
1830
1933
|
export type ToolsFunction$Outbound = {
|
|
1934
|
+
async?: boolean | undefined;
|
|
1831
1935
|
cache_control?: ToolsCacheControl$Outbound | undefined;
|
|
1832
1936
|
description?: string | undefined;
|
|
1833
1937
|
name: string;
|
|
@@ -1842,6 +1946,7 @@ export const ToolsFunction$outboundSchema: z.ZodType<
|
|
|
1842
1946
|
z.ZodTypeDef,
|
|
1843
1947
|
ToolsFunction
|
|
1844
1948
|
> = z.object({
|
|
1949
|
+
async: z.boolean().optional(),
|
|
1845
1950
|
cacheControl: z.lazy(() => ToolsCacheControl$outboundSchema).optional(),
|
|
1846
1951
|
description: z.string().optional(),
|
|
1847
1952
|
name: z.string(),
|
|
@@ -1861,6 +1966,7 @@ export function toolsFunctionToJSON(toolsFunction: ToolsFunction): string {
|
|
|
1861
1966
|
/** @internal */
|
|
1862
1967
|
export type CreateRouterResponseTools$Outbound =
|
|
1863
1968
|
| ToolsFunction$Outbound
|
|
1969
|
+
| Custom$Outbound
|
|
1864
1970
|
| components.OrqAdvisorTool$Outbound
|
|
1865
1971
|
| (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
|
|
1866
1972
|
| (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
|
|
@@ -1890,6 +1996,7 @@ export const CreateRouterResponseTools$outboundSchema: z.ZodType<
|
|
|
1890
1996
|
CreateRouterResponseTools
|
|
1891
1997
|
> = z.union([
|
|
1892
1998
|
z.lazy(() => ToolsFunction$outboundSchema),
|
|
1999
|
+
z.lazy(() => Custom$outboundSchema),
|
|
1893
2000
|
components.OrqAdvisorTool$outboundSchema,
|
|
1894
2001
|
components.OrqSidekickTool$outboundSchema.and(
|
|
1895
2002
|
z.object({ type: z.literal("orq:subagent") }),
|
|
@@ -1984,6 +2091,9 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
1984
2091
|
presence_penalty?: number | undefined;
|
|
1985
2092
|
previous_response_id?: string | undefined;
|
|
1986
2093
|
prompt_cache_key?: string | undefined;
|
|
2094
|
+
prompt_cache_options?:
|
|
2095
|
+
| components.OpenAIPromptCacheOptions$Outbound
|
|
2096
|
+
| undefined;
|
|
1987
2097
|
reasoning?: components.ReasoningParam$Outbound | undefined;
|
|
1988
2098
|
retry?: components.ResponseRetryConfig$Outbound | undefined;
|
|
1989
2099
|
safety_identifier?: string | undefined;
|
|
@@ -2003,6 +2113,7 @@ export type CreateRouterResponseRequestBody$Outbound = {
|
|
|
2003
2113
|
tools?:
|
|
2004
2114
|
| Array<
|
|
2005
2115
|
| ToolsFunction$Outbound
|
|
2116
|
+
| Custom$Outbound
|
|
2006
2117
|
| components.OrqAdvisorTool$Outbound
|
|
2007
2118
|
| (components.OrqSidekickTool$Outbound & { type: "orq:subagent" })
|
|
2008
2119
|
| (components.OrqSidekickTool$Outbound & { type: "orq:sidekick" })
|
|
@@ -2067,6 +2178,8 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2067
2178
|
presencePenalty: z.number().optional(),
|
|
2068
2179
|
previousResponseId: z.string().optional(),
|
|
2069
2180
|
promptCacheKey: z.string().optional(),
|
|
2181
|
+
promptCacheOptions: components.OpenAIPromptCacheOptions$outboundSchema
|
|
2182
|
+
.optional(),
|
|
2070
2183
|
reasoning: components.ReasoningParam$outboundSchema.optional(),
|
|
2071
2184
|
retry: components.ResponseRetryConfig$outboundSchema.optional(),
|
|
2072
2185
|
safetyIdentifier: z.string().optional(),
|
|
@@ -2089,6 +2202,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2089
2202
|
tools: z.array(
|
|
2090
2203
|
z.union([
|
|
2091
2204
|
z.lazy(() => ToolsFunction$outboundSchema),
|
|
2205
|
+
z.lazy(() => Custom$outboundSchema),
|
|
2092
2206
|
components.OrqAdvisorTool$outboundSchema,
|
|
2093
2207
|
components.OrqSidekickTool$outboundSchema.and(
|
|
2094
2208
|
z.object({ type: z.literal("orq:subagent") }),
|
|
@@ -2166,6 +2280,7 @@ export const CreateRouterResponseRequestBody$outboundSchema: z.ZodType<
|
|
|
2166
2280
|
presencePenalty: "presence_penalty",
|
|
2167
2281
|
previousResponseId: "previous_response_id",
|
|
2168
2282
|
promptCacheKey: "prompt_cache_key",
|
|
2283
|
+
promptCacheOptions: "prompt_cache_options",
|
|
2169
2284
|
safetyIdentifier: "safety_identifier",
|
|
2170
2285
|
serviceTier: "service_tier",
|
|
2171
2286
|
stopSequences: "stop_sequences",
|
|
@@ -2263,6 +2378,9 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
2263
2378
|
presence_penalty: z.number(),
|
|
2264
2379
|
previous_response_id: z.nullable(z.string()),
|
|
2265
2380
|
prompt_cache_key: z.nullable(z.string()),
|
|
2381
|
+
prompt_cache_options: z.nullable(
|
|
2382
|
+
components.OpenAIPromptCacheOptions$inboundSchema,
|
|
2383
|
+
),
|
|
2266
2384
|
prompt_cache_retention: z.nullable(z.string()),
|
|
2267
2385
|
reasoning: z.nullable(components.Reasoning$inboundSchema),
|
|
2268
2386
|
safety_identifier: z.nullable(z.string()),
|
|
@@ -2293,6 +2411,7 @@ export const CreateRouterResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
2293
2411
|
"presence_penalty": "presencePenalty",
|
|
2294
2412
|
"previous_response_id": "previousResponseId",
|
|
2295
2413
|
"prompt_cache_key": "promptCacheKey",
|
|
2414
|
+
"prompt_cache_options": "promptCacheOptions",
|
|
2296
2415
|
"prompt_cache_retention": "promptCacheRetention",
|
|
2297
2416
|
"safety_identifier": "safetyIdentifier",
|
|
2298
2417
|
"service_tier": "serviceTier",
|
|
@@ -1573,7 +1573,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1573
1573
|
z.ZodTypeDef,
|
|
1574
1574
|
unknown
|
|
1575
1575
|
> = z.object({
|
|
1576
|
-
_id: z.string().default("
|
|
1576
|
+
_id: z.string().default("tool_01M1WJDP1H0WKJVRSQYTD2RT1M"),
|
|
1577
1577
|
path: z.string(),
|
|
1578
1578
|
key: z.string(),
|
|
1579
1579
|
display_name: z.string().optional(),
|
|
@@ -1759,7 +1759,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1759
1759
|
z.ZodTypeDef,
|
|
1760
1760
|
unknown
|
|
1761
1761
|
> = z.object({
|
|
1762
|
-
_id: z.string().default("
|
|
1762
|
+
_id: z.string().default("tool_01M1WJDP1G6D1Y2VR4S8NRHEXE"),
|
|
1763
1763
|
path: z.string(),
|
|
1764
1764
|
key: z.string(),
|
|
1765
1765
|
display_name: z.string().optional(),
|
|
@@ -1852,7 +1852,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1852
1852
|
z.ZodTypeDef,
|
|
1853
1853
|
unknown
|
|
1854
1854
|
> = z.object({
|
|
1855
|
-
_id: z.string().default("
|
|
1855
|
+
_id: z.string().default("tool_01M1WJDP1G62HCSJ0ZWDVV2DA5"),
|
|
1856
1856
|
path: z.string(),
|
|
1857
1857
|
key: z.string(),
|
|
1858
1858
|
display_name: z.string().optional(),
|
|
@@ -1953,7 +1953,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1953
1953
|
z.ZodTypeDef,
|
|
1954
1954
|
unknown
|
|
1955
1955
|
> = z.object({
|
|
1956
|
-
_id: z.string().default("
|
|
1956
|
+
_id: z.string().default("tool_01M1WJDP1F3Q2CBWGF6F9K8TW9"),
|
|
1957
1957
|
path: z.string(),
|
|
1958
1958
|
key: z.string(),
|
|
1959
1959
|
display_name: z.string().optional(),
|
|
@@ -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 DeleteSessionRequest = {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type DeleteSessionRequest$Outbound = {
|
|
14
|
+
session_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const DeleteSessionRequest$outboundSchema: z.ZodType<
|
|
19
|
+
DeleteSessionRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
DeleteSessionRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
sessionId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
sessionId: "session_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function deleteSessionRequestToJSON(
|
|
31
|
+
deleteSessionRequest: DeleteSessionRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
DeleteSessionRequest$outboundSchema.parse(deleteSessionRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -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_01M1WJDP1CXWVJV345VD2DBJGZ"),
|
|
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_01M1WJDP1B43TRJX07FNQHJW25"),
|
|
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_01M1WJDP1914CX4HZV0BF7E25V"),
|
|
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_01M1WJDP18RERDQ7C96ZNEET50"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -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 GetSessionRequest = {
|
|
9
|
+
sessionId: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type GetSessionRequest$Outbound = {
|
|
14
|
+
session_id: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/** @internal */
|
|
18
|
+
export const GetSessionRequest$outboundSchema: z.ZodType<
|
|
19
|
+
GetSessionRequest$Outbound,
|
|
20
|
+
z.ZodTypeDef,
|
|
21
|
+
GetSessionRequest
|
|
22
|
+
> = z.object({
|
|
23
|
+
sessionId: z.string(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
sessionId: "session_id",
|
|
27
|
+
});
|
|
28
|
+
});
|
|
29
|
+
|
|
30
|
+
export function getSessionRequestToJSON(
|
|
31
|
+
getSessionRequest: GetSessionRequest,
|
|
32
|
+
): string {
|
|
33
|
+
return JSON.stringify(
|
|
34
|
+
GetSessionRequest$outboundSchema.parse(getSessionRequest),
|
|
35
|
+
);
|
|
36
|
+
}
|
|
@@ -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-09-
|
|
143
|
+
"2026-09-06T23:56:17.054Z",
|
|
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-09-
|
|
188
|
+
"2026-09-06T23:56:17.054Z",
|
|
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-09-
|
|
144
|
+
"2026-09-06T23:56:17.054Z",
|
|
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-09-
|
|
189
|
+
"2026-09-06T23:56:17.054Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type HubGetRequest = {
|
|
8
|
+
id: string;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type HubGetRequest$Outbound = {
|
|
13
|
+
id: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const HubGetRequest$outboundSchema: z.ZodType<
|
|
18
|
+
HubGetRequest$Outbound,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
HubGetRequest
|
|
21
|
+
> = z.object({
|
|
22
|
+
id: z.string(),
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
export function hubGetRequestToJSON(hubGetRequest: HubGetRequest): string {
|
|
26
|
+
return JSON.stringify(HubGetRequest$outboundSchema.parse(hubGetRequest));
|
|
27
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
|
|
7
|
+
export type HubSearchRequest = {
|
|
8
|
+
q?: string | undefined;
|
|
9
|
+
types?: Array<string> | undefined;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
/** @internal */
|
|
13
|
+
export type HubSearchRequest$Outbound = {
|
|
14
|
+
q?: string | undefined;
|
|
15
|
+
types?: Array<string> | undefined;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const HubSearchRequest$outboundSchema: z.ZodType<
|
|
20
|
+
HubSearchRequest$Outbound,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
HubSearchRequest
|
|
23
|
+
> = z.object({
|
|
24
|
+
q: z.string().optional(),
|
|
25
|
+
types: z.array(z.string()).optional(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function hubSearchRequestToJSON(
|
|
29
|
+
hubSearchRequest: HubSearchRequest,
|
|
30
|
+
): string {
|
|
31
|
+
return JSON.stringify(
|
|
32
|
+
HubSearchRequest$outboundSchema.parse(hubSearchRequest),
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -65,6 +65,7 @@ export * from "./deletememory.js";
|
|
|
65
65
|
export * from "./deletememorydocument.js";
|
|
66
66
|
export * from "./deletememorystore.js";
|
|
67
67
|
export * from "./deleteprompt.js";
|
|
68
|
+
export * from "./deletesession.js";
|
|
68
69
|
export * from "./deletetool.js";
|
|
69
70
|
export * from "./deletev2humanevalsetsid.js";
|
|
70
71
|
export * from "./deploymentgetconfig.js";
|
|
@@ -92,6 +93,7 @@ export * from "./getonefileuploadurl.js";
|
|
|
92
93
|
export * from "./getoneknowledge.js";
|
|
93
94
|
export * from "./getoneprompt.js";
|
|
94
95
|
export * from "./getpromptversion.js";
|
|
96
|
+
export * from "./getsession.js";
|
|
95
97
|
export * from "./getv2humanevalsets.js";
|
|
96
98
|
export * from "./getv2humanevalsetsid.js";
|
|
97
99
|
export * from "./getv2toolstoolidversions.js";
|
|
@@ -101,6 +103,8 @@ export * from "./guardrailruleget.js";
|
|
|
101
103
|
export * from "./guardrailrulelist.js";
|
|
102
104
|
export * from "./guardrailrulelistusedguardrails.js";
|
|
103
105
|
export * from "./guardrailruleupdate.js";
|
|
106
|
+
export * from "./hubget.js";
|
|
107
|
+
export * from "./hubsearch.js";
|
|
104
108
|
export * from "./invokeagent.js";
|
|
105
109
|
export * from "./invokeeval.js";
|
|
106
110
|
export * from "./listagents.js";
|
|
@@ -229,6 +233,7 @@ export * from "./updatememory.js";
|
|
|
229
233
|
export * from "./updatememorydocument.js";
|
|
230
234
|
export * from "./updatememorystore.js";
|
|
231
235
|
export * from "./updateprompt.js";
|
|
236
|
+
export * from "./updatesession.js";
|
|
232
237
|
export * from "./updatetool.js";
|
|
233
238
|
export * from "./webhookdelete.js";
|
|
234
239
|
export * from "./webhookget.js";
|
|
@@ -1653,7 +1653,7 @@ export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
|
|
|
1653
1653
|
explanation: z.string().optional(),
|
|
1654
1654
|
reviewed_by_id: z.string(),
|
|
1655
1655
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1656
|
-
"2026-09-
|
|
1656
|
+
"2026-09-06T23:56:24.006Z",
|
|
1657
1657
|
).transform(v => new Date(v)),
|
|
1658
1658
|
type: z.literal("string_array"),
|
|
1659
1659
|
values: z.array(z.string()),
|
|
@@ -1749,7 +1749,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1749
1749
|
explanation: z.string().optional(),
|
|
1750
1750
|
reviewed_by_id: z.string(),
|
|
1751
1751
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1752
|
-
"2026-09-
|
|
1752
|
+
"2026-09-06T23:56:24.006Z",
|
|
1753
1753
|
).transform(v => new Date(v)),
|
|
1754
1754
|
type: z.literal("boolean"),
|
|
1755
1755
|
value: z.boolean(),
|
|
@@ -1853,7 +1853,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1853
1853
|
explanation: z.string().optional(),
|
|
1854
1854
|
reviewed_by_id: z.string(),
|
|
1855
1855
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1856
|
-
"2026-09-
|
|
1856
|
+
"2026-09-06T23:56:24.005Z",
|
|
1857
1857
|
).transform(v => new Date(v)),
|
|
1858
1858
|
type: z.literal("number"),
|
|
1859
1859
|
value: z.number(),
|
|
@@ -1959,7 +1959,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
explanation: z.string().optional(),
|
|
1960
1960
|
reviewed_by_id: z.string(),
|
|
1961
1961
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1962
|
-
"2026-09-
|
|
1962
|
+
"2026-09-06T23:56:24.005Z",
|
|
1963
1963
|
).transform(v => new Date(v)),
|
|
1964
1964
|
type: z.literal("string"),
|
|
1965
1965
|
value: z.string(),
|
|
@@ -2042,7 +2042,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
2042
2042
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2043
2043
|
.optional(),
|
|
2044
2044
|
updated: z.string().datetime({ offset: true }).default(
|
|
2045
|
-
"2026-09-
|
|
2045
|
+
"2026-09-06T23:56:17.054Z",
|
|
2046
2046
|
).transform(v => new Date(v)),
|
|
2047
2047
|
}).transform((v) => {
|
|
2048
2048
|
return remap$(v, {
|
|
@@ -169,7 +169,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
169
169
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
170
170
|
.optional(),
|
|
171
171
|
updated: z.string().datetime({ offset: true }).default(
|
|
172
|
-
"2026-09-
|
|
172
|
+
"2026-09-06T23:56:17.054Z",
|
|
173
173
|
).transform(v => new Date(v)),
|
|
174
174
|
}).transform((v) => {
|
|
175
175
|
return remap$(v, {
|