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