@orq-ai/node 4.1.0-rc.34 → 4.1.0-rc.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +42 -18
- package/bin/mcp-server.js +4959 -5404
- package/bin/mcp-server.js.map +126 -82
- package/examples/package-lock.json +1 -1
- package/funcs/agentsResponsesCreate.d.ts +7 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +9 -2
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/budgetsCreate.d.ts +1 -1
- package/funcs/budgetsCreate.js +1 -1
- package/funcs/contactsList.js +1 -0
- package/funcs/contactsList.js.map +1 -1
- package/funcs/conversationsCreate.d.ts +17 -0
- package/funcs/conversationsCreate.d.ts.map +1 -0
- package/funcs/conversationsCreate.js +114 -0
- package/funcs/conversationsCreate.js.map +1 -0
- package/funcs/conversationsDelete.d.ts +17 -0
- package/funcs/conversationsDelete.d.ts.map +1 -0
- package/funcs/conversationsDelete.js +127 -0
- package/funcs/conversationsDelete.js.map +1 -0
- package/funcs/conversationsGenerateName.d.ts +18 -0
- package/funcs/conversationsGenerateName.d.ts.map +1 -0
- package/funcs/conversationsGenerateName.js +128 -0
- package/funcs/conversationsGenerateName.js.map +1 -0
- package/funcs/conversationsList.d.ts +17 -0
- package/funcs/conversationsList.d.ts.map +1 -0
- package/funcs/conversationsList.js +124 -0
- package/funcs/conversationsList.js.map +1 -0
- package/funcs/conversationsRetrieve.d.ts +18 -0
- package/funcs/conversationsRetrieve.d.ts.map +1 -0
- package/funcs/conversationsRetrieve.js +126 -0
- package/funcs/conversationsRetrieve.js.map +1 -0
- package/funcs/conversationsUpdate.d.ts +18 -0
- package/funcs/conversationsUpdate.d.ts.map +1 -0
- package/funcs/conversationsUpdate.js +128 -0
- package/funcs/conversationsUpdate.js.map +1 -0
- package/funcs/evalsInvoke.d.ts +15 -0
- package/funcs/evalsInvoke.d.ts.map +1 -0
- package/funcs/evalsInvoke.js +121 -0
- package/funcs/evalsInvoke.js.map +1 -0
- package/funcs/memoryStoresListDocuments.js +2 -0
- package/funcs/memoryStoresListDocuments.js.map +1 -1
- package/funcs/memoryStoresListMemories.js +1 -0
- package/funcs/memoryStoresListMemories.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +15 -1
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/budgetsCreate.js +1 -1
- package/mcp-server/tools/budgetsCreate.js.map +1 -1
- package/mcp-server/tools/conversationsCreate.d.ts +8 -0
- package/mcp-server/tools/conversationsCreate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsCreate.js +64 -0
- package/mcp-server/tools/conversationsCreate.js.map +1 -0
- package/mcp-server/tools/conversationsDelete.d.ts +8 -0
- package/mcp-server/tools/conversationsDelete.d.ts.map +1 -0
- package/mcp-server/tools/conversationsDelete.js +63 -0
- package/mcp-server/tools/conversationsDelete.js.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts +10 -0
- package/mcp-server/tools/conversationsGenerateName.d.ts.map +1 -0
- package/mcp-server/tools/conversationsGenerateName.js +66 -0
- package/mcp-server/tools/conversationsGenerateName.js.map +1 -0
- package/mcp-server/tools/conversationsList.d.ts +10 -0
- package/mcp-server/tools/conversationsList.d.ts.map +1 -0
- package/mcp-server/tools/conversationsList.js +66 -0
- package/mcp-server/tools/conversationsList.js.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts +8 -0
- package/mcp-server/tools/conversationsRetrieve.d.ts.map +1 -0
- package/mcp-server/tools/conversationsRetrieve.js +64 -0
- package/mcp-server/tools/conversationsRetrieve.js.map +1 -0
- package/mcp-server/tools/conversationsUpdate.d.ts +10 -0
- package/mcp-server/tools/conversationsUpdate.d.ts.map +1 -0
- package/mcp-server/tools/conversationsUpdate.js +66 -0
- package/mcp-server/tools/conversationsUpdate.js.map +1 -0
- package/mcp-server/tools/evalsInvoke.d.ts +8 -0
- package/mcp-server/tools/evalsInvoke.d.ts.map +1 -0
- package/mcp-server/tools/evalsInvoke.js +62 -0
- package/mcp-server/tools/evalsInvoke.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +8 -8
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentexecutionstartedstreamingevent.js +11 -12
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -1
- package/models/components/agentinactivestreamingevent.d.ts +21 -21
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -1
- package/models/components/agentinactivestreamingevent.js +27 -28
- package/models/components/agentinactivestreamingevent.js.map +1 -1
- package/models/components/agentresponsemessage.d.ts +56 -0
- package/models/components/agentresponsemessage.d.ts.map +1 -0
- package/models/components/agentresponsemessage.js +116 -0
- package/models/components/agentresponsemessage.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +6 -6
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +11 -12
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/agentthoughtstreamingevent.d.ts +26 -24
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +34 -32
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/conversationresponse.d.ts +39 -5
- package/models/components/conversationresponse.d.ts.map +1 -1
- package/models/components/conversationresponse.js +52 -8
- package/models/components/conversationresponse.js.map +1 -1
- package/models/components/createagentresponse.d.ts +124 -0
- package/models/components/createagentresponse.d.ts.map +1 -0
- package/models/components/createagentresponse.js +191 -0
- package/models/components/createagentresponse.js.map +1 -0
- package/models/components/imagecontentpartschema.d.ts +18 -18
- package/models/components/imagecontentpartschema.d.ts.map +1 -1
- package/models/components/imagecontentpartschema.js +23 -21
- package/models/components/imagecontentpartschema.js.map +1 -1
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +161 -1040
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +161 -1015
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/partdoneevent.js +2 -2
- package/models/components/reasoningpart.js +2 -2
- package/models/components/responsedoneevent.d.ts +24 -24
- package/models/components/responsedoneevent.d.ts.map +1 -1
- package/models/components/responsedoneevent.js +31 -32
- package/models/components/responsedoneevent.js.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfailedstreamingevent.js +2 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionfinishedstreamingevent.js +2 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.d.ts +2 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +2 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/errors/generateconversationname.d.ts +55 -0
- package/models/errors/generateconversationname.d.ts.map +1 -0
- package/models/errors/generateconversationname.js +106 -0
- package/models/errors/generateconversationname.js.map +1 -0
- package/models/errors/index.d.ts +5 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +5 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +3 -0
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +4 -4
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +37 -147
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +64 -205
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.d.ts +69 -13
- package/models/operations/createbudget.d.ts.map +1 -1
- package/models/operations/createbudget.js +61 -12
- package/models/operations/createbudget.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createconversation.d.ts +62 -8
- package/models/operations/createconversation.d.ts.map +1 -1
- package/models/operations/createconversation.js +94 -10
- package/models/operations/createconversation.js.map +1 -1
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.d.ts +154 -1034
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +149 -959
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/creatememory.d.ts +10 -5
- package/models/operations/creatememory.d.ts.map +1 -1
- package/models/operations/creatememory.js +6 -2
- package/models/operations/creatememory.js.map +1 -1
- package/models/operations/creatememorydocument.d.ts +4 -4
- package/models/operations/creatememorydocument.d.ts.map +1 -1
- package/models/operations/creatememorydocument.js +2 -2
- package/models/operations/creatememorydocument.js.map +1 -1
- package/models/operations/createprompt.d.ts +136 -479
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +158 -473
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/deploymentcreatemetric.d.ts +154 -1034
- package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
- package/models/operations/deploymentcreatemetric.js +140 -975
- package/models/operations/deploymentcreatemetric.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +222 -1102
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +263 -1059
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +27 -26
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +29 -28
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +14 -13
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +14 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +187 -1066
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +163 -989
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.d.ts +8 -8
- package/models/operations/fileupload.d.ts.map +1 -1
- package/models/operations/fileupload.js +13 -14
- package/models/operations/fileupload.js.map +1 -1
- package/models/operations/generateconversationname.d.ts +136 -0
- package/models/operations/generateconversationname.d.ts.map +1 -0
- package/models/operations/generateconversationname.js +179 -0
- package/models/operations/generateconversationname.js.map +1 -0
- package/models/operations/getallmemories.d.ts +10 -0
- package/models/operations/getallmemories.d.ts.map +1 -1
- package/models/operations/getallmemories.js +6 -0
- package/models/operations/getallmemories.js.map +1 -1
- package/models/operations/getallmemorydocuments.d.ts +10 -0
- package/models/operations/getallmemorydocuments.d.ts.map +1 -1
- package/models/operations/getallmemorydocuments.js +8 -0
- package/models/operations/getallmemorydocuments.js.map +1 -1
- package/models/operations/getallprompts.d.ts +14 -13
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +14 -13
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.d.ts +5 -0
- package/models/operations/getbudget.d.ts.map +1 -1
- package/models/operations/getbudget.js +6 -2
- package/models/operations/getbudget.js.map +1 -1
- package/models/operations/getevals.js +28 -28
- package/models/operations/getoneprompt.d.ts +14 -13
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +14 -13
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +14 -13
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +14 -13
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/index.d.ts +7 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +7 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +6 -6
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +10 -9
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listagents.d.ts +3 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +2 -2
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listbudgets.d.ts +5 -0
- package/models/operations/listbudgets.d.ts.map +1 -1
- package/models/operations/listbudgets.js +6 -2
- package/models/operations/listbudgets.js.map +1 -1
- package/models/operations/listcontacts.d.ts +5 -0
- package/models/operations/listcontacts.d.ts.map +1 -1
- package/models/operations/listcontacts.js +4 -2
- package/models/operations/listcontacts.js.map +1 -1
- package/models/operations/listconversations.d.ts +60 -0
- package/models/operations/listconversations.d.ts.map +1 -0
- package/models/operations/listconversations.js +109 -0
- package/models/operations/listconversations.js.map +1 -0
- package/models/operations/listdatasetdatapoints.d.ts +76 -516
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +75 -475
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listpromptversions.d.ts +14 -13
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +14 -13
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/retrieveagentrequest.d.ts +3 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +2 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrieveconversation.d.ts +39 -5
- package/models/operations/retrieveconversation.d.ts.map +1 -1
- package/models/operations/retrieveconversation.js +53 -8
- package/models/operations/retrieveconversation.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +76 -516
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +75 -473
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievememory.d.ts +5 -0
- package/models/operations/retrievememory.d.ts.map +1 -1
- package/models/operations/retrievememory.js +4 -0
- package/models/operations/retrievememory.js.map +1 -1
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.js +4 -4
- package/models/operations/streamrunagent.js +4 -4
- package/models/operations/updateagent.d.ts +3 -0
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +4 -4
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatebudget.d.ts +5 -0
- package/models/operations/updatebudget.d.ts.map +1 -1
- package/models/operations/updatebudget.js +6 -2
- package/models/operations/updatebudget.js.map +1 -1
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updateconversation.d.ts +63 -6
- package/models/operations/updateconversation.d.ts.map +1 -1
- package/models/operations/updateconversation.js +93 -9
- package/models/operations/updateconversation.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +154 -1034
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +147 -955
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatememory.d.ts +10 -5
- package/models/operations/updatememory.d.ts.map +1 -1
- package/models/operations/updatememory.js +6 -2
- package/models/operations/updatememory.js.map +1 -1
- package/models/operations/updatememorydocument.d.ts +4 -4
- package/models/operations/updatememorydocument.d.ts.map +1 -1
- package/models/operations/updatememorydocument.js +2 -2
- package/models/operations/updatememorydocument.js.map +1 -1
- package/models/operations/updatememorystore.d.ts +24 -59
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +27 -55
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +149 -486
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +156 -466
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/sdk/budgets.d.ts +1 -1
- package/sdk/budgets.js +1 -1
- package/sdk/conversations.d.ts +47 -0
- package/sdk/conversations.d.ts.map +1 -0
- package/sdk/conversations.js +72 -0
- package/sdk/conversations.js.map +1 -0
- package/sdk/evals.d.ts +4 -0
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +7 -0
- package/sdk/evals.js.map +1 -1
- package/sdk/responses.d.ts +5 -1
- package/sdk/responses.d.ts.map +1 -1
- package/sdk/responses.js +3 -1
- package/sdk/responses.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/agentsResponsesCreate.ts +14 -10
- package/src/funcs/budgetsCreate.ts +1 -1
- package/src/funcs/contactsList.ts +1 -0
- package/src/funcs/conversationsCreate.ts +161 -0
- package/src/funcs/conversationsDelete.ts +180 -0
- package/src/funcs/conversationsGenerateName.ts +194 -0
- package/src/funcs/conversationsList.ts +181 -0
- package/src/funcs/conversationsRetrieve.ts +180 -0
- package/src/funcs/conversationsUpdate.ts +184 -0
- package/src/funcs/evalsInvoke.ts +177 -0
- package/src/funcs/memoryStoresListDocuments.ts +2 -0
- package/src/funcs/memoryStoresListMemories.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +15 -1
- package/src/mcp-server/tools/budgetsCreate.ts +1 -1
- package/src/mcp-server/tools/conversationsCreate.ts +37 -0
- package/src/mcp-server/tools/conversationsDelete.ts +35 -0
- package/src/mcp-server/tools/conversationsGenerateName.ts +40 -0
- package/src/mcp-server/tools/conversationsList.ts +41 -0
- package/src/mcp-server/tools/conversationsRetrieve.ts +37 -0
- package/src/mcp-server/tools/conversationsUpdate.ts +40 -0
- package/src/mcp-server/tools/evalsInvoke.ts +35 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +53 -34
- package/src/models/components/agentinactivestreamingevent.ts +85 -57
- package/src/models/components/agentresponsemessage.ts +185 -0
- package/src/models/components/agentstartedstreamingevent.ts +30 -21
- package/src/models/components/agentthoughtstreamingevent.ts +167 -118
- package/src/models/components/conversationresponse.ts +100 -12
- package/src/models/components/createagentresponse.ts +340 -0
- package/src/models/components/imagecontentpartschema.ts +52 -37
- package/src/models/components/index.ts +18 -0
- package/src/models/components/invokedeploymentrequest.ts +515 -2564
- package/src/models/components/partdoneevent.ts +2 -2
- package/src/models/components/reasoningpart.ts +2 -2
- package/src/models/components/responsedoneevent.ts +93 -68
- package/src/models/components/toolexecutionfailedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +4 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +4 -0
- package/src/models/errors/generateconversationname.ts +132 -0
- package/src/models/errors/index.ts +5 -0
- package/src/models/operations/createagentrequest.ts +7 -4
- package/src/models/operations/createagentresponserequest.ts +126 -435
- package/src/models/operations/createbudget.ts +143 -28
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createconversation.ts +192 -17
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +601 -2786
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/creatememory.ts +14 -5
- package/src/models/operations/creatememorydocument.ts +4 -4
- package/src/models/operations/createprompt.ts +397 -1201
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/deploymentcreatemetric.ts +601 -3040
- package/src/models/operations/deploymentgetconfig.ts +824 -2901
- package/src/models/operations/deploymentinvoke.ts +47 -46
- package/src/models/operations/deployments.ts +16 -15
- package/src/models/operations/deploymentstream.ts +727 -2977
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +30 -27
- package/src/models/operations/generateconversationname.ts +341 -0
- package/src/models/operations/getallmemories.ts +16 -0
- package/src/models/operations/getallmemorydocuments.ts +22 -0
- package/src/models/operations/getallprompts.ts +16 -15
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +11 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/getoneprompt.ts +16 -15
- package/src/models/operations/getpromptversion.ts +16 -15
- package/src/models/operations/index.ts +7 -0
- package/src/models/operations/invokeagent.ts +19 -26
- package/src/models/operations/listagents.ts +5 -2
- package/src/models/operations/listbudgets.ts +11 -2
- package/src/models/operations/listcontacts.ts +9 -2
- package/src/models/operations/listconversations.ts +161 -0
- package/src/models/operations/listdatasetdatapoints.ts +288 -1355
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listpromptversions.ts +16 -15
- package/src/models/operations/retrieveagentrequest.ts +5 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrieveconversation.ts +107 -12
- package/src/models/operations/retrievedatapoint.ts +263 -1288
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievememory.ts +9 -0
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +4 -4
- package/src/models/operations/streamrunagent.ts +4 -4
- package/src/models/operations/updateagent.ts +7 -4
- package/src/models/operations/updatebudget.ts +11 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updateconversation.ts +192 -14
- package/src/models/operations/updatedatapoint.ts +556 -2717
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatememory.ts +14 -5
- package/src/models/operations/updatememorydocument.ts +4 -4
- package/src/models/operations/updatememorystore.ts +64 -154
- package/src/models/operations/updateprompt.ts +385 -1144
- package/src/models/operations/updatetool.ts +14 -14
- package/src/sdk/budgets.ts +1 -1
- package/src/sdk/conversations.ts +125 -0
- package/src/sdk/evals.ts +15 -0
- package/src/sdk/responses.ts +8 -3
- package/src/sdk/sdk.ts +6 -0
|
@@ -10,89 +10,15 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
|
|
15
|
-
} as const;
|
|
16
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type =
|
|
17
|
-
ClosedEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type>;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
21
|
-
*/
|
|
22
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType = {
|
|
23
|
-
Ephemeral: "ephemeral",
|
|
24
|
-
} as const;
|
|
25
|
-
/**
|
|
26
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
27
|
-
*/
|
|
28
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType =
|
|
29
|
-
ClosedEnum<
|
|
30
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
|
|
31
|
-
>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
35
|
-
*
|
|
36
|
-
* @remarks
|
|
37
|
-
*
|
|
38
|
-
* - `5m`: 5 minutes
|
|
39
|
-
* - `1h`: 1 hour
|
|
40
|
-
*
|
|
41
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
42
|
-
*/
|
|
43
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyTtl = {
|
|
44
|
-
Fivem: "5m",
|
|
45
|
-
Oneh: "1h",
|
|
46
|
-
} as const;
|
|
47
|
-
/**
|
|
48
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
49
|
-
*
|
|
50
|
-
* @remarks
|
|
51
|
-
*
|
|
52
|
-
* - `5m`: 5 minutes
|
|
53
|
-
* - `1h`: 1 hour
|
|
54
|
-
*
|
|
55
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
56
|
-
*/
|
|
57
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyTtl = ClosedEnum<
|
|
58
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl
|
|
59
|
-
>;
|
|
60
|
-
|
|
61
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyCacheControl = {
|
|
62
|
-
/**
|
|
63
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
64
|
-
*/
|
|
65
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType;
|
|
66
|
-
/**
|
|
67
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
68
|
-
*
|
|
69
|
-
* @remarks
|
|
70
|
-
*
|
|
71
|
-
* - `5m`: 5 minutes
|
|
72
|
-
* - `1h`: 1 hour
|
|
73
|
-
*
|
|
74
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
75
|
-
*/
|
|
76
|
-
ttl?: UpdateDatapoint2DatasetsRequestRequestBodyTtl | undefined;
|
|
77
|
-
};
|
|
78
|
-
|
|
79
|
-
export type UpdateDatapoint2DatasetsRequest1 = {
|
|
80
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type;
|
|
81
|
-
text: string;
|
|
82
|
-
cacheControl?:
|
|
83
|
-
| UpdateDatapoint2DatasetsRequestRequestBodyCacheControl
|
|
84
|
-
| undefined;
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
export type UpdateDatapointContentDatasetsRequestRequestBodyMessages2 =
|
|
88
|
-
UpdateDatapoint2DatasetsRequest1;
|
|
13
|
+
export type UpdateDatapointContentDatasetsRequest2 =
|
|
14
|
+
components.TextContentPartSchema;
|
|
89
15
|
|
|
90
16
|
/**
|
|
91
17
|
* The contents of the tool message.
|
|
92
18
|
*/
|
|
93
19
|
export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content =
|
|
94
20
|
| string
|
|
95
|
-
| Array<
|
|
21
|
+
| Array<components.TextContentPartSchema>;
|
|
96
22
|
|
|
97
23
|
/**
|
|
98
24
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -161,7 +87,7 @@ export type UpdateDatapointMessagesToolMessage = {
|
|
|
161
87
|
/**
|
|
162
88
|
* The contents of the tool message.
|
|
163
89
|
*/
|
|
164
|
-
content: string | Array<
|
|
90
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
165
91
|
/**
|
|
166
92
|
* Tool call that this message is responding to.
|
|
167
93
|
*/
|
|
@@ -169,72 +95,8 @@ export type UpdateDatapointMessagesToolMessage = {
|
|
|
169
95
|
cacheControl?: UpdateDatapointMessagesCacheControl | undefined;
|
|
170
96
|
};
|
|
171
97
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
*/
|
|
175
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type = {
|
|
176
|
-
Ephemeral: "ephemeral",
|
|
177
|
-
} as const;
|
|
178
|
-
/**
|
|
179
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
180
|
-
*/
|
|
181
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type =
|
|
182
|
-
ClosedEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type>;
|
|
183
|
-
|
|
184
|
-
/**
|
|
185
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
186
|
-
*
|
|
187
|
-
* @remarks
|
|
188
|
-
*
|
|
189
|
-
* - `5m`: 5 minutes
|
|
190
|
-
* - `1h`: 1 hour
|
|
191
|
-
*
|
|
192
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
193
|
-
*/
|
|
194
|
-
export const UpdateDatapoint2DatasetsRequestTtl = {
|
|
195
|
-
Fivem: "5m",
|
|
196
|
-
Oneh: "1h",
|
|
197
|
-
} as const;
|
|
198
|
-
/**
|
|
199
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
200
|
-
*
|
|
201
|
-
* @remarks
|
|
202
|
-
*
|
|
203
|
-
* - `5m`: 5 minutes
|
|
204
|
-
* - `1h`: 1 hour
|
|
205
|
-
*
|
|
206
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
207
|
-
*/
|
|
208
|
-
export type UpdateDatapoint2DatasetsRequestTtl = ClosedEnum<
|
|
209
|
-
typeof UpdateDatapoint2DatasetsRequestTtl
|
|
210
|
-
>;
|
|
211
|
-
|
|
212
|
-
export type UpdateDatapoint2DatasetsRequestCacheControl = {
|
|
213
|
-
/**
|
|
214
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
215
|
-
*/
|
|
216
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyMessages4Type;
|
|
217
|
-
/**
|
|
218
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
219
|
-
*
|
|
220
|
-
* @remarks
|
|
221
|
-
*
|
|
222
|
-
* - `5m`: 5 minutes
|
|
223
|
-
* - `1h`: 1 hour
|
|
224
|
-
*
|
|
225
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
226
|
-
*/
|
|
227
|
-
ttl?: UpdateDatapoint2DatasetsRequestTtl | undefined;
|
|
228
|
-
};
|
|
229
|
-
|
|
230
|
-
export type UpdateDatapoint2Datasets1 = {
|
|
231
|
-
type: "text";
|
|
232
|
-
text: string;
|
|
233
|
-
cacheControl?: UpdateDatapoint2DatasetsRequestCacheControl | undefined;
|
|
234
|
-
};
|
|
235
|
-
|
|
236
|
-
export type UpdateDatapointContentDatasetsRequestRequestBody2 =
|
|
237
|
-
| UpdateDatapoint2Datasets1
|
|
98
|
+
export type UpdateDatapointContentDatasets2 =
|
|
99
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
238
100
|
| components.RefusalPartSchema
|
|
239
101
|
| components.ReasoningPartSchema
|
|
240
102
|
| components.RedactedReasoningPartSchema;
|
|
@@ -245,7 +107,7 @@ export type UpdateDatapointContentDatasetsRequestRequestBody2 =
|
|
|
245
107
|
export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent =
|
|
246
108
|
| string
|
|
247
109
|
| Array<
|
|
248
|
-
|
|
|
110
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
249
111
|
| components.RefusalPartSchema
|
|
250
112
|
| components.ReasoningPartSchema
|
|
251
113
|
| components.RedactedReasoningPartSchema
|
|
@@ -308,7 +170,7 @@ export type UpdateDatapointMessagesAssistantMessage = {
|
|
|
308
170
|
content?:
|
|
309
171
|
| string
|
|
310
172
|
| Array<
|
|
311
|
-
|
|
|
173
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
312
174
|
| components.RefusalPartSchema
|
|
313
175
|
| components.ReasoningPartSchema
|
|
314
176
|
| components.RedactedReasoningPartSchema
|
|
@@ -337,77 +199,6 @@ export type UpdateDatapointMessagesAssistantMessage = {
|
|
|
337
199
|
toolCalls?: Array<UpdateDatapointMessagesToolCalls> | undefined;
|
|
338
200
|
};
|
|
339
201
|
|
|
340
|
-
/**
|
|
341
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
342
|
-
*/
|
|
343
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyType = {
|
|
344
|
-
Ephemeral: "ephemeral",
|
|
345
|
-
} as const;
|
|
346
|
-
/**
|
|
347
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
348
|
-
*/
|
|
349
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyType = ClosedEnum<
|
|
350
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyType
|
|
351
|
-
>;
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
355
|
-
*
|
|
356
|
-
* @remarks
|
|
357
|
-
*
|
|
358
|
-
* - `5m`: 5 minutes
|
|
359
|
-
* - `1h`: 1 hour
|
|
360
|
-
*
|
|
361
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
362
|
-
*/
|
|
363
|
-
export const UpdateDatapoint2DatasetsTtl = {
|
|
364
|
-
Fivem: "5m",
|
|
365
|
-
Oneh: "1h",
|
|
366
|
-
} as const;
|
|
367
|
-
/**
|
|
368
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
369
|
-
*
|
|
370
|
-
* @remarks
|
|
371
|
-
*
|
|
372
|
-
* - `5m`: 5 minutes
|
|
373
|
-
* - `1h`: 1 hour
|
|
374
|
-
*
|
|
375
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
376
|
-
*/
|
|
377
|
-
export type UpdateDatapoint2DatasetsTtl = ClosedEnum<
|
|
378
|
-
typeof UpdateDatapoint2DatasetsTtl
|
|
379
|
-
>;
|
|
380
|
-
|
|
381
|
-
export type UpdateDatapoint2DatasetsCacheControl = {
|
|
382
|
-
/**
|
|
383
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
384
|
-
*/
|
|
385
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyType;
|
|
386
|
-
/**
|
|
387
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
388
|
-
*
|
|
389
|
-
* @remarks
|
|
390
|
-
*
|
|
391
|
-
* - `5m`: 5 minutes
|
|
392
|
-
* - `1h`: 1 hour
|
|
393
|
-
*
|
|
394
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
395
|
-
*/
|
|
396
|
-
ttl?: UpdateDatapoint2DatasetsTtl | undefined;
|
|
397
|
-
};
|
|
398
|
-
|
|
399
|
-
export type UpdateDatapoint24 = {
|
|
400
|
-
/**
|
|
401
|
-
* The type of the content part. Always `file`.
|
|
402
|
-
*/
|
|
403
|
-
type: "file";
|
|
404
|
-
cacheControl?: UpdateDatapoint2DatasetsCacheControl | undefined;
|
|
405
|
-
/**
|
|
406
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
407
|
-
*/
|
|
408
|
-
file: components.FileContentPartSchema;
|
|
409
|
-
};
|
|
410
|
-
|
|
411
202
|
/**
|
|
412
203
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
413
204
|
*/
|
|
@@ -465,14 +256,20 @@ export type UpdateDatapoint2CacheControl = {
|
|
|
465
256
|
ttl?: UpdateDatapoint2Ttl | undefined;
|
|
466
257
|
};
|
|
467
258
|
|
|
468
|
-
export type
|
|
469
|
-
|
|
470
|
-
|
|
259
|
+
export type UpdateDatapoint24 = {
|
|
260
|
+
/**
|
|
261
|
+
* The type of the content part. Always `file`.
|
|
262
|
+
*/
|
|
263
|
+
type: "file";
|
|
471
264
|
cacheControl?: UpdateDatapoint2CacheControl | undefined;
|
|
265
|
+
/**
|
|
266
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
267
|
+
*/
|
|
268
|
+
file: components.FileContentPartSchema;
|
|
472
269
|
};
|
|
473
270
|
|
|
474
|
-
export type
|
|
475
|
-
|
|
|
271
|
+
export type UpdateDatapointContent2 =
|
|
272
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
476
273
|
| components.ImageContentPartSchema
|
|
477
274
|
| components.AudioContentPartSchema
|
|
478
275
|
| UpdateDatapoint24;
|
|
@@ -483,7 +280,7 @@ export type UpdateDatapointContentDatasetsRequest2 =
|
|
|
483
280
|
export type UpdateDatapointMessagesDatasetsRequestContent =
|
|
484
281
|
| string
|
|
485
282
|
| Array<
|
|
486
|
-
|
|
|
283
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
487
284
|
| components.ImageContentPartSchema
|
|
488
285
|
| components.AudioContentPartSchema
|
|
489
286
|
| UpdateDatapoint24
|
|
@@ -504,91 +301,19 @@ export type UpdateDatapointMessagesUserMessage = {
|
|
|
504
301
|
content:
|
|
505
302
|
| string
|
|
506
303
|
| Array<
|
|
507
|
-
|
|
|
304
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
508
305
|
| components.ImageContentPartSchema
|
|
509
306
|
| components.AudioContentPartSchema
|
|
510
307
|
| UpdateDatapoint24
|
|
511
308
|
>;
|
|
512
309
|
};
|
|
513
310
|
|
|
514
|
-
export const UpdateDatapointContentDatasetsRequestType = {
|
|
515
|
-
Text: "text",
|
|
516
|
-
} as const;
|
|
517
|
-
export type UpdateDatapointContentDatasetsRequestType = ClosedEnum<
|
|
518
|
-
typeof UpdateDatapointContentDatasetsRequestType
|
|
519
|
-
>;
|
|
520
|
-
|
|
521
|
-
/**
|
|
522
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
523
|
-
*/
|
|
524
|
-
export const UpdateDatapointContentDatasetsRequestRequestBodyType = {
|
|
525
|
-
Ephemeral: "ephemeral",
|
|
526
|
-
} as const;
|
|
527
|
-
/**
|
|
528
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
529
|
-
*/
|
|
530
|
-
export type UpdateDatapointContentDatasetsRequestRequestBodyType = ClosedEnum<
|
|
531
|
-
typeof UpdateDatapointContentDatasetsRequestRequestBodyType
|
|
532
|
-
>;
|
|
533
|
-
|
|
534
|
-
/**
|
|
535
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
536
|
-
*
|
|
537
|
-
* @remarks
|
|
538
|
-
*
|
|
539
|
-
* - `5m`: 5 minutes
|
|
540
|
-
* - `1h`: 1 hour
|
|
541
|
-
*
|
|
542
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
543
|
-
*/
|
|
544
|
-
export const UpdateDatapointContentDatasetsTtl = {
|
|
545
|
-
Fivem: "5m",
|
|
546
|
-
Oneh: "1h",
|
|
547
|
-
} as const;
|
|
548
|
-
/**
|
|
549
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
550
|
-
*
|
|
551
|
-
* @remarks
|
|
552
|
-
*
|
|
553
|
-
* - `5m`: 5 minutes
|
|
554
|
-
* - `1h`: 1 hour
|
|
555
|
-
*
|
|
556
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
557
|
-
*/
|
|
558
|
-
export type UpdateDatapointContentDatasetsTtl = ClosedEnum<
|
|
559
|
-
typeof UpdateDatapointContentDatasetsTtl
|
|
560
|
-
>;
|
|
561
|
-
|
|
562
|
-
export type UpdateDatapointContentDatasetsCacheControl = {
|
|
563
|
-
/**
|
|
564
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
565
|
-
*/
|
|
566
|
-
type: UpdateDatapointContentDatasetsRequestRequestBodyType;
|
|
567
|
-
/**
|
|
568
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
569
|
-
*
|
|
570
|
-
* @remarks
|
|
571
|
-
*
|
|
572
|
-
* - `5m`: 5 minutes
|
|
573
|
-
* - `1h`: 1 hour
|
|
574
|
-
*
|
|
575
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
576
|
-
*/
|
|
577
|
-
ttl?: UpdateDatapointContentDatasetsTtl | undefined;
|
|
578
|
-
};
|
|
579
|
-
|
|
580
|
-
export type UpdateDatapointContentDatasets2 = {
|
|
581
|
-
type: UpdateDatapointContentDatasetsRequestType;
|
|
582
|
-
text: string;
|
|
583
|
-
cacheControl?: UpdateDatapointContentDatasetsCacheControl | undefined;
|
|
584
|
-
};
|
|
585
|
-
|
|
586
311
|
/**
|
|
587
312
|
* The contents of the developer message.
|
|
588
313
|
*/
|
|
589
314
|
export type UpdateDatapointMessagesDatasetsContent =
|
|
590
315
|
| string
|
|
591
|
-
| Array<
|
|
316
|
+
| Array<components.TextContentPartSchema>;
|
|
592
317
|
|
|
593
318
|
export type UpdateDatapointMessagesDeveloperMessage = {
|
|
594
319
|
/**
|
|
@@ -598,91 +323,19 @@ export type UpdateDatapointMessagesDeveloperMessage = {
|
|
|
598
323
|
/**
|
|
599
324
|
* The contents of the developer message.
|
|
600
325
|
*/
|
|
601
|
-
content: string | Array<
|
|
326
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
602
327
|
/**
|
|
603
328
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
604
329
|
*/
|
|
605
330
|
name?: string | undefined;
|
|
606
331
|
};
|
|
607
332
|
|
|
608
|
-
export const UpdateDatapointContentType = {
|
|
609
|
-
Text: "text",
|
|
610
|
-
} as const;
|
|
611
|
-
export type UpdateDatapointContentType = ClosedEnum<
|
|
612
|
-
typeof UpdateDatapointContentType
|
|
613
|
-
>;
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
617
|
-
*/
|
|
618
|
-
export const UpdateDatapointContentDatasetsType = {
|
|
619
|
-
Ephemeral: "ephemeral",
|
|
620
|
-
} as const;
|
|
621
333
|
/**
|
|
622
|
-
*
|
|
334
|
+
* The contents of the system message.
|
|
623
335
|
*/
|
|
624
|
-
export type
|
|
625
|
-
|
|
626
|
-
>;
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
630
|
-
*
|
|
631
|
-
* @remarks
|
|
632
|
-
*
|
|
633
|
-
* - `5m`: 5 minutes
|
|
634
|
-
* - `1h`: 1 hour
|
|
635
|
-
*
|
|
636
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
637
|
-
*/
|
|
638
|
-
export const UpdateDatapointContentTtl = {
|
|
639
|
-
Fivem: "5m",
|
|
640
|
-
Oneh: "1h",
|
|
641
|
-
} as const;
|
|
642
|
-
/**
|
|
643
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
644
|
-
*
|
|
645
|
-
* @remarks
|
|
646
|
-
*
|
|
647
|
-
* - `5m`: 5 minutes
|
|
648
|
-
* - `1h`: 1 hour
|
|
649
|
-
*
|
|
650
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
651
|
-
*/
|
|
652
|
-
export type UpdateDatapointContentTtl = ClosedEnum<
|
|
653
|
-
typeof UpdateDatapointContentTtl
|
|
654
|
-
>;
|
|
655
|
-
|
|
656
|
-
export type UpdateDatapointContentCacheControl = {
|
|
657
|
-
/**
|
|
658
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
659
|
-
*/
|
|
660
|
-
type: UpdateDatapointContentDatasetsType;
|
|
661
|
-
/**
|
|
662
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
663
|
-
*
|
|
664
|
-
* @remarks
|
|
665
|
-
*
|
|
666
|
-
* - `5m`: 5 minutes
|
|
667
|
-
* - `1h`: 1 hour
|
|
668
|
-
*
|
|
669
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
670
|
-
*/
|
|
671
|
-
ttl?: UpdateDatapointContentTtl | undefined;
|
|
672
|
-
};
|
|
673
|
-
|
|
674
|
-
export type UpdateDatapointContent2 = {
|
|
675
|
-
type: UpdateDatapointContentType;
|
|
676
|
-
text: string;
|
|
677
|
-
cacheControl?: UpdateDatapointContentCacheControl | undefined;
|
|
678
|
-
};
|
|
679
|
-
|
|
680
|
-
/**
|
|
681
|
-
* The contents of the system message.
|
|
682
|
-
*/
|
|
683
|
-
export type UpdateDatapointMessagesContent =
|
|
684
|
-
| string
|
|
685
|
-
| Array<UpdateDatapointContent2>;
|
|
336
|
+
export type UpdateDatapointMessagesContent =
|
|
337
|
+
| string
|
|
338
|
+
| Array<components.TextContentPartSchema>;
|
|
686
339
|
|
|
687
340
|
/**
|
|
688
341
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -695,7 +348,7 @@ export type UpdateDatapointMessagesSystemMessage = {
|
|
|
695
348
|
/**
|
|
696
349
|
* The contents of the system message.
|
|
697
350
|
*/
|
|
698
|
-
content: string | Array<
|
|
351
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
699
352
|
/**
|
|
700
353
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
701
354
|
*/
|
|
@@ -741,99 +394,15 @@ export type UpdateDatapointRequest = {
|
|
|
741
394
|
requestBody?: UpdateDatapointRequestBody | undefined;
|
|
742
395
|
};
|
|
743
396
|
|
|
744
|
-
export
|
|
745
|
-
|
|
746
|
-
Text: "text",
|
|
747
|
-
} as const;
|
|
748
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType =
|
|
749
|
-
ClosedEnum<
|
|
750
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
751
|
-
>;
|
|
752
|
-
|
|
753
|
-
/**
|
|
754
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
755
|
-
*/
|
|
756
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type =
|
|
757
|
-
{
|
|
758
|
-
Ephemeral: "ephemeral",
|
|
759
|
-
} as const;
|
|
760
|
-
/**
|
|
761
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
762
|
-
*/
|
|
763
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type =
|
|
764
|
-
ClosedEnum<
|
|
765
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
|
|
766
|
-
>;
|
|
767
|
-
|
|
768
|
-
/**
|
|
769
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
770
|
-
*
|
|
771
|
-
* @remarks
|
|
772
|
-
*
|
|
773
|
-
* - `5m`: 5 minutes
|
|
774
|
-
* - `1h`: 1 hour
|
|
775
|
-
*
|
|
776
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
777
|
-
*/
|
|
778
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl =
|
|
779
|
-
{
|
|
780
|
-
Fivem: "5m",
|
|
781
|
-
Oneh: "1h",
|
|
782
|
-
} as const;
|
|
783
|
-
/**
|
|
784
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
785
|
-
*
|
|
786
|
-
* @remarks
|
|
787
|
-
*
|
|
788
|
-
* - `5m`: 5 minutes
|
|
789
|
-
* - `1h`: 1 hour
|
|
790
|
-
*
|
|
791
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
792
|
-
*/
|
|
793
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl =
|
|
794
|
-
ClosedEnum<
|
|
795
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
|
|
796
|
-
>;
|
|
797
|
-
|
|
798
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl =
|
|
799
|
-
{
|
|
800
|
-
/**
|
|
801
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
802
|
-
*/
|
|
803
|
-
type:
|
|
804
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type;
|
|
805
|
-
/**
|
|
806
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
807
|
-
*
|
|
808
|
-
* @remarks
|
|
809
|
-
*
|
|
810
|
-
* - `5m`: 5 minutes
|
|
811
|
-
* - `1h`: 1 hour
|
|
812
|
-
*
|
|
813
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
814
|
-
*/
|
|
815
|
-
ttl?:
|
|
816
|
-
| UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
|
|
817
|
-
| undefined;
|
|
818
|
-
};
|
|
819
|
-
|
|
820
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJson1 = {
|
|
821
|
-
type: UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType;
|
|
822
|
-
text: string;
|
|
823
|
-
cacheControl?:
|
|
824
|
-
| UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl
|
|
825
|
-
| undefined;
|
|
826
|
-
};
|
|
827
|
-
|
|
828
|
-
export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2 =
|
|
829
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1;
|
|
397
|
+
export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
|
|
398
|
+
components.TextContentPartSchema;
|
|
830
399
|
|
|
831
400
|
/**
|
|
832
401
|
* The contents of the tool message.
|
|
833
402
|
*/
|
|
834
403
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content =
|
|
835
404
|
| string
|
|
836
|
-
| Array<
|
|
405
|
+
| Array<components.TextContentPartSchema>;
|
|
837
406
|
|
|
838
407
|
/**
|
|
839
408
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -902,7 +471,7 @@ export type UpdateDatapointMessagesDatasetsToolMessage = {
|
|
|
902
471
|
/**
|
|
903
472
|
* The contents of the tool message.
|
|
904
473
|
*/
|
|
905
|
-
content: string | Array<
|
|
474
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
906
475
|
/**
|
|
907
476
|
* Tool call that this message is responding to.
|
|
908
477
|
*/
|
|
@@ -910,78 +479,8 @@ export type UpdateDatapointMessagesDatasetsToolMessage = {
|
|
|
910
479
|
cacheControl?: UpdateDatapointMessagesDatasetsCacheControl | undefined;
|
|
911
480
|
};
|
|
912
481
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
*/
|
|
916
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type =
|
|
917
|
-
{
|
|
918
|
-
Ephemeral: "ephemeral",
|
|
919
|
-
} as const;
|
|
920
|
-
/**
|
|
921
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
922
|
-
*/
|
|
923
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type =
|
|
924
|
-
ClosedEnum<
|
|
925
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
|
|
926
|
-
>;
|
|
927
|
-
|
|
928
|
-
/**
|
|
929
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
930
|
-
*
|
|
931
|
-
* @remarks
|
|
932
|
-
*
|
|
933
|
-
* - `5m`: 5 minutes
|
|
934
|
-
* - `1h`: 1 hour
|
|
935
|
-
*
|
|
936
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
937
|
-
*/
|
|
938
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl = {
|
|
939
|
-
Fivem: "5m",
|
|
940
|
-
Oneh: "1h",
|
|
941
|
-
} as const;
|
|
942
|
-
/**
|
|
943
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
944
|
-
*
|
|
945
|
-
* @remarks
|
|
946
|
-
*
|
|
947
|
-
* - `5m`: 5 minutes
|
|
948
|
-
* - `1h`: 1 hour
|
|
949
|
-
*
|
|
950
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
951
|
-
*/
|
|
952
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl = ClosedEnum<
|
|
953
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
|
|
954
|
-
>;
|
|
955
|
-
|
|
956
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl = {
|
|
957
|
-
/**
|
|
958
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
959
|
-
*/
|
|
960
|
-
type:
|
|
961
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type;
|
|
962
|
-
/**
|
|
963
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
964
|
-
*
|
|
965
|
-
* @remarks
|
|
966
|
-
*
|
|
967
|
-
* - `5m`: 5 minutes
|
|
968
|
-
* - `1h`: 1 hour
|
|
969
|
-
*
|
|
970
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
971
|
-
*/
|
|
972
|
-
ttl?: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl | undefined;
|
|
973
|
-
};
|
|
974
|
-
|
|
975
|
-
export type UpdateDatapoint2DatasetsResponse2001 = {
|
|
976
|
-
type: "text";
|
|
977
|
-
text: string;
|
|
978
|
-
cacheControl?:
|
|
979
|
-
| UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl
|
|
980
|
-
| undefined;
|
|
981
|
-
};
|
|
982
|
-
|
|
983
|
-
export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody2 =
|
|
984
|
-
| UpdateDatapoint2DatasetsResponse2001
|
|
482
|
+
export type UpdateDatapointContentDatasetsResponse2002 =
|
|
483
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
985
484
|
| components.RefusalPartSchema
|
|
986
485
|
| components.ReasoningPartSchema
|
|
987
486
|
| components.RedactedReasoningPartSchema;
|
|
@@ -992,7 +491,7 @@ export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBody
|
|
|
992
491
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent =
|
|
993
492
|
| string
|
|
994
493
|
| Array<
|
|
995
|
-
|
|
|
494
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
996
495
|
| components.RefusalPartSchema
|
|
997
496
|
| components.ReasoningPartSchema
|
|
998
497
|
| components.RedactedReasoningPartSchema
|
|
@@ -1055,7 +554,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
|
|
|
1055
554
|
content?:
|
|
1056
555
|
| string
|
|
1057
556
|
| Array<
|
|
1058
|
-
|
|
|
557
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1059
558
|
| components.RefusalPartSchema
|
|
1060
559
|
| components.ReasoningPartSchema
|
|
1061
560
|
| components.RedactedReasoningPartSchema
|
|
@@ -1087,17 +586,15 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage = {
|
|
|
1087
586
|
/**
|
|
1088
587
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1089
588
|
*/
|
|
1090
|
-
export const
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
} as const;
|
|
589
|
+
export const UpdateDatapoint2DatasetsResponse200Type = {
|
|
590
|
+
Ephemeral: "ephemeral",
|
|
591
|
+
} as const;
|
|
1094
592
|
/**
|
|
1095
593
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1096
594
|
*/
|
|
1097
|
-
export type
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
>;
|
|
595
|
+
export type UpdateDatapoint2DatasetsResponse200Type = ClosedEnum<
|
|
596
|
+
typeof UpdateDatapoint2DatasetsResponse200Type
|
|
597
|
+
>;
|
|
1101
598
|
|
|
1102
599
|
/**
|
|
1103
600
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -1109,7 +606,7 @@ export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessag
|
|
|
1109
606
|
*
|
|
1110
607
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1111
608
|
*/
|
|
1112
|
-
export const
|
|
609
|
+
export const UpdateDatapoint2DatasetsTtl = {
|
|
1113
610
|
Fivem: "5m",
|
|
1114
611
|
Oneh: "1h",
|
|
1115
612
|
} as const;
|
|
@@ -1123,16 +620,15 @@ export const UpdateDatapoint2DatasetsResponse200Ttl = {
|
|
|
1123
620
|
*
|
|
1124
621
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1125
622
|
*/
|
|
1126
|
-
export type
|
|
1127
|
-
typeof
|
|
623
|
+
export type UpdateDatapoint2DatasetsTtl = ClosedEnum<
|
|
624
|
+
typeof UpdateDatapoint2DatasetsTtl
|
|
1128
625
|
>;
|
|
1129
626
|
|
|
1130
|
-
export type
|
|
627
|
+
export type UpdateDatapoint2DatasetsCacheControl = {
|
|
1131
628
|
/**
|
|
1132
629
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1133
630
|
*/
|
|
1134
|
-
type:
|
|
1135
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type;
|
|
631
|
+
type: UpdateDatapoint2DatasetsResponse200Type;
|
|
1136
632
|
/**
|
|
1137
633
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1138
634
|
*
|
|
@@ -1143,7 +639,7 @@ export type UpdateDatapoint2DatasetsResponse200CacheControl = {
|
|
|
1143
639
|
*
|
|
1144
640
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1145
641
|
*/
|
|
1146
|
-
ttl?:
|
|
642
|
+
ttl?: UpdateDatapoint2DatasetsTtl | undefined;
|
|
1147
643
|
};
|
|
1148
644
|
|
|
1149
645
|
export type UpdateDatapoint2Datasets4 = {
|
|
@@ -1151,83 +647,15 @@ export type UpdateDatapoint2Datasets4 = {
|
|
|
1151
647
|
* The type of the content part. Always `file`.
|
|
1152
648
|
*/
|
|
1153
649
|
type: "file";
|
|
1154
|
-
cacheControl?:
|
|
650
|
+
cacheControl?: UpdateDatapoint2DatasetsCacheControl | undefined;
|
|
1155
651
|
/**
|
|
1156
652
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
1157
653
|
*/
|
|
1158
654
|
file: components.FileContentPartSchema;
|
|
1159
655
|
};
|
|
1160
656
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
*/
|
|
1164
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType =
|
|
1165
|
-
{
|
|
1166
|
-
Ephemeral: "ephemeral",
|
|
1167
|
-
} as const;
|
|
1168
|
-
/**
|
|
1169
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1170
|
-
*/
|
|
1171
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType =
|
|
1172
|
-
ClosedEnum<
|
|
1173
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
|
|
1174
|
-
>;
|
|
1175
|
-
|
|
1176
|
-
/**
|
|
1177
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1178
|
-
*
|
|
1179
|
-
* @remarks
|
|
1180
|
-
*
|
|
1181
|
-
* - `5m`: 5 minutes
|
|
1182
|
-
* - `1h`: 1 hour
|
|
1183
|
-
*
|
|
1184
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1185
|
-
*/
|
|
1186
|
-
export const UpdateDatapoint2DatasetsResponseTtl = {
|
|
1187
|
-
Fivem: "5m",
|
|
1188
|
-
Oneh: "1h",
|
|
1189
|
-
} as const;
|
|
1190
|
-
/**
|
|
1191
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1192
|
-
*
|
|
1193
|
-
* @remarks
|
|
1194
|
-
*
|
|
1195
|
-
* - `5m`: 5 minutes
|
|
1196
|
-
* - `1h`: 1 hour
|
|
1197
|
-
*
|
|
1198
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1199
|
-
*/
|
|
1200
|
-
export type UpdateDatapoint2DatasetsResponseTtl = ClosedEnum<
|
|
1201
|
-
typeof UpdateDatapoint2DatasetsResponseTtl
|
|
1202
|
-
>;
|
|
1203
|
-
|
|
1204
|
-
export type UpdateDatapoint2DatasetsResponseCacheControl = {
|
|
1205
|
-
/**
|
|
1206
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1207
|
-
*/
|
|
1208
|
-
type:
|
|
1209
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType;
|
|
1210
|
-
/**
|
|
1211
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1212
|
-
*
|
|
1213
|
-
* @remarks
|
|
1214
|
-
*
|
|
1215
|
-
* - `5m`: 5 minutes
|
|
1216
|
-
* - `1h`: 1 hour
|
|
1217
|
-
*
|
|
1218
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1219
|
-
*/
|
|
1220
|
-
ttl?: UpdateDatapoint2DatasetsResponseTtl | undefined;
|
|
1221
|
-
};
|
|
1222
|
-
|
|
1223
|
-
export type UpdateDatapoint2DatasetsResponse1 = {
|
|
1224
|
-
type: "text";
|
|
1225
|
-
text: string;
|
|
1226
|
-
cacheControl?: UpdateDatapoint2DatasetsResponseCacheControl | undefined;
|
|
1227
|
-
};
|
|
1228
|
-
|
|
1229
|
-
export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
|
|
1230
|
-
| UpdateDatapoint2DatasetsResponse1
|
|
657
|
+
export type UpdateDatapointContentDatasetsResponse2 =
|
|
658
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1231
659
|
| components.ImageContentPartSchema
|
|
1232
660
|
| components.AudioContentPartSchema
|
|
1233
661
|
| UpdateDatapoint2Datasets4;
|
|
@@ -1238,7 +666,7 @@ export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
|
|
|
1238
666
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent =
|
|
1239
667
|
| string
|
|
1240
668
|
| Array<
|
|
1241
|
-
|
|
|
669
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1242
670
|
| components.ImageContentPartSchema
|
|
1243
671
|
| components.AudioContentPartSchema
|
|
1244
672
|
| UpdateDatapoint2Datasets4
|
|
@@ -1259,96 +687,19 @@ export type UpdateDatapointMessagesDatasetsUserMessage = {
|
|
|
1259
687
|
content:
|
|
1260
688
|
| string
|
|
1261
689
|
| Array<
|
|
1262
|
-
|
|
|
690
|
+
| (components.TextContentPartSchema & { type: "text" })
|
|
1263
691
|
| components.ImageContentPartSchema
|
|
1264
692
|
| components.AudioContentPartSchema
|
|
1265
693
|
| UpdateDatapoint2Datasets4
|
|
1266
694
|
>;
|
|
1267
695
|
};
|
|
1268
696
|
|
|
1269
|
-
export const UpdateDatapointContentDatasetsResponse200Type = {
|
|
1270
|
-
Text: "text",
|
|
1271
|
-
} as const;
|
|
1272
|
-
export type UpdateDatapointContentDatasetsResponse200Type = ClosedEnum<
|
|
1273
|
-
typeof UpdateDatapointContentDatasetsResponse200Type
|
|
1274
|
-
>;
|
|
1275
|
-
|
|
1276
|
-
/**
|
|
1277
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1278
|
-
*/
|
|
1279
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType =
|
|
1280
|
-
{
|
|
1281
|
-
Ephemeral: "ephemeral",
|
|
1282
|
-
} as const;
|
|
1283
|
-
/**
|
|
1284
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1285
|
-
*/
|
|
1286
|
-
export type UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType =
|
|
1287
|
-
ClosedEnum<
|
|
1288
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
|
|
1289
|
-
>;
|
|
1290
|
-
|
|
1291
|
-
/**
|
|
1292
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1293
|
-
*
|
|
1294
|
-
* @remarks
|
|
1295
|
-
*
|
|
1296
|
-
* - `5m`: 5 minutes
|
|
1297
|
-
* - `1h`: 1 hour
|
|
1298
|
-
*
|
|
1299
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1300
|
-
*/
|
|
1301
|
-
export const UpdateDatapointContentDatasetsResponse200Ttl = {
|
|
1302
|
-
Fivem: "5m",
|
|
1303
|
-
Oneh: "1h",
|
|
1304
|
-
} as const;
|
|
1305
|
-
/**
|
|
1306
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1307
|
-
*
|
|
1308
|
-
* @remarks
|
|
1309
|
-
*
|
|
1310
|
-
* - `5m`: 5 minutes
|
|
1311
|
-
* - `1h`: 1 hour
|
|
1312
|
-
*
|
|
1313
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1314
|
-
*/
|
|
1315
|
-
export type UpdateDatapointContentDatasetsResponse200Ttl = ClosedEnum<
|
|
1316
|
-
typeof UpdateDatapointContentDatasetsResponse200Ttl
|
|
1317
|
-
>;
|
|
1318
|
-
|
|
1319
|
-
export type UpdateDatapointContentDatasetsResponse200CacheControl = {
|
|
1320
|
-
/**
|
|
1321
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1322
|
-
*/
|
|
1323
|
-
type:
|
|
1324
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType;
|
|
1325
|
-
/**
|
|
1326
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1327
|
-
*
|
|
1328
|
-
* @remarks
|
|
1329
|
-
*
|
|
1330
|
-
* - `5m`: 5 minutes
|
|
1331
|
-
* - `1h`: 1 hour
|
|
1332
|
-
*
|
|
1333
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1334
|
-
*/
|
|
1335
|
-
ttl?: UpdateDatapointContentDatasetsResponse200Ttl | undefined;
|
|
1336
|
-
};
|
|
1337
|
-
|
|
1338
|
-
export type UpdateDatapointContentDatasetsResponse2002 = {
|
|
1339
|
-
type: UpdateDatapointContentDatasetsResponse200Type;
|
|
1340
|
-
text: string;
|
|
1341
|
-
cacheControl?:
|
|
1342
|
-
| UpdateDatapointContentDatasetsResponse200CacheControl
|
|
1343
|
-
| undefined;
|
|
1344
|
-
};
|
|
1345
|
-
|
|
1346
697
|
/**
|
|
1347
698
|
* The contents of the developer message.
|
|
1348
699
|
*/
|
|
1349
700
|
export type UpdateDatapointMessagesDatasetsResponse200Content =
|
|
1350
701
|
| string
|
|
1351
|
-
| Array<
|
|
702
|
+
| Array<components.TextContentPartSchema>;
|
|
1352
703
|
|
|
1353
704
|
export type UpdateDatapointMessagesDatasetsDeveloperMessage = {
|
|
1354
705
|
/**
|
|
@@ -1358,93 +709,20 @@ export type UpdateDatapointMessagesDatasetsDeveloperMessage = {
|
|
|
1358
709
|
/**
|
|
1359
710
|
* The contents of the developer message.
|
|
1360
711
|
*/
|
|
1361
|
-
content: string | Array<
|
|
712
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
1362
713
|
/**
|
|
1363
714
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1364
715
|
*/
|
|
1365
716
|
name?: string | undefined;
|
|
1366
717
|
};
|
|
1367
718
|
|
|
1368
|
-
export const UpdateDatapointContentDatasetsResponseType = {
|
|
1369
|
-
Text: "text",
|
|
1370
|
-
} as const;
|
|
1371
|
-
export type UpdateDatapointContentDatasetsResponseType = ClosedEnum<
|
|
1372
|
-
typeof UpdateDatapointContentDatasetsResponseType
|
|
1373
|
-
>;
|
|
1374
|
-
|
|
1375
719
|
/**
|
|
1376
|
-
*
|
|
720
|
+
* The contents of the system message.
|
|
1377
721
|
*/
|
|
1378
|
-
export
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1383
|
-
*/
|
|
1384
|
-
export type UpdateDatapointContentDatasetsResponse200ApplicationJSONType =
|
|
1385
|
-
ClosedEnum<
|
|
1386
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
|
|
1387
|
-
>;
|
|
1388
|
-
|
|
1389
|
-
/**
|
|
1390
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1391
|
-
*
|
|
1392
|
-
* @remarks
|
|
1393
|
-
*
|
|
1394
|
-
* - `5m`: 5 minutes
|
|
1395
|
-
* - `1h`: 1 hour
|
|
1396
|
-
*
|
|
1397
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1398
|
-
*/
|
|
1399
|
-
export const UpdateDatapointContentDatasetsResponseTtl = {
|
|
1400
|
-
Fivem: "5m",
|
|
1401
|
-
Oneh: "1h",
|
|
1402
|
-
} as const;
|
|
1403
|
-
/**
|
|
1404
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1405
|
-
*
|
|
1406
|
-
* @remarks
|
|
1407
|
-
*
|
|
1408
|
-
* - `5m`: 5 minutes
|
|
1409
|
-
* - `1h`: 1 hour
|
|
1410
|
-
*
|
|
1411
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1412
|
-
*/
|
|
1413
|
-
export type UpdateDatapointContentDatasetsResponseTtl = ClosedEnum<
|
|
1414
|
-
typeof UpdateDatapointContentDatasetsResponseTtl
|
|
1415
|
-
>;
|
|
1416
|
-
|
|
1417
|
-
export type UpdateDatapointContentDatasetsResponseCacheControl = {
|
|
1418
|
-
/**
|
|
1419
|
-
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1420
|
-
*/
|
|
1421
|
-
type: UpdateDatapointContentDatasetsResponse200ApplicationJSONType;
|
|
1422
|
-
/**
|
|
1423
|
-
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1424
|
-
*
|
|
1425
|
-
* @remarks
|
|
1426
|
-
*
|
|
1427
|
-
* - `5m`: 5 minutes
|
|
1428
|
-
* - `1h`: 1 hour
|
|
1429
|
-
*
|
|
1430
|
-
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1431
|
-
*/
|
|
1432
|
-
ttl?: UpdateDatapointContentDatasetsResponseTtl | undefined;
|
|
1433
|
-
};
|
|
1434
|
-
|
|
1435
|
-
export type UpdateDatapointContentDatasetsResponse2 = {
|
|
1436
|
-
type: UpdateDatapointContentDatasetsResponseType;
|
|
1437
|
-
text: string;
|
|
1438
|
-
cacheControl?: UpdateDatapointContentDatasetsResponseCacheControl | undefined;
|
|
1439
|
-
};
|
|
1440
|
-
|
|
1441
|
-
/**
|
|
1442
|
-
* The contents of the system message.
|
|
1443
|
-
*/
|
|
1444
|
-
export type UpdateDatapointMessagesDatasetsResponseContent =
|
|
1445
|
-
| string
|
|
1446
|
-
| Array<UpdateDatapointContentDatasetsResponse2>;
|
|
1447
|
-
|
|
722
|
+
export type UpdateDatapointMessagesDatasetsResponseContent =
|
|
723
|
+
| string
|
|
724
|
+
| Array<components.TextContentPartSchema>;
|
|
725
|
+
|
|
1448
726
|
/**
|
|
1449
727
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
1450
728
|
*/
|
|
@@ -1456,7 +734,7 @@ export type UpdateDatapointMessagesDatasetsSystemMessage = {
|
|
|
1456
734
|
/**
|
|
1457
735
|
* The contents of the system message.
|
|
1458
736
|
*/
|
|
1459
|
-
content: string | Array<
|
|
737
|
+
content: string | Array<components.TextContentPartSchema>;
|
|
1460
738
|
/**
|
|
1461
739
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1462
740
|
*/
|
|
@@ -1681,198 +959,40 @@ export type UpdateDatapointResponseBody = {
|
|
|
1681
959
|
};
|
|
1682
960
|
|
|
1683
961
|
/** @internal */
|
|
1684
|
-
export const
|
|
1685
|
-
|
|
1686
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type
|
|
1687
|
-
> = z.nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type);
|
|
1688
|
-
/** @internal */
|
|
1689
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$outboundSchema:
|
|
1690
|
-
z.ZodNativeEnum<
|
|
1691
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type
|
|
1692
|
-
> = UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$inboundSchema;
|
|
1693
|
-
|
|
1694
|
-
/** @internal */
|
|
1695
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema:
|
|
1696
|
-
z.ZodNativeEnum<
|
|
1697
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
|
|
1698
|
-
> = z.nativeEnum(
|
|
1699
|
-
UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType,
|
|
1700
|
-
);
|
|
1701
|
-
/** @internal */
|
|
1702
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$outboundSchema:
|
|
1703
|
-
z.ZodNativeEnum<
|
|
1704
|
-
typeof UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType
|
|
1705
|
-
> =
|
|
1706
|
-
UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema;
|
|
1707
|
-
|
|
1708
|
-
/** @internal */
|
|
1709
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema:
|
|
1710
|
-
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl> = z
|
|
1711
|
-
.nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyTtl);
|
|
1712
|
-
/** @internal */
|
|
1713
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyTtl$outboundSchema:
|
|
1714
|
-
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyTtl> =
|
|
1715
|
-
UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema;
|
|
1716
|
-
|
|
1717
|
-
/** @internal */
|
|
1718
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema:
|
|
1719
|
-
z.ZodType<
|
|
1720
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
|
|
1721
|
-
z.ZodTypeDef,
|
|
1722
|
-
unknown
|
|
1723
|
-
> = z.object({
|
|
1724
|
-
type:
|
|
1725
|
-
UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$inboundSchema,
|
|
1726
|
-
ttl: UpdateDatapoint2DatasetsRequestRequestBodyTtl$inboundSchema.default(
|
|
1727
|
-
"5m",
|
|
1728
|
-
),
|
|
1729
|
-
});
|
|
1730
|
-
/** @internal */
|
|
1731
|
-
export type UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound = {
|
|
1732
|
-
type: string;
|
|
1733
|
-
ttl: string;
|
|
1734
|
-
};
|
|
1735
|
-
|
|
1736
|
-
/** @internal */
|
|
1737
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema:
|
|
1738
|
-
z.ZodType<
|
|
1739
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound,
|
|
1740
|
-
z.ZodTypeDef,
|
|
1741
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl
|
|
1742
|
-
> = z.object({
|
|
1743
|
-
type:
|
|
1744
|
-
UpdateDatapoint2DatasetsRequestRequestBodyMessages5ContentType$outboundSchema,
|
|
1745
|
-
ttl: UpdateDatapoint2DatasetsRequestRequestBodyTtl$outboundSchema.default(
|
|
1746
|
-
"5m",
|
|
1747
|
-
),
|
|
1748
|
-
});
|
|
1749
|
-
|
|
1750
|
-
export function updateDatapoint2DatasetsRequestRequestBodyCacheControlToJSON(
|
|
1751
|
-
updateDatapoint2DatasetsRequestRequestBodyCacheControl:
|
|
1752
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
|
|
1753
|
-
): string {
|
|
1754
|
-
return JSON.stringify(
|
|
1755
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema.parse(
|
|
1756
|
-
updateDatapoint2DatasetsRequestRequestBodyCacheControl,
|
|
1757
|
-
),
|
|
1758
|
-
);
|
|
1759
|
-
}
|
|
1760
|
-
export function updateDatapoint2DatasetsRequestRequestBodyCacheControlFromJSON(
|
|
1761
|
-
jsonString: string,
|
|
1762
|
-
): SafeParseResult<
|
|
1763
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl,
|
|
1764
|
-
SDKValidationError
|
|
1765
|
-
> {
|
|
1766
|
-
return safeParse(
|
|
1767
|
-
jsonString,
|
|
1768
|
-
(x) =>
|
|
1769
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema
|
|
1770
|
-
.parse(JSON.parse(x)),
|
|
1771
|
-
`Failed to parse 'UpdateDatapoint2DatasetsRequestRequestBodyCacheControl' from JSON`,
|
|
1772
|
-
);
|
|
1773
|
-
}
|
|
1774
|
-
|
|
1775
|
-
/** @internal */
|
|
1776
|
-
export const UpdateDatapoint2DatasetsRequest1$inboundSchema: z.ZodType<
|
|
1777
|
-
UpdateDatapoint2DatasetsRequest1,
|
|
962
|
+
export const UpdateDatapointContentDatasetsRequest2$inboundSchema: z.ZodType<
|
|
963
|
+
UpdateDatapointContentDatasetsRequest2,
|
|
1778
964
|
z.ZodTypeDef,
|
|
1779
965
|
unknown
|
|
1780
|
-
> =
|
|
1781
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$inboundSchema,
|
|
1782
|
-
text: z.string(),
|
|
1783
|
-
cache_control: z.lazy(() =>
|
|
1784
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$inboundSchema
|
|
1785
|
-
).optional(),
|
|
1786
|
-
}).transform((v) => {
|
|
1787
|
-
return remap$(v, {
|
|
1788
|
-
"cache_control": "cacheControl",
|
|
1789
|
-
});
|
|
1790
|
-
});
|
|
966
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
1791
967
|
/** @internal */
|
|
1792
|
-
export type
|
|
1793
|
-
|
|
1794
|
-
text: string;
|
|
1795
|
-
cache_control?:
|
|
1796
|
-
| UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$Outbound
|
|
1797
|
-
| undefined;
|
|
1798
|
-
};
|
|
968
|
+
export type UpdateDatapointContentDatasetsRequest2$Outbound =
|
|
969
|
+
components.TextContentPartSchema$Outbound;
|
|
1799
970
|
|
|
1800
971
|
/** @internal */
|
|
1801
|
-
export const
|
|
1802
|
-
|
|
972
|
+
export const UpdateDatapointContentDatasetsRequest2$outboundSchema: z.ZodType<
|
|
973
|
+
UpdateDatapointContentDatasetsRequest2$Outbound,
|
|
1803
974
|
z.ZodTypeDef,
|
|
1804
|
-
|
|
1805
|
-
> =
|
|
1806
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyMessages5Type$outboundSchema,
|
|
1807
|
-
text: z.string(),
|
|
1808
|
-
cacheControl: z.lazy(() =>
|
|
1809
|
-
UpdateDatapoint2DatasetsRequestRequestBodyCacheControl$outboundSchema
|
|
1810
|
-
).optional(),
|
|
1811
|
-
}).transform((v) => {
|
|
1812
|
-
return remap$(v, {
|
|
1813
|
-
cacheControl: "cache_control",
|
|
1814
|
-
});
|
|
1815
|
-
});
|
|
975
|
+
UpdateDatapointContentDatasetsRequest2
|
|
976
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
1816
977
|
|
|
1817
|
-
export function
|
|
1818
|
-
|
|
978
|
+
export function updateDatapointContentDatasetsRequest2ToJSON(
|
|
979
|
+
updateDatapointContentDatasetsRequest2:
|
|
980
|
+
UpdateDatapointContentDatasetsRequest2,
|
|
1819
981
|
): string {
|
|
1820
982
|
return JSON.stringify(
|
|
1821
|
-
|
|
1822
|
-
|
|
983
|
+
UpdateDatapointContentDatasetsRequest2$outboundSchema.parse(
|
|
984
|
+
updateDatapointContentDatasetsRequest2,
|
|
1823
985
|
),
|
|
1824
986
|
);
|
|
1825
987
|
}
|
|
1826
|
-
export function
|
|
1827
|
-
jsonString: string,
|
|
1828
|
-
): SafeParseResult<UpdateDatapoint2DatasetsRequest1, SDKValidationError> {
|
|
1829
|
-
return safeParse(
|
|
1830
|
-
jsonString,
|
|
1831
|
-
(x) => UpdateDatapoint2DatasetsRequest1$inboundSchema.parse(JSON.parse(x)),
|
|
1832
|
-
`Failed to parse 'UpdateDatapoint2DatasetsRequest1' from JSON`,
|
|
1833
|
-
);
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
/** @internal */
|
|
1837
|
-
export const UpdateDatapointContentDatasetsRequestRequestBodyMessages2$inboundSchema:
|
|
1838
|
-
z.ZodType<
|
|
1839
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
|
|
1840
|
-
z.ZodTypeDef,
|
|
1841
|
-
unknown
|
|
1842
|
-
> = z.lazy(() => UpdateDatapoint2DatasetsRequest1$inboundSchema);
|
|
1843
|
-
/** @internal */
|
|
1844
|
-
export type UpdateDatapointContentDatasetsRequestRequestBodyMessages2$Outbound =
|
|
1845
|
-
UpdateDatapoint2DatasetsRequest1$Outbound;
|
|
1846
|
-
|
|
1847
|
-
/** @internal */
|
|
1848
|
-
export const UpdateDatapointContentDatasetsRequestRequestBodyMessages2$outboundSchema:
|
|
1849
|
-
z.ZodType<
|
|
1850
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2$Outbound,
|
|
1851
|
-
z.ZodTypeDef,
|
|
1852
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2
|
|
1853
|
-
> = z.lazy(() => UpdateDatapoint2DatasetsRequest1$outboundSchema);
|
|
1854
|
-
|
|
1855
|
-
export function updateDatapointContentDatasetsRequestRequestBodyMessages2ToJSON(
|
|
1856
|
-
updateDatapointContentDatasetsRequestRequestBodyMessages2:
|
|
1857
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
|
|
1858
|
-
): string {
|
|
1859
|
-
return JSON.stringify(
|
|
1860
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2$outboundSchema
|
|
1861
|
-
.parse(updateDatapointContentDatasetsRequestRequestBodyMessages2),
|
|
1862
|
-
);
|
|
1863
|
-
}
|
|
1864
|
-
export function updateDatapointContentDatasetsRequestRequestBodyMessages2FromJSON(
|
|
988
|
+
export function updateDatapointContentDatasetsRequest2FromJSON(
|
|
1865
989
|
jsonString: string,
|
|
1866
|
-
): SafeParseResult<
|
|
1867
|
-
UpdateDatapointContentDatasetsRequestRequestBodyMessages2,
|
|
1868
|
-
SDKValidationError
|
|
1869
|
-
> {
|
|
990
|
+
): SafeParseResult<UpdateDatapointContentDatasetsRequest2, SDKValidationError> {
|
|
1870
991
|
return safeParse(
|
|
1871
992
|
jsonString,
|
|
1872
993
|
(x) =>
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
`Failed to parse 'UpdateDatapointContentDatasetsRequestRequestBodyMessages2' from JSON`,
|
|
994
|
+
UpdateDatapointContentDatasetsRequest2$inboundSchema.parse(JSON.parse(x)),
|
|
995
|
+
`Failed to parse 'UpdateDatapointContentDatasetsRequest2' from JSON`,
|
|
1876
996
|
);
|
|
1877
997
|
}
|
|
1878
998
|
|
|
@@ -1884,12 +1004,12 @@ export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$inboundSc
|
|
|
1884
1004
|
unknown
|
|
1885
1005
|
> = z.union([
|
|
1886
1006
|
z.string(),
|
|
1887
|
-
z.array(
|
|
1007
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
1888
1008
|
]);
|
|
1889
1009
|
/** @internal */
|
|
1890
1010
|
export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound =
|
|
1891
1011
|
| string
|
|
1892
|
-
| Array<
|
|
1012
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
1893
1013
|
|
|
1894
1014
|
/** @internal */
|
|
1895
1015
|
export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema:
|
|
@@ -1899,7 +1019,7 @@ export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundS
|
|
|
1899
1019
|
UpdateDatapointMessagesDatasetsRequestRequestBody5Content
|
|
1900
1020
|
> = z.union([
|
|
1901
1021
|
z.string(),
|
|
1902
|
-
z.array(
|
|
1022
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1903
1023
|
]);
|
|
1904
1024
|
|
|
1905
1025
|
export function updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON(
|
|
@@ -1998,7 +1118,7 @@ export const UpdateDatapointMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1998
1118
|
role: z.literal("tool"),
|
|
1999
1119
|
content: z.union([
|
|
2000
1120
|
z.string(),
|
|
2001
|
-
z.array(
|
|
1121
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2002
1122
|
]),
|
|
2003
1123
|
tool_call_id: z.string(),
|
|
2004
1124
|
cache_control: z.lazy(() => UpdateDatapointMessagesCacheControl$inboundSchema)
|
|
@@ -2012,7 +1132,7 @@ export const UpdateDatapointMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2012
1132
|
/** @internal */
|
|
2013
1133
|
export type UpdateDatapointMessagesToolMessage$Outbound = {
|
|
2014
1134
|
role: "tool";
|
|
2015
|
-
content: string | Array<
|
|
1135
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2016
1136
|
tool_call_id: string;
|
|
2017
1137
|
cache_control?: UpdateDatapointMessagesCacheControl$Outbound | undefined;
|
|
2018
1138
|
};
|
|
@@ -2026,7 +1146,7 @@ export const UpdateDatapointMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2026
1146
|
role: z.literal("tool"),
|
|
2027
1147
|
content: z.union([
|
|
2028
1148
|
z.string(),
|
|
2029
|
-
z.array(
|
|
1149
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2030
1150
|
]),
|
|
2031
1151
|
toolCallId: z.string(),
|
|
2032
1152
|
cacheControl: z.lazy(() => UpdateDatapointMessagesCacheControl$outboundSchema)
|
|
@@ -2059,264 +1179,134 @@ export function updateDatapointMessagesToolMessageFromJSON(
|
|
|
2059
1179
|
}
|
|
2060
1180
|
|
|
2061
1181
|
/** @internal */
|
|
2062
|
-
export const
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
1182
|
+
export const UpdateDatapointContentDatasets2$inboundSchema: z.ZodType<
|
|
1183
|
+
UpdateDatapointContentDatasets2,
|
|
1184
|
+
z.ZodTypeDef,
|
|
1185
|
+
unknown
|
|
1186
|
+
> = z.union([
|
|
1187
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1188
|
+
z.object({ type: z.literal("text") }),
|
|
1189
|
+
),
|
|
1190
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1191
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1192
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1193
|
+
]);
|
|
2066
1194
|
/** @internal */
|
|
2067
|
-
export
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
1195
|
+
export type UpdateDatapointContentDatasets2$Outbound =
|
|
1196
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1197
|
+
| components.RefusalPartSchema$Outbound
|
|
1198
|
+
| components.ReasoningPartSchema$Outbound
|
|
1199
|
+
| components.RedactedReasoningPartSchema$Outbound;
|
|
2071
1200
|
|
|
2072
1201
|
/** @internal */
|
|
2073
|
-
export const
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
1202
|
+
export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
|
|
1203
|
+
UpdateDatapointContentDatasets2$Outbound,
|
|
1204
|
+
z.ZodTypeDef,
|
|
1205
|
+
UpdateDatapointContentDatasets2
|
|
1206
|
+
> = z.union([
|
|
1207
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1208
|
+
z.object({ type: z.literal("text") }),
|
|
1209
|
+
),
|
|
1210
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1211
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1212
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1213
|
+
]);
|
|
1214
|
+
|
|
1215
|
+
export function updateDatapointContentDatasets2ToJSON(
|
|
1216
|
+
updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
|
|
1217
|
+
): string {
|
|
1218
|
+
return JSON.stringify(
|
|
1219
|
+
UpdateDatapointContentDatasets2$outboundSchema.parse(
|
|
1220
|
+
updateDatapointContentDatasets2,
|
|
1221
|
+
),
|
|
1222
|
+
);
|
|
1223
|
+
}
|
|
1224
|
+
export function updateDatapointContentDatasets2FromJSON(
|
|
1225
|
+
jsonString: string,
|
|
1226
|
+
): SafeParseResult<UpdateDatapointContentDatasets2, SDKValidationError> {
|
|
1227
|
+
return safeParse(
|
|
1228
|
+
jsonString,
|
|
1229
|
+
(x) => UpdateDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
1230
|
+
`Failed to parse 'UpdateDatapointContentDatasets2' from JSON`,
|
|
1231
|
+
);
|
|
1232
|
+
}
|
|
2080
1233
|
|
|
2081
1234
|
/** @internal */
|
|
2082
|
-
export const
|
|
1235
|
+
export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$inboundSchema:
|
|
2083
1236
|
z.ZodType<
|
|
2084
|
-
|
|
1237
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2085
1238
|
z.ZodTypeDef,
|
|
2086
1239
|
unknown
|
|
2087
|
-
> = z.
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
1240
|
+
> = z.union([
|
|
1241
|
+
z.string(),
|
|
1242
|
+
z.array(
|
|
1243
|
+
z.union([
|
|
1244
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1245
|
+
z.object({ type: z.literal("text") }),
|
|
1246
|
+
),
|
|
1247
|
+
components.RefusalPartSchema$inboundSchema,
|
|
1248
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
1249
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1250
|
+
]),
|
|
1251
|
+
),
|
|
1252
|
+
]);
|
|
2091
1253
|
/** @internal */
|
|
2092
|
-
export type
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
}
|
|
1254
|
+
export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound =
|
|
1255
|
+
| string
|
|
1256
|
+
| Array<
|
|
1257
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1258
|
+
| components.RefusalPartSchema$Outbound
|
|
1259
|
+
| components.ReasoningPartSchema$Outbound
|
|
1260
|
+
| components.RedactedReasoningPartSchema$Outbound
|
|
1261
|
+
>;
|
|
2096
1262
|
|
|
2097
1263
|
/** @internal */
|
|
2098
|
-
export const
|
|
1264
|
+
export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema:
|
|
2099
1265
|
z.ZodType<
|
|
2100
|
-
|
|
1266
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound,
|
|
2101
1267
|
z.ZodTypeDef,
|
|
2102
|
-
|
|
2103
|
-
> = z.
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
1268
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent
|
|
1269
|
+
> = z.union([
|
|
1270
|
+
z.string(),
|
|
1271
|
+
z.array(
|
|
1272
|
+
z.union([
|
|
1273
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1274
|
+
z.object({ type: z.literal("text") }),
|
|
1275
|
+
),
|
|
1276
|
+
components.RefusalPartSchema$outboundSchema,
|
|
1277
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
1278
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1279
|
+
]),
|
|
1280
|
+
),
|
|
1281
|
+
]);
|
|
2108
1282
|
|
|
2109
|
-
export function
|
|
2110
|
-
|
|
2111
|
-
|
|
1283
|
+
export function updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON(
|
|
1284
|
+
updateDatapointMessagesDatasetsRequestRequestBodyContent:
|
|
1285
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2112
1286
|
): string {
|
|
2113
1287
|
return JSON.stringify(
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
),
|
|
1288
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema
|
|
1289
|
+
.parse(updateDatapointMessagesDatasetsRequestRequestBodyContent),
|
|
2117
1290
|
);
|
|
2118
1291
|
}
|
|
2119
|
-
export function
|
|
1292
|
+
export function updateDatapointMessagesDatasetsRequestRequestBodyContentFromJSON(
|
|
2120
1293
|
jsonString: string,
|
|
2121
1294
|
): SafeParseResult<
|
|
2122
|
-
|
|
1295
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2123
1296
|
SDKValidationError
|
|
2124
1297
|
> {
|
|
2125
1298
|
return safeParse(
|
|
2126
1299
|
jsonString,
|
|
2127
1300
|
(x) =>
|
|
2128
|
-
|
|
2129
|
-
JSON.parse(x),
|
|
2130
|
-
|
|
2131
|
-
`Failed to parse 'UpdateDatapoint2DatasetsRequestCacheControl' from JSON`,
|
|
1301
|
+
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$inboundSchema
|
|
1302
|
+
.parse(JSON.parse(x)),
|
|
1303
|
+
`Failed to parse 'UpdateDatapointMessagesDatasetsRequestRequestBodyContent' from JSON`,
|
|
2132
1304
|
);
|
|
2133
1305
|
}
|
|
2134
1306
|
|
|
2135
1307
|
/** @internal */
|
|
2136
|
-
export const
|
|
2137
|
-
|
|
2138
|
-
z.ZodTypeDef,
|
|
2139
|
-
unknown
|
|
2140
|
-
> = z.object({
|
|
2141
|
-
type: z.literal("text"),
|
|
2142
|
-
text: z.string(),
|
|
2143
|
-
cache_control: z.lazy(() =>
|
|
2144
|
-
UpdateDatapoint2DatasetsRequestCacheControl$inboundSchema
|
|
2145
|
-
).optional(),
|
|
2146
|
-
}).transform((v) => {
|
|
2147
|
-
return remap$(v, {
|
|
2148
|
-
"cache_control": "cacheControl",
|
|
2149
|
-
});
|
|
2150
|
-
});
|
|
2151
|
-
/** @internal */
|
|
2152
|
-
export type UpdateDatapoint2Datasets1$Outbound = {
|
|
2153
|
-
type: "text";
|
|
2154
|
-
text: string;
|
|
2155
|
-
cache_control?:
|
|
2156
|
-
| UpdateDatapoint2DatasetsRequestCacheControl$Outbound
|
|
2157
|
-
| undefined;
|
|
2158
|
-
};
|
|
2159
|
-
|
|
2160
|
-
/** @internal */
|
|
2161
|
-
export const UpdateDatapoint2Datasets1$outboundSchema: z.ZodType<
|
|
2162
|
-
UpdateDatapoint2Datasets1$Outbound,
|
|
2163
|
-
z.ZodTypeDef,
|
|
2164
|
-
UpdateDatapoint2Datasets1
|
|
2165
|
-
> = z.object({
|
|
2166
|
-
type: z.literal("text"),
|
|
2167
|
-
text: z.string(),
|
|
2168
|
-
cacheControl: z.lazy(() =>
|
|
2169
|
-
UpdateDatapoint2DatasetsRequestCacheControl$outboundSchema
|
|
2170
|
-
).optional(),
|
|
2171
|
-
}).transform((v) => {
|
|
2172
|
-
return remap$(v, {
|
|
2173
|
-
cacheControl: "cache_control",
|
|
2174
|
-
});
|
|
2175
|
-
});
|
|
2176
|
-
|
|
2177
|
-
export function updateDatapoint2Datasets1ToJSON(
|
|
2178
|
-
updateDatapoint2Datasets1: UpdateDatapoint2Datasets1,
|
|
2179
|
-
): string {
|
|
2180
|
-
return JSON.stringify(
|
|
2181
|
-
UpdateDatapoint2Datasets1$outboundSchema.parse(updateDatapoint2Datasets1),
|
|
2182
|
-
);
|
|
2183
|
-
}
|
|
2184
|
-
export function updateDatapoint2Datasets1FromJSON(
|
|
2185
|
-
jsonString: string,
|
|
2186
|
-
): SafeParseResult<UpdateDatapoint2Datasets1, SDKValidationError> {
|
|
2187
|
-
return safeParse(
|
|
2188
|
-
jsonString,
|
|
2189
|
-
(x) => UpdateDatapoint2Datasets1$inboundSchema.parse(JSON.parse(x)),
|
|
2190
|
-
`Failed to parse 'UpdateDatapoint2Datasets1' from JSON`,
|
|
2191
|
-
);
|
|
2192
|
-
}
|
|
2193
|
-
|
|
2194
|
-
/** @internal */
|
|
2195
|
-
export const UpdateDatapointContentDatasetsRequestRequestBody2$inboundSchema:
|
|
2196
|
-
z.ZodType<
|
|
2197
|
-
UpdateDatapointContentDatasetsRequestRequestBody2,
|
|
2198
|
-
z.ZodTypeDef,
|
|
2199
|
-
unknown
|
|
2200
|
-
> = z.union([
|
|
2201
|
-
z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
|
|
2202
|
-
components.RefusalPartSchema$inboundSchema,
|
|
2203
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
2204
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2205
|
-
]);
|
|
2206
|
-
/** @internal */
|
|
2207
|
-
export type UpdateDatapointContentDatasetsRequestRequestBody2$Outbound =
|
|
2208
|
-
| UpdateDatapoint2Datasets1$Outbound
|
|
2209
|
-
| components.RefusalPartSchema$Outbound
|
|
2210
|
-
| components.ReasoningPartSchema$Outbound
|
|
2211
|
-
| components.RedactedReasoningPartSchema$Outbound;
|
|
2212
|
-
|
|
2213
|
-
/** @internal */
|
|
2214
|
-
export const UpdateDatapointContentDatasetsRequestRequestBody2$outboundSchema:
|
|
2215
|
-
z.ZodType<
|
|
2216
|
-
UpdateDatapointContentDatasetsRequestRequestBody2$Outbound,
|
|
2217
|
-
z.ZodTypeDef,
|
|
2218
|
-
UpdateDatapointContentDatasetsRequestRequestBody2
|
|
2219
|
-
> = z.union([
|
|
2220
|
-
z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
|
|
2221
|
-
components.RefusalPartSchema$outboundSchema,
|
|
2222
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
2223
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2224
|
-
]);
|
|
2225
|
-
|
|
2226
|
-
export function updateDatapointContentDatasetsRequestRequestBody2ToJSON(
|
|
2227
|
-
updateDatapointContentDatasetsRequestRequestBody2:
|
|
2228
|
-
UpdateDatapointContentDatasetsRequestRequestBody2,
|
|
2229
|
-
): string {
|
|
2230
|
-
return JSON.stringify(
|
|
2231
|
-
UpdateDatapointContentDatasetsRequestRequestBody2$outboundSchema.parse(
|
|
2232
|
-
updateDatapointContentDatasetsRequestRequestBody2,
|
|
2233
|
-
),
|
|
2234
|
-
);
|
|
2235
|
-
}
|
|
2236
|
-
export function updateDatapointContentDatasetsRequestRequestBody2FromJSON(
|
|
2237
|
-
jsonString: string,
|
|
2238
|
-
): SafeParseResult<
|
|
2239
|
-
UpdateDatapointContentDatasetsRequestRequestBody2,
|
|
2240
|
-
SDKValidationError
|
|
2241
|
-
> {
|
|
2242
|
-
return safeParse(
|
|
2243
|
-
jsonString,
|
|
2244
|
-
(x) =>
|
|
2245
|
-
UpdateDatapointContentDatasetsRequestRequestBody2$inboundSchema.parse(
|
|
2246
|
-
JSON.parse(x),
|
|
2247
|
-
),
|
|
2248
|
-
`Failed to parse 'UpdateDatapointContentDatasetsRequestRequestBody2' from JSON`,
|
|
2249
|
-
);
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
/** @internal */
|
|
2253
|
-
export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$inboundSchema:
|
|
2254
|
-
z.ZodType<
|
|
2255
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2256
|
-
z.ZodTypeDef,
|
|
2257
|
-
unknown
|
|
2258
|
-
> = z.union([
|
|
2259
|
-
z.string(),
|
|
2260
|
-
z.array(z.union([
|
|
2261
|
-
z.lazy(() => UpdateDatapoint2Datasets1$inboundSchema),
|
|
2262
|
-
components.RefusalPartSchema$inboundSchema,
|
|
2263
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
2264
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2265
|
-
])),
|
|
2266
|
-
]);
|
|
2267
|
-
/** @internal */
|
|
2268
|
-
export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound =
|
|
2269
|
-
| string
|
|
2270
|
-
| Array<
|
|
2271
|
-
| UpdateDatapoint2Datasets1$Outbound
|
|
2272
|
-
| components.RefusalPartSchema$Outbound
|
|
2273
|
-
| components.ReasoningPartSchema$Outbound
|
|
2274
|
-
| components.RedactedReasoningPartSchema$Outbound
|
|
2275
|
-
>;
|
|
2276
|
-
|
|
2277
|
-
/** @internal */
|
|
2278
|
-
export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema:
|
|
2279
|
-
z.ZodType<
|
|
2280
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound,
|
|
2281
|
-
z.ZodTypeDef,
|
|
2282
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent
|
|
2283
|
-
> = z.union([
|
|
2284
|
-
z.string(),
|
|
2285
|
-
z.array(z.union([
|
|
2286
|
-
z.lazy(() => UpdateDatapoint2Datasets1$outboundSchema),
|
|
2287
|
-
components.RefusalPartSchema$outboundSchema,
|
|
2288
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
2289
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2290
|
-
])),
|
|
2291
|
-
]);
|
|
2292
|
-
|
|
2293
|
-
export function updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON(
|
|
2294
|
-
updateDatapointMessagesDatasetsRequestRequestBodyContent:
|
|
2295
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2296
|
-
): string {
|
|
2297
|
-
return JSON.stringify(
|
|
2298
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema
|
|
2299
|
-
.parse(updateDatapointMessagesDatasetsRequestRequestBodyContent),
|
|
2300
|
-
);
|
|
2301
|
-
}
|
|
2302
|
-
export function updateDatapointMessagesDatasetsRequestRequestBodyContentFromJSON(
|
|
2303
|
-
jsonString: string,
|
|
2304
|
-
): SafeParseResult<
|
|
2305
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
|
|
2306
|
-
SDKValidationError
|
|
2307
|
-
> {
|
|
2308
|
-
return safeParse(
|
|
2309
|
-
jsonString,
|
|
2310
|
-
(x) =>
|
|
2311
|
-
UpdateDatapointMessagesDatasetsRequestRequestBodyContent$inboundSchema
|
|
2312
|
-
.parse(JSON.parse(x)),
|
|
2313
|
-
`Failed to parse 'UpdateDatapointMessagesDatasetsRequestRequestBodyContent' from JSON`,
|
|
2314
|
-
);
|
|
2315
|
-
}
|
|
2316
|
-
|
|
2317
|
-
/** @internal */
|
|
2318
|
-
export const UpdateDatapointMessagesAudio$inboundSchema: z.ZodType<
|
|
2319
|
-
UpdateDatapointMessagesAudio,
|
|
1308
|
+
export const UpdateDatapointMessagesAudio$inboundSchema: z.ZodType<
|
|
1309
|
+
UpdateDatapointMessagesAudio,
|
|
2320
1310
|
z.ZodTypeDef,
|
|
2321
1311
|
unknown
|
|
2322
1312
|
> = z.object({
|
|
@@ -2477,7 +1467,9 @@ export const UpdateDatapointMessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
2477
1467
|
z.string(),
|
|
2478
1468
|
z.array(
|
|
2479
1469
|
z.union([
|
|
2480
|
-
|
|
1470
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1471
|
+
z.object({ type: z.literal("text") }),
|
|
1472
|
+
),
|
|
2481
1473
|
components.RefusalPartSchema$inboundSchema,
|
|
2482
1474
|
components.ReasoningPartSchema$inboundSchema,
|
|
2483
1475
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -2503,7 +1495,7 @@ export type UpdateDatapointMessagesAssistantMessage$Outbound = {
|
|
|
2503
1495
|
content?:
|
|
2504
1496
|
| string
|
|
2505
1497
|
| Array<
|
|
2506
|
-
|
|
|
1498
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2507
1499
|
| components.RefusalPartSchema$Outbound
|
|
2508
1500
|
| components.ReasoningPartSchema$Outbound
|
|
2509
1501
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -2528,7 +1520,9 @@ export const UpdateDatapointMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
2528
1520
|
z.string(),
|
|
2529
1521
|
z.array(
|
|
2530
1522
|
z.union([
|
|
2531
|
-
|
|
1523
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1524
|
+
z.object({ type: z.literal("text") }),
|
|
1525
|
+
),
|
|
2532
1526
|
components.RefusalPartSchema$outboundSchema,
|
|
2533
1527
|
components.ReasoningPartSchema$outboundSchema,
|
|
2534
1528
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -2576,126 +1570,6 @@ export function updateDatapointMessagesAssistantMessageFromJSON(
|
|
|
2576
1570
|
);
|
|
2577
1571
|
}
|
|
2578
1572
|
|
|
2579
|
-
/** @internal */
|
|
2580
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema:
|
|
2581
|
-
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyType> = z
|
|
2582
|
-
.nativeEnum(UpdateDatapoint2DatasetsRequestRequestBodyType);
|
|
2583
|
-
/** @internal */
|
|
2584
|
-
export const UpdateDatapoint2DatasetsRequestRequestBodyType$outboundSchema:
|
|
2585
|
-
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsRequestRequestBodyType> =
|
|
2586
|
-
UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema;
|
|
2587
|
-
|
|
2588
|
-
/** @internal */
|
|
2589
|
-
export const UpdateDatapoint2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
|
|
2590
|
-
typeof UpdateDatapoint2DatasetsTtl
|
|
2591
|
-
> = z.nativeEnum(UpdateDatapoint2DatasetsTtl);
|
|
2592
|
-
/** @internal */
|
|
2593
|
-
export const UpdateDatapoint2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
|
|
2594
|
-
typeof UpdateDatapoint2DatasetsTtl
|
|
2595
|
-
> = UpdateDatapoint2DatasetsTtl$inboundSchema;
|
|
2596
|
-
|
|
2597
|
-
/** @internal */
|
|
2598
|
-
export const UpdateDatapoint2DatasetsCacheControl$inboundSchema: z.ZodType<
|
|
2599
|
-
UpdateDatapoint2DatasetsCacheControl,
|
|
2600
|
-
z.ZodTypeDef,
|
|
2601
|
-
unknown
|
|
2602
|
-
> = z.object({
|
|
2603
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyType$inboundSchema,
|
|
2604
|
-
ttl: UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
|
|
2605
|
-
});
|
|
2606
|
-
/** @internal */
|
|
2607
|
-
export type UpdateDatapoint2DatasetsCacheControl$Outbound = {
|
|
2608
|
-
type: string;
|
|
2609
|
-
ttl: string;
|
|
2610
|
-
};
|
|
2611
|
-
|
|
2612
|
-
/** @internal */
|
|
2613
|
-
export const UpdateDatapoint2DatasetsCacheControl$outboundSchema: z.ZodType<
|
|
2614
|
-
UpdateDatapoint2DatasetsCacheControl$Outbound,
|
|
2615
|
-
z.ZodTypeDef,
|
|
2616
|
-
UpdateDatapoint2DatasetsCacheControl
|
|
2617
|
-
> = z.object({
|
|
2618
|
-
type: UpdateDatapoint2DatasetsRequestRequestBodyType$outboundSchema,
|
|
2619
|
-
ttl: UpdateDatapoint2DatasetsTtl$outboundSchema.default("5m"),
|
|
2620
|
-
});
|
|
2621
|
-
|
|
2622
|
-
export function updateDatapoint2DatasetsCacheControlToJSON(
|
|
2623
|
-
updateDatapoint2DatasetsCacheControl: UpdateDatapoint2DatasetsCacheControl,
|
|
2624
|
-
): string {
|
|
2625
|
-
return JSON.stringify(
|
|
2626
|
-
UpdateDatapoint2DatasetsCacheControl$outboundSchema.parse(
|
|
2627
|
-
updateDatapoint2DatasetsCacheControl,
|
|
2628
|
-
),
|
|
2629
|
-
);
|
|
2630
|
-
}
|
|
2631
|
-
export function updateDatapoint2DatasetsCacheControlFromJSON(
|
|
2632
|
-
jsonString: string,
|
|
2633
|
-
): SafeParseResult<UpdateDatapoint2DatasetsCacheControl, SDKValidationError> {
|
|
2634
|
-
return safeParse(
|
|
2635
|
-
jsonString,
|
|
2636
|
-
(x) =>
|
|
2637
|
-
UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2638
|
-
`Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`,
|
|
2639
|
-
);
|
|
2640
|
-
}
|
|
2641
|
-
|
|
2642
|
-
/** @internal */
|
|
2643
|
-
export const UpdateDatapoint24$inboundSchema: z.ZodType<
|
|
2644
|
-
UpdateDatapoint24,
|
|
2645
|
-
z.ZodTypeDef,
|
|
2646
|
-
unknown
|
|
2647
|
-
> = z.object({
|
|
2648
|
-
type: z.literal("file"),
|
|
2649
|
-
cache_control: z.lazy(() =>
|
|
2650
|
-
UpdateDatapoint2DatasetsCacheControl$inboundSchema
|
|
2651
|
-
).optional(),
|
|
2652
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
2653
|
-
}).transform((v) => {
|
|
2654
|
-
return remap$(v, {
|
|
2655
|
-
"cache_control": "cacheControl",
|
|
2656
|
-
});
|
|
2657
|
-
});
|
|
2658
|
-
/** @internal */
|
|
2659
|
-
export type UpdateDatapoint24$Outbound = {
|
|
2660
|
-
type: "file";
|
|
2661
|
-
cache_control?: UpdateDatapoint2DatasetsCacheControl$Outbound | undefined;
|
|
2662
|
-
file: components.FileContentPartSchema$Outbound;
|
|
2663
|
-
};
|
|
2664
|
-
|
|
2665
|
-
/** @internal */
|
|
2666
|
-
export const UpdateDatapoint24$outboundSchema: z.ZodType<
|
|
2667
|
-
UpdateDatapoint24$Outbound,
|
|
2668
|
-
z.ZodTypeDef,
|
|
2669
|
-
UpdateDatapoint24
|
|
2670
|
-
> = z.object({
|
|
2671
|
-
type: z.literal("file"),
|
|
2672
|
-
cacheControl: z.lazy(() =>
|
|
2673
|
-
UpdateDatapoint2DatasetsCacheControl$outboundSchema
|
|
2674
|
-
).optional(),
|
|
2675
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
2676
|
-
}).transform((v) => {
|
|
2677
|
-
return remap$(v, {
|
|
2678
|
-
cacheControl: "cache_control",
|
|
2679
|
-
});
|
|
2680
|
-
});
|
|
2681
|
-
|
|
2682
|
-
export function updateDatapoint24ToJSON(
|
|
2683
|
-
updateDatapoint24: UpdateDatapoint24,
|
|
2684
|
-
): string {
|
|
2685
|
-
return JSON.stringify(
|
|
2686
|
-
UpdateDatapoint24$outboundSchema.parse(updateDatapoint24),
|
|
2687
|
-
);
|
|
2688
|
-
}
|
|
2689
|
-
export function updateDatapoint24FromJSON(
|
|
2690
|
-
jsonString: string,
|
|
2691
|
-
): SafeParseResult<UpdateDatapoint24, SDKValidationError> {
|
|
2692
|
-
return safeParse(
|
|
2693
|
-
jsonString,
|
|
2694
|
-
(x) => UpdateDatapoint24$inboundSchema.parse(JSON.parse(x)),
|
|
2695
|
-
`Failed to parse 'UpdateDatapoint24' from JSON`,
|
|
2696
|
-
);
|
|
2697
|
-
}
|
|
2698
|
-
|
|
2699
1573
|
/** @internal */
|
|
2700
1574
|
export const UpdateDatapoint2DatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
2701
1575
|
typeof UpdateDatapoint2DatasetsType
|
|
@@ -2759,108 +1633,108 @@ export function updateDatapoint2CacheControlFromJSON(
|
|
|
2759
1633
|
}
|
|
2760
1634
|
|
|
2761
1635
|
/** @internal */
|
|
2762
|
-
export const
|
|
2763
|
-
|
|
1636
|
+
export const UpdateDatapoint24$inboundSchema: z.ZodType<
|
|
1637
|
+
UpdateDatapoint24,
|
|
2764
1638
|
z.ZodTypeDef,
|
|
2765
1639
|
unknown
|
|
2766
1640
|
> = z.object({
|
|
2767
|
-
type: z.literal("
|
|
2768
|
-
text: z.string(),
|
|
1641
|
+
type: z.literal("file"),
|
|
2769
1642
|
cache_control: z.lazy(() => UpdateDatapoint2CacheControl$inboundSchema)
|
|
2770
1643
|
.optional(),
|
|
1644
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
2771
1645
|
}).transform((v) => {
|
|
2772
1646
|
return remap$(v, {
|
|
2773
1647
|
"cache_control": "cacheControl",
|
|
2774
1648
|
});
|
|
2775
1649
|
});
|
|
2776
1650
|
/** @internal */
|
|
2777
|
-
export type
|
|
2778
|
-
type: "
|
|
2779
|
-
text: string;
|
|
1651
|
+
export type UpdateDatapoint24$Outbound = {
|
|
1652
|
+
type: "file";
|
|
2780
1653
|
cache_control?: UpdateDatapoint2CacheControl$Outbound | undefined;
|
|
1654
|
+
file: components.FileContentPartSchema$Outbound;
|
|
2781
1655
|
};
|
|
2782
1656
|
|
|
2783
1657
|
/** @internal */
|
|
2784
|
-
export const
|
|
2785
|
-
|
|
1658
|
+
export const UpdateDatapoint24$outboundSchema: z.ZodType<
|
|
1659
|
+
UpdateDatapoint24$Outbound,
|
|
2786
1660
|
z.ZodTypeDef,
|
|
2787
|
-
|
|
1661
|
+
UpdateDatapoint24
|
|
2788
1662
|
> = z.object({
|
|
2789
|
-
type: z.literal("
|
|
2790
|
-
text: z.string(),
|
|
1663
|
+
type: z.literal("file"),
|
|
2791
1664
|
cacheControl: z.lazy(() => UpdateDatapoint2CacheControl$outboundSchema)
|
|
2792
1665
|
.optional(),
|
|
1666
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2793
1667
|
}).transform((v) => {
|
|
2794
1668
|
return remap$(v, {
|
|
2795
1669
|
cacheControl: "cache_control",
|
|
2796
1670
|
});
|
|
2797
1671
|
});
|
|
2798
1672
|
|
|
2799
|
-
export function
|
|
2800
|
-
|
|
1673
|
+
export function updateDatapoint24ToJSON(
|
|
1674
|
+
updateDatapoint24: UpdateDatapoint24,
|
|
2801
1675
|
): string {
|
|
2802
1676
|
return JSON.stringify(
|
|
2803
|
-
|
|
1677
|
+
UpdateDatapoint24$outboundSchema.parse(updateDatapoint24),
|
|
2804
1678
|
);
|
|
2805
1679
|
}
|
|
2806
|
-
export function
|
|
1680
|
+
export function updateDatapoint24FromJSON(
|
|
2807
1681
|
jsonString: string,
|
|
2808
|
-
): SafeParseResult<
|
|
1682
|
+
): SafeParseResult<UpdateDatapoint24, SDKValidationError> {
|
|
2809
1683
|
return safeParse(
|
|
2810
1684
|
jsonString,
|
|
2811
|
-
(x) =>
|
|
2812
|
-
`Failed to parse '
|
|
1685
|
+
(x) => UpdateDatapoint24$inboundSchema.parse(JSON.parse(x)),
|
|
1686
|
+
`Failed to parse 'UpdateDatapoint24' from JSON`,
|
|
2813
1687
|
);
|
|
2814
1688
|
}
|
|
2815
1689
|
|
|
2816
1690
|
/** @internal */
|
|
2817
|
-
export const
|
|
2818
|
-
|
|
1691
|
+
export const UpdateDatapointContent2$inboundSchema: z.ZodType<
|
|
1692
|
+
UpdateDatapointContent2,
|
|
2819
1693
|
z.ZodTypeDef,
|
|
2820
1694
|
unknown
|
|
2821
1695
|
> = z.union([
|
|
2822
|
-
|
|
1696
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1697
|
+
z.object({ type: z.literal("text") }),
|
|
1698
|
+
),
|
|
2823
1699
|
components.ImageContentPartSchema$inboundSchema,
|
|
2824
1700
|
components.AudioContentPartSchema$inboundSchema,
|
|
2825
1701
|
z.lazy(() => UpdateDatapoint24$inboundSchema),
|
|
2826
1702
|
]);
|
|
2827
1703
|
/** @internal */
|
|
2828
|
-
export type
|
|
2829
|
-
|
|
|
1704
|
+
export type UpdateDatapointContent2$Outbound =
|
|
1705
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2830
1706
|
| components.ImageContentPartSchema$Outbound
|
|
2831
1707
|
| components.AudioContentPartSchema$Outbound
|
|
2832
1708
|
| UpdateDatapoint24$Outbound;
|
|
2833
1709
|
|
|
2834
1710
|
/** @internal */
|
|
2835
|
-
export const
|
|
2836
|
-
|
|
1711
|
+
export const UpdateDatapointContent2$outboundSchema: z.ZodType<
|
|
1712
|
+
UpdateDatapointContent2$Outbound,
|
|
2837
1713
|
z.ZodTypeDef,
|
|
2838
|
-
|
|
1714
|
+
UpdateDatapointContent2
|
|
2839
1715
|
> = z.union([
|
|
2840
|
-
|
|
1716
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1717
|
+
z.object({ type: z.literal("text") }),
|
|
1718
|
+
),
|
|
2841
1719
|
components.ImageContentPartSchema$outboundSchema,
|
|
2842
1720
|
components.AudioContentPartSchema$outboundSchema,
|
|
2843
1721
|
z.lazy(() => UpdateDatapoint24$outboundSchema),
|
|
2844
1722
|
]);
|
|
2845
1723
|
|
|
2846
|
-
export function
|
|
2847
|
-
|
|
2848
|
-
UpdateDatapointContentDatasetsRequest2,
|
|
1724
|
+
export function updateDatapointContent2ToJSON(
|
|
1725
|
+
updateDatapointContent2: UpdateDatapointContent2,
|
|
2849
1726
|
): string {
|
|
2850
1727
|
return JSON.stringify(
|
|
2851
|
-
|
|
2852
|
-
updateDatapointContentDatasetsRequest2,
|
|
2853
|
-
),
|
|
1728
|
+
UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2),
|
|
2854
1729
|
);
|
|
2855
1730
|
}
|
|
2856
|
-
export function
|
|
1731
|
+
export function updateDatapointContent2FromJSON(
|
|
2857
1732
|
jsonString: string,
|
|
2858
|
-
): SafeParseResult<
|
|
1733
|
+
): SafeParseResult<UpdateDatapointContent2, SDKValidationError> {
|
|
2859
1734
|
return safeParse(
|
|
2860
1735
|
jsonString,
|
|
2861
|
-
(x) =>
|
|
2862
|
-
|
|
2863
|
-
`Failed to parse 'UpdateDatapointContentDatasetsRequest2' from JSON`,
|
|
1736
|
+
(x) => UpdateDatapointContent2$inboundSchema.parse(JSON.parse(x)),
|
|
1737
|
+
`Failed to parse 'UpdateDatapointContent2' from JSON`,
|
|
2864
1738
|
);
|
|
2865
1739
|
}
|
|
2866
1740
|
|
|
@@ -2872,18 +1746,22 @@ export const UpdateDatapointMessagesDatasetsRequestContent$inboundSchema:
|
|
|
2872
1746
|
unknown
|
|
2873
1747
|
> = z.union([
|
|
2874
1748
|
z.string(),
|
|
2875
|
-
z.array(
|
|
2876
|
-
z.
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
1749
|
+
z.array(
|
|
1750
|
+
z.union([
|
|
1751
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1752
|
+
z.object({ type: z.literal("text") }),
|
|
1753
|
+
),
|
|
1754
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1755
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1756
|
+
z.lazy(() => UpdateDatapoint24$inboundSchema),
|
|
1757
|
+
]),
|
|
1758
|
+
),
|
|
2881
1759
|
]);
|
|
2882
1760
|
/** @internal */
|
|
2883
1761
|
export type UpdateDatapointMessagesDatasetsRequestContent$Outbound =
|
|
2884
1762
|
| string
|
|
2885
1763
|
| Array<
|
|
2886
|
-
|
|
|
1764
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2887
1765
|
| components.ImageContentPartSchema$Outbound
|
|
2888
1766
|
| components.AudioContentPartSchema$Outbound
|
|
2889
1767
|
| UpdateDatapoint24$Outbound
|
|
@@ -2897,12 +1775,16 @@ export const UpdateDatapointMessagesDatasetsRequestContent$outboundSchema:
|
|
|
2897
1775
|
UpdateDatapointMessagesDatasetsRequestContent
|
|
2898
1776
|
> = z.union([
|
|
2899
1777
|
z.string(),
|
|
2900
|
-
z.array(
|
|
2901
|
-
z.
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
1778
|
+
z.array(
|
|
1779
|
+
z.union([
|
|
1780
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1781
|
+
z.object({ type: z.literal("text") }),
|
|
1782
|
+
),
|
|
1783
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1784
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1785
|
+
z.lazy(() => UpdateDatapoint24$outboundSchema),
|
|
1786
|
+
]),
|
|
1787
|
+
),
|
|
2906
1788
|
]);
|
|
2907
1789
|
|
|
2908
1790
|
export function updateDatapointMessagesDatasetsRequestContentToJSON(
|
|
@@ -2941,12 +1823,16 @@ export const UpdateDatapointMessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
2941
1823
|
name: z.string().optional(),
|
|
2942
1824
|
content: z.union([
|
|
2943
1825
|
z.string(),
|
|
2944
|
-
z.array(
|
|
2945
|
-
z.
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
1826
|
+
z.array(
|
|
1827
|
+
z.union([
|
|
1828
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
1829
|
+
z.object({ type: z.literal("text") }),
|
|
1830
|
+
),
|
|
1831
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
1832
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
1833
|
+
z.lazy(() => UpdateDatapoint24$inboundSchema),
|
|
1834
|
+
]),
|
|
1835
|
+
),
|
|
2950
1836
|
]),
|
|
2951
1837
|
});
|
|
2952
1838
|
/** @internal */
|
|
@@ -2956,7 +1842,7 @@ export type UpdateDatapointMessagesUserMessage$Outbound = {
|
|
|
2956
1842
|
content:
|
|
2957
1843
|
| string
|
|
2958
1844
|
| Array<
|
|
2959
|
-
|
|
|
1845
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2960
1846
|
| components.ImageContentPartSchema$Outbound
|
|
2961
1847
|
| components.AudioContentPartSchema$Outbound
|
|
2962
1848
|
| UpdateDatapoint24$Outbound
|
|
@@ -2973,12 +1859,16 @@ export const UpdateDatapointMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2973
1859
|
name: z.string().optional(),
|
|
2974
1860
|
content: z.union([
|
|
2975
1861
|
z.string(),
|
|
2976
|
-
z.array(
|
|
2977
|
-
z.
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
1862
|
+
z.array(
|
|
1863
|
+
z.union([
|
|
1864
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
1865
|
+
z.object({ type: z.literal("text") }),
|
|
1866
|
+
),
|
|
1867
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
1868
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
1869
|
+
z.lazy(() => UpdateDatapoint24$outboundSchema),
|
|
1870
|
+
]),
|
|
1871
|
+
),
|
|
2982
1872
|
]),
|
|
2983
1873
|
});
|
|
2984
1874
|
|
|
@@ -3002,144 +1892,6 @@ export function updateDatapointMessagesUserMessageFromJSON(
|
|
|
3002
1892
|
);
|
|
3003
1893
|
}
|
|
3004
1894
|
|
|
3005
|
-
/** @internal */
|
|
3006
|
-
export const UpdateDatapointContentDatasetsRequestType$inboundSchema:
|
|
3007
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestType> = z
|
|
3008
|
-
.nativeEnum(UpdateDatapointContentDatasetsRequestType);
|
|
3009
|
-
/** @internal */
|
|
3010
|
-
export const UpdateDatapointContentDatasetsRequestType$outboundSchema:
|
|
3011
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestType> =
|
|
3012
|
-
UpdateDatapointContentDatasetsRequestType$inboundSchema;
|
|
3013
|
-
|
|
3014
|
-
/** @internal */
|
|
3015
|
-
export const UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema:
|
|
3016
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestRequestBodyType> =
|
|
3017
|
-
z.nativeEnum(UpdateDatapointContentDatasetsRequestRequestBodyType);
|
|
3018
|
-
/** @internal */
|
|
3019
|
-
export const UpdateDatapointContentDatasetsRequestRequestBodyType$outboundSchema:
|
|
3020
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsRequestRequestBodyType> =
|
|
3021
|
-
UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema;
|
|
3022
|
-
|
|
3023
|
-
/** @internal */
|
|
3024
|
-
export const UpdateDatapointContentDatasetsTtl$inboundSchema: z.ZodNativeEnum<
|
|
3025
|
-
typeof UpdateDatapointContentDatasetsTtl
|
|
3026
|
-
> = z.nativeEnum(UpdateDatapointContentDatasetsTtl);
|
|
3027
|
-
/** @internal */
|
|
3028
|
-
export const UpdateDatapointContentDatasetsTtl$outboundSchema: z.ZodNativeEnum<
|
|
3029
|
-
typeof UpdateDatapointContentDatasetsTtl
|
|
3030
|
-
> = UpdateDatapointContentDatasetsTtl$inboundSchema;
|
|
3031
|
-
|
|
3032
|
-
/** @internal */
|
|
3033
|
-
export const UpdateDatapointContentDatasetsCacheControl$inboundSchema:
|
|
3034
|
-
z.ZodType<UpdateDatapointContentDatasetsCacheControl, z.ZodTypeDef, unknown> =
|
|
3035
|
-
z.object({
|
|
3036
|
-
type: UpdateDatapointContentDatasetsRequestRequestBodyType$inboundSchema,
|
|
3037
|
-
ttl: UpdateDatapointContentDatasetsTtl$inboundSchema.default("5m"),
|
|
3038
|
-
});
|
|
3039
|
-
/** @internal */
|
|
3040
|
-
export type UpdateDatapointContentDatasetsCacheControl$Outbound = {
|
|
3041
|
-
type: string;
|
|
3042
|
-
ttl: string;
|
|
3043
|
-
};
|
|
3044
|
-
|
|
3045
|
-
/** @internal */
|
|
3046
|
-
export const UpdateDatapointContentDatasetsCacheControl$outboundSchema:
|
|
3047
|
-
z.ZodType<
|
|
3048
|
-
UpdateDatapointContentDatasetsCacheControl$Outbound,
|
|
3049
|
-
z.ZodTypeDef,
|
|
3050
|
-
UpdateDatapointContentDatasetsCacheControl
|
|
3051
|
-
> = z.object({
|
|
3052
|
-
type: UpdateDatapointContentDatasetsRequestRequestBodyType$outboundSchema,
|
|
3053
|
-
ttl: UpdateDatapointContentDatasetsTtl$outboundSchema.default("5m"),
|
|
3054
|
-
});
|
|
3055
|
-
|
|
3056
|
-
export function updateDatapointContentDatasetsCacheControlToJSON(
|
|
3057
|
-
updateDatapointContentDatasetsCacheControl:
|
|
3058
|
-
UpdateDatapointContentDatasetsCacheControl,
|
|
3059
|
-
): string {
|
|
3060
|
-
return JSON.stringify(
|
|
3061
|
-
UpdateDatapointContentDatasetsCacheControl$outboundSchema.parse(
|
|
3062
|
-
updateDatapointContentDatasetsCacheControl,
|
|
3063
|
-
),
|
|
3064
|
-
);
|
|
3065
|
-
}
|
|
3066
|
-
export function updateDatapointContentDatasetsCacheControlFromJSON(
|
|
3067
|
-
jsonString: string,
|
|
3068
|
-
): SafeParseResult<
|
|
3069
|
-
UpdateDatapointContentDatasetsCacheControl,
|
|
3070
|
-
SDKValidationError
|
|
3071
|
-
> {
|
|
3072
|
-
return safeParse(
|
|
3073
|
-
jsonString,
|
|
3074
|
-
(x) =>
|
|
3075
|
-
UpdateDatapointContentDatasetsCacheControl$inboundSchema.parse(
|
|
3076
|
-
JSON.parse(x),
|
|
3077
|
-
),
|
|
3078
|
-
`Failed to parse 'UpdateDatapointContentDatasetsCacheControl' from JSON`,
|
|
3079
|
-
);
|
|
3080
|
-
}
|
|
3081
|
-
|
|
3082
|
-
/** @internal */
|
|
3083
|
-
export const UpdateDatapointContentDatasets2$inboundSchema: z.ZodType<
|
|
3084
|
-
UpdateDatapointContentDatasets2,
|
|
3085
|
-
z.ZodTypeDef,
|
|
3086
|
-
unknown
|
|
3087
|
-
> = z.object({
|
|
3088
|
-
type: UpdateDatapointContentDatasetsRequestType$inboundSchema,
|
|
3089
|
-
text: z.string(),
|
|
3090
|
-
cache_control: z.lazy(() =>
|
|
3091
|
-
UpdateDatapointContentDatasetsCacheControl$inboundSchema
|
|
3092
|
-
).optional(),
|
|
3093
|
-
}).transform((v) => {
|
|
3094
|
-
return remap$(v, {
|
|
3095
|
-
"cache_control": "cacheControl",
|
|
3096
|
-
});
|
|
3097
|
-
});
|
|
3098
|
-
/** @internal */
|
|
3099
|
-
export type UpdateDatapointContentDatasets2$Outbound = {
|
|
3100
|
-
type: string;
|
|
3101
|
-
text: string;
|
|
3102
|
-
cache_control?:
|
|
3103
|
-
| UpdateDatapointContentDatasetsCacheControl$Outbound
|
|
3104
|
-
| undefined;
|
|
3105
|
-
};
|
|
3106
|
-
|
|
3107
|
-
/** @internal */
|
|
3108
|
-
export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
|
|
3109
|
-
UpdateDatapointContentDatasets2$Outbound,
|
|
3110
|
-
z.ZodTypeDef,
|
|
3111
|
-
UpdateDatapointContentDatasets2
|
|
3112
|
-
> = z.object({
|
|
3113
|
-
type: UpdateDatapointContentDatasetsRequestType$outboundSchema,
|
|
3114
|
-
text: z.string(),
|
|
3115
|
-
cacheControl: z.lazy(() =>
|
|
3116
|
-
UpdateDatapointContentDatasetsCacheControl$outboundSchema
|
|
3117
|
-
).optional(),
|
|
3118
|
-
}).transform((v) => {
|
|
3119
|
-
return remap$(v, {
|
|
3120
|
-
cacheControl: "cache_control",
|
|
3121
|
-
});
|
|
3122
|
-
});
|
|
3123
|
-
|
|
3124
|
-
export function updateDatapointContentDatasets2ToJSON(
|
|
3125
|
-
updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
|
|
3126
|
-
): string {
|
|
3127
|
-
return JSON.stringify(
|
|
3128
|
-
UpdateDatapointContentDatasets2$outboundSchema.parse(
|
|
3129
|
-
updateDatapointContentDatasets2,
|
|
3130
|
-
),
|
|
3131
|
-
);
|
|
3132
|
-
}
|
|
3133
|
-
export function updateDatapointContentDatasets2FromJSON(
|
|
3134
|
-
jsonString: string,
|
|
3135
|
-
): SafeParseResult<UpdateDatapointContentDatasets2, SDKValidationError> {
|
|
3136
|
-
return safeParse(
|
|
3137
|
-
jsonString,
|
|
3138
|
-
(x) => UpdateDatapointContentDatasets2$inboundSchema.parse(JSON.parse(x)),
|
|
3139
|
-
`Failed to parse 'UpdateDatapointContentDatasets2' from JSON`,
|
|
3140
|
-
);
|
|
3141
|
-
}
|
|
3142
|
-
|
|
3143
1895
|
/** @internal */
|
|
3144
1896
|
export const UpdateDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
|
|
3145
1897
|
UpdateDatapointMessagesDatasetsContent,
|
|
@@ -3147,12 +1899,12 @@ export const UpdateDatapointMessagesDatasetsContent$inboundSchema: z.ZodType<
|
|
|
3147
1899
|
unknown
|
|
3148
1900
|
> = z.union([
|
|
3149
1901
|
z.string(),
|
|
3150
|
-
z.array(
|
|
1902
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3151
1903
|
]);
|
|
3152
1904
|
/** @internal */
|
|
3153
1905
|
export type UpdateDatapointMessagesDatasetsContent$Outbound =
|
|
3154
1906
|
| string
|
|
3155
|
-
| Array<
|
|
1907
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3156
1908
|
|
|
3157
1909
|
/** @internal */
|
|
3158
1910
|
export const UpdateDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
|
|
@@ -3161,7 +1913,7 @@ export const UpdateDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
|
|
|
3161
1913
|
UpdateDatapointMessagesDatasetsContent
|
|
3162
1914
|
> = z.union([
|
|
3163
1915
|
z.string(),
|
|
3164
|
-
z.array(
|
|
1916
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3165
1917
|
]);
|
|
3166
1918
|
|
|
3167
1919
|
export function updateDatapointMessagesDatasetsContentToJSON(
|
|
@@ -3194,14 +1946,14 @@ export const UpdateDatapointMessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3194
1946
|
role: z.literal("developer"),
|
|
3195
1947
|
content: z.union([
|
|
3196
1948
|
z.string(),
|
|
3197
|
-
z.array(
|
|
1949
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3198
1950
|
]),
|
|
3199
1951
|
name: z.string().optional(),
|
|
3200
1952
|
});
|
|
3201
1953
|
/** @internal */
|
|
3202
1954
|
export type UpdateDatapointMessagesDeveloperMessage$Outbound = {
|
|
3203
1955
|
role: "developer";
|
|
3204
|
-
content: string | Array<
|
|
1956
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3205
1957
|
name?: string | undefined;
|
|
3206
1958
|
};
|
|
3207
1959
|
|
|
@@ -3211,164 +1963,37 @@ export const UpdateDatapointMessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3211
1963
|
z.ZodTypeDef,
|
|
3212
1964
|
UpdateDatapointMessagesDeveloperMessage
|
|
3213
1965
|
> = z.object({
|
|
3214
|
-
role: z.literal("developer"),
|
|
3215
|
-
content: z.union([
|
|
3216
|
-
z.string(),
|
|
3217
|
-
z.array(
|
|
3218
|
-
]),
|
|
3219
|
-
name: z.string().optional(),
|
|
3220
|
-
});
|
|
3221
|
-
|
|
3222
|
-
export function updateDatapointMessagesDeveloperMessageToJSON(
|
|
3223
|
-
updateDatapointMessagesDeveloperMessage:
|
|
3224
|
-
UpdateDatapointMessagesDeveloperMessage,
|
|
3225
|
-
): string {
|
|
3226
|
-
return JSON.stringify(
|
|
3227
|
-
UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(
|
|
3228
|
-
updateDatapointMessagesDeveloperMessage,
|
|
3229
|
-
),
|
|
3230
|
-
);
|
|
3231
|
-
}
|
|
3232
|
-
export function updateDatapointMessagesDeveloperMessageFromJSON(
|
|
3233
|
-
jsonString: string,
|
|
3234
|
-
): SafeParseResult<
|
|
3235
|
-
UpdateDatapointMessagesDeveloperMessage,
|
|
3236
|
-
SDKValidationError
|
|
3237
|
-
> {
|
|
3238
|
-
return safeParse(
|
|
3239
|
-
jsonString,
|
|
3240
|
-
(x) =>
|
|
3241
|
-
UpdateDatapointMessagesDeveloperMessage$inboundSchema.parse(
|
|
3242
|
-
JSON.parse(x),
|
|
3243
|
-
),
|
|
3244
|
-
`Failed to parse 'UpdateDatapointMessagesDeveloperMessage' from JSON`,
|
|
3245
|
-
);
|
|
3246
|
-
}
|
|
3247
|
-
|
|
3248
|
-
/** @internal */
|
|
3249
|
-
export const UpdateDatapointContentType$inboundSchema: z.ZodNativeEnum<
|
|
3250
|
-
typeof UpdateDatapointContentType
|
|
3251
|
-
> = z.nativeEnum(UpdateDatapointContentType);
|
|
3252
|
-
/** @internal */
|
|
3253
|
-
export const UpdateDatapointContentType$outboundSchema: z.ZodNativeEnum<
|
|
3254
|
-
typeof UpdateDatapointContentType
|
|
3255
|
-
> = UpdateDatapointContentType$inboundSchema;
|
|
3256
|
-
|
|
3257
|
-
/** @internal */
|
|
3258
|
-
export const UpdateDatapointContentDatasetsType$inboundSchema: z.ZodNativeEnum<
|
|
3259
|
-
typeof UpdateDatapointContentDatasetsType
|
|
3260
|
-
> = z.nativeEnum(UpdateDatapointContentDatasetsType);
|
|
3261
|
-
/** @internal */
|
|
3262
|
-
export const UpdateDatapointContentDatasetsType$outboundSchema: z.ZodNativeEnum<
|
|
3263
|
-
typeof UpdateDatapointContentDatasetsType
|
|
3264
|
-
> = UpdateDatapointContentDatasetsType$inboundSchema;
|
|
3265
|
-
|
|
3266
|
-
/** @internal */
|
|
3267
|
-
export const UpdateDatapointContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
3268
|
-
typeof UpdateDatapointContentTtl
|
|
3269
|
-
> = z.nativeEnum(UpdateDatapointContentTtl);
|
|
3270
|
-
/** @internal */
|
|
3271
|
-
export const UpdateDatapointContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
3272
|
-
typeof UpdateDatapointContentTtl
|
|
3273
|
-
> = UpdateDatapointContentTtl$inboundSchema;
|
|
3274
|
-
|
|
3275
|
-
/** @internal */
|
|
3276
|
-
export const UpdateDatapointContentCacheControl$inboundSchema: z.ZodType<
|
|
3277
|
-
UpdateDatapointContentCacheControl,
|
|
3278
|
-
z.ZodTypeDef,
|
|
3279
|
-
unknown
|
|
3280
|
-
> = z.object({
|
|
3281
|
-
type: UpdateDatapointContentDatasetsType$inboundSchema,
|
|
3282
|
-
ttl: UpdateDatapointContentTtl$inboundSchema.default("5m"),
|
|
3283
|
-
});
|
|
3284
|
-
/** @internal */
|
|
3285
|
-
export type UpdateDatapointContentCacheControl$Outbound = {
|
|
3286
|
-
type: string;
|
|
3287
|
-
ttl: string;
|
|
3288
|
-
};
|
|
3289
|
-
|
|
3290
|
-
/** @internal */
|
|
3291
|
-
export const UpdateDatapointContentCacheControl$outboundSchema: z.ZodType<
|
|
3292
|
-
UpdateDatapointContentCacheControl$Outbound,
|
|
3293
|
-
z.ZodTypeDef,
|
|
3294
|
-
UpdateDatapointContentCacheControl
|
|
3295
|
-
> = z.object({
|
|
3296
|
-
type: UpdateDatapointContentDatasetsType$outboundSchema,
|
|
3297
|
-
ttl: UpdateDatapointContentTtl$outboundSchema.default("5m"),
|
|
3298
|
-
});
|
|
3299
|
-
|
|
3300
|
-
export function updateDatapointContentCacheControlToJSON(
|
|
3301
|
-
updateDatapointContentCacheControl: UpdateDatapointContentCacheControl,
|
|
3302
|
-
): string {
|
|
3303
|
-
return JSON.stringify(
|
|
3304
|
-
UpdateDatapointContentCacheControl$outboundSchema.parse(
|
|
3305
|
-
updateDatapointContentCacheControl,
|
|
3306
|
-
),
|
|
3307
|
-
);
|
|
3308
|
-
}
|
|
3309
|
-
export function updateDatapointContentCacheControlFromJSON(
|
|
3310
|
-
jsonString: string,
|
|
3311
|
-
): SafeParseResult<UpdateDatapointContentCacheControl, SDKValidationError> {
|
|
3312
|
-
return safeParse(
|
|
3313
|
-
jsonString,
|
|
3314
|
-
(x) =>
|
|
3315
|
-
UpdateDatapointContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3316
|
-
`Failed to parse 'UpdateDatapointContentCacheControl' from JSON`,
|
|
3317
|
-
);
|
|
3318
|
-
}
|
|
3319
|
-
|
|
3320
|
-
/** @internal */
|
|
3321
|
-
export const UpdateDatapointContent2$inboundSchema: z.ZodType<
|
|
3322
|
-
UpdateDatapointContent2,
|
|
3323
|
-
z.ZodTypeDef,
|
|
3324
|
-
unknown
|
|
3325
|
-
> = z.object({
|
|
3326
|
-
type: UpdateDatapointContentType$inboundSchema,
|
|
3327
|
-
text: z.string(),
|
|
3328
|
-
cache_control: z.lazy(() => UpdateDatapointContentCacheControl$inboundSchema)
|
|
3329
|
-
.optional(),
|
|
3330
|
-
}).transform((v) => {
|
|
3331
|
-
return remap$(v, {
|
|
3332
|
-
"cache_control": "cacheControl",
|
|
3333
|
-
});
|
|
3334
|
-
});
|
|
3335
|
-
/** @internal */
|
|
3336
|
-
export type UpdateDatapointContent2$Outbound = {
|
|
3337
|
-
type: string;
|
|
3338
|
-
text: string;
|
|
3339
|
-
cache_control?: UpdateDatapointContentCacheControl$Outbound | undefined;
|
|
3340
|
-
};
|
|
3341
|
-
|
|
3342
|
-
/** @internal */
|
|
3343
|
-
export const UpdateDatapointContent2$outboundSchema: z.ZodType<
|
|
3344
|
-
UpdateDatapointContent2$Outbound,
|
|
3345
|
-
z.ZodTypeDef,
|
|
3346
|
-
UpdateDatapointContent2
|
|
3347
|
-
> = z.object({
|
|
3348
|
-
type: UpdateDatapointContentType$outboundSchema,
|
|
3349
|
-
text: z.string(),
|
|
3350
|
-
cacheControl: z.lazy(() => UpdateDatapointContentCacheControl$outboundSchema)
|
|
3351
|
-
.optional(),
|
|
3352
|
-
}).transform((v) => {
|
|
3353
|
-
return remap$(v, {
|
|
3354
|
-
cacheControl: "cache_control",
|
|
3355
|
-
});
|
|
1966
|
+
role: z.literal("developer"),
|
|
1967
|
+
content: z.union([
|
|
1968
|
+
z.string(),
|
|
1969
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1970
|
+
]),
|
|
1971
|
+
name: z.string().optional(),
|
|
3356
1972
|
});
|
|
3357
1973
|
|
|
3358
|
-
export function
|
|
3359
|
-
|
|
1974
|
+
export function updateDatapointMessagesDeveloperMessageToJSON(
|
|
1975
|
+
updateDatapointMessagesDeveloperMessage:
|
|
1976
|
+
UpdateDatapointMessagesDeveloperMessage,
|
|
3360
1977
|
): string {
|
|
3361
1978
|
return JSON.stringify(
|
|
3362
|
-
|
|
1979
|
+
UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(
|
|
1980
|
+
updateDatapointMessagesDeveloperMessage,
|
|
1981
|
+
),
|
|
3363
1982
|
);
|
|
3364
1983
|
}
|
|
3365
|
-
export function
|
|
1984
|
+
export function updateDatapointMessagesDeveloperMessageFromJSON(
|
|
3366
1985
|
jsonString: string,
|
|
3367
|
-
): SafeParseResult<
|
|
1986
|
+
): SafeParseResult<
|
|
1987
|
+
UpdateDatapointMessagesDeveloperMessage,
|
|
1988
|
+
SDKValidationError
|
|
1989
|
+
> {
|
|
3368
1990
|
return safeParse(
|
|
3369
1991
|
jsonString,
|
|
3370
|
-
(x) =>
|
|
3371
|
-
|
|
1992
|
+
(x) =>
|
|
1993
|
+
UpdateDatapointMessagesDeveloperMessage$inboundSchema.parse(
|
|
1994
|
+
JSON.parse(x),
|
|
1995
|
+
),
|
|
1996
|
+
`Failed to parse 'UpdateDatapointMessagesDeveloperMessage' from JSON`,
|
|
3372
1997
|
);
|
|
3373
1998
|
}
|
|
3374
1999
|
|
|
@@ -3379,12 +2004,12 @@ export const UpdateDatapointMessagesContent$inboundSchema: z.ZodType<
|
|
|
3379
2004
|
unknown
|
|
3380
2005
|
> = z.union([
|
|
3381
2006
|
z.string(),
|
|
3382
|
-
z.array(
|
|
2007
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3383
2008
|
]);
|
|
3384
2009
|
/** @internal */
|
|
3385
2010
|
export type UpdateDatapointMessagesContent$Outbound =
|
|
3386
2011
|
| string
|
|
3387
|
-
| Array<
|
|
2012
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3388
2013
|
|
|
3389
2014
|
/** @internal */
|
|
3390
2015
|
export const UpdateDatapointMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -3393,7 +2018,7 @@ export const UpdateDatapointMessagesContent$outboundSchema: z.ZodType<
|
|
|
3393
2018
|
UpdateDatapointMessagesContent
|
|
3394
2019
|
> = z.union([
|
|
3395
2020
|
z.string(),
|
|
3396
|
-
z.array(
|
|
2021
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3397
2022
|
]);
|
|
3398
2023
|
|
|
3399
2024
|
export function updateDatapointMessagesContentToJSON(
|
|
@@ -3424,14 +2049,14 @@ export const UpdateDatapointMessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
3424
2049
|
role: z.literal("system"),
|
|
3425
2050
|
content: z.union([
|
|
3426
2051
|
z.string(),
|
|
3427
|
-
z.array(
|
|
2052
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3428
2053
|
]),
|
|
3429
2054
|
name: z.string().optional(),
|
|
3430
2055
|
});
|
|
3431
2056
|
/** @internal */
|
|
3432
2057
|
export type UpdateDatapointMessagesSystemMessage$Outbound = {
|
|
3433
2058
|
role: "system";
|
|
3434
|
-
content: string | Array<
|
|
2059
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
3435
2060
|
name?: string | undefined;
|
|
3436
2061
|
};
|
|
3437
2062
|
|
|
@@ -3444,7 +2069,7 @@ export const UpdateDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3444
2069
|
role: z.literal("system"),
|
|
3445
2070
|
content: z.union([
|
|
3446
2071
|
z.string(),
|
|
3447
|
-
z.array(
|
|
2072
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3448
2073
|
]),
|
|
3449
2074
|
name: z.string().optional(),
|
|
3450
2075
|
});
|
|
@@ -3656,225 +2281,45 @@ export function updateDatapointRequestFromJSON(
|
|
|
3656
2281
|
}
|
|
3657
2282
|
|
|
3658
2283
|
/** @internal */
|
|
3659
|
-
export const
|
|
3660
|
-
z.ZodNativeEnum<
|
|
3661
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
3662
|
-
> = z.nativeEnum(
|
|
3663
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType,
|
|
3664
|
-
);
|
|
3665
|
-
/** @internal */
|
|
3666
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
3667
|
-
z.ZodNativeEnum<
|
|
3668
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType
|
|
3669
|
-
> =
|
|
3670
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
3671
|
-
|
|
3672
|
-
/** @internal */
|
|
3673
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema:
|
|
3674
|
-
z.ZodNativeEnum<
|
|
3675
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
|
|
3676
|
-
> = z.nativeEnum(
|
|
3677
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type,
|
|
3678
|
-
);
|
|
3679
|
-
/** @internal */
|
|
3680
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$outboundSchema:
|
|
3681
|
-
z.ZodNativeEnum<
|
|
3682
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type
|
|
3683
|
-
> =
|
|
3684
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema;
|
|
3685
|
-
|
|
3686
|
-
/** @internal */
|
|
3687
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema:
|
|
3688
|
-
z.ZodNativeEnum<
|
|
3689
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
|
|
3690
|
-
> = z.nativeEnum(
|
|
3691
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl,
|
|
3692
|
-
);
|
|
3693
|
-
/** @internal */
|
|
3694
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$outboundSchema:
|
|
3695
|
-
z.ZodNativeEnum<
|
|
3696
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl
|
|
3697
|
-
> =
|
|
3698
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema;
|
|
3699
|
-
|
|
3700
|
-
/** @internal */
|
|
3701
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema:
|
|
3702
|
-
z.ZodType<
|
|
3703
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
|
|
3704
|
-
z.ZodTypeDef,
|
|
3705
|
-
unknown
|
|
3706
|
-
> = z.object({
|
|
3707
|
-
type:
|
|
3708
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$inboundSchema,
|
|
3709
|
-
ttl:
|
|
3710
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$inboundSchema
|
|
3711
|
-
.default("5m"),
|
|
3712
|
-
});
|
|
3713
|
-
/** @internal */
|
|
3714
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound =
|
|
3715
|
-
{
|
|
3716
|
-
type: string;
|
|
3717
|
-
ttl: string;
|
|
3718
|
-
};
|
|
3719
|
-
|
|
3720
|
-
/** @internal */
|
|
3721
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema:
|
|
3722
|
-
z.ZodType<
|
|
3723
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound,
|
|
3724
|
-
z.ZodTypeDef,
|
|
3725
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl
|
|
3726
|
-
> = z.object({
|
|
3727
|
-
type:
|
|
3728
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages5Type$outboundSchema,
|
|
3729
|
-
ttl:
|
|
3730
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyTtl$outboundSchema
|
|
3731
|
-
.default("5m"),
|
|
3732
|
-
});
|
|
3733
|
-
|
|
3734
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControlToJSON(
|
|
3735
|
-
updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl:
|
|
3736
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
|
|
3737
|
-
): string {
|
|
3738
|
-
return JSON.stringify(
|
|
3739
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema
|
|
3740
|
-
.parse(
|
|
3741
|
-
updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
|
|
3742
|
-
),
|
|
3743
|
-
);
|
|
3744
|
-
}
|
|
3745
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControlFromJSON(
|
|
3746
|
-
jsonString: string,
|
|
3747
|
-
): SafeParseResult<
|
|
3748
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl,
|
|
3749
|
-
SDKValidationError
|
|
3750
|
-
> {
|
|
3751
|
-
return safeParse(
|
|
3752
|
-
jsonString,
|
|
3753
|
-
(x) =>
|
|
3754
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema
|
|
3755
|
-
.parse(JSON.parse(x)),
|
|
3756
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl' from JSON`,
|
|
3757
|
-
);
|
|
3758
|
-
}
|
|
3759
|
-
|
|
3760
|
-
/** @internal */
|
|
3761
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema:
|
|
3762
|
-
z.ZodType<
|
|
3763
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1,
|
|
3764
|
-
z.ZodTypeDef,
|
|
3765
|
-
unknown
|
|
3766
|
-
> = z.object({
|
|
3767
|
-
type:
|
|
3768
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
3769
|
-
text: z.string(),
|
|
3770
|
-
cache_control: z.lazy(() =>
|
|
3771
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$inboundSchema
|
|
3772
|
-
).optional(),
|
|
3773
|
-
}).transform((v) => {
|
|
3774
|
-
return remap$(v, {
|
|
3775
|
-
"cache_control": "cacheControl",
|
|
3776
|
-
});
|
|
3777
|
-
});
|
|
3778
|
-
/** @internal */
|
|
3779
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound = {
|
|
3780
|
-
type: string;
|
|
3781
|
-
text: string;
|
|
3782
|
-
cache_control?:
|
|
3783
|
-
| UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$Outbound
|
|
3784
|
-
| undefined;
|
|
3785
|
-
};
|
|
3786
|
-
|
|
3787
|
-
/** @internal */
|
|
3788
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema:
|
|
3789
|
-
z.ZodType<
|
|
3790
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound,
|
|
3791
|
-
z.ZodTypeDef,
|
|
3792
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1
|
|
3793
|
-
> = z.object({
|
|
3794
|
-
type:
|
|
3795
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
3796
|
-
text: z.string(),
|
|
3797
|
-
cacheControl: z.lazy(() =>
|
|
3798
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyCacheControl$outboundSchema
|
|
3799
|
-
).optional(),
|
|
3800
|
-
}).transform((v) => {
|
|
3801
|
-
return remap$(v, {
|
|
3802
|
-
cacheControl: "cache_control",
|
|
3803
|
-
});
|
|
3804
|
-
});
|
|
3805
|
-
|
|
3806
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSON1ToJSON(
|
|
3807
|
-
updateDatapoint2DatasetsResponse200ApplicationJson1:
|
|
3808
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1,
|
|
3809
|
-
): string {
|
|
3810
|
-
return JSON.stringify(
|
|
3811
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema.parse(
|
|
3812
|
-
updateDatapoint2DatasetsResponse200ApplicationJson1,
|
|
3813
|
-
),
|
|
3814
|
-
);
|
|
3815
|
-
}
|
|
3816
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSON1FromJSON(
|
|
3817
|
-
jsonString: string,
|
|
3818
|
-
): SafeParseResult<
|
|
3819
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1,
|
|
3820
|
-
SDKValidationError
|
|
3821
|
-
> {
|
|
3822
|
-
return safeParse(
|
|
3823
|
-
jsonString,
|
|
3824
|
-
(x) =>
|
|
3825
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema.parse(
|
|
3826
|
-
JSON.parse(x),
|
|
3827
|
-
),
|
|
3828
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJson1' from JSON`,
|
|
3829
|
-
);
|
|
3830
|
-
}
|
|
3831
|
-
|
|
3832
|
-
/** @internal */
|
|
3833
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2$inboundSchema:
|
|
2284
|
+
export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema:
|
|
3834
2285
|
z.ZodType<
|
|
3835
|
-
|
|
2286
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2,
|
|
3836
2287
|
z.ZodTypeDef,
|
|
3837
2288
|
unknown
|
|
3838
|
-
> =
|
|
3839
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
|
|
3840
|
-
);
|
|
2289
|
+
> = components.TextContentPartSchema$inboundSchema;
|
|
3841
2290
|
/** @internal */
|
|
3842
|
-
export type
|
|
3843
|
-
|
|
2291
|
+
export type UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound =
|
|
2292
|
+
components.TextContentPartSchema$Outbound;
|
|
3844
2293
|
|
|
3845
2294
|
/** @internal */
|
|
3846
|
-
export const
|
|
2295
|
+
export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema:
|
|
3847
2296
|
z.ZodType<
|
|
3848
|
-
|
|
2297
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2$Outbound,
|
|
3849
2298
|
z.ZodTypeDef,
|
|
3850
|
-
|
|
3851
|
-
> =
|
|
3852
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema
|
|
3853
|
-
);
|
|
2299
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2
|
|
2300
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
3854
2301
|
|
|
3855
|
-
export function
|
|
3856
|
-
|
|
3857
|
-
|
|
2302
|
+
export function updateDatapointContentDatasetsResponse200ApplicationJSON2ToJSON(
|
|
2303
|
+
updateDatapointContentDatasetsResponse200ApplicationJson2:
|
|
2304
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2,
|
|
3858
2305
|
): string {
|
|
3859
2306
|
return JSON.stringify(
|
|
3860
|
-
|
|
3861
|
-
.parse(
|
|
3862
|
-
updateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyMessages2,
|
|
3863
|
-
),
|
|
2307
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2$outboundSchema
|
|
2308
|
+
.parse(updateDatapointContentDatasetsResponse200ApplicationJson2),
|
|
3864
2309
|
);
|
|
3865
2310
|
}
|
|
3866
|
-
export function
|
|
2311
|
+
export function updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON(
|
|
3867
2312
|
jsonString: string,
|
|
3868
2313
|
): SafeParseResult<
|
|
3869
|
-
|
|
2314
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2,
|
|
3870
2315
|
SDKValidationError
|
|
3871
2316
|
> {
|
|
3872
2317
|
return safeParse(
|
|
3873
2318
|
jsonString,
|
|
3874
2319
|
(x) =>
|
|
3875
|
-
|
|
2320
|
+
UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema
|
|
3876
2321
|
.parse(JSON.parse(x)),
|
|
3877
|
-
`Failed to parse '
|
|
2322
|
+
`Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJson2' from JSON`,
|
|
3878
2323
|
);
|
|
3879
2324
|
}
|
|
3880
2325
|
|
|
@@ -3886,14 +2331,12 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
|
|
|
3886
2331
|
unknown
|
|
3887
2332
|
> = z.union([
|
|
3888
2333
|
z.string(),
|
|
3889
|
-
z.array(
|
|
3890
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
|
|
3891
|
-
)),
|
|
2334
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
3892
2335
|
]);
|
|
3893
2336
|
/** @internal */
|
|
3894
2337
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$Outbound =
|
|
3895
2338
|
| string
|
|
3896
|
-
| Array<
|
|
2339
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
3897
2340
|
|
|
3898
2341
|
/** @internal */
|
|
3899
2342
|
export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$outboundSchema:
|
|
@@ -3903,9 +2346,7 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
|
|
|
3903
2346
|
UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content
|
|
3904
2347
|
> = z.union([
|
|
3905
2348
|
z.string(),
|
|
3906
|
-
z.array(
|
|
3907
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$outboundSchema
|
|
3908
|
-
)),
|
|
2349
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
3909
2350
|
]);
|
|
3910
2351
|
|
|
3911
2352
|
export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentToJSON(
|
|
@@ -4012,9 +2453,7 @@ export const UpdateDatapointMessagesDatasetsToolMessage$inboundSchema:
|
|
|
4012
2453
|
role: z.literal("tool"),
|
|
4013
2454
|
content: z.union([
|
|
4014
2455
|
z.string(),
|
|
4015
|
-
z.array(
|
|
4016
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJson1$inboundSchema
|
|
4017
|
-
)),
|
|
2456
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
4018
2457
|
]),
|
|
4019
2458
|
tool_call_id: z.string(),
|
|
4020
2459
|
cache_control: z.lazy(() =>
|
|
@@ -4029,9 +2468,7 @@ export const UpdateDatapointMessagesDatasetsToolMessage$inboundSchema:
|
|
|
4029
2468
|
/** @internal */
|
|
4030
2469
|
export type UpdateDatapointMessagesDatasetsToolMessage$Outbound = {
|
|
4031
2470
|
role: "tool";
|
|
4032
|
-
content:
|
|
4033
|
-
| string
|
|
4034
|
-
| Array<UpdateDatapoint2DatasetsResponse200ApplicationJson1$Outbound>;
|
|
2471
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
4035
2472
|
tool_call_id: string;
|
|
4036
2473
|
cache_control?:
|
|
4037
2474
|
| UpdateDatapointMessagesDatasetsCacheControl$Outbound
|
|
@@ -4042,251 +2479,107 @@ export type UpdateDatapointMessagesDatasetsToolMessage$Outbound = {
|
|
|
4042
2479
|
export const UpdateDatapointMessagesDatasetsToolMessage$outboundSchema:
|
|
4043
2480
|
z.ZodType<
|
|
4044
2481
|
UpdateDatapointMessagesDatasetsToolMessage$Outbound,
|
|
4045
|
-
z.ZodTypeDef,
|
|
4046
|
-
UpdateDatapointMessagesDatasetsToolMessage
|
|
4047
|
-
> = z.object({
|
|
4048
|
-
role: z.literal("tool"),
|
|
4049
|
-
content: z.union([
|
|
4050
|
-
z.string(),
|
|
4051
|
-
z.array(
|
|
4052
|
-
|
|
4053
|
-
|
|
4054
|
-
|
|
4055
|
-
|
|
4056
|
-
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4062
|
-
cacheControl: "cache_control",
|
|
4063
|
-
});
|
|
4064
|
-
});
|
|
4065
|
-
|
|
4066
|
-
export function updateDatapointMessagesDatasetsToolMessageToJSON(
|
|
4067
|
-
updateDatapointMessagesDatasetsToolMessage:
|
|
4068
|
-
UpdateDatapointMessagesDatasetsToolMessage,
|
|
4069
|
-
): string {
|
|
4070
|
-
return JSON.stringify(
|
|
4071
|
-
UpdateDatapointMessagesDatasetsToolMessage$outboundSchema.parse(
|
|
4072
|
-
updateDatapointMessagesDatasetsToolMessage,
|
|
4073
|
-
),
|
|
4074
|
-
);
|
|
4075
|
-
}
|
|
4076
|
-
export function updateDatapointMessagesDatasetsToolMessageFromJSON(
|
|
4077
|
-
jsonString: string,
|
|
4078
|
-
): SafeParseResult<
|
|
4079
|
-
UpdateDatapointMessagesDatasetsToolMessage,
|
|
4080
|
-
SDKValidationError
|
|
4081
|
-
> {
|
|
4082
|
-
return safeParse(
|
|
4083
|
-
jsonString,
|
|
4084
|
-
(x) =>
|
|
4085
|
-
UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(
|
|
4086
|
-
JSON.parse(x),
|
|
4087
|
-
),
|
|
4088
|
-
`Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`,
|
|
4089
|
-
);
|
|
4090
|
-
}
|
|
4091
|
-
|
|
4092
|
-
/** @internal */
|
|
4093
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema:
|
|
4094
|
-
z.ZodNativeEnum<
|
|
4095
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
|
|
4096
|
-
> = z.nativeEnum(
|
|
4097
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type,
|
|
4098
|
-
);
|
|
4099
|
-
/** @internal */
|
|
4100
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$outboundSchema:
|
|
4101
|
-
z.ZodNativeEnum<
|
|
4102
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type
|
|
4103
|
-
> =
|
|
4104
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema;
|
|
4105
|
-
|
|
4106
|
-
/** @internal */
|
|
4107
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema:
|
|
4108
|
-
z.ZodNativeEnum<
|
|
4109
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
|
|
4110
|
-
> = z.nativeEnum(UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl);
|
|
4111
|
-
/** @internal */
|
|
4112
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$outboundSchema:
|
|
4113
|
-
z.ZodNativeEnum<
|
|
4114
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl
|
|
4115
|
-
> = UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema;
|
|
4116
|
-
|
|
4117
|
-
/** @internal */
|
|
4118
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema:
|
|
4119
|
-
z.ZodType<
|
|
4120
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
|
|
4121
|
-
z.ZodTypeDef,
|
|
4122
|
-
unknown
|
|
4123
|
-
> = z.object({
|
|
4124
|
-
type:
|
|
4125
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$inboundSchema,
|
|
4126
|
-
ttl: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$inboundSchema
|
|
4127
|
-
.default("5m"),
|
|
4128
|
-
});
|
|
4129
|
-
/** @internal */
|
|
4130
|
-
export type UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound =
|
|
4131
|
-
{
|
|
4132
|
-
type: string;
|
|
4133
|
-
ttl: string;
|
|
4134
|
-
};
|
|
4135
|
-
|
|
4136
|
-
/** @internal */
|
|
4137
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema:
|
|
4138
|
-
z.ZodType<
|
|
4139
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound,
|
|
4140
|
-
z.ZodTypeDef,
|
|
4141
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl
|
|
4142
|
-
> = z.object({
|
|
4143
|
-
type:
|
|
4144
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages4Type$outboundSchema,
|
|
4145
|
-
ttl: UpdateDatapoint2DatasetsResponse200ApplicationJSONTtl$outboundSchema
|
|
4146
|
-
.default("5m"),
|
|
4147
|
-
});
|
|
4148
|
-
|
|
4149
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSONCacheControlToJSON(
|
|
4150
|
-
updateDatapoint2DatasetsResponse200ApplicationJSONCacheControl:
|
|
4151
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
|
|
4152
|
-
): string {
|
|
4153
|
-
return JSON.stringify(
|
|
4154
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema
|
|
4155
|
-
.parse(updateDatapoint2DatasetsResponse200ApplicationJSONCacheControl),
|
|
4156
|
-
);
|
|
4157
|
-
}
|
|
4158
|
-
export function updateDatapoint2DatasetsResponse200ApplicationJSONCacheControlFromJSON(
|
|
4159
|
-
jsonString: string,
|
|
4160
|
-
): SafeParseResult<
|
|
4161
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl,
|
|
4162
|
-
SDKValidationError
|
|
4163
|
-
> {
|
|
4164
|
-
return safeParse(
|
|
4165
|
-
jsonString,
|
|
4166
|
-
(x) =>
|
|
4167
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema
|
|
4168
|
-
.parse(JSON.parse(x)),
|
|
4169
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl' from JSON`,
|
|
4170
|
-
);
|
|
4171
|
-
}
|
|
4172
|
-
|
|
4173
|
-
/** @internal */
|
|
4174
|
-
export const UpdateDatapoint2DatasetsResponse2001$inboundSchema: z.ZodType<
|
|
4175
|
-
UpdateDatapoint2DatasetsResponse2001,
|
|
4176
|
-
z.ZodTypeDef,
|
|
4177
|
-
unknown
|
|
4178
|
-
> = z.object({
|
|
4179
|
-
type: z.literal("text"),
|
|
4180
|
-
text: z.string(),
|
|
4181
|
-
cache_control: z.lazy(() =>
|
|
4182
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$inboundSchema
|
|
4183
|
-
).optional(),
|
|
4184
|
-
}).transform((v) => {
|
|
4185
|
-
return remap$(v, {
|
|
4186
|
-
"cache_control": "cacheControl",
|
|
4187
|
-
});
|
|
4188
|
-
});
|
|
4189
|
-
/** @internal */
|
|
4190
|
-
export type UpdateDatapoint2DatasetsResponse2001$Outbound = {
|
|
4191
|
-
type: "text";
|
|
4192
|
-
text: string;
|
|
4193
|
-
cache_control?:
|
|
4194
|
-
| UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$Outbound
|
|
4195
|
-
| undefined;
|
|
4196
|
-
};
|
|
4197
|
-
|
|
4198
|
-
/** @internal */
|
|
4199
|
-
export const UpdateDatapoint2DatasetsResponse2001$outboundSchema: z.ZodType<
|
|
4200
|
-
UpdateDatapoint2DatasetsResponse2001$Outbound,
|
|
4201
|
-
z.ZodTypeDef,
|
|
4202
|
-
UpdateDatapoint2DatasetsResponse2001
|
|
4203
|
-
> = z.object({
|
|
4204
|
-
type: z.literal("text"),
|
|
4205
|
-
text: z.string(),
|
|
4206
|
-
cacheControl: z.lazy(() =>
|
|
4207
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONCacheControl$outboundSchema
|
|
4208
|
-
).optional(),
|
|
4209
|
-
}).transform((v) => {
|
|
4210
|
-
return remap$(v, {
|
|
4211
|
-
cacheControl: "cache_control",
|
|
2482
|
+
z.ZodTypeDef,
|
|
2483
|
+
UpdateDatapointMessagesDatasetsToolMessage
|
|
2484
|
+
> = z.object({
|
|
2485
|
+
role: z.literal("tool"),
|
|
2486
|
+
content: z.union([
|
|
2487
|
+
z.string(),
|
|
2488
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2489
|
+
]),
|
|
2490
|
+
toolCallId: z.string(),
|
|
2491
|
+
cacheControl: z.lazy(() =>
|
|
2492
|
+
UpdateDatapointMessagesDatasetsCacheControl$outboundSchema
|
|
2493
|
+
).optional(),
|
|
2494
|
+
}).transform((v) => {
|
|
2495
|
+
return remap$(v, {
|
|
2496
|
+
toolCallId: "tool_call_id",
|
|
2497
|
+
cacheControl: "cache_control",
|
|
2498
|
+
});
|
|
4212
2499
|
});
|
|
4213
|
-
});
|
|
4214
2500
|
|
|
4215
|
-
export function
|
|
4216
|
-
|
|
2501
|
+
export function updateDatapointMessagesDatasetsToolMessageToJSON(
|
|
2502
|
+
updateDatapointMessagesDatasetsToolMessage:
|
|
2503
|
+
UpdateDatapointMessagesDatasetsToolMessage,
|
|
4217
2504
|
): string {
|
|
4218
2505
|
return JSON.stringify(
|
|
4219
|
-
|
|
4220
|
-
|
|
2506
|
+
UpdateDatapointMessagesDatasetsToolMessage$outboundSchema.parse(
|
|
2507
|
+
updateDatapointMessagesDatasetsToolMessage,
|
|
4221
2508
|
),
|
|
4222
2509
|
);
|
|
4223
2510
|
}
|
|
4224
|
-
export function
|
|
2511
|
+
export function updateDatapointMessagesDatasetsToolMessageFromJSON(
|
|
4225
2512
|
jsonString: string,
|
|
4226
|
-
): SafeParseResult<
|
|
2513
|
+
): SafeParseResult<
|
|
2514
|
+
UpdateDatapointMessagesDatasetsToolMessage,
|
|
2515
|
+
SDKValidationError
|
|
2516
|
+
> {
|
|
4227
2517
|
return safeParse(
|
|
4228
2518
|
jsonString,
|
|
4229
2519
|
(x) =>
|
|
4230
|
-
|
|
4231
|
-
|
|
2520
|
+
UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(
|
|
2521
|
+
JSON.parse(x),
|
|
2522
|
+
),
|
|
2523
|
+
`Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`,
|
|
4232
2524
|
);
|
|
4233
2525
|
}
|
|
4234
2526
|
|
|
4235
2527
|
/** @internal */
|
|
4236
|
-
export const
|
|
4237
|
-
z.ZodType<
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
]);
|
|
2528
|
+
export const UpdateDatapointContentDatasetsResponse2002$inboundSchema:
|
|
2529
|
+
z.ZodType<UpdateDatapointContentDatasetsResponse2002, z.ZodTypeDef, unknown> =
|
|
2530
|
+
z.union([
|
|
2531
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2532
|
+
z.object({ type: z.literal("text") }),
|
|
2533
|
+
),
|
|
2534
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2535
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2536
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2537
|
+
]);
|
|
4247
2538
|
/** @internal */
|
|
4248
|
-
export type
|
|
4249
|
-
|
|
|
2539
|
+
export type UpdateDatapointContentDatasetsResponse2002$Outbound =
|
|
2540
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4250
2541
|
| components.RefusalPartSchema$Outbound
|
|
4251
2542
|
| components.ReasoningPartSchema$Outbound
|
|
4252
2543
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
4253
2544
|
|
|
4254
2545
|
/** @internal */
|
|
4255
|
-
export const
|
|
2546
|
+
export const UpdateDatapointContentDatasetsResponse2002$outboundSchema:
|
|
4256
2547
|
z.ZodType<
|
|
4257
|
-
|
|
2548
|
+
UpdateDatapointContentDatasetsResponse2002$Outbound,
|
|
4258
2549
|
z.ZodTypeDef,
|
|
4259
|
-
|
|
2550
|
+
UpdateDatapointContentDatasetsResponse2002
|
|
4260
2551
|
> = z.union([
|
|
4261
|
-
|
|
2552
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2553
|
+
z.object({ type: z.literal("text") }),
|
|
2554
|
+
),
|
|
4262
2555
|
components.RefusalPartSchema$outboundSchema,
|
|
4263
2556
|
components.ReasoningPartSchema$outboundSchema,
|
|
4264
2557
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
4265
2558
|
]);
|
|
4266
2559
|
|
|
4267
|
-
export function
|
|
4268
|
-
|
|
4269
|
-
|
|
2560
|
+
export function updateDatapointContentDatasetsResponse2002ToJSON(
|
|
2561
|
+
updateDatapointContentDatasetsResponse2002:
|
|
2562
|
+
UpdateDatapointContentDatasetsResponse2002,
|
|
4270
2563
|
): string {
|
|
4271
2564
|
return JSON.stringify(
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
),
|
|
2565
|
+
UpdateDatapointContentDatasetsResponse2002$outboundSchema.parse(
|
|
2566
|
+
updateDatapointContentDatasetsResponse2002,
|
|
2567
|
+
),
|
|
4276
2568
|
);
|
|
4277
2569
|
}
|
|
4278
|
-
export function
|
|
2570
|
+
export function updateDatapointContentDatasetsResponse2002FromJSON(
|
|
4279
2571
|
jsonString: string,
|
|
4280
2572
|
): SafeParseResult<
|
|
4281
|
-
|
|
2573
|
+
UpdateDatapointContentDatasetsResponse2002,
|
|
4282
2574
|
SDKValidationError
|
|
4283
2575
|
> {
|
|
4284
2576
|
return safeParse(
|
|
4285
2577
|
jsonString,
|
|
4286
2578
|
(x) =>
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
|
|
2579
|
+
UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(
|
|
2580
|
+
JSON.parse(x),
|
|
2581
|
+
),
|
|
2582
|
+
`Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`,
|
|
4290
2583
|
);
|
|
4291
2584
|
}
|
|
4292
2585
|
|
|
@@ -4298,18 +2591,22 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
|
|
|
4298
2591
|
unknown
|
|
4299
2592
|
> = z.union([
|
|
4300
2593
|
z.string(),
|
|
4301
|
-
z.array(
|
|
4302
|
-
z.
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
2594
|
+
z.array(
|
|
2595
|
+
z.union([
|
|
2596
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2597
|
+
z.object({ type: z.literal("text") }),
|
|
2598
|
+
),
|
|
2599
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2600
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2601
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2602
|
+
]),
|
|
2603
|
+
),
|
|
4307
2604
|
]);
|
|
4308
2605
|
/** @internal */
|
|
4309
2606
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$Outbound =
|
|
4310
2607
|
| string
|
|
4311
2608
|
| Array<
|
|
4312
|
-
|
|
|
2609
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4313
2610
|
| components.RefusalPartSchema$Outbound
|
|
4314
2611
|
| components.ReasoningPartSchema$Outbound
|
|
4315
2612
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -4323,12 +2620,16 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBo
|
|
|
4323
2620
|
UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent
|
|
4324
2621
|
> = z.union([
|
|
4325
2622
|
z.string(),
|
|
4326
|
-
z.array(
|
|
4327
|
-
z.
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
2623
|
+
z.array(
|
|
2624
|
+
z.union([
|
|
2625
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2626
|
+
z.object({ type: z.literal("text") }),
|
|
2627
|
+
),
|
|
2628
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2629
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2630
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2631
|
+
]),
|
|
2632
|
+
),
|
|
4332
2633
|
]);
|
|
4333
2634
|
|
|
4334
2635
|
export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentToJSON(
|
|
@@ -4538,7 +2839,9 @@ export const UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema:
|
|
|
4538
2839
|
z.string(),
|
|
4539
2840
|
z.array(
|
|
4540
2841
|
z.union([
|
|
4541
|
-
|
|
2842
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
2843
|
+
z.object({ type: z.literal("text") }),
|
|
2844
|
+
),
|
|
4542
2845
|
components.RefusalPartSchema$inboundSchema,
|
|
4543
2846
|
components.ReasoningPartSchema$inboundSchema,
|
|
4544
2847
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -4565,7 +2868,7 @@ export type UpdateDatapointMessagesDatasetsAssistantMessage$Outbound = {
|
|
|
4565
2868
|
content?:
|
|
4566
2869
|
| string
|
|
4567
2870
|
| Array<
|
|
4568
|
-
|
|
|
2871
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4569
2872
|
| components.RefusalPartSchema$Outbound
|
|
4570
2873
|
| components.ReasoningPartSchema$Outbound
|
|
4571
2874
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -4593,7 +2896,9 @@ export const UpdateDatapointMessagesDatasetsAssistantMessage$outboundSchema:
|
|
|
4593
2896
|
z.string(),
|
|
4594
2897
|
z.array(
|
|
4595
2898
|
z.union([
|
|
4596
|
-
|
|
2899
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2900
|
+
z.object({ type: z.literal("text") }),
|
|
2901
|
+
),
|
|
4597
2902
|
components.RefusalPartSchema$outboundSchema,
|
|
4598
2903
|
components.ReasoningPartSchema$outboundSchema,
|
|
4599
2904
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -4643,81 +2948,65 @@ export function updateDatapointMessagesDatasetsAssistantMessageFromJSON(
|
|
|
4643
2948
|
}
|
|
4644
2949
|
|
|
4645
2950
|
/** @internal */
|
|
4646
|
-
export const
|
|
4647
|
-
z.ZodNativeEnum<
|
|
4648
|
-
|
|
4649
|
-
> = z.nativeEnum(
|
|
4650
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type,
|
|
4651
|
-
);
|
|
2951
|
+
export const UpdateDatapoint2DatasetsResponse200Type$inboundSchema:
|
|
2952
|
+
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> = z
|
|
2953
|
+
.nativeEnum(UpdateDatapoint2DatasetsResponse200Type);
|
|
4652
2954
|
/** @internal */
|
|
4653
|
-
export const
|
|
4654
|
-
z.ZodNativeEnum<
|
|
4655
|
-
|
|
4656
|
-
> =
|
|
4657
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessages3Type$inboundSchema;
|
|
2955
|
+
export const UpdateDatapoint2DatasetsResponse200Type$outboundSchema:
|
|
2956
|
+
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> =
|
|
2957
|
+
UpdateDatapoint2DatasetsResponse200Type$inboundSchema;
|
|
4658
2958
|
|
|
4659
2959
|
/** @internal */
|
|
4660
|
-
export const
|
|
4661
|
-
|
|
4662
|
-
|
|
4663
|
-
);
|
|
2960
|
+
export const UpdateDatapoint2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
|
|
2961
|
+
typeof UpdateDatapoint2DatasetsTtl
|
|
2962
|
+
> = z.nativeEnum(UpdateDatapoint2DatasetsTtl);
|
|
4664
2963
|
/** @internal */
|
|
4665
|
-
export const
|
|
4666
|
-
|
|
4667
|
-
|
|
2964
|
+
export const UpdateDatapoint2DatasetsTtl$outboundSchema: z.ZodNativeEnum<
|
|
2965
|
+
typeof UpdateDatapoint2DatasetsTtl
|
|
2966
|
+
> = UpdateDatapoint2DatasetsTtl$inboundSchema;
|
|
4668
2967
|
|
|
4669
2968
|
/** @internal */
|
|
4670
|
-
export const
|
|
4671
|
-
|
|
4672
|
-
|
|
4673
|
-
|
|
4674
|
-
|
|
4675
|
-
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
ttl: UpdateDatapoint2DatasetsResponse200Ttl$inboundSchema.default("5m"),
|
|
4679
|
-
});
|
|
2969
|
+
export const UpdateDatapoint2DatasetsCacheControl$inboundSchema: z.ZodType<
|
|
2970
|
+
UpdateDatapoint2DatasetsCacheControl,
|
|
2971
|
+
z.ZodTypeDef,
|
|
2972
|
+
unknown
|
|
2973
|
+
> = z.object({
|
|
2974
|
+
type: UpdateDatapoint2DatasetsResponse200Type$inboundSchema,
|
|
2975
|
+
ttl: UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
|
|
2976
|
+
});
|
|
4680
2977
|
/** @internal */
|
|
4681
|
-
export type
|
|
2978
|
+
export type UpdateDatapoint2DatasetsCacheControl$Outbound = {
|
|
4682
2979
|
type: string;
|
|
4683
2980
|
ttl: string;
|
|
4684
2981
|
};
|
|
4685
2982
|
|
|
4686
2983
|
/** @internal */
|
|
4687
|
-
export const
|
|
4688
|
-
|
|
4689
|
-
|
|
4690
|
-
|
|
4691
|
-
|
|
4692
|
-
|
|
4693
|
-
|
|
4694
|
-
|
|
4695
|
-
ttl: UpdateDatapoint2DatasetsResponse200Ttl$outboundSchema.default("5m"),
|
|
4696
|
-
});
|
|
2984
|
+
export const UpdateDatapoint2DatasetsCacheControl$outboundSchema: z.ZodType<
|
|
2985
|
+
UpdateDatapoint2DatasetsCacheControl$Outbound,
|
|
2986
|
+
z.ZodTypeDef,
|
|
2987
|
+
UpdateDatapoint2DatasetsCacheControl
|
|
2988
|
+
> = z.object({
|
|
2989
|
+
type: UpdateDatapoint2DatasetsResponse200Type$outboundSchema,
|
|
2990
|
+
ttl: UpdateDatapoint2DatasetsTtl$outboundSchema.default("5m"),
|
|
2991
|
+
});
|
|
4697
2992
|
|
|
4698
|
-
export function
|
|
4699
|
-
|
|
4700
|
-
UpdateDatapoint2DatasetsResponse200CacheControl,
|
|
2993
|
+
export function updateDatapoint2DatasetsCacheControlToJSON(
|
|
2994
|
+
updateDatapoint2DatasetsCacheControl: UpdateDatapoint2DatasetsCacheControl,
|
|
4701
2995
|
): string {
|
|
4702
2996
|
return JSON.stringify(
|
|
4703
|
-
|
|
4704
|
-
|
|
2997
|
+
UpdateDatapoint2DatasetsCacheControl$outboundSchema.parse(
|
|
2998
|
+
updateDatapoint2DatasetsCacheControl,
|
|
4705
2999
|
),
|
|
4706
3000
|
);
|
|
4707
3001
|
}
|
|
4708
|
-
export function
|
|
3002
|
+
export function updateDatapoint2DatasetsCacheControlFromJSON(
|
|
4709
3003
|
jsonString: string,
|
|
4710
|
-
): SafeParseResult<
|
|
4711
|
-
UpdateDatapoint2DatasetsResponse200CacheControl,
|
|
4712
|
-
SDKValidationError
|
|
4713
|
-
> {
|
|
3004
|
+
): SafeParseResult<UpdateDatapoint2DatasetsCacheControl, SDKValidationError> {
|
|
4714
3005
|
return safeParse(
|
|
4715
3006
|
jsonString,
|
|
4716
3007
|
(x) =>
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
),
|
|
4720
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponse200CacheControl' from JSON`,
|
|
3008
|
+
UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3009
|
+
`Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`,
|
|
4721
3010
|
);
|
|
4722
3011
|
}
|
|
4723
3012
|
|
|
@@ -4729,7 +3018,7 @@ export const UpdateDatapoint2Datasets4$inboundSchema: z.ZodType<
|
|
|
4729
3018
|
> = z.object({
|
|
4730
3019
|
type: z.literal("file"),
|
|
4731
3020
|
cache_control: z.lazy(() =>
|
|
4732
|
-
|
|
3021
|
+
UpdateDatapoint2DatasetsCacheControl$inboundSchema
|
|
4733
3022
|
).optional(),
|
|
4734
3023
|
file: components.FileContentPartSchema$inboundSchema,
|
|
4735
3024
|
}).transform((v) => {
|
|
@@ -4740,9 +3029,7 @@ export const UpdateDatapoint2Datasets4$inboundSchema: z.ZodType<
|
|
|
4740
3029
|
/** @internal */
|
|
4741
3030
|
export type UpdateDatapoint2Datasets4$Outbound = {
|
|
4742
3031
|
type: "file";
|
|
4743
|
-
cache_control?:
|
|
4744
|
-
| UpdateDatapoint2DatasetsResponse200CacheControl$Outbound
|
|
4745
|
-
| undefined;
|
|
3032
|
+
cache_control?: UpdateDatapoint2DatasetsCacheControl$Outbound | undefined;
|
|
4746
3033
|
file: components.FileContentPartSchema$Outbound;
|
|
4747
3034
|
};
|
|
4748
3035
|
|
|
@@ -4754,7 +3041,7 @@ export const UpdateDatapoint2Datasets4$outboundSchema: z.ZodType<
|
|
|
4754
3041
|
> = z.object({
|
|
4755
3042
|
type: z.literal("file"),
|
|
4756
3043
|
cacheControl: z.lazy(() =>
|
|
4757
|
-
|
|
3044
|
+
UpdateDatapoint2DatasetsCacheControl$outboundSchema
|
|
4758
3045
|
).optional(),
|
|
4759
3046
|
file: components.FileContentPartSchema$outboundSchema,
|
|
4760
3047
|
}).transform((v) => {
|
|
@@ -4781,197 +3068,62 @@ export function updateDatapoint2Datasets4FromJSON(
|
|
|
4781
3068
|
}
|
|
4782
3069
|
|
|
4783
3070
|
/** @internal */
|
|
4784
|
-
export const
|
|
4785
|
-
|
|
4786
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
|
|
4787
|
-
> = z.nativeEnum(
|
|
4788
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType,
|
|
4789
|
-
);
|
|
4790
|
-
/** @internal */
|
|
4791
|
-
export const UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema:
|
|
4792
|
-
z.ZodNativeEnum<
|
|
4793
|
-
typeof UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType
|
|
4794
|
-
> =
|
|
4795
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema;
|
|
4796
|
-
|
|
4797
|
-
/** @internal */
|
|
4798
|
-
export const UpdateDatapoint2DatasetsResponseTtl$inboundSchema: z.ZodNativeEnum<
|
|
4799
|
-
typeof UpdateDatapoint2DatasetsResponseTtl
|
|
4800
|
-
> = z.nativeEnum(UpdateDatapoint2DatasetsResponseTtl);
|
|
4801
|
-
/** @internal */
|
|
4802
|
-
export const UpdateDatapoint2DatasetsResponseTtl$outboundSchema:
|
|
4803
|
-
z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponseTtl> =
|
|
4804
|
-
UpdateDatapoint2DatasetsResponseTtl$inboundSchema;
|
|
4805
|
-
|
|
4806
|
-
/** @internal */
|
|
4807
|
-
export const UpdateDatapoint2DatasetsResponseCacheControl$inboundSchema:
|
|
4808
|
-
z.ZodType<
|
|
4809
|
-
UpdateDatapoint2DatasetsResponseCacheControl,
|
|
4810
|
-
z.ZodTypeDef,
|
|
4811
|
-
unknown
|
|
4812
|
-
> = z.object({
|
|
4813
|
-
type:
|
|
4814
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$inboundSchema,
|
|
4815
|
-
ttl: UpdateDatapoint2DatasetsResponseTtl$inboundSchema.default("5m"),
|
|
4816
|
-
});
|
|
4817
|
-
/** @internal */
|
|
4818
|
-
export type UpdateDatapoint2DatasetsResponseCacheControl$Outbound = {
|
|
4819
|
-
type: string;
|
|
4820
|
-
ttl: string;
|
|
4821
|
-
};
|
|
4822
|
-
|
|
4823
|
-
/** @internal */
|
|
4824
|
-
export const UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema:
|
|
4825
|
-
z.ZodType<
|
|
4826
|
-
UpdateDatapoint2DatasetsResponseCacheControl$Outbound,
|
|
4827
|
-
z.ZodTypeDef,
|
|
4828
|
-
UpdateDatapoint2DatasetsResponseCacheControl
|
|
4829
|
-
> = z.object({
|
|
4830
|
-
type:
|
|
4831
|
-
UpdateDatapoint2DatasetsResponse200ApplicationJSONResponseBodyMessagesType$outboundSchema,
|
|
4832
|
-
ttl: UpdateDatapoint2DatasetsResponseTtl$outboundSchema.default("5m"),
|
|
4833
|
-
});
|
|
4834
|
-
|
|
4835
|
-
export function updateDatapoint2DatasetsResponseCacheControlToJSON(
|
|
4836
|
-
updateDatapoint2DatasetsResponseCacheControl:
|
|
4837
|
-
UpdateDatapoint2DatasetsResponseCacheControl,
|
|
4838
|
-
): string {
|
|
4839
|
-
return JSON.stringify(
|
|
4840
|
-
UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema.parse(
|
|
4841
|
-
updateDatapoint2DatasetsResponseCacheControl,
|
|
4842
|
-
),
|
|
4843
|
-
);
|
|
4844
|
-
}
|
|
4845
|
-
export function updateDatapoint2DatasetsResponseCacheControlFromJSON(
|
|
4846
|
-
jsonString: string,
|
|
4847
|
-
): SafeParseResult<
|
|
4848
|
-
UpdateDatapoint2DatasetsResponseCacheControl,
|
|
4849
|
-
SDKValidationError
|
|
4850
|
-
> {
|
|
4851
|
-
return safeParse(
|
|
4852
|
-
jsonString,
|
|
4853
|
-
(x) =>
|
|
4854
|
-
UpdateDatapoint2DatasetsResponseCacheControl$inboundSchema.parse(
|
|
4855
|
-
JSON.parse(x),
|
|
4856
|
-
),
|
|
4857
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponseCacheControl' from JSON`,
|
|
4858
|
-
);
|
|
4859
|
-
}
|
|
4860
|
-
|
|
4861
|
-
/** @internal */
|
|
4862
|
-
export const UpdateDatapoint2DatasetsResponse1$inboundSchema: z.ZodType<
|
|
4863
|
-
UpdateDatapoint2DatasetsResponse1,
|
|
3071
|
+
export const UpdateDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
|
|
3072
|
+
UpdateDatapointContentDatasetsResponse2,
|
|
4864
3073
|
z.ZodTypeDef,
|
|
4865
3074
|
unknown
|
|
4866
|
-
> = z.
|
|
4867
|
-
|
|
4868
|
-
|
|
4869
|
-
|
|
4870
|
-
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4874
|
-
"cache_control": "cacheControl",
|
|
4875
|
-
});
|
|
4876
|
-
});
|
|
4877
|
-
/** @internal */
|
|
4878
|
-
export type UpdateDatapoint2DatasetsResponse1$Outbound = {
|
|
4879
|
-
type: "text";
|
|
4880
|
-
text: string;
|
|
4881
|
-
cache_control?:
|
|
4882
|
-
| UpdateDatapoint2DatasetsResponseCacheControl$Outbound
|
|
4883
|
-
| undefined;
|
|
4884
|
-
};
|
|
4885
|
-
|
|
4886
|
-
/** @internal */
|
|
4887
|
-
export const UpdateDatapoint2DatasetsResponse1$outboundSchema: z.ZodType<
|
|
4888
|
-
UpdateDatapoint2DatasetsResponse1$Outbound,
|
|
4889
|
-
z.ZodTypeDef,
|
|
4890
|
-
UpdateDatapoint2DatasetsResponse1
|
|
4891
|
-
> = z.object({
|
|
4892
|
-
type: z.literal("text"),
|
|
4893
|
-
text: z.string(),
|
|
4894
|
-
cacheControl: z.lazy(() =>
|
|
4895
|
-
UpdateDatapoint2DatasetsResponseCacheControl$outboundSchema
|
|
4896
|
-
).optional(),
|
|
4897
|
-
}).transform((v) => {
|
|
4898
|
-
return remap$(v, {
|
|
4899
|
-
cacheControl: "cache_control",
|
|
4900
|
-
});
|
|
4901
|
-
});
|
|
4902
|
-
|
|
4903
|
-
export function updateDatapoint2DatasetsResponse1ToJSON(
|
|
4904
|
-
updateDatapoint2DatasetsResponse1: UpdateDatapoint2DatasetsResponse1,
|
|
4905
|
-
): string {
|
|
4906
|
-
return JSON.stringify(
|
|
4907
|
-
UpdateDatapoint2DatasetsResponse1$outboundSchema.parse(
|
|
4908
|
-
updateDatapoint2DatasetsResponse1,
|
|
4909
|
-
),
|
|
4910
|
-
);
|
|
4911
|
-
}
|
|
4912
|
-
export function updateDatapoint2DatasetsResponse1FromJSON(
|
|
4913
|
-
jsonString: string,
|
|
4914
|
-
): SafeParseResult<UpdateDatapoint2DatasetsResponse1, SDKValidationError> {
|
|
4915
|
-
return safeParse(
|
|
4916
|
-
jsonString,
|
|
4917
|
-
(x) => UpdateDatapoint2DatasetsResponse1$inboundSchema.parse(JSON.parse(x)),
|
|
4918
|
-
`Failed to parse 'UpdateDatapoint2DatasetsResponse1' from JSON`,
|
|
4919
|
-
);
|
|
4920
|
-
}
|
|
4921
|
-
|
|
4922
|
-
/** @internal */
|
|
4923
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema:
|
|
4924
|
-
z.ZodType<
|
|
4925
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJson2,
|
|
4926
|
-
z.ZodTypeDef,
|
|
4927
|
-
unknown
|
|
4928
|
-
> = z.union([
|
|
4929
|
-
z.lazy(() => UpdateDatapoint2DatasetsResponse1$inboundSchema),
|
|
4930
|
-
components.ImageContentPartSchema$inboundSchema,
|
|
4931
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
4932
|
-
z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
|
|
4933
|
-
]);
|
|
3075
|
+
> = z.union([
|
|
3076
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3077
|
+
z.object({ type: z.literal("text") }),
|
|
3078
|
+
),
|
|
3079
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3080
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3081
|
+
z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
|
|
3082
|
+
]);
|
|
4934
3083
|
/** @internal */
|
|
4935
|
-
export type
|
|
4936
|
-
|
|
|
3084
|
+
export type UpdateDatapointContentDatasetsResponse2$Outbound =
|
|
3085
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4937
3086
|
| components.ImageContentPartSchema$Outbound
|
|
4938
3087
|
| components.AudioContentPartSchema$Outbound
|
|
4939
3088
|
| UpdateDatapoint2Datasets4$Outbound;
|
|
4940
3089
|
|
|
4941
3090
|
/** @internal */
|
|
4942
|
-
export const
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
z.
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
3091
|
+
export const UpdateDatapointContentDatasetsResponse2$outboundSchema: z.ZodType<
|
|
3092
|
+
UpdateDatapointContentDatasetsResponse2$Outbound,
|
|
3093
|
+
z.ZodTypeDef,
|
|
3094
|
+
UpdateDatapointContentDatasetsResponse2
|
|
3095
|
+
> = z.union([
|
|
3096
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3097
|
+
z.object({ type: z.literal("text") }),
|
|
3098
|
+
),
|
|
3099
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3100
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3101
|
+
z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
|
|
3102
|
+
]);
|
|
4953
3103
|
|
|
4954
|
-
export function
|
|
4955
|
-
|
|
4956
|
-
|
|
3104
|
+
export function updateDatapointContentDatasetsResponse2ToJSON(
|
|
3105
|
+
updateDatapointContentDatasetsResponse2:
|
|
3106
|
+
UpdateDatapointContentDatasetsResponse2,
|
|
4957
3107
|
): string {
|
|
4958
3108
|
return JSON.stringify(
|
|
4959
|
-
|
|
4960
|
-
|
|
3109
|
+
UpdateDatapointContentDatasetsResponse2$outboundSchema.parse(
|
|
3110
|
+
updateDatapointContentDatasetsResponse2,
|
|
3111
|
+
),
|
|
4961
3112
|
);
|
|
4962
3113
|
}
|
|
4963
|
-
export function
|
|
3114
|
+
export function updateDatapointContentDatasetsResponse2FromJSON(
|
|
4964
3115
|
jsonString: string,
|
|
4965
3116
|
): SafeParseResult<
|
|
4966
|
-
|
|
3117
|
+
UpdateDatapointContentDatasetsResponse2,
|
|
4967
3118
|
SDKValidationError
|
|
4968
3119
|
> {
|
|
4969
3120
|
return safeParse(
|
|
4970
3121
|
jsonString,
|
|
4971
|
-
(x) =>
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
3122
|
+
(x) =>
|
|
3123
|
+
UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(
|
|
3124
|
+
JSON.parse(x),
|
|
3125
|
+
),
|
|
3126
|
+
`Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`,
|
|
4975
3127
|
);
|
|
4976
3128
|
}
|
|
4977
3129
|
|
|
@@ -4983,18 +3135,22 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$in
|
|
|
4983
3135
|
unknown
|
|
4984
3136
|
> = z.union([
|
|
4985
3137
|
z.string(),
|
|
4986
|
-
z.array(
|
|
4987
|
-
z.
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
3138
|
+
z.array(
|
|
3139
|
+
z.union([
|
|
3140
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3141
|
+
z.object({ type: z.literal("text") }),
|
|
3142
|
+
),
|
|
3143
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3144
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3145
|
+
z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
|
|
3146
|
+
]),
|
|
3147
|
+
),
|
|
4992
3148
|
]);
|
|
4993
3149
|
/** @internal */
|
|
4994
3150
|
export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$Outbound =
|
|
4995
3151
|
| string
|
|
4996
3152
|
| Array<
|
|
4997
|
-
|
|
|
3153
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
4998
3154
|
| components.ImageContentPartSchema$Outbound
|
|
4999
3155
|
| components.AudioContentPartSchema$Outbound
|
|
5000
3156
|
| UpdateDatapoint2Datasets4$Outbound
|
|
@@ -5008,12 +3164,16 @@ export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$ou
|
|
|
5008
3164
|
UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent
|
|
5009
3165
|
> = z.union([
|
|
5010
3166
|
z.string(),
|
|
5011
|
-
z.array(
|
|
5012
|
-
z.
|
|
5013
|
-
|
|
5014
|
-
|
|
5015
|
-
|
|
5016
|
-
|
|
3167
|
+
z.array(
|
|
3168
|
+
z.union([
|
|
3169
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3170
|
+
z.object({ type: z.literal("text") }),
|
|
3171
|
+
),
|
|
3172
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3173
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3174
|
+
z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
|
|
3175
|
+
]),
|
|
3176
|
+
),
|
|
5017
3177
|
]);
|
|
5018
3178
|
|
|
5019
3179
|
export function updateDatapointMessagesDatasetsResponse200ApplicationJSONContentToJSON(
|
|
@@ -5048,12 +3208,16 @@ export const UpdateDatapointMessagesDatasetsUserMessage$inboundSchema:
|
|
|
5048
3208
|
name: z.string().optional(),
|
|
5049
3209
|
content: z.union([
|
|
5050
3210
|
z.string(),
|
|
5051
|
-
z.array(
|
|
5052
|
-
z.
|
|
5053
|
-
|
|
5054
|
-
|
|
5055
|
-
|
|
5056
|
-
|
|
3211
|
+
z.array(
|
|
3212
|
+
z.union([
|
|
3213
|
+
components.TextContentPartSchema$inboundSchema.and(
|
|
3214
|
+
z.object({ type: z.literal("text") }),
|
|
3215
|
+
),
|
|
3216
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3217
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3218
|
+
z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
|
|
3219
|
+
]),
|
|
3220
|
+
),
|
|
5057
3221
|
]),
|
|
5058
3222
|
});
|
|
5059
3223
|
/** @internal */
|
|
@@ -5063,7 +3227,7 @@ export type UpdateDatapointMessagesDatasetsUserMessage$Outbound = {
|
|
|
5063
3227
|
content:
|
|
5064
3228
|
| string
|
|
5065
3229
|
| Array<
|
|
5066
|
-
|
|
|
3230
|
+
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
5067
3231
|
| components.ImageContentPartSchema$Outbound
|
|
5068
3232
|
| components.AudioContentPartSchema$Outbound
|
|
5069
3233
|
| UpdateDatapoint2Datasets4$Outbound
|
|
@@ -5081,12 +3245,16 @@ export const UpdateDatapointMessagesDatasetsUserMessage$outboundSchema:
|
|
|
5081
3245
|
name: z.string().optional(),
|
|
5082
3246
|
content: z.union([
|
|
5083
3247
|
z.string(),
|
|
5084
|
-
z.array(
|
|
5085
|
-
z.
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
3248
|
+
z.array(
|
|
3249
|
+
z.union([
|
|
3250
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
3251
|
+
z.object({ type: z.literal("text") }),
|
|
3252
|
+
),
|
|
3253
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3254
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3255
|
+
z.lazy(() => UpdateDatapoint2Datasets4$outboundSchema),
|
|
3256
|
+
]),
|
|
3257
|
+
),
|
|
5090
3258
|
]),
|
|
5091
3259
|
});
|
|
5092
3260
|
|
|
@@ -5116,164 +3284,6 @@ export function updateDatapointMessagesDatasetsUserMessageFromJSON(
|
|
|
5116
3284
|
);
|
|
5117
3285
|
}
|
|
5118
3286
|
|
|
5119
|
-
/** @internal */
|
|
5120
|
-
export const UpdateDatapointContentDatasetsResponse200Type$inboundSchema:
|
|
5121
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Type> = z
|
|
5122
|
-
.nativeEnum(UpdateDatapointContentDatasetsResponse200Type);
|
|
5123
|
-
/** @internal */
|
|
5124
|
-
export const UpdateDatapointContentDatasetsResponse200Type$outboundSchema:
|
|
5125
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Type> =
|
|
5126
|
-
UpdateDatapointContentDatasetsResponse200Type$inboundSchema;
|
|
5127
|
-
|
|
5128
|
-
/** @internal */
|
|
5129
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema:
|
|
5130
|
-
z.ZodNativeEnum<
|
|
5131
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
|
|
5132
|
-
> = z.nativeEnum(
|
|
5133
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType,
|
|
5134
|
-
);
|
|
5135
|
-
/** @internal */
|
|
5136
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema:
|
|
5137
|
-
z.ZodNativeEnum<
|
|
5138
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType
|
|
5139
|
-
> =
|
|
5140
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema;
|
|
5141
|
-
|
|
5142
|
-
/** @internal */
|
|
5143
|
-
export const UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema:
|
|
5144
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Ttl> = z
|
|
5145
|
-
.nativeEnum(UpdateDatapointContentDatasetsResponse200Ttl);
|
|
5146
|
-
/** @internal */
|
|
5147
|
-
export const UpdateDatapointContentDatasetsResponse200Ttl$outboundSchema:
|
|
5148
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponse200Ttl> =
|
|
5149
|
-
UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema;
|
|
5150
|
-
|
|
5151
|
-
/** @internal */
|
|
5152
|
-
export const UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema:
|
|
5153
|
-
z.ZodType<
|
|
5154
|
-
UpdateDatapointContentDatasetsResponse200CacheControl,
|
|
5155
|
-
z.ZodTypeDef,
|
|
5156
|
-
unknown
|
|
5157
|
-
> = z.object({
|
|
5158
|
-
type:
|
|
5159
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$inboundSchema,
|
|
5160
|
-
ttl: UpdateDatapointContentDatasetsResponse200Ttl$inboundSchema.default(
|
|
5161
|
-
"5m",
|
|
5162
|
-
),
|
|
5163
|
-
});
|
|
5164
|
-
/** @internal */
|
|
5165
|
-
export type UpdateDatapointContentDatasetsResponse200CacheControl$Outbound = {
|
|
5166
|
-
type: string;
|
|
5167
|
-
ttl: string;
|
|
5168
|
-
};
|
|
5169
|
-
|
|
5170
|
-
/** @internal */
|
|
5171
|
-
export const UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema:
|
|
5172
|
-
z.ZodType<
|
|
5173
|
-
UpdateDatapointContentDatasetsResponse200CacheControl$Outbound,
|
|
5174
|
-
z.ZodTypeDef,
|
|
5175
|
-
UpdateDatapointContentDatasetsResponse200CacheControl
|
|
5176
|
-
> = z.object({
|
|
5177
|
-
type:
|
|
5178
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONResponseBodyType$outboundSchema,
|
|
5179
|
-
ttl: UpdateDatapointContentDatasetsResponse200Ttl$outboundSchema.default(
|
|
5180
|
-
"5m",
|
|
5181
|
-
),
|
|
5182
|
-
});
|
|
5183
|
-
|
|
5184
|
-
export function updateDatapointContentDatasetsResponse200CacheControlToJSON(
|
|
5185
|
-
updateDatapointContentDatasetsResponse200CacheControl:
|
|
5186
|
-
UpdateDatapointContentDatasetsResponse200CacheControl,
|
|
5187
|
-
): string {
|
|
5188
|
-
return JSON.stringify(
|
|
5189
|
-
UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema.parse(
|
|
5190
|
-
updateDatapointContentDatasetsResponse200CacheControl,
|
|
5191
|
-
),
|
|
5192
|
-
);
|
|
5193
|
-
}
|
|
5194
|
-
export function updateDatapointContentDatasetsResponse200CacheControlFromJSON(
|
|
5195
|
-
jsonString: string,
|
|
5196
|
-
): SafeParseResult<
|
|
5197
|
-
UpdateDatapointContentDatasetsResponse200CacheControl,
|
|
5198
|
-
SDKValidationError
|
|
5199
|
-
> {
|
|
5200
|
-
return safeParse(
|
|
5201
|
-
jsonString,
|
|
5202
|
-
(x) =>
|
|
5203
|
-
UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema.parse(
|
|
5204
|
-
JSON.parse(x),
|
|
5205
|
-
),
|
|
5206
|
-
`Failed to parse 'UpdateDatapointContentDatasetsResponse200CacheControl' from JSON`,
|
|
5207
|
-
);
|
|
5208
|
-
}
|
|
5209
|
-
|
|
5210
|
-
/** @internal */
|
|
5211
|
-
export const UpdateDatapointContentDatasetsResponse2002$inboundSchema:
|
|
5212
|
-
z.ZodType<UpdateDatapointContentDatasetsResponse2002, z.ZodTypeDef, unknown> =
|
|
5213
|
-
z.object({
|
|
5214
|
-
type: UpdateDatapointContentDatasetsResponse200Type$inboundSchema,
|
|
5215
|
-
text: z.string(),
|
|
5216
|
-
cache_control: z.lazy(() =>
|
|
5217
|
-
UpdateDatapointContentDatasetsResponse200CacheControl$inboundSchema
|
|
5218
|
-
).optional(),
|
|
5219
|
-
}).transform((v) => {
|
|
5220
|
-
return remap$(v, {
|
|
5221
|
-
"cache_control": "cacheControl",
|
|
5222
|
-
});
|
|
5223
|
-
});
|
|
5224
|
-
/** @internal */
|
|
5225
|
-
export type UpdateDatapointContentDatasetsResponse2002$Outbound = {
|
|
5226
|
-
type: string;
|
|
5227
|
-
text: string;
|
|
5228
|
-
cache_control?:
|
|
5229
|
-
| UpdateDatapointContentDatasetsResponse200CacheControl$Outbound
|
|
5230
|
-
| undefined;
|
|
5231
|
-
};
|
|
5232
|
-
|
|
5233
|
-
/** @internal */
|
|
5234
|
-
export const UpdateDatapointContentDatasetsResponse2002$outboundSchema:
|
|
5235
|
-
z.ZodType<
|
|
5236
|
-
UpdateDatapointContentDatasetsResponse2002$Outbound,
|
|
5237
|
-
z.ZodTypeDef,
|
|
5238
|
-
UpdateDatapointContentDatasetsResponse2002
|
|
5239
|
-
> = z.object({
|
|
5240
|
-
type: UpdateDatapointContentDatasetsResponse200Type$outboundSchema,
|
|
5241
|
-
text: z.string(),
|
|
5242
|
-
cacheControl: z.lazy(() =>
|
|
5243
|
-
UpdateDatapointContentDatasetsResponse200CacheControl$outboundSchema
|
|
5244
|
-
).optional(),
|
|
5245
|
-
}).transform((v) => {
|
|
5246
|
-
return remap$(v, {
|
|
5247
|
-
cacheControl: "cache_control",
|
|
5248
|
-
});
|
|
5249
|
-
});
|
|
5250
|
-
|
|
5251
|
-
export function updateDatapointContentDatasetsResponse2002ToJSON(
|
|
5252
|
-
updateDatapointContentDatasetsResponse2002:
|
|
5253
|
-
UpdateDatapointContentDatasetsResponse2002,
|
|
5254
|
-
): string {
|
|
5255
|
-
return JSON.stringify(
|
|
5256
|
-
UpdateDatapointContentDatasetsResponse2002$outboundSchema.parse(
|
|
5257
|
-
updateDatapointContentDatasetsResponse2002,
|
|
5258
|
-
),
|
|
5259
|
-
);
|
|
5260
|
-
}
|
|
5261
|
-
export function updateDatapointContentDatasetsResponse2002FromJSON(
|
|
5262
|
-
jsonString: string,
|
|
5263
|
-
): SafeParseResult<
|
|
5264
|
-
UpdateDatapointContentDatasetsResponse2002,
|
|
5265
|
-
SDKValidationError
|
|
5266
|
-
> {
|
|
5267
|
-
return safeParse(
|
|
5268
|
-
jsonString,
|
|
5269
|
-
(x) =>
|
|
5270
|
-
UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(
|
|
5271
|
-
JSON.parse(x),
|
|
5272
|
-
),
|
|
5273
|
-
`Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`,
|
|
5274
|
-
);
|
|
5275
|
-
}
|
|
5276
|
-
|
|
5277
3287
|
/** @internal */
|
|
5278
3288
|
export const UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema:
|
|
5279
3289
|
z.ZodType<
|
|
@@ -5282,14 +3292,12 @@ export const UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema:
|
|
|
5282
3292
|
unknown
|
|
5283
3293
|
> = z.union([
|
|
5284
3294
|
z.string(),
|
|
5285
|
-
z.array(
|
|
5286
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2002$inboundSchema),
|
|
5287
|
-
),
|
|
3295
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5288
3296
|
]);
|
|
5289
3297
|
/** @internal */
|
|
5290
3298
|
export type UpdateDatapointMessagesDatasetsResponse200Content$Outbound =
|
|
5291
3299
|
| string
|
|
5292
|
-
| Array<
|
|
3300
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
5293
3301
|
|
|
5294
3302
|
/** @internal */
|
|
5295
3303
|
export const UpdateDatapointMessagesDatasetsResponse200Content$outboundSchema:
|
|
@@ -5299,9 +3307,7 @@ export const UpdateDatapointMessagesDatasetsResponse200Content$outboundSchema:
|
|
|
5299
3307
|
UpdateDatapointMessagesDatasetsResponse200Content
|
|
5300
3308
|
> = z.union([
|
|
5301
3309
|
z.string(),
|
|
5302
|
-
z.array(
|
|
5303
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2002$outboundSchema),
|
|
5304
|
-
),
|
|
3310
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5305
3311
|
]);
|
|
5306
3312
|
|
|
5307
3313
|
export function updateDatapointMessagesDatasetsResponse200ContentToJSON(
|
|
@@ -5340,16 +3346,14 @@ export const UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema:
|
|
|
5340
3346
|
role: z.literal("developer"),
|
|
5341
3347
|
content: z.union([
|
|
5342
3348
|
z.string(),
|
|
5343
|
-
z.array(
|
|
5344
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2002$inboundSchema),
|
|
5345
|
-
),
|
|
3349
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5346
3350
|
]),
|
|
5347
3351
|
name: z.string().optional(),
|
|
5348
3352
|
});
|
|
5349
3353
|
/** @internal */
|
|
5350
3354
|
export type UpdateDatapointMessagesDatasetsDeveloperMessage$Outbound = {
|
|
5351
3355
|
role: "developer";
|
|
5352
|
-
content: string | Array<
|
|
3356
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
5353
3357
|
name?: string | undefined;
|
|
5354
3358
|
};
|
|
5355
3359
|
|
|
@@ -5363,9 +3367,7 @@ export const UpdateDatapointMessagesDatasetsDeveloperMessage$outboundSchema:
|
|
|
5363
3367
|
role: z.literal("developer"),
|
|
5364
3368
|
content: z.union([
|
|
5365
3369
|
z.string(),
|
|
5366
|
-
z.array(
|
|
5367
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2002$outboundSchema),
|
|
5368
|
-
),
|
|
3370
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5369
3371
|
]),
|
|
5370
3372
|
name: z.string().optional(),
|
|
5371
3373
|
});
|
|
@@ -5396,161 +3398,6 @@ export function updateDatapointMessagesDatasetsDeveloperMessageFromJSON(
|
|
|
5396
3398
|
);
|
|
5397
3399
|
}
|
|
5398
3400
|
|
|
5399
|
-
/** @internal */
|
|
5400
|
-
export const UpdateDatapointContentDatasetsResponseType$inboundSchema:
|
|
5401
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseType> = z
|
|
5402
|
-
.nativeEnum(UpdateDatapointContentDatasetsResponseType);
|
|
5403
|
-
/** @internal */
|
|
5404
|
-
export const UpdateDatapointContentDatasetsResponseType$outboundSchema:
|
|
5405
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseType> =
|
|
5406
|
-
UpdateDatapointContentDatasetsResponseType$inboundSchema;
|
|
5407
|
-
|
|
5408
|
-
/** @internal */
|
|
5409
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema:
|
|
5410
|
-
z.ZodNativeEnum<
|
|
5411
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
|
|
5412
|
-
> = z.nativeEnum(
|
|
5413
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONType,
|
|
5414
|
-
);
|
|
5415
|
-
/** @internal */
|
|
5416
|
-
export const UpdateDatapointContentDatasetsResponse200ApplicationJSONType$outboundSchema:
|
|
5417
|
-
z.ZodNativeEnum<
|
|
5418
|
-
typeof UpdateDatapointContentDatasetsResponse200ApplicationJSONType
|
|
5419
|
-
> =
|
|
5420
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema;
|
|
5421
|
-
|
|
5422
|
-
/** @internal */
|
|
5423
|
-
export const UpdateDatapointContentDatasetsResponseTtl$inboundSchema:
|
|
5424
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseTtl> = z
|
|
5425
|
-
.nativeEnum(UpdateDatapointContentDatasetsResponseTtl);
|
|
5426
|
-
/** @internal */
|
|
5427
|
-
export const UpdateDatapointContentDatasetsResponseTtl$outboundSchema:
|
|
5428
|
-
z.ZodNativeEnum<typeof UpdateDatapointContentDatasetsResponseTtl> =
|
|
5429
|
-
UpdateDatapointContentDatasetsResponseTtl$inboundSchema;
|
|
5430
|
-
|
|
5431
|
-
/** @internal */
|
|
5432
|
-
export const UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema:
|
|
5433
|
-
z.ZodType<
|
|
5434
|
-
UpdateDatapointContentDatasetsResponseCacheControl,
|
|
5435
|
-
z.ZodTypeDef,
|
|
5436
|
-
unknown
|
|
5437
|
-
> = z.object({
|
|
5438
|
-
type:
|
|
5439
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONType$inboundSchema,
|
|
5440
|
-
ttl: UpdateDatapointContentDatasetsResponseTtl$inboundSchema.default("5m"),
|
|
5441
|
-
});
|
|
5442
|
-
/** @internal */
|
|
5443
|
-
export type UpdateDatapointContentDatasetsResponseCacheControl$Outbound = {
|
|
5444
|
-
type: string;
|
|
5445
|
-
ttl: string;
|
|
5446
|
-
};
|
|
5447
|
-
|
|
5448
|
-
/** @internal */
|
|
5449
|
-
export const UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema:
|
|
5450
|
-
z.ZodType<
|
|
5451
|
-
UpdateDatapointContentDatasetsResponseCacheControl$Outbound,
|
|
5452
|
-
z.ZodTypeDef,
|
|
5453
|
-
UpdateDatapointContentDatasetsResponseCacheControl
|
|
5454
|
-
> = z.object({
|
|
5455
|
-
type:
|
|
5456
|
-
UpdateDatapointContentDatasetsResponse200ApplicationJSONType$outboundSchema,
|
|
5457
|
-
ttl: UpdateDatapointContentDatasetsResponseTtl$outboundSchema.default("5m"),
|
|
5458
|
-
});
|
|
5459
|
-
|
|
5460
|
-
export function updateDatapointContentDatasetsResponseCacheControlToJSON(
|
|
5461
|
-
updateDatapointContentDatasetsResponseCacheControl:
|
|
5462
|
-
UpdateDatapointContentDatasetsResponseCacheControl,
|
|
5463
|
-
): string {
|
|
5464
|
-
return JSON.stringify(
|
|
5465
|
-
UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema.parse(
|
|
5466
|
-
updateDatapointContentDatasetsResponseCacheControl,
|
|
5467
|
-
),
|
|
5468
|
-
);
|
|
5469
|
-
}
|
|
5470
|
-
export function updateDatapointContentDatasetsResponseCacheControlFromJSON(
|
|
5471
|
-
jsonString: string,
|
|
5472
|
-
): SafeParseResult<
|
|
5473
|
-
UpdateDatapointContentDatasetsResponseCacheControl,
|
|
5474
|
-
SDKValidationError
|
|
5475
|
-
> {
|
|
5476
|
-
return safeParse(
|
|
5477
|
-
jsonString,
|
|
5478
|
-
(x) =>
|
|
5479
|
-
UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema.parse(
|
|
5480
|
-
JSON.parse(x),
|
|
5481
|
-
),
|
|
5482
|
-
`Failed to parse 'UpdateDatapointContentDatasetsResponseCacheControl' from JSON`,
|
|
5483
|
-
);
|
|
5484
|
-
}
|
|
5485
|
-
|
|
5486
|
-
/** @internal */
|
|
5487
|
-
export const UpdateDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
|
|
5488
|
-
UpdateDatapointContentDatasetsResponse2,
|
|
5489
|
-
z.ZodTypeDef,
|
|
5490
|
-
unknown
|
|
5491
|
-
> = z.object({
|
|
5492
|
-
type: UpdateDatapointContentDatasetsResponseType$inboundSchema,
|
|
5493
|
-
text: z.string(),
|
|
5494
|
-
cache_control: z.lazy(() =>
|
|
5495
|
-
UpdateDatapointContentDatasetsResponseCacheControl$inboundSchema
|
|
5496
|
-
).optional(),
|
|
5497
|
-
}).transform((v) => {
|
|
5498
|
-
return remap$(v, {
|
|
5499
|
-
"cache_control": "cacheControl",
|
|
5500
|
-
});
|
|
5501
|
-
});
|
|
5502
|
-
/** @internal */
|
|
5503
|
-
export type UpdateDatapointContentDatasetsResponse2$Outbound = {
|
|
5504
|
-
type: string;
|
|
5505
|
-
text: string;
|
|
5506
|
-
cache_control?:
|
|
5507
|
-
| UpdateDatapointContentDatasetsResponseCacheControl$Outbound
|
|
5508
|
-
| undefined;
|
|
5509
|
-
};
|
|
5510
|
-
|
|
5511
|
-
/** @internal */
|
|
5512
|
-
export const UpdateDatapointContentDatasetsResponse2$outboundSchema: z.ZodType<
|
|
5513
|
-
UpdateDatapointContentDatasetsResponse2$Outbound,
|
|
5514
|
-
z.ZodTypeDef,
|
|
5515
|
-
UpdateDatapointContentDatasetsResponse2
|
|
5516
|
-
> = z.object({
|
|
5517
|
-
type: UpdateDatapointContentDatasetsResponseType$outboundSchema,
|
|
5518
|
-
text: z.string(),
|
|
5519
|
-
cacheControl: z.lazy(() =>
|
|
5520
|
-
UpdateDatapointContentDatasetsResponseCacheControl$outboundSchema
|
|
5521
|
-
).optional(),
|
|
5522
|
-
}).transform((v) => {
|
|
5523
|
-
return remap$(v, {
|
|
5524
|
-
cacheControl: "cache_control",
|
|
5525
|
-
});
|
|
5526
|
-
});
|
|
5527
|
-
|
|
5528
|
-
export function updateDatapointContentDatasetsResponse2ToJSON(
|
|
5529
|
-
updateDatapointContentDatasetsResponse2:
|
|
5530
|
-
UpdateDatapointContentDatasetsResponse2,
|
|
5531
|
-
): string {
|
|
5532
|
-
return JSON.stringify(
|
|
5533
|
-
UpdateDatapointContentDatasetsResponse2$outboundSchema.parse(
|
|
5534
|
-
updateDatapointContentDatasetsResponse2,
|
|
5535
|
-
),
|
|
5536
|
-
);
|
|
5537
|
-
}
|
|
5538
|
-
export function updateDatapointContentDatasetsResponse2FromJSON(
|
|
5539
|
-
jsonString: string,
|
|
5540
|
-
): SafeParseResult<
|
|
5541
|
-
UpdateDatapointContentDatasetsResponse2,
|
|
5542
|
-
SDKValidationError
|
|
5543
|
-
> {
|
|
5544
|
-
return safeParse(
|
|
5545
|
-
jsonString,
|
|
5546
|
-
(x) =>
|
|
5547
|
-
UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(
|
|
5548
|
-
JSON.parse(x),
|
|
5549
|
-
),
|
|
5550
|
-
`Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`,
|
|
5551
|
-
);
|
|
5552
|
-
}
|
|
5553
|
-
|
|
5554
3401
|
/** @internal */
|
|
5555
3402
|
export const UpdateDatapointMessagesDatasetsResponseContent$inboundSchema:
|
|
5556
3403
|
z.ZodType<
|
|
@@ -5559,14 +3406,12 @@ export const UpdateDatapointMessagesDatasetsResponseContent$inboundSchema:
|
|
|
5559
3406
|
unknown
|
|
5560
3407
|
> = z.union([
|
|
5561
3408
|
z.string(),
|
|
5562
|
-
z.array(
|
|
5563
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2$inboundSchema),
|
|
5564
|
-
),
|
|
3409
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5565
3410
|
]);
|
|
5566
3411
|
/** @internal */
|
|
5567
3412
|
export type UpdateDatapointMessagesDatasetsResponseContent$Outbound =
|
|
5568
3413
|
| string
|
|
5569
|
-
| Array<
|
|
3414
|
+
| Array<components.TextContentPartSchema$Outbound>;
|
|
5570
3415
|
|
|
5571
3416
|
/** @internal */
|
|
5572
3417
|
export const UpdateDatapointMessagesDatasetsResponseContent$outboundSchema:
|
|
@@ -5576,9 +3421,7 @@ export const UpdateDatapointMessagesDatasetsResponseContent$outboundSchema:
|
|
|
5576
3421
|
UpdateDatapointMessagesDatasetsResponseContent
|
|
5577
3422
|
> = z.union([
|
|
5578
3423
|
z.string(),
|
|
5579
|
-
z.array(
|
|
5580
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2$outboundSchema),
|
|
5581
|
-
),
|
|
3424
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5582
3425
|
]);
|
|
5583
3426
|
|
|
5584
3427
|
export function updateDatapointMessagesDatasetsResponseContentToJSON(
|
|
@@ -5617,16 +3460,14 @@ export const UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema:
|
|
|
5617
3460
|
role: z.literal("system"),
|
|
5618
3461
|
content: z.union([
|
|
5619
3462
|
z.string(),
|
|
5620
|
-
z.array(
|
|
5621
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2$inboundSchema),
|
|
5622
|
-
),
|
|
3463
|
+
z.array(components.TextContentPartSchema$inboundSchema),
|
|
5623
3464
|
]),
|
|
5624
3465
|
name: z.string().optional(),
|
|
5625
3466
|
});
|
|
5626
3467
|
/** @internal */
|
|
5627
3468
|
export type UpdateDatapointMessagesDatasetsSystemMessage$Outbound = {
|
|
5628
3469
|
role: "system";
|
|
5629
|
-
content: string | Array<
|
|
3470
|
+
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
5630
3471
|
name?: string | undefined;
|
|
5631
3472
|
};
|
|
5632
3473
|
|
|
@@ -5640,9 +3481,7 @@ export const UpdateDatapointMessagesDatasetsSystemMessage$outboundSchema:
|
|
|
5640
3481
|
role: z.literal("system"),
|
|
5641
3482
|
content: z.union([
|
|
5642
3483
|
z.string(),
|
|
5643
|
-
z.array(
|
|
5644
|
-
z.lazy(() => UpdateDatapointContentDatasetsResponse2$outboundSchema),
|
|
5645
|
-
),
|
|
3484
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
5646
3485
|
]),
|
|
5647
3486
|
name: z.string().optional(),
|
|
5648
3487
|
});
|
|
@@ -5759,7 +3598,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
5759
3598
|
.default("orq"),
|
|
5760
3599
|
reviewed_by_id: z.string(),
|
|
5761
3600
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5762
|
-
"2025-12-
|
|
3601
|
+
"2025-12-10T08:38:47.278Z",
|
|
5763
3602
|
).transform(v => new Date(v)),
|
|
5764
3603
|
type: z.literal("string_array"),
|
|
5765
3604
|
values: z.array(z.string()),
|
|
@@ -5796,7 +3635,7 @@ export const UpdateDatapointEvaluations3$outboundSchema: z.ZodType<
|
|
|
5796
3635
|
source: UpdateDatapointEvaluationsDatasetsResponseSource$outboundSchema
|
|
5797
3636
|
.default("orq"),
|
|
5798
3637
|
reviewedById: z.string(),
|
|
5799
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3638
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T08:38:47.278Z"))
|
|
5800
3639
|
.transform(v => v.toISOString()),
|
|
5801
3640
|
type: z.literal("string_array"),
|
|
5802
3641
|
values: z.array(z.string()),
|
|
@@ -5859,7 +3698,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
5859
3698
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
5860
3699
|
reviewed_by_id: z.string(),
|
|
5861
3700
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5862
|
-
"2025-12-
|
|
3701
|
+
"2025-12-10T08:38:47.278Z",
|
|
5863
3702
|
).transform(v => new Date(v)),
|
|
5864
3703
|
type: z.literal("number"),
|
|
5865
3704
|
value: z.number(),
|
|
@@ -5897,7 +3736,7 @@ export const UpdateDatapointEvaluations2$outboundSchema: z.ZodType<
|
|
|
5897
3736
|
"orq",
|
|
5898
3737
|
),
|
|
5899
3738
|
reviewedById: z.string(),
|
|
5900
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3739
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T08:38:47.278Z"))
|
|
5901
3740
|
.transform(v => v.toISOString()),
|
|
5902
3741
|
type: z.literal("number"),
|
|
5903
3742
|
value: z.number(),
|
|
@@ -5959,7 +3798,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
5959
3798
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
5960
3799
|
reviewed_by_id: z.string(),
|
|
5961
3800
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5962
|
-
"2025-12-
|
|
3801
|
+
"2025-12-10T08:38:47.277Z",
|
|
5963
3802
|
).transform(v => new Date(v)),
|
|
5964
3803
|
type: z.literal("string"),
|
|
5965
3804
|
value: z.string(),
|
|
@@ -5994,7 +3833,7 @@ export const UpdateDatapointEvaluations1$outboundSchema: z.ZodType<
|
|
|
5994
3833
|
humanReviewId: z.string(),
|
|
5995
3834
|
source: UpdateDatapointEvaluationsSource$outboundSchema.default("orq"),
|
|
5996
3835
|
reviewedById: z.string(),
|
|
5997
|
-
reviewedAt: z.date().default(() => new Date("2025-12-
|
|
3836
|
+
reviewedAt: z.date().default(() => new Date("2025-12-10T08:38:47.277Z"))
|
|
5998
3837
|
.transform(v => v.toISOString()),
|
|
5999
3838
|
type: z.literal("string"),
|
|
6000
3839
|
value: z.string(),
|
|
@@ -6107,7 +3946,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
6107
3946
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
6108
3947
|
.optional(),
|
|
6109
3948
|
updated: z.string().datetime({ offset: true }).default(
|
|
6110
|
-
"2025-12-
|
|
3949
|
+
"2025-12-10T08:38:35.196Z",
|
|
6111
3950
|
).transform(v => new Date(v)),
|
|
6112
3951
|
}).transform((v) => {
|
|
6113
3952
|
return remap$(v, {
|
|
@@ -6185,7 +4024,7 @@ export const UpdateDatapointResponseBody$outboundSchema: z.ZodType<
|
|
|
6185
4024
|
createdById: z.string().optional(),
|
|
6186
4025
|
updatedById: z.string().optional(),
|
|
6187
4026
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
6188
|
-
updated: z.date().default(() => new Date("2025-12-
|
|
4027
|
+
updated: z.date().default(() => new Date("2025-12-10T08:38:35.196Z"))
|
|
6189
4028
|
.transform(v => v.toISOString()),
|
|
6190
4029
|
}).transform((v) => {
|
|
6191
4030
|
return remap$(v, {
|