@orq-ai/node 4.1.0-rc.34 → 4.1.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 +42 -18
- package/bin/mcp-server.js +4959 -5404
- package/bin/mcp-server.js.map +126 -82
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +7 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +9 -2
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/budgetsCreate.d.ts +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/contactsList.js +1 -0
- package/funcs/contactsList.js.map +1 -1
- package/funcs/conversationsCreate.d.ts +17 -0
- package/funcs/conversationsCreate.d.ts.map +1 -0
- package/funcs/conversationsCreate.js +114 -0
- package/funcs/conversationsCreate.js.map +1 -0
- package/funcs/conversationsDelete.d.ts +17 -0
- package/funcs/conversationsDelete.d.ts.map +1 -0
- package/funcs/conversationsDelete.js +127 -0
- package/funcs/conversationsDelete.js.map +1 -0
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/funcs/conversationsList.d.ts +17 -0
- package/funcs/conversationsList.d.ts.map +1 -0
- package/funcs/conversationsList.js +124 -0
- package/funcs/conversationsList.js.map +1 -0
- package/funcs/conversationsRetrieve.d.ts +18 -0
- package/funcs/conversationsRetrieve.d.ts.map +1 -0
- package/funcs/conversationsRetrieve.js +126 -0
- package/funcs/conversationsRetrieve.js.map +1 -0
- package/funcs/conversationsUpdate.d.ts +18 -0
- package/funcs/conversationsUpdate.d.ts.map +1 -0
- package/funcs/conversationsUpdate.js +128 -0
- package/funcs/conversationsUpdate.js.map +1 -0
- package/funcs/evalsInvoke.d.ts +15 -0
- package/funcs/evalsInvoke.d.ts.map +1 -0
- package/funcs/evalsInvoke.js +121 -0
- package/funcs/evalsInvoke.js.map +1 -0
- package/funcs/memoryStoresListDocuments.js +2 -0
- package/funcs/memoryStoresListDocuments.js.map +1 -1
- package/funcs/memoryStoresListMemories.js +1 -0
- package/funcs/memoryStoresListMemories.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +15 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/budgetsCreate.js +1 -1
- package/mcp-server/tools/budgetsCreate.js.map +1 -1
- package/mcp-server/tools/conversationsCreate.d.ts +8 -0
- package/mcp-server/tools/conversationsCreate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsCreate.js +64 -0
- package/mcp-server/tools/conversationsCreate.js.map +1 -0
- package/mcp-server/tools/conversationsDelete.d.ts +8 -0
- package/mcp-server/tools/conversationsDelete.d.ts.map +1 -0
- package/mcp-server/tools/conversationsDelete.js +63 -0
- package/mcp-server/tools/conversationsDelete.js.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/mcp-server/tools/conversationsList.d.ts +10 -0
- package/mcp-server/tools/conversationsList.d.ts.map +1 -0
- package/mcp-server/tools/conversationsList.js +66 -0
- package/mcp-server/tools/conversationsList.js.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts +8 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.js +64 -0
- package/mcp-server/tools/conversationsRetrieve.js.map +1 -0
- package/mcp-server/tools/conversationsUpdate.d.ts +10 -0
- package/mcp-server/tools/conversationsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsUpdate.js +66 -0
- package/mcp-server/tools/conversationsUpdate.js.map +1 -0
- package/mcp-server/tools/evalsInvoke.d.ts +8 -0
- package/mcp-server/tools/evalsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/evalsInvoke.js +62 -0
- package/mcp-server/tools/evalsInvoke.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentexecutionstartedstreamingevent.js +11 -12
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
- package/models/components/agentinactivestreamingevent.d.ts +21 -21
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
- package/models/components/agentinactivestreamingevent.js +27 -28
- package/models/components/agentinactivestreamingevent.js.map +1 -1
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +26 -24
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +34 -32
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/imagecontentpartschema.d.ts +18 -18
- package/models/components/imagecontentpartschema.d.ts.map +1 -1
- package/models/components/imagecontentpartschema.js +23 -21
- package/models/components/imagecontentpartschema.js.map +1 -1
- 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/invokedeploymentrequest.d.ts +161 -1040
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +161 -1015
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.js +2 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.js +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +2 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +3 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +4 -4
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +37 -147
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +64 -205
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.d.ts +69 -13
- package/models/operations/createbudget.d.ts.map +1 -1
- package/models/operations/createbudget.js +61 -12
- package/models/operations/createbudget.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +154 -1034
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +149 -959
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememory.d.ts +10 -5
- package/models/operations/creatememory.d.ts.map +1 -1
- package/models/operations/creatememory.js +6 -2
- package/models/operations/creatememory.js.map +1 -1
- package/models/operations/creatememorydocument.d.ts +4 -4
- package/models/operations/creatememorydocument.d.ts.map +1 -1
- package/models/operations/creatememorydocument.js +2 -2
- package/models/operations/creatememorydocument.js.map +1 -1
- package/models/operations/createprompt.d.ts +136 -479
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +158 -473
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentcreatemetric.d.ts +154 -1034
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +140 -975
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +222 -1102
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +263 -1059
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +27 -26
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +29 -28
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +14 -13
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +14 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +187 -1066
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +163 -989
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.d.ts +8 -8
- package/models/operations/fileupload.d.ts.map +1 -1
- package/models/operations/fileupload.js +13 -14
- package/models/operations/fileupload.js.map +1 -1
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getallmemories.d.ts +10 -0
- package/models/operations/getallmemories.d.ts.map +1 -1
- package/models/operations/getallmemories.js +6 -0
- package/models/operations/getallmemories.js.map +1 -1
- package/models/operations/getallmemorydocuments.d.ts +10 -0
- package/models/operations/getallmemorydocuments.d.ts.map +1 -1
- package/models/operations/getallmemorydocuments.js +8 -0
- package/models/operations/getallmemorydocuments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +14 -13
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +14 -13
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.d.ts +5 -0
- package/models/operations/getbudget.d.ts.map +1 -1
- package/models/operations/getbudget.js +6 -2
- package/models/operations/getbudget.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +14 -13
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +14 -13
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +14 -13
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +14 -13
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +3 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.d.ts +5 -0
- package/models/operations/listbudgets.d.ts.map +1 -1
- package/models/operations/listbudgets.js +6 -2
- package/models/operations/listbudgets.js.map +1 -1
- package/models/operations/listcontacts.d.ts +5 -0
- package/models/operations/listcontacts.d.ts.map +1 -1
- package/models/operations/listcontacts.js +4 -2
- package/models/operations/listcontacts.js.map +1 -1
- package/models/operations/listconversations.d.ts +60 -0
- package/models/operations/listconversations.d.ts.map +1 -0
- package/models/operations/listconversations.js +109 -0
- package/models/operations/listconversations.js.map +1 -0
- package/models/operations/listdatasetdatapoints.d.ts +76 -516
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +75 -475
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +14 -13
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +14 -13
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +3 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +76 -516
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +75 -473
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievememory.d.ts +5 -0
- package/models/operations/retrievememory.d.ts.map +1 -1
- package/models/operations/retrievememory.js +4 -0
- package/models/operations/retrievememory.js.map +1 -1
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +4 -4
- package/models/operations/streamrunagent.js +4 -4
- package/models/operations/updateagent.d.ts +3 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +4 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.d.ts +5 -0
- package/models/operations/updatebudget.d.ts.map +1 -1
- package/models/operations/updatebudget.js +6 -2
- package/models/operations/updatebudget.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +154 -1034
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +147 -955
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememory.d.ts +10 -5
- package/models/operations/updatememory.d.ts.map +1 -1
- package/models/operations/updatememory.js +6 -2
- package/models/operations/updatememory.js.map +1 -1
- package/models/operations/updatememorydocument.d.ts +4 -4
- package/models/operations/updatememorydocument.d.ts.map +1 -1
- package/models/operations/updatememorydocument.js +2 -2
- package/models/operations/updatememorydocument.js.map +1 -1
- package/models/operations/updatememorystore.d.ts +24 -59
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +27 -55
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +149 -486
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +156 -466
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/budgets.d.ts +1 -1
- package/sdk/budgets.js +1 -1
- package/sdk/conversations.d.ts +47 -0
- package/sdk/conversations.d.ts.map +1 -0
- package/sdk/conversations.js +72 -0
- package/sdk/conversations.js.map +1 -0
- package/sdk/evals.d.ts +4 -0
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +7 -0
- package/sdk/evals.js.map +1 -1
- package/sdk/responses.d.ts +5 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +3 -1
- package/sdk/responses.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/agentsResponsesCreate.ts +14 -10
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/contactsList.ts +1 -0
- package/src/funcs/conversationsCreate.ts +161 -0
- package/src/funcs/conversationsDelete.ts +180 -0
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/funcs/conversationsList.ts +181 -0
- package/src/funcs/conversationsRetrieve.ts +180 -0
- package/src/funcs/conversationsUpdate.ts +184 -0
- package/src/funcs/evalsInvoke.ts +177 -0
- package/src/funcs/memoryStoresListDocuments.ts +2 -0
- package/src/funcs/memoryStoresListMemories.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +15 -1
- package/src/mcp-server/tools/budgetsCreate.ts +1 -1
- package/src/mcp-server/tools/conversationsCreate.ts +37 -0
- package/src/mcp-server/tools/conversationsDelete.ts +35 -0
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/mcp-server/tools/conversationsList.ts +41 -0
- package/src/mcp-server/tools/conversationsRetrieve.ts +37 -0
- package/src/mcp-server/tools/conversationsUpdate.ts +40 -0
- package/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +53 -34
- package/src/models/components/agentinactivestreamingevent.ts +85 -57
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/agentthoughtstreamingevent.ts +167 -118
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/imagecontentpartschema.ts +52 -37
- package/src/models/components/index.ts +18 -0
- package/src/models/components/invokedeploymentrequest.ts +515 -2564
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/toolexecutionfailedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +4 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/operations/createagentrequest.ts +7 -4
- package/src/models/operations/createagentresponserequest.ts +126 -435
- package/src/models/operations/createbudget.ts +143 -28
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +601 -2786
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememory.ts +14 -5
- package/src/models/operations/creatememorydocument.ts +4 -4
- package/src/models/operations/createprompt.ts +397 -1201
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentcreatemetric.ts +601 -3040
- package/src/models/operations/deploymentgetconfig.ts +824 -2901
- package/src/models/operations/deploymentinvoke.ts +47 -46
- package/src/models/operations/deployments.ts +16 -15
- package/src/models/operations/deploymentstream.ts +727 -2977
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +30 -27
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getallmemories.ts +16 -0
- package/src/models/operations/getallmemorydocuments.ts +22 -0
- package/src/models/operations/getallprompts.ts +16 -15
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +11 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +16 -15
- package/src/models/operations/getpromptversion.ts +16 -15
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +5 -2
- package/src/models/operations/listbudgets.ts +11 -2
- package/src/models/operations/listcontacts.ts +9 -2
- package/src/models/operations/listconversations.ts +161 -0
- package/src/models/operations/listdatasetdatapoints.ts +288 -1355
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +16 -15
- package/src/models/operations/retrieveagentrequest.ts +5 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +263 -1288
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievememory.ts +9 -0
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +4 -4
- package/src/models/operations/streamrunagent.ts +4 -4
- package/src/models/operations/updateagent.ts +7 -4
- package/src/models/operations/updatebudget.ts +11 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +556 -2717
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememory.ts +14 -5
- package/src/models/operations/updatememorydocument.ts +4 -4
- package/src/models/operations/updatememorystore.ts +64 -154
- package/src/models/operations/updateprompt.ts +385 -1144
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/budgets.ts +1 -1
- package/src/sdk/conversations.ts +125 -0
- package/src/sdk/evals.ts +15 -0
- package/src/sdk/responses.ts +8 -3
- package/src/sdk/sdk.ts +6 -0
|
@@ -36,93 +36,62 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.
|
|
42
|
-
exports.
|
|
43
|
-
exports.
|
|
44
|
-
exports.
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
48
|
-
exports.
|
|
49
|
-
exports.deploymentGetConfig2DeploymentsRequestCacheControlFromJSON = deploymentGetConfig2DeploymentsRequestCacheControlFromJSON;
|
|
50
|
-
exports.deploymentGetConfig21ToJSON = deploymentGetConfig21ToJSON;
|
|
51
|
-
exports.deploymentGetConfig21FromJSON = deploymentGetConfig21FromJSON;
|
|
52
|
-
exports.deploymentGetConfigContentDeploymentsRequest2ToJSON = deploymentGetConfigContentDeploymentsRequest2ToJSON;
|
|
53
|
-
exports.deploymentGetConfigContentDeploymentsRequest2FromJSON = deploymentGetConfigContentDeploymentsRequest2FromJSON;
|
|
54
|
-
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON;
|
|
55
|
-
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON;
|
|
39
|
+
exports.PrefixMessagesToolCalls$outboundSchema = exports.PrefixMessagesToolCalls$inboundSchema = exports.PrefixMessagesFunction$outboundSchema = exports.PrefixMessagesFunction$inboundSchema = exports.PrefixMessagesType$outboundSchema = exports.PrefixMessagesType$inboundSchema = exports.Audio$outboundSchema = exports.Audio$inboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema = exports.DeploymentGetConfigContent2$outboundSchema = exports.DeploymentGetConfigContent2$inboundSchema = exports.ToolMessage$outboundSchema = exports.ToolMessage$inboundSchema = exports.PrefixMessagesCacheControl$outboundSchema = exports.PrefixMessagesCacheControl$inboundSchema = exports.PrefixMessagesTtl$outboundSchema = exports.PrefixMessagesTtl$inboundSchema = exports.DeploymentGetConfigPrefixMessagesType$outboundSchema = exports.DeploymentGetConfigPrefixMessagesType$inboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$inboundSchema = exports.DeploymentGetConfigContentDeployments2$outboundSchema = exports.DeploymentGetConfigContentDeployments2$inboundSchema = exports.DeploymentGetConfigDeploymentsType = exports.DeploymentGetConfigThinkingLevel = exports.DeploymentGetConfigVerbosity = exports.DeploymentGetConfigReasoningEffort = exports.DeploymentGetConfigEncodingFormat = exports.DeploymentGetConfigPhotoRealVersion = exports.DeploymentGetConfigResponseFormatDeploymentsResponseType = exports.DeploymentGetConfigResponseFormatType = exports.DeploymentGetConfigResponseFormatDeploymentsType = exports.DeploymentGetConfigResponseFormat4 = exports.DeploymentGetConfigResponseFormat5 = exports.DeploymentGetConfigResponseFormat6 = exports.DeploymentGetConfigFormat = exports.DeploymentGetConfigDeploymentsResponseType = exports.DeploymentGetConfigRole = exports.DeploymentGetConfigType = exports.TwoTtl = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType = exports.MessagesType = exports.MessagesTtl = exports.DeploymentGetConfigMessagesType = exports.Ttl = exports.DeploymentGetConfig2DeploymentsType = exports.PrefixMessagesType = exports.PrefixMessagesTtl = exports.DeploymentGetConfigPrefixMessagesType = void 0;
|
|
40
|
+
exports.MessagesToolCalls$outboundSchema = exports.MessagesToolCalls$inboundSchema = exports.MessagesFunction$outboundSchema = exports.MessagesFunction$inboundSchema = exports.MessagesType$outboundSchema = exports.MessagesType$inboundSchema = exports.MessagesAudio$outboundSchema = exports.MessagesAudio$inboundSchema = exports.DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema = exports.DeploymentGetConfigMessagesDeploymentsRequestContent$inboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema = exports.MessagesToolMessage$outboundSchema = exports.MessagesToolMessage$inboundSchema = exports.MessagesCacheControl$outboundSchema = exports.MessagesCacheControl$inboundSchema = exports.MessagesTtl$outboundSchema = exports.MessagesTtl$inboundSchema = exports.DeploymentGetConfigMessagesType$outboundSchema = exports.DeploymentGetConfigMessagesType$inboundSchema = exports.DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema = exports.DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$inboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema = exports.PrefixMessages$outboundSchema = exports.PrefixMessages$inboundSchema = exports.SystemMessage$outboundSchema = exports.SystemMessage$inboundSchema = exports.PrefixMessagesContent$outboundSchema = exports.PrefixMessagesContent$inboundSchema = exports.DeveloperMessage$outboundSchema = exports.DeveloperMessage$inboundSchema = exports.DeploymentGetConfigPrefixMessagesContent$outboundSchema = exports.DeploymentGetConfigPrefixMessagesContent$inboundSchema = exports.UserMessage$outboundSchema = exports.UserMessage$inboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema = exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema = exports.Content2$outboundSchema = exports.Content2$inboundSchema = exports.Four$outboundSchema = exports.Four$inboundSchema = exports.CacheControl$outboundSchema = exports.CacheControl$inboundSchema = exports.Ttl$outboundSchema = exports.Ttl$inboundSchema = exports.DeploymentGetConfig2DeploymentsType$outboundSchema = exports.DeploymentGetConfig2DeploymentsType$inboundSchema = exports.AssistantMessage$outboundSchema = exports.AssistantMessage$inboundSchema = void 0;
|
|
41
|
+
exports.OrGte$outboundSchema = exports.OrGte$inboundSchema = exports.OrLt$outboundSchema = exports.OrLt$inboundSchema = exports.OrLte$outboundSchema = exports.OrLte$inboundSchema = exports.OrIn$outboundSchema = exports.OrIn$inboundSchema = exports.DeploymentGetConfigOrIn$outboundSchema = exports.DeploymentGetConfigOrIn$inboundSchema = exports.OrNin$outboundSchema = exports.OrNin$inboundSchema = exports.DeploymentGetConfigOrNin$outboundSchema = exports.DeploymentGetConfigOrNin$inboundSchema = exports.OrExists$outboundSchema = exports.OrExists$inboundSchema = exports.Thread$outboundSchema = exports.Thread$inboundSchema = exports.InvokeOptions$outboundSchema = exports.InvokeOptions$inboundSchema = exports.Documents$outboundSchema = exports.Documents$inboundSchema = exports.Metadata$outboundSchema = exports.Metadata$inboundSchema = exports.DeploymentGetConfigMessages$outboundSchema = exports.DeploymentGetConfigMessages$inboundSchema = exports.MessagesSystemMessage$outboundSchema = exports.MessagesSystemMessage$inboundSchema = exports.MessagesContent$outboundSchema = exports.MessagesContent$inboundSchema = exports.MessagesDeveloperMessage$outboundSchema = exports.MessagesDeveloperMessage$inboundSchema = exports.DeploymentGetConfigMessagesContent$outboundSchema = exports.DeploymentGetConfigMessagesContent$inboundSchema = exports.MessagesUserMessage$outboundSchema = exports.MessagesUserMessage$inboundSchema = exports.DeploymentGetConfigMessagesDeploymentsContent$outboundSchema = exports.DeploymentGetConfigMessagesDeploymentsContent$inboundSchema = exports.DeploymentGetConfigContentDeploymentsRequest2$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequest2$inboundSchema = exports.Two4$outboundSchema = exports.Two4$inboundSchema = exports.TwoCacheControl$outboundSchema = exports.TwoCacheControl$inboundSchema = exports.TwoTtl$outboundSchema = exports.TwoTtl$inboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema = exports.MessagesAssistantMessage$outboundSchema = exports.MessagesAssistantMessage$inboundSchema = void 0;
|
|
42
|
+
exports.Nin$outboundSchema = exports.Nin$inboundSchema = exports.OneNin$outboundSchema = exports.OneNin$inboundSchema = exports.Exists$outboundSchema = exports.Exists$inboundSchema = exports.And$outboundSchema = exports.And$inboundSchema = exports.KnowledgeFilterAnd$outboundSchema = exports.KnowledgeFilterAnd$inboundSchema = exports.AndEq$outboundSchema = exports.AndEq$inboundSchema = exports.DeploymentGetConfigAndEq$outboundSchema = exports.DeploymentGetConfigAndEq$inboundSchema = exports.AndNe$outboundSchema = exports.AndNe$inboundSchema = exports.DeploymentGetConfigAndNe$outboundSchema = exports.DeploymentGetConfigAndNe$inboundSchema = exports.AndGt$outboundSchema = exports.AndGt$inboundSchema = exports.AndGte$outboundSchema = exports.AndGte$inboundSchema = exports.AndLt$outboundSchema = exports.AndLt$inboundSchema = exports.AndLte$outboundSchema = exports.AndLte$inboundSchema = exports.AndIn$outboundSchema = exports.AndIn$inboundSchema = exports.DeploymentGetConfigAndIn$outboundSchema = exports.DeploymentGetConfigAndIn$inboundSchema = exports.AndNin$outboundSchema = exports.AndNin$inboundSchema = exports.DeploymentGetConfigAndNin$outboundSchema = exports.DeploymentGetConfigAndNin$inboundSchema = exports.AndExists$outboundSchema = exports.AndExists$inboundSchema = exports.Or$outboundSchema = exports.Or$inboundSchema = exports.KnowledgeFilterOr$outboundSchema = exports.KnowledgeFilterOr$inboundSchema = exports.OrEq$outboundSchema = exports.OrEq$inboundSchema = exports.DeploymentGetConfigOrEq$outboundSchema = exports.DeploymentGetConfigOrEq$inboundSchema = exports.OrNe$outboundSchema = exports.OrNe$inboundSchema = exports.DeploymentGetConfigOrNe$outboundSchema = exports.DeploymentGetConfigOrNe$inboundSchema = exports.OrGt$outboundSchema = exports.OrGt$inboundSchema = void 0;
|
|
43
|
+
exports.DeploymentGetConfigToolCalls$outboundSchema = exports.DeploymentGetConfigToolCalls$inboundSchema = exports.DeploymentGetConfigDeploymentsFunction$outboundSchema = exports.DeploymentGetConfigDeploymentsFunction$inboundSchema = exports.DeploymentGetConfigDeploymentsResponseType$outboundSchema = exports.DeploymentGetConfigDeploymentsResponseType$inboundSchema = exports.DeploymentGetConfigContent$outboundSchema = exports.DeploymentGetConfigContent$inboundSchema = exports.DeploymentGetConfigContentDeploymentsResponse2$outboundSchema = exports.DeploymentGetConfigContentDeploymentsResponse2$inboundSchema = exports.DeploymentGetConfig21$outboundSchema = exports.DeploymentGetConfig21$inboundSchema = exports.DeploymentGetConfig22$outboundSchema = exports.DeploymentGetConfig22$inboundSchema = exports.DeploymentGetConfig2ImageUrl$outboundSchema = exports.DeploymentGetConfig2ImageUrl$inboundSchema = exports.DeploymentGetConfig23$outboundSchema = exports.DeploymentGetConfig23$inboundSchema = exports.DeploymentGetConfig2File$outboundSchema = exports.DeploymentGetConfig2File$inboundSchema = exports.DeploymentGetConfigRole$outboundSchema = exports.DeploymentGetConfigRole$inboundSchema = exports.DeploymentGetConfigType$outboundSchema = exports.DeploymentGetConfigType$inboundSchema = exports.DeploymentGetConfigRequestBody$outboundSchema = exports.DeploymentGetConfigRequestBody$inboundSchema = exports.KnowledgeFilter$outboundSchema = exports.KnowledgeFilter$inboundSchema = exports.KnowledgeFilter1$outboundSchema = exports.KnowledgeFilter1$inboundSchema = exports.Eq$outboundSchema = exports.Eq$inboundSchema = exports.OneEq$outboundSchema = exports.OneEq$inboundSchema = exports.Ne$outboundSchema = exports.Ne$inboundSchema = exports.OneNe$outboundSchema = exports.OneNe$inboundSchema = exports.Gt$outboundSchema = exports.Gt$inboundSchema = exports.Gte$outboundSchema = exports.Gte$inboundSchema = exports.Lt$outboundSchema = exports.Lt$inboundSchema = exports.Lte$outboundSchema = exports.Lte$inboundSchema = exports.In$outboundSchema = exports.In$inboundSchema = exports.OneIn$outboundSchema = exports.OneIn$inboundSchema = void 0;
|
|
44
|
+
exports.DeploymentGetConfigResponseBody$outboundSchema = exports.DeploymentGetConfigResponseBody$inboundSchema = exports.DeploymentGetConfigTools$outboundSchema = exports.DeploymentGetConfigTools$inboundSchema = exports.DeploymentGetConfigFunction$outboundSchema = exports.DeploymentGetConfigFunction$inboundSchema = exports.DeploymentGetConfigDeploymentsType$outboundSchema = exports.DeploymentGetConfigDeploymentsType$inboundSchema = exports.DeploymentGetConfigParameters$outboundSchema = exports.DeploymentGetConfigParameters$inboundSchema = exports.DeploymentGetConfigThinkingLevel$outboundSchema = exports.DeploymentGetConfigThinkingLevel$inboundSchema = exports.DeploymentGetConfigVerbosity$outboundSchema = exports.DeploymentGetConfigVerbosity$inboundSchema = exports.DeploymentGetConfigReasoningEffort$outboundSchema = exports.DeploymentGetConfigReasoningEffort$inboundSchema = exports.DeploymentGetConfigEncodingFormat$outboundSchema = exports.DeploymentGetConfigEncodingFormat$inboundSchema = exports.DeploymentGetConfigPhotoRealVersion$outboundSchema = exports.DeploymentGetConfigPhotoRealVersion$inboundSchema = exports.DeploymentGetConfigResponseFormat$outboundSchema = exports.DeploymentGetConfigResponseFormat$inboundSchema = exports.DeploymentGetConfigResponseFormat1$outboundSchema = exports.DeploymentGetConfigResponseFormat1$inboundSchema = exports.DeploymentGetConfigResponseFormatJsonSchema$outboundSchema = exports.DeploymentGetConfigResponseFormatJsonSchema$inboundSchema = exports.DeploymentGetConfigResponseFormatDeploymentsResponseType$outboundSchema = exports.DeploymentGetConfigResponseFormatDeploymentsResponseType$inboundSchema = exports.DeploymentGetConfigResponseFormat2$outboundSchema = exports.DeploymentGetConfigResponseFormat2$inboundSchema = exports.DeploymentGetConfigResponseFormatType$outboundSchema = exports.DeploymentGetConfigResponseFormatType$inboundSchema = exports.DeploymentGetConfigResponseFormat3$outboundSchema = exports.DeploymentGetConfigResponseFormat3$inboundSchema = exports.DeploymentGetConfigResponseFormatDeploymentsType$outboundSchema = exports.DeploymentGetConfigResponseFormatDeploymentsType$inboundSchema = exports.DeploymentGetConfigResponseFormat4$outboundSchema = exports.DeploymentGetConfigResponseFormat4$inboundSchema = exports.DeploymentGetConfigResponseFormat5$outboundSchema = exports.DeploymentGetConfigResponseFormat5$inboundSchema = exports.DeploymentGetConfigResponseFormat6$outboundSchema = exports.DeploymentGetConfigResponseFormat6$inboundSchema = exports.DeploymentGetConfigFormat$outboundSchema = exports.DeploymentGetConfigFormat$inboundSchema = exports.DeploymentGetConfigDeploymentsMessages$outboundSchema = exports.DeploymentGetConfigDeploymentsMessages$inboundSchema = void 0;
|
|
45
|
+
exports.deploymentGetConfigContentDeployments2ToJSON = deploymentGetConfigContentDeployments2ToJSON;
|
|
46
|
+
exports.deploymentGetConfigContentDeployments2FromJSON = deploymentGetConfigContentDeployments2FromJSON;
|
|
47
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON;
|
|
48
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentFromJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentFromJSON;
|
|
56
49
|
exports.prefixMessagesCacheControlToJSON = prefixMessagesCacheControlToJSON;
|
|
57
50
|
exports.prefixMessagesCacheControlFromJSON = prefixMessagesCacheControlFromJSON;
|
|
58
51
|
exports.toolMessageToJSON = toolMessageToJSON;
|
|
59
52
|
exports.toolMessageFromJSON = toolMessageFromJSON;
|
|
60
|
-
exports.
|
|
61
|
-
exports.
|
|
62
|
-
exports.
|
|
63
|
-
exports.
|
|
64
|
-
exports.deploymentGetConfigContentDeployments2ToJSON = deploymentGetConfigContentDeployments2ToJSON;
|
|
65
|
-
exports.deploymentGetConfigContentDeployments2FromJSON = deploymentGetConfigContentDeployments2FromJSON;
|
|
66
|
-
exports.deploymentGetConfigPrefixMessagesDeploymentsContentToJSON = deploymentGetConfigPrefixMessagesDeploymentsContentToJSON;
|
|
67
|
-
exports.deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON = deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON;
|
|
53
|
+
exports.deploymentGetConfigContent2ToJSON = deploymentGetConfigContent2ToJSON;
|
|
54
|
+
exports.deploymentGetConfigContent2FromJSON = deploymentGetConfigContent2FromJSON;
|
|
55
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON;
|
|
56
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON = deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON;
|
|
68
57
|
exports.audioToJSON = audioToJSON;
|
|
69
58
|
exports.audioFromJSON = audioFromJSON;
|
|
70
|
-
exports.
|
|
71
|
-
exports.
|
|
72
|
-
exports.
|
|
73
|
-
exports.
|
|
59
|
+
exports.prefixMessagesFunctionToJSON = prefixMessagesFunctionToJSON;
|
|
60
|
+
exports.prefixMessagesFunctionFromJSON = prefixMessagesFunctionFromJSON;
|
|
61
|
+
exports.prefixMessagesToolCallsToJSON = prefixMessagesToolCallsToJSON;
|
|
62
|
+
exports.prefixMessagesToolCallsFromJSON = prefixMessagesToolCallsFromJSON;
|
|
74
63
|
exports.assistantMessageToJSON = assistantMessageToJSON;
|
|
75
64
|
exports.assistantMessageFromJSON = assistantMessageFromJSON;
|
|
76
|
-
exports.
|
|
77
|
-
exports.
|
|
65
|
+
exports.cacheControlToJSON = cacheControlToJSON;
|
|
66
|
+
exports.cacheControlFromJSON = cacheControlFromJSON;
|
|
78
67
|
exports.fourToJSON = fourToJSON;
|
|
79
68
|
exports.fourFromJSON = fourFromJSON;
|
|
80
|
-
exports.twoCacheControlToJSON = twoCacheControlToJSON;
|
|
81
|
-
exports.twoCacheControlFromJSON = twoCacheControlFromJSON;
|
|
82
|
-
exports.oneToJSON = oneToJSON;
|
|
83
|
-
exports.oneFromJSON = oneFromJSON;
|
|
84
|
-
exports.deploymentGetConfigContent2ToJSON = deploymentGetConfigContent2ToJSON;
|
|
85
|
-
exports.deploymentGetConfigContent2FromJSON = deploymentGetConfigContent2FromJSON;
|
|
86
|
-
exports.deploymentGetConfigPrefixMessagesContentToJSON = deploymentGetConfigPrefixMessagesContentToJSON;
|
|
87
|
-
exports.deploymentGetConfigPrefixMessagesContentFromJSON = deploymentGetConfigPrefixMessagesContentFromJSON;
|
|
88
|
-
exports.userMessageToJSON = userMessageToJSON;
|
|
89
|
-
exports.userMessageFromJSON = userMessageFromJSON;
|
|
90
|
-
exports.contentCacheControlToJSON = contentCacheControlToJSON;
|
|
91
|
-
exports.contentCacheControlFromJSON = contentCacheControlFromJSON;
|
|
92
69
|
exports.content2ToJSON = content2ToJSON;
|
|
93
70
|
exports.content2FromJSON = content2FromJSON;
|
|
94
|
-
exports.
|
|
95
|
-
exports.
|
|
71
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsContentToJSON = deploymentGetConfigPrefixMessagesDeploymentsContentToJSON;
|
|
72
|
+
exports.deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON = deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON;
|
|
73
|
+
exports.userMessageToJSON = userMessageToJSON;
|
|
74
|
+
exports.userMessageFromJSON = userMessageFromJSON;
|
|
75
|
+
exports.deploymentGetConfigPrefixMessagesContentToJSON = deploymentGetConfigPrefixMessagesContentToJSON;
|
|
76
|
+
exports.deploymentGetConfigPrefixMessagesContentFromJSON = deploymentGetConfigPrefixMessagesContentFromJSON;
|
|
96
77
|
exports.developerMessageToJSON = developerMessageToJSON;
|
|
97
78
|
exports.developerMessageFromJSON = developerMessageFromJSON;
|
|
98
|
-
exports.
|
|
99
|
-
exports.
|
|
100
|
-
exports.twoToJSON = twoToJSON;
|
|
101
|
-
exports.twoFromJSON = twoFromJSON;
|
|
102
|
-
exports.contentToJSON = contentToJSON;
|
|
103
|
-
exports.contentFromJSON = contentFromJSON;
|
|
79
|
+
exports.prefixMessagesContentToJSON = prefixMessagesContentToJSON;
|
|
80
|
+
exports.prefixMessagesContentFromJSON = prefixMessagesContentFromJSON;
|
|
104
81
|
exports.systemMessageToJSON = systemMessageToJSON;
|
|
105
82
|
exports.systemMessageFromJSON = systemMessageFromJSON;
|
|
106
83
|
exports.prefixMessagesToJSON = prefixMessagesToJSON;
|
|
107
84
|
exports.prefixMessagesFromJSON = prefixMessagesFromJSON;
|
|
108
|
-
exports.
|
|
109
|
-
exports.
|
|
110
|
-
exports.deploymentGetConfig2DeploymentsRequestRequestBody1ToJSON = deploymentGetConfig2DeploymentsRequestRequestBody1ToJSON;
|
|
111
|
-
exports.deploymentGetConfig2DeploymentsRequestRequestBody1FromJSON = deploymentGetConfig2DeploymentsRequestRequestBody1FromJSON;
|
|
112
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52ToJSON;
|
|
113
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52FromJSON;
|
|
85
|
+
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON;
|
|
86
|
+
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON;
|
|
114
87
|
exports.deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON = deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON;
|
|
115
88
|
exports.deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentFromJSON = deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentFromJSON;
|
|
116
89
|
exports.messagesCacheControlToJSON = messagesCacheControlToJSON;
|
|
117
90
|
exports.messagesCacheControlFromJSON = messagesCacheControlFromJSON;
|
|
118
91
|
exports.messagesToolMessageToJSON = messagesToolMessageToJSON;
|
|
119
92
|
exports.messagesToolMessageFromJSON = messagesToolMessageFromJSON;
|
|
120
|
-
exports.
|
|
121
|
-
exports.
|
|
122
|
-
exports.deploymentGetConfig2DeploymentsRequest1ToJSON = deploymentGetConfig2DeploymentsRequest1ToJSON;
|
|
123
|
-
exports.deploymentGetConfig2DeploymentsRequest1FromJSON = deploymentGetConfig2DeploymentsRequest1FromJSON;
|
|
124
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42ToJSON;
|
|
125
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42FromJSON;
|
|
93
|
+
exports.deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON;
|
|
94
|
+
exports.deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON;
|
|
126
95
|
exports.deploymentGetConfigMessagesDeploymentsRequestContentToJSON = deploymentGetConfigMessagesDeploymentsRequestContentToJSON;
|
|
127
96
|
exports.deploymentGetConfigMessagesDeploymentsRequestContentFromJSON = deploymentGetConfigMessagesDeploymentsRequestContentFromJSON;
|
|
128
97
|
exports.messagesAudioToJSON = messagesAudioToJSON;
|
|
@@ -133,38 +102,26 @@ exports.messagesToolCallsToJSON = messagesToolCallsToJSON;
|
|
|
133
102
|
exports.messagesToolCallsFromJSON = messagesToolCallsFromJSON;
|
|
134
103
|
exports.messagesAssistantMessageToJSON = messagesAssistantMessageToJSON;
|
|
135
104
|
exports.messagesAssistantMessageFromJSON = messagesAssistantMessageFromJSON;
|
|
136
|
-
exports.
|
|
137
|
-
exports.
|
|
105
|
+
exports.twoCacheControlToJSON = twoCacheControlToJSON;
|
|
106
|
+
exports.twoCacheControlFromJSON = twoCacheControlFromJSON;
|
|
138
107
|
exports.two4ToJSON = two4ToJSON;
|
|
139
108
|
exports.two4FromJSON = two4FromJSON;
|
|
140
|
-
exports.
|
|
141
|
-
exports.
|
|
142
|
-
exports.deploymentGetConfig2Deployments1ToJSON = deploymentGetConfig2Deployments1ToJSON;
|
|
143
|
-
exports.deploymentGetConfig2Deployments1FromJSON = deploymentGetConfig2Deployments1FromJSON;
|
|
144
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32ToJSON;
|
|
145
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32FromJSON;
|
|
109
|
+
exports.deploymentGetConfigContentDeploymentsRequest2ToJSON = deploymentGetConfigContentDeploymentsRequest2ToJSON;
|
|
110
|
+
exports.deploymentGetConfigContentDeploymentsRequest2FromJSON = deploymentGetConfigContentDeploymentsRequest2FromJSON;
|
|
146
111
|
exports.deploymentGetConfigMessagesDeploymentsContentToJSON = deploymentGetConfigMessagesDeploymentsContentToJSON;
|
|
147
112
|
exports.deploymentGetConfigMessagesDeploymentsContentFromJSON = deploymentGetConfigMessagesDeploymentsContentFromJSON;
|
|
148
113
|
exports.messagesUserMessageToJSON = messagesUserMessageToJSON;
|
|
149
114
|
exports.messagesUserMessageFromJSON = messagesUserMessageFromJSON;
|
|
150
|
-
exports.deploymentGetConfigContentDeploymentsCacheControlToJSON = deploymentGetConfigContentDeploymentsCacheControlToJSON;
|
|
151
|
-
exports.deploymentGetConfigContentDeploymentsCacheControlFromJSON = deploymentGetConfigContentDeploymentsCacheControlFromJSON;
|
|
152
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON;
|
|
153
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON;
|
|
154
115
|
exports.deploymentGetConfigMessagesContentToJSON = deploymentGetConfigMessagesContentToJSON;
|
|
155
116
|
exports.deploymentGetConfigMessagesContentFromJSON = deploymentGetConfigMessagesContentFromJSON;
|
|
156
117
|
exports.messagesDeveloperMessageToJSON = messagesDeveloperMessageToJSON;
|
|
157
118
|
exports.messagesDeveloperMessageFromJSON = messagesDeveloperMessageFromJSON;
|
|
158
|
-
exports.deploymentGetConfigContentCacheControlToJSON = deploymentGetConfigContentCacheControlToJSON;
|
|
159
|
-
exports.deploymentGetConfigContentCacheControlFromJSON = deploymentGetConfigContentCacheControlFromJSON;
|
|
160
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON = deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON;
|
|
161
|
-
exports.deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON = deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON;
|
|
162
119
|
exports.messagesContentToJSON = messagesContentToJSON;
|
|
163
120
|
exports.messagesContentFromJSON = messagesContentFromJSON;
|
|
164
121
|
exports.messagesSystemMessageToJSON = messagesSystemMessageToJSON;
|
|
165
122
|
exports.messagesSystemMessageFromJSON = messagesSystemMessageFromJSON;
|
|
166
|
-
exports.
|
|
167
|
-
exports.
|
|
123
|
+
exports.deploymentGetConfigMessagesToJSON = deploymentGetConfigMessagesToJSON;
|
|
124
|
+
exports.deploymentGetConfigMessagesFromJSON = deploymentGetConfigMessagesFromJSON;
|
|
168
125
|
exports.metadataToJSON = metadataToJSON;
|
|
169
126
|
exports.metadataFromJSON = metadataFromJSON;
|
|
170
127
|
exports.documentsToJSON = documentsToJSON;
|
|
@@ -273,8 +230,8 @@ exports.deploymentGetConfig2ImageUrlToJSON = deploymentGetConfig2ImageUrlToJSON;
|
|
|
273
230
|
exports.deploymentGetConfig2ImageUrlFromJSON = deploymentGetConfig2ImageUrlFromJSON;
|
|
274
231
|
exports.deploymentGetConfig22ToJSON = deploymentGetConfig22ToJSON;
|
|
275
232
|
exports.deploymentGetConfig22FromJSON = deploymentGetConfig22FromJSON;
|
|
276
|
-
exports.
|
|
277
|
-
exports.
|
|
233
|
+
exports.deploymentGetConfig21ToJSON = deploymentGetConfig21ToJSON;
|
|
234
|
+
exports.deploymentGetConfig21FromJSON = deploymentGetConfig21FromJSON;
|
|
278
235
|
exports.deploymentGetConfigContentDeploymentsResponse2ToJSON = deploymentGetConfigContentDeploymentsResponse2ToJSON;
|
|
279
236
|
exports.deploymentGetConfigContentDeploymentsResponse2FromJSON = deploymentGetConfigContentDeploymentsResponse2FromJSON;
|
|
280
237
|
exports.deploymentGetConfigContentToJSON = deploymentGetConfigContentToJSON;
|
|
@@ -283,8 +240,8 @@ exports.deploymentGetConfigDeploymentsFunctionToJSON = deploymentGetConfigDeploy
|
|
|
283
240
|
exports.deploymentGetConfigDeploymentsFunctionFromJSON = deploymentGetConfigDeploymentsFunctionFromJSON;
|
|
284
241
|
exports.deploymentGetConfigToolCallsToJSON = deploymentGetConfigToolCallsToJSON;
|
|
285
242
|
exports.deploymentGetConfigToolCallsFromJSON = deploymentGetConfigToolCallsFromJSON;
|
|
286
|
-
exports.
|
|
287
|
-
exports.
|
|
243
|
+
exports.deploymentGetConfigDeploymentsMessagesToJSON = deploymentGetConfigDeploymentsMessagesToJSON;
|
|
244
|
+
exports.deploymentGetConfigDeploymentsMessagesFromJSON = deploymentGetConfigDeploymentsMessagesFromJSON;
|
|
288
245
|
exports.deploymentGetConfigResponseFormat3ToJSON = deploymentGetConfigResponseFormat3ToJSON;
|
|
289
246
|
exports.deploymentGetConfigResponseFormat3FromJSON = deploymentGetConfigResponseFormat3FromJSON;
|
|
290
247
|
exports.deploymentGetConfigResponseFormat2ToJSON = deploymentGetConfigResponseFormat2ToJSON;
|
|
@@ -307,29 +264,6 @@ const z = __importStar(require("zod/v3"));
|
|
|
307
264
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
308
265
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
309
266
|
const components = __importStar(require("../components/index.js"));
|
|
310
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type = {
|
|
311
|
-
Text: "text",
|
|
312
|
-
};
|
|
313
|
-
/**
|
|
314
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
315
|
-
*/
|
|
316
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType = {
|
|
317
|
-
Ephemeral: "ephemeral",
|
|
318
|
-
};
|
|
319
|
-
/**
|
|
320
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
321
|
-
*
|
|
322
|
-
* @remarks
|
|
323
|
-
*
|
|
324
|
-
* - `5m`: 5 minutes
|
|
325
|
-
* - `1h`: 1 hour
|
|
326
|
-
*
|
|
327
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
328
|
-
*/
|
|
329
|
-
exports.DeploymentGetConfig2DeploymentsRequestTtl = {
|
|
330
|
-
Fivem: "5m",
|
|
331
|
-
Oneh: "1h",
|
|
332
|
-
};
|
|
333
267
|
/**
|
|
334
268
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
335
269
|
*/
|
|
@@ -350,26 +284,6 @@ exports.PrefixMessagesTtl = {
|
|
|
350
284
|
Fivem: "5m",
|
|
351
285
|
Oneh: "1h",
|
|
352
286
|
};
|
|
353
|
-
/**
|
|
354
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
355
|
-
*/
|
|
356
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType = {
|
|
357
|
-
Ephemeral: "ephemeral",
|
|
358
|
-
};
|
|
359
|
-
/**
|
|
360
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
361
|
-
*
|
|
362
|
-
* @remarks
|
|
363
|
-
*
|
|
364
|
-
* - `5m`: 5 minutes
|
|
365
|
-
* - `1h`: 1 hour
|
|
366
|
-
*
|
|
367
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
368
|
-
*/
|
|
369
|
-
exports.DeploymentGetConfig2DeploymentsTtl = {
|
|
370
|
-
Fivem: "5m",
|
|
371
|
-
Oneh: "1h",
|
|
372
|
-
};
|
|
373
287
|
/**
|
|
374
288
|
* The type of the tool. Currently, only `function` is supported.
|
|
375
289
|
*/
|
|
@@ -379,73 +293,7 @@ exports.PrefixMessagesType = {
|
|
|
379
293
|
/**
|
|
380
294
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
381
295
|
*/
|
|
382
|
-
exports.
|
|
383
|
-
Ephemeral: "ephemeral",
|
|
384
|
-
};
|
|
385
|
-
/**
|
|
386
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
387
|
-
*
|
|
388
|
-
* @remarks
|
|
389
|
-
*
|
|
390
|
-
* - `5m`: 5 minutes
|
|
391
|
-
* - `1h`: 1 hour
|
|
392
|
-
*
|
|
393
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
394
|
-
*/
|
|
395
|
-
exports.DeploymentGetConfig2Ttl = {
|
|
396
|
-
Fivem: "5m",
|
|
397
|
-
Oneh: "1h",
|
|
398
|
-
};
|
|
399
|
-
/**
|
|
400
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
401
|
-
*/
|
|
402
|
-
exports.DeploymentGetConfig2Type = {
|
|
403
|
-
Ephemeral: "ephemeral",
|
|
404
|
-
};
|
|
405
|
-
/**
|
|
406
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
407
|
-
*
|
|
408
|
-
* @remarks
|
|
409
|
-
*
|
|
410
|
-
* - `5m`: 5 minutes
|
|
411
|
-
* - `1h`: 1 hour
|
|
412
|
-
*
|
|
413
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
414
|
-
*/
|
|
415
|
-
exports.TwoTtl = {
|
|
416
|
-
Fivem: "5m",
|
|
417
|
-
Oneh: "1h",
|
|
418
|
-
};
|
|
419
|
-
exports.DeploymentGetConfigContentType = {
|
|
420
|
-
Text: "text",
|
|
421
|
-
};
|
|
422
|
-
/**
|
|
423
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
424
|
-
*/
|
|
425
|
-
exports.DeploymentGetConfigContentDeploymentsType = {
|
|
426
|
-
Ephemeral: "ephemeral",
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
430
|
-
*
|
|
431
|
-
* @remarks
|
|
432
|
-
*
|
|
433
|
-
* - `5m`: 5 minutes
|
|
434
|
-
* - `1h`: 1 hour
|
|
435
|
-
*
|
|
436
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
437
|
-
*/
|
|
438
|
-
exports.ContentTtl = {
|
|
439
|
-
Fivem: "5m",
|
|
440
|
-
Oneh: "1h",
|
|
441
|
-
};
|
|
442
|
-
exports.Type = {
|
|
443
|
-
Text: "text",
|
|
444
|
-
};
|
|
445
|
-
/**
|
|
446
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
447
|
-
*/
|
|
448
|
-
exports.ContentType = {
|
|
296
|
+
exports.DeploymentGetConfig2DeploymentsType = {
|
|
449
297
|
Ephemeral: "ephemeral",
|
|
450
298
|
};
|
|
451
299
|
/**
|
|
@@ -462,29 +310,6 @@ exports.Ttl = {
|
|
|
462
310
|
Fivem: "5m",
|
|
463
311
|
Oneh: "1h",
|
|
464
312
|
};
|
|
465
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type = {
|
|
466
|
-
Text: "text",
|
|
467
|
-
};
|
|
468
|
-
/**
|
|
469
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
470
|
-
*/
|
|
471
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType = {
|
|
472
|
-
Ephemeral: "ephemeral",
|
|
473
|
-
};
|
|
474
|
-
/**
|
|
475
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
476
|
-
*
|
|
477
|
-
* @remarks
|
|
478
|
-
*
|
|
479
|
-
* - `5m`: 5 minutes
|
|
480
|
-
* - `1h`: 1 hour
|
|
481
|
-
*
|
|
482
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
483
|
-
*/
|
|
484
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl = {
|
|
485
|
-
Fivem: "5m",
|
|
486
|
-
Oneh: "1h",
|
|
487
|
-
};
|
|
488
313
|
/**
|
|
489
314
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
490
315
|
*/
|
|
@@ -505,26 +330,6 @@ exports.MessagesTtl = {
|
|
|
505
330
|
Fivem: "5m",
|
|
506
331
|
Oneh: "1h",
|
|
507
332
|
};
|
|
508
|
-
/**
|
|
509
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
510
|
-
*/
|
|
511
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType = {
|
|
512
|
-
Ephemeral: "ephemeral",
|
|
513
|
-
};
|
|
514
|
-
/**
|
|
515
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
516
|
-
*
|
|
517
|
-
* @remarks
|
|
518
|
-
*
|
|
519
|
-
* - `5m`: 5 minutes
|
|
520
|
-
* - `1h`: 1 hour
|
|
521
|
-
*
|
|
522
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
523
|
-
*/
|
|
524
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl = {
|
|
525
|
-
Fivem: "5m",
|
|
526
|
-
Oneh: "1h",
|
|
527
|
-
};
|
|
528
333
|
/**
|
|
529
334
|
* The type of the tool. Currently, only `function` is supported.
|
|
530
335
|
*/
|
|
@@ -534,73 +339,7 @@ exports.MessagesType = {
|
|
|
534
339
|
/**
|
|
535
340
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
536
341
|
*/
|
|
537
|
-
exports.
|
|
538
|
-
Ephemeral: "ephemeral",
|
|
539
|
-
};
|
|
540
|
-
/**
|
|
541
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
542
|
-
*
|
|
543
|
-
* @remarks
|
|
544
|
-
*
|
|
545
|
-
* - `5m`: 5 minutes
|
|
546
|
-
* - `1h`: 1 hour
|
|
547
|
-
*
|
|
548
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
549
|
-
*/
|
|
550
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl = {
|
|
551
|
-
Fivem: "5m",
|
|
552
|
-
Oneh: "1h",
|
|
553
|
-
};
|
|
554
|
-
/**
|
|
555
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
556
|
-
*/
|
|
557
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type = {
|
|
558
|
-
Ephemeral: "ephemeral",
|
|
559
|
-
};
|
|
560
|
-
/**
|
|
561
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
562
|
-
*
|
|
563
|
-
* @remarks
|
|
564
|
-
*
|
|
565
|
-
* - `5m`: 5 minutes
|
|
566
|
-
* - `1h`: 1 hour
|
|
567
|
-
*
|
|
568
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
569
|
-
*/
|
|
570
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl = {
|
|
571
|
-
Fivem: "5m",
|
|
572
|
-
Oneh: "1h",
|
|
573
|
-
};
|
|
574
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType = {
|
|
575
|
-
Text: "text",
|
|
576
|
-
};
|
|
577
|
-
/**
|
|
578
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
579
|
-
*/
|
|
580
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type = {
|
|
581
|
-
Ephemeral: "ephemeral",
|
|
582
|
-
};
|
|
583
|
-
/**
|
|
584
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
585
|
-
*
|
|
586
|
-
* @remarks
|
|
587
|
-
*
|
|
588
|
-
* - `5m`: 5 minutes
|
|
589
|
-
* - `1h`: 1 hour
|
|
590
|
-
*
|
|
591
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
592
|
-
*/
|
|
593
|
-
exports.DeploymentGetConfigContentDeploymentsTtl = {
|
|
594
|
-
Fivem: "5m",
|
|
595
|
-
Oneh: "1h",
|
|
596
|
-
};
|
|
597
|
-
exports.DeploymentGetConfigContentDeploymentsRequestType = {
|
|
598
|
-
Text: "text",
|
|
599
|
-
};
|
|
600
|
-
/**
|
|
601
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
602
|
-
*/
|
|
603
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType = {
|
|
342
|
+
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
|
|
604
343
|
Ephemeral: "ephemeral",
|
|
605
344
|
};
|
|
606
345
|
/**
|
|
@@ -613,7 +352,7 @@ exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType = {
|
|
|
613
352
|
*
|
|
614
353
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
615
354
|
*/
|
|
616
|
-
exports.
|
|
355
|
+
exports.TwoTtl = {
|
|
617
356
|
Fivem: "5m",
|
|
618
357
|
Oneh: "1h",
|
|
619
358
|
};
|
|
@@ -731,87 +470,32 @@ exports.DeploymentGetConfigDeploymentsType = {
|
|
|
731
470
|
Function: "function",
|
|
732
471
|
};
|
|
733
472
|
/** @internal */
|
|
734
|
-
exports.
|
|
735
|
-
/** @internal */
|
|
736
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema;
|
|
737
|
-
/** @internal */
|
|
738
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType);
|
|
739
|
-
/** @internal */
|
|
740
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema;
|
|
741
|
-
/** @internal */
|
|
742
|
-
exports.DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema = z
|
|
743
|
-
.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestTtl);
|
|
744
|
-
/** @internal */
|
|
745
|
-
exports.DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema;
|
|
746
|
-
/** @internal */
|
|
747
|
-
exports.DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema = z.object({
|
|
748
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema,
|
|
749
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema.default("5m"),
|
|
750
|
-
});
|
|
751
|
-
/** @internal */
|
|
752
|
-
exports.DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema = z.object({
|
|
753
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema,
|
|
754
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema.default("5m"),
|
|
755
|
-
});
|
|
756
|
-
function deploymentGetConfig2DeploymentsRequestCacheControlToJSON(deploymentGetConfig2DeploymentsRequestCacheControl) {
|
|
757
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema.parse(deploymentGetConfig2DeploymentsRequestCacheControl));
|
|
758
|
-
}
|
|
759
|
-
function deploymentGetConfig2DeploymentsRequestCacheControlFromJSON(jsonString) {
|
|
760
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestCacheControl' from JSON`);
|
|
761
|
-
}
|
|
762
|
-
/** @internal */
|
|
763
|
-
exports.DeploymentGetConfig21$inboundSchema = z.object({
|
|
764
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema,
|
|
765
|
-
text: z.string(),
|
|
766
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema).optional(),
|
|
767
|
-
}).transform((v) => {
|
|
768
|
-
return (0, primitives_js_1.remap)(v, {
|
|
769
|
-
"cache_control": "cacheControl",
|
|
770
|
-
});
|
|
771
|
-
});
|
|
772
|
-
/** @internal */
|
|
773
|
-
exports.DeploymentGetConfig21$outboundSchema = z.object({
|
|
774
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema,
|
|
775
|
-
text: z.string(),
|
|
776
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema).optional(),
|
|
777
|
-
}).transform((v) => {
|
|
778
|
-
return (0, primitives_js_1.remap)(v, {
|
|
779
|
-
cacheControl: "cache_control",
|
|
780
|
-
});
|
|
781
|
-
});
|
|
782
|
-
function deploymentGetConfig21ToJSON(deploymentGetConfig21) {
|
|
783
|
-
return JSON.stringify(exports.DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21));
|
|
784
|
-
}
|
|
785
|
-
function deploymentGetConfig21FromJSON(jsonString) {
|
|
786
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig21' from JSON`);
|
|
787
|
-
}
|
|
788
|
-
/** @internal */
|
|
789
|
-
exports.DeploymentGetConfigContentDeploymentsRequest2$inboundSchema = z.lazy(() => exports.DeploymentGetConfig21$inboundSchema);
|
|
473
|
+
exports.DeploymentGetConfigContentDeployments2$inboundSchema = components.TextContentPartSchema$inboundSchema;
|
|
790
474
|
/** @internal */
|
|
791
|
-
exports.
|
|
792
|
-
function
|
|
793
|
-
return JSON.stringify(exports.
|
|
475
|
+
exports.DeploymentGetConfigContentDeployments2$outboundSchema = components.TextContentPartSchema$outboundSchema;
|
|
476
|
+
function deploymentGetConfigContentDeployments2ToJSON(deploymentGetConfigContentDeployments2) {
|
|
477
|
+
return JSON.stringify(exports.DeploymentGetConfigContentDeployments2$outboundSchema.parse(deploymentGetConfigContentDeployments2));
|
|
794
478
|
}
|
|
795
|
-
function
|
|
796
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
479
|
+
function deploymentGetConfigContentDeployments2FromJSON(jsonString) {
|
|
480
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`);
|
|
797
481
|
}
|
|
798
482
|
/** @internal */
|
|
799
|
-
exports.
|
|
483
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$inboundSchema = z.union([
|
|
800
484
|
z.string(),
|
|
801
|
-
z.array(
|
|
485
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
802
486
|
]);
|
|
803
487
|
/** @internal */
|
|
804
|
-
exports.
|
|
488
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema = z.union([
|
|
805
489
|
z.string(),
|
|
806
|
-
z.array(
|
|
490
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
807
491
|
]);
|
|
808
|
-
function
|
|
809
|
-
return JSON.stringify(exports.
|
|
810
|
-
.parse(
|
|
492
|
+
function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent) {
|
|
493
|
+
return JSON.stringify(exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
494
|
+
.parse(deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent));
|
|
811
495
|
}
|
|
812
|
-
function
|
|
813
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
814
|
-
.parse(JSON.parse(x)), `Failed to parse '
|
|
496
|
+
function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentFromJSON(jsonString) {
|
|
497
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$inboundSchema
|
|
498
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent' from JSON`);
|
|
815
499
|
}
|
|
816
500
|
/** @internal */
|
|
817
501
|
exports.DeploymentGetConfigPrefixMessagesType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigPrefixMessagesType);
|
|
@@ -842,7 +526,7 @@ exports.ToolMessage$inboundSchema = z.object({
|
|
|
842
526
|
role: z.literal("tool"),
|
|
843
527
|
content: z.union([
|
|
844
528
|
z.string(),
|
|
845
|
-
z.array(
|
|
529
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
846
530
|
]),
|
|
847
531
|
tool_call_id: z.string(),
|
|
848
532
|
cache_control: z.lazy(() => exports.PrefixMessagesCacheControl$inboundSchema)
|
|
@@ -858,7 +542,7 @@ exports.ToolMessage$outboundSchema = z.object({
|
|
|
858
542
|
role: z.literal("tool"),
|
|
859
543
|
content: z.union([
|
|
860
544
|
z.string(),
|
|
861
|
-
z.array(
|
|
545
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
862
546
|
]),
|
|
863
547
|
toolCallId: z.string(),
|
|
864
548
|
cacheControl: z.lazy(() => exports.PrefixMessagesCacheControl$outboundSchema)
|
|
@@ -876,101 +560,52 @@ function toolMessageFromJSON(jsonString) {
|
|
|
876
560
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ToolMessage' from JSON`);
|
|
877
561
|
}
|
|
878
562
|
/** @internal */
|
|
879
|
-
exports.
|
|
880
|
-
|
|
881
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
|
|
882
|
-
/** @internal */
|
|
883
|
-
exports.DeploymentGetConfig2DeploymentsTtl$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsTtl);
|
|
884
|
-
/** @internal */
|
|
885
|
-
exports.DeploymentGetConfig2DeploymentsTtl$outboundSchema = exports.DeploymentGetConfig2DeploymentsTtl$inboundSchema;
|
|
886
|
-
/** @internal */
|
|
887
|
-
exports.DeploymentGetConfig2DeploymentsCacheControl$inboundSchema = z.object({
|
|
888
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
|
|
889
|
-
ttl: exports.DeploymentGetConfig2DeploymentsTtl$inboundSchema.default("5m"),
|
|
890
|
-
});
|
|
891
|
-
/** @internal */
|
|
892
|
-
exports.DeploymentGetConfig2DeploymentsCacheControl$outboundSchema = z.object({
|
|
893
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
|
|
894
|
-
ttl: exports.DeploymentGetConfig2DeploymentsTtl$outboundSchema.default("5m"),
|
|
895
|
-
});
|
|
896
|
-
function deploymentGetConfig2DeploymentsCacheControlToJSON(deploymentGetConfig2DeploymentsCacheControl) {
|
|
897
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(deploymentGetConfig2DeploymentsCacheControl));
|
|
898
|
-
}
|
|
899
|
-
function deploymentGetConfig2DeploymentsCacheControlFromJSON(jsonString) {
|
|
900
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsCacheControl' from JSON`);
|
|
901
|
-
}
|
|
902
|
-
/** @internal */
|
|
903
|
-
exports.Two1$inboundSchema = z
|
|
904
|
-
.object({
|
|
905
|
-
type: z.literal("text"),
|
|
906
|
-
text: z.string(),
|
|
907
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfig2DeploymentsCacheControl$inboundSchema).optional(),
|
|
908
|
-
}).transform((v) => {
|
|
909
|
-
return (0, primitives_js_1.remap)(v, {
|
|
910
|
-
"cache_control": "cacheControl",
|
|
911
|
-
});
|
|
912
|
-
});
|
|
913
|
-
/** @internal */
|
|
914
|
-
exports.Two1$outboundSchema = z.object({
|
|
915
|
-
type: z.literal("text"),
|
|
916
|
-
text: z.string(),
|
|
917
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfig2DeploymentsCacheControl$outboundSchema).optional(),
|
|
918
|
-
}).transform((v) => {
|
|
919
|
-
return (0, primitives_js_1.remap)(v, {
|
|
920
|
-
cacheControl: "cache_control",
|
|
921
|
-
});
|
|
922
|
-
});
|
|
923
|
-
function two1ToJSON(two1) {
|
|
924
|
-
return JSON.stringify(exports.Two1$outboundSchema.parse(two1));
|
|
925
|
-
}
|
|
926
|
-
function two1FromJSON(jsonString) {
|
|
927
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Two1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two1' from JSON`);
|
|
928
|
-
}
|
|
929
|
-
/** @internal */
|
|
930
|
-
exports.DeploymentGetConfigContentDeployments2$inboundSchema = z.union([
|
|
931
|
-
z.lazy(() => exports.Two1$inboundSchema),
|
|
563
|
+
exports.DeploymentGetConfigContent2$inboundSchema = z.union([
|
|
564
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
932
565
|
components.RefusalPartSchema$inboundSchema,
|
|
933
566
|
components.ReasoningPartSchema$inboundSchema,
|
|
934
567
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
935
568
|
]);
|
|
936
569
|
/** @internal */
|
|
937
|
-
exports.
|
|
938
|
-
z.
|
|
570
|
+
exports.DeploymentGetConfigContent2$outboundSchema = z.union([
|
|
571
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
939
572
|
components.RefusalPartSchema$outboundSchema,
|
|
940
573
|
components.ReasoningPartSchema$outboundSchema,
|
|
941
574
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
942
575
|
]);
|
|
943
|
-
function
|
|
944
|
-
return JSON.stringify(exports.
|
|
576
|
+
function deploymentGetConfigContent2ToJSON(deploymentGetConfigContent2) {
|
|
577
|
+
return JSON.stringify(exports.DeploymentGetConfigContent2$outboundSchema.parse(deploymentGetConfigContent2));
|
|
945
578
|
}
|
|
946
|
-
function
|
|
947
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
579
|
+
function deploymentGetConfigContent2FromJSON(jsonString) {
|
|
580
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContent2' from JSON`);
|
|
948
581
|
}
|
|
949
582
|
/** @internal */
|
|
950
|
-
exports.
|
|
583
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema = z.union([
|
|
951
584
|
z.string(),
|
|
952
585
|
z.array(z.union([
|
|
953
|
-
z.
|
|
586
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
954
587
|
components.RefusalPartSchema$inboundSchema,
|
|
955
588
|
components.ReasoningPartSchema$inboundSchema,
|
|
956
589
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
957
590
|
])),
|
|
958
591
|
]);
|
|
959
592
|
/** @internal */
|
|
960
|
-
exports.
|
|
593
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema = z.union([
|
|
961
594
|
z.string(),
|
|
962
595
|
z.array(z.union([
|
|
963
|
-
z.
|
|
596
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
964
597
|
components.RefusalPartSchema$outboundSchema,
|
|
965
598
|
components.ReasoningPartSchema$outboundSchema,
|
|
966
599
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
967
600
|
])),
|
|
968
601
|
]);
|
|
969
|
-
function
|
|
970
|
-
return JSON.stringify(exports.
|
|
602
|
+
function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(deploymentGetConfigPrefixMessagesDeploymentsRequestContent) {
|
|
603
|
+
return JSON.stringify(exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
604
|
+
.parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent));
|
|
971
605
|
}
|
|
972
|
-
function
|
|
973
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
606
|
+
function deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON(jsonString) {
|
|
607
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema
|
|
608
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestContent' from JSON`);
|
|
974
609
|
}
|
|
975
610
|
/** @internal */
|
|
976
611
|
exports.Audio$inboundSchema = z
|
|
@@ -992,26 +627,26 @@ exports.PrefixMessagesType$inboundSchema = z.nativeEnum(exports.PrefixMessagesTy
|
|
|
992
627
|
/** @internal */
|
|
993
628
|
exports.PrefixMessagesType$outboundSchema = exports.PrefixMessagesType$inboundSchema;
|
|
994
629
|
/** @internal */
|
|
995
|
-
exports.
|
|
630
|
+
exports.PrefixMessagesFunction$inboundSchema = z.object({
|
|
996
631
|
name: z.string().optional(),
|
|
997
632
|
arguments: z.string().optional(),
|
|
998
633
|
});
|
|
999
634
|
/** @internal */
|
|
1000
|
-
exports.
|
|
635
|
+
exports.PrefixMessagesFunction$outboundSchema = z.object({
|
|
1001
636
|
name: z.string().optional(),
|
|
1002
637
|
arguments: z.string().optional(),
|
|
1003
638
|
});
|
|
1004
|
-
function
|
|
1005
|
-
return JSON.stringify(exports.
|
|
639
|
+
function prefixMessagesFunctionToJSON(prefixMessagesFunction) {
|
|
640
|
+
return JSON.stringify(exports.PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction));
|
|
1006
641
|
}
|
|
1007
|
-
function
|
|
1008
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
642
|
+
function prefixMessagesFunctionFromJSON(jsonString) {
|
|
643
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrefixMessagesFunction' from JSON`);
|
|
1009
644
|
}
|
|
1010
645
|
/** @internal */
|
|
1011
|
-
exports.
|
|
646
|
+
exports.PrefixMessagesToolCalls$inboundSchema = z.object({
|
|
1012
647
|
id: z.string(),
|
|
1013
648
|
type: exports.PrefixMessagesType$inboundSchema,
|
|
1014
|
-
function: z.lazy(() => exports.
|
|
649
|
+
function: z.lazy(() => exports.PrefixMessagesFunction$inboundSchema),
|
|
1015
650
|
thought_signature: z.string().optional(),
|
|
1016
651
|
}).transform((v) => {
|
|
1017
652
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1019,28 +654,28 @@ exports.ToolCalls$inboundSchema = z.object({
|
|
|
1019
654
|
});
|
|
1020
655
|
});
|
|
1021
656
|
/** @internal */
|
|
1022
|
-
exports.
|
|
657
|
+
exports.PrefixMessagesToolCalls$outboundSchema = z.object({
|
|
1023
658
|
id: z.string(),
|
|
1024
659
|
type: exports.PrefixMessagesType$outboundSchema,
|
|
1025
|
-
function: z.lazy(() => exports.
|
|
660
|
+
function: z.lazy(() => exports.PrefixMessagesFunction$outboundSchema),
|
|
1026
661
|
thoughtSignature: z.string().optional(),
|
|
1027
662
|
}).transform((v) => {
|
|
1028
663
|
return (0, primitives_js_1.remap)(v, {
|
|
1029
664
|
thoughtSignature: "thought_signature",
|
|
1030
665
|
});
|
|
1031
666
|
});
|
|
1032
|
-
function
|
|
1033
|
-
return JSON.stringify(exports.
|
|
667
|
+
function prefixMessagesToolCallsToJSON(prefixMessagesToolCalls) {
|
|
668
|
+
return JSON.stringify(exports.PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls));
|
|
1034
669
|
}
|
|
1035
|
-
function
|
|
1036
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
670
|
+
function prefixMessagesToolCallsFromJSON(jsonString) {
|
|
671
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PrefixMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrefixMessagesToolCalls' from JSON`);
|
|
1037
672
|
}
|
|
1038
673
|
/** @internal */
|
|
1039
674
|
exports.AssistantMessage$inboundSchema = z.object({
|
|
1040
675
|
content: z.nullable(z.union([
|
|
1041
676
|
z.string(),
|
|
1042
677
|
z.array(z.union([
|
|
1043
|
-
z.
|
|
678
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1044
679
|
components.RefusalPartSchema$inboundSchema,
|
|
1045
680
|
components.ReasoningPartSchema$inboundSchema,
|
|
1046
681
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -1050,7 +685,8 @@ exports.AssistantMessage$inboundSchema = z.object({
|
|
|
1050
685
|
role: z.literal("assistant"),
|
|
1051
686
|
name: z.string().optional(),
|
|
1052
687
|
audio: z.nullable(z.lazy(() => exports.Audio$inboundSchema)).optional(),
|
|
1053
|
-
tool_calls: z.array(z.lazy(() => exports.
|
|
688
|
+
tool_calls: z.array(z.lazy(() => exports.PrefixMessagesToolCalls$inboundSchema))
|
|
689
|
+
.optional(),
|
|
1054
690
|
}).transform((v) => {
|
|
1055
691
|
return (0, primitives_js_1.remap)(v, {
|
|
1056
692
|
"tool_calls": "toolCalls",
|
|
@@ -1061,7 +697,7 @@ exports.AssistantMessage$outboundSchema = z.object({
|
|
|
1061
697
|
content: z.nullable(z.union([
|
|
1062
698
|
z.string(),
|
|
1063
699
|
z.array(z.union([
|
|
1064
|
-
z.
|
|
700
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1065
701
|
components.RefusalPartSchema$outboundSchema,
|
|
1066
702
|
components.ReasoningPartSchema$outboundSchema,
|
|
1067
703
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -1071,7 +707,8 @@ exports.AssistantMessage$outboundSchema = z.object({
|
|
|
1071
707
|
role: z.literal("assistant"),
|
|
1072
708
|
name: z.string().optional(),
|
|
1073
709
|
audio: z.nullable(z.lazy(() => exports.Audio$outboundSchema)).optional(),
|
|
1074
|
-
toolCalls: z.array(z.lazy(() => exports.
|
|
710
|
+
toolCalls: z.array(z.lazy(() => exports.PrefixMessagesToolCalls$outboundSchema))
|
|
711
|
+
.optional(),
|
|
1075
712
|
}).transform((v) => {
|
|
1076
713
|
return (0, primitives_js_1.remap)(v, {
|
|
1077
714
|
toolCalls: "tool_calls",
|
|
@@ -1084,36 +721,34 @@ function assistantMessageFromJSON(jsonString) {
|
|
|
1084
721
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AssistantMessage' from JSON`);
|
|
1085
722
|
}
|
|
1086
723
|
/** @internal */
|
|
1087
|
-
exports.
|
|
1088
|
-
.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestType);
|
|
724
|
+
exports.DeploymentGetConfig2DeploymentsType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsType);
|
|
1089
725
|
/** @internal */
|
|
1090
|
-
exports.
|
|
726
|
+
exports.DeploymentGetConfig2DeploymentsType$outboundSchema = exports.DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
1091
727
|
/** @internal */
|
|
1092
|
-
exports.
|
|
728
|
+
exports.Ttl$inboundSchema = z.nativeEnum(exports.Ttl);
|
|
1093
729
|
/** @internal */
|
|
1094
|
-
exports.
|
|
730
|
+
exports.Ttl$outboundSchema = exports.Ttl$inboundSchema;
|
|
1095
731
|
/** @internal */
|
|
1096
|
-
exports.
|
|
1097
|
-
type: exports.
|
|
1098
|
-
ttl: exports.
|
|
732
|
+
exports.CacheControl$inboundSchema = z.object({
|
|
733
|
+
type: exports.DeploymentGetConfig2DeploymentsType$inboundSchema,
|
|
734
|
+
ttl: exports.Ttl$inboundSchema.default("5m"),
|
|
1099
735
|
});
|
|
1100
736
|
/** @internal */
|
|
1101
|
-
exports.
|
|
1102
|
-
type: exports.
|
|
1103
|
-
ttl: exports.
|
|
737
|
+
exports.CacheControl$outboundSchema = z.object({
|
|
738
|
+
type: exports.DeploymentGetConfig2DeploymentsType$outboundSchema,
|
|
739
|
+
ttl: exports.Ttl$outboundSchema.default("5m"),
|
|
1104
740
|
});
|
|
1105
|
-
function
|
|
1106
|
-
return JSON.stringify(exports.
|
|
741
|
+
function cacheControlToJSON(cacheControl) {
|
|
742
|
+
return JSON.stringify(exports.CacheControl$outboundSchema.parse(cacheControl));
|
|
1107
743
|
}
|
|
1108
|
-
function
|
|
1109
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
744
|
+
function cacheControlFromJSON(jsonString) {
|
|
745
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CacheControl' from JSON`);
|
|
1110
746
|
}
|
|
1111
747
|
/** @internal */
|
|
1112
748
|
exports.Four$inboundSchema = z
|
|
1113
749
|
.object({
|
|
1114
750
|
type: z.literal("file"),
|
|
1115
|
-
cache_control: z.lazy(() => exports.
|
|
1116
|
-
.optional(),
|
|
751
|
+
cache_control: z.lazy(() => exports.CacheControl$inboundSchema).optional(),
|
|
1117
752
|
file: components.FileContentPartSchema$inboundSchema,
|
|
1118
753
|
}).transform((v) => {
|
|
1119
754
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1123,8 +758,7 @@ exports.Four$inboundSchema = z
|
|
|
1123
758
|
/** @internal */
|
|
1124
759
|
exports.Four$outboundSchema = z.object({
|
|
1125
760
|
type: z.literal("file"),
|
|
1126
|
-
cacheControl: z.lazy(() => exports.
|
|
1127
|
-
.optional(),
|
|
761
|
+
cacheControl: z.lazy(() => exports.CacheControl$outboundSchema).optional(),
|
|
1128
762
|
file: components.FileContentPartSchema$outboundSchema,
|
|
1129
763
|
}).transform((v) => {
|
|
1130
764
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1138,103 +772,50 @@ function fourFromJSON(jsonString) {
|
|
|
1138
772
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Four$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Four' from JSON`);
|
|
1139
773
|
}
|
|
1140
774
|
/** @internal */
|
|
1141
|
-
exports.
|
|
1142
|
-
|
|
1143
|
-
exports.DeploymentGetConfig2Type$outboundSchema = exports.DeploymentGetConfig2Type$inboundSchema;
|
|
1144
|
-
/** @internal */
|
|
1145
|
-
exports.TwoTtl$inboundSchema = z
|
|
1146
|
-
.nativeEnum(exports.TwoTtl);
|
|
1147
|
-
/** @internal */
|
|
1148
|
-
exports.TwoTtl$outboundSchema = exports.TwoTtl$inboundSchema;
|
|
1149
|
-
/** @internal */
|
|
1150
|
-
exports.TwoCacheControl$inboundSchema = z.object({
|
|
1151
|
-
type: exports.DeploymentGetConfig2Type$inboundSchema,
|
|
1152
|
-
ttl: exports.TwoTtl$inboundSchema.default("5m"),
|
|
1153
|
-
});
|
|
1154
|
-
/** @internal */
|
|
1155
|
-
exports.TwoCacheControl$outboundSchema = z.object({
|
|
1156
|
-
type: exports.DeploymentGetConfig2Type$outboundSchema,
|
|
1157
|
-
ttl: exports.TwoTtl$outboundSchema.default("5m"),
|
|
1158
|
-
});
|
|
1159
|
-
function twoCacheControlToJSON(twoCacheControl) {
|
|
1160
|
-
return JSON.stringify(exports.TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
1161
|
-
}
|
|
1162
|
-
function twoCacheControlFromJSON(jsonString) {
|
|
1163
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwoCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwoCacheControl' from JSON`);
|
|
1164
|
-
}
|
|
1165
|
-
/** @internal */
|
|
1166
|
-
exports.One$inboundSchema = z
|
|
1167
|
-
.object({
|
|
1168
|
-
type: z.literal("text"),
|
|
1169
|
-
text: z.string(),
|
|
1170
|
-
cache_control: z.lazy(() => exports.TwoCacheControl$inboundSchema).optional(),
|
|
1171
|
-
}).transform((v) => {
|
|
1172
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1173
|
-
"cache_control": "cacheControl",
|
|
1174
|
-
});
|
|
1175
|
-
});
|
|
1176
|
-
/** @internal */
|
|
1177
|
-
exports.One$outboundSchema = z
|
|
1178
|
-
.object({
|
|
1179
|
-
type: z.literal("text"),
|
|
1180
|
-
text: z.string(),
|
|
1181
|
-
cacheControl: z.lazy(() => exports.TwoCacheControl$outboundSchema).optional(),
|
|
1182
|
-
}).transform((v) => {
|
|
1183
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1184
|
-
cacheControl: "cache_control",
|
|
1185
|
-
});
|
|
1186
|
-
});
|
|
1187
|
-
function oneToJSON(one) {
|
|
1188
|
-
return JSON.stringify(exports.One$outboundSchema.parse(one));
|
|
1189
|
-
}
|
|
1190
|
-
function oneFromJSON(jsonString) {
|
|
1191
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.One$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'One' from JSON`);
|
|
1192
|
-
}
|
|
1193
|
-
/** @internal */
|
|
1194
|
-
exports.DeploymentGetConfigContent2$inboundSchema = z.union([
|
|
1195
|
-
z.lazy(() => exports.One$inboundSchema),
|
|
775
|
+
exports.Content2$inboundSchema = z.union([
|
|
776
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1196
777
|
components.ImageContentPartSchema$inboundSchema,
|
|
1197
778
|
components.AudioContentPartSchema$inboundSchema,
|
|
1198
779
|
z.lazy(() => exports.Four$inboundSchema),
|
|
1199
780
|
]);
|
|
1200
781
|
/** @internal */
|
|
1201
|
-
exports.
|
|
1202
|
-
z.
|
|
782
|
+
exports.Content2$outboundSchema = z.union([
|
|
783
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1203
784
|
components.ImageContentPartSchema$outboundSchema,
|
|
1204
785
|
components.AudioContentPartSchema$outboundSchema,
|
|
1205
786
|
z.lazy(() => exports.Four$outboundSchema),
|
|
1206
787
|
]);
|
|
1207
|
-
function
|
|
1208
|
-
return JSON.stringify(exports.
|
|
788
|
+
function content2ToJSON(content2) {
|
|
789
|
+
return JSON.stringify(exports.Content2$outboundSchema.parse(content2));
|
|
1209
790
|
}
|
|
1210
|
-
function
|
|
1211
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
791
|
+
function content2FromJSON(jsonString) {
|
|
792
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Content2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Content2' from JSON`);
|
|
1212
793
|
}
|
|
1213
794
|
/** @internal */
|
|
1214
|
-
exports.
|
|
795
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema = z.union([
|
|
1215
796
|
z.string(),
|
|
1216
797
|
z.array(z.union([
|
|
1217
|
-
z.
|
|
798
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1218
799
|
components.ImageContentPartSchema$inboundSchema,
|
|
1219
800
|
components.AudioContentPartSchema$inboundSchema,
|
|
1220
801
|
z.lazy(() => exports.Four$inboundSchema),
|
|
1221
802
|
])),
|
|
1222
803
|
]);
|
|
1223
804
|
/** @internal */
|
|
1224
|
-
exports.
|
|
805
|
+
exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema = z.union([
|
|
1225
806
|
z.string(),
|
|
1226
807
|
z.array(z.union([
|
|
1227
|
-
z.
|
|
808
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1228
809
|
components.ImageContentPartSchema$outboundSchema,
|
|
1229
810
|
components.AudioContentPartSchema$outboundSchema,
|
|
1230
811
|
z.lazy(() => exports.Four$outboundSchema),
|
|
1231
812
|
])),
|
|
1232
813
|
]);
|
|
1233
|
-
function
|
|
1234
|
-
return JSON.stringify(exports.
|
|
814
|
+
function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(deploymentGetConfigPrefixMessagesDeploymentsContent) {
|
|
815
|
+
return JSON.stringify(exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(deploymentGetConfigPrefixMessagesDeploymentsContent));
|
|
1235
816
|
}
|
|
1236
|
-
function
|
|
1237
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
817
|
+
function deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON(jsonString) {
|
|
818
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsContent' from JSON`);
|
|
1238
819
|
}
|
|
1239
820
|
/** @internal */
|
|
1240
821
|
exports.UserMessage$inboundSchema = z.object({
|
|
@@ -1243,7 +824,7 @@ exports.UserMessage$inboundSchema = z.object({
|
|
|
1243
824
|
content: z.union([
|
|
1244
825
|
z.string(),
|
|
1245
826
|
z.array(z.union([
|
|
1246
|
-
z.
|
|
827
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1247
828
|
components.ImageContentPartSchema$inboundSchema,
|
|
1248
829
|
components.AudioContentPartSchema$inboundSchema,
|
|
1249
830
|
z.lazy(() => exports.Four$inboundSchema),
|
|
@@ -1257,7 +838,7 @@ exports.UserMessage$outboundSchema = z.object({
|
|
|
1257
838
|
content: z.union([
|
|
1258
839
|
z.string(),
|
|
1259
840
|
z.array(z.union([
|
|
1260
|
-
z.
|
|
841
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1261
842
|
components.ImageContentPartSchema$outboundSchema,
|
|
1262
843
|
components.AudioContentPartSchema$outboundSchema,
|
|
1263
844
|
z.lazy(() => exports.Four$outboundSchema),
|
|
@@ -1271,75 +852,28 @@ function userMessageFromJSON(jsonString) {
|
|
|
1271
852
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.UserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UserMessage' from JSON`);
|
|
1272
853
|
}
|
|
1273
854
|
/** @internal */
|
|
1274
|
-
exports.
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
exports.DeploymentGetConfigContentDeploymentsType$inboundSchema = z
|
|
1279
|
-
.nativeEnum(exports.DeploymentGetConfigContentDeploymentsType);
|
|
1280
|
-
/** @internal */
|
|
1281
|
-
exports.DeploymentGetConfigContentDeploymentsType$outboundSchema = exports.DeploymentGetConfigContentDeploymentsType$inboundSchema;
|
|
1282
|
-
/** @internal */
|
|
1283
|
-
exports.ContentTtl$inboundSchema = z
|
|
1284
|
-
.nativeEnum(exports.ContentTtl);
|
|
1285
|
-
/** @internal */
|
|
1286
|
-
exports.ContentTtl$outboundSchema = exports.ContentTtl$inboundSchema;
|
|
1287
|
-
/** @internal */
|
|
1288
|
-
exports.ContentCacheControl$inboundSchema = z.object({
|
|
1289
|
-
type: exports.DeploymentGetConfigContentDeploymentsType$inboundSchema,
|
|
1290
|
-
ttl: exports.ContentTtl$inboundSchema.default("5m"),
|
|
1291
|
-
});
|
|
1292
|
-
/** @internal */
|
|
1293
|
-
exports.ContentCacheControl$outboundSchema = z.object({
|
|
1294
|
-
type: exports.DeploymentGetConfigContentDeploymentsType$outboundSchema,
|
|
1295
|
-
ttl: exports.ContentTtl$outboundSchema.default("5m"),
|
|
1296
|
-
});
|
|
1297
|
-
function contentCacheControlToJSON(contentCacheControl) {
|
|
1298
|
-
return JSON.stringify(exports.ContentCacheControl$outboundSchema.parse(contentCacheControl));
|
|
1299
|
-
}
|
|
1300
|
-
function contentCacheControlFromJSON(jsonString) {
|
|
1301
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ContentCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ContentCacheControl' from JSON`);
|
|
1302
|
-
}
|
|
1303
|
-
/** @internal */
|
|
1304
|
-
exports.Content2$inboundSchema = z.object({
|
|
1305
|
-
type: exports.DeploymentGetConfigContentType$inboundSchema,
|
|
1306
|
-
text: z.string(),
|
|
1307
|
-
cache_control: z.lazy(() => exports.ContentCacheControl$inboundSchema).optional(),
|
|
1308
|
-
}).transform((v) => {
|
|
1309
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1310
|
-
"cache_control": "cacheControl",
|
|
1311
|
-
});
|
|
1312
|
-
});
|
|
1313
|
-
/** @internal */
|
|
1314
|
-
exports.Content2$outboundSchema = z.object({
|
|
1315
|
-
type: exports.DeploymentGetConfigContentType$outboundSchema,
|
|
1316
|
-
text: z.string(),
|
|
1317
|
-
cacheControl: z.lazy(() => exports.ContentCacheControl$outboundSchema).optional(),
|
|
1318
|
-
}).transform((v) => {
|
|
1319
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1320
|
-
cacheControl: "cache_control",
|
|
1321
|
-
});
|
|
1322
|
-
});
|
|
1323
|
-
function content2ToJSON(content2) {
|
|
1324
|
-
return JSON.stringify(exports.Content2$outboundSchema.parse(content2));
|
|
1325
|
-
}
|
|
1326
|
-
function content2FromJSON(jsonString) {
|
|
1327
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Content2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Content2' from JSON`);
|
|
1328
|
-
}
|
|
1329
|
-
/** @internal */
|
|
1330
|
-
exports.PrefixMessagesContent$inboundSchema = z.union([z.string(), z.array(z.lazy(() => exports.Content2$inboundSchema))]);
|
|
855
|
+
exports.DeploymentGetConfigPrefixMessagesContent$inboundSchema = z.union([
|
|
856
|
+
z.string(),
|
|
857
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
858
|
+
]);
|
|
1331
859
|
/** @internal */
|
|
1332
|
-
exports.
|
|
1333
|
-
|
|
1334
|
-
|
|
860
|
+
exports.DeploymentGetConfigPrefixMessagesContent$outboundSchema = z.union([
|
|
861
|
+
z.string(),
|
|
862
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
863
|
+
]);
|
|
864
|
+
function deploymentGetConfigPrefixMessagesContentToJSON(deploymentGetConfigPrefixMessagesContent) {
|
|
865
|
+
return JSON.stringify(exports.DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(deploymentGetConfigPrefixMessagesContent));
|
|
1335
866
|
}
|
|
1336
|
-
function
|
|
1337
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
867
|
+
function deploymentGetConfigPrefixMessagesContentFromJSON(jsonString) {
|
|
868
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`);
|
|
1338
869
|
}
|
|
1339
870
|
/** @internal */
|
|
1340
871
|
exports.DeveloperMessage$inboundSchema = z.object({
|
|
1341
872
|
role: z.literal("developer"),
|
|
1342
|
-
content: z.union([
|
|
873
|
+
content: z.union([
|
|
874
|
+
z.string(),
|
|
875
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
876
|
+
]),
|
|
1343
877
|
name: z.string().optional(),
|
|
1344
878
|
});
|
|
1345
879
|
/** @internal */
|
|
@@ -1347,7 +881,7 @@ exports.DeveloperMessage$outboundSchema = z.object({
|
|
|
1347
881
|
role: z.literal("developer"),
|
|
1348
882
|
content: z.union([
|
|
1349
883
|
z.string(),
|
|
1350
|
-
z.array(
|
|
884
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1351
885
|
]),
|
|
1352
886
|
name: z.string().optional(),
|
|
1353
887
|
});
|
|
@@ -1358,82 +892,37 @@ function developerMessageFromJSON(jsonString) {
|
|
|
1358
892
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeveloperMessage' from JSON`);
|
|
1359
893
|
}
|
|
1360
894
|
/** @internal */
|
|
1361
|
-
exports.
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
exports.ContentType$inboundSchema = z
|
|
1366
|
-
.nativeEnum(exports.ContentType);
|
|
1367
|
-
/** @internal */
|
|
1368
|
-
exports.ContentType$outboundSchema = exports.ContentType$inboundSchema;
|
|
1369
|
-
/** @internal */
|
|
1370
|
-
exports.Ttl$inboundSchema = z.nativeEnum(exports.Ttl);
|
|
1371
|
-
/** @internal */
|
|
1372
|
-
exports.Ttl$outboundSchema = exports.Ttl$inboundSchema;
|
|
1373
|
-
/** @internal */
|
|
1374
|
-
exports.CacheControl$inboundSchema = z.object({
|
|
1375
|
-
type: exports.ContentType$inboundSchema,
|
|
1376
|
-
ttl: exports.Ttl$inboundSchema.default("5m"),
|
|
1377
|
-
});
|
|
1378
|
-
/** @internal */
|
|
1379
|
-
exports.CacheControl$outboundSchema = z.object({
|
|
1380
|
-
type: exports.ContentType$outboundSchema,
|
|
1381
|
-
ttl: exports.Ttl$outboundSchema.default("5m"),
|
|
1382
|
-
});
|
|
1383
|
-
function cacheControlToJSON(cacheControl) {
|
|
1384
|
-
return JSON.stringify(exports.CacheControl$outboundSchema.parse(cacheControl));
|
|
1385
|
-
}
|
|
1386
|
-
function cacheControlFromJSON(jsonString) {
|
|
1387
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'CacheControl' from JSON`);
|
|
1388
|
-
}
|
|
1389
|
-
/** @internal */
|
|
1390
|
-
exports.Two$inboundSchema = z
|
|
1391
|
-
.object({
|
|
1392
|
-
type: exports.Type$inboundSchema,
|
|
1393
|
-
text: z.string(),
|
|
1394
|
-
cache_control: z.lazy(() => exports.CacheControl$inboundSchema).optional(),
|
|
1395
|
-
}).transform((v) => {
|
|
1396
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1397
|
-
"cache_control": "cacheControl",
|
|
1398
|
-
});
|
|
1399
|
-
});
|
|
1400
|
-
/** @internal */
|
|
1401
|
-
exports.Two$outboundSchema = z
|
|
1402
|
-
.object({
|
|
1403
|
-
type: exports.Type$outboundSchema,
|
|
1404
|
-
text: z.string(),
|
|
1405
|
-
cacheControl: z.lazy(() => exports.CacheControl$outboundSchema).optional(),
|
|
1406
|
-
}).transform((v) => {
|
|
1407
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1408
|
-
cacheControl: "cache_control",
|
|
1409
|
-
});
|
|
1410
|
-
});
|
|
1411
|
-
function twoToJSON(two) {
|
|
1412
|
-
return JSON.stringify(exports.Two$outboundSchema.parse(two));
|
|
1413
|
-
}
|
|
1414
|
-
function twoFromJSON(jsonString) {
|
|
1415
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Two$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two' from JSON`);
|
|
1416
|
-
}
|
|
1417
|
-
/** @internal */
|
|
1418
|
-
exports.Content$inboundSchema = z.union([z.string(), z.array(z.lazy(() => exports.Two$inboundSchema))]);
|
|
895
|
+
exports.PrefixMessagesContent$inboundSchema = z.union([
|
|
896
|
+
z.string(),
|
|
897
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
898
|
+
]);
|
|
1419
899
|
/** @internal */
|
|
1420
|
-
exports.
|
|
1421
|
-
|
|
1422
|
-
|
|
900
|
+
exports.PrefixMessagesContent$outboundSchema = z.union([
|
|
901
|
+
z.string(),
|
|
902
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
903
|
+
]);
|
|
904
|
+
function prefixMessagesContentToJSON(prefixMessagesContent) {
|
|
905
|
+
return JSON.stringify(exports.PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent));
|
|
1423
906
|
}
|
|
1424
|
-
function
|
|
1425
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
907
|
+
function prefixMessagesContentFromJSON(jsonString) {
|
|
908
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrefixMessagesContent' from JSON`);
|
|
1426
909
|
}
|
|
1427
910
|
/** @internal */
|
|
1428
911
|
exports.SystemMessage$inboundSchema = z.object({
|
|
1429
912
|
role: z.literal("system"),
|
|
1430
|
-
content: z.union([
|
|
913
|
+
content: z.union([
|
|
914
|
+
z.string(),
|
|
915
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
916
|
+
]),
|
|
1431
917
|
name: z.string().optional(),
|
|
1432
918
|
});
|
|
1433
919
|
/** @internal */
|
|
1434
920
|
exports.SystemMessage$outboundSchema = z.object({
|
|
1435
921
|
role: z.literal("system"),
|
|
1436
|
-
content: z.union([
|
|
922
|
+
content: z.union([
|
|
923
|
+
z.string(),
|
|
924
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
925
|
+
]),
|
|
1437
926
|
name: z.string().optional(),
|
|
1438
927
|
});
|
|
1439
928
|
function systemMessageToJSON(systemMessage) {
|
|
@@ -1465,84 +954,26 @@ function prefixMessagesFromJSON(jsonString) {
|
|
|
1465
954
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PrefixMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PrefixMessages' from JSON`);
|
|
1466
955
|
}
|
|
1467
956
|
/** @internal */
|
|
1468
|
-
exports.
|
|
1469
|
-
/** @internal */
|
|
1470
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema;
|
|
1471
|
-
/** @internal */
|
|
1472
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType);
|
|
1473
|
-
/** @internal */
|
|
1474
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema;
|
|
1475
|
-
/** @internal */
|
|
1476
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl);
|
|
1477
|
-
/** @internal */
|
|
1478
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema;
|
|
1479
|
-
/** @internal */
|
|
1480
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema = z.object({
|
|
1481
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema,
|
|
1482
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema
|
|
1483
|
-
.default("5m"),
|
|
1484
|
-
});
|
|
1485
|
-
/** @internal */
|
|
1486
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema = z.object({
|
|
1487
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema,
|
|
1488
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema
|
|
1489
|
-
.default("5m"),
|
|
1490
|
-
});
|
|
1491
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlToJSON(deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl) {
|
|
1492
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
|
|
1493
|
-
.parse(deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl));
|
|
1494
|
-
}
|
|
1495
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlFromJSON(jsonString) {
|
|
1496
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
|
|
1497
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl' from JSON`);
|
|
1498
|
-
}
|
|
1499
|
-
/** @internal */
|
|
1500
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema = z.object({
|
|
1501
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema,
|
|
1502
|
-
text: z.string(),
|
|
1503
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema).optional(),
|
|
1504
|
-
}).transform((v) => {
|
|
1505
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1506
|
-
"cache_control": "cacheControl",
|
|
1507
|
-
});
|
|
1508
|
-
});
|
|
1509
|
-
/** @internal */
|
|
1510
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema = z.object({
|
|
1511
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema,
|
|
1512
|
-
text: z.string(),
|
|
1513
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema).optional(),
|
|
1514
|
-
}).transform((v) => {
|
|
1515
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1516
|
-
cacheControl: "cache_control",
|
|
1517
|
-
});
|
|
1518
|
-
});
|
|
1519
|
-
function deploymentGetConfig2DeploymentsRequestRequestBody1ToJSON(deploymentGetConfig2DeploymentsRequestRequestBody1) {
|
|
1520
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema.parse(deploymentGetConfig2DeploymentsRequestRequestBody1));
|
|
1521
|
-
}
|
|
1522
|
-
function deploymentGetConfig2DeploymentsRequestRequestBody1FromJSON(jsonString) {
|
|
1523
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBody1' from JSON`);
|
|
1524
|
-
}
|
|
1525
|
-
/** @internal */
|
|
1526
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$inboundSchema = z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema);
|
|
957
|
+
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema = components.TextContentPartSchema$inboundSchema;
|
|
1527
958
|
/** @internal */
|
|
1528
|
-
exports.
|
|
1529
|
-
function
|
|
1530
|
-
return JSON.stringify(exports.
|
|
1531
|
-
.parse(
|
|
959
|
+
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema = components.TextContentPartSchema$outboundSchema;
|
|
960
|
+
function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2) {
|
|
961
|
+
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
962
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2));
|
|
1532
963
|
}
|
|
1533
|
-
function
|
|
1534
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1535
|
-
.parse(JSON.parse(x)), `Failed to parse '
|
|
964
|
+
function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON(jsonString) {
|
|
965
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
966
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2' from JSON`);
|
|
1536
967
|
}
|
|
1537
968
|
/** @internal */
|
|
1538
969
|
exports.DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$inboundSchema = z.union([
|
|
1539
970
|
z.string(),
|
|
1540
|
-
z.array(
|
|
971
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1541
972
|
]);
|
|
1542
973
|
/** @internal */
|
|
1543
974
|
exports.DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema = z.union([
|
|
1544
975
|
z.string(),
|
|
1545
|
-
z.array(
|
|
976
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1546
977
|
]);
|
|
1547
978
|
function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent) {
|
|
1548
979
|
return JSON.stringify(exports.DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
@@ -1582,7 +1013,7 @@ exports.MessagesToolMessage$inboundSchema = z.object({
|
|
|
1582
1013
|
role: z.literal("tool"),
|
|
1583
1014
|
content: z.union([
|
|
1584
1015
|
z.string(),
|
|
1585
|
-
z.array(
|
|
1016
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1586
1017
|
]),
|
|
1587
1018
|
tool_call_id: z.string(),
|
|
1588
1019
|
cache_control: z.lazy(() => exports.MessagesCacheControl$inboundSchema).optional(),
|
|
@@ -1597,7 +1028,7 @@ exports.MessagesToolMessage$outboundSchema = z.object({
|
|
|
1597
1028
|
role: z.literal("tool"),
|
|
1598
1029
|
content: z.union([
|
|
1599
1030
|
z.string(),
|
|
1600
|
-
z.array(
|
|
1031
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1601
1032
|
]),
|
|
1602
1033
|
toolCallId: z.string(),
|
|
1603
1034
|
cacheControl: z.lazy(() => exports.MessagesCacheControl$outboundSchema).optional(),
|
|
@@ -1614,86 +1045,32 @@ function messagesToolMessageFromJSON(jsonString) {
|
|
|
1614
1045
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessagesToolMessage' from JSON`);
|
|
1615
1046
|
}
|
|
1616
1047
|
/** @internal */
|
|
1617
|
-
exports.
|
|
1618
|
-
|
|
1619
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
|
|
1620
|
-
/** @internal */
|
|
1621
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl);
|
|
1622
|
-
/** @internal */
|
|
1623
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema;
|
|
1624
|
-
/** @internal */
|
|
1625
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema = z.object({
|
|
1626
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
|
|
1627
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema
|
|
1628
|
-
.default("5m"),
|
|
1629
|
-
});
|
|
1630
|
-
/** @internal */
|
|
1631
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema = z.object({
|
|
1632
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
|
|
1633
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema
|
|
1634
|
-
.default("5m"),
|
|
1635
|
-
});
|
|
1636
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlToJSON(deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl) {
|
|
1637
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
|
|
1638
|
-
.parse(deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl));
|
|
1639
|
-
}
|
|
1640
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlFromJSON(jsonString) {
|
|
1641
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
|
|
1642
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl' from JSON`);
|
|
1643
|
-
}
|
|
1644
|
-
/** @internal */
|
|
1645
|
-
exports.DeploymentGetConfig2DeploymentsRequest1$inboundSchema = z.object({
|
|
1646
|
-
type: z.literal("text"),
|
|
1647
|
-
text: z.string(),
|
|
1648
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema).optional(),
|
|
1649
|
-
}).transform((v) => {
|
|
1650
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1651
|
-
"cache_control": "cacheControl",
|
|
1652
|
-
});
|
|
1653
|
-
});
|
|
1654
|
-
/** @internal */
|
|
1655
|
-
exports.DeploymentGetConfig2DeploymentsRequest1$outboundSchema = z.object({
|
|
1656
|
-
type: z.literal("text"),
|
|
1657
|
-
text: z.string(),
|
|
1658
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema).optional(),
|
|
1659
|
-
}).transform((v) => {
|
|
1660
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1661
|
-
cacheControl: "cache_control",
|
|
1662
|
-
});
|
|
1663
|
-
});
|
|
1664
|
-
function deploymentGetConfig2DeploymentsRequest1ToJSON(deploymentGetConfig2DeploymentsRequest1) {
|
|
1665
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequest1$outboundSchema.parse(deploymentGetConfig2DeploymentsRequest1));
|
|
1666
|
-
}
|
|
1667
|
-
function deploymentGetConfig2DeploymentsRequest1FromJSON(jsonString) {
|
|
1668
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequest1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequest1' from JSON`);
|
|
1669
|
-
}
|
|
1670
|
-
/** @internal */
|
|
1671
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$inboundSchema = z.union([
|
|
1672
|
-
z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
|
|
1048
|
+
exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema = z.union([
|
|
1049
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1673
1050
|
components.RefusalPartSchema$inboundSchema,
|
|
1674
1051
|
components.ReasoningPartSchema$inboundSchema,
|
|
1675
1052
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1676
1053
|
]);
|
|
1677
1054
|
/** @internal */
|
|
1678
|
-
exports.
|
|
1679
|
-
z.
|
|
1055
|
+
exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema = z.union([
|
|
1056
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1680
1057
|
components.RefusalPartSchema$outboundSchema,
|
|
1681
1058
|
components.ReasoningPartSchema$outboundSchema,
|
|
1682
1059
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1683
1060
|
]);
|
|
1684
|
-
function
|
|
1685
|
-
return JSON.stringify(exports.
|
|
1686
|
-
.parse(
|
|
1061
|
+
function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(deploymentGetConfigContentDeploymentsRequestRequestBody2) {
|
|
1062
|
+
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
1063
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBody2));
|
|
1687
1064
|
}
|
|
1688
|
-
function
|
|
1689
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1690
|
-
.parse(JSON.parse(x)), `Failed to parse '
|
|
1065
|
+
function deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON(jsonString) {
|
|
1066
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
|
|
1067
|
+
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBody2' from JSON`);
|
|
1691
1068
|
}
|
|
1692
1069
|
/** @internal */
|
|
1693
1070
|
exports.DeploymentGetConfigMessagesDeploymentsRequestContent$inboundSchema = z.union([
|
|
1694
1071
|
z.string(),
|
|
1695
1072
|
z.array(z.union([
|
|
1696
|
-
z.
|
|
1073
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1697
1074
|
components.RefusalPartSchema$inboundSchema,
|
|
1698
1075
|
components.ReasoningPartSchema$inboundSchema,
|
|
1699
1076
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -1703,7 +1080,7 @@ exports.DeploymentGetConfigMessagesDeploymentsRequestContent$inboundSchema = z.u
|
|
|
1703
1080
|
exports.DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema = z.union([
|
|
1704
1081
|
z.string(),
|
|
1705
1082
|
z.array(z.union([
|
|
1706
|
-
z.
|
|
1083
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1707
1084
|
components.RefusalPartSchema$outboundSchema,
|
|
1708
1085
|
components.ReasoningPartSchema$outboundSchema,
|
|
1709
1086
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -1782,7 +1159,7 @@ exports.MessagesAssistantMessage$inboundSchema = z.object({
|
|
|
1782
1159
|
content: z.nullable(z.union([
|
|
1783
1160
|
z.string(),
|
|
1784
1161
|
z.array(z.union([
|
|
1785
|
-
z.
|
|
1162
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1786
1163
|
components.RefusalPartSchema$inboundSchema,
|
|
1787
1164
|
components.ReasoningPartSchema$inboundSchema,
|
|
1788
1165
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -1803,7 +1180,7 @@ exports.MessagesAssistantMessage$outboundSchema = z.object({
|
|
|
1803
1180
|
content: z.nullable(z.union([
|
|
1804
1181
|
z.string(),
|
|
1805
1182
|
z.array(z.union([
|
|
1806
|
-
z.
|
|
1183
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1807
1184
|
components.RefusalPartSchema$outboundSchema,
|
|
1808
1185
|
components.ReasoningPartSchema$outboundSchema,
|
|
1809
1186
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -1826,38 +1203,35 @@ function messagesAssistantMessageFromJSON(jsonString) {
|
|
|
1826
1203
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessagesAssistantMessage' from JSON`);
|
|
1827
1204
|
}
|
|
1828
1205
|
/** @internal */
|
|
1829
|
-
exports.
|
|
1206
|
+
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType);
|
|
1830
1207
|
/** @internal */
|
|
1831
|
-
exports.
|
|
1208
|
+
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
1832
1209
|
/** @internal */
|
|
1833
|
-
exports.
|
|
1210
|
+
exports.TwoTtl$inboundSchema = z
|
|
1211
|
+
.nativeEnum(exports.TwoTtl);
|
|
1834
1212
|
/** @internal */
|
|
1835
|
-
exports.
|
|
1213
|
+
exports.TwoTtl$outboundSchema = exports.TwoTtl$inboundSchema;
|
|
1836
1214
|
/** @internal */
|
|
1837
|
-
exports.
|
|
1838
|
-
type: exports.
|
|
1839
|
-
ttl: exports.
|
|
1840
|
-
.default("5m"),
|
|
1215
|
+
exports.TwoCacheControl$inboundSchema = z.object({
|
|
1216
|
+
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
|
|
1217
|
+
ttl: exports.TwoTtl$inboundSchema.default("5m"),
|
|
1841
1218
|
});
|
|
1842
1219
|
/** @internal */
|
|
1843
|
-
exports.
|
|
1844
|
-
type: exports.
|
|
1845
|
-
ttl: exports.
|
|
1846
|
-
.default("5m"),
|
|
1220
|
+
exports.TwoCacheControl$outboundSchema = z.object({
|
|
1221
|
+
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
1222
|
+
ttl: exports.TwoTtl$outboundSchema.default("5m"),
|
|
1847
1223
|
});
|
|
1848
|
-
function
|
|
1849
|
-
return JSON.stringify(exports.
|
|
1850
|
-
.parse(deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl));
|
|
1224
|
+
function twoCacheControlToJSON(twoCacheControl) {
|
|
1225
|
+
return JSON.stringify(exports.TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
1851
1226
|
}
|
|
1852
|
-
function
|
|
1853
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1854
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl' from JSON`);
|
|
1227
|
+
function twoCacheControlFromJSON(jsonString) {
|
|
1228
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TwoCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TwoCacheControl' from JSON`);
|
|
1855
1229
|
}
|
|
1856
1230
|
/** @internal */
|
|
1857
1231
|
exports.Two4$inboundSchema = z
|
|
1858
1232
|
.object({
|
|
1859
1233
|
type: z.literal("file"),
|
|
1860
|
-
cache_control: z.lazy(() => exports.
|
|
1234
|
+
cache_control: z.lazy(() => exports.TwoCacheControl$inboundSchema).optional(),
|
|
1861
1235
|
file: components.FileContentPartSchema$inboundSchema,
|
|
1862
1236
|
}).transform((v) => {
|
|
1863
1237
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1867,7 +1241,7 @@ exports.Two4$inboundSchema = z
|
|
|
1867
1241
|
/** @internal */
|
|
1868
1242
|
exports.Two4$outboundSchema = z.object({
|
|
1869
1243
|
type: z.literal("file"),
|
|
1870
|
-
cacheControl: z.lazy(() => exports.
|
|
1244
|
+
cacheControl: z.lazy(() => exports.TwoCacheControl$outboundSchema).optional(),
|
|
1871
1245
|
file: components.FileContentPartSchema$outboundSchema,
|
|
1872
1246
|
}).transform((v) => {
|
|
1873
1247
|
return (0, primitives_js_1.remap)(v, {
|
|
@@ -1881,86 +1255,30 @@ function two4FromJSON(jsonString) {
|
|
|
1881
1255
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.Two4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Two4' from JSON`);
|
|
1882
1256
|
}
|
|
1883
1257
|
/** @internal */
|
|
1884
|
-
exports.
|
|
1885
|
-
|
|
1886
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
|
|
1887
|
-
/** @internal */
|
|
1888
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema = z.nativeEnum(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl);
|
|
1889
|
-
/** @internal */
|
|
1890
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema = exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema;
|
|
1891
|
-
/** @internal */
|
|
1892
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema = z.object({
|
|
1893
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
|
|
1894
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema
|
|
1895
|
-
.default("5m"),
|
|
1896
|
-
});
|
|
1897
|
-
/** @internal */
|
|
1898
|
-
exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema = z.object({
|
|
1899
|
-
type: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
|
|
1900
|
-
ttl: exports.DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema
|
|
1901
|
-
.default("5m"),
|
|
1902
|
-
});
|
|
1903
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlToJSON(deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl) {
|
|
1904
|
-
return JSON.stringify(exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
1905
|
-
.parse(deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl));
|
|
1906
|
-
}
|
|
1907
|
-
function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlFromJSON(jsonString) {
|
|
1908
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
1909
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl' from JSON`);
|
|
1910
|
-
}
|
|
1911
|
-
/** @internal */
|
|
1912
|
-
exports.DeploymentGetConfig2Deployments1$inboundSchema = z.object({
|
|
1913
|
-
type: z.literal("text"),
|
|
1914
|
-
text: z.string(),
|
|
1915
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema).optional(),
|
|
1916
|
-
}).transform((v) => {
|
|
1917
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1918
|
-
"cache_control": "cacheControl",
|
|
1919
|
-
});
|
|
1920
|
-
});
|
|
1921
|
-
/** @internal */
|
|
1922
|
-
exports.DeploymentGetConfig2Deployments1$outboundSchema = z.object({
|
|
1923
|
-
type: z.literal("text"),
|
|
1924
|
-
text: z.string(),
|
|
1925
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema).optional(),
|
|
1926
|
-
}).transform((v) => {
|
|
1927
|
-
return (0, primitives_js_1.remap)(v, {
|
|
1928
|
-
cacheControl: "cache_control",
|
|
1929
|
-
});
|
|
1930
|
-
});
|
|
1931
|
-
function deploymentGetConfig2Deployments1ToJSON(deploymentGetConfig2Deployments1) {
|
|
1932
|
-
return JSON.stringify(exports.DeploymentGetConfig2Deployments1$outboundSchema.parse(deploymentGetConfig2Deployments1));
|
|
1933
|
-
}
|
|
1934
|
-
function deploymentGetConfig2Deployments1FromJSON(jsonString) {
|
|
1935
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig2Deployments1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig2Deployments1' from JSON`);
|
|
1936
|
-
}
|
|
1937
|
-
/** @internal */
|
|
1938
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$inboundSchema = z.union([
|
|
1939
|
-
z.lazy(() => exports.DeploymentGetConfig2Deployments1$inboundSchema),
|
|
1258
|
+
exports.DeploymentGetConfigContentDeploymentsRequest2$inboundSchema = z.union([
|
|
1259
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1940
1260
|
components.ImageContentPartSchema$inboundSchema,
|
|
1941
1261
|
components.AudioContentPartSchema$inboundSchema,
|
|
1942
1262
|
z.lazy(() => exports.Two4$inboundSchema),
|
|
1943
1263
|
]);
|
|
1944
1264
|
/** @internal */
|
|
1945
|
-
exports.
|
|
1946
|
-
z.
|
|
1265
|
+
exports.DeploymentGetConfigContentDeploymentsRequest2$outboundSchema = z.union([
|
|
1266
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1947
1267
|
components.ImageContentPartSchema$outboundSchema,
|
|
1948
1268
|
components.AudioContentPartSchema$outboundSchema,
|
|
1949
1269
|
z.lazy(() => exports.Two4$outboundSchema),
|
|
1950
1270
|
]);
|
|
1951
|
-
function
|
|
1952
|
-
return JSON.stringify(exports.
|
|
1953
|
-
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32));
|
|
1271
|
+
function deploymentGetConfigContentDeploymentsRequest2ToJSON(deploymentGetConfigContentDeploymentsRequest2) {
|
|
1272
|
+
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(deploymentGetConfigContentDeploymentsRequest2));
|
|
1954
1273
|
}
|
|
1955
|
-
function
|
|
1956
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1957
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32' from JSON`);
|
|
1274
|
+
function deploymentGetConfigContentDeploymentsRequest2FromJSON(jsonString) {
|
|
1275
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`);
|
|
1958
1276
|
}
|
|
1959
1277
|
/** @internal */
|
|
1960
1278
|
exports.DeploymentGetConfigMessagesDeploymentsContent$inboundSchema = z.union([
|
|
1961
1279
|
z.string(),
|
|
1962
1280
|
z.array(z.union([
|
|
1963
|
-
z.
|
|
1281
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1964
1282
|
components.ImageContentPartSchema$inboundSchema,
|
|
1965
1283
|
components.AudioContentPartSchema$inboundSchema,
|
|
1966
1284
|
z.lazy(() => exports.Two4$inboundSchema),
|
|
@@ -1970,7 +1288,7 @@ exports.DeploymentGetConfigMessagesDeploymentsContent$inboundSchema = z.union([
|
|
|
1970
1288
|
exports.DeploymentGetConfigMessagesDeploymentsContent$outboundSchema = z.union([
|
|
1971
1289
|
z.string(),
|
|
1972
1290
|
z.array(z.union([
|
|
1973
|
-
z.
|
|
1291
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1974
1292
|
components.ImageContentPartSchema$outboundSchema,
|
|
1975
1293
|
components.AudioContentPartSchema$outboundSchema,
|
|
1976
1294
|
z.lazy(() => exports.Two4$outboundSchema),
|
|
@@ -1989,7 +1307,7 @@ exports.MessagesUserMessage$inboundSchema = z.object({
|
|
|
1989
1307
|
content: z.union([
|
|
1990
1308
|
z.string(),
|
|
1991
1309
|
z.array(z.union([
|
|
1992
|
-
z.
|
|
1310
|
+
components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
|
|
1993
1311
|
components.ImageContentPartSchema$inboundSchema,
|
|
1994
1312
|
components.AudioContentPartSchema$inboundSchema,
|
|
1995
1313
|
z.lazy(() => exports.Two4$inboundSchema),
|
|
@@ -2003,7 +1321,7 @@ exports.MessagesUserMessage$outboundSchema = z.object({
|
|
|
2003
1321
|
content: z.union([
|
|
2004
1322
|
z.string(),
|
|
2005
1323
|
z.array(z.union([
|
|
2006
|
-
z.
|
|
1324
|
+
components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
|
|
2007
1325
|
components.ImageContentPartSchema$outboundSchema,
|
|
2008
1326
|
components.AudioContentPartSchema$outboundSchema,
|
|
2009
1327
|
z.lazy(() => exports.Two4$outboundSchema),
|
|
@@ -2017,71 +1335,14 @@ function messagesUserMessageFromJSON(jsonString) {
|
|
|
2017
1335
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessagesUserMessage' from JSON`);
|
|
2018
1336
|
}
|
|
2019
1337
|
/** @internal */
|
|
2020
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType);
|
|
2021
|
-
/** @internal */
|
|
2022
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema;
|
|
2023
|
-
/** @internal */
|
|
2024
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type);
|
|
2025
|
-
/** @internal */
|
|
2026
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema;
|
|
2027
|
-
/** @internal */
|
|
2028
|
-
exports.DeploymentGetConfigContentDeploymentsTtl$inboundSchema = z
|
|
2029
|
-
.nativeEnum(exports.DeploymentGetConfigContentDeploymentsTtl);
|
|
2030
|
-
/** @internal */
|
|
2031
|
-
exports.DeploymentGetConfigContentDeploymentsTtl$outboundSchema = exports.DeploymentGetConfigContentDeploymentsTtl$inboundSchema;
|
|
2032
|
-
/** @internal */
|
|
2033
|
-
exports.DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema = z.object({
|
|
2034
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema,
|
|
2035
|
-
ttl: exports.DeploymentGetConfigContentDeploymentsTtl$inboundSchema.default("5m"),
|
|
2036
|
-
});
|
|
2037
|
-
/** @internal */
|
|
2038
|
-
exports.DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema = z.object({
|
|
2039
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema,
|
|
2040
|
-
ttl: exports.DeploymentGetConfigContentDeploymentsTtl$outboundSchema.default("5m"),
|
|
2041
|
-
});
|
|
2042
|
-
function deploymentGetConfigContentDeploymentsCacheControlToJSON(deploymentGetConfigContentDeploymentsCacheControl) {
|
|
2043
|
-
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema.parse(deploymentGetConfigContentDeploymentsCacheControl));
|
|
2044
|
-
}
|
|
2045
|
-
function deploymentGetConfigContentDeploymentsCacheControlFromJSON(jsonString) {
|
|
2046
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsCacheControl' from JSON`);
|
|
2047
|
-
}
|
|
2048
|
-
/** @internal */
|
|
2049
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema = z.object({
|
|
2050
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
2051
|
-
text: z.string(),
|
|
2052
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema).optional(),
|
|
2053
|
-
}).transform((v) => {
|
|
2054
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2055
|
-
"cache_control": "cacheControl",
|
|
2056
|
-
});
|
|
2057
|
-
});
|
|
2058
|
-
/** @internal */
|
|
2059
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema = z.object({
|
|
2060
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
2061
|
-
text: z.string(),
|
|
2062
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema).optional(),
|
|
2063
|
-
}).transform((v) => {
|
|
2064
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2065
|
-
cacheControl: "cache_control",
|
|
2066
|
-
});
|
|
2067
|
-
});
|
|
2068
|
-
function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2) {
|
|
2069
|
-
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
2070
|
-
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2));
|
|
2071
|
-
}
|
|
2072
|
-
function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON(jsonString) {
|
|
2073
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
2074
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2' from JSON`);
|
|
2075
|
-
}
|
|
2076
|
-
/** @internal */
|
|
2077
1338
|
exports.DeploymentGetConfigMessagesContent$inboundSchema = z.union([
|
|
2078
1339
|
z.string(),
|
|
2079
|
-
z.array(
|
|
1340
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2080
1341
|
]);
|
|
2081
1342
|
/** @internal */
|
|
2082
1343
|
exports.DeploymentGetConfigMessagesContent$outboundSchema = z.union([
|
|
2083
1344
|
z.string(),
|
|
2084
|
-
z.array(
|
|
1345
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2085
1346
|
]);
|
|
2086
1347
|
function deploymentGetConfigMessagesContentToJSON(deploymentGetConfigMessagesContent) {
|
|
2087
1348
|
return JSON.stringify(exports.DeploymentGetConfigMessagesContent$outboundSchema.parse(deploymentGetConfigMessagesContent));
|
|
@@ -2094,7 +1355,7 @@ exports.MessagesDeveloperMessage$inboundSchema = z.object({
|
|
|
2094
1355
|
role: z.literal("developer"),
|
|
2095
1356
|
content: z.union([
|
|
2096
1357
|
z.string(),
|
|
2097
|
-
z.array(
|
|
1358
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2098
1359
|
]),
|
|
2099
1360
|
name: z.string().optional(),
|
|
2100
1361
|
});
|
|
@@ -2103,7 +1364,7 @@ exports.MessagesDeveloperMessage$outboundSchema = z.object({
|
|
|
2103
1364
|
role: z.literal("developer"),
|
|
2104
1365
|
content: z.union([
|
|
2105
1366
|
z.string(),
|
|
2106
|
-
z.array(
|
|
1367
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2107
1368
|
]),
|
|
2108
1369
|
name: z.string().optional(),
|
|
2109
1370
|
});
|
|
@@ -2114,71 +1375,14 @@ function messagesDeveloperMessageFromJSON(jsonString) {
|
|
|
2114
1375
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessagesDeveloperMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessagesDeveloperMessage' from JSON`);
|
|
2115
1376
|
}
|
|
2116
1377
|
/** @internal */
|
|
2117
|
-
exports.DeploymentGetConfigContentDeploymentsRequestType$inboundSchema = z
|
|
2118
|
-
.nativeEnum(exports.DeploymentGetConfigContentDeploymentsRequestType);
|
|
2119
|
-
/** @internal */
|
|
2120
|
-
exports.DeploymentGetConfigContentDeploymentsRequestType$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestType$inboundSchema;
|
|
2121
|
-
/** @internal */
|
|
2122
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType);
|
|
2123
|
-
/** @internal */
|
|
2124
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema = exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema;
|
|
2125
|
-
/** @internal */
|
|
2126
|
-
exports.DeploymentGetConfigContentTtl$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigContentTtl);
|
|
2127
|
-
/** @internal */
|
|
2128
|
-
exports.DeploymentGetConfigContentTtl$outboundSchema = exports.DeploymentGetConfigContentTtl$inboundSchema;
|
|
2129
|
-
/** @internal */
|
|
2130
|
-
exports.DeploymentGetConfigContentCacheControl$inboundSchema = z.object({
|
|
2131
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema,
|
|
2132
|
-
ttl: exports.DeploymentGetConfigContentTtl$inboundSchema.default("5m"),
|
|
2133
|
-
});
|
|
2134
|
-
/** @internal */
|
|
2135
|
-
exports.DeploymentGetConfigContentCacheControl$outboundSchema = z.object({
|
|
2136
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema,
|
|
2137
|
-
ttl: exports.DeploymentGetConfigContentTtl$outboundSchema.default("5m"),
|
|
2138
|
-
});
|
|
2139
|
-
function deploymentGetConfigContentCacheControlToJSON(deploymentGetConfigContentCacheControl) {
|
|
2140
|
-
return JSON.stringify(exports.DeploymentGetConfigContentCacheControl$outboundSchema.parse(deploymentGetConfigContentCacheControl));
|
|
2141
|
-
}
|
|
2142
|
-
function deploymentGetConfigContentCacheControlFromJSON(jsonString) {
|
|
2143
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentCacheControl' from JSON`);
|
|
2144
|
-
}
|
|
2145
|
-
/** @internal */
|
|
2146
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema = z.object({
|
|
2147
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestType$inboundSchema,
|
|
2148
|
-
text: z.string(),
|
|
2149
|
-
cache_control: z.lazy(() => exports.DeploymentGetConfigContentCacheControl$inboundSchema).optional(),
|
|
2150
|
-
}).transform((v) => {
|
|
2151
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2152
|
-
"cache_control": "cacheControl",
|
|
2153
|
-
});
|
|
2154
|
-
});
|
|
2155
|
-
/** @internal */
|
|
2156
|
-
exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema = z.object({
|
|
2157
|
-
type: exports.DeploymentGetConfigContentDeploymentsRequestType$outboundSchema,
|
|
2158
|
-
text: z.string(),
|
|
2159
|
-
cacheControl: z.lazy(() => exports.DeploymentGetConfigContentCacheControl$outboundSchema).optional(),
|
|
2160
|
-
}).transform((v) => {
|
|
2161
|
-
return (0, primitives_js_1.remap)(v, {
|
|
2162
|
-
cacheControl: "cache_control",
|
|
2163
|
-
});
|
|
2164
|
-
});
|
|
2165
|
-
function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(deploymentGetConfigContentDeploymentsRequestRequestBody2) {
|
|
2166
|
-
return JSON.stringify(exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
2167
|
-
.parse(deploymentGetConfigContentDeploymentsRequestRequestBody2));
|
|
2168
|
-
}
|
|
2169
|
-
function deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON(jsonString) {
|
|
2170
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
|
|
2171
|
-
.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBody2' from JSON`);
|
|
2172
|
-
}
|
|
2173
|
-
/** @internal */
|
|
2174
1378
|
exports.MessagesContent$inboundSchema = z.union([
|
|
2175
1379
|
z.string(),
|
|
2176
|
-
z.array(
|
|
1380
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2177
1381
|
]);
|
|
2178
1382
|
/** @internal */
|
|
2179
1383
|
exports.MessagesContent$outboundSchema = z.union([
|
|
2180
1384
|
z.string(),
|
|
2181
|
-
z.array(
|
|
1385
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2182
1386
|
]);
|
|
2183
1387
|
function messagesContentToJSON(messagesContent) {
|
|
2184
1388
|
return JSON.stringify(exports.MessagesContent$outboundSchema.parse(messagesContent));
|
|
@@ -2191,7 +1395,7 @@ exports.MessagesSystemMessage$inboundSchema = z.object({
|
|
|
2191
1395
|
role: z.literal("system"),
|
|
2192
1396
|
content: z.union([
|
|
2193
1397
|
z.string(),
|
|
2194
|
-
z.array(
|
|
1398
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2195
1399
|
]),
|
|
2196
1400
|
name: z.string().optional(),
|
|
2197
1401
|
});
|
|
@@ -2200,7 +1404,7 @@ exports.MessagesSystemMessage$outboundSchema = z.object({
|
|
|
2200
1404
|
role: z.literal("system"),
|
|
2201
1405
|
content: z.union([
|
|
2202
1406
|
z.string(),
|
|
2203
|
-
z.array(
|
|
1407
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2204
1408
|
]),
|
|
2205
1409
|
name: z.string().optional(),
|
|
2206
1410
|
});
|
|
@@ -2211,7 +1415,7 @@ function messagesSystemMessageFromJSON(jsonString) {
|
|
|
2211
1415
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.MessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MessagesSystemMessage' from JSON`);
|
|
2212
1416
|
}
|
|
2213
1417
|
/** @internal */
|
|
2214
|
-
exports.
|
|
1418
|
+
exports.DeploymentGetConfigMessages$inboundSchema = z.union([
|
|
2215
1419
|
z.lazy(() => exports.MessagesSystemMessage$inboundSchema),
|
|
2216
1420
|
z.lazy(() => exports.MessagesDeveloperMessage$inboundSchema),
|
|
2217
1421
|
z.lazy(() => exports.MessagesUserMessage$inboundSchema),
|
|
@@ -2219,18 +1423,18 @@ exports.Messages$inboundSchema = z.union([
|
|
|
2219
1423
|
z.lazy(() => exports.MessagesToolMessage$inboundSchema),
|
|
2220
1424
|
]);
|
|
2221
1425
|
/** @internal */
|
|
2222
|
-
exports.
|
|
1426
|
+
exports.DeploymentGetConfigMessages$outboundSchema = z.union([
|
|
2223
1427
|
z.lazy(() => exports.MessagesSystemMessage$outboundSchema),
|
|
2224
1428
|
z.lazy(() => exports.MessagesDeveloperMessage$outboundSchema),
|
|
2225
1429
|
z.lazy(() => exports.MessagesUserMessage$outboundSchema),
|
|
2226
1430
|
z.lazy(() => exports.MessagesAssistantMessage$outboundSchema),
|
|
2227
1431
|
z.lazy(() => exports.MessagesToolMessage$outboundSchema),
|
|
2228
1432
|
]);
|
|
2229
|
-
function
|
|
2230
|
-
return JSON.stringify(exports.
|
|
1433
|
+
function deploymentGetConfigMessagesToJSON(deploymentGetConfigMessages) {
|
|
1434
|
+
return JSON.stringify(exports.DeploymentGetConfigMessages$outboundSchema.parse(deploymentGetConfigMessages));
|
|
2231
1435
|
}
|
|
2232
|
-
function
|
|
2233
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
1436
|
+
function deploymentGetConfigMessagesFromJSON(jsonString) {
|
|
1437
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigMessages' from JSON`);
|
|
2234
1438
|
}
|
|
2235
1439
|
/** @internal */
|
|
2236
1440
|
exports.Metadata$inboundSchema = z.object({
|
|
@@ -3253,30 +2457,30 @@ function deploymentGetConfig22FromJSON(jsonString) {
|
|
|
3253
2457
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig22' from JSON`);
|
|
3254
2458
|
}
|
|
3255
2459
|
/** @internal */
|
|
3256
|
-
exports.
|
|
2460
|
+
exports.DeploymentGetConfig21$inboundSchema = z.object({
|
|
3257
2461
|
type: z.literal("text"),
|
|
3258
2462
|
text: z.string(),
|
|
3259
2463
|
});
|
|
3260
2464
|
/** @internal */
|
|
3261
|
-
exports.
|
|
2465
|
+
exports.DeploymentGetConfig21$outboundSchema = z.object({
|
|
3262
2466
|
type: z.literal("text"),
|
|
3263
2467
|
text: z.string(),
|
|
3264
2468
|
});
|
|
3265
|
-
function
|
|
3266
|
-
return JSON.stringify(exports.
|
|
2469
|
+
function deploymentGetConfig21ToJSON(deploymentGetConfig21) {
|
|
2470
|
+
return JSON.stringify(exports.DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21));
|
|
3267
2471
|
}
|
|
3268
|
-
function
|
|
3269
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2472
|
+
function deploymentGetConfig21FromJSON(jsonString) {
|
|
2473
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfig21' from JSON`);
|
|
3270
2474
|
}
|
|
3271
2475
|
/** @internal */
|
|
3272
2476
|
exports.DeploymentGetConfigContentDeploymentsResponse2$inboundSchema = z.union([
|
|
3273
|
-
z.lazy(() => exports.
|
|
2477
|
+
z.lazy(() => exports.DeploymentGetConfig21$inboundSchema),
|
|
3274
2478
|
z.lazy(() => exports.DeploymentGetConfig22$inboundSchema),
|
|
3275
2479
|
z.lazy(() => exports.DeploymentGetConfig23$inboundSchema),
|
|
3276
2480
|
]);
|
|
3277
2481
|
/** @internal */
|
|
3278
2482
|
exports.DeploymentGetConfigContentDeploymentsResponse2$outboundSchema = z.union([
|
|
3279
|
-
z.lazy(() => exports.
|
|
2483
|
+
z.lazy(() => exports.DeploymentGetConfig21$outboundSchema),
|
|
3280
2484
|
z.lazy(() => exports.DeploymentGetConfig22$outboundSchema),
|
|
3281
2485
|
z.lazy(() => exports.DeploymentGetConfig23$outboundSchema),
|
|
3282
2486
|
]);
|
|
@@ -3290,7 +2494,7 @@ function deploymentGetConfigContentDeploymentsResponse2FromJSON(jsonString) {
|
|
|
3290
2494
|
exports.DeploymentGetConfigContent$inboundSchema = z.union([
|
|
3291
2495
|
z.string(),
|
|
3292
2496
|
z.array(z.union([
|
|
3293
|
-
z.lazy(() => exports.
|
|
2497
|
+
z.lazy(() => exports.DeploymentGetConfig21$inboundSchema),
|
|
3294
2498
|
z.lazy(() => exports.DeploymentGetConfig22$inboundSchema),
|
|
3295
2499
|
z.lazy(() => exports.DeploymentGetConfig23$inboundSchema),
|
|
3296
2500
|
])),
|
|
@@ -3299,7 +2503,7 @@ exports.DeploymentGetConfigContent$inboundSchema = z.union([
|
|
|
3299
2503
|
exports.DeploymentGetConfigContent$outboundSchema = z.union([
|
|
3300
2504
|
z.string(),
|
|
3301
2505
|
z.array(z.union([
|
|
3302
|
-
z.lazy(() => exports.
|
|
2506
|
+
z.lazy(() => exports.DeploymentGetConfig21$outboundSchema),
|
|
3303
2507
|
z.lazy(() => exports.DeploymentGetConfig22$outboundSchema),
|
|
3304
2508
|
z.lazy(() => exports.DeploymentGetConfig23$outboundSchema),
|
|
3305
2509
|
])),
|
|
@@ -3352,19 +2556,19 @@ function deploymentGetConfigToolCallsFromJSON(jsonString) {
|
|
|
3352
2556
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigToolCalls' from JSON`);
|
|
3353
2557
|
}
|
|
3354
2558
|
/** @internal */
|
|
3355
|
-
exports.
|
|
2559
|
+
exports.DeploymentGetConfigDeploymentsMessages$inboundSchema = z.object({
|
|
3356
2560
|
role: exports.DeploymentGetConfigRole$inboundSchema,
|
|
3357
2561
|
content: z.nullable(z.union([
|
|
3358
2562
|
z.string(),
|
|
3359
2563
|
z.array(z.union([
|
|
3360
|
-
z.lazy(() => exports.
|
|
2564
|
+
z.lazy(() => exports.DeploymentGetConfig21$inboundSchema),
|
|
3361
2565
|
z.lazy(() => exports.DeploymentGetConfig22$inboundSchema),
|
|
3362
2566
|
z.lazy(() => exports.DeploymentGetConfig23$inboundSchema),
|
|
3363
2567
|
])),
|
|
3364
2568
|
])),
|
|
3365
2569
|
tool_calls: z.array(z.lazy(() => exports.DeploymentGetConfigToolCalls$inboundSchema))
|
|
3366
2570
|
.optional(),
|
|
3367
|
-
tool_call_id: z.string().optional(),
|
|
2571
|
+
tool_call_id: z.nullable(z.string()).optional(),
|
|
3368
2572
|
}).transform((v) => {
|
|
3369
2573
|
return (0, primitives_js_1.remap)(v, {
|
|
3370
2574
|
"tool_calls": "toolCalls",
|
|
@@ -3372,30 +2576,30 @@ exports.DeploymentGetConfigMessages$inboundSchema = z.object({
|
|
|
3372
2576
|
});
|
|
3373
2577
|
});
|
|
3374
2578
|
/** @internal */
|
|
3375
|
-
exports.
|
|
2579
|
+
exports.DeploymentGetConfigDeploymentsMessages$outboundSchema = z.object({
|
|
3376
2580
|
role: exports.DeploymentGetConfigRole$outboundSchema,
|
|
3377
2581
|
content: z.nullable(z.union([
|
|
3378
2582
|
z.string(),
|
|
3379
2583
|
z.array(z.union([
|
|
3380
|
-
z.lazy(() => exports.
|
|
2584
|
+
z.lazy(() => exports.DeploymentGetConfig21$outboundSchema),
|
|
3381
2585
|
z.lazy(() => exports.DeploymentGetConfig22$outboundSchema),
|
|
3382
2586
|
z.lazy(() => exports.DeploymentGetConfig23$outboundSchema),
|
|
3383
2587
|
])),
|
|
3384
2588
|
])),
|
|
3385
2589
|
toolCalls: z.array(z.lazy(() => exports.DeploymentGetConfigToolCalls$outboundSchema))
|
|
3386
2590
|
.optional(),
|
|
3387
|
-
toolCallId: z.string().optional(),
|
|
2591
|
+
toolCallId: z.nullable(z.string()).optional(),
|
|
3388
2592
|
}).transform((v) => {
|
|
3389
2593
|
return (0, primitives_js_1.remap)(v, {
|
|
3390
2594
|
toolCalls: "tool_calls",
|
|
3391
2595
|
toolCallId: "tool_call_id",
|
|
3392
2596
|
});
|
|
3393
2597
|
});
|
|
3394
|
-
function
|
|
3395
|
-
return JSON.stringify(exports.
|
|
2598
|
+
function deploymentGetConfigDeploymentsMessagesToJSON(deploymentGetConfigDeploymentsMessages) {
|
|
2599
|
+
return JSON.stringify(exports.DeploymentGetConfigDeploymentsMessages$outboundSchema.parse(deploymentGetConfigDeploymentsMessages));
|
|
3396
2600
|
}
|
|
3397
|
-
function
|
|
3398
|
-
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.
|
|
2601
|
+
function deploymentGetConfigDeploymentsMessagesFromJSON(jsonString) {
|
|
2602
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeploymentGetConfigDeploymentsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`);
|
|
3399
2603
|
}
|
|
3400
2604
|
/** @internal */
|
|
3401
2605
|
exports.DeploymentGetConfigFormat$inboundSchema = z.nativeEnum(exports.DeploymentGetConfigFormat);
|
|
@@ -3665,7 +2869,7 @@ exports.DeploymentGetConfigResponseBody$inboundSchema = z.object({
|
|
|
3665
2869
|
model: z.string(),
|
|
3666
2870
|
type: exports.DeploymentGetConfigType$inboundSchema.optional(),
|
|
3667
2871
|
version: z.string(),
|
|
3668
|
-
messages: z.array(z.lazy(() => exports.
|
|
2872
|
+
messages: z.array(z.lazy(() => exports.DeploymentGetConfigDeploymentsMessages$inboundSchema)),
|
|
3669
2873
|
parameters: z.lazy(() => exports.DeploymentGetConfigParameters$inboundSchema),
|
|
3670
2874
|
tools: z.array(z.lazy(() => exports.DeploymentGetConfigTools$inboundSchema))
|
|
3671
2875
|
.optional(),
|
|
@@ -3677,7 +2881,7 @@ exports.DeploymentGetConfigResponseBody$outboundSchema = z.object({
|
|
|
3677
2881
|
model: z.string(),
|
|
3678
2882
|
type: exports.DeploymentGetConfigType$outboundSchema.optional(),
|
|
3679
2883
|
version: z.string(),
|
|
3680
|
-
messages: z.array(z.lazy(() => exports.
|
|
2884
|
+
messages: z.array(z.lazy(() => exports.DeploymentGetConfigDeploymentsMessages$outboundSchema)),
|
|
3681
2885
|
parameters: z.lazy(() => exports.DeploymentGetConfigParameters$outboundSchema),
|
|
3682
2886
|
tools: z.array(z.lazy(() => exports.DeploymentGetConfigTools$outboundSchema))
|
|
3683
2887
|
.optional(),
|