@orq-ai/node 4.5.0-rc.3 → 4.5.0-rc.35
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 +38 -28
- package/funcs/agentsList.d.ts +1 -1
- package/funcs/agentsList.d.ts.map +1 -1
- package/funcs/agentsList.js +5 -3
- package/funcs/agentsList.js.map +1 -1
- package/funcs/agentsPostV2AgentsA2a.d.ts +18 -0
- package/funcs/agentsPostV2AgentsA2a.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsA2a.js +120 -0
- package/funcs/agentsPostV2AgentsA2a.js.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts +18 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +1 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js +124 -0
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +1 -0
- package/funcs/agentsResponsesGet.d.ts +19 -0
- package/funcs/agentsResponsesGet.d.ts.map +1 -0
- package/funcs/agentsResponsesGet.js +128 -0
- package/funcs/agentsResponsesGet.js.map +1 -0
- package/funcs/agentsStream.js +4 -2
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/agentsStreamRun.js +4 -2
- package/funcs/agentsStreamRun.js.map +1 -1
- package/funcs/agentsUpdate.d.ts +1 -1
- package/funcs/agentsUpdate.d.ts.map +1 -1
- package/funcs/agentsUpdate.js.map +1 -1
- package/funcs/deploymentsStream.js +4 -2
- package/funcs/deploymentsStream.js.map +1 -1
- package/funcs/filesCreate.js +7 -0
- package/funcs/filesCreate.js.map +1 -1
- package/funcs/routerAudioTranscriptionsCreate.js +7 -0
- package/funcs/routerAudioTranscriptionsCreate.js.map +1 -1
- package/funcs/routerAudioTranslationsCreate.js +7 -0
- package/funcs/routerAudioTranslationsCreate.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/event-streams.d.ts +5 -0
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/createagentresponse.d.ts +5 -0
- package/models/components/createagentresponse.d.ts.map +1 -1
- package/models/components/createagentresponse.js +2 -0
- package/models/components/createagentresponse.js.map +1 -1
- package/models/components/extendedmessage.d.ts +71 -0
- package/models/components/extendedmessage.d.ts.map +1 -0
- package/models/components/extendedmessage.js +98 -0
- package/models/components/extendedmessage.js.map +1 -0
- package/models/components/getagentresponse.d.ts +157 -0
- package/models/components/getagentresponse.d.ts.map +1 -0
- package/models/components/getagentresponse.js +175 -0
- package/models/components/getagentresponse.js.map +1 -0
- package/models/components/index.d.ts +3 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +3 -0
- package/models/components/index.js.map +1 -1
- package/models/components/partdoneevent.js +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/responsedoneevent.d.ts +5 -0
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +2 -0
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/responsestartedevent.d.ts +5 -0
- package/models/components/responsestartedevent.d.ts.map +1 -1
- package/models/components/responsestartedevent.js +2 -0
- package/models/components/responsestartedevent.js.map +1 -1
- package/models/components/telemetry.d.ts +20 -0
- package/models/components/telemetry.d.ts.map +1 -0
- package/models/components/telemetry.js +57 -0
- package/models/components/telemetry.js.map +1 -0
- package/models/errors/index.d.ts +2 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +2 -0
- package/models/errors/index.js.map +1 -1
- package/models/errors/postv2agentsa2a.d.ts +43 -0
- package/models/errors/postv2agentsa2a.d.ts.map +1 -0
- package/models/errors/postv2agentsa2a.js +94 -0
- package/models/errors/postv2agentsa2a.js.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts +43 -0
- package/models/errors/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/errors/postv2agentskeycardrefresh.js +94 -0
- package/models/errors/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +324 -601
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +308 -454
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +22 -1
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +12 -2
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +1 -1
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +4 -0
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +15 -2
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +3 -1
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createcompletion.d.ts +6 -2
- package/models/operations/createcompletion.d.ts.map +1 -1
- package/models/operations/createcompletion.js +2 -1
- package/models/operations/createcompletion.js.map +1 -1
- package/models/operations/createcontact.js +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/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createprompt.d.ts +31 -30
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +32 -29
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +2 -1
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.d.ts +39 -39
- package/models/operations/createtool.d.ts.map +1 -1
- package/models/operations/createtool.js +52 -49
- package/models/operations/createtool.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +15 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +17 -1
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +1 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +1 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +15 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +17 -1
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +1 -1
- package/models/operations/filelist.js +1 -1
- package/models/operations/fileupload.js +1 -1
- package/models/operations/getagentresponse.d.ts +20 -0
- package/models/operations/getagentresponse.d.ts.map +1 -0
- package/models/operations/getagentresponse.js +56 -0
- package/models/operations/getagentresponse.js.map +1 -0
- package/models/operations/getallprompts.d.ts +1 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +1 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.d.ts +39 -39
- package/models/operations/getalltools.d.ts.map +1 -1
- package/models/operations/getalltools.js +49 -47
- package/models/operations/getalltools.js.map +1 -1
- package/models/operations/getevals.js +16 -16
- package/models/operations/getoneprompt.d.ts +1 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +1 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +3 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +26 -1
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +12 -1
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +328 -346
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +314 -308
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/listknowledgebases.d.ts +8 -8
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +13 -15
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +1 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/postv2agentsa2a.d.ts +119 -0
- package/models/operations/postv2agentsa2a.d.ts.map +1 -0
- package/models/operations/postv2agentsa2a.js +147 -0
- package/models/operations/postv2agentsa2a.js.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts +35 -0
- package/models/operations/postv2agentskeycardrefresh.d.ts.map +1 -0
- package/models/operations/postv2agentskeycardrefresh.js +71 -0
- package/models/operations/postv2agentskeycardrefresh.js.map +1 -0
- package/models/operations/retrieveagentrequest.d.ts +313 -349
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +307 -311
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +27 -265
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +26 -163
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +22 -1
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +11 -1
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +13 -255
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +15 -152
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +383 -614
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +352 -472
- 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/updateidentity.js +1 -1
- package/models/operations/updatememorystore.d.ts +2 -43
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -45
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +1 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.d.ts +50 -0
- package/models/operations/updatetool.d.ts.map +1 -1
- package/models/operations/updatetool.js +54 -9
- package/models/operations/updatetool.js.map +1 -1
- package/package.json +1 -1
- package/sdk/agents.d.ts +16 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +22 -2
- package/sdk/agents.js.map +1 -1
- package/sdk/responses.d.ts +8 -0
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +10 -0
- package/sdk/responses.js.map +1 -1
- package/src/funcs/agentsList.ts +5 -0
- package/src/funcs/agentsPostV2AgentsA2a.ts +178 -0
- package/src/funcs/agentsPostV2AgentsKeyCardRefresh.ts +187 -0
- package/src/funcs/agentsResponsesGet.ts +182 -0
- package/src/funcs/agentsStream.ts +4 -1
- package/src/funcs/agentsStreamRun.ts +4 -1
- package/src/funcs/agentsUpdate.ts +2 -2
- package/src/funcs/deploymentsStream.ts +4 -1
- package/src/funcs/filesCreate.ts +11 -0
- package/src/funcs/routerAudioTranscriptionsCreate.ts +11 -0
- package/src/funcs/routerAudioTranslationsCreate.ts +11 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/event-streams.ts +10 -1
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/createagentresponse.ts +6 -0
- package/src/models/components/extendedmessage.ts +146 -0
- package/src/models/components/getagentresponse.ts +348 -0
- package/src/models/components/index.ts +3 -0
- package/src/models/components/partdoneevent.ts +1 -1
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/responsedoneevent.ts +6 -0
- package/src/models/components/responsestartedevent.ts +6 -0
- package/src/models/components/telemetry.ts +48 -0
- package/src/models/errors/index.ts +2 -0
- package/src/models/errors/postv2agentsa2a.ts +96 -0
- package/src/models/errors/postv2agentskeycardrefresh.ts +97 -0
- package/src/models/operations/createagentrequest.ts +755 -1212
- package/src/models/operations/createagentresponserequest.ts +37 -2
- package/src/models/operations/createannotation.ts +5 -1
- package/src/models/operations/createchatcompletion.ts +14 -3
- package/src/models/operations/createcompletion.ts +8 -3
- package/src/models/operations/createcontact.ts +1 -1
- 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/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +19 -17
- package/src/models/operations/createprompt.ts +56 -66
- package/src/models/operations/createresponse.ts +2 -1
- package/src/models/operations/createtool.ts +103 -91
- package/src/models/operations/deploymentinvoke.ts +39 -0
- package/src/models/operations/deployments.ts +1 -0
- package/src/models/operations/deploymentstream.ts +39 -0
- package/src/models/operations/fileget.ts +1 -1
- package/src/models/operations/filelist.ts +1 -1
- package/src/models/operations/fileupload.ts +1 -1
- package/src/models/operations/getagentresponse.ts +46 -0
- package/src/models/operations/getallprompts.ts +1 -0
- package/src/models/operations/getalltools.ts +93 -87
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getoneprompt.ts +1 -0
- package/src/models/operations/getpromptversion.ts +1 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/invokeagent.ts +45 -1
- package/src/models/operations/listagents.ts +751 -787
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +72 -64
- package/src/models/operations/listpromptversions.ts +1 -0
- package/src/models/operations/postv2agentsa2a.ts +252 -0
- package/src/models/operations/postv2agentskeycardrefresh.ts +100 -0
- package/src/models/operations/retrieveagentrequest.ts +962 -857
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +69 -493
- package/src/models/operations/streamagent.ts +40 -1
- package/src/models/operations/streamrunagent.ts +36 -493
- package/src/models/operations/updateagent.ts +966 -1313
- 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/updateidentity.ts +1 -1
- package/src/models/operations/updatememorystore.ts +3 -61
- package/src/models/operations/updateprompt.ts +1 -0
- package/src/models/operations/updatetool.ts +96 -7
- package/src/sdk/agents.ts +39 -1
- package/src/sdk/responses.ts +19 -0
|
@@ -36,46 +36,50 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$inboundSchema = exports.
|
|
39
|
+
exports.ListAgentsResponseFormatJsonSchema$inboundSchema = exports.DataSettings$inboundSchema = exports.DataGuardrails$inboundSchema = exports.ListAgentsDataExecuteOn$inboundSchema = exports.DataEvaluators$inboundSchema = exports.DataExecuteOn$inboundSchema = exports.DataTools$inboundSchema = exports.DataConditions$inboundSchema = exports.DataToolApprovalRequired$inboundSchema = exports.DataSource$inboundSchema = exports.DataKnowledgeBases$inboundSchema = exports.DataMetrics$inboundSchema = exports.DataTeamOfAgents$inboundSchema = exports.DataStatus$inboundSchema = exports.Data2$inboundSchema = exports.DataA2AAgentConfiguration$inboundSchema = exports.DataHeaders$inboundSchema = exports.ListAgentsDataSource$inboundSchema = exports.ListAgentsDataKnowledgeBases$inboundSchema = exports.ListAgentsDataMetrics$inboundSchema = exports.ListAgentsDataTeamOfAgents$inboundSchema = exports.ListAgentsDataStatus$inboundSchema = exports.ListAgentsObject$inboundSchema = exports.ListAgentsRequest$outboundSchema = exports.QueryParamType$outboundSchema = exports.ListAgentsLoadBalancerAgentsType = exports.ListAgentsFallbackModelConfigurationType = exports.ListAgentsFallbackModelConfigurationExecuteOn = exports.ListAgentsIdAgents1 = exports.ListAgentsFallbackModelConfigurationModalities = exports.ListAgentsToolChoiceAgents1 = exports.ListAgentsToolChoiceAgentsType = exports.ListAgentsFallbackModelConfigurationReasoningEffort = exports.ListAgentsLoadBalancerType = exports.ListAgentsDataAgentsResponseType = exports.ListAgentsDataAgentsExecuteOn = exports.ListAgentsId1 = exports.DataModalities = exports.ListAgentsToolChoice1 = exports.ListAgentsToolChoiceType = exports.DataReasoningEffort = exports.ListAgentsDataExecuteOn = exports.DataExecuteOn = exports.DataToolApprovalRequired = exports.DataSource = exports.DataStatus = exports.ListAgentsDataSource = exports.ListAgentsDataStatus = exports.ListAgentsObject = exports.QueryParamType = void 0;
|
|
40
|
+
exports.ListAgentsLoadBalancerAgentsModels$inboundSchema = exports.ListAgentsLoadBalancerAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationCache$inboundSchema = exports.ListAgentsFallbackModelConfigurationType$inboundSchema = exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema = exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema = exports.ListAgentsFallbackModelConfigurationExecuteOn$inboundSchema = exports.ListAgentsFallbackModelConfigurationId$inboundSchema = exports.ListAgentsIdAgents1$inboundSchema = exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema = exports.ListAgentsFallbackModelConfigurationToolChoice$inboundSchema = exports.ListAgentsToolChoiceAgents1$inboundSchema = exports.ListAgentsToolChoiceAgents2$inboundSchema = exports.ListAgentsToolChoiceAgentsFunction$inboundSchema = exports.ListAgentsToolChoiceAgentsType$inboundSchema = exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = exports.ListAgentsFallbackModelConfigurationStop$inboundSchema = exports.ListAgentsFallbackModelConfigurationReasoningEffort$inboundSchema = exports.ListAgentsFallbackModelConfigurationResponseFormat$inboundSchema = exports.ListAgentsResponseFormatAgentsText$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.DataRetry$inboundSchema = exports.DataParameters$inboundSchema = exports.DataTimeout$inboundSchema = exports.DataLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancer1$inboundSchema = exports.ListAgentsLoadBalancerModels$inboundSchema = exports.ListAgentsLoadBalancerType$inboundSchema = exports.DataCache$inboundSchema = exports.ListAgentsDataAgentsResponseType$inboundSchema = exports.DataFallbacks$inboundSchema = exports.ListAgentsDataGuardrails$inboundSchema = exports.ListAgentsDataAgentsExecuteOn$inboundSchema = exports.DataId$inboundSchema = exports.ListAgentsId1$inboundSchema = exports.DataModalities$inboundSchema = exports.DataToolChoice$inboundSchema = exports.ListAgentsToolChoice1$inboundSchema = exports.ListAgentsToolChoice2$inboundSchema = exports.ListAgentsToolChoiceFunction$inboundSchema = exports.ListAgentsToolChoiceType$inboundSchema = exports.DataThinking$inboundSchema = exports.DataStop$inboundSchema = exports.DataReasoningEffort$inboundSchema = exports.DataResponseFormat$inboundSchema = exports.ListAgentsResponseFormatText$inboundSchema = exports.ListAgentsResponseFormatJSONObject$inboundSchema = exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema = void 0;
|
|
41
|
+
exports.ListAgentsResponseBody$inboundSchema = exports.ListAgentsData$inboundSchema = exports.Data1$inboundSchema = exports.DataModel$inboundSchema = exports.DataFallbackModelConfiguration$inboundSchema = exports.ListAgentsFallbackModelConfiguration2$inboundSchema = exports.ListAgentsFallbackModelConfigurationRetry$inboundSchema = exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = exports.ListAgentsFallbackModelConfigurationTimeout$inboundSchema = exports.ListAgentsFallbackModelConfigurationLoadBalancer$inboundSchema = exports.ListAgentsLoadBalancerAgents1$inboundSchema = void 0;
|
|
42
42
|
exports.listAgentsRequestToJSON = listAgentsRequestToJSON;
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
43
|
+
exports.listAgentsDataTeamOfAgentsFromJSON = listAgentsDataTeamOfAgentsFromJSON;
|
|
44
|
+
exports.listAgentsDataMetricsFromJSON = listAgentsDataMetricsFromJSON;
|
|
45
|
+
exports.listAgentsDataKnowledgeBasesFromJSON = listAgentsDataKnowledgeBasesFromJSON;
|
|
46
|
+
exports.dataHeadersFromJSON = dataHeadersFromJSON;
|
|
47
|
+
exports.dataA2AAgentConfigurationFromJSON = dataA2AAgentConfigurationFromJSON;
|
|
48
|
+
exports.data2FromJSON = data2FromJSON;
|
|
49
|
+
exports.dataTeamOfAgentsFromJSON = dataTeamOfAgentsFromJSON;
|
|
50
|
+
exports.dataMetricsFromJSON = dataMetricsFromJSON;
|
|
51
|
+
exports.dataKnowledgeBasesFromJSON = dataKnowledgeBasesFromJSON;
|
|
52
|
+
exports.dataConditionsFromJSON = dataConditionsFromJSON;
|
|
53
|
+
exports.dataToolsFromJSON = dataToolsFromJSON;
|
|
54
|
+
exports.dataEvaluatorsFromJSON = dataEvaluatorsFromJSON;
|
|
55
|
+
exports.dataGuardrailsFromJSON = dataGuardrailsFromJSON;
|
|
56
|
+
exports.dataSettingsFromJSON = dataSettingsFromJSON;
|
|
49
57
|
exports.listAgentsResponseFormatJsonSchemaFromJSON = listAgentsResponseFormatJsonSchemaFromJSON;
|
|
50
58
|
exports.listAgentsResponseFormatAgentsJSONSchemaFromJSON = listAgentsResponseFormatAgentsJSONSchemaFromJSON;
|
|
51
59
|
exports.listAgentsResponseFormatJSONObjectFromJSON = listAgentsResponseFormatJSONObjectFromJSON;
|
|
52
60
|
exports.listAgentsResponseFormatTextFromJSON = listAgentsResponseFormatTextFromJSON;
|
|
53
|
-
exports.
|
|
54
|
-
exports.
|
|
55
|
-
exports.
|
|
56
|
-
exports.listAgentsThinkingFromJSON = listAgentsThinkingFromJSON;
|
|
61
|
+
exports.dataResponseFormatFromJSON = dataResponseFormatFromJSON;
|
|
62
|
+
exports.dataStopFromJSON = dataStopFromJSON;
|
|
63
|
+
exports.dataThinkingFromJSON = dataThinkingFromJSON;
|
|
57
64
|
exports.listAgentsToolChoiceFunctionFromJSON = listAgentsToolChoiceFunctionFromJSON;
|
|
58
65
|
exports.listAgentsToolChoice2FromJSON = listAgentsToolChoice2FromJSON;
|
|
59
|
-
exports.
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.listAgentsCacheFromJSON = listAgentsCacheFromJSON;
|
|
66
|
+
exports.dataToolChoiceFromJSON = dataToolChoiceFromJSON;
|
|
67
|
+
exports.dataIdFromJSON = dataIdFromJSON;
|
|
68
|
+
exports.listAgentsDataGuardrailsFromJSON = listAgentsDataGuardrailsFromJSON;
|
|
69
|
+
exports.dataFallbacksFromJSON = dataFallbacksFromJSON;
|
|
70
|
+
exports.dataCacheFromJSON = dataCacheFromJSON;
|
|
65
71
|
exports.listAgentsLoadBalancerModelsFromJSON = listAgentsLoadBalancerModelsFromJSON;
|
|
66
72
|
exports.listAgentsLoadBalancer1FromJSON = listAgentsLoadBalancer1FromJSON;
|
|
67
|
-
exports.
|
|
68
|
-
exports.
|
|
69
|
-
exports.
|
|
70
|
-
exports.
|
|
71
|
-
exports.listAgentsFallbackModelConfigurationAudioFromJSON = listAgentsFallbackModelConfigurationAudioFromJSON;
|
|
73
|
+
exports.dataLoadBalancerFromJSON = dataLoadBalancerFromJSON;
|
|
74
|
+
exports.dataTimeoutFromJSON = dataTimeoutFromJSON;
|
|
75
|
+
exports.dataParametersFromJSON = dataParametersFromJSON;
|
|
76
|
+
exports.dataRetryFromJSON = dataRetryFromJSON;
|
|
72
77
|
exports.listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON = listAgentsResponseFormatAgentsResponseJsonSchemaFromJSON;
|
|
73
78
|
exports.listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON = listAgentsResponseFormatAgentsResponse200JSONSchemaFromJSON;
|
|
74
79
|
exports.listAgentsResponseFormatAgentsJSONObjectFromJSON = listAgentsResponseFormatAgentsJSONObjectFromJSON;
|
|
75
80
|
exports.listAgentsResponseFormatAgentsTextFromJSON = listAgentsResponseFormatAgentsTextFromJSON;
|
|
76
81
|
exports.listAgentsFallbackModelConfigurationResponseFormatFromJSON = listAgentsFallbackModelConfigurationResponseFormatFromJSON;
|
|
77
82
|
exports.listAgentsFallbackModelConfigurationStopFromJSON = listAgentsFallbackModelConfigurationStopFromJSON;
|
|
78
|
-
exports.listAgentsFallbackModelConfigurationStreamOptionsFromJSON = listAgentsFallbackModelConfigurationStreamOptionsFromJSON;
|
|
79
83
|
exports.listAgentsFallbackModelConfigurationThinkingFromJSON = listAgentsFallbackModelConfigurationThinkingFromJSON;
|
|
80
84
|
exports.listAgentsToolChoiceAgentsFunctionFromJSON = listAgentsToolChoiceAgentsFunctionFromJSON;
|
|
81
85
|
exports.listAgentsToolChoiceAgents2FromJSON = listAgentsToolChoiceAgents2FromJSON;
|
|
@@ -83,7 +87,6 @@ exports.listAgentsFallbackModelConfigurationToolChoiceFromJSON = listAgentsFallb
|
|
|
83
87
|
exports.listAgentsFallbackModelConfigurationIdFromJSON = listAgentsFallbackModelConfigurationIdFromJSON;
|
|
84
88
|
exports.listAgentsFallbackModelConfigurationGuardrailsFromJSON = listAgentsFallbackModelConfigurationGuardrailsFromJSON;
|
|
85
89
|
exports.listAgentsFallbackModelConfigurationFallbacksFromJSON = listAgentsFallbackModelConfigurationFallbacksFromJSON;
|
|
86
|
-
exports.listAgentsFallbackModelConfigurationAgentsRetryFromJSON = listAgentsFallbackModelConfigurationAgentsRetryFromJSON;
|
|
87
90
|
exports.listAgentsFallbackModelConfigurationCacheFromJSON = listAgentsFallbackModelConfigurationCacheFromJSON;
|
|
88
91
|
exports.listAgentsLoadBalancerAgentsModelsFromJSON = listAgentsLoadBalancerAgentsModelsFromJSON;
|
|
89
92
|
exports.listAgentsLoadBalancerAgents1FromJSON = listAgentsLoadBalancerAgents1FromJSON;
|
|
@@ -92,33 +95,57 @@ exports.listAgentsFallbackModelConfigurationTimeoutFromJSON = listAgentsFallback
|
|
|
92
95
|
exports.listAgentsFallbackModelConfigurationParametersFromJSON = listAgentsFallbackModelConfigurationParametersFromJSON;
|
|
93
96
|
exports.listAgentsFallbackModelConfigurationRetryFromJSON = listAgentsFallbackModelConfigurationRetryFromJSON;
|
|
94
97
|
exports.listAgentsFallbackModelConfiguration2FromJSON = listAgentsFallbackModelConfiguration2FromJSON;
|
|
95
|
-
exports.
|
|
96
|
-
exports.
|
|
97
|
-
exports.
|
|
98
|
-
exports.listAgentsMetricsFromJSON = listAgentsMetricsFromJSON;
|
|
99
|
-
exports.listAgentsKnowledgeBasesFromJSON = listAgentsKnowledgeBasesFromJSON;
|
|
98
|
+
exports.dataFallbackModelConfigurationFromJSON = dataFallbackModelConfigurationFromJSON;
|
|
99
|
+
exports.dataModelFromJSON = dataModelFromJSON;
|
|
100
|
+
exports.data1FromJSON = data1FromJSON;
|
|
100
101
|
exports.listAgentsDataFromJSON = listAgentsDataFromJSON;
|
|
101
102
|
exports.listAgentsResponseBodyFromJSON = listAgentsResponseBodyFromJSON;
|
|
102
103
|
const z = __importStar(require("zod/v3"));
|
|
103
104
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
104
105
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
105
106
|
const components = __importStar(require("../components/index.js"));
|
|
107
|
+
/**
|
|
108
|
+
* Filter agents by type: "internal" for Orquesta-managed agents, "a2a" for external A2A-compliant agents
|
|
109
|
+
*/
|
|
110
|
+
exports.QueryParamType = {
|
|
111
|
+
Internal: "internal",
|
|
112
|
+
A2a: "a2a",
|
|
113
|
+
};
|
|
106
114
|
exports.ListAgentsObject = {
|
|
107
115
|
List: "list",
|
|
108
116
|
};
|
|
109
117
|
/**
|
|
110
118
|
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
111
119
|
*/
|
|
112
|
-
exports.
|
|
120
|
+
exports.ListAgentsDataStatus = {
|
|
121
|
+
Live: "live",
|
|
122
|
+
Draft: "draft",
|
|
123
|
+
Pending: "pending",
|
|
124
|
+
Published: "published",
|
|
125
|
+
};
|
|
126
|
+
exports.ListAgentsDataSource = {
|
|
127
|
+
Internal: "internal",
|
|
128
|
+
External: "external",
|
|
129
|
+
Experiment: "experiment",
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* The status of the agent. `Live` is the latest version of the agent. `Draft` is a version that is not yet published. `Pending` is a version that is pending approval. `Published` is a version that was live and has been replaced by a new version.
|
|
133
|
+
*/
|
|
134
|
+
exports.DataStatus = {
|
|
113
135
|
Live: "live",
|
|
114
136
|
Draft: "draft",
|
|
115
137
|
Pending: "pending",
|
|
116
138
|
Published: "published",
|
|
117
139
|
};
|
|
140
|
+
exports.DataSource = {
|
|
141
|
+
Internal: "internal",
|
|
142
|
+
External: "external",
|
|
143
|
+
Experiment: "experiment",
|
|
144
|
+
};
|
|
118
145
|
/**
|
|
119
146
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
120
147
|
*/
|
|
121
|
-
exports.
|
|
148
|
+
exports.DataToolApprovalRequired = {
|
|
122
149
|
All: "all",
|
|
123
150
|
RespectTool: "respect_tool",
|
|
124
151
|
None: "none",
|
|
@@ -126,38 +153,17 @@ exports.ListAgentsToolApprovalRequired = {
|
|
|
126
153
|
/**
|
|
127
154
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
128
155
|
*/
|
|
129
|
-
exports.
|
|
156
|
+
exports.DataExecuteOn = {
|
|
130
157
|
Input: "input",
|
|
131
158
|
Output: "output",
|
|
132
159
|
};
|
|
133
160
|
/**
|
|
134
161
|
* Determines whether the evaluator runs on the agent input (user message) or output (agent response).
|
|
135
162
|
*/
|
|
136
|
-
exports.
|
|
163
|
+
exports.ListAgentsDataExecuteOn = {
|
|
137
164
|
Input: "input",
|
|
138
165
|
Output: "output",
|
|
139
166
|
};
|
|
140
|
-
/**
|
|
141
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
142
|
-
*/
|
|
143
|
-
exports.ListAgentsVoice = {
|
|
144
|
-
Alloy: "alloy",
|
|
145
|
-
Echo: "echo",
|
|
146
|
-
Fable: "fable",
|
|
147
|
-
Onyx: "onyx",
|
|
148
|
-
Nova: "nova",
|
|
149
|
-
Shimmer: "shimmer",
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
153
|
-
*/
|
|
154
|
-
exports.ListAgentsFormat = {
|
|
155
|
-
Wav: "wav",
|
|
156
|
-
Mp3: "mp3",
|
|
157
|
-
Flac: "flac",
|
|
158
|
-
Opus: "opus",
|
|
159
|
-
Pcm16: "pcm16",
|
|
160
|
-
};
|
|
161
167
|
/**
|
|
162
168
|
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
163
169
|
*
|
|
@@ -170,7 +176,7 @@ exports.ListAgentsFormat = {
|
|
|
170
176
|
*
|
|
171
177
|
* Any of "none", "minimal", "low", "medium", "high", "xhigh".
|
|
172
178
|
*/
|
|
173
|
-
exports.
|
|
179
|
+
exports.DataReasoningEffort = {
|
|
174
180
|
None: "none",
|
|
175
181
|
Minimal: "minimal",
|
|
176
182
|
Low: "low",
|
|
@@ -189,7 +195,7 @@ exports.ListAgentsToolChoice1 = {
|
|
|
189
195
|
Auto: "auto",
|
|
190
196
|
Required: "required",
|
|
191
197
|
};
|
|
192
|
-
exports.
|
|
198
|
+
exports.DataModalities = {
|
|
193
199
|
Text: "text",
|
|
194
200
|
Audio: "audio",
|
|
195
201
|
};
|
|
@@ -204,37 +210,16 @@ exports.ListAgentsId1 = {
|
|
|
204
210
|
/**
|
|
205
211
|
* Determines whether the guardrail runs on the input (user message) or output (model response).
|
|
206
212
|
*/
|
|
207
|
-
exports.
|
|
213
|
+
exports.ListAgentsDataAgentsExecuteOn = {
|
|
208
214
|
Input: "input",
|
|
209
215
|
Output: "output",
|
|
210
216
|
};
|
|
211
|
-
exports.
|
|
217
|
+
exports.ListAgentsDataAgentsResponseType = {
|
|
212
218
|
ExactMatch: "exact_match",
|
|
213
219
|
};
|
|
214
220
|
exports.ListAgentsLoadBalancerType = {
|
|
215
221
|
WeightBased: "weight_based",
|
|
216
222
|
};
|
|
217
|
-
/**
|
|
218
|
-
* The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
|
|
219
|
-
*/
|
|
220
|
-
exports.ListAgentsFallbackModelConfigurationVoice = {
|
|
221
|
-
Alloy: "alloy",
|
|
222
|
-
Echo: "echo",
|
|
223
|
-
Fable: "fable",
|
|
224
|
-
Onyx: "onyx",
|
|
225
|
-
Nova: "nova",
|
|
226
|
-
Shimmer: "shimmer",
|
|
227
|
-
};
|
|
228
|
-
/**
|
|
229
|
-
* Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
|
|
230
|
-
*/
|
|
231
|
-
exports.ListAgentsFallbackModelConfigurationFormat = {
|
|
232
|
-
Wav: "wav",
|
|
233
|
-
Mp3: "mp3",
|
|
234
|
-
Flac: "flac",
|
|
235
|
-
Opus: "opus",
|
|
236
|
-
Pcm16: "pcm16",
|
|
237
|
-
};
|
|
238
223
|
/**
|
|
239
224
|
* Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
240
225
|
*
|
|
@@ -291,16 +276,14 @@ exports.ListAgentsFallbackModelConfigurationType = {
|
|
|
291
276
|
exports.ListAgentsLoadBalancerAgentsType = {
|
|
292
277
|
WeightBased: "weight_based",
|
|
293
278
|
};
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
External: "external",
|
|
297
|
-
Experiment: "experiment",
|
|
298
|
-
};
|
|
279
|
+
/** @internal */
|
|
280
|
+
exports.QueryParamType$outboundSchema = z.nativeEnum(exports.QueryParamType);
|
|
299
281
|
/** @internal */
|
|
300
282
|
exports.ListAgentsRequest$outboundSchema = z.object({
|
|
301
283
|
limit: z.number().optional(),
|
|
302
284
|
startingAfter: z.string().optional(),
|
|
303
285
|
endingBefore: z.string().optional(),
|
|
286
|
+
type: exports.QueryParamType$outboundSchema.optional(),
|
|
304
287
|
}).transform((v) => {
|
|
305
288
|
return (0, primitives_js_1.remap)(v, {
|
|
306
289
|
startingAfter: "starting_after",
|
|
@@ -313,20 +296,153 @@ function listAgentsRequestToJSON(listAgentsRequest) {
|
|
|
313
296
|
/** @internal */
|
|
314
297
|
exports.ListAgentsObject$inboundSchema = z.nativeEnum(exports.ListAgentsObject);
|
|
315
298
|
/** @internal */
|
|
316
|
-
exports.
|
|
299
|
+
exports.ListAgentsDataStatus$inboundSchema = z.nativeEnum(exports.ListAgentsDataStatus);
|
|
300
|
+
/** @internal */
|
|
301
|
+
exports.ListAgentsDataTeamOfAgents$inboundSchema = z.object({
|
|
302
|
+
key: z.string(),
|
|
303
|
+
role: z.string().optional(),
|
|
304
|
+
});
|
|
305
|
+
function listAgentsDataTeamOfAgentsFromJSON(jsonString) {
|
|
306
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsDataTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsDataTeamOfAgents' from JSON`);
|
|
307
|
+
}
|
|
308
|
+
/** @internal */
|
|
309
|
+
exports.ListAgentsDataMetrics$inboundSchema = z.object({
|
|
310
|
+
total_cost: z.number().default(0),
|
|
311
|
+
}).transform((v) => {
|
|
312
|
+
return (0, primitives_js_1.remap)(v, {
|
|
313
|
+
"total_cost": "totalCost",
|
|
314
|
+
});
|
|
315
|
+
});
|
|
316
|
+
function listAgentsDataMetricsFromJSON(jsonString) {
|
|
317
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsDataMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsDataMetrics' from JSON`);
|
|
318
|
+
}
|
|
319
|
+
/** @internal */
|
|
320
|
+
exports.ListAgentsDataKnowledgeBases$inboundSchema = z.object({
|
|
321
|
+
knowledge_id: z.string(),
|
|
322
|
+
}).transform((v) => {
|
|
323
|
+
return (0, primitives_js_1.remap)(v, {
|
|
324
|
+
"knowledge_id": "knowledgeId",
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
function listAgentsDataKnowledgeBasesFromJSON(jsonString) {
|
|
328
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsDataKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsDataKnowledgeBases' from JSON`);
|
|
329
|
+
}
|
|
330
|
+
/** @internal */
|
|
331
|
+
exports.ListAgentsDataSource$inboundSchema = z.nativeEnum(exports.ListAgentsDataSource);
|
|
332
|
+
/** @internal */
|
|
333
|
+
exports.DataHeaders$inboundSchema = z.object({
|
|
334
|
+
value: z.string(),
|
|
335
|
+
encrypted: z.boolean().default(false),
|
|
336
|
+
});
|
|
337
|
+
function dataHeadersFromJSON(jsonString) {
|
|
338
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataHeaders$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataHeaders' from JSON`);
|
|
339
|
+
}
|
|
340
|
+
/** @internal */
|
|
341
|
+
exports.DataA2AAgentConfiguration$inboundSchema = z.object({
|
|
342
|
+
agent_url: z.string(),
|
|
343
|
+
card_url: z.string().optional(),
|
|
344
|
+
headers: z.record(z.lazy(() => exports.DataHeaders$inboundSchema)).optional(),
|
|
345
|
+
cached_card: z.any().optional(),
|
|
346
|
+
}).transform((v) => {
|
|
347
|
+
return (0, primitives_js_1.remap)(v, {
|
|
348
|
+
"agent_url": "agentUrl",
|
|
349
|
+
"card_url": "cardUrl",
|
|
350
|
+
"cached_card": "cachedCard",
|
|
351
|
+
});
|
|
352
|
+
});
|
|
353
|
+
function dataA2AAgentConfigurationFromJSON(jsonString) {
|
|
354
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataA2AAgentConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataA2AAgentConfiguration' from JSON`);
|
|
355
|
+
}
|
|
356
|
+
/** @internal */
|
|
357
|
+
exports.Data2$inboundSchema = z
|
|
358
|
+
.object({
|
|
359
|
+
_id: z.string(),
|
|
360
|
+
key: z.string(),
|
|
361
|
+
display_name: z.string().optional(),
|
|
362
|
+
created_by_id: z.nullable(z.string()).optional(),
|
|
363
|
+
updated_by_id: z.nullable(z.string()).optional(),
|
|
364
|
+
created: z.string().optional(),
|
|
365
|
+
updated: z.string().optional(),
|
|
366
|
+
status: exports.ListAgentsDataStatus$inboundSchema,
|
|
367
|
+
version_hash: z.string().optional(),
|
|
368
|
+
path: z.string(),
|
|
369
|
+
memory_stores: z.array(z.string()).optional(),
|
|
370
|
+
team_of_agents: z.array(z.lazy(() => exports.ListAgentsDataTeamOfAgents$inboundSchema)).optional(),
|
|
371
|
+
metrics: z.lazy(() => exports.ListAgentsDataMetrics$inboundSchema).optional(),
|
|
372
|
+
variables: z.record(z.any()).optional(),
|
|
373
|
+
knowledge_bases: z.array(z.lazy(() => exports.ListAgentsDataKnowledgeBases$inboundSchema)).optional(),
|
|
374
|
+
source: exports.ListAgentsDataSource$inboundSchema.optional(),
|
|
375
|
+
type: z.literal("a2a"),
|
|
376
|
+
role: z.string(),
|
|
377
|
+
description: z.string(),
|
|
378
|
+
system_prompt: z.string().optional(),
|
|
379
|
+
instructions: z.string(),
|
|
380
|
+
a2a: z.lazy(() => exports.DataA2AAgentConfiguration$inboundSchema),
|
|
381
|
+
}).transform((v) => {
|
|
382
|
+
return (0, primitives_js_1.remap)(v, {
|
|
383
|
+
"_id": "id",
|
|
384
|
+
"display_name": "displayName",
|
|
385
|
+
"created_by_id": "createdById",
|
|
386
|
+
"updated_by_id": "updatedById",
|
|
387
|
+
"version_hash": "versionHash",
|
|
388
|
+
"memory_stores": "memoryStores",
|
|
389
|
+
"team_of_agents": "teamOfAgents",
|
|
390
|
+
"knowledge_bases": "knowledgeBases",
|
|
391
|
+
"system_prompt": "systemPrompt",
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
function data2FromJSON(jsonString) {
|
|
395
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data2' from JSON`);
|
|
396
|
+
}
|
|
397
|
+
/** @internal */
|
|
398
|
+
exports.DataStatus$inboundSchema = z
|
|
399
|
+
.nativeEnum(exports.DataStatus);
|
|
400
|
+
/** @internal */
|
|
401
|
+
exports.DataTeamOfAgents$inboundSchema = z.object({
|
|
402
|
+
key: z.string(),
|
|
403
|
+
role: z.string().optional(),
|
|
404
|
+
});
|
|
405
|
+
function dataTeamOfAgentsFromJSON(jsonString) {
|
|
406
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTeamOfAgents' from JSON`);
|
|
407
|
+
}
|
|
408
|
+
/** @internal */
|
|
409
|
+
exports.DataMetrics$inboundSchema = z.object({
|
|
410
|
+
total_cost: z.number().default(0),
|
|
411
|
+
}).transform((v) => {
|
|
412
|
+
return (0, primitives_js_1.remap)(v, {
|
|
413
|
+
"total_cost": "totalCost",
|
|
414
|
+
});
|
|
415
|
+
});
|
|
416
|
+
function dataMetricsFromJSON(jsonString) {
|
|
417
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataMetrics' from JSON`);
|
|
418
|
+
}
|
|
419
|
+
/** @internal */
|
|
420
|
+
exports.DataKnowledgeBases$inboundSchema = z.object({
|
|
421
|
+
knowledge_id: z.string(),
|
|
422
|
+
}).transform((v) => {
|
|
423
|
+
return (0, primitives_js_1.remap)(v, {
|
|
424
|
+
"knowledge_id": "knowledgeId",
|
|
425
|
+
});
|
|
426
|
+
});
|
|
427
|
+
function dataKnowledgeBasesFromJSON(jsonString) {
|
|
428
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataKnowledgeBases' from JSON`);
|
|
429
|
+
}
|
|
430
|
+
/** @internal */
|
|
431
|
+
exports.DataSource$inboundSchema = z
|
|
432
|
+
.nativeEnum(exports.DataSource);
|
|
317
433
|
/** @internal */
|
|
318
|
-
exports.
|
|
434
|
+
exports.DataToolApprovalRequired$inboundSchema = z.nativeEnum(exports.DataToolApprovalRequired);
|
|
319
435
|
/** @internal */
|
|
320
|
-
exports.
|
|
436
|
+
exports.DataConditions$inboundSchema = z.object({
|
|
321
437
|
condition: z.string(),
|
|
322
438
|
operator: z.string(),
|
|
323
439
|
value: z.string(),
|
|
324
440
|
});
|
|
325
|
-
function
|
|
326
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
441
|
+
function dataConditionsFromJSON(jsonString) {
|
|
442
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataConditions' from JSON`);
|
|
327
443
|
}
|
|
328
444
|
/** @internal */
|
|
329
|
-
exports.
|
|
445
|
+
exports.DataTools$inboundSchema = z.object({
|
|
330
446
|
id: z.string(),
|
|
331
447
|
key: z.string().optional(),
|
|
332
448
|
action_type: z.string(),
|
|
@@ -334,8 +450,7 @@ exports.ListAgentsTools$inboundSchema = z.object({
|
|
|
334
450
|
description: z.string().optional(),
|
|
335
451
|
requires_approval: z.boolean().default(false),
|
|
336
452
|
tool_id: z.string().optional(),
|
|
337
|
-
conditions: z.array(z.lazy(() => exports.
|
|
338
|
-
.optional(),
|
|
453
|
+
conditions: z.array(z.lazy(() => exports.DataConditions$inboundSchema)).optional(),
|
|
339
454
|
timeout: z.number().default(120),
|
|
340
455
|
}).transform((v) => {
|
|
341
456
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -345,52 +460,50 @@ exports.ListAgentsTools$inboundSchema = z.object({
|
|
|
345
460
|
"tool_id": "toolId",
|
|
346
461
|
});
|
|
347
462
|
});
|
|
348
|
-
function
|
|
349
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
463
|
+
function dataToolsFromJSON(jsonString) {
|
|
464
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTools' from JSON`);
|
|
350
465
|
}
|
|
351
466
|
/** @internal */
|
|
352
|
-
exports.
|
|
467
|
+
exports.DataExecuteOn$inboundSchema = z.nativeEnum(exports.DataExecuteOn);
|
|
353
468
|
/** @internal */
|
|
354
|
-
exports.
|
|
469
|
+
exports.DataEvaluators$inboundSchema = z.object({
|
|
355
470
|
id: z.string(),
|
|
356
471
|
sample_rate: z.number().default(50),
|
|
357
|
-
execute_on: exports.
|
|
472
|
+
execute_on: exports.DataExecuteOn$inboundSchema,
|
|
358
473
|
}).transform((v) => {
|
|
359
474
|
return (0, primitives_js_1.remap)(v, {
|
|
360
475
|
"sample_rate": "sampleRate",
|
|
361
476
|
"execute_on": "executeOn",
|
|
362
477
|
});
|
|
363
478
|
});
|
|
364
|
-
function
|
|
365
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
479
|
+
function dataEvaluatorsFromJSON(jsonString) {
|
|
480
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataEvaluators$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataEvaluators' from JSON`);
|
|
366
481
|
}
|
|
367
482
|
/** @internal */
|
|
368
|
-
exports.
|
|
483
|
+
exports.ListAgentsDataExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsDataExecuteOn);
|
|
369
484
|
/** @internal */
|
|
370
|
-
exports.
|
|
485
|
+
exports.DataGuardrails$inboundSchema = z.object({
|
|
371
486
|
id: z.string(),
|
|
372
487
|
sample_rate: z.number().default(50),
|
|
373
|
-
execute_on: exports.
|
|
488
|
+
execute_on: exports.ListAgentsDataExecuteOn$inboundSchema,
|
|
374
489
|
}).transform((v) => {
|
|
375
490
|
return (0, primitives_js_1.remap)(v, {
|
|
376
491
|
"sample_rate": "sampleRate",
|
|
377
492
|
"execute_on": "executeOn",
|
|
378
493
|
});
|
|
379
494
|
});
|
|
380
|
-
function
|
|
381
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
495
|
+
function dataGuardrailsFromJSON(jsonString) {
|
|
496
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataGuardrails' from JSON`);
|
|
382
497
|
}
|
|
383
498
|
/** @internal */
|
|
384
|
-
exports.
|
|
499
|
+
exports.DataSettings$inboundSchema = z.object({
|
|
385
500
|
max_iterations: z.number().int().default(100),
|
|
386
501
|
max_execution_time: z.number().int().default(600),
|
|
387
502
|
max_cost: z.number().default(0),
|
|
388
|
-
tool_approval_required: exports.
|
|
389
|
-
tools: z.array(z.lazy(() => exports.
|
|
390
|
-
evaluators: z.array(z.lazy(() => exports.
|
|
391
|
-
|
|
392
|
-
guardrails: z.array(z.lazy(() => exports.ListAgentsGuardrails$inboundSchema))
|
|
393
|
-
.optional(),
|
|
503
|
+
tool_approval_required: exports.DataToolApprovalRequired$inboundSchema.default("respect_tool"),
|
|
504
|
+
tools: z.array(z.lazy(() => exports.DataTools$inboundSchema)).optional(),
|
|
505
|
+
evaluators: z.array(z.lazy(() => exports.DataEvaluators$inboundSchema)).optional(),
|
|
506
|
+
guardrails: z.array(z.lazy(() => exports.DataGuardrails$inboundSchema)).optional(),
|
|
394
507
|
}).transform((v) => {
|
|
395
508
|
return (0, primitives_js_1.remap)(v, {
|
|
396
509
|
"max_iterations": "maxIterations",
|
|
@@ -399,20 +512,8 @@ exports.ListAgentsSettings$inboundSchema = z.object({
|
|
|
399
512
|
"tool_approval_required": "toolApprovalRequired",
|
|
400
513
|
});
|
|
401
514
|
});
|
|
402
|
-
function
|
|
403
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
404
|
-
}
|
|
405
|
-
/** @internal */
|
|
406
|
-
exports.ListAgentsVoice$inboundSchema = z.nativeEnum(exports.ListAgentsVoice);
|
|
407
|
-
/** @internal */
|
|
408
|
-
exports.ListAgentsFormat$inboundSchema = z.nativeEnum(exports.ListAgentsFormat);
|
|
409
|
-
/** @internal */
|
|
410
|
-
exports.ListAgentsAudio$inboundSchema = z.object({
|
|
411
|
-
voice: exports.ListAgentsVoice$inboundSchema,
|
|
412
|
-
format: exports.ListAgentsFormat$inboundSchema,
|
|
413
|
-
});
|
|
414
|
-
function listAgentsAudioFromJSON(jsonString) {
|
|
415
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAudio' from JSON`);
|
|
515
|
+
function dataSettingsFromJSON(jsonString) {
|
|
516
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataSettings' from JSON`);
|
|
416
517
|
}
|
|
417
518
|
/** @internal */
|
|
418
519
|
exports.ListAgentsResponseFormatJsonSchema$inboundSchema = z.object({
|
|
@@ -451,39 +552,28 @@ function listAgentsResponseFormatTextFromJSON(jsonString) {
|
|
|
451
552
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsResponseFormatText' from JSON`);
|
|
452
553
|
}
|
|
453
554
|
/** @internal */
|
|
454
|
-
exports.
|
|
555
|
+
exports.DataResponseFormat$inboundSchema = z.union([
|
|
455
556
|
z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
|
|
456
557
|
z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
457
558
|
z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
458
559
|
]);
|
|
459
|
-
function
|
|
460
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
560
|
+
function dataResponseFormatFromJSON(jsonString) {
|
|
561
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataResponseFormat' from JSON`);
|
|
461
562
|
}
|
|
462
563
|
/** @internal */
|
|
463
|
-
exports.
|
|
564
|
+
exports.DataReasoningEffort$inboundSchema = z.nativeEnum(exports.DataReasoningEffort);
|
|
464
565
|
/** @internal */
|
|
465
|
-
exports.
|
|
466
|
-
function
|
|
467
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
566
|
+
exports.DataStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
|
|
567
|
+
function dataStopFromJSON(jsonString) {
|
|
568
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataStop' from JSON`);
|
|
468
569
|
}
|
|
469
570
|
/** @internal */
|
|
470
|
-
exports.
|
|
471
|
-
include_usage: z.boolean().optional(),
|
|
472
|
-
}).transform((v) => {
|
|
473
|
-
return (0, primitives_js_1.remap)(v, {
|
|
474
|
-
"include_usage": "includeUsage",
|
|
475
|
-
});
|
|
476
|
-
});
|
|
477
|
-
function listAgentsStreamOptionsFromJSON(jsonString) {
|
|
478
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsStreamOptions' from JSON`);
|
|
479
|
-
}
|
|
480
|
-
/** @internal */
|
|
481
|
-
exports.ListAgentsThinking$inboundSchema = z.union([
|
|
571
|
+
exports.DataThinking$inboundSchema = z.union([
|
|
482
572
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
483
573
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
484
574
|
]);
|
|
485
|
-
function
|
|
486
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
575
|
+
function dataThinkingFromJSON(jsonString) {
|
|
576
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataThinking' from JSON`);
|
|
487
577
|
}
|
|
488
578
|
/** @internal */
|
|
489
579
|
exports.ListAgentsToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoiceType);
|
|
@@ -505,64 +595,53 @@ function listAgentsToolChoice2FromJSON(jsonString) {
|
|
|
505
595
|
/** @internal */
|
|
506
596
|
exports.ListAgentsToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentsToolChoice1);
|
|
507
597
|
/** @internal */
|
|
508
|
-
exports.
|
|
598
|
+
exports.DataToolChoice$inboundSchema = z.union([
|
|
509
599
|
z.lazy(() => exports.ListAgentsToolChoice2$inboundSchema),
|
|
510
600
|
exports.ListAgentsToolChoice1$inboundSchema,
|
|
511
601
|
]);
|
|
512
|
-
function
|
|
513
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
602
|
+
function dataToolChoiceFromJSON(jsonString) {
|
|
603
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataToolChoice' from JSON`);
|
|
514
604
|
}
|
|
515
605
|
/** @internal */
|
|
516
|
-
exports.
|
|
606
|
+
exports.DataModalities$inboundSchema = z.nativeEnum(exports.DataModalities);
|
|
517
607
|
/** @internal */
|
|
518
608
|
exports.ListAgentsId1$inboundSchema = z.nativeEnum(exports.ListAgentsId1);
|
|
519
609
|
/** @internal */
|
|
520
|
-
exports.
|
|
521
|
-
|
|
522
|
-
|
|
610
|
+
exports.DataId$inboundSchema = z
|
|
611
|
+
.union([exports.ListAgentsId1$inboundSchema, z.string()]);
|
|
612
|
+
function dataIdFromJSON(jsonString) {
|
|
613
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataId' from JSON`);
|
|
523
614
|
}
|
|
524
615
|
/** @internal */
|
|
525
|
-
exports.
|
|
616
|
+
exports.ListAgentsDataAgentsExecuteOn$inboundSchema = z.nativeEnum(exports.ListAgentsDataAgentsExecuteOn);
|
|
526
617
|
/** @internal */
|
|
527
|
-
exports.
|
|
618
|
+
exports.ListAgentsDataGuardrails$inboundSchema = z.object({
|
|
528
619
|
id: z.union([exports.ListAgentsId1$inboundSchema, z.string()]),
|
|
529
|
-
execute_on: exports.
|
|
620
|
+
execute_on: exports.ListAgentsDataAgentsExecuteOn$inboundSchema,
|
|
530
621
|
}).transform((v) => {
|
|
531
622
|
return (0, primitives_js_1.remap)(v, {
|
|
532
623
|
"execute_on": "executeOn",
|
|
533
624
|
});
|
|
534
625
|
});
|
|
535
|
-
function
|
|
536
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
626
|
+
function listAgentsDataGuardrailsFromJSON(jsonString) {
|
|
627
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsDataGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsDataGuardrails' from JSON`);
|
|
537
628
|
}
|
|
538
629
|
/** @internal */
|
|
539
|
-
exports.
|
|
630
|
+
exports.DataFallbacks$inboundSchema = z.object({
|
|
540
631
|
model: z.string(),
|
|
541
632
|
});
|
|
542
|
-
function
|
|
543
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
633
|
+
function dataFallbacksFromJSON(jsonString) {
|
|
634
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFallbacks' from JSON`);
|
|
544
635
|
}
|
|
545
636
|
/** @internal */
|
|
546
|
-
exports.
|
|
547
|
-
count: z.number().default(3),
|
|
548
|
-
on_codes: z.array(z.number()).optional(),
|
|
549
|
-
}).transform((v) => {
|
|
550
|
-
return (0, primitives_js_1.remap)(v, {
|
|
551
|
-
"on_codes": "onCodes",
|
|
552
|
-
});
|
|
553
|
-
});
|
|
554
|
-
function listAgentsAgentsRetryFromJSON(jsonString) {
|
|
555
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsAgentsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsAgentsRetry' from JSON`);
|
|
556
|
-
}
|
|
637
|
+
exports.ListAgentsDataAgentsResponseType$inboundSchema = z.nativeEnum(exports.ListAgentsDataAgentsResponseType);
|
|
557
638
|
/** @internal */
|
|
558
|
-
exports.
|
|
559
|
-
/** @internal */
|
|
560
|
-
exports.ListAgentsCache$inboundSchema = z.object({
|
|
639
|
+
exports.DataCache$inboundSchema = z.object({
|
|
561
640
|
ttl: z.number().default(1800),
|
|
562
|
-
type: exports.
|
|
641
|
+
type: exports.ListAgentsDataAgentsResponseType$inboundSchema,
|
|
563
642
|
});
|
|
564
|
-
function
|
|
565
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
643
|
+
function dataCacheFromJSON(jsonString) {
|
|
644
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataCache$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataCache' from JSON`);
|
|
566
645
|
}
|
|
567
646
|
/** @internal */
|
|
568
647
|
exports.ListAgentsLoadBalancerType$inboundSchema = z.nativeEnum(exports.ListAgentsLoadBalancerType);
|
|
@@ -583,42 +662,37 @@ function listAgentsLoadBalancer1FromJSON(jsonString) {
|
|
|
583
662
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsLoadBalancer1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsLoadBalancer1' from JSON`);
|
|
584
663
|
}
|
|
585
664
|
/** @internal */
|
|
586
|
-
exports.
|
|
587
|
-
function
|
|
588
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
665
|
+
exports.DataLoadBalancer$inboundSchema = z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema);
|
|
666
|
+
function dataLoadBalancerFromJSON(jsonString) {
|
|
667
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataLoadBalancer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataLoadBalancer' from JSON`);
|
|
589
668
|
}
|
|
590
669
|
/** @internal */
|
|
591
|
-
exports.
|
|
670
|
+
exports.DataTimeout$inboundSchema = z.object({
|
|
592
671
|
call_timeout: z.number(),
|
|
593
672
|
}).transform((v) => {
|
|
594
673
|
return (0, primitives_js_1.remap)(v, {
|
|
595
674
|
"call_timeout": "callTimeout",
|
|
596
675
|
});
|
|
597
676
|
});
|
|
598
|
-
function
|
|
599
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
677
|
+
function dataTimeoutFromJSON(jsonString) {
|
|
678
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataTimeout$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataTimeout' from JSON`);
|
|
600
679
|
}
|
|
601
680
|
/** @internal */
|
|
602
|
-
exports.
|
|
681
|
+
exports.DataParameters$inboundSchema = z.object({
|
|
603
682
|
name: z.string().optional(),
|
|
604
|
-
audio: z.nullable(z.lazy(() => exports.ListAgentsAudio$inboundSchema)).optional(),
|
|
605
683
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
606
684
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
607
685
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
608
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
609
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
610
|
-
n: z.nullable(z.number().int()).optional(),
|
|
611
686
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
612
687
|
response_format: z.union([
|
|
613
688
|
z.lazy(() => exports.ListAgentsResponseFormatText$inboundSchema),
|
|
614
689
|
z.lazy(() => exports.ListAgentsResponseFormatJSONObject$inboundSchema),
|
|
615
690
|
z.lazy(() => exports.ListAgentsResponseFormatAgentsJSONSchema$inboundSchema),
|
|
616
691
|
]).optional(),
|
|
617
|
-
reasoning_effort: exports.
|
|
692
|
+
reasoning_effort: exports.DataReasoningEffort$inboundSchema.optional(),
|
|
618
693
|
verbosity: z.string().optional(),
|
|
619
694
|
seed: z.nullable(z.number()).optional(),
|
|
620
695
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
621
|
-
stream_options: z.nullable(z.lazy(() => exports.ListAgentsStreamOptions$inboundSchema)).optional(),
|
|
622
696
|
thinking: z.union([
|
|
623
697
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
624
698
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -631,26 +705,21 @@ exports.ListAgentsParameters$inboundSchema = z.object({
|
|
|
631
705
|
exports.ListAgentsToolChoice1$inboundSchema,
|
|
632
706
|
]).optional(),
|
|
633
707
|
parallel_tool_calls: z.boolean().optional(),
|
|
634
|
-
modalities: z.nullable(z.array(exports.
|
|
635
|
-
|
|
636
|
-
guardrails: z.array(z.lazy(() => exports.ListAgentsAgentsGuardrails$inboundSchema))
|
|
637
|
-
.optional(),
|
|
638
|
-
fallbacks: z.array(z.lazy(() => exports.ListAgentsFallbacks$inboundSchema))
|
|
708
|
+
modalities: z.nullable(z.array(exports.DataModalities$inboundSchema)).optional(),
|
|
709
|
+
guardrails: z.array(z.lazy(() => exports.ListAgentsDataGuardrails$inboundSchema))
|
|
639
710
|
.optional(),
|
|
640
|
-
|
|
641
|
-
cache: z.lazy(() => exports.
|
|
711
|
+
fallbacks: z.array(z.lazy(() => exports.DataFallbacks$inboundSchema)).optional(),
|
|
712
|
+
cache: z.lazy(() => exports.DataCache$inboundSchema).optional(),
|
|
642
713
|
load_balancer: z.lazy(() => exports.ListAgentsLoadBalancer1$inboundSchema).optional(),
|
|
643
|
-
timeout: z.lazy(() => exports.
|
|
714
|
+
timeout: z.lazy(() => exports.DataTimeout$inboundSchema).optional(),
|
|
644
715
|
}).transform((v) => {
|
|
645
716
|
return (0, primitives_js_1.remap)(v, {
|
|
646
717
|
"frequency_penalty": "frequencyPenalty",
|
|
647
718
|
"max_tokens": "maxTokens",
|
|
648
719
|
"max_completion_tokens": "maxCompletionTokens",
|
|
649
|
-
"top_logprobs": "topLogprobs",
|
|
650
720
|
"presence_penalty": "presencePenalty",
|
|
651
721
|
"response_format": "responseFormat",
|
|
652
722
|
"reasoning_effort": "reasoningEffort",
|
|
653
|
-
"stream_options": "streamOptions",
|
|
654
723
|
"top_p": "topP",
|
|
655
724
|
"top_k": "topK",
|
|
656
725
|
"tool_choice": "toolChoice",
|
|
@@ -658,11 +727,11 @@ exports.ListAgentsParameters$inboundSchema = z.object({
|
|
|
658
727
|
"load_balancer": "loadBalancer",
|
|
659
728
|
});
|
|
660
729
|
});
|
|
661
|
-
function
|
|
662
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
730
|
+
function dataParametersFromJSON(jsonString) {
|
|
731
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataParameters' from JSON`);
|
|
663
732
|
}
|
|
664
733
|
/** @internal */
|
|
665
|
-
exports.
|
|
734
|
+
exports.DataRetry$inboundSchema = z.object({
|
|
666
735
|
count: z.number().default(3),
|
|
667
736
|
on_codes: z.array(z.number()).optional(),
|
|
668
737
|
}).transform((v) => {
|
|
@@ -670,22 +739,8 @@ exports.ListAgentsRetry$inboundSchema = z.object({
|
|
|
670
739
|
"on_codes": "onCodes",
|
|
671
740
|
});
|
|
672
741
|
});
|
|
673
|
-
function
|
|
674
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
675
|
-
}
|
|
676
|
-
/** @internal */
|
|
677
|
-
exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema = z
|
|
678
|
-
.nativeEnum(exports.ListAgentsFallbackModelConfigurationVoice);
|
|
679
|
-
/** @internal */
|
|
680
|
-
exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema = z
|
|
681
|
-
.nativeEnum(exports.ListAgentsFallbackModelConfigurationFormat);
|
|
682
|
-
/** @internal */
|
|
683
|
-
exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema = z.object({
|
|
684
|
-
voice: exports.ListAgentsFallbackModelConfigurationVoice$inboundSchema,
|
|
685
|
-
format: exports.ListAgentsFallbackModelConfigurationFormat$inboundSchema,
|
|
686
|
-
});
|
|
687
|
-
function listAgentsFallbackModelConfigurationAudioFromJSON(jsonString) {
|
|
688
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationAudio' from JSON`);
|
|
742
|
+
function dataRetryFromJSON(jsonString) {
|
|
743
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataRetry' from JSON`);
|
|
689
744
|
}
|
|
690
745
|
/** @internal */
|
|
691
746
|
exports.ListAgentsResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
|
|
@@ -740,17 +795,6 @@ function listAgentsFallbackModelConfigurationStopFromJSON(jsonString) {
|
|
|
740
795
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationStop' from JSON`);
|
|
741
796
|
}
|
|
742
797
|
/** @internal */
|
|
743
|
-
exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema = z.object({
|
|
744
|
-
include_usage: z.boolean().optional(),
|
|
745
|
-
}).transform((v) => {
|
|
746
|
-
return (0, primitives_js_1.remap)(v, {
|
|
747
|
-
"include_usage": "includeUsage",
|
|
748
|
-
});
|
|
749
|
-
});
|
|
750
|
-
function listAgentsFallbackModelConfigurationStreamOptionsFromJSON(jsonString) {
|
|
751
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationStreamOptions' from JSON`);
|
|
752
|
-
}
|
|
753
|
-
/** @internal */
|
|
754
798
|
exports.ListAgentsFallbackModelConfigurationThinking$inboundSchema = z.union([
|
|
755
799
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
756
800
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -818,18 +862,6 @@ function listAgentsFallbackModelConfigurationFallbacksFromJSON(jsonString) {
|
|
|
818
862
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationFallbacks' from JSON`);
|
|
819
863
|
}
|
|
820
864
|
/** @internal */
|
|
821
|
-
exports.ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema = z.object({
|
|
822
|
-
count: z.number().default(3),
|
|
823
|
-
on_codes: z.array(z.number()).optional(),
|
|
824
|
-
}).transform((v) => {
|
|
825
|
-
return (0, primitives_js_1.remap)(v, {
|
|
826
|
-
"on_codes": "onCodes",
|
|
827
|
-
});
|
|
828
|
-
});
|
|
829
|
-
function listAgentsFallbackModelConfigurationAgentsRetryFromJSON(jsonString) {
|
|
830
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfigurationAgentsRetry' from JSON`);
|
|
831
|
-
}
|
|
832
|
-
/** @internal */
|
|
833
865
|
exports.ListAgentsFallbackModelConfigurationType$inboundSchema = z
|
|
834
866
|
.nativeEnum(exports.ListAgentsFallbackModelConfigurationType);
|
|
835
867
|
/** @internal */
|
|
@@ -877,13 +909,9 @@ function listAgentsFallbackModelConfigurationTimeoutFromJSON(jsonString) {
|
|
|
877
909
|
/** @internal */
|
|
878
910
|
exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object({
|
|
879
911
|
name: z.string().optional(),
|
|
880
|
-
audio: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelConfigurationAudio$inboundSchema)).optional(),
|
|
881
912
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
882
913
|
max_tokens: z.nullable(z.number().int()).optional(),
|
|
883
914
|
max_completion_tokens: z.nullable(z.number().int()).optional(),
|
|
884
|
-
logprobs: z.nullable(z.boolean()).optional(),
|
|
885
|
-
top_logprobs: z.nullable(z.number().int()).optional(),
|
|
886
|
-
n: z.nullable(z.number().int()).optional(),
|
|
887
915
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
888
916
|
response_format: z.union([
|
|
889
917
|
z.lazy(() => exports.ListAgentsResponseFormatAgentsText$inboundSchema),
|
|
@@ -895,7 +923,6 @@ exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object(
|
|
|
895
923
|
verbosity: z.string().optional(),
|
|
896
924
|
seed: z.nullable(z.number()).optional(),
|
|
897
925
|
stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
|
|
898
|
-
stream_options: z.nullable(z.lazy(() => exports.ListAgentsFallbackModelConfigurationStreamOptions$inboundSchema)).optional(),
|
|
899
926
|
thinking: z.union([
|
|
900
927
|
components.ThinkingConfigDisabledSchema$inboundSchema,
|
|
901
928
|
components.ThinkingConfigEnabledSchema$inboundSchema,
|
|
@@ -911,7 +938,6 @@ exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object(
|
|
|
911
938
|
modalities: z.nullable(z.array(exports.ListAgentsFallbackModelConfigurationModalities$inboundSchema)).optional(),
|
|
912
939
|
guardrails: z.array(z.lazy(() => exports.ListAgentsFallbackModelConfigurationGuardrails$inboundSchema)).optional(),
|
|
913
940
|
fallbacks: z.array(z.lazy(() => exports.ListAgentsFallbackModelConfigurationFallbacks$inboundSchema)).optional(),
|
|
914
|
-
retry: z.lazy(() => exports.ListAgentsFallbackModelConfigurationAgentsRetry$inboundSchema).optional(),
|
|
915
941
|
cache: z.lazy(() => exports.ListAgentsFallbackModelConfigurationCache$inboundSchema)
|
|
916
942
|
.optional(),
|
|
917
943
|
load_balancer: z.lazy(() => exports.ListAgentsLoadBalancerAgents1$inboundSchema)
|
|
@@ -922,11 +948,9 @@ exports.ListAgentsFallbackModelConfigurationParameters$inboundSchema = z.object(
|
|
|
922
948
|
"frequency_penalty": "frequencyPenalty",
|
|
923
949
|
"max_tokens": "maxTokens",
|
|
924
950
|
"max_completion_tokens": "maxCompletionTokens",
|
|
925
|
-
"top_logprobs": "topLogprobs",
|
|
926
951
|
"presence_penalty": "presencePenalty",
|
|
927
952
|
"response_format": "responseFormat",
|
|
928
953
|
"reasoning_effort": "reasoningEffort",
|
|
929
|
-
"stream_options": "streamOptions",
|
|
930
954
|
"top_p": "topP",
|
|
931
955
|
"top_k": "topK",
|
|
932
956
|
"tool_choice": "toolChoice",
|
|
@@ -960,19 +984,19 @@ function listAgentsFallbackModelConfiguration2FromJSON(jsonString) {
|
|
|
960
984
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsFallbackModelConfiguration2' from JSON`);
|
|
961
985
|
}
|
|
962
986
|
/** @internal */
|
|
963
|
-
exports.
|
|
987
|
+
exports.DataFallbackModelConfiguration$inboundSchema = z.union([
|
|
964
988
|
z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
965
989
|
z.string(),
|
|
966
990
|
]);
|
|
967
|
-
function
|
|
968
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
991
|
+
function dataFallbackModelConfigurationFromJSON(jsonString) {
|
|
992
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataFallbackModelConfiguration' from JSON`);
|
|
969
993
|
}
|
|
970
994
|
/** @internal */
|
|
971
|
-
exports.
|
|
995
|
+
exports.DataModel$inboundSchema = z.object({
|
|
972
996
|
id: z.string(),
|
|
973
997
|
integration_id: z.nullable(z.string()).optional(),
|
|
974
|
-
parameters: z.lazy(() => exports.
|
|
975
|
-
retry: z.lazy(() => exports.
|
|
998
|
+
parameters: z.lazy(() => exports.DataParameters$inboundSchema).optional(),
|
|
999
|
+
retry: z.lazy(() => exports.DataRetry$inboundSchema).optional(),
|
|
976
1000
|
fallback_models: z.nullable(z.array(z.union([
|
|
977
1001
|
z.lazy(() => exports.ListAgentsFallbackModelConfiguration2$inboundSchema),
|
|
978
1002
|
z.string(),
|
|
@@ -983,43 +1007,12 @@ exports.ListAgentsModel$inboundSchema = z.object({
|
|
|
983
1007
|
"fallback_models": "fallbackModels",
|
|
984
1008
|
});
|
|
985
1009
|
});
|
|
986
|
-
function
|
|
987
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
988
|
-
}
|
|
989
|
-
/** @internal */
|
|
990
|
-
exports.ListAgentsTeamOfAgents$inboundSchema = z.object({
|
|
991
|
-
key: z.string(),
|
|
992
|
-
role: z.string().optional(),
|
|
993
|
-
});
|
|
994
|
-
function listAgentsTeamOfAgentsFromJSON(jsonString) {
|
|
995
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsTeamOfAgents$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsTeamOfAgents' from JSON`);
|
|
996
|
-
}
|
|
997
|
-
/** @internal */
|
|
998
|
-
exports.ListAgentsMetrics$inboundSchema = z.object({
|
|
999
|
-
total_cost: z.number().default(0),
|
|
1000
|
-
}).transform((v) => {
|
|
1001
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1002
|
-
"total_cost": "totalCost",
|
|
1003
|
-
});
|
|
1004
|
-
});
|
|
1005
|
-
function listAgentsMetricsFromJSON(jsonString) {
|
|
1006
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsMetrics' from JSON`);
|
|
1010
|
+
function dataModelFromJSON(jsonString) {
|
|
1011
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DataModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DataModel' from JSON`);
|
|
1007
1012
|
}
|
|
1008
1013
|
/** @internal */
|
|
1009
|
-
exports.
|
|
1010
|
-
|
|
1011
|
-
}).transform((v) => {
|
|
1012
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1013
|
-
"knowledge_id": "knowledgeId",
|
|
1014
|
-
});
|
|
1015
|
-
});
|
|
1016
|
-
function listAgentsKnowledgeBasesFromJSON(jsonString) {
|
|
1017
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsKnowledgeBases$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsKnowledgeBases' from JSON`);
|
|
1018
|
-
}
|
|
1019
|
-
/** @internal */
|
|
1020
|
-
exports.ListAgentsSource$inboundSchema = z.nativeEnum(exports.ListAgentsSource);
|
|
1021
|
-
/** @internal */
|
|
1022
|
-
exports.ListAgentsData$inboundSchema = z.object({
|
|
1014
|
+
exports.Data1$inboundSchema = z
|
|
1015
|
+
.object({
|
|
1023
1016
|
_id: z.string(),
|
|
1024
1017
|
key: z.string(),
|
|
1025
1018
|
display_name: z.string().optional(),
|
|
@@ -1027,42 +1020,55 @@ exports.ListAgentsData$inboundSchema = z.object({
|
|
|
1027
1020
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1028
1021
|
created: z.string().optional(),
|
|
1029
1022
|
updated: z.string().optional(),
|
|
1030
|
-
|
|
1031
|
-
description: z.string(),
|
|
1032
|
-
system_prompt: z.string().optional(),
|
|
1033
|
-
instructions: z.string(),
|
|
1034
|
-
status: exports.ListAgentsStatus$inboundSchema,
|
|
1035
|
-
settings: z.lazy(() => exports.ListAgentsSettings$inboundSchema).optional(),
|
|
1036
|
-
model: z.lazy(() => exports.ListAgentsModel$inboundSchema),
|
|
1023
|
+
status: exports.DataStatus$inboundSchema,
|
|
1037
1024
|
version_hash: z.string().optional(),
|
|
1038
1025
|
path: z.string(),
|
|
1039
|
-
memory_stores: z.array(z.string()),
|
|
1040
|
-
team_of_agents: z.array(z.lazy(() => exports.
|
|
1041
|
-
|
|
1026
|
+
memory_stores: z.array(z.string()).optional(),
|
|
1027
|
+
team_of_agents: z.array(z.lazy(() => exports.DataTeamOfAgents$inboundSchema))
|
|
1028
|
+
.optional(),
|
|
1029
|
+
metrics: z.lazy(() => exports.DataMetrics$inboundSchema).optional(),
|
|
1042
1030
|
variables: z.record(z.any()).optional(),
|
|
1043
|
-
knowledge_bases: z.array(z.lazy(() => exports.
|
|
1031
|
+
knowledge_bases: z.array(z.lazy(() => exports.DataKnowledgeBases$inboundSchema))
|
|
1044
1032
|
.optional(),
|
|
1045
|
-
source: exports.
|
|
1033
|
+
source: exports.DataSource$inboundSchema.optional(),
|
|
1034
|
+
type: z.literal("internal"),
|
|
1035
|
+
role: z.string(),
|
|
1036
|
+
description: z.string(),
|
|
1037
|
+
system_prompt: z.string().optional(),
|
|
1038
|
+
instructions: z.string(),
|
|
1039
|
+
settings: z.lazy(() => exports.DataSettings$inboundSchema).optional(),
|
|
1040
|
+
model: z.lazy(() => exports.DataModel$inboundSchema),
|
|
1046
1041
|
}).transform((v) => {
|
|
1047
1042
|
return (0, primitives_js_1.remap)(v, {
|
|
1048
1043
|
"_id": "id",
|
|
1049
1044
|
"display_name": "displayName",
|
|
1050
1045
|
"created_by_id": "createdById",
|
|
1051
1046
|
"updated_by_id": "updatedById",
|
|
1052
|
-
"system_prompt": "systemPrompt",
|
|
1053
1047
|
"version_hash": "versionHash",
|
|
1054
1048
|
"memory_stores": "memoryStores",
|
|
1055
1049
|
"team_of_agents": "teamOfAgents",
|
|
1056
1050
|
"knowledge_bases": "knowledgeBases",
|
|
1051
|
+
"system_prompt": "systemPrompt",
|
|
1057
1052
|
});
|
|
1058
1053
|
});
|
|
1054
|
+
function data1FromJSON(jsonString) {
|
|
1055
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Data1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Data1' from JSON`);
|
|
1056
|
+
}
|
|
1057
|
+
/** @internal */
|
|
1058
|
+
exports.ListAgentsData$inboundSchema = z.union([
|
|
1059
|
+
z.lazy(() => exports.Data1$inboundSchema),
|
|
1060
|
+
z.lazy(() => exports.Data2$inboundSchema),
|
|
1061
|
+
]);
|
|
1059
1062
|
function listAgentsDataFromJSON(jsonString) {
|
|
1060
1063
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentsData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentsData' from JSON`);
|
|
1061
1064
|
}
|
|
1062
1065
|
/** @internal */
|
|
1063
1066
|
exports.ListAgentsResponseBody$inboundSchema = z.object({
|
|
1064
1067
|
object: exports.ListAgentsObject$inboundSchema,
|
|
1065
|
-
data: z.array(z.
|
|
1068
|
+
data: z.array(z.union([
|
|
1069
|
+
z.lazy(() => exports.Data1$inboundSchema),
|
|
1070
|
+
z.lazy(() => exports.Data2$inboundSchema),
|
|
1071
|
+
])),
|
|
1066
1072
|
has_more: z.boolean(),
|
|
1067
1073
|
}).transform((v) => {
|
|
1068
1074
|
return (0, primitives_js_1.remap)(v, {
|