@orq-ai/node 4.1.0-rc.34 → 4.1.0-rc.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -18
- package/bin/mcp-server.js +4959 -5404
- package/bin/mcp-server.js.map +126 -82
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +7 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +9 -2
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/budgetsCreate.d.ts +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/contactsList.js +1 -0
- package/funcs/contactsList.js.map +1 -1
- package/funcs/conversationsCreate.d.ts +17 -0
- package/funcs/conversationsCreate.d.ts.map +1 -0
- package/funcs/conversationsCreate.js +114 -0
- package/funcs/conversationsCreate.js.map +1 -0
- package/funcs/conversationsDelete.d.ts +17 -0
- package/funcs/conversationsDelete.d.ts.map +1 -0
- package/funcs/conversationsDelete.js +127 -0
- package/funcs/conversationsDelete.js.map +1 -0
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/funcs/conversationsList.d.ts +17 -0
- package/funcs/conversationsList.d.ts.map +1 -0
- package/funcs/conversationsList.js +124 -0
- package/funcs/conversationsList.js.map +1 -0
- package/funcs/conversationsRetrieve.d.ts +18 -0
- package/funcs/conversationsRetrieve.d.ts.map +1 -0
- package/funcs/conversationsRetrieve.js +126 -0
- package/funcs/conversationsRetrieve.js.map +1 -0
- package/funcs/conversationsUpdate.d.ts +18 -0
- package/funcs/conversationsUpdate.d.ts.map +1 -0
- package/funcs/conversationsUpdate.js +128 -0
- package/funcs/conversationsUpdate.js.map +1 -0
- package/funcs/evalsInvoke.d.ts +15 -0
- package/funcs/evalsInvoke.d.ts.map +1 -0
- package/funcs/evalsInvoke.js +121 -0
- package/funcs/evalsInvoke.js.map +1 -0
- package/funcs/memoryStoresListDocuments.js +2 -0
- package/funcs/memoryStoresListDocuments.js.map +1 -1
- package/funcs/memoryStoresListMemories.js +1 -0
- package/funcs/memoryStoresListMemories.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +15 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/budgetsCreate.js +1 -1
- package/mcp-server/tools/budgetsCreate.js.map +1 -1
- package/mcp-server/tools/conversationsCreate.d.ts +8 -0
- package/mcp-server/tools/conversationsCreate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsCreate.js +64 -0
- package/mcp-server/tools/conversationsCreate.js.map +1 -0
- package/mcp-server/tools/conversationsDelete.d.ts +8 -0
- package/mcp-server/tools/conversationsDelete.d.ts.map +1 -0
- package/mcp-server/tools/conversationsDelete.js +63 -0
- package/mcp-server/tools/conversationsDelete.js.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/mcp-server/tools/conversationsList.d.ts +10 -0
- package/mcp-server/tools/conversationsList.d.ts.map +1 -0
- package/mcp-server/tools/conversationsList.js +66 -0
- package/mcp-server/tools/conversationsList.js.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts +8 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.js +64 -0
- package/mcp-server/tools/conversationsRetrieve.js.map +1 -0
- package/mcp-server/tools/conversationsUpdate.d.ts +10 -0
- package/mcp-server/tools/conversationsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsUpdate.js +66 -0
- package/mcp-server/tools/conversationsUpdate.js.map +1 -0
- package/mcp-server/tools/evalsInvoke.d.ts +8 -0
- package/mcp-server/tools/evalsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/evalsInvoke.js +62 -0
- package/mcp-server/tools/evalsInvoke.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentexecutionstartedstreamingevent.js +11 -12
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
- package/models/components/agentinactivestreamingevent.d.ts +21 -21
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
- package/models/components/agentinactivestreamingevent.js +27 -28
- package/models/components/agentinactivestreamingevent.js.map +1 -1
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +26 -24
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +34 -32
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/imagecontentpartschema.d.ts +18 -18
- package/models/components/imagecontentpartschema.d.ts.map +1 -1
- package/models/components/imagecontentpartschema.js +23 -21
- package/models/components/imagecontentpartschema.js.map +1 -1
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +161 -1040
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +161 -1015
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.js +2 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.js +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +2 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +3 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +4 -4
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +37 -147
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +64 -205
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.d.ts +69 -13
- package/models/operations/createbudget.d.ts.map +1 -1
- package/models/operations/createbudget.js +61 -12
- package/models/operations/createbudget.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +154 -1034
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +149 -959
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememory.d.ts +10 -5
- package/models/operations/creatememory.d.ts.map +1 -1
- package/models/operations/creatememory.js +6 -2
- package/models/operations/creatememory.js.map +1 -1
- package/models/operations/creatememorydocument.d.ts +4 -4
- package/models/operations/creatememorydocument.d.ts.map +1 -1
- package/models/operations/creatememorydocument.js +2 -2
- package/models/operations/creatememorydocument.js.map +1 -1
- package/models/operations/createprompt.d.ts +136 -479
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +158 -473
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentcreatemetric.d.ts +154 -1034
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +140 -975
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +222 -1102
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +263 -1059
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +27 -26
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +29 -28
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +14 -13
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +14 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +187 -1066
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +163 -989
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.d.ts +8 -8
- package/models/operations/fileupload.d.ts.map +1 -1
- package/models/operations/fileupload.js +13 -14
- package/models/operations/fileupload.js.map +1 -1
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getallmemories.d.ts +10 -0
- package/models/operations/getallmemories.d.ts.map +1 -1
- package/models/operations/getallmemories.js +6 -0
- package/models/operations/getallmemories.js.map +1 -1
- package/models/operations/getallmemorydocuments.d.ts +10 -0
- package/models/operations/getallmemorydocuments.d.ts.map +1 -1
- package/models/operations/getallmemorydocuments.js +8 -0
- package/models/operations/getallmemorydocuments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +14 -13
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +14 -13
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.d.ts +5 -0
- package/models/operations/getbudget.d.ts.map +1 -1
- package/models/operations/getbudget.js +6 -2
- package/models/operations/getbudget.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +14 -13
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +14 -13
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +14 -13
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +14 -13
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +3 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.d.ts +5 -0
- package/models/operations/listbudgets.d.ts.map +1 -1
- package/models/operations/listbudgets.js +6 -2
- package/models/operations/listbudgets.js.map +1 -1
- package/models/operations/listcontacts.d.ts +5 -0
- package/models/operations/listcontacts.d.ts.map +1 -1
- package/models/operations/listcontacts.js +4 -2
- package/models/operations/listcontacts.js.map +1 -1
- package/models/operations/listconversations.d.ts +60 -0
- package/models/operations/listconversations.d.ts.map +1 -0
- package/models/operations/listconversations.js +109 -0
- package/models/operations/listconversations.js.map +1 -0
- package/models/operations/listdatasetdatapoints.d.ts +76 -516
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +75 -475
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +14 -13
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +14 -13
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +3 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +76 -516
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +75 -473
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievememory.d.ts +5 -0
- package/models/operations/retrievememory.d.ts.map +1 -1
- package/models/operations/retrievememory.js +4 -0
- package/models/operations/retrievememory.js.map +1 -1
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +4 -4
- package/models/operations/streamrunagent.js +4 -4
- package/models/operations/updateagent.d.ts +3 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +4 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.d.ts +5 -0
- package/models/operations/updatebudget.d.ts.map +1 -1
- package/models/operations/updatebudget.js +6 -2
- package/models/operations/updatebudget.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +154 -1034
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +147 -955
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememory.d.ts +10 -5
- package/models/operations/updatememory.d.ts.map +1 -1
- package/models/operations/updatememory.js +6 -2
- package/models/operations/updatememory.js.map +1 -1
- package/models/operations/updatememorydocument.d.ts +4 -4
- package/models/operations/updatememorydocument.d.ts.map +1 -1
- package/models/operations/updatememorydocument.js +2 -2
- package/models/operations/updatememorydocument.js.map +1 -1
- package/models/operations/updatememorystore.d.ts +24 -59
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +27 -55
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +149 -486
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +156 -466
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/budgets.d.ts +1 -1
- package/sdk/budgets.js +1 -1
- package/sdk/conversations.d.ts +47 -0
- package/sdk/conversations.d.ts.map +1 -0
- package/sdk/conversations.js +72 -0
- package/sdk/conversations.js.map +1 -0
- package/sdk/evals.d.ts +4 -0
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +7 -0
- package/sdk/evals.js.map +1 -1
- package/sdk/responses.d.ts +5 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +3 -1
- package/sdk/responses.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/agentsResponsesCreate.ts +14 -10
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/contactsList.ts +1 -0
- package/src/funcs/conversationsCreate.ts +161 -0
- package/src/funcs/conversationsDelete.ts +180 -0
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/funcs/conversationsList.ts +181 -0
- package/src/funcs/conversationsRetrieve.ts +180 -0
- package/src/funcs/conversationsUpdate.ts +184 -0
- package/src/funcs/evalsInvoke.ts +177 -0
- package/src/funcs/memoryStoresListDocuments.ts +2 -0
- package/src/funcs/memoryStoresListMemories.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +15 -1
- package/src/mcp-server/tools/budgetsCreate.ts +1 -1
- package/src/mcp-server/tools/conversationsCreate.ts +37 -0
- package/src/mcp-server/tools/conversationsDelete.ts +35 -0
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/mcp-server/tools/conversationsList.ts +41 -0
- package/src/mcp-server/tools/conversationsRetrieve.ts +37 -0
- package/src/mcp-server/tools/conversationsUpdate.ts +40 -0
- package/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +53 -34
- package/src/models/components/agentinactivestreamingevent.ts +85 -57
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/agentthoughtstreamingevent.ts +167 -118
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/imagecontentpartschema.ts +52 -37
- package/src/models/components/index.ts +18 -0
- package/src/models/components/invokedeploymentrequest.ts +515 -2564
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/toolexecutionfailedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +4 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/operations/createagentrequest.ts +7 -4
- package/src/models/operations/createagentresponserequest.ts +126 -435
- package/src/models/operations/createbudget.ts +143 -28
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +601 -2786
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememory.ts +14 -5
- package/src/models/operations/creatememorydocument.ts +4 -4
- package/src/models/operations/createprompt.ts +397 -1201
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentcreatemetric.ts +601 -3040
- package/src/models/operations/deploymentgetconfig.ts +824 -2901
- package/src/models/operations/deploymentinvoke.ts +47 -46
- package/src/models/operations/deployments.ts +16 -15
- package/src/models/operations/deploymentstream.ts +727 -2977
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +30 -27
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getallmemories.ts +16 -0
- package/src/models/operations/getallmemorydocuments.ts +22 -0
- package/src/models/operations/getallprompts.ts +16 -15
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +11 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +16 -15
- package/src/models/operations/getpromptversion.ts +16 -15
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +5 -2
- package/src/models/operations/listbudgets.ts +11 -2
- package/src/models/operations/listcontacts.ts +9 -2
- package/src/models/operations/listconversations.ts +161 -0
- package/src/models/operations/listdatasetdatapoints.ts +288 -1355
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +16 -15
- package/src/models/operations/retrieveagentrequest.ts +5 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +263 -1288
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievememory.ts +9 -0
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +4 -4
- package/src/models/operations/streamrunagent.ts +4 -4
- package/src/models/operations/updateagent.ts +7 -4
- package/src/models/operations/updatebudget.ts +11 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +556 -2717
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememory.ts +14 -5
- package/src/models/operations/updatememorydocument.ts +4 -4
- package/src/models/operations/updatememorystore.ts +64 -154
- package/src/models/operations/updateprompt.ts +385 -1144
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/budgets.ts +1 -1
- package/src/sdk/conversations.ts +125 -0
- package/src/sdk/evals.ts +15 -0
- package/src/sdk/responses.ts +8 -3
- package/src/sdk/sdk.ts +6 -0
|
@@ -36,92 +36,15 @@ export type ListDatasetDatapointsObject = ClosedEnum<
|
|
|
36
36
|
typeof ListDatasetDatapointsObject
|
|
37
37
|
>;
|
|
38
38
|
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
} as const;
|
|
42
|
-
export type ListDatasetDatapoints2DatasetsResponse200Type = ClosedEnum<
|
|
43
|
-
typeof ListDatasetDatapoints2DatasetsResponse200Type
|
|
44
|
-
>;
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
48
|
-
*/
|
|
49
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType =
|
|
50
|
-
{
|
|
51
|
-
Ephemeral: "ephemeral",
|
|
52
|
-
} as const;
|
|
53
|
-
/**
|
|
54
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
55
|
-
*/
|
|
56
|
-
export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType =
|
|
57
|
-
ClosedEnum<
|
|
58
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
|
|
59
|
-
>;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
63
|
-
*
|
|
64
|
-
* @remarks
|
|
65
|
-
*
|
|
66
|
-
* - `5m`: 5 minutes
|
|
67
|
-
* - `1h`: 1 hour
|
|
68
|
-
*
|
|
69
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
70
|
-
*/
|
|
71
|
-
export const ListDatasetDatapoints2DatasetsResponse200Ttl = {
|
|
72
|
-
Fivem: "5m",
|
|
73
|
-
Oneh: "1h",
|
|
74
|
-
} as const;
|
|
75
|
-
/**
|
|
76
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
77
|
-
*
|
|
78
|
-
* @remarks
|
|
79
|
-
*
|
|
80
|
-
* - `5m`: 5 minutes
|
|
81
|
-
* - `1h`: 1 hour
|
|
82
|
-
*
|
|
83
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
84
|
-
*/
|
|
85
|
-
export type ListDatasetDatapoints2DatasetsResponse200Ttl = ClosedEnum<
|
|
86
|
-
typeof ListDatasetDatapoints2DatasetsResponse200Ttl
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
export type ListDatasetDatapoints2DatasetsResponse200CacheControl = {
|
|
90
|
-
/**
|
|
91
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
92
|
-
*/
|
|
93
|
-
type:
|
|
94
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType;
|
|
95
|
-
/**
|
|
96
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
97
|
-
*
|
|
98
|
-
* @remarks
|
|
99
|
-
*
|
|
100
|
-
* - `5m`: 5 minutes
|
|
101
|
-
* - `1h`: 1 hour
|
|
102
|
-
*
|
|
103
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
104
|
-
*/
|
|
105
|
-
ttl?: ListDatasetDatapoints2DatasetsResponse200Ttl | undefined;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
export type ListDatasetDatapoints2DatasetsResponse1 = {
|
|
109
|
-
type: ListDatasetDatapoints2DatasetsResponse200Type;
|
|
110
|
-
text: string;
|
|
111
|
-
cacheControl?:
|
|
112
|
-
| ListDatasetDatapoints2DatasetsResponse200CacheControl
|
|
113
|
-
| undefined;
|
|
114
|
-
};
|
|
115
|
-
|
|
116
|
-
export type ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2 =
|
|
117
|
-
ListDatasetDatapoints2DatasetsResponse1;
|
|
39
|
+
export type ListDatasetDatapointsContentDatasetsResponse2 =
|
|
40
|
+
components.TextContentPartSchema;
|
|
118
41
|
|
|
119
42
|
/**
|
|
120
43
|
* The contents of the tool message.
|
|
121
44
|
*/
|
|
122
45
|
export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent =
|
|
123
46
|
| string
|
|
124
|
-
| Array<
|
|
47
|
+
| Array<components.TextContentPartSchema>;
|
|
125
48
|
|
|
126
49
|
/**
|
|
127
50
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -190,7 +113,7 @@ export type ListDatasetDatapointsMessagesToolMessage = {
|
|
|
190
113
|
/**
|
|
191
114
|
* The contents of the tool message.
|
|
192
115
|
*/
|
|
193
|
-
content: string | Array<
|
|
116
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
194
117
|
/**
|
|
195
118
|
* Tool call that this message is responding to.
|
|
196
119
|
*/
|
|
@@ -198,76 +121,8 @@ export type ListDatasetDatapointsMessagesToolMessage = {
|
|
|
198
121
|
cacheControl?: ListDatasetDatapointsMessagesCacheControl | undefined;
|
|
199
122
|
};
|
|
200
123
|
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
*/
|
|
204
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
205
|
-
{
|
|
206
|
-
Ephemeral: "ephemeral",
|
|
207
|
-
} as const;
|
|
208
|
-
/**
|
|
209
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
210
|
-
*/
|
|
211
|
-
export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
212
|
-
ClosedEnum<
|
|
213
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
214
|
-
>;
|
|
215
|
-
|
|
216
|
-
/**
|
|
217
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
218
|
-
*
|
|
219
|
-
* @remarks
|
|
220
|
-
*
|
|
221
|
-
* - `5m`: 5 minutes
|
|
222
|
-
* - `1h`: 1 hour
|
|
223
|
-
*
|
|
224
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
225
|
-
*/
|
|
226
|
-
export const ListDatasetDatapoints2DatasetsResponseTtl = {
|
|
227
|
-
Fivem: "5m",
|
|
228
|
-
Oneh: "1h",
|
|
229
|
-
} as const;
|
|
230
|
-
/**
|
|
231
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
232
|
-
*
|
|
233
|
-
* @remarks
|
|
234
|
-
*
|
|
235
|
-
* - `5m`: 5 minutes
|
|
236
|
-
* - `1h`: 1 hour
|
|
237
|
-
*
|
|
238
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
239
|
-
*/
|
|
240
|
-
export type ListDatasetDatapoints2DatasetsResponseTtl = ClosedEnum<
|
|
241
|
-
typeof ListDatasetDatapoints2DatasetsResponseTtl
|
|
242
|
-
>;
|
|
243
|
-
|
|
244
|
-
export type ListDatasetDatapoints2DatasetsResponseCacheControl = {
|
|
245
|
-
/**
|
|
246
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
247
|
-
*/
|
|
248
|
-
type:
|
|
249
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyType;
|
|
250
|
-
/**
|
|
251
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
252
|
-
*
|
|
253
|
-
* @remarks
|
|
254
|
-
*
|
|
255
|
-
* - `5m`: 5 minutes
|
|
256
|
-
* - `1h`: 1 hour
|
|
257
|
-
*
|
|
258
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
259
|
-
*/
|
|
260
|
-
ttl?: ListDatasetDatapoints2DatasetsResponseTtl | undefined;
|
|
261
|
-
};
|
|
262
|
-
|
|
263
|
-
export type ListDatasetDatapoints2Datasets1 = {
|
|
264
|
-
type: "text";
|
|
265
|
-
text: string;
|
|
266
|
-
cacheControl?: ListDatasetDatapoints2DatasetsResponseCacheControl | undefined;
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
export type ListDatasetDatapointsContentDatasetsResponse2002 =
|
|
270
|
-
| ListDatasetDatapoints2Datasets1
|
|
124
|
+
export type ListDatasetDatapointsContentDatasets2 =
|
|
125
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
271
126
|
| components.RefusalPartSchema
|
|
272
127
|
| components.ReasoningPartSchema
|
|
273
128
|
| components.RedactedReasoningPartSchema;
|
|
@@ -278,7 +133,7 @@ export type ListDatasetDatapointsContentDatasetsResponse2002 =
|
|
|
278
133
|
export type ListDatasetDatapointsMessagesDatasetsResponse200Content =
|
|
279
134
|
| string
|
|
280
135
|
| Array<
|
|
281
|
-
|
|
|
136
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
282
137
|
| components.RefusalPartSchema
|
|
283
138
|
| components.ReasoningPartSchema
|
|
284
139
|
| components.RedactedReasoningPartSchema
|
|
@@ -341,7 +196,7 @@ export type ListDatasetDatapointsMessagesAssistantMessage = {
|
|
|
341
196
|
content?:
|
|
342
197
|
| string
|
|
343
198
|
| Array<
|
|
344
|
-
|
|
|
199
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
345
200
|
| components.RefusalPartSchema
|
|
346
201
|
| components.ReasoningPartSchema
|
|
347
202
|
| components.RedactedReasoningPartSchema
|
|
@@ -373,17 +228,15 @@ export type ListDatasetDatapointsMessagesAssistantMessage = {
|
|
|
373
228
|
/**
|
|
374
229
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
375
230
|
*/
|
|
376
|
-
export const
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
} as const;
|
|
231
|
+
export const ListDatasetDatapoints2DatasetsType = {
|
|
232
|
+
Ephemeral: "ephemeral",
|
|
233
|
+
} as const;
|
|
380
234
|
/**
|
|
381
235
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
382
236
|
*/
|
|
383
|
-
export type
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
>;
|
|
237
|
+
export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
|
|
238
|
+
typeof ListDatasetDatapoints2DatasetsType
|
|
239
|
+
>;
|
|
387
240
|
|
|
388
241
|
/**
|
|
389
242
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -395,7 +248,7 @@ export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBody
|
|
|
395
248
|
*
|
|
396
249
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
397
250
|
*/
|
|
398
|
-
export const
|
|
251
|
+
export const ListDatasetDatapoints2Ttl = {
|
|
399
252
|
Fivem: "5m",
|
|
400
253
|
Oneh: "1h",
|
|
401
254
|
} as const;
|
|
@@ -409,16 +262,15 @@ export const ListDatasetDatapoints2DatasetsTtl = {
|
|
|
409
262
|
*
|
|
410
263
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
411
264
|
*/
|
|
412
|
-
export type
|
|
413
|
-
typeof
|
|
265
|
+
export type ListDatasetDatapoints2Ttl = ClosedEnum<
|
|
266
|
+
typeof ListDatasetDatapoints2Ttl
|
|
414
267
|
>;
|
|
415
268
|
|
|
416
|
-
export type
|
|
269
|
+
export type ListDatasetDatapoints2CacheControl = {
|
|
417
270
|
/**
|
|
418
271
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
419
272
|
*/
|
|
420
|
-
type:
|
|
421
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType;
|
|
273
|
+
type: ListDatasetDatapoints2DatasetsType;
|
|
422
274
|
/**
|
|
423
275
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
424
276
|
*
|
|
@@ -429,7 +281,7 @@ export type ListDatasetDatapoints2DatasetsCacheControl = {
|
|
|
429
281
|
*
|
|
430
282
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
431
283
|
*/
|
|
432
|
-
ttl?:
|
|
284
|
+
ttl?: ListDatasetDatapoints2Ttl | undefined;
|
|
433
285
|
};
|
|
434
286
|
|
|
435
287
|
export type ListDatasetDatapoints24 = {
|
|
@@ -437,81 +289,15 @@ export type ListDatasetDatapoints24 = {
|
|
|
437
289
|
* The type of the content part. Always `file`.
|
|
438
290
|
*/
|
|
439
291
|
type: "file";
|
|
440
|
-
cacheControl?:
|
|
292
|
+
cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
|
|
441
293
|
/**
|
|
442
294
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
443
295
|
*/
|
|
444
296
|
file: components.FileContentPartSchema;
|
|
445
297
|
};
|
|
446
298
|
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
*/
|
|
450
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType = {
|
|
451
|
-
Ephemeral: "ephemeral",
|
|
452
|
-
} as const;
|
|
453
|
-
/**
|
|
454
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
455
|
-
*/
|
|
456
|
-
export type ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType =
|
|
457
|
-
ClosedEnum<
|
|
458
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
|
|
459
|
-
>;
|
|
460
|
-
|
|
461
|
-
/**
|
|
462
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
463
|
-
*
|
|
464
|
-
* @remarks
|
|
465
|
-
*
|
|
466
|
-
* - `5m`: 5 minutes
|
|
467
|
-
* - `1h`: 1 hour
|
|
468
|
-
*
|
|
469
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
470
|
-
*/
|
|
471
|
-
export const ListDatasetDatapoints2Ttl = {
|
|
472
|
-
Fivem: "5m",
|
|
473
|
-
Oneh: "1h",
|
|
474
|
-
} as const;
|
|
475
|
-
/**
|
|
476
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
477
|
-
*
|
|
478
|
-
* @remarks
|
|
479
|
-
*
|
|
480
|
-
* - `5m`: 5 minutes
|
|
481
|
-
* - `1h`: 1 hour
|
|
482
|
-
*
|
|
483
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
484
|
-
*/
|
|
485
|
-
export type ListDatasetDatapoints2Ttl = ClosedEnum<
|
|
486
|
-
typeof ListDatasetDatapoints2Ttl
|
|
487
|
-
>;
|
|
488
|
-
|
|
489
|
-
export type ListDatasetDatapoints2CacheControl = {
|
|
490
|
-
/**
|
|
491
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
492
|
-
*/
|
|
493
|
-
type: ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType;
|
|
494
|
-
/**
|
|
495
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
496
|
-
*
|
|
497
|
-
* @remarks
|
|
498
|
-
*
|
|
499
|
-
* - `5m`: 5 minutes
|
|
500
|
-
* - `1h`: 1 hour
|
|
501
|
-
*
|
|
502
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
503
|
-
*/
|
|
504
|
-
ttl?: ListDatasetDatapoints2Ttl | undefined;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
export type ListDatasetDatapoints21 = {
|
|
508
|
-
type: "text";
|
|
509
|
-
text: string;
|
|
510
|
-
cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
|
|
511
|
-
};
|
|
512
|
-
|
|
513
|
-
export type ListDatasetDatapointsContentDatasetsResponse2 =
|
|
514
|
-
| ListDatasetDatapoints21
|
|
299
|
+
export type ListDatasetDatapointsContent2 =
|
|
300
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
515
301
|
| components.ImageContentPartSchema
|
|
516
302
|
| components.AudioContentPartSchema
|
|
517
303
|
| ListDatasetDatapoints24;
|
|
@@ -522,7 +308,7 @@ export type ListDatasetDatapointsContentDatasetsResponse2 =
|
|
|
522
308
|
export type ListDatasetDatapointsMessagesDatasetsResponseContent =
|
|
523
309
|
| string
|
|
524
310
|
| Array<
|
|
525
|
-
|
|
|
311
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
526
312
|
| components.ImageContentPartSchema
|
|
527
313
|
| components.AudioContentPartSchema
|
|
528
314
|
| ListDatasetDatapoints24
|
|
@@ -543,91 +329,19 @@ export type ListDatasetDatapointsMessagesUserMessage = {
|
|
|
543
329
|
content:
|
|
544
330
|
| string
|
|
545
331
|
| Array<
|
|
546
|
-
|
|
|
332
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
547
333
|
| components.ImageContentPartSchema
|
|
548
334
|
| components.AudioContentPartSchema
|
|
549
335
|
| ListDatasetDatapoints24
|
|
550
336
|
>;
|
|
551
337
|
};
|
|
552
338
|
|
|
553
|
-
export const ListDatasetDatapointsContentDatasetsType = {
|
|
554
|
-
Text: "text",
|
|
555
|
-
} as const;
|
|
556
|
-
export type ListDatasetDatapointsContentDatasetsType = ClosedEnum<
|
|
557
|
-
typeof ListDatasetDatapointsContentDatasetsType
|
|
558
|
-
>;
|
|
559
|
-
|
|
560
|
-
/**
|
|
561
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
562
|
-
*/
|
|
563
|
-
export const ListDatasetDatapointsContentDatasetsResponse200Type = {
|
|
564
|
-
Ephemeral: "ephemeral",
|
|
565
|
-
} as const;
|
|
566
|
-
/**
|
|
567
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
568
|
-
*/
|
|
569
|
-
export type ListDatasetDatapointsContentDatasetsResponse200Type = ClosedEnum<
|
|
570
|
-
typeof ListDatasetDatapointsContentDatasetsResponse200Type
|
|
571
|
-
>;
|
|
572
|
-
|
|
573
|
-
/**
|
|
574
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
575
|
-
*
|
|
576
|
-
* @remarks
|
|
577
|
-
*
|
|
578
|
-
* - `5m`: 5 minutes
|
|
579
|
-
* - `1h`: 1 hour
|
|
580
|
-
*
|
|
581
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
582
|
-
*/
|
|
583
|
-
export const ListDatasetDatapointsContentDatasetsTtl = {
|
|
584
|
-
Fivem: "5m",
|
|
585
|
-
Oneh: "1h",
|
|
586
|
-
} as const;
|
|
587
|
-
/**
|
|
588
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
589
|
-
*
|
|
590
|
-
* @remarks
|
|
591
|
-
*
|
|
592
|
-
* - `5m`: 5 minutes
|
|
593
|
-
* - `1h`: 1 hour
|
|
594
|
-
*
|
|
595
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
596
|
-
*/
|
|
597
|
-
export type ListDatasetDatapointsContentDatasetsTtl = ClosedEnum<
|
|
598
|
-
typeof ListDatasetDatapointsContentDatasetsTtl
|
|
599
|
-
>;
|
|
600
|
-
|
|
601
|
-
export type ListDatasetDatapointsContentDatasetsCacheControl = {
|
|
602
|
-
/**
|
|
603
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
604
|
-
*/
|
|
605
|
-
type: ListDatasetDatapointsContentDatasetsResponse200Type;
|
|
606
|
-
/**
|
|
607
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
608
|
-
*
|
|
609
|
-
* @remarks
|
|
610
|
-
*
|
|
611
|
-
* - `5m`: 5 minutes
|
|
612
|
-
* - `1h`: 1 hour
|
|
613
|
-
*
|
|
614
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
615
|
-
*/
|
|
616
|
-
ttl?: ListDatasetDatapointsContentDatasetsTtl | undefined;
|
|
617
|
-
};
|
|
618
|
-
|
|
619
|
-
export type ListDatasetDatapointsContentDatasets2 = {
|
|
620
|
-
type: ListDatasetDatapointsContentDatasetsType;
|
|
621
|
-
text: string;
|
|
622
|
-
cacheControl?: ListDatasetDatapointsContentDatasetsCacheControl | undefined;
|
|
623
|
-
};
|
|
624
|
-
|
|
625
339
|
/**
|
|
626
340
|
* The contents of the developer message.
|
|
627
341
|
*/
|
|
628
342
|
export type ListDatasetDatapointsMessagesDatasetsContent =
|
|
629
343
|
| string
|
|
630
|
-
| Array<
|
|
344
|
+
| Array<components.TextContentPartSchema>;
|
|
631
345
|
|
|
632
346
|
export type ListDatasetDatapointsMessagesDeveloperMessage = {
|
|
633
347
|
/**
|
|
@@ -637,94 +351,22 @@ export type ListDatasetDatapointsMessagesDeveloperMessage = {
|
|
|
637
351
|
/**
|
|
638
352
|
* The contents of the developer message.
|
|
639
353
|
*/
|
|
640
|
-
content: string | Array<
|
|
354
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
641
355
|
/**
|
|
642
356
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
643
357
|
*/
|
|
644
358
|
name?: string | undefined;
|
|
645
359
|
};
|
|
646
360
|
|
|
647
|
-
export const ListDatasetDatapointsContentType = {
|
|
648
|
-
Text: "text",
|
|
649
|
-
} as const;
|
|
650
|
-
export type ListDatasetDatapointsContentType = ClosedEnum<
|
|
651
|
-
typeof ListDatasetDatapointsContentType
|
|
652
|
-
>;
|
|
653
|
-
|
|
654
|
-
/**
|
|
655
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
656
|
-
*/
|
|
657
|
-
export const ListDatasetDatapointsContentDatasetsResponseType = {
|
|
658
|
-
Ephemeral: "ephemeral",
|
|
659
|
-
} as const;
|
|
660
361
|
/**
|
|
661
|
-
*
|
|
362
|
+
* The contents of the system message.
|
|
662
363
|
*/
|
|
663
|
-
export type
|
|
664
|
-
|
|
665
|
-
>;
|
|
364
|
+
export type ListDatasetDatapointsMessagesContent =
|
|
365
|
+
| string
|
|
366
|
+
| Array<components.TextContentPartSchema>;
|
|
666
367
|
|
|
667
368
|
/**
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
* @remarks
|
|
671
|
-
*
|
|
672
|
-
* - `5m`: 5 minutes
|
|
673
|
-
* - `1h`: 1 hour
|
|
674
|
-
*
|
|
675
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
676
|
-
*/
|
|
677
|
-
export const ListDatasetDatapointsContentTtl = {
|
|
678
|
-
Fivem: "5m",
|
|
679
|
-
Oneh: "1h",
|
|
680
|
-
} as const;
|
|
681
|
-
/**
|
|
682
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
683
|
-
*
|
|
684
|
-
* @remarks
|
|
685
|
-
*
|
|
686
|
-
* - `5m`: 5 minutes
|
|
687
|
-
* - `1h`: 1 hour
|
|
688
|
-
*
|
|
689
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
690
|
-
*/
|
|
691
|
-
export type ListDatasetDatapointsContentTtl = ClosedEnum<
|
|
692
|
-
typeof ListDatasetDatapointsContentTtl
|
|
693
|
-
>;
|
|
694
|
-
|
|
695
|
-
export type ListDatasetDatapointsContentCacheControl = {
|
|
696
|
-
/**
|
|
697
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
698
|
-
*/
|
|
699
|
-
type: ListDatasetDatapointsContentDatasetsResponseType;
|
|
700
|
-
/**
|
|
701
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
702
|
-
*
|
|
703
|
-
* @remarks
|
|
704
|
-
*
|
|
705
|
-
* - `5m`: 5 minutes
|
|
706
|
-
* - `1h`: 1 hour
|
|
707
|
-
*
|
|
708
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
709
|
-
*/
|
|
710
|
-
ttl?: ListDatasetDatapointsContentTtl | undefined;
|
|
711
|
-
};
|
|
712
|
-
|
|
713
|
-
export type ListDatasetDatapointsContent2 = {
|
|
714
|
-
type: ListDatasetDatapointsContentType;
|
|
715
|
-
text: string;
|
|
716
|
-
cacheControl?: ListDatasetDatapointsContentCacheControl | undefined;
|
|
717
|
-
};
|
|
718
|
-
|
|
719
|
-
/**
|
|
720
|
-
* The contents of the system message.
|
|
721
|
-
*/
|
|
722
|
-
export type ListDatasetDatapointsMessagesContent =
|
|
723
|
-
| string
|
|
724
|
-
| Array<ListDatasetDatapointsContent2>;
|
|
725
|
-
|
|
726
|
-
/**
|
|
727
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
369
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
728
370
|
*/
|
|
729
371
|
export type ListDatasetDatapointsMessagesSystemMessage = {
|
|
730
372
|
/**
|
|
@@ -734,7 +376,7 @@ export type ListDatasetDatapointsMessagesSystemMessage = {
|
|
|
734
376
|
/**
|
|
735
377
|
* The contents of the system message.
|
|
736
378
|
*/
|
|
737
|
-
content: string | Array<
|
|
379
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
738
380
|
/**
|
|
739
381
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
740
382
|
*/
|
|
@@ -1039,204 +681,47 @@ export const ListDatasetDatapointsObject$outboundSchema: z.ZodNativeEnum<
|
|
|
1039
681
|
> = ListDatasetDatapointsObject$inboundSchema;
|
|
1040
682
|
|
|
1041
683
|
/** @internal */
|
|
1042
|
-
export const
|
|
1043
|
-
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Type> = z
|
|
1044
|
-
.nativeEnum(ListDatasetDatapoints2DatasetsResponse200Type);
|
|
1045
|
-
/** @internal */
|
|
1046
|
-
export const ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema:
|
|
1047
|
-
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Type> =
|
|
1048
|
-
ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema;
|
|
1049
|
-
|
|
1050
|
-
/** @internal */
|
|
1051
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema:
|
|
1052
|
-
z.ZodNativeEnum<
|
|
1053
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
|
|
1054
|
-
> = z.nativeEnum(
|
|
1055
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType,
|
|
1056
|
-
);
|
|
1057
|
-
/** @internal */
|
|
1058
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$outboundSchema:
|
|
1059
|
-
z.ZodNativeEnum<
|
|
1060
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType
|
|
1061
|
-
> =
|
|
1062
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema;
|
|
1063
|
-
|
|
1064
|
-
/** @internal */
|
|
1065
|
-
export const ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema:
|
|
1066
|
-
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Ttl> = z
|
|
1067
|
-
.nativeEnum(ListDatasetDatapoints2DatasetsResponse200Ttl);
|
|
1068
|
-
/** @internal */
|
|
1069
|
-
export const ListDatasetDatapoints2DatasetsResponse200Ttl$outboundSchema:
|
|
1070
|
-
z.ZodNativeEnum<typeof ListDatasetDatapoints2DatasetsResponse200Ttl> =
|
|
1071
|
-
ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema;
|
|
1072
|
-
|
|
1073
|
-
/** @internal */
|
|
1074
|
-
export const ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema:
|
|
684
|
+
export const ListDatasetDatapointsContentDatasetsResponse2$inboundSchema:
|
|
1075
685
|
z.ZodType<
|
|
1076
|
-
|
|
686
|
+
ListDatasetDatapointsContentDatasetsResponse2,
|
|
1077
687
|
z.ZodTypeDef,
|
|
1078
688
|
unknown
|
|
1079
|
-
> =
|
|
1080
|
-
type:
|
|
1081
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$inboundSchema,
|
|
1082
|
-
ttl: ListDatasetDatapoints2DatasetsResponse200Ttl$inboundSchema.default(
|
|
1083
|
-
"5m",
|
|
1084
|
-
),
|
|
1085
|
-
});
|
|
689
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
1086
690
|
/** @internal */
|
|
1087
|
-
export type
|
|
1088
|
-
|
|
1089
|
-
ttl: string;
|
|
1090
|
-
};
|
|
691
|
+
export type ListDatasetDatapointsContentDatasetsResponse2$Outbound =
|
|
692
|
+
components.TextContentPartSchema$Outbound;
|
|
1091
693
|
|
|
1092
694
|
/** @internal */
|
|
1093
|
-
export const
|
|
695
|
+
export const ListDatasetDatapointsContentDatasetsResponse2$outboundSchema:
|
|
1094
696
|
z.ZodType<
|
|
1095
|
-
|
|
697
|
+
ListDatasetDatapointsContentDatasetsResponse2$Outbound,
|
|
1096
698
|
z.ZodTypeDef,
|
|
1097
|
-
|
|
1098
|
-
> =
|
|
1099
|
-
type:
|
|
1100
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataMessagesType$outboundSchema,
|
|
1101
|
-
ttl: ListDatasetDatapoints2DatasetsResponse200Ttl$outboundSchema.default(
|
|
1102
|
-
"5m",
|
|
1103
|
-
),
|
|
1104
|
-
});
|
|
1105
|
-
|
|
1106
|
-
export function listDatasetDatapoints2DatasetsResponse200CacheControlToJSON(
|
|
1107
|
-
listDatasetDatapoints2DatasetsResponse200CacheControl:
|
|
1108
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl,
|
|
1109
|
-
): string {
|
|
1110
|
-
return JSON.stringify(
|
|
1111
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl$outboundSchema.parse(
|
|
1112
|
-
listDatasetDatapoints2DatasetsResponse200CacheControl,
|
|
1113
|
-
),
|
|
1114
|
-
);
|
|
1115
|
-
}
|
|
1116
|
-
export function listDatasetDatapoints2DatasetsResponse200CacheControlFromJSON(
|
|
1117
|
-
jsonString: string,
|
|
1118
|
-
): SafeParseResult<
|
|
1119
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl,
|
|
1120
|
-
SDKValidationError
|
|
1121
|
-
> {
|
|
1122
|
-
return safeParse(
|
|
1123
|
-
jsonString,
|
|
1124
|
-
(x) =>
|
|
1125
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema.parse(
|
|
1126
|
-
JSON.parse(x),
|
|
1127
|
-
),
|
|
1128
|
-
`Failed to parse 'ListDatasetDatapoints2DatasetsResponse200CacheControl' from JSON`,
|
|
1129
|
-
);
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
/** @internal */
|
|
1133
|
-
export const ListDatasetDatapoints2DatasetsResponse1$inboundSchema: z.ZodType<
|
|
1134
|
-
ListDatasetDatapoints2DatasetsResponse1,
|
|
1135
|
-
z.ZodTypeDef,
|
|
1136
|
-
unknown
|
|
1137
|
-
> = z.object({
|
|
1138
|
-
type: ListDatasetDatapoints2DatasetsResponse200Type$inboundSchema,
|
|
1139
|
-
text: z.string(),
|
|
1140
|
-
cache_control: z.lazy(() =>
|
|
1141
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl$inboundSchema
|
|
1142
|
-
).optional(),
|
|
1143
|
-
}).transform((v) => {
|
|
1144
|
-
return remap$(v, {
|
|
1145
|
-
"cache_control": "cacheControl",
|
|
1146
|
-
});
|
|
1147
|
-
});
|
|
1148
|
-
/** @internal */
|
|
1149
|
-
export type ListDatasetDatapoints2DatasetsResponse1$Outbound = {
|
|
1150
|
-
type: string;
|
|
1151
|
-
text: string;
|
|
1152
|
-
cache_control?:
|
|
1153
|
-
| ListDatasetDatapoints2DatasetsResponse200CacheControl$Outbound
|
|
1154
|
-
| undefined;
|
|
1155
|
-
};
|
|
1156
|
-
|
|
1157
|
-
/** @internal */
|
|
1158
|
-
export const ListDatasetDatapoints2DatasetsResponse1$outboundSchema: z.ZodType<
|
|
1159
|
-
ListDatasetDatapoints2DatasetsResponse1$Outbound,
|
|
1160
|
-
z.ZodTypeDef,
|
|
1161
|
-
ListDatasetDatapoints2DatasetsResponse1
|
|
1162
|
-
> = z.object({
|
|
1163
|
-
type: ListDatasetDatapoints2DatasetsResponse200Type$outboundSchema,
|
|
1164
|
-
text: z.string(),
|
|
1165
|
-
cacheControl: z.lazy(() =>
|
|
1166
|
-
ListDatasetDatapoints2DatasetsResponse200CacheControl$outboundSchema
|
|
1167
|
-
).optional(),
|
|
1168
|
-
}).transform((v) => {
|
|
1169
|
-
return remap$(v, {
|
|
1170
|
-
cacheControl: "cache_control",
|
|
1171
|
-
});
|
|
1172
|
-
});
|
|
699
|
+
ListDatasetDatapointsContentDatasetsResponse2
|
|
700
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
1173
701
|
|
|
1174
|
-
export function
|
|
1175
|
-
|
|
1176
|
-
|
|
702
|
+
export function listDatasetDatapointsContentDatasetsResponse2ToJSON(
|
|
703
|
+
listDatasetDatapointsContentDatasetsResponse2:
|
|
704
|
+
ListDatasetDatapointsContentDatasetsResponse2,
|
|
1177
705
|
): string {
|
|
1178
706
|
return JSON.stringify(
|
|
1179
|
-
|
|
1180
|
-
|
|
707
|
+
ListDatasetDatapointsContentDatasetsResponse2$outboundSchema.parse(
|
|
708
|
+
listDatasetDatapointsContentDatasetsResponse2,
|
|
1181
709
|
),
|
|
1182
710
|
);
|
|
1183
711
|
}
|
|
1184
|
-
export function
|
|
712
|
+
export function listDatasetDatapointsContentDatasetsResponse2FromJSON(
|
|
1185
713
|
jsonString: string,
|
|
1186
714
|
): SafeParseResult<
|
|
1187
|
-
|
|
715
|
+
ListDatasetDatapointsContentDatasetsResponse2,
|
|
1188
716
|
SDKValidationError
|
|
1189
717
|
> {
|
|
1190
718
|
return safeParse(
|
|
1191
719
|
jsonString,
|
|
1192
720
|
(x) =>
|
|
1193
|
-
|
|
721
|
+
ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(
|
|
1194
722
|
JSON.parse(x),
|
|
1195
723
|
),
|
|
1196
|
-
`Failed to parse '
|
|
1197
|
-
);
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
/** @internal */
|
|
1201
|
-
export const ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$inboundSchema:
|
|
1202
|
-
z.ZodType<
|
|
1203
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
|
|
1204
|
-
z.ZodTypeDef,
|
|
1205
|
-
unknown
|
|
1206
|
-
> = z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema);
|
|
1207
|
-
/** @internal */
|
|
1208
|
-
export type ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$Outbound =
|
|
1209
|
-
ListDatasetDatapoints2DatasetsResponse1$Outbound;
|
|
1210
|
-
|
|
1211
|
-
/** @internal */
|
|
1212
|
-
export const ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$outboundSchema:
|
|
1213
|
-
z.ZodType<
|
|
1214
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$Outbound,
|
|
1215
|
-
z.ZodTypeDef,
|
|
1216
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2
|
|
1217
|
-
> = z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema);
|
|
1218
|
-
|
|
1219
|
-
export function listDatasetDatapointsContentDatasetsResponse200ApplicationJSON2ToJSON(
|
|
1220
|
-
listDatasetDatapointsContentDatasetsResponse200ApplicationJson2:
|
|
1221
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
|
|
1222
|
-
): string {
|
|
1223
|
-
return JSON.stringify(
|
|
1224
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$outboundSchema
|
|
1225
|
-
.parse(listDatasetDatapointsContentDatasetsResponse200ApplicationJson2),
|
|
1226
|
-
);
|
|
1227
|
-
}
|
|
1228
|
-
export function listDatasetDatapointsContentDatasetsResponse200ApplicationJSON2FromJSON(
|
|
1229
|
-
jsonString: string,
|
|
1230
|
-
): SafeParseResult<
|
|
1231
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2,
|
|
1232
|
-
SDKValidationError
|
|
1233
|
-
> {
|
|
1234
|
-
return safeParse(
|
|
1235
|
-
jsonString,
|
|
1236
|
-
(x) =>
|
|
1237
|
-
ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2$inboundSchema
|
|
1238
|
-
.parse(JSON.parse(x)),
|
|
1239
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasetsResponse200ApplicationJson2' from JSON`,
|
|
724
|
+
`Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
|
|
1240
725
|
);
|
|
1241
726
|
}
|
|
1242
727
|
|
|
@@ -1248,14 +733,12 @@ export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONCont
|
|
|
1248
733
|
unknown
|
|
1249
734
|
> = z.union([
|
|
1250
735
|
z.string(),
|
|
1251
|
-
z.array(
|
|
1252
|
-
z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema),
|
|
1253
|
-
),
|
|
736
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1254
737
|
]);
|
|
1255
738
|
/** @internal */
|
|
1256
739
|
export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$Outbound =
|
|
1257
740
|
| string
|
|
1258
|
-
| Array<
|
|
741
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
1259
742
|
|
|
1260
743
|
/** @internal */
|
|
1261
744
|
export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$outboundSchema:
|
|
@@ -1265,9 +748,7 @@ export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONCont
|
|
|
1265
748
|
ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent
|
|
1266
749
|
> = z.union([
|
|
1267
750
|
z.string(),
|
|
1268
|
-
z.array(
|
|
1269
|
-
z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema),
|
|
1270
|
-
),
|
|
751
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1271
752
|
]);
|
|
1272
753
|
|
|
1273
754
|
export function listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentToJSON(
|
|
@@ -1375,9 +856,7 @@ export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1375
856
|
role: z.literal("tool"),
|
|
1376
857
|
content: z.union([
|
|
1377
858
|
z.string(),
|
|
1378
|
-
z.array(
|
|
1379
|
-
z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$inboundSchema),
|
|
1380
|
-
),
|
|
859
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1381
860
|
]),
|
|
1382
861
|
tool_call_id: z.string(),
|
|
1383
862
|
cache_control: z.lazy(() =>
|
|
@@ -1392,7 +871,7 @@ export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1392
871
|
/** @internal */
|
|
1393
872
|
export type ListDatasetDatapointsMessagesToolMessage$Outbound = {
|
|
1394
873
|
role: "tool";
|
|
1395
|
-
content: string | Array<
|
|
874
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1396
875
|
tool_call_id: string;
|
|
1397
876
|
cache_control?:
|
|
1398
877
|
| ListDatasetDatapointsMessagesCacheControl$Outbound
|
|
@@ -1408,9 +887,7 @@ export const ListDatasetDatapointsMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1408
887
|
role: z.literal("tool"),
|
|
1409
888
|
content: z.union([
|
|
1410
889
|
z.string(),
|
|
1411
|
-
z.array(
|
|
1412
|
-
z.lazy(() => ListDatasetDatapoints2DatasetsResponse1$outboundSchema),
|
|
1413
|
-
),
|
|
890
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1414
891
|
]),
|
|
1415
892
|
toolCallId: z.string(),
|
|
1416
893
|
cacheControl: z.lazy(() =>
|
|
@@ -1450,274 +927,139 @@ export function listDatasetDatapointsMessagesToolMessageFromJSON(
|
|
|
1450
927
|
}
|
|
1451
928
|
|
|
1452
929
|
/** @internal */
|
|
1453
|
-
export const
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
930
|
+
export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
|
|
931
|
+
ListDatasetDatapointsContentDatasets2,
|
|
932
|
+
z.ZodTypeDef,
|
|
933
|
+
unknown
|
|
934
|
+
> = z.union([
|
|
935
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
936
|
+
z.object({ type: z.literal("text") }),
|
|
937
|
+
),
|
|
938
|
+
components.RefusalPartSchema$inboundSchema,
|
|
939
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
940
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
941
|
+
]);
|
|
1459
942
|
/** @internal */
|
|
1460
|
-
export
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
943
|
+
export type ListDatasetDatapointsContentDatasets2$Outbound =
|
|
944
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
945
|
+
| components.RefusalPartSchema$Outbound
|
|
946
|
+
| components.ReasoningPartSchema$Outbound
|
|
947
|
+
| components.RedactedReasoningPartSchema$Outbound;
|
|
1465
948
|
|
|
1466
949
|
/** @internal */
|
|
1467
|
-
export const
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
950
|
+
export const ListDatasetDatapointsContentDatasets2$outboundSchema: z.ZodType<
|
|
951
|
+
ListDatasetDatapointsContentDatasets2$Outbound,
|
|
952
|
+
z.ZodTypeDef,
|
|
953
|
+
ListDatasetDatapointsContentDatasets2
|
|
954
|
+
> = z.union([
|
|
955
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
956
|
+
z.object({ type: z.literal("text") }),
|
|
957
|
+
),
|
|
958
|
+
components.RefusalPartSchema$outboundSchema,
|
|
959
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
960
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
961
|
+
]);
|
|
962
|
+
|
|
963
|
+
export function listDatasetDatapointsContentDatasets2ToJSON(
|
|
964
|
+
listDatasetDatapointsContentDatasets2: ListDatasetDatapointsContentDatasets2,
|
|
965
|
+
): string {
|
|
966
|
+
return JSON.stringify(
|
|
967
|
+
ListDatasetDatapointsContentDatasets2$outboundSchema.parse(
|
|
968
|
+
listDatasetDatapointsContentDatasets2,
|
|
969
|
+
),
|
|
970
|
+
);
|
|
971
|
+
}
|
|
972
|
+
export function listDatasetDatapointsContentDatasets2FromJSON(
|
|
973
|
+
jsonString: string,
|
|
974
|
+
): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
|
|
975
|
+
return safeParse(
|
|
976
|
+
jsonString,
|
|
977
|
+
(x) =>
|
|
978
|
+
ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
979
|
+
`Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
|
|
980
|
+
);
|
|
981
|
+
}
|
|
1474
982
|
|
|
1475
983
|
/** @internal */
|
|
1476
|
-
export const
|
|
984
|
+
export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
|
|
1477
985
|
z.ZodType<
|
|
1478
|
-
|
|
986
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1479
987
|
z.ZodTypeDef,
|
|
1480
988
|
unknown
|
|
1481
|
-
> = z.
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
989
|
+
> = z.union([
|
|
990
|
+
z.string(),
|
|
991
|
+
z.array(
|
|
992
|
+
z.union([
|
|
993
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
994
|
+
z.object({ type: z.literal("text") }),
|
|
995
|
+
),
|
|
996
|
+
components.RefusalPartSchema$inboundSchema,
|
|
997
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
998
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
999
|
+
]),
|
|
1000
|
+
),
|
|
1001
|
+
]);
|
|
1486
1002
|
/** @internal */
|
|
1487
|
-
export type
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
}
|
|
1003
|
+
export type ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound =
|
|
1004
|
+
| string
|
|
1005
|
+
| Array<
|
|
1006
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1007
|
+
| components.RefusalPartSchema$Outbound
|
|
1008
|
+
| components.ReasoningPartSchema$Outbound
|
|
1009
|
+
| components.RedactedReasoningPartSchema$Outbound
|
|
1010
|
+
>;
|
|
1491
1011
|
|
|
1492
1012
|
/** @internal */
|
|
1493
|
-
export const
|
|
1013
|
+
export const ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema:
|
|
1494
1014
|
z.ZodType<
|
|
1495
|
-
|
|
1015
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound,
|
|
1496
1016
|
z.ZodTypeDef,
|
|
1497
|
-
|
|
1498
|
-
> = z.
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1017
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content
|
|
1018
|
+
> = z.union([
|
|
1019
|
+
z.string(),
|
|
1020
|
+
z.array(
|
|
1021
|
+
z.union([
|
|
1022
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1023
|
+
z.object({ type: z.literal("text") }),
|
|
1024
|
+
),
|
|
1025
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1026
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1027
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1028
|
+
]),
|
|
1029
|
+
),
|
|
1030
|
+
]);
|
|
1503
1031
|
|
|
1504
|
-
export function
|
|
1505
|
-
|
|
1506
|
-
|
|
1032
|
+
export function listDatasetDatapointsMessagesDatasetsResponse200ContentToJSON(
|
|
1033
|
+
listDatasetDatapointsMessagesDatasetsResponse200Content:
|
|
1034
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1507
1035
|
): string {
|
|
1508
1036
|
return JSON.stringify(
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
),
|
|
1037
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema
|
|
1038
|
+
.parse(listDatasetDatapointsMessagesDatasetsResponse200Content),
|
|
1512
1039
|
);
|
|
1513
1040
|
}
|
|
1514
|
-
export function
|
|
1041
|
+
export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
|
|
1515
1042
|
jsonString: string,
|
|
1516
1043
|
): SafeParseResult<
|
|
1517
|
-
|
|
1044
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1518
1045
|
SDKValidationError
|
|
1519
1046
|
> {
|
|
1520
1047
|
return safeParse(
|
|
1521
1048
|
jsonString,
|
|
1522
1049
|
(x) =>
|
|
1523
|
-
|
|
1524
|
-
JSON.parse(x),
|
|
1525
|
-
|
|
1526
|
-
`Failed to parse 'ListDatasetDatapoints2DatasetsResponseCacheControl' from JSON`,
|
|
1050
|
+
ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
|
|
1051
|
+
.parse(JSON.parse(x)),
|
|
1052
|
+
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
|
|
1527
1053
|
);
|
|
1528
1054
|
}
|
|
1529
1055
|
|
|
1530
1056
|
/** @internal */
|
|
1531
|
-
export const
|
|
1532
|
-
|
|
1057
|
+
export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
|
|
1058
|
+
ListDatasetDatapointsMessagesAudio,
|
|
1533
1059
|
z.ZodTypeDef,
|
|
1534
1060
|
unknown
|
|
1535
1061
|
> = z.object({
|
|
1536
|
-
|
|
1537
|
-
text: z.string(),
|
|
1538
|
-
cache_control: z.lazy(() =>
|
|
1539
|
-
ListDatasetDatapoints2DatasetsResponseCacheControl$inboundSchema
|
|
1540
|
-
).optional(),
|
|
1541
|
-
}).transform((v) => {
|
|
1542
|
-
return remap$(v, {
|
|
1543
|
-
"cache_control": "cacheControl",
|
|
1544
|
-
});
|
|
1545
|
-
});
|
|
1546
|
-
/** @internal */
|
|
1547
|
-
export type ListDatasetDatapoints2Datasets1$Outbound = {
|
|
1548
|
-
type: "text";
|
|
1549
|
-
text: string;
|
|
1550
|
-
cache_control?:
|
|
1551
|
-
| ListDatasetDatapoints2DatasetsResponseCacheControl$Outbound
|
|
1552
|
-
| undefined;
|
|
1553
|
-
};
|
|
1554
|
-
|
|
1555
|
-
/** @internal */
|
|
1556
|
-
export const ListDatasetDatapoints2Datasets1$outboundSchema: z.ZodType<
|
|
1557
|
-
ListDatasetDatapoints2Datasets1$Outbound,
|
|
1558
|
-
z.ZodTypeDef,
|
|
1559
|
-
ListDatasetDatapoints2Datasets1
|
|
1560
|
-
> = z.object({
|
|
1561
|
-
type: z.literal("text"),
|
|
1562
|
-
text: z.string(),
|
|
1563
|
-
cacheControl: z.lazy(() =>
|
|
1564
|
-
ListDatasetDatapoints2DatasetsResponseCacheControl$outboundSchema
|
|
1565
|
-
).optional(),
|
|
1566
|
-
}).transform((v) => {
|
|
1567
|
-
return remap$(v, {
|
|
1568
|
-
cacheControl: "cache_control",
|
|
1569
|
-
});
|
|
1570
|
-
});
|
|
1571
|
-
|
|
1572
|
-
export function listDatasetDatapoints2Datasets1ToJSON(
|
|
1573
|
-
listDatasetDatapoints2Datasets1: ListDatasetDatapoints2Datasets1,
|
|
1574
|
-
): string {
|
|
1575
|
-
return JSON.stringify(
|
|
1576
|
-
ListDatasetDatapoints2Datasets1$outboundSchema.parse(
|
|
1577
|
-
listDatasetDatapoints2Datasets1,
|
|
1578
|
-
),
|
|
1579
|
-
);
|
|
1580
|
-
}
|
|
1581
|
-
export function listDatasetDatapoints2Datasets1FromJSON(
|
|
1582
|
-
jsonString: string,
|
|
1583
|
-
): SafeParseResult<ListDatasetDatapoints2Datasets1, SDKValidationError> {
|
|
1584
|
-
return safeParse(
|
|
1585
|
-
jsonString,
|
|
1586
|
-
(x) => ListDatasetDatapoints2Datasets1$inboundSchema.parse(JSON.parse(x)),
|
|
1587
|
-
`Failed to parse 'ListDatasetDatapoints2Datasets1' from JSON`,
|
|
1588
|
-
);
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
/** @internal */
|
|
1592
|
-
export const ListDatasetDatapointsContentDatasetsResponse2002$inboundSchema:
|
|
1593
|
-
z.ZodType<
|
|
1594
|
-
ListDatasetDatapointsContentDatasetsResponse2002,
|
|
1595
|
-
z.ZodTypeDef,
|
|
1596
|
-
unknown
|
|
1597
|
-
> = z.union([
|
|
1598
|
-
z.lazy(() => ListDatasetDatapoints2Datasets1$inboundSchema),
|
|
1599
|
-
components.RefusalPartSchema$inboundSchema,
|
|
1600
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1601
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1602
|
-
]);
|
|
1603
|
-
/** @internal */
|
|
1604
|
-
export type ListDatasetDatapointsContentDatasetsResponse2002$Outbound =
|
|
1605
|
-
| ListDatasetDatapoints2Datasets1$Outbound
|
|
1606
|
-
| components.RefusalPartSchema$Outbound
|
|
1607
|
-
| components.ReasoningPartSchema$Outbound
|
|
1608
|
-
| components.RedactedReasoningPartSchema$Outbound;
|
|
1609
|
-
|
|
1610
|
-
/** @internal */
|
|
1611
|
-
export const ListDatasetDatapointsContentDatasetsResponse2002$outboundSchema:
|
|
1612
|
-
z.ZodType<
|
|
1613
|
-
ListDatasetDatapointsContentDatasetsResponse2002$Outbound,
|
|
1614
|
-
z.ZodTypeDef,
|
|
1615
|
-
ListDatasetDatapointsContentDatasetsResponse2002
|
|
1616
|
-
> = z.union([
|
|
1617
|
-
z.lazy(() => ListDatasetDatapoints2Datasets1$outboundSchema),
|
|
1618
|
-
components.RefusalPartSchema$outboundSchema,
|
|
1619
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1620
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1621
|
-
]);
|
|
1622
|
-
|
|
1623
|
-
export function listDatasetDatapointsContentDatasetsResponse2002ToJSON(
|
|
1624
|
-
listDatasetDatapointsContentDatasetsResponse2002:
|
|
1625
|
-
ListDatasetDatapointsContentDatasetsResponse2002,
|
|
1626
|
-
): string {
|
|
1627
|
-
return JSON.stringify(
|
|
1628
|
-
ListDatasetDatapointsContentDatasetsResponse2002$outboundSchema.parse(
|
|
1629
|
-
listDatasetDatapointsContentDatasetsResponse2002,
|
|
1630
|
-
),
|
|
1631
|
-
);
|
|
1632
|
-
}
|
|
1633
|
-
export function listDatasetDatapointsContentDatasetsResponse2002FromJSON(
|
|
1634
|
-
jsonString: string,
|
|
1635
|
-
): SafeParseResult<
|
|
1636
|
-
ListDatasetDatapointsContentDatasetsResponse2002,
|
|
1637
|
-
SDKValidationError
|
|
1638
|
-
> {
|
|
1639
|
-
return safeParse(
|
|
1640
|
-
jsonString,
|
|
1641
|
-
(x) =>
|
|
1642
|
-
ListDatasetDatapointsContentDatasetsResponse2002$inboundSchema.parse(
|
|
1643
|
-
JSON.parse(x),
|
|
1644
|
-
),
|
|
1645
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2002' from JSON`,
|
|
1646
|
-
);
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
/** @internal */
|
|
1650
|
-
export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
|
|
1651
|
-
z.ZodType<
|
|
1652
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1653
|
-
z.ZodTypeDef,
|
|
1654
|
-
unknown
|
|
1655
|
-
> = z.union([
|
|
1656
|
-
z.string(),
|
|
1657
|
-
z.array(z.union([
|
|
1658
|
-
z.lazy(() => ListDatasetDatapoints2Datasets1$inboundSchema),
|
|
1659
|
-
components.RefusalPartSchema$inboundSchema,
|
|
1660
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1661
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1662
|
-
])),
|
|
1663
|
-
]);
|
|
1664
|
-
/** @internal */
|
|
1665
|
-
export type ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound =
|
|
1666
|
-
| string
|
|
1667
|
-
| Array<
|
|
1668
|
-
| ListDatasetDatapoints2Datasets1$Outbound
|
|
1669
|
-
| components.RefusalPartSchema$Outbound
|
|
1670
|
-
| components.ReasoningPartSchema$Outbound
|
|
1671
|
-
| components.RedactedReasoningPartSchema$Outbound
|
|
1672
|
-
>;
|
|
1673
|
-
|
|
1674
|
-
/** @internal */
|
|
1675
|
-
export const ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema:
|
|
1676
|
-
z.ZodType<
|
|
1677
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content$Outbound,
|
|
1678
|
-
z.ZodTypeDef,
|
|
1679
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content
|
|
1680
|
-
> = z.union([
|
|
1681
|
-
z.string(),
|
|
1682
|
-
z.array(z.union([
|
|
1683
|
-
z.lazy(() => ListDatasetDatapoints2Datasets1$outboundSchema),
|
|
1684
|
-
components.RefusalPartSchema$outboundSchema,
|
|
1685
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1686
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1687
|
-
])),
|
|
1688
|
-
]);
|
|
1689
|
-
|
|
1690
|
-
export function listDatasetDatapointsMessagesDatasetsResponse200ContentToJSON(
|
|
1691
|
-
listDatasetDatapointsMessagesDatasetsResponse200Content:
|
|
1692
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1693
|
-
): string {
|
|
1694
|
-
return JSON.stringify(
|
|
1695
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content$outboundSchema
|
|
1696
|
-
.parse(listDatasetDatapointsMessagesDatasetsResponse200Content),
|
|
1697
|
-
);
|
|
1698
|
-
}
|
|
1699
|
-
export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
|
|
1700
|
-
jsonString: string,
|
|
1701
|
-
): SafeParseResult<
|
|
1702
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content,
|
|
1703
|
-
SDKValidationError
|
|
1704
|
-
> {
|
|
1705
|
-
return safeParse(
|
|
1706
|
-
jsonString,
|
|
1707
|
-
(x) =>
|
|
1708
|
-
ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
|
|
1709
|
-
.parse(JSON.parse(x)),
|
|
1710
|
-
`Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
|
|
1711
|
-
);
|
|
1712
|
-
}
|
|
1713
|
-
|
|
1714
|
-
/** @internal */
|
|
1715
|
-
export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
|
|
1716
|
-
ListDatasetDatapointsMessagesAudio,
|
|
1717
|
-
z.ZodTypeDef,
|
|
1718
|
-
unknown
|
|
1719
|
-
> = z.object({
|
|
1720
|
-
id: z.string(),
|
|
1062
|
+
id: z.string(),
|
|
1721
1063
|
});
|
|
1722
1064
|
/** @internal */
|
|
1723
1065
|
export type ListDatasetDatapointsMessagesAudio$Outbound = {
|
|
@@ -1879,7 +1221,9 @@ export const ListDatasetDatapointsMessagesAssistantMessage$inboundSchema:
|
|
|
1879
1221
|
z.string(),
|
|
1880
1222
|
z.array(
|
|
1881
1223
|
z.union([
|
|
1882
|
-
|
|
1224
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1225
|
+
z.object({ type: z.literal("text") }),
|
|
1226
|
+
),
|
|
1883
1227
|
components.RefusalPartSchema$inboundSchema,
|
|
1884
1228
|
components.ReasoningPartSchema$inboundSchema,
|
|
1885
1229
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -1906,7 +1250,7 @@ export type ListDatasetDatapointsMessagesAssistantMessage$Outbound = {
|
|
|
1906
1250
|
content?:
|
|
1907
1251
|
| string
|
|
1908
1252
|
| Array<
|
|
1909
|
-
|
|
|
1253
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1910
1254
|
| components.RefusalPartSchema$Outbound
|
|
1911
1255
|
| components.ReasoningPartSchema$Outbound
|
|
1912
1256
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -1934,7 +1278,9 @@ export const ListDatasetDatapointsMessagesAssistantMessage$outboundSchema:
|
|
|
1934
1278
|
z.string(),
|
|
1935
1279
|
z.array(
|
|
1936
1280
|
z.union([
|
|
1937
|
-
|
|
1281
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1282
|
+
z.object({ type: z.literal("text") }),
|
|
1283
|
+
),
|
|
1938
1284
|
components.RefusalPartSchema$outboundSchema,
|
|
1939
1285
|
components.ReasoningPartSchema$outboundSchema,
|
|
1940
1286
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -1984,152 +1330,13 @@ export function listDatasetDatapointsMessagesAssistantMessageFromJSON(
|
|
|
1984
1330
|
}
|
|
1985
1331
|
|
|
1986
1332
|
/** @internal */
|
|
1987
|
-
export const
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
> = z.nativeEnum(
|
|
1991
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType,
|
|
1992
|
-
);
|
|
1993
|
-
/** @internal */
|
|
1994
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$outboundSchema:
|
|
1995
|
-
z.ZodNativeEnum<
|
|
1996
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType
|
|
1997
|
-
> =
|
|
1998
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$inboundSchema;
|
|
1999
|
-
|
|
2000
|
-
/** @internal */
|
|
2001
|
-
export const ListDatasetDatapoints2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
|
|
2002
|
-
typeof ListDatasetDatapoints2DatasetsTtl
|
|
2003
|
-
> = z.nativeEnum(ListDatasetDatapoints2DatasetsTtl);
|
|
2004
|
-
/** @internal */
|
|
2005
|
-
export const ListDatasetDatapoints2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
|
|
2006
|
-
typeof ListDatasetDatapoints2DatasetsTtl
|
|
2007
|
-
> = ListDatasetDatapoints2DatasetsTtl$inboundSchema;
|
|
2008
|
-
|
|
2009
|
-
/** @internal */
|
|
2010
|
-
export const ListDatasetDatapoints2DatasetsCacheControl$inboundSchema:
|
|
2011
|
-
z.ZodType<ListDatasetDatapoints2DatasetsCacheControl, z.ZodTypeDef, unknown> =
|
|
2012
|
-
z.object({
|
|
2013
|
-
type:
|
|
2014
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$inboundSchema,
|
|
2015
|
-
ttl: ListDatasetDatapoints2DatasetsTtl$inboundSchema.default("5m"),
|
|
2016
|
-
});
|
|
2017
|
-
/** @internal */
|
|
2018
|
-
export type ListDatasetDatapoints2DatasetsCacheControl$Outbound = {
|
|
2019
|
-
type: string;
|
|
2020
|
-
ttl: string;
|
|
2021
|
-
};
|
|
2022
|
-
|
|
2023
|
-
/** @internal */
|
|
2024
|
-
export const ListDatasetDatapoints2DatasetsCacheControl$outboundSchema:
|
|
2025
|
-
z.ZodType<
|
|
2026
|
-
ListDatasetDatapoints2DatasetsCacheControl$Outbound,
|
|
2027
|
-
z.ZodTypeDef,
|
|
2028
|
-
ListDatasetDatapoints2DatasetsCacheControl
|
|
2029
|
-
> = z.object({
|
|
2030
|
-
type:
|
|
2031
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONResponseBodyDataType$outboundSchema,
|
|
2032
|
-
ttl: ListDatasetDatapoints2DatasetsTtl$outboundSchema.default("5m"),
|
|
2033
|
-
});
|
|
2034
|
-
|
|
2035
|
-
export function listDatasetDatapoints2DatasetsCacheControlToJSON(
|
|
2036
|
-
listDatasetDatapoints2DatasetsCacheControl:
|
|
2037
|
-
ListDatasetDatapoints2DatasetsCacheControl,
|
|
2038
|
-
): string {
|
|
2039
|
-
return JSON.stringify(
|
|
2040
|
-
ListDatasetDatapoints2DatasetsCacheControl$outboundSchema.parse(
|
|
2041
|
-
listDatasetDatapoints2DatasetsCacheControl,
|
|
2042
|
-
),
|
|
2043
|
-
);
|
|
2044
|
-
}
|
|
2045
|
-
export function listDatasetDatapoints2DatasetsCacheControlFromJSON(
|
|
2046
|
-
jsonString: string,
|
|
2047
|
-
): SafeParseResult<
|
|
2048
|
-
ListDatasetDatapoints2DatasetsCacheControl,
|
|
2049
|
-
SDKValidationError
|
|
2050
|
-
> {
|
|
2051
|
-
return safeParse(
|
|
2052
|
-
jsonString,
|
|
2053
|
-
(x) =>
|
|
2054
|
-
ListDatasetDatapoints2DatasetsCacheControl$inboundSchema.parse(
|
|
2055
|
-
JSON.parse(x),
|
|
2056
|
-
),
|
|
2057
|
-
`Failed to parse 'ListDatasetDatapoints2DatasetsCacheControl' from JSON`,
|
|
2058
|
-
);
|
|
2059
|
-
}
|
|
2060
|
-
|
|
2061
|
-
/** @internal */
|
|
2062
|
-
export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
|
|
2063
|
-
ListDatasetDatapoints24,
|
|
2064
|
-
z.ZodTypeDef,
|
|
2065
|
-
unknown
|
|
2066
|
-
> = z.object({
|
|
2067
|
-
type: z.literal("file"),
|
|
2068
|
-
cache_control: z.lazy(() =>
|
|
2069
|
-
ListDatasetDatapoints2DatasetsCacheControl$inboundSchema
|
|
2070
|
-
).optional(),
|
|
2071
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
2072
|
-
}).transform((v) => {
|
|
2073
|
-
return remap$(v, {
|
|
2074
|
-
"cache_control": "cacheControl",
|
|
2075
|
-
});
|
|
2076
|
-
});
|
|
2077
|
-
/** @internal */
|
|
2078
|
-
export type ListDatasetDatapoints24$Outbound = {
|
|
2079
|
-
type: "file";
|
|
2080
|
-
cache_control?:
|
|
2081
|
-
| ListDatasetDatapoints2DatasetsCacheControl$Outbound
|
|
2082
|
-
| undefined;
|
|
2083
|
-
file: components.FileContentPartSchema$Outbound;
|
|
2084
|
-
};
|
|
2085
|
-
|
|
2086
|
-
/** @internal */
|
|
2087
|
-
export const ListDatasetDatapoints24$outboundSchema: z.ZodType<
|
|
2088
|
-
ListDatasetDatapoints24$Outbound,
|
|
2089
|
-
z.ZodTypeDef,
|
|
2090
|
-
ListDatasetDatapoints24
|
|
2091
|
-
> = z.object({
|
|
2092
|
-
type: z.literal("file"),
|
|
2093
|
-
cacheControl: z.lazy(() =>
|
|
2094
|
-
ListDatasetDatapoints2DatasetsCacheControl$outboundSchema
|
|
2095
|
-
).optional(),
|
|
2096
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
2097
|
-
}).transform((v) => {
|
|
2098
|
-
return remap$(v, {
|
|
2099
|
-
cacheControl: "cache_control",
|
|
2100
|
-
});
|
|
2101
|
-
});
|
|
2102
|
-
|
|
2103
|
-
export function listDatasetDatapoints24ToJSON(
|
|
2104
|
-
listDatasetDatapoints24: ListDatasetDatapoints24,
|
|
2105
|
-
): string {
|
|
2106
|
-
return JSON.stringify(
|
|
2107
|
-
ListDatasetDatapoints24$outboundSchema.parse(listDatasetDatapoints24),
|
|
2108
|
-
);
|
|
2109
|
-
}
|
|
2110
|
-
export function listDatasetDatapoints24FromJSON(
|
|
2111
|
-
jsonString: string,
|
|
2112
|
-
): SafeParseResult<ListDatasetDatapoints24, SDKValidationError> {
|
|
2113
|
-
return safeParse(
|
|
2114
|
-
jsonString,
|
|
2115
|
-
(x) => ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)),
|
|
2116
|
-
`Failed to parse 'ListDatasetDatapoints24' from JSON`,
|
|
2117
|
-
);
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
/** @internal */
|
|
2121
|
-
export const ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema:
|
|
2122
|
-
z.ZodNativeEnum<
|
|
2123
|
-
typeof ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType
|
|
2124
|
-
> = z.nativeEnum(
|
|
2125
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType,
|
|
2126
|
-
);
|
|
1333
|
+
export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
1334
|
+
typeof ListDatasetDatapoints2DatasetsType
|
|
1335
|
+
> = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
|
|
2127
1336
|
/** @internal */
|
|
2128
|
-
export const
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
> =
|
|
2132
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
1337
|
+
export const ListDatasetDatapoints2DatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
1338
|
+
typeof ListDatasetDatapoints2DatasetsType
|
|
1339
|
+
> = ListDatasetDatapoints2DatasetsType$inboundSchema;
|
|
2133
1340
|
|
|
2134
1341
|
/** @internal */
|
|
2135
1342
|
export const ListDatasetDatapoints2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
@@ -2146,8 +1353,7 @@ export const ListDatasetDatapoints2CacheControl$inboundSchema: z.ZodType<
|
|
|
2146
1353
|
z.ZodTypeDef,
|
|
2147
1354
|
unknown
|
|
2148
1355
|
> = z.object({
|
|
2149
|
-
type:
|
|
2150
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
1356
|
+
type: ListDatasetDatapoints2DatasetsType$inboundSchema,
|
|
2151
1357
|
ttl: ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
|
|
2152
1358
|
});
|
|
2153
1359
|
/** @internal */
|
|
@@ -2162,8 +1368,7 @@ export const ListDatasetDatapoints2CacheControl$outboundSchema: z.ZodType<
|
|
|
2162
1368
|
z.ZodTypeDef,
|
|
2163
1369
|
ListDatasetDatapoints2CacheControl
|
|
2164
1370
|
> = z.object({
|
|
2165
|
-
type:
|
|
2166
|
-
ListDatasetDatapoints2DatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
1371
|
+
type: ListDatasetDatapoints2DatasetsType$outboundSchema,
|
|
2167
1372
|
ttl: ListDatasetDatapoints2Ttl$outboundSchema.default("5m"),
|
|
2168
1373
|
});
|
|
2169
1374
|
|
|
@@ -2188,115 +1393,110 @@ export function listDatasetDatapoints2CacheControlFromJSON(
|
|
|
2188
1393
|
}
|
|
2189
1394
|
|
|
2190
1395
|
/** @internal */
|
|
2191
|
-
export const
|
|
2192
|
-
|
|
1396
|
+
export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
|
|
1397
|
+
ListDatasetDatapoints24,
|
|
2193
1398
|
z.ZodTypeDef,
|
|
2194
1399
|
unknown
|
|
2195
1400
|
> = z.object({
|
|
2196
|
-
type: z.literal("
|
|
2197
|
-
text: z.string(),
|
|
1401
|
+
type: z.literal("file"),
|
|
2198
1402
|
cache_control: z.lazy(() => ListDatasetDatapoints2CacheControl$inboundSchema)
|
|
2199
1403
|
.optional(),
|
|
1404
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
2200
1405
|
}).transform((v) => {
|
|
2201
1406
|
return remap$(v, {
|
|
2202
1407
|
"cache_control": "cacheControl",
|
|
2203
1408
|
});
|
|
2204
1409
|
});
|
|
2205
1410
|
/** @internal */
|
|
2206
|
-
export type
|
|
2207
|
-
type: "
|
|
2208
|
-
text: string;
|
|
1411
|
+
export type ListDatasetDatapoints24$Outbound = {
|
|
1412
|
+
type: "file";
|
|
2209
1413
|
cache_control?: ListDatasetDatapoints2CacheControl$Outbound | undefined;
|
|
1414
|
+
file: components.FileContentPartSchema$Outbound;
|
|
2210
1415
|
};
|
|
2211
1416
|
|
|
2212
1417
|
/** @internal */
|
|
2213
|
-
export const
|
|
2214
|
-
|
|
1418
|
+
export const ListDatasetDatapoints24$outboundSchema: z.ZodType<
|
|
1419
|
+
ListDatasetDatapoints24$Outbound,
|
|
2215
1420
|
z.ZodTypeDef,
|
|
2216
|
-
|
|
1421
|
+
ListDatasetDatapoints24
|
|
2217
1422
|
> = z.object({
|
|
2218
|
-
type: z.literal("
|
|
2219
|
-
text: z.string(),
|
|
1423
|
+
type: z.literal("file"),
|
|
2220
1424
|
cacheControl: z.lazy(() => ListDatasetDatapoints2CacheControl$outboundSchema)
|
|
2221
1425
|
.optional(),
|
|
1426
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2222
1427
|
}).transform((v) => {
|
|
2223
1428
|
return remap$(v, {
|
|
2224
1429
|
cacheControl: "cache_control",
|
|
2225
1430
|
});
|
|
2226
1431
|
});
|
|
2227
1432
|
|
|
2228
|
-
export function
|
|
2229
|
-
|
|
1433
|
+
export function listDatasetDatapoints24ToJSON(
|
|
1434
|
+
listDatasetDatapoints24: ListDatasetDatapoints24,
|
|
2230
1435
|
): string {
|
|
2231
1436
|
return JSON.stringify(
|
|
2232
|
-
|
|
1437
|
+
ListDatasetDatapoints24$outboundSchema.parse(listDatasetDatapoints24),
|
|
2233
1438
|
);
|
|
2234
1439
|
}
|
|
2235
|
-
export function
|
|
1440
|
+
export function listDatasetDatapoints24FromJSON(
|
|
2236
1441
|
jsonString: string,
|
|
2237
|
-
): SafeParseResult<
|
|
1442
|
+
): SafeParseResult<ListDatasetDatapoints24, SDKValidationError> {
|
|
2238
1443
|
return safeParse(
|
|
2239
1444
|
jsonString,
|
|
2240
|
-
(x) =>
|
|
2241
|
-
`Failed to parse '
|
|
1445
|
+
(x) => ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)),
|
|
1446
|
+
`Failed to parse 'ListDatasetDatapoints24' from JSON`,
|
|
2242
1447
|
);
|
|
2243
1448
|
}
|
|
2244
1449
|
|
|
2245
1450
|
/** @internal */
|
|
2246
|
-
export const
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
z.
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
1451
|
+
export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
|
|
1452
|
+
ListDatasetDatapointsContent2,
|
|
1453
|
+
z.ZodTypeDef,
|
|
1454
|
+
unknown
|
|
1455
|
+
> = z.union([
|
|
1456
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1457
|
+
z.object({ type: z.literal("text") }),
|
|
1458
|
+
),
|
|
1459
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1460
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1461
|
+
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1462
|
+
]);
|
|
2257
1463
|
/** @internal */
|
|
2258
|
-
export type
|
|
2259
|
-
|
|
|
1464
|
+
export type ListDatasetDatapointsContent2$Outbound =
|
|
1465
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2260
1466
|
| components.ImageContentPartSchema$Outbound
|
|
2261
1467
|
| components.AudioContentPartSchema$Outbound
|
|
2262
1468
|
| ListDatasetDatapoints24$Outbound;
|
|
2263
1469
|
|
|
2264
1470
|
/** @internal */
|
|
2265
|
-
export const
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
z.
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
1471
|
+
export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
|
|
1472
|
+
ListDatasetDatapointsContent2$Outbound,
|
|
1473
|
+
z.ZodTypeDef,
|
|
1474
|
+
ListDatasetDatapointsContent2
|
|
1475
|
+
> = z.union([
|
|
1476
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1477
|
+
z.object({ type: z.literal("text") }),
|
|
1478
|
+
),
|
|
1479
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1480
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1481
|
+
z.lazy(() => ListDatasetDatapoints24$outboundSchema),
|
|
1482
|
+
]);
|
|
2276
1483
|
|
|
2277
|
-
export function
|
|
2278
|
-
|
|
2279
|
-
ListDatasetDatapointsContentDatasetsResponse2,
|
|
1484
|
+
export function listDatasetDatapointsContent2ToJSON(
|
|
1485
|
+
listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
|
|
2280
1486
|
): string {
|
|
2281
1487
|
return JSON.stringify(
|
|
2282
|
-
|
|
2283
|
-
|
|
1488
|
+
ListDatasetDatapointsContent2$outboundSchema.parse(
|
|
1489
|
+
listDatasetDatapointsContent2,
|
|
2284
1490
|
),
|
|
2285
1491
|
);
|
|
2286
1492
|
}
|
|
2287
|
-
export function
|
|
1493
|
+
export function listDatasetDatapointsContent2FromJSON(
|
|
2288
1494
|
jsonString: string,
|
|
2289
|
-
): SafeParseResult<
|
|
2290
|
-
ListDatasetDatapointsContentDatasetsResponse2,
|
|
2291
|
-
SDKValidationError
|
|
2292
|
-
> {
|
|
1495
|
+
): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
|
|
2293
1496
|
return safeParse(
|
|
2294
1497
|
jsonString,
|
|
2295
|
-
(x) =>
|
|
2296
|
-
|
|
2297
|
-
JSON.parse(x),
|
|
2298
|
-
),
|
|
2299
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
|
|
1498
|
+
(x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1499
|
+
`Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
|
|
2300
1500
|
);
|
|
2301
1501
|
}
|
|
2302
1502
|
|
|
@@ -2308,18 +1508,22 @@ export const ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema:
|
|
|
2308
1508
|
unknown
|
|
2309
1509
|
> = z.union([
|
|
2310
1510
|
z.string(),
|
|
2311
|
-
z.array(
|
|
2312
|
-
z.
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
1511
|
+
z.array(
|
|
1512
|
+
z.union([
|
|
1513
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1514
|
+
z.object({ type: z.literal("text") }),
|
|
1515
|
+
),
|
|
1516
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1517
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1518
|
+
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1519
|
+
]),
|
|
1520
|
+
),
|
|
2317
1521
|
]);
|
|
2318
1522
|
/** @internal */
|
|
2319
1523
|
export type ListDatasetDatapointsMessagesDatasetsResponseContent$Outbound =
|
|
2320
1524
|
| string
|
|
2321
1525
|
| Array<
|
|
2322
|
-
|
|
|
1526
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2323
1527
|
| components.ImageContentPartSchema$Outbound
|
|
2324
1528
|
| components.AudioContentPartSchema$Outbound
|
|
2325
1529
|
| ListDatasetDatapoints24$Outbound
|
|
@@ -2333,12 +1537,16 @@ export const ListDatasetDatapointsMessagesDatasetsResponseContent$outboundSchema
|
|
|
2333
1537
|
ListDatasetDatapointsMessagesDatasetsResponseContent
|
|
2334
1538
|
> = z.union([
|
|
2335
1539
|
z.string(),
|
|
2336
|
-
z.array(
|
|
2337
|
-
z.
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
1540
|
+
z.array(
|
|
1541
|
+
z.union([
|
|
1542
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1543
|
+
z.object({ type: z.literal("text") }),
|
|
1544
|
+
),
|
|
1545
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1546
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1547
|
+
z.lazy(() => ListDatasetDatapoints24$outboundSchema),
|
|
1548
|
+
]),
|
|
1549
|
+
),
|
|
2342
1550
|
]);
|
|
2343
1551
|
|
|
2344
1552
|
export function listDatasetDatapointsMessagesDatasetsResponseContentToJSON(
|
|
@@ -2377,12 +1585,16 @@ export const ListDatasetDatapointsMessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
2377
1585
|
name: z.string().optional(),
|
|
2378
1586
|
content: z.union([
|
|
2379
1587
|
z.string(),
|
|
2380
|
-
z.array(
|
|
2381
|
-
z.
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
1588
|
+
z.array(
|
|
1589
|
+
z.union([
|
|
1590
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1591
|
+
z.object({ type: z.literal("text") }),
|
|
1592
|
+
),
|
|
1593
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1594
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1595
|
+
z.lazy(() => ListDatasetDatapoints24$inboundSchema),
|
|
1596
|
+
]),
|
|
1597
|
+
),
|
|
2386
1598
|
]),
|
|
2387
1599
|
});
|
|
2388
1600
|
/** @internal */
|
|
@@ -2392,7 +1604,7 @@ export type ListDatasetDatapointsMessagesUserMessage$Outbound = {
|
|
|
2392
1604
|
content:
|
|
2393
1605
|
| string
|
|
2394
1606
|
| Array<
|
|
2395
|
-
|
|
|
1607
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2396
1608
|
| components.ImageContentPartSchema$Outbound
|
|
2397
1609
|
| components.AudioContentPartSchema$Outbound
|
|
2398
1610
|
| ListDatasetDatapoints24$Outbound
|
|
@@ -2409,12 +1621,16 @@ export const ListDatasetDatapointsMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2409
1621
|
name: z.string().optional(),
|
|
2410
1622
|
content: z.union([
|
|
2411
1623
|
z.string(),
|
|
2412
|
-
z.array(
|
|
2413
|
-
z.
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
1624
|
+
z.array(
|
|
1625
|
+
z.union([
|
|
1626
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1627
|
+
z.object({ type: z.literal("text") }),
|
|
1628
|
+
),
|
|
1629
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1630
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1631
|
+
z.lazy(() => ListDatasetDatapoints24$outboundSchema),
|
|
1632
|
+
]),
|
|
1633
|
+
),
|
|
2418
1634
|
]),
|
|
2419
1635
|
});
|
|
2420
1636
|
|
|
@@ -2444,148 +1660,6 @@ export function listDatasetDatapointsMessagesUserMessageFromJSON(
|
|
|
2444
1660
|
);
|
|
2445
1661
|
}
|
|
2446
1662
|
|
|
2447
|
-
/** @internal */
|
|
2448
|
-
export const ListDatasetDatapointsContentDatasetsType$inboundSchema:
|
|
2449
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsType> = z
|
|
2450
|
-
.nativeEnum(ListDatasetDatapointsContentDatasetsType);
|
|
2451
|
-
/** @internal */
|
|
2452
|
-
export const ListDatasetDatapointsContentDatasetsType$outboundSchema:
|
|
2453
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsType> =
|
|
2454
|
-
ListDatasetDatapointsContentDatasetsType$inboundSchema;
|
|
2455
|
-
|
|
2456
|
-
/** @internal */
|
|
2457
|
-
export const ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema:
|
|
2458
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponse200Type> =
|
|
2459
|
-
z.nativeEnum(ListDatasetDatapointsContentDatasetsResponse200Type);
|
|
2460
|
-
/** @internal */
|
|
2461
|
-
export const ListDatasetDatapointsContentDatasetsResponse200Type$outboundSchema:
|
|
2462
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponse200Type> =
|
|
2463
|
-
ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema;
|
|
2464
|
-
|
|
2465
|
-
/** @internal */
|
|
2466
|
-
export const ListDatasetDatapointsContentDatasetsTtl$inboundSchema:
|
|
2467
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsTtl> = z
|
|
2468
|
-
.nativeEnum(ListDatasetDatapointsContentDatasetsTtl);
|
|
2469
|
-
/** @internal */
|
|
2470
|
-
export const ListDatasetDatapointsContentDatasetsTtl$outboundSchema:
|
|
2471
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsTtl> =
|
|
2472
|
-
ListDatasetDatapointsContentDatasetsTtl$inboundSchema;
|
|
2473
|
-
|
|
2474
|
-
/** @internal */
|
|
2475
|
-
export const ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema:
|
|
2476
|
-
z.ZodType<
|
|
2477
|
-
ListDatasetDatapointsContentDatasetsCacheControl,
|
|
2478
|
-
z.ZodTypeDef,
|
|
2479
|
-
unknown
|
|
2480
|
-
> = z.object({
|
|
2481
|
-
type: ListDatasetDatapointsContentDatasetsResponse200Type$inboundSchema,
|
|
2482
|
-
ttl: ListDatasetDatapointsContentDatasetsTtl$inboundSchema.default("5m"),
|
|
2483
|
-
});
|
|
2484
|
-
/** @internal */
|
|
2485
|
-
export type ListDatasetDatapointsContentDatasetsCacheControl$Outbound = {
|
|
2486
|
-
type: string;
|
|
2487
|
-
ttl: string;
|
|
2488
|
-
};
|
|
2489
|
-
|
|
2490
|
-
/** @internal */
|
|
2491
|
-
export const ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema:
|
|
2492
|
-
z.ZodType<
|
|
2493
|
-
ListDatasetDatapointsContentDatasetsCacheControl$Outbound,
|
|
2494
|
-
z.ZodTypeDef,
|
|
2495
|
-
ListDatasetDatapointsContentDatasetsCacheControl
|
|
2496
|
-
> = z.object({
|
|
2497
|
-
type: ListDatasetDatapointsContentDatasetsResponse200Type$outboundSchema,
|
|
2498
|
-
ttl: ListDatasetDatapointsContentDatasetsTtl$outboundSchema.default("5m"),
|
|
2499
|
-
});
|
|
2500
|
-
|
|
2501
|
-
export function listDatasetDatapointsContentDatasetsCacheControlToJSON(
|
|
2502
|
-
listDatasetDatapointsContentDatasetsCacheControl:
|
|
2503
|
-
ListDatasetDatapointsContentDatasetsCacheControl,
|
|
2504
|
-
): string {
|
|
2505
|
-
return JSON.stringify(
|
|
2506
|
-
ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema.parse(
|
|
2507
|
-
listDatasetDatapointsContentDatasetsCacheControl,
|
|
2508
|
-
),
|
|
2509
|
-
);
|
|
2510
|
-
}
|
|
2511
|
-
export function listDatasetDatapointsContentDatasetsCacheControlFromJSON(
|
|
2512
|
-
jsonString: string,
|
|
2513
|
-
): SafeParseResult<
|
|
2514
|
-
ListDatasetDatapointsContentDatasetsCacheControl,
|
|
2515
|
-
SDKValidationError
|
|
2516
|
-
> {
|
|
2517
|
-
return safeParse(
|
|
2518
|
-
jsonString,
|
|
2519
|
-
(x) =>
|
|
2520
|
-
ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema.parse(
|
|
2521
|
-
JSON.parse(x),
|
|
2522
|
-
),
|
|
2523
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasetsCacheControl' from JSON`,
|
|
2524
|
-
);
|
|
2525
|
-
}
|
|
2526
|
-
|
|
2527
|
-
/** @internal */
|
|
2528
|
-
export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
|
|
2529
|
-
ListDatasetDatapointsContentDatasets2,
|
|
2530
|
-
z.ZodTypeDef,
|
|
2531
|
-
unknown
|
|
2532
|
-
> = z.object({
|
|
2533
|
-
type: ListDatasetDatapointsContentDatasetsType$inboundSchema,
|
|
2534
|
-
text: z.string(),
|
|
2535
|
-
cache_control: z.lazy(() =>
|
|
2536
|
-
ListDatasetDatapointsContentDatasetsCacheControl$inboundSchema
|
|
2537
|
-
).optional(),
|
|
2538
|
-
}).transform((v) => {
|
|
2539
|
-
return remap$(v, {
|
|
2540
|
-
"cache_control": "cacheControl",
|
|
2541
|
-
});
|
|
2542
|
-
});
|
|
2543
|
-
/** @internal */
|
|
2544
|
-
export type ListDatasetDatapointsContentDatasets2$Outbound = {
|
|
2545
|
-
type: string;
|
|
2546
|
-
text: string;
|
|
2547
|
-
cache_control?:
|
|
2548
|
-
| ListDatasetDatapointsContentDatasetsCacheControl$Outbound
|
|
2549
|
-
| undefined;
|
|
2550
|
-
};
|
|
2551
|
-
|
|
2552
|
-
/** @internal */
|
|
2553
|
-
export const ListDatasetDatapointsContentDatasets2$outboundSchema: z.ZodType<
|
|
2554
|
-
ListDatasetDatapointsContentDatasets2$Outbound,
|
|
2555
|
-
z.ZodTypeDef,
|
|
2556
|
-
ListDatasetDatapointsContentDatasets2
|
|
2557
|
-
> = z.object({
|
|
2558
|
-
type: ListDatasetDatapointsContentDatasetsType$outboundSchema,
|
|
2559
|
-
text: z.string(),
|
|
2560
|
-
cacheControl: z.lazy(() =>
|
|
2561
|
-
ListDatasetDatapointsContentDatasetsCacheControl$outboundSchema
|
|
2562
|
-
).optional(),
|
|
2563
|
-
}).transform((v) => {
|
|
2564
|
-
return remap$(v, {
|
|
2565
|
-
cacheControl: "cache_control",
|
|
2566
|
-
});
|
|
2567
|
-
});
|
|
2568
|
-
|
|
2569
|
-
export function listDatasetDatapointsContentDatasets2ToJSON(
|
|
2570
|
-
listDatasetDatapointsContentDatasets2: ListDatasetDatapointsContentDatasets2,
|
|
2571
|
-
): string {
|
|
2572
|
-
return JSON.stringify(
|
|
2573
|
-
ListDatasetDatapointsContentDatasets2$outboundSchema.parse(
|
|
2574
|
-
listDatasetDatapointsContentDatasets2,
|
|
2575
|
-
),
|
|
2576
|
-
);
|
|
2577
|
-
}
|
|
2578
|
-
export function listDatasetDatapointsContentDatasets2FromJSON(
|
|
2579
|
-
jsonString: string,
|
|
2580
|
-
): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
|
|
2581
|
-
return safeParse(
|
|
2582
|
-
jsonString,
|
|
2583
|
-
(x) =>
|
|
2584
|
-
ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
2585
|
-
`Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
|
|
2586
|
-
);
|
|
2587
|
-
}
|
|
2588
|
-
|
|
2589
1663
|
/** @internal */
|
|
2590
1664
|
export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
|
|
2591
1665
|
z.ZodType<
|
|
@@ -2594,12 +1668,12 @@ export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
|
|
|
2594
1668
|
unknown
|
|
2595
1669
|
> = z.union([
|
|
2596
1670
|
z.string(),
|
|
2597
|
-
z.array(
|
|
1671
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2598
1672
|
]);
|
|
2599
1673
|
/** @internal */
|
|
2600
1674
|
export type ListDatasetDatapointsMessagesDatasetsContent$Outbound =
|
|
2601
1675
|
| string
|
|
2602
|
-
| Array<
|
|
1676
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
2603
1677
|
|
|
2604
1678
|
/** @internal */
|
|
2605
1679
|
export const ListDatasetDatapointsMessagesDatasetsContent$outboundSchema:
|
|
@@ -2609,7 +1683,7 @@ export const ListDatasetDatapointsMessagesDatasetsContent$outboundSchema:
|
|
|
2609
1683
|
ListDatasetDatapointsMessagesDatasetsContent
|
|
2610
1684
|
> = z.union([
|
|
2611
1685
|
z.string(),
|
|
2612
|
-
z.array(
|
|
1686
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2613
1687
|
]);
|
|
2614
1688
|
|
|
2615
1689
|
export function listDatasetDatapointsMessagesDatasetsContentToJSON(
|
|
@@ -2648,16 +1722,14 @@ export const ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema:
|
|
|
2648
1722
|
role: z.literal("developer"),
|
|
2649
1723
|
content: z.union([
|
|
2650
1724
|
z.string(),
|
|
2651
|
-
z.array(
|
|
2652
|
-
z.lazy(() => ListDatasetDatapointsContentDatasets2$inboundSchema),
|
|
2653
|
-
),
|
|
1725
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2654
1726
|
]),
|
|
2655
1727
|
name: z.string().optional(),
|
|
2656
1728
|
});
|
|
2657
1729
|
/** @internal */
|
|
2658
1730
|
export type ListDatasetDatapointsMessagesDeveloperMessage$Outbound = {
|
|
2659
1731
|
role: "developer";
|
|
2660
|
-
content: string | Array<
|
|
1732
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2661
1733
|
name?: string | undefined;
|
|
2662
1734
|
};
|
|
2663
1735
|
|
|
@@ -2671,9 +1743,7 @@ export const ListDatasetDatapointsMessagesDeveloperMessage$outboundSchema:
|
|
|
2671
1743
|
role: z.literal("developer"),
|
|
2672
1744
|
content: z.union([
|
|
2673
1745
|
z.string(),
|
|
2674
|
-
z.array(
|
|
2675
|
-
z.lazy(() => ListDatasetDatapointsContentDatasets2$outboundSchema),
|
|
2676
|
-
),
|
|
1746
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2677
1747
|
]),
|
|
2678
1748
|
name: z.string().optional(),
|
|
2679
1749
|
});
|
|
@@ -2704,143 +1774,6 @@ export function listDatasetDatapointsMessagesDeveloperMessageFromJSON(
|
|
|
2704
1774
|
);
|
|
2705
1775
|
}
|
|
2706
1776
|
|
|
2707
|
-
/** @internal */
|
|
2708
|
-
export const ListDatasetDatapointsContentType$inboundSchema: z.ZodNativeEnum<
|
|
2709
|
-
typeof ListDatasetDatapointsContentType
|
|
2710
|
-
> = z.nativeEnum(ListDatasetDatapointsContentType);
|
|
2711
|
-
/** @internal */
|
|
2712
|
-
export const ListDatasetDatapointsContentType$outboundSchema: z.ZodNativeEnum<
|
|
2713
|
-
typeof ListDatasetDatapointsContentType
|
|
2714
|
-
> = ListDatasetDatapointsContentType$inboundSchema;
|
|
2715
|
-
|
|
2716
|
-
/** @internal */
|
|
2717
|
-
export const ListDatasetDatapointsContentDatasetsResponseType$inboundSchema:
|
|
2718
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponseType> = z
|
|
2719
|
-
.nativeEnum(ListDatasetDatapointsContentDatasetsResponseType);
|
|
2720
|
-
/** @internal */
|
|
2721
|
-
export const ListDatasetDatapointsContentDatasetsResponseType$outboundSchema:
|
|
2722
|
-
z.ZodNativeEnum<typeof ListDatasetDatapointsContentDatasetsResponseType> =
|
|
2723
|
-
ListDatasetDatapointsContentDatasetsResponseType$inboundSchema;
|
|
2724
|
-
|
|
2725
|
-
/** @internal */
|
|
2726
|
-
export const ListDatasetDatapointsContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
2727
|
-
typeof ListDatasetDatapointsContentTtl
|
|
2728
|
-
> = z.nativeEnum(ListDatasetDatapointsContentTtl);
|
|
2729
|
-
/** @internal */
|
|
2730
|
-
export const ListDatasetDatapointsContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
2731
|
-
typeof ListDatasetDatapointsContentTtl
|
|
2732
|
-
> = ListDatasetDatapointsContentTtl$inboundSchema;
|
|
2733
|
-
|
|
2734
|
-
/** @internal */
|
|
2735
|
-
export const ListDatasetDatapointsContentCacheControl$inboundSchema: z.ZodType<
|
|
2736
|
-
ListDatasetDatapointsContentCacheControl,
|
|
2737
|
-
z.ZodTypeDef,
|
|
2738
|
-
unknown
|
|
2739
|
-
> = z.object({
|
|
2740
|
-
type: ListDatasetDatapointsContentDatasetsResponseType$inboundSchema,
|
|
2741
|
-
ttl: ListDatasetDatapointsContentTtl$inboundSchema.default("5m"),
|
|
2742
|
-
});
|
|
2743
|
-
/** @internal */
|
|
2744
|
-
export type ListDatasetDatapointsContentCacheControl$Outbound = {
|
|
2745
|
-
type: string;
|
|
2746
|
-
ttl: string;
|
|
2747
|
-
};
|
|
2748
|
-
|
|
2749
|
-
/** @internal */
|
|
2750
|
-
export const ListDatasetDatapointsContentCacheControl$outboundSchema: z.ZodType<
|
|
2751
|
-
ListDatasetDatapointsContentCacheControl$Outbound,
|
|
2752
|
-
z.ZodTypeDef,
|
|
2753
|
-
ListDatasetDatapointsContentCacheControl
|
|
2754
|
-
> = z.object({
|
|
2755
|
-
type: ListDatasetDatapointsContentDatasetsResponseType$outboundSchema,
|
|
2756
|
-
ttl: ListDatasetDatapointsContentTtl$outboundSchema.default("5m"),
|
|
2757
|
-
});
|
|
2758
|
-
|
|
2759
|
-
export function listDatasetDatapointsContentCacheControlToJSON(
|
|
2760
|
-
listDatasetDatapointsContentCacheControl:
|
|
2761
|
-
ListDatasetDatapointsContentCacheControl,
|
|
2762
|
-
): string {
|
|
2763
|
-
return JSON.stringify(
|
|
2764
|
-
ListDatasetDatapointsContentCacheControl$outboundSchema.parse(
|
|
2765
|
-
listDatasetDatapointsContentCacheControl,
|
|
2766
|
-
),
|
|
2767
|
-
);
|
|
2768
|
-
}
|
|
2769
|
-
export function listDatasetDatapointsContentCacheControlFromJSON(
|
|
2770
|
-
jsonString: string,
|
|
2771
|
-
): SafeParseResult<
|
|
2772
|
-
ListDatasetDatapointsContentCacheControl,
|
|
2773
|
-
SDKValidationError
|
|
2774
|
-
> {
|
|
2775
|
-
return safeParse(
|
|
2776
|
-
jsonString,
|
|
2777
|
-
(x) =>
|
|
2778
|
-
ListDatasetDatapointsContentCacheControl$inboundSchema.parse(
|
|
2779
|
-
JSON.parse(x),
|
|
2780
|
-
),
|
|
2781
|
-
`Failed to parse 'ListDatasetDatapointsContentCacheControl' from JSON`,
|
|
2782
|
-
);
|
|
2783
|
-
}
|
|
2784
|
-
|
|
2785
|
-
/** @internal */
|
|
2786
|
-
export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
|
|
2787
|
-
ListDatasetDatapointsContent2,
|
|
2788
|
-
z.ZodTypeDef,
|
|
2789
|
-
unknown
|
|
2790
|
-
> = z.object({
|
|
2791
|
-
type: ListDatasetDatapointsContentType$inboundSchema,
|
|
2792
|
-
text: z.string(),
|
|
2793
|
-
cache_control: z.lazy(() =>
|
|
2794
|
-
ListDatasetDatapointsContentCacheControl$inboundSchema
|
|
2795
|
-
).optional(),
|
|
2796
|
-
}).transform((v) => {
|
|
2797
|
-
return remap$(v, {
|
|
2798
|
-
"cache_control": "cacheControl",
|
|
2799
|
-
});
|
|
2800
|
-
});
|
|
2801
|
-
/** @internal */
|
|
2802
|
-
export type ListDatasetDatapointsContent2$Outbound = {
|
|
2803
|
-
type: string;
|
|
2804
|
-
text: string;
|
|
2805
|
-
cache_control?: ListDatasetDatapointsContentCacheControl$Outbound | undefined;
|
|
2806
|
-
};
|
|
2807
|
-
|
|
2808
|
-
/** @internal */
|
|
2809
|
-
export const ListDatasetDatapointsContent2$outboundSchema: z.ZodType<
|
|
2810
|
-
ListDatasetDatapointsContent2$Outbound,
|
|
2811
|
-
z.ZodTypeDef,
|
|
2812
|
-
ListDatasetDatapointsContent2
|
|
2813
|
-
> = z.object({
|
|
2814
|
-
type: ListDatasetDatapointsContentType$outboundSchema,
|
|
2815
|
-
text: z.string(),
|
|
2816
|
-
cacheControl: z.lazy(() =>
|
|
2817
|
-
ListDatasetDatapointsContentCacheControl$outboundSchema
|
|
2818
|
-
).optional(),
|
|
2819
|
-
}).transform((v) => {
|
|
2820
|
-
return remap$(v, {
|
|
2821
|
-
cacheControl: "cache_control",
|
|
2822
|
-
});
|
|
2823
|
-
});
|
|
2824
|
-
|
|
2825
|
-
export function listDatasetDatapointsContent2ToJSON(
|
|
2826
|
-
listDatasetDatapointsContent2: ListDatasetDatapointsContent2,
|
|
2827
|
-
): string {
|
|
2828
|
-
return JSON.stringify(
|
|
2829
|
-
ListDatasetDatapointsContent2$outboundSchema.parse(
|
|
2830
|
-
listDatasetDatapointsContent2,
|
|
2831
|
-
),
|
|
2832
|
-
);
|
|
2833
|
-
}
|
|
2834
|
-
export function listDatasetDatapointsContent2FromJSON(
|
|
2835
|
-
jsonString: string,
|
|
2836
|
-
): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
|
|
2837
|
-
return safeParse(
|
|
2838
|
-
jsonString,
|
|
2839
|
-
(x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2840
|
-
`Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
|
|
2841
|
-
);
|
|
2842
|
-
}
|
|
2843
|
-
|
|
2844
1777
|
/** @internal */
|
|
2845
1778
|
export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
|
|
2846
1779
|
ListDatasetDatapointsMessagesContent,
|
|
@@ -2848,12 +1781,12 @@ export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
|
|
|
2848
1781
|
unknown
|
|
2849
1782
|
> = z.union([
|
|
2850
1783
|
z.string(),
|
|
2851
|
-
z.array(
|
|
1784
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2852
1785
|
]);
|
|
2853
1786
|
/** @internal */
|
|
2854
1787
|
export type ListDatasetDatapointsMessagesContent$Outbound =
|
|
2855
1788
|
| string
|
|
2856
|
-
| Array<
|
|
1789
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
2857
1790
|
|
|
2858
1791
|
/** @internal */
|
|
2859
1792
|
export const ListDatasetDatapointsMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -2862,7 +1795,7 @@ export const ListDatasetDatapointsMessagesContent$outboundSchema: z.ZodType<
|
|
|
2862
1795
|
ListDatasetDatapointsMessagesContent
|
|
2863
1796
|
> = z.union([
|
|
2864
1797
|
z.string(),
|
|
2865
|
-
z.array(
|
|
1798
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2866
1799
|
]);
|
|
2867
1800
|
|
|
2868
1801
|
export function listDatasetDatapointsMessagesContentToJSON(
|
|
@@ -2892,14 +1825,14 @@ export const ListDatasetDatapointsMessagesSystemMessage$inboundSchema:
|
|
|
2892
1825
|
role: z.literal("system"),
|
|
2893
1826
|
content: z.union([
|
|
2894
1827
|
z.string(),
|
|
2895
|
-
z.array(
|
|
1828
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2896
1829
|
]),
|
|
2897
1830
|
name: z.string().optional(),
|
|
2898
1831
|
});
|
|
2899
1832
|
/** @internal */
|
|
2900
1833
|
export type ListDatasetDatapointsMessagesSystemMessage$Outbound = {
|
|
2901
1834
|
role: "system";
|
|
2902
|
-
content: string | Array<
|
|
1835
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2903
1836
|
name?: string | undefined;
|
|
2904
1837
|
};
|
|
2905
1838
|
|
|
@@ -2913,7 +1846,7 @@ export const ListDatasetDatapointsMessagesSystemMessage$outboundSchema:
|
|
|
2913
1846
|
role: z.literal("system"),
|
|
2914
1847
|
content: z.union([
|
|
2915
1848
|
z.string(),
|
|
2916
|
-
z.array(
|
|
1849
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2917
1850
|
]),
|
|
2918
1851
|
name: z.string().optional(),
|
|
2919
1852
|
});
|
|
@@ -3027,7 +1960,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
3027
1960
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
3028
1961
|
reviewed_by_id: z.string(),
|
|
3029
1962
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3030
|
-
"2025-12-
|
|
1963
|
+
"2025-12-10T05:41:06.426Z",
|
|
3031
1964
|
).transform(v => new Date(v)),
|
|
3032
1965
|
type: z.literal("string_array"),
|
|
3033
1966
|
values: z.array(z.string()),
|
|
@@ -3062,7 +1995,7 @@ export const ListDatasetDatapointsEvaluations3$outboundSchema: z.ZodType<
|
|
|
3062
1995
|
humanReviewId: z.string(),
|
|
3063
1996
|
source: ListDatasetDatapointsEvaluationsSource$outboundSchema.default("orq"),
|
|
3064
1997
|
reviewedById: z.string(),
|
|
3065
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
1998
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T05:41:06.426Z"))
|
|
3066
1999
|
.transform(v => v.toISOString()),
|
|
3067
2000
|
type: z.literal("string_array"),
|
|
3068
2001
|
values: z.array(z.string()),
|
|
@@ -3133,7 +2066,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
3133
2066
|
.default("orq"),
|
|
3134
2067
|
reviewed_by_id: z.string(),
|
|
3135
2068
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3136
|
-
"2025-12-
|
|
2069
|
+
"2025-12-10T05:41:06.426Z",
|
|
3137
2070
|
).transform(v => new Date(v)),
|
|
3138
2071
|
type: z.literal("number"),
|
|
3139
2072
|
value: z.number(),
|
|
@@ -3170,7 +2103,7 @@ export const ListDatasetDatapointsEvaluations2$outboundSchema: z.ZodType<
|
|
|
3170
2103
|
source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$outboundSchema
|
|
3171
2104
|
.default("orq"),
|
|
3172
2105
|
reviewedById: z.string(),
|
|
3173
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
2106
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T05:41:06.426Z"))
|
|
3174
2107
|
.transform(v => v.toISOString()),
|
|
3175
2108
|
type: z.literal("number"),
|
|
3176
2109
|
value: z.number(),
|
|
@@ -3237,7 +2170,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
3237
2170
|
),
|
|
3238
2171
|
reviewed_by_id: z.string(),
|
|
3239
2172
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
3240
|
-
"2025-12-
|
|
2173
|
+
"2025-12-10T05:41:06.425Z",
|
|
3241
2174
|
).transform(v => new Date(v)),
|
|
3242
2175
|
type: z.literal("string"),
|
|
3243
2176
|
value: z.string(),
|
|
@@ -3275,7 +2208,7 @@ export const ListDatasetDatapointsEvaluations1$outboundSchema: z.ZodType<
|
|
|
3275
2208
|
"orq",
|
|
3276
2209
|
),
|
|
3277
2210
|
reviewedById: z.string(),
|
|
3278
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
2211
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T05:41:06.425Z"))
|
|
3279
2212
|
.transform(v => v.toISOString()),
|
|
3280
2213
|
type: z.literal("string"),
|
|
3281
2214
|
value: z.string(),
|
|
@@ -3388,7 +2321,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
3388
2321
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
3389
2322
|
.optional(),
|
|
3390
2323
|
updated: z.string().datetime({ offset: true }).default(
|
|
3391
|
-
"2025-12-
|
|
2324
|
+
"2025-12-10T05:40:54.670Z",
|
|
3392
2325
|
).transform(v => new Date(v)),
|
|
3393
2326
|
}).transform((v) => {
|
|
3394
2327
|
return remap$(v, {
|
|
@@ -3466,7 +2399,7 @@ export const ListDatasetDatapointsData$outboundSchema: z.ZodType<
|
|
|
3466
2399
|
createdById: z.string().optional(),
|
|
3467
2400
|
updatedById: z.string().optional(),
|
|
3468
2401
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
3469
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
2402
|
+
updated: z.date().default(() => new Date("2025-12-10T05:40:54.670Z"))
|
|
3470
2403
|
.transform(v => v.toISOString()),
|
|
3471
2404
|
}).transform((v) => {
|
|
3472
2405
|
return remap$(v, {
|