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