@orq-ai/node 4.1.0-rc.34 → 4.1.0-rc.36
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
|
@@ -15,94 +15,15 @@ export type DeploymentStreamGlobals = {
|
|
|
15
15
|
contactId?: string | undefined;
|
|
16
16
|
};
|
|
17
17
|
|
|
18
|
-
export
|
|
19
|
-
|
|
20
|
-
Text: "text",
|
|
21
|
-
} as const;
|
|
22
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type =
|
|
23
|
-
ClosedEnum<
|
|
24
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
29
|
-
*/
|
|
30
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
|
|
31
|
-
{
|
|
32
|
-
Ephemeral: "ephemeral",
|
|
33
|
-
} as const;
|
|
34
|
-
/**
|
|
35
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
36
|
-
*/
|
|
37
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
|
|
38
|
-
ClosedEnum<
|
|
39
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
40
|
-
>;
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
44
|
-
*
|
|
45
|
-
* @remarks
|
|
46
|
-
*
|
|
47
|
-
* - `5m`: 5 minutes
|
|
48
|
-
* - `1h`: 1 hour
|
|
49
|
-
*
|
|
50
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
51
|
-
*/
|
|
52
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyTtl = {
|
|
53
|
-
Fivem: "5m",
|
|
54
|
-
Oneh: "1h",
|
|
55
|
-
} as const;
|
|
56
|
-
/**
|
|
57
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
58
|
-
*
|
|
59
|
-
* @remarks
|
|
60
|
-
*
|
|
61
|
-
* - `5m`: 5 minutes
|
|
62
|
-
* - `1h`: 1 hour
|
|
63
|
-
*
|
|
64
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
65
|
-
*/
|
|
66
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyTtl = ClosedEnum<
|
|
67
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyTtl
|
|
68
|
-
>;
|
|
69
|
-
|
|
70
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyCacheControl = {
|
|
71
|
-
/**
|
|
72
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
73
|
-
*/
|
|
74
|
-
type:
|
|
75
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType;
|
|
76
|
-
/**
|
|
77
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
78
|
-
*
|
|
79
|
-
* @remarks
|
|
80
|
-
*
|
|
81
|
-
* - `5m`: 5 minutes
|
|
82
|
-
* - `1h`: 1 hour
|
|
83
|
-
*
|
|
84
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
85
|
-
*/
|
|
86
|
-
ttl?: DeploymentStream2DeploymentsRequestRequestBodyTtl | undefined;
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
export type DeploymentStream2DeploymentsRequest1 = {
|
|
90
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type;
|
|
91
|
-
text: string;
|
|
92
|
-
cacheControl?:
|
|
93
|
-
| DeploymentStream2DeploymentsRequestRequestBodyCacheControl
|
|
94
|
-
| undefined;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2 =
|
|
98
|
-
DeploymentStream2DeploymentsRequest1;
|
|
18
|
+
export type DeploymentStreamContentDeploymentsRequest2 =
|
|
19
|
+
components.TextContentPartSchema;
|
|
99
20
|
|
|
100
21
|
/**
|
|
101
22
|
* The contents of the tool message.
|
|
102
23
|
*/
|
|
103
24
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content =
|
|
104
25
|
| string
|
|
105
|
-
| Array<
|
|
26
|
+
| Array<components.TextContentPartSchema>;
|
|
106
27
|
|
|
107
28
|
/**
|
|
108
29
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -171,7 +92,7 @@ export type PrefixMessagesToolMessage = {
|
|
|
171
92
|
/**
|
|
172
93
|
* The contents of the tool message.
|
|
173
94
|
*/
|
|
174
|
-
content: string | Array<
|
|
95
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
175
96
|
/**
|
|
176
97
|
* Tool call that this message is responding to.
|
|
177
98
|
*/
|
|
@@ -179,75 +100,8 @@ export type PrefixMessagesToolMessage = {
|
|
|
179
100
|
cacheControl?: DeploymentStreamPrefixMessagesCacheControl | undefined;
|
|
180
101
|
};
|
|
181
102
|
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
*/
|
|
185
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type =
|
|
186
|
-
{
|
|
187
|
-
Ephemeral: "ephemeral",
|
|
188
|
-
} as const;
|
|
189
|
-
/**
|
|
190
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
191
|
-
*/
|
|
192
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type =
|
|
193
|
-
ClosedEnum<
|
|
194
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
|
|
195
|
-
>;
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
199
|
-
*
|
|
200
|
-
* @remarks
|
|
201
|
-
*
|
|
202
|
-
* - `5m`: 5 minutes
|
|
203
|
-
* - `1h`: 1 hour
|
|
204
|
-
*
|
|
205
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
206
|
-
*/
|
|
207
|
-
export const DeploymentStream2DeploymentsRequestTtl = {
|
|
208
|
-
Fivem: "5m",
|
|
209
|
-
Oneh: "1h",
|
|
210
|
-
} as const;
|
|
211
|
-
/**
|
|
212
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
213
|
-
*
|
|
214
|
-
* @remarks
|
|
215
|
-
*
|
|
216
|
-
* - `5m`: 5 minutes
|
|
217
|
-
* - `1h`: 1 hour
|
|
218
|
-
*
|
|
219
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
220
|
-
*/
|
|
221
|
-
export type DeploymentStream2DeploymentsRequestTtl = ClosedEnum<
|
|
222
|
-
typeof DeploymentStream2DeploymentsRequestTtl
|
|
223
|
-
>;
|
|
224
|
-
|
|
225
|
-
export type DeploymentStream2DeploymentsRequestCacheControl = {
|
|
226
|
-
/**
|
|
227
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
228
|
-
*/
|
|
229
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type;
|
|
230
|
-
/**
|
|
231
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
232
|
-
*
|
|
233
|
-
* @remarks
|
|
234
|
-
*
|
|
235
|
-
* - `5m`: 5 minutes
|
|
236
|
-
* - `1h`: 1 hour
|
|
237
|
-
*
|
|
238
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
239
|
-
*/
|
|
240
|
-
ttl?: DeploymentStream2DeploymentsRequestTtl | undefined;
|
|
241
|
-
};
|
|
242
|
-
|
|
243
|
-
export type DeploymentStream2Deployments1 = {
|
|
244
|
-
type: "text";
|
|
245
|
-
text: string;
|
|
246
|
-
cacheControl?: DeploymentStream2DeploymentsRequestCacheControl | undefined;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBody2 =
|
|
250
|
-
| DeploymentStream2Deployments1
|
|
103
|
+
export type DeploymentStreamContentDeployments2 =
|
|
104
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
251
105
|
| components.RefusalPartSchema
|
|
252
106
|
| components.ReasoningPartSchema
|
|
253
107
|
| components.RedactedReasoningPartSchema;
|
|
@@ -258,7 +112,7 @@ export type DeploymentStreamContentDeploymentsRequestRequestBody2 =
|
|
|
258
112
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent =
|
|
259
113
|
| string
|
|
260
114
|
| Array<
|
|
261
|
-
|
|
|
115
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
262
116
|
| components.RefusalPartSchema
|
|
263
117
|
| components.ReasoningPartSchema
|
|
264
118
|
| components.RedactedReasoningPartSchema
|
|
@@ -287,7 +141,7 @@ export type DeploymentStreamPrefixMessagesType = ClosedEnum<
|
|
|
287
141
|
typeof DeploymentStreamPrefixMessagesType
|
|
288
142
|
>;
|
|
289
143
|
|
|
290
|
-
export type
|
|
144
|
+
export type DeploymentStreamPrefixMessagesFunction = {
|
|
291
145
|
/**
|
|
292
146
|
* The name of the function to call.
|
|
293
147
|
*/
|
|
@@ -298,7 +152,7 @@ export type PrefixMessagesFunction = {
|
|
|
298
152
|
arguments?: string | undefined;
|
|
299
153
|
};
|
|
300
154
|
|
|
301
|
-
export type
|
|
155
|
+
export type DeploymentStreamPrefixMessagesToolCalls = {
|
|
302
156
|
/**
|
|
303
157
|
* The ID of the tool call.
|
|
304
158
|
*/
|
|
@@ -307,7 +161,7 @@ export type PrefixMessagesToolCalls = {
|
|
|
307
161
|
* The type of the tool. Currently, only `function` is supported.
|
|
308
162
|
*/
|
|
309
163
|
type: DeploymentStreamPrefixMessagesType;
|
|
310
|
-
function:
|
|
164
|
+
function: DeploymentStreamPrefixMessagesFunction;
|
|
311
165
|
/**
|
|
312
166
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
313
167
|
*/
|
|
@@ -321,7 +175,7 @@ export type PrefixMessagesAssistantMessage = {
|
|
|
321
175
|
content?:
|
|
322
176
|
| string
|
|
323
177
|
| Array<
|
|
324
|
-
|
|
|
178
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
325
179
|
| components.RefusalPartSchema
|
|
326
180
|
| components.ReasoningPartSchema
|
|
327
181
|
| components.RedactedReasoningPartSchema
|
|
@@ -347,78 +201,7 @@ export type PrefixMessagesAssistantMessage = {
|
|
|
347
201
|
/**
|
|
348
202
|
* The tool calls generated by the model, such as function calls.
|
|
349
203
|
*/
|
|
350
|
-
toolCalls?: Array<
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
355
|
-
*/
|
|
356
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyType = {
|
|
357
|
-
Ephemeral: "ephemeral",
|
|
358
|
-
} as const;
|
|
359
|
-
/**
|
|
360
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
361
|
-
*/
|
|
362
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
363
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyType
|
|
364
|
-
>;
|
|
365
|
-
|
|
366
|
-
/**
|
|
367
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
368
|
-
*
|
|
369
|
-
* @remarks
|
|
370
|
-
*
|
|
371
|
-
* - `5m`: 5 minutes
|
|
372
|
-
* - `1h`: 1 hour
|
|
373
|
-
*
|
|
374
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
375
|
-
*/
|
|
376
|
-
export const DeploymentStream2DeploymentsTtl = {
|
|
377
|
-
Fivem: "5m",
|
|
378
|
-
Oneh: "1h",
|
|
379
|
-
} as const;
|
|
380
|
-
/**
|
|
381
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
382
|
-
*
|
|
383
|
-
* @remarks
|
|
384
|
-
*
|
|
385
|
-
* - `5m`: 5 minutes
|
|
386
|
-
* - `1h`: 1 hour
|
|
387
|
-
*
|
|
388
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
389
|
-
*/
|
|
390
|
-
export type DeploymentStream2DeploymentsTtl = ClosedEnum<
|
|
391
|
-
typeof DeploymentStream2DeploymentsTtl
|
|
392
|
-
>;
|
|
393
|
-
|
|
394
|
-
export type DeploymentStream2DeploymentsCacheControl = {
|
|
395
|
-
/**
|
|
396
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
397
|
-
*/
|
|
398
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyType;
|
|
399
|
-
/**
|
|
400
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
401
|
-
*
|
|
402
|
-
* @remarks
|
|
403
|
-
*
|
|
404
|
-
* - `5m`: 5 minutes
|
|
405
|
-
* - `1h`: 1 hour
|
|
406
|
-
*
|
|
407
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
408
|
-
*/
|
|
409
|
-
ttl?: DeploymentStream2DeploymentsTtl | undefined;
|
|
410
|
-
};
|
|
411
|
-
|
|
412
|
-
export type DeploymentStream24 = {
|
|
413
|
-
/**
|
|
414
|
-
* The type of the content part. Always `file`.
|
|
415
|
-
*/
|
|
416
|
-
type: "file";
|
|
417
|
-
cacheControl?: DeploymentStream2DeploymentsCacheControl | undefined;
|
|
418
|
-
/**
|
|
419
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
420
|
-
*/
|
|
421
|
-
file: components.FileContentPartSchema;
|
|
204
|
+
toolCalls?: Array<DeploymentStreamPrefixMessagesToolCalls> | undefined;
|
|
422
205
|
};
|
|
423
206
|
|
|
424
207
|
/**
|
|
@@ -478,14 +261,20 @@ export type DeploymentStream2CacheControl = {
|
|
|
478
261
|
ttl?: DeploymentStream2Ttl | undefined;
|
|
479
262
|
};
|
|
480
263
|
|
|
481
|
-
export type
|
|
482
|
-
|
|
483
|
-
|
|
264
|
+
export type DeploymentStream24 = {
|
|
265
|
+
/**
|
|
266
|
+
* The type of the content part. Always `file`.
|
|
267
|
+
*/
|
|
268
|
+
type: "file";
|
|
484
269
|
cacheControl?: DeploymentStream2CacheControl | undefined;
|
|
270
|
+
/**
|
|
271
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
272
|
+
*/
|
|
273
|
+
file: components.FileContentPartSchema;
|
|
485
274
|
};
|
|
486
275
|
|
|
487
|
-
export type
|
|
488
|
-
|
|
|
276
|
+
export type DeploymentStreamContent2 =
|
|
277
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
489
278
|
| components.ImageContentPartSchema
|
|
490
279
|
| components.AudioContentPartSchema
|
|
491
280
|
| DeploymentStream24;
|
|
@@ -496,7 +285,7 @@ export type DeploymentStreamContentDeploymentsRequest2 =
|
|
|
496
285
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestContent =
|
|
497
286
|
| string
|
|
498
287
|
| Array<
|
|
499
|
-
|
|
|
288
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
500
289
|
| components.ImageContentPartSchema
|
|
501
290
|
| components.AudioContentPartSchema
|
|
502
291
|
| DeploymentStream24
|
|
@@ -517,31 +306,89 @@ export type PrefixMessagesUserMessage = {
|
|
|
517
306
|
content:
|
|
518
307
|
| string
|
|
519
308
|
| Array<
|
|
520
|
-
|
|
|
309
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
521
310
|
| components.ImageContentPartSchema
|
|
522
311
|
| components.AudioContentPartSchema
|
|
523
312
|
| DeploymentStream24
|
|
524
313
|
>;
|
|
525
314
|
};
|
|
526
315
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
export type
|
|
531
|
-
|
|
532
|
-
>;
|
|
316
|
+
/**
|
|
317
|
+
* The contents of the developer message.
|
|
318
|
+
*/
|
|
319
|
+
export type DeploymentStreamPrefixMessagesDeploymentsContent =
|
|
320
|
+
| string
|
|
321
|
+
| Array<components.TextContentPartSchema>;
|
|
322
|
+
|
|
323
|
+
export type PrefixMessagesDeveloperMessage = {
|
|
324
|
+
/**
|
|
325
|
+
* The role of the messages author, in this case `developer`.
|
|
326
|
+
*/
|
|
327
|
+
role: "developer";
|
|
328
|
+
/**
|
|
329
|
+
* The contents of the developer message.
|
|
330
|
+
*/
|
|
331
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
332
|
+
/**
|
|
333
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
334
|
+
*/
|
|
335
|
+
name?: string | undefined;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* The contents of the system message.
|
|
340
|
+
*/
|
|
341
|
+
export type DeploymentStreamPrefixMessagesContent =
|
|
342
|
+
| string
|
|
343
|
+
| Array<components.TextContentPartSchema>;
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
347
|
+
*/
|
|
348
|
+
export type PrefixMessagesSystemMessage = {
|
|
349
|
+
/**
|
|
350
|
+
* The role of the messages author, in this case `system`.
|
|
351
|
+
*/
|
|
352
|
+
role: "system";
|
|
353
|
+
/**
|
|
354
|
+
* The contents of the system message.
|
|
355
|
+
*/
|
|
356
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
357
|
+
/**
|
|
358
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
359
|
+
*/
|
|
360
|
+
name?: string | undefined;
|
|
361
|
+
};
|
|
362
|
+
|
|
363
|
+
export type DeploymentStreamPrefixMessages =
|
|
364
|
+
| PrefixMessagesSystemMessage
|
|
365
|
+
| PrefixMessagesDeveloperMessage
|
|
366
|
+
| PrefixMessagesUserMessage
|
|
367
|
+
| PrefixMessagesAssistantMessage
|
|
368
|
+
| PrefixMessagesToolMessage;
|
|
369
|
+
|
|
370
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages52 =
|
|
371
|
+
components.TextContentPartSchema;
|
|
372
|
+
|
|
373
|
+
/**
|
|
374
|
+
* The contents of the tool message.
|
|
375
|
+
*/
|
|
376
|
+
export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Content =
|
|
377
|
+
| string
|
|
378
|
+
| Array<components.TextContentPartSchema>;
|
|
533
379
|
|
|
534
380
|
/**
|
|
535
381
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
536
382
|
*/
|
|
537
|
-
export const
|
|
383
|
+
export const DeploymentStreamMessagesDeploymentsType = {
|
|
538
384
|
Ephemeral: "ephemeral",
|
|
539
385
|
} as const;
|
|
540
386
|
/**
|
|
541
387
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
542
388
|
*/
|
|
543
|
-
export type
|
|
544
|
-
|
|
389
|
+
export type DeploymentStreamMessagesDeploymentsType = ClosedEnum<
|
|
390
|
+
typeof DeploymentStreamMessagesDeploymentsType
|
|
391
|
+
>;
|
|
545
392
|
|
|
546
393
|
/**
|
|
547
394
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -553,7 +400,7 @@ export type DeploymentStreamContentDeploymentsRequestRequestBodyType =
|
|
|
553
400
|
*
|
|
554
401
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
555
402
|
*/
|
|
556
|
-
export const
|
|
403
|
+
export const DeploymentStreamMessagesTtl = {
|
|
557
404
|
Fivem: "5m",
|
|
558
405
|
Oneh: "1h",
|
|
559
406
|
} as const;
|
|
@@ -567,291 +414,11 @@ export const DeploymentStreamContentDeploymentsTtl = {
|
|
|
567
414
|
*
|
|
568
415
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
569
416
|
*/
|
|
570
|
-
export type
|
|
571
|
-
typeof
|
|
417
|
+
export type DeploymentStreamMessagesTtl = ClosedEnum<
|
|
418
|
+
typeof DeploymentStreamMessagesTtl
|
|
572
419
|
>;
|
|
573
420
|
|
|
574
|
-
export type
|
|
575
|
-
/**
|
|
576
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
577
|
-
*/
|
|
578
|
-
type: DeploymentStreamContentDeploymentsRequestRequestBodyType;
|
|
579
|
-
/**
|
|
580
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
581
|
-
*
|
|
582
|
-
* @remarks
|
|
583
|
-
*
|
|
584
|
-
* - `5m`: 5 minutes
|
|
585
|
-
* - `1h`: 1 hour
|
|
586
|
-
*
|
|
587
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
588
|
-
*/
|
|
589
|
-
ttl?: DeploymentStreamContentDeploymentsTtl | undefined;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
export type DeploymentStreamContentDeployments2 = {
|
|
593
|
-
type: DeploymentStreamContentDeploymentsRequestType;
|
|
594
|
-
text: string;
|
|
595
|
-
cacheControl?: DeploymentStreamContentDeploymentsCacheControl | undefined;
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* The contents of the developer message.
|
|
600
|
-
*/
|
|
601
|
-
export type DeploymentStreamPrefixMessagesDeploymentsContent =
|
|
602
|
-
| string
|
|
603
|
-
| Array<DeploymentStreamContentDeployments2>;
|
|
604
|
-
|
|
605
|
-
export type PrefixMessagesDeveloperMessage = {
|
|
606
|
-
/**
|
|
607
|
-
* The role of the messages author, in this case `developer`.
|
|
608
|
-
*/
|
|
609
|
-
role: "developer";
|
|
610
|
-
/**
|
|
611
|
-
* The contents of the developer message.
|
|
612
|
-
*/
|
|
613
|
-
content: string | Array<DeploymentStreamContentDeployments2>;
|
|
614
|
-
/**
|
|
615
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
616
|
-
*/
|
|
617
|
-
name?: string | undefined;
|
|
618
|
-
};
|
|
619
|
-
|
|
620
|
-
export const DeploymentStreamContentType = {
|
|
621
|
-
Text: "text",
|
|
622
|
-
} as const;
|
|
623
|
-
export type DeploymentStreamContentType = ClosedEnum<
|
|
624
|
-
typeof DeploymentStreamContentType
|
|
625
|
-
>;
|
|
626
|
-
|
|
627
|
-
/**
|
|
628
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
629
|
-
*/
|
|
630
|
-
export const DeploymentStreamContentDeploymentsType = {
|
|
631
|
-
Ephemeral: "ephemeral",
|
|
632
|
-
} as const;
|
|
633
|
-
/**
|
|
634
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
635
|
-
*/
|
|
636
|
-
export type DeploymentStreamContentDeploymentsType = ClosedEnum<
|
|
637
|
-
typeof DeploymentStreamContentDeploymentsType
|
|
638
|
-
>;
|
|
639
|
-
|
|
640
|
-
/**
|
|
641
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
642
|
-
*
|
|
643
|
-
* @remarks
|
|
644
|
-
*
|
|
645
|
-
* - `5m`: 5 minutes
|
|
646
|
-
* - `1h`: 1 hour
|
|
647
|
-
*
|
|
648
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
649
|
-
*/
|
|
650
|
-
export const DeploymentStreamContentTtl = {
|
|
651
|
-
Fivem: "5m",
|
|
652
|
-
Oneh: "1h",
|
|
653
|
-
} as const;
|
|
654
|
-
/**
|
|
655
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
656
|
-
*
|
|
657
|
-
* @remarks
|
|
658
|
-
*
|
|
659
|
-
* - `5m`: 5 minutes
|
|
660
|
-
* - `1h`: 1 hour
|
|
661
|
-
*
|
|
662
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
663
|
-
*/
|
|
664
|
-
export type DeploymentStreamContentTtl = ClosedEnum<
|
|
665
|
-
typeof DeploymentStreamContentTtl
|
|
666
|
-
>;
|
|
667
|
-
|
|
668
|
-
export type DeploymentStreamContentCacheControl = {
|
|
669
|
-
/**
|
|
670
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
671
|
-
*/
|
|
672
|
-
type: DeploymentStreamContentDeploymentsType;
|
|
673
|
-
/**
|
|
674
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
675
|
-
*
|
|
676
|
-
* @remarks
|
|
677
|
-
*
|
|
678
|
-
* - `5m`: 5 minutes
|
|
679
|
-
* - `1h`: 1 hour
|
|
680
|
-
*
|
|
681
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
682
|
-
*/
|
|
683
|
-
ttl?: DeploymentStreamContentTtl | undefined;
|
|
684
|
-
};
|
|
685
|
-
|
|
686
|
-
export type DeploymentStreamContent2 = {
|
|
687
|
-
type: DeploymentStreamContentType;
|
|
688
|
-
text: string;
|
|
689
|
-
cacheControl?: DeploymentStreamContentCacheControl | undefined;
|
|
690
|
-
};
|
|
691
|
-
|
|
692
|
-
/**
|
|
693
|
-
* The contents of the system message.
|
|
694
|
-
*/
|
|
695
|
-
export type DeploymentStreamPrefixMessagesContent =
|
|
696
|
-
| string
|
|
697
|
-
| Array<DeploymentStreamContent2>;
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
701
|
-
*/
|
|
702
|
-
export type PrefixMessagesSystemMessage = {
|
|
703
|
-
/**
|
|
704
|
-
* The role of the messages author, in this case `system`.
|
|
705
|
-
*/
|
|
706
|
-
role: "system";
|
|
707
|
-
/**
|
|
708
|
-
* The contents of the system message.
|
|
709
|
-
*/
|
|
710
|
-
content: string | Array<DeploymentStreamContent2>;
|
|
711
|
-
/**
|
|
712
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
713
|
-
*/
|
|
714
|
-
name?: string | undefined;
|
|
715
|
-
};
|
|
716
|
-
|
|
717
|
-
export type DeploymentStreamPrefixMessages =
|
|
718
|
-
| PrefixMessagesSystemMessage
|
|
719
|
-
| PrefixMessagesDeveloperMessage
|
|
720
|
-
| PrefixMessagesUserMessage
|
|
721
|
-
| PrefixMessagesAssistantMessage
|
|
722
|
-
| PrefixMessagesToolMessage;
|
|
723
|
-
|
|
724
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Type = {
|
|
725
|
-
Text: "text",
|
|
726
|
-
} as const;
|
|
727
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages5Type =
|
|
728
|
-
ClosedEnum<
|
|
729
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Type
|
|
730
|
-
>;
|
|
731
|
-
|
|
732
|
-
/**
|
|
733
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
734
|
-
*/
|
|
735
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType =
|
|
736
|
-
{
|
|
737
|
-
Ephemeral: "ephemeral",
|
|
738
|
-
} as const;
|
|
739
|
-
/**
|
|
740
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
741
|
-
*/
|
|
742
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType =
|
|
743
|
-
ClosedEnum<
|
|
744
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType
|
|
745
|
-
>;
|
|
746
|
-
|
|
747
|
-
/**
|
|
748
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
749
|
-
*
|
|
750
|
-
* @remarks
|
|
751
|
-
*
|
|
752
|
-
* - `5m`: 5 minutes
|
|
753
|
-
* - `1h`: 1 hour
|
|
754
|
-
*
|
|
755
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
756
|
-
*/
|
|
757
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl = {
|
|
758
|
-
Fivem: "5m",
|
|
759
|
-
Oneh: "1h",
|
|
760
|
-
} as const;
|
|
761
|
-
/**
|
|
762
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
763
|
-
*
|
|
764
|
-
* @remarks
|
|
765
|
-
*
|
|
766
|
-
* - `5m`: 5 minutes
|
|
767
|
-
* - `1h`: 1 hour
|
|
768
|
-
*
|
|
769
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
770
|
-
*/
|
|
771
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl =
|
|
772
|
-
ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl>;
|
|
773
|
-
|
|
774
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl =
|
|
775
|
-
{
|
|
776
|
-
/**
|
|
777
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
778
|
-
*/
|
|
779
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType;
|
|
780
|
-
/**
|
|
781
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
782
|
-
*
|
|
783
|
-
* @remarks
|
|
784
|
-
*
|
|
785
|
-
* - `5m`: 5 minutes
|
|
786
|
-
* - `1h`: 1 hour
|
|
787
|
-
*
|
|
788
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
789
|
-
*/
|
|
790
|
-
ttl?:
|
|
791
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl
|
|
792
|
-
| undefined;
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages51 = {
|
|
796
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyMessages5Type;
|
|
797
|
-
text: string;
|
|
798
|
-
cacheControl?:
|
|
799
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl
|
|
800
|
-
| undefined;
|
|
801
|
-
};
|
|
802
|
-
|
|
803
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages52 =
|
|
804
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51;
|
|
805
|
-
|
|
806
|
-
/**
|
|
807
|
-
* The contents of the tool message.
|
|
808
|
-
*/
|
|
809
|
-
export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Content =
|
|
810
|
-
| string
|
|
811
|
-
| Array<DeploymentStream2DeploymentsRequestRequestBodyMessages51>;
|
|
812
|
-
|
|
813
|
-
/**
|
|
814
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
815
|
-
*/
|
|
816
|
-
export const DeploymentStreamMessagesDeploymentsType = {
|
|
817
|
-
Ephemeral: "ephemeral",
|
|
818
|
-
} as const;
|
|
819
|
-
/**
|
|
820
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
821
|
-
*/
|
|
822
|
-
export type DeploymentStreamMessagesDeploymentsType = ClosedEnum<
|
|
823
|
-
typeof DeploymentStreamMessagesDeploymentsType
|
|
824
|
-
>;
|
|
825
|
-
|
|
826
|
-
/**
|
|
827
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
828
|
-
*
|
|
829
|
-
* @remarks
|
|
830
|
-
*
|
|
831
|
-
* - `5m`: 5 minutes
|
|
832
|
-
* - `1h`: 1 hour
|
|
833
|
-
*
|
|
834
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
835
|
-
*/
|
|
836
|
-
export const DeploymentStreamMessagesTtl = {
|
|
837
|
-
Fivem: "5m",
|
|
838
|
-
Oneh: "1h",
|
|
839
|
-
} as const;
|
|
840
|
-
/**
|
|
841
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
842
|
-
*
|
|
843
|
-
* @remarks
|
|
844
|
-
*
|
|
845
|
-
* - `5m`: 5 minutes
|
|
846
|
-
* - `1h`: 1 hour
|
|
847
|
-
*
|
|
848
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
849
|
-
*/
|
|
850
|
-
export type DeploymentStreamMessagesTtl = ClosedEnum<
|
|
851
|
-
typeof DeploymentStreamMessagesTtl
|
|
852
|
-
>;
|
|
853
|
-
|
|
854
|
-
export type DeploymentStreamMessagesCacheControl = {
|
|
421
|
+
export type DeploymentStreamMessagesCacheControl = {
|
|
855
422
|
/**
|
|
856
423
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
857
424
|
*/
|
|
@@ -877,9 +444,7 @@ export type DeploymentStreamMessagesToolMessage = {
|
|
|
877
444
|
/**
|
|
878
445
|
* The contents of the tool message.
|
|
879
446
|
*/
|
|
880
|
-
content:
|
|
881
|
-
| string
|
|
882
|
-
| Array<DeploymentStream2DeploymentsRequestRequestBodyMessages51>;
|
|
447
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
883
448
|
/**
|
|
884
449
|
* Tool call that this message is responding to.
|
|
885
450
|
*/
|
|
@@ -887,79 +452,8 @@ export type DeploymentStreamMessagesToolMessage = {
|
|
|
887
452
|
cacheControl?: DeploymentStreamMessagesCacheControl | undefined;
|
|
888
453
|
};
|
|
889
454
|
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
*/
|
|
893
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType =
|
|
894
|
-
{
|
|
895
|
-
Ephemeral: "ephemeral",
|
|
896
|
-
} as const;
|
|
897
|
-
/**
|
|
898
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
899
|
-
*/
|
|
900
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType =
|
|
901
|
-
ClosedEnum<
|
|
902
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType
|
|
903
|
-
>;
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
907
|
-
*
|
|
908
|
-
* @remarks
|
|
909
|
-
*
|
|
910
|
-
* - `5m`: 5 minutes
|
|
911
|
-
* - `1h`: 1 hour
|
|
912
|
-
*
|
|
913
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
914
|
-
*/
|
|
915
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl = {
|
|
916
|
-
Fivem: "5m",
|
|
917
|
-
Oneh: "1h",
|
|
918
|
-
} as const;
|
|
919
|
-
/**
|
|
920
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
921
|
-
*
|
|
922
|
-
* @remarks
|
|
923
|
-
*
|
|
924
|
-
* - `5m`: 5 minutes
|
|
925
|
-
* - `1h`: 1 hour
|
|
926
|
-
*
|
|
927
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
928
|
-
*/
|
|
929
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl =
|
|
930
|
-
ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl>;
|
|
931
|
-
|
|
932
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl =
|
|
933
|
-
{
|
|
934
|
-
/**
|
|
935
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
936
|
-
*/
|
|
937
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType;
|
|
938
|
-
/**
|
|
939
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
940
|
-
*
|
|
941
|
-
* @remarks
|
|
942
|
-
*
|
|
943
|
-
* - `5m`: 5 minutes
|
|
944
|
-
* - `1h`: 1 hour
|
|
945
|
-
*
|
|
946
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
947
|
-
*/
|
|
948
|
-
ttl?:
|
|
949
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl
|
|
950
|
-
| undefined;
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages1 = {
|
|
954
|
-
type: "text";
|
|
955
|
-
text: string;
|
|
956
|
-
cacheControl?:
|
|
957
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl
|
|
958
|
-
| undefined;
|
|
959
|
-
};
|
|
960
|
-
|
|
961
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages42 =
|
|
962
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages1
|
|
455
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2 =
|
|
456
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
963
457
|
| components.RefusalPartSchema
|
|
964
458
|
| components.ReasoningPartSchema
|
|
965
459
|
| components.RedactedReasoningPartSchema;
|
|
@@ -970,7 +464,7 @@ export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages42 =
|
|
|
970
464
|
export type DeploymentStreamMessagesDeploymentsRequestRequestBodyContent =
|
|
971
465
|
| string
|
|
972
466
|
| Array<
|
|
973
|
-
|
|
|
467
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
974
468
|
| components.RefusalPartSchema
|
|
975
469
|
| components.ReasoningPartSchema
|
|
976
470
|
| components.RedactedReasoningPartSchema
|
|
@@ -1033,7 +527,7 @@ export type DeploymentStreamMessagesAssistantMessage = {
|
|
|
1033
527
|
content?:
|
|
1034
528
|
| string
|
|
1035
529
|
| Array<
|
|
1036
|
-
|
|
|
530
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1037
531
|
| components.RefusalPartSchema
|
|
1038
532
|
| components.ReasoningPartSchema
|
|
1039
533
|
| components.RedactedReasoningPartSchema
|
|
@@ -1065,17 +559,15 @@ export type DeploymentStreamMessagesAssistantMessage = {
|
|
|
1065
559
|
/**
|
|
1066
560
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1067
561
|
*/
|
|
1068
|
-
export const
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
} as const;
|
|
562
|
+
export const DeploymentStream2DeploymentsRequestRequestBodyType = {
|
|
563
|
+
Ephemeral: "ephemeral",
|
|
564
|
+
} as const;
|
|
1072
565
|
/**
|
|
1073
566
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1074
567
|
*/
|
|
1075
|
-
export type
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
>;
|
|
568
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
569
|
+
typeof DeploymentStream2DeploymentsRequestRequestBodyType
|
|
570
|
+
>;
|
|
1079
571
|
|
|
1080
572
|
/**
|
|
1081
573
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -1087,7 +579,7 @@ export type DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type
|
|
|
1087
579
|
*
|
|
1088
580
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1089
581
|
*/
|
|
1090
|
-
export const
|
|
582
|
+
export const DeploymentStream2DeploymentsTtl = {
|
|
1091
583
|
Fivem: "5m",
|
|
1092
584
|
Oneh: "1h",
|
|
1093
585
|
} as const;
|
|
@@ -1101,114 +593,42 @@ export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Ttl = {
|
|
|
1101
593
|
*
|
|
1102
594
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1103
595
|
*/
|
|
1104
|
-
export type
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
| undefined;
|
|
1126
|
-
};
|
|
596
|
+
export type DeploymentStream2DeploymentsTtl = ClosedEnum<
|
|
597
|
+
typeof DeploymentStream2DeploymentsTtl
|
|
598
|
+
>;
|
|
599
|
+
|
|
600
|
+
export type DeploymentStream2DeploymentsCacheControl = {
|
|
601
|
+
/**
|
|
602
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
603
|
+
*/
|
|
604
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType;
|
|
605
|
+
/**
|
|
606
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
607
|
+
*
|
|
608
|
+
* @remarks
|
|
609
|
+
*
|
|
610
|
+
* - `5m`: 5 minutes
|
|
611
|
+
* - `1h`: 1 hour
|
|
612
|
+
*
|
|
613
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
614
|
+
*/
|
|
615
|
+
ttl?: DeploymentStream2DeploymentsTtl | undefined;
|
|
616
|
+
};
|
|
1127
617
|
|
|
1128
618
|
export type DeploymentStream2Deployments4 = {
|
|
1129
619
|
/**
|
|
1130
620
|
* The type of the content part. Always `file`.
|
|
1131
621
|
*/
|
|
1132
622
|
type: "file";
|
|
1133
|
-
cacheControl?:
|
|
1134
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages3CacheControl
|
|
1135
|
-
| undefined;
|
|
623
|
+
cacheControl?: DeploymentStream2DeploymentsCacheControl | undefined;
|
|
1136
624
|
/**
|
|
1137
625
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
1138
626
|
*/
|
|
1139
627
|
file: components.FileContentPartSchema;
|
|
1140
628
|
};
|
|
1141
629
|
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
*/
|
|
1145
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type = {
|
|
1146
|
-
Ephemeral: "ephemeral",
|
|
1147
|
-
} as const;
|
|
1148
|
-
/**
|
|
1149
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1150
|
-
*/
|
|
1151
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages3Type =
|
|
1152
|
-
ClosedEnum<
|
|
1153
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type
|
|
1154
|
-
>;
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1158
|
-
*
|
|
1159
|
-
* @remarks
|
|
1160
|
-
*
|
|
1161
|
-
* - `5m`: 5 minutes
|
|
1162
|
-
* - `1h`: 1 hour
|
|
1163
|
-
*
|
|
1164
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1165
|
-
*/
|
|
1166
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl = {
|
|
1167
|
-
Fivem: "5m",
|
|
1168
|
-
Oneh: "1h",
|
|
1169
|
-
} as const;
|
|
1170
|
-
/**
|
|
1171
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1172
|
-
*
|
|
1173
|
-
* @remarks
|
|
1174
|
-
*
|
|
1175
|
-
* - `5m`: 5 minutes
|
|
1176
|
-
* - `1h`: 1 hour
|
|
1177
|
-
*
|
|
1178
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1179
|
-
*/
|
|
1180
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl =
|
|
1181
|
-
ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl>;
|
|
1182
|
-
|
|
1183
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl =
|
|
1184
|
-
{
|
|
1185
|
-
/**
|
|
1186
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1187
|
-
*/
|
|
1188
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type;
|
|
1189
|
-
/**
|
|
1190
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1191
|
-
*
|
|
1192
|
-
* @remarks
|
|
1193
|
-
*
|
|
1194
|
-
* - `5m`: 5 minutes
|
|
1195
|
-
* - `1h`: 1 hour
|
|
1196
|
-
*
|
|
1197
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1198
|
-
*/
|
|
1199
|
-
ttl?: DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl | undefined;
|
|
1200
|
-
};
|
|
1201
|
-
|
|
1202
|
-
export type DeploymentStream2DeploymentsRequestRequestBody1 = {
|
|
1203
|
-
type: "text";
|
|
1204
|
-
text: string;
|
|
1205
|
-
cacheControl?:
|
|
1206
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl
|
|
1207
|
-
| undefined;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages32 =
|
|
1211
|
-
| DeploymentStream2DeploymentsRequestRequestBody1
|
|
630
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBody2 =
|
|
631
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1212
632
|
| components.ImageContentPartSchema
|
|
1213
633
|
| components.AudioContentPartSchema
|
|
1214
634
|
| DeploymentStream2Deployments4;
|
|
@@ -1219,7 +639,7 @@ export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages32 =
|
|
|
1219
639
|
export type DeploymentStreamMessagesDeploymentsRequestContent =
|
|
1220
640
|
| string
|
|
1221
641
|
| Array<
|
|
1222
|
-
|
|
|
642
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1223
643
|
| components.ImageContentPartSchema
|
|
1224
644
|
| components.AudioContentPartSchema
|
|
1225
645
|
| DeploymentStream2Deployments4
|
|
@@ -1240,190 +660,33 @@ export type DeploymentStreamMessagesUserMessage = {
|
|
|
1240
660
|
content:
|
|
1241
661
|
| string
|
|
1242
662
|
| Array<
|
|
1243
|
-
|
|
|
663
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1244
664
|
| components.ImageContentPartSchema
|
|
1245
|
-
| components.AudioContentPartSchema
|
|
1246
|
-
| DeploymentStream2Deployments4
|
|
1247
|
-
>;
|
|
1248
|
-
};
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
Text: "text",
|
|
1253
|
-
} as const;
|
|
1254
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type =
|
|
1255
|
-
ClosedEnum<
|
|
1256
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type
|
|
1257
|
-
>;
|
|
1258
|
-
|
|
1259
|
-
/**
|
|
1260
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1261
|
-
*/
|
|
1262
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type =
|
|
1263
|
-
{
|
|
1264
|
-
Ephemeral: "ephemeral",
|
|
1265
|
-
} as const;
|
|
1266
|
-
/**
|
|
1267
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1268
|
-
*/
|
|
1269
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type =
|
|
1270
|
-
ClosedEnum<
|
|
1271
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type
|
|
1272
|
-
>;
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1276
|
-
*
|
|
1277
|
-
* @remarks
|
|
1278
|
-
*
|
|
1279
|
-
* - `5m`: 5 minutes
|
|
1280
|
-
* - `1h`: 1 hour
|
|
1281
|
-
*
|
|
1282
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1283
|
-
*/
|
|
1284
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyTtl = {
|
|
1285
|
-
Fivem: "5m",
|
|
1286
|
-
Oneh: "1h",
|
|
1287
|
-
} as const;
|
|
1288
|
-
/**
|
|
1289
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1290
|
-
*
|
|
1291
|
-
* @remarks
|
|
1292
|
-
*
|
|
1293
|
-
* - `5m`: 5 minutes
|
|
1294
|
-
* - `1h`: 1 hour
|
|
1295
|
-
*
|
|
1296
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1297
|
-
*/
|
|
1298
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyTtl =
|
|
1299
|
-
ClosedEnum<typeof DeploymentStreamContentDeploymentsRequestRequestBodyTtl>;
|
|
1300
|
-
|
|
1301
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl = {
|
|
1302
|
-
/**
|
|
1303
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1304
|
-
*/
|
|
1305
|
-
type: DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type;
|
|
1306
|
-
/**
|
|
1307
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1308
|
-
*
|
|
1309
|
-
* @remarks
|
|
1310
|
-
*
|
|
1311
|
-
* - `5m`: 5 minutes
|
|
1312
|
-
* - `1h`: 1 hour
|
|
1313
|
-
*
|
|
1314
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1315
|
-
*/
|
|
1316
|
-
ttl?: DeploymentStreamContentDeploymentsRequestRequestBodyTtl | undefined;
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages22 = {
|
|
1320
|
-
type: DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type;
|
|
1321
|
-
text: string;
|
|
1322
|
-
cacheControl?:
|
|
1323
|
-
| DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl
|
|
1324
|
-
| undefined;
|
|
1325
|
-
};
|
|
1326
|
-
|
|
1327
|
-
/**
|
|
1328
|
-
* The contents of the developer message.
|
|
1329
|
-
*/
|
|
1330
|
-
export type DeploymentStreamMessagesDeploymentsContent =
|
|
1331
|
-
| string
|
|
1332
|
-
| Array<DeploymentStreamContentDeploymentsRequestRequestBodyMessages22>;
|
|
1333
|
-
|
|
1334
|
-
export type DeploymentStreamMessagesDeveloperMessage = {
|
|
1335
|
-
/**
|
|
1336
|
-
* The role of the messages author, in this case `developer`.
|
|
1337
|
-
*/
|
|
1338
|
-
role: "developer";
|
|
1339
|
-
/**
|
|
1340
|
-
* The contents of the developer message.
|
|
1341
|
-
*/
|
|
1342
|
-
content:
|
|
1343
|
-
| string
|
|
1344
|
-
| Array<DeploymentStreamContentDeploymentsRequestRequestBodyMessages22>;
|
|
1345
|
-
/**
|
|
1346
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1347
|
-
*/
|
|
1348
|
-
name?: string | undefined;
|
|
1349
|
-
};
|
|
1350
|
-
|
|
1351
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType =
|
|
1352
|
-
{
|
|
1353
|
-
Text: "text",
|
|
1354
|
-
} as const;
|
|
1355
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType =
|
|
1356
|
-
ClosedEnum<
|
|
1357
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType
|
|
1358
|
-
>;
|
|
1359
|
-
|
|
1360
|
-
/**
|
|
1361
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1362
|
-
*/
|
|
1363
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type =
|
|
1364
|
-
{
|
|
1365
|
-
Ephemeral: "ephemeral",
|
|
1366
|
-
} as const;
|
|
1367
|
-
/**
|
|
1368
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1369
|
-
*/
|
|
1370
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type =
|
|
1371
|
-
ClosedEnum<
|
|
1372
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type
|
|
1373
|
-
>;
|
|
1374
|
-
|
|
1375
|
-
/**
|
|
1376
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1377
|
-
*
|
|
1378
|
-
* @remarks
|
|
1379
|
-
*
|
|
1380
|
-
* - `5m`: 5 minutes
|
|
1381
|
-
* - `1h`: 1 hour
|
|
1382
|
-
*
|
|
1383
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1384
|
-
*/
|
|
1385
|
-
export const DeploymentStreamContentDeploymentsRequestTtl = {
|
|
1386
|
-
Fivem: "5m",
|
|
1387
|
-
Oneh: "1h",
|
|
1388
|
-
} as const;
|
|
1389
|
-
/**
|
|
1390
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1391
|
-
*
|
|
1392
|
-
* @remarks
|
|
1393
|
-
*
|
|
1394
|
-
* - `5m`: 5 minutes
|
|
1395
|
-
* - `1h`: 1 hour
|
|
1396
|
-
*
|
|
1397
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
665
|
+
| components.AudioContentPartSchema
|
|
666
|
+
| DeploymentStream2Deployments4
|
|
667
|
+
>;
|
|
668
|
+
};
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* The contents of the developer message.
|
|
1398
672
|
*/
|
|
1399
|
-
export type
|
|
1400
|
-
|
|
1401
|
-
>;
|
|
673
|
+
export type DeploymentStreamMessagesDeploymentsContent =
|
|
674
|
+
| string
|
|
675
|
+
| Array<components.TextContentPartSchema>;
|
|
1402
676
|
|
|
1403
|
-
export type
|
|
677
|
+
export type DeploymentStreamMessagesDeveloperMessage = {
|
|
1404
678
|
/**
|
|
1405
|
-
*
|
|
679
|
+
* The role of the messages author, in this case `developer`.
|
|
1406
680
|
*/
|
|
1407
|
-
|
|
681
|
+
role: "developer";
|
|
1408
682
|
/**
|
|
1409
|
-
* The
|
|
1410
|
-
*
|
|
1411
|
-
* @remarks
|
|
1412
|
-
*
|
|
1413
|
-
* - `5m`: 5 minutes
|
|
1414
|
-
* - `1h`: 1 hour
|
|
1415
|
-
*
|
|
1416
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
683
|
+
* The contents of the developer message.
|
|
1417
684
|
*/
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
text: string;
|
|
1424
|
-
cacheControl?:
|
|
1425
|
-
| DeploymentStreamContentDeploymentsRequestCacheControl
|
|
1426
|
-
| undefined;
|
|
685
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
686
|
+
/**
|
|
687
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
688
|
+
*/
|
|
689
|
+
name?: string | undefined;
|
|
1427
690
|
};
|
|
1428
691
|
|
|
1429
692
|
/**
|
|
@@ -1431,7 +694,7 @@ export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2 = {
|
|
|
1431
694
|
*/
|
|
1432
695
|
export type DeploymentStreamMessagesContent =
|
|
1433
696
|
| string
|
|
1434
|
-
| Array<
|
|
697
|
+
| Array<components.TextContentPartSchema>;
|
|
1435
698
|
|
|
1436
699
|
/**
|
|
1437
700
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -1444,9 +707,7 @@ export type DeploymentStreamMessagesSystemMessage = {
|
|
|
1444
707
|
/**
|
|
1445
708
|
* The contents of the system message.
|
|
1446
709
|
*/
|
|
1447
|
-
content:
|
|
1448
|
-
| string
|
|
1449
|
-
| Array<DeploymentStreamContentDeploymentsRequestRequestBodyMessages2>;
|
|
710
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
1450
711
|
/**
|
|
1451
712
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1452
713
|
*/
|
|
@@ -1913,29 +1174,30 @@ export type DeploymentStreamObject = ClosedEnum<typeof DeploymentStreamObject>;
|
|
|
1913
1174
|
* The provider used to generate the response
|
|
1914
1175
|
*/
|
|
1915
1176
|
export const DeploymentStreamProvider = {
|
|
1916
|
-
Cohere: "cohere",
|
|
1917
1177
|
Openai: "openai",
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
Replicate: "replicate",
|
|
1921
|
-
Google: "google",
|
|
1922
|
-
GoogleAi: "google-ai",
|
|
1178
|
+
Groq: "groq",
|
|
1179
|
+
Cohere: "cohere",
|
|
1923
1180
|
Azure: "azure",
|
|
1924
1181
|
Aws: "aws",
|
|
1925
|
-
|
|
1182
|
+
Google: "google",
|
|
1183
|
+
GoogleAi: "google-ai",
|
|
1184
|
+
Huggingface: "huggingface",
|
|
1185
|
+
Togetherai: "togetherai",
|
|
1926
1186
|
Perplexity: "perplexity",
|
|
1927
|
-
|
|
1928
|
-
Fal: "fal",
|
|
1187
|
+
Anthropic: "anthropic",
|
|
1929
1188
|
Leonardoai: "leonardoai",
|
|
1189
|
+
Fal: "fal",
|
|
1930
1190
|
Nvidia: "nvidia",
|
|
1931
1191
|
Jina: "jina",
|
|
1932
|
-
Togetherai: "togetherai",
|
|
1933
1192
|
Elevenlabs: "elevenlabs",
|
|
1934
1193
|
Litellm: "litellm",
|
|
1935
|
-
Openailike: "openailike",
|
|
1936
1194
|
Cerebras: "cerebras",
|
|
1195
|
+
Openailike: "openailike",
|
|
1937
1196
|
Bytedance: "bytedance",
|
|
1938
1197
|
Mistral: "mistral",
|
|
1198
|
+
Deepseek: "deepseek",
|
|
1199
|
+
Contextualai: "contextualai",
|
|
1200
|
+
Moonshotai: "moonshotai",
|
|
1939
1201
|
} as const;
|
|
1940
1202
|
/**
|
|
1941
1203
|
* The provider used to generate the response
|
|
@@ -2243,204 +1505,44 @@ export function deploymentStreamGlobalsFromJSON(
|
|
|
2243
1505
|
}
|
|
2244
1506
|
|
|
2245
1507
|
/** @internal */
|
|
2246
|
-
export const
|
|
2247
|
-
z.
|
|
2248
|
-
|
|
2249
|
-
> = z.nativeEnum(
|
|
2250
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type,
|
|
2251
|
-
);
|
|
2252
|
-
/** @internal */
|
|
2253
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema:
|
|
2254
|
-
z.ZodNativeEnum<
|
|
2255
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type
|
|
2256
|
-
> =
|
|
2257
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema;
|
|
2258
|
-
|
|
2259
|
-
/** @internal */
|
|
2260
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema:
|
|
2261
|
-
z.ZodNativeEnum<
|
|
2262
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
2263
|
-
> = z.nativeEnum(
|
|
2264
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType,
|
|
2265
|
-
);
|
|
2266
|
-
/** @internal */
|
|
2267
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema:
|
|
2268
|
-
z.ZodNativeEnum<
|
|
2269
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
2270
|
-
> =
|
|
2271
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema;
|
|
2272
|
-
|
|
2273
|
-
/** @internal */
|
|
2274
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyTtl$inboundSchema:
|
|
2275
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyTtl> = z
|
|
2276
|
-
.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyTtl);
|
|
2277
|
-
/** @internal */
|
|
2278
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyTtl$outboundSchema:
|
|
2279
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyTtl> =
|
|
2280
|
-
DeploymentStream2DeploymentsRequestRequestBodyTtl$inboundSchema;
|
|
2281
|
-
|
|
2282
|
-
/** @internal */
|
|
2283
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyCacheControl$inboundSchema:
|
|
2284
|
-
z.ZodType<
|
|
2285
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl,
|
|
2286
|
-
z.ZodTypeDef,
|
|
2287
|
-
unknown
|
|
2288
|
-
> = z.object({
|
|
2289
|
-
type:
|
|
2290
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema,
|
|
2291
|
-
ttl: DeploymentStream2DeploymentsRequestRequestBodyTtl$inboundSchema
|
|
2292
|
-
.default("5m"),
|
|
2293
|
-
});
|
|
1508
|
+
export const DeploymentStreamContentDeploymentsRequest2$inboundSchema:
|
|
1509
|
+
z.ZodType<DeploymentStreamContentDeploymentsRequest2, z.ZodTypeDef, unknown> =
|
|
1510
|
+
components.TextContentPartSchema$inboundSchema;
|
|
2294
1511
|
/** @internal */
|
|
2295
|
-
export type
|
|
2296
|
-
|
|
2297
|
-
type: string;
|
|
2298
|
-
ttl: string;
|
|
2299
|
-
};
|
|
1512
|
+
export type DeploymentStreamContentDeploymentsRequest2$Outbound =
|
|
1513
|
+
components.TextContentPartSchema$Outbound;
|
|
2300
1514
|
|
|
2301
1515
|
/** @internal */
|
|
2302
|
-
export const
|
|
1516
|
+
export const DeploymentStreamContentDeploymentsRequest2$outboundSchema:
|
|
2303
1517
|
z.ZodType<
|
|
2304
|
-
|
|
1518
|
+
DeploymentStreamContentDeploymentsRequest2$Outbound,
|
|
2305
1519
|
z.ZodTypeDef,
|
|
2306
|
-
|
|
2307
|
-
> =
|
|
2308
|
-
type:
|
|
2309
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema,
|
|
2310
|
-
ttl: DeploymentStream2DeploymentsRequestRequestBodyTtl$outboundSchema
|
|
2311
|
-
.default("5m"),
|
|
2312
|
-
});
|
|
2313
|
-
|
|
2314
|
-
export function deploymentStream2DeploymentsRequestRequestBodyCacheControlToJSON(
|
|
2315
|
-
deploymentStream2DeploymentsRequestRequestBodyCacheControl:
|
|
2316
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl,
|
|
2317
|
-
): string {
|
|
2318
|
-
return JSON.stringify(
|
|
2319
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
2320
|
-
.parse(deploymentStream2DeploymentsRequestRequestBodyCacheControl),
|
|
2321
|
-
);
|
|
2322
|
-
}
|
|
2323
|
-
export function deploymentStream2DeploymentsRequestRequestBodyCacheControlFromJSON(
|
|
2324
|
-
jsonString: string,
|
|
2325
|
-
): SafeParseResult<
|
|
2326
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl,
|
|
2327
|
-
SDKValidationError
|
|
2328
|
-
> {
|
|
2329
|
-
return safeParse(
|
|
2330
|
-
jsonString,
|
|
2331
|
-
(x) =>
|
|
2332
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
2333
|
-
.parse(JSON.parse(x)),
|
|
2334
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyCacheControl' from JSON`,
|
|
2335
|
-
);
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
/** @internal */
|
|
2339
|
-
export const DeploymentStream2DeploymentsRequest1$inboundSchema: z.ZodType<
|
|
2340
|
-
DeploymentStream2DeploymentsRequest1,
|
|
2341
|
-
z.ZodTypeDef,
|
|
2342
|
-
unknown
|
|
2343
|
-
> = z.object({
|
|
2344
|
-
type:
|
|
2345
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema,
|
|
2346
|
-
text: z.string(),
|
|
2347
|
-
cache_control: z.lazy(() =>
|
|
2348
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
2349
|
-
).optional(),
|
|
2350
|
-
}).transform((v) => {
|
|
2351
|
-
return remap$(v, {
|
|
2352
|
-
"cache_control": "cacheControl",
|
|
2353
|
-
});
|
|
2354
|
-
});
|
|
2355
|
-
/** @internal */
|
|
2356
|
-
export type DeploymentStream2DeploymentsRequest1$Outbound = {
|
|
2357
|
-
type: string;
|
|
2358
|
-
text: string;
|
|
2359
|
-
cache_control?:
|
|
2360
|
-
| DeploymentStream2DeploymentsRequestRequestBodyCacheControl$Outbound
|
|
2361
|
-
| undefined;
|
|
2362
|
-
};
|
|
2363
|
-
|
|
2364
|
-
/** @internal */
|
|
2365
|
-
export const DeploymentStream2DeploymentsRequest1$outboundSchema: z.ZodType<
|
|
2366
|
-
DeploymentStream2DeploymentsRequest1$Outbound,
|
|
2367
|
-
z.ZodTypeDef,
|
|
2368
|
-
DeploymentStream2DeploymentsRequest1
|
|
2369
|
-
> = z.object({
|
|
2370
|
-
type:
|
|
2371
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema,
|
|
2372
|
-
text: z.string(),
|
|
2373
|
-
cacheControl: z.lazy(() =>
|
|
2374
|
-
DeploymentStream2DeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
2375
|
-
).optional(),
|
|
2376
|
-
}).transform((v) => {
|
|
2377
|
-
return remap$(v, {
|
|
2378
|
-
cacheControl: "cache_control",
|
|
2379
|
-
});
|
|
2380
|
-
});
|
|
1520
|
+
DeploymentStreamContentDeploymentsRequest2
|
|
1521
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
2381
1522
|
|
|
2382
|
-
export function
|
|
2383
|
-
|
|
1523
|
+
export function deploymentStreamContentDeploymentsRequest2ToJSON(
|
|
1524
|
+
deploymentStreamContentDeploymentsRequest2:
|
|
1525
|
+
DeploymentStreamContentDeploymentsRequest2,
|
|
2384
1526
|
): string {
|
|
2385
1527
|
return JSON.stringify(
|
|
2386
|
-
|
|
2387
|
-
|
|
1528
|
+
DeploymentStreamContentDeploymentsRequest2$outboundSchema.parse(
|
|
1529
|
+
deploymentStreamContentDeploymentsRequest2,
|
|
2388
1530
|
),
|
|
2389
1531
|
);
|
|
2390
1532
|
}
|
|
2391
|
-
export function
|
|
2392
|
-
jsonString: string,
|
|
2393
|
-
): SafeParseResult<DeploymentStream2DeploymentsRequest1, SDKValidationError> {
|
|
2394
|
-
return safeParse(
|
|
2395
|
-
jsonString,
|
|
2396
|
-
(x) =>
|
|
2397
|
-
DeploymentStream2DeploymentsRequest1$inboundSchema.parse(JSON.parse(x)),
|
|
2398
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequest1' from JSON`,
|
|
2399
|
-
);
|
|
2400
|
-
}
|
|
2401
|
-
|
|
2402
|
-
/** @internal */
|
|
2403
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2$inboundSchema:
|
|
2404
|
-
z.ZodType<
|
|
2405
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2,
|
|
2406
|
-
z.ZodTypeDef,
|
|
2407
|
-
unknown
|
|
2408
|
-
> = z.lazy(() => DeploymentStream2DeploymentsRequest1$inboundSchema);
|
|
2409
|
-
/** @internal */
|
|
2410
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2$Outbound =
|
|
2411
|
-
DeploymentStream2DeploymentsRequest1$Outbound;
|
|
2412
|
-
|
|
2413
|
-
/** @internal */
|
|
2414
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2$outboundSchema:
|
|
2415
|
-
z.ZodType<
|
|
2416
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2$Outbound,
|
|
2417
|
-
z.ZodTypeDef,
|
|
2418
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2
|
|
2419
|
-
> = z.lazy(() => DeploymentStream2DeploymentsRequest1$outboundSchema);
|
|
2420
|
-
|
|
2421
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2ToJSON(
|
|
2422
|
-
deploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2:
|
|
2423
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2,
|
|
2424
|
-
): string {
|
|
2425
|
-
return JSON.stringify(
|
|
2426
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2$outboundSchema
|
|
2427
|
-
.parse(
|
|
2428
|
-
deploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2,
|
|
2429
|
-
),
|
|
2430
|
-
);
|
|
2431
|
-
}
|
|
2432
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyPrefixMessages2FromJSON(
|
|
1533
|
+
export function deploymentStreamContentDeploymentsRequest2FromJSON(
|
|
2433
1534
|
jsonString: string,
|
|
2434
1535
|
): SafeParseResult<
|
|
2435
|
-
|
|
1536
|
+
DeploymentStreamContentDeploymentsRequest2,
|
|
2436
1537
|
SDKValidationError
|
|
2437
1538
|
> {
|
|
2438
1539
|
return safeParse(
|
|
2439
1540
|
jsonString,
|
|
2440
1541
|
(x) =>
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
1542
|
+
DeploymentStreamContentDeploymentsRequest2$inboundSchema.parse(
|
|
1543
|
+
JSON.parse(x),
|
|
1544
|
+
),
|
|
1545
|
+
`Failed to parse 'DeploymentStreamContentDeploymentsRequest2' from JSON`,
|
|
2444
1546
|
);
|
|
2445
1547
|
}
|
|
2446
1548
|
|
|
@@ -2452,12 +1554,12 @@ export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content
|
|
|
2452
1554
|
unknown
|
|
2453
1555
|
> = z.union([
|
|
2454
1556
|
z.string(),
|
|
2455
|
-
z.array(
|
|
1557
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2456
1558
|
]);
|
|
2457
1559
|
/** @internal */
|
|
2458
1560
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$Outbound =
|
|
2459
1561
|
| string
|
|
2460
|
-
| Array<
|
|
1562
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
2461
1563
|
|
|
2462
1564
|
/** @internal */
|
|
2463
1565
|
export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
|
|
@@ -2467,7 +1569,7 @@ export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content
|
|
|
2467
1569
|
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Content
|
|
2468
1570
|
> = z.union([
|
|
2469
1571
|
z.string(),
|
|
2470
|
-
z.array(
|
|
1572
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2471
1573
|
]);
|
|
2472
1574
|
|
|
2473
1575
|
export function deploymentStreamPrefixMessagesDeploymentsRequestRequestBody5ContentToJSON(
|
|
@@ -2573,7 +1675,7 @@ export const PrefixMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2573
1675
|
role: z.literal("tool"),
|
|
2574
1676
|
content: z.union([
|
|
2575
1677
|
z.string(),
|
|
2576
|
-
z.array(
|
|
1678
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2577
1679
|
]),
|
|
2578
1680
|
tool_call_id: z.string(),
|
|
2579
1681
|
cache_control: z.lazy(() =>
|
|
@@ -2588,247 +1690,103 @@ export const PrefixMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2588
1690
|
/** @internal */
|
|
2589
1691
|
export type PrefixMessagesToolMessage$Outbound = {
|
|
2590
1692
|
role: "tool";
|
|
2591
|
-
content: string | Array<
|
|
1693
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2592
1694
|
tool_call_id: string;
|
|
2593
1695
|
cache_control?:
|
|
2594
|
-
| DeploymentStreamPrefixMessagesCacheControl$Outbound
|
|
2595
|
-
| undefined;
|
|
2596
|
-
};
|
|
2597
|
-
|
|
2598
|
-
/** @internal */
|
|
2599
|
-
export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
2600
|
-
PrefixMessagesToolMessage$Outbound,
|
|
2601
|
-
z.ZodTypeDef,
|
|
2602
|
-
PrefixMessagesToolMessage
|
|
2603
|
-
> = z.object({
|
|
2604
|
-
role: z.literal("tool"),
|
|
2605
|
-
content: z.union([
|
|
2606
|
-
z.string(),
|
|
2607
|
-
z.array(z.lazy(() => DeploymentStream2DeploymentsRequest1$outboundSchema)),
|
|
2608
|
-
]),
|
|
2609
|
-
toolCallId: z.string(),
|
|
2610
|
-
cacheControl: z.lazy(() =>
|
|
2611
|
-
DeploymentStreamPrefixMessagesCacheControl$outboundSchema
|
|
2612
|
-
).optional(),
|
|
2613
|
-
}).transform((v) => {
|
|
2614
|
-
return remap$(v, {
|
|
2615
|
-
toolCallId: "tool_call_id",
|
|
2616
|
-
cacheControl: "cache_control",
|
|
2617
|
-
});
|
|
2618
|
-
});
|
|
2619
|
-
|
|
2620
|
-
export function prefixMessagesToolMessageToJSON(
|
|
2621
|
-
prefixMessagesToolMessage: PrefixMessagesToolMessage,
|
|
2622
|
-
): string {
|
|
2623
|
-
return JSON.stringify(
|
|
2624
|
-
PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
|
|
2625
|
-
);
|
|
2626
|
-
}
|
|
2627
|
-
export function prefixMessagesToolMessageFromJSON(
|
|
2628
|
-
jsonString: string,
|
|
2629
|
-
): SafeParseResult<PrefixMessagesToolMessage, SDKValidationError> {
|
|
2630
|
-
return safeParse(
|
|
2631
|
-
jsonString,
|
|
2632
|
-
(x) => PrefixMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2633
|
-
`Failed to parse 'PrefixMessagesToolMessage' from JSON`,
|
|
2634
|
-
);
|
|
2635
|
-
}
|
|
2636
|
-
|
|
2637
|
-
/** @internal */
|
|
2638
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema:
|
|
2639
|
-
z.ZodNativeEnum<
|
|
2640
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
|
|
2641
|
-
> = z.nativeEnum(
|
|
2642
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type,
|
|
2643
|
-
);
|
|
2644
|
-
/** @internal */
|
|
2645
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema:
|
|
2646
|
-
z.ZodNativeEnum<
|
|
2647
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type
|
|
2648
|
-
> =
|
|
2649
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema;
|
|
2650
|
-
|
|
2651
|
-
/** @internal */
|
|
2652
|
-
export const DeploymentStream2DeploymentsRequestTtl$inboundSchema:
|
|
2653
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestTtl> = z.nativeEnum(
|
|
2654
|
-
DeploymentStream2DeploymentsRequestTtl,
|
|
2655
|
-
);
|
|
2656
|
-
/** @internal */
|
|
2657
|
-
export const DeploymentStream2DeploymentsRequestTtl$outboundSchema:
|
|
2658
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestTtl> =
|
|
2659
|
-
DeploymentStream2DeploymentsRequestTtl$inboundSchema;
|
|
2660
|
-
|
|
2661
|
-
/** @internal */
|
|
2662
|
-
export const DeploymentStream2DeploymentsRequestCacheControl$inboundSchema:
|
|
2663
|
-
z.ZodType<
|
|
2664
|
-
DeploymentStream2DeploymentsRequestCacheControl,
|
|
2665
|
-
z.ZodTypeDef,
|
|
2666
|
-
unknown
|
|
2667
|
-
> = z.object({
|
|
2668
|
-
type:
|
|
2669
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema,
|
|
2670
|
-
ttl: DeploymentStream2DeploymentsRequestTtl$inboundSchema.default("5m"),
|
|
2671
|
-
});
|
|
2672
|
-
/** @internal */
|
|
2673
|
-
export type DeploymentStream2DeploymentsRequestCacheControl$Outbound = {
|
|
2674
|
-
type: string;
|
|
2675
|
-
ttl: string;
|
|
2676
|
-
};
|
|
2677
|
-
|
|
2678
|
-
/** @internal */
|
|
2679
|
-
export const DeploymentStream2DeploymentsRequestCacheControl$outboundSchema:
|
|
2680
|
-
z.ZodType<
|
|
2681
|
-
DeploymentStream2DeploymentsRequestCacheControl$Outbound,
|
|
2682
|
-
z.ZodTypeDef,
|
|
2683
|
-
DeploymentStream2DeploymentsRequestCacheControl
|
|
2684
|
-
> = z.object({
|
|
2685
|
-
type:
|
|
2686
|
-
DeploymentStream2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema,
|
|
2687
|
-
ttl: DeploymentStream2DeploymentsRequestTtl$outboundSchema.default("5m"),
|
|
2688
|
-
});
|
|
2689
|
-
|
|
2690
|
-
export function deploymentStream2DeploymentsRequestCacheControlToJSON(
|
|
2691
|
-
deploymentStream2DeploymentsRequestCacheControl:
|
|
2692
|
-
DeploymentStream2DeploymentsRequestCacheControl,
|
|
2693
|
-
): string {
|
|
2694
|
-
return JSON.stringify(
|
|
2695
|
-
DeploymentStream2DeploymentsRequestCacheControl$outboundSchema.parse(
|
|
2696
|
-
deploymentStream2DeploymentsRequestCacheControl,
|
|
2697
|
-
),
|
|
2698
|
-
);
|
|
2699
|
-
}
|
|
2700
|
-
export function deploymentStream2DeploymentsRequestCacheControlFromJSON(
|
|
2701
|
-
jsonString: string,
|
|
2702
|
-
): SafeParseResult<
|
|
2703
|
-
DeploymentStream2DeploymentsRequestCacheControl,
|
|
2704
|
-
SDKValidationError
|
|
2705
|
-
> {
|
|
2706
|
-
return safeParse(
|
|
2707
|
-
jsonString,
|
|
2708
|
-
(x) =>
|
|
2709
|
-
DeploymentStream2DeploymentsRequestCacheControl$inboundSchema.parse(
|
|
2710
|
-
JSON.parse(x),
|
|
2711
|
-
),
|
|
2712
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestCacheControl' from JSON`,
|
|
2713
|
-
);
|
|
2714
|
-
}
|
|
2715
|
-
|
|
2716
|
-
/** @internal */
|
|
2717
|
-
export const DeploymentStream2Deployments1$inboundSchema: z.ZodType<
|
|
2718
|
-
DeploymentStream2Deployments1,
|
|
2719
|
-
z.ZodTypeDef,
|
|
2720
|
-
unknown
|
|
2721
|
-
> = z.object({
|
|
2722
|
-
type: z.literal("text"),
|
|
2723
|
-
text: z.string(),
|
|
2724
|
-
cache_control: z.lazy(() =>
|
|
2725
|
-
DeploymentStream2DeploymentsRequestCacheControl$inboundSchema
|
|
2726
|
-
).optional(),
|
|
2727
|
-
}).transform((v) => {
|
|
2728
|
-
return remap$(v, {
|
|
2729
|
-
"cache_control": "cacheControl",
|
|
2730
|
-
});
|
|
2731
|
-
});
|
|
2732
|
-
/** @internal */
|
|
2733
|
-
export type DeploymentStream2Deployments1$Outbound = {
|
|
2734
|
-
type: "text";
|
|
2735
|
-
text: string;
|
|
2736
|
-
cache_control?:
|
|
2737
|
-
| DeploymentStream2DeploymentsRequestCacheControl$Outbound
|
|
1696
|
+
| DeploymentStreamPrefixMessagesCacheControl$Outbound
|
|
2738
1697
|
| undefined;
|
|
2739
1698
|
};
|
|
2740
1699
|
|
|
2741
1700
|
/** @internal */
|
|
2742
|
-
export const
|
|
2743
|
-
|
|
1701
|
+
export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
1702
|
+
PrefixMessagesToolMessage$Outbound,
|
|
2744
1703
|
z.ZodTypeDef,
|
|
2745
|
-
|
|
1704
|
+
PrefixMessagesToolMessage
|
|
2746
1705
|
> = z.object({
|
|
2747
|
-
|
|
2748
|
-
|
|
1706
|
+
role: z.literal("tool"),
|
|
1707
|
+
content: z.union([
|
|
1708
|
+
z.string(),
|
|
1709
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1710
|
+
]),
|
|
1711
|
+
toolCallId: z.string(),
|
|
2749
1712
|
cacheControl: z.lazy(() =>
|
|
2750
|
-
|
|
1713
|
+
DeploymentStreamPrefixMessagesCacheControl$outboundSchema
|
|
2751
1714
|
).optional(),
|
|
2752
1715
|
}).transform((v) => {
|
|
2753
1716
|
return remap$(v, {
|
|
1717
|
+
toolCallId: "tool_call_id",
|
|
2754
1718
|
cacheControl: "cache_control",
|
|
2755
1719
|
});
|
|
2756
1720
|
});
|
|
2757
1721
|
|
|
2758
|
-
export function
|
|
2759
|
-
|
|
1722
|
+
export function prefixMessagesToolMessageToJSON(
|
|
1723
|
+
prefixMessagesToolMessage: PrefixMessagesToolMessage,
|
|
2760
1724
|
): string {
|
|
2761
1725
|
return JSON.stringify(
|
|
2762
|
-
|
|
2763
|
-
deploymentStream2Deployments1,
|
|
2764
|
-
),
|
|
1726
|
+
PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
|
|
2765
1727
|
);
|
|
2766
1728
|
}
|
|
2767
|
-
export function
|
|
1729
|
+
export function prefixMessagesToolMessageFromJSON(
|
|
2768
1730
|
jsonString: string,
|
|
2769
|
-
): SafeParseResult<
|
|
1731
|
+
): SafeParseResult<PrefixMessagesToolMessage, SDKValidationError> {
|
|
2770
1732
|
return safeParse(
|
|
2771
1733
|
jsonString,
|
|
2772
|
-
(x) =>
|
|
2773
|
-
`Failed to parse '
|
|
1734
|
+
(x) => PrefixMessagesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
1735
|
+
`Failed to parse 'PrefixMessagesToolMessage' from JSON`,
|
|
2774
1736
|
);
|
|
2775
1737
|
}
|
|
2776
1738
|
|
|
2777
1739
|
/** @internal */
|
|
2778
|
-
export const
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
|
|
2784
|
-
z.
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
1740
|
+
export const DeploymentStreamContentDeployments2$inboundSchema: z.ZodType<
|
|
1741
|
+
DeploymentStreamContentDeployments2,
|
|
1742
|
+
z.ZodTypeDef,
|
|
1743
|
+
unknown
|
|
1744
|
+
> = z.union([
|
|
1745
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1746
|
+
z.object({ type: z.literal("text") }),
|
|
1747
|
+
),
|
|
1748
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1749
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1750
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1751
|
+
]);
|
|
2789
1752
|
/** @internal */
|
|
2790
|
-
export type
|
|
2791
|
-
|
|
|
1753
|
+
export type DeploymentStreamContentDeployments2$Outbound =
|
|
1754
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2792
1755
|
| components.RefusalPartSchema$Outbound
|
|
2793
1756
|
| components.ReasoningPartSchema$Outbound
|
|
2794
1757
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
2795
1758
|
|
|
2796
1759
|
/** @internal */
|
|
2797
|
-
export const
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
z.
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
1760
|
+
export const DeploymentStreamContentDeployments2$outboundSchema: z.ZodType<
|
|
1761
|
+
DeploymentStreamContentDeployments2$Outbound,
|
|
1762
|
+
z.ZodTypeDef,
|
|
1763
|
+
DeploymentStreamContentDeployments2
|
|
1764
|
+
> = z.union([
|
|
1765
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1766
|
+
z.object({ type: z.literal("text") }),
|
|
1767
|
+
),
|
|
1768
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1769
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1770
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1771
|
+
]);
|
|
2808
1772
|
|
|
2809
|
-
export function
|
|
2810
|
-
|
|
2811
|
-
DeploymentStreamContentDeploymentsRequestRequestBody2,
|
|
1773
|
+
export function deploymentStreamContentDeployments2ToJSON(
|
|
1774
|
+
deploymentStreamContentDeployments2: DeploymentStreamContentDeployments2,
|
|
2812
1775
|
): string {
|
|
2813
1776
|
return JSON.stringify(
|
|
2814
|
-
|
|
2815
|
-
|
|
1777
|
+
DeploymentStreamContentDeployments2$outboundSchema.parse(
|
|
1778
|
+
deploymentStreamContentDeployments2,
|
|
2816
1779
|
),
|
|
2817
1780
|
);
|
|
2818
1781
|
}
|
|
2819
|
-
export function
|
|
1782
|
+
export function deploymentStreamContentDeployments2FromJSON(
|
|
2820
1783
|
jsonString: string,
|
|
2821
|
-
): SafeParseResult<
|
|
2822
|
-
DeploymentStreamContentDeploymentsRequestRequestBody2,
|
|
2823
|
-
SDKValidationError
|
|
2824
|
-
> {
|
|
1784
|
+
): SafeParseResult<DeploymentStreamContentDeployments2, SDKValidationError> {
|
|
2825
1785
|
return safeParse(
|
|
2826
1786
|
jsonString,
|
|
2827
1787
|
(x) =>
|
|
2828
|
-
|
|
2829
|
-
|
|
2830
|
-
),
|
|
2831
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBody2' from JSON`,
|
|
1788
|
+
DeploymentStreamContentDeployments2$inboundSchema.parse(JSON.parse(x)),
|
|
1789
|
+
`Failed to parse 'DeploymentStreamContentDeployments2' from JSON`,
|
|
2832
1790
|
);
|
|
2833
1791
|
}
|
|
2834
1792
|
|
|
@@ -2840,18 +1798,22 @@ export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$
|
|
|
2840
1798
|
unknown
|
|
2841
1799
|
> = z.union([
|
|
2842
1800
|
z.string(),
|
|
2843
|
-
z.array(
|
|
2844
|
-
z.
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2848
|
-
|
|
1801
|
+
z.array(
|
|
1802
|
+
z.union([
|
|
1803
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1804
|
+
z.object({ type: z.literal("text") }),
|
|
1805
|
+
),
|
|
1806
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1807
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1808
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1809
|
+
]),
|
|
1810
|
+
),
|
|
2849
1811
|
]);
|
|
2850
1812
|
/** @internal */
|
|
2851
1813
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
2852
1814
|
| string
|
|
2853
1815
|
| Array<
|
|
2854
|
-
|
|
|
1816
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2855
1817
|
| components.RefusalPartSchema$Outbound
|
|
2856
1818
|
| components.ReasoningPartSchema$Outbound
|
|
2857
1819
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -2865,12 +1827,16 @@ export const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent$
|
|
|
2865
1827
|
DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContent
|
|
2866
1828
|
> = z.union([
|
|
2867
1829
|
z.string(),
|
|
2868
|
-
z.array(
|
|
2869
|
-
z.
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
1830
|
+
z.array(
|
|
1831
|
+
z.union([
|
|
1832
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1833
|
+
z.object({ type: z.literal("text") }),
|
|
1834
|
+
),
|
|
1835
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1836
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1837
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1838
|
+
]),
|
|
1839
|
+
),
|
|
2874
1840
|
]);
|
|
2875
1841
|
|
|
2876
1842
|
export function deploymentStreamPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
@@ -2948,8 +1914,8 @@ export const DeploymentStreamPrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
|
2948
1914
|
> = DeploymentStreamPrefixMessagesType$inboundSchema;
|
|
2949
1915
|
|
|
2950
1916
|
/** @internal */
|
|
2951
|
-
export const
|
|
2952
|
-
|
|
1917
|
+
export const DeploymentStreamPrefixMessagesFunction$inboundSchema: z.ZodType<
|
|
1918
|
+
DeploymentStreamPrefixMessagesFunction,
|
|
2953
1919
|
z.ZodTypeDef,
|
|
2954
1920
|
unknown
|
|
2955
1921
|
> = z.object({
|
|
@@ -2957,47 +1923,51 @@ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
|
|
|
2957
1923
|
arguments: z.string().optional(),
|
|
2958
1924
|
});
|
|
2959
1925
|
/** @internal */
|
|
2960
|
-
export type
|
|
1926
|
+
export type DeploymentStreamPrefixMessagesFunction$Outbound = {
|
|
2961
1927
|
name?: string | undefined;
|
|
2962
1928
|
arguments?: string | undefined;
|
|
2963
1929
|
};
|
|
2964
1930
|
|
|
2965
1931
|
/** @internal */
|
|
2966
|
-
export const
|
|
2967
|
-
|
|
1932
|
+
export const DeploymentStreamPrefixMessagesFunction$outboundSchema: z.ZodType<
|
|
1933
|
+
DeploymentStreamPrefixMessagesFunction$Outbound,
|
|
2968
1934
|
z.ZodTypeDef,
|
|
2969
|
-
|
|
1935
|
+
DeploymentStreamPrefixMessagesFunction
|
|
2970
1936
|
> = z.object({
|
|
2971
1937
|
name: z.string().optional(),
|
|
2972
1938
|
arguments: z.string().optional(),
|
|
2973
1939
|
});
|
|
2974
1940
|
|
|
2975
|
-
export function
|
|
2976
|
-
|
|
1941
|
+
export function deploymentStreamPrefixMessagesFunctionToJSON(
|
|
1942
|
+
deploymentStreamPrefixMessagesFunction:
|
|
1943
|
+
DeploymentStreamPrefixMessagesFunction,
|
|
2977
1944
|
): string {
|
|
2978
1945
|
return JSON.stringify(
|
|
2979
|
-
|
|
1946
|
+
DeploymentStreamPrefixMessagesFunction$outboundSchema.parse(
|
|
1947
|
+
deploymentStreamPrefixMessagesFunction,
|
|
1948
|
+
),
|
|
2980
1949
|
);
|
|
2981
1950
|
}
|
|
2982
|
-
export function
|
|
1951
|
+
export function deploymentStreamPrefixMessagesFunctionFromJSON(
|
|
2983
1952
|
jsonString: string,
|
|
2984
|
-
): SafeParseResult<
|
|
1953
|
+
): SafeParseResult<DeploymentStreamPrefixMessagesFunction, SDKValidationError> {
|
|
2985
1954
|
return safeParse(
|
|
2986
1955
|
jsonString,
|
|
2987
|
-
(x) =>
|
|
2988
|
-
|
|
1956
|
+
(x) =>
|
|
1957
|
+
DeploymentStreamPrefixMessagesFunction$inboundSchema.parse(JSON.parse(x)),
|
|
1958
|
+
`Failed to parse 'DeploymentStreamPrefixMessagesFunction' from JSON`,
|
|
2989
1959
|
);
|
|
2990
1960
|
}
|
|
2991
1961
|
|
|
2992
1962
|
/** @internal */
|
|
2993
|
-
export const
|
|
2994
|
-
|
|
1963
|
+
export const DeploymentStreamPrefixMessagesToolCalls$inboundSchema: z.ZodType<
|
|
1964
|
+
DeploymentStreamPrefixMessagesToolCalls,
|
|
2995
1965
|
z.ZodTypeDef,
|
|
2996
1966
|
unknown
|
|
2997
1967
|
> = z.object({
|
|
2998
1968
|
id: z.string(),
|
|
2999
1969
|
type: DeploymentStreamPrefixMessagesType$inboundSchema,
|
|
3000
|
-
function: z.lazy(() =>
|
|
1970
|
+
function: z.lazy(() => DeploymentStreamPrefixMessagesFunction$inboundSchema),
|
|
3001
1971
|
thought_signature: z.string().optional(),
|
|
3002
1972
|
}).transform((v) => {
|
|
3003
1973
|
return remap$(v, {
|
|
@@ -3005,22 +1975,22 @@ export const PrefixMessagesToolCalls$inboundSchema: z.ZodType<
|
|
|
3005
1975
|
});
|
|
3006
1976
|
});
|
|
3007
1977
|
/** @internal */
|
|
3008
|
-
export type
|
|
1978
|
+
export type DeploymentStreamPrefixMessagesToolCalls$Outbound = {
|
|
3009
1979
|
id: string;
|
|
3010
1980
|
type: string;
|
|
3011
|
-
function:
|
|
1981
|
+
function: DeploymentStreamPrefixMessagesFunction$Outbound;
|
|
3012
1982
|
thought_signature?: string | undefined;
|
|
3013
1983
|
};
|
|
3014
1984
|
|
|
3015
1985
|
/** @internal */
|
|
3016
|
-
export const
|
|
3017
|
-
|
|
1986
|
+
export const DeploymentStreamPrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1987
|
+
DeploymentStreamPrefixMessagesToolCalls$Outbound,
|
|
3018
1988
|
z.ZodTypeDef,
|
|
3019
|
-
|
|
1989
|
+
DeploymentStreamPrefixMessagesToolCalls
|
|
3020
1990
|
> = z.object({
|
|
3021
1991
|
id: z.string(),
|
|
3022
1992
|
type: DeploymentStreamPrefixMessagesType$outboundSchema,
|
|
3023
|
-
function: z.lazy(() =>
|
|
1993
|
+
function: z.lazy(() => DeploymentStreamPrefixMessagesFunction$outboundSchema),
|
|
3024
1994
|
thoughtSignature: z.string().optional(),
|
|
3025
1995
|
}).transform((v) => {
|
|
3026
1996
|
return remap$(v, {
|
|
@@ -3028,20 +1998,29 @@ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
3028
1998
|
});
|
|
3029
1999
|
});
|
|
3030
2000
|
|
|
3031
|
-
export function
|
|
3032
|
-
|
|
2001
|
+
export function deploymentStreamPrefixMessagesToolCallsToJSON(
|
|
2002
|
+
deploymentStreamPrefixMessagesToolCalls:
|
|
2003
|
+
DeploymentStreamPrefixMessagesToolCalls,
|
|
3033
2004
|
): string {
|
|
3034
2005
|
return JSON.stringify(
|
|
3035
|
-
|
|
2006
|
+
DeploymentStreamPrefixMessagesToolCalls$outboundSchema.parse(
|
|
2007
|
+
deploymentStreamPrefixMessagesToolCalls,
|
|
2008
|
+
),
|
|
3036
2009
|
);
|
|
3037
2010
|
}
|
|
3038
|
-
export function
|
|
2011
|
+
export function deploymentStreamPrefixMessagesToolCallsFromJSON(
|
|
3039
2012
|
jsonString: string,
|
|
3040
|
-
): SafeParseResult<
|
|
2013
|
+
): SafeParseResult<
|
|
2014
|
+
DeploymentStreamPrefixMessagesToolCalls,
|
|
2015
|
+
SDKValidationError
|
|
2016
|
+
> {
|
|
3041
2017
|
return safeParse(
|
|
3042
2018
|
jsonString,
|
|
3043
|
-
(x) =>
|
|
3044
|
-
|
|
2019
|
+
(x) =>
|
|
2020
|
+
DeploymentStreamPrefixMessagesToolCalls$inboundSchema.parse(
|
|
2021
|
+
JSON.parse(x),
|
|
2022
|
+
),
|
|
2023
|
+
`Failed to parse 'DeploymentStreamPrefixMessagesToolCalls' from JSON`,
|
|
3045
2024
|
);
|
|
3046
2025
|
}
|
|
3047
2026
|
|
|
@@ -3056,7 +2035,9 @@ export const PrefixMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
3056
2035
|
z.string(),
|
|
3057
2036
|
z.array(
|
|
3058
2037
|
z.union([
|
|
3059
|
-
|
|
2038
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2039
|
+
z.object({ type: z.literal("text") }),
|
|
2040
|
+
),
|
|
3060
2041
|
components.RefusalPartSchema$inboundSchema,
|
|
3061
2042
|
components.ReasoningPartSchema$inboundSchema,
|
|
3062
2043
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -3068,206 +2049,86 @@ export const PrefixMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
3068
2049
|
role: z.literal("assistant"),
|
|
3069
2050
|
name: z.string().optional(),
|
|
3070
2051
|
audio: z.nullable(z.lazy(() => PrefixMessagesAudio$inboundSchema)).optional(),
|
|
3071
|
-
tool_calls: z.array(
|
|
3072
|
-
.
|
|
3073
|
-
}).transform((v) => {
|
|
3074
|
-
return remap$(v, {
|
|
3075
|
-
"tool_calls": "toolCalls",
|
|
3076
|
-
});
|
|
3077
|
-
});
|
|
3078
|
-
/** @internal */
|
|
3079
|
-
export type PrefixMessagesAssistantMessage$Outbound = {
|
|
3080
|
-
content?:
|
|
3081
|
-
| string
|
|
3082
|
-
| Array<
|
|
3083
|
-
| DeploymentStream2Deployments1$Outbound
|
|
3084
|
-
| components.RefusalPartSchema$Outbound
|
|
3085
|
-
| components.ReasoningPartSchema$Outbound
|
|
3086
|
-
| components.RedactedReasoningPartSchema$Outbound
|
|
3087
|
-
>
|
|
3088
|
-
| null
|
|
3089
|
-
| undefined;
|
|
3090
|
-
refusal?: string | null | undefined;
|
|
3091
|
-
role: "assistant";
|
|
3092
|
-
name?: string | undefined;
|
|
3093
|
-
audio?: PrefixMessagesAudio$Outbound | null | undefined;
|
|
3094
|
-
tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
|
|
3095
|
-
};
|
|
3096
|
-
|
|
3097
|
-
/** @internal */
|
|
3098
|
-
export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
3099
|
-
PrefixMessagesAssistantMessage$Outbound,
|
|
3100
|
-
z.ZodTypeDef,
|
|
3101
|
-
PrefixMessagesAssistantMessage
|
|
3102
|
-
> = z.object({
|
|
3103
|
-
content: z.nullable(
|
|
3104
|
-
z.union([
|
|
3105
|
-
z.string(),
|
|
3106
|
-
z.array(
|
|
3107
|
-
z.union([
|
|
3108
|
-
z.lazy(() => DeploymentStream2Deployments1$outboundSchema),
|
|
3109
|
-
components.RefusalPartSchema$outboundSchema,
|
|
3110
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
3111
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3112
|
-
]),
|
|
3113
|
-
),
|
|
3114
|
-
]),
|
|
3115
|
-
).optional(),
|
|
3116
|
-
refusal: z.nullable(z.string()).optional(),
|
|
3117
|
-
role: z.literal("assistant"),
|
|
3118
|
-
name: z.string().optional(),
|
|
3119
|
-
audio: z.nullable(z.lazy(() => PrefixMessagesAudio$outboundSchema))
|
|
3120
|
-
.optional(),
|
|
3121
|
-
toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
|
|
3122
|
-
.optional(),
|
|
3123
|
-
}).transform((v) => {
|
|
3124
|
-
return remap$(v, {
|
|
3125
|
-
toolCalls: "tool_calls",
|
|
3126
|
-
});
|
|
3127
|
-
});
|
|
3128
|
-
|
|
3129
|
-
export function prefixMessagesAssistantMessageToJSON(
|
|
3130
|
-
prefixMessagesAssistantMessage: PrefixMessagesAssistantMessage,
|
|
3131
|
-
): string {
|
|
3132
|
-
return JSON.stringify(
|
|
3133
|
-
PrefixMessagesAssistantMessage$outboundSchema.parse(
|
|
3134
|
-
prefixMessagesAssistantMessage,
|
|
3135
|
-
),
|
|
3136
|
-
);
|
|
3137
|
-
}
|
|
3138
|
-
export function prefixMessagesAssistantMessageFromJSON(
|
|
3139
|
-
jsonString: string,
|
|
3140
|
-
): SafeParseResult<PrefixMessagesAssistantMessage, SDKValidationError> {
|
|
3141
|
-
return safeParse(
|
|
3142
|
-
jsonString,
|
|
3143
|
-
(x) => PrefixMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3144
|
-
`Failed to parse 'PrefixMessagesAssistantMessage' from JSON`,
|
|
3145
|
-
);
|
|
3146
|
-
}
|
|
3147
|
-
|
|
3148
|
-
/** @internal */
|
|
3149
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema:
|
|
3150
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> = z
|
|
3151
|
-
.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyType);
|
|
3152
|
-
/** @internal */
|
|
3153
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema:
|
|
3154
|
-
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> =
|
|
3155
|
-
DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
3156
|
-
|
|
3157
|
-
/** @internal */
|
|
3158
|
-
export const DeploymentStream2DeploymentsTtl$inboundSchema: z.ZodNativeEnum<
|
|
3159
|
-
typeof DeploymentStream2DeploymentsTtl
|
|
3160
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsTtl);
|
|
3161
|
-
/** @internal */
|
|
3162
|
-
export const DeploymentStream2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
|
|
3163
|
-
typeof DeploymentStream2DeploymentsTtl
|
|
3164
|
-
> = DeploymentStream2DeploymentsTtl$inboundSchema;
|
|
3165
|
-
|
|
3166
|
-
/** @internal */
|
|
3167
|
-
export const DeploymentStream2DeploymentsCacheControl$inboundSchema: z.ZodType<
|
|
3168
|
-
DeploymentStream2DeploymentsCacheControl,
|
|
3169
|
-
z.ZodTypeDef,
|
|
3170
|
-
unknown
|
|
3171
|
-
> = z.object({
|
|
3172
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
|
|
3173
|
-
ttl: DeploymentStream2DeploymentsTtl$inboundSchema.default("5m"),
|
|
3174
|
-
});
|
|
3175
|
-
/** @internal */
|
|
3176
|
-
export type DeploymentStream2DeploymentsCacheControl$Outbound = {
|
|
3177
|
-
type: string;
|
|
3178
|
-
ttl: string;
|
|
3179
|
-
};
|
|
3180
|
-
|
|
3181
|
-
/** @internal */
|
|
3182
|
-
export const DeploymentStream2DeploymentsCacheControl$outboundSchema: z.ZodType<
|
|
3183
|
-
DeploymentStream2DeploymentsCacheControl$Outbound,
|
|
3184
|
-
z.ZodTypeDef,
|
|
3185
|
-
DeploymentStream2DeploymentsCacheControl
|
|
3186
|
-
> = z.object({
|
|
3187
|
-
type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
3188
|
-
ttl: DeploymentStream2DeploymentsTtl$outboundSchema.default("5m"),
|
|
3189
|
-
});
|
|
3190
|
-
|
|
3191
|
-
export function deploymentStream2DeploymentsCacheControlToJSON(
|
|
3192
|
-
deploymentStream2DeploymentsCacheControl:
|
|
3193
|
-
DeploymentStream2DeploymentsCacheControl,
|
|
3194
|
-
): string {
|
|
3195
|
-
return JSON.stringify(
|
|
3196
|
-
DeploymentStream2DeploymentsCacheControl$outboundSchema.parse(
|
|
3197
|
-
deploymentStream2DeploymentsCacheControl,
|
|
3198
|
-
),
|
|
3199
|
-
);
|
|
3200
|
-
}
|
|
3201
|
-
export function deploymentStream2DeploymentsCacheControlFromJSON(
|
|
3202
|
-
jsonString: string,
|
|
3203
|
-
): SafeParseResult<
|
|
3204
|
-
DeploymentStream2DeploymentsCacheControl,
|
|
3205
|
-
SDKValidationError
|
|
3206
|
-
> {
|
|
3207
|
-
return safeParse(
|
|
3208
|
-
jsonString,
|
|
3209
|
-
(x) =>
|
|
3210
|
-
DeploymentStream2DeploymentsCacheControl$inboundSchema.parse(
|
|
3211
|
-
JSON.parse(x),
|
|
3212
|
-
),
|
|
3213
|
-
`Failed to parse 'DeploymentStream2DeploymentsCacheControl' from JSON`,
|
|
3214
|
-
);
|
|
3215
|
-
}
|
|
3216
|
-
|
|
3217
|
-
/** @internal */
|
|
3218
|
-
export const DeploymentStream24$inboundSchema: z.ZodType<
|
|
3219
|
-
DeploymentStream24,
|
|
3220
|
-
z.ZodTypeDef,
|
|
3221
|
-
unknown
|
|
3222
|
-
> = z.object({
|
|
3223
|
-
type: z.literal("file"),
|
|
3224
|
-
cache_control: z.lazy(() =>
|
|
3225
|
-
DeploymentStream2DeploymentsCacheControl$inboundSchema
|
|
2052
|
+
tool_calls: z.array(
|
|
2053
|
+
z.lazy(() => DeploymentStreamPrefixMessagesToolCalls$inboundSchema),
|
|
3226
2054
|
).optional(),
|
|
3227
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
3228
2055
|
}).transform((v) => {
|
|
3229
2056
|
return remap$(v, {
|
|
3230
|
-
"
|
|
3231
|
-
});
|
|
3232
|
-
});
|
|
3233
|
-
/** @internal */
|
|
3234
|
-
export type
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
2057
|
+
"tool_calls": "toolCalls",
|
|
2058
|
+
});
|
|
2059
|
+
});
|
|
2060
|
+
/** @internal */
|
|
2061
|
+
export type PrefixMessagesAssistantMessage$Outbound = {
|
|
2062
|
+
content?:
|
|
2063
|
+
| string
|
|
2064
|
+
| Array<
|
|
2065
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2066
|
+
| components.RefusalPartSchema$Outbound
|
|
2067
|
+
| components.ReasoningPartSchema$Outbound
|
|
2068
|
+
| components.RedactedReasoningPartSchema$Outbound
|
|
2069
|
+
>
|
|
2070
|
+
| null
|
|
2071
|
+
| undefined;
|
|
2072
|
+
refusal?: string | null | undefined;
|
|
2073
|
+
role: "assistant";
|
|
2074
|
+
name?: string | undefined;
|
|
2075
|
+
audio?: PrefixMessagesAudio$Outbound | null | undefined;
|
|
2076
|
+
tool_calls?:
|
|
2077
|
+
| Array<DeploymentStreamPrefixMessagesToolCalls$Outbound>
|
|
2078
|
+
| undefined;
|
|
3238
2079
|
};
|
|
3239
2080
|
|
|
3240
2081
|
/** @internal */
|
|
3241
|
-
export const
|
|
3242
|
-
|
|
2082
|
+
export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
2083
|
+
PrefixMessagesAssistantMessage$Outbound,
|
|
3243
2084
|
z.ZodTypeDef,
|
|
3244
|
-
|
|
2085
|
+
PrefixMessagesAssistantMessage
|
|
3245
2086
|
> = z.object({
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
2087
|
+
content: z.nullable(
|
|
2088
|
+
z.union([
|
|
2089
|
+
z.string(),
|
|
2090
|
+
z.array(
|
|
2091
|
+
z.union([
|
|
2092
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2093
|
+
z.object({ type: z.literal("text") }),
|
|
2094
|
+
),
|
|
2095
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2096
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2097
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2098
|
+
]),
|
|
2099
|
+
),
|
|
2100
|
+
]),
|
|
2101
|
+
).optional(),
|
|
2102
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2103
|
+
role: z.literal("assistant"),
|
|
2104
|
+
name: z.string().optional(),
|
|
2105
|
+
audio: z.nullable(z.lazy(() => PrefixMessagesAudio$outboundSchema))
|
|
2106
|
+
.optional(),
|
|
2107
|
+
toolCalls: z.array(
|
|
2108
|
+
z.lazy(() => DeploymentStreamPrefixMessagesToolCalls$outboundSchema),
|
|
3249
2109
|
).optional(),
|
|
3250
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
3251
2110
|
}).transform((v) => {
|
|
3252
2111
|
return remap$(v, {
|
|
3253
|
-
|
|
2112
|
+
toolCalls: "tool_calls",
|
|
3254
2113
|
});
|
|
3255
2114
|
});
|
|
3256
2115
|
|
|
3257
|
-
export function
|
|
3258
|
-
|
|
2116
|
+
export function prefixMessagesAssistantMessageToJSON(
|
|
2117
|
+
prefixMessagesAssistantMessage: PrefixMessagesAssistantMessage,
|
|
3259
2118
|
): string {
|
|
3260
2119
|
return JSON.stringify(
|
|
3261
|
-
|
|
2120
|
+
PrefixMessagesAssistantMessage$outboundSchema.parse(
|
|
2121
|
+
prefixMessagesAssistantMessage,
|
|
2122
|
+
),
|
|
3262
2123
|
);
|
|
3263
2124
|
}
|
|
3264
|
-
export function
|
|
2125
|
+
export function prefixMessagesAssistantMessageFromJSON(
|
|
3265
2126
|
jsonString: string,
|
|
3266
|
-
): SafeParseResult<
|
|
2127
|
+
): SafeParseResult<PrefixMessagesAssistantMessage, SDKValidationError> {
|
|
3267
2128
|
return safeParse(
|
|
3268
2129
|
jsonString,
|
|
3269
|
-
(x) =>
|
|
3270
|
-
`Failed to parse '
|
|
2130
|
+
(x) => PrefixMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2131
|
+
`Failed to parse 'PrefixMessagesAssistantMessage' from JSON`,
|
|
3271
2132
|
);
|
|
3272
2133
|
}
|
|
3273
2134
|
|
|
@@ -3334,112 +2195,108 @@ export function deploymentStream2CacheControlFromJSON(
|
|
|
3334
2195
|
}
|
|
3335
2196
|
|
|
3336
2197
|
/** @internal */
|
|
3337
|
-
export const
|
|
3338
|
-
|
|
2198
|
+
export const DeploymentStream24$inboundSchema: z.ZodType<
|
|
2199
|
+
DeploymentStream24,
|
|
3339
2200
|
z.ZodTypeDef,
|
|
3340
2201
|
unknown
|
|
3341
2202
|
> = z.object({
|
|
3342
|
-
type: z.literal("
|
|
3343
|
-
text: z.string(),
|
|
2203
|
+
type: z.literal("file"),
|
|
3344
2204
|
cache_control: z.lazy(() => DeploymentStream2CacheControl$inboundSchema)
|
|
3345
2205
|
.optional(),
|
|
2206
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
3346
2207
|
}).transform((v) => {
|
|
3347
2208
|
return remap$(v, {
|
|
3348
2209
|
"cache_control": "cacheControl",
|
|
3349
2210
|
});
|
|
3350
2211
|
});
|
|
3351
2212
|
/** @internal */
|
|
3352
|
-
export type
|
|
3353
|
-
type: "
|
|
3354
|
-
text: string;
|
|
2213
|
+
export type DeploymentStream24$Outbound = {
|
|
2214
|
+
type: "file";
|
|
3355
2215
|
cache_control?: DeploymentStream2CacheControl$Outbound | undefined;
|
|
2216
|
+
file: components.FileContentPartSchema$Outbound;
|
|
3356
2217
|
};
|
|
3357
2218
|
|
|
3358
2219
|
/** @internal */
|
|
3359
|
-
export const
|
|
3360
|
-
|
|
2220
|
+
export const DeploymentStream24$outboundSchema: z.ZodType<
|
|
2221
|
+
DeploymentStream24$Outbound,
|
|
3361
2222
|
z.ZodTypeDef,
|
|
3362
|
-
|
|
2223
|
+
DeploymentStream24
|
|
3363
2224
|
> = z.object({
|
|
3364
|
-
type: z.literal("
|
|
3365
|
-
text: z.string(),
|
|
2225
|
+
type: z.literal("file"),
|
|
3366
2226
|
cacheControl: z.lazy(() => DeploymentStream2CacheControl$outboundSchema)
|
|
3367
2227
|
.optional(),
|
|
2228
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
3368
2229
|
}).transform((v) => {
|
|
3369
2230
|
return remap$(v, {
|
|
3370
2231
|
cacheControl: "cache_control",
|
|
3371
2232
|
});
|
|
3372
2233
|
});
|
|
3373
2234
|
|
|
3374
|
-
export function
|
|
3375
|
-
|
|
2235
|
+
export function deploymentStream24ToJSON(
|
|
2236
|
+
deploymentStream24: DeploymentStream24,
|
|
3376
2237
|
): string {
|
|
3377
2238
|
return JSON.stringify(
|
|
3378
|
-
|
|
2239
|
+
DeploymentStream24$outboundSchema.parse(deploymentStream24),
|
|
3379
2240
|
);
|
|
3380
2241
|
}
|
|
3381
|
-
export function
|
|
2242
|
+
export function deploymentStream24FromJSON(
|
|
3382
2243
|
jsonString: string,
|
|
3383
|
-
): SafeParseResult<
|
|
2244
|
+
): SafeParseResult<DeploymentStream24, SDKValidationError> {
|
|
3384
2245
|
return safeParse(
|
|
3385
2246
|
jsonString,
|
|
3386
|
-
(x) =>
|
|
3387
|
-
`Failed to parse '
|
|
2247
|
+
(x) => DeploymentStream24$inboundSchema.parse(JSON.parse(x)),
|
|
2248
|
+
`Failed to parse 'DeploymentStream24' from JSON`,
|
|
3388
2249
|
);
|
|
3389
2250
|
}
|
|
3390
2251
|
|
|
3391
2252
|
/** @internal */
|
|
3392
|
-
export const
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
2253
|
+
export const DeploymentStreamContent2$inboundSchema: z.ZodType<
|
|
2254
|
+
DeploymentStreamContent2,
|
|
2255
|
+
z.ZodTypeDef,
|
|
2256
|
+
unknown
|
|
2257
|
+
> = z.union([
|
|
2258
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2259
|
+
z.object({ type: z.literal("text") }),
|
|
2260
|
+
),
|
|
2261
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2262
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2263
|
+
z.lazy(() => DeploymentStream24$inboundSchema),
|
|
2264
|
+
]);
|
|
3400
2265
|
/** @internal */
|
|
3401
|
-
export type
|
|
3402
|
-
|
|
|
2266
|
+
export type DeploymentStreamContent2$Outbound =
|
|
2267
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3403
2268
|
| components.ImageContentPartSchema$Outbound
|
|
3404
2269
|
| components.AudioContentPartSchema$Outbound
|
|
3405
2270
|
| DeploymentStream24$Outbound;
|
|
3406
2271
|
|
|
3407
2272
|
/** @internal */
|
|
3408
|
-
export const
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
z.
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
2273
|
+
export const DeploymentStreamContent2$outboundSchema: z.ZodType<
|
|
2274
|
+
DeploymentStreamContent2$Outbound,
|
|
2275
|
+
z.ZodTypeDef,
|
|
2276
|
+
DeploymentStreamContent2
|
|
2277
|
+
> = z.union([
|
|
2278
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2279
|
+
z.object({ type: z.literal("text") }),
|
|
2280
|
+
),
|
|
2281
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2282
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2283
|
+
z.lazy(() => DeploymentStream24$outboundSchema),
|
|
2284
|
+
]);
|
|
3419
2285
|
|
|
3420
|
-
export function
|
|
3421
|
-
|
|
3422
|
-
DeploymentStreamContentDeploymentsRequest2,
|
|
2286
|
+
export function deploymentStreamContent2ToJSON(
|
|
2287
|
+
deploymentStreamContent2: DeploymentStreamContent2,
|
|
3423
2288
|
): string {
|
|
3424
2289
|
return JSON.stringify(
|
|
3425
|
-
|
|
3426
|
-
deploymentStreamContentDeploymentsRequest2,
|
|
3427
|
-
),
|
|
2290
|
+
DeploymentStreamContent2$outboundSchema.parse(deploymentStreamContent2),
|
|
3428
2291
|
);
|
|
3429
2292
|
}
|
|
3430
|
-
export function
|
|
2293
|
+
export function deploymentStreamContent2FromJSON(
|
|
3431
2294
|
jsonString: string,
|
|
3432
|
-
): SafeParseResult<
|
|
3433
|
-
DeploymentStreamContentDeploymentsRequest2,
|
|
3434
|
-
SDKValidationError
|
|
3435
|
-
> {
|
|
2295
|
+
): SafeParseResult<DeploymentStreamContent2, SDKValidationError> {
|
|
3436
2296
|
return safeParse(
|
|
3437
2297
|
jsonString,
|
|
3438
|
-
(x) =>
|
|
3439
|
-
|
|
3440
|
-
JSON.parse(x),
|
|
3441
|
-
),
|
|
3442
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequest2' from JSON`,
|
|
2298
|
+
(x) => DeploymentStreamContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2299
|
+
`Failed to parse 'DeploymentStreamContent2' from JSON`,
|
|
3443
2300
|
);
|
|
3444
2301
|
}
|
|
3445
2302
|
|
|
@@ -3451,18 +2308,22 @@ export const DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSche
|
|
|
3451
2308
|
unknown
|
|
3452
2309
|
> = z.union([
|
|
3453
2310
|
z.string(),
|
|
3454
|
-
z.array(
|
|
3455
|
-
z.
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
2311
|
+
z.array(
|
|
2312
|
+
z.union([
|
|
2313
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2314
|
+
z.object({ type: z.literal("text") }),
|
|
2315
|
+
),
|
|
2316
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2317
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2318
|
+
z.lazy(() => DeploymentStream24$inboundSchema),
|
|
2319
|
+
]),
|
|
2320
|
+
),
|
|
3460
2321
|
]);
|
|
3461
2322
|
/** @internal */
|
|
3462
2323
|
export type DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound =
|
|
3463
2324
|
| string
|
|
3464
2325
|
| Array<
|
|
3465
|
-
|
|
|
2326
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3466
2327
|
| components.ImageContentPartSchema$Outbound
|
|
3467
2328
|
| components.AudioContentPartSchema$Outbound
|
|
3468
2329
|
| DeploymentStream24$Outbound
|
|
@@ -3472,254 +2333,119 @@ export type DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound =
|
|
|
3472
2333
|
export const DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema:
|
|
3473
2334
|
z.ZodType<
|
|
3474
2335
|
DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound,
|
|
3475
|
-
z.ZodTypeDef,
|
|
3476
|
-
DeploymentStreamPrefixMessagesDeploymentsRequestContent
|
|
3477
|
-
> = z.union([
|
|
3478
|
-
z.string(),
|
|
3479
|
-
z.array(
|
|
3480
|
-
z.
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
): string {
|
|
3491
|
-
return JSON.stringify(
|
|
3492
|
-
DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
3493
|
-
.parse(deploymentStreamPrefixMessagesDeploymentsRequestContent),
|
|
3494
|
-
);
|
|
3495
|
-
}
|
|
3496
|
-
export function deploymentStreamPrefixMessagesDeploymentsRequestContentFromJSON(
|
|
3497
|
-
jsonString: string,
|
|
3498
|
-
): SafeParseResult<
|
|
3499
|
-
DeploymentStreamPrefixMessagesDeploymentsRequestContent,
|
|
3500
|
-
SDKValidationError
|
|
3501
|
-
> {
|
|
3502
|
-
return safeParse(
|
|
3503
|
-
jsonString,
|
|
3504
|
-
(x) =>
|
|
3505
|
-
DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema
|
|
3506
|
-
.parse(JSON.parse(x)),
|
|
3507
|
-
`Failed to parse 'DeploymentStreamPrefixMessagesDeploymentsRequestContent' from JSON`,
|
|
3508
|
-
);
|
|
3509
|
-
}
|
|
3510
|
-
|
|
3511
|
-
/** @internal */
|
|
3512
|
-
export const PrefixMessagesUserMessage$inboundSchema: z.ZodType<
|
|
3513
|
-
PrefixMessagesUserMessage,
|
|
3514
|
-
z.ZodTypeDef,
|
|
3515
|
-
unknown
|
|
3516
|
-
> = z.object({
|
|
3517
|
-
role: z.literal("user"),
|
|
3518
|
-
name: z.string().optional(),
|
|
3519
|
-
content: z.union([
|
|
3520
|
-
z.string(),
|
|
3521
|
-
z.array(z.union([
|
|
3522
|
-
z.lazy(() => DeploymentStream21$inboundSchema),
|
|
3523
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
3524
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
3525
|
-
z.lazy(() => DeploymentStream24$inboundSchema),
|
|
3526
|
-
])),
|
|
3527
|
-
]),
|
|
3528
|
-
});
|
|
3529
|
-
/** @internal */
|
|
3530
|
-
export type PrefixMessagesUserMessage$Outbound = {
|
|
3531
|
-
role: "user";
|
|
3532
|
-
name?: string | undefined;
|
|
3533
|
-
content:
|
|
3534
|
-
| string
|
|
3535
|
-
| Array<
|
|
3536
|
-
| DeploymentStream21$Outbound
|
|
3537
|
-
| components.ImageContentPartSchema$Outbound
|
|
3538
|
-
| components.AudioContentPartSchema$Outbound
|
|
3539
|
-
| DeploymentStream24$Outbound
|
|
3540
|
-
>;
|
|
3541
|
-
};
|
|
3542
|
-
|
|
3543
|
-
/** @internal */
|
|
3544
|
-
export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
|
|
3545
|
-
PrefixMessagesUserMessage$Outbound,
|
|
3546
|
-
z.ZodTypeDef,
|
|
3547
|
-
PrefixMessagesUserMessage
|
|
3548
|
-
> = z.object({
|
|
3549
|
-
role: z.literal("user"),
|
|
3550
|
-
name: z.string().optional(),
|
|
3551
|
-
content: z.union([
|
|
3552
|
-
z.string(),
|
|
3553
|
-
z.array(z.union([
|
|
3554
|
-
z.lazy(() => DeploymentStream21$outboundSchema),
|
|
3555
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
3556
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
3557
|
-
z.lazy(() => DeploymentStream24$outboundSchema),
|
|
3558
|
-
])),
|
|
3559
|
-
]),
|
|
3560
|
-
});
|
|
3561
|
-
|
|
3562
|
-
export function prefixMessagesUserMessageToJSON(
|
|
3563
|
-
prefixMessagesUserMessage: PrefixMessagesUserMessage,
|
|
3564
|
-
): string {
|
|
3565
|
-
return JSON.stringify(
|
|
3566
|
-
PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
|
|
3567
|
-
);
|
|
3568
|
-
}
|
|
3569
|
-
export function prefixMessagesUserMessageFromJSON(
|
|
3570
|
-
jsonString: string,
|
|
3571
|
-
): SafeParseResult<PrefixMessagesUserMessage, SDKValidationError> {
|
|
3572
|
-
return safeParse(
|
|
3573
|
-
jsonString,
|
|
3574
|
-
(x) => PrefixMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3575
|
-
`Failed to parse 'PrefixMessagesUserMessage' from JSON`,
|
|
3576
|
-
);
|
|
3577
|
-
}
|
|
3578
|
-
|
|
3579
|
-
/** @internal */
|
|
3580
|
-
export const DeploymentStreamContentDeploymentsRequestType$inboundSchema:
|
|
3581
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsRequestType> = z
|
|
3582
|
-
.nativeEnum(DeploymentStreamContentDeploymentsRequestType);
|
|
3583
|
-
/** @internal */
|
|
3584
|
-
export const DeploymentStreamContentDeploymentsRequestType$outboundSchema:
|
|
3585
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsRequestType> =
|
|
3586
|
-
DeploymentStreamContentDeploymentsRequestType$inboundSchema;
|
|
3587
|
-
|
|
3588
|
-
/** @internal */
|
|
3589
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyType$inboundSchema:
|
|
3590
|
-
z.ZodNativeEnum<
|
|
3591
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyType
|
|
3592
|
-
> = z.nativeEnum(DeploymentStreamContentDeploymentsRequestRequestBodyType);
|
|
3593
|
-
/** @internal */
|
|
3594
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyType$outboundSchema:
|
|
3595
|
-
z.ZodNativeEnum<
|
|
3596
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyType
|
|
3597
|
-
> = DeploymentStreamContentDeploymentsRequestRequestBodyType$inboundSchema;
|
|
3598
|
-
|
|
3599
|
-
/** @internal */
|
|
3600
|
-
export const DeploymentStreamContentDeploymentsTtl$inboundSchema:
|
|
3601
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsTtl> = z.nativeEnum(
|
|
3602
|
-
DeploymentStreamContentDeploymentsTtl,
|
|
3603
|
-
);
|
|
3604
|
-
/** @internal */
|
|
3605
|
-
export const DeploymentStreamContentDeploymentsTtl$outboundSchema:
|
|
3606
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsTtl> =
|
|
3607
|
-
DeploymentStreamContentDeploymentsTtl$inboundSchema;
|
|
3608
|
-
|
|
3609
|
-
/** @internal */
|
|
3610
|
-
export const DeploymentStreamContentDeploymentsCacheControl$inboundSchema:
|
|
3611
|
-
z.ZodType<
|
|
3612
|
-
DeploymentStreamContentDeploymentsCacheControl,
|
|
3613
|
-
z.ZodTypeDef,
|
|
3614
|
-
unknown
|
|
3615
|
-
> = z.object({
|
|
3616
|
-
type:
|
|
3617
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyType$inboundSchema,
|
|
3618
|
-
ttl: DeploymentStreamContentDeploymentsTtl$inboundSchema.default("5m"),
|
|
3619
|
-
});
|
|
3620
|
-
/** @internal */
|
|
3621
|
-
export type DeploymentStreamContentDeploymentsCacheControl$Outbound = {
|
|
3622
|
-
type: string;
|
|
3623
|
-
ttl: string;
|
|
3624
|
-
};
|
|
3625
|
-
|
|
3626
|
-
/** @internal */
|
|
3627
|
-
export const DeploymentStreamContentDeploymentsCacheControl$outboundSchema:
|
|
3628
|
-
z.ZodType<
|
|
3629
|
-
DeploymentStreamContentDeploymentsCacheControl$Outbound,
|
|
3630
|
-
z.ZodTypeDef,
|
|
3631
|
-
DeploymentStreamContentDeploymentsCacheControl
|
|
3632
|
-
> = z.object({
|
|
3633
|
-
type:
|
|
3634
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyType$outboundSchema,
|
|
3635
|
-
ttl: DeploymentStreamContentDeploymentsTtl$outboundSchema.default("5m"),
|
|
3636
|
-
});
|
|
2336
|
+
z.ZodTypeDef,
|
|
2337
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent
|
|
2338
|
+
> = z.union([
|
|
2339
|
+
z.string(),
|
|
2340
|
+
z.array(
|
|
2341
|
+
z.union([
|
|
2342
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2343
|
+
z.object({ type: z.literal("text") }),
|
|
2344
|
+
),
|
|
2345
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2346
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2347
|
+
z.lazy(() => DeploymentStream24$outboundSchema),
|
|
2348
|
+
]),
|
|
2349
|
+
),
|
|
2350
|
+
]);
|
|
3637
2351
|
|
|
3638
|
-
export function
|
|
3639
|
-
|
|
3640
|
-
|
|
2352
|
+
export function deploymentStreamPrefixMessagesDeploymentsRequestContentToJSON(
|
|
2353
|
+
deploymentStreamPrefixMessagesDeploymentsRequestContent:
|
|
2354
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent,
|
|
3641
2355
|
): string {
|
|
3642
2356
|
return JSON.stringify(
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
),
|
|
2357
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
2358
|
+
.parse(deploymentStreamPrefixMessagesDeploymentsRequestContent),
|
|
3646
2359
|
);
|
|
3647
2360
|
}
|
|
3648
|
-
export function
|
|
2361
|
+
export function deploymentStreamPrefixMessagesDeploymentsRequestContentFromJSON(
|
|
3649
2362
|
jsonString: string,
|
|
3650
2363
|
): SafeParseResult<
|
|
3651
|
-
|
|
2364
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent,
|
|
3652
2365
|
SDKValidationError
|
|
3653
2366
|
> {
|
|
3654
2367
|
return safeParse(
|
|
3655
2368
|
jsonString,
|
|
3656
2369
|
(x) =>
|
|
3657
|
-
|
|
3658
|
-
JSON.parse(x),
|
|
3659
|
-
|
|
3660
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsCacheControl' from JSON`,
|
|
2370
|
+
DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema
|
|
2371
|
+
.parse(JSON.parse(x)),
|
|
2372
|
+
`Failed to parse 'DeploymentStreamPrefixMessagesDeploymentsRequestContent' from JSON`,
|
|
3661
2373
|
);
|
|
3662
2374
|
}
|
|
3663
2375
|
|
|
3664
2376
|
/** @internal */
|
|
3665
|
-
export const
|
|
3666
|
-
|
|
2377
|
+
export const PrefixMessagesUserMessage$inboundSchema: z.ZodType<
|
|
2378
|
+
PrefixMessagesUserMessage,
|
|
3667
2379
|
z.ZodTypeDef,
|
|
3668
2380
|
unknown
|
|
3669
2381
|
> = z.object({
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
2382
|
+
role: z.literal("user"),
|
|
2383
|
+
name: z.string().optional(),
|
|
2384
|
+
content: z.union([
|
|
2385
|
+
z.string(),
|
|
2386
|
+
z.array(
|
|
2387
|
+
z.union([
|
|
2388
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2389
|
+
z.object({ type: z.literal("text") }),
|
|
2390
|
+
),
|
|
2391
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2392
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2393
|
+
z.lazy(() => DeploymentStream24$inboundSchema),
|
|
2394
|
+
]),
|
|
2395
|
+
),
|
|
2396
|
+
]),
|
|
3679
2397
|
});
|
|
3680
2398
|
/** @internal */
|
|
3681
|
-
export type
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
|
3686
|
-
|
|
|
2399
|
+
export type PrefixMessagesUserMessage$Outbound = {
|
|
2400
|
+
role: "user";
|
|
2401
|
+
name?: string | undefined;
|
|
2402
|
+
content:
|
|
2403
|
+
| string
|
|
2404
|
+
| Array<
|
|
2405
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2406
|
+
| components.ImageContentPartSchema$Outbound
|
|
2407
|
+
| components.AudioContentPartSchema$Outbound
|
|
2408
|
+
| DeploymentStream24$Outbound
|
|
2409
|
+
>;
|
|
3687
2410
|
};
|
|
3688
2411
|
|
|
3689
2412
|
/** @internal */
|
|
3690
|
-
export const
|
|
3691
|
-
|
|
2413
|
+
export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
|
|
2414
|
+
PrefixMessagesUserMessage$Outbound,
|
|
3692
2415
|
z.ZodTypeDef,
|
|
3693
|
-
|
|
2416
|
+
PrefixMessagesUserMessage
|
|
3694
2417
|
> = z.object({
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
2418
|
+
role: z.literal("user"),
|
|
2419
|
+
name: z.string().optional(),
|
|
2420
|
+
content: z.union([
|
|
2421
|
+
z.string(),
|
|
2422
|
+
z.array(
|
|
2423
|
+
z.union([
|
|
2424
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2425
|
+
z.object({ type: z.literal("text") }),
|
|
2426
|
+
),
|
|
2427
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2428
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2429
|
+
z.lazy(() => DeploymentStream24$outboundSchema),
|
|
2430
|
+
]),
|
|
2431
|
+
),
|
|
2432
|
+
]),
|
|
3704
2433
|
});
|
|
3705
2434
|
|
|
3706
|
-
export function
|
|
3707
|
-
|
|
2435
|
+
export function prefixMessagesUserMessageToJSON(
|
|
2436
|
+
prefixMessagesUserMessage: PrefixMessagesUserMessage,
|
|
3708
2437
|
): string {
|
|
3709
2438
|
return JSON.stringify(
|
|
3710
|
-
|
|
3711
|
-
deploymentStreamContentDeployments2,
|
|
3712
|
-
),
|
|
2439
|
+
PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
|
|
3713
2440
|
);
|
|
3714
2441
|
}
|
|
3715
|
-
export function
|
|
2442
|
+
export function prefixMessagesUserMessageFromJSON(
|
|
3716
2443
|
jsonString: string,
|
|
3717
|
-
): SafeParseResult<
|
|
2444
|
+
): SafeParseResult<PrefixMessagesUserMessage, SDKValidationError> {
|
|
3718
2445
|
return safeParse(
|
|
3719
2446
|
jsonString,
|
|
3720
|
-
(x) =>
|
|
3721
|
-
|
|
3722
|
-
`Failed to parse 'DeploymentStreamContentDeployments2' from JSON`,
|
|
2447
|
+
(x) => PrefixMessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2448
|
+
`Failed to parse 'PrefixMessagesUserMessage' from JSON`,
|
|
3723
2449
|
);
|
|
3724
2450
|
}
|
|
3725
2451
|
|
|
@@ -3731,12 +2457,12 @@ export const DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema:
|
|
|
3731
2457
|
unknown
|
|
3732
2458
|
> = z.union([
|
|
3733
2459
|
z.string(),
|
|
3734
|
-
z.array(
|
|
2460
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3735
2461
|
]);
|
|
3736
2462
|
/** @internal */
|
|
3737
2463
|
export type DeploymentStreamPrefixMessagesDeploymentsContent$Outbound =
|
|
3738
2464
|
| string
|
|
3739
|
-
| Array<
|
|
2465
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3740
2466
|
|
|
3741
2467
|
/** @internal */
|
|
3742
2468
|
export const DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema:
|
|
@@ -3746,7 +2472,7 @@ export const DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema:
|
|
|
3746
2472
|
DeploymentStreamPrefixMessagesDeploymentsContent
|
|
3747
2473
|
> = z.union([
|
|
3748
2474
|
z.string(),
|
|
3749
|
-
z.array(
|
|
2475
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3750
2476
|
]);
|
|
3751
2477
|
|
|
3752
2478
|
export function deploymentStreamPrefixMessagesDeploymentsContentToJSON(
|
|
@@ -3784,14 +2510,14 @@ export const PrefixMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3784
2510
|
role: z.literal("developer"),
|
|
3785
2511
|
content: z.union([
|
|
3786
2512
|
z.string(),
|
|
3787
|
-
z.array(
|
|
2513
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3788
2514
|
]),
|
|
3789
2515
|
name: z.string().optional(),
|
|
3790
2516
|
});
|
|
3791
2517
|
/** @internal */
|
|
3792
2518
|
export type PrefixMessagesDeveloperMessage$Outbound = {
|
|
3793
2519
|
role: "developer";
|
|
3794
|
-
content: string | Array<
|
|
2520
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3795
2521
|
name?: string | undefined;
|
|
3796
2522
|
};
|
|
3797
2523
|
|
|
@@ -3804,7 +2530,7 @@ export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3804
2530
|
role: z.literal("developer"),
|
|
3805
2531
|
content: z.union([
|
|
3806
2532
|
z.string(),
|
|
3807
|
-
z.array(
|
|
2533
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3808
2534
|
]),
|
|
3809
2535
|
name: z.string().optional(),
|
|
3810
2536
|
});
|
|
@@ -3828,134 +2554,6 @@ export function prefixMessagesDeveloperMessageFromJSON(
|
|
|
3828
2554
|
);
|
|
3829
2555
|
}
|
|
3830
2556
|
|
|
3831
|
-
/** @internal */
|
|
3832
|
-
export const DeploymentStreamContentType$inboundSchema: z.ZodNativeEnum<
|
|
3833
|
-
typeof DeploymentStreamContentType
|
|
3834
|
-
> = z.nativeEnum(DeploymentStreamContentType);
|
|
3835
|
-
/** @internal */
|
|
3836
|
-
export const DeploymentStreamContentType$outboundSchema: z.ZodNativeEnum<
|
|
3837
|
-
typeof DeploymentStreamContentType
|
|
3838
|
-
> = DeploymentStreamContentType$inboundSchema;
|
|
3839
|
-
|
|
3840
|
-
/** @internal */
|
|
3841
|
-
export const DeploymentStreamContentDeploymentsType$inboundSchema:
|
|
3842
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsType> = z.nativeEnum(
|
|
3843
|
-
DeploymentStreamContentDeploymentsType,
|
|
3844
|
-
);
|
|
3845
|
-
/** @internal */
|
|
3846
|
-
export const DeploymentStreamContentDeploymentsType$outboundSchema:
|
|
3847
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsType> =
|
|
3848
|
-
DeploymentStreamContentDeploymentsType$inboundSchema;
|
|
3849
|
-
|
|
3850
|
-
/** @internal */
|
|
3851
|
-
export const DeploymentStreamContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
3852
|
-
typeof DeploymentStreamContentTtl
|
|
3853
|
-
> = z.nativeEnum(DeploymentStreamContentTtl);
|
|
3854
|
-
/** @internal */
|
|
3855
|
-
export const DeploymentStreamContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
3856
|
-
typeof DeploymentStreamContentTtl
|
|
3857
|
-
> = DeploymentStreamContentTtl$inboundSchema;
|
|
3858
|
-
|
|
3859
|
-
/** @internal */
|
|
3860
|
-
export const DeploymentStreamContentCacheControl$inboundSchema: z.ZodType<
|
|
3861
|
-
DeploymentStreamContentCacheControl,
|
|
3862
|
-
z.ZodTypeDef,
|
|
3863
|
-
unknown
|
|
3864
|
-
> = z.object({
|
|
3865
|
-
type: DeploymentStreamContentDeploymentsType$inboundSchema,
|
|
3866
|
-
ttl: DeploymentStreamContentTtl$inboundSchema.default("5m"),
|
|
3867
|
-
});
|
|
3868
|
-
/** @internal */
|
|
3869
|
-
export type DeploymentStreamContentCacheControl$Outbound = {
|
|
3870
|
-
type: string;
|
|
3871
|
-
ttl: string;
|
|
3872
|
-
};
|
|
3873
|
-
|
|
3874
|
-
/** @internal */
|
|
3875
|
-
export const DeploymentStreamContentCacheControl$outboundSchema: z.ZodType<
|
|
3876
|
-
DeploymentStreamContentCacheControl$Outbound,
|
|
3877
|
-
z.ZodTypeDef,
|
|
3878
|
-
DeploymentStreamContentCacheControl
|
|
3879
|
-
> = z.object({
|
|
3880
|
-
type: DeploymentStreamContentDeploymentsType$outboundSchema,
|
|
3881
|
-
ttl: DeploymentStreamContentTtl$outboundSchema.default("5m"),
|
|
3882
|
-
});
|
|
3883
|
-
|
|
3884
|
-
export function deploymentStreamContentCacheControlToJSON(
|
|
3885
|
-
deploymentStreamContentCacheControl: DeploymentStreamContentCacheControl,
|
|
3886
|
-
): string {
|
|
3887
|
-
return JSON.stringify(
|
|
3888
|
-
DeploymentStreamContentCacheControl$outboundSchema.parse(
|
|
3889
|
-
deploymentStreamContentCacheControl,
|
|
3890
|
-
),
|
|
3891
|
-
);
|
|
3892
|
-
}
|
|
3893
|
-
export function deploymentStreamContentCacheControlFromJSON(
|
|
3894
|
-
jsonString: string,
|
|
3895
|
-
): SafeParseResult<DeploymentStreamContentCacheControl, SDKValidationError> {
|
|
3896
|
-
return safeParse(
|
|
3897
|
-
jsonString,
|
|
3898
|
-
(x) =>
|
|
3899
|
-
DeploymentStreamContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3900
|
-
`Failed to parse 'DeploymentStreamContentCacheControl' from JSON`,
|
|
3901
|
-
);
|
|
3902
|
-
}
|
|
3903
|
-
|
|
3904
|
-
/** @internal */
|
|
3905
|
-
export const DeploymentStreamContent2$inboundSchema: z.ZodType<
|
|
3906
|
-
DeploymentStreamContent2,
|
|
3907
|
-
z.ZodTypeDef,
|
|
3908
|
-
unknown
|
|
3909
|
-
> = z.object({
|
|
3910
|
-
type: DeploymentStreamContentType$inboundSchema,
|
|
3911
|
-
text: z.string(),
|
|
3912
|
-
cache_control: z.lazy(() => DeploymentStreamContentCacheControl$inboundSchema)
|
|
3913
|
-
.optional(),
|
|
3914
|
-
}).transform((v) => {
|
|
3915
|
-
return remap$(v, {
|
|
3916
|
-
"cache_control": "cacheControl",
|
|
3917
|
-
});
|
|
3918
|
-
});
|
|
3919
|
-
/** @internal */
|
|
3920
|
-
export type DeploymentStreamContent2$Outbound = {
|
|
3921
|
-
type: string;
|
|
3922
|
-
text: string;
|
|
3923
|
-
cache_control?: DeploymentStreamContentCacheControl$Outbound | undefined;
|
|
3924
|
-
};
|
|
3925
|
-
|
|
3926
|
-
/** @internal */
|
|
3927
|
-
export const DeploymentStreamContent2$outboundSchema: z.ZodType<
|
|
3928
|
-
DeploymentStreamContent2$Outbound,
|
|
3929
|
-
z.ZodTypeDef,
|
|
3930
|
-
DeploymentStreamContent2
|
|
3931
|
-
> = z.object({
|
|
3932
|
-
type: DeploymentStreamContentType$outboundSchema,
|
|
3933
|
-
text: z.string(),
|
|
3934
|
-
cacheControl: z.lazy(() => DeploymentStreamContentCacheControl$outboundSchema)
|
|
3935
|
-
.optional(),
|
|
3936
|
-
}).transform((v) => {
|
|
3937
|
-
return remap$(v, {
|
|
3938
|
-
cacheControl: "cache_control",
|
|
3939
|
-
});
|
|
3940
|
-
});
|
|
3941
|
-
|
|
3942
|
-
export function deploymentStreamContent2ToJSON(
|
|
3943
|
-
deploymentStreamContent2: DeploymentStreamContent2,
|
|
3944
|
-
): string {
|
|
3945
|
-
return JSON.stringify(
|
|
3946
|
-
DeploymentStreamContent2$outboundSchema.parse(deploymentStreamContent2),
|
|
3947
|
-
);
|
|
3948
|
-
}
|
|
3949
|
-
export function deploymentStreamContent2FromJSON(
|
|
3950
|
-
jsonString: string,
|
|
3951
|
-
): SafeParseResult<DeploymentStreamContent2, SDKValidationError> {
|
|
3952
|
-
return safeParse(
|
|
3953
|
-
jsonString,
|
|
3954
|
-
(x) => DeploymentStreamContent2$inboundSchema.parse(JSON.parse(x)),
|
|
3955
|
-
`Failed to parse 'DeploymentStreamContent2' from JSON`,
|
|
3956
|
-
);
|
|
3957
|
-
}
|
|
3958
|
-
|
|
3959
2557
|
/** @internal */
|
|
3960
2558
|
export const DeploymentStreamPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
3961
2559
|
DeploymentStreamPrefixMessagesContent,
|
|
@@ -3963,12 +2561,12 @@ export const DeploymentStreamPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
|
3963
2561
|
unknown
|
|
3964
2562
|
> = z.union([
|
|
3965
2563
|
z.string(),
|
|
3966
|
-
z.array(
|
|
2564
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3967
2565
|
]);
|
|
3968
2566
|
/** @internal */
|
|
3969
2567
|
export type DeploymentStreamPrefixMessagesContent$Outbound =
|
|
3970
2568
|
| string
|
|
3971
|
-
| Array<
|
|
2569
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3972
2570
|
|
|
3973
2571
|
/** @internal */
|
|
3974
2572
|
export const DeploymentStreamPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -3977,7 +2575,7 @@ export const DeploymentStreamPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
|
3977
2575
|
DeploymentStreamPrefixMessagesContent
|
|
3978
2576
|
> = z.union([
|
|
3979
2577
|
z.string(),
|
|
3980
|
-
z.array(
|
|
2578
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3981
2579
|
]);
|
|
3982
2580
|
|
|
3983
2581
|
export function deploymentStreamPrefixMessagesContentToJSON(
|
|
@@ -4009,14 +2607,14 @@ export const PrefixMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
4009
2607
|
role: z.literal("system"),
|
|
4010
2608
|
content: z.union([
|
|
4011
2609
|
z.string(),
|
|
4012
|
-
z.array(
|
|
2610
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4013
2611
|
]),
|
|
4014
2612
|
name: z.string().optional(),
|
|
4015
2613
|
});
|
|
4016
2614
|
/** @internal */
|
|
4017
2615
|
export type PrefixMessagesSystemMessage$Outbound = {
|
|
4018
2616
|
role: "system";
|
|
4019
|
-
content: string | Array<
|
|
2617
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
4020
2618
|
name?: string | undefined;
|
|
4021
2619
|
};
|
|
4022
2620
|
|
|
@@ -4029,7 +2627,7 @@ export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
4029
2627
|
role: z.literal("system"),
|
|
4030
2628
|
content: z.union([
|
|
4031
2629
|
z.string(),
|
|
4032
|
-
z.array(
|
|
2630
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4033
2631
|
]),
|
|
4034
2632
|
name: z.string().optional(),
|
|
4035
2633
|
});
|
|
@@ -4105,185 +2703,16 @@ export function deploymentStreamPrefixMessagesFromJSON(
|
|
|
4105
2703
|
);
|
|
4106
2704
|
}
|
|
4107
2705
|
|
|
4108
|
-
/** @internal */
|
|
4109
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Type$inboundSchema:
|
|
4110
|
-
z.ZodNativeEnum<
|
|
4111
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Type
|
|
4112
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessages5Type);
|
|
4113
|
-
/** @internal */
|
|
4114
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Type$outboundSchema:
|
|
4115
|
-
z.ZodNativeEnum<
|
|
4116
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Type
|
|
4117
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessages5Type$inboundSchema;
|
|
4118
|
-
|
|
4119
|
-
/** @internal */
|
|
4120
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema:
|
|
4121
|
-
z.ZodNativeEnum<
|
|
4122
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType
|
|
4123
|
-
> = z.nativeEnum(
|
|
4124
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType,
|
|
4125
|
-
);
|
|
4126
|
-
/** @internal */
|
|
4127
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema:
|
|
4128
|
-
z.ZodNativeEnum<
|
|
4129
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType
|
|
4130
|
-
> =
|
|
4131
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema;
|
|
4132
|
-
|
|
4133
|
-
/** @internal */
|
|
4134
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema:
|
|
4135
|
-
z.ZodNativeEnum<
|
|
4136
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl
|
|
4137
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl);
|
|
4138
|
-
/** @internal */
|
|
4139
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema:
|
|
4140
|
-
z.ZodNativeEnum<
|
|
4141
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl
|
|
4142
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema;
|
|
4143
|
-
|
|
4144
|
-
/** @internal */
|
|
4145
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema:
|
|
4146
|
-
z.ZodType<
|
|
4147
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
4148
|
-
z.ZodTypeDef,
|
|
4149
|
-
unknown
|
|
4150
|
-
> = z.object({
|
|
4151
|
-
type:
|
|
4152
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema,
|
|
4153
|
-
ttl:
|
|
4154
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema
|
|
4155
|
-
.default("5m"),
|
|
4156
|
-
});
|
|
4157
|
-
/** @internal */
|
|
4158
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound =
|
|
4159
|
-
{
|
|
4160
|
-
type: string;
|
|
4161
|
-
ttl: string;
|
|
4162
|
-
};
|
|
4163
|
-
|
|
4164
|
-
/** @internal */
|
|
4165
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema:
|
|
4166
|
-
z.ZodType<
|
|
4167
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound,
|
|
4168
|
-
z.ZodTypeDef,
|
|
4169
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl
|
|
4170
|
-
> = z.object({
|
|
4171
|
-
type:
|
|
4172
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema,
|
|
4173
|
-
ttl:
|
|
4174
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema
|
|
4175
|
-
.default("5m"),
|
|
4176
|
-
});
|
|
4177
|
-
|
|
4178
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages5CacheControlToJSON(
|
|
4179
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl:
|
|
4180
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
4181
|
-
): string {
|
|
4182
|
-
return JSON.stringify(
|
|
4183
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
|
|
4184
|
-
.parse(
|
|
4185
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
4186
|
-
),
|
|
4187
|
-
);
|
|
4188
|
-
}
|
|
4189
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages5CacheControlFromJSON(
|
|
4190
|
-
jsonString: string,
|
|
4191
|
-
): SafeParseResult<
|
|
4192
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
4193
|
-
SDKValidationError
|
|
4194
|
-
> {
|
|
4195
|
-
return safeParse(
|
|
4196
|
-
jsonString,
|
|
4197
|
-
(x) =>
|
|
4198
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
|
|
4199
|
-
.parse(JSON.parse(x)),
|
|
4200
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl' from JSON`,
|
|
4201
|
-
);
|
|
4202
|
-
}
|
|
4203
|
-
|
|
4204
|
-
/** @internal */
|
|
4205
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages51$inboundSchema:
|
|
4206
|
-
z.ZodType<
|
|
4207
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51,
|
|
4208
|
-
z.ZodTypeDef,
|
|
4209
|
-
unknown
|
|
4210
|
-
> = z.object({
|
|
4211
|
-
type:
|
|
4212
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5Type$inboundSchema,
|
|
4213
|
-
text: z.string(),
|
|
4214
|
-
cache_control: z.lazy(() =>
|
|
4215
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
|
|
4216
|
-
).optional(),
|
|
4217
|
-
}).transform((v) => {
|
|
4218
|
-
return remap$(v, {
|
|
4219
|
-
"cache_control": "cacheControl",
|
|
4220
|
-
});
|
|
4221
|
-
});
|
|
4222
|
-
/** @internal */
|
|
4223
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages51$Outbound =
|
|
4224
|
-
{
|
|
4225
|
-
type: string;
|
|
4226
|
-
text: string;
|
|
4227
|
-
cache_control?:
|
|
4228
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound
|
|
4229
|
-
| undefined;
|
|
4230
|
-
};
|
|
4231
|
-
|
|
4232
|
-
/** @internal */
|
|
4233
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages51$outboundSchema:
|
|
4234
|
-
z.ZodType<
|
|
4235
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$Outbound,
|
|
4236
|
-
z.ZodTypeDef,
|
|
4237
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51
|
|
4238
|
-
> = z.object({
|
|
4239
|
-
type:
|
|
4240
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5Type$outboundSchema,
|
|
4241
|
-
text: z.string(),
|
|
4242
|
-
cacheControl: z.lazy(() =>
|
|
4243
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
|
|
4244
|
-
).optional(),
|
|
4245
|
-
}).transform((v) => {
|
|
4246
|
-
return remap$(v, {
|
|
4247
|
-
cacheControl: "cache_control",
|
|
4248
|
-
});
|
|
4249
|
-
});
|
|
4250
|
-
|
|
4251
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages51ToJSON(
|
|
4252
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages51:
|
|
4253
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51,
|
|
4254
|
-
): string {
|
|
4255
|
-
return JSON.stringify(
|
|
4256
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$outboundSchema
|
|
4257
|
-
.parse(deploymentStream2DeploymentsRequestRequestBodyMessages51),
|
|
4258
|
-
);
|
|
4259
|
-
}
|
|
4260
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages51FromJSON(
|
|
4261
|
-
jsonString: string,
|
|
4262
|
-
): SafeParseResult<
|
|
4263
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51,
|
|
4264
|
-
SDKValidationError
|
|
4265
|
-
> {
|
|
4266
|
-
return safeParse(
|
|
4267
|
-
jsonString,
|
|
4268
|
-
(x) =>
|
|
4269
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$inboundSchema
|
|
4270
|
-
.parse(JSON.parse(x)),
|
|
4271
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyMessages51' from JSON`,
|
|
4272
|
-
);
|
|
4273
|
-
}
|
|
4274
|
-
|
|
4275
2706
|
/** @internal */
|
|
4276
2707
|
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$inboundSchema:
|
|
4277
2708
|
z.ZodType<
|
|
4278
2709
|
DeploymentStreamContentDeploymentsRequestRequestBodyMessages52,
|
|
4279
2710
|
z.ZodTypeDef,
|
|
4280
2711
|
unknown
|
|
4281
|
-
> =
|
|
4282
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$inboundSchema
|
|
4283
|
-
);
|
|
2712
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
4284
2713
|
/** @internal */
|
|
4285
2714
|
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$Outbound =
|
|
4286
|
-
|
|
2715
|
+
components.TextContentPartSchema$Outbound;
|
|
4287
2716
|
|
|
4288
2717
|
/** @internal */
|
|
4289
2718
|
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$outboundSchema:
|
|
@@ -4291,9 +2720,7 @@ export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$outb
|
|
|
4291
2720
|
DeploymentStreamContentDeploymentsRequestRequestBodyMessages52$Outbound,
|
|
4292
2721
|
z.ZodTypeDef,
|
|
4293
2722
|
DeploymentStreamContentDeploymentsRequestRequestBodyMessages52
|
|
4294
|
-
> =
|
|
4295
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$outboundSchema
|
|
4296
|
-
);
|
|
2723
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
4297
2724
|
|
|
4298
2725
|
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages52ToJSON(
|
|
4299
2726
|
deploymentStreamContentDeploymentsRequestRequestBodyMessages52:
|
|
@@ -4327,14 +2754,12 @@ export const DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$inbou
|
|
|
4327
2754
|
unknown
|
|
4328
2755
|
> = z.union([
|
|
4329
2756
|
z.string(),
|
|
4330
|
-
z.array(
|
|
4331
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$inboundSchema
|
|
4332
|
-
)),
|
|
2757
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4333
2758
|
]);
|
|
4334
2759
|
/** @internal */
|
|
4335
2760
|
export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$Outbound =
|
|
4336
2761
|
| string
|
|
4337
|
-
| Array<
|
|
2762
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
4338
2763
|
|
|
4339
2764
|
/** @internal */
|
|
4340
2765
|
export const DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
|
|
@@ -4344,9 +2769,7 @@ export const DeploymentStreamMessagesDeploymentsRequestRequestBody5Content$outbo
|
|
|
4344
2769
|
DeploymentStreamMessagesDeploymentsRequestRequestBody5Content
|
|
4345
2770
|
> = z.union([
|
|
4346
2771
|
z.string(),
|
|
4347
|
-
z.array(
|
|
4348
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$outboundSchema
|
|
4349
|
-
)),
|
|
2772
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4350
2773
|
]);
|
|
4351
2774
|
|
|
4352
2775
|
export function deploymentStreamMessagesDeploymentsRequestRequestBody5ContentToJSON(
|
|
@@ -4445,9 +2868,7 @@ export const DeploymentStreamMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
4445
2868
|
role: z.literal("tool"),
|
|
4446
2869
|
content: z.union([
|
|
4447
2870
|
z.string(),
|
|
4448
|
-
z.array(
|
|
4449
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$inboundSchema
|
|
4450
|
-
)),
|
|
2871
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4451
2872
|
]),
|
|
4452
2873
|
tool_call_id: z.string(),
|
|
4453
2874
|
cache_control: z.lazy(() =>
|
|
@@ -4462,9 +2883,7 @@ export const DeploymentStreamMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
4462
2883
|
/** @internal */
|
|
4463
2884
|
export type DeploymentStreamMessagesToolMessage$Outbound = {
|
|
4464
2885
|
role: "tool";
|
|
4465
|
-
content:
|
|
4466
|
-
| string
|
|
4467
|
-
| Array<DeploymentStream2DeploymentsRequestRequestBodyMessages51$Outbound>;
|
|
2886
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
4468
2887
|
tool_call_id: string;
|
|
4469
2888
|
cache_control?: DeploymentStreamMessagesCacheControl$Outbound | undefined;
|
|
4470
2889
|
};
|
|
@@ -4478,9 +2897,7 @@ export const DeploymentStreamMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
4478
2897
|
role: z.literal("tool"),
|
|
4479
2898
|
content: z.union([
|
|
4480
2899
|
z.string(),
|
|
4481
|
-
z.array(
|
|
4482
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages51$outboundSchema
|
|
4483
|
-
)),
|
|
2900
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4484
2901
|
]),
|
|
4485
2902
|
toolCallId: z.string(),
|
|
4486
2903
|
cacheControl: z.lazy(() =>
|
|
@@ -4514,215 +2931,62 @@ export function deploymentStreamMessagesToolMessageFromJSON(
|
|
|
4514
2931
|
}
|
|
4515
2932
|
|
|
4516
2933
|
/** @internal */
|
|
4517
|
-
export const
|
|
4518
|
-
z.ZodNativeEnum<
|
|
4519
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType
|
|
4520
|
-
> = z.nativeEnum(
|
|
4521
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType,
|
|
4522
|
-
);
|
|
4523
|
-
/** @internal */
|
|
4524
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema:
|
|
4525
|
-
z.ZodNativeEnum<
|
|
4526
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType
|
|
4527
|
-
> =
|
|
4528
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
|
|
4529
|
-
|
|
4530
|
-
/** @internal */
|
|
4531
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema:
|
|
4532
|
-
z.ZodNativeEnum<
|
|
4533
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl
|
|
4534
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl);
|
|
4535
|
-
/** @internal */
|
|
4536
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema:
|
|
4537
|
-
z.ZodNativeEnum<
|
|
4538
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl
|
|
4539
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema;
|
|
4540
|
-
|
|
4541
|
-
/** @internal */
|
|
4542
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema:
|
|
4543
|
-
z.ZodType<
|
|
4544
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4545
|
-
z.ZodTypeDef,
|
|
4546
|
-
unknown
|
|
4547
|
-
> = z.object({
|
|
4548
|
-
type:
|
|
4549
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
|
|
4550
|
-
ttl:
|
|
4551
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema
|
|
4552
|
-
.default("5m"),
|
|
4553
|
-
});
|
|
4554
|
-
/** @internal */
|
|
4555
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound =
|
|
4556
|
-
{
|
|
4557
|
-
type: string;
|
|
4558
|
-
ttl: string;
|
|
4559
|
-
};
|
|
4560
|
-
|
|
4561
|
-
/** @internal */
|
|
4562
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema:
|
|
4563
|
-
z.ZodType<
|
|
4564
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound,
|
|
4565
|
-
z.ZodTypeDef,
|
|
4566
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl
|
|
4567
|
-
> = z.object({
|
|
4568
|
-
type:
|
|
4569
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
|
|
4570
|
-
ttl:
|
|
4571
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema
|
|
4572
|
-
.default("5m"),
|
|
4573
|
-
});
|
|
4574
|
-
|
|
4575
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages4CacheControlToJSON(
|
|
4576
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl:
|
|
4577
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4578
|
-
): string {
|
|
4579
|
-
return JSON.stringify(
|
|
4580
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
|
|
4581
|
-
.parse(
|
|
4582
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4583
|
-
),
|
|
4584
|
-
);
|
|
4585
|
-
}
|
|
4586
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages4CacheControlFromJSON(
|
|
4587
|
-
jsonString: string,
|
|
4588
|
-
): SafeParseResult<
|
|
4589
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4590
|
-
SDKValidationError
|
|
4591
|
-
> {
|
|
4592
|
-
return safeParse(
|
|
4593
|
-
jsonString,
|
|
4594
|
-
(x) =>
|
|
4595
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
|
|
4596
|
-
.parse(JSON.parse(x)),
|
|
4597
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl' from JSON`,
|
|
4598
|
-
);
|
|
4599
|
-
}
|
|
4600
|
-
|
|
4601
|
-
/** @internal */
|
|
4602
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages1$inboundSchema:
|
|
4603
|
-
z.ZodType<
|
|
4604
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1,
|
|
4605
|
-
z.ZodTypeDef,
|
|
4606
|
-
unknown
|
|
4607
|
-
> = z.object({
|
|
4608
|
-
type: z.literal("text"),
|
|
4609
|
-
text: z.string(),
|
|
4610
|
-
cache_control: z.lazy(() =>
|
|
4611
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
|
|
4612
|
-
).optional(),
|
|
4613
|
-
}).transform((v) => {
|
|
4614
|
-
return remap$(v, {
|
|
4615
|
-
"cache_control": "cacheControl",
|
|
4616
|
-
});
|
|
4617
|
-
});
|
|
4618
|
-
/** @internal */
|
|
4619
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessages1$Outbound = {
|
|
4620
|
-
type: "text";
|
|
4621
|
-
text: string;
|
|
4622
|
-
cache_control?:
|
|
4623
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound
|
|
4624
|
-
| undefined;
|
|
4625
|
-
};
|
|
4626
|
-
|
|
4627
|
-
/** @internal */
|
|
4628
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages1$outboundSchema:
|
|
4629
|
-
z.ZodType<
|
|
4630
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1$Outbound,
|
|
4631
|
-
z.ZodTypeDef,
|
|
4632
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1
|
|
4633
|
-
> = z.object({
|
|
4634
|
-
type: z.literal("text"),
|
|
4635
|
-
text: z.string(),
|
|
4636
|
-
cacheControl: z.lazy(() =>
|
|
4637
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
|
|
4638
|
-
).optional(),
|
|
4639
|
-
}).transform((v) => {
|
|
4640
|
-
return remap$(v, {
|
|
4641
|
-
cacheControl: "cache_control",
|
|
4642
|
-
});
|
|
4643
|
-
});
|
|
4644
|
-
|
|
4645
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages1ToJSON(
|
|
4646
|
-
deploymentStream2DeploymentsRequestRequestBodyMessages1:
|
|
4647
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1,
|
|
4648
|
-
): string {
|
|
4649
|
-
return JSON.stringify(
|
|
4650
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1$outboundSchema
|
|
4651
|
-
.parse(deploymentStream2DeploymentsRequestRequestBodyMessages1),
|
|
4652
|
-
);
|
|
4653
|
-
}
|
|
4654
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessages1FromJSON(
|
|
4655
|
-
jsonString: string,
|
|
4656
|
-
): SafeParseResult<
|
|
4657
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1,
|
|
4658
|
-
SDKValidationError
|
|
4659
|
-
> {
|
|
4660
|
-
return safeParse(
|
|
4661
|
-
jsonString,
|
|
4662
|
-
(x) =>
|
|
4663
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages1$inboundSchema
|
|
4664
|
-
.parse(JSON.parse(x)),
|
|
4665
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyMessages1' from JSON`,
|
|
4666
|
-
);
|
|
4667
|
-
}
|
|
4668
|
-
|
|
4669
|
-
/** @internal */
|
|
4670
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages42$inboundSchema:
|
|
2934
|
+
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema:
|
|
4671
2935
|
z.ZodType<
|
|
4672
|
-
|
|
2936
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
4673
2937
|
z.ZodTypeDef,
|
|
4674
2938
|
unknown
|
|
4675
2939
|
> = z.union([
|
|
4676
|
-
|
|
4677
|
-
|
|
2940
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2941
|
+
z.object({ type: z.literal("text") }),
|
|
4678
2942
|
),
|
|
4679
2943
|
components.RefusalPartSchema$inboundSchema,
|
|
4680
2944
|
components.ReasoningPartSchema$inboundSchema,
|
|
4681
2945
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
4682
2946
|
]);
|
|
4683
2947
|
/** @internal */
|
|
4684
|
-
export type
|
|
4685
|
-
|
|
|
2948
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound =
|
|
2949
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4686
2950
|
| components.RefusalPartSchema$Outbound
|
|
4687
2951
|
| components.ReasoningPartSchema$Outbound
|
|
4688
2952
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
4689
2953
|
|
|
4690
2954
|
/** @internal */
|
|
4691
|
-
export const
|
|
2955
|
+
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
|
|
4692
2956
|
z.ZodType<
|
|
4693
|
-
|
|
2957
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound,
|
|
4694
2958
|
z.ZodTypeDef,
|
|
4695
|
-
|
|
2959
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2
|
|
4696
2960
|
> = z.union([
|
|
4697
|
-
|
|
4698
|
-
|
|
2961
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2962
|
+
z.object({ type: z.literal("text") }),
|
|
4699
2963
|
),
|
|
4700
2964
|
components.RefusalPartSchema$outboundSchema,
|
|
4701
2965
|
components.ReasoningPartSchema$outboundSchema,
|
|
4702
2966
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
4703
2967
|
]);
|
|
4704
2968
|
|
|
4705
|
-
export function
|
|
4706
|
-
|
|
4707
|
-
|
|
2969
|
+
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages2ToJSON(
|
|
2970
|
+
deploymentStreamContentDeploymentsRequestRequestBodyMessages2:
|
|
2971
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
4708
2972
|
): string {
|
|
4709
2973
|
return JSON.stringify(
|
|
4710
|
-
|
|
4711
|
-
.parse(
|
|
2974
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
2975
|
+
.parse(deploymentStreamContentDeploymentsRequestRequestBodyMessages2),
|
|
4712
2976
|
);
|
|
4713
2977
|
}
|
|
4714
|
-
export function
|
|
2978
|
+
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages2FromJSON(
|
|
4715
2979
|
jsonString: string,
|
|
4716
2980
|
): SafeParseResult<
|
|
4717
|
-
|
|
2981
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
4718
2982
|
SDKValidationError
|
|
4719
2983
|
> {
|
|
4720
2984
|
return safeParse(
|
|
4721
2985
|
jsonString,
|
|
4722
2986
|
(x) =>
|
|
4723
|
-
|
|
2987
|
+
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
4724
2988
|
.parse(JSON.parse(x)),
|
|
4725
|
-
`Failed to parse '
|
|
2989
|
+
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBodyMessages2' from JSON`,
|
|
4726
2990
|
);
|
|
4727
2991
|
}
|
|
4728
2992
|
|
|
@@ -4734,20 +2998,22 @@ export const DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$inboun
|
|
|
4734
2998
|
unknown
|
|
4735
2999
|
> = z.union([
|
|
4736
3000
|
z.string(),
|
|
4737
|
-
z.array(
|
|
4738
|
-
z.
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
3001
|
+
z.array(
|
|
3002
|
+
z.union([
|
|
3003
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3004
|
+
z.object({ type: z.literal("text") }),
|
|
3005
|
+
),
|
|
3006
|
+
components.RefusalPartSchema$inboundSchema,
|
|
3007
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
3008
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
3009
|
+
]),
|
|
3010
|
+
),
|
|
4745
3011
|
]);
|
|
4746
3012
|
/** @internal */
|
|
4747
3013
|
export type DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
4748
3014
|
| string
|
|
4749
3015
|
| Array<
|
|
4750
|
-
|
|
|
3016
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4751
3017
|
| components.RefusalPartSchema$Outbound
|
|
4752
3018
|
| components.ReasoningPartSchema$Outbound
|
|
4753
3019
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -4761,14 +3027,16 @@ export const DeploymentStreamMessagesDeploymentsRequestRequestBodyContent$outbou
|
|
|
4761
3027
|
DeploymentStreamMessagesDeploymentsRequestRequestBodyContent
|
|
4762
3028
|
> = z.union([
|
|
4763
3029
|
z.string(),
|
|
4764
|
-
z.array(
|
|
4765
|
-
z.
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
3030
|
+
z.array(
|
|
3031
|
+
z.union([
|
|
3032
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3033
|
+
z.object({ type: z.literal("text") }),
|
|
3034
|
+
),
|
|
3035
|
+
components.RefusalPartSchema$outboundSchema,
|
|
3036
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
3037
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3038
|
+
]),
|
|
3039
|
+
),
|
|
4772
3040
|
]);
|
|
4773
3041
|
|
|
4774
3042
|
export function deploymentStreamMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
@@ -4958,8 +3226,8 @@ export const DeploymentStreamMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
4958
3226
|
z.string(),
|
|
4959
3227
|
z.array(
|
|
4960
3228
|
z.union([
|
|
4961
|
-
|
|
4962
|
-
|
|
3229
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3230
|
+
z.object({ type: z.literal("text") }),
|
|
4963
3231
|
),
|
|
4964
3232
|
components.RefusalPartSchema$inboundSchema,
|
|
4965
3233
|
components.ReasoningPartSchema$inboundSchema,
|
|
@@ -4986,7 +3254,7 @@ export type DeploymentStreamMessagesAssistantMessage$Outbound = {
|
|
|
4986
3254
|
content?:
|
|
4987
3255
|
| string
|
|
4988
3256
|
| Array<
|
|
4989
|
-
|
|
|
3257
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4990
3258
|
| components.RefusalPartSchema$Outbound
|
|
4991
3259
|
| components.ReasoningPartSchema$Outbound
|
|
4992
3260
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -5011,8 +3279,8 @@ export const DeploymentStreamMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
5011
3279
|
z.string(),
|
|
5012
3280
|
z.array(
|
|
5013
3281
|
z.union([
|
|
5014
|
-
|
|
5015
|
-
|
|
3282
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3283
|
+
z.object({ type: z.literal("text") }),
|
|
5016
3284
|
),
|
|
5017
3285
|
components.RefusalPartSchema$outboundSchema,
|
|
5018
3286
|
components.ReasoningPartSchema$outboundSchema,
|
|
@@ -5062,87 +3330,71 @@ export function deploymentStreamMessagesAssistantMessageFromJSON(
|
|
|
5062
3330
|
}
|
|
5063
3331
|
|
|
5064
3332
|
/** @internal */
|
|
5065
|
-
export const
|
|
5066
|
-
z.ZodNativeEnum<
|
|
5067
|
-
|
|
5068
|
-
> = z.nativeEnum(
|
|
5069
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type,
|
|
5070
|
-
);
|
|
3333
|
+
export const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema:
|
|
3334
|
+
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> = z
|
|
3335
|
+
.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyType);
|
|
5071
3336
|
/** @internal */
|
|
5072
|
-
export const
|
|
5073
|
-
z.ZodNativeEnum<
|
|
5074
|
-
|
|
5075
|
-
> =
|
|
5076
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
|
|
3337
|
+
export const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema:
|
|
3338
|
+
z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType> =
|
|
3339
|
+
DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
5077
3340
|
|
|
5078
3341
|
/** @internal */
|
|
5079
|
-
export const
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessages3Ttl);
|
|
3342
|
+
export const DeploymentStream2DeploymentsTtl$inboundSchema: z.ZodNativeEnum<
|
|
3343
|
+
typeof DeploymentStream2DeploymentsTtl
|
|
3344
|
+
> = z.nativeEnum(DeploymentStream2DeploymentsTtl);
|
|
5083
3345
|
/** @internal */
|
|
5084
|
-
export const
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessages3Ttl$inboundSchema;
|
|
3346
|
+
export const DeploymentStream2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
|
|
3347
|
+
typeof DeploymentStream2DeploymentsTtl
|
|
3348
|
+
> = DeploymentStream2DeploymentsTtl$inboundSchema;
|
|
5088
3349
|
|
|
5089
3350
|
/** @internal */
|
|
5090
|
-
export const
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
ttl:
|
|
5099
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Ttl$inboundSchema
|
|
5100
|
-
.default("5m"),
|
|
5101
|
-
});
|
|
3351
|
+
export const DeploymentStream2DeploymentsCacheControl$inboundSchema: z.ZodType<
|
|
3352
|
+
DeploymentStream2DeploymentsCacheControl,
|
|
3353
|
+
z.ZodTypeDef,
|
|
3354
|
+
unknown
|
|
3355
|
+
> = z.object({
|
|
3356
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema,
|
|
3357
|
+
ttl: DeploymentStream2DeploymentsTtl$inboundSchema.default("5m"),
|
|
3358
|
+
});
|
|
5102
3359
|
/** @internal */
|
|
5103
|
-
export type
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
};
|
|
3360
|
+
export type DeploymentStream2DeploymentsCacheControl$Outbound = {
|
|
3361
|
+
type: string;
|
|
3362
|
+
ttl: string;
|
|
3363
|
+
};
|
|
5108
3364
|
|
|
5109
3365
|
/** @internal */
|
|
5110
|
-
export const
|
|
5111
|
-
|
|
5112
|
-
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
ttl:
|
|
5119
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Ttl$outboundSchema
|
|
5120
|
-
.default("5m"),
|
|
5121
|
-
});
|
|
3366
|
+
export const DeploymentStream2DeploymentsCacheControl$outboundSchema: z.ZodType<
|
|
3367
|
+
DeploymentStream2DeploymentsCacheControl$Outbound,
|
|
3368
|
+
z.ZodTypeDef,
|
|
3369
|
+
DeploymentStream2DeploymentsCacheControl
|
|
3370
|
+
> = z.object({
|
|
3371
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
3372
|
+
ttl: DeploymentStream2DeploymentsTtl$outboundSchema.default("5m"),
|
|
3373
|
+
});
|
|
5122
3374
|
|
|
5123
|
-
export function
|
|
5124
|
-
|
|
5125
|
-
|
|
3375
|
+
export function deploymentStream2DeploymentsCacheControlToJSON(
|
|
3376
|
+
deploymentStream2DeploymentsCacheControl:
|
|
3377
|
+
DeploymentStream2DeploymentsCacheControl,
|
|
5126
3378
|
): string {
|
|
5127
3379
|
return JSON.stringify(
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
),
|
|
3380
|
+
DeploymentStream2DeploymentsCacheControl$outboundSchema.parse(
|
|
3381
|
+
deploymentStream2DeploymentsCacheControl,
|
|
3382
|
+
),
|
|
5132
3383
|
);
|
|
5133
3384
|
}
|
|
5134
|
-
export function
|
|
3385
|
+
export function deploymentStream2DeploymentsCacheControlFromJSON(
|
|
5135
3386
|
jsonString: string,
|
|
5136
3387
|
): SafeParseResult<
|
|
5137
|
-
|
|
3388
|
+
DeploymentStream2DeploymentsCacheControl,
|
|
5138
3389
|
SDKValidationError
|
|
5139
3390
|
> {
|
|
5140
3391
|
return safeParse(
|
|
5141
3392
|
jsonString,
|
|
5142
3393
|
(x) =>
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
3394
|
+
DeploymentStream2DeploymentsCacheControl$inboundSchema.parse(
|
|
3395
|
+
JSON.parse(x),
|
|
3396
|
+
),
|
|
3397
|
+
`Failed to parse 'DeploymentStream2DeploymentsCacheControl' from JSON`,
|
|
5146
3398
|
);
|
|
5147
3399
|
}
|
|
5148
3400
|
|
|
@@ -5154,7 +3406,7 @@ export const DeploymentStream2Deployments4$inboundSchema: z.ZodType<
|
|
|
5154
3406
|
> = z.object({
|
|
5155
3407
|
type: z.literal("file"),
|
|
5156
3408
|
cache_control: z.lazy(() =>
|
|
5157
|
-
|
|
3409
|
+
DeploymentStream2DeploymentsCacheControl$inboundSchema
|
|
5158
3410
|
).optional(),
|
|
5159
3411
|
file: components.FileContentPartSchema$inboundSchema,
|
|
5160
3412
|
}).transform((v) => {
|
|
@@ -5165,254 +3417,105 @@ export const DeploymentStream2Deployments4$inboundSchema: z.ZodType<
|
|
|
5165
3417
|
/** @internal */
|
|
5166
3418
|
export type DeploymentStream2Deployments4$Outbound = {
|
|
5167
3419
|
type: "file";
|
|
5168
|
-
cache_control?:
|
|
5169
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessages3CacheControl$Outbound
|
|
5170
|
-
| undefined;
|
|
3420
|
+
cache_control?: DeploymentStream2DeploymentsCacheControl$Outbound | undefined;
|
|
5171
3421
|
file: components.FileContentPartSchema$Outbound;
|
|
5172
|
-
};
|
|
5173
|
-
|
|
5174
|
-
/** @internal */
|
|
5175
|
-
export const DeploymentStream2Deployments4$outboundSchema: z.ZodType<
|
|
5176
|
-
DeploymentStream2Deployments4$Outbound,
|
|
5177
|
-
z.ZodTypeDef,
|
|
5178
|
-
DeploymentStream2Deployments4
|
|
5179
|
-
> = z.object({
|
|
5180
|
-
type: z.literal("file"),
|
|
5181
|
-
cacheControl: z.lazy(() =>
|
|
5182
|
-
|
|
5183
|
-
).optional(),
|
|
5184
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
5185
|
-
}).transform((v) => {
|
|
5186
|
-
return remap$(v, {
|
|
5187
|
-
cacheControl: "cache_control",
|
|
5188
|
-
});
|
|
5189
|
-
});
|
|
5190
|
-
|
|
5191
|
-
export function deploymentStream2Deployments4ToJSON(
|
|
5192
|
-
deploymentStream2Deployments4: DeploymentStream2Deployments4,
|
|
5193
|
-
): string {
|
|
5194
|
-
return JSON.stringify(
|
|
5195
|
-
DeploymentStream2Deployments4$outboundSchema.parse(
|
|
5196
|
-
deploymentStream2Deployments4,
|
|
5197
|
-
),
|
|
5198
|
-
);
|
|
5199
|
-
}
|
|
5200
|
-
export function deploymentStream2Deployments4FromJSON(
|
|
5201
|
-
jsonString: string,
|
|
5202
|
-
): SafeParseResult<DeploymentStream2Deployments4, SDKValidationError> {
|
|
5203
|
-
return safeParse(
|
|
5204
|
-
jsonString,
|
|
5205
|
-
(x) => DeploymentStream2Deployments4$inboundSchema.parse(JSON.parse(x)),
|
|
5206
|
-
`Failed to parse 'DeploymentStream2Deployments4' from JSON`,
|
|
5207
|
-
);
|
|
5208
|
-
}
|
|
5209
|
-
|
|
5210
|
-
/** @internal */
|
|
5211
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema:
|
|
5212
|
-
z.ZodNativeEnum<
|
|
5213
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type
|
|
5214
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessages3Type);
|
|
5215
|
-
/** @internal */
|
|
5216
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema:
|
|
5217
|
-
z.ZodNativeEnum<
|
|
5218
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type
|
|
5219
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
|
|
5220
|
-
|
|
5221
|
-
/** @internal */
|
|
5222
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema:
|
|
5223
|
-
z.ZodNativeEnum<
|
|
5224
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl
|
|
5225
|
-
> = z.nativeEnum(DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl);
|
|
5226
|
-
/** @internal */
|
|
5227
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema:
|
|
5228
|
-
z.ZodNativeEnum<
|
|
5229
|
-
typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl
|
|
5230
|
-
> = DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema;
|
|
5231
|
-
|
|
5232
|
-
/** @internal */
|
|
5233
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema:
|
|
5234
|
-
z.ZodType<
|
|
5235
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
5236
|
-
z.ZodTypeDef,
|
|
5237
|
-
unknown
|
|
5238
|
-
> = z.object({
|
|
5239
|
-
type:
|
|
5240
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
|
|
5241
|
-
ttl: DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema
|
|
5242
|
-
.default("5m"),
|
|
5243
|
-
});
|
|
5244
|
-
/** @internal */
|
|
5245
|
-
export type DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound =
|
|
5246
|
-
{
|
|
5247
|
-
type: string;
|
|
5248
|
-
ttl: string;
|
|
5249
|
-
};
|
|
5250
|
-
|
|
5251
|
-
/** @internal */
|
|
5252
|
-
export const DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema:
|
|
5253
|
-
z.ZodType<
|
|
5254
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound,
|
|
5255
|
-
z.ZodTypeDef,
|
|
5256
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl
|
|
5257
|
-
> = z.object({
|
|
5258
|
-
type:
|
|
5259
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
|
|
5260
|
-
ttl:
|
|
5261
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema
|
|
5262
|
-
.default("5m"),
|
|
5263
|
-
});
|
|
5264
|
-
|
|
5265
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessagesCacheControlToJSON(
|
|
5266
|
-
deploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl:
|
|
5267
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
5268
|
-
): string {
|
|
5269
|
-
return JSON.stringify(
|
|
5270
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
|
|
5271
|
-
.parse(
|
|
5272
|
-
deploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
5273
|
-
),
|
|
5274
|
-
);
|
|
5275
|
-
}
|
|
5276
|
-
export function deploymentStream2DeploymentsRequestRequestBodyMessagesCacheControlFromJSON(
|
|
5277
|
-
jsonString: string,
|
|
5278
|
-
): SafeParseResult<
|
|
5279
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
5280
|
-
SDKValidationError
|
|
5281
|
-
> {
|
|
5282
|
-
return safeParse(
|
|
5283
|
-
jsonString,
|
|
5284
|
-
(x) =>
|
|
5285
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
|
|
5286
|
-
.parse(JSON.parse(x)),
|
|
5287
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl' from JSON`,
|
|
5288
|
-
);
|
|
5289
|
-
}
|
|
5290
|
-
|
|
5291
|
-
/** @internal */
|
|
5292
|
-
export const DeploymentStream2DeploymentsRequestRequestBody1$inboundSchema:
|
|
5293
|
-
z.ZodType<
|
|
5294
|
-
DeploymentStream2DeploymentsRequestRequestBody1,
|
|
5295
|
-
z.ZodTypeDef,
|
|
5296
|
-
unknown
|
|
5297
|
-
> = z.object({
|
|
5298
|
-
type: z.literal("text"),
|
|
5299
|
-
text: z.string(),
|
|
5300
|
-
cache_control: z.lazy(() =>
|
|
5301
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
|
|
5302
|
-
).optional(),
|
|
5303
|
-
}).transform((v) => {
|
|
5304
|
-
return remap$(v, {
|
|
5305
|
-
"cache_control": "cacheControl",
|
|
5306
|
-
});
|
|
5307
|
-
});
|
|
5308
|
-
/** @internal */
|
|
5309
|
-
export type DeploymentStream2DeploymentsRequestRequestBody1$Outbound = {
|
|
5310
|
-
type: "text";
|
|
5311
|
-
text: string;
|
|
5312
|
-
cache_control?:
|
|
5313
|
-
| DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound
|
|
5314
|
-
| undefined;
|
|
5315
|
-
};
|
|
5316
|
-
|
|
5317
|
-
/** @internal */
|
|
5318
|
-
export const DeploymentStream2DeploymentsRequestRequestBody1$outboundSchema:
|
|
5319
|
-
z.ZodType<
|
|
5320
|
-
DeploymentStream2DeploymentsRequestRequestBody1$Outbound,
|
|
5321
|
-
z.ZodTypeDef,
|
|
5322
|
-
DeploymentStream2DeploymentsRequestRequestBody1
|
|
5323
|
-
> = z.object({
|
|
5324
|
-
type: z.literal("text"),
|
|
5325
|
-
text: z.string(),
|
|
5326
|
-
cacheControl: z.lazy(() =>
|
|
5327
|
-
DeploymentStream2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
|
|
5328
|
-
).optional(),
|
|
5329
|
-
}).transform((v) => {
|
|
5330
|
-
return remap$(v, {
|
|
5331
|
-
cacheControl: "cache_control",
|
|
5332
|
-
});
|
|
3422
|
+
};
|
|
3423
|
+
|
|
3424
|
+
/** @internal */
|
|
3425
|
+
export const DeploymentStream2Deployments4$outboundSchema: z.ZodType<
|
|
3426
|
+
DeploymentStream2Deployments4$Outbound,
|
|
3427
|
+
z.ZodTypeDef,
|
|
3428
|
+
DeploymentStream2Deployments4
|
|
3429
|
+
> = z.object({
|
|
3430
|
+
type: z.literal("file"),
|
|
3431
|
+
cacheControl: z.lazy(() =>
|
|
3432
|
+
DeploymentStream2DeploymentsCacheControl$outboundSchema
|
|
3433
|
+
).optional(),
|
|
3434
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
3435
|
+
}).transform((v) => {
|
|
3436
|
+
return remap$(v, {
|
|
3437
|
+
cacheControl: "cache_control",
|
|
5333
3438
|
});
|
|
3439
|
+
});
|
|
5334
3440
|
|
|
5335
|
-
export function
|
|
5336
|
-
|
|
5337
|
-
DeploymentStream2DeploymentsRequestRequestBody1,
|
|
3441
|
+
export function deploymentStream2Deployments4ToJSON(
|
|
3442
|
+
deploymentStream2Deployments4: DeploymentStream2Deployments4,
|
|
5338
3443
|
): string {
|
|
5339
3444
|
return JSON.stringify(
|
|
5340
|
-
|
|
5341
|
-
|
|
3445
|
+
DeploymentStream2Deployments4$outboundSchema.parse(
|
|
3446
|
+
deploymentStream2Deployments4,
|
|
5342
3447
|
),
|
|
5343
3448
|
);
|
|
5344
3449
|
}
|
|
5345
|
-
export function
|
|
3450
|
+
export function deploymentStream2Deployments4FromJSON(
|
|
5346
3451
|
jsonString: string,
|
|
5347
|
-
): SafeParseResult<
|
|
5348
|
-
DeploymentStream2DeploymentsRequestRequestBody1,
|
|
5349
|
-
SDKValidationError
|
|
5350
|
-
> {
|
|
3452
|
+
): SafeParseResult<DeploymentStream2Deployments4, SDKValidationError> {
|
|
5351
3453
|
return safeParse(
|
|
5352
3454
|
jsonString,
|
|
5353
|
-
(x) =>
|
|
5354
|
-
|
|
5355
|
-
JSON.parse(x),
|
|
5356
|
-
),
|
|
5357
|
-
`Failed to parse 'DeploymentStream2DeploymentsRequestRequestBody1' from JSON`,
|
|
3455
|
+
(x) => DeploymentStream2Deployments4$inboundSchema.parse(JSON.parse(x)),
|
|
3456
|
+
`Failed to parse 'DeploymentStream2Deployments4' from JSON`,
|
|
5358
3457
|
);
|
|
5359
3458
|
}
|
|
5360
3459
|
|
|
5361
3460
|
/** @internal */
|
|
5362
|
-
export const
|
|
3461
|
+
export const DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema:
|
|
5363
3462
|
z.ZodType<
|
|
5364
|
-
|
|
3463
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2,
|
|
5365
3464
|
z.ZodTypeDef,
|
|
5366
3465
|
unknown
|
|
5367
3466
|
> = z.union([
|
|
5368
|
-
|
|
3467
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3468
|
+
z.object({ type: z.literal("text") }),
|
|
3469
|
+
),
|
|
5369
3470
|
components.ImageContentPartSchema$inboundSchema,
|
|
5370
3471
|
components.AudioContentPartSchema$inboundSchema,
|
|
5371
3472
|
z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
|
|
5372
3473
|
]);
|
|
5373
3474
|
/** @internal */
|
|
5374
|
-
export type
|
|
5375
|
-
|
|
|
3475
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound =
|
|
3476
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
5376
3477
|
| components.ImageContentPartSchema$Outbound
|
|
5377
3478
|
| components.AudioContentPartSchema$Outbound
|
|
5378
3479
|
| DeploymentStream2Deployments4$Outbound;
|
|
5379
3480
|
|
|
5380
3481
|
/** @internal */
|
|
5381
|
-
export const
|
|
3482
|
+
export const DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema:
|
|
5382
3483
|
z.ZodType<
|
|
5383
|
-
|
|
3484
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound,
|
|
5384
3485
|
z.ZodTypeDef,
|
|
5385
|
-
|
|
3486
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2
|
|
5386
3487
|
> = z.union([
|
|
5387
|
-
|
|
5388
|
-
|
|
3488
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3489
|
+
z.object({ type: z.literal("text") }),
|
|
5389
3490
|
),
|
|
5390
3491
|
components.ImageContentPartSchema$outboundSchema,
|
|
5391
3492
|
components.AudioContentPartSchema$outboundSchema,
|
|
5392
3493
|
z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
|
|
5393
3494
|
]);
|
|
5394
3495
|
|
|
5395
|
-
export function
|
|
5396
|
-
|
|
5397
|
-
|
|
3496
|
+
export function deploymentStreamContentDeploymentsRequestRequestBody2ToJSON(
|
|
3497
|
+
deploymentStreamContentDeploymentsRequestRequestBody2:
|
|
3498
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2,
|
|
5398
3499
|
): string {
|
|
5399
3500
|
return JSON.stringify(
|
|
5400
|
-
|
|
5401
|
-
|
|
3501
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema.parse(
|
|
3502
|
+
deploymentStreamContentDeploymentsRequestRequestBody2,
|
|
3503
|
+
),
|
|
5402
3504
|
);
|
|
5403
3505
|
}
|
|
5404
|
-
export function
|
|
3506
|
+
export function deploymentStreamContentDeploymentsRequestRequestBody2FromJSON(
|
|
5405
3507
|
jsonString: string,
|
|
5406
3508
|
): SafeParseResult<
|
|
5407
|
-
|
|
3509
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2,
|
|
5408
3510
|
SDKValidationError
|
|
5409
3511
|
> {
|
|
5410
3512
|
return safeParse(
|
|
5411
3513
|
jsonString,
|
|
5412
3514
|
(x) =>
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
3515
|
+
DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema.parse(
|
|
3516
|
+
JSON.parse(x),
|
|
3517
|
+
),
|
|
3518
|
+
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBody2' from JSON`,
|
|
5416
3519
|
);
|
|
5417
3520
|
}
|
|
5418
3521
|
|
|
@@ -5424,20 +3527,22 @@ export const DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema:
|
|
|
5424
3527
|
unknown
|
|
5425
3528
|
> = z.union([
|
|
5426
3529
|
z.string(),
|
|
5427
|
-
z.array(
|
|
5428
|
-
z.
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
3530
|
+
z.array(
|
|
3531
|
+
z.union([
|
|
3532
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3533
|
+
z.object({ type: z.literal("text") }),
|
|
3534
|
+
),
|
|
3535
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3536
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3537
|
+
z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
|
|
3538
|
+
]),
|
|
3539
|
+
),
|
|
5435
3540
|
]);
|
|
5436
3541
|
/** @internal */
|
|
5437
3542
|
export type DeploymentStreamMessagesDeploymentsRequestContent$Outbound =
|
|
5438
3543
|
| string
|
|
5439
3544
|
| Array<
|
|
5440
|
-
|
|
|
3545
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
5441
3546
|
| components.ImageContentPartSchema$Outbound
|
|
5442
3547
|
| components.AudioContentPartSchema$Outbound
|
|
5443
3548
|
| DeploymentStream2Deployments4$Outbound
|
|
@@ -5451,14 +3556,16 @@ export const DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema:
|
|
|
5451
3556
|
DeploymentStreamMessagesDeploymentsRequestContent
|
|
5452
3557
|
> = z.union([
|
|
5453
3558
|
z.string(),
|
|
5454
|
-
z.array(
|
|
5455
|
-
z.
|
|
5456
|
-
|
|
5457
|
-
|
|
5458
|
-
|
|
5459
|
-
|
|
5460
|
-
|
|
5461
|
-
|
|
3559
|
+
z.array(
|
|
3560
|
+
z.union([
|
|
3561
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3562
|
+
z.object({ type: z.literal("text") }),
|
|
3563
|
+
),
|
|
3564
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3565
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3566
|
+
z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
|
|
3567
|
+
]),
|
|
3568
|
+
),
|
|
5462
3569
|
]);
|
|
5463
3570
|
|
|
5464
3571
|
export function deploymentStreamMessagesDeploymentsRequestContentToJSON(
|
|
@@ -5497,14 +3604,16 @@ export const DeploymentStreamMessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
5497
3604
|
name: z.string().optional(),
|
|
5498
3605
|
content: z.union([
|
|
5499
3606
|
z.string(),
|
|
5500
|
-
z.array(
|
|
5501
|
-
z.
|
|
5502
|
-
|
|
5503
|
-
|
|
5504
|
-
|
|
5505
|
-
|
|
5506
|
-
|
|
5507
|
-
|
|
3607
|
+
z.array(
|
|
3608
|
+
z.union([
|
|
3609
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3610
|
+
z.object({ type: z.literal("text") }),
|
|
3611
|
+
),
|
|
3612
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3613
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3614
|
+
z.lazy(() => DeploymentStream2Deployments4$inboundSchema),
|
|
3615
|
+
]),
|
|
3616
|
+
),
|
|
5508
3617
|
]),
|
|
5509
3618
|
});
|
|
5510
3619
|
/** @internal */
|
|
@@ -5514,7 +3623,7 @@ export type DeploymentStreamMessagesUserMessage$Outbound = {
|
|
|
5514
3623
|
content:
|
|
5515
3624
|
| string
|
|
5516
3625
|
| Array<
|
|
5517
|
-
|
|
|
3626
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
5518
3627
|
| components.ImageContentPartSchema$Outbound
|
|
5519
3628
|
| components.AudioContentPartSchema$Outbound
|
|
5520
3629
|
| DeploymentStream2Deployments4$Outbound
|
|
@@ -5531,14 +3640,16 @@ export const DeploymentStreamMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
5531
3640
|
name: z.string().optional(),
|
|
5532
3641
|
content: z.union([
|
|
5533
3642
|
z.string(),
|
|
5534
|
-
z.array(
|
|
5535
|
-
z.
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5540
|
-
|
|
5541
|
-
|
|
3643
|
+
z.array(
|
|
3644
|
+
z.union([
|
|
3645
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3646
|
+
z.object({ type: z.literal("text") }),
|
|
3647
|
+
),
|
|
3648
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3649
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3650
|
+
z.lazy(() => DeploymentStream2Deployments4$outboundSchema),
|
|
3651
|
+
]),
|
|
3652
|
+
),
|
|
5542
3653
|
]),
|
|
5543
3654
|
});
|
|
5544
3655
|
|
|
@@ -5562,187 +3673,17 @@ export function deploymentStreamMessagesUserMessageFromJSON(
|
|
|
5562
3673
|
);
|
|
5563
3674
|
}
|
|
5564
3675
|
|
|
5565
|
-
/** @internal */
|
|
5566
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema:
|
|
5567
|
-
z.ZodNativeEnum<
|
|
5568
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type
|
|
5569
|
-
> = z.nativeEnum(
|
|
5570
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type,
|
|
5571
|
-
);
|
|
5572
|
-
/** @internal */
|
|
5573
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema:
|
|
5574
|
-
z.ZodNativeEnum<
|
|
5575
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type
|
|
5576
|
-
> =
|
|
5577
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema;
|
|
5578
|
-
|
|
5579
|
-
/** @internal */
|
|
5580
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type$inboundSchema:
|
|
5581
|
-
z.ZodNativeEnum<
|
|
5582
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type
|
|
5583
|
-
> = z.nativeEnum(
|
|
5584
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type,
|
|
5585
|
-
);
|
|
5586
|
-
/** @internal */
|
|
5587
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type$outboundSchema:
|
|
5588
|
-
z.ZodNativeEnum<
|
|
5589
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type
|
|
5590
|
-
> =
|
|
5591
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type$inboundSchema;
|
|
5592
|
-
|
|
5593
|
-
/** @internal */
|
|
5594
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyTtl$inboundSchema:
|
|
5595
|
-
z.ZodNativeEnum<
|
|
5596
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyTtl
|
|
5597
|
-
> = z.nativeEnum(DeploymentStreamContentDeploymentsRequestRequestBodyTtl);
|
|
5598
|
-
/** @internal */
|
|
5599
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyTtl$outboundSchema:
|
|
5600
|
-
z.ZodNativeEnum<
|
|
5601
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyTtl
|
|
5602
|
-
> = DeploymentStreamContentDeploymentsRequestRequestBodyTtl$inboundSchema;
|
|
5603
|
-
|
|
5604
|
-
/** @internal */
|
|
5605
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$inboundSchema:
|
|
5606
|
-
z.ZodType<
|
|
5607
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl,
|
|
5608
|
-
z.ZodTypeDef,
|
|
5609
|
-
unknown
|
|
5610
|
-
> = z.object({
|
|
5611
|
-
type:
|
|
5612
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type$inboundSchema,
|
|
5613
|
-
ttl: DeploymentStreamContentDeploymentsRequestRequestBodyTtl$inboundSchema
|
|
5614
|
-
.default("5m"),
|
|
5615
|
-
});
|
|
5616
|
-
/** @internal */
|
|
5617
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$Outbound =
|
|
5618
|
-
{
|
|
5619
|
-
type: string;
|
|
5620
|
-
ttl: string;
|
|
5621
|
-
};
|
|
5622
|
-
|
|
5623
|
-
/** @internal */
|
|
5624
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$outboundSchema:
|
|
5625
|
-
z.ZodType<
|
|
5626
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$Outbound,
|
|
5627
|
-
z.ZodTypeDef,
|
|
5628
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl
|
|
5629
|
-
> = z.object({
|
|
5630
|
-
type:
|
|
5631
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22Type$outboundSchema,
|
|
5632
|
-
ttl: DeploymentStreamContentDeploymentsRequestRequestBodyTtl$outboundSchema
|
|
5633
|
-
.default("5m"),
|
|
5634
|
-
});
|
|
5635
|
-
|
|
5636
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyCacheControlToJSON(
|
|
5637
|
-
deploymentStreamContentDeploymentsRequestRequestBodyCacheControl:
|
|
5638
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl,
|
|
5639
|
-
): string {
|
|
5640
|
-
return JSON.stringify(
|
|
5641
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
5642
|
-
.parse(deploymentStreamContentDeploymentsRequestRequestBodyCacheControl),
|
|
5643
|
-
);
|
|
5644
|
-
}
|
|
5645
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyCacheControlFromJSON(
|
|
5646
|
-
jsonString: string,
|
|
5647
|
-
): SafeParseResult<
|
|
5648
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl,
|
|
5649
|
-
SDKValidationError
|
|
5650
|
-
> {
|
|
5651
|
-
return safeParse(
|
|
5652
|
-
jsonString,
|
|
5653
|
-
(x) =>
|
|
5654
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
5655
|
-
.parse(JSON.parse(x)),
|
|
5656
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl' from JSON`,
|
|
5657
|
-
);
|
|
5658
|
-
}
|
|
5659
|
-
|
|
5660
|
-
/** @internal */
|
|
5661
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$inboundSchema:
|
|
5662
|
-
z.ZodType<
|
|
5663
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22,
|
|
5664
|
-
z.ZodTypeDef,
|
|
5665
|
-
unknown
|
|
5666
|
-
> = z.object({
|
|
5667
|
-
type:
|
|
5668
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema,
|
|
5669
|
-
text: z.string(),
|
|
5670
|
-
cache_control: z.lazy(() =>
|
|
5671
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
5672
|
-
).optional(),
|
|
5673
|
-
}).transform((v) => {
|
|
5674
|
-
return remap$(v, {
|
|
5675
|
-
"cache_control": "cacheControl",
|
|
5676
|
-
});
|
|
5677
|
-
});
|
|
5678
|
-
/** @internal */
|
|
5679
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$Outbound =
|
|
5680
|
-
{
|
|
5681
|
-
type: string;
|
|
5682
|
-
text: string;
|
|
5683
|
-
cache_control?:
|
|
5684
|
-
| DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$Outbound
|
|
5685
|
-
| undefined;
|
|
5686
|
-
};
|
|
5687
|
-
|
|
5688
|
-
/** @internal */
|
|
5689
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$outboundSchema:
|
|
5690
|
-
z.ZodType<
|
|
5691
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$Outbound,
|
|
5692
|
-
z.ZodTypeDef,
|
|
5693
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22
|
|
5694
|
-
> = z.object({
|
|
5695
|
-
type:
|
|
5696
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema,
|
|
5697
|
-
text: z.string(),
|
|
5698
|
-
cacheControl: z.lazy(() =>
|
|
5699
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
5700
|
-
).optional(),
|
|
5701
|
-
}).transform((v) => {
|
|
5702
|
-
return remap$(v, {
|
|
5703
|
-
cacheControl: "cache_control",
|
|
5704
|
-
});
|
|
5705
|
-
});
|
|
5706
|
-
|
|
5707
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages22ToJSON(
|
|
5708
|
-
deploymentStreamContentDeploymentsRequestRequestBodyMessages22:
|
|
5709
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22,
|
|
5710
|
-
): string {
|
|
5711
|
-
return JSON.stringify(
|
|
5712
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$outboundSchema
|
|
5713
|
-
.parse(deploymentStreamContentDeploymentsRequestRequestBodyMessages22),
|
|
5714
|
-
);
|
|
5715
|
-
}
|
|
5716
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages22FromJSON(
|
|
5717
|
-
jsonString: string,
|
|
5718
|
-
): SafeParseResult<
|
|
5719
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22,
|
|
5720
|
-
SDKValidationError
|
|
5721
|
-
> {
|
|
5722
|
-
return safeParse(
|
|
5723
|
-
jsonString,
|
|
5724
|
-
(x) =>
|
|
5725
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$inboundSchema
|
|
5726
|
-
.parse(JSON.parse(x)),
|
|
5727
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBodyMessages22' from JSON`,
|
|
5728
|
-
);
|
|
5729
|
-
}
|
|
5730
|
-
|
|
5731
3676
|
/** @internal */
|
|
5732
3677
|
export const DeploymentStreamMessagesDeploymentsContent$inboundSchema:
|
|
5733
3678
|
z.ZodType<DeploymentStreamMessagesDeploymentsContent, z.ZodTypeDef, unknown> =
|
|
5734
3679
|
z.union([
|
|
5735
3680
|
z.string(),
|
|
5736
|
-
z.array(
|
|
5737
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$inboundSchema
|
|
5738
|
-
)),
|
|
3681
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5739
3682
|
]);
|
|
5740
3683
|
/** @internal */
|
|
5741
3684
|
export type DeploymentStreamMessagesDeploymentsContent$Outbound =
|
|
5742
3685
|
| string
|
|
5743
|
-
| Array<
|
|
5744
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$Outbound
|
|
5745
|
-
>;
|
|
3686
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
5746
3687
|
|
|
5747
3688
|
/** @internal */
|
|
5748
3689
|
export const DeploymentStreamMessagesDeploymentsContent$outboundSchema:
|
|
@@ -5752,9 +3693,7 @@ export const DeploymentStreamMessagesDeploymentsContent$outboundSchema:
|
|
|
5752
3693
|
DeploymentStreamMessagesDeploymentsContent
|
|
5753
3694
|
> = z.union([
|
|
5754
3695
|
z.string(),
|
|
5755
|
-
z.array(
|
|
5756
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$outboundSchema
|
|
5757
|
-
)),
|
|
3696
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5758
3697
|
]);
|
|
5759
3698
|
|
|
5760
3699
|
export function deploymentStreamMessagesDeploymentsContentToJSON(
|
|
@@ -5792,20 +3731,14 @@ export const DeploymentStreamMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
5792
3731
|
role: z.literal("developer"),
|
|
5793
3732
|
content: z.union([
|
|
5794
3733
|
z.string(),
|
|
5795
|
-
z.array(
|
|
5796
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$inboundSchema
|
|
5797
|
-
)),
|
|
3734
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5798
3735
|
]),
|
|
5799
3736
|
name: z.string().optional(),
|
|
5800
3737
|
});
|
|
5801
3738
|
/** @internal */
|
|
5802
3739
|
export type DeploymentStreamMessagesDeveloperMessage$Outbound = {
|
|
5803
3740
|
role: "developer";
|
|
5804
|
-
content:
|
|
5805
|
-
| string
|
|
5806
|
-
| Array<
|
|
5807
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$Outbound
|
|
5808
|
-
>;
|
|
3741
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
5809
3742
|
name?: string | undefined;
|
|
5810
3743
|
};
|
|
5811
3744
|
|
|
@@ -5818,9 +3751,7 @@ export const DeploymentStreamMessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
5818
3751
|
role: z.literal("developer"),
|
|
5819
3752
|
content: z.union([
|
|
5820
3753
|
z.string(),
|
|
5821
|
-
z.array(
|
|
5822
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages22$outboundSchema
|
|
5823
|
-
)),
|
|
3754
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5824
3755
|
]),
|
|
5825
3756
|
name: z.string().optional(),
|
|
5826
3757
|
});
|
|
@@ -5851,173 +3782,6 @@ export function deploymentStreamMessagesDeveloperMessageFromJSON(
|
|
|
5851
3782
|
);
|
|
5852
3783
|
}
|
|
5853
3784
|
|
|
5854
|
-
/** @internal */
|
|
5855
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType$inboundSchema:
|
|
5856
|
-
z.ZodNativeEnum<
|
|
5857
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType
|
|
5858
|
-
> = z.nativeEnum(
|
|
5859
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType,
|
|
5860
|
-
);
|
|
5861
|
-
/** @internal */
|
|
5862
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType$outboundSchema:
|
|
5863
|
-
z.ZodNativeEnum<
|
|
5864
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType
|
|
5865
|
-
> =
|
|
5866
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType$inboundSchema;
|
|
5867
|
-
|
|
5868
|
-
/** @internal */
|
|
5869
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type$inboundSchema:
|
|
5870
|
-
z.ZodNativeEnum<
|
|
5871
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type
|
|
5872
|
-
> = z.nativeEnum(
|
|
5873
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type,
|
|
5874
|
-
);
|
|
5875
|
-
/** @internal */
|
|
5876
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type$outboundSchema:
|
|
5877
|
-
z.ZodNativeEnum<
|
|
5878
|
-
typeof DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type
|
|
5879
|
-
> =
|
|
5880
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type$inboundSchema;
|
|
5881
|
-
|
|
5882
|
-
/** @internal */
|
|
5883
|
-
export const DeploymentStreamContentDeploymentsRequestTtl$inboundSchema:
|
|
5884
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsRequestTtl> = z
|
|
5885
|
-
.nativeEnum(DeploymentStreamContentDeploymentsRequestTtl);
|
|
5886
|
-
/** @internal */
|
|
5887
|
-
export const DeploymentStreamContentDeploymentsRequestTtl$outboundSchema:
|
|
5888
|
-
z.ZodNativeEnum<typeof DeploymentStreamContentDeploymentsRequestTtl> =
|
|
5889
|
-
DeploymentStreamContentDeploymentsRequestTtl$inboundSchema;
|
|
5890
|
-
|
|
5891
|
-
/** @internal */
|
|
5892
|
-
export const DeploymentStreamContentDeploymentsRequestCacheControl$inboundSchema:
|
|
5893
|
-
z.ZodType<
|
|
5894
|
-
DeploymentStreamContentDeploymentsRequestCacheControl,
|
|
5895
|
-
z.ZodTypeDef,
|
|
5896
|
-
unknown
|
|
5897
|
-
> = z.object({
|
|
5898
|
-
type:
|
|
5899
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type$inboundSchema,
|
|
5900
|
-
ttl: DeploymentStreamContentDeploymentsRequestTtl$inboundSchema.default(
|
|
5901
|
-
"5m",
|
|
5902
|
-
),
|
|
5903
|
-
});
|
|
5904
|
-
/** @internal */
|
|
5905
|
-
export type DeploymentStreamContentDeploymentsRequestCacheControl$Outbound = {
|
|
5906
|
-
type: string;
|
|
5907
|
-
ttl: string;
|
|
5908
|
-
};
|
|
5909
|
-
|
|
5910
|
-
/** @internal */
|
|
5911
|
-
export const DeploymentStreamContentDeploymentsRequestCacheControl$outboundSchema:
|
|
5912
|
-
z.ZodType<
|
|
5913
|
-
DeploymentStreamContentDeploymentsRequestCacheControl$Outbound,
|
|
5914
|
-
z.ZodTypeDef,
|
|
5915
|
-
DeploymentStreamContentDeploymentsRequestCacheControl
|
|
5916
|
-
> = z.object({
|
|
5917
|
-
type:
|
|
5918
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages1Type$outboundSchema,
|
|
5919
|
-
ttl: DeploymentStreamContentDeploymentsRequestTtl$outboundSchema.default(
|
|
5920
|
-
"5m",
|
|
5921
|
-
),
|
|
5922
|
-
});
|
|
5923
|
-
|
|
5924
|
-
export function deploymentStreamContentDeploymentsRequestCacheControlToJSON(
|
|
5925
|
-
deploymentStreamContentDeploymentsRequestCacheControl:
|
|
5926
|
-
DeploymentStreamContentDeploymentsRequestCacheControl,
|
|
5927
|
-
): string {
|
|
5928
|
-
return JSON.stringify(
|
|
5929
|
-
DeploymentStreamContentDeploymentsRequestCacheControl$outboundSchema.parse(
|
|
5930
|
-
deploymentStreamContentDeploymentsRequestCacheControl,
|
|
5931
|
-
),
|
|
5932
|
-
);
|
|
5933
|
-
}
|
|
5934
|
-
export function deploymentStreamContentDeploymentsRequestCacheControlFromJSON(
|
|
5935
|
-
jsonString: string,
|
|
5936
|
-
): SafeParseResult<
|
|
5937
|
-
DeploymentStreamContentDeploymentsRequestCacheControl,
|
|
5938
|
-
SDKValidationError
|
|
5939
|
-
> {
|
|
5940
|
-
return safeParse(
|
|
5941
|
-
jsonString,
|
|
5942
|
-
(x) =>
|
|
5943
|
-
DeploymentStreamContentDeploymentsRequestCacheControl$inboundSchema.parse(
|
|
5944
|
-
JSON.parse(x),
|
|
5945
|
-
),
|
|
5946
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequestCacheControl' from JSON`,
|
|
5947
|
-
);
|
|
5948
|
-
}
|
|
5949
|
-
|
|
5950
|
-
/** @internal */
|
|
5951
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema:
|
|
5952
|
-
z.ZodType<
|
|
5953
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
5954
|
-
z.ZodTypeDef,
|
|
5955
|
-
unknown
|
|
5956
|
-
> = z.object({
|
|
5957
|
-
type:
|
|
5958
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
5959
|
-
text: z.string(),
|
|
5960
|
-
cache_control: z.lazy(() =>
|
|
5961
|
-
DeploymentStreamContentDeploymentsRequestCacheControl$inboundSchema
|
|
5962
|
-
).optional(),
|
|
5963
|
-
}).transform((v) => {
|
|
5964
|
-
return remap$(v, {
|
|
5965
|
-
"cache_control": "cacheControl",
|
|
5966
|
-
});
|
|
5967
|
-
});
|
|
5968
|
-
/** @internal */
|
|
5969
|
-
export type DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound =
|
|
5970
|
-
{
|
|
5971
|
-
type: string;
|
|
5972
|
-
text: string;
|
|
5973
|
-
cache_control?:
|
|
5974
|
-
| DeploymentStreamContentDeploymentsRequestCacheControl$Outbound
|
|
5975
|
-
| undefined;
|
|
5976
|
-
};
|
|
5977
|
-
|
|
5978
|
-
/** @internal */
|
|
5979
|
-
export const DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
|
|
5980
|
-
z.ZodType<
|
|
5981
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound,
|
|
5982
|
-
z.ZodTypeDef,
|
|
5983
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2
|
|
5984
|
-
> = z.object({
|
|
5985
|
-
type:
|
|
5986
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
5987
|
-
text: z.string(),
|
|
5988
|
-
cacheControl: z.lazy(() =>
|
|
5989
|
-
DeploymentStreamContentDeploymentsRequestCacheControl$outboundSchema
|
|
5990
|
-
).optional(),
|
|
5991
|
-
}).transform((v) => {
|
|
5992
|
-
return remap$(v, {
|
|
5993
|
-
cacheControl: "cache_control",
|
|
5994
|
-
});
|
|
5995
|
-
});
|
|
5996
|
-
|
|
5997
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages2ToJSON(
|
|
5998
|
-
deploymentStreamContentDeploymentsRequestRequestBodyMessages2:
|
|
5999
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
6000
|
-
): string {
|
|
6001
|
-
return JSON.stringify(
|
|
6002
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
6003
|
-
.parse(deploymentStreamContentDeploymentsRequestRequestBodyMessages2),
|
|
6004
|
-
);
|
|
6005
|
-
}
|
|
6006
|
-
export function deploymentStreamContentDeploymentsRequestRequestBodyMessages2FromJSON(
|
|
6007
|
-
jsonString: string,
|
|
6008
|
-
): SafeParseResult<
|
|
6009
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2,
|
|
6010
|
-
SDKValidationError
|
|
6011
|
-
> {
|
|
6012
|
-
return safeParse(
|
|
6013
|
-
jsonString,
|
|
6014
|
-
(x) =>
|
|
6015
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
6016
|
-
.parse(JSON.parse(x)),
|
|
6017
|
-
`Failed to parse 'DeploymentStreamContentDeploymentsRequestRequestBodyMessages2' from JSON`,
|
|
6018
|
-
);
|
|
6019
|
-
}
|
|
6020
|
-
|
|
6021
3785
|
/** @internal */
|
|
6022
3786
|
export const DeploymentStreamMessagesContent$inboundSchema: z.ZodType<
|
|
6023
3787
|
DeploymentStreamMessagesContent,
|
|
@@ -6025,16 +3789,12 @@ export const DeploymentStreamMessagesContent$inboundSchema: z.ZodType<
|
|
|
6025
3789
|
unknown
|
|
6026
3790
|
> = z.union([
|
|
6027
3791
|
z.string(),
|
|
6028
|
-
z.array(
|
|
6029
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
6030
|
-
)),
|
|
3792
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
6031
3793
|
]);
|
|
6032
3794
|
/** @internal */
|
|
6033
3795
|
export type DeploymentStreamMessagesContent$Outbound =
|
|
6034
3796
|
| string
|
|
6035
|
-
| Array<
|
|
6036
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound
|
|
6037
|
-
>;
|
|
3797
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
6038
3798
|
|
|
6039
3799
|
/** @internal */
|
|
6040
3800
|
export const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -6043,9 +3803,7 @@ export const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<
|
|
|
6043
3803
|
DeploymentStreamMessagesContent
|
|
6044
3804
|
> = z.union([
|
|
6045
3805
|
z.string(),
|
|
6046
|
-
z.array(
|
|
6047
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
6048
|
-
)),
|
|
3806
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
6049
3807
|
]);
|
|
6050
3808
|
|
|
6051
3809
|
export function deploymentStreamMessagesContentToJSON(
|
|
@@ -6076,20 +3834,14 @@ export const DeploymentStreamMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
6076
3834
|
role: z.literal("system"),
|
|
6077
3835
|
content: z.union([
|
|
6078
3836
|
z.string(),
|
|
6079
|
-
z.array(
|
|
6080
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
6081
|
-
)),
|
|
3837
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
6082
3838
|
]),
|
|
6083
3839
|
name: z.string().optional(),
|
|
6084
3840
|
});
|
|
6085
3841
|
/** @internal */
|
|
6086
3842
|
export type DeploymentStreamMessagesSystemMessage$Outbound = {
|
|
6087
3843
|
role: "system";
|
|
6088
|
-
content:
|
|
6089
|
-
| string
|
|
6090
|
-
| Array<
|
|
6091
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$Outbound
|
|
6092
|
-
>;
|
|
3844
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
6093
3845
|
name?: string | undefined;
|
|
6094
3846
|
};
|
|
6095
3847
|
|
|
@@ -6102,9 +3854,7 @@ export const DeploymentStreamMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
6102
3854
|
role: z.literal("system"),
|
|
6103
3855
|
content: z.union([
|
|
6104
3856
|
z.string(),
|
|
6105
|
-
z.array(
|
|
6106
|
-
DeploymentStreamContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
6107
|
-
)),
|
|
3857
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
6108
3858
|
]),
|
|
6109
3859
|
name: z.string().optional(),
|
|
6110
3860
|
});
|