@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
|
@@ -39,15 +39,99 @@ export type Performance = {
|
|
|
39
39
|
timeToFirstToken?: number | undefined;
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
export
|
|
43
|
-
|
|
42
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type =
|
|
43
|
+
{
|
|
44
|
+
Text: "text",
|
|
45
|
+
} as const;
|
|
46
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type =
|
|
47
|
+
ClosedEnum<
|
|
48
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type
|
|
49
|
+
>;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
53
|
+
*/
|
|
54
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType =
|
|
55
|
+
{
|
|
56
|
+
Ephemeral: "ephemeral",
|
|
57
|
+
} as const;
|
|
58
|
+
/**
|
|
59
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
60
|
+
*/
|
|
61
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType =
|
|
62
|
+
ClosedEnum<
|
|
63
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType
|
|
64
|
+
>;
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
*
|
|
71
|
+
* - `5m`: 5 minutes
|
|
72
|
+
* - `1h`: 1 hour
|
|
73
|
+
*
|
|
74
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
75
|
+
*/
|
|
76
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl = {
|
|
77
|
+
Fivem: "5m",
|
|
78
|
+
Oneh: "1h",
|
|
79
|
+
} as const;
|
|
80
|
+
/**
|
|
81
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
82
|
+
*
|
|
83
|
+
* @remarks
|
|
84
|
+
*
|
|
85
|
+
* - `5m`: 5 minutes
|
|
86
|
+
* - `1h`: 1 hour
|
|
87
|
+
*
|
|
88
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
89
|
+
*/
|
|
90
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl =
|
|
91
|
+
ClosedEnum<
|
|
92
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl
|
|
93
|
+
>;
|
|
94
|
+
|
|
95
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl =
|
|
96
|
+
{
|
|
97
|
+
/**
|
|
98
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
99
|
+
*/
|
|
100
|
+
type:
|
|
101
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType;
|
|
102
|
+
/**
|
|
103
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
104
|
+
*
|
|
105
|
+
* @remarks
|
|
106
|
+
*
|
|
107
|
+
* - `5m`: 5 minutes
|
|
108
|
+
* - `1h`: 1 hour
|
|
109
|
+
*
|
|
110
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
111
|
+
*/
|
|
112
|
+
ttl?:
|
|
113
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl
|
|
114
|
+
| undefined;
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequest1 = {
|
|
118
|
+
type:
|
|
119
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type;
|
|
120
|
+
text: string;
|
|
121
|
+
cacheControl?:
|
|
122
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl
|
|
123
|
+
| undefined;
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2 =
|
|
127
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1;
|
|
44
128
|
|
|
45
129
|
/**
|
|
46
130
|
* The contents of the tool message.
|
|
47
131
|
*/
|
|
48
132
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Content =
|
|
49
133
|
| string
|
|
50
|
-
| Array<
|
|
134
|
+
| Array<DeploymentCreateMetric2DeploymentsMetricsRequest1>;
|
|
51
135
|
|
|
52
136
|
/**
|
|
53
137
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -116,7 +200,7 @@ export type DeploymentCreateMetricMessagesToolMessage = {
|
|
|
116
200
|
/**
|
|
117
201
|
* The contents of the tool message.
|
|
118
202
|
*/
|
|
119
|
-
content: string | Array<
|
|
203
|
+
content: string | Array<DeploymentCreateMetric2DeploymentsMetricsRequest1>;
|
|
120
204
|
/**
|
|
121
205
|
* Tool call that this message is responding to.
|
|
122
206
|
*/
|
|
@@ -124,8 +208,78 @@ export type DeploymentCreateMetricMessagesToolMessage = {
|
|
|
124
208
|
cacheControl?: DeploymentCreateMetricMessagesCacheControl | undefined;
|
|
125
209
|
};
|
|
126
210
|
|
|
127
|
-
|
|
128
|
-
|
|
211
|
+
/**
|
|
212
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
213
|
+
*/
|
|
214
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type =
|
|
215
|
+
{
|
|
216
|
+
Ephemeral: "ephemeral",
|
|
217
|
+
} as const;
|
|
218
|
+
/**
|
|
219
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
220
|
+
*/
|
|
221
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type =
|
|
222
|
+
ClosedEnum<
|
|
223
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type
|
|
224
|
+
>;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
228
|
+
*
|
|
229
|
+
* @remarks
|
|
230
|
+
*
|
|
231
|
+
* - `5m`: 5 minutes
|
|
232
|
+
* - `1h`: 1 hour
|
|
233
|
+
*
|
|
234
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
235
|
+
*/
|
|
236
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestTtl = {
|
|
237
|
+
Fivem: "5m",
|
|
238
|
+
Oneh: "1h",
|
|
239
|
+
} as const;
|
|
240
|
+
/**
|
|
241
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
242
|
+
*
|
|
243
|
+
* @remarks
|
|
244
|
+
*
|
|
245
|
+
* - `5m`: 5 minutes
|
|
246
|
+
* - `1h`: 1 hour
|
|
247
|
+
*
|
|
248
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
249
|
+
*/
|
|
250
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestTtl = ClosedEnum<
|
|
251
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestTtl
|
|
252
|
+
>;
|
|
253
|
+
|
|
254
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl = {
|
|
255
|
+
/**
|
|
256
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
257
|
+
*/
|
|
258
|
+
type:
|
|
259
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type;
|
|
260
|
+
/**
|
|
261
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
262
|
+
*
|
|
263
|
+
* @remarks
|
|
264
|
+
*
|
|
265
|
+
* - `5m`: 5 minutes
|
|
266
|
+
* - `1h`: 1 hour
|
|
267
|
+
*
|
|
268
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
269
|
+
*/
|
|
270
|
+
ttl?: DeploymentCreateMetric2DeploymentsMetricsRequestTtl | undefined;
|
|
271
|
+
};
|
|
272
|
+
|
|
273
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1 = {
|
|
274
|
+
type: "text";
|
|
275
|
+
text: string;
|
|
276
|
+
cacheControl?:
|
|
277
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl
|
|
278
|
+
| undefined;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2 =
|
|
282
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
129
283
|
| components.RefusalPartSchema
|
|
130
284
|
| components.ReasoningPartSchema
|
|
131
285
|
| components.RedactedReasoningPartSchema;
|
|
@@ -136,7 +290,7 @@ export type DeploymentCreateMetricContentDeploymentsMetrics2 =
|
|
|
136
290
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyContent =
|
|
137
291
|
| string
|
|
138
292
|
| Array<
|
|
139
|
-
|
|
|
293
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
140
294
|
| components.RefusalPartSchema
|
|
141
295
|
| components.ReasoningPartSchema
|
|
142
296
|
| components.RedactedReasoningPartSchema
|
|
@@ -199,7 +353,7 @@ export type DeploymentCreateMetricMessagesAssistantMessage = {
|
|
|
199
353
|
content?:
|
|
200
354
|
| string
|
|
201
355
|
| Array<
|
|
202
|
-
|
|
|
356
|
+
| DeploymentCreateMetric2DeploymentsMetrics1
|
|
203
357
|
| components.RefusalPartSchema
|
|
204
358
|
| components.ReasoningPartSchema
|
|
205
359
|
| components.RedactedReasoningPartSchema
|
|
@@ -228,6 +382,80 @@ export type DeploymentCreateMetricMessagesAssistantMessage = {
|
|
|
228
382
|
toolCalls?: Array<DeploymentCreateMetricMessagesToolCalls> | undefined;
|
|
229
383
|
};
|
|
230
384
|
|
|
385
|
+
/**
|
|
386
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
387
|
+
*/
|
|
388
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType = {
|
|
389
|
+
Ephemeral: "ephemeral",
|
|
390
|
+
} as const;
|
|
391
|
+
/**
|
|
392
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
393
|
+
*/
|
|
394
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType =
|
|
395
|
+
ClosedEnum<
|
|
396
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
|
|
397
|
+
>;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
401
|
+
*
|
|
402
|
+
* @remarks
|
|
403
|
+
*
|
|
404
|
+
* - `5m`: 5 minutes
|
|
405
|
+
* - `1h`: 1 hour
|
|
406
|
+
*
|
|
407
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
408
|
+
*/
|
|
409
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTtl = {
|
|
410
|
+
Fivem: "5m",
|
|
411
|
+
Oneh: "1h",
|
|
412
|
+
} as const;
|
|
413
|
+
/**
|
|
414
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
415
|
+
*
|
|
416
|
+
* @remarks
|
|
417
|
+
*
|
|
418
|
+
* - `5m`: 5 minutes
|
|
419
|
+
* - `1h`: 1 hour
|
|
420
|
+
*
|
|
421
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
422
|
+
*/
|
|
423
|
+
export type DeploymentCreateMetric2DeploymentsMetricsTtl = ClosedEnum<
|
|
424
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsTtl
|
|
425
|
+
>;
|
|
426
|
+
|
|
427
|
+
export type DeploymentCreateMetric2DeploymentsMetricsCacheControl = {
|
|
428
|
+
/**
|
|
429
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
430
|
+
*/
|
|
431
|
+
type: DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType;
|
|
432
|
+
/**
|
|
433
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
434
|
+
*
|
|
435
|
+
* @remarks
|
|
436
|
+
*
|
|
437
|
+
* - `5m`: 5 minutes
|
|
438
|
+
* - `1h`: 1 hour
|
|
439
|
+
*
|
|
440
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
441
|
+
*/
|
|
442
|
+
ttl?: DeploymentCreateMetric2DeploymentsMetricsTtl | undefined;
|
|
443
|
+
};
|
|
444
|
+
|
|
445
|
+
export type DeploymentCreateMetric24 = {
|
|
446
|
+
/**
|
|
447
|
+
* The type of the content part. Always `file`.
|
|
448
|
+
*/
|
|
449
|
+
type: "file";
|
|
450
|
+
cacheControl?:
|
|
451
|
+
| DeploymentCreateMetric2DeploymentsMetricsCacheControl
|
|
452
|
+
| undefined;
|
|
453
|
+
/**
|
|
454
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
455
|
+
*/
|
|
456
|
+
file: components.FileContentPartSchema;
|
|
457
|
+
};
|
|
458
|
+
|
|
231
459
|
/**
|
|
232
460
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
233
461
|
*/
|
|
@@ -287,20 +515,14 @@ export type DeploymentCreateMetric2CacheControl = {
|
|
|
287
515
|
ttl?: DeploymentCreateMetric2Ttl | undefined;
|
|
288
516
|
};
|
|
289
517
|
|
|
290
|
-
export type
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
*/
|
|
294
|
-
type: "file";
|
|
518
|
+
export type DeploymentCreateMetric21 = {
|
|
519
|
+
type: "text";
|
|
520
|
+
text: string;
|
|
295
521
|
cacheControl?: DeploymentCreateMetric2CacheControl | undefined;
|
|
296
|
-
/**
|
|
297
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
298
|
-
*/
|
|
299
|
-
file: components.FileContentPartSchema;
|
|
300
522
|
};
|
|
301
523
|
|
|
302
|
-
export type
|
|
303
|
-
|
|
|
524
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2 =
|
|
525
|
+
| DeploymentCreateMetric21
|
|
304
526
|
| components.ImageContentPartSchema
|
|
305
527
|
| components.AudioContentPartSchema
|
|
306
528
|
| DeploymentCreateMetric24;
|
|
@@ -311,7 +533,7 @@ export type DeploymentCreateMetricContent2 =
|
|
|
311
533
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent =
|
|
312
534
|
| string
|
|
313
535
|
| Array<
|
|
314
|
-
|
|
|
536
|
+
| DeploymentCreateMetric21
|
|
315
537
|
| components.ImageContentPartSchema
|
|
316
538
|
| components.AudioContentPartSchema
|
|
317
539
|
| DeploymentCreateMetric24
|
|
@@ -332,89 +554,33 @@ export type DeploymentCreateMetricMessagesUserMessage = {
|
|
|
332
554
|
content:
|
|
333
555
|
| string
|
|
334
556
|
| Array<
|
|
335
|
-
|
|
|
557
|
+
| DeploymentCreateMetric21
|
|
336
558
|
| components.ImageContentPartSchema
|
|
337
559
|
| components.AudioContentPartSchema
|
|
338
560
|
| DeploymentCreateMetric24
|
|
339
561
|
>;
|
|
340
562
|
};
|
|
341
563
|
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
export type
|
|
346
|
-
|
|
347
|
-
| Array<components.TextContentPartSchema>;
|
|
348
|
-
|
|
349
|
-
export type DeploymentCreateMetricMessagesDeveloperMessage = {
|
|
350
|
-
/**
|
|
351
|
-
* The role of the messages author, in this case `developer`.
|
|
352
|
-
*/
|
|
353
|
-
role: "developer";
|
|
354
|
-
/**
|
|
355
|
-
* The contents of the developer message.
|
|
356
|
-
*/
|
|
357
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
358
|
-
/**
|
|
359
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
360
|
-
*/
|
|
361
|
-
name?: string | undefined;
|
|
362
|
-
};
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* The contents of the system message.
|
|
366
|
-
*/
|
|
367
|
-
export type DeploymentCreateMetricMessagesContent =
|
|
368
|
-
| string
|
|
369
|
-
| Array<components.TextContentPartSchema>;
|
|
370
|
-
|
|
371
|
-
/**
|
|
372
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
373
|
-
*/
|
|
374
|
-
export type DeploymentCreateMetricMessagesSystemMessage = {
|
|
375
|
-
/**
|
|
376
|
-
* The role of the messages author, in this case `system`.
|
|
377
|
-
*/
|
|
378
|
-
role: "system";
|
|
379
|
-
/**
|
|
380
|
-
* The contents of the system message.
|
|
381
|
-
*/
|
|
382
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
383
|
-
/**
|
|
384
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
385
|
-
*/
|
|
386
|
-
name?: string | undefined;
|
|
387
|
-
};
|
|
388
|
-
|
|
389
|
-
export type DeploymentCreateMetricMessages =
|
|
390
|
-
| DeploymentCreateMetricMessagesSystemMessage
|
|
391
|
-
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
392
|
-
| DeploymentCreateMetricMessagesUserMessage
|
|
393
|
-
| DeploymentCreateMetricMessagesAssistantMessage
|
|
394
|
-
| DeploymentCreateMetricMessagesToolMessage;
|
|
395
|
-
|
|
396
|
-
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52 =
|
|
397
|
-
components.TextContentPartSchema;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The contents of the tool message.
|
|
401
|
-
*/
|
|
402
|
-
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContent =
|
|
403
|
-
| string
|
|
404
|
-
| Array<components.TextContentPartSchema>;
|
|
564
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestType = {
|
|
565
|
+
Text: "text",
|
|
566
|
+
} as const;
|
|
567
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestType =
|
|
568
|
+
ClosedEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsRequestType>;
|
|
405
569
|
|
|
406
570
|
/**
|
|
407
571
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
408
572
|
*/
|
|
409
|
-
export const
|
|
410
|
-
|
|
411
|
-
|
|
573
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType =
|
|
574
|
+
{
|
|
575
|
+
Ephemeral: "ephemeral",
|
|
576
|
+
} as const;
|
|
412
577
|
/**
|
|
413
578
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
414
579
|
*/
|
|
415
|
-
export type
|
|
416
|
-
|
|
417
|
-
|
|
580
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType =
|
|
581
|
+
ClosedEnum<
|
|
582
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType
|
|
583
|
+
>;
|
|
418
584
|
|
|
419
585
|
/**
|
|
420
586
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -426,7 +592,7 @@ export type DeploymentCreateMetricChoicesType = ClosedEnum<
|
|
|
426
592
|
*
|
|
427
593
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
428
594
|
*/
|
|
429
|
-
export const
|
|
595
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsTtl = {
|
|
430
596
|
Fivem: "5m",
|
|
431
597
|
Oneh: "1h",
|
|
432
598
|
} as const;
|
|
@@ -440,13 +606,15 @@ export const ChoicesTtl = {
|
|
|
440
606
|
*
|
|
441
607
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
442
608
|
*/
|
|
443
|
-
export type
|
|
609
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsTtl = ClosedEnum<
|
|
610
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsTtl
|
|
611
|
+
>;
|
|
444
612
|
|
|
445
|
-
export type
|
|
613
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsCacheControl = {
|
|
446
614
|
/**
|
|
447
615
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
448
616
|
*/
|
|
449
|
-
type:
|
|
617
|
+
type: DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType;
|
|
450
618
|
/**
|
|
451
619
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
452
620
|
*
|
|
@@ -457,18 +625,309 @@ export type ChoicesCacheControl = {
|
|
|
457
625
|
*
|
|
458
626
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
459
627
|
*/
|
|
460
|
-
ttl?:
|
|
628
|
+
ttl?: DeploymentCreateMetricContentDeploymentsMetricsTtl | undefined;
|
|
461
629
|
};
|
|
462
630
|
|
|
463
|
-
export type
|
|
464
|
-
|
|
631
|
+
export type DeploymentCreateMetricContentDeploymentsMetrics2 = {
|
|
632
|
+
type: DeploymentCreateMetricContentDeploymentsMetricsRequestType;
|
|
633
|
+
text: string;
|
|
634
|
+
cacheControl?:
|
|
635
|
+
| DeploymentCreateMetricContentDeploymentsMetricsCacheControl
|
|
636
|
+
| undefined;
|
|
637
|
+
};
|
|
638
|
+
|
|
639
|
+
/**
|
|
640
|
+
* The contents of the developer message.
|
|
641
|
+
*/
|
|
642
|
+
export type DeploymentCreateMetricMessagesDeploymentsMetricsContent =
|
|
643
|
+
| string
|
|
644
|
+
| Array<DeploymentCreateMetricContentDeploymentsMetrics2>;
|
|
645
|
+
|
|
646
|
+
export type DeploymentCreateMetricMessagesDeveloperMessage = {
|
|
647
|
+
/**
|
|
648
|
+
* The role of the messages author, in this case `developer`.
|
|
649
|
+
*/
|
|
650
|
+
role: "developer";
|
|
651
|
+
/**
|
|
652
|
+
* The contents of the developer message.
|
|
653
|
+
*/
|
|
654
|
+
content: string | Array<DeploymentCreateMetricContentDeploymentsMetrics2>;
|
|
655
|
+
/**
|
|
656
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
657
|
+
*/
|
|
658
|
+
name?: string | undefined;
|
|
659
|
+
};
|
|
660
|
+
|
|
661
|
+
export const DeploymentCreateMetricContentType = {
|
|
662
|
+
Text: "text",
|
|
663
|
+
} as const;
|
|
664
|
+
export type DeploymentCreateMetricContentType = ClosedEnum<
|
|
665
|
+
typeof DeploymentCreateMetricContentType
|
|
666
|
+
>;
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
670
|
+
*/
|
|
671
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsType = {
|
|
672
|
+
Ephemeral: "ephemeral",
|
|
673
|
+
} as const;
|
|
674
|
+
/**
|
|
675
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
676
|
+
*/
|
|
677
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsType = ClosedEnum<
|
|
678
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsType
|
|
679
|
+
>;
|
|
680
|
+
|
|
681
|
+
/**
|
|
682
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
683
|
+
*
|
|
684
|
+
* @remarks
|
|
685
|
+
*
|
|
686
|
+
* - `5m`: 5 minutes
|
|
687
|
+
* - `1h`: 1 hour
|
|
688
|
+
*
|
|
689
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
690
|
+
*/
|
|
691
|
+
export const DeploymentCreateMetricContentTtl = {
|
|
692
|
+
Fivem: "5m",
|
|
693
|
+
Oneh: "1h",
|
|
694
|
+
} as const;
|
|
695
|
+
/**
|
|
696
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
697
|
+
*
|
|
698
|
+
* @remarks
|
|
699
|
+
*
|
|
700
|
+
* - `5m`: 5 minutes
|
|
701
|
+
* - `1h`: 1 hour
|
|
702
|
+
*
|
|
703
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
704
|
+
*/
|
|
705
|
+
export type DeploymentCreateMetricContentTtl = ClosedEnum<
|
|
706
|
+
typeof DeploymentCreateMetricContentTtl
|
|
707
|
+
>;
|
|
708
|
+
|
|
709
|
+
export type DeploymentCreateMetricContentCacheControl = {
|
|
710
|
+
/**
|
|
711
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
712
|
+
*/
|
|
713
|
+
type: DeploymentCreateMetricContentDeploymentsMetricsType;
|
|
714
|
+
/**
|
|
715
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
716
|
+
*
|
|
717
|
+
* @remarks
|
|
718
|
+
*
|
|
719
|
+
* - `5m`: 5 minutes
|
|
720
|
+
* - `1h`: 1 hour
|
|
721
|
+
*
|
|
722
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
723
|
+
*/
|
|
724
|
+
ttl?: DeploymentCreateMetricContentTtl | undefined;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export type DeploymentCreateMetricContent2 = {
|
|
728
|
+
type: DeploymentCreateMetricContentType;
|
|
729
|
+
text: string;
|
|
730
|
+
cacheControl?: DeploymentCreateMetricContentCacheControl | undefined;
|
|
731
|
+
};
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The contents of the system message.
|
|
735
|
+
*/
|
|
736
|
+
export type DeploymentCreateMetricMessagesContent =
|
|
737
|
+
| string
|
|
738
|
+
| Array<DeploymentCreateMetricContent2>;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
742
|
+
*/
|
|
743
|
+
export type DeploymentCreateMetricMessagesSystemMessage = {
|
|
744
|
+
/**
|
|
745
|
+
* The role of the messages author, in this case `system`.
|
|
746
|
+
*/
|
|
747
|
+
role: "system";
|
|
748
|
+
/**
|
|
749
|
+
* The contents of the system message.
|
|
750
|
+
*/
|
|
751
|
+
content: string | Array<DeploymentCreateMetricContent2>;
|
|
752
|
+
/**
|
|
753
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
754
|
+
*/
|
|
755
|
+
name?: string | undefined;
|
|
756
|
+
};
|
|
757
|
+
|
|
758
|
+
export type DeploymentCreateMetricMessages =
|
|
759
|
+
| DeploymentCreateMetricMessagesSystemMessage
|
|
760
|
+
| DeploymentCreateMetricMessagesDeveloperMessage
|
|
761
|
+
| DeploymentCreateMetricMessagesUserMessage
|
|
762
|
+
| DeploymentCreateMetricMessagesAssistantMessage
|
|
763
|
+
| DeploymentCreateMetricMessagesToolMessage;
|
|
764
|
+
|
|
765
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type =
|
|
766
|
+
{
|
|
767
|
+
Text: "text",
|
|
768
|
+
} as const;
|
|
769
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type =
|
|
770
|
+
ClosedEnum<
|
|
771
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type
|
|
772
|
+
>;
|
|
773
|
+
|
|
774
|
+
/**
|
|
775
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
776
|
+
*/
|
|
777
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType =
|
|
778
|
+
{
|
|
779
|
+
Ephemeral: "ephemeral",
|
|
780
|
+
} as const;
|
|
781
|
+
/**
|
|
782
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
783
|
+
*/
|
|
784
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType =
|
|
785
|
+
ClosedEnum<
|
|
786
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType
|
|
787
|
+
>;
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
791
|
+
*
|
|
792
|
+
* @remarks
|
|
793
|
+
*
|
|
794
|
+
* - `5m`: 5 minutes
|
|
795
|
+
* - `1h`: 1 hour
|
|
796
|
+
*
|
|
797
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
798
|
+
*/
|
|
799
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl =
|
|
800
|
+
{
|
|
801
|
+
Fivem: "5m",
|
|
802
|
+
Oneh: "1h",
|
|
803
|
+
} as const;
|
|
804
|
+
/**
|
|
805
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
806
|
+
*
|
|
807
|
+
* @remarks
|
|
808
|
+
*
|
|
809
|
+
* - `5m`: 5 minutes
|
|
810
|
+
* - `1h`: 1 hour
|
|
811
|
+
*
|
|
812
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
813
|
+
*/
|
|
814
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl =
|
|
815
|
+
ClosedEnum<
|
|
816
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl
|
|
817
|
+
>;
|
|
818
|
+
|
|
819
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl =
|
|
820
|
+
{
|
|
821
|
+
/**
|
|
822
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
823
|
+
*/
|
|
824
|
+
type:
|
|
825
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType;
|
|
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
|
+
ttl?:
|
|
837
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl
|
|
838
|
+
| undefined;
|
|
839
|
+
};
|
|
840
|
+
|
|
841
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51 =
|
|
842
|
+
{
|
|
843
|
+
type:
|
|
844
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type;
|
|
845
|
+
text: string;
|
|
846
|
+
cacheControl?:
|
|
847
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl
|
|
848
|
+
| undefined;
|
|
849
|
+
};
|
|
850
|
+
|
|
851
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52 =
|
|
852
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51;
|
|
853
|
+
|
|
854
|
+
/**
|
|
855
|
+
* The contents of the tool message.
|
|
856
|
+
*/
|
|
857
|
+
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContent =
|
|
858
|
+
| string
|
|
859
|
+
| Array<DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51>;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
863
|
+
*/
|
|
864
|
+
export const DeploymentCreateMetricChoicesType = {
|
|
865
|
+
Ephemeral: "ephemeral",
|
|
866
|
+
} as const;
|
|
867
|
+
/**
|
|
868
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
869
|
+
*/
|
|
870
|
+
export type DeploymentCreateMetricChoicesType = ClosedEnum<
|
|
871
|
+
typeof DeploymentCreateMetricChoicesType
|
|
872
|
+
>;
|
|
873
|
+
|
|
874
|
+
/**
|
|
875
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
876
|
+
*
|
|
877
|
+
* @remarks
|
|
878
|
+
*
|
|
879
|
+
* - `5m`: 5 minutes
|
|
880
|
+
* - `1h`: 1 hour
|
|
881
|
+
*
|
|
882
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
883
|
+
*/
|
|
884
|
+
export const ChoicesTtl = {
|
|
885
|
+
Fivem: "5m",
|
|
886
|
+
Oneh: "1h",
|
|
887
|
+
} as const;
|
|
888
|
+
/**
|
|
889
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
890
|
+
*
|
|
891
|
+
* @remarks
|
|
892
|
+
*
|
|
893
|
+
* - `5m`: 5 minutes
|
|
894
|
+
* - `1h`: 1 hour
|
|
895
|
+
*
|
|
896
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
897
|
+
*/
|
|
898
|
+
export type ChoicesTtl = ClosedEnum<typeof ChoicesTtl>;
|
|
899
|
+
|
|
900
|
+
export type ChoicesCacheControl = {
|
|
901
|
+
/**
|
|
902
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
903
|
+
*/
|
|
904
|
+
type: DeploymentCreateMetricChoicesType;
|
|
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
|
+
ttl?: ChoicesTtl | undefined;
|
|
916
|
+
};
|
|
917
|
+
|
|
918
|
+
export type ChoicesToolMessage = {
|
|
919
|
+
/**
|
|
465
920
|
* The role of the messages author, in this case tool.
|
|
466
921
|
*/
|
|
467
922
|
role: "tool";
|
|
468
923
|
/**
|
|
469
924
|
* The contents of the tool message.
|
|
470
925
|
*/
|
|
471
|
-
content:
|
|
926
|
+
content:
|
|
927
|
+
| string
|
|
928
|
+
| Array<
|
|
929
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51
|
|
930
|
+
>;
|
|
472
931
|
/**
|
|
473
932
|
* Tool call that this message is responding to.
|
|
474
933
|
*/
|
|
@@ -476,8 +935,84 @@ export type ChoicesToolMessage = {
|
|
|
476
935
|
cacheControl?: ChoicesCacheControl | undefined;
|
|
477
936
|
};
|
|
478
937
|
|
|
479
|
-
|
|
480
|
-
|
|
938
|
+
/**
|
|
939
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
940
|
+
*/
|
|
941
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
942
|
+
{
|
|
943
|
+
Ephemeral: "ephemeral",
|
|
944
|
+
} as const;
|
|
945
|
+
/**
|
|
946
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
947
|
+
*/
|
|
948
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType =
|
|
949
|
+
ClosedEnum<
|
|
950
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
951
|
+
>;
|
|
952
|
+
|
|
953
|
+
/**
|
|
954
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
955
|
+
*
|
|
956
|
+
* @remarks
|
|
957
|
+
*
|
|
958
|
+
* - `5m`: 5 minutes
|
|
959
|
+
* - `1h`: 1 hour
|
|
960
|
+
*
|
|
961
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
962
|
+
*/
|
|
963
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl =
|
|
964
|
+
{
|
|
965
|
+
Fivem: "5m",
|
|
966
|
+
Oneh: "1h",
|
|
967
|
+
} as const;
|
|
968
|
+
/**
|
|
969
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
970
|
+
*
|
|
971
|
+
* @remarks
|
|
972
|
+
*
|
|
973
|
+
* - `5m`: 5 minutes
|
|
974
|
+
* - `1h`: 1 hour
|
|
975
|
+
*
|
|
976
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
977
|
+
*/
|
|
978
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl =
|
|
979
|
+
ClosedEnum<
|
|
980
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl
|
|
981
|
+
>;
|
|
982
|
+
|
|
983
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl =
|
|
984
|
+
{
|
|
985
|
+
/**
|
|
986
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
987
|
+
*/
|
|
988
|
+
type:
|
|
989
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType;
|
|
990
|
+
/**
|
|
991
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
992
|
+
*
|
|
993
|
+
* @remarks
|
|
994
|
+
*
|
|
995
|
+
* - `5m`: 5 minutes
|
|
996
|
+
* - `1h`: 1 hour
|
|
997
|
+
*
|
|
998
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
999
|
+
*/
|
|
1000
|
+
ttl?:
|
|
1001
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl
|
|
1002
|
+
| undefined;
|
|
1003
|
+
};
|
|
1004
|
+
|
|
1005
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1 =
|
|
1006
|
+
{
|
|
1007
|
+
type: "text";
|
|
1008
|
+
text: string;
|
|
1009
|
+
cacheControl?:
|
|
1010
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl
|
|
1011
|
+
| undefined;
|
|
1012
|
+
};
|
|
1013
|
+
|
|
1014
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42 =
|
|
1015
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1
|
|
481
1016
|
| components.RefusalPartSchema
|
|
482
1017
|
| components.ReasoningPartSchema
|
|
483
1018
|
| components.RedactedReasoningPartSchema;
|
|
@@ -488,7 +1023,7 @@ export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCho
|
|
|
488
1023
|
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestContent =
|
|
489
1024
|
| string
|
|
490
1025
|
| Array<
|
|
491
|
-
|
|
|
1026
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1
|
|
492
1027
|
| components.RefusalPartSchema
|
|
493
1028
|
| components.ReasoningPartSchema
|
|
494
1029
|
| components.RedactedReasoningPartSchema
|
|
@@ -549,7 +1084,7 @@ export type ChoicesAssistantMessage = {
|
|
|
549
1084
|
content?:
|
|
550
1085
|
| string
|
|
551
1086
|
| Array<
|
|
552
|
-
|
|
|
1087
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1
|
|
553
1088
|
| components.RefusalPartSchema
|
|
554
1089
|
| components.ReasoningPartSchema
|
|
555
1090
|
| components.RedactedReasoningPartSchema
|
|
@@ -581,15 +1116,16 @@ export type ChoicesAssistantMessage = {
|
|
|
581
1116
|
/**
|
|
582
1117
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
583
1118
|
*/
|
|
584
|
-
export const
|
|
585
|
-
|
|
586
|
-
|
|
1119
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type =
|
|
1120
|
+
{
|
|
1121
|
+
Ephemeral: "ephemeral",
|
|
1122
|
+
} as const;
|
|
587
1123
|
/**
|
|
588
1124
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
589
1125
|
*/
|
|
590
|
-
export type
|
|
1126
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type =
|
|
591
1127
|
ClosedEnum<
|
|
592
|
-
typeof
|
|
1128
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type
|
|
593
1129
|
>;
|
|
594
1130
|
|
|
595
1131
|
/**
|
|
@@ -602,10 +1138,11 @@ export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType =
|
|
|
602
1138
|
*
|
|
603
1139
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
604
1140
|
*/
|
|
605
|
-
export const
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
1141
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl =
|
|
1142
|
+
{
|
|
1143
|
+
Fivem: "5m",
|
|
1144
|
+
Oneh: "1h",
|
|
1145
|
+
} as const;
|
|
609
1146
|
/**
|
|
610
1147
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
611
1148
|
*
|
|
@@ -616,27 +1153,32 @@ export const DeploymentCreateMetric2DeploymentsMetricsTtl = {
|
|
|
616
1153
|
*
|
|
617
1154
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
618
1155
|
*/
|
|
619
|
-
export type
|
|
620
|
-
|
|
621
|
-
|
|
1156
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl =
|
|
1157
|
+
ClosedEnum<
|
|
1158
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl
|
|
1159
|
+
>;
|
|
622
1160
|
|
|
623
|
-
export type
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
1161
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl =
|
|
1162
|
+
{
|
|
1163
|
+
/**
|
|
1164
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1165
|
+
*/
|
|
1166
|
+
type:
|
|
1167
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type;
|
|
1168
|
+
/**
|
|
1169
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1170
|
+
*
|
|
1171
|
+
* @remarks
|
|
1172
|
+
*
|
|
1173
|
+
* - `5m`: 5 minutes
|
|
1174
|
+
* - `1h`: 1 hour
|
|
1175
|
+
*
|
|
1176
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1177
|
+
*/
|
|
1178
|
+
ttl?:
|
|
1179
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl
|
|
1180
|
+
| undefined;
|
|
1181
|
+
};
|
|
640
1182
|
|
|
641
1183
|
export type DeploymentCreateMetric2DeploymentsMetrics4 = {
|
|
642
1184
|
/**
|
|
@@ -644,7 +1186,7 @@ export type DeploymentCreateMetric2DeploymentsMetrics4 = {
|
|
|
644
1186
|
*/
|
|
645
1187
|
type: "file";
|
|
646
1188
|
cacheControl?:
|
|
647
|
-
|
|
|
1189
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl
|
|
648
1190
|
| undefined;
|
|
649
1191
|
/**
|
|
650
1192
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
@@ -652,8 +1194,83 @@ export type DeploymentCreateMetric2DeploymentsMetrics4 = {
|
|
|
652
1194
|
file: components.FileContentPartSchema;
|
|
653
1195
|
};
|
|
654
1196
|
|
|
655
|
-
|
|
656
|
-
|
|
1197
|
+
/**
|
|
1198
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1199
|
+
*/
|
|
1200
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
1201
|
+
{
|
|
1202
|
+
Ephemeral: "ephemeral",
|
|
1203
|
+
} as const;
|
|
1204
|
+
/**
|
|
1205
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1206
|
+
*/
|
|
1207
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type =
|
|
1208
|
+
ClosedEnum<
|
|
1209
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
1210
|
+
>;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1214
|
+
*
|
|
1215
|
+
* @remarks
|
|
1216
|
+
*
|
|
1217
|
+
* - `5m`: 5 minutes
|
|
1218
|
+
* - `1h`: 1 hour
|
|
1219
|
+
*
|
|
1220
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1221
|
+
*/
|
|
1222
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl =
|
|
1223
|
+
{
|
|
1224
|
+
Fivem: "5m",
|
|
1225
|
+
Oneh: "1h",
|
|
1226
|
+
} as const;
|
|
1227
|
+
/**
|
|
1228
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1229
|
+
*
|
|
1230
|
+
* @remarks
|
|
1231
|
+
*
|
|
1232
|
+
* - `5m`: 5 minutes
|
|
1233
|
+
* - `1h`: 1 hour
|
|
1234
|
+
*
|
|
1235
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1236
|
+
*/
|
|
1237
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl =
|
|
1238
|
+
ClosedEnum<
|
|
1239
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl
|
|
1240
|
+
>;
|
|
1241
|
+
|
|
1242
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl =
|
|
1243
|
+
{
|
|
1244
|
+
/**
|
|
1245
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1246
|
+
*/
|
|
1247
|
+
type:
|
|
1248
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type;
|
|
1249
|
+
/**
|
|
1250
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1251
|
+
*
|
|
1252
|
+
* @remarks
|
|
1253
|
+
*
|
|
1254
|
+
* - `5m`: 5 minutes
|
|
1255
|
+
* - `1h`: 1 hour
|
|
1256
|
+
*
|
|
1257
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1258
|
+
*/
|
|
1259
|
+
ttl?:
|
|
1260
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl
|
|
1261
|
+
| undefined;
|
|
1262
|
+
};
|
|
1263
|
+
|
|
1264
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1 = {
|
|
1265
|
+
type: "text";
|
|
1266
|
+
text: string;
|
|
1267
|
+
cacheControl?:
|
|
1268
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl
|
|
1269
|
+
| undefined;
|
|
1270
|
+
};
|
|
1271
|
+
|
|
1272
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32 =
|
|
1273
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1
|
|
657
1274
|
| components.ImageContentPartSchema
|
|
658
1275
|
| components.AudioContentPartSchema
|
|
659
1276
|
| DeploymentCreateMetric2DeploymentsMetrics4;
|
|
@@ -664,7 +1281,7 @@ export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2 =
|
|
|
664
1281
|
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent =
|
|
665
1282
|
| string
|
|
666
1283
|
| Array<
|
|
667
|
-
|
|
|
1284
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1
|
|
668
1285
|
| components.ImageContentPartSchema
|
|
669
1286
|
| components.AudioContentPartSchema
|
|
670
1287
|
| DeploymentCreateMetric2DeploymentsMetrics4
|
|
@@ -685,39 +1302,216 @@ export type ChoicesUserMessage = {
|
|
|
685
1302
|
content:
|
|
686
1303
|
| string
|
|
687
1304
|
| Array<
|
|
688
|
-
|
|
|
1305
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1
|
|
689
1306
|
| components.ImageContentPartSchema
|
|
690
1307
|
| components.AudioContentPartSchema
|
|
691
1308
|
| DeploymentCreateMetric2DeploymentsMetrics4
|
|
692
1309
|
>;
|
|
693
1310
|
};
|
|
694
1311
|
|
|
1312
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type =
|
|
1313
|
+
{
|
|
1314
|
+
Text: "text",
|
|
1315
|
+
} as const;
|
|
1316
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type =
|
|
1317
|
+
ClosedEnum<
|
|
1318
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type
|
|
1319
|
+
>;
|
|
1320
|
+
|
|
1321
|
+
/**
|
|
1322
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1323
|
+
*/
|
|
1324
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type =
|
|
1325
|
+
{
|
|
1326
|
+
Ephemeral: "ephemeral",
|
|
1327
|
+
} as const;
|
|
1328
|
+
/**
|
|
1329
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1330
|
+
*/
|
|
1331
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type =
|
|
1332
|
+
ClosedEnum<
|
|
1333
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type
|
|
1334
|
+
>;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1338
|
+
*
|
|
1339
|
+
* @remarks
|
|
1340
|
+
*
|
|
1341
|
+
* - `5m`: 5 minutes
|
|
1342
|
+
* - `1h`: 1 hour
|
|
1343
|
+
*
|
|
1344
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1345
|
+
*/
|
|
1346
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl =
|
|
1347
|
+
{
|
|
1348
|
+
Fivem: "5m",
|
|
1349
|
+
Oneh: "1h",
|
|
1350
|
+
} as const;
|
|
1351
|
+
/**
|
|
1352
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1353
|
+
*
|
|
1354
|
+
* @remarks
|
|
1355
|
+
*
|
|
1356
|
+
* - `5m`: 5 minutes
|
|
1357
|
+
* - `1h`: 1 hour
|
|
1358
|
+
*
|
|
1359
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1360
|
+
*/
|
|
1361
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl =
|
|
1362
|
+
ClosedEnum<
|
|
1363
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl
|
|
1364
|
+
>;
|
|
1365
|
+
|
|
1366
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl =
|
|
1367
|
+
{
|
|
1368
|
+
/**
|
|
1369
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1370
|
+
*/
|
|
1371
|
+
type:
|
|
1372
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type;
|
|
1373
|
+
/**
|
|
1374
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1375
|
+
*
|
|
1376
|
+
* @remarks
|
|
1377
|
+
*
|
|
1378
|
+
* - `5m`: 5 minutes
|
|
1379
|
+
* - `1h`: 1 hour
|
|
1380
|
+
*
|
|
1381
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1382
|
+
*/
|
|
1383
|
+
ttl?:
|
|
1384
|
+
| DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl
|
|
1385
|
+
| undefined;
|
|
1386
|
+
};
|
|
1387
|
+
|
|
1388
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22 =
|
|
1389
|
+
{
|
|
1390
|
+
type:
|
|
1391
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type;
|
|
1392
|
+
text: string;
|
|
1393
|
+
cacheControl?:
|
|
1394
|
+
| DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl
|
|
1395
|
+
| undefined;
|
|
1396
|
+
};
|
|
1397
|
+
|
|
1398
|
+
/**
|
|
1399
|
+
* The contents of the developer message.
|
|
1400
|
+
*/
|
|
1401
|
+
export type DeploymentCreateMetricChoicesContent =
|
|
1402
|
+
| string
|
|
1403
|
+
| Array<
|
|
1404
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22
|
|
1405
|
+
>;
|
|
1406
|
+
|
|
1407
|
+
export type ChoicesDeveloperMessage = {
|
|
1408
|
+
/**
|
|
1409
|
+
* The role of the messages author, in this case `developer`.
|
|
1410
|
+
*/
|
|
1411
|
+
role: "developer";
|
|
1412
|
+
/**
|
|
1413
|
+
* The contents of the developer message.
|
|
1414
|
+
*/
|
|
1415
|
+
content:
|
|
1416
|
+
| string
|
|
1417
|
+
| Array<
|
|
1418
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22
|
|
1419
|
+
>;
|
|
1420
|
+
/**
|
|
1421
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
1422
|
+
*/
|
|
1423
|
+
name?: string | undefined;
|
|
1424
|
+
};
|
|
1425
|
+
|
|
1426
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType =
|
|
1427
|
+
{
|
|
1428
|
+
Text: "text",
|
|
1429
|
+
} as const;
|
|
1430
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType =
|
|
1431
|
+
ClosedEnum<
|
|
1432
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType
|
|
1433
|
+
>;
|
|
1434
|
+
|
|
1435
|
+
/**
|
|
1436
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1437
|
+
*/
|
|
1438
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type =
|
|
1439
|
+
{
|
|
1440
|
+
Ephemeral: "ephemeral",
|
|
1441
|
+
} as const;
|
|
1442
|
+
/**
|
|
1443
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1444
|
+
*/
|
|
1445
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type =
|
|
1446
|
+
ClosedEnum<
|
|
1447
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type
|
|
1448
|
+
>;
|
|
1449
|
+
|
|
1450
|
+
/**
|
|
1451
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1452
|
+
*
|
|
1453
|
+
* @remarks
|
|
1454
|
+
*
|
|
1455
|
+
* - `5m`: 5 minutes
|
|
1456
|
+
* - `1h`: 1 hour
|
|
1457
|
+
*
|
|
1458
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1459
|
+
*/
|
|
1460
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestTtl = {
|
|
1461
|
+
Fivem: "5m",
|
|
1462
|
+
Oneh: "1h",
|
|
1463
|
+
} as const;
|
|
695
1464
|
/**
|
|
696
|
-
* The
|
|
1465
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1466
|
+
*
|
|
1467
|
+
* @remarks
|
|
1468
|
+
*
|
|
1469
|
+
* - `5m`: 5 minutes
|
|
1470
|
+
* - `1h`: 1 hour
|
|
1471
|
+
*
|
|
1472
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
697
1473
|
*/
|
|
698
|
-
export type
|
|
699
|
-
|
|
700
|
-
|
|
1474
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestTtl =
|
|
1475
|
+
ClosedEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsRequestTtl>;
|
|
1476
|
+
|
|
1477
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl =
|
|
1478
|
+
{
|
|
1479
|
+
/**
|
|
1480
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1481
|
+
*/
|
|
1482
|
+
type:
|
|
1483
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type;
|
|
1484
|
+
/**
|
|
1485
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1486
|
+
*
|
|
1487
|
+
* @remarks
|
|
1488
|
+
*
|
|
1489
|
+
* - `5m`: 5 minutes
|
|
1490
|
+
* - `1h`: 1 hour
|
|
1491
|
+
*
|
|
1492
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1493
|
+
*/
|
|
1494
|
+
ttl?: DeploymentCreateMetricContentDeploymentsMetricsRequestTtl | undefined;
|
|
1495
|
+
};
|
|
701
1496
|
|
|
702
|
-
export type
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
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
|
-
};
|
|
1497
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2 =
|
|
1498
|
+
{
|
|
1499
|
+
type:
|
|
1500
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType;
|
|
1501
|
+
text: string;
|
|
1502
|
+
cacheControl?:
|
|
1503
|
+
| DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl
|
|
1504
|
+
| undefined;
|
|
1505
|
+
};
|
|
716
1506
|
|
|
717
1507
|
/**
|
|
718
1508
|
* The contents of the system message.
|
|
719
1509
|
*/
|
|
720
|
-
export type ChoicesContent =
|
|
1510
|
+
export type ChoicesContent =
|
|
1511
|
+
| string
|
|
1512
|
+
| Array<
|
|
1513
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2
|
|
1514
|
+
>;
|
|
721
1515
|
|
|
722
1516
|
/**
|
|
723
1517
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -730,7 +1524,11 @@ export type ChoicesSystemMessage = {
|
|
|
730
1524
|
/**
|
|
731
1525
|
* The contents of the system message.
|
|
732
1526
|
*/
|
|
733
|
-
content:
|
|
1527
|
+
content:
|
|
1528
|
+
| string
|
|
1529
|
+
| Array<
|
|
1530
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2
|
|
1531
|
+
>;
|
|
734
1532
|
/**
|
|
735
1533
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
736
1534
|
*/
|
|
@@ -915,45 +1713,225 @@ export function performanceFromJSON(
|
|
|
915
1713
|
}
|
|
916
1714
|
|
|
917
1715
|
/** @internal */
|
|
918
|
-
export const
|
|
1716
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type$inboundSchema:
|
|
1717
|
+
z.ZodNativeEnum<
|
|
1718
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type
|
|
1719
|
+
> = z.nativeEnum(
|
|
1720
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type,
|
|
1721
|
+
);
|
|
1722
|
+
/** @internal */
|
|
1723
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type$outboundSchema:
|
|
1724
|
+
z.ZodNativeEnum<
|
|
1725
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type
|
|
1726
|
+
> =
|
|
1727
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type$inboundSchema;
|
|
1728
|
+
|
|
1729
|
+
/** @internal */
|
|
1730
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType$inboundSchema:
|
|
1731
|
+
z.ZodNativeEnum<
|
|
1732
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType
|
|
1733
|
+
> = z.nativeEnum(
|
|
1734
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType,
|
|
1735
|
+
);
|
|
1736
|
+
/** @internal */
|
|
1737
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType$outboundSchema:
|
|
1738
|
+
z.ZodNativeEnum<
|
|
1739
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType
|
|
1740
|
+
> =
|
|
1741
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType$inboundSchema;
|
|
1742
|
+
|
|
1743
|
+
/** @internal */
|
|
1744
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl$inboundSchema:
|
|
1745
|
+
z.ZodNativeEnum<
|
|
1746
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl
|
|
1747
|
+
> = z.nativeEnum(
|
|
1748
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl,
|
|
1749
|
+
);
|
|
1750
|
+
/** @internal */
|
|
1751
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl$outboundSchema:
|
|
1752
|
+
z.ZodNativeEnum<
|
|
1753
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl
|
|
1754
|
+
> =
|
|
1755
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl$inboundSchema;
|
|
1756
|
+
|
|
1757
|
+
/** @internal */
|
|
1758
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema:
|
|
919
1759
|
z.ZodType<
|
|
920
|
-
|
|
1760
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl,
|
|
921
1761
|
z.ZodTypeDef,
|
|
922
1762
|
unknown
|
|
923
|
-
> =
|
|
1763
|
+
> = z.object({
|
|
1764
|
+
type:
|
|
1765
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType$inboundSchema,
|
|
1766
|
+
ttl:
|
|
1767
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl$inboundSchema
|
|
1768
|
+
.default("5m"),
|
|
1769
|
+
});
|
|
924
1770
|
/** @internal */
|
|
925
|
-
export type
|
|
926
|
-
|
|
1771
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$Outbound =
|
|
1772
|
+
{
|
|
1773
|
+
type: string;
|
|
1774
|
+
ttl: string;
|
|
1775
|
+
};
|
|
927
1776
|
|
|
928
1777
|
/** @internal */
|
|
929
|
-
export const
|
|
1778
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema:
|
|
930
1779
|
z.ZodType<
|
|
931
|
-
|
|
1780
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$Outbound,
|
|
932
1781
|
z.ZodTypeDef,
|
|
933
|
-
|
|
934
|
-
> =
|
|
1782
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl
|
|
1783
|
+
> = z.object({
|
|
1784
|
+
type:
|
|
1785
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5ContentType$outboundSchema,
|
|
1786
|
+
ttl:
|
|
1787
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyTtl$outboundSchema
|
|
1788
|
+
.default("5m"),
|
|
1789
|
+
});
|
|
935
1790
|
|
|
936
|
-
export function
|
|
937
|
-
|
|
938
|
-
|
|
1791
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControlToJSON(
|
|
1792
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl:
|
|
1793
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl,
|
|
939
1794
|
): string {
|
|
940
1795
|
return JSON.stringify(
|
|
941
|
-
|
|
942
|
-
.parse(
|
|
1796
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema
|
|
1797
|
+
.parse(
|
|
1798
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl,
|
|
1799
|
+
),
|
|
943
1800
|
);
|
|
944
1801
|
}
|
|
945
|
-
export function
|
|
1802
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControlFromJSON(
|
|
946
1803
|
jsonString: string,
|
|
947
1804
|
): SafeParseResult<
|
|
948
|
-
|
|
1805
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl,
|
|
949
1806
|
SDKValidationError
|
|
950
1807
|
> {
|
|
951
1808
|
return safeParse(
|
|
952
1809
|
jsonString,
|
|
953
1810
|
(x) =>
|
|
954
|
-
|
|
1811
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema
|
|
955
1812
|
.parse(JSON.parse(x)),
|
|
956
|
-
`Failed to parse '
|
|
1813
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl' from JSON`,
|
|
1814
|
+
);
|
|
1815
|
+
}
|
|
1816
|
+
|
|
1817
|
+
/** @internal */
|
|
1818
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequest1$inboundSchema:
|
|
1819
|
+
z.ZodType<
|
|
1820
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1,
|
|
1821
|
+
z.ZodTypeDef,
|
|
1822
|
+
unknown
|
|
1823
|
+
> = z.object({
|
|
1824
|
+
type:
|
|
1825
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type$inboundSchema,
|
|
1826
|
+
text: z.string(),
|
|
1827
|
+
cache_control: z.lazy(() =>
|
|
1828
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema
|
|
1829
|
+
).optional(),
|
|
1830
|
+
}).transform((v) => {
|
|
1831
|
+
return remap$(v, {
|
|
1832
|
+
"cache_control": "cacheControl",
|
|
1833
|
+
});
|
|
1834
|
+
});
|
|
1835
|
+
/** @internal */
|
|
1836
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequest1$Outbound = {
|
|
1837
|
+
type: string;
|
|
1838
|
+
text: string;
|
|
1839
|
+
cache_control?:
|
|
1840
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$Outbound
|
|
1841
|
+
| undefined;
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1844
|
+
/** @internal */
|
|
1845
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequest1$outboundSchema:
|
|
1846
|
+
z.ZodType<
|
|
1847
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$Outbound,
|
|
1848
|
+
z.ZodTypeDef,
|
|
1849
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1
|
|
1850
|
+
> = z.object({
|
|
1851
|
+
type:
|
|
1852
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages5Type$outboundSchema,
|
|
1853
|
+
text: z.string(),
|
|
1854
|
+
cacheControl: z.lazy(() =>
|
|
1855
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema
|
|
1856
|
+
).optional(),
|
|
1857
|
+
}).transform((v) => {
|
|
1858
|
+
return remap$(v, {
|
|
1859
|
+
cacheControl: "cache_control",
|
|
1860
|
+
});
|
|
1861
|
+
});
|
|
1862
|
+
|
|
1863
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequest1ToJSON(
|
|
1864
|
+
deploymentCreateMetric2DeploymentsMetricsRequest1:
|
|
1865
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1,
|
|
1866
|
+
): string {
|
|
1867
|
+
return JSON.stringify(
|
|
1868
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$outboundSchema.parse(
|
|
1869
|
+
deploymentCreateMetric2DeploymentsMetricsRequest1,
|
|
1870
|
+
),
|
|
1871
|
+
);
|
|
1872
|
+
}
|
|
1873
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequest1FromJSON(
|
|
1874
|
+
jsonString: string,
|
|
1875
|
+
): SafeParseResult<
|
|
1876
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1,
|
|
1877
|
+
SDKValidationError
|
|
1878
|
+
> {
|
|
1879
|
+
return safeParse(
|
|
1880
|
+
jsonString,
|
|
1881
|
+
(x) =>
|
|
1882
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$inboundSchema.parse(
|
|
1883
|
+
JSON.parse(x),
|
|
1884
|
+
),
|
|
1885
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequest1' from JSON`,
|
|
1886
|
+
);
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
/** @internal */
|
|
1890
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$inboundSchema:
|
|
1891
|
+
z.ZodType<
|
|
1892
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2,
|
|
1893
|
+
z.ZodTypeDef,
|
|
1894
|
+
unknown
|
|
1895
|
+
> = z.lazy(() =>
|
|
1896
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$inboundSchema
|
|
1897
|
+
);
|
|
1898
|
+
/** @internal */
|
|
1899
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$Outbound =
|
|
1900
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$Outbound;
|
|
1901
|
+
|
|
1902
|
+
/** @internal */
|
|
1903
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$outboundSchema:
|
|
1904
|
+
z.ZodType<
|
|
1905
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$Outbound,
|
|
1906
|
+
z.ZodTypeDef,
|
|
1907
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2
|
|
1908
|
+
> = z.lazy(() =>
|
|
1909
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$outboundSchema
|
|
1910
|
+
);
|
|
1911
|
+
|
|
1912
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2ToJSON(
|
|
1913
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2:
|
|
1914
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2,
|
|
1915
|
+
): string {
|
|
1916
|
+
return JSON.stringify(
|
|
1917
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$outboundSchema
|
|
1918
|
+
.parse(
|
|
1919
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2,
|
|
1920
|
+
),
|
|
1921
|
+
);
|
|
1922
|
+
}
|
|
1923
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2FromJSON(
|
|
1924
|
+
jsonString: string,
|
|
1925
|
+
): SafeParseResult<
|
|
1926
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2,
|
|
1927
|
+
SDKValidationError
|
|
1928
|
+
> {
|
|
1929
|
+
return safeParse(
|
|
1930
|
+
jsonString,
|
|
1931
|
+
(x) =>
|
|
1932
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2$inboundSchema
|
|
1933
|
+
.parse(JSON.parse(x)),
|
|
1934
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyMessages2' from JSON`,
|
|
957
1935
|
);
|
|
958
1936
|
}
|
|
959
1937
|
|
|
@@ -965,12 +1943,14 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5
|
|
|
965
1943
|
unknown
|
|
966
1944
|
> = z.union([
|
|
967
1945
|
z.string(),
|
|
968
|
-
z.array(
|
|
1946
|
+
z.array(z.lazy(() =>
|
|
1947
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$inboundSchema
|
|
1948
|
+
)),
|
|
969
1949
|
]);
|
|
970
1950
|
/** @internal */
|
|
971
1951
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Content$Outbound =
|
|
972
1952
|
| string
|
|
973
|
-
| Array<
|
|
1953
|
+
| Array<DeploymentCreateMetric2DeploymentsMetricsRequest1$Outbound>;
|
|
974
1954
|
|
|
975
1955
|
/** @internal */
|
|
976
1956
|
export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Content$outboundSchema:
|
|
@@ -980,7 +1960,9 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5
|
|
|
980
1960
|
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5Content
|
|
981
1961
|
> = z.union([
|
|
982
1962
|
z.string(),
|
|
983
|
-
z.array(
|
|
1963
|
+
z.array(z.lazy(() =>
|
|
1964
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$outboundSchema
|
|
1965
|
+
)),
|
|
984
1966
|
]);
|
|
985
1967
|
|
|
986
1968
|
export function deploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBody5ContentToJSON(
|
|
@@ -1086,7 +2068,9 @@ export const DeploymentCreateMetricMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1086
2068
|
role: z.literal("tool"),
|
|
1087
2069
|
content: z.union([
|
|
1088
2070
|
z.string(),
|
|
1089
|
-
z.array(
|
|
2071
|
+
z.array(z.lazy(() =>
|
|
2072
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$inboundSchema
|
|
2073
|
+
)),
|
|
1090
2074
|
]),
|
|
1091
2075
|
tool_call_id: z.string(),
|
|
1092
2076
|
cache_control: z.lazy(() =>
|
|
@@ -1099,123 +2083,269 @@ export const DeploymentCreateMetricMessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
1099
2083
|
});
|
|
1100
2084
|
});
|
|
1101
2085
|
/** @internal */
|
|
1102
|
-
export type DeploymentCreateMetricMessagesToolMessage$Outbound = {
|
|
1103
|
-
role: "tool";
|
|
1104
|
-
content:
|
|
1105
|
-
|
|
2086
|
+
export type DeploymentCreateMetricMessagesToolMessage$Outbound = {
|
|
2087
|
+
role: "tool";
|
|
2088
|
+
content:
|
|
2089
|
+
| string
|
|
2090
|
+
| Array<DeploymentCreateMetric2DeploymentsMetricsRequest1$Outbound>;
|
|
2091
|
+
tool_call_id: string;
|
|
2092
|
+
cache_control?:
|
|
2093
|
+
| DeploymentCreateMetricMessagesCacheControl$Outbound
|
|
2094
|
+
| undefined;
|
|
2095
|
+
};
|
|
2096
|
+
|
|
2097
|
+
/** @internal */
|
|
2098
|
+
export const DeploymentCreateMetricMessagesToolMessage$outboundSchema:
|
|
2099
|
+
z.ZodType<
|
|
2100
|
+
DeploymentCreateMetricMessagesToolMessage$Outbound,
|
|
2101
|
+
z.ZodTypeDef,
|
|
2102
|
+
DeploymentCreateMetricMessagesToolMessage
|
|
2103
|
+
> = z.object({
|
|
2104
|
+
role: z.literal("tool"),
|
|
2105
|
+
content: z.union([
|
|
2106
|
+
z.string(),
|
|
2107
|
+
z.array(z.lazy(() =>
|
|
2108
|
+
DeploymentCreateMetric2DeploymentsMetricsRequest1$outboundSchema
|
|
2109
|
+
)),
|
|
2110
|
+
]),
|
|
2111
|
+
toolCallId: z.string(),
|
|
2112
|
+
cacheControl: z.lazy(() =>
|
|
2113
|
+
DeploymentCreateMetricMessagesCacheControl$outboundSchema
|
|
2114
|
+
).optional(),
|
|
2115
|
+
}).transform((v) => {
|
|
2116
|
+
return remap$(v, {
|
|
2117
|
+
toolCallId: "tool_call_id",
|
|
2118
|
+
cacheControl: "cache_control",
|
|
2119
|
+
});
|
|
2120
|
+
});
|
|
2121
|
+
|
|
2122
|
+
export function deploymentCreateMetricMessagesToolMessageToJSON(
|
|
2123
|
+
deploymentCreateMetricMessagesToolMessage:
|
|
2124
|
+
DeploymentCreateMetricMessagesToolMessage,
|
|
2125
|
+
): string {
|
|
2126
|
+
return JSON.stringify(
|
|
2127
|
+
DeploymentCreateMetricMessagesToolMessage$outboundSchema.parse(
|
|
2128
|
+
deploymentCreateMetricMessagesToolMessage,
|
|
2129
|
+
),
|
|
2130
|
+
);
|
|
2131
|
+
}
|
|
2132
|
+
export function deploymentCreateMetricMessagesToolMessageFromJSON(
|
|
2133
|
+
jsonString: string,
|
|
2134
|
+
): SafeParseResult<
|
|
2135
|
+
DeploymentCreateMetricMessagesToolMessage,
|
|
2136
|
+
SDKValidationError
|
|
2137
|
+
> {
|
|
2138
|
+
return safeParse(
|
|
2139
|
+
jsonString,
|
|
2140
|
+
(x) =>
|
|
2141
|
+
DeploymentCreateMetricMessagesToolMessage$inboundSchema.parse(
|
|
2142
|
+
JSON.parse(x),
|
|
2143
|
+
),
|
|
2144
|
+
`Failed to parse 'DeploymentCreateMetricMessagesToolMessage' from JSON`,
|
|
2145
|
+
);
|
|
2146
|
+
}
|
|
2147
|
+
|
|
2148
|
+
/** @internal */
|
|
2149
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type$inboundSchema:
|
|
2150
|
+
z.ZodNativeEnum<
|
|
2151
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type
|
|
2152
|
+
> = z.nativeEnum(
|
|
2153
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type,
|
|
2154
|
+
);
|
|
2155
|
+
/** @internal */
|
|
2156
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type$outboundSchema:
|
|
2157
|
+
z.ZodNativeEnum<
|
|
2158
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type
|
|
2159
|
+
> =
|
|
2160
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type$inboundSchema;
|
|
2161
|
+
|
|
2162
|
+
/** @internal */
|
|
2163
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestTtl$inboundSchema:
|
|
2164
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestTtl> =
|
|
2165
|
+
z.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsRequestTtl);
|
|
2166
|
+
/** @internal */
|
|
2167
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestTtl$outboundSchema:
|
|
2168
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsRequestTtl> =
|
|
2169
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestTtl$inboundSchema;
|
|
2170
|
+
|
|
2171
|
+
/** @internal */
|
|
2172
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$inboundSchema:
|
|
2173
|
+
z.ZodType<
|
|
2174
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl,
|
|
2175
|
+
z.ZodTypeDef,
|
|
2176
|
+
unknown
|
|
2177
|
+
> = z.object({
|
|
2178
|
+
type:
|
|
2179
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type$inboundSchema,
|
|
2180
|
+
ttl: DeploymentCreateMetric2DeploymentsMetricsRequestTtl$inboundSchema
|
|
2181
|
+
.default("5m"),
|
|
2182
|
+
});
|
|
2183
|
+
/** @internal */
|
|
2184
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$Outbound =
|
|
2185
|
+
{
|
|
2186
|
+
type: string;
|
|
2187
|
+
ttl: string;
|
|
2188
|
+
};
|
|
2189
|
+
|
|
2190
|
+
/** @internal */
|
|
2191
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$outboundSchema:
|
|
2192
|
+
z.ZodType<
|
|
2193
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$Outbound,
|
|
2194
|
+
z.ZodTypeDef,
|
|
2195
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl
|
|
2196
|
+
> = z.object({
|
|
2197
|
+
type:
|
|
2198
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyMessages4Type$outboundSchema,
|
|
2199
|
+
ttl: DeploymentCreateMetric2DeploymentsMetricsRequestTtl$outboundSchema
|
|
2200
|
+
.default("5m"),
|
|
2201
|
+
});
|
|
2202
|
+
|
|
2203
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestCacheControlToJSON(
|
|
2204
|
+
deploymentCreateMetric2DeploymentsMetricsRequestCacheControl:
|
|
2205
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl,
|
|
2206
|
+
): string {
|
|
2207
|
+
return JSON.stringify(
|
|
2208
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$outboundSchema
|
|
2209
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRequestCacheControl),
|
|
2210
|
+
);
|
|
2211
|
+
}
|
|
2212
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestCacheControlFromJSON(
|
|
2213
|
+
jsonString: string,
|
|
2214
|
+
): SafeParseResult<
|
|
2215
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl,
|
|
2216
|
+
SDKValidationError
|
|
2217
|
+
> {
|
|
2218
|
+
return safeParse(
|
|
2219
|
+
jsonString,
|
|
2220
|
+
(x) =>
|
|
2221
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$inboundSchema
|
|
2222
|
+
.parse(JSON.parse(x)),
|
|
2223
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl' from JSON`,
|
|
2224
|
+
);
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
/** @internal */
|
|
2228
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema:
|
|
2229
|
+
z.ZodType<DeploymentCreateMetric2DeploymentsMetrics1, z.ZodTypeDef, unknown> =
|
|
2230
|
+
z.object({
|
|
2231
|
+
type: z.literal("text"),
|
|
2232
|
+
text: z.string(),
|
|
2233
|
+
cache_control: z.lazy(() =>
|
|
2234
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$inboundSchema
|
|
2235
|
+
).optional(),
|
|
2236
|
+
}).transform((v) => {
|
|
2237
|
+
return remap$(v, {
|
|
2238
|
+
"cache_control": "cacheControl",
|
|
2239
|
+
});
|
|
2240
|
+
});
|
|
2241
|
+
/** @internal */
|
|
2242
|
+
export type DeploymentCreateMetric2DeploymentsMetrics1$Outbound = {
|
|
2243
|
+
type: "text";
|
|
2244
|
+
text: string;
|
|
1106
2245
|
cache_control?:
|
|
1107
|
-
|
|
|
2246
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$Outbound
|
|
1108
2247
|
| undefined;
|
|
1109
2248
|
};
|
|
1110
2249
|
|
|
1111
2250
|
/** @internal */
|
|
1112
|
-
export const
|
|
2251
|
+
export const DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema:
|
|
1113
2252
|
z.ZodType<
|
|
1114
|
-
|
|
2253
|
+
DeploymentCreateMetric2DeploymentsMetrics1$Outbound,
|
|
1115
2254
|
z.ZodTypeDef,
|
|
1116
|
-
|
|
2255
|
+
DeploymentCreateMetric2DeploymentsMetrics1
|
|
1117
2256
|
> = z.object({
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
z.string(),
|
|
1121
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1122
|
-
]),
|
|
1123
|
-
toolCallId: z.string(),
|
|
2257
|
+
type: z.literal("text"),
|
|
2258
|
+
text: z.string(),
|
|
1124
2259
|
cacheControl: z.lazy(() =>
|
|
1125
|
-
|
|
2260
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestCacheControl$outboundSchema
|
|
1126
2261
|
).optional(),
|
|
1127
2262
|
}).transform((v) => {
|
|
1128
2263
|
return remap$(v, {
|
|
1129
|
-
toolCallId: "tool_call_id",
|
|
1130
2264
|
cacheControl: "cache_control",
|
|
1131
2265
|
});
|
|
1132
2266
|
});
|
|
1133
2267
|
|
|
1134
|
-
export function
|
|
1135
|
-
|
|
1136
|
-
|
|
2268
|
+
export function deploymentCreateMetric2DeploymentsMetrics1ToJSON(
|
|
2269
|
+
deploymentCreateMetric2DeploymentsMetrics1:
|
|
2270
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
1137
2271
|
): string {
|
|
1138
2272
|
return JSON.stringify(
|
|
1139
|
-
|
|
1140
|
-
|
|
2273
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema.parse(
|
|
2274
|
+
deploymentCreateMetric2DeploymentsMetrics1,
|
|
1141
2275
|
),
|
|
1142
2276
|
);
|
|
1143
2277
|
}
|
|
1144
|
-
export function
|
|
2278
|
+
export function deploymentCreateMetric2DeploymentsMetrics1FromJSON(
|
|
1145
2279
|
jsonString: string,
|
|
1146
2280
|
): SafeParseResult<
|
|
1147
|
-
|
|
2281
|
+
DeploymentCreateMetric2DeploymentsMetrics1,
|
|
1148
2282
|
SDKValidationError
|
|
1149
2283
|
> {
|
|
1150
2284
|
return safeParse(
|
|
1151
2285
|
jsonString,
|
|
1152
2286
|
(x) =>
|
|
1153
|
-
|
|
2287
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema.parse(
|
|
1154
2288
|
JSON.parse(x),
|
|
1155
2289
|
),
|
|
1156
|
-
`Failed to parse '
|
|
2290
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetrics1' from JSON`,
|
|
1157
2291
|
);
|
|
1158
2292
|
}
|
|
1159
2293
|
|
|
1160
2294
|
/** @internal */
|
|
1161
|
-
export const
|
|
2295
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema:
|
|
1162
2296
|
z.ZodType<
|
|
1163
|
-
|
|
2297
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
1164
2298
|
z.ZodTypeDef,
|
|
1165
2299
|
unknown
|
|
1166
2300
|
> = z.union([
|
|
1167
|
-
|
|
1168
|
-
z.object({ type: z.literal("text") }),
|
|
1169
|
-
),
|
|
2301
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
1170
2302
|
components.RefusalPartSchema$inboundSchema,
|
|
1171
2303
|
components.ReasoningPartSchema$inboundSchema,
|
|
1172
2304
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1173
2305
|
]);
|
|
1174
2306
|
/** @internal */
|
|
1175
|
-
export type
|
|
1176
|
-
|
|
|
2307
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound =
|
|
2308
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
1177
2309
|
| components.RefusalPartSchema$Outbound
|
|
1178
2310
|
| components.ReasoningPartSchema$Outbound
|
|
1179
2311
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
1180
2312
|
|
|
1181
2313
|
/** @internal */
|
|
1182
|
-
export const
|
|
2314
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema:
|
|
1183
2315
|
z.ZodType<
|
|
1184
|
-
|
|
2316
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$Outbound,
|
|
1185
2317
|
z.ZodTypeDef,
|
|
1186
|
-
|
|
2318
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2
|
|
1187
2319
|
> = z.union([
|
|
1188
|
-
|
|
1189
|
-
z.object({ type: z.literal("text") }),
|
|
1190
|
-
),
|
|
2320
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
1191
2321
|
components.RefusalPartSchema$outboundSchema,
|
|
1192
2322
|
components.ReasoningPartSchema$outboundSchema,
|
|
1193
2323
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1194
2324
|
]);
|
|
1195
2325
|
|
|
1196
|
-
export function
|
|
1197
|
-
|
|
1198
|
-
|
|
2326
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2ToJSON(
|
|
2327
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2:
|
|
2328
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
1199
2329
|
): string {
|
|
1200
2330
|
return JSON.stringify(
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
2331
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$outboundSchema
|
|
2332
|
+
.parse(
|
|
2333
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
2334
|
+
),
|
|
1204
2335
|
);
|
|
1205
2336
|
}
|
|
1206
|
-
export function
|
|
2337
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2FromJSON(
|
|
1207
2338
|
jsonString: string,
|
|
1208
2339
|
): SafeParseResult<
|
|
1209
|
-
|
|
2340
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2,
|
|
1210
2341
|
SDKValidationError
|
|
1211
2342
|
> {
|
|
1212
2343
|
return safeParse(
|
|
1213
2344
|
jsonString,
|
|
1214
2345
|
(x) =>
|
|
1215
|
-
|
|
1216
|
-
JSON.parse(x),
|
|
1217
|
-
|
|
1218
|
-
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
|
|
2346
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2$inboundSchema
|
|
2347
|
+
.parse(JSON.parse(x)),
|
|
2348
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBody2' from JSON`,
|
|
1219
2349
|
);
|
|
1220
2350
|
}
|
|
1221
2351
|
|
|
@@ -1227,22 +2357,18 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyC
|
|
|
1227
2357
|
unknown
|
|
1228
2358
|
> = z.union([
|
|
1229
2359
|
z.string(),
|
|
1230
|
-
z.array(
|
|
1231
|
-
z.
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1237
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1238
|
-
]),
|
|
1239
|
-
),
|
|
2360
|
+
z.array(z.union([
|
|
2361
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema),
|
|
2362
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2363
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2364
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2365
|
+
])),
|
|
1240
2366
|
]);
|
|
1241
2367
|
/** @internal */
|
|
1242
2368
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyContent$Outbound =
|
|
1243
2369
|
| string
|
|
1244
2370
|
| Array<
|
|
1245
|
-
|
|
|
2371
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
1246
2372
|
| components.RefusalPartSchema$Outbound
|
|
1247
2373
|
| components.ReasoningPartSchema$Outbound
|
|
1248
2374
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -1256,16 +2382,12 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyC
|
|
|
1256
2382
|
DeploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyContent
|
|
1257
2383
|
> = z.union([
|
|
1258
2384
|
z.string(),
|
|
1259
|
-
z.array(
|
|
1260
|
-
z.
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1266
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1267
|
-
]),
|
|
1268
|
-
),
|
|
2385
|
+
z.array(z.union([
|
|
2386
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema),
|
|
2387
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2388
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2389
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2390
|
+
])),
|
|
1269
2391
|
]);
|
|
1270
2392
|
|
|
1271
2393
|
export function deploymentCreateMetricMessagesDeploymentsMetricsRequestRequestBodyContentToJSON(
|
|
@@ -1468,8 +2590,8 @@ export const DeploymentCreateMetricMessagesAssistantMessage$inboundSchema:
|
|
|
1468
2590
|
z.string(),
|
|
1469
2591
|
z.array(
|
|
1470
2592
|
z.union([
|
|
1471
|
-
|
|
1472
|
-
|
|
2593
|
+
z.lazy(() =>
|
|
2594
|
+
DeploymentCreateMetric2DeploymentsMetrics1$inboundSchema
|
|
1473
2595
|
),
|
|
1474
2596
|
components.RefusalPartSchema$inboundSchema,
|
|
1475
2597
|
components.ReasoningPartSchema$inboundSchema,
|
|
@@ -1497,7 +2619,7 @@ export type DeploymentCreateMetricMessagesAssistantMessage$Outbound = {
|
|
|
1497
2619
|
content?:
|
|
1498
2620
|
| string
|
|
1499
2621
|
| Array<
|
|
1500
|
-
|
|
|
2622
|
+
| DeploymentCreateMetric2DeploymentsMetrics1$Outbound
|
|
1501
2623
|
| components.RefusalPartSchema$Outbound
|
|
1502
2624
|
| components.ReasoningPartSchema$Outbound
|
|
1503
2625
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -1525,8 +2647,8 @@ export const DeploymentCreateMetricMessagesAssistantMessage$outboundSchema:
|
|
|
1525
2647
|
z.string(),
|
|
1526
2648
|
z.array(
|
|
1527
2649
|
z.union([
|
|
1528
|
-
|
|
1529
|
-
|
|
2650
|
+
z.lazy(() =>
|
|
2651
|
+
DeploymentCreateMetric2DeploymentsMetrics1$outboundSchema
|
|
1530
2652
|
),
|
|
1531
2653
|
components.RefusalPartSchema$outboundSchema,
|
|
1532
2654
|
components.ReasoningPartSchema$outboundSchema,
|
|
@@ -1576,6 +2698,147 @@ export function deploymentCreateMetricMessagesAssistantMessageFromJSON(
|
|
|
1576
2698
|
);
|
|
1577
2699
|
}
|
|
1578
2700
|
|
|
2701
|
+
/** @internal */
|
|
2702
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema:
|
|
2703
|
+
z.ZodNativeEnum<
|
|
2704
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
|
|
2705
|
+
> = z.nativeEnum(
|
|
2706
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType,
|
|
2707
|
+
);
|
|
2708
|
+
/** @internal */
|
|
2709
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema:
|
|
2710
|
+
z.ZodNativeEnum<
|
|
2711
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType
|
|
2712
|
+
> =
|
|
2713
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema;
|
|
2714
|
+
|
|
2715
|
+
/** @internal */
|
|
2716
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTtl$inboundSchema:
|
|
2717
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsTtl> = z
|
|
2718
|
+
.nativeEnum(DeploymentCreateMetric2DeploymentsMetricsTtl);
|
|
2719
|
+
/** @internal */
|
|
2720
|
+
export const DeploymentCreateMetric2DeploymentsMetricsTtl$outboundSchema:
|
|
2721
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsTtl> =
|
|
2722
|
+
DeploymentCreateMetric2DeploymentsMetricsTtl$inboundSchema;
|
|
2723
|
+
|
|
2724
|
+
/** @internal */
|
|
2725
|
+
export const DeploymentCreateMetric2DeploymentsMetricsCacheControl$inboundSchema:
|
|
2726
|
+
z.ZodType<
|
|
2727
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl,
|
|
2728
|
+
z.ZodTypeDef,
|
|
2729
|
+
unknown
|
|
2730
|
+
> = z.object({
|
|
2731
|
+
type:
|
|
2732
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$inboundSchema,
|
|
2733
|
+
ttl: DeploymentCreateMetric2DeploymentsMetricsTtl$inboundSchema.default(
|
|
2734
|
+
"5m",
|
|
2735
|
+
),
|
|
2736
|
+
});
|
|
2737
|
+
/** @internal */
|
|
2738
|
+
export type DeploymentCreateMetric2DeploymentsMetricsCacheControl$Outbound = {
|
|
2739
|
+
type: string;
|
|
2740
|
+
ttl: string;
|
|
2741
|
+
};
|
|
2742
|
+
|
|
2743
|
+
/** @internal */
|
|
2744
|
+
export const DeploymentCreateMetric2DeploymentsMetricsCacheControl$outboundSchema:
|
|
2745
|
+
z.ZodType<
|
|
2746
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl$Outbound,
|
|
2747
|
+
z.ZodTypeDef,
|
|
2748
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl
|
|
2749
|
+
> = z.object({
|
|
2750
|
+
type:
|
|
2751
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyType$outboundSchema,
|
|
2752
|
+
ttl: DeploymentCreateMetric2DeploymentsMetricsTtl$outboundSchema.default(
|
|
2753
|
+
"5m",
|
|
2754
|
+
),
|
|
2755
|
+
});
|
|
2756
|
+
|
|
2757
|
+
export function deploymentCreateMetric2DeploymentsMetricsCacheControlToJSON(
|
|
2758
|
+
deploymentCreateMetric2DeploymentsMetricsCacheControl:
|
|
2759
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl,
|
|
2760
|
+
): string {
|
|
2761
|
+
return JSON.stringify(
|
|
2762
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl$outboundSchema.parse(
|
|
2763
|
+
deploymentCreateMetric2DeploymentsMetricsCacheControl,
|
|
2764
|
+
),
|
|
2765
|
+
);
|
|
2766
|
+
}
|
|
2767
|
+
export function deploymentCreateMetric2DeploymentsMetricsCacheControlFromJSON(
|
|
2768
|
+
jsonString: string,
|
|
2769
|
+
): SafeParseResult<
|
|
2770
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl,
|
|
2771
|
+
SDKValidationError
|
|
2772
|
+
> {
|
|
2773
|
+
return safeParse(
|
|
2774
|
+
jsonString,
|
|
2775
|
+
(x) =>
|
|
2776
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl$inboundSchema.parse(
|
|
2777
|
+
JSON.parse(x),
|
|
2778
|
+
),
|
|
2779
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsCacheControl' from JSON`,
|
|
2780
|
+
);
|
|
2781
|
+
}
|
|
2782
|
+
|
|
2783
|
+
/** @internal */
|
|
2784
|
+
export const DeploymentCreateMetric24$inboundSchema: z.ZodType<
|
|
2785
|
+
DeploymentCreateMetric24,
|
|
2786
|
+
z.ZodTypeDef,
|
|
2787
|
+
unknown
|
|
2788
|
+
> = z.object({
|
|
2789
|
+
type: z.literal("file"),
|
|
2790
|
+
cache_control: z.lazy(() =>
|
|
2791
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl$inboundSchema
|
|
2792
|
+
).optional(),
|
|
2793
|
+
file: components.FileContentPartSchema$inboundSchema,
|
|
2794
|
+
}).transform((v) => {
|
|
2795
|
+
return remap$(v, {
|
|
2796
|
+
"cache_control": "cacheControl",
|
|
2797
|
+
});
|
|
2798
|
+
});
|
|
2799
|
+
/** @internal */
|
|
2800
|
+
export type DeploymentCreateMetric24$Outbound = {
|
|
2801
|
+
type: "file";
|
|
2802
|
+
cache_control?:
|
|
2803
|
+
| DeploymentCreateMetric2DeploymentsMetricsCacheControl$Outbound
|
|
2804
|
+
| undefined;
|
|
2805
|
+
file: components.FileContentPartSchema$Outbound;
|
|
2806
|
+
};
|
|
2807
|
+
|
|
2808
|
+
/** @internal */
|
|
2809
|
+
export const DeploymentCreateMetric24$outboundSchema: z.ZodType<
|
|
2810
|
+
DeploymentCreateMetric24$Outbound,
|
|
2811
|
+
z.ZodTypeDef,
|
|
2812
|
+
DeploymentCreateMetric24
|
|
2813
|
+
> = z.object({
|
|
2814
|
+
type: z.literal("file"),
|
|
2815
|
+
cacheControl: z.lazy(() =>
|
|
2816
|
+
DeploymentCreateMetric2DeploymentsMetricsCacheControl$outboundSchema
|
|
2817
|
+
).optional(),
|
|
2818
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2819
|
+
}).transform((v) => {
|
|
2820
|
+
return remap$(v, {
|
|
2821
|
+
cacheControl: "cache_control",
|
|
2822
|
+
});
|
|
2823
|
+
});
|
|
2824
|
+
|
|
2825
|
+
export function deploymentCreateMetric24ToJSON(
|
|
2826
|
+
deploymentCreateMetric24: DeploymentCreateMetric24,
|
|
2827
|
+
): string {
|
|
2828
|
+
return JSON.stringify(
|
|
2829
|
+
DeploymentCreateMetric24$outboundSchema.parse(deploymentCreateMetric24),
|
|
2830
|
+
);
|
|
2831
|
+
}
|
|
2832
|
+
export function deploymentCreateMetric24FromJSON(
|
|
2833
|
+
jsonString: string,
|
|
2834
|
+
): SafeParseResult<DeploymentCreateMetric24, SDKValidationError> {
|
|
2835
|
+
return safeParse(
|
|
2836
|
+
jsonString,
|
|
2837
|
+
(x) => DeploymentCreateMetric24$inboundSchema.parse(JSON.parse(x)),
|
|
2838
|
+
`Failed to parse 'DeploymentCreateMetric24' from JSON`,
|
|
2839
|
+
);
|
|
2840
|
+
}
|
|
2841
|
+
|
|
1579
2842
|
/** @internal */
|
|
1580
2843
|
export const DeploymentCreateMetric2DeploymentsMetricsType$inboundSchema:
|
|
1581
2844
|
z.ZodNativeEnum<typeof DeploymentCreateMetric2DeploymentsMetricsType> = z
|
|
@@ -1640,110 +2903,113 @@ export function deploymentCreateMetric2CacheControlFromJSON(
|
|
|
1640
2903
|
}
|
|
1641
2904
|
|
|
1642
2905
|
/** @internal */
|
|
1643
|
-
export const
|
|
1644
|
-
|
|
2906
|
+
export const DeploymentCreateMetric21$inboundSchema: z.ZodType<
|
|
2907
|
+
DeploymentCreateMetric21,
|
|
1645
2908
|
z.ZodTypeDef,
|
|
1646
2909
|
unknown
|
|
1647
2910
|
> = z.object({
|
|
1648
|
-
type: z.literal("
|
|
2911
|
+
type: z.literal("text"),
|
|
2912
|
+
text: z.string(),
|
|
1649
2913
|
cache_control: z.lazy(() => DeploymentCreateMetric2CacheControl$inboundSchema)
|
|
1650
2914
|
.optional(),
|
|
1651
|
-
file: components.FileContentPartSchema$inboundSchema,
|
|
1652
2915
|
}).transform((v) => {
|
|
1653
2916
|
return remap$(v, {
|
|
1654
2917
|
"cache_control": "cacheControl",
|
|
1655
2918
|
});
|
|
1656
2919
|
});
|
|
1657
2920
|
/** @internal */
|
|
1658
|
-
export type
|
|
1659
|
-
type: "
|
|
2921
|
+
export type DeploymentCreateMetric21$Outbound = {
|
|
2922
|
+
type: "text";
|
|
2923
|
+
text: string;
|
|
1660
2924
|
cache_control?: DeploymentCreateMetric2CacheControl$Outbound | undefined;
|
|
1661
|
-
file: components.FileContentPartSchema$Outbound;
|
|
1662
2925
|
};
|
|
1663
2926
|
|
|
1664
2927
|
/** @internal */
|
|
1665
|
-
export const
|
|
1666
|
-
|
|
2928
|
+
export const DeploymentCreateMetric21$outboundSchema: z.ZodType<
|
|
2929
|
+
DeploymentCreateMetric21$Outbound,
|
|
1667
2930
|
z.ZodTypeDef,
|
|
1668
|
-
|
|
2931
|
+
DeploymentCreateMetric21
|
|
1669
2932
|
> = z.object({
|
|
1670
|
-
type: z.literal("
|
|
2933
|
+
type: z.literal("text"),
|
|
2934
|
+
text: z.string(),
|
|
1671
2935
|
cacheControl: z.lazy(() => DeploymentCreateMetric2CacheControl$outboundSchema)
|
|
1672
2936
|
.optional(),
|
|
1673
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
1674
2937
|
}).transform((v) => {
|
|
1675
2938
|
return remap$(v, {
|
|
1676
2939
|
cacheControl: "cache_control",
|
|
1677
2940
|
});
|
|
1678
2941
|
});
|
|
1679
2942
|
|
|
1680
|
-
export function
|
|
1681
|
-
|
|
2943
|
+
export function deploymentCreateMetric21ToJSON(
|
|
2944
|
+
deploymentCreateMetric21: DeploymentCreateMetric21,
|
|
1682
2945
|
): string {
|
|
1683
2946
|
return JSON.stringify(
|
|
1684
|
-
|
|
2947
|
+
DeploymentCreateMetric21$outboundSchema.parse(deploymentCreateMetric21),
|
|
1685
2948
|
);
|
|
1686
2949
|
}
|
|
1687
|
-
export function
|
|
2950
|
+
export function deploymentCreateMetric21FromJSON(
|
|
1688
2951
|
jsonString: string,
|
|
1689
|
-
): SafeParseResult<
|
|
2952
|
+
): SafeParseResult<DeploymentCreateMetric21, SDKValidationError> {
|
|
1690
2953
|
return safeParse(
|
|
1691
2954
|
jsonString,
|
|
1692
|
-
(x) =>
|
|
1693
|
-
`Failed to parse '
|
|
2955
|
+
(x) => DeploymentCreateMetric21$inboundSchema.parse(JSON.parse(x)),
|
|
2956
|
+
`Failed to parse 'DeploymentCreateMetric21' from JSON`,
|
|
1694
2957
|
);
|
|
1695
2958
|
}
|
|
1696
2959
|
|
|
1697
2960
|
/** @internal */
|
|
1698
|
-
export const
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
z.
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
]);
|
|
2961
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema:
|
|
2962
|
+
z.ZodType<
|
|
2963
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
2964
|
+
z.ZodTypeDef,
|
|
2965
|
+
unknown
|
|
2966
|
+
> = z.union([
|
|
2967
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
2968
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
2969
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
2970
|
+
z.lazy(() => DeploymentCreateMetric24$inboundSchema),
|
|
2971
|
+
]);
|
|
1710
2972
|
/** @internal */
|
|
1711
|
-
export type
|
|
1712
|
-
|
|
|
2973
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound =
|
|
2974
|
+
| DeploymentCreateMetric21$Outbound
|
|
1713
2975
|
| components.ImageContentPartSchema$Outbound
|
|
1714
2976
|
| components.AudioContentPartSchema$Outbound
|
|
1715
2977
|
| DeploymentCreateMetric24$Outbound;
|
|
1716
2978
|
|
|
1717
2979
|
/** @internal */
|
|
1718
|
-
export const
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
z.
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
]);
|
|
2980
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema:
|
|
2981
|
+
z.ZodType<
|
|
2982
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$Outbound,
|
|
2983
|
+
z.ZodTypeDef,
|
|
2984
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2
|
|
2985
|
+
> = z.union([
|
|
2986
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
2987
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
2988
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
2989
|
+
z.lazy(() => DeploymentCreateMetric24$outboundSchema),
|
|
2990
|
+
]);
|
|
1730
2991
|
|
|
1731
|
-
export function
|
|
1732
|
-
|
|
2992
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2ToJSON(
|
|
2993
|
+
deploymentCreateMetricContentDeploymentsMetricsRequest2:
|
|
2994
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
1733
2995
|
): string {
|
|
1734
2996
|
return JSON.stringify(
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
),
|
|
2997
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$outboundSchema
|
|
2998
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsRequest2),
|
|
1738
2999
|
);
|
|
1739
3000
|
}
|
|
1740
|
-
export function
|
|
3001
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequest2FromJSON(
|
|
1741
3002
|
jsonString: string,
|
|
1742
|
-
): SafeParseResult<
|
|
3003
|
+
): SafeParseResult<
|
|
3004
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2,
|
|
3005
|
+
SDKValidationError
|
|
3006
|
+
> {
|
|
1743
3007
|
return safeParse(
|
|
1744
3008
|
jsonString,
|
|
1745
|
-
(x) =>
|
|
1746
|
-
|
|
3009
|
+
(x) =>
|
|
3010
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequest2$inboundSchema
|
|
3011
|
+
.parse(JSON.parse(x)),
|
|
3012
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequest2' from JSON`,
|
|
1747
3013
|
);
|
|
1748
3014
|
}
|
|
1749
3015
|
|
|
@@ -1755,22 +3021,18 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$inbo
|
|
|
1755
3021
|
unknown
|
|
1756
3022
|
> = z.union([
|
|
1757
3023
|
z.string(),
|
|
1758
|
-
z.array(
|
|
1759
|
-
z.
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1765
|
-
z.lazy(() => DeploymentCreateMetric24$inboundSchema),
|
|
1766
|
-
]),
|
|
1767
|
-
),
|
|
3024
|
+
z.array(z.union([
|
|
3025
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
3026
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3027
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3028
|
+
z.lazy(() => DeploymentCreateMetric24$inboundSchema),
|
|
3029
|
+
])),
|
|
1768
3030
|
]);
|
|
1769
3031
|
/** @internal */
|
|
1770
3032
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$Outbound =
|
|
1771
3033
|
| string
|
|
1772
3034
|
| Array<
|
|
1773
|
-
|
|
|
3035
|
+
| DeploymentCreateMetric21$Outbound
|
|
1774
3036
|
| components.ImageContentPartSchema$Outbound
|
|
1775
3037
|
| components.AudioContentPartSchema$Outbound
|
|
1776
3038
|
| DeploymentCreateMetric24$Outbound
|
|
@@ -1784,16 +3046,12 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent$outb
|
|
|
1784
3046
|
DeploymentCreateMetricMessagesDeploymentsMetricsRequestContent
|
|
1785
3047
|
> = z.union([
|
|
1786
3048
|
z.string(),
|
|
1787
|
-
z.array(
|
|
1788
|
-
z.
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1794
|
-
z.lazy(() => DeploymentCreateMetric24$outboundSchema),
|
|
1795
|
-
]),
|
|
1796
|
-
),
|
|
3049
|
+
z.array(z.union([
|
|
3050
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
3051
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3052
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3053
|
+
z.lazy(() => DeploymentCreateMetric24$outboundSchema),
|
|
3054
|
+
])),
|
|
1797
3055
|
]);
|
|
1798
3056
|
|
|
1799
3057
|
export function deploymentCreateMetricMessagesDeploymentsMetricsRequestContentToJSON(
|
|
@@ -1830,16 +3088,12 @@ export const DeploymentCreateMetricMessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
1830
3088
|
name: z.string().optional(),
|
|
1831
3089
|
content: z.union([
|
|
1832
3090
|
z.string(),
|
|
1833
|
-
z.array(
|
|
1834
|
-
z.
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
1840
|
-
z.lazy(() => DeploymentCreateMetric24$inboundSchema),
|
|
1841
|
-
]),
|
|
1842
|
-
),
|
|
3091
|
+
z.array(z.union([
|
|
3092
|
+
z.lazy(() => DeploymentCreateMetric21$inboundSchema),
|
|
3093
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3094
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3095
|
+
z.lazy(() => DeploymentCreateMetric24$inboundSchema),
|
|
3096
|
+
])),
|
|
1843
3097
|
]),
|
|
1844
3098
|
});
|
|
1845
3099
|
/** @internal */
|
|
@@ -1849,7 +3103,7 @@ export type DeploymentCreateMetricMessagesUserMessage$Outbound = {
|
|
|
1849
3103
|
content:
|
|
1850
3104
|
| string
|
|
1851
3105
|
| Array<
|
|
1852
|
-
|
|
|
3106
|
+
| DeploymentCreateMetric21$Outbound
|
|
1853
3107
|
| components.ImageContentPartSchema$Outbound
|
|
1854
3108
|
| components.AudioContentPartSchema$Outbound
|
|
1855
3109
|
| DeploymentCreateMetric24$Outbound
|
|
@@ -1867,16 +3121,12 @@ export const DeploymentCreateMetricMessagesUserMessage$outboundSchema:
|
|
|
1867
3121
|
name: z.string().optional(),
|
|
1868
3122
|
content: z.union([
|
|
1869
3123
|
z.string(),
|
|
1870
|
-
z.array(
|
|
1871
|
-
z.
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
1877
|
-
z.lazy(() => DeploymentCreateMetric24$outboundSchema),
|
|
1878
|
-
]),
|
|
1879
|
-
),
|
|
3124
|
+
z.array(z.union([
|
|
3125
|
+
z.lazy(() => DeploymentCreateMetric21$outboundSchema),
|
|
3126
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3127
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3128
|
+
z.lazy(() => DeploymentCreateMetric24$outboundSchema),
|
|
3129
|
+
])),
|
|
1880
3130
|
]),
|
|
1881
3131
|
});
|
|
1882
3132
|
|
|
@@ -1906,6 +3156,168 @@ export function deploymentCreateMetricMessagesUserMessageFromJSON(
|
|
|
1906
3156
|
);
|
|
1907
3157
|
}
|
|
1908
3158
|
|
|
3159
|
+
/** @internal */
|
|
3160
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestType$inboundSchema:
|
|
3161
|
+
z.ZodNativeEnum<
|
|
3162
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestType
|
|
3163
|
+
> = z.nativeEnum(DeploymentCreateMetricContentDeploymentsMetricsRequestType);
|
|
3164
|
+
/** @internal */
|
|
3165
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestType$outboundSchema:
|
|
3166
|
+
z.ZodNativeEnum<
|
|
3167
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestType
|
|
3168
|
+
> = DeploymentCreateMetricContentDeploymentsMetricsRequestType$inboundSchema;
|
|
3169
|
+
|
|
3170
|
+
/** @internal */
|
|
3171
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType$inboundSchema:
|
|
3172
|
+
z.ZodNativeEnum<
|
|
3173
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType
|
|
3174
|
+
> = z.nativeEnum(
|
|
3175
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType,
|
|
3176
|
+
);
|
|
3177
|
+
/** @internal */
|
|
3178
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType$outboundSchema:
|
|
3179
|
+
z.ZodNativeEnum<
|
|
3180
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType
|
|
3181
|
+
> =
|
|
3182
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType$inboundSchema;
|
|
3183
|
+
|
|
3184
|
+
/** @internal */
|
|
3185
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsTtl$inboundSchema:
|
|
3186
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsTtl> = z
|
|
3187
|
+
.nativeEnum(DeploymentCreateMetricContentDeploymentsMetricsTtl);
|
|
3188
|
+
/** @internal */
|
|
3189
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsTtl$outboundSchema:
|
|
3190
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsTtl> =
|
|
3191
|
+
DeploymentCreateMetricContentDeploymentsMetricsTtl$inboundSchema;
|
|
3192
|
+
|
|
3193
|
+
/** @internal */
|
|
3194
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsCacheControl$inboundSchema:
|
|
3195
|
+
z.ZodType<
|
|
3196
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl,
|
|
3197
|
+
z.ZodTypeDef,
|
|
3198
|
+
unknown
|
|
3199
|
+
> = z.object({
|
|
3200
|
+
type:
|
|
3201
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType$inboundSchema,
|
|
3202
|
+
ttl: DeploymentCreateMetricContentDeploymentsMetricsTtl$inboundSchema
|
|
3203
|
+
.default("5m"),
|
|
3204
|
+
});
|
|
3205
|
+
/** @internal */
|
|
3206
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsCacheControl$Outbound =
|
|
3207
|
+
{
|
|
3208
|
+
type: string;
|
|
3209
|
+
ttl: string;
|
|
3210
|
+
};
|
|
3211
|
+
|
|
3212
|
+
/** @internal */
|
|
3213
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsCacheControl$outboundSchema:
|
|
3214
|
+
z.ZodType<
|
|
3215
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl$Outbound,
|
|
3216
|
+
z.ZodTypeDef,
|
|
3217
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl
|
|
3218
|
+
> = z.object({
|
|
3219
|
+
type:
|
|
3220
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyType$outboundSchema,
|
|
3221
|
+
ttl: DeploymentCreateMetricContentDeploymentsMetricsTtl$outboundSchema
|
|
3222
|
+
.default("5m"),
|
|
3223
|
+
});
|
|
3224
|
+
|
|
3225
|
+
export function deploymentCreateMetricContentDeploymentsMetricsCacheControlToJSON(
|
|
3226
|
+
deploymentCreateMetricContentDeploymentsMetricsCacheControl:
|
|
3227
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl,
|
|
3228
|
+
): string {
|
|
3229
|
+
return JSON.stringify(
|
|
3230
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl$outboundSchema
|
|
3231
|
+
.parse(deploymentCreateMetricContentDeploymentsMetricsCacheControl),
|
|
3232
|
+
);
|
|
3233
|
+
}
|
|
3234
|
+
export function deploymentCreateMetricContentDeploymentsMetricsCacheControlFromJSON(
|
|
3235
|
+
jsonString: string,
|
|
3236
|
+
): SafeParseResult<
|
|
3237
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl,
|
|
3238
|
+
SDKValidationError
|
|
3239
|
+
> {
|
|
3240
|
+
return safeParse(
|
|
3241
|
+
jsonString,
|
|
3242
|
+
(x) =>
|
|
3243
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl$inboundSchema
|
|
3244
|
+
.parse(JSON.parse(x)),
|
|
3245
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsCacheControl' from JSON`,
|
|
3246
|
+
);
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
/** @internal */
|
|
3250
|
+
export const DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema:
|
|
3251
|
+
z.ZodType<
|
|
3252
|
+
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
3253
|
+
z.ZodTypeDef,
|
|
3254
|
+
unknown
|
|
3255
|
+
> = z.object({
|
|
3256
|
+
type:
|
|
3257
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestType$inboundSchema,
|
|
3258
|
+
text: z.string(),
|
|
3259
|
+
cache_control: z.lazy(() =>
|
|
3260
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl$inboundSchema
|
|
3261
|
+
).optional(),
|
|
3262
|
+
}).transform((v) => {
|
|
3263
|
+
return remap$(v, {
|
|
3264
|
+
"cache_control": "cacheControl",
|
|
3265
|
+
});
|
|
3266
|
+
});
|
|
3267
|
+
/** @internal */
|
|
3268
|
+
export type DeploymentCreateMetricContentDeploymentsMetrics2$Outbound = {
|
|
3269
|
+
type: string;
|
|
3270
|
+
text: string;
|
|
3271
|
+
cache_control?:
|
|
3272
|
+
| DeploymentCreateMetricContentDeploymentsMetricsCacheControl$Outbound
|
|
3273
|
+
| undefined;
|
|
3274
|
+
};
|
|
3275
|
+
|
|
3276
|
+
/** @internal */
|
|
3277
|
+
export const DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema:
|
|
3278
|
+
z.ZodType<
|
|
3279
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$Outbound,
|
|
3280
|
+
z.ZodTypeDef,
|
|
3281
|
+
DeploymentCreateMetricContentDeploymentsMetrics2
|
|
3282
|
+
> = z.object({
|
|
3283
|
+
type:
|
|
3284
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestType$outboundSchema,
|
|
3285
|
+
text: z.string(),
|
|
3286
|
+
cacheControl: z.lazy(() =>
|
|
3287
|
+
DeploymentCreateMetricContentDeploymentsMetricsCacheControl$outboundSchema
|
|
3288
|
+
).optional(),
|
|
3289
|
+
}).transform((v) => {
|
|
3290
|
+
return remap$(v, {
|
|
3291
|
+
cacheControl: "cache_control",
|
|
3292
|
+
});
|
|
3293
|
+
});
|
|
3294
|
+
|
|
3295
|
+
export function deploymentCreateMetricContentDeploymentsMetrics2ToJSON(
|
|
3296
|
+
deploymentCreateMetricContentDeploymentsMetrics2:
|
|
3297
|
+
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
3298
|
+
): string {
|
|
3299
|
+
return JSON.stringify(
|
|
3300
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema.parse(
|
|
3301
|
+
deploymentCreateMetricContentDeploymentsMetrics2,
|
|
3302
|
+
),
|
|
3303
|
+
);
|
|
3304
|
+
}
|
|
3305
|
+
export function deploymentCreateMetricContentDeploymentsMetrics2FromJSON(
|
|
3306
|
+
jsonString: string,
|
|
3307
|
+
): SafeParseResult<
|
|
3308
|
+
DeploymentCreateMetricContentDeploymentsMetrics2,
|
|
3309
|
+
SDKValidationError
|
|
3310
|
+
> {
|
|
3311
|
+
return safeParse(
|
|
3312
|
+
jsonString,
|
|
3313
|
+
(x) =>
|
|
3314
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema.parse(
|
|
3315
|
+
JSON.parse(x),
|
|
3316
|
+
),
|
|
3317
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetrics2' from JSON`,
|
|
3318
|
+
);
|
|
3319
|
+
}
|
|
3320
|
+
|
|
1909
3321
|
/** @internal */
|
|
1910
3322
|
export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSchema:
|
|
1911
3323
|
z.ZodType<
|
|
@@ -1914,12 +3326,14 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$inboundSche
|
|
|
1914
3326
|
unknown
|
|
1915
3327
|
> = z.union([
|
|
1916
3328
|
z.string(),
|
|
1917
|
-
z.array(
|
|
3329
|
+
z.array(z.lazy(() =>
|
|
3330
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema
|
|
3331
|
+
)),
|
|
1918
3332
|
]);
|
|
1919
3333
|
/** @internal */
|
|
1920
3334
|
export type DeploymentCreateMetricMessagesDeploymentsMetricsContent$Outbound =
|
|
1921
3335
|
| string
|
|
1922
|
-
| Array<
|
|
3336
|
+
| Array<DeploymentCreateMetricContentDeploymentsMetrics2$Outbound>;
|
|
1923
3337
|
|
|
1924
3338
|
/** @internal */
|
|
1925
3339
|
export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSchema:
|
|
@@ -1929,7 +3343,9 @@ export const DeploymentCreateMetricMessagesDeploymentsMetricsContent$outboundSch
|
|
|
1929
3343
|
DeploymentCreateMetricMessagesDeploymentsMetricsContent
|
|
1930
3344
|
> = z.union([
|
|
1931
3345
|
z.string(),
|
|
1932
|
-
z.array(
|
|
3346
|
+
z.array(z.lazy(() =>
|
|
3347
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema
|
|
3348
|
+
)),
|
|
1933
3349
|
]);
|
|
1934
3350
|
|
|
1935
3351
|
export function deploymentCreateMetricMessagesDeploymentsMetricsContentToJSON(
|
|
@@ -1966,14 +3382,18 @@ export const DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema:
|
|
|
1966
3382
|
role: z.literal("developer"),
|
|
1967
3383
|
content: z.union([
|
|
1968
3384
|
z.string(),
|
|
1969
|
-
z.array(
|
|
3385
|
+
z.array(z.lazy(() =>
|
|
3386
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$inboundSchema
|
|
3387
|
+
)),
|
|
1970
3388
|
]),
|
|
1971
3389
|
name: z.string().optional(),
|
|
1972
3390
|
});
|
|
1973
3391
|
/** @internal */
|
|
1974
3392
|
export type DeploymentCreateMetricMessagesDeveloperMessage$Outbound = {
|
|
1975
3393
|
role: "developer";
|
|
1976
|
-
content:
|
|
3394
|
+
content:
|
|
3395
|
+
| string
|
|
3396
|
+
| Array<DeploymentCreateMetricContentDeploymentsMetrics2$Outbound>;
|
|
1977
3397
|
name?: string | undefined;
|
|
1978
3398
|
};
|
|
1979
3399
|
|
|
@@ -1987,34 +3407,176 @@ export const DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema:
|
|
|
1987
3407
|
role: z.literal("developer"),
|
|
1988
3408
|
content: z.union([
|
|
1989
3409
|
z.string(),
|
|
1990
|
-
z.array(
|
|
3410
|
+
z.array(z.lazy(() =>
|
|
3411
|
+
DeploymentCreateMetricContentDeploymentsMetrics2$outboundSchema
|
|
3412
|
+
)),
|
|
1991
3413
|
]),
|
|
1992
3414
|
name: z.string().optional(),
|
|
1993
3415
|
});
|
|
1994
3416
|
|
|
1995
|
-
export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
|
|
1996
|
-
deploymentCreateMetricMessagesDeveloperMessage:
|
|
1997
|
-
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
3417
|
+
export function deploymentCreateMetricMessagesDeveloperMessageToJSON(
|
|
3418
|
+
deploymentCreateMetricMessagesDeveloperMessage:
|
|
3419
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
3420
|
+
): string {
|
|
3421
|
+
return JSON.stringify(
|
|
3422
|
+
DeploymentCreateMetricMessagesDeveloperMessage$outboundSchema.parse(
|
|
3423
|
+
deploymentCreateMetricMessagesDeveloperMessage,
|
|
3424
|
+
),
|
|
3425
|
+
);
|
|
3426
|
+
}
|
|
3427
|
+
export function deploymentCreateMetricMessagesDeveloperMessageFromJSON(
|
|
3428
|
+
jsonString: string,
|
|
3429
|
+
): SafeParseResult<
|
|
3430
|
+
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
3431
|
+
SDKValidationError
|
|
3432
|
+
> {
|
|
3433
|
+
return safeParse(
|
|
3434
|
+
jsonString,
|
|
3435
|
+
(x) =>
|
|
3436
|
+
DeploymentCreateMetricMessagesDeveloperMessage$inboundSchema.parse(
|
|
3437
|
+
JSON.parse(x),
|
|
3438
|
+
),
|
|
3439
|
+
`Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
|
|
3440
|
+
);
|
|
3441
|
+
}
|
|
3442
|
+
|
|
3443
|
+
/** @internal */
|
|
3444
|
+
export const DeploymentCreateMetricContentType$inboundSchema: z.ZodNativeEnum<
|
|
3445
|
+
typeof DeploymentCreateMetricContentType
|
|
3446
|
+
> = z.nativeEnum(DeploymentCreateMetricContentType);
|
|
3447
|
+
/** @internal */
|
|
3448
|
+
export const DeploymentCreateMetricContentType$outboundSchema: z.ZodNativeEnum<
|
|
3449
|
+
typeof DeploymentCreateMetricContentType
|
|
3450
|
+
> = DeploymentCreateMetricContentType$inboundSchema;
|
|
3451
|
+
|
|
3452
|
+
/** @internal */
|
|
3453
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsType$inboundSchema:
|
|
3454
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsType> =
|
|
3455
|
+
z.nativeEnum(DeploymentCreateMetricContentDeploymentsMetricsType);
|
|
3456
|
+
/** @internal */
|
|
3457
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsType$outboundSchema:
|
|
3458
|
+
z.ZodNativeEnum<typeof DeploymentCreateMetricContentDeploymentsMetricsType> =
|
|
3459
|
+
DeploymentCreateMetricContentDeploymentsMetricsType$inboundSchema;
|
|
3460
|
+
|
|
3461
|
+
/** @internal */
|
|
3462
|
+
export const DeploymentCreateMetricContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
3463
|
+
typeof DeploymentCreateMetricContentTtl
|
|
3464
|
+
> = z.nativeEnum(DeploymentCreateMetricContentTtl);
|
|
3465
|
+
/** @internal */
|
|
3466
|
+
export const DeploymentCreateMetricContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
3467
|
+
typeof DeploymentCreateMetricContentTtl
|
|
3468
|
+
> = DeploymentCreateMetricContentTtl$inboundSchema;
|
|
3469
|
+
|
|
3470
|
+
/** @internal */
|
|
3471
|
+
export const DeploymentCreateMetricContentCacheControl$inboundSchema: z.ZodType<
|
|
3472
|
+
DeploymentCreateMetricContentCacheControl,
|
|
3473
|
+
z.ZodTypeDef,
|
|
3474
|
+
unknown
|
|
3475
|
+
> = z.object({
|
|
3476
|
+
type: DeploymentCreateMetricContentDeploymentsMetricsType$inboundSchema,
|
|
3477
|
+
ttl: DeploymentCreateMetricContentTtl$inboundSchema.default("5m"),
|
|
3478
|
+
});
|
|
3479
|
+
/** @internal */
|
|
3480
|
+
export type DeploymentCreateMetricContentCacheControl$Outbound = {
|
|
3481
|
+
type: string;
|
|
3482
|
+
ttl: string;
|
|
3483
|
+
};
|
|
3484
|
+
|
|
3485
|
+
/** @internal */
|
|
3486
|
+
export const DeploymentCreateMetricContentCacheControl$outboundSchema:
|
|
3487
|
+
z.ZodType<
|
|
3488
|
+
DeploymentCreateMetricContentCacheControl$Outbound,
|
|
3489
|
+
z.ZodTypeDef,
|
|
3490
|
+
DeploymentCreateMetricContentCacheControl
|
|
3491
|
+
> = z.object({
|
|
3492
|
+
type: DeploymentCreateMetricContentDeploymentsMetricsType$outboundSchema,
|
|
3493
|
+
ttl: DeploymentCreateMetricContentTtl$outboundSchema.default("5m"),
|
|
3494
|
+
});
|
|
3495
|
+
|
|
3496
|
+
export function deploymentCreateMetricContentCacheControlToJSON(
|
|
3497
|
+
deploymentCreateMetricContentCacheControl:
|
|
3498
|
+
DeploymentCreateMetricContentCacheControl,
|
|
3499
|
+
): string {
|
|
3500
|
+
return JSON.stringify(
|
|
3501
|
+
DeploymentCreateMetricContentCacheControl$outboundSchema.parse(
|
|
3502
|
+
deploymentCreateMetricContentCacheControl,
|
|
3503
|
+
),
|
|
3504
|
+
);
|
|
3505
|
+
}
|
|
3506
|
+
export function deploymentCreateMetricContentCacheControlFromJSON(
|
|
3507
|
+
jsonString: string,
|
|
3508
|
+
): SafeParseResult<
|
|
3509
|
+
DeploymentCreateMetricContentCacheControl,
|
|
3510
|
+
SDKValidationError
|
|
3511
|
+
> {
|
|
3512
|
+
return safeParse(
|
|
3513
|
+
jsonString,
|
|
3514
|
+
(x) =>
|
|
3515
|
+
DeploymentCreateMetricContentCacheControl$inboundSchema.parse(
|
|
3516
|
+
JSON.parse(x),
|
|
3517
|
+
),
|
|
3518
|
+
`Failed to parse 'DeploymentCreateMetricContentCacheControl' from JSON`,
|
|
3519
|
+
);
|
|
3520
|
+
}
|
|
3521
|
+
|
|
3522
|
+
/** @internal */
|
|
3523
|
+
export const DeploymentCreateMetricContent2$inboundSchema: z.ZodType<
|
|
3524
|
+
DeploymentCreateMetricContent2,
|
|
3525
|
+
z.ZodTypeDef,
|
|
3526
|
+
unknown
|
|
3527
|
+
> = z.object({
|
|
3528
|
+
type: DeploymentCreateMetricContentType$inboundSchema,
|
|
3529
|
+
text: z.string(),
|
|
3530
|
+
cache_control: z.lazy(() =>
|
|
3531
|
+
DeploymentCreateMetricContentCacheControl$inboundSchema
|
|
3532
|
+
).optional(),
|
|
3533
|
+
}).transform((v) => {
|
|
3534
|
+
return remap$(v, {
|
|
3535
|
+
"cache_control": "cacheControl",
|
|
3536
|
+
});
|
|
3537
|
+
});
|
|
3538
|
+
/** @internal */
|
|
3539
|
+
export type DeploymentCreateMetricContent2$Outbound = {
|
|
3540
|
+
type: string;
|
|
3541
|
+
text: string;
|
|
3542
|
+
cache_control?:
|
|
3543
|
+
| DeploymentCreateMetricContentCacheControl$Outbound
|
|
3544
|
+
| undefined;
|
|
3545
|
+
};
|
|
3546
|
+
|
|
3547
|
+
/** @internal */
|
|
3548
|
+
export const DeploymentCreateMetricContent2$outboundSchema: z.ZodType<
|
|
3549
|
+
DeploymentCreateMetricContent2$Outbound,
|
|
3550
|
+
z.ZodTypeDef,
|
|
3551
|
+
DeploymentCreateMetricContent2
|
|
3552
|
+
> = z.object({
|
|
3553
|
+
type: DeploymentCreateMetricContentType$outboundSchema,
|
|
3554
|
+
text: z.string(),
|
|
3555
|
+
cacheControl: z.lazy(() =>
|
|
3556
|
+
DeploymentCreateMetricContentCacheControl$outboundSchema
|
|
3557
|
+
).optional(),
|
|
3558
|
+
}).transform((v) => {
|
|
3559
|
+
return remap$(v, {
|
|
3560
|
+
cacheControl: "cache_control",
|
|
3561
|
+
});
|
|
3562
|
+
});
|
|
3563
|
+
|
|
3564
|
+
export function deploymentCreateMetricContent2ToJSON(
|
|
3565
|
+
deploymentCreateMetricContent2: DeploymentCreateMetricContent2,
|
|
1998
3566
|
): string {
|
|
1999
3567
|
return JSON.stringify(
|
|
2000
|
-
|
|
2001
|
-
|
|
3568
|
+
DeploymentCreateMetricContent2$outboundSchema.parse(
|
|
3569
|
+
deploymentCreateMetricContent2,
|
|
2002
3570
|
),
|
|
2003
3571
|
);
|
|
2004
3572
|
}
|
|
2005
|
-
export function
|
|
3573
|
+
export function deploymentCreateMetricContent2FromJSON(
|
|
2006
3574
|
jsonString: string,
|
|
2007
|
-
): SafeParseResult<
|
|
2008
|
-
DeploymentCreateMetricMessagesDeveloperMessage,
|
|
2009
|
-
SDKValidationError
|
|
2010
|
-
> {
|
|
3575
|
+
): SafeParseResult<DeploymentCreateMetricContent2, SDKValidationError> {
|
|
2011
3576
|
return safeParse(
|
|
2012
3577
|
jsonString,
|
|
2013
|
-
(x) =>
|
|
2014
|
-
|
|
2015
|
-
JSON.parse(x),
|
|
2016
|
-
),
|
|
2017
|
-
`Failed to parse 'DeploymentCreateMetricMessagesDeveloperMessage' from JSON`,
|
|
3578
|
+
(x) => DeploymentCreateMetricContent2$inboundSchema.parse(JSON.parse(x)),
|
|
3579
|
+
`Failed to parse 'DeploymentCreateMetricContent2' from JSON`,
|
|
2018
3580
|
);
|
|
2019
3581
|
}
|
|
2020
3582
|
|
|
@@ -2025,12 +3587,12 @@ export const DeploymentCreateMetricMessagesContent$inboundSchema: z.ZodType<
|
|
|
2025
3587
|
unknown
|
|
2026
3588
|
> = z.union([
|
|
2027
3589
|
z.string(),
|
|
2028
|
-
z.array(
|
|
3590
|
+
z.array(z.lazy(() => DeploymentCreateMetricContent2$inboundSchema)),
|
|
2029
3591
|
]);
|
|
2030
3592
|
/** @internal */
|
|
2031
3593
|
export type DeploymentCreateMetricMessagesContent$Outbound =
|
|
2032
3594
|
| string
|
|
2033
|
-
| Array<
|
|
3595
|
+
| Array<DeploymentCreateMetricContent2$Outbound>;
|
|
2034
3596
|
|
|
2035
3597
|
/** @internal */
|
|
2036
3598
|
export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -2039,7 +3601,7 @@ export const DeploymentCreateMetricMessagesContent$outboundSchema: z.ZodType<
|
|
|
2039
3601
|
DeploymentCreateMetricMessagesContent
|
|
2040
3602
|
> = z.union([
|
|
2041
3603
|
z.string(),
|
|
2042
|
-
z.array(
|
|
3604
|
+
z.array(z.lazy(() => DeploymentCreateMetricContent2$outboundSchema)),
|
|
2043
3605
|
]);
|
|
2044
3606
|
|
|
2045
3607
|
export function deploymentCreateMetricMessagesContentToJSON(
|
|
@@ -2072,14 +3634,14 @@ export const DeploymentCreateMetricMessagesSystemMessage$inboundSchema:
|
|
|
2072
3634
|
role: z.literal("system"),
|
|
2073
3635
|
content: z.union([
|
|
2074
3636
|
z.string(),
|
|
2075
|
-
z.array(
|
|
3637
|
+
z.array(z.lazy(() => DeploymentCreateMetricContent2$inboundSchema)),
|
|
2076
3638
|
]),
|
|
2077
3639
|
name: z.string().optional(),
|
|
2078
3640
|
});
|
|
2079
3641
|
/** @internal */
|
|
2080
3642
|
export type DeploymentCreateMetricMessagesSystemMessage$Outbound = {
|
|
2081
3643
|
role: "system";
|
|
2082
|
-
content: string | Array<
|
|
3644
|
+
content: string | Array<DeploymentCreateMetricContent2$Outbound>;
|
|
2083
3645
|
name?: string | undefined;
|
|
2084
3646
|
};
|
|
2085
3647
|
|
|
@@ -2093,7 +3655,7 @@ export const DeploymentCreateMetricMessagesSystemMessage$outboundSchema:
|
|
|
2093
3655
|
role: z.literal("system"),
|
|
2094
3656
|
content: z.union([
|
|
2095
3657
|
z.string(),
|
|
2096
|
-
z.array(
|
|
3658
|
+
z.array(z.lazy(() => DeploymentCreateMetricContent2$outboundSchema)),
|
|
2097
3659
|
]),
|
|
2098
3660
|
name: z.string().optional(),
|
|
2099
3661
|
});
|
|
@@ -2176,16 +3738,193 @@ export function deploymentCreateMetricMessagesFromJSON(
|
|
|
2176
3738
|
);
|
|
2177
3739
|
}
|
|
2178
3740
|
|
|
3741
|
+
/** @internal */
|
|
3742
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type$inboundSchema:
|
|
3743
|
+
z.ZodNativeEnum<
|
|
3744
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type
|
|
3745
|
+
> = z.nativeEnum(
|
|
3746
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type,
|
|
3747
|
+
);
|
|
3748
|
+
/** @internal */
|
|
3749
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type$outboundSchema:
|
|
3750
|
+
z.ZodNativeEnum<
|
|
3751
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type
|
|
3752
|
+
> =
|
|
3753
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type$inboundSchema;
|
|
3754
|
+
|
|
3755
|
+
/** @internal */
|
|
3756
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType$inboundSchema:
|
|
3757
|
+
z.ZodNativeEnum<
|
|
3758
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType
|
|
3759
|
+
> = z.nativeEnum(
|
|
3760
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType,
|
|
3761
|
+
);
|
|
3762
|
+
/** @internal */
|
|
3763
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType$outboundSchema:
|
|
3764
|
+
z.ZodNativeEnum<
|
|
3765
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType
|
|
3766
|
+
> =
|
|
3767
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType$inboundSchema;
|
|
3768
|
+
|
|
3769
|
+
/** @internal */
|
|
3770
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl$inboundSchema:
|
|
3771
|
+
z.ZodNativeEnum<
|
|
3772
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl
|
|
3773
|
+
> = z.nativeEnum(
|
|
3774
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl,
|
|
3775
|
+
);
|
|
3776
|
+
/** @internal */
|
|
3777
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl$outboundSchema:
|
|
3778
|
+
z.ZodNativeEnum<
|
|
3779
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl
|
|
3780
|
+
> =
|
|
3781
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl$inboundSchema;
|
|
3782
|
+
|
|
3783
|
+
/** @internal */
|
|
3784
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$inboundSchema:
|
|
3785
|
+
z.ZodType<
|
|
3786
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl,
|
|
3787
|
+
z.ZodTypeDef,
|
|
3788
|
+
unknown
|
|
3789
|
+
> = z.object({
|
|
3790
|
+
type:
|
|
3791
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType$inboundSchema,
|
|
3792
|
+
ttl:
|
|
3793
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl$inboundSchema
|
|
3794
|
+
.default("5m"),
|
|
3795
|
+
});
|
|
3796
|
+
/** @internal */
|
|
3797
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$Outbound =
|
|
3798
|
+
{
|
|
3799
|
+
type: string;
|
|
3800
|
+
ttl: string;
|
|
3801
|
+
};
|
|
3802
|
+
|
|
3803
|
+
/** @internal */
|
|
3804
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$outboundSchema:
|
|
3805
|
+
z.ZodType<
|
|
3806
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$Outbound,
|
|
3807
|
+
z.ZodTypeDef,
|
|
3808
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl
|
|
3809
|
+
> = z.object({
|
|
3810
|
+
type:
|
|
3811
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5ContentType$outboundSchema,
|
|
3812
|
+
ttl:
|
|
3813
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Ttl$outboundSchema
|
|
3814
|
+
.default("5m"),
|
|
3815
|
+
});
|
|
3816
|
+
|
|
3817
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControlToJSON(
|
|
3818
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl:
|
|
3819
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl,
|
|
3820
|
+
): string {
|
|
3821
|
+
return JSON.stringify(
|
|
3822
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$outboundSchema
|
|
3823
|
+
.parse(
|
|
3824
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl,
|
|
3825
|
+
),
|
|
3826
|
+
);
|
|
3827
|
+
}
|
|
3828
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControlFromJSON(
|
|
3829
|
+
jsonString: string,
|
|
3830
|
+
): SafeParseResult<
|
|
3831
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl,
|
|
3832
|
+
SDKValidationError
|
|
3833
|
+
> {
|
|
3834
|
+
return safeParse(
|
|
3835
|
+
jsonString,
|
|
3836
|
+
(x) =>
|
|
3837
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$inboundSchema
|
|
3838
|
+
.parse(JSON.parse(x)),
|
|
3839
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl' from JSON`,
|
|
3840
|
+
);
|
|
3841
|
+
}
|
|
3842
|
+
|
|
3843
|
+
/** @internal */
|
|
3844
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$inboundSchema:
|
|
3845
|
+
z.ZodType<
|
|
3846
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51,
|
|
3847
|
+
z.ZodTypeDef,
|
|
3848
|
+
unknown
|
|
3849
|
+
> = z.object({
|
|
3850
|
+
type:
|
|
3851
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type$inboundSchema,
|
|
3852
|
+
text: z.string(),
|
|
3853
|
+
cache_control: z.lazy(() =>
|
|
3854
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$inboundSchema
|
|
3855
|
+
).optional(),
|
|
3856
|
+
}).transform((v) => {
|
|
3857
|
+
return remap$(v, {
|
|
3858
|
+
"cache_control": "cacheControl",
|
|
3859
|
+
});
|
|
3860
|
+
});
|
|
3861
|
+
/** @internal */
|
|
3862
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$Outbound =
|
|
3863
|
+
{
|
|
3864
|
+
type: string;
|
|
3865
|
+
text: string;
|
|
3866
|
+
cache_control?:
|
|
3867
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$Outbound
|
|
3868
|
+
| undefined;
|
|
3869
|
+
};
|
|
3870
|
+
|
|
3871
|
+
/** @internal */
|
|
3872
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$outboundSchema:
|
|
3873
|
+
z.ZodType<
|
|
3874
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$Outbound,
|
|
3875
|
+
z.ZodTypeDef,
|
|
3876
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51
|
|
3877
|
+
> = z.object({
|
|
3878
|
+
type:
|
|
3879
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5Type$outboundSchema,
|
|
3880
|
+
text: z.string(),
|
|
3881
|
+
cacheControl: z.lazy(() =>
|
|
3882
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices5CacheControl$outboundSchema
|
|
3883
|
+
).optional(),
|
|
3884
|
+
}).transform((v) => {
|
|
3885
|
+
return remap$(v, {
|
|
3886
|
+
cacheControl: "cache_control",
|
|
3887
|
+
});
|
|
3888
|
+
});
|
|
3889
|
+
|
|
3890
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51ToJSON(
|
|
3891
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51:
|
|
3892
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51,
|
|
3893
|
+
): string {
|
|
3894
|
+
return JSON.stringify(
|
|
3895
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$outboundSchema
|
|
3896
|
+
.parse(
|
|
3897
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51,
|
|
3898
|
+
),
|
|
3899
|
+
);
|
|
3900
|
+
}
|
|
3901
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51FromJSON(
|
|
3902
|
+
jsonString: string,
|
|
3903
|
+
): SafeParseResult<
|
|
3904
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51,
|
|
3905
|
+
SDKValidationError
|
|
3906
|
+
> {
|
|
3907
|
+
return safeParse(
|
|
3908
|
+
jsonString,
|
|
3909
|
+
(x) =>
|
|
3910
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$inboundSchema
|
|
3911
|
+
.parse(JSON.parse(x)),
|
|
3912
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51' from JSON`,
|
|
3913
|
+
);
|
|
3914
|
+
}
|
|
3915
|
+
|
|
2179
3916
|
/** @internal */
|
|
2180
3917
|
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52$inboundSchema:
|
|
2181
3918
|
z.ZodType<
|
|
2182
3919
|
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52,
|
|
2183
3920
|
z.ZodTypeDef,
|
|
2184
3921
|
unknown
|
|
2185
|
-
> =
|
|
3922
|
+
> = z.lazy(() =>
|
|
3923
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$inboundSchema
|
|
3924
|
+
);
|
|
2186
3925
|
/** @internal */
|
|
2187
3926
|
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52$Outbound =
|
|
2188
|
-
|
|
3927
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$Outbound;
|
|
2189
3928
|
|
|
2190
3929
|
/** @internal */
|
|
2191
3930
|
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52$outboundSchema:
|
|
@@ -2193,7 +3932,9 @@ export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCh
|
|
|
2193
3932
|
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52$Outbound,
|
|
2194
3933
|
z.ZodTypeDef,
|
|
2195
3934
|
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52
|
|
2196
|
-
> =
|
|
3935
|
+
> = z.lazy(() =>
|
|
3936
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$outboundSchema
|
|
3937
|
+
);
|
|
2197
3938
|
|
|
2198
3939
|
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52ToJSON(
|
|
2199
3940
|
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices52:
|
|
@@ -2229,12 +3970,16 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyCo
|
|
|
2229
3970
|
unknown
|
|
2230
3971
|
> = z.union([
|
|
2231
3972
|
z.string(),
|
|
2232
|
-
z.array(
|
|
3973
|
+
z.array(z.lazy(() =>
|
|
3974
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$inboundSchema
|
|
3975
|
+
)),
|
|
2233
3976
|
]);
|
|
2234
3977
|
/** @internal */
|
|
2235
3978
|
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContent$Outbound =
|
|
2236
3979
|
| string
|
|
2237
|
-
| Array<
|
|
3980
|
+
| Array<
|
|
3981
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$Outbound
|
|
3982
|
+
>;
|
|
2238
3983
|
|
|
2239
3984
|
/** @internal */
|
|
2240
3985
|
export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContent$outboundSchema:
|
|
@@ -2244,7 +3989,9 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyCo
|
|
|
2244
3989
|
DeploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContent
|
|
2245
3990
|
> = z.union([
|
|
2246
3991
|
z.string(),
|
|
2247
|
-
z.array(
|
|
3992
|
+
z.array(z.lazy(() =>
|
|
3993
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$outboundSchema
|
|
3994
|
+
)),
|
|
2248
3995
|
]);
|
|
2249
3996
|
|
|
2250
3997
|
export function deploymentCreateMetricChoicesDeploymentsMetricsRequestRequestBodyContentToJSON(
|
|
@@ -2321,139 +4068,306 @@ export function choicesCacheControlToJSON(
|
|
|
2321
4068
|
ChoicesCacheControl$outboundSchema.parse(choicesCacheControl),
|
|
2322
4069
|
);
|
|
2323
4070
|
}
|
|
2324
|
-
export function choicesCacheControlFromJSON(
|
|
4071
|
+
export function choicesCacheControlFromJSON(
|
|
4072
|
+
jsonString: string,
|
|
4073
|
+
): SafeParseResult<ChoicesCacheControl, SDKValidationError> {
|
|
4074
|
+
return safeParse(
|
|
4075
|
+
jsonString,
|
|
4076
|
+
(x) => ChoicesCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
4077
|
+
`Failed to parse 'ChoicesCacheControl' from JSON`,
|
|
4078
|
+
);
|
|
4079
|
+
}
|
|
4080
|
+
|
|
4081
|
+
/** @internal */
|
|
4082
|
+
export const ChoicesToolMessage$inboundSchema: z.ZodType<
|
|
4083
|
+
ChoicesToolMessage,
|
|
4084
|
+
z.ZodTypeDef,
|
|
4085
|
+
unknown
|
|
4086
|
+
> = z.object({
|
|
4087
|
+
role: z.literal("tool"),
|
|
4088
|
+
content: z.union([
|
|
4089
|
+
z.string(),
|
|
4090
|
+
z.array(z.lazy(() =>
|
|
4091
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$inboundSchema
|
|
4092
|
+
)),
|
|
4093
|
+
]),
|
|
4094
|
+
tool_call_id: z.string(),
|
|
4095
|
+
cache_control: z.lazy(() => ChoicesCacheControl$inboundSchema).optional(),
|
|
4096
|
+
}).transform((v) => {
|
|
4097
|
+
return remap$(v, {
|
|
4098
|
+
"tool_call_id": "toolCallId",
|
|
4099
|
+
"cache_control": "cacheControl",
|
|
4100
|
+
});
|
|
4101
|
+
});
|
|
4102
|
+
/** @internal */
|
|
4103
|
+
export type ChoicesToolMessage$Outbound = {
|
|
4104
|
+
role: "tool";
|
|
4105
|
+
content:
|
|
4106
|
+
| string
|
|
4107
|
+
| Array<
|
|
4108
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$Outbound
|
|
4109
|
+
>;
|
|
4110
|
+
tool_call_id: string;
|
|
4111
|
+
cache_control?: ChoicesCacheControl$Outbound | undefined;
|
|
4112
|
+
};
|
|
4113
|
+
|
|
4114
|
+
/** @internal */
|
|
4115
|
+
export const ChoicesToolMessage$outboundSchema: z.ZodType<
|
|
4116
|
+
ChoicesToolMessage$Outbound,
|
|
4117
|
+
z.ZodTypeDef,
|
|
4118
|
+
ChoicesToolMessage
|
|
4119
|
+
> = z.object({
|
|
4120
|
+
role: z.literal("tool"),
|
|
4121
|
+
content: z.union([
|
|
4122
|
+
z.string(),
|
|
4123
|
+
z.array(z.lazy(() =>
|
|
4124
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices51$outboundSchema
|
|
4125
|
+
)),
|
|
4126
|
+
]),
|
|
4127
|
+
toolCallId: z.string(),
|
|
4128
|
+
cacheControl: z.lazy(() => ChoicesCacheControl$outboundSchema).optional(),
|
|
4129
|
+
}).transform((v) => {
|
|
4130
|
+
return remap$(v, {
|
|
4131
|
+
toolCallId: "tool_call_id",
|
|
4132
|
+
cacheControl: "cache_control",
|
|
4133
|
+
});
|
|
4134
|
+
});
|
|
4135
|
+
|
|
4136
|
+
export function choicesToolMessageToJSON(
|
|
4137
|
+
choicesToolMessage: ChoicesToolMessage,
|
|
4138
|
+
): string {
|
|
4139
|
+
return JSON.stringify(
|
|
4140
|
+
ChoicesToolMessage$outboundSchema.parse(choicesToolMessage),
|
|
4141
|
+
);
|
|
4142
|
+
}
|
|
4143
|
+
export function choicesToolMessageFromJSON(
|
|
4144
|
+
jsonString: string,
|
|
4145
|
+
): SafeParseResult<ChoicesToolMessage, SDKValidationError> {
|
|
4146
|
+
return safeParse(
|
|
4147
|
+
jsonString,
|
|
4148
|
+
(x) => ChoicesToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
4149
|
+
`Failed to parse 'ChoicesToolMessage' from JSON`,
|
|
4150
|
+
);
|
|
4151
|
+
}
|
|
4152
|
+
|
|
4153
|
+
/** @internal */
|
|
4154
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema:
|
|
4155
|
+
z.ZodNativeEnum<
|
|
4156
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
4157
|
+
> = z.nativeEnum(
|
|
4158
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType,
|
|
4159
|
+
);
|
|
4160
|
+
/** @internal */
|
|
4161
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema:
|
|
4162
|
+
z.ZodNativeEnum<
|
|
4163
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType
|
|
4164
|
+
> =
|
|
4165
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema;
|
|
4166
|
+
|
|
4167
|
+
/** @internal */
|
|
4168
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl$inboundSchema:
|
|
4169
|
+
z.ZodNativeEnum<
|
|
4170
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl
|
|
4171
|
+
> = z.nativeEnum(
|
|
4172
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl,
|
|
4173
|
+
);
|
|
4174
|
+
/** @internal */
|
|
4175
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl$outboundSchema:
|
|
4176
|
+
z.ZodNativeEnum<
|
|
4177
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl
|
|
4178
|
+
> =
|
|
4179
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl$inboundSchema;
|
|
4180
|
+
|
|
4181
|
+
/** @internal */
|
|
4182
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$inboundSchema:
|
|
4183
|
+
z.ZodType<
|
|
4184
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl,
|
|
4185
|
+
z.ZodTypeDef,
|
|
4186
|
+
unknown
|
|
4187
|
+
> = z.object({
|
|
4188
|
+
type:
|
|
4189
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$inboundSchema,
|
|
4190
|
+
ttl:
|
|
4191
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl$inboundSchema
|
|
4192
|
+
.default("5m"),
|
|
4193
|
+
});
|
|
4194
|
+
/** @internal */
|
|
4195
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$Outbound =
|
|
4196
|
+
{
|
|
4197
|
+
type: string;
|
|
4198
|
+
ttl: string;
|
|
4199
|
+
};
|
|
4200
|
+
|
|
4201
|
+
/** @internal */
|
|
4202
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$outboundSchema:
|
|
4203
|
+
z.ZodType<
|
|
4204
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$Outbound,
|
|
4205
|
+
z.ZodTypeDef,
|
|
4206
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl
|
|
4207
|
+
> = z.object({
|
|
4208
|
+
type:
|
|
4209
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4ContentType$outboundSchema,
|
|
4210
|
+
ttl:
|
|
4211
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4Ttl$outboundSchema
|
|
4212
|
+
.default("5m"),
|
|
4213
|
+
});
|
|
4214
|
+
|
|
4215
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControlToJSON(
|
|
4216
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl:
|
|
4217
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl,
|
|
4218
|
+
): string {
|
|
4219
|
+
return JSON.stringify(
|
|
4220
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$outboundSchema
|
|
4221
|
+
.parse(
|
|
4222
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl,
|
|
4223
|
+
),
|
|
4224
|
+
);
|
|
4225
|
+
}
|
|
4226
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControlFromJSON(
|
|
2325
4227
|
jsonString: string,
|
|
2326
|
-
): SafeParseResult<
|
|
4228
|
+
): SafeParseResult<
|
|
4229
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl,
|
|
4230
|
+
SDKValidationError
|
|
4231
|
+
> {
|
|
2327
4232
|
return safeParse(
|
|
2328
4233
|
jsonString,
|
|
2329
|
-
(x) =>
|
|
2330
|
-
|
|
4234
|
+
(x) =>
|
|
4235
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$inboundSchema
|
|
4236
|
+
.parse(JSON.parse(x)),
|
|
4237
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl' from JSON`,
|
|
2331
4238
|
);
|
|
2332
4239
|
}
|
|
2333
4240
|
|
|
2334
4241
|
/** @internal */
|
|
2335
|
-
export const
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
z.string(),
|
|
2343
|
-
z.
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
"cache_control": "cacheControl",
|
|
4242
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$inboundSchema:
|
|
4243
|
+
z.ZodType<
|
|
4244
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1,
|
|
4245
|
+
z.ZodTypeDef,
|
|
4246
|
+
unknown
|
|
4247
|
+
> = z.object({
|
|
4248
|
+
type: z.literal("text"),
|
|
4249
|
+
text: z.string(),
|
|
4250
|
+
cache_control: z.lazy(() =>
|
|
4251
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$inboundSchema
|
|
4252
|
+
).optional(),
|
|
4253
|
+
}).transform((v) => {
|
|
4254
|
+
return remap$(v, {
|
|
4255
|
+
"cache_control": "cacheControl",
|
|
4256
|
+
});
|
|
2351
4257
|
});
|
|
2352
|
-
});
|
|
2353
4258
|
/** @internal */
|
|
2354
|
-
export type
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
4259
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$Outbound =
|
|
4260
|
+
{
|
|
4261
|
+
type: "text";
|
|
4262
|
+
text: string;
|
|
4263
|
+
cache_control?:
|
|
4264
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$Outbound
|
|
4265
|
+
| undefined;
|
|
4266
|
+
};
|
|
2360
4267
|
|
|
2361
4268
|
/** @internal */
|
|
2362
|
-
export const
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
z.string(),
|
|
2370
|
-
z.
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
cacheControl: "cache_control",
|
|
4269
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$outboundSchema:
|
|
4270
|
+
z.ZodType<
|
|
4271
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$Outbound,
|
|
4272
|
+
z.ZodTypeDef,
|
|
4273
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1
|
|
4274
|
+
> = z.object({
|
|
4275
|
+
type: z.literal("text"),
|
|
4276
|
+
text: z.string(),
|
|
4277
|
+
cacheControl: z.lazy(() =>
|
|
4278
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices4CacheControl$outboundSchema
|
|
4279
|
+
).optional(),
|
|
4280
|
+
}).transform((v) => {
|
|
4281
|
+
return remap$(v, {
|
|
4282
|
+
cacheControl: "cache_control",
|
|
4283
|
+
});
|
|
2378
4284
|
});
|
|
2379
|
-
});
|
|
2380
4285
|
|
|
2381
|
-
export function
|
|
2382
|
-
|
|
4286
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1ToJSON(
|
|
4287
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1:
|
|
4288
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1,
|
|
2383
4289
|
): string {
|
|
2384
4290
|
return JSON.stringify(
|
|
2385
|
-
|
|
4291
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$outboundSchema
|
|
4292
|
+
.parse(
|
|
4293
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1,
|
|
4294
|
+
),
|
|
2386
4295
|
);
|
|
2387
4296
|
}
|
|
2388
|
-
export function
|
|
4297
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1FromJSON(
|
|
2389
4298
|
jsonString: string,
|
|
2390
|
-
): SafeParseResult<
|
|
4299
|
+
): SafeParseResult<
|
|
4300
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1,
|
|
4301
|
+
SDKValidationError
|
|
4302
|
+
> {
|
|
2391
4303
|
return safeParse(
|
|
2392
4304
|
jsonString,
|
|
2393
|
-
(x) =>
|
|
2394
|
-
|
|
4305
|
+
(x) =>
|
|
4306
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$inboundSchema
|
|
4307
|
+
.parse(JSON.parse(x)),
|
|
4308
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1' from JSON`,
|
|
2395
4309
|
);
|
|
2396
4310
|
}
|
|
2397
4311
|
|
|
2398
4312
|
/** @internal */
|
|
2399
|
-
export const
|
|
4313
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$inboundSchema:
|
|
2400
4314
|
z.ZodType<
|
|
2401
|
-
|
|
4315
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42,
|
|
2402
4316
|
z.ZodTypeDef,
|
|
2403
4317
|
unknown
|
|
2404
4318
|
> = z.union([
|
|
2405
|
-
|
|
2406
|
-
|
|
4319
|
+
z.lazy(() =>
|
|
4320
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$inboundSchema
|
|
2407
4321
|
),
|
|
2408
4322
|
components.RefusalPartSchema$inboundSchema,
|
|
2409
4323
|
components.ReasoningPartSchema$inboundSchema,
|
|
2410
4324
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2411
4325
|
]);
|
|
2412
4326
|
/** @internal */
|
|
2413
|
-
export type
|
|
2414
|
-
|
|
|
4327
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$Outbound =
|
|
4328
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$Outbound
|
|
2415
4329
|
| components.RefusalPartSchema$Outbound
|
|
2416
4330
|
| components.ReasoningPartSchema$Outbound
|
|
2417
4331
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
2418
4332
|
|
|
2419
4333
|
/** @internal */
|
|
2420
|
-
export const
|
|
4334
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$outboundSchema:
|
|
2421
4335
|
z.ZodType<
|
|
2422
|
-
|
|
4336
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$Outbound,
|
|
2423
4337
|
z.ZodTypeDef,
|
|
2424
|
-
|
|
4338
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42
|
|
2425
4339
|
> = z.union([
|
|
2426
|
-
|
|
2427
|
-
|
|
4340
|
+
z.lazy(() =>
|
|
4341
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$outboundSchema
|
|
2428
4342
|
),
|
|
2429
4343
|
components.RefusalPartSchema$outboundSchema,
|
|
2430
4344
|
components.ReasoningPartSchema$outboundSchema,
|
|
2431
4345
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2432
4346
|
]);
|
|
2433
4347
|
|
|
2434
|
-
export function
|
|
2435
|
-
|
|
2436
|
-
|
|
4348
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42ToJSON(
|
|
4349
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42:
|
|
4350
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42,
|
|
2437
4351
|
): string {
|
|
2438
4352
|
return JSON.stringify(
|
|
2439
|
-
|
|
4353
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$outboundSchema
|
|
2440
4354
|
.parse(
|
|
2441
|
-
|
|
4355
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42,
|
|
2442
4356
|
),
|
|
2443
4357
|
);
|
|
2444
4358
|
}
|
|
2445
|
-
export function
|
|
4359
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42FromJSON(
|
|
2446
4360
|
jsonString: string,
|
|
2447
4361
|
): SafeParseResult<
|
|
2448
|
-
|
|
4362
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42,
|
|
2449
4363
|
SDKValidationError
|
|
2450
4364
|
> {
|
|
2451
4365
|
return safeParse(
|
|
2452
4366
|
jsonString,
|
|
2453
4367
|
(x) =>
|
|
2454
|
-
|
|
4368
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42$inboundSchema
|
|
2455
4369
|
.parse(JSON.parse(x)),
|
|
2456
|
-
`Failed to parse '
|
|
4370
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices42' from JSON`,
|
|
2457
4371
|
);
|
|
2458
4372
|
}
|
|
2459
4373
|
|
|
@@ -2465,22 +4379,20 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestContent$inbou
|
|
|
2465
4379
|
unknown
|
|
2466
4380
|
> = z.union([
|
|
2467
4381
|
z.string(),
|
|
2468
|
-
z.array(
|
|
2469
|
-
z.
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
]),
|
|
2477
|
-
),
|
|
4382
|
+
z.array(z.union([
|
|
4383
|
+
z.lazy(() =>
|
|
4384
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$inboundSchema
|
|
4385
|
+
),
|
|
4386
|
+
components.RefusalPartSchema$inboundSchema,
|
|
4387
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
4388
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
4389
|
+
])),
|
|
2478
4390
|
]);
|
|
2479
4391
|
/** @internal */
|
|
2480
4392
|
export type DeploymentCreateMetricChoicesDeploymentsMetricsRequestContent$Outbound =
|
|
2481
4393
|
| string
|
|
2482
4394
|
| Array<
|
|
2483
|
-
|
|
|
4395
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$Outbound
|
|
2484
4396
|
| components.RefusalPartSchema$Outbound
|
|
2485
4397
|
| components.ReasoningPartSchema$Outbound
|
|
2486
4398
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -2494,16 +4406,14 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsRequestContent$outbo
|
|
|
2494
4406
|
DeploymentCreateMetricChoicesDeploymentsMetricsRequestContent
|
|
2495
4407
|
> = z.union([
|
|
2496
4408
|
z.string(),
|
|
2497
|
-
z.array(
|
|
2498
|
-
z.
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
]),
|
|
2506
|
-
),
|
|
4409
|
+
z.array(z.union([
|
|
4410
|
+
z.lazy(() =>
|
|
4411
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$outboundSchema
|
|
4412
|
+
),
|
|
4413
|
+
components.RefusalPartSchema$outboundSchema,
|
|
4414
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
4415
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
4416
|
+
])),
|
|
2507
4417
|
]);
|
|
2508
4418
|
|
|
2509
4419
|
export function deploymentCreateMetricChoicesDeploymentsMetricsRequestContentToJSON(
|
|
@@ -2679,8 +4589,8 @@ export const ChoicesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
2679
4589
|
z.string(),
|
|
2680
4590
|
z.array(
|
|
2681
4591
|
z.union([
|
|
2682
|
-
|
|
2683
|
-
|
|
4592
|
+
z.lazy(() =>
|
|
4593
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$inboundSchema
|
|
2684
4594
|
),
|
|
2685
4595
|
components.RefusalPartSchema$inboundSchema,
|
|
2686
4596
|
components.ReasoningPartSchema$inboundSchema,
|
|
@@ -2704,7 +4614,7 @@ export type ChoicesAssistantMessage$Outbound = {
|
|
|
2704
4614
|
content?:
|
|
2705
4615
|
| string
|
|
2706
4616
|
| Array<
|
|
2707
|
-
|
|
|
4617
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$Outbound
|
|
2708
4618
|
| components.RefusalPartSchema$Outbound
|
|
2709
4619
|
| components.ReasoningPartSchema$Outbound
|
|
2710
4620
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -2729,8 +4639,8 @@ export const ChoicesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
2729
4639
|
z.string(),
|
|
2730
4640
|
z.array(
|
|
2731
4641
|
z.union([
|
|
2732
|
-
|
|
2733
|
-
|
|
4642
|
+
z.lazy(() =>
|
|
4643
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices1$outboundSchema
|
|
2734
4644
|
),
|
|
2735
4645
|
components.RefusalPartSchema$outboundSchema,
|
|
2736
4646
|
components.ReasoningPartSchema$outboundSchema,
|
|
@@ -2768,84 +4678,90 @@ export function choicesAssistantMessageFromJSON(
|
|
|
2768
4678
|
}
|
|
2769
4679
|
|
|
2770
4680
|
/** @internal */
|
|
2771
|
-
export const
|
|
4681
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type$inboundSchema:
|
|
2772
4682
|
z.ZodNativeEnum<
|
|
2773
|
-
typeof
|
|
4683
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type
|
|
2774
4684
|
> = z.nativeEnum(
|
|
2775
|
-
|
|
4685
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type,
|
|
2776
4686
|
);
|
|
2777
4687
|
/** @internal */
|
|
2778
|
-
export const
|
|
4688
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type$outboundSchema:
|
|
2779
4689
|
z.ZodNativeEnum<
|
|
2780
|
-
typeof
|
|
4690
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type
|
|
2781
4691
|
> =
|
|
2782
|
-
|
|
4692
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type$inboundSchema;
|
|
2783
4693
|
|
|
2784
4694
|
/** @internal */
|
|
2785
|
-
export const
|
|
2786
|
-
z.ZodNativeEnum<
|
|
2787
|
-
|
|
4695
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl$inboundSchema:
|
|
4696
|
+
z.ZodNativeEnum<
|
|
4697
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl
|
|
4698
|
+
> = z.nativeEnum(
|
|
4699
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl,
|
|
4700
|
+
);
|
|
2788
4701
|
/** @internal */
|
|
2789
|
-
export const
|
|
2790
|
-
z.ZodNativeEnum<
|
|
2791
|
-
|
|
4702
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl$outboundSchema:
|
|
4703
|
+
z.ZodNativeEnum<
|
|
4704
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl
|
|
4705
|
+
> =
|
|
4706
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl$inboundSchema;
|
|
2792
4707
|
|
|
2793
4708
|
/** @internal */
|
|
2794
|
-
export const
|
|
4709
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$inboundSchema:
|
|
2795
4710
|
z.ZodType<
|
|
2796
|
-
|
|
4711
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl,
|
|
2797
4712
|
z.ZodTypeDef,
|
|
2798
4713
|
unknown
|
|
2799
4714
|
> = z.object({
|
|
2800
4715
|
type:
|
|
2801
|
-
|
|
2802
|
-
ttl:
|
|
2803
|
-
|
|
2804
|
-
|
|
4716
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type$inboundSchema,
|
|
4717
|
+
ttl:
|
|
4718
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl$inboundSchema
|
|
4719
|
+
.default("5m"),
|
|
2805
4720
|
});
|
|
2806
4721
|
/** @internal */
|
|
2807
|
-
export type
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
4722
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$Outbound =
|
|
4723
|
+
{
|
|
4724
|
+
type: string;
|
|
4725
|
+
ttl: string;
|
|
4726
|
+
};
|
|
2811
4727
|
|
|
2812
4728
|
/** @internal */
|
|
2813
|
-
export const
|
|
4729
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$outboundSchema:
|
|
2814
4730
|
z.ZodType<
|
|
2815
|
-
|
|
4731
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$Outbound,
|
|
2816
4732
|
z.ZodTypeDef,
|
|
2817
|
-
|
|
4733
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl
|
|
2818
4734
|
> = z.object({
|
|
2819
4735
|
type:
|
|
2820
|
-
|
|
2821
|
-
ttl:
|
|
2822
|
-
|
|
2823
|
-
|
|
4736
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Content4Type$outboundSchema,
|
|
4737
|
+
ttl:
|
|
4738
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Ttl$outboundSchema
|
|
4739
|
+
.default("5m"),
|
|
2824
4740
|
});
|
|
2825
4741
|
|
|
2826
|
-
export function
|
|
2827
|
-
|
|
2828
|
-
|
|
4742
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControlToJSON(
|
|
4743
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl:
|
|
4744
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl,
|
|
2829
4745
|
): string {
|
|
2830
4746
|
return JSON.stringify(
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
4747
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$outboundSchema
|
|
4748
|
+
.parse(
|
|
4749
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl,
|
|
4750
|
+
),
|
|
2834
4751
|
);
|
|
2835
4752
|
}
|
|
2836
|
-
export function
|
|
4753
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControlFromJSON(
|
|
2837
4754
|
jsonString: string,
|
|
2838
4755
|
): SafeParseResult<
|
|
2839
|
-
|
|
4756
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl,
|
|
2840
4757
|
SDKValidationError
|
|
2841
4758
|
> {
|
|
2842
4759
|
return safeParse(
|
|
2843
4760
|
jsonString,
|
|
2844
4761
|
(x) =>
|
|
2845
|
-
|
|
2846
|
-
JSON.parse(x),
|
|
2847
|
-
|
|
2848
|
-
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsCacheControl' from JSON`,
|
|
4762
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$inboundSchema
|
|
4763
|
+
.parse(JSON.parse(x)),
|
|
4764
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl' from JSON`,
|
|
2849
4765
|
);
|
|
2850
4766
|
}
|
|
2851
4767
|
|
|
@@ -2855,7 +4771,7 @@ export const DeploymentCreateMetric2DeploymentsMetrics4$inboundSchema:
|
|
|
2855
4771
|
z.object({
|
|
2856
4772
|
type: z.literal("file"),
|
|
2857
4773
|
cache_control: z.lazy(() =>
|
|
2858
|
-
|
|
4774
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$inboundSchema
|
|
2859
4775
|
).optional(),
|
|
2860
4776
|
file: components.FileContentPartSchema$inboundSchema,
|
|
2861
4777
|
}).transform((v) => {
|
|
@@ -2867,7 +4783,7 @@ export const DeploymentCreateMetric2DeploymentsMetrics4$inboundSchema:
|
|
|
2867
4783
|
export type DeploymentCreateMetric2DeploymentsMetrics4$Outbound = {
|
|
2868
4784
|
type: "file";
|
|
2869
4785
|
cache_control?:
|
|
2870
|
-
|
|
|
4786
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$Outbound
|
|
2871
4787
|
| undefined;
|
|
2872
4788
|
file: components.FileContentPartSchema$Outbound;
|
|
2873
4789
|
};
|
|
@@ -2881,7 +4797,7 @@ export const DeploymentCreateMetric2DeploymentsMetrics4$outboundSchema:
|
|
|
2881
4797
|
> = z.object({
|
|
2882
4798
|
type: z.literal("file"),
|
|
2883
4799
|
cacheControl: z.lazy(() =>
|
|
2884
|
-
|
|
4800
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3CacheControl$outboundSchema
|
|
2885
4801
|
).optional(),
|
|
2886
4802
|
file: components.FileContentPartSchema$outboundSchema,
|
|
2887
4803
|
}).transform((v) => {
|
|
@@ -2917,64 +4833,221 @@ export function deploymentCreateMetric2DeploymentsMetrics4FromJSON(
|
|
|
2917
4833
|
}
|
|
2918
4834
|
|
|
2919
4835
|
/** @internal */
|
|
2920
|
-
export const
|
|
4836
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema:
|
|
4837
|
+
z.ZodNativeEnum<
|
|
4838
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
4839
|
+
> = z.nativeEnum(
|
|
4840
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type,
|
|
4841
|
+
);
|
|
4842
|
+
/** @internal */
|
|
4843
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema:
|
|
4844
|
+
z.ZodNativeEnum<
|
|
4845
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type
|
|
4846
|
+
> =
|
|
4847
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema;
|
|
4848
|
+
|
|
4849
|
+
/** @internal */
|
|
4850
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl$inboundSchema:
|
|
4851
|
+
z.ZodNativeEnum<
|
|
4852
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl
|
|
4853
|
+
> = z.nativeEnum(
|
|
4854
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl,
|
|
4855
|
+
);
|
|
4856
|
+
/** @internal */
|
|
4857
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl$outboundSchema:
|
|
4858
|
+
z.ZodNativeEnum<
|
|
4859
|
+
typeof DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl
|
|
4860
|
+
> =
|
|
4861
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl$inboundSchema;
|
|
4862
|
+
|
|
4863
|
+
/** @internal */
|
|
4864
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$inboundSchema:
|
|
2921
4865
|
z.ZodType<
|
|
2922
|
-
|
|
4866
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl,
|
|
4867
|
+
z.ZodTypeDef,
|
|
4868
|
+
unknown
|
|
4869
|
+
> = z.object({
|
|
4870
|
+
type:
|
|
4871
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$inboundSchema,
|
|
4872
|
+
ttl:
|
|
4873
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl$inboundSchema
|
|
4874
|
+
.default("5m"),
|
|
4875
|
+
});
|
|
4876
|
+
/** @internal */
|
|
4877
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$Outbound =
|
|
4878
|
+
{
|
|
4879
|
+
type: string;
|
|
4880
|
+
ttl: string;
|
|
4881
|
+
};
|
|
4882
|
+
|
|
4883
|
+
/** @internal */
|
|
4884
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$outboundSchema:
|
|
4885
|
+
z.ZodType<
|
|
4886
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$Outbound,
|
|
4887
|
+
z.ZodTypeDef,
|
|
4888
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl
|
|
4889
|
+
> = z.object({
|
|
4890
|
+
type:
|
|
4891
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoices3Type$outboundSchema,
|
|
4892
|
+
ttl:
|
|
4893
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesTtl$outboundSchema
|
|
4894
|
+
.default("5m"),
|
|
4895
|
+
});
|
|
4896
|
+
|
|
4897
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControlToJSON(
|
|
4898
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl:
|
|
4899
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl,
|
|
4900
|
+
): string {
|
|
4901
|
+
return JSON.stringify(
|
|
4902
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$outboundSchema
|
|
4903
|
+
.parse(
|
|
4904
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl,
|
|
4905
|
+
),
|
|
4906
|
+
);
|
|
4907
|
+
}
|
|
4908
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControlFromJSON(
|
|
4909
|
+
jsonString: string,
|
|
4910
|
+
): SafeParseResult<
|
|
4911
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl,
|
|
4912
|
+
SDKValidationError
|
|
4913
|
+
> {
|
|
4914
|
+
return safeParse(
|
|
4915
|
+
jsonString,
|
|
4916
|
+
(x) =>
|
|
4917
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$inboundSchema
|
|
4918
|
+
.parse(JSON.parse(x)),
|
|
4919
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl' from JSON`,
|
|
4920
|
+
);
|
|
4921
|
+
}
|
|
4922
|
+
|
|
4923
|
+
/** @internal */
|
|
4924
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$inboundSchema:
|
|
4925
|
+
z.ZodType<
|
|
4926
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1,
|
|
4927
|
+
z.ZodTypeDef,
|
|
4928
|
+
unknown
|
|
4929
|
+
> = z.object({
|
|
4930
|
+
type: z.literal("text"),
|
|
4931
|
+
text: z.string(),
|
|
4932
|
+
cache_control: z.lazy(() =>
|
|
4933
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$inboundSchema
|
|
4934
|
+
).optional(),
|
|
4935
|
+
}).transform((v) => {
|
|
4936
|
+
return remap$(v, {
|
|
4937
|
+
"cache_control": "cacheControl",
|
|
4938
|
+
});
|
|
4939
|
+
});
|
|
4940
|
+
/** @internal */
|
|
4941
|
+
export type DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$Outbound =
|
|
4942
|
+
{
|
|
4943
|
+
type: "text";
|
|
4944
|
+
text: string;
|
|
4945
|
+
cache_control?:
|
|
4946
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$Outbound
|
|
4947
|
+
| undefined;
|
|
4948
|
+
};
|
|
4949
|
+
|
|
4950
|
+
/** @internal */
|
|
4951
|
+
export const DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$outboundSchema:
|
|
4952
|
+
z.ZodType<
|
|
4953
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$Outbound,
|
|
4954
|
+
z.ZodTypeDef,
|
|
4955
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1
|
|
4956
|
+
> = z.object({
|
|
4957
|
+
type: z.literal("text"),
|
|
4958
|
+
text: z.string(),
|
|
4959
|
+
cacheControl: z.lazy(() =>
|
|
4960
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBodyChoicesCacheControl$outboundSchema
|
|
4961
|
+
).optional(),
|
|
4962
|
+
}).transform((v) => {
|
|
4963
|
+
return remap$(v, {
|
|
4964
|
+
cacheControl: "cache_control",
|
|
4965
|
+
});
|
|
4966
|
+
});
|
|
4967
|
+
|
|
4968
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBody1ToJSON(
|
|
4969
|
+
deploymentCreateMetric2DeploymentsMetricsRequestRequestBody1:
|
|
4970
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1,
|
|
4971
|
+
): string {
|
|
4972
|
+
return JSON.stringify(
|
|
4973
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$outboundSchema
|
|
4974
|
+
.parse(deploymentCreateMetric2DeploymentsMetricsRequestRequestBody1),
|
|
4975
|
+
);
|
|
4976
|
+
}
|
|
4977
|
+
export function deploymentCreateMetric2DeploymentsMetricsRequestRequestBody1FromJSON(
|
|
4978
|
+
jsonString: string,
|
|
4979
|
+
): SafeParseResult<
|
|
4980
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1,
|
|
4981
|
+
SDKValidationError
|
|
4982
|
+
> {
|
|
4983
|
+
return safeParse(
|
|
4984
|
+
jsonString,
|
|
4985
|
+
(x) =>
|
|
4986
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$inboundSchema
|
|
4987
|
+
.parse(JSON.parse(x)),
|
|
4988
|
+
`Failed to parse 'DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1' from JSON`,
|
|
4989
|
+
);
|
|
4990
|
+
}
|
|
4991
|
+
|
|
4992
|
+
/** @internal */
|
|
4993
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$inboundSchema:
|
|
4994
|
+
z.ZodType<
|
|
4995
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32,
|
|
2923
4996
|
z.ZodTypeDef,
|
|
2924
4997
|
unknown
|
|
2925
4998
|
> = z.union([
|
|
2926
|
-
|
|
2927
|
-
|
|
4999
|
+
z.lazy(() =>
|
|
5000
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$inboundSchema
|
|
2928
5001
|
),
|
|
2929
5002
|
components.ImageContentPartSchema$inboundSchema,
|
|
2930
5003
|
components.AudioContentPartSchema$inboundSchema,
|
|
2931
5004
|
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$inboundSchema),
|
|
2932
5005
|
]);
|
|
2933
5006
|
/** @internal */
|
|
2934
|
-
export type
|
|
2935
|
-
|
|
|
5007
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$Outbound =
|
|
5008
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$Outbound
|
|
2936
5009
|
| components.ImageContentPartSchema$Outbound
|
|
2937
5010
|
| components.AudioContentPartSchema$Outbound
|
|
2938
5011
|
| DeploymentCreateMetric2DeploymentsMetrics4$Outbound;
|
|
2939
5012
|
|
|
2940
5013
|
/** @internal */
|
|
2941
|
-
export const
|
|
5014
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$outboundSchema:
|
|
2942
5015
|
z.ZodType<
|
|
2943
|
-
|
|
5016
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$Outbound,
|
|
2944
5017
|
z.ZodTypeDef,
|
|
2945
|
-
|
|
5018
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32
|
|
2946
5019
|
> = z.union([
|
|
2947
|
-
|
|
2948
|
-
|
|
5020
|
+
z.lazy(() =>
|
|
5021
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$outboundSchema
|
|
2949
5022
|
),
|
|
2950
5023
|
components.ImageContentPartSchema$outboundSchema,
|
|
2951
5024
|
components.AudioContentPartSchema$outboundSchema,
|
|
2952
5025
|
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$outboundSchema),
|
|
2953
5026
|
]);
|
|
2954
5027
|
|
|
2955
|
-
export function
|
|
2956
|
-
|
|
2957
|
-
|
|
5028
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32ToJSON(
|
|
5029
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32:
|
|
5030
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32,
|
|
2958
5031
|
): string {
|
|
2959
5032
|
return JSON.stringify(
|
|
2960
|
-
|
|
5033
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$outboundSchema
|
|
2961
5034
|
.parse(
|
|
2962
|
-
|
|
5035
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32,
|
|
2963
5036
|
),
|
|
2964
5037
|
);
|
|
2965
5038
|
}
|
|
2966
|
-
export function
|
|
5039
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32FromJSON(
|
|
2967
5040
|
jsonString: string,
|
|
2968
5041
|
): SafeParseResult<
|
|
2969
|
-
|
|
5042
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32,
|
|
2970
5043
|
SDKValidationError
|
|
2971
5044
|
> {
|
|
2972
5045
|
return safeParse(
|
|
2973
5046
|
jsonString,
|
|
2974
5047
|
(x) =>
|
|
2975
|
-
|
|
5048
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32$inboundSchema
|
|
2976
5049
|
.parse(JSON.parse(x)),
|
|
2977
|
-
`Failed to parse '
|
|
5050
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices32' from JSON`,
|
|
2978
5051
|
);
|
|
2979
5052
|
}
|
|
2980
5053
|
|
|
@@ -2986,22 +5059,20 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$inboundSchem
|
|
|
2986
5059
|
unknown
|
|
2987
5060
|
> = z.union([
|
|
2988
5061
|
z.string(),
|
|
2989
|
-
z.array(
|
|
2990
|
-
z.
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
]),
|
|
2998
|
-
),
|
|
5062
|
+
z.array(z.union([
|
|
5063
|
+
z.lazy(() =>
|
|
5064
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$inboundSchema
|
|
5065
|
+
),
|
|
5066
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
5067
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
5068
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$inboundSchema),
|
|
5069
|
+
])),
|
|
2999
5070
|
]);
|
|
3000
5071
|
/** @internal */
|
|
3001
5072
|
export type DeploymentCreateMetricChoicesDeploymentsMetricsContent$Outbound =
|
|
3002
5073
|
| string
|
|
3003
5074
|
| Array<
|
|
3004
|
-
|
|
|
5075
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$Outbound
|
|
3005
5076
|
| components.ImageContentPartSchema$Outbound
|
|
3006
5077
|
| components.AudioContentPartSchema$Outbound
|
|
3007
5078
|
| DeploymentCreateMetric2DeploymentsMetrics4$Outbound
|
|
@@ -3015,16 +5086,14 @@ export const DeploymentCreateMetricChoicesDeploymentsMetricsContent$outboundSche
|
|
|
3015
5086
|
DeploymentCreateMetricChoicesDeploymentsMetricsContent
|
|
3016
5087
|
> = z.union([
|
|
3017
5088
|
z.string(),
|
|
3018
|
-
z.array(
|
|
3019
|
-
z.
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
]),
|
|
3027
|
-
),
|
|
5089
|
+
z.array(z.union([
|
|
5090
|
+
z.lazy(() =>
|
|
5091
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$outboundSchema
|
|
5092
|
+
),
|
|
5093
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
5094
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
5095
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$outboundSchema),
|
|
5096
|
+
])),
|
|
3028
5097
|
]);
|
|
3029
5098
|
|
|
3030
5099
|
export function deploymentCreateMetricChoicesDeploymentsMetricsContentToJSON(
|
|
@@ -3062,16 +5131,14 @@ export const ChoicesUserMessage$inboundSchema: z.ZodType<
|
|
|
3062
5131
|
name: z.string().optional(),
|
|
3063
5132
|
content: z.union([
|
|
3064
5133
|
z.string(),
|
|
3065
|
-
z.array(
|
|
3066
|
-
z.
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
]),
|
|
3074
|
-
),
|
|
5134
|
+
z.array(z.union([
|
|
5135
|
+
z.lazy(() =>
|
|
5136
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$inboundSchema
|
|
5137
|
+
),
|
|
5138
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
5139
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
5140
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$inboundSchema),
|
|
5141
|
+
])),
|
|
3075
5142
|
]),
|
|
3076
5143
|
});
|
|
3077
5144
|
/** @internal */
|
|
@@ -3081,7 +5148,7 @@ export type ChoicesUserMessage$Outbound = {
|
|
|
3081
5148
|
content:
|
|
3082
5149
|
| string
|
|
3083
5150
|
| Array<
|
|
3084
|
-
|
|
|
5151
|
+
| DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$Outbound
|
|
3085
5152
|
| components.ImageContentPartSchema$Outbound
|
|
3086
5153
|
| components.AudioContentPartSchema$Outbound
|
|
3087
5154
|
| DeploymentCreateMetric2DeploymentsMetrics4$Outbound
|
|
@@ -3098,16 +5165,14 @@ export const ChoicesUserMessage$outboundSchema: z.ZodType<
|
|
|
3098
5165
|
name: z.string().optional(),
|
|
3099
5166
|
content: z.union([
|
|
3100
5167
|
z.string(),
|
|
3101
|
-
z.array(
|
|
3102
|
-
z.
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
]),
|
|
3110
|
-
),
|
|
5168
|
+
z.array(z.union([
|
|
5169
|
+
z.lazy(() =>
|
|
5170
|
+
DeploymentCreateMetric2DeploymentsMetricsRequestRequestBody1$outboundSchema
|
|
5171
|
+
),
|
|
5172
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
5173
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
5174
|
+
z.lazy(() => DeploymentCreateMetric2DeploymentsMetrics4$outboundSchema),
|
|
5175
|
+
])),
|
|
3111
5176
|
]),
|
|
3112
5177
|
});
|
|
3113
5178
|
|
|
@@ -3128,6 +5193,181 @@ export function choicesUserMessageFromJSON(
|
|
|
3128
5193
|
);
|
|
3129
5194
|
}
|
|
3130
5195
|
|
|
5196
|
+
/** @internal */
|
|
5197
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type$inboundSchema:
|
|
5198
|
+
z.ZodNativeEnum<
|
|
5199
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type
|
|
5200
|
+
> = z.nativeEnum(
|
|
5201
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type,
|
|
5202
|
+
);
|
|
5203
|
+
/** @internal */
|
|
5204
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type$outboundSchema:
|
|
5205
|
+
z.ZodNativeEnum<
|
|
5206
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type
|
|
5207
|
+
> =
|
|
5208
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type$inboundSchema;
|
|
5209
|
+
|
|
5210
|
+
/** @internal */
|
|
5211
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type$inboundSchema:
|
|
5212
|
+
z.ZodNativeEnum<
|
|
5213
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type
|
|
5214
|
+
> = z.nativeEnum(
|
|
5215
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type,
|
|
5216
|
+
);
|
|
5217
|
+
/** @internal */
|
|
5218
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type$outboundSchema:
|
|
5219
|
+
z.ZodNativeEnum<
|
|
5220
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type
|
|
5221
|
+
> =
|
|
5222
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type$inboundSchema;
|
|
5223
|
+
|
|
5224
|
+
/** @internal */
|
|
5225
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl$inboundSchema:
|
|
5226
|
+
z.ZodNativeEnum<
|
|
5227
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl
|
|
5228
|
+
> = z.nativeEnum(
|
|
5229
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl,
|
|
5230
|
+
);
|
|
5231
|
+
/** @internal */
|
|
5232
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl$outboundSchema:
|
|
5233
|
+
z.ZodNativeEnum<
|
|
5234
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl
|
|
5235
|
+
> =
|
|
5236
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl$inboundSchema;
|
|
5237
|
+
|
|
5238
|
+
/** @internal */
|
|
5239
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema:
|
|
5240
|
+
z.ZodType<
|
|
5241
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl,
|
|
5242
|
+
z.ZodTypeDef,
|
|
5243
|
+
unknown
|
|
5244
|
+
> = z.object({
|
|
5245
|
+
type:
|
|
5246
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type$inboundSchema,
|
|
5247
|
+
ttl:
|
|
5248
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl$inboundSchema
|
|
5249
|
+
.default("5m"),
|
|
5250
|
+
});
|
|
5251
|
+
/** @internal */
|
|
5252
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$Outbound =
|
|
5253
|
+
{
|
|
5254
|
+
type: string;
|
|
5255
|
+
ttl: string;
|
|
5256
|
+
};
|
|
5257
|
+
|
|
5258
|
+
/** @internal */
|
|
5259
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema:
|
|
5260
|
+
z.ZodType<
|
|
5261
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$Outbound,
|
|
5262
|
+
z.ZodTypeDef,
|
|
5263
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl
|
|
5264
|
+
> = z.object({
|
|
5265
|
+
type:
|
|
5266
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22Type$outboundSchema,
|
|
5267
|
+
ttl:
|
|
5268
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyTtl$outboundSchema
|
|
5269
|
+
.default("5m"),
|
|
5270
|
+
});
|
|
5271
|
+
|
|
5272
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControlToJSON(
|
|
5273
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl:
|
|
5274
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl,
|
|
5275
|
+
): string {
|
|
5276
|
+
return JSON.stringify(
|
|
5277
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema
|
|
5278
|
+
.parse(
|
|
5279
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl,
|
|
5280
|
+
),
|
|
5281
|
+
);
|
|
5282
|
+
}
|
|
5283
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControlFromJSON(
|
|
5284
|
+
jsonString: string,
|
|
5285
|
+
): SafeParseResult<
|
|
5286
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl,
|
|
5287
|
+
SDKValidationError
|
|
5288
|
+
> {
|
|
5289
|
+
return safeParse(
|
|
5290
|
+
jsonString,
|
|
5291
|
+
(x) =>
|
|
5292
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema
|
|
5293
|
+
.parse(JSON.parse(x)),
|
|
5294
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl' from JSON`,
|
|
5295
|
+
);
|
|
5296
|
+
}
|
|
5297
|
+
|
|
5298
|
+
/** @internal */
|
|
5299
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$inboundSchema:
|
|
5300
|
+
z.ZodType<
|
|
5301
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22,
|
|
5302
|
+
z.ZodTypeDef,
|
|
5303
|
+
unknown
|
|
5304
|
+
> = z.object({
|
|
5305
|
+
type:
|
|
5306
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type$inboundSchema,
|
|
5307
|
+
text: z.string(),
|
|
5308
|
+
cache_control: z.lazy(() =>
|
|
5309
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$inboundSchema
|
|
5310
|
+
).optional(),
|
|
5311
|
+
}).transform((v) => {
|
|
5312
|
+
return remap$(v, {
|
|
5313
|
+
"cache_control": "cacheControl",
|
|
5314
|
+
});
|
|
5315
|
+
});
|
|
5316
|
+
/** @internal */
|
|
5317
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$Outbound =
|
|
5318
|
+
{
|
|
5319
|
+
type: string;
|
|
5320
|
+
text: string;
|
|
5321
|
+
cache_control?:
|
|
5322
|
+
| DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$Outbound
|
|
5323
|
+
| undefined;
|
|
5324
|
+
};
|
|
5325
|
+
|
|
5326
|
+
/** @internal */
|
|
5327
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$outboundSchema:
|
|
5328
|
+
z.ZodType<
|
|
5329
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$Outbound,
|
|
5330
|
+
z.ZodTypeDef,
|
|
5331
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22
|
|
5332
|
+
> = z.object({
|
|
5333
|
+
type:
|
|
5334
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2Type$outboundSchema,
|
|
5335
|
+
text: z.string(),
|
|
5336
|
+
cacheControl: z.lazy(() =>
|
|
5337
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyCacheControl$outboundSchema
|
|
5338
|
+
).optional(),
|
|
5339
|
+
}).transform((v) => {
|
|
5340
|
+
return remap$(v, {
|
|
5341
|
+
cacheControl: "cache_control",
|
|
5342
|
+
});
|
|
5343
|
+
});
|
|
5344
|
+
|
|
5345
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22ToJSON(
|
|
5346
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22:
|
|
5347
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22,
|
|
5348
|
+
): string {
|
|
5349
|
+
return JSON.stringify(
|
|
5350
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$outboundSchema
|
|
5351
|
+
.parse(
|
|
5352
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22,
|
|
5353
|
+
),
|
|
5354
|
+
);
|
|
5355
|
+
}
|
|
5356
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22FromJSON(
|
|
5357
|
+
jsonString: string,
|
|
5358
|
+
): SafeParseResult<
|
|
5359
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22,
|
|
5360
|
+
SDKValidationError
|
|
5361
|
+
> {
|
|
5362
|
+
return safeParse(
|
|
5363
|
+
jsonString,
|
|
5364
|
+
(x) =>
|
|
5365
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$inboundSchema
|
|
5366
|
+
.parse(JSON.parse(x)),
|
|
5367
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22' from JSON`,
|
|
5368
|
+
);
|
|
5369
|
+
}
|
|
5370
|
+
|
|
3131
5371
|
/** @internal */
|
|
3132
5372
|
export const DeploymentCreateMetricChoicesContent$inboundSchema: z.ZodType<
|
|
3133
5373
|
DeploymentCreateMetricChoicesContent,
|
|
@@ -3135,12 +5375,16 @@ export const DeploymentCreateMetricChoicesContent$inboundSchema: z.ZodType<
|
|
|
3135
5375
|
unknown
|
|
3136
5376
|
> = z.union([
|
|
3137
5377
|
z.string(),
|
|
3138
|
-
z.array(
|
|
5378
|
+
z.array(z.lazy(() =>
|
|
5379
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$inboundSchema
|
|
5380
|
+
)),
|
|
3139
5381
|
]);
|
|
3140
5382
|
/** @internal */
|
|
3141
5383
|
export type DeploymentCreateMetricChoicesContent$Outbound =
|
|
3142
5384
|
| string
|
|
3143
|
-
| Array<
|
|
5385
|
+
| Array<
|
|
5386
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$Outbound
|
|
5387
|
+
>;
|
|
3144
5388
|
|
|
3145
5389
|
/** @internal */
|
|
3146
5390
|
export const DeploymentCreateMetricChoicesContent$outboundSchema: z.ZodType<
|
|
@@ -3149,7 +5393,9 @@ export const DeploymentCreateMetricChoicesContent$outboundSchema: z.ZodType<
|
|
|
3149
5393
|
DeploymentCreateMetricChoicesContent
|
|
3150
5394
|
> = z.union([
|
|
3151
5395
|
z.string(),
|
|
3152
|
-
z.array(
|
|
5396
|
+
z.array(z.lazy(() =>
|
|
5397
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$outboundSchema
|
|
5398
|
+
)),
|
|
3153
5399
|
]);
|
|
3154
5400
|
|
|
3155
5401
|
export function deploymentCreateMetricChoicesContentToJSON(
|
|
@@ -3181,14 +5427,20 @@ export const ChoicesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3181
5427
|
role: z.literal("developer"),
|
|
3182
5428
|
content: z.union([
|
|
3183
5429
|
z.string(),
|
|
3184
|
-
z.array(
|
|
5430
|
+
z.array(z.lazy(() =>
|
|
5431
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$inboundSchema
|
|
5432
|
+
)),
|
|
3185
5433
|
]),
|
|
3186
5434
|
name: z.string().optional(),
|
|
3187
5435
|
});
|
|
3188
5436
|
/** @internal */
|
|
3189
5437
|
export type ChoicesDeveloperMessage$Outbound = {
|
|
3190
5438
|
role: "developer";
|
|
3191
|
-
content:
|
|
5439
|
+
content:
|
|
5440
|
+
| string
|
|
5441
|
+
| Array<
|
|
5442
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$Outbound
|
|
5443
|
+
>;
|
|
3192
5444
|
name?: string | undefined;
|
|
3193
5445
|
};
|
|
3194
5446
|
|
|
@@ -3201,7 +5453,9 @@ export const ChoicesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3201
5453
|
role: z.literal("developer"),
|
|
3202
5454
|
content: z.union([
|
|
3203
5455
|
z.string(),
|
|
3204
|
-
z.array(
|
|
5456
|
+
z.array(z.lazy(() =>
|
|
5457
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices22$outboundSchema
|
|
5458
|
+
)),
|
|
3205
5459
|
]),
|
|
3206
5460
|
name: z.string().optional(),
|
|
3207
5461
|
});
|
|
@@ -3223,6 +5477,177 @@ export function choicesDeveloperMessageFromJSON(
|
|
|
3223
5477
|
);
|
|
3224
5478
|
}
|
|
3225
5479
|
|
|
5480
|
+
/** @internal */
|
|
5481
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema:
|
|
5482
|
+
z.ZodNativeEnum<
|
|
5483
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType
|
|
5484
|
+
> = z.nativeEnum(
|
|
5485
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType,
|
|
5486
|
+
);
|
|
5487
|
+
/** @internal */
|
|
5488
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema:
|
|
5489
|
+
z.ZodNativeEnum<
|
|
5490
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType
|
|
5491
|
+
> =
|
|
5492
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema;
|
|
5493
|
+
|
|
5494
|
+
/** @internal */
|
|
5495
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type$inboundSchema:
|
|
5496
|
+
z.ZodNativeEnum<
|
|
5497
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type
|
|
5498
|
+
> = z.nativeEnum(
|
|
5499
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type,
|
|
5500
|
+
);
|
|
5501
|
+
/** @internal */
|
|
5502
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type$outboundSchema:
|
|
5503
|
+
z.ZodNativeEnum<
|
|
5504
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type
|
|
5505
|
+
> =
|
|
5506
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type$inboundSchema;
|
|
5507
|
+
|
|
5508
|
+
/** @internal */
|
|
5509
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestTtl$inboundSchema:
|
|
5510
|
+
z.ZodNativeEnum<
|
|
5511
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestTtl
|
|
5512
|
+
> = z.nativeEnum(DeploymentCreateMetricContentDeploymentsMetricsRequestTtl);
|
|
5513
|
+
/** @internal */
|
|
5514
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestTtl$outboundSchema:
|
|
5515
|
+
z.ZodNativeEnum<
|
|
5516
|
+
typeof DeploymentCreateMetricContentDeploymentsMetricsRequestTtl
|
|
5517
|
+
> = DeploymentCreateMetricContentDeploymentsMetricsRequestTtl$inboundSchema;
|
|
5518
|
+
|
|
5519
|
+
/** @internal */
|
|
5520
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$inboundSchema:
|
|
5521
|
+
z.ZodType<
|
|
5522
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl,
|
|
5523
|
+
z.ZodTypeDef,
|
|
5524
|
+
unknown
|
|
5525
|
+
> = z.object({
|
|
5526
|
+
type:
|
|
5527
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type$inboundSchema,
|
|
5528
|
+
ttl: DeploymentCreateMetricContentDeploymentsMetricsRequestTtl$inboundSchema
|
|
5529
|
+
.default("5m"),
|
|
5530
|
+
});
|
|
5531
|
+
/** @internal */
|
|
5532
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$Outbound =
|
|
5533
|
+
{
|
|
5534
|
+
type: string;
|
|
5535
|
+
ttl: string;
|
|
5536
|
+
};
|
|
5537
|
+
|
|
5538
|
+
/** @internal */
|
|
5539
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$outboundSchema:
|
|
5540
|
+
z.ZodType<
|
|
5541
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$Outbound,
|
|
5542
|
+
z.ZodTypeDef,
|
|
5543
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl
|
|
5544
|
+
> = z.object({
|
|
5545
|
+
type:
|
|
5546
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices1Type$outboundSchema,
|
|
5547
|
+
ttl:
|
|
5548
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestTtl$outboundSchema
|
|
5549
|
+
.default("5m"),
|
|
5550
|
+
});
|
|
5551
|
+
|
|
5552
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestCacheControlToJSON(
|
|
5553
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestCacheControl:
|
|
5554
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl,
|
|
5555
|
+
): string {
|
|
5556
|
+
return JSON.stringify(
|
|
5557
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$outboundSchema
|
|
5558
|
+
.parse(
|
|
5559
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestCacheControl,
|
|
5560
|
+
),
|
|
5561
|
+
);
|
|
5562
|
+
}
|
|
5563
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestCacheControlFromJSON(
|
|
5564
|
+
jsonString: string,
|
|
5565
|
+
): SafeParseResult<
|
|
5566
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl,
|
|
5567
|
+
SDKValidationError
|
|
5568
|
+
> {
|
|
5569
|
+
return safeParse(
|
|
5570
|
+
jsonString,
|
|
5571
|
+
(x) =>
|
|
5572
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$inboundSchema
|
|
5573
|
+
.parse(JSON.parse(x)),
|
|
5574
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl' from JSON`,
|
|
5575
|
+
);
|
|
5576
|
+
}
|
|
5577
|
+
|
|
5578
|
+
/** @internal */
|
|
5579
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$inboundSchema:
|
|
5580
|
+
z.ZodType<
|
|
5581
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2,
|
|
5582
|
+
z.ZodTypeDef,
|
|
5583
|
+
unknown
|
|
5584
|
+
> = z.object({
|
|
5585
|
+
type:
|
|
5586
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType$inboundSchema,
|
|
5587
|
+
text: z.string(),
|
|
5588
|
+
cache_control: z.lazy(() =>
|
|
5589
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$inboundSchema
|
|
5590
|
+
).optional(),
|
|
5591
|
+
}).transform((v) => {
|
|
5592
|
+
return remap$(v, {
|
|
5593
|
+
"cache_control": "cacheControl",
|
|
5594
|
+
});
|
|
5595
|
+
});
|
|
5596
|
+
/** @internal */
|
|
5597
|
+
export type DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$Outbound =
|
|
5598
|
+
{
|
|
5599
|
+
type: string;
|
|
5600
|
+
text: string;
|
|
5601
|
+
cache_control?:
|
|
5602
|
+
| DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$Outbound
|
|
5603
|
+
| undefined;
|
|
5604
|
+
};
|
|
5605
|
+
|
|
5606
|
+
/** @internal */
|
|
5607
|
+
export const DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$outboundSchema:
|
|
5608
|
+
z.ZodType<
|
|
5609
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$Outbound,
|
|
5610
|
+
z.ZodTypeDef,
|
|
5611
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2
|
|
5612
|
+
> = z.object({
|
|
5613
|
+
type:
|
|
5614
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoicesType$outboundSchema,
|
|
5615
|
+
text: z.string(),
|
|
5616
|
+
cacheControl: z.lazy(() =>
|
|
5617
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestCacheControl$outboundSchema
|
|
5618
|
+
).optional(),
|
|
5619
|
+
}).transform((v) => {
|
|
5620
|
+
return remap$(v, {
|
|
5621
|
+
cacheControl: "cache_control",
|
|
5622
|
+
});
|
|
5623
|
+
});
|
|
5624
|
+
|
|
5625
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2ToJSON(
|
|
5626
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2:
|
|
5627
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2,
|
|
5628
|
+
): string {
|
|
5629
|
+
return JSON.stringify(
|
|
5630
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$outboundSchema
|
|
5631
|
+
.parse(
|
|
5632
|
+
deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2,
|
|
5633
|
+
),
|
|
5634
|
+
);
|
|
5635
|
+
}
|
|
5636
|
+
export function deploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2FromJSON(
|
|
5637
|
+
jsonString: string,
|
|
5638
|
+
): SafeParseResult<
|
|
5639
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2,
|
|
5640
|
+
SDKValidationError
|
|
5641
|
+
> {
|
|
5642
|
+
return safeParse(
|
|
5643
|
+
jsonString,
|
|
5644
|
+
(x) =>
|
|
5645
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$inboundSchema
|
|
5646
|
+
.parse(JSON.parse(x)),
|
|
5647
|
+
`Failed to parse 'DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2' from JSON`,
|
|
5648
|
+
);
|
|
5649
|
+
}
|
|
5650
|
+
|
|
3226
5651
|
/** @internal */
|
|
3227
5652
|
export const ChoicesContent$inboundSchema: z.ZodType<
|
|
3228
5653
|
ChoicesContent,
|
|
@@ -3230,12 +5655,16 @@ export const ChoicesContent$inboundSchema: z.ZodType<
|
|
|
3230
5655
|
unknown
|
|
3231
5656
|
> = z.union([
|
|
3232
5657
|
z.string(),
|
|
3233
|
-
z.array(
|
|
5658
|
+
z.array(z.lazy(() =>
|
|
5659
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$inboundSchema
|
|
5660
|
+
)),
|
|
3234
5661
|
]);
|
|
3235
5662
|
/** @internal */
|
|
3236
5663
|
export type ChoicesContent$Outbound =
|
|
3237
5664
|
| string
|
|
3238
|
-
| Array<
|
|
5665
|
+
| Array<
|
|
5666
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$Outbound
|
|
5667
|
+
>;
|
|
3239
5668
|
|
|
3240
5669
|
/** @internal */
|
|
3241
5670
|
export const ChoicesContent$outboundSchema: z.ZodType<
|
|
@@ -3244,7 +5673,9 @@ export const ChoicesContent$outboundSchema: z.ZodType<
|
|
|
3244
5673
|
ChoicesContent
|
|
3245
5674
|
> = z.union([
|
|
3246
5675
|
z.string(),
|
|
3247
|
-
z.array(
|
|
5676
|
+
z.array(z.lazy(() =>
|
|
5677
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$outboundSchema
|
|
5678
|
+
)),
|
|
3248
5679
|
]);
|
|
3249
5680
|
|
|
3250
5681
|
export function choicesContentToJSON(choicesContent: ChoicesContent): string {
|
|
@@ -3269,14 +5700,20 @@ export const ChoicesSystemMessage$inboundSchema: z.ZodType<
|
|
|
3269
5700
|
role: z.literal("system"),
|
|
3270
5701
|
content: z.union([
|
|
3271
5702
|
z.string(),
|
|
3272
|
-
z.array(
|
|
5703
|
+
z.array(z.lazy(() =>
|
|
5704
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$inboundSchema
|
|
5705
|
+
)),
|
|
3273
5706
|
]),
|
|
3274
5707
|
name: z.string().optional(),
|
|
3275
5708
|
});
|
|
3276
5709
|
/** @internal */
|
|
3277
5710
|
export type ChoicesSystemMessage$Outbound = {
|
|
3278
5711
|
role: "system";
|
|
3279
|
-
content:
|
|
5712
|
+
content:
|
|
5713
|
+
| string
|
|
5714
|
+
| Array<
|
|
5715
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$Outbound
|
|
5716
|
+
>;
|
|
3280
5717
|
name?: string | undefined;
|
|
3281
5718
|
};
|
|
3282
5719
|
|
|
@@ -3289,7 +5726,9 @@ export const ChoicesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3289
5726
|
role: z.literal("system"),
|
|
3290
5727
|
content: z.union([
|
|
3291
5728
|
z.string(),
|
|
3292
|
-
z.array(
|
|
5729
|
+
z.array(z.lazy(() =>
|
|
5730
|
+
DeploymentCreateMetricContentDeploymentsMetricsRequestRequestBodyChoices2$outboundSchema
|
|
5731
|
+
)),
|
|
3293
5732
|
]),
|
|
3294
5733
|
name: z.string().optional(),
|
|
3295
5734
|
});
|