@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
|
@@ -99,7 +99,7 @@ export type TwoFile = {
|
|
|
99
99
|
filename?: string | undefined;
|
|
100
100
|
};
|
|
101
101
|
|
|
102
|
-
export type
|
|
102
|
+
export type Two3 = {
|
|
103
103
|
/**
|
|
104
104
|
* The type of the content part. Always `file`.
|
|
105
105
|
*/
|
|
@@ -107,7 +107,7 @@ export type Three = {
|
|
|
107
107
|
file: TwoFile;
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
export type
|
|
110
|
+
export type TwoImageUrl = {
|
|
111
111
|
/**
|
|
112
112
|
* Either a URL of the image or the base64 encoded data URI.
|
|
113
113
|
*/
|
|
@@ -121,25 +121,25 @@ export type ImageUrl = {
|
|
|
121
121
|
/**
|
|
122
122
|
* The image part of the prompt message. Only supported with vision models.
|
|
123
123
|
*/
|
|
124
|
-
export type
|
|
124
|
+
export type CreatePrompt22 = {
|
|
125
125
|
type: "image_url";
|
|
126
|
-
imageUrl:
|
|
126
|
+
imageUrl: TwoImageUrl;
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
/**
|
|
130
130
|
* Text content part of a prompt message
|
|
131
131
|
*/
|
|
132
|
-
export type
|
|
132
|
+
export type Two1 = {
|
|
133
133
|
type: "text";
|
|
134
134
|
text: string;
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
export type CreatePromptContent2 =
|
|
137
|
+
export type CreatePromptContent2 = Two1 | CreatePrompt22 | Two3;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
|
|
141
141
|
*/
|
|
142
|
-
export type CreatePromptContent = string | Array<
|
|
142
|
+
export type CreatePromptContent = string | Array<Two1 | CreatePrompt22 | Two3>;
|
|
143
143
|
|
|
144
144
|
export const CreatePromptType = {
|
|
145
145
|
Function: "function",
|
|
@@ -169,9 +169,9 @@ export type CreatePromptMessages = {
|
|
|
169
169
|
/**
|
|
170
170
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts. Can be null for tool messages in certain scenarios.
|
|
171
171
|
*/
|
|
172
|
-
content: string | Array<
|
|
172
|
+
content: string | Array<Two1 | CreatePrompt22 | Two3> | null;
|
|
173
173
|
toolCalls?: Array<CreatePromptToolCalls> | undefined;
|
|
174
|
-
toolCallId?: string | undefined;
|
|
174
|
+
toolCallId?: string | null | undefined;
|
|
175
175
|
};
|
|
176
176
|
|
|
177
177
|
/**
|
|
@@ -457,88 +457,15 @@ export type PromptConfiguration = {
|
|
|
457
457
|
modelParameters?: ModelParameters | undefined;
|
|
458
458
|
};
|
|
459
459
|
|
|
460
|
-
export
|
|
461
|
-
|
|
462
|
-
} as const;
|
|
463
|
-
export type CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type =
|
|
464
|
-
ClosedEnum<typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type>;
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
468
|
-
*/
|
|
469
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
|
|
470
|
-
{
|
|
471
|
-
Ephemeral: "ephemeral",
|
|
472
|
-
} as const;
|
|
473
|
-
/**
|
|
474
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
475
|
-
*/
|
|
476
|
-
export type CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType =
|
|
477
|
-
ClosedEnum<
|
|
478
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
|
|
479
|
-
>;
|
|
480
|
-
|
|
481
|
-
/**
|
|
482
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
483
|
-
*
|
|
484
|
-
* @remarks
|
|
485
|
-
*
|
|
486
|
-
* - `5m`: 5 minutes
|
|
487
|
-
* - `1h`: 1 hour
|
|
488
|
-
*
|
|
489
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
490
|
-
*/
|
|
491
|
-
export const CreatePrompt2PromptsRequestRequestBodyTtl = {
|
|
492
|
-
Fivem: "5m",
|
|
493
|
-
Oneh: "1h",
|
|
494
|
-
} as const;
|
|
495
|
-
/**
|
|
496
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
497
|
-
*
|
|
498
|
-
* @remarks
|
|
499
|
-
*
|
|
500
|
-
* - `5m`: 5 minutes
|
|
501
|
-
* - `1h`: 1 hour
|
|
502
|
-
*
|
|
503
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
504
|
-
*/
|
|
505
|
-
export type CreatePrompt2PromptsRequestRequestBodyTtl = ClosedEnum<
|
|
506
|
-
typeof CreatePrompt2PromptsRequestRequestBodyTtl
|
|
507
|
-
>;
|
|
508
|
-
|
|
509
|
-
export type CreatePrompt2PromptsRequestRequestBodyCacheControl = {
|
|
510
|
-
/**
|
|
511
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
512
|
-
*/
|
|
513
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType;
|
|
514
|
-
/**
|
|
515
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
516
|
-
*
|
|
517
|
-
* @remarks
|
|
518
|
-
*
|
|
519
|
-
* - `5m`: 5 minutes
|
|
520
|
-
* - `1h`: 1 hour
|
|
521
|
-
*
|
|
522
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
523
|
-
*/
|
|
524
|
-
ttl?: CreatePrompt2PromptsRequestRequestBodyTtl | undefined;
|
|
525
|
-
};
|
|
526
|
-
|
|
527
|
-
export type CreatePrompt2PromptsRequestRequestBody1 = {
|
|
528
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type;
|
|
529
|
-
text: string;
|
|
530
|
-
cacheControl?: CreatePrompt2PromptsRequestRequestBodyCacheControl | undefined;
|
|
531
|
-
};
|
|
532
|
-
|
|
533
|
-
export type CreatePromptContentPromptsRequestRequestBodyPrompt2 =
|
|
534
|
-
CreatePrompt2PromptsRequestRequestBody1;
|
|
460
|
+
export type CreatePromptContentPromptsRequestRequestBody2 =
|
|
461
|
+
components.TextContentPartSchema;
|
|
535
462
|
|
|
536
463
|
/**
|
|
537
464
|
* The contents of the tool message.
|
|
538
465
|
*/
|
|
539
466
|
export type CreatePromptMessagesPromptsRequestRequestBodyContent =
|
|
540
467
|
| string
|
|
541
|
-
| Array<
|
|
468
|
+
| Array<components.TextContentPartSchema>;
|
|
542
469
|
|
|
543
470
|
/**
|
|
544
471
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -607,7 +534,7 @@ export type CreatePromptMessagesToolMessage = {
|
|
|
607
534
|
/**
|
|
608
535
|
* The contents of the tool message.
|
|
609
536
|
*/
|
|
610
|
-
content: string | Array<
|
|
537
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
611
538
|
/**
|
|
612
539
|
* Tool call that this message is responding to.
|
|
613
540
|
*/
|
|
@@ -615,75 +542,8 @@ export type CreatePromptMessagesToolMessage = {
|
|
|
615
542
|
cacheControl?: CreatePromptMessagesCacheControl | undefined;
|
|
616
543
|
};
|
|
617
544
|
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
*/
|
|
621
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
|
|
622
|
-
{
|
|
623
|
-
Ephemeral: "ephemeral",
|
|
624
|
-
} as const;
|
|
625
|
-
/**
|
|
626
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
627
|
-
*/
|
|
628
|
-
export type CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType =
|
|
629
|
-
ClosedEnum<
|
|
630
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
|
|
631
|
-
>;
|
|
632
|
-
|
|
633
|
-
/**
|
|
634
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
635
|
-
*
|
|
636
|
-
* @remarks
|
|
637
|
-
*
|
|
638
|
-
* - `5m`: 5 minutes
|
|
639
|
-
* - `1h`: 1 hour
|
|
640
|
-
*
|
|
641
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
642
|
-
*/
|
|
643
|
-
export const CreatePrompt2PromptsRequestTtl = {
|
|
644
|
-
Fivem: "5m",
|
|
645
|
-
Oneh: "1h",
|
|
646
|
-
} as const;
|
|
647
|
-
/**
|
|
648
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
649
|
-
*
|
|
650
|
-
* @remarks
|
|
651
|
-
*
|
|
652
|
-
* - `5m`: 5 minutes
|
|
653
|
-
* - `1h`: 1 hour
|
|
654
|
-
*
|
|
655
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
656
|
-
*/
|
|
657
|
-
export type CreatePrompt2PromptsRequestTtl = ClosedEnum<
|
|
658
|
-
typeof CreatePrompt2PromptsRequestTtl
|
|
659
|
-
>;
|
|
660
|
-
|
|
661
|
-
export type CreatePrompt2PromptsRequestCacheControl = {
|
|
662
|
-
/**
|
|
663
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
664
|
-
*/
|
|
665
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType;
|
|
666
|
-
/**
|
|
667
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
668
|
-
*
|
|
669
|
-
* @remarks
|
|
670
|
-
*
|
|
671
|
-
* - `5m`: 5 minutes
|
|
672
|
-
* - `1h`: 1 hour
|
|
673
|
-
*
|
|
674
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
675
|
-
*/
|
|
676
|
-
ttl?: CreatePrompt2PromptsRequestTtl | undefined;
|
|
677
|
-
};
|
|
678
|
-
|
|
679
|
-
export type CreatePrompt2PromptsRequest1 = {
|
|
680
|
-
type: "text";
|
|
681
|
-
text: string;
|
|
682
|
-
cacheControl?: CreatePrompt2PromptsRequestCacheControl | undefined;
|
|
683
|
-
};
|
|
684
|
-
|
|
685
|
-
export type CreatePromptContentPromptsRequestRequestBody2 =
|
|
686
|
-
| CreatePrompt2PromptsRequest1
|
|
545
|
+
export type CreatePromptContentPromptsRequest2 =
|
|
546
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
687
547
|
| components.RefusalPartSchema
|
|
688
548
|
| components.ReasoningPartSchema
|
|
689
549
|
| components.RedactedReasoningPartSchema;
|
|
@@ -694,7 +554,7 @@ export type CreatePromptContentPromptsRequestRequestBody2 =
|
|
|
694
554
|
export type CreatePromptMessagesPromptsRequestContent =
|
|
695
555
|
| string
|
|
696
556
|
| Array<
|
|
697
|
-
|
|
|
557
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
698
558
|
| components.RefusalPartSchema
|
|
699
559
|
| components.ReasoningPartSchema
|
|
700
560
|
| components.RedactedReasoningPartSchema
|
|
@@ -757,7 +617,7 @@ export type CreatePromptMessagesAssistantMessage = {
|
|
|
757
617
|
content?:
|
|
758
618
|
| string
|
|
759
619
|
| Array<
|
|
760
|
-
|
|
|
620
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
761
621
|
| components.RefusalPartSchema
|
|
762
622
|
| components.ReasoningPartSchema
|
|
763
623
|
| components.RedactedReasoningPartSchema
|
|
@@ -786,76 +646,6 @@ export type CreatePromptMessagesAssistantMessage = {
|
|
|
786
646
|
toolCalls?: Array<CreatePromptMessagesToolCalls> | undefined;
|
|
787
647
|
};
|
|
788
648
|
|
|
789
|
-
/**
|
|
790
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
791
|
-
*/
|
|
792
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type = {
|
|
793
|
-
Ephemeral: "ephemeral",
|
|
794
|
-
} as const;
|
|
795
|
-
/**
|
|
796
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
797
|
-
*/
|
|
798
|
-
export type CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type =
|
|
799
|
-
ClosedEnum<typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type>;
|
|
800
|
-
|
|
801
|
-
/**
|
|
802
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
803
|
-
*
|
|
804
|
-
* @remarks
|
|
805
|
-
*
|
|
806
|
-
* - `5m`: 5 minutes
|
|
807
|
-
* - `1h`: 1 hour
|
|
808
|
-
*
|
|
809
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
810
|
-
*/
|
|
811
|
-
export const CreatePrompt2PromptsTtl = {
|
|
812
|
-
Fivem: "5m",
|
|
813
|
-
Oneh: "1h",
|
|
814
|
-
} as const;
|
|
815
|
-
/**
|
|
816
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
817
|
-
*
|
|
818
|
-
* @remarks
|
|
819
|
-
*
|
|
820
|
-
* - `5m`: 5 minutes
|
|
821
|
-
* - `1h`: 1 hour
|
|
822
|
-
*
|
|
823
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
824
|
-
*/
|
|
825
|
-
export type CreatePrompt2PromptsTtl = ClosedEnum<
|
|
826
|
-
typeof CreatePrompt2PromptsTtl
|
|
827
|
-
>;
|
|
828
|
-
|
|
829
|
-
export type CreatePrompt2PromptsCacheControl = {
|
|
830
|
-
/**
|
|
831
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
832
|
-
*/
|
|
833
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type;
|
|
834
|
-
/**
|
|
835
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
836
|
-
*
|
|
837
|
-
* @remarks
|
|
838
|
-
*
|
|
839
|
-
* - `5m`: 5 minutes
|
|
840
|
-
* - `1h`: 1 hour
|
|
841
|
-
*
|
|
842
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
843
|
-
*/
|
|
844
|
-
ttl?: CreatePrompt2PromptsTtl | undefined;
|
|
845
|
-
};
|
|
846
|
-
|
|
847
|
-
export type CreatePrompt24 = {
|
|
848
|
-
/**
|
|
849
|
-
* The type of the content part. Always `file`.
|
|
850
|
-
*/
|
|
851
|
-
type: "file";
|
|
852
|
-
cacheControl?: CreatePrompt2PromptsCacheControl | undefined;
|
|
853
|
-
/**
|
|
854
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
855
|
-
*/
|
|
856
|
-
file: components.FileContentPartSchema;
|
|
857
|
-
};
|
|
858
|
-
|
|
859
649
|
/**
|
|
860
650
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
861
651
|
*/
|
|
@@ -913,14 +703,20 @@ export type CreatePrompt2CacheControl = {
|
|
|
913
703
|
ttl?: CreatePrompt2Ttl | undefined;
|
|
914
704
|
};
|
|
915
705
|
|
|
916
|
-
export type
|
|
917
|
-
|
|
918
|
-
|
|
706
|
+
export type CreatePrompt24 = {
|
|
707
|
+
/**
|
|
708
|
+
* The type of the content part. Always `file`.
|
|
709
|
+
*/
|
|
710
|
+
type: "file";
|
|
919
711
|
cacheControl?: CreatePrompt2CacheControl | undefined;
|
|
712
|
+
/**
|
|
713
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
714
|
+
*/
|
|
715
|
+
file: components.FileContentPartSchema;
|
|
920
716
|
};
|
|
921
717
|
|
|
922
|
-
export type
|
|
923
|
-
|
|
|
718
|
+
export type CreatePromptContentPrompts2 =
|
|
719
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
924
720
|
| components.ImageContentPartSchema
|
|
925
721
|
| components.AudioContentPartSchema
|
|
926
722
|
| CreatePrompt24;
|
|
@@ -931,7 +727,7 @@ export type CreatePromptContentPromptsRequest2 =
|
|
|
931
727
|
export type CreatePromptMessagesPromptsContent =
|
|
932
728
|
| string
|
|
933
729
|
| Array<
|
|
934
|
-
|
|
|
730
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
935
731
|
| components.ImageContentPartSchema
|
|
936
732
|
| components.AudioContentPartSchema
|
|
937
733
|
| CreatePrompt24
|
|
@@ -952,89 +748,19 @@ export type CreatePromptMessagesUserMessage = {
|
|
|
952
748
|
content:
|
|
953
749
|
| string
|
|
954
750
|
| Array<
|
|
955
|
-
|
|
|
751
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
956
752
|
| components.ImageContentPartSchema
|
|
957
753
|
| components.AudioContentPartSchema
|
|
958
754
|
| CreatePrompt24
|
|
959
755
|
>;
|
|
960
756
|
};
|
|
961
757
|
|
|
962
|
-
export const CreatePromptContentType = {
|
|
963
|
-
Text: "text",
|
|
964
|
-
} as const;
|
|
965
|
-
export type CreatePromptContentType = ClosedEnum<
|
|
966
|
-
typeof CreatePromptContentType
|
|
967
|
-
>;
|
|
968
|
-
|
|
969
|
-
/**
|
|
970
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
971
|
-
*/
|
|
972
|
-
export const CreatePromptContentPromptsType = {
|
|
973
|
-
Ephemeral: "ephemeral",
|
|
974
|
-
} as const;
|
|
975
|
-
/**
|
|
976
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
977
|
-
*/
|
|
978
|
-
export type CreatePromptContentPromptsType = ClosedEnum<
|
|
979
|
-
typeof CreatePromptContentPromptsType
|
|
980
|
-
>;
|
|
981
|
-
|
|
982
|
-
/**
|
|
983
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
984
|
-
*
|
|
985
|
-
* @remarks
|
|
986
|
-
*
|
|
987
|
-
* - `5m`: 5 minutes
|
|
988
|
-
* - `1h`: 1 hour
|
|
989
|
-
*
|
|
990
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
991
|
-
*/
|
|
992
|
-
export const CreatePromptContentTtl = {
|
|
993
|
-
Fivem: "5m",
|
|
994
|
-
Oneh: "1h",
|
|
995
|
-
} as const;
|
|
996
|
-
/**
|
|
997
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
998
|
-
*
|
|
999
|
-
* @remarks
|
|
1000
|
-
*
|
|
1001
|
-
* - `5m`: 5 minutes
|
|
1002
|
-
* - `1h`: 1 hour
|
|
1003
|
-
*
|
|
1004
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1005
|
-
*/
|
|
1006
|
-
export type CreatePromptContentTtl = ClosedEnum<typeof CreatePromptContentTtl>;
|
|
1007
|
-
|
|
1008
|
-
export type CreatePromptContentCacheControl = {
|
|
1009
|
-
/**
|
|
1010
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1011
|
-
*/
|
|
1012
|
-
type: CreatePromptContentPromptsType;
|
|
1013
|
-
/**
|
|
1014
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1015
|
-
*
|
|
1016
|
-
* @remarks
|
|
1017
|
-
*
|
|
1018
|
-
* - `5m`: 5 minutes
|
|
1019
|
-
* - `1h`: 1 hour
|
|
1020
|
-
*
|
|
1021
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1022
|
-
*/
|
|
1023
|
-
ttl?: CreatePromptContentTtl | undefined;
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
export type CreatePromptContentPrompts2 = {
|
|
1027
|
-
type: CreatePromptContentType;
|
|
1028
|
-
text: string;
|
|
1029
|
-
cacheControl?: CreatePromptContentCacheControl | undefined;
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
758
|
/**
|
|
1033
759
|
* The contents of the system message.
|
|
1034
760
|
*/
|
|
1035
761
|
export type CreatePromptMessagesContent =
|
|
1036
762
|
| string
|
|
1037
|
-
| Array<
|
|
763
|
+
| Array<components.TextContentPartSchema>;
|
|
1038
764
|
|
|
1039
765
|
/**
|
|
1040
766
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -1047,7 +773,7 @@ export type CreatePromptMessagesSystemMessage = {
|
|
|
1047
773
|
/**
|
|
1048
774
|
* The contents of the system message.
|
|
1049
775
|
*/
|
|
1050
|
-
content: string | Array<
|
|
776
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
1051
777
|
/**
|
|
1052
778
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1053
779
|
*/
|
|
@@ -1493,29 +1219,30 @@ export type CreatePromptModelParameters = {
|
|
|
1493
1219
|
};
|
|
1494
1220
|
|
|
1495
1221
|
export const CreatePromptProvider = {
|
|
1496
|
-
Cohere: "cohere",
|
|
1497
1222
|
Openai: "openai",
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
Replicate: "replicate",
|
|
1501
|
-
Google: "google",
|
|
1502
|
-
GoogleAi: "google-ai",
|
|
1223
|
+
Groq: "groq",
|
|
1224
|
+
Cohere: "cohere",
|
|
1503
1225
|
Azure: "azure",
|
|
1504
1226
|
Aws: "aws",
|
|
1505
|
-
|
|
1227
|
+
Google: "google",
|
|
1228
|
+
GoogleAi: "google-ai",
|
|
1229
|
+
Huggingface: "huggingface",
|
|
1230
|
+
Togetherai: "togetherai",
|
|
1506
1231
|
Perplexity: "perplexity",
|
|
1507
|
-
|
|
1508
|
-
Fal: "fal",
|
|
1232
|
+
Anthropic: "anthropic",
|
|
1509
1233
|
Leonardoai: "leonardoai",
|
|
1234
|
+
Fal: "fal",
|
|
1510
1235
|
Nvidia: "nvidia",
|
|
1511
1236
|
Jina: "jina",
|
|
1512
|
-
Togetherai: "togetherai",
|
|
1513
1237
|
Elevenlabs: "elevenlabs",
|
|
1514
1238
|
Litellm: "litellm",
|
|
1515
|
-
Openailike: "openailike",
|
|
1516
1239
|
Cerebras: "cerebras",
|
|
1240
|
+
Openailike: "openailike",
|
|
1517
1241
|
Bytedance: "bytedance",
|
|
1518
1242
|
Mistral: "mistral",
|
|
1243
|
+
Deepseek: "deepseek",
|
|
1244
|
+
Contextualai: "contextualai",
|
|
1245
|
+
Moonshotai: "moonshotai",
|
|
1519
1246
|
} as const;
|
|
1520
1247
|
export type CreatePromptProvider = ClosedEnum<typeof CreatePromptProvider>;
|
|
1521
1248
|
|
|
@@ -1584,7 +1311,7 @@ export type CreatePrompt2ImageUrl = {
|
|
|
1584
1311
|
/**
|
|
1585
1312
|
* The image part of the prompt message. Only supported with vision models.
|
|
1586
1313
|
*/
|
|
1587
|
-
export type
|
|
1314
|
+
export type CreatePrompt2Prompts2 = {
|
|
1588
1315
|
type: "image_url";
|
|
1589
1316
|
imageUrl: CreatePrompt2ImageUrl;
|
|
1590
1317
|
};
|
|
@@ -1592,14 +1319,14 @@ export type CreatePrompt22 = {
|
|
|
1592
1319
|
/**
|
|
1593
1320
|
* Text content part of a prompt message
|
|
1594
1321
|
*/
|
|
1595
|
-
export type
|
|
1322
|
+
export type CreatePrompt21 = {
|
|
1596
1323
|
type: "text";
|
|
1597
1324
|
text: string;
|
|
1598
1325
|
};
|
|
1599
1326
|
|
|
1600
1327
|
export type CreatePromptContentPromptsResponse2 =
|
|
1601
|
-
|
|
|
1602
|
-
|
|
|
1328
|
+
| CreatePrompt21
|
|
1329
|
+
| CreatePrompt2Prompts2
|
|
1603
1330
|
| CreatePrompt23;
|
|
1604
1331
|
|
|
1605
1332
|
/**
|
|
@@ -1607,7 +1334,7 @@ export type CreatePromptContentPromptsResponse2 =
|
|
|
1607
1334
|
*/
|
|
1608
1335
|
export type CreatePromptPromptsContent =
|
|
1609
1336
|
| string
|
|
1610
|
-
| Array<
|
|
1337
|
+
| Array<CreatePrompt21 | CreatePrompt2Prompts2 | CreatePrompt23>;
|
|
1611
1338
|
|
|
1612
1339
|
export const CreatePromptPromptsResponseType = {
|
|
1613
1340
|
Function: "function",
|
|
@@ -1641,10 +1368,10 @@ export type CreatePromptPromptsResponseMessages = {
|
|
|
1641
1368
|
*/
|
|
1642
1369
|
content:
|
|
1643
1370
|
| string
|
|
1644
|
-
| Array<
|
|
1371
|
+
| Array<CreatePrompt21 | CreatePrompt2Prompts2 | CreatePrompt23>
|
|
1645
1372
|
| null;
|
|
1646
1373
|
toolCalls?: Array<CreatePromptPromptsToolCalls> | undefined;
|
|
1647
|
-
toolCallId?: string | undefined;
|
|
1374
|
+
toolCallId?: string | null | undefined;
|
|
1648
1375
|
};
|
|
1649
1376
|
|
|
1650
1377
|
/**
|
|
@@ -1880,43 +1607,40 @@ export function twoFileFromJSON(
|
|
|
1880
1607
|
}
|
|
1881
1608
|
|
|
1882
1609
|
/** @internal */
|
|
1883
|
-
export const
|
|
1610
|
+
export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
|
|
1884
1611
|
.object({
|
|
1885
1612
|
type: z.literal("file"),
|
|
1886
1613
|
file: z.lazy(() => TwoFile$inboundSchema),
|
|
1887
1614
|
});
|
|
1888
1615
|
/** @internal */
|
|
1889
|
-
export type
|
|
1616
|
+
export type Two3$Outbound = {
|
|
1890
1617
|
type: "file";
|
|
1891
1618
|
file: TwoFile$Outbound;
|
|
1892
1619
|
};
|
|
1893
1620
|
|
|
1894
1621
|
/** @internal */
|
|
1895
|
-
export const
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
type: z.literal("file"),
|
|
1901
|
-
file: z.lazy(() => TwoFile$outboundSchema),
|
|
1902
|
-
});
|
|
1622
|
+
export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
|
|
1623
|
+
z.object({
|
|
1624
|
+
type: z.literal("file"),
|
|
1625
|
+
file: z.lazy(() => TwoFile$outboundSchema),
|
|
1626
|
+
});
|
|
1903
1627
|
|
|
1904
|
-
export function
|
|
1905
|
-
return JSON.stringify(
|
|
1628
|
+
export function two3ToJSON(two3: Two3): string {
|
|
1629
|
+
return JSON.stringify(Two3$outboundSchema.parse(two3));
|
|
1906
1630
|
}
|
|
1907
|
-
export function
|
|
1631
|
+
export function two3FromJSON(
|
|
1908
1632
|
jsonString: string,
|
|
1909
|
-
): SafeParseResult<
|
|
1633
|
+
): SafeParseResult<Two3, SDKValidationError> {
|
|
1910
1634
|
return safeParse(
|
|
1911
1635
|
jsonString,
|
|
1912
|
-
(x) =>
|
|
1913
|
-
`Failed to parse '
|
|
1636
|
+
(x) => Two3$inboundSchema.parse(JSON.parse(x)),
|
|
1637
|
+
`Failed to parse 'Two3' from JSON`,
|
|
1914
1638
|
);
|
|
1915
1639
|
}
|
|
1916
1640
|
|
|
1917
1641
|
/** @internal */
|
|
1918
|
-
export const
|
|
1919
|
-
|
|
1642
|
+
export const TwoImageUrl$inboundSchema: z.ZodType<
|
|
1643
|
+
TwoImageUrl,
|
|
1920
1644
|
z.ZodTypeDef,
|
|
1921
1645
|
unknown
|
|
1922
1646
|
> = z.object({
|
|
@@ -1924,109 +1648,109 @@ export const ImageUrl$inboundSchema: z.ZodType<
|
|
|
1924
1648
|
detail: z.string().optional(),
|
|
1925
1649
|
});
|
|
1926
1650
|
/** @internal */
|
|
1927
|
-
export type
|
|
1651
|
+
export type TwoImageUrl$Outbound = {
|
|
1928
1652
|
url: string;
|
|
1929
1653
|
detail?: string | undefined;
|
|
1930
1654
|
};
|
|
1931
1655
|
|
|
1932
1656
|
/** @internal */
|
|
1933
|
-
export const
|
|
1934
|
-
|
|
1657
|
+
export const TwoImageUrl$outboundSchema: z.ZodType<
|
|
1658
|
+
TwoImageUrl$Outbound,
|
|
1935
1659
|
z.ZodTypeDef,
|
|
1936
|
-
|
|
1660
|
+
TwoImageUrl
|
|
1937
1661
|
> = z.object({
|
|
1938
1662
|
url: z.string(),
|
|
1939
1663
|
detail: z.string().optional(),
|
|
1940
1664
|
});
|
|
1941
1665
|
|
|
1942
|
-
export function
|
|
1943
|
-
return JSON.stringify(
|
|
1666
|
+
export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
|
|
1667
|
+
return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
|
|
1944
1668
|
}
|
|
1945
|
-
export function
|
|
1669
|
+
export function twoImageUrlFromJSON(
|
|
1946
1670
|
jsonString: string,
|
|
1947
|
-
): SafeParseResult<
|
|
1671
|
+
): SafeParseResult<TwoImageUrl, SDKValidationError> {
|
|
1948
1672
|
return safeParse(
|
|
1949
1673
|
jsonString,
|
|
1950
|
-
(x) =>
|
|
1951
|
-
`Failed to parse '
|
|
1674
|
+
(x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
1675
|
+
`Failed to parse 'TwoImageUrl' from JSON`,
|
|
1952
1676
|
);
|
|
1953
1677
|
}
|
|
1954
1678
|
|
|
1955
1679
|
/** @internal */
|
|
1956
|
-
export const
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1680
|
+
export const CreatePrompt22$inboundSchema: z.ZodType<
|
|
1681
|
+
CreatePrompt22,
|
|
1682
|
+
z.ZodTypeDef,
|
|
1683
|
+
unknown
|
|
1684
|
+
> = z.object({
|
|
1685
|
+
type: z.literal("image_url"),
|
|
1686
|
+
image_url: z.lazy(() => TwoImageUrl$inboundSchema),
|
|
1687
|
+
}).transform((v) => {
|
|
1688
|
+
return remap$(v, {
|
|
1689
|
+
"image_url": "imageUrl",
|
|
1964
1690
|
});
|
|
1691
|
+
});
|
|
1965
1692
|
/** @internal */
|
|
1966
|
-
export type
|
|
1693
|
+
export type CreatePrompt22$Outbound = {
|
|
1967
1694
|
type: "image_url";
|
|
1968
|
-
image_url:
|
|
1695
|
+
image_url: TwoImageUrl$Outbound;
|
|
1969
1696
|
};
|
|
1970
1697
|
|
|
1971
1698
|
/** @internal */
|
|
1972
|
-
export const
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1699
|
+
export const CreatePrompt22$outboundSchema: z.ZodType<
|
|
1700
|
+
CreatePrompt22$Outbound,
|
|
1701
|
+
z.ZodTypeDef,
|
|
1702
|
+
CreatePrompt22
|
|
1703
|
+
> = z.object({
|
|
1704
|
+
type: z.literal("image_url"),
|
|
1705
|
+
imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
|
|
1706
|
+
}).transform((v) => {
|
|
1707
|
+
return remap$(v, {
|
|
1708
|
+
imageUrl: "image_url",
|
|
1980
1709
|
});
|
|
1710
|
+
});
|
|
1981
1711
|
|
|
1982
|
-
export function
|
|
1983
|
-
return JSON.stringify(
|
|
1712
|
+
export function createPrompt22ToJSON(createPrompt22: CreatePrompt22): string {
|
|
1713
|
+
return JSON.stringify(CreatePrompt22$outboundSchema.parse(createPrompt22));
|
|
1984
1714
|
}
|
|
1985
|
-
export function
|
|
1715
|
+
export function createPrompt22FromJSON(
|
|
1986
1716
|
jsonString: string,
|
|
1987
|
-
): SafeParseResult<
|
|
1717
|
+
): SafeParseResult<CreatePrompt22, SDKValidationError> {
|
|
1988
1718
|
return safeParse(
|
|
1989
1719
|
jsonString,
|
|
1990
|
-
(x) =>
|
|
1991
|
-
`Failed to parse '
|
|
1720
|
+
(x) => CreatePrompt22$inboundSchema.parse(JSON.parse(x)),
|
|
1721
|
+
`Failed to parse 'CreatePrompt22' from JSON`,
|
|
1992
1722
|
);
|
|
1993
1723
|
}
|
|
1994
1724
|
|
|
1995
1725
|
/** @internal */
|
|
1996
|
-
export const
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
type: z.literal("text"),
|
|
2002
|
-
text: z.string(),
|
|
2003
|
-
});
|
|
1726
|
+
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
1727
|
+
.object({
|
|
1728
|
+
type: z.literal("text"),
|
|
1729
|
+
text: z.string(),
|
|
1730
|
+
});
|
|
2004
1731
|
/** @internal */
|
|
2005
|
-
export type
|
|
1732
|
+
export type Two1$Outbound = {
|
|
2006
1733
|
type: "text";
|
|
2007
1734
|
text: string;
|
|
2008
1735
|
};
|
|
2009
1736
|
|
|
2010
1737
|
/** @internal */
|
|
2011
|
-
export const
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
type: z.literal("text"),
|
|
2017
|
-
text: z.string(),
|
|
2018
|
-
});
|
|
1738
|
+
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
1739
|
+
z.object({
|
|
1740
|
+
type: z.literal("text"),
|
|
1741
|
+
text: z.string(),
|
|
1742
|
+
});
|
|
2019
1743
|
|
|
2020
|
-
export function
|
|
2021
|
-
return JSON.stringify(
|
|
1744
|
+
export function two1ToJSON(two1: Two1): string {
|
|
1745
|
+
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
2022
1746
|
}
|
|
2023
|
-
export function
|
|
1747
|
+
export function two1FromJSON(
|
|
2024
1748
|
jsonString: string,
|
|
2025
|
-
): SafeParseResult<
|
|
1749
|
+
): SafeParseResult<Two1, SDKValidationError> {
|
|
2026
1750
|
return safeParse(
|
|
2027
1751
|
jsonString,
|
|
2028
|
-
(x) =>
|
|
2029
|
-
`Failed to parse '
|
|
1752
|
+
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
1753
|
+
`Failed to parse 'Two1' from JSON`,
|
|
2030
1754
|
);
|
|
2031
1755
|
}
|
|
2032
1756
|
|
|
@@ -2036,15 +1760,15 @@ export const CreatePromptContent2$inboundSchema: z.ZodType<
|
|
|
2036
1760
|
z.ZodTypeDef,
|
|
2037
1761
|
unknown
|
|
2038
1762
|
> = z.union([
|
|
2039
|
-
z.lazy(() =>
|
|
2040
|
-
z.lazy(() =>
|
|
2041
|
-
z.lazy(() =>
|
|
1763
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1764
|
+
z.lazy(() => CreatePrompt22$inboundSchema),
|
|
1765
|
+
z.lazy(() => Two3$inboundSchema),
|
|
2042
1766
|
]);
|
|
2043
1767
|
/** @internal */
|
|
2044
1768
|
export type CreatePromptContent2$Outbound =
|
|
2045
|
-
|
|
|
2046
|
-
|
|
|
2047
|
-
|
|
|
1769
|
+
| Two1$Outbound
|
|
1770
|
+
| CreatePrompt22$Outbound
|
|
1771
|
+
| Two3$Outbound;
|
|
2048
1772
|
|
|
2049
1773
|
/** @internal */
|
|
2050
1774
|
export const CreatePromptContent2$outboundSchema: z.ZodType<
|
|
@@ -2052,9 +1776,9 @@ export const CreatePromptContent2$outboundSchema: z.ZodType<
|
|
|
2052
1776
|
z.ZodTypeDef,
|
|
2053
1777
|
CreatePromptContent2
|
|
2054
1778
|
> = z.union([
|
|
2055
|
-
z.lazy(() =>
|
|
2056
|
-
z.lazy(() =>
|
|
2057
|
-
z.lazy(() =>
|
|
1779
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1780
|
+
z.lazy(() => CreatePrompt22$outboundSchema),
|
|
1781
|
+
z.lazy(() => Two3$outboundSchema),
|
|
2058
1782
|
]);
|
|
2059
1783
|
|
|
2060
1784
|
export function createPromptContent2ToJSON(
|
|
@@ -2082,15 +1806,15 @@ export const CreatePromptContent$inboundSchema: z.ZodType<
|
|
|
2082
1806
|
> = z.union([
|
|
2083
1807
|
z.string(),
|
|
2084
1808
|
z.array(z.union([
|
|
2085
|
-
z.lazy(() =>
|
|
2086
|
-
z.lazy(() =>
|
|
2087
|
-
z.lazy(() =>
|
|
1809
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1810
|
+
z.lazy(() => CreatePrompt22$inboundSchema),
|
|
1811
|
+
z.lazy(() => Two3$inboundSchema),
|
|
2088
1812
|
])),
|
|
2089
1813
|
]);
|
|
2090
1814
|
/** @internal */
|
|
2091
1815
|
export type CreatePromptContent$Outbound =
|
|
2092
1816
|
| string
|
|
2093
|
-
| Array<
|
|
1817
|
+
| Array<Two1$Outbound | CreatePrompt22$Outbound | Two3$Outbound>;
|
|
2094
1818
|
|
|
2095
1819
|
/** @internal */
|
|
2096
1820
|
export const CreatePromptContent$outboundSchema: z.ZodType<
|
|
@@ -2100,9 +1824,9 @@ export const CreatePromptContent$outboundSchema: z.ZodType<
|
|
|
2100
1824
|
> = z.union([
|
|
2101
1825
|
z.string(),
|
|
2102
1826
|
z.array(z.union([
|
|
2103
|
-
z.lazy(() =>
|
|
2104
|
-
z.lazy(() =>
|
|
2105
|
-
z.lazy(() =>
|
|
1827
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1828
|
+
z.lazy(() => CreatePrompt22$outboundSchema),
|
|
1829
|
+
z.lazy(() => Two3$outboundSchema),
|
|
2106
1830
|
])),
|
|
2107
1831
|
]);
|
|
2108
1832
|
|
|
@@ -2233,15 +1957,15 @@ export const CreatePromptMessages$inboundSchema: z.ZodType<
|
|
|
2233
1957
|
z.union([
|
|
2234
1958
|
z.string(),
|
|
2235
1959
|
z.array(z.union([
|
|
2236
|
-
z.lazy(() =>
|
|
2237
|
-
z.lazy(() =>
|
|
2238
|
-
z.lazy(() =>
|
|
1960
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1961
|
+
z.lazy(() => CreatePrompt22$inboundSchema),
|
|
1962
|
+
z.lazy(() => Two3$inboundSchema),
|
|
2239
1963
|
])),
|
|
2240
1964
|
]),
|
|
2241
1965
|
),
|
|
2242
1966
|
tool_calls: z.array(z.lazy(() => CreatePromptToolCalls$inboundSchema))
|
|
2243
1967
|
.optional(),
|
|
2244
|
-
tool_call_id: z.string().optional(),
|
|
1968
|
+
tool_call_id: z.nullable(z.string()).optional(),
|
|
2245
1969
|
}).transform((v) => {
|
|
2246
1970
|
return remap$(v, {
|
|
2247
1971
|
"tool_calls": "toolCalls",
|
|
@@ -2253,10 +1977,10 @@ export type CreatePromptMessages$Outbound = {
|
|
|
2253
1977
|
role: string;
|
|
2254
1978
|
content:
|
|
2255
1979
|
| string
|
|
2256
|
-
| Array<
|
|
1980
|
+
| Array<Two1$Outbound | CreatePrompt22$Outbound | Two3$Outbound>
|
|
2257
1981
|
| null;
|
|
2258
1982
|
tool_calls?: Array<CreatePromptToolCalls$Outbound> | undefined;
|
|
2259
|
-
tool_call_id?: string | undefined;
|
|
1983
|
+
tool_call_id?: string | null | undefined;
|
|
2260
1984
|
};
|
|
2261
1985
|
|
|
2262
1986
|
/** @internal */
|
|
@@ -2270,15 +1994,15 @@ export const CreatePromptMessages$outboundSchema: z.ZodType<
|
|
|
2270
1994
|
z.union([
|
|
2271
1995
|
z.string(),
|
|
2272
1996
|
z.array(z.union([
|
|
2273
|
-
z.lazy(() =>
|
|
2274
|
-
z.lazy(() =>
|
|
2275
|
-
z.lazy(() =>
|
|
1997
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1998
|
+
z.lazy(() => CreatePrompt22$outboundSchema),
|
|
1999
|
+
z.lazy(() => Two3$outboundSchema),
|
|
2276
2000
|
])),
|
|
2277
2001
|
]),
|
|
2278
2002
|
),
|
|
2279
2003
|
toolCalls: z.array(z.lazy(() => CreatePromptToolCalls$outboundSchema))
|
|
2280
2004
|
.optional(),
|
|
2281
|
-
toolCallId: z.string().optional(),
|
|
2005
|
+
toolCallId: z.nullable(z.string()).optional(),
|
|
2282
2006
|
}).transform((v) => {
|
|
2283
2007
|
return remap$(v, {
|
|
2284
2008
|
toolCalls: "tool_calls",
|
|
@@ -2816,205 +2540,47 @@ export function promptConfigurationFromJSON(
|
|
|
2816
2540
|
}
|
|
2817
2541
|
|
|
2818
2542
|
/** @internal */
|
|
2819
|
-
export const
|
|
2820
|
-
z.ZodNativeEnum<
|
|
2821
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type
|
|
2822
|
-
> = z.nativeEnum(CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type);
|
|
2823
|
-
/** @internal */
|
|
2824
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema:
|
|
2825
|
-
z.ZodNativeEnum<
|
|
2826
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type
|
|
2827
|
-
> = CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema;
|
|
2828
|
-
|
|
2829
|
-
/** @internal */
|
|
2830
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema:
|
|
2831
|
-
z.ZodNativeEnum<
|
|
2832
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
|
|
2833
|
-
> = z.nativeEnum(
|
|
2834
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType,
|
|
2835
|
-
);
|
|
2836
|
-
/** @internal */
|
|
2837
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema:
|
|
2838
|
-
z.ZodNativeEnum<
|
|
2839
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType
|
|
2840
|
-
> =
|
|
2841
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema;
|
|
2842
|
-
|
|
2843
|
-
/** @internal */
|
|
2844
|
-
export const CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema:
|
|
2845
|
-
z.ZodNativeEnum<typeof CreatePrompt2PromptsRequestRequestBodyTtl> = z
|
|
2846
|
-
.nativeEnum(CreatePrompt2PromptsRequestRequestBodyTtl);
|
|
2847
|
-
/** @internal */
|
|
2848
|
-
export const CreatePrompt2PromptsRequestRequestBodyTtl$outboundSchema:
|
|
2849
|
-
z.ZodNativeEnum<typeof CreatePrompt2PromptsRequestRequestBodyTtl> =
|
|
2850
|
-
CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema;
|
|
2851
|
-
|
|
2852
|
-
/** @internal */
|
|
2853
|
-
export const CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema:
|
|
2854
|
-
z.ZodType<
|
|
2855
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl,
|
|
2856
|
-
z.ZodTypeDef,
|
|
2857
|
-
unknown
|
|
2858
|
-
> = z.object({
|
|
2859
|
-
type:
|
|
2860
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$inboundSchema,
|
|
2861
|
-
ttl: CreatePrompt2PromptsRequestRequestBodyTtl$inboundSchema.default("5m"),
|
|
2862
|
-
});
|
|
2863
|
-
/** @internal */
|
|
2864
|
-
export type CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound = {
|
|
2865
|
-
type: string;
|
|
2866
|
-
ttl: string;
|
|
2867
|
-
};
|
|
2868
|
-
|
|
2869
|
-
/** @internal */
|
|
2870
|
-
export const CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema:
|
|
2871
|
-
z.ZodType<
|
|
2872
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound,
|
|
2873
|
-
z.ZodTypeDef,
|
|
2874
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl
|
|
2875
|
-
> = z.object({
|
|
2876
|
-
type:
|
|
2877
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages4ContentType$outboundSchema,
|
|
2878
|
-
ttl: CreatePrompt2PromptsRequestRequestBodyTtl$outboundSchema.default("5m"),
|
|
2879
|
-
});
|
|
2880
|
-
|
|
2881
|
-
export function createPrompt2PromptsRequestRequestBodyCacheControlToJSON(
|
|
2882
|
-
createPrompt2PromptsRequestRequestBodyCacheControl:
|
|
2883
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl,
|
|
2884
|
-
): string {
|
|
2885
|
-
return JSON.stringify(
|
|
2886
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema.parse(
|
|
2887
|
-
createPrompt2PromptsRequestRequestBodyCacheControl,
|
|
2888
|
-
),
|
|
2889
|
-
);
|
|
2890
|
-
}
|
|
2891
|
-
export function createPrompt2PromptsRequestRequestBodyCacheControlFromJSON(
|
|
2892
|
-
jsonString: string,
|
|
2893
|
-
): SafeParseResult<
|
|
2894
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl,
|
|
2895
|
-
SDKValidationError
|
|
2896
|
-
> {
|
|
2897
|
-
return safeParse(
|
|
2898
|
-
jsonString,
|
|
2899
|
-
(x) =>
|
|
2900
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema.parse(
|
|
2901
|
-
JSON.parse(x),
|
|
2902
|
-
),
|
|
2903
|
-
`Failed to parse 'CreatePrompt2PromptsRequestRequestBodyCacheControl' from JSON`,
|
|
2904
|
-
);
|
|
2905
|
-
}
|
|
2906
|
-
|
|
2907
|
-
/** @internal */
|
|
2908
|
-
export const CreatePrompt2PromptsRequestRequestBody1$inboundSchema: z.ZodType<
|
|
2909
|
-
CreatePrompt2PromptsRequestRequestBody1,
|
|
2910
|
-
z.ZodTypeDef,
|
|
2911
|
-
unknown
|
|
2912
|
-
> = z.object({
|
|
2913
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$inboundSchema,
|
|
2914
|
-
text: z.string(),
|
|
2915
|
-
cache_control: z.lazy(() =>
|
|
2916
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl$inboundSchema
|
|
2917
|
-
).optional(),
|
|
2918
|
-
}).transform((v) => {
|
|
2919
|
-
return remap$(v, {
|
|
2920
|
-
"cache_control": "cacheControl",
|
|
2921
|
-
});
|
|
2922
|
-
});
|
|
2923
|
-
/** @internal */
|
|
2924
|
-
export type CreatePrompt2PromptsRequestRequestBody1$Outbound = {
|
|
2925
|
-
type: string;
|
|
2926
|
-
text: string;
|
|
2927
|
-
cache_control?:
|
|
2928
|
-
| CreatePrompt2PromptsRequestRequestBodyCacheControl$Outbound
|
|
2929
|
-
| undefined;
|
|
2930
|
-
};
|
|
2931
|
-
|
|
2932
|
-
/** @internal */
|
|
2933
|
-
export const CreatePrompt2PromptsRequestRequestBody1$outboundSchema: z.ZodType<
|
|
2934
|
-
CreatePrompt2PromptsRequestRequestBody1$Outbound,
|
|
2935
|
-
z.ZodTypeDef,
|
|
2936
|
-
CreatePrompt2PromptsRequestRequestBody1
|
|
2937
|
-
> = z.object({
|
|
2938
|
-
type:
|
|
2939
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages4Type$outboundSchema,
|
|
2940
|
-
text: z.string(),
|
|
2941
|
-
cacheControl: z.lazy(() =>
|
|
2942
|
-
CreatePrompt2PromptsRequestRequestBodyCacheControl$outboundSchema
|
|
2943
|
-
).optional(),
|
|
2944
|
-
}).transform((v) => {
|
|
2945
|
-
return remap$(v, {
|
|
2946
|
-
cacheControl: "cache_control",
|
|
2947
|
-
});
|
|
2948
|
-
});
|
|
2949
|
-
|
|
2950
|
-
export function createPrompt2PromptsRequestRequestBody1ToJSON(
|
|
2951
|
-
createPrompt2PromptsRequestRequestBody1:
|
|
2952
|
-
CreatePrompt2PromptsRequestRequestBody1,
|
|
2953
|
-
): string {
|
|
2954
|
-
return JSON.stringify(
|
|
2955
|
-
CreatePrompt2PromptsRequestRequestBody1$outboundSchema.parse(
|
|
2956
|
-
createPrompt2PromptsRequestRequestBody1,
|
|
2957
|
-
),
|
|
2958
|
-
);
|
|
2959
|
-
}
|
|
2960
|
-
export function createPrompt2PromptsRequestRequestBody1FromJSON(
|
|
2961
|
-
jsonString: string,
|
|
2962
|
-
): SafeParseResult<
|
|
2963
|
-
CreatePrompt2PromptsRequestRequestBody1,
|
|
2964
|
-
SDKValidationError
|
|
2965
|
-
> {
|
|
2966
|
-
return safeParse(
|
|
2967
|
-
jsonString,
|
|
2968
|
-
(x) =>
|
|
2969
|
-
CreatePrompt2PromptsRequestRequestBody1$inboundSchema.parse(
|
|
2970
|
-
JSON.parse(x),
|
|
2971
|
-
),
|
|
2972
|
-
`Failed to parse 'CreatePrompt2PromptsRequestRequestBody1' from JSON`,
|
|
2973
|
-
);
|
|
2974
|
-
}
|
|
2975
|
-
|
|
2976
|
-
/** @internal */
|
|
2977
|
-
export const CreatePromptContentPromptsRequestRequestBodyPrompt2$inboundSchema:
|
|
2543
|
+
export const CreatePromptContentPromptsRequestRequestBody2$inboundSchema:
|
|
2978
2544
|
z.ZodType<
|
|
2979
|
-
|
|
2545
|
+
CreatePromptContentPromptsRequestRequestBody2,
|
|
2980
2546
|
z.ZodTypeDef,
|
|
2981
2547
|
unknown
|
|
2982
|
-
> =
|
|
2548
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
2983
2549
|
/** @internal */
|
|
2984
|
-
export type
|
|
2985
|
-
|
|
2550
|
+
export type CreatePromptContentPromptsRequestRequestBody2$Outbound =
|
|
2551
|
+
components.TextContentPartSchema$Outbound;
|
|
2986
2552
|
|
|
2987
2553
|
/** @internal */
|
|
2988
|
-
export const
|
|
2554
|
+
export const CreatePromptContentPromptsRequestRequestBody2$outboundSchema:
|
|
2989
2555
|
z.ZodType<
|
|
2990
|
-
|
|
2556
|
+
CreatePromptContentPromptsRequestRequestBody2$Outbound,
|
|
2991
2557
|
z.ZodTypeDef,
|
|
2992
|
-
|
|
2993
|
-
> =
|
|
2558
|
+
CreatePromptContentPromptsRequestRequestBody2
|
|
2559
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
2994
2560
|
|
|
2995
|
-
export function
|
|
2996
|
-
|
|
2997
|
-
|
|
2561
|
+
export function createPromptContentPromptsRequestRequestBody2ToJSON(
|
|
2562
|
+
createPromptContentPromptsRequestRequestBody2:
|
|
2563
|
+
CreatePromptContentPromptsRequestRequestBody2,
|
|
2998
2564
|
): string {
|
|
2999
2565
|
return JSON.stringify(
|
|
3000
|
-
|
|
3001
|
-
|
|
2566
|
+
CreatePromptContentPromptsRequestRequestBody2$outboundSchema.parse(
|
|
2567
|
+
createPromptContentPromptsRequestRequestBody2,
|
|
3002
2568
|
),
|
|
3003
2569
|
);
|
|
3004
2570
|
}
|
|
3005
|
-
export function
|
|
2571
|
+
export function createPromptContentPromptsRequestRequestBody2FromJSON(
|
|
3006
2572
|
jsonString: string,
|
|
3007
2573
|
): SafeParseResult<
|
|
3008
|
-
|
|
2574
|
+
CreatePromptContentPromptsRequestRequestBody2,
|
|
3009
2575
|
SDKValidationError
|
|
3010
2576
|
> {
|
|
3011
2577
|
return safeParse(
|
|
3012
2578
|
jsonString,
|
|
3013
2579
|
(x) =>
|
|
3014
|
-
|
|
2580
|
+
CreatePromptContentPromptsRequestRequestBody2$inboundSchema.parse(
|
|
3015
2581
|
JSON.parse(x),
|
|
3016
2582
|
),
|
|
3017
|
-
`Failed to parse '
|
|
2583
|
+
`Failed to parse 'CreatePromptContentPromptsRequestRequestBody2' from JSON`,
|
|
3018
2584
|
);
|
|
3019
2585
|
}
|
|
3020
2586
|
|
|
@@ -3026,14 +2592,12 @@ export const CreatePromptMessagesPromptsRequestRequestBodyContent$inboundSchema:
|
|
|
3026
2592
|
unknown
|
|
3027
2593
|
> = z.union([
|
|
3028
2594
|
z.string(),
|
|
3029
|
-
z.array(
|
|
3030
|
-
z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$inboundSchema),
|
|
3031
|
-
),
|
|
2595
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3032
2596
|
]);
|
|
3033
2597
|
/** @internal */
|
|
3034
2598
|
export type CreatePromptMessagesPromptsRequestRequestBodyContent$Outbound =
|
|
3035
2599
|
| string
|
|
3036
|
-
| Array<
|
|
2600
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3037
2601
|
|
|
3038
2602
|
/** @internal */
|
|
3039
2603
|
export const CreatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema:
|
|
@@ -3043,9 +2607,7 @@ export const CreatePromptMessagesPromptsRequestRequestBodyContent$outboundSchema
|
|
|
3043
2607
|
CreatePromptMessagesPromptsRequestRequestBodyContent
|
|
3044
2608
|
> = z.union([
|
|
3045
2609
|
z.string(),
|
|
3046
|
-
z.array(
|
|
3047
|
-
z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$outboundSchema),
|
|
3048
|
-
),
|
|
2610
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3049
2611
|
]);
|
|
3050
2612
|
|
|
3051
2613
|
export function createPromptMessagesPromptsRequestRequestBodyContentToJSON(
|
|
@@ -3145,9 +2707,7 @@ export const CreatePromptMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
3145
2707
|
role: z.literal("tool"),
|
|
3146
2708
|
content: z.union([
|
|
3147
2709
|
z.string(),
|
|
3148
|
-
z.array(
|
|
3149
|
-
z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$inboundSchema),
|
|
3150
|
-
),
|
|
2710
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3151
2711
|
]),
|
|
3152
2712
|
tool_call_id: z.string(),
|
|
3153
2713
|
cache_control: z.lazy(() => CreatePromptMessagesCacheControl$inboundSchema)
|
|
@@ -3161,7 +2721,7 @@ export const CreatePromptMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
3161
2721
|
/** @internal */
|
|
3162
2722
|
export type CreatePromptMessagesToolMessage$Outbound = {
|
|
3163
2723
|
role: "tool";
|
|
3164
|
-
content: string | Array<
|
|
2724
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3165
2725
|
tool_call_id: string;
|
|
3166
2726
|
cache_control?: CreatePromptMessagesCacheControl$Outbound | undefined;
|
|
3167
2727
|
};
|
|
@@ -3175,9 +2735,7 @@ export const CreatePromptMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
3175
2735
|
role: z.literal("tool"),
|
|
3176
2736
|
content: z.union([
|
|
3177
2737
|
z.string(),
|
|
3178
|
-
z.array(
|
|
3179
|
-
z.lazy(() => CreatePrompt2PromptsRequestRequestBody1$outboundSchema),
|
|
3180
|
-
),
|
|
2738
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3181
2739
|
]),
|
|
3182
2740
|
toolCallId: z.string(),
|
|
3183
2741
|
cacheControl: z.lazy(() => CreatePromptMessagesCacheControl$outboundSchema)
|
|
@@ -3209,195 +2767,56 @@ export function createPromptMessagesToolMessageFromJSON(
|
|
|
3209
2767
|
}
|
|
3210
2768
|
|
|
3211
2769
|
/** @internal */
|
|
3212
|
-
export const
|
|
3213
|
-
|
|
3214
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
|
|
3215
|
-
> = z.nativeEnum(
|
|
3216
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType,
|
|
3217
|
-
);
|
|
3218
|
-
/** @internal */
|
|
3219
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema:
|
|
3220
|
-
z.ZodNativeEnum<
|
|
3221
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType
|
|
3222
|
-
> =
|
|
3223
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema;
|
|
3224
|
-
|
|
3225
|
-
/** @internal */
|
|
3226
|
-
export const CreatePrompt2PromptsRequestTtl$inboundSchema: z.ZodNativeEnum<
|
|
3227
|
-
typeof CreatePrompt2PromptsRequestTtl
|
|
3228
|
-
> = z.nativeEnum(CreatePrompt2PromptsRequestTtl);
|
|
3229
|
-
/** @internal */
|
|
3230
|
-
export const CreatePrompt2PromptsRequestTtl$outboundSchema: z.ZodNativeEnum<
|
|
3231
|
-
typeof CreatePrompt2PromptsRequestTtl
|
|
3232
|
-
> = CreatePrompt2PromptsRequestTtl$inboundSchema;
|
|
3233
|
-
|
|
3234
|
-
/** @internal */
|
|
3235
|
-
export const CreatePrompt2PromptsRequestCacheControl$inboundSchema: z.ZodType<
|
|
3236
|
-
CreatePrompt2PromptsRequestCacheControl,
|
|
3237
|
-
z.ZodTypeDef,
|
|
3238
|
-
unknown
|
|
3239
|
-
> = z.object({
|
|
3240
|
-
type:
|
|
3241
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$inboundSchema,
|
|
3242
|
-
ttl: CreatePrompt2PromptsRequestTtl$inboundSchema.default("5m"),
|
|
3243
|
-
});
|
|
3244
|
-
/** @internal */
|
|
3245
|
-
export type CreatePrompt2PromptsRequestCacheControl$Outbound = {
|
|
3246
|
-
type: string;
|
|
3247
|
-
ttl: string;
|
|
3248
|
-
};
|
|
3249
|
-
|
|
3250
|
-
/** @internal */
|
|
3251
|
-
export const CreatePrompt2PromptsRequestCacheControl$outboundSchema: z.ZodType<
|
|
3252
|
-
CreatePrompt2PromptsRequestCacheControl$Outbound,
|
|
3253
|
-
z.ZodTypeDef,
|
|
3254
|
-
CreatePrompt2PromptsRequestCacheControl
|
|
3255
|
-
> = z.object({
|
|
3256
|
-
type:
|
|
3257
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages3ContentType$outboundSchema,
|
|
3258
|
-
ttl: CreatePrompt2PromptsRequestTtl$outboundSchema.default("5m"),
|
|
3259
|
-
});
|
|
3260
|
-
|
|
3261
|
-
export function createPrompt2PromptsRequestCacheControlToJSON(
|
|
3262
|
-
createPrompt2PromptsRequestCacheControl:
|
|
3263
|
-
CreatePrompt2PromptsRequestCacheControl,
|
|
3264
|
-
): string {
|
|
3265
|
-
return JSON.stringify(
|
|
3266
|
-
CreatePrompt2PromptsRequestCacheControl$outboundSchema.parse(
|
|
3267
|
-
createPrompt2PromptsRequestCacheControl,
|
|
3268
|
-
),
|
|
3269
|
-
);
|
|
3270
|
-
}
|
|
3271
|
-
export function createPrompt2PromptsRequestCacheControlFromJSON(
|
|
3272
|
-
jsonString: string,
|
|
3273
|
-
): SafeParseResult<
|
|
3274
|
-
CreatePrompt2PromptsRequestCacheControl,
|
|
3275
|
-
SDKValidationError
|
|
3276
|
-
> {
|
|
3277
|
-
return safeParse(
|
|
3278
|
-
jsonString,
|
|
3279
|
-
(x) =>
|
|
3280
|
-
CreatePrompt2PromptsRequestCacheControl$inboundSchema.parse(
|
|
3281
|
-
JSON.parse(x),
|
|
3282
|
-
),
|
|
3283
|
-
`Failed to parse 'CreatePrompt2PromptsRequestCacheControl' from JSON`,
|
|
3284
|
-
);
|
|
3285
|
-
}
|
|
3286
|
-
|
|
3287
|
-
/** @internal */
|
|
3288
|
-
export const CreatePrompt2PromptsRequest1$inboundSchema: z.ZodType<
|
|
3289
|
-
CreatePrompt2PromptsRequest1,
|
|
2770
|
+
export const CreatePromptContentPromptsRequest2$inboundSchema: z.ZodType<
|
|
2771
|
+
CreatePromptContentPromptsRequest2,
|
|
3290
2772
|
z.ZodTypeDef,
|
|
3291
2773
|
unknown
|
|
3292
|
-
> = z.
|
|
3293
|
-
|
|
3294
|
-
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
"cache_control": "cacheControl",
|
|
3301
|
-
});
|
|
3302
|
-
});
|
|
3303
|
-
/** @internal */
|
|
3304
|
-
export type CreatePrompt2PromptsRequest1$Outbound = {
|
|
3305
|
-
type: "text";
|
|
3306
|
-
text: string;
|
|
3307
|
-
cache_control?: CreatePrompt2PromptsRequestCacheControl$Outbound | undefined;
|
|
3308
|
-
};
|
|
3309
|
-
|
|
3310
|
-
/** @internal */
|
|
3311
|
-
export const CreatePrompt2PromptsRequest1$outboundSchema: z.ZodType<
|
|
3312
|
-
CreatePrompt2PromptsRequest1$Outbound,
|
|
3313
|
-
z.ZodTypeDef,
|
|
3314
|
-
CreatePrompt2PromptsRequest1
|
|
3315
|
-
> = z.object({
|
|
3316
|
-
type: z.literal("text"),
|
|
3317
|
-
text: z.string(),
|
|
3318
|
-
cacheControl: z.lazy(() =>
|
|
3319
|
-
CreatePrompt2PromptsRequestCacheControl$outboundSchema
|
|
3320
|
-
).optional(),
|
|
3321
|
-
}).transform((v) => {
|
|
3322
|
-
return remap$(v, {
|
|
3323
|
-
cacheControl: "cache_control",
|
|
3324
|
-
});
|
|
3325
|
-
});
|
|
3326
|
-
|
|
3327
|
-
export function createPrompt2PromptsRequest1ToJSON(
|
|
3328
|
-
createPrompt2PromptsRequest1: CreatePrompt2PromptsRequest1,
|
|
3329
|
-
): string {
|
|
3330
|
-
return JSON.stringify(
|
|
3331
|
-
CreatePrompt2PromptsRequest1$outboundSchema.parse(
|
|
3332
|
-
createPrompt2PromptsRequest1,
|
|
3333
|
-
),
|
|
3334
|
-
);
|
|
3335
|
-
}
|
|
3336
|
-
export function createPrompt2PromptsRequest1FromJSON(
|
|
3337
|
-
jsonString: string,
|
|
3338
|
-
): SafeParseResult<CreatePrompt2PromptsRequest1, SDKValidationError> {
|
|
3339
|
-
return safeParse(
|
|
3340
|
-
jsonString,
|
|
3341
|
-
(x) => CreatePrompt2PromptsRequest1$inboundSchema.parse(JSON.parse(x)),
|
|
3342
|
-
`Failed to parse 'CreatePrompt2PromptsRequest1' from JSON`,
|
|
3343
|
-
);
|
|
3344
|
-
}
|
|
3345
|
-
|
|
3346
|
-
/** @internal */
|
|
3347
|
-
export const CreatePromptContentPromptsRequestRequestBody2$inboundSchema:
|
|
3348
|
-
z.ZodType<
|
|
3349
|
-
CreatePromptContentPromptsRequestRequestBody2,
|
|
3350
|
-
z.ZodTypeDef,
|
|
3351
|
-
unknown
|
|
3352
|
-
> = z.union([
|
|
3353
|
-
z.lazy(() => CreatePrompt2PromptsRequest1$inboundSchema),
|
|
3354
|
-
components.RefusalPartSchema$inboundSchema,
|
|
3355
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
3356
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
3357
|
-
]);
|
|
2774
|
+
> = z.union([
|
|
2775
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2776
|
+
z.object({ type: z.literal("text") }),
|
|
2777
|
+
),
|
|
2778
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2779
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2780
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2781
|
+
]);
|
|
3358
2782
|
/** @internal */
|
|
3359
|
-
export type
|
|
3360
|
-
|
|
|
2783
|
+
export type CreatePromptContentPromptsRequest2$Outbound =
|
|
2784
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3361
2785
|
| components.RefusalPartSchema$Outbound
|
|
3362
2786
|
| components.ReasoningPartSchema$Outbound
|
|
3363
2787
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
3364
2788
|
|
|
3365
2789
|
/** @internal */
|
|
3366
|
-
export const
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
z.
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
2790
|
+
export const CreatePromptContentPromptsRequest2$outboundSchema: z.ZodType<
|
|
2791
|
+
CreatePromptContentPromptsRequest2$Outbound,
|
|
2792
|
+
z.ZodTypeDef,
|
|
2793
|
+
CreatePromptContentPromptsRequest2
|
|
2794
|
+
> = z.union([
|
|
2795
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2796
|
+
z.object({ type: z.literal("text") }),
|
|
2797
|
+
),
|
|
2798
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2799
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2800
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2801
|
+
]);
|
|
3377
2802
|
|
|
3378
|
-
export function
|
|
3379
|
-
|
|
3380
|
-
CreatePromptContentPromptsRequestRequestBody2,
|
|
2803
|
+
export function createPromptContentPromptsRequest2ToJSON(
|
|
2804
|
+
createPromptContentPromptsRequest2: CreatePromptContentPromptsRequest2,
|
|
3381
2805
|
): string {
|
|
3382
2806
|
return JSON.stringify(
|
|
3383
|
-
|
|
3384
|
-
|
|
2807
|
+
CreatePromptContentPromptsRequest2$outboundSchema.parse(
|
|
2808
|
+
createPromptContentPromptsRequest2,
|
|
3385
2809
|
),
|
|
3386
2810
|
);
|
|
3387
2811
|
}
|
|
3388
|
-
export function
|
|
2812
|
+
export function createPromptContentPromptsRequest2FromJSON(
|
|
3389
2813
|
jsonString: string,
|
|
3390
|
-
): SafeParseResult<
|
|
3391
|
-
CreatePromptContentPromptsRequestRequestBody2,
|
|
3392
|
-
SDKValidationError
|
|
3393
|
-
> {
|
|
2814
|
+
): SafeParseResult<CreatePromptContentPromptsRequest2, SDKValidationError> {
|
|
3394
2815
|
return safeParse(
|
|
3395
2816
|
jsonString,
|
|
3396
2817
|
(x) =>
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
),
|
|
3400
|
-
`Failed to parse 'CreatePromptContentPromptsRequestRequestBody2' from JSON`,
|
|
2818
|
+
CreatePromptContentPromptsRequest2$inboundSchema.parse(JSON.parse(x)),
|
|
2819
|
+
`Failed to parse 'CreatePromptContentPromptsRequest2' from JSON`,
|
|
3401
2820
|
);
|
|
3402
2821
|
}
|
|
3403
2822
|
|
|
@@ -3408,18 +2827,22 @@ export const CreatePromptMessagesPromptsRequestContent$inboundSchema: z.ZodType<
|
|
|
3408
2827
|
unknown
|
|
3409
2828
|
> = z.union([
|
|
3410
2829
|
z.string(),
|
|
3411
|
-
z.array(
|
|
3412
|
-
z.
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
2830
|
+
z.array(
|
|
2831
|
+
z.union([
|
|
2832
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2833
|
+
z.object({ type: z.literal("text") }),
|
|
2834
|
+
),
|
|
2835
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2836
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2837
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2838
|
+
]),
|
|
2839
|
+
),
|
|
3417
2840
|
]);
|
|
3418
2841
|
/** @internal */
|
|
3419
2842
|
export type CreatePromptMessagesPromptsRequestContent$Outbound =
|
|
3420
2843
|
| string
|
|
3421
2844
|
| Array<
|
|
3422
|
-
|
|
|
2845
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3423
2846
|
| components.RefusalPartSchema$Outbound
|
|
3424
2847
|
| components.ReasoningPartSchema$Outbound
|
|
3425
2848
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -3433,12 +2856,16 @@ export const CreatePromptMessagesPromptsRequestContent$outboundSchema:
|
|
|
3433
2856
|
CreatePromptMessagesPromptsRequestContent
|
|
3434
2857
|
> = z.union([
|
|
3435
2858
|
z.string(),
|
|
3436
|
-
z.array(
|
|
3437
|
-
z.
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
2859
|
+
z.array(
|
|
2860
|
+
z.union([
|
|
2861
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2862
|
+
z.object({ type: z.literal("text") }),
|
|
2863
|
+
),
|
|
2864
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2865
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2866
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2867
|
+
]),
|
|
2868
|
+
),
|
|
3442
2869
|
]);
|
|
3443
2870
|
|
|
3444
2871
|
export function createPromptMessagesPromptsRequestContentToJSON(
|
|
@@ -3628,7 +3055,9 @@ export const CreatePromptMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
3628
3055
|
z.string(),
|
|
3629
3056
|
z.array(
|
|
3630
3057
|
z.union([
|
|
3631
|
-
|
|
3058
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3059
|
+
z.object({ type: z.literal("text") }),
|
|
3060
|
+
),
|
|
3632
3061
|
components.RefusalPartSchema$inboundSchema,
|
|
3633
3062
|
components.ReasoningPartSchema$inboundSchema,
|
|
3634
3063
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -3653,7 +3082,7 @@ export type CreatePromptMessagesAssistantMessage$Outbound = {
|
|
|
3653
3082
|
content?:
|
|
3654
3083
|
| string
|
|
3655
3084
|
| Array<
|
|
3656
|
-
|
|
|
3085
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3657
3086
|
| components.RefusalPartSchema$Outbound
|
|
3658
3087
|
| components.ReasoningPartSchema$Outbound
|
|
3659
3088
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -3678,160 +3107,46 @@ export const CreatePromptMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
3678
3107
|
z.string(),
|
|
3679
3108
|
z.array(
|
|
3680
3109
|
z.union([
|
|
3681
|
-
|
|
3110
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3111
|
+
z.object({ type: z.literal("text") }),
|
|
3112
|
+
),
|
|
3682
3113
|
components.RefusalPartSchema$outboundSchema,
|
|
3683
3114
|
components.ReasoningPartSchema$outboundSchema,
|
|
3684
3115
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3685
3116
|
]),
|
|
3686
3117
|
),
|
|
3687
|
-
]),
|
|
3688
|
-
).optional(),
|
|
3689
|
-
refusal: z.nullable(z.string()).optional(),
|
|
3690
|
-
role: z.literal("assistant"),
|
|
3691
|
-
name: z.string().optional(),
|
|
3692
|
-
audio: z.nullable(z.lazy(() => CreatePromptMessagesAudio$outboundSchema))
|
|
3693
|
-
.optional(),
|
|
3694
|
-
toolCalls: z.array(z.lazy(() => CreatePromptMessagesToolCalls$outboundSchema))
|
|
3695
|
-
.optional(),
|
|
3696
|
-
}).transform((v) => {
|
|
3697
|
-
return remap$(v, {
|
|
3698
|
-
toolCalls: "tool_calls",
|
|
3699
|
-
});
|
|
3700
|
-
});
|
|
3701
|
-
|
|
3702
|
-
export function createPromptMessagesAssistantMessageToJSON(
|
|
3703
|
-
createPromptMessagesAssistantMessage: CreatePromptMessagesAssistantMessage,
|
|
3704
|
-
): string {
|
|
3705
|
-
return JSON.stringify(
|
|
3706
|
-
CreatePromptMessagesAssistantMessage$outboundSchema.parse(
|
|
3707
|
-
createPromptMessagesAssistantMessage,
|
|
3708
|
-
),
|
|
3709
|
-
);
|
|
3710
|
-
}
|
|
3711
|
-
export function createPromptMessagesAssistantMessageFromJSON(
|
|
3712
|
-
jsonString: string,
|
|
3713
|
-
): SafeParseResult<CreatePromptMessagesAssistantMessage, SDKValidationError> {
|
|
3714
|
-
return safeParse(
|
|
3715
|
-
jsonString,
|
|
3716
|
-
(x) =>
|
|
3717
|
-
CreatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3718
|
-
`Failed to parse 'CreatePromptMessagesAssistantMessage' from JSON`,
|
|
3719
|
-
);
|
|
3720
|
-
}
|
|
3721
|
-
|
|
3722
|
-
/** @internal */
|
|
3723
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema:
|
|
3724
|
-
z.ZodNativeEnum<
|
|
3725
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type
|
|
3726
|
-
> = z.nativeEnum(CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type);
|
|
3727
|
-
/** @internal */
|
|
3728
|
-
export const CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema:
|
|
3729
|
-
z.ZodNativeEnum<
|
|
3730
|
-
typeof CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type
|
|
3731
|
-
> = CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema;
|
|
3732
|
-
|
|
3733
|
-
/** @internal */
|
|
3734
|
-
export const CreatePrompt2PromptsTtl$inboundSchema: z.ZodNativeEnum<
|
|
3735
|
-
typeof CreatePrompt2PromptsTtl
|
|
3736
|
-
> = z.nativeEnum(CreatePrompt2PromptsTtl);
|
|
3737
|
-
/** @internal */
|
|
3738
|
-
export const CreatePrompt2PromptsTtl$outboundSchema: z.ZodNativeEnum<
|
|
3739
|
-
typeof CreatePrompt2PromptsTtl
|
|
3740
|
-
> = CreatePrompt2PromptsTtl$inboundSchema;
|
|
3741
|
-
|
|
3742
|
-
/** @internal */
|
|
3743
|
-
export const CreatePrompt2PromptsCacheControl$inboundSchema: z.ZodType<
|
|
3744
|
-
CreatePrompt2PromptsCacheControl,
|
|
3745
|
-
z.ZodTypeDef,
|
|
3746
|
-
unknown
|
|
3747
|
-
> = z.object({
|
|
3748
|
-
type: CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$inboundSchema,
|
|
3749
|
-
ttl: CreatePrompt2PromptsTtl$inboundSchema.default("5m"),
|
|
3750
|
-
});
|
|
3751
|
-
/** @internal */
|
|
3752
|
-
export type CreatePrompt2PromptsCacheControl$Outbound = {
|
|
3753
|
-
type: string;
|
|
3754
|
-
ttl: string;
|
|
3755
|
-
};
|
|
3756
|
-
|
|
3757
|
-
/** @internal */
|
|
3758
|
-
export const CreatePrompt2PromptsCacheControl$outboundSchema: z.ZodType<
|
|
3759
|
-
CreatePrompt2PromptsCacheControl$Outbound,
|
|
3760
|
-
z.ZodTypeDef,
|
|
3761
|
-
CreatePrompt2PromptsCacheControl
|
|
3762
|
-
> = z.object({
|
|
3763
|
-
type:
|
|
3764
|
-
CreatePrompt2PromptsRequestRequestBodyPromptMessages2Type$outboundSchema,
|
|
3765
|
-
ttl: CreatePrompt2PromptsTtl$outboundSchema.default("5m"),
|
|
3766
|
-
});
|
|
3767
|
-
|
|
3768
|
-
export function createPrompt2PromptsCacheControlToJSON(
|
|
3769
|
-
createPrompt2PromptsCacheControl: CreatePrompt2PromptsCacheControl,
|
|
3770
|
-
): string {
|
|
3771
|
-
return JSON.stringify(
|
|
3772
|
-
CreatePrompt2PromptsCacheControl$outboundSchema.parse(
|
|
3773
|
-
createPrompt2PromptsCacheControl,
|
|
3774
|
-
),
|
|
3775
|
-
);
|
|
3776
|
-
}
|
|
3777
|
-
export function createPrompt2PromptsCacheControlFromJSON(
|
|
3778
|
-
jsonString: string,
|
|
3779
|
-
): SafeParseResult<CreatePrompt2PromptsCacheControl, SDKValidationError> {
|
|
3780
|
-
return safeParse(
|
|
3781
|
-
jsonString,
|
|
3782
|
-
(x) => CreatePrompt2PromptsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3783
|
-
`Failed to parse 'CreatePrompt2PromptsCacheControl' from JSON`,
|
|
3784
|
-
);
|
|
3785
|
-
}
|
|
3786
|
-
|
|
3787
|
-
/** @internal */
|
|
3788
|
-
export const CreatePrompt24$inboundSchema: z.ZodType<
|
|
3789
|
-
CreatePrompt24,
|
|
3790
|
-
z.ZodTypeDef,
|
|
3791
|
-
unknown
|
|
3792
|
-
> = z.object({
|
|
3793
|
-
type: z.literal("file"),
|
|
3794
|
-
cache_control: z.lazy(() => CreatePrompt2PromptsCacheControl$inboundSchema)
|
|
3795
|
-
.optional(),
|
|
3796
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
3797
|
-
}).transform((v) => {
|
|
3798
|
-
return remap$(v, {
|
|
3799
|
-
"cache_control": "cacheControl",
|
|
3800
|
-
});
|
|
3801
|
-
});
|
|
3802
|
-
/** @internal */
|
|
3803
|
-
export type CreatePrompt24$Outbound = {
|
|
3804
|
-
type: "file";
|
|
3805
|
-
cache_control?: CreatePrompt2PromptsCacheControl$Outbound | undefined;
|
|
3806
|
-
file: components.FileContentPartSchema$Outbound;
|
|
3807
|
-
};
|
|
3808
|
-
|
|
3809
|
-
/** @internal */
|
|
3810
|
-
export const CreatePrompt24$outboundSchema: z.ZodType<
|
|
3811
|
-
CreatePrompt24$Outbound,
|
|
3812
|
-
z.ZodTypeDef,
|
|
3813
|
-
CreatePrompt24
|
|
3814
|
-
> = z.object({
|
|
3815
|
-
type: z.literal("file"),
|
|
3816
|
-
cacheControl: z.lazy(() => CreatePrompt2PromptsCacheControl$outboundSchema)
|
|
3118
|
+
]),
|
|
3119
|
+
).optional(),
|
|
3120
|
+
refusal: z.nullable(z.string()).optional(),
|
|
3121
|
+
role: z.literal("assistant"),
|
|
3122
|
+
name: z.string().optional(),
|
|
3123
|
+
audio: z.nullable(z.lazy(() => CreatePromptMessagesAudio$outboundSchema))
|
|
3124
|
+
.optional(),
|
|
3125
|
+
toolCalls: z.array(z.lazy(() => CreatePromptMessagesToolCalls$outboundSchema))
|
|
3817
3126
|
.optional(),
|
|
3818
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
3819
3127
|
}).transform((v) => {
|
|
3820
3128
|
return remap$(v, {
|
|
3821
|
-
|
|
3129
|
+
toolCalls: "tool_calls",
|
|
3822
3130
|
});
|
|
3823
3131
|
});
|
|
3824
3132
|
|
|
3825
|
-
export function
|
|
3826
|
-
|
|
3133
|
+
export function createPromptMessagesAssistantMessageToJSON(
|
|
3134
|
+
createPromptMessagesAssistantMessage: CreatePromptMessagesAssistantMessage,
|
|
3135
|
+
): string {
|
|
3136
|
+
return JSON.stringify(
|
|
3137
|
+
CreatePromptMessagesAssistantMessage$outboundSchema.parse(
|
|
3138
|
+
createPromptMessagesAssistantMessage,
|
|
3139
|
+
),
|
|
3140
|
+
);
|
|
3827
3141
|
}
|
|
3828
|
-
export function
|
|
3142
|
+
export function createPromptMessagesAssistantMessageFromJSON(
|
|
3829
3143
|
jsonString: string,
|
|
3830
|
-
): SafeParseResult<
|
|
3144
|
+
): SafeParseResult<CreatePromptMessagesAssistantMessage, SDKValidationError> {
|
|
3831
3145
|
return safeParse(
|
|
3832
3146
|
jsonString,
|
|
3833
|
-
(x) =>
|
|
3834
|
-
|
|
3147
|
+
(x) =>
|
|
3148
|
+
CreatePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)),
|
|
3149
|
+
`Failed to parse 'CreatePromptMessagesAssistantMessage' from JSON`,
|
|
3835
3150
|
);
|
|
3836
3151
|
}
|
|
3837
3152
|
|
|
@@ -3896,107 +3211,106 @@ export function createPrompt2CacheControlFromJSON(
|
|
|
3896
3211
|
}
|
|
3897
3212
|
|
|
3898
3213
|
/** @internal */
|
|
3899
|
-
export const
|
|
3900
|
-
|
|
3214
|
+
export const CreatePrompt24$inboundSchema: z.ZodType<
|
|
3215
|
+
CreatePrompt24,
|
|
3901
3216
|
z.ZodTypeDef,
|
|
3902
3217
|
unknown
|
|
3903
3218
|
> = z.object({
|
|
3904
|
-
type: z.literal("
|
|
3905
|
-
text: z.string(),
|
|
3219
|
+
type: z.literal("file"),
|
|
3906
3220
|
cache_control: z.lazy(() => CreatePrompt2CacheControl$inboundSchema)
|
|
3907
3221
|
.optional(),
|
|
3222
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
3908
3223
|
}).transform((v) => {
|
|
3909
3224
|
return remap$(v, {
|
|
3910
3225
|
"cache_control": "cacheControl",
|
|
3911
3226
|
});
|
|
3912
3227
|
});
|
|
3913
3228
|
/** @internal */
|
|
3914
|
-
export type
|
|
3915
|
-
type: "
|
|
3916
|
-
text: string;
|
|
3229
|
+
export type CreatePrompt24$Outbound = {
|
|
3230
|
+
type: "file";
|
|
3917
3231
|
cache_control?: CreatePrompt2CacheControl$Outbound | undefined;
|
|
3232
|
+
file: components.FileContentPartSchema$Outbound;
|
|
3918
3233
|
};
|
|
3919
3234
|
|
|
3920
3235
|
/** @internal */
|
|
3921
|
-
export const
|
|
3922
|
-
|
|
3236
|
+
export const CreatePrompt24$outboundSchema: z.ZodType<
|
|
3237
|
+
CreatePrompt24$Outbound,
|
|
3923
3238
|
z.ZodTypeDef,
|
|
3924
|
-
|
|
3239
|
+
CreatePrompt24
|
|
3925
3240
|
> = z.object({
|
|
3926
|
-
type: z.literal("
|
|
3927
|
-
text: z.string(),
|
|
3241
|
+
type: z.literal("file"),
|
|
3928
3242
|
cacheControl: z.lazy(() => CreatePrompt2CacheControl$outboundSchema)
|
|
3929
3243
|
.optional(),
|
|
3244
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
3930
3245
|
}).transform((v) => {
|
|
3931
3246
|
return remap$(v, {
|
|
3932
3247
|
cacheControl: "cache_control",
|
|
3933
3248
|
});
|
|
3934
3249
|
});
|
|
3935
3250
|
|
|
3936
|
-
export function
|
|
3937
|
-
|
|
3938
|
-
): string {
|
|
3939
|
-
return JSON.stringify(
|
|
3940
|
-
CreatePrompt2Prompts1$outboundSchema.parse(createPrompt2Prompts1),
|
|
3941
|
-
);
|
|
3251
|
+
export function createPrompt24ToJSON(createPrompt24: CreatePrompt24): string {
|
|
3252
|
+
return JSON.stringify(CreatePrompt24$outboundSchema.parse(createPrompt24));
|
|
3942
3253
|
}
|
|
3943
|
-
export function
|
|
3254
|
+
export function createPrompt24FromJSON(
|
|
3944
3255
|
jsonString: string,
|
|
3945
|
-
): SafeParseResult<
|
|
3256
|
+
): SafeParseResult<CreatePrompt24, SDKValidationError> {
|
|
3946
3257
|
return safeParse(
|
|
3947
3258
|
jsonString,
|
|
3948
|
-
(x) =>
|
|
3949
|
-
`Failed to parse '
|
|
3259
|
+
(x) => CreatePrompt24$inboundSchema.parse(JSON.parse(x)),
|
|
3260
|
+
`Failed to parse 'CreatePrompt24' from JSON`,
|
|
3950
3261
|
);
|
|
3951
3262
|
}
|
|
3952
3263
|
|
|
3953
3264
|
/** @internal */
|
|
3954
|
-
export const
|
|
3955
|
-
|
|
3265
|
+
export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
|
|
3266
|
+
CreatePromptContentPrompts2,
|
|
3956
3267
|
z.ZodTypeDef,
|
|
3957
3268
|
unknown
|
|
3958
3269
|
> = z.union([
|
|
3959
|
-
|
|
3270
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3271
|
+
z.object({ type: z.literal("text") }),
|
|
3272
|
+
),
|
|
3960
3273
|
components.ImageContentPartSchema$inboundSchema,
|
|
3961
3274
|
components.AudioContentPartSchema$inboundSchema,
|
|
3962
3275
|
z.lazy(() => CreatePrompt24$inboundSchema),
|
|
3963
3276
|
]);
|
|
3964
3277
|
/** @internal */
|
|
3965
|
-
export type
|
|
3966
|
-
|
|
|
3278
|
+
export type CreatePromptContentPrompts2$Outbound =
|
|
3279
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
3967
3280
|
| components.ImageContentPartSchema$Outbound
|
|
3968
3281
|
| components.AudioContentPartSchema$Outbound
|
|
3969
3282
|
| CreatePrompt24$Outbound;
|
|
3970
3283
|
|
|
3971
3284
|
/** @internal */
|
|
3972
|
-
export const
|
|
3973
|
-
|
|
3285
|
+
export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
|
|
3286
|
+
CreatePromptContentPrompts2$Outbound,
|
|
3974
3287
|
z.ZodTypeDef,
|
|
3975
|
-
|
|
3288
|
+
CreatePromptContentPrompts2
|
|
3976
3289
|
> = z.union([
|
|
3977
|
-
|
|
3290
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3291
|
+
z.object({ type: z.literal("text") }),
|
|
3292
|
+
),
|
|
3978
3293
|
components.ImageContentPartSchema$outboundSchema,
|
|
3979
3294
|
components.AudioContentPartSchema$outboundSchema,
|
|
3980
3295
|
z.lazy(() => CreatePrompt24$outboundSchema),
|
|
3981
3296
|
]);
|
|
3982
3297
|
|
|
3983
|
-
export function
|
|
3984
|
-
|
|
3298
|
+
export function createPromptContentPrompts2ToJSON(
|
|
3299
|
+
createPromptContentPrompts2: CreatePromptContentPrompts2,
|
|
3985
3300
|
): string {
|
|
3986
3301
|
return JSON.stringify(
|
|
3987
|
-
|
|
3988
|
-
|
|
3302
|
+
CreatePromptContentPrompts2$outboundSchema.parse(
|
|
3303
|
+
createPromptContentPrompts2,
|
|
3989
3304
|
),
|
|
3990
3305
|
);
|
|
3991
3306
|
}
|
|
3992
|
-
export function
|
|
3307
|
+
export function createPromptContentPrompts2FromJSON(
|
|
3993
3308
|
jsonString: string,
|
|
3994
|
-
): SafeParseResult<
|
|
3309
|
+
): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError> {
|
|
3995
3310
|
return safeParse(
|
|
3996
3311
|
jsonString,
|
|
3997
|
-
(x) =>
|
|
3998
|
-
|
|
3999
|
-
`Failed to parse 'CreatePromptContentPromptsRequest2' from JSON`,
|
|
3312
|
+
(x) => CreatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
3313
|
+
`Failed to parse 'CreatePromptContentPrompts2' from JSON`,
|
|
4000
3314
|
);
|
|
4001
3315
|
}
|
|
4002
3316
|
|
|
@@ -4007,18 +3321,22 @@ export const CreatePromptMessagesPromptsContent$inboundSchema: z.ZodType<
|
|
|
4007
3321
|
unknown
|
|
4008
3322
|
> = z.union([
|
|
4009
3323
|
z.string(),
|
|
4010
|
-
z.array(
|
|
4011
|
-
z.
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
3324
|
+
z.array(
|
|
3325
|
+
z.union([
|
|
3326
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3327
|
+
z.object({ type: z.literal("text") }),
|
|
3328
|
+
),
|
|
3329
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3330
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3331
|
+
z.lazy(() => CreatePrompt24$inboundSchema),
|
|
3332
|
+
]),
|
|
3333
|
+
),
|
|
4016
3334
|
]);
|
|
4017
3335
|
/** @internal */
|
|
4018
3336
|
export type CreatePromptMessagesPromptsContent$Outbound =
|
|
4019
3337
|
| string
|
|
4020
3338
|
| Array<
|
|
4021
|
-
|
|
|
3339
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4022
3340
|
| components.ImageContentPartSchema$Outbound
|
|
4023
3341
|
| components.AudioContentPartSchema$Outbound
|
|
4024
3342
|
| CreatePrompt24$Outbound
|
|
@@ -4031,12 +3349,16 @@ export const CreatePromptMessagesPromptsContent$outboundSchema: z.ZodType<
|
|
|
4031
3349
|
CreatePromptMessagesPromptsContent
|
|
4032
3350
|
> = z.union([
|
|
4033
3351
|
z.string(),
|
|
4034
|
-
z.array(
|
|
4035
|
-
z.
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
3352
|
+
z.array(
|
|
3353
|
+
z.union([
|
|
3354
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3355
|
+
z.object({ type: z.literal("text") }),
|
|
3356
|
+
),
|
|
3357
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3358
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3359
|
+
z.lazy(() => CreatePrompt24$outboundSchema),
|
|
3360
|
+
]),
|
|
3361
|
+
),
|
|
4040
3362
|
]);
|
|
4041
3363
|
|
|
4042
3364
|
export function createPromptMessagesPromptsContentToJSON(
|
|
@@ -4069,12 +3391,16 @@ export const CreatePromptMessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
4069
3391
|
name: z.string().optional(),
|
|
4070
3392
|
content: z.union([
|
|
4071
3393
|
z.string(),
|
|
4072
|
-
z.array(
|
|
4073
|
-
z.
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
3394
|
+
z.array(
|
|
3395
|
+
z.union([
|
|
3396
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3397
|
+
z.object({ type: z.literal("text") }),
|
|
3398
|
+
),
|
|
3399
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3400
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3401
|
+
z.lazy(() => CreatePrompt24$inboundSchema),
|
|
3402
|
+
]),
|
|
3403
|
+
),
|
|
4078
3404
|
]),
|
|
4079
3405
|
});
|
|
4080
3406
|
/** @internal */
|
|
@@ -4084,7 +3410,7 @@ export type CreatePromptMessagesUserMessage$Outbound = {
|
|
|
4084
3410
|
content:
|
|
4085
3411
|
| string
|
|
4086
3412
|
| Array<
|
|
4087
|
-
|
|
|
3413
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4088
3414
|
| components.ImageContentPartSchema$Outbound
|
|
4089
3415
|
| components.AudioContentPartSchema$Outbound
|
|
4090
3416
|
| CreatePrompt24$Outbound
|
|
@@ -4101,12 +3427,16 @@ export const CreatePromptMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
4101
3427
|
name: z.string().optional(),
|
|
4102
3428
|
content: z.union([
|
|
4103
3429
|
z.string(),
|
|
4104
|
-
z.array(
|
|
4105
|
-
z.
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
3430
|
+
z.array(
|
|
3431
|
+
z.union([
|
|
3432
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3433
|
+
z.object({ type: z.literal("text") }),
|
|
3434
|
+
),
|
|
3435
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3436
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3437
|
+
z.lazy(() => CreatePrompt24$outboundSchema),
|
|
3438
|
+
]),
|
|
3439
|
+
),
|
|
4110
3440
|
]),
|
|
4111
3441
|
});
|
|
4112
3442
|
|
|
@@ -4129,134 +3459,6 @@ export function createPromptMessagesUserMessageFromJSON(
|
|
|
4129
3459
|
);
|
|
4130
3460
|
}
|
|
4131
3461
|
|
|
4132
|
-
/** @internal */
|
|
4133
|
-
export const CreatePromptContentType$inboundSchema: z.ZodNativeEnum<
|
|
4134
|
-
typeof CreatePromptContentType
|
|
4135
|
-
> = z.nativeEnum(CreatePromptContentType);
|
|
4136
|
-
/** @internal */
|
|
4137
|
-
export const CreatePromptContentType$outboundSchema: z.ZodNativeEnum<
|
|
4138
|
-
typeof CreatePromptContentType
|
|
4139
|
-
> = CreatePromptContentType$inboundSchema;
|
|
4140
|
-
|
|
4141
|
-
/** @internal */
|
|
4142
|
-
export const CreatePromptContentPromptsType$inboundSchema: z.ZodNativeEnum<
|
|
4143
|
-
typeof CreatePromptContentPromptsType
|
|
4144
|
-
> = z.nativeEnum(CreatePromptContentPromptsType);
|
|
4145
|
-
/** @internal */
|
|
4146
|
-
export const CreatePromptContentPromptsType$outboundSchema: z.ZodNativeEnum<
|
|
4147
|
-
typeof CreatePromptContentPromptsType
|
|
4148
|
-
> = CreatePromptContentPromptsType$inboundSchema;
|
|
4149
|
-
|
|
4150
|
-
/** @internal */
|
|
4151
|
-
export const CreatePromptContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
4152
|
-
typeof CreatePromptContentTtl
|
|
4153
|
-
> = z.nativeEnum(CreatePromptContentTtl);
|
|
4154
|
-
/** @internal */
|
|
4155
|
-
export const CreatePromptContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
4156
|
-
typeof CreatePromptContentTtl
|
|
4157
|
-
> = CreatePromptContentTtl$inboundSchema;
|
|
4158
|
-
|
|
4159
|
-
/** @internal */
|
|
4160
|
-
export const CreatePromptContentCacheControl$inboundSchema: z.ZodType<
|
|
4161
|
-
CreatePromptContentCacheControl,
|
|
4162
|
-
z.ZodTypeDef,
|
|
4163
|
-
unknown
|
|
4164
|
-
> = z.object({
|
|
4165
|
-
type: CreatePromptContentPromptsType$inboundSchema,
|
|
4166
|
-
ttl: CreatePromptContentTtl$inboundSchema.default("5m"),
|
|
4167
|
-
});
|
|
4168
|
-
/** @internal */
|
|
4169
|
-
export type CreatePromptContentCacheControl$Outbound = {
|
|
4170
|
-
type: string;
|
|
4171
|
-
ttl: string;
|
|
4172
|
-
};
|
|
4173
|
-
|
|
4174
|
-
/** @internal */
|
|
4175
|
-
export const CreatePromptContentCacheControl$outboundSchema: z.ZodType<
|
|
4176
|
-
CreatePromptContentCacheControl$Outbound,
|
|
4177
|
-
z.ZodTypeDef,
|
|
4178
|
-
CreatePromptContentCacheControl
|
|
4179
|
-
> = z.object({
|
|
4180
|
-
type: CreatePromptContentPromptsType$outboundSchema,
|
|
4181
|
-
ttl: CreatePromptContentTtl$outboundSchema.default("5m"),
|
|
4182
|
-
});
|
|
4183
|
-
|
|
4184
|
-
export function createPromptContentCacheControlToJSON(
|
|
4185
|
-
createPromptContentCacheControl: CreatePromptContentCacheControl,
|
|
4186
|
-
): string {
|
|
4187
|
-
return JSON.stringify(
|
|
4188
|
-
CreatePromptContentCacheControl$outboundSchema.parse(
|
|
4189
|
-
createPromptContentCacheControl,
|
|
4190
|
-
),
|
|
4191
|
-
);
|
|
4192
|
-
}
|
|
4193
|
-
export function createPromptContentCacheControlFromJSON(
|
|
4194
|
-
jsonString: string,
|
|
4195
|
-
): SafeParseResult<CreatePromptContentCacheControl, SDKValidationError> {
|
|
4196
|
-
return safeParse(
|
|
4197
|
-
jsonString,
|
|
4198
|
-
(x) => CreatePromptContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
4199
|
-
`Failed to parse 'CreatePromptContentCacheControl' from JSON`,
|
|
4200
|
-
);
|
|
4201
|
-
}
|
|
4202
|
-
|
|
4203
|
-
/** @internal */
|
|
4204
|
-
export const CreatePromptContentPrompts2$inboundSchema: z.ZodType<
|
|
4205
|
-
CreatePromptContentPrompts2,
|
|
4206
|
-
z.ZodTypeDef,
|
|
4207
|
-
unknown
|
|
4208
|
-
> = z.object({
|
|
4209
|
-
type: CreatePromptContentType$inboundSchema,
|
|
4210
|
-
text: z.string(),
|
|
4211
|
-
cache_control: z.lazy(() => CreatePromptContentCacheControl$inboundSchema)
|
|
4212
|
-
.optional(),
|
|
4213
|
-
}).transform((v) => {
|
|
4214
|
-
return remap$(v, {
|
|
4215
|
-
"cache_control": "cacheControl",
|
|
4216
|
-
});
|
|
4217
|
-
});
|
|
4218
|
-
/** @internal */
|
|
4219
|
-
export type CreatePromptContentPrompts2$Outbound = {
|
|
4220
|
-
type: string;
|
|
4221
|
-
text: string;
|
|
4222
|
-
cache_control?: CreatePromptContentCacheControl$Outbound | undefined;
|
|
4223
|
-
};
|
|
4224
|
-
|
|
4225
|
-
/** @internal */
|
|
4226
|
-
export const CreatePromptContentPrompts2$outboundSchema: z.ZodType<
|
|
4227
|
-
CreatePromptContentPrompts2$Outbound,
|
|
4228
|
-
z.ZodTypeDef,
|
|
4229
|
-
CreatePromptContentPrompts2
|
|
4230
|
-
> = z.object({
|
|
4231
|
-
type: CreatePromptContentType$outboundSchema,
|
|
4232
|
-
text: z.string(),
|
|
4233
|
-
cacheControl: z.lazy(() => CreatePromptContentCacheControl$outboundSchema)
|
|
4234
|
-
.optional(),
|
|
4235
|
-
}).transform((v) => {
|
|
4236
|
-
return remap$(v, {
|
|
4237
|
-
cacheControl: "cache_control",
|
|
4238
|
-
});
|
|
4239
|
-
});
|
|
4240
|
-
|
|
4241
|
-
export function createPromptContentPrompts2ToJSON(
|
|
4242
|
-
createPromptContentPrompts2: CreatePromptContentPrompts2,
|
|
4243
|
-
): string {
|
|
4244
|
-
return JSON.stringify(
|
|
4245
|
-
CreatePromptContentPrompts2$outboundSchema.parse(
|
|
4246
|
-
createPromptContentPrompts2,
|
|
4247
|
-
),
|
|
4248
|
-
);
|
|
4249
|
-
}
|
|
4250
|
-
export function createPromptContentPrompts2FromJSON(
|
|
4251
|
-
jsonString: string,
|
|
4252
|
-
): SafeParseResult<CreatePromptContentPrompts2, SDKValidationError> {
|
|
4253
|
-
return safeParse(
|
|
4254
|
-
jsonString,
|
|
4255
|
-
(x) => CreatePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)),
|
|
4256
|
-
`Failed to parse 'CreatePromptContentPrompts2' from JSON`,
|
|
4257
|
-
);
|
|
4258
|
-
}
|
|
4259
|
-
|
|
4260
3462
|
/** @internal */
|
|
4261
3463
|
export const CreatePromptMessagesContent$inboundSchema: z.ZodType<
|
|
4262
3464
|
CreatePromptMessagesContent,
|
|
@@ -4264,12 +3466,12 @@ export const CreatePromptMessagesContent$inboundSchema: z.ZodType<
|
|
|
4264
3466
|
unknown
|
|
4265
3467
|
> = z.union([
|
|
4266
3468
|
z.string(),
|
|
4267
|
-
z.array(
|
|
3469
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4268
3470
|
]);
|
|
4269
3471
|
/** @internal */
|
|
4270
3472
|
export type CreatePromptMessagesContent$Outbound =
|
|
4271
3473
|
| string
|
|
4272
|
-
| Array<
|
|
3474
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
4273
3475
|
|
|
4274
3476
|
/** @internal */
|
|
4275
3477
|
export const CreatePromptMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -4278,7 +3480,7 @@ export const CreatePromptMessagesContent$outboundSchema: z.ZodType<
|
|
|
4278
3480
|
CreatePromptMessagesContent
|
|
4279
3481
|
> = z.union([
|
|
4280
3482
|
z.string(),
|
|
4281
|
-
z.array(
|
|
3483
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4282
3484
|
]);
|
|
4283
3485
|
|
|
4284
3486
|
export function createPromptMessagesContentToJSON(
|
|
@@ -4309,14 +3511,14 @@ export const CreatePromptMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
4309
3511
|
role: z.literal("system"),
|
|
4310
3512
|
content: z.union([
|
|
4311
3513
|
z.string(),
|
|
4312
|
-
z.array(
|
|
3514
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4313
3515
|
]),
|
|
4314
3516
|
name: z.string().optional(),
|
|
4315
3517
|
});
|
|
4316
3518
|
/** @internal */
|
|
4317
3519
|
export type CreatePromptMessagesSystemMessage$Outbound = {
|
|
4318
3520
|
role: "system";
|
|
4319
|
-
content: string | Array<
|
|
3521
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
4320
3522
|
name?: string | undefined;
|
|
4321
3523
|
};
|
|
4322
3524
|
|
|
@@ -4329,7 +3531,7 @@ export const CreatePromptMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
4329
3531
|
role: z.literal("system"),
|
|
4330
3532
|
content: z.union([
|
|
4331
3533
|
z.string(),
|
|
4332
|
-
z.array(
|
|
3534
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
4333
3535
|
]),
|
|
4334
3536
|
name: z.string().optional(),
|
|
4335
3537
|
});
|
|
@@ -5492,8 +4694,8 @@ export function createPrompt2ImageUrlFromJSON(
|
|
|
5492
4694
|
}
|
|
5493
4695
|
|
|
5494
4696
|
/** @internal */
|
|
5495
|
-
export const
|
|
5496
|
-
|
|
4697
|
+
export const CreatePrompt2Prompts2$inboundSchema: z.ZodType<
|
|
4698
|
+
CreatePrompt2Prompts2,
|
|
5497
4699
|
z.ZodTypeDef,
|
|
5498
4700
|
unknown
|
|
5499
4701
|
> = z.object({
|
|
@@ -5505,16 +4707,16 @@ export const CreatePrompt22$inboundSchema: z.ZodType<
|
|
|
5505
4707
|
});
|
|
5506
4708
|
});
|
|
5507
4709
|
/** @internal */
|
|
5508
|
-
export type
|
|
4710
|
+
export type CreatePrompt2Prompts2$Outbound = {
|
|
5509
4711
|
type: "image_url";
|
|
5510
4712
|
image_url: CreatePrompt2ImageUrl$Outbound;
|
|
5511
4713
|
};
|
|
5512
4714
|
|
|
5513
4715
|
/** @internal */
|
|
5514
|
-
export const
|
|
5515
|
-
|
|
4716
|
+
export const CreatePrompt2Prompts2$outboundSchema: z.ZodType<
|
|
4717
|
+
CreatePrompt2Prompts2$Outbound,
|
|
5516
4718
|
z.ZodTypeDef,
|
|
5517
|
-
|
|
4719
|
+
CreatePrompt2Prompts2
|
|
5518
4720
|
> = z.object({
|
|
5519
4721
|
type: z.literal("image_url"),
|
|
5520
4722
|
imageUrl: z.lazy(() => CreatePrompt2ImageUrl$outboundSchema),
|
|
@@ -5524,22 +4726,26 @@ export const CreatePrompt22$outboundSchema: z.ZodType<
|
|
|
5524
4726
|
});
|
|
5525
4727
|
});
|
|
5526
4728
|
|
|
5527
|
-
export function
|
|
5528
|
-
|
|
4729
|
+
export function createPrompt2Prompts2ToJSON(
|
|
4730
|
+
createPrompt2Prompts2: CreatePrompt2Prompts2,
|
|
4731
|
+
): string {
|
|
4732
|
+
return JSON.stringify(
|
|
4733
|
+
CreatePrompt2Prompts2$outboundSchema.parse(createPrompt2Prompts2),
|
|
4734
|
+
);
|
|
5529
4735
|
}
|
|
5530
|
-
export function
|
|
4736
|
+
export function createPrompt2Prompts2FromJSON(
|
|
5531
4737
|
jsonString: string,
|
|
5532
|
-
): SafeParseResult<
|
|
4738
|
+
): SafeParseResult<CreatePrompt2Prompts2, SDKValidationError> {
|
|
5533
4739
|
return safeParse(
|
|
5534
4740
|
jsonString,
|
|
5535
|
-
(x) =>
|
|
5536
|
-
`Failed to parse '
|
|
4741
|
+
(x) => CreatePrompt2Prompts2$inboundSchema.parse(JSON.parse(x)),
|
|
4742
|
+
`Failed to parse 'CreatePrompt2Prompts2' from JSON`,
|
|
5537
4743
|
);
|
|
5538
4744
|
}
|
|
5539
4745
|
|
|
5540
4746
|
/** @internal */
|
|
5541
|
-
export const
|
|
5542
|
-
|
|
4747
|
+
export const CreatePrompt21$inboundSchema: z.ZodType<
|
|
4748
|
+
CreatePrompt21,
|
|
5543
4749
|
z.ZodTypeDef,
|
|
5544
4750
|
unknown
|
|
5545
4751
|
> = z.object({
|
|
@@ -5547,37 +4753,31 @@ export const CreatePrompt2PromptsResponse1$inboundSchema: z.ZodType<
|
|
|
5547
4753
|
text: z.string(),
|
|
5548
4754
|
});
|
|
5549
4755
|
/** @internal */
|
|
5550
|
-
export type
|
|
4756
|
+
export type CreatePrompt21$Outbound = {
|
|
5551
4757
|
type: "text";
|
|
5552
4758
|
text: string;
|
|
5553
4759
|
};
|
|
5554
4760
|
|
|
5555
4761
|
/** @internal */
|
|
5556
|
-
export const
|
|
5557
|
-
|
|
4762
|
+
export const CreatePrompt21$outboundSchema: z.ZodType<
|
|
4763
|
+
CreatePrompt21$Outbound,
|
|
5558
4764
|
z.ZodTypeDef,
|
|
5559
|
-
|
|
4765
|
+
CreatePrompt21
|
|
5560
4766
|
> = z.object({
|
|
5561
4767
|
type: z.literal("text"),
|
|
5562
4768
|
text: z.string(),
|
|
5563
4769
|
});
|
|
5564
4770
|
|
|
5565
|
-
export function
|
|
5566
|
-
|
|
5567
|
-
): string {
|
|
5568
|
-
return JSON.stringify(
|
|
5569
|
-
CreatePrompt2PromptsResponse1$outboundSchema.parse(
|
|
5570
|
-
createPrompt2PromptsResponse1,
|
|
5571
|
-
),
|
|
5572
|
-
);
|
|
4771
|
+
export function createPrompt21ToJSON(createPrompt21: CreatePrompt21): string {
|
|
4772
|
+
return JSON.stringify(CreatePrompt21$outboundSchema.parse(createPrompt21));
|
|
5573
4773
|
}
|
|
5574
|
-
export function
|
|
4774
|
+
export function createPrompt21FromJSON(
|
|
5575
4775
|
jsonString: string,
|
|
5576
|
-
): SafeParseResult<
|
|
4776
|
+
): SafeParseResult<CreatePrompt21, SDKValidationError> {
|
|
5577
4777
|
return safeParse(
|
|
5578
4778
|
jsonString,
|
|
5579
|
-
(x) =>
|
|
5580
|
-
`Failed to parse '
|
|
4779
|
+
(x) => CreatePrompt21$inboundSchema.parse(JSON.parse(x)),
|
|
4780
|
+
`Failed to parse 'CreatePrompt21' from JSON`,
|
|
5581
4781
|
);
|
|
5582
4782
|
}
|
|
5583
4783
|
|
|
@@ -5587,14 +4787,14 @@ export const CreatePromptContentPromptsResponse2$inboundSchema: z.ZodType<
|
|
|
5587
4787
|
z.ZodTypeDef,
|
|
5588
4788
|
unknown
|
|
5589
4789
|
> = z.union([
|
|
5590
|
-
z.lazy(() =>
|
|
5591
|
-
z.lazy(() =>
|
|
4790
|
+
z.lazy(() => CreatePrompt21$inboundSchema),
|
|
4791
|
+
z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
|
|
5592
4792
|
z.lazy(() => CreatePrompt23$inboundSchema),
|
|
5593
4793
|
]);
|
|
5594
4794
|
/** @internal */
|
|
5595
4795
|
export type CreatePromptContentPromptsResponse2$Outbound =
|
|
5596
|
-
|
|
|
5597
|
-
|
|
|
4796
|
+
| CreatePrompt21$Outbound
|
|
4797
|
+
| CreatePrompt2Prompts2$Outbound
|
|
5598
4798
|
| CreatePrompt23$Outbound;
|
|
5599
4799
|
|
|
5600
4800
|
/** @internal */
|
|
@@ -5603,8 +4803,8 @@ export const CreatePromptContentPromptsResponse2$outboundSchema: z.ZodType<
|
|
|
5603
4803
|
z.ZodTypeDef,
|
|
5604
4804
|
CreatePromptContentPromptsResponse2
|
|
5605
4805
|
> = z.union([
|
|
5606
|
-
z.lazy(() =>
|
|
5607
|
-
z.lazy(() =>
|
|
4806
|
+
z.lazy(() => CreatePrompt21$outboundSchema),
|
|
4807
|
+
z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
|
|
5608
4808
|
z.lazy(() => CreatePrompt23$outboundSchema),
|
|
5609
4809
|
]);
|
|
5610
4810
|
|
|
@@ -5636,8 +4836,8 @@ export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
|
|
|
5636
4836
|
> = z.union([
|
|
5637
4837
|
z.string(),
|
|
5638
4838
|
z.array(z.union([
|
|
5639
|
-
z.lazy(() =>
|
|
5640
|
-
z.lazy(() =>
|
|
4839
|
+
z.lazy(() => CreatePrompt21$inboundSchema),
|
|
4840
|
+
z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
|
|
5641
4841
|
z.lazy(() => CreatePrompt23$inboundSchema),
|
|
5642
4842
|
])),
|
|
5643
4843
|
]);
|
|
@@ -5645,8 +4845,8 @@ export const CreatePromptPromptsContent$inboundSchema: z.ZodType<
|
|
|
5645
4845
|
export type CreatePromptPromptsContent$Outbound =
|
|
5646
4846
|
| string
|
|
5647
4847
|
| Array<
|
|
5648
|
-
|
|
|
5649
|
-
|
|
|
4848
|
+
| CreatePrompt21$Outbound
|
|
4849
|
+
| CreatePrompt2Prompts2$Outbound
|
|
5650
4850
|
| CreatePrompt23$Outbound
|
|
5651
4851
|
>;
|
|
5652
4852
|
|
|
@@ -5658,8 +4858,8 @@ export const CreatePromptPromptsContent$outboundSchema: z.ZodType<
|
|
|
5658
4858
|
> = z.union([
|
|
5659
4859
|
z.string(),
|
|
5660
4860
|
z.array(z.union([
|
|
5661
|
-
z.lazy(() =>
|
|
5662
|
-
z.lazy(() =>
|
|
4861
|
+
z.lazy(() => CreatePrompt21$outboundSchema),
|
|
4862
|
+
z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
|
|
5663
4863
|
z.lazy(() => CreatePrompt23$outboundSchema),
|
|
5664
4864
|
])),
|
|
5665
4865
|
]);
|
|
@@ -5794,18 +4994,16 @@ export const CreatePromptPromptsResponseMessages$inboundSchema: z.ZodType<
|
|
|
5794
4994
|
content: z.nullable(
|
|
5795
4995
|
z.union([
|
|
5796
4996
|
z.string(),
|
|
5797
|
-
z.array(
|
|
5798
|
-
z.
|
|
5799
|
-
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
]),
|
|
5803
|
-
),
|
|
4997
|
+
z.array(z.union([
|
|
4998
|
+
z.lazy(() => CreatePrompt21$inboundSchema),
|
|
4999
|
+
z.lazy(() => CreatePrompt2Prompts2$inboundSchema),
|
|
5000
|
+
z.lazy(() => CreatePrompt23$inboundSchema),
|
|
5001
|
+
])),
|
|
5804
5002
|
]),
|
|
5805
5003
|
),
|
|
5806
5004
|
tool_calls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$inboundSchema))
|
|
5807
5005
|
.optional(),
|
|
5808
|
-
tool_call_id: z.string().optional(),
|
|
5006
|
+
tool_call_id: z.nullable(z.string()).optional(),
|
|
5809
5007
|
}).transform((v) => {
|
|
5810
5008
|
return remap$(v, {
|
|
5811
5009
|
"tool_calls": "toolCalls",
|
|
@@ -5818,13 +5016,13 @@ export type CreatePromptPromptsResponseMessages$Outbound = {
|
|
|
5818
5016
|
content:
|
|
5819
5017
|
| string
|
|
5820
5018
|
| Array<
|
|
5821
|
-
|
|
|
5822
|
-
|
|
|
5019
|
+
| CreatePrompt21$Outbound
|
|
5020
|
+
| CreatePrompt2Prompts2$Outbound
|
|
5823
5021
|
| CreatePrompt23$Outbound
|
|
5824
5022
|
>
|
|
5825
5023
|
| null;
|
|
5826
5024
|
tool_calls?: Array<CreatePromptPromptsToolCalls$Outbound> | undefined;
|
|
5827
|
-
tool_call_id?: string | undefined;
|
|
5025
|
+
tool_call_id?: string | null | undefined;
|
|
5828
5026
|
};
|
|
5829
5027
|
|
|
5830
5028
|
/** @internal */
|
|
@@ -5837,18 +5035,16 @@ export const CreatePromptPromptsResponseMessages$outboundSchema: z.ZodType<
|
|
|
5837
5035
|
content: z.nullable(
|
|
5838
5036
|
z.union([
|
|
5839
5037
|
z.string(),
|
|
5840
|
-
z.array(
|
|
5841
|
-
z.
|
|
5842
|
-
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
]),
|
|
5846
|
-
),
|
|
5038
|
+
z.array(z.union([
|
|
5039
|
+
z.lazy(() => CreatePrompt21$outboundSchema),
|
|
5040
|
+
z.lazy(() => CreatePrompt2Prompts2$outboundSchema),
|
|
5041
|
+
z.lazy(() => CreatePrompt23$outboundSchema),
|
|
5042
|
+
])),
|
|
5847
5043
|
]),
|
|
5848
5044
|
),
|
|
5849
5045
|
toolCalls: z.array(z.lazy(() => CreatePromptPromptsToolCalls$outboundSchema))
|
|
5850
5046
|
.optional(),
|
|
5851
|
-
toolCallId: z.string().optional(),
|
|
5047
|
+
toolCallId: z.nullable(z.string()).optional(),
|
|
5852
5048
|
}).transform((v) => {
|
|
5853
5049
|
return remap$(v, {
|
|
5854
5050
|
toolCalls: "tool_calls",
|